@aws-sdk/client-lex-models-v2 3.477.0 → 3.478.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 (105) hide show
  1. package/dist-cjs/pagination/ListAggregatedUtterancesPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListBotAliasesPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListBotLocalesPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListBotRecommendationsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListBotResourceGenerationsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListBotVersionsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListBotsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListBuiltInIntentsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListBuiltInSlotTypesPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListCustomVocabularyItemsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListExportsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListImportsPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListIntentMetricsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListIntentStageMetricsPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListIntentsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListRecommendedIntentsPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListSessionAnalyticsDataPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListSessionMetricsPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListSlotTypesPaginator.js +2 -24
  20. package/dist-cjs/pagination/ListSlotsPaginator.js +2 -24
  21. package/dist-cjs/pagination/ListTestExecutionResultItemsPaginator.js +2 -24
  22. package/dist-cjs/pagination/ListTestExecutionsPaginator.js +2 -24
  23. package/dist-cjs/pagination/ListTestSetRecordsPaginator.js +2 -24
  24. package/dist-cjs/pagination/ListTestSetsPaginator.js +2 -24
  25. package/dist-cjs/pagination/ListUtteranceAnalyticsDataPaginator.js +2 -24
  26. package/dist-cjs/pagination/ListUtteranceMetricsPaginator.js +2 -24
  27. package/dist-es/pagination/ListAggregatedUtterancesPaginator.js +2 -23
  28. package/dist-es/pagination/ListBotAliasesPaginator.js +2 -23
  29. package/dist-es/pagination/ListBotLocalesPaginator.js +2 -23
  30. package/dist-es/pagination/ListBotRecommendationsPaginator.js +2 -23
  31. package/dist-es/pagination/ListBotResourceGenerationsPaginator.js +2 -23
  32. package/dist-es/pagination/ListBotVersionsPaginator.js +2 -23
  33. package/dist-es/pagination/ListBotsPaginator.js +2 -23
  34. package/dist-es/pagination/ListBuiltInIntentsPaginator.js +2 -23
  35. package/dist-es/pagination/ListBuiltInSlotTypesPaginator.js +2 -23
  36. package/dist-es/pagination/ListCustomVocabularyItemsPaginator.js +2 -23
  37. package/dist-es/pagination/ListExportsPaginator.js +2 -23
  38. package/dist-es/pagination/ListImportsPaginator.js +2 -23
  39. package/dist-es/pagination/ListIntentMetricsPaginator.js +2 -23
  40. package/dist-es/pagination/ListIntentStageMetricsPaginator.js +2 -23
  41. package/dist-es/pagination/ListIntentsPaginator.js +2 -23
  42. package/dist-es/pagination/ListRecommendedIntentsPaginator.js +2 -23
  43. package/dist-es/pagination/ListSessionAnalyticsDataPaginator.js +2 -23
  44. package/dist-es/pagination/ListSessionMetricsPaginator.js +2 -23
  45. package/dist-es/pagination/ListSlotTypesPaginator.js +2 -23
  46. package/dist-es/pagination/ListSlotsPaginator.js +2 -23
  47. package/dist-es/pagination/ListTestExecutionResultItemsPaginator.js +2 -23
  48. package/dist-es/pagination/ListTestExecutionsPaginator.js +2 -23
  49. package/dist-es/pagination/ListTestSetRecordsPaginator.js +2 -23
  50. package/dist-es/pagination/ListTestSetsPaginator.js +2 -23
  51. package/dist-es/pagination/ListUtteranceAnalyticsDataPaginator.js +2 -23
  52. package/dist-es/pagination/ListUtteranceMetricsPaginator.js +2 -23
  53. package/dist-types/pagination/ListAggregatedUtterancesPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListBotAliasesPaginator.d.ts +1 -1
  55. package/dist-types/pagination/ListBotLocalesPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListBotRecommendationsPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListBotResourceGenerationsPaginator.d.ts +1 -1
  58. package/dist-types/pagination/ListBotVersionsPaginator.d.ts +1 -1
  59. package/dist-types/pagination/ListBotsPaginator.d.ts +1 -1
  60. package/dist-types/pagination/ListBuiltInIntentsPaginator.d.ts +1 -1
  61. package/dist-types/pagination/ListBuiltInSlotTypesPaginator.d.ts +1 -1
  62. package/dist-types/pagination/ListCustomVocabularyItemsPaginator.d.ts +1 -1
  63. package/dist-types/pagination/ListExportsPaginator.d.ts +1 -1
  64. package/dist-types/pagination/ListImportsPaginator.d.ts +1 -1
  65. package/dist-types/pagination/ListIntentMetricsPaginator.d.ts +1 -1
  66. package/dist-types/pagination/ListIntentStageMetricsPaginator.d.ts +1 -1
  67. package/dist-types/pagination/ListIntentsPaginator.d.ts +1 -1
  68. package/dist-types/pagination/ListRecommendedIntentsPaginator.d.ts +1 -1
  69. package/dist-types/pagination/ListSessionAnalyticsDataPaginator.d.ts +1 -1
  70. package/dist-types/pagination/ListSessionMetricsPaginator.d.ts +1 -1
  71. package/dist-types/pagination/ListSlotTypesPaginator.d.ts +1 -1
  72. package/dist-types/pagination/ListSlotsPaginator.d.ts +1 -1
  73. package/dist-types/pagination/ListTestExecutionResultItemsPaginator.d.ts +1 -1
  74. package/dist-types/pagination/ListTestExecutionsPaginator.d.ts +1 -1
  75. package/dist-types/pagination/ListTestSetRecordsPaginator.d.ts +1 -1
  76. package/dist-types/pagination/ListTestSetsPaginator.d.ts +1 -1
  77. package/dist-types/pagination/ListUtteranceAnalyticsDataPaginator.d.ts +1 -1
  78. package/dist-types/pagination/ListUtteranceMetricsPaginator.d.ts +1 -1
  79. package/dist-types/ts3.4/pagination/ListAggregatedUtterancesPaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/ListBotAliasesPaginator.d.ts +3 -3
  81. package/dist-types/ts3.4/pagination/ListBotLocalesPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/ListBotRecommendationsPaginator.d.ts +3 -3
  83. package/dist-types/ts3.4/pagination/ListBotResourceGenerationsPaginator.d.ts +3 -3
  84. package/dist-types/ts3.4/pagination/ListBotVersionsPaginator.d.ts +3 -3
  85. package/dist-types/ts3.4/pagination/ListBotsPaginator.d.ts +3 -3
  86. package/dist-types/ts3.4/pagination/ListBuiltInIntentsPaginator.d.ts +3 -3
  87. package/dist-types/ts3.4/pagination/ListBuiltInSlotTypesPaginator.d.ts +3 -3
  88. package/dist-types/ts3.4/pagination/ListCustomVocabularyItemsPaginator.d.ts +3 -3
  89. package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +3 -3
  90. package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +3 -3
  91. package/dist-types/ts3.4/pagination/ListIntentMetricsPaginator.d.ts +3 -3
  92. package/dist-types/ts3.4/pagination/ListIntentStageMetricsPaginator.d.ts +3 -3
  93. package/dist-types/ts3.4/pagination/ListIntentsPaginator.d.ts +3 -3
  94. package/dist-types/ts3.4/pagination/ListRecommendedIntentsPaginator.d.ts +3 -3
  95. package/dist-types/ts3.4/pagination/ListSessionAnalyticsDataPaginator.d.ts +3 -3
  96. package/dist-types/ts3.4/pagination/ListSessionMetricsPaginator.d.ts +3 -3
  97. package/dist-types/ts3.4/pagination/ListSlotTypesPaginator.d.ts +3 -3
  98. package/dist-types/ts3.4/pagination/ListSlotsPaginator.d.ts +3 -3
  99. package/dist-types/ts3.4/pagination/ListTestExecutionResultItemsPaginator.d.ts +3 -3
  100. package/dist-types/ts3.4/pagination/ListTestExecutionsPaginator.d.ts +3 -3
  101. package/dist-types/ts3.4/pagination/ListTestSetRecordsPaginator.d.ts +3 -3
  102. package/dist-types/ts3.4/pagination/ListTestSetsPaginator.d.ts +3 -3
  103. package/dist-types/ts3.4/pagination/ListUtteranceAnalyticsDataPaginator.d.ts +3 -3
  104. package/dist-types/ts3.4/pagination/ListUtteranceMetricsPaginator.d.ts +3 -3
  105. package/package.json +5 -5
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListIntentsCommand } from "../commands/ListIntentsCommand";
2
3
  import { LexModelsV2Client } from "../LexModelsV2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListIntentsCommand(input), ...args);
5
- };
6
- export async function* paginateListIntents(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof LexModelsV2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListIntents = createPaginator(LexModelsV2Client, ListIntentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListRecommendedIntentsCommand, } from "../commands/ListRecommendedIntentsCommand";
2
3
  import { LexModelsV2Client } from "../LexModelsV2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListRecommendedIntentsCommand(input), ...args);
5
- };
6
- export async function* paginateListRecommendedIntents(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof LexModelsV2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListRecommendedIntents = createPaginator(LexModelsV2Client, ListRecommendedIntentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSessionAnalyticsDataCommand, } from "../commands/ListSessionAnalyticsDataCommand";
2
3
  import { LexModelsV2Client } from "../LexModelsV2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSessionAnalyticsDataCommand(input), ...args);
5
- };
6
- export async function* paginateListSessionAnalyticsData(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof LexModelsV2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSessionAnalyticsData = createPaginator(LexModelsV2Client, ListSessionAnalyticsDataCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSessionMetricsCommand, } from "../commands/ListSessionMetricsCommand";
2
3
  import { LexModelsV2Client } from "../LexModelsV2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSessionMetricsCommand(input), ...args);
5
- };
6
- export async function* paginateListSessionMetrics(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof LexModelsV2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSessionMetrics = createPaginator(LexModelsV2Client, ListSessionMetricsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSlotTypesCommand, } from "../commands/ListSlotTypesCommand";
2
3
  import { LexModelsV2Client } from "../LexModelsV2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSlotTypesCommand(input), ...args);
5
- };
6
- export async function* paginateListSlotTypes(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof LexModelsV2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSlotTypes = createPaginator(LexModelsV2Client, ListSlotTypesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSlotsCommand } from "../commands/ListSlotsCommand";
2
3
  import { LexModelsV2Client } from "../LexModelsV2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSlotsCommand(input), ...args);
5
- };
6
- export async function* paginateListSlots(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof LexModelsV2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSlots = createPaginator(LexModelsV2Client, ListSlotsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTestExecutionResultItemsCommand, } from "../commands/ListTestExecutionResultItemsCommand";
2
3
  import { LexModelsV2Client } from "../LexModelsV2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTestExecutionResultItemsCommand(input), ...args);
5
- };
6
- export async function* paginateListTestExecutionResultItems(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof LexModelsV2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListTestExecutionResultItems = createPaginator(LexModelsV2Client, ListTestExecutionResultItemsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTestExecutionsCommand, } from "../commands/ListTestExecutionsCommand";
2
3
  import { LexModelsV2Client } from "../LexModelsV2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTestExecutionsCommand(input), ...args);
5
- };
6
- export async function* paginateListTestExecutions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof LexModelsV2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListTestExecutions = createPaginator(LexModelsV2Client, ListTestExecutionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTestSetRecordsCommand, } from "../commands/ListTestSetRecordsCommand";
2
3
  import { LexModelsV2Client } from "../LexModelsV2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTestSetRecordsCommand(input), ...args);
5
- };
6
- export async function* paginateListTestSetRecords(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof LexModelsV2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListTestSetRecords = createPaginator(LexModelsV2Client, ListTestSetRecordsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTestSetsCommand, } from "../commands/ListTestSetsCommand";
2
3
  import { LexModelsV2Client } from "../LexModelsV2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTestSetsCommand(input), ...args);
5
- };
6
- export async function* paginateListTestSets(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof LexModelsV2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListTestSets = createPaginator(LexModelsV2Client, ListTestSetsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListUtteranceAnalyticsDataCommand, } from "../commands/ListUtteranceAnalyticsDataCommand";
2
3
  import { LexModelsV2Client } from "../LexModelsV2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListUtteranceAnalyticsDataCommand(input), ...args);
5
- };
6
- export async function* paginateListUtteranceAnalyticsData(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof LexModelsV2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListUtteranceAnalyticsData = createPaginator(LexModelsV2Client, ListUtteranceAnalyticsDataCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListUtteranceMetricsCommand, } from "../commands/ListUtteranceMetricsCommand";
2
3
  import { LexModelsV2Client } from "../LexModelsV2Client";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListUtteranceMetricsCommand(input), ...args);
5
- };
6
- export async function* paginateListUtteranceMetrics(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof LexModelsV2Client) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListUtteranceMetrics = createPaginator(LexModelsV2Client, ListUtteranceMetricsCommand, "nextToken", "nextToken", "maxResults");
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAggregatedUtterances(config: LexModelsV2PaginationConfiguration, input: ListAggregatedUtterancesCommandInput, ...additionalArguments: any): Paginator<ListAggregatedUtterancesCommandOutput>;
7
+ export declare const paginateListAggregatedUtterances: (config: LexModelsV2PaginationConfiguration, input: ListAggregatedUtterancesCommandInput, ...rest: any[]) => Paginator<ListAggregatedUtterancesCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListBotAliases(config: LexModelsV2PaginationConfiguration, input: ListBotAliasesCommandInput, ...additionalArguments: any): Paginator<ListBotAliasesCommandOutput>;
7
+ export declare const paginateListBotAliases: (config: LexModelsV2PaginationConfiguration, input: ListBotAliasesCommandInput, ...rest: any[]) => Paginator<ListBotAliasesCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListBotLocales(config: LexModelsV2PaginationConfiguration, input: ListBotLocalesCommandInput, ...additionalArguments: any): Paginator<ListBotLocalesCommandOutput>;
7
+ export declare const paginateListBotLocales: (config: LexModelsV2PaginationConfiguration, input: ListBotLocalesCommandInput, ...rest: any[]) => Paginator<ListBotLocalesCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListBotRecommendations(config: LexModelsV2PaginationConfiguration, input: ListBotRecommendationsCommandInput, ...additionalArguments: any): Paginator<ListBotRecommendationsCommandOutput>;
7
+ export declare const paginateListBotRecommendations: (config: LexModelsV2PaginationConfiguration, input: ListBotRecommendationsCommandInput, ...rest: any[]) => Paginator<ListBotRecommendationsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListBotResourceGenerations(config: LexModelsV2PaginationConfiguration, input: ListBotResourceGenerationsCommandInput, ...additionalArguments: any): Paginator<ListBotResourceGenerationsCommandOutput>;
7
+ export declare const paginateListBotResourceGenerations: (config: LexModelsV2PaginationConfiguration, input: ListBotResourceGenerationsCommandInput, ...rest: any[]) => Paginator<ListBotResourceGenerationsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListBotVersions(config: LexModelsV2PaginationConfiguration, input: ListBotVersionsCommandInput, ...additionalArguments: any): Paginator<ListBotVersionsCommandOutput>;
7
+ export declare const paginateListBotVersions: (config: LexModelsV2PaginationConfiguration, input: ListBotVersionsCommandInput, ...rest: any[]) => Paginator<ListBotVersionsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListBots(config: LexModelsV2PaginationConfiguration, input: ListBotsCommandInput, ...additionalArguments: any): Paginator<ListBotsCommandOutput>;
7
+ export declare const paginateListBots: (config: LexModelsV2PaginationConfiguration, input: ListBotsCommandInput, ...rest: any[]) => Paginator<ListBotsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListBuiltInIntents(config: LexModelsV2PaginationConfiguration, input: ListBuiltInIntentsCommandInput, ...additionalArguments: any): Paginator<ListBuiltInIntentsCommandOutput>;
7
+ export declare const paginateListBuiltInIntents: (config: LexModelsV2PaginationConfiguration, input: ListBuiltInIntentsCommandInput, ...rest: any[]) => Paginator<ListBuiltInIntentsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListBuiltInSlotTypes(config: LexModelsV2PaginationConfiguration, input: ListBuiltInSlotTypesCommandInput, ...additionalArguments: any): Paginator<ListBuiltInSlotTypesCommandOutput>;
7
+ export declare const paginateListBuiltInSlotTypes: (config: LexModelsV2PaginationConfiguration, input: ListBuiltInSlotTypesCommandInput, ...rest: any[]) => Paginator<ListBuiltInSlotTypesCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListCustomVocabularyItems(config: LexModelsV2PaginationConfiguration, input: ListCustomVocabularyItemsCommandInput, ...additionalArguments: any): Paginator<ListCustomVocabularyItemsCommandOutput>;
7
+ export declare const paginateListCustomVocabularyItems: (config: LexModelsV2PaginationConfiguration, input: ListCustomVocabularyItemsCommandInput, ...rest: any[]) => Paginator<ListCustomVocabularyItemsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListExports(config: LexModelsV2PaginationConfiguration, input: ListExportsCommandInput, ...additionalArguments: any): Paginator<ListExportsCommandOutput>;
7
+ export declare const paginateListExports: (config: LexModelsV2PaginationConfiguration, input: ListExportsCommandInput, ...rest: any[]) => Paginator<ListExportsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListImports(config: LexModelsV2PaginationConfiguration, input: ListImportsCommandInput, ...additionalArguments: any): Paginator<ListImportsCommandOutput>;
7
+ export declare const paginateListImports: (config: LexModelsV2PaginationConfiguration, input: ListImportsCommandInput, ...rest: any[]) => Paginator<ListImportsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListIntentMetrics(config: LexModelsV2PaginationConfiguration, input: ListIntentMetricsCommandInput, ...additionalArguments: any): Paginator<ListIntentMetricsCommandOutput>;
7
+ export declare const paginateListIntentMetrics: (config: LexModelsV2PaginationConfiguration, input: ListIntentMetricsCommandInput, ...rest: any[]) => Paginator<ListIntentMetricsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListIntentStageMetrics(config: LexModelsV2PaginationConfiguration, input: ListIntentStageMetricsCommandInput, ...additionalArguments: any): Paginator<ListIntentStageMetricsCommandOutput>;
7
+ export declare const paginateListIntentStageMetrics: (config: LexModelsV2PaginationConfiguration, input: ListIntentStageMetricsCommandInput, ...rest: any[]) => Paginator<ListIntentStageMetricsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListIntents(config: LexModelsV2PaginationConfiguration, input: ListIntentsCommandInput, ...additionalArguments: any): Paginator<ListIntentsCommandOutput>;
7
+ export declare const paginateListIntents: (config: LexModelsV2PaginationConfiguration, input: ListIntentsCommandInput, ...rest: any[]) => Paginator<ListIntentsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListRecommendedIntents(config: LexModelsV2PaginationConfiguration, input: ListRecommendedIntentsCommandInput, ...additionalArguments: any): Paginator<ListRecommendedIntentsCommandOutput>;
7
+ export declare const paginateListRecommendedIntents: (config: LexModelsV2PaginationConfiguration, input: ListRecommendedIntentsCommandInput, ...rest: any[]) => Paginator<ListRecommendedIntentsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSessionAnalyticsData(config: LexModelsV2PaginationConfiguration, input: ListSessionAnalyticsDataCommandInput, ...additionalArguments: any): Paginator<ListSessionAnalyticsDataCommandOutput>;
7
+ export declare const paginateListSessionAnalyticsData: (config: LexModelsV2PaginationConfiguration, input: ListSessionAnalyticsDataCommandInput, ...rest: any[]) => Paginator<ListSessionAnalyticsDataCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSessionMetrics(config: LexModelsV2PaginationConfiguration, input: ListSessionMetricsCommandInput, ...additionalArguments: any): Paginator<ListSessionMetricsCommandOutput>;
7
+ export declare const paginateListSessionMetrics: (config: LexModelsV2PaginationConfiguration, input: ListSessionMetricsCommandInput, ...rest: any[]) => Paginator<ListSessionMetricsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSlotTypes(config: LexModelsV2PaginationConfiguration, input: ListSlotTypesCommandInput, ...additionalArguments: any): Paginator<ListSlotTypesCommandOutput>;
7
+ export declare const paginateListSlotTypes: (config: LexModelsV2PaginationConfiguration, input: ListSlotTypesCommandInput, ...rest: any[]) => Paginator<ListSlotTypesCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSlots(config: LexModelsV2PaginationConfiguration, input: ListSlotsCommandInput, ...additionalArguments: any): Paginator<ListSlotsCommandOutput>;
7
+ export declare const paginateListSlots: (config: LexModelsV2PaginationConfiguration, input: ListSlotsCommandInput, ...rest: any[]) => Paginator<ListSlotsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTestExecutionResultItems(config: LexModelsV2PaginationConfiguration, input: ListTestExecutionResultItemsCommandInput, ...additionalArguments: any): Paginator<ListTestExecutionResultItemsCommandOutput>;
7
+ export declare const paginateListTestExecutionResultItems: (config: LexModelsV2PaginationConfiguration, input: ListTestExecutionResultItemsCommandInput, ...rest: any[]) => Paginator<ListTestExecutionResultItemsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTestExecutions(config: LexModelsV2PaginationConfiguration, input: ListTestExecutionsCommandInput, ...additionalArguments: any): Paginator<ListTestExecutionsCommandOutput>;
7
+ export declare const paginateListTestExecutions: (config: LexModelsV2PaginationConfiguration, input: ListTestExecutionsCommandInput, ...rest: any[]) => Paginator<ListTestExecutionsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTestSetRecords(config: LexModelsV2PaginationConfiguration, input: ListTestSetRecordsCommandInput, ...additionalArguments: any): Paginator<ListTestSetRecordsCommandOutput>;
7
+ export declare const paginateListTestSetRecords: (config: LexModelsV2PaginationConfiguration, input: ListTestSetRecordsCommandInput, ...rest: any[]) => Paginator<ListTestSetRecordsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTestSets(config: LexModelsV2PaginationConfiguration, input: ListTestSetsCommandInput, ...additionalArguments: any): Paginator<ListTestSetsCommandOutput>;
7
+ export declare const paginateListTestSets: (config: LexModelsV2PaginationConfiguration, input: ListTestSetsCommandInput, ...rest: any[]) => Paginator<ListTestSetsCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListUtteranceAnalyticsData(config: LexModelsV2PaginationConfiguration, input: ListUtteranceAnalyticsDataCommandInput, ...additionalArguments: any): Paginator<ListUtteranceAnalyticsDataCommandOutput>;
7
+ export declare const paginateListUtteranceAnalyticsData: (config: LexModelsV2PaginationConfiguration, input: ListUtteranceAnalyticsDataCommandInput, ...rest: any[]) => Paginator<ListUtteranceAnalyticsDataCommandOutput>;
@@ -4,4 +4,4 @@ import { LexModelsV2PaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListUtteranceMetrics(config: LexModelsV2PaginationConfiguration, input: ListUtteranceMetricsCommandInput, ...additionalArguments: any): Paginator<ListUtteranceMetricsCommandOutput>;
7
+ export declare const paginateListUtteranceMetrics: (config: LexModelsV2PaginationConfiguration, input: ListUtteranceMetricsCommandInput, ...rest: any[]) => Paginator<ListUtteranceMetricsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAggregatedUtterancesCommandOutput,
5
5
  } from "../commands/ListAggregatedUtterancesCommand";
6
6
  import { LexModelsV2PaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAggregatedUtterances(
7
+ export declare const paginateListAggregatedUtterances: (
8
8
  config: LexModelsV2PaginationConfiguration,
9
9
  input: ListAggregatedUtterancesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAggregatedUtterancesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAggregatedUtterancesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListBotAliasesCommandOutput,
5
5
  } from "../commands/ListBotAliasesCommand";
6
6
  import { LexModelsV2PaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListBotAliases(
7
+ export declare const paginateListBotAliases: (
8
8
  config: LexModelsV2PaginationConfiguration,
9
9
  input: ListBotAliasesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListBotAliasesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListBotAliasesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListBotLocalesCommandOutput,
5
5
  } from "../commands/ListBotLocalesCommand";
6
6
  import { LexModelsV2PaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListBotLocales(
7
+ export declare const paginateListBotLocales: (
8
8
  config: LexModelsV2PaginationConfiguration,
9
9
  input: ListBotLocalesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListBotLocalesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListBotLocalesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListBotRecommendationsCommandOutput,
5
5
  } from "../commands/ListBotRecommendationsCommand";
6
6
  import { LexModelsV2PaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListBotRecommendations(
7
+ export declare const paginateListBotRecommendations: (
8
8
  config: LexModelsV2PaginationConfiguration,
9
9
  input: ListBotRecommendationsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListBotRecommendationsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListBotRecommendationsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListBotResourceGenerationsCommandOutput,
5
5
  } from "../commands/ListBotResourceGenerationsCommand";
6
6
  import { LexModelsV2PaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListBotResourceGenerations(
7
+ export declare const paginateListBotResourceGenerations: (
8
8
  config: LexModelsV2PaginationConfiguration,
9
9
  input: ListBotResourceGenerationsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListBotResourceGenerationsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListBotResourceGenerationsCommandOutput>;