@aws-sdk/client-chime-sdk-messaging 3.145.0 → 3.154.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/ChimeSDKMessaging.js +15 -0
  3. package/dist-cjs/commands/ListSubChannelsCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +36 -18
  6. package/dist-cjs/pagination/ListSubChannelsPaginator.js +36 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_restJson1.js +189 -2
  9. package/dist-es/ChimeSDKMessaging.js +15 -0
  10. package/dist-es/commands/ListSubChannelsCommand.js +39 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/models/models_0.js +18 -14
  13. package/dist-es/pagination/ListSubChannelsPaginator.js +75 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_restJson1.js +257 -49
  16. package/dist-types/ChimeSDKMessaging.d.ts +7 -0
  17. package/dist-types/ChimeSDKMessagingClient.d.ts +3 -2
  18. package/dist-types/commands/ListSubChannelsCommand.d.ts +35 -0
  19. package/dist-types/commands/index.d.ts +1 -0
  20. package/dist-types/models/models_0.d.ts +232 -13
  21. package/dist-types/pagination/ListSubChannelsPaginator.d.ts +4 -0
  22. package/dist-types/pagination/index.d.ts +1 -0
  23. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  24. package/dist-types/ts3.4/ChimeSDKMessaging.d.ts +5 -0
  25. package/dist-types/ts3.4/ChimeSDKMessagingClient.d.ts +3 -2
  26. package/dist-types/ts3.4/commands/ListSubChannelsCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +105 -9
  29. package/dist-types/ts3.4/pagination/ListSubChannelsPaginator.d.ts +4 -0
  30. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  32. package/package.json +4 -4
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ChimeSDKMessagingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ChimeSDKMessagingClient";
4
+ import { ListSubChannelsRequest, ListSubChannelsResponse } from "../models/models_0";
5
+ export interface ListSubChannelsCommandInput extends ListSubChannelsRequest {
6
+ }
7
+ export interface ListSubChannelsCommandOutput extends ListSubChannelsResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class ListSubChannelsCommand extends $Command<ListSubChannelsCommandInput, ListSubChannelsCommandOutput, ChimeSDKMessagingClientResolvedConfig> {
11
+ readonly input: ListSubChannelsCommandInput;
12
+ constructor(input: ListSubChannelsCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ChimeSDKMessagingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListSubChannelsCommandInput, ListSubChannelsCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -33,6 +33,7 @@ export * from "./ListChannelModeratorsCommand";
33
33
  export * from "./ListChannelsAssociatedWithChannelFlowCommand";
34
34
  export * from "./ListChannelsCommand";
35
35
  export * from "./ListChannelsModeratedByAppInstanceUserCommand";
36
+ export * from "./ListSubChannelsCommand";
36
37
  export * from "./ListTagsForResourceCommand";
37
38
  export * from "./PutChannelMembershipPreferencesCommand";
38
39
  export * from "./RedactChannelMessageCommand";
@@ -15,6 +15,8 @@ export interface AppInstanceUserMembershipSummary {
15
15
  Type?: ChannelMembershipType | string;
16
16
 
17
17
  ReadMarkerTimestamp?: Date;
18
+
19
+ SubChannelId?: string;
18
20
  }
19
21
  export interface AssociateChannelFlowRequest {
20
22
 
@@ -130,6 +132,8 @@ export interface BatchChannelMemberships {
130
132
  Members?: Identity[];
131
133
 
132
134
  ChannelArn?: string;
135
+
136
+ SubChannelId?: string;
133
137
  }
134
138
  export interface BatchCreateChannelMembershipRequest {
135
139
 
@@ -140,6 +144,8 @@ export interface BatchCreateChannelMembershipRequest {
140
144
  MemberArns: string[] | undefined;
141
145
 
142
146
  ChimeBearer: string | undefined;
147
+
148
+ SubChannelId?: string;
143
149
  }
144
150
 
145
151
  export interface BatchCreateChannelMembershipError {
@@ -156,6 +162,24 @@ export interface BatchCreateChannelMembershipResponse {
156
162
 
157
163
  Errors?: BatchCreateChannelMembershipError[];
158
164
  }
165
+
166
+ export declare class ResourceLimitExceededException extends __BaseException {
167
+ readonly name: "ResourceLimitExceededException";
168
+ readonly $fault: "client";
169
+ Code?: ErrorCode | string;
170
+ Message?: string;
171
+
172
+ constructor(opts: __ExceptionOptionType<ResourceLimitExceededException, __BaseException>);
173
+ }
174
+
175
+ export interface ElasticChannelConfiguration {
176
+
177
+ MaximumSubChannels: number | undefined;
178
+
179
+ TargetMembershipsPerSubChannel: number | undefined;
180
+
181
+ MinimumMembershipPercentage: number | undefined;
182
+ }
159
183
  export declare enum ChannelMode {
160
184
  RESTRICTED = "RESTRICTED",
161
185
  UNRESTRICTED = "UNRESTRICTED"
@@ -186,6 +210,8 @@ export interface Channel {
186
210
  LastUpdatedTimestamp?: Date;
187
211
 
188
212
  ChannelFlowArn?: string;
213
+
214
+ ElasticChannelConfiguration?: ElasticChannelConfiguration;
189
215
  }
190
216
 
191
217
  export interface ChannelAssociatedWithFlowSummary {
@@ -289,6 +315,8 @@ export interface ChannelMessageCallback {
289
315
  PushNotification?: PushNotificationConfiguration;
290
316
 
291
317
  MessageAttributes?: Record<string, MessageAttributeValue>;
318
+
319
+ SubChannelId?: string;
292
320
  }
293
321
  export interface ChannelFlowCallbackRequest {
294
322
 
@@ -329,6 +357,8 @@ export interface ChannelMembership {
329
357
  CreatedTimestamp?: Date;
330
358
 
331
359
  LastUpdatedTimestamp?: Date;
360
+
361
+ SubChannelId?: string;
332
362
  }
333
363
 
334
364
  export interface ChannelSummary {
@@ -418,6 +448,8 @@ export interface ChannelMessage {
418
448
  Status?: ChannelMessageStatusStructure;
419
449
 
420
450
  MessageAttributes?: Record<string, MessageAttributeValue>;
451
+
452
+ SubChannelId?: string;
421
453
  }
422
454
 
423
455
  export interface ChannelMessageSummary {
@@ -495,20 +527,13 @@ export interface CreateChannelRequest {
495
527
  MemberArns?: string[];
496
528
 
497
529
  ModeratorArns?: string[];
530
+
531
+ ElasticChannelConfiguration?: ElasticChannelConfiguration;
498
532
  }
499
533
  export interface CreateChannelResponse {
500
534
 
501
535
  ChannelArn?: string;
502
536
  }
503
-
504
- export declare class ResourceLimitExceededException extends __BaseException {
505
- readonly name: "ResourceLimitExceededException";
506
- readonly $fault: "client";
507
- Code?: ErrorCode | string;
508
- Message?: string;
509
-
510
- constructor(opts: __ExceptionOptionType<ResourceLimitExceededException, __BaseException>);
511
- }
512
537
  export interface CreateChannelBanRequest {
513
538
 
514
539
  ChannelArn: string | undefined;
@@ -548,12 +573,16 @@ export interface CreateChannelMembershipRequest {
548
573
  Type: ChannelMembershipType | string | undefined;
549
574
 
550
575
  ChimeBearer: string | undefined;
576
+
577
+ SubChannelId?: string;
551
578
  }
552
579
  export interface CreateChannelMembershipResponse {
553
580
 
554
581
  ChannelArn?: string;
555
582
 
556
583
  Member?: Identity;
584
+
585
+ SubChannelId?: string;
557
586
  }
558
587
  export interface CreateChannelModeratorRequest {
559
588
 
@@ -574,6 +603,8 @@ export interface DeleteChannelRequest {
574
603
  ChannelArn: string | undefined;
575
604
 
576
605
  ChimeBearer: string | undefined;
606
+
607
+ SubChannelId?: string;
577
608
  }
578
609
  export interface DeleteChannelBanRequest {
579
610
 
@@ -594,6 +625,8 @@ export interface DeleteChannelMembershipRequest {
594
625
  MemberArn: string | undefined;
595
626
 
596
627
  ChimeBearer: string | undefined;
628
+
629
+ SubChannelId?: string;
597
630
  }
598
631
  export interface DeleteChannelMessageRequest {
599
632
 
@@ -602,6 +635,8 @@ export interface DeleteChannelMessageRequest {
602
635
  MessageId: string | undefined;
603
636
 
604
637
  ChimeBearer: string | undefined;
638
+
639
+ SubChannelId?: string;
605
640
  }
606
641
  export interface DeleteChannelModeratorRequest {
607
642
 
@@ -648,6 +683,8 @@ export interface DescribeChannelMembershipRequest {
648
683
  MemberArn: string | undefined;
649
684
 
650
685
  ChimeBearer: string | undefined;
686
+
687
+ SubChannelId?: string;
651
688
  }
652
689
  export interface DescribeChannelMembershipResponse {
653
690
 
@@ -720,6 +757,8 @@ export interface GetChannelMessageRequest {
720
757
  MessageId: string | undefined;
721
758
 
722
759
  ChimeBearer: string | undefined;
760
+
761
+ SubChannelId?: string;
723
762
  }
724
763
  export interface GetChannelMessageResponse {
725
764
 
@@ -732,6 +771,8 @@ export interface GetChannelMessageStatusRequest {
732
771
  MessageId: string | undefined;
733
772
 
734
773
  ChimeBearer: string | undefined;
774
+
775
+ SubChannelId?: string;
735
776
  }
736
777
  export interface GetChannelMessageStatusResponse {
737
778
 
@@ -791,6 +832,8 @@ export interface ListChannelMembershipsRequest {
791
832
  NextToken?: string;
792
833
 
793
834
  ChimeBearer: string | undefined;
835
+
836
+ SubChannelId?: string;
794
837
  }
795
838
  export interface ListChannelMembershipsResponse {
796
839
 
@@ -835,6 +878,8 @@ export interface ListChannelMessagesRequest {
835
878
  NextToken?: string;
836
879
 
837
880
  ChimeBearer: string | undefined;
881
+
882
+ SubChannelId?: string;
838
883
  }
839
884
  export interface ListChannelMessagesResponse {
840
885
 
@@ -843,6 +888,8 @@ export interface ListChannelMessagesResponse {
843
888
  NextToken?: string;
844
889
 
845
890
  ChannelMessages?: ChannelMessageSummary[];
891
+
892
+ SubChannelId?: string;
846
893
  }
847
894
  export interface ListChannelModeratorsRequest {
848
895
 
@@ -910,6 +957,31 @@ export interface ListChannelsModeratedByAppInstanceUserResponse {
910
957
 
911
958
  NextToken?: string;
912
959
  }
960
+ export interface ListSubChannelsRequest {
961
+
962
+ ChannelArn: string | undefined;
963
+
964
+ ChimeBearer: string | undefined;
965
+
966
+ MaxResults?: number;
967
+
968
+ NextToken?: string;
969
+ }
970
+
971
+ export interface SubChannelSummary {
972
+
973
+ SubChannelId?: string;
974
+
975
+ MembershipCount?: number;
976
+ }
977
+ export interface ListSubChannelsResponse {
978
+
979
+ ChannelArn?: string;
980
+
981
+ SubChannels?: SubChannelSummary[];
982
+
983
+ NextToken?: string;
984
+ }
913
985
  export interface ListTagsForResourceRequest {
914
986
 
915
987
  ResourceARN: string | undefined;
@@ -943,12 +1015,16 @@ export interface RedactChannelMessageRequest {
943
1015
  MessageId: string | undefined;
944
1016
 
945
1017
  ChimeBearer: string | undefined;
1018
+
1019
+ SubChannelId?: string;
946
1020
  }
947
1021
  export interface RedactChannelMessageResponse {
948
1022
 
949
1023
  ChannelArn?: string;
950
1024
 
951
1025
  MessageId?: string;
1026
+
1027
+ SubChannelId?: string;
952
1028
  }
953
1029
  export declare enum SearchFieldKey {
954
1030
  MEMBERS = "MEMBERS"
@@ -1001,6 +1077,8 @@ export interface SendChannelMessageRequest {
1001
1077
  PushNotification?: PushNotificationConfiguration;
1002
1078
 
1003
1079
  MessageAttributes?: Record<string, MessageAttributeValue>;
1080
+
1081
+ SubChannelId?: string;
1004
1082
  }
1005
1083
  export interface SendChannelMessageResponse {
1006
1084
 
@@ -1009,6 +1087,8 @@ export interface SendChannelMessageResponse {
1009
1087
  MessageId?: string;
1010
1088
 
1011
1089
  Status?: ChannelMessageStatusStructure;
1090
+
1091
+ SubChannelId?: string;
1012
1092
  }
1013
1093
  export interface TagResourceRequest {
1014
1094
 
@@ -1061,6 +1141,8 @@ export interface UpdateChannelMessageRequest {
1061
1141
  Metadata?: string;
1062
1142
 
1063
1143
  ChimeBearer: string | undefined;
1144
+
1145
+ SubChannelId?: string;
1064
1146
  }
1065
1147
  export interface UpdateChannelMessageResponse {
1066
1148
 
@@ -1069,16 +1151,22 @@ export interface UpdateChannelMessageResponse {
1069
1151
  MessageId?: string;
1070
1152
 
1071
1153
  Status?: ChannelMessageStatusStructure;
1154
+
1155
+ SubChannelId?: string;
1072
1156
  }
1073
1157
  export interface UpdateChannelReadMarkerRequest {
1074
1158
 
1075
1159
  ChannelArn: string | undefined;
1076
1160
 
1077
1161
  ChimeBearer: string | undefined;
1162
+
1163
+ SubChannelId?: string;
1078
1164
  }
1079
1165
  export interface UpdateChannelReadMarkerResponse {
1080
1166
 
1081
1167
  ChannelArn?: string;
1168
+
1169
+ SubChannelId?: string;
1082
1170
  }
1083
1171
 
1084
1172
  export declare const AppInstanceUserMembershipSummaryFilterSensitiveLog: (obj: AppInstanceUserMembershipSummary) => any;
@@ -1095,6 +1183,8 @@ export declare const BatchCreateChannelMembershipErrorFilterSensitiveLog: (obj:
1095
1183
 
1096
1184
  export declare const BatchCreateChannelMembershipResponseFilterSensitiveLog: (obj: BatchCreateChannelMembershipResponse) => any;
1097
1185
 
1186
+ export declare const ElasticChannelConfigurationFilterSensitiveLog: (obj: ElasticChannelConfiguration) => any;
1187
+
1098
1188
  export declare const ChannelFilterSensitiveLog: (obj: Channel) => any;
1099
1189
 
1100
1190
  export declare const ChannelAssociatedWithFlowSummaryFilterSensitiveLog: (obj: ChannelAssociatedWithFlowSummary) => any;
@@ -1265,6 +1355,12 @@ export declare const ListChannelsModeratedByAppInstanceUserRequestFilterSensitiv
1265
1355
 
1266
1356
  export declare const ListChannelsModeratedByAppInstanceUserResponseFilterSensitiveLog: (obj: ListChannelsModeratedByAppInstanceUserResponse) => any;
1267
1357
 
1358
+ export declare const ListSubChannelsRequestFilterSensitiveLog: (obj: ListSubChannelsRequest) => any;
1359
+
1360
+ export declare const SubChannelSummaryFilterSensitiveLog: (obj: SubChannelSummary) => any;
1361
+
1362
+ export declare const ListSubChannelsResponseFilterSensitiveLog: (obj: ListSubChannelsResponse) => any;
1363
+
1268
1364
  export declare const ListTagsForResourceRequestFilterSensitiveLog: (obj: ListTagsForResourceRequest) => any;
1269
1365
 
1270
1366
  export declare const ListTagsForResourceResponseFilterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ListSubChannelsCommandInput, ListSubChannelsCommandOutput } from "../commands/ListSubChannelsCommand";
3
+ import { ChimeSDKMessagingPaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateListSubChannels(config: ChimeSDKMessagingPaginationConfiguration, input: ListSubChannelsCommandInput, ...additionalArguments: any): Paginator<ListSubChannelsCommandOutput>;
@@ -8,4 +8,5 @@ export * from "./ListChannelModeratorsPaginator";
8
8
  export * from "./ListChannelsAssociatedWithChannelFlowPaginator";
9
9
  export * from "./ListChannelsModeratedByAppInstanceUserPaginator";
10
10
  export * from "./ListChannelsPaginator";
11
+ export * from "./ListSubChannelsPaginator";
11
12
  export * from "./SearchChannelsPaginator";
@@ -35,6 +35,7 @@ import { ListChannelModeratorsCommandInput, ListChannelModeratorsCommandOutput }
35
35
  import { ListChannelsAssociatedWithChannelFlowCommandInput, ListChannelsAssociatedWithChannelFlowCommandOutput } from "../commands/ListChannelsAssociatedWithChannelFlowCommand";
36
36
  import { ListChannelsCommandInput, ListChannelsCommandOutput } from "../commands/ListChannelsCommand";
37
37
  import { ListChannelsModeratedByAppInstanceUserCommandInput, ListChannelsModeratedByAppInstanceUserCommandOutput } from "../commands/ListChannelsModeratedByAppInstanceUserCommand";
38
+ import { ListSubChannelsCommandInput, ListSubChannelsCommandOutput } from "../commands/ListSubChannelsCommand";
38
39
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
39
40
  import { PutChannelMembershipPreferencesCommandInput, PutChannelMembershipPreferencesCommandOutput } from "../commands/PutChannelMembershipPreferencesCommand";
40
41
  import { RedactChannelMessageCommandInput, RedactChannelMessageCommandOutput } from "../commands/RedactChannelMessageCommand";
@@ -81,6 +82,7 @@ export declare const serializeAws_restJson1ListChannelModeratorsCommand: (input:
81
82
  export declare const serializeAws_restJson1ListChannelsCommand: (input: ListChannelsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
82
83
  export declare const serializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand: (input: ListChannelsAssociatedWithChannelFlowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
83
84
  export declare const serializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand: (input: ListChannelsModeratedByAppInstanceUserCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
85
+ export declare const serializeAws_restJson1ListSubChannelsCommand: (input: ListSubChannelsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
84
86
  export declare const serializeAws_restJson1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
85
87
  export declare const serializeAws_restJson1PutChannelMembershipPreferencesCommand: (input: PutChannelMembershipPreferencesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
86
88
  export declare const serializeAws_restJson1RedactChannelMessageCommand: (input: RedactChannelMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -127,6 +129,7 @@ export declare const deserializeAws_restJson1ListChannelModeratorsCommand: (outp
127
129
  export declare const deserializeAws_restJson1ListChannelsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListChannelsCommandOutput>;
128
130
  export declare const deserializeAws_restJson1ListChannelsAssociatedWithChannelFlowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListChannelsAssociatedWithChannelFlowCommandOutput>;
129
131
  export declare const deserializeAws_restJson1ListChannelsModeratedByAppInstanceUserCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListChannelsModeratedByAppInstanceUserCommandOutput>;
132
+ export declare const deserializeAws_restJson1ListSubChannelsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSubChannelsCommandOutput>;
130
133
  export declare const deserializeAws_restJson1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
131
134
  export declare const deserializeAws_restJson1PutChannelMembershipPreferencesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutChannelMembershipPreferencesCommandOutput>;
132
135
  export declare const deserializeAws_restJson1RedactChannelMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RedactChannelMessageCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-chime-sdk-messaging",
3
3
  "description": "AWS SDK for JavaScript Chime Sdk Messaging Client for Node.js, Browser and React Native",
4
- "version": "3.145.0",
4
+ "version": "3.154.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.145.0",
21
+ "@aws-sdk/client-sts": "3.154.0",
22
22
  "@aws-sdk/config-resolver": "3.130.0",
23
- "@aws-sdk/credential-provider-node": "3.145.0",
23
+ "@aws-sdk/credential-provider-node": "3.154.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.131.0",
25
25
  "@aws-sdk/hash-node": "3.127.0",
26
26
  "@aws-sdk/invalid-dependency": "3.127.0",
@@ -41,7 +41,7 @@
41
41
  "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
- "@aws-sdk/util-body-length-browser": "3.55.0",
44
+ "@aws-sdk/util-body-length-browser": "3.154.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
46
  "@aws-sdk/util-defaults-mode-browser": "3.142.0",
47
47
  "@aws-sdk/util-defaults-mode-node": "3.142.0",