@aws-sdk/client-lex-model-building-service 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
@@ -1847,6 +1847,28 @@ class UntagResourceCommand extends smithyClient.Command
1847
1847
  .build() {
1848
1848
  }
1849
1849
 
1850
+ const paginateGetBotAliases = core.createPaginator(LexModelBuildingServiceClient, GetBotAliasesCommand, "nextToken", "nextToken", "maxResults");
1851
+
1852
+ const paginateGetBotChannelAssociations = core.createPaginator(LexModelBuildingServiceClient, GetBotChannelAssociationsCommand, "nextToken", "nextToken", "maxResults");
1853
+
1854
+ const paginateGetBots = core.createPaginator(LexModelBuildingServiceClient, GetBotsCommand, "nextToken", "nextToken", "maxResults");
1855
+
1856
+ const paginateGetBotVersions = core.createPaginator(LexModelBuildingServiceClient, GetBotVersionsCommand, "nextToken", "nextToken", "maxResults");
1857
+
1858
+ const paginateGetBuiltinIntents = core.createPaginator(LexModelBuildingServiceClient, GetBuiltinIntentsCommand, "nextToken", "nextToken", "maxResults");
1859
+
1860
+ const paginateGetBuiltinSlotTypes = core.createPaginator(LexModelBuildingServiceClient, GetBuiltinSlotTypesCommand, "nextToken", "nextToken", "maxResults");
1861
+
1862
+ const paginateGetIntents = core.createPaginator(LexModelBuildingServiceClient, GetIntentsCommand, "nextToken", "nextToken", "maxResults");
1863
+
1864
+ const paginateGetIntentVersions = core.createPaginator(LexModelBuildingServiceClient, GetIntentVersionsCommand, "nextToken", "nextToken", "maxResults");
1865
+
1866
+ const paginateGetMigrations = core.createPaginator(LexModelBuildingServiceClient, GetMigrationsCommand, "nextToken", "nextToken", "maxResults");
1867
+
1868
+ const paginateGetSlotTypes = core.createPaginator(LexModelBuildingServiceClient, GetSlotTypesCommand, "nextToken", "nextToken", "maxResults");
1869
+
1870
+ const paginateGetSlotTypeVersions = core.createPaginator(LexModelBuildingServiceClient, GetSlotTypeVersionsCommand, "nextToken", "nextToken", "maxResults");
1871
+
1850
1872
  const commands = {
1851
1873
  CreateBotVersionCommand,
1852
1874
  CreateIntentVersionCommand,
@@ -1891,31 +1913,22 @@ const commands = {
1891
1913
  TagResourceCommand,
1892
1914
  UntagResourceCommand,
1893
1915
  };
1916
+ const paginators = {
1917
+ paginateGetBotAliases,
1918
+ paginateGetBotChannelAssociations,
1919
+ paginateGetBots,
1920
+ paginateGetBotVersions,
1921
+ paginateGetBuiltinIntents,
1922
+ paginateGetBuiltinSlotTypes,
1923
+ paginateGetIntents,
1924
+ paginateGetIntentVersions,
1925
+ paginateGetMigrations,
1926
+ paginateGetSlotTypes,
1927
+ paginateGetSlotTypeVersions,
1928
+ };
1894
1929
  class LexModelBuildingService extends LexModelBuildingServiceClient {
1895
1930
  }
1896
- smithyClient.createAggregatedClient(commands, LexModelBuildingService);
1897
-
1898
- const paginateGetBotAliases = core.createPaginator(LexModelBuildingServiceClient, GetBotAliasesCommand, "nextToken", "nextToken", "maxResults");
1899
-
1900
- const paginateGetBotChannelAssociations = core.createPaginator(LexModelBuildingServiceClient, GetBotChannelAssociationsCommand, "nextToken", "nextToken", "maxResults");
1901
-
1902
- const paginateGetBots = core.createPaginator(LexModelBuildingServiceClient, GetBotsCommand, "nextToken", "nextToken", "maxResults");
1903
-
1904
- const paginateGetBotVersions = core.createPaginator(LexModelBuildingServiceClient, GetBotVersionsCommand, "nextToken", "nextToken", "maxResults");
1905
-
1906
- const paginateGetBuiltinIntents = core.createPaginator(LexModelBuildingServiceClient, GetBuiltinIntentsCommand, "nextToken", "nextToken", "maxResults");
1907
-
1908
- const paginateGetBuiltinSlotTypes = core.createPaginator(LexModelBuildingServiceClient, GetBuiltinSlotTypesCommand, "nextToken", "nextToken", "maxResults");
1909
-
1910
- const paginateGetIntents = core.createPaginator(LexModelBuildingServiceClient, GetIntentsCommand, "nextToken", "nextToken", "maxResults");
1911
-
1912
- const paginateGetIntentVersions = core.createPaginator(LexModelBuildingServiceClient, GetIntentVersionsCommand, "nextToken", "nextToken", "maxResults");
1913
-
1914
- const paginateGetMigrations = core.createPaginator(LexModelBuildingServiceClient, GetMigrationsCommand, "nextToken", "nextToken", "maxResults");
1915
-
1916
- const paginateGetSlotTypes = core.createPaginator(LexModelBuildingServiceClient, GetSlotTypesCommand, "nextToken", "nextToken", "maxResults");
1917
-
1918
- const paginateGetSlotTypeVersions = core.createPaginator(LexModelBuildingServiceClient, GetSlotTypeVersionsCommand, "nextToken", "nextToken", "maxResults");
1931
+ smithyClient.createAggregatedClient(commands, LexModelBuildingService, { paginators });
1919
1932
 
1920
1933
  const ContentType = {
1921
1934
  CUSTOM_PAYLOAD: "CustomPayload",
@@ -42,6 +42,17 @@ import { StartMigrationCommand, } from "./commands/StartMigrationCommand";
42
42
  import { TagResourceCommand } from "./commands/TagResourceCommand";
43
43
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
44
44
  import { LexModelBuildingServiceClient } from "./LexModelBuildingServiceClient";
45
+ import { paginateGetBotAliases } from "./pagination/GetBotAliasesPaginator";
46
+ import { paginateGetBotChannelAssociations } from "./pagination/GetBotChannelAssociationsPaginator";
47
+ import { paginateGetBots } from "./pagination/GetBotsPaginator";
48
+ import { paginateGetBotVersions } from "./pagination/GetBotVersionsPaginator";
49
+ import { paginateGetBuiltinIntents } from "./pagination/GetBuiltinIntentsPaginator";
50
+ import { paginateGetBuiltinSlotTypes } from "./pagination/GetBuiltinSlotTypesPaginator";
51
+ import { paginateGetIntents } from "./pagination/GetIntentsPaginator";
52
+ import { paginateGetIntentVersions } from "./pagination/GetIntentVersionsPaginator";
53
+ import { paginateGetMigrations } from "./pagination/GetMigrationsPaginator";
54
+ import { paginateGetSlotTypes } from "./pagination/GetSlotTypesPaginator";
55
+ import { paginateGetSlotTypeVersions } from "./pagination/GetSlotTypeVersionsPaginator";
45
56
  const commands = {
46
57
  CreateBotVersionCommand,
47
58
  CreateIntentVersionCommand,
@@ -86,6 +97,19 @@ const commands = {
86
97
  TagResourceCommand,
87
98
  UntagResourceCommand,
88
99
  };
100
+ const paginators = {
101
+ paginateGetBotAliases,
102
+ paginateGetBotChannelAssociations,
103
+ paginateGetBots,
104
+ paginateGetBotVersions,
105
+ paginateGetBuiltinIntents,
106
+ paginateGetBuiltinSlotTypes,
107
+ paginateGetIntents,
108
+ paginateGetIntentVersions,
109
+ paginateGetMigrations,
110
+ paginateGetSlotTypes,
111
+ paginateGetSlotTypeVersions,
112
+ };
89
113
  export class LexModelBuildingService extends LexModelBuildingServiceClient {
90
114
  }
91
- createAggregatedClient(commands, LexModelBuildingService);
115
+ createAggregatedClient(commands, LexModelBuildingService, { 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 { CreateBotVersionCommandInput, CreateBotVersionCommandOutput } from "./commands/CreateBotVersionCommand";
3
3
  import { CreateIntentVersionCommandInput, CreateIntentVersionCommandOutput } from "./commands/CreateIntentVersionCommand";
4
4
  import { CreateSlotTypeVersionCommandInput, CreateSlotTypeVersionCommandOutput } from "./commands/CreateSlotTypeVersionCommand";
@@ -301,6 +301,83 @@ export interface LexModelBuildingService {
301
301
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
302
302
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
303
303
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
304
+ /**
305
+ * @see {@link GetBotAliasesCommand}
306
+ * @param args - command input.
307
+ * @param paginationConfig - optional pagination config.
308
+ * @returns AsyncIterable of {@link GetBotAliasesCommandOutput}.
309
+ */
310
+ paginateGetBotAliases(args: GetBotAliasesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetBotAliasesCommandOutput>;
311
+ /**
312
+ * @see {@link GetBotChannelAssociationsCommand}
313
+ * @param args - command input.
314
+ * @param paginationConfig - optional pagination config.
315
+ * @returns AsyncIterable of {@link GetBotChannelAssociationsCommandOutput}.
316
+ */
317
+ paginateGetBotChannelAssociations(args: GetBotChannelAssociationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetBotChannelAssociationsCommandOutput>;
318
+ /**
319
+ * @see {@link GetBotsCommand}
320
+ * @param args - command input.
321
+ * @param paginationConfig - optional pagination config.
322
+ * @returns AsyncIterable of {@link GetBotsCommandOutput}.
323
+ */
324
+ paginateGetBots(args?: GetBotsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetBotsCommandOutput>;
325
+ /**
326
+ * @see {@link GetBotVersionsCommand}
327
+ * @param args - command input.
328
+ * @param paginationConfig - optional pagination config.
329
+ * @returns AsyncIterable of {@link GetBotVersionsCommandOutput}.
330
+ */
331
+ paginateGetBotVersions(args: GetBotVersionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetBotVersionsCommandOutput>;
332
+ /**
333
+ * @see {@link GetBuiltinIntentsCommand}
334
+ * @param args - command input.
335
+ * @param paginationConfig - optional pagination config.
336
+ * @returns AsyncIterable of {@link GetBuiltinIntentsCommandOutput}.
337
+ */
338
+ paginateGetBuiltinIntents(args?: GetBuiltinIntentsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetBuiltinIntentsCommandOutput>;
339
+ /**
340
+ * @see {@link GetBuiltinSlotTypesCommand}
341
+ * @param args - command input.
342
+ * @param paginationConfig - optional pagination config.
343
+ * @returns AsyncIterable of {@link GetBuiltinSlotTypesCommandOutput}.
344
+ */
345
+ paginateGetBuiltinSlotTypes(args?: GetBuiltinSlotTypesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetBuiltinSlotTypesCommandOutput>;
346
+ /**
347
+ * @see {@link GetIntentsCommand}
348
+ * @param args - command input.
349
+ * @param paginationConfig - optional pagination config.
350
+ * @returns AsyncIterable of {@link GetIntentsCommandOutput}.
351
+ */
352
+ paginateGetIntents(args?: GetIntentsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetIntentsCommandOutput>;
353
+ /**
354
+ * @see {@link GetIntentVersionsCommand}
355
+ * @param args - command input.
356
+ * @param paginationConfig - optional pagination config.
357
+ * @returns AsyncIterable of {@link GetIntentVersionsCommandOutput}.
358
+ */
359
+ paginateGetIntentVersions(args: GetIntentVersionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetIntentVersionsCommandOutput>;
360
+ /**
361
+ * @see {@link GetMigrationsCommand}
362
+ * @param args - command input.
363
+ * @param paginationConfig - optional pagination config.
364
+ * @returns AsyncIterable of {@link GetMigrationsCommandOutput}.
365
+ */
366
+ paginateGetMigrations(args?: GetMigrationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetMigrationsCommandOutput>;
367
+ /**
368
+ * @see {@link GetSlotTypesCommand}
369
+ * @param args - command input.
370
+ * @param paginationConfig - optional pagination config.
371
+ * @returns AsyncIterable of {@link GetSlotTypesCommandOutput}.
372
+ */
373
+ paginateGetSlotTypes(args?: GetSlotTypesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetSlotTypesCommandOutput>;
374
+ /**
375
+ * @see {@link GetSlotTypeVersionsCommand}
376
+ * @param args - command input.
377
+ * @param paginationConfig - optional pagination config.
378
+ * @returns AsyncIterable of {@link GetSlotTypeVersionsCommandOutput}.
379
+ */
380
+ paginateGetSlotTypeVersions(args: GetSlotTypeVersionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetSlotTypeVersionsCommandOutput>;
304
381
  }
305
382
  /**
306
383
  * <fullname>Amazon Lex Build-Time Actions</fullname>
@@ -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 {
3
7
  CreateBotVersionCommandInput,
4
8
  CreateBotVersionCommandOutput,
@@ -721,6 +725,83 @@ export interface LexModelBuildingService {
721
725
  options: __HttpHandlerOptions,
722
726
  cb: (err: any, data?: UntagResourceCommandOutput) => void
723
727
  ): void;
728
+ paginateGetBotAliases(
729
+ args: GetBotAliasesCommandInput,
730
+ paginationConfig?: Pick<
731
+ PaginationConfiguration,
732
+ Exclude<keyof PaginationConfiguration, "client">
733
+ >
734
+ ): Paginator<GetBotAliasesCommandOutput>;
735
+ paginateGetBotChannelAssociations(
736
+ args: GetBotChannelAssociationsCommandInput,
737
+ paginationConfig?: Pick<
738
+ PaginationConfiguration,
739
+ Exclude<keyof PaginationConfiguration, "client">
740
+ >
741
+ ): Paginator<GetBotChannelAssociationsCommandOutput>;
742
+ paginateGetBots(
743
+ args?: GetBotsCommandInput,
744
+ paginationConfig?: Pick<
745
+ PaginationConfiguration,
746
+ Exclude<keyof PaginationConfiguration, "client">
747
+ >
748
+ ): Paginator<GetBotsCommandOutput>;
749
+ paginateGetBotVersions(
750
+ args: GetBotVersionsCommandInput,
751
+ paginationConfig?: Pick<
752
+ PaginationConfiguration,
753
+ Exclude<keyof PaginationConfiguration, "client">
754
+ >
755
+ ): Paginator<GetBotVersionsCommandOutput>;
756
+ paginateGetBuiltinIntents(
757
+ args?: GetBuiltinIntentsCommandInput,
758
+ paginationConfig?: Pick<
759
+ PaginationConfiguration,
760
+ Exclude<keyof PaginationConfiguration, "client">
761
+ >
762
+ ): Paginator<GetBuiltinIntentsCommandOutput>;
763
+ paginateGetBuiltinSlotTypes(
764
+ args?: GetBuiltinSlotTypesCommandInput,
765
+ paginationConfig?: Pick<
766
+ PaginationConfiguration,
767
+ Exclude<keyof PaginationConfiguration, "client">
768
+ >
769
+ ): Paginator<GetBuiltinSlotTypesCommandOutput>;
770
+ paginateGetIntents(
771
+ args?: GetIntentsCommandInput,
772
+ paginationConfig?: Pick<
773
+ PaginationConfiguration,
774
+ Exclude<keyof PaginationConfiguration, "client">
775
+ >
776
+ ): Paginator<GetIntentsCommandOutput>;
777
+ paginateGetIntentVersions(
778
+ args: GetIntentVersionsCommandInput,
779
+ paginationConfig?: Pick<
780
+ PaginationConfiguration,
781
+ Exclude<keyof PaginationConfiguration, "client">
782
+ >
783
+ ): Paginator<GetIntentVersionsCommandOutput>;
784
+ paginateGetMigrations(
785
+ args?: GetMigrationsCommandInput,
786
+ paginationConfig?: Pick<
787
+ PaginationConfiguration,
788
+ Exclude<keyof PaginationConfiguration, "client">
789
+ >
790
+ ): Paginator<GetMigrationsCommandOutput>;
791
+ paginateGetSlotTypes(
792
+ args?: GetSlotTypesCommandInput,
793
+ paginationConfig?: Pick<
794
+ PaginationConfiguration,
795
+ Exclude<keyof PaginationConfiguration, "client">
796
+ >
797
+ ): Paginator<GetSlotTypesCommandOutput>;
798
+ paginateGetSlotTypeVersions(
799
+ args: GetSlotTypeVersionsCommandInput,
800
+ paginationConfig?: Pick<
801
+ PaginationConfiguration,
802
+ Exclude<keyof PaginationConfiguration, "client">
803
+ >
804
+ ): Paginator<GetSlotTypeVersionsCommandOutput>;
724
805
  }
725
806
  export declare class LexModelBuildingService
726
807
  extends LexModelBuildingServiceClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lex-model-building-service",
3
3
  "description": "AWS SDK for JavaScript Lex Model Building Service 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-lex-model-building-service",
@@ -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",