@aws-sdk/client-lex-models-v2 3.345.0 → 3.347.1

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 (152) hide show
  1. package/README.md +112 -0
  2. package/dist-cjs/LexModelsV2.js +28 -0
  3. package/dist-cjs/commands/CreateTestSetDiscrepancyReportCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteTestSetCommand.js +46 -0
  5. package/dist-cjs/commands/DescribeTestExecutionCommand.js +46 -0
  6. package/dist-cjs/commands/DescribeTestSetCommand.js +46 -0
  7. package/dist-cjs/commands/DescribeTestSetDiscrepancyReportCommand.js +46 -0
  8. package/dist-cjs/commands/DescribeTestSetGenerationCommand.js +46 -0
  9. package/dist-cjs/commands/GetTestExecutionArtifactsUrlCommand.js +46 -0
  10. package/dist-cjs/commands/ListTestExecutionResultItemsCommand.js +46 -0
  11. package/dist-cjs/commands/ListTestExecutionsCommand.js +46 -0
  12. package/dist-cjs/commands/ListTestSetRecordsCommand.js +46 -0
  13. package/dist-cjs/commands/ListTestSetsCommand.js +46 -0
  14. package/dist-cjs/commands/StartBotRecommendationCommand.js +3 -3
  15. package/dist-cjs/commands/StartImportCommand.js +2 -2
  16. package/dist-cjs/commands/StartTestExecutionCommand.js +46 -0
  17. package/dist-cjs/commands/StartTestSetGenerationCommand.js +46 -0
  18. package/dist-cjs/commands/UpdateTestSetCommand.js +46 -0
  19. package/dist-cjs/commands/index.js +14 -0
  20. package/dist-cjs/endpoint/ruleset.js +3 -3
  21. package/dist-cjs/models/models_0.js +52 -50
  22. package/dist-cjs/models/models_1.js +64 -1
  23. package/dist-cjs/pagination/ListTestExecutionResultItemsPaginator.js +29 -0
  24. package/dist-cjs/pagination/ListTestExecutionsPaginator.js +29 -0
  25. package/dist-cjs/pagination/ListTestSetRecordsPaginator.js +29 -0
  26. package/dist-cjs/pagination/ListTestSetsPaginator.js +29 -0
  27. package/dist-cjs/pagination/index.js +4 -0
  28. package/dist-cjs/protocols/Aws_restJson1.js +1395 -146
  29. package/dist-es/LexModelsV2.js +28 -0
  30. package/dist-es/commands/CreateTestSetDiscrepancyReportCommand.js +42 -0
  31. package/dist-es/commands/DeleteTestSetCommand.js +42 -0
  32. package/dist-es/commands/DescribeTestExecutionCommand.js +42 -0
  33. package/dist-es/commands/DescribeTestSetCommand.js +42 -0
  34. package/dist-es/commands/DescribeTestSetDiscrepancyReportCommand.js +42 -0
  35. package/dist-es/commands/DescribeTestSetGenerationCommand.js +42 -0
  36. package/dist-es/commands/GetTestExecutionArtifactsUrlCommand.js +42 -0
  37. package/dist-es/commands/ListTestExecutionResultItemsCommand.js +42 -0
  38. package/dist-es/commands/ListTestExecutionsCommand.js +42 -0
  39. package/dist-es/commands/ListTestSetRecordsCommand.js +42 -0
  40. package/dist-es/commands/ListTestSetsCommand.js +42 -0
  41. package/dist-es/commands/StartBotRecommendationCommand.js +1 -1
  42. package/dist-es/commands/StartImportCommand.js +1 -1
  43. package/dist-es/commands/StartTestExecutionCommand.js +42 -0
  44. package/dist-es/commands/StartTestSetGenerationCommand.js +42 -0
  45. package/dist-es/commands/UpdateTestSetCommand.js +42 -0
  46. package/dist-es/commands/index.js +14 -0
  47. package/dist-es/endpoint/ruleset.js +3 -3
  48. package/dist-es/models/models_0.js +50 -45
  49. package/dist-es/models/models_1.js +60 -0
  50. package/dist-es/pagination/ListTestExecutionResultItemsPaginator.js +25 -0
  51. package/dist-es/pagination/ListTestExecutionsPaginator.js +25 -0
  52. package/dist-es/pagination/ListTestSetRecordsPaginator.js +25 -0
  53. package/dist-es/pagination/ListTestSetsPaginator.js +25 -0
  54. package/dist-es/pagination/index.js +4 -0
  55. package/dist-es/protocols/Aws_restJson1.js +1360 -140
  56. package/dist-types/LexModelsV2.d.ts +98 -0
  57. package/dist-types/LexModelsV2Client.d.ts +16 -2
  58. package/dist-types/commands/CreateExportCommand.d.ts +8 -2
  59. package/dist-types/commands/CreateTestSetDiscrepancyReportCommand.d.ts +113 -0
  60. package/dist-types/commands/DeleteTestSetCommand.d.ts +96 -0
  61. package/dist-types/commands/DescribeExportCommand.d.ts +4 -1
  62. package/dist-types/commands/DescribeImportCommand.d.ts +18 -0
  63. package/dist-types/commands/DescribeTestExecutionCommand.d.ts +109 -0
  64. package/dist-types/commands/DescribeTestSetCommand.d.ts +105 -0
  65. package/dist-types/commands/DescribeTestSetDiscrepancyReportCommand.d.ts +122 -0
  66. package/dist-types/commands/DescribeTestSetGenerationCommand.d.ts +119 -0
  67. package/dist-types/commands/GetTestExecutionArtifactsUrlCommand.d.ts +93 -0
  68. package/dist-types/commands/ListBotAliasesCommand.d.ts +1 -1
  69. package/dist-types/commands/ListBotLocalesCommand.d.ts +1 -1
  70. package/dist-types/commands/ListBotRecommendationsCommand.d.ts +1 -1
  71. package/dist-types/commands/ListBotVersionsCommand.d.ts +1 -1
  72. package/dist-types/commands/ListBotsCommand.d.ts +1 -1
  73. package/dist-types/commands/ListBuiltInIntentsCommand.d.ts +1 -1
  74. package/dist-types/commands/ListBuiltInSlotTypesCommand.d.ts +1 -1
  75. package/dist-types/commands/ListCustomVocabularyItemsCommand.d.ts +1 -1
  76. package/dist-types/commands/ListExportsCommand.d.ts +5 -2
  77. package/dist-types/commands/ListImportsCommand.d.ts +2 -2
  78. package/dist-types/commands/ListIntentsCommand.d.ts +1 -1
  79. package/dist-types/commands/ListRecommendedIntentsCommand.d.ts +1 -1
  80. package/dist-types/commands/ListSlotTypesCommand.d.ts +1 -1
  81. package/dist-types/commands/ListSlotsCommand.d.ts +1 -1
  82. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  83. package/dist-types/commands/ListTestExecutionResultItemsCommand.d.ts +291 -0
  84. package/dist-types/commands/ListTestExecutionsCommand.d.ts +112 -0
  85. package/dist-types/commands/ListTestSetRecordsCommand.d.ts +180 -0
  86. package/dist-types/commands/ListTestSetsCommand.d.ts +111 -0
  87. package/dist-types/commands/SearchAssociatedTranscriptsCommand.d.ts +1 -1
  88. package/dist-types/commands/StartBotRecommendationCommand.d.ts +1 -1
  89. package/dist-types/commands/StartImportCommand.d.ts +37 -1
  90. package/dist-types/commands/StartTestExecutionCommand.d.ts +117 -0
  91. package/dist-types/commands/StartTestSetGenerationCommand.d.ts +144 -0
  92. package/dist-types/commands/StopBotRecommendationCommand.d.ts +1 -1
  93. package/dist-types/commands/TagResourceCommand.d.ts +1 -2
  94. package/dist-types/commands/UpdateExportCommand.d.ts +4 -1
  95. package/dist-types/commands/UpdateTestSetCommand.d.ts +113 -0
  96. package/dist-types/commands/index.d.ts +14 -0
  97. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  98. package/dist-types/models/models_0.d.ts +1054 -1714
  99. package/dist-types/models/models_1.d.ts +2465 -18
  100. package/dist-types/pagination/ListTestExecutionResultItemsPaginator.d.ts +7 -0
  101. package/dist-types/pagination/ListTestExecutionsPaginator.d.ts +7 -0
  102. package/dist-types/pagination/ListTestSetRecordsPaginator.d.ts +7 -0
  103. package/dist-types/pagination/ListTestSetsPaginator.d.ts +7 -0
  104. package/dist-types/pagination/index.d.ts +4 -0
  105. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  106. package/dist-types/ts3.4/LexModelsV2.d.ts +238 -0
  107. package/dist-types/ts3.4/LexModelsV2Client.d.ts +86 -2
  108. package/dist-types/ts3.4/commands/CreateTestSetDiscrepancyReportCommand.d.ts +42 -0
  109. package/dist-types/ts3.4/commands/DeleteTestSetCommand.d.ts +33 -0
  110. package/dist-types/ts3.4/commands/DescribeTestExecutionCommand.d.ts +42 -0
  111. package/dist-types/ts3.4/commands/DescribeTestSetCommand.d.ts +38 -0
  112. package/dist-types/ts3.4/commands/DescribeTestSetDiscrepancyReportCommand.d.ts +42 -0
  113. package/dist-types/ts3.4/commands/DescribeTestSetGenerationCommand.d.ts +42 -0
  114. package/dist-types/ts3.4/commands/GetTestExecutionArtifactsUrlCommand.d.ts +42 -0
  115. package/dist-types/ts3.4/commands/ListBotAliasesCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/ListBotLocalesCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/ListBotRecommendationsCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/ListBotVersionsCommand.d.ts +1 -1
  119. package/dist-types/ts3.4/commands/ListBotsCommand.d.ts +1 -1
  120. package/dist-types/ts3.4/commands/ListBuiltInIntentsCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/ListBuiltInSlotTypesCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/ListCustomVocabularyItemsCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/ListIntentsCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/ListRecommendedIntentsCommand.d.ts +1 -1
  127. package/dist-types/ts3.4/commands/ListSlotTypesCommand.d.ts +1 -1
  128. package/dist-types/ts3.4/commands/ListSlotsCommand.d.ts +1 -1
  129. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  130. package/dist-types/ts3.4/commands/ListTestExecutionResultItemsCommand.d.ts +42 -0
  131. package/dist-types/ts3.4/commands/ListTestExecutionsCommand.d.ts +39 -0
  132. package/dist-types/ts3.4/commands/ListTestSetRecordsCommand.d.ts +39 -0
  133. package/dist-types/ts3.4/commands/ListTestSetsCommand.d.ts +35 -0
  134. package/dist-types/ts3.4/commands/SearchAssociatedTranscriptsCommand.d.ts +1 -1
  135. package/dist-types/ts3.4/commands/StartBotRecommendationCommand.d.ts +1 -1
  136. package/dist-types/ts3.4/commands/StartImportCommand.d.ts +1 -1
  137. package/dist-types/ts3.4/commands/StartTestExecutionCommand.d.ts +39 -0
  138. package/dist-types/ts3.4/commands/StartTestSetGenerationCommand.d.ts +42 -0
  139. package/dist-types/ts3.4/commands/StopBotRecommendationCommand.d.ts +1 -1
  140. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -2
  141. package/dist-types/ts3.4/commands/UpdateTestSetCommand.d.ts +38 -0
  142. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  143. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  144. package/dist-types/ts3.4/models/models_0.d.ts +293 -362
  145. package/dist-types/ts3.4/models/models_1.d.ts +646 -0
  146. package/dist-types/ts3.4/pagination/ListTestExecutionResultItemsPaginator.d.ts +11 -0
  147. package/dist-types/ts3.4/pagination/ListTestExecutionsPaginator.d.ts +11 -0
  148. package/dist-types/ts3.4/pagination/ListTestSetRecordsPaginator.d.ts +11 -0
  149. package/dist-types/ts3.4/pagination/ListTestSetsPaginator.d.ts +11 -0
  150. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  151. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  152. package/package.json +29 -29
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListTestExecutions = void 0;
4
+ const ListTestExecutionsCommand_1 = require("../commands/ListTestExecutionsCommand");
5
+ const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListTestExecutionsCommand_1.ListTestExecutionsCommand(input), ...args);
8
+ };
9
+ async function* paginateListTestExecutions(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListTestExecutions = paginateListTestExecutions;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListTestSetRecords = void 0;
4
+ const ListTestSetRecordsCommand_1 = require("../commands/ListTestSetRecordsCommand");
5
+ const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListTestSetRecordsCommand_1.ListTestSetRecordsCommand(input), ...args);
8
+ };
9
+ async function* paginateListTestSetRecords(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListTestSetRecords = paginateListTestSetRecords;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListTestSets = void 0;
4
+ const ListTestSetsCommand_1 = require("../commands/ListTestSetsCommand");
5
+ const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListTestSetsCommand_1.ListTestSetsCommand(input), ...args);
8
+ };
9
+ async function* paginateListTestSets(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListTestSets = paginateListTestSets;
@@ -17,3 +17,7 @@ tslib_1.__exportStar(require("./ListIntentsPaginator"), exports);
17
17
  tslib_1.__exportStar(require("./ListRecommendedIntentsPaginator"), exports);
18
18
  tslib_1.__exportStar(require("./ListSlotTypesPaginator"), exports);
19
19
  tslib_1.__exportStar(require("./ListSlotsPaginator"), exports);
20
+ tslib_1.__exportStar(require("./ListTestExecutionResultItemsPaginator"), exports);
21
+ tslib_1.__exportStar(require("./ListTestExecutionsPaginator"), exports);
22
+ tslib_1.__exportStar(require("./ListTestSetRecordsPaginator"), exports);
23
+ tslib_1.__exportStar(require("./ListTestSetsPaginator"), exports);