@aws-sdk/client-lex-models-v2 3.344.0 → 3.347.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 (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
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_ListExportsCommand = exports.se_ListCustomVocabularyItemsCommand = exports.se_ListBuiltInSlotTypesCommand = exports.se_ListBuiltInIntentsCommand = exports.se_ListBotVersionsCommand = exports.se_ListBotsCommand = exports.se_ListBotRecommendationsCommand = exports.se_ListBotLocalesCommand = exports.se_ListBotAliasesCommand = exports.se_ListAggregatedUtterancesCommand = exports.se_DescribeSlotTypeCommand = exports.se_DescribeSlotCommand = exports.se_DescribeResourcePolicyCommand = exports.se_DescribeIntentCommand = exports.se_DescribeImportCommand = exports.se_DescribeExportCommand = exports.se_DescribeCustomVocabularyMetadataCommand = exports.se_DescribeBotVersionCommand = exports.se_DescribeBotRecommendationCommand = exports.se_DescribeBotLocaleCommand = exports.se_DescribeBotAliasCommand = exports.se_DescribeBotCommand = exports.se_DeleteUtterancesCommand = exports.se_DeleteSlotTypeCommand = exports.se_DeleteSlotCommand = exports.se_DeleteResourcePolicyStatementCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteIntentCommand = exports.se_DeleteImportCommand = exports.se_DeleteExportCommand = exports.se_DeleteCustomVocabularyCommand = exports.se_DeleteBotVersionCommand = exports.se_DeleteBotLocaleCommand = exports.se_DeleteBotAliasCommand = exports.se_DeleteBotCommand = exports.se_CreateUploadUrlCommand = exports.se_CreateSlotTypeCommand = exports.se_CreateSlotCommand = exports.se_CreateResourcePolicyStatementCommand = exports.se_CreateResourcePolicyCommand = exports.se_CreateIntentCommand = exports.se_CreateExportCommand = exports.se_CreateBotVersionCommand = exports.se_CreateBotLocaleCommand = exports.se_CreateBotAliasCommand = exports.se_CreateBotCommand = exports.se_BuildBotLocaleCommand = exports.se_BatchUpdateCustomVocabularyItemCommand = exports.se_BatchDeleteCustomVocabularyItemCommand = exports.se_BatchCreateCustomVocabularyItemCommand = void 0;
4
- exports.de_DescribeBotCommand = exports.de_DeleteUtterancesCommand = exports.de_DeleteSlotTypeCommand = exports.de_DeleteSlotCommand = exports.de_DeleteResourcePolicyStatementCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteIntentCommand = exports.de_DeleteImportCommand = exports.de_DeleteExportCommand = exports.de_DeleteCustomVocabularyCommand = exports.de_DeleteBotVersionCommand = exports.de_DeleteBotLocaleCommand = exports.de_DeleteBotAliasCommand = exports.de_DeleteBotCommand = exports.de_CreateUploadUrlCommand = exports.de_CreateSlotTypeCommand = exports.de_CreateSlotCommand = exports.de_CreateResourcePolicyStatementCommand = exports.de_CreateResourcePolicyCommand = exports.de_CreateIntentCommand = exports.de_CreateExportCommand = exports.de_CreateBotVersionCommand = exports.de_CreateBotLocaleCommand = exports.de_CreateBotAliasCommand = exports.de_CreateBotCommand = exports.de_BuildBotLocaleCommand = exports.de_BatchUpdateCustomVocabularyItemCommand = exports.de_BatchDeleteCustomVocabularyItemCommand = exports.de_BatchCreateCustomVocabularyItemCommand = exports.se_UpdateSlotTypeCommand = exports.se_UpdateSlotCommand = exports.se_UpdateResourcePolicyCommand = exports.se_UpdateIntentCommand = exports.se_UpdateExportCommand = exports.se_UpdateBotRecommendationCommand = exports.se_UpdateBotLocaleCommand = exports.se_UpdateBotAliasCommand = exports.se_UpdateBotCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopBotRecommendationCommand = exports.se_StartImportCommand = exports.se_StartBotRecommendationCommand = exports.se_SearchAssociatedTranscriptsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSlotTypesCommand = exports.se_ListSlotsCommand = exports.se_ListRecommendedIntentsCommand = exports.se_ListIntentsCommand = exports.se_ListImportsCommand = void 0;
5
- exports.de_UpdateSlotTypeCommand = exports.de_UpdateSlotCommand = exports.de_UpdateResourcePolicyCommand = exports.de_UpdateIntentCommand = exports.de_UpdateExportCommand = exports.de_UpdateBotRecommendationCommand = exports.de_UpdateBotLocaleCommand = exports.de_UpdateBotAliasCommand = exports.de_UpdateBotCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopBotRecommendationCommand = exports.de_StartImportCommand = exports.de_StartBotRecommendationCommand = exports.de_SearchAssociatedTranscriptsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSlotTypesCommand = exports.de_ListSlotsCommand = exports.de_ListRecommendedIntentsCommand = exports.de_ListIntentsCommand = exports.de_ListImportsCommand = exports.de_ListExportsCommand = exports.de_ListCustomVocabularyItemsCommand = exports.de_ListBuiltInSlotTypesCommand = exports.de_ListBuiltInIntentsCommand = exports.de_ListBotVersionsCommand = exports.de_ListBotsCommand = exports.de_ListBotRecommendationsCommand = exports.de_ListBotLocalesCommand = exports.de_ListBotAliasesCommand = exports.de_ListAggregatedUtterancesCommand = exports.de_DescribeSlotTypeCommand = exports.de_DescribeSlotCommand = exports.de_DescribeResourcePolicyCommand = exports.de_DescribeIntentCommand = exports.de_DescribeImportCommand = exports.de_DescribeExportCommand = exports.de_DescribeCustomVocabularyMetadataCommand = exports.de_DescribeBotVersionCommand = exports.de_DescribeBotRecommendationCommand = exports.de_DescribeBotLocaleCommand = exports.de_DescribeBotAliasCommand = void 0;
3
+ exports.se_ListBotLocalesCommand = exports.se_ListBotAliasesCommand = exports.se_ListAggregatedUtterancesCommand = exports.se_GetTestExecutionArtifactsUrlCommand = exports.se_DescribeTestSetGenerationCommand = exports.se_DescribeTestSetDiscrepancyReportCommand = exports.se_DescribeTestSetCommand = exports.se_DescribeTestExecutionCommand = exports.se_DescribeSlotTypeCommand = exports.se_DescribeSlotCommand = exports.se_DescribeResourcePolicyCommand = exports.se_DescribeIntentCommand = exports.se_DescribeImportCommand = exports.se_DescribeExportCommand = exports.se_DescribeCustomVocabularyMetadataCommand = exports.se_DescribeBotVersionCommand = exports.se_DescribeBotRecommendationCommand = exports.se_DescribeBotLocaleCommand = exports.se_DescribeBotAliasCommand = exports.se_DescribeBotCommand = exports.se_DeleteUtterancesCommand = exports.se_DeleteTestSetCommand = exports.se_DeleteSlotTypeCommand = exports.se_DeleteSlotCommand = exports.se_DeleteResourcePolicyStatementCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteIntentCommand = exports.se_DeleteImportCommand = exports.se_DeleteExportCommand = exports.se_DeleteCustomVocabularyCommand = exports.se_DeleteBotVersionCommand = exports.se_DeleteBotLocaleCommand = exports.se_DeleteBotAliasCommand = exports.se_DeleteBotCommand = exports.se_CreateUploadUrlCommand = exports.se_CreateTestSetDiscrepancyReportCommand = exports.se_CreateSlotTypeCommand = exports.se_CreateSlotCommand = exports.se_CreateResourcePolicyStatementCommand = exports.se_CreateResourcePolicyCommand = exports.se_CreateIntentCommand = exports.se_CreateExportCommand = exports.se_CreateBotVersionCommand = exports.se_CreateBotLocaleCommand = exports.se_CreateBotAliasCommand = exports.se_CreateBotCommand = exports.se_BuildBotLocaleCommand = exports.se_BatchUpdateCustomVocabularyItemCommand = exports.se_BatchDeleteCustomVocabularyItemCommand = exports.se_BatchCreateCustomVocabularyItemCommand = void 0;
4
+ exports.de_CreateTestSetDiscrepancyReportCommand = exports.de_CreateSlotTypeCommand = exports.de_CreateSlotCommand = exports.de_CreateResourcePolicyStatementCommand = exports.de_CreateResourcePolicyCommand = exports.de_CreateIntentCommand = exports.de_CreateExportCommand = exports.de_CreateBotVersionCommand = exports.de_CreateBotLocaleCommand = exports.de_CreateBotAliasCommand = exports.de_CreateBotCommand = exports.de_BuildBotLocaleCommand = exports.de_BatchUpdateCustomVocabularyItemCommand = exports.de_BatchDeleteCustomVocabularyItemCommand = exports.de_BatchCreateCustomVocabularyItemCommand = exports.se_UpdateTestSetCommand = exports.se_UpdateSlotTypeCommand = exports.se_UpdateSlotCommand = exports.se_UpdateResourcePolicyCommand = exports.se_UpdateIntentCommand = exports.se_UpdateExportCommand = exports.se_UpdateBotRecommendationCommand = exports.se_UpdateBotLocaleCommand = exports.se_UpdateBotAliasCommand = exports.se_UpdateBotCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopBotRecommendationCommand = exports.se_StartTestSetGenerationCommand = exports.se_StartTestExecutionCommand = exports.se_StartImportCommand = exports.se_StartBotRecommendationCommand = exports.se_SearchAssociatedTranscriptsCommand = exports.se_ListTestSetsCommand = exports.se_ListTestSetRecordsCommand = exports.se_ListTestExecutionsCommand = exports.se_ListTestExecutionResultItemsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSlotTypesCommand = exports.se_ListSlotsCommand = exports.se_ListRecommendedIntentsCommand = exports.se_ListIntentsCommand = exports.se_ListImportsCommand = exports.se_ListExportsCommand = exports.se_ListCustomVocabularyItemsCommand = exports.se_ListBuiltInSlotTypesCommand = exports.se_ListBuiltInIntentsCommand = exports.se_ListBotVersionsCommand = exports.se_ListBotsCommand = exports.se_ListBotRecommendationsCommand = void 0;
5
+ exports.de_ListTestExecutionsCommand = exports.de_ListTestExecutionResultItemsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSlotTypesCommand = exports.de_ListSlotsCommand = exports.de_ListRecommendedIntentsCommand = exports.de_ListIntentsCommand = exports.de_ListImportsCommand = exports.de_ListExportsCommand = exports.de_ListCustomVocabularyItemsCommand = exports.de_ListBuiltInSlotTypesCommand = exports.de_ListBuiltInIntentsCommand = exports.de_ListBotVersionsCommand = exports.de_ListBotsCommand = exports.de_ListBotRecommendationsCommand = exports.de_ListBotLocalesCommand = exports.de_ListBotAliasesCommand = exports.de_ListAggregatedUtterancesCommand = exports.de_GetTestExecutionArtifactsUrlCommand = exports.de_DescribeTestSetGenerationCommand = exports.de_DescribeTestSetDiscrepancyReportCommand = exports.de_DescribeTestSetCommand = exports.de_DescribeTestExecutionCommand = exports.de_DescribeSlotTypeCommand = exports.de_DescribeSlotCommand = exports.de_DescribeResourcePolicyCommand = exports.de_DescribeIntentCommand = exports.de_DescribeImportCommand = exports.de_DescribeExportCommand = exports.de_DescribeCustomVocabularyMetadataCommand = exports.de_DescribeBotVersionCommand = exports.de_DescribeBotRecommendationCommand = exports.de_DescribeBotLocaleCommand = exports.de_DescribeBotAliasCommand = exports.de_DescribeBotCommand = exports.de_DeleteUtterancesCommand = exports.de_DeleteTestSetCommand = exports.de_DeleteSlotTypeCommand = exports.de_DeleteSlotCommand = exports.de_DeleteResourcePolicyStatementCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteIntentCommand = exports.de_DeleteImportCommand = exports.de_DeleteExportCommand = exports.de_DeleteCustomVocabularyCommand = exports.de_DeleteBotVersionCommand = exports.de_DeleteBotLocaleCommand = exports.de_DeleteBotAliasCommand = exports.de_DeleteBotCommand = exports.de_CreateUploadUrlCommand = void 0;
6
+ exports.de_UpdateTestSetCommand = exports.de_UpdateSlotTypeCommand = exports.de_UpdateSlotCommand = exports.de_UpdateResourcePolicyCommand = exports.de_UpdateIntentCommand = exports.de_UpdateExportCommand = exports.de_UpdateBotRecommendationCommand = exports.de_UpdateBotLocaleCommand = exports.de_UpdateBotAliasCommand = exports.de_UpdateBotCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopBotRecommendationCommand = exports.de_StartTestSetGenerationCommand = exports.de_StartTestExecutionCommand = exports.de_StartImportCommand = exports.de_StartBotRecommendationCommand = exports.de_SearchAssociatedTranscriptsCommand = exports.de_ListTestSetsCommand = exports.de_ListTestSetRecordsCommand = void 0;
6
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
8
  const protocol_http_1 = require("@smithy/protocol-http");
8
9
  const LexModelsV2ServiceException_1 = require("../models/LexModelsV2ServiceException");
@@ -383,6 +384,28 @@ const se_CreateSlotTypeCommand = async (input, context) => {
383
384
  });
384
385
  };
385
386
  exports.se_CreateSlotTypeCommand = se_CreateSlotTypeCommand;
387
+ const se_CreateTestSetDiscrepancyReportCommand = async (input, context) => {
388
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
389
+ const headers = {
390
+ "content-type": "application/json",
391
+ };
392
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}/testsetdiscrepancy";
393
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testSetId", () => input.testSetId, "{testSetId}", false);
394
+ let body;
395
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
396
+ target: (_) => (0, smithy_client_1._json)(_),
397
+ }));
398
+ return new protocol_http_1.HttpRequest({
399
+ protocol,
400
+ hostname,
401
+ port,
402
+ method: "POST",
403
+ headers,
404
+ path: resolvedPath,
405
+ body,
406
+ });
407
+ };
408
+ exports.se_CreateTestSetDiscrepancyReportCommand = se_CreateTestSetDiscrepancyReportCommand;
386
409
  const se_CreateUploadUrlCommand = async (input, context) => {
387
410
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
388
411
  const headers = {
@@ -665,6 +688,23 @@ const se_DeleteSlotTypeCommand = async (input, context) => {
665
688
  });
666
689
  };
667
690
  exports.se_DeleteSlotTypeCommand = se_DeleteSlotTypeCommand;
691
+ const se_DeleteTestSetCommand = async (input, context) => {
692
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
693
+ const headers = {};
694
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}";
695
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testSetId", () => input.testSetId, "{testSetId}", false);
696
+ let body;
697
+ return new protocol_http_1.HttpRequest({
698
+ protocol,
699
+ hostname,
700
+ port,
701
+ method: "DELETE",
702
+ headers,
703
+ path: resolvedPath,
704
+ body,
705
+ });
706
+ };
707
+ exports.se_DeleteTestSetCommand = se_DeleteTestSetCommand;
668
708
  const se_DeleteUtterancesCommand = async (input, context) => {
669
709
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
670
710
  const headers = {};
@@ -916,6 +956,93 @@ const se_DescribeSlotTypeCommand = async (input, context) => {
916
956
  });
917
957
  };
918
958
  exports.se_DescribeSlotTypeCommand = se_DescribeSlotTypeCommand;
959
+ const se_DescribeTestExecutionCommand = async (input, context) => {
960
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
961
+ const headers = {};
962
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testexecutions/{testExecutionId}";
963
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
964
+ let body;
965
+ return new protocol_http_1.HttpRequest({
966
+ protocol,
967
+ hostname,
968
+ port,
969
+ method: "GET",
970
+ headers,
971
+ path: resolvedPath,
972
+ body,
973
+ });
974
+ };
975
+ exports.se_DescribeTestExecutionCommand = se_DescribeTestExecutionCommand;
976
+ const se_DescribeTestSetCommand = async (input, context) => {
977
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
978
+ const headers = {};
979
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}";
980
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testSetId", () => input.testSetId, "{testSetId}", false);
981
+ let body;
982
+ return new protocol_http_1.HttpRequest({
983
+ protocol,
984
+ hostname,
985
+ port,
986
+ method: "GET",
987
+ headers,
988
+ path: resolvedPath,
989
+ body,
990
+ });
991
+ };
992
+ exports.se_DescribeTestSetCommand = se_DescribeTestSetCommand;
993
+ const se_DescribeTestSetDiscrepancyReportCommand = async (input, context) => {
994
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
995
+ const headers = {};
996
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
997
+ "/testsetdiscrepancy/{testSetDiscrepancyReportId}";
998
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testSetDiscrepancyReportId", () => input.testSetDiscrepancyReportId, "{testSetDiscrepancyReportId}", false);
999
+ let body;
1000
+ return new protocol_http_1.HttpRequest({
1001
+ protocol,
1002
+ hostname,
1003
+ port,
1004
+ method: "GET",
1005
+ headers,
1006
+ path: resolvedPath,
1007
+ body,
1008
+ });
1009
+ };
1010
+ exports.se_DescribeTestSetDiscrepancyReportCommand = se_DescribeTestSetDiscrepancyReportCommand;
1011
+ const se_DescribeTestSetGenerationCommand = async (input, context) => {
1012
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1013
+ const headers = {};
1014
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsetgenerations/{testSetGenerationId}";
1015
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testSetGenerationId", () => input.testSetGenerationId, "{testSetGenerationId}", false);
1016
+ let body;
1017
+ return new protocol_http_1.HttpRequest({
1018
+ protocol,
1019
+ hostname,
1020
+ port,
1021
+ method: "GET",
1022
+ headers,
1023
+ path: resolvedPath,
1024
+ body,
1025
+ });
1026
+ };
1027
+ exports.se_DescribeTestSetGenerationCommand = se_DescribeTestSetGenerationCommand;
1028
+ const se_GetTestExecutionArtifactsUrlCommand = async (input, context) => {
1029
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1030
+ const headers = {};
1031
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1032
+ "/testexecutions/{testExecutionId}/artifacturl";
1033
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
1034
+ let body;
1035
+ return new protocol_http_1.HttpRequest({
1036
+ protocol,
1037
+ hostname,
1038
+ port,
1039
+ method: "GET",
1040
+ headers,
1041
+ path: resolvedPath,
1042
+ body,
1043
+ });
1044
+ };
1045
+ exports.se_GetTestExecutionArtifactsUrlCommand = se_GetTestExecutionArtifactsUrlCommand;
919
1046
  const se_ListAggregatedUtterancesCommand = async (input, context) => {
920
1047
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
921
1048
  const headers = {
@@ -1326,6 +1453,99 @@ const se_ListTagsForResourceCommand = async (input, context) => {
1326
1453
  });
1327
1454
  };
1328
1455
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1456
+ const se_ListTestExecutionResultItemsCommand = async (input, context) => {
1457
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1458
+ const headers = {
1459
+ "content-type": "application/json",
1460
+ };
1461
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testexecutions/{testExecutionId}/results";
1462
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testExecutionId", () => input.testExecutionId, "{testExecutionId}", false);
1463
+ let body;
1464
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1465
+ maxResults: [],
1466
+ nextToken: [],
1467
+ resultFilterBy: (_) => (0, smithy_client_1._json)(_),
1468
+ }));
1469
+ return new protocol_http_1.HttpRequest({
1470
+ protocol,
1471
+ hostname,
1472
+ port,
1473
+ method: "POST",
1474
+ headers,
1475
+ path: resolvedPath,
1476
+ body,
1477
+ });
1478
+ };
1479
+ exports.se_ListTestExecutionResultItemsCommand = se_ListTestExecutionResultItemsCommand;
1480
+ const se_ListTestExecutionsCommand = async (input, context) => {
1481
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1482
+ const headers = {
1483
+ "content-type": "application/json",
1484
+ };
1485
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testexecutions";
1486
+ let body;
1487
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1488
+ maxResults: [],
1489
+ nextToken: [],
1490
+ sortBy: (_) => (0, smithy_client_1._json)(_),
1491
+ }));
1492
+ return new protocol_http_1.HttpRequest({
1493
+ protocol,
1494
+ hostname,
1495
+ port,
1496
+ method: "POST",
1497
+ headers,
1498
+ path: resolvedPath,
1499
+ body,
1500
+ });
1501
+ };
1502
+ exports.se_ListTestExecutionsCommand = se_ListTestExecutionsCommand;
1503
+ const se_ListTestSetRecordsCommand = async (input, context) => {
1504
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1505
+ const headers = {
1506
+ "content-type": "application/json",
1507
+ };
1508
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}/records";
1509
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testSetId", () => input.testSetId, "{testSetId}", false);
1510
+ let body;
1511
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1512
+ maxResults: [],
1513
+ nextToken: [],
1514
+ }));
1515
+ return new protocol_http_1.HttpRequest({
1516
+ protocol,
1517
+ hostname,
1518
+ port,
1519
+ method: "POST",
1520
+ headers,
1521
+ path: resolvedPath,
1522
+ body,
1523
+ });
1524
+ };
1525
+ exports.se_ListTestSetRecordsCommand = se_ListTestSetRecordsCommand;
1526
+ const se_ListTestSetsCommand = async (input, context) => {
1527
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1528
+ const headers = {
1529
+ "content-type": "application/json",
1530
+ };
1531
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets";
1532
+ let body;
1533
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1534
+ maxResults: [],
1535
+ nextToken: [],
1536
+ sortBy: (_) => (0, smithy_client_1._json)(_),
1537
+ }));
1538
+ return new protocol_http_1.HttpRequest({
1539
+ protocol,
1540
+ hostname,
1541
+ port,
1542
+ method: "POST",
1543
+ headers,
1544
+ path: resolvedPath,
1545
+ body,
1546
+ });
1547
+ };
1548
+ exports.se_ListTestSetsCommand = se_ListTestSetsCommand;
1329
1549
  const se_SearchAssociatedTranscriptsCommand = async (input, context) => {
1330
1550
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1331
1551
  const headers = {
@@ -1405,6 +1625,56 @@ const se_StartImportCommand = async (input, context) => {
1405
1625
  });
1406
1626
  };
1407
1627
  exports.se_StartImportCommand = se_StartImportCommand;
1628
+ const se_StartTestExecutionCommand = async (input, context) => {
1629
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1630
+ const headers = {
1631
+ "content-type": "application/json",
1632
+ };
1633
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}/testexecutions";
1634
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testSetId", () => input.testSetId, "{testSetId}", false);
1635
+ let body;
1636
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1637
+ apiMode: [],
1638
+ target: (_) => (0, smithy_client_1._json)(_),
1639
+ testExecutionModality: [],
1640
+ }));
1641
+ return new protocol_http_1.HttpRequest({
1642
+ protocol,
1643
+ hostname,
1644
+ port,
1645
+ method: "POST",
1646
+ headers,
1647
+ path: resolvedPath,
1648
+ body,
1649
+ });
1650
+ };
1651
+ exports.se_StartTestExecutionCommand = se_StartTestExecutionCommand;
1652
+ const se_StartTestSetGenerationCommand = async (input, context) => {
1653
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1654
+ const headers = {
1655
+ "content-type": "application/json",
1656
+ };
1657
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsetgenerations";
1658
+ let body;
1659
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1660
+ description: [],
1661
+ generationDataSource: (_) => se_TestSetGenerationDataSource(_, context),
1662
+ roleArn: [],
1663
+ storageLocation: (_) => (0, smithy_client_1._json)(_),
1664
+ testSetName: [],
1665
+ testSetTags: (_) => (0, smithy_client_1._json)(_),
1666
+ }));
1667
+ return new protocol_http_1.HttpRequest({
1668
+ protocol,
1669
+ hostname,
1670
+ port,
1671
+ method: "PUT",
1672
+ headers,
1673
+ path: resolvedPath,
1674
+ body,
1675
+ });
1676
+ };
1677
+ exports.se_StartTestSetGenerationCommand = se_StartTestSetGenerationCommand;
1408
1678
  const se_StopBotRecommendationCommand = async (input, context) => {
1409
1679
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1410
1680
  const headers = {};
@@ -1732,6 +2002,29 @@ const se_UpdateSlotTypeCommand = async (input, context) => {
1732
2002
  });
1733
2003
  };
1734
2004
  exports.se_UpdateSlotTypeCommand = se_UpdateSlotTypeCommand;
2005
+ const se_UpdateTestSetCommand = async (input, context) => {
2006
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2007
+ const headers = {
2008
+ "content-type": "application/json",
2009
+ };
2010
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/testsets/{testSetId}";
2011
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "testSetId", () => input.testSetId, "{testSetId}", false);
2012
+ let body;
2013
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
2014
+ description: [],
2015
+ testSetName: [],
2016
+ }));
2017
+ return new protocol_http_1.HttpRequest({
2018
+ protocol,
2019
+ hostname,
2020
+ port,
2021
+ method: "PUT",
2022
+ headers,
2023
+ path: resolvedPath,
2024
+ body,
2025
+ });
2026
+ };
2027
+ exports.se_UpdateTestSetCommand = se_UpdateTestSetCommand;
1735
2028
  const de_BatchCreateCustomVocabularyItemCommand = async (output, context) => {
1736
2029
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1737
2030
  return de_BatchCreateCustomVocabularyItemCommandError(output, context);
@@ -2507,23 +2800,25 @@ const de_CreateSlotTypeCommandError = async (output, context) => {
2507
2800
  });
2508
2801
  }
2509
2802
  };
2510
- const de_CreateUploadUrlCommand = async (output, context) => {
2511
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2512
- return de_CreateUploadUrlCommandError(output, context);
2803
+ const de_CreateTestSetDiscrepancyReportCommand = async (output, context) => {
2804
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2805
+ return de_CreateTestSetDiscrepancyReportCommandError(output, context);
2513
2806
  }
2514
2807
  const contents = (0, smithy_client_1.map)({
2515
2808
  $metadata: deserializeMetadata(output),
2516
2809
  });
2517
2810
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2518
2811
  const doc = (0, smithy_client_1.take)(data, {
2519
- importId: smithy_client_1.expectString,
2520
- uploadUrl: smithy_client_1.expectString,
2812
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2813
+ target: smithy_client_1._json,
2814
+ testSetDiscrepancyReportId: smithy_client_1.expectString,
2815
+ testSetId: smithy_client_1.expectString,
2521
2816
  });
2522
2817
  Object.assign(contents, doc);
2523
2818
  return contents;
2524
2819
  };
2525
- exports.de_CreateUploadUrlCommand = de_CreateUploadUrlCommand;
2526
- const de_CreateUploadUrlCommandError = async (output, context) => {
2820
+ exports.de_CreateTestSetDiscrepancyReportCommand = de_CreateTestSetDiscrepancyReportCommand;
2821
+ const de_CreateTestSetDiscrepancyReportCommandError = async (output, context) => {
2527
2822
  const parsedOutput = {
2528
2823
  ...output,
2529
2824
  body: await parseErrorBody(output.body, context),
@@ -2539,6 +2834,9 @@ const de_CreateUploadUrlCommandError = async (output, context) => {
2539
2834
  case "ResourceNotFoundException":
2540
2835
  case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
2541
2836
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2837
+ case "ServiceQuotaExceededException":
2838
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
2839
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2542
2840
  case "ThrottlingException":
2543
2841
  case "com.amazonaws.lexmodelsv2#ThrottlingException":
2544
2842
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -2554,23 +2852,23 @@ const de_CreateUploadUrlCommandError = async (output, context) => {
2554
2852
  });
2555
2853
  }
2556
2854
  };
2557
- const de_DeleteBotCommand = async (output, context) => {
2558
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2559
- return de_DeleteBotCommandError(output, context);
2855
+ const de_CreateUploadUrlCommand = async (output, context) => {
2856
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2857
+ return de_CreateUploadUrlCommandError(output, context);
2560
2858
  }
2561
2859
  const contents = (0, smithy_client_1.map)({
2562
2860
  $metadata: deserializeMetadata(output),
2563
2861
  });
2564
2862
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2565
2863
  const doc = (0, smithy_client_1.take)(data, {
2566
- botId: smithy_client_1.expectString,
2567
- botStatus: smithy_client_1.expectString,
2864
+ importId: smithy_client_1.expectString,
2865
+ uploadUrl: smithy_client_1.expectString,
2568
2866
  });
2569
2867
  Object.assign(contents, doc);
2570
2868
  return contents;
2571
2869
  };
2572
- exports.de_DeleteBotCommand = de_DeleteBotCommand;
2573
- const de_DeleteBotCommandError = async (output, context) => {
2870
+ exports.de_CreateUploadUrlCommand = de_CreateUploadUrlCommand;
2871
+ const de_CreateUploadUrlCommandError = async (output, context) => {
2574
2872
  const parsedOutput = {
2575
2873
  ...output,
2576
2874
  body: await parseErrorBody(output.body, context),
@@ -2583,7 +2881,54 @@ const de_DeleteBotCommandError = async (output, context) => {
2583
2881
  case "InternalServerException":
2584
2882
  case "com.amazonaws.lexmodelsv2#InternalServerException":
2585
2883
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2586
- case "PreconditionFailedException":
2884
+ case "ResourceNotFoundException":
2885
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
2886
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2887
+ case "ThrottlingException":
2888
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
2889
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2890
+ case "ValidationException":
2891
+ case "com.amazonaws.lexmodelsv2#ValidationException":
2892
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2893
+ default:
2894
+ const parsedBody = parsedOutput.body;
2895
+ return throwDefaultError({
2896
+ output,
2897
+ parsedBody,
2898
+ errorCode,
2899
+ });
2900
+ }
2901
+ };
2902
+ const de_DeleteBotCommand = async (output, context) => {
2903
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2904
+ return de_DeleteBotCommandError(output, context);
2905
+ }
2906
+ const contents = (0, smithy_client_1.map)({
2907
+ $metadata: deserializeMetadata(output),
2908
+ });
2909
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2910
+ const doc = (0, smithy_client_1.take)(data, {
2911
+ botId: smithy_client_1.expectString,
2912
+ botStatus: smithy_client_1.expectString,
2913
+ });
2914
+ Object.assign(contents, doc);
2915
+ return contents;
2916
+ };
2917
+ exports.de_DeleteBotCommand = de_DeleteBotCommand;
2918
+ const de_DeleteBotCommandError = async (output, context) => {
2919
+ const parsedOutput = {
2920
+ ...output,
2921
+ body: await parseErrorBody(output.body, context),
2922
+ };
2923
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2924
+ switch (errorCode) {
2925
+ case "ConflictException":
2926
+ case "com.amazonaws.lexmodelsv2#ConflictException":
2927
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2928
+ case "InternalServerException":
2929
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
2930
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2931
+ case "PreconditionFailedException":
2587
2932
  case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
2588
2933
  throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
2589
2934
  case "ServiceQuotaExceededException":
@@ -3127,6 +3472,51 @@ const de_DeleteSlotTypeCommandError = async (output, context) => {
3127
3472
  });
3128
3473
  }
3129
3474
  };
3475
+ const de_DeleteTestSetCommand = async (output, context) => {
3476
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
3477
+ return de_DeleteTestSetCommandError(output, context);
3478
+ }
3479
+ const contents = (0, smithy_client_1.map)({
3480
+ $metadata: deserializeMetadata(output),
3481
+ });
3482
+ await collectBody(output.body, context);
3483
+ return contents;
3484
+ };
3485
+ exports.de_DeleteTestSetCommand = de_DeleteTestSetCommand;
3486
+ const de_DeleteTestSetCommandError = async (output, context) => {
3487
+ const parsedOutput = {
3488
+ ...output,
3489
+ body: await parseErrorBody(output.body, context),
3490
+ };
3491
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3492
+ switch (errorCode) {
3493
+ case "ConflictException":
3494
+ case "com.amazonaws.lexmodelsv2#ConflictException":
3495
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3496
+ case "InternalServerException":
3497
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
3498
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3499
+ case "PreconditionFailedException":
3500
+ case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
3501
+ throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
3502
+ case "ServiceQuotaExceededException":
3503
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
3504
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3505
+ case "ThrottlingException":
3506
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
3507
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3508
+ case "ValidationException":
3509
+ case "com.amazonaws.lexmodelsv2#ValidationException":
3510
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3511
+ default:
3512
+ const parsedBody = parsedOutput.body;
3513
+ return throwDefaultError({
3514
+ output,
3515
+ parsedBody,
3516
+ errorCode,
3517
+ });
3518
+ }
3519
+ };
3130
3520
  const de_DeleteUtterancesCommand = async (output, context) => {
3131
3521
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3132
3522
  return de_DeleteUtterancesCommandError(output, context);
@@ -3825,31 +4215,31 @@ const de_DescribeSlotTypeCommandError = async (output, context) => {
3825
4215
  });
3826
4216
  }
3827
4217
  };
3828
- const de_ListAggregatedUtterancesCommand = async (output, context) => {
4218
+ const de_DescribeTestExecutionCommand = async (output, context) => {
3829
4219
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3830
- return de_ListAggregatedUtterancesCommandError(output, context);
4220
+ return de_DescribeTestExecutionCommandError(output, context);
3831
4221
  }
3832
4222
  const contents = (0, smithy_client_1.map)({
3833
4223
  $metadata: deserializeMetadata(output),
3834
4224
  });
3835
4225
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3836
4226
  const doc = (0, smithy_client_1.take)(data, {
3837
- aggregatedUtterancesSummaries: (_) => de_AggregatedUtterancesSummaryList(_, context),
3838
- aggregationDuration: smithy_client_1._json,
3839
- aggregationLastRefreshedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3840
- aggregationWindowEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3841
- aggregationWindowStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3842
- botAliasId: smithy_client_1.expectString,
3843
- botId: smithy_client_1.expectString,
3844
- botVersion: smithy_client_1.expectString,
3845
- localeId: smithy_client_1.expectString,
3846
- nextToken: smithy_client_1.expectString,
4227
+ apiMode: smithy_client_1.expectString,
4228
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4229
+ failureReasons: smithy_client_1._json,
4230
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4231
+ target: smithy_client_1._json,
4232
+ testExecutionId: smithy_client_1.expectString,
4233
+ testExecutionModality: smithy_client_1.expectString,
4234
+ testExecutionStatus: smithy_client_1.expectString,
4235
+ testSetId: smithy_client_1.expectString,
4236
+ testSetName: smithy_client_1.expectString,
3847
4237
  });
3848
4238
  Object.assign(contents, doc);
3849
4239
  return contents;
3850
4240
  };
3851
- exports.de_ListAggregatedUtterancesCommand = de_ListAggregatedUtterancesCommand;
3852
- const de_ListAggregatedUtterancesCommandError = async (output, context) => {
4241
+ exports.de_DescribeTestExecutionCommand = de_DescribeTestExecutionCommand;
4242
+ const de_DescribeTestExecutionCommandError = async (output, context) => {
3853
4243
  const parsedOutput = {
3854
4244
  ...output,
3855
4245
  body: await parseErrorBody(output.body, context),
@@ -3859,9 +4249,12 @@ const de_ListAggregatedUtterancesCommandError = async (output, context) => {
3859
4249
  case "InternalServerException":
3860
4250
  case "com.amazonaws.lexmodelsv2#InternalServerException":
3861
4251
  throw await de_InternalServerExceptionRes(parsedOutput, context);
3862
- case "PreconditionFailedException":
3863
- case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
3864
- throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
4252
+ case "ResourceNotFoundException":
4253
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
4254
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4255
+ case "ServiceQuotaExceededException":
4256
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
4257
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3865
4258
  case "ThrottlingException":
3866
4259
  case "com.amazonaws.lexmodelsv2#ThrottlingException":
3867
4260
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -3877,24 +4270,31 @@ const de_ListAggregatedUtterancesCommandError = async (output, context) => {
3877
4270
  });
3878
4271
  }
3879
4272
  };
3880
- const de_ListBotAliasesCommand = async (output, context) => {
4273
+ const de_DescribeTestSetCommand = async (output, context) => {
3881
4274
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3882
- return de_ListBotAliasesCommandError(output, context);
4275
+ return de_DescribeTestSetCommandError(output, context);
3883
4276
  }
3884
4277
  const contents = (0, smithy_client_1.map)({
3885
4278
  $metadata: deserializeMetadata(output),
3886
4279
  });
3887
4280
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3888
4281
  const doc = (0, smithy_client_1.take)(data, {
3889
- botAliasSummaries: (_) => de_BotAliasSummaryList(_, context),
3890
- botId: smithy_client_1.expectString,
3891
- nextToken: smithy_client_1.expectString,
4282
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4283
+ description: smithy_client_1.expectString,
4284
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4285
+ modality: smithy_client_1.expectString,
4286
+ numTurns: smithy_client_1.expectInt32,
4287
+ roleArn: smithy_client_1.expectString,
4288
+ status: smithy_client_1.expectString,
4289
+ storageLocation: smithy_client_1._json,
4290
+ testSetId: smithy_client_1.expectString,
4291
+ testSetName: smithy_client_1.expectString,
3892
4292
  });
3893
4293
  Object.assign(contents, doc);
3894
4294
  return contents;
3895
4295
  };
3896
- exports.de_ListBotAliasesCommand = de_ListBotAliasesCommand;
3897
- const de_ListBotAliasesCommandError = async (output, context) => {
4296
+ exports.de_DescribeTestSetCommand = de_DescribeTestSetCommand;
4297
+ const de_DescribeTestSetCommandError = async (output, context) => {
3898
4298
  const parsedOutput = {
3899
4299
  ...output,
3900
4300
  body: await parseErrorBody(output.body, context),
@@ -3904,6 +4304,9 @@ const de_ListBotAliasesCommandError = async (output, context) => {
3904
4304
  case "InternalServerException":
3905
4305
  case "com.amazonaws.lexmodelsv2#InternalServerException":
3906
4306
  throw await de_InternalServerExceptionRes(parsedOutput, context);
4307
+ case "ResourceNotFoundException":
4308
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
4309
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3907
4310
  case "ServiceQuotaExceededException":
3908
4311
  case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
3909
4312
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
@@ -3922,25 +4325,30 @@ const de_ListBotAliasesCommandError = async (output, context) => {
3922
4325
  });
3923
4326
  }
3924
4327
  };
3925
- const de_ListBotLocalesCommand = async (output, context) => {
4328
+ const de_DescribeTestSetDiscrepancyReportCommand = async (output, context) => {
3926
4329
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3927
- return de_ListBotLocalesCommandError(output, context);
4330
+ return de_DescribeTestSetDiscrepancyReportCommandError(output, context);
3928
4331
  }
3929
4332
  const contents = (0, smithy_client_1.map)({
3930
4333
  $metadata: deserializeMetadata(output),
3931
4334
  });
3932
4335
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3933
4336
  const doc = (0, smithy_client_1.take)(data, {
3934
- botId: smithy_client_1.expectString,
3935
- botLocaleSummaries: (_) => de_BotLocaleSummaryList(_, context),
3936
- botVersion: smithy_client_1.expectString,
3937
- nextToken: smithy_client_1.expectString,
4337
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4338
+ failureReasons: smithy_client_1._json,
4339
+ lastUpdatedDataTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4340
+ target: smithy_client_1._json,
4341
+ testSetDiscrepancyRawOutputUrl: smithy_client_1.expectString,
4342
+ testSetDiscrepancyReportId: smithy_client_1.expectString,
4343
+ testSetDiscrepancyReportStatus: smithy_client_1.expectString,
4344
+ testSetDiscrepancyTopErrors: smithy_client_1._json,
4345
+ testSetId: smithy_client_1.expectString,
3938
4346
  });
3939
4347
  Object.assign(contents, doc);
3940
4348
  return contents;
3941
4349
  };
3942
- exports.de_ListBotLocalesCommand = de_ListBotLocalesCommand;
3943
- const de_ListBotLocalesCommandError = async (output, context) => {
4350
+ exports.de_DescribeTestSetDiscrepancyReportCommand = de_DescribeTestSetDiscrepancyReportCommand;
4351
+ const de_DescribeTestSetDiscrepancyReportCommandError = async (output, context) => {
3944
4352
  const parsedOutput = {
3945
4353
  ...output,
3946
4354
  body: await parseErrorBody(output.body, context),
@@ -3950,6 +4358,9 @@ const de_ListBotLocalesCommandError = async (output, context) => {
3950
4358
  case "InternalServerException":
3951
4359
  case "com.amazonaws.lexmodelsv2#InternalServerException":
3952
4360
  throw await de_InternalServerExceptionRes(parsedOutput, context);
4361
+ case "ResourceNotFoundException":
4362
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
4363
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3953
4364
  case "ServiceQuotaExceededException":
3954
4365
  case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
3955
4366
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
@@ -3968,26 +4379,32 @@ const de_ListBotLocalesCommandError = async (output, context) => {
3968
4379
  });
3969
4380
  }
3970
4381
  };
3971
- const de_ListBotRecommendationsCommand = async (output, context) => {
4382
+ const de_DescribeTestSetGenerationCommand = async (output, context) => {
3972
4383
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3973
- return de_ListBotRecommendationsCommandError(output, context);
4384
+ return de_DescribeTestSetGenerationCommandError(output, context);
3974
4385
  }
3975
4386
  const contents = (0, smithy_client_1.map)({
3976
4387
  $metadata: deserializeMetadata(output),
3977
4388
  });
3978
4389
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3979
4390
  const doc = (0, smithy_client_1.take)(data, {
3980
- botId: smithy_client_1.expectString,
3981
- botRecommendationSummaries: (_) => de_BotRecommendationSummaryList(_, context),
3982
- botVersion: smithy_client_1.expectString,
3983
- localeId: smithy_client_1.expectString,
3984
- nextToken: smithy_client_1.expectString,
4391
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4392
+ description: smithy_client_1.expectString,
4393
+ failureReasons: smithy_client_1._json,
4394
+ generationDataSource: (_) => de_TestSetGenerationDataSource(_, context),
4395
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4396
+ roleArn: smithy_client_1.expectString,
4397
+ storageLocation: smithy_client_1._json,
4398
+ testSetGenerationId: smithy_client_1.expectString,
4399
+ testSetGenerationStatus: smithy_client_1.expectString,
4400
+ testSetId: smithy_client_1.expectString,
4401
+ testSetName: smithy_client_1.expectString,
3985
4402
  });
3986
4403
  Object.assign(contents, doc);
3987
4404
  return contents;
3988
4405
  };
3989
- exports.de_ListBotRecommendationsCommand = de_ListBotRecommendationsCommand;
3990
- const de_ListBotRecommendationsCommandError = async (output, context) => {
4406
+ exports.de_DescribeTestSetGenerationCommand = de_DescribeTestSetGenerationCommand;
4407
+ const de_DescribeTestSetGenerationCommandError = async (output, context) => {
3991
4408
  const parsedOutput = {
3992
4409
  ...output,
3993
4410
  body: await parseErrorBody(output.body, context),
@@ -4000,6 +4417,9 @@ const de_ListBotRecommendationsCommandError = async (output, context) => {
4000
4417
  case "ResourceNotFoundException":
4001
4418
  case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
4002
4419
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4420
+ case "ServiceQuotaExceededException":
4421
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
4422
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4003
4423
  case "ThrottlingException":
4004
4424
  case "com.amazonaws.lexmodelsv2#ThrottlingException":
4005
4425
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -4015,23 +4435,23 @@ const de_ListBotRecommendationsCommandError = async (output, context) => {
4015
4435
  });
4016
4436
  }
4017
4437
  };
4018
- const de_ListBotsCommand = async (output, context) => {
4438
+ const de_GetTestExecutionArtifactsUrlCommand = async (output, context) => {
4019
4439
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4020
- return de_ListBotsCommandError(output, context);
4440
+ return de_GetTestExecutionArtifactsUrlCommandError(output, context);
4021
4441
  }
4022
4442
  const contents = (0, smithy_client_1.map)({
4023
4443
  $metadata: deserializeMetadata(output),
4024
4444
  });
4025
4445
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4026
4446
  const doc = (0, smithy_client_1.take)(data, {
4027
- botSummaries: (_) => de_BotSummaryList(_, context),
4028
- nextToken: smithy_client_1.expectString,
4447
+ downloadArtifactsUrl: smithy_client_1.expectString,
4448
+ testExecutionId: smithy_client_1.expectString,
4029
4449
  });
4030
4450
  Object.assign(contents, doc);
4031
4451
  return contents;
4032
4452
  };
4033
- exports.de_ListBotsCommand = de_ListBotsCommand;
4034
- const de_ListBotsCommandError = async (output, context) => {
4453
+ exports.de_GetTestExecutionArtifactsUrlCommand = de_GetTestExecutionArtifactsUrlCommand;
4454
+ const de_GetTestExecutionArtifactsUrlCommandError = async (output, context) => {
4035
4455
  const parsedOutput = {
4036
4456
  ...output,
4037
4457
  body: await parseErrorBody(output.body, context),
@@ -4041,6 +4461,9 @@ const de_ListBotsCommandError = async (output, context) => {
4041
4461
  case "InternalServerException":
4042
4462
  case "com.amazonaws.lexmodelsv2#InternalServerException":
4043
4463
  throw await de_InternalServerExceptionRes(parsedOutput, context);
4464
+ case "ResourceNotFoundException":
4465
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
4466
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4044
4467
  case "ServiceQuotaExceededException":
4045
4468
  case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
4046
4469
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
@@ -4059,24 +4482,31 @@ const de_ListBotsCommandError = async (output, context) => {
4059
4482
  });
4060
4483
  }
4061
4484
  };
4062
- const de_ListBotVersionsCommand = async (output, context) => {
4485
+ const de_ListAggregatedUtterancesCommand = async (output, context) => {
4063
4486
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4064
- return de_ListBotVersionsCommandError(output, context);
4487
+ return de_ListAggregatedUtterancesCommandError(output, context);
4065
4488
  }
4066
4489
  const contents = (0, smithy_client_1.map)({
4067
4490
  $metadata: deserializeMetadata(output),
4068
4491
  });
4069
4492
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4070
4493
  const doc = (0, smithy_client_1.take)(data, {
4494
+ aggregatedUtterancesSummaries: (_) => de_AggregatedUtterancesSummaryList(_, context),
4495
+ aggregationDuration: smithy_client_1._json,
4496
+ aggregationLastRefreshedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4497
+ aggregationWindowEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4498
+ aggregationWindowStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4499
+ botAliasId: smithy_client_1.expectString,
4071
4500
  botId: smithy_client_1.expectString,
4072
- botVersionSummaries: (_) => de_BotVersionSummaryList(_, context),
4501
+ botVersion: smithy_client_1.expectString,
4502
+ localeId: smithy_client_1.expectString,
4073
4503
  nextToken: smithy_client_1.expectString,
4074
4504
  });
4075
4505
  Object.assign(contents, doc);
4076
4506
  return contents;
4077
4507
  };
4078
- exports.de_ListBotVersionsCommand = de_ListBotVersionsCommand;
4079
- const de_ListBotVersionsCommandError = async (output, context) => {
4508
+ exports.de_ListAggregatedUtterancesCommand = de_ListAggregatedUtterancesCommand;
4509
+ const de_ListAggregatedUtterancesCommandError = async (output, context) => {
4080
4510
  const parsedOutput = {
4081
4511
  ...output,
4082
4512
  body: await parseErrorBody(output.body, context),
@@ -4086,9 +4516,9 @@ const de_ListBotVersionsCommandError = async (output, context) => {
4086
4516
  case "InternalServerException":
4087
4517
  case "com.amazonaws.lexmodelsv2#InternalServerException":
4088
4518
  throw await de_InternalServerExceptionRes(parsedOutput, context);
4089
- case "ServiceQuotaExceededException":
4090
- case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
4091
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4519
+ case "PreconditionFailedException":
4520
+ case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
4521
+ throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
4092
4522
  case "ThrottlingException":
4093
4523
  case "com.amazonaws.lexmodelsv2#ThrottlingException":
4094
4524
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -4104,24 +4534,24 @@ const de_ListBotVersionsCommandError = async (output, context) => {
4104
4534
  });
4105
4535
  }
4106
4536
  };
4107
- const de_ListBuiltInIntentsCommand = async (output, context) => {
4537
+ const de_ListBotAliasesCommand = async (output, context) => {
4108
4538
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4109
- return de_ListBuiltInIntentsCommandError(output, context);
4539
+ return de_ListBotAliasesCommandError(output, context);
4110
4540
  }
4111
4541
  const contents = (0, smithy_client_1.map)({
4112
4542
  $metadata: deserializeMetadata(output),
4113
4543
  });
4114
4544
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4115
4545
  const doc = (0, smithy_client_1.take)(data, {
4116
- builtInIntentSummaries: smithy_client_1._json,
4117
- localeId: smithy_client_1.expectString,
4546
+ botAliasSummaries: (_) => de_BotAliasSummaryList(_, context),
4547
+ botId: smithy_client_1.expectString,
4118
4548
  nextToken: smithy_client_1.expectString,
4119
4549
  });
4120
4550
  Object.assign(contents, doc);
4121
4551
  return contents;
4122
4552
  };
4123
- exports.de_ListBuiltInIntentsCommand = de_ListBuiltInIntentsCommand;
4124
- const de_ListBuiltInIntentsCommandError = async (output, context) => {
4553
+ exports.de_ListBotAliasesCommand = de_ListBotAliasesCommand;
4554
+ const de_ListBotAliasesCommandError = async (output, context) => {
4125
4555
  const parsedOutput = {
4126
4556
  ...output,
4127
4557
  body: await parseErrorBody(output.body, context),
@@ -4149,24 +4579,25 @@ const de_ListBuiltInIntentsCommandError = async (output, context) => {
4149
4579
  });
4150
4580
  }
4151
4581
  };
4152
- const de_ListBuiltInSlotTypesCommand = async (output, context) => {
4582
+ const de_ListBotLocalesCommand = async (output, context) => {
4153
4583
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4154
- return de_ListBuiltInSlotTypesCommandError(output, context);
4584
+ return de_ListBotLocalesCommandError(output, context);
4155
4585
  }
4156
4586
  const contents = (0, smithy_client_1.map)({
4157
4587
  $metadata: deserializeMetadata(output),
4158
4588
  });
4159
4589
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4160
4590
  const doc = (0, smithy_client_1.take)(data, {
4161
- builtInSlotTypeSummaries: smithy_client_1._json,
4162
- localeId: smithy_client_1.expectString,
4591
+ botId: smithy_client_1.expectString,
4592
+ botLocaleSummaries: (_) => de_BotLocaleSummaryList(_, context),
4593
+ botVersion: smithy_client_1.expectString,
4163
4594
  nextToken: smithy_client_1.expectString,
4164
4595
  });
4165
4596
  Object.assign(contents, doc);
4166
4597
  return contents;
4167
4598
  };
4168
- exports.de_ListBuiltInSlotTypesCommand = de_ListBuiltInSlotTypesCommand;
4169
- const de_ListBuiltInSlotTypesCommandError = async (output, context) => {
4599
+ exports.de_ListBotLocalesCommand = de_ListBotLocalesCommand;
4600
+ const de_ListBotLocalesCommandError = async (output, context) => {
4170
4601
  const parsedOutput = {
4171
4602
  ...output,
4172
4603
  body: await parseErrorBody(output.body, context),
@@ -4194,9 +4625,9 @@ const de_ListBuiltInSlotTypesCommandError = async (output, context) => {
4194
4625
  });
4195
4626
  }
4196
4627
  };
4197
- const de_ListCustomVocabularyItemsCommand = async (output, context) => {
4628
+ const de_ListBotRecommendationsCommand = async (output, context) => {
4198
4629
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4199
- return de_ListCustomVocabularyItemsCommandError(output, context);
4630
+ return de_ListBotRecommendationsCommandError(output, context);
4200
4631
  }
4201
4632
  const contents = (0, smithy_client_1.map)({
4202
4633
  $metadata: deserializeMetadata(output),
@@ -4204,16 +4635,16 @@ const de_ListCustomVocabularyItemsCommand = async (output, context) => {
4204
4635
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4205
4636
  const doc = (0, smithy_client_1.take)(data, {
4206
4637
  botId: smithy_client_1.expectString,
4638
+ botRecommendationSummaries: (_) => de_BotRecommendationSummaryList(_, context),
4207
4639
  botVersion: smithy_client_1.expectString,
4208
- customVocabularyItems: smithy_client_1._json,
4209
4640
  localeId: smithy_client_1.expectString,
4210
4641
  nextToken: smithy_client_1.expectString,
4211
4642
  });
4212
4643
  Object.assign(contents, doc);
4213
4644
  return contents;
4214
4645
  };
4215
- exports.de_ListCustomVocabularyItemsCommand = de_ListCustomVocabularyItemsCommand;
4216
- const de_ListCustomVocabularyItemsCommandError = async (output, context) => {
4646
+ exports.de_ListBotRecommendationsCommand = de_ListBotRecommendationsCommand;
4647
+ const de_ListBotRecommendationsCommandError = async (output, context) => {
4217
4648
  const parsedOutput = {
4218
4649
  ...output,
4219
4650
  body: await parseErrorBody(output.body, context),
@@ -4226,9 +4657,6 @@ const de_ListCustomVocabularyItemsCommandError = async (output, context) => {
4226
4657
  case "ResourceNotFoundException":
4227
4658
  case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
4228
4659
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4229
- case "ServiceQuotaExceededException":
4230
- case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
4231
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4232
4660
  case "ThrottlingException":
4233
4661
  case "com.amazonaws.lexmodelsv2#ThrottlingException":
4234
4662
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -4244,26 +4672,23 @@ const de_ListCustomVocabularyItemsCommandError = async (output, context) => {
4244
4672
  });
4245
4673
  }
4246
4674
  };
4247
- const de_ListExportsCommand = async (output, context) => {
4675
+ const de_ListBotsCommand = async (output, context) => {
4248
4676
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4249
- return de_ListExportsCommandError(output, context);
4677
+ return de_ListBotsCommandError(output, context);
4250
4678
  }
4251
4679
  const contents = (0, smithy_client_1.map)({
4252
4680
  $metadata: deserializeMetadata(output),
4253
4681
  });
4254
4682
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4255
4683
  const doc = (0, smithy_client_1.take)(data, {
4256
- botId: smithy_client_1.expectString,
4257
- botVersion: smithy_client_1.expectString,
4258
- exportSummaries: (_) => de_ExportSummaryList(_, context),
4259
- localeId: smithy_client_1.expectString,
4684
+ botSummaries: (_) => de_BotSummaryList(_, context),
4260
4685
  nextToken: smithy_client_1.expectString,
4261
4686
  });
4262
4687
  Object.assign(contents, doc);
4263
4688
  return contents;
4264
4689
  };
4265
- exports.de_ListExportsCommand = de_ListExportsCommand;
4266
- const de_ListExportsCommandError = async (output, context) => {
4690
+ exports.de_ListBotsCommand = de_ListBotsCommand;
4691
+ const de_ListBotsCommandError = async (output, context) => {
4267
4692
  const parsedOutput = {
4268
4693
  ...output,
4269
4694
  body: await parseErrorBody(output.body, context),
@@ -4273,6 +4698,9 @@ const de_ListExportsCommandError = async (output, context) => {
4273
4698
  case "InternalServerException":
4274
4699
  case "com.amazonaws.lexmodelsv2#InternalServerException":
4275
4700
  throw await de_InternalServerExceptionRes(parsedOutput, context);
4701
+ case "ServiceQuotaExceededException":
4702
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
4703
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4276
4704
  case "ThrottlingException":
4277
4705
  case "com.amazonaws.lexmodelsv2#ThrottlingException":
4278
4706
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -4288,9 +4716,9 @@ const de_ListExportsCommandError = async (output, context) => {
4288
4716
  });
4289
4717
  }
4290
4718
  };
4291
- const de_ListImportsCommand = async (output, context) => {
4719
+ const de_ListBotVersionsCommand = async (output, context) => {
4292
4720
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4293
- return de_ListImportsCommandError(output, context);
4721
+ return de_ListBotVersionsCommandError(output, context);
4294
4722
  }
4295
4723
  const contents = (0, smithy_client_1.map)({
4296
4724
  $metadata: deserializeMetadata(output),
@@ -4298,17 +4726,246 @@ const de_ListImportsCommand = async (output, context) => {
4298
4726
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4299
4727
  const doc = (0, smithy_client_1.take)(data, {
4300
4728
  botId: smithy_client_1.expectString,
4301
- botVersion: smithy_client_1.expectString,
4302
- importSummaries: (_) => de_ImportSummaryList(_, context),
4303
- localeId: smithy_client_1.expectString,
4729
+ botVersionSummaries: (_) => de_BotVersionSummaryList(_, context),
4304
4730
  nextToken: smithy_client_1.expectString,
4305
4731
  });
4306
4732
  Object.assign(contents, doc);
4307
4733
  return contents;
4308
4734
  };
4309
- exports.de_ListImportsCommand = de_ListImportsCommand;
4310
- const de_ListImportsCommandError = async (output, context) => {
4311
- const parsedOutput = {
4735
+ exports.de_ListBotVersionsCommand = de_ListBotVersionsCommand;
4736
+ const de_ListBotVersionsCommandError = async (output, context) => {
4737
+ const parsedOutput = {
4738
+ ...output,
4739
+ body: await parseErrorBody(output.body, context),
4740
+ };
4741
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4742
+ switch (errorCode) {
4743
+ case "InternalServerException":
4744
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
4745
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4746
+ case "ServiceQuotaExceededException":
4747
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
4748
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4749
+ case "ThrottlingException":
4750
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
4751
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4752
+ case "ValidationException":
4753
+ case "com.amazonaws.lexmodelsv2#ValidationException":
4754
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4755
+ default:
4756
+ const parsedBody = parsedOutput.body;
4757
+ return throwDefaultError({
4758
+ output,
4759
+ parsedBody,
4760
+ errorCode,
4761
+ });
4762
+ }
4763
+ };
4764
+ const de_ListBuiltInIntentsCommand = async (output, context) => {
4765
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4766
+ return de_ListBuiltInIntentsCommandError(output, context);
4767
+ }
4768
+ const contents = (0, smithy_client_1.map)({
4769
+ $metadata: deserializeMetadata(output),
4770
+ });
4771
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4772
+ const doc = (0, smithy_client_1.take)(data, {
4773
+ builtInIntentSummaries: smithy_client_1._json,
4774
+ localeId: smithy_client_1.expectString,
4775
+ nextToken: smithy_client_1.expectString,
4776
+ });
4777
+ Object.assign(contents, doc);
4778
+ return contents;
4779
+ };
4780
+ exports.de_ListBuiltInIntentsCommand = de_ListBuiltInIntentsCommand;
4781
+ const de_ListBuiltInIntentsCommandError = async (output, context) => {
4782
+ const parsedOutput = {
4783
+ ...output,
4784
+ body: await parseErrorBody(output.body, context),
4785
+ };
4786
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4787
+ switch (errorCode) {
4788
+ case "InternalServerException":
4789
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
4790
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4791
+ case "ServiceQuotaExceededException":
4792
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
4793
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4794
+ case "ThrottlingException":
4795
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
4796
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4797
+ case "ValidationException":
4798
+ case "com.amazonaws.lexmodelsv2#ValidationException":
4799
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4800
+ default:
4801
+ const parsedBody = parsedOutput.body;
4802
+ return throwDefaultError({
4803
+ output,
4804
+ parsedBody,
4805
+ errorCode,
4806
+ });
4807
+ }
4808
+ };
4809
+ const de_ListBuiltInSlotTypesCommand = async (output, context) => {
4810
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4811
+ return de_ListBuiltInSlotTypesCommandError(output, context);
4812
+ }
4813
+ const contents = (0, smithy_client_1.map)({
4814
+ $metadata: deserializeMetadata(output),
4815
+ });
4816
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4817
+ const doc = (0, smithy_client_1.take)(data, {
4818
+ builtInSlotTypeSummaries: smithy_client_1._json,
4819
+ localeId: smithy_client_1.expectString,
4820
+ nextToken: smithy_client_1.expectString,
4821
+ });
4822
+ Object.assign(contents, doc);
4823
+ return contents;
4824
+ };
4825
+ exports.de_ListBuiltInSlotTypesCommand = de_ListBuiltInSlotTypesCommand;
4826
+ const de_ListBuiltInSlotTypesCommandError = async (output, context) => {
4827
+ const parsedOutput = {
4828
+ ...output,
4829
+ body: await parseErrorBody(output.body, context),
4830
+ };
4831
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4832
+ switch (errorCode) {
4833
+ case "InternalServerException":
4834
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
4835
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4836
+ case "ServiceQuotaExceededException":
4837
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
4838
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4839
+ case "ThrottlingException":
4840
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
4841
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4842
+ case "ValidationException":
4843
+ case "com.amazonaws.lexmodelsv2#ValidationException":
4844
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4845
+ default:
4846
+ const parsedBody = parsedOutput.body;
4847
+ return throwDefaultError({
4848
+ output,
4849
+ parsedBody,
4850
+ errorCode,
4851
+ });
4852
+ }
4853
+ };
4854
+ const de_ListCustomVocabularyItemsCommand = async (output, context) => {
4855
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4856
+ return de_ListCustomVocabularyItemsCommandError(output, context);
4857
+ }
4858
+ const contents = (0, smithy_client_1.map)({
4859
+ $metadata: deserializeMetadata(output),
4860
+ });
4861
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4862
+ const doc = (0, smithy_client_1.take)(data, {
4863
+ botId: smithy_client_1.expectString,
4864
+ botVersion: smithy_client_1.expectString,
4865
+ customVocabularyItems: smithy_client_1._json,
4866
+ localeId: smithy_client_1.expectString,
4867
+ nextToken: smithy_client_1.expectString,
4868
+ });
4869
+ Object.assign(contents, doc);
4870
+ return contents;
4871
+ };
4872
+ exports.de_ListCustomVocabularyItemsCommand = de_ListCustomVocabularyItemsCommand;
4873
+ const de_ListCustomVocabularyItemsCommandError = async (output, context) => {
4874
+ const parsedOutput = {
4875
+ ...output,
4876
+ body: await parseErrorBody(output.body, context),
4877
+ };
4878
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4879
+ switch (errorCode) {
4880
+ case "InternalServerException":
4881
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
4882
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4883
+ case "ResourceNotFoundException":
4884
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
4885
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4886
+ case "ServiceQuotaExceededException":
4887
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
4888
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4889
+ case "ThrottlingException":
4890
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
4891
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4892
+ case "ValidationException":
4893
+ case "com.amazonaws.lexmodelsv2#ValidationException":
4894
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4895
+ default:
4896
+ const parsedBody = parsedOutput.body;
4897
+ return throwDefaultError({
4898
+ output,
4899
+ parsedBody,
4900
+ errorCode,
4901
+ });
4902
+ }
4903
+ };
4904
+ const de_ListExportsCommand = async (output, context) => {
4905
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4906
+ return de_ListExportsCommandError(output, context);
4907
+ }
4908
+ const contents = (0, smithy_client_1.map)({
4909
+ $metadata: deserializeMetadata(output),
4910
+ });
4911
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4912
+ const doc = (0, smithy_client_1.take)(data, {
4913
+ botId: smithy_client_1.expectString,
4914
+ botVersion: smithy_client_1.expectString,
4915
+ exportSummaries: (_) => de_ExportSummaryList(_, context),
4916
+ localeId: smithy_client_1.expectString,
4917
+ nextToken: smithy_client_1.expectString,
4918
+ });
4919
+ Object.assign(contents, doc);
4920
+ return contents;
4921
+ };
4922
+ exports.de_ListExportsCommand = de_ListExportsCommand;
4923
+ const de_ListExportsCommandError = async (output, context) => {
4924
+ const parsedOutput = {
4925
+ ...output,
4926
+ body: await parseErrorBody(output.body, context),
4927
+ };
4928
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4929
+ switch (errorCode) {
4930
+ case "InternalServerException":
4931
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
4932
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4933
+ case "ThrottlingException":
4934
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
4935
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4936
+ case "ValidationException":
4937
+ case "com.amazonaws.lexmodelsv2#ValidationException":
4938
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4939
+ default:
4940
+ const parsedBody = parsedOutput.body;
4941
+ return throwDefaultError({
4942
+ output,
4943
+ parsedBody,
4944
+ errorCode,
4945
+ });
4946
+ }
4947
+ };
4948
+ const de_ListImportsCommand = async (output, context) => {
4949
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4950
+ return de_ListImportsCommandError(output, context);
4951
+ }
4952
+ const contents = (0, smithy_client_1.map)({
4953
+ $metadata: deserializeMetadata(output),
4954
+ });
4955
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4956
+ const doc = (0, smithy_client_1.take)(data, {
4957
+ botId: smithy_client_1.expectString,
4958
+ botVersion: smithy_client_1.expectString,
4959
+ importSummaries: (_) => de_ImportSummaryList(_, context),
4960
+ localeId: smithy_client_1.expectString,
4961
+ nextToken: smithy_client_1.expectString,
4962
+ });
4963
+ Object.assign(contents, doc);
4964
+ return contents;
4965
+ };
4966
+ exports.de_ListImportsCommand = de_ListImportsCommand;
4967
+ const de_ListImportsCommandError = async (output, context) => {
4968
+ const parsedOutput = {
4312
4969
  ...output,
4313
4970
  body: await parseErrorBody(output.body, context),
4314
4971
  };
@@ -4534,25 +5191,318 @@ const de_ListTagsForResourceCommand = async (output, context) => {
4534
5191
  });
4535
5192
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4536
5193
  const doc = (0, smithy_client_1.take)(data, {
4537
- tags: smithy_client_1._json,
5194
+ tags: smithy_client_1._json,
5195
+ });
5196
+ Object.assign(contents, doc);
5197
+ return contents;
5198
+ };
5199
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
5200
+ const de_ListTagsForResourceCommandError = async (output, context) => {
5201
+ const parsedOutput = {
5202
+ ...output,
5203
+ body: await parseErrorBody(output.body, context),
5204
+ };
5205
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5206
+ switch (errorCode) {
5207
+ case "InternalServerException":
5208
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
5209
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
5210
+ case "ResourceNotFoundException":
5211
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
5212
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5213
+ case "ThrottlingException":
5214
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
5215
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5216
+ case "ValidationException":
5217
+ case "com.amazonaws.lexmodelsv2#ValidationException":
5218
+ throw await de_ValidationExceptionRes(parsedOutput, context);
5219
+ default:
5220
+ const parsedBody = parsedOutput.body;
5221
+ return throwDefaultError({
5222
+ output,
5223
+ parsedBody,
5224
+ errorCode,
5225
+ });
5226
+ }
5227
+ };
5228
+ const de_ListTestExecutionResultItemsCommand = async (output, context) => {
5229
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5230
+ return de_ListTestExecutionResultItemsCommandError(output, context);
5231
+ }
5232
+ const contents = (0, smithy_client_1.map)({
5233
+ $metadata: deserializeMetadata(output),
5234
+ });
5235
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5236
+ const doc = (0, smithy_client_1.take)(data, {
5237
+ nextToken: smithy_client_1.expectString,
5238
+ testExecutionResults: (_) => de_TestExecutionResultItems(_, context),
5239
+ });
5240
+ Object.assign(contents, doc);
5241
+ return contents;
5242
+ };
5243
+ exports.de_ListTestExecutionResultItemsCommand = de_ListTestExecutionResultItemsCommand;
5244
+ const de_ListTestExecutionResultItemsCommandError = async (output, context) => {
5245
+ const parsedOutput = {
5246
+ ...output,
5247
+ body: await parseErrorBody(output.body, context),
5248
+ };
5249
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5250
+ switch (errorCode) {
5251
+ case "InternalServerException":
5252
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
5253
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
5254
+ case "ResourceNotFoundException":
5255
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
5256
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5257
+ case "ServiceQuotaExceededException":
5258
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
5259
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5260
+ case "ThrottlingException":
5261
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
5262
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5263
+ case "ValidationException":
5264
+ case "com.amazonaws.lexmodelsv2#ValidationException":
5265
+ throw await de_ValidationExceptionRes(parsedOutput, context);
5266
+ default:
5267
+ const parsedBody = parsedOutput.body;
5268
+ return throwDefaultError({
5269
+ output,
5270
+ parsedBody,
5271
+ errorCode,
5272
+ });
5273
+ }
5274
+ };
5275
+ const de_ListTestExecutionsCommand = async (output, context) => {
5276
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5277
+ return de_ListTestExecutionsCommandError(output, context);
5278
+ }
5279
+ const contents = (0, smithy_client_1.map)({
5280
+ $metadata: deserializeMetadata(output),
5281
+ });
5282
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5283
+ const doc = (0, smithy_client_1.take)(data, {
5284
+ nextToken: smithy_client_1.expectString,
5285
+ testExecutions: (_) => de_TestExecutionSummaryList(_, context),
5286
+ });
5287
+ Object.assign(contents, doc);
5288
+ return contents;
5289
+ };
5290
+ exports.de_ListTestExecutionsCommand = de_ListTestExecutionsCommand;
5291
+ const de_ListTestExecutionsCommandError = async (output, context) => {
5292
+ const parsedOutput = {
5293
+ ...output,
5294
+ body: await parseErrorBody(output.body, context),
5295
+ };
5296
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5297
+ switch (errorCode) {
5298
+ case "InternalServerException":
5299
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
5300
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
5301
+ case "ServiceQuotaExceededException":
5302
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
5303
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5304
+ case "ThrottlingException":
5305
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
5306
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5307
+ case "ValidationException":
5308
+ case "com.amazonaws.lexmodelsv2#ValidationException":
5309
+ throw await de_ValidationExceptionRes(parsedOutput, context);
5310
+ default:
5311
+ const parsedBody = parsedOutput.body;
5312
+ return throwDefaultError({
5313
+ output,
5314
+ parsedBody,
5315
+ errorCode,
5316
+ });
5317
+ }
5318
+ };
5319
+ const de_ListTestSetRecordsCommand = async (output, context) => {
5320
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5321
+ return de_ListTestSetRecordsCommandError(output, context);
5322
+ }
5323
+ const contents = (0, smithy_client_1.map)({
5324
+ $metadata: deserializeMetadata(output),
5325
+ });
5326
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5327
+ const doc = (0, smithy_client_1.take)(data, {
5328
+ nextToken: smithy_client_1.expectString,
5329
+ testSetRecords: (_) => de_TestSetTurnRecordList(_, context),
5330
+ });
5331
+ Object.assign(contents, doc);
5332
+ return contents;
5333
+ };
5334
+ exports.de_ListTestSetRecordsCommand = de_ListTestSetRecordsCommand;
5335
+ const de_ListTestSetRecordsCommandError = async (output, context) => {
5336
+ const parsedOutput = {
5337
+ ...output,
5338
+ body: await parseErrorBody(output.body, context),
5339
+ };
5340
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5341
+ switch (errorCode) {
5342
+ case "InternalServerException":
5343
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
5344
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
5345
+ case "ResourceNotFoundException":
5346
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
5347
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5348
+ case "ServiceQuotaExceededException":
5349
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
5350
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5351
+ case "ThrottlingException":
5352
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
5353
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5354
+ case "ValidationException":
5355
+ case "com.amazonaws.lexmodelsv2#ValidationException":
5356
+ throw await de_ValidationExceptionRes(parsedOutput, context);
5357
+ default:
5358
+ const parsedBody = parsedOutput.body;
5359
+ return throwDefaultError({
5360
+ output,
5361
+ parsedBody,
5362
+ errorCode,
5363
+ });
5364
+ }
5365
+ };
5366
+ const de_ListTestSetsCommand = async (output, context) => {
5367
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5368
+ return de_ListTestSetsCommandError(output, context);
5369
+ }
5370
+ const contents = (0, smithy_client_1.map)({
5371
+ $metadata: deserializeMetadata(output),
5372
+ });
5373
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5374
+ const doc = (0, smithy_client_1.take)(data, {
5375
+ nextToken: smithy_client_1.expectString,
5376
+ testSets: (_) => de_TestSetSummaryList(_, context),
5377
+ });
5378
+ Object.assign(contents, doc);
5379
+ return contents;
5380
+ };
5381
+ exports.de_ListTestSetsCommand = de_ListTestSetsCommand;
5382
+ const de_ListTestSetsCommandError = async (output, context) => {
5383
+ const parsedOutput = {
5384
+ ...output,
5385
+ body: await parseErrorBody(output.body, context),
5386
+ };
5387
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5388
+ switch (errorCode) {
5389
+ case "InternalServerException":
5390
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
5391
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
5392
+ case "ServiceQuotaExceededException":
5393
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
5394
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5395
+ case "ThrottlingException":
5396
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
5397
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5398
+ case "ValidationException":
5399
+ case "com.amazonaws.lexmodelsv2#ValidationException":
5400
+ throw await de_ValidationExceptionRes(parsedOutput, context);
5401
+ default:
5402
+ const parsedBody = parsedOutput.body;
5403
+ return throwDefaultError({
5404
+ output,
5405
+ parsedBody,
5406
+ errorCode,
5407
+ });
5408
+ }
5409
+ };
5410
+ const de_SearchAssociatedTranscriptsCommand = async (output, context) => {
5411
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5412
+ return de_SearchAssociatedTranscriptsCommandError(output, context);
5413
+ }
5414
+ const contents = (0, smithy_client_1.map)({
5415
+ $metadata: deserializeMetadata(output),
5416
+ });
5417
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5418
+ const doc = (0, smithy_client_1.take)(data, {
5419
+ associatedTranscripts: smithy_client_1._json,
5420
+ botId: smithy_client_1.expectString,
5421
+ botRecommendationId: smithy_client_1.expectString,
5422
+ botVersion: smithy_client_1.expectString,
5423
+ localeId: smithy_client_1.expectString,
5424
+ nextIndex: smithy_client_1.expectInt32,
5425
+ totalResults: smithy_client_1.expectInt32,
5426
+ });
5427
+ Object.assign(contents, doc);
5428
+ return contents;
5429
+ };
5430
+ exports.de_SearchAssociatedTranscriptsCommand = de_SearchAssociatedTranscriptsCommand;
5431
+ const de_SearchAssociatedTranscriptsCommandError = async (output, context) => {
5432
+ const parsedOutput = {
5433
+ ...output,
5434
+ body: await parseErrorBody(output.body, context),
5435
+ };
5436
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5437
+ switch (errorCode) {
5438
+ case "InternalServerException":
5439
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
5440
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
5441
+ case "ResourceNotFoundException":
5442
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
5443
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5444
+ case "ServiceQuotaExceededException":
5445
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
5446
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5447
+ case "ThrottlingException":
5448
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
5449
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5450
+ case "ValidationException":
5451
+ case "com.amazonaws.lexmodelsv2#ValidationException":
5452
+ throw await de_ValidationExceptionRes(parsedOutput, context);
5453
+ default:
5454
+ const parsedBody = parsedOutput.body;
5455
+ return throwDefaultError({
5456
+ output,
5457
+ parsedBody,
5458
+ errorCode,
5459
+ });
5460
+ }
5461
+ };
5462
+ const de_StartBotRecommendationCommand = async (output, context) => {
5463
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
5464
+ return de_StartBotRecommendationCommandError(output, context);
5465
+ }
5466
+ const contents = (0, smithy_client_1.map)({
5467
+ $metadata: deserializeMetadata(output),
5468
+ });
5469
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5470
+ const doc = (0, smithy_client_1.take)(data, {
5471
+ botId: smithy_client_1.expectString,
5472
+ botRecommendationId: smithy_client_1.expectString,
5473
+ botRecommendationStatus: smithy_client_1.expectString,
5474
+ botVersion: smithy_client_1.expectString,
5475
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5476
+ encryptionSetting: smithy_client_1._json,
5477
+ localeId: smithy_client_1.expectString,
5478
+ transcriptSourceSetting: (_) => de_TranscriptSourceSetting(_, context),
4538
5479
  });
4539
5480
  Object.assign(contents, doc);
4540
5481
  return contents;
4541
5482
  };
4542
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
4543
- const de_ListTagsForResourceCommandError = async (output, context) => {
5483
+ exports.de_StartBotRecommendationCommand = de_StartBotRecommendationCommand;
5484
+ const de_StartBotRecommendationCommandError = async (output, context) => {
4544
5485
  const parsedOutput = {
4545
5486
  ...output,
4546
5487
  body: await parseErrorBody(output.body, context),
4547
5488
  };
4548
5489
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4549
5490
  switch (errorCode) {
5491
+ case "ConflictException":
5492
+ case "com.amazonaws.lexmodelsv2#ConflictException":
5493
+ throw await de_ConflictExceptionRes(parsedOutput, context);
4550
5494
  case "InternalServerException":
4551
5495
  case "com.amazonaws.lexmodelsv2#InternalServerException":
4552
5496
  throw await de_InternalServerExceptionRes(parsedOutput, context);
5497
+ case "PreconditionFailedException":
5498
+ case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
5499
+ throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
4553
5500
  case "ResourceNotFoundException":
4554
5501
  case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
4555
5502
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5503
+ case "ServiceQuotaExceededException":
5504
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
5505
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4556
5506
  case "ThrottlingException":
4557
5507
  case "com.amazonaws.lexmodelsv2#ThrottlingException":
4558
5508
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -4568,34 +5518,35 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
4568
5518
  });
4569
5519
  }
4570
5520
  };
4571
- const de_SearchAssociatedTranscriptsCommand = async (output, context) => {
4572
- if (output.statusCode !== 200 && output.statusCode >= 300) {
4573
- return de_SearchAssociatedTranscriptsCommandError(output, context);
5521
+ const de_StartImportCommand = async (output, context) => {
5522
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
5523
+ return de_StartImportCommandError(output, context);
4574
5524
  }
4575
5525
  const contents = (0, smithy_client_1.map)({
4576
5526
  $metadata: deserializeMetadata(output),
4577
5527
  });
4578
5528
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4579
5529
  const doc = (0, smithy_client_1.take)(data, {
4580
- associatedTranscripts: smithy_client_1._json,
4581
- botId: smithy_client_1.expectString,
4582
- botRecommendationId: smithy_client_1.expectString,
4583
- botVersion: smithy_client_1.expectString,
4584
- localeId: smithy_client_1.expectString,
4585
- nextIndex: smithy_client_1.expectInt32,
4586
- totalResults: smithy_client_1.expectInt32,
5530
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
5531
+ importId: smithy_client_1.expectString,
5532
+ importStatus: smithy_client_1.expectString,
5533
+ mergeStrategy: smithy_client_1.expectString,
5534
+ resourceSpecification: (_) => de_ImportResourceSpecification(_, context),
4587
5535
  });
4588
5536
  Object.assign(contents, doc);
4589
5537
  return contents;
4590
5538
  };
4591
- exports.de_SearchAssociatedTranscriptsCommand = de_SearchAssociatedTranscriptsCommand;
4592
- const de_SearchAssociatedTranscriptsCommandError = async (output, context) => {
5539
+ exports.de_StartImportCommand = de_StartImportCommand;
5540
+ const de_StartImportCommandError = async (output, context) => {
4593
5541
  const parsedOutput = {
4594
5542
  ...output,
4595
5543
  body: await parseErrorBody(output.body, context),
4596
5544
  };
4597
5545
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4598
5546
  switch (errorCode) {
5547
+ case "ConflictException":
5548
+ case "com.amazonaws.lexmodelsv2#ConflictException":
5549
+ throw await de_ConflictExceptionRes(parsedOutput, context);
4599
5550
  case "InternalServerException":
4600
5551
  case "com.amazonaws.lexmodelsv2#InternalServerException":
4601
5552
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -4620,29 +5571,27 @@ const de_SearchAssociatedTranscriptsCommandError = async (output, context) => {
4620
5571
  });
4621
5572
  }
4622
5573
  };
4623
- const de_StartBotRecommendationCommand = async (output, context) => {
5574
+ const de_StartTestExecutionCommand = async (output, context) => {
4624
5575
  if (output.statusCode !== 202 && output.statusCode >= 300) {
4625
- return de_StartBotRecommendationCommandError(output, context);
5576
+ return de_StartTestExecutionCommandError(output, context);
4626
5577
  }
4627
5578
  const contents = (0, smithy_client_1.map)({
4628
5579
  $metadata: deserializeMetadata(output),
4629
5580
  });
4630
5581
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4631
5582
  const doc = (0, smithy_client_1.take)(data, {
4632
- botId: smithy_client_1.expectString,
4633
- botRecommendationId: smithy_client_1.expectString,
4634
- botRecommendationStatus: smithy_client_1.expectString,
4635
- botVersion: smithy_client_1.expectString,
5583
+ apiMode: smithy_client_1.expectString,
4636
5584
  creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4637
- encryptionSetting: smithy_client_1._json,
4638
- localeId: smithy_client_1.expectString,
4639
- transcriptSourceSetting: (_) => de_TranscriptSourceSetting(_, context),
5585
+ target: smithy_client_1._json,
5586
+ testExecutionId: smithy_client_1.expectString,
5587
+ testExecutionModality: smithy_client_1.expectString,
5588
+ testSetId: smithy_client_1.expectString,
4640
5589
  });
4641
5590
  Object.assign(contents, doc);
4642
5591
  return contents;
4643
5592
  };
4644
- exports.de_StartBotRecommendationCommand = de_StartBotRecommendationCommand;
4645
- const de_StartBotRecommendationCommandError = async (output, context) => {
5593
+ exports.de_StartTestExecutionCommand = de_StartTestExecutionCommand;
5594
+ const de_StartTestExecutionCommandError = async (output, context) => {
4646
5595
  const parsedOutput = {
4647
5596
  ...output,
4648
5597
  body: await parseErrorBody(output.body, context),
@@ -4655,9 +5604,6 @@ const de_StartBotRecommendationCommandError = async (output, context) => {
4655
5604
  case "InternalServerException":
4656
5605
  case "com.amazonaws.lexmodelsv2#InternalServerException":
4657
5606
  throw await de_InternalServerExceptionRes(parsedOutput, context);
4658
- case "PreconditionFailedException":
4659
- case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
4660
- throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
4661
5607
  case "ResourceNotFoundException":
4662
5608
  case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
4663
5609
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -4679,9 +5625,9 @@ const de_StartBotRecommendationCommandError = async (output, context) => {
4679
5625
  });
4680
5626
  }
4681
5627
  };
4682
- const de_StartImportCommand = async (output, context) => {
5628
+ const de_StartTestSetGenerationCommand = async (output, context) => {
4683
5629
  if (output.statusCode !== 202 && output.statusCode >= 300) {
4684
- return de_StartImportCommandError(output, context);
5630
+ return de_StartTestSetGenerationCommandError(output, context);
4685
5631
  }
4686
5632
  const contents = (0, smithy_client_1.map)({
4687
5633
  $metadata: deserializeMetadata(output),
@@ -4689,16 +5635,20 @@ const de_StartImportCommand = async (output, context) => {
4689
5635
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4690
5636
  const doc = (0, smithy_client_1.take)(data, {
4691
5637
  creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4692
- importId: smithy_client_1.expectString,
4693
- importStatus: smithy_client_1.expectString,
4694
- mergeStrategy: smithy_client_1.expectString,
4695
- resourceSpecification: (_) => de_ImportResourceSpecification(_, context),
5638
+ description: smithy_client_1.expectString,
5639
+ generationDataSource: (_) => de_TestSetGenerationDataSource(_, context),
5640
+ roleArn: smithy_client_1.expectString,
5641
+ storageLocation: smithy_client_1._json,
5642
+ testSetGenerationId: smithy_client_1.expectString,
5643
+ testSetGenerationStatus: smithy_client_1.expectString,
5644
+ testSetName: smithy_client_1.expectString,
5645
+ testSetTags: smithy_client_1._json,
4696
5646
  });
4697
5647
  Object.assign(contents, doc);
4698
5648
  return contents;
4699
5649
  };
4700
- exports.de_StartImportCommand = de_StartImportCommand;
4701
- const de_StartImportCommandError = async (output, context) => {
5650
+ exports.de_StartTestSetGenerationCommand = de_StartTestSetGenerationCommand;
5651
+ const de_StartTestSetGenerationCommandError = async (output, context) => {
4702
5652
  const parsedOutput = {
4703
5653
  ...output,
4704
5654
  body: await parseErrorBody(output.body, context),
@@ -5398,6 +6348,64 @@ const de_UpdateSlotTypeCommandError = async (output, context) => {
5398
6348
  });
5399
6349
  }
5400
6350
  };
6351
+ const de_UpdateTestSetCommand = async (output, context) => {
6352
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6353
+ return de_UpdateTestSetCommandError(output, context);
6354
+ }
6355
+ const contents = (0, smithy_client_1.map)({
6356
+ $metadata: deserializeMetadata(output),
6357
+ });
6358
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6359
+ const doc = (0, smithy_client_1.take)(data, {
6360
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
6361
+ description: smithy_client_1.expectString,
6362
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
6363
+ modality: smithy_client_1.expectString,
6364
+ numTurns: smithy_client_1.expectInt32,
6365
+ roleArn: smithy_client_1.expectString,
6366
+ status: smithy_client_1.expectString,
6367
+ storageLocation: smithy_client_1._json,
6368
+ testSetId: smithy_client_1.expectString,
6369
+ testSetName: smithy_client_1.expectString,
6370
+ });
6371
+ Object.assign(contents, doc);
6372
+ return contents;
6373
+ };
6374
+ exports.de_UpdateTestSetCommand = de_UpdateTestSetCommand;
6375
+ const de_UpdateTestSetCommandError = async (output, context) => {
6376
+ const parsedOutput = {
6377
+ ...output,
6378
+ body: await parseErrorBody(output.body, context),
6379
+ };
6380
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6381
+ switch (errorCode) {
6382
+ case "ConflictException":
6383
+ case "com.amazonaws.lexmodelsv2#ConflictException":
6384
+ throw await de_ConflictExceptionRes(parsedOutput, context);
6385
+ case "InternalServerException":
6386
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
6387
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
6388
+ case "PreconditionFailedException":
6389
+ case "com.amazonaws.lexmodelsv2#PreconditionFailedException":
6390
+ throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
6391
+ case "ServiceQuotaExceededException":
6392
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
6393
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
6394
+ case "ThrottlingException":
6395
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
6396
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
6397
+ case "ValidationException":
6398
+ case "com.amazonaws.lexmodelsv2#ValidationException":
6399
+ throw await de_ValidationExceptionRes(parsedOutput, context);
6400
+ default:
6401
+ const parsedBody = parsedOutput.body;
6402
+ return throwDefaultError({
6403
+ output,
6404
+ parsedBody,
6405
+ errorCode,
6406
+ });
6407
+ }
6408
+ };
5401
6409
  const throwDefaultError = (0, smithy_client_1.withBaseException)(LexModelsV2ServiceException_1.LexModelsV2ServiceException);
5402
6410
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
5403
6411
  const contents = (0, smithy_client_1.map)({});
@@ -5526,6 +6534,21 @@ const se_ConditionalSpecification = (input, context) => {
5526
6534
  defaultBranch: (_) => se_DefaultConditionalBranch(_, context),
5527
6535
  });
5528
6536
  };
6537
+ const se_ConversationLogsDataSource = (input, context) => {
6538
+ return (0, smithy_client_1.take)(input, {
6539
+ botAliasId: [],
6540
+ botId: [],
6541
+ filter: (_) => se_ConversationLogsDataSourceFilterBy(_, context),
6542
+ localeId: [],
6543
+ });
6544
+ };
6545
+ const se_ConversationLogsDataSourceFilterBy = (input, context) => {
6546
+ return (0, smithy_client_1.take)(input, {
6547
+ endTime: (_) => Math.round(_.getTime() / 1000),
6548
+ inputMode: [],
6549
+ startTime: (_) => Math.round(_.getTime() / 1000),
6550
+ });
6551
+ };
5529
6552
  const se_DateRangeFilter = (input, context) => {
5530
6553
  return (0, smithy_client_1.take)(input, {
5531
6554
  endDateTime: (_) => Math.round(_.getTime() / 1000),
@@ -5566,6 +6589,7 @@ const se_ImportResourceSpecification = (input, context) => {
5566
6589
  botImportSpecification: smithy_client_1._json,
5567
6590
  botLocaleImportSpecification: (_) => se_BotLocaleImportSpecification(_, context),
5568
6591
  customVocabularyImportSpecification: smithy_client_1._json,
6592
+ testSetImportResourceSpecification: smithy_client_1._json,
5569
6593
  });
5570
6594
  };
5571
6595
  const se_InitialResponseSetting = (input, context) => {
@@ -5713,6 +6737,11 @@ const se_SubSlotSpecificationMap = (input, context) => {
5713
6737
  return acc;
5714
6738
  }, {});
5715
6739
  };
6740
+ const se_TestSetGenerationDataSource = (input, context) => {
6741
+ return (0, smithy_client_1.take)(input, {
6742
+ conversationLogsDataSource: (_) => se_ConversationLogsDataSource(_, context),
6743
+ });
6744
+ };
5716
6745
  const se_TranscriptFilter = (input, context) => {
5717
6746
  return (0, smithy_client_1.take)(input, {
5718
6747
  lexTranscriptFilter: (_) => se_LexTranscriptFilter(_, context),
@@ -5891,6 +6920,21 @@ const de_ConditionalSpecification = (output, context) => {
5891
6920
  defaultBranch: (_) => de_DefaultConditionalBranch(_, context),
5892
6921
  });
5893
6922
  };
6923
+ const de_ConversationLogsDataSource = (output, context) => {
6924
+ return (0, smithy_client_1.take)(output, {
6925
+ botAliasId: smithy_client_1.expectString,
6926
+ botId: smithy_client_1.expectString,
6927
+ filter: (_) => de_ConversationLogsDataSourceFilterBy(_, context),
6928
+ localeId: smithy_client_1.expectString,
6929
+ });
6930
+ };
6931
+ const de_ConversationLogsDataSourceFilterBy = (output, context) => {
6932
+ return (0, smithy_client_1.take)(output, {
6933
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
6934
+ inputMode: smithy_client_1.expectString,
6935
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
6936
+ });
6937
+ };
5894
6938
  const de_DateRangeFilter = (output, context) => {
5895
6939
  return (0, smithy_client_1.take)(output, {
5896
6940
  endDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
@@ -5949,6 +6993,7 @@ const de_ImportResourceSpecification = (output, context) => {
5949
6993
  botImportSpecification: smithy_client_1._json,
5950
6994
  botLocaleImportSpecification: (_) => de_BotLocaleImportSpecification(_, context),
5951
6995
  customVocabularyImportSpecification: smithy_client_1._json,
6996
+ testSetImportResourceSpecification: smithy_client_1._json,
5952
6997
  });
5953
6998
  };
5954
6999
  const de_ImportSummary = (output, context) => {
@@ -5979,6 +7024,13 @@ const de_InitialResponseSetting = (output, context) => {
5979
7024
  nextStep: (_) => de_DialogState(_, context),
5980
7025
  });
5981
7026
  };
7027
+ const de_InputSessionStateSpecification = (output, context) => {
7028
+ return (0, smithy_client_1.take)(output, {
7029
+ activeContexts: smithy_client_1._json,
7030
+ runtimeHints: (_) => de_RuntimeHints(_, context),
7031
+ sessionAttributes: smithy_client_1._json,
7032
+ });
7033
+ };
5982
7034
  const de_IntentClosingSetting = (output, context) => {
5983
7035
  return (0, smithy_client_1.take)(output, {
5984
7036
  active: smithy_client_1.expectBoolean,
@@ -6060,6 +7112,17 @@ const de_PostFulfillmentStatusSpecification = (output, context) => {
6060
7112
  timeoutResponse: smithy_client_1._json,
6061
7113
  });
6062
7114
  };
7115
+ const de_RuntimeHintDetails = (output, context) => {
7116
+ return (0, smithy_client_1.take)(output, {
7117
+ runtimeHintValues: smithy_client_1._json,
7118
+ subSlotHints: (_) => de_SlotHintsSlotMap(_, context),
7119
+ });
7120
+ };
7121
+ const de_RuntimeHints = (output, context) => {
7122
+ return (0, smithy_client_1.take)(output, {
7123
+ slotHints: (_) => de_SlotHintsIntentMap(_, context),
7124
+ });
7125
+ };
6063
7126
  const de_S3BucketTranscriptSource = (output, context) => {
6064
7127
  return (0, smithy_client_1.take)(output, {
6065
7128
  kmsKeyArn: smithy_client_1.expectString,
@@ -6081,6 +7144,24 @@ const de_SlotCaptureSetting = (output, context) => {
6081
7144
  failureResponse: smithy_client_1._json,
6082
7145
  });
6083
7146
  };
7147
+ const de_SlotHintsIntentMap = (output, context) => {
7148
+ return Object.entries(output).reduce((acc, [key, value]) => {
7149
+ if (value === null) {
7150
+ return acc;
7151
+ }
7152
+ acc[key] = de_SlotHintsSlotMap(value, context);
7153
+ return acc;
7154
+ }, {});
7155
+ };
7156
+ const de_SlotHintsSlotMap = (output, context) => {
7157
+ return Object.entries(output).reduce((acc, [key, value]) => {
7158
+ if (value === null) {
7159
+ return acc;
7160
+ }
7161
+ acc[key] = de_RuntimeHintDetails(value, context);
7162
+ return acc;
7163
+ }, {});
7164
+ };
6084
7165
  const de_SlotSummary = (output, context) => {
6085
7166
  return (0, smithy_client_1.take)(output, {
6086
7167
  description: smithy_client_1.expectString,
@@ -6173,6 +7254,85 @@ const de_SubSlotSpecificationMap = (output, context) => {
6173
7254
  return acc;
6174
7255
  }, {});
6175
7256
  };
7257
+ const de_TestExecutionResultItems = (output, context) => {
7258
+ return (0, smithy_client_1.take)(output, {
7259
+ conversationLevelTestResults: smithy_client_1._json,
7260
+ intentClassificationTestResults: smithy_client_1._json,
7261
+ intentLevelSlotResolutionTestResults: smithy_client_1._json,
7262
+ overallTestResults: smithy_client_1._json,
7263
+ utteranceLevelTestResults: (_) => de_UtteranceLevelTestResults(_, context),
7264
+ });
7265
+ };
7266
+ const de_TestExecutionSummary = (output, context) => {
7267
+ return (0, smithy_client_1.take)(output, {
7268
+ apiMode: smithy_client_1.expectString,
7269
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
7270
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
7271
+ target: smithy_client_1._json,
7272
+ testExecutionId: smithy_client_1.expectString,
7273
+ testExecutionModality: smithy_client_1.expectString,
7274
+ testExecutionStatus: smithy_client_1.expectString,
7275
+ testSetId: smithy_client_1.expectString,
7276
+ testSetName: smithy_client_1.expectString,
7277
+ });
7278
+ };
7279
+ const de_TestExecutionSummaryList = (output, context) => {
7280
+ const retVal = (output || [])
7281
+ .filter((e) => e != null)
7282
+ .map((entry) => {
7283
+ return de_TestExecutionSummary(entry, context);
7284
+ });
7285
+ return retVal;
7286
+ };
7287
+ const de_TestSetGenerationDataSource = (output, context) => {
7288
+ return (0, smithy_client_1.take)(output, {
7289
+ conversationLogsDataSource: (_) => de_ConversationLogsDataSource(_, context),
7290
+ });
7291
+ };
7292
+ const de_TestSetSummary = (output, context) => {
7293
+ return (0, smithy_client_1.take)(output, {
7294
+ creationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
7295
+ description: smithy_client_1.expectString,
7296
+ lastUpdatedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
7297
+ modality: smithy_client_1.expectString,
7298
+ numTurns: smithy_client_1.expectInt32,
7299
+ roleArn: smithy_client_1.expectString,
7300
+ status: smithy_client_1.expectString,
7301
+ storageLocation: smithy_client_1._json,
7302
+ testSetId: smithy_client_1.expectString,
7303
+ testSetName: smithy_client_1.expectString,
7304
+ });
7305
+ };
7306
+ const de_TestSetSummaryList = (output, context) => {
7307
+ const retVal = (output || [])
7308
+ .filter((e) => e != null)
7309
+ .map((entry) => {
7310
+ return de_TestSetSummary(entry, context);
7311
+ });
7312
+ return retVal;
7313
+ };
7314
+ const de_TestSetTurnRecord = (output, context) => {
7315
+ return (0, smithy_client_1.take)(output, {
7316
+ conversationId: smithy_client_1.expectString,
7317
+ recordNumber: smithy_client_1.expectLong,
7318
+ turnNumber: smithy_client_1.expectInt32,
7319
+ turnSpecification: (_) => de_TurnSpecification(_, context),
7320
+ });
7321
+ };
7322
+ const de_TestSetTurnRecordList = (output, context) => {
7323
+ const retVal = (output || [])
7324
+ .filter((e) => e != null)
7325
+ .map((entry) => {
7326
+ return de_TestSetTurnRecord(entry, context);
7327
+ });
7328
+ return retVal;
7329
+ };
7330
+ const de_TestSetTurnResult = (output, context) => {
7331
+ return (0, smithy_client_1.take)(output, {
7332
+ agent: smithy_client_1._json,
7333
+ user: (_) => de_UserTurnResult(_, context),
7334
+ });
7335
+ };
6176
7336
  const de_TranscriptFilter = (output, context) => {
6177
7337
  return (0, smithy_client_1.take)(output, {
6178
7338
  lexTranscriptFilter: (_) => de_LexTranscriptFilter(_, context),
@@ -6183,6 +7343,95 @@ const de_TranscriptSourceSetting = (output, context) => {
6183
7343
  s3BucketTranscriptSource: (_) => de_S3BucketTranscriptSource(_, context),
6184
7344
  });
6185
7345
  };
7346
+ const de_TurnSpecification = (output, context) => {
7347
+ return (0, smithy_client_1.take)(output, {
7348
+ agentTurn: smithy_client_1._json,
7349
+ userTurn: (_) => de_UserTurnSpecification(_, context),
7350
+ });
7351
+ };
7352
+ const de_UserTurnInputSpecification = (output, context) => {
7353
+ return (0, smithy_client_1.take)(output, {
7354
+ requestAttributes: smithy_client_1._json,
7355
+ sessionState: (_) => de_InputSessionStateSpecification(_, context),
7356
+ utteranceInput: smithy_client_1._json,
7357
+ });
7358
+ };
7359
+ const de_UserTurnIntentOutput = (output, context) => {
7360
+ return (0, smithy_client_1.take)(output, {
7361
+ name: smithy_client_1.expectString,
7362
+ slots: (_) => de_UserTurnSlotOutputMap(_, context),
7363
+ });
7364
+ };
7365
+ const de_UserTurnOutputSpecification = (output, context) => {
7366
+ return (0, smithy_client_1.take)(output, {
7367
+ activeContexts: smithy_client_1._json,
7368
+ intent: (_) => de_UserTurnIntentOutput(_, context),
7369
+ transcript: smithy_client_1.expectString,
7370
+ });
7371
+ };
7372
+ const de_UserTurnResult = (output, context) => {
7373
+ return (0, smithy_client_1.take)(output, {
7374
+ actualOutput: (_) => de_UserTurnOutputSpecification(_, context),
7375
+ conversationLevelResult: smithy_client_1._json,
7376
+ endToEndResult: smithy_client_1.expectString,
7377
+ errorDetails: smithy_client_1._json,
7378
+ expectedOutput: (_) => de_UserTurnOutputSpecification(_, context),
7379
+ input: (_) => de_UserTurnInputSpecification(_, context),
7380
+ intentMatchResult: smithy_client_1.expectString,
7381
+ slotMatchResult: smithy_client_1.expectString,
7382
+ speechTranscriptionResult: smithy_client_1.expectString,
7383
+ });
7384
+ };
7385
+ const de_UserTurnSlotOutput = (output, context) => {
7386
+ return (0, smithy_client_1.take)(output, {
7387
+ subSlots: (_) => de_UserTurnSlotOutputMap(_, context),
7388
+ value: smithy_client_1.expectString,
7389
+ values: (_) => de_UserTurnSlotOutputList(_, context),
7390
+ });
7391
+ };
7392
+ const de_UserTurnSlotOutputList = (output, context) => {
7393
+ const retVal = (output || [])
7394
+ .filter((e) => e != null)
7395
+ .map((entry) => {
7396
+ return de_UserTurnSlotOutput(entry, context);
7397
+ });
7398
+ return retVal;
7399
+ };
7400
+ const de_UserTurnSlotOutputMap = (output, context) => {
7401
+ return Object.entries(output).reduce((acc, [key, value]) => {
7402
+ if (value === null) {
7403
+ return acc;
7404
+ }
7405
+ acc[key] = de_UserTurnSlotOutput(value, context);
7406
+ return acc;
7407
+ }, {});
7408
+ };
7409
+ const de_UserTurnSpecification = (output, context) => {
7410
+ return (0, smithy_client_1.take)(output, {
7411
+ expected: (_) => de_UserTurnOutputSpecification(_, context),
7412
+ input: (_) => de_UserTurnInputSpecification(_, context),
7413
+ });
7414
+ };
7415
+ const de_UtteranceLevelTestResultItem = (output, context) => {
7416
+ return (0, smithy_client_1.take)(output, {
7417
+ conversationId: smithy_client_1.expectString,
7418
+ recordNumber: smithy_client_1.expectLong,
7419
+ turnResult: (_) => de_TestSetTurnResult(_, context),
7420
+ });
7421
+ };
7422
+ const de_UtteranceLevelTestResultItemList = (output, context) => {
7423
+ const retVal = (output || [])
7424
+ .filter((e) => e != null)
7425
+ .map((entry) => {
7426
+ return de_UtteranceLevelTestResultItem(entry, context);
7427
+ });
7428
+ return retVal;
7429
+ };
7430
+ const de_UtteranceLevelTestResults = (output, context) => {
7431
+ return (0, smithy_client_1.take)(output, {
7432
+ items: (_) => de_UtteranceLevelTestResultItemList(_, context),
7433
+ });
7434
+ };
6186
7435
  const deserializeMetadata = (output) => ({
6187
7436
  httpStatusCode: output.statusCode,
6188
7437
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],