@aws-sdk/client-chime-sdk-messaging 3.975.0 → 3.978.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.
package/dist-cjs/index.js CHANGED
@@ -2141,6 +2141,28 @@ class UpdateChannelReadMarkerCommand extends smithyClient.Command
2141
2141
  .build() {
2142
2142
  }
2143
2143
 
2144
+ const paginateListChannelBans = core.createPaginator(ChimeSDKMessagingClient, ListChannelBansCommand, "NextToken", "NextToken", "MaxResults");
2145
+
2146
+ const paginateListChannelFlows = core.createPaginator(ChimeSDKMessagingClient, ListChannelFlowsCommand, "NextToken", "NextToken", "MaxResults");
2147
+
2148
+ const paginateListChannelMembershipsForAppInstanceUser = core.createPaginator(ChimeSDKMessagingClient, ListChannelMembershipsForAppInstanceUserCommand, "NextToken", "NextToken", "MaxResults");
2149
+
2150
+ const paginateListChannelMemberships = core.createPaginator(ChimeSDKMessagingClient, ListChannelMembershipsCommand, "NextToken", "NextToken", "MaxResults");
2151
+
2152
+ const paginateListChannelMessages = core.createPaginator(ChimeSDKMessagingClient, ListChannelMessagesCommand, "NextToken", "NextToken", "MaxResults");
2153
+
2154
+ const paginateListChannelModerators = core.createPaginator(ChimeSDKMessagingClient, ListChannelModeratorsCommand, "NextToken", "NextToken", "MaxResults");
2155
+
2156
+ const paginateListChannelsAssociatedWithChannelFlow = core.createPaginator(ChimeSDKMessagingClient, ListChannelsAssociatedWithChannelFlowCommand, "NextToken", "NextToken", "MaxResults");
2157
+
2158
+ const paginateListChannelsModeratedByAppInstanceUser = core.createPaginator(ChimeSDKMessagingClient, ListChannelsModeratedByAppInstanceUserCommand, "NextToken", "NextToken", "MaxResults");
2159
+
2160
+ const paginateListChannels = core.createPaginator(ChimeSDKMessagingClient, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
2161
+
2162
+ const paginateListSubChannels = core.createPaginator(ChimeSDKMessagingClient, ListSubChannelsCommand, "NextToken", "NextToken", "MaxResults");
2163
+
2164
+ const paginateSearchChannels = core.createPaginator(ChimeSDKMessagingClient, SearchChannelsCommand, "NextToken", "NextToken", "MaxResults");
2165
+
2144
2166
  const commands = {
2145
2167
  AssociateChannelFlowCommand,
2146
2168
  BatchCreateChannelMembershipCommand,
@@ -2194,31 +2216,22 @@ const commands = {
2194
2216
  UpdateChannelMessageCommand,
2195
2217
  UpdateChannelReadMarkerCommand,
2196
2218
  };
2219
+ const paginators = {
2220
+ paginateListChannelBans,
2221
+ paginateListChannelFlows,
2222
+ paginateListChannelMemberships,
2223
+ paginateListChannelMembershipsForAppInstanceUser,
2224
+ paginateListChannelMessages,
2225
+ paginateListChannelModerators,
2226
+ paginateListChannels,
2227
+ paginateListChannelsAssociatedWithChannelFlow,
2228
+ paginateListChannelsModeratedByAppInstanceUser,
2229
+ paginateListSubChannels,
2230
+ paginateSearchChannels,
2231
+ };
2197
2232
  class ChimeSDKMessaging extends ChimeSDKMessagingClient {
2198
2233
  }
2199
- smithyClient.createAggregatedClient(commands, ChimeSDKMessaging);
2200
-
2201
- const paginateListChannelBans = core.createPaginator(ChimeSDKMessagingClient, ListChannelBansCommand, "NextToken", "NextToken", "MaxResults");
2202
-
2203
- const paginateListChannelFlows = core.createPaginator(ChimeSDKMessagingClient, ListChannelFlowsCommand, "NextToken", "NextToken", "MaxResults");
2204
-
2205
- const paginateListChannelMemberships = core.createPaginator(ChimeSDKMessagingClient, ListChannelMembershipsCommand, "NextToken", "NextToken", "MaxResults");
2206
-
2207
- const paginateListChannelMembershipsForAppInstanceUser = core.createPaginator(ChimeSDKMessagingClient, ListChannelMembershipsForAppInstanceUserCommand, "NextToken", "NextToken", "MaxResults");
2208
-
2209
- const paginateListChannelMessages = core.createPaginator(ChimeSDKMessagingClient, ListChannelMessagesCommand, "NextToken", "NextToken", "MaxResults");
2210
-
2211
- const paginateListChannelModerators = core.createPaginator(ChimeSDKMessagingClient, ListChannelModeratorsCommand, "NextToken", "NextToken", "MaxResults");
2212
-
2213
- const paginateListChannels = core.createPaginator(ChimeSDKMessagingClient, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
2214
-
2215
- const paginateListChannelsAssociatedWithChannelFlow = core.createPaginator(ChimeSDKMessagingClient, ListChannelsAssociatedWithChannelFlowCommand, "NextToken", "NextToken", "MaxResults");
2216
-
2217
- const paginateListChannelsModeratedByAppInstanceUser = core.createPaginator(ChimeSDKMessagingClient, ListChannelsModeratedByAppInstanceUserCommand, "NextToken", "NextToken", "MaxResults");
2218
-
2219
- const paginateListSubChannels = core.createPaginator(ChimeSDKMessagingClient, ListSubChannelsCommand, "NextToken", "NextToken", "MaxResults");
2220
-
2221
- const paginateSearchChannels = core.createPaginator(ChimeSDKMessagingClient, SearchChannelsCommand, "NextToken", "NextToken", "MaxResults");
2234
+ smithyClient.createAggregatedClient(commands, ChimeSDKMessaging, { paginators });
2222
2235
 
2223
2236
  const AllowNotifications = {
2224
2237
  ALL: "ALL",
@@ -51,6 +51,17 @@ import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
51
51
  import { UpdateChannelFlowCommand, } from "./commands/UpdateChannelFlowCommand";
52
52
  import { UpdateChannelMessageCommand, } from "./commands/UpdateChannelMessageCommand";
53
53
  import { UpdateChannelReadMarkerCommand, } from "./commands/UpdateChannelReadMarkerCommand";
54
+ import { paginateListChannelBans } from "./pagination/ListChannelBansPaginator";
55
+ import { paginateListChannelFlows } from "./pagination/ListChannelFlowsPaginator";
56
+ import { paginateListChannelMembershipsForAppInstanceUser, } from "./pagination/ListChannelMembershipsForAppInstanceUserPaginator";
57
+ import { paginateListChannelMemberships } from "./pagination/ListChannelMembershipsPaginator";
58
+ import { paginateListChannelMessages } from "./pagination/ListChannelMessagesPaginator";
59
+ import { paginateListChannelModerators } from "./pagination/ListChannelModeratorsPaginator";
60
+ import { paginateListChannelsAssociatedWithChannelFlow, } from "./pagination/ListChannelsAssociatedWithChannelFlowPaginator";
61
+ import { paginateListChannelsModeratedByAppInstanceUser, } from "./pagination/ListChannelsModeratedByAppInstanceUserPaginator";
62
+ import { paginateListChannels } from "./pagination/ListChannelsPaginator";
63
+ import { paginateListSubChannels } from "./pagination/ListSubChannelsPaginator";
64
+ import { paginateSearchChannels } from "./pagination/SearchChannelsPaginator";
54
65
  const commands = {
55
66
  AssociateChannelFlowCommand,
56
67
  BatchCreateChannelMembershipCommand,
@@ -104,6 +115,19 @@ const commands = {
104
115
  UpdateChannelMessageCommand,
105
116
  UpdateChannelReadMarkerCommand,
106
117
  };
118
+ const paginators = {
119
+ paginateListChannelBans,
120
+ paginateListChannelFlows,
121
+ paginateListChannelMemberships,
122
+ paginateListChannelMembershipsForAppInstanceUser,
123
+ paginateListChannelMessages,
124
+ paginateListChannelModerators,
125
+ paginateListChannels,
126
+ paginateListChannelsAssociatedWithChannelFlow,
127
+ paginateListChannelsModeratedByAppInstanceUser,
128
+ paginateListSubChannels,
129
+ paginateSearchChannels,
130
+ };
107
131
  export class ChimeSDKMessaging extends ChimeSDKMessagingClient {
108
132
  }
109
- createAggregatedClient(commands, ChimeSDKMessaging);
133
+ createAggregatedClient(commands, ChimeSDKMessaging, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { ChimeSDKMessagingClient } from "./ChimeSDKMessagingClient";
3
3
  import { AssociateChannelFlowCommandInput, AssociateChannelFlowCommandOutput } from "./commands/AssociateChannelFlowCommand";
4
4
  import { BatchCreateChannelMembershipCommandInput, BatchCreateChannelMembershipCommandOutput } from "./commands/BatchCreateChannelMembershipCommand";
@@ -359,6 +359,83 @@ export interface ChimeSDKMessaging {
359
359
  updateChannelReadMarker(args: UpdateChannelReadMarkerCommandInput, options?: __HttpHandlerOptions): Promise<UpdateChannelReadMarkerCommandOutput>;
360
360
  updateChannelReadMarker(args: UpdateChannelReadMarkerCommandInput, cb: (err: any, data?: UpdateChannelReadMarkerCommandOutput) => void): void;
361
361
  updateChannelReadMarker(args: UpdateChannelReadMarkerCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateChannelReadMarkerCommandOutput) => void): void;
362
+ /**
363
+ * @see {@link ListChannelBansCommand}
364
+ * @param args - command input.
365
+ * @param paginationConfig - optional pagination config.
366
+ * @returns AsyncIterable of {@link ListChannelBansCommandOutput}.
367
+ */
368
+ paginateListChannelBans(args: ListChannelBansCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelBansCommandOutput>;
369
+ /**
370
+ * @see {@link ListChannelFlowsCommand}
371
+ * @param args - command input.
372
+ * @param paginationConfig - optional pagination config.
373
+ * @returns AsyncIterable of {@link ListChannelFlowsCommandOutput}.
374
+ */
375
+ paginateListChannelFlows(args: ListChannelFlowsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelFlowsCommandOutput>;
376
+ /**
377
+ * @see {@link ListChannelMembershipsCommand}
378
+ * @param args - command input.
379
+ * @param paginationConfig - optional pagination config.
380
+ * @returns AsyncIterable of {@link ListChannelMembershipsCommandOutput}.
381
+ */
382
+ paginateListChannelMemberships(args: ListChannelMembershipsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelMembershipsCommandOutput>;
383
+ /**
384
+ * @see {@link ListChannelMembershipsForAppInstanceUserCommand}
385
+ * @param args - command input.
386
+ * @param paginationConfig - optional pagination config.
387
+ * @returns AsyncIterable of {@link ListChannelMembershipsForAppInstanceUserCommandOutput}.
388
+ */
389
+ paginateListChannelMembershipsForAppInstanceUser(args: ListChannelMembershipsForAppInstanceUserCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelMembershipsForAppInstanceUserCommandOutput>;
390
+ /**
391
+ * @see {@link ListChannelMessagesCommand}
392
+ * @param args - command input.
393
+ * @param paginationConfig - optional pagination config.
394
+ * @returns AsyncIterable of {@link ListChannelMessagesCommandOutput}.
395
+ */
396
+ paginateListChannelMessages(args: ListChannelMessagesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelMessagesCommandOutput>;
397
+ /**
398
+ * @see {@link ListChannelModeratorsCommand}
399
+ * @param args - command input.
400
+ * @param paginationConfig - optional pagination config.
401
+ * @returns AsyncIterable of {@link ListChannelModeratorsCommandOutput}.
402
+ */
403
+ paginateListChannelModerators(args: ListChannelModeratorsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelModeratorsCommandOutput>;
404
+ /**
405
+ * @see {@link ListChannelsCommand}
406
+ * @param args - command input.
407
+ * @param paginationConfig - optional pagination config.
408
+ * @returns AsyncIterable of {@link ListChannelsCommandOutput}.
409
+ */
410
+ paginateListChannels(args: ListChannelsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelsCommandOutput>;
411
+ /**
412
+ * @see {@link ListChannelsAssociatedWithChannelFlowCommand}
413
+ * @param args - command input.
414
+ * @param paginationConfig - optional pagination config.
415
+ * @returns AsyncIterable of {@link ListChannelsAssociatedWithChannelFlowCommandOutput}.
416
+ */
417
+ paginateListChannelsAssociatedWithChannelFlow(args: ListChannelsAssociatedWithChannelFlowCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelsAssociatedWithChannelFlowCommandOutput>;
418
+ /**
419
+ * @see {@link ListChannelsModeratedByAppInstanceUserCommand}
420
+ * @param args - command input.
421
+ * @param paginationConfig - optional pagination config.
422
+ * @returns AsyncIterable of {@link ListChannelsModeratedByAppInstanceUserCommandOutput}.
423
+ */
424
+ paginateListChannelsModeratedByAppInstanceUser(args: ListChannelsModeratedByAppInstanceUserCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelsModeratedByAppInstanceUserCommandOutput>;
425
+ /**
426
+ * @see {@link ListSubChannelsCommand}
427
+ * @param args - command input.
428
+ * @param paginationConfig - optional pagination config.
429
+ * @returns AsyncIterable of {@link ListSubChannelsCommandOutput}.
430
+ */
431
+ paginateListSubChannels(args: ListSubChannelsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSubChannelsCommandOutput>;
432
+ /**
433
+ * @see {@link SearchChannelsCommand}
434
+ * @param args - command input.
435
+ * @param paginationConfig - optional pagination config.
436
+ * @returns AsyncIterable of {@link SearchChannelsCommandOutput}.
437
+ */
438
+ paginateSearchChannels(args: SearchChannelsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<SearchChannelsCommandOutput>;
362
439
  }
363
440
  /**
364
441
  * <p>The Amazon Chime SDK messaging APIs in this section allow software developers to send
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import { ChimeSDKMessagingClient } from "./ChimeSDKMessagingClient";
3
7
  import {
4
8
  AssociateChannelFlowCommandInput,
@@ -917,6 +921,83 @@ export interface ChimeSDKMessaging {
917
921
  options: __HttpHandlerOptions,
918
922
  cb: (err: any, data?: UpdateChannelReadMarkerCommandOutput) => void
919
923
  ): void;
924
+ paginateListChannelBans(
925
+ args: ListChannelBansCommandInput,
926
+ paginationConfig?: Pick<
927
+ PaginationConfiguration,
928
+ Exclude<keyof PaginationConfiguration, "client">
929
+ >
930
+ ): Paginator<ListChannelBansCommandOutput>;
931
+ paginateListChannelFlows(
932
+ args: ListChannelFlowsCommandInput,
933
+ paginationConfig?: Pick<
934
+ PaginationConfiguration,
935
+ Exclude<keyof PaginationConfiguration, "client">
936
+ >
937
+ ): Paginator<ListChannelFlowsCommandOutput>;
938
+ paginateListChannelMemberships(
939
+ args: ListChannelMembershipsCommandInput,
940
+ paginationConfig?: Pick<
941
+ PaginationConfiguration,
942
+ Exclude<keyof PaginationConfiguration, "client">
943
+ >
944
+ ): Paginator<ListChannelMembershipsCommandOutput>;
945
+ paginateListChannelMembershipsForAppInstanceUser(
946
+ args: ListChannelMembershipsForAppInstanceUserCommandInput,
947
+ paginationConfig?: Pick<
948
+ PaginationConfiguration,
949
+ Exclude<keyof PaginationConfiguration, "client">
950
+ >
951
+ ): Paginator<ListChannelMembershipsForAppInstanceUserCommandOutput>;
952
+ paginateListChannelMessages(
953
+ args: ListChannelMessagesCommandInput,
954
+ paginationConfig?: Pick<
955
+ PaginationConfiguration,
956
+ Exclude<keyof PaginationConfiguration, "client">
957
+ >
958
+ ): Paginator<ListChannelMessagesCommandOutput>;
959
+ paginateListChannelModerators(
960
+ args: ListChannelModeratorsCommandInput,
961
+ paginationConfig?: Pick<
962
+ PaginationConfiguration,
963
+ Exclude<keyof PaginationConfiguration, "client">
964
+ >
965
+ ): Paginator<ListChannelModeratorsCommandOutput>;
966
+ paginateListChannels(
967
+ args: ListChannelsCommandInput,
968
+ paginationConfig?: Pick<
969
+ PaginationConfiguration,
970
+ Exclude<keyof PaginationConfiguration, "client">
971
+ >
972
+ ): Paginator<ListChannelsCommandOutput>;
973
+ paginateListChannelsAssociatedWithChannelFlow(
974
+ args: ListChannelsAssociatedWithChannelFlowCommandInput,
975
+ paginationConfig?: Pick<
976
+ PaginationConfiguration,
977
+ Exclude<keyof PaginationConfiguration, "client">
978
+ >
979
+ ): Paginator<ListChannelsAssociatedWithChannelFlowCommandOutput>;
980
+ paginateListChannelsModeratedByAppInstanceUser(
981
+ args: ListChannelsModeratedByAppInstanceUserCommandInput,
982
+ paginationConfig?: Pick<
983
+ PaginationConfiguration,
984
+ Exclude<keyof PaginationConfiguration, "client">
985
+ >
986
+ ): Paginator<ListChannelsModeratedByAppInstanceUserCommandOutput>;
987
+ paginateListSubChannels(
988
+ args: ListSubChannelsCommandInput,
989
+ paginationConfig?: Pick<
990
+ PaginationConfiguration,
991
+ Exclude<keyof PaginationConfiguration, "client">
992
+ >
993
+ ): Paginator<ListSubChannelsCommandOutput>;
994
+ paginateSearchChannels(
995
+ args: SearchChannelsCommandInput,
996
+ paginationConfig?: Pick<
997
+ PaginationConfiguration,
998
+ Exclude<keyof PaginationConfiguration, "client">
999
+ >
1000
+ ): Paginator<SearchChannelsCommandOutput>;
920
1001
  }
921
1002
  export declare class ChimeSDKMessaging
922
1003
  extends ChimeSDKMessagingClient
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.975.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-chime-sdk-messaging",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",