@aws-sdk/client-lex-models-v2 3.202.0 → 3.205.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 (90) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/LexModelsV2.js +60 -0
  4. package/dist-cjs/commands/BatchCreateCustomVocabularyItemCommand.js +46 -0
  5. package/dist-cjs/commands/BatchDeleteCustomVocabularyItemCommand.js +46 -0
  6. package/dist-cjs/commands/BatchUpdateCustomVocabularyItemCommand.js +46 -0
  7. package/dist-cjs/commands/ListCustomVocabularyItemsCommand.js +46 -0
  8. package/dist-cjs/commands/UpdateBotAliasCommand.js +3 -3
  9. package/dist-cjs/commands/UpdateBotCommand.js +3 -3
  10. package/dist-cjs/commands/UpdateBotLocaleCommand.js +3 -3
  11. package/dist-cjs/commands/UpdateBotRecommendationCommand.js +3 -3
  12. package/dist-cjs/commands/UpdateExportCommand.js +3 -3
  13. package/dist-cjs/commands/UpdateResourcePolicyCommand.js +3 -3
  14. package/dist-cjs/commands/UpdateSlotTypeCommand.js +1 -2
  15. package/dist-cjs/commands/index.js +4 -0
  16. package/dist-cjs/models/models_0.js +127 -127
  17. package/dist-cjs/models/models_1.js +58 -1
  18. package/dist-cjs/pagination/ListCustomVocabularyItemsPaginator.js +36 -0
  19. package/dist-cjs/pagination/index.js +1 -0
  20. package/dist-cjs/protocols/Aws_restJson1.js +420 -3
  21. package/dist-cjs/runtimeConfig.browser.js +0 -3
  22. package/dist-cjs/runtimeConfig.js +0 -3
  23. package/dist-cjs/runtimeConfig.shared.js +3 -0
  24. package/dist-es/LexModelsV2.js +60 -0
  25. package/dist-es/commands/BatchCreateCustomVocabularyItemCommand.js +42 -0
  26. package/dist-es/commands/BatchDeleteCustomVocabularyItemCommand.js +42 -0
  27. package/dist-es/commands/BatchUpdateCustomVocabularyItemCommand.js +42 -0
  28. package/dist-es/commands/ListCustomVocabularyItemsCommand.js +42 -0
  29. package/dist-es/commands/UpdateBotAliasCommand.js +1 -1
  30. package/dist-es/commands/UpdateBotCommand.js +1 -1
  31. package/dist-es/commands/UpdateBotLocaleCommand.js +1 -1
  32. package/dist-es/commands/UpdateBotRecommendationCommand.js +1 -1
  33. package/dist-es/commands/UpdateExportCommand.js +1 -1
  34. package/dist-es/commands/UpdateResourcePolicyCommand.js +1 -1
  35. package/dist-es/commands/UpdateSlotTypeCommand.js +1 -2
  36. package/dist-es/commands/index.js +4 -0
  37. package/dist-es/models/models_0.js +104 -103
  38. package/dist-es/models/models_1.js +44 -0
  39. package/dist-es/pagination/ListCustomVocabularyItemsPaginator.js +32 -0
  40. package/dist-es/pagination/index.js +1 -0
  41. package/dist-es/protocols/Aws_restJson1.js +409 -0
  42. package/dist-es/runtimeConfig.browser.js +0 -3
  43. package/dist-es/runtimeConfig.js +0 -3
  44. package/dist-es/runtimeConfig.shared.js +3 -0
  45. package/dist-types/LexModelsV2.d.ts +34 -1
  46. package/dist-types/LexModelsV2Client.d.ts +6 -2
  47. package/dist-types/commands/BatchCreateCustomVocabularyItemCommand.d.ts +38 -0
  48. package/dist-types/commands/BatchDeleteCustomVocabularyItemCommand.d.ts +38 -0
  49. package/dist-types/commands/BatchUpdateCustomVocabularyItemCommand.d.ts +38 -0
  50. package/dist-types/commands/ListCustomVocabularyItemsCommand.d.ts +38 -0
  51. package/dist-types/commands/ListRecommendedIntentsCommand.d.ts +2 -1
  52. package/dist-types/commands/UpdateBotAliasCommand.d.ts +1 -1
  53. package/dist-types/commands/UpdateBotCommand.d.ts +1 -1
  54. package/dist-types/commands/UpdateBotLocaleCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdateBotRecommendationCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateExportCommand.d.ts +1 -1
  57. package/dist-types/commands/UpdateResourcePolicyCommand.d.ts +1 -1
  58. package/dist-types/commands/UpdateSlotTypeCommand.d.ts +1 -2
  59. package/dist-types/commands/index.d.ts +4 -0
  60. package/dist-types/models/models_0.d.ts +409 -599
  61. package/dist-types/models/models_1.d.ts +525 -1
  62. package/dist-types/pagination/ListCustomVocabularyItemsPaginator.d.ts +4 -0
  63. package/dist-types/pagination/index.d.ts +1 -0
  64. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  65. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  66. package/dist-types/runtimeConfig.d.ts +2 -2
  67. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  68. package/dist-types/ts3.4/LexModelsV2.d.ts +68 -0
  69. package/dist-types/ts3.4/LexModelsV2Client.d.ts +24 -0
  70. package/dist-types/ts3.4/commands/BatchCreateCustomVocabularyItemCommand.d.ts +41 -0
  71. package/dist-types/ts3.4/commands/BatchDeleteCustomVocabularyItemCommand.d.ts +41 -0
  72. package/dist-types/ts3.4/commands/BatchUpdateCustomVocabularyItemCommand.d.ts +41 -0
  73. package/dist-types/ts3.4/commands/ListCustomVocabularyItemsCommand.d.ts +41 -0
  74. package/dist-types/ts3.4/commands/UpdateBotAliasCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/UpdateBotCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/UpdateBotLocaleCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/UpdateBotRecommendationCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/UpdateExportCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/UpdateResourcePolicyCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/UpdateSlotTypeCommand.d.ts +4 -2
  81. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  82. package/dist-types/ts3.4/models/models_0.d.ts +150 -191
  83. package/dist-types/ts3.4/models/models_1.d.ts +169 -0
  84. package/dist-types/ts3.4/pagination/ListCustomVocabularyItemsPaginator.d.ts +11 -0
  85. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  86. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  87. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  88. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  89. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
  90. package/package.json +5 -4
@@ -1,12 +1,93 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1ListSlotsCommand = exports.serializeAws_restJson1ListRecommendedIntentsCommand = exports.serializeAws_restJson1ListIntentsCommand = exports.serializeAws_restJson1ListImportsCommand = exports.serializeAws_restJson1ListExportsCommand = exports.serializeAws_restJson1ListBuiltInSlotTypesCommand = exports.serializeAws_restJson1ListBuiltInIntentsCommand = exports.serializeAws_restJson1ListBotVersionsCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListBotRecommendationsCommand = exports.serializeAws_restJson1ListBotLocalesCommand = exports.serializeAws_restJson1ListBotAliasesCommand = exports.serializeAws_restJson1ListAggregatedUtterancesCommand = exports.serializeAws_restJson1DescribeSlotTypeCommand = exports.serializeAws_restJson1DescribeSlotCommand = exports.serializeAws_restJson1DescribeResourcePolicyCommand = exports.serializeAws_restJson1DescribeIntentCommand = exports.serializeAws_restJson1DescribeImportCommand = exports.serializeAws_restJson1DescribeExportCommand = exports.serializeAws_restJson1DescribeCustomVocabularyMetadataCommand = exports.serializeAws_restJson1DescribeBotVersionCommand = exports.serializeAws_restJson1DescribeBotRecommendationCommand = exports.serializeAws_restJson1DescribeBotLocaleCommand = exports.serializeAws_restJson1DescribeBotAliasCommand = exports.serializeAws_restJson1DescribeBotCommand = exports.serializeAws_restJson1DeleteUtterancesCommand = exports.serializeAws_restJson1DeleteSlotTypeCommand = exports.serializeAws_restJson1DeleteSlotCommand = exports.serializeAws_restJson1DeleteResourcePolicyStatementCommand = exports.serializeAws_restJson1DeleteResourcePolicyCommand = exports.serializeAws_restJson1DeleteIntentCommand = exports.serializeAws_restJson1DeleteImportCommand = exports.serializeAws_restJson1DeleteExportCommand = exports.serializeAws_restJson1DeleteCustomVocabularyCommand = exports.serializeAws_restJson1DeleteBotVersionCommand = exports.serializeAws_restJson1DeleteBotLocaleCommand = exports.serializeAws_restJson1DeleteBotAliasCommand = exports.serializeAws_restJson1DeleteBotCommand = exports.serializeAws_restJson1CreateUploadUrlCommand = exports.serializeAws_restJson1CreateSlotTypeCommand = exports.serializeAws_restJson1CreateSlotCommand = exports.serializeAws_restJson1CreateResourcePolicyStatementCommand = exports.serializeAws_restJson1CreateResourcePolicyCommand = exports.serializeAws_restJson1CreateIntentCommand = exports.serializeAws_restJson1CreateExportCommand = exports.serializeAws_restJson1CreateBotVersionCommand = exports.serializeAws_restJson1CreateBotLocaleCommand = exports.serializeAws_restJson1CreateBotAliasCommand = exports.serializeAws_restJson1CreateBotCommand = exports.serializeAws_restJson1BuildBotLocaleCommand = void 0;
4
- exports.deserializeAws_restJson1DescribeImportCommand = exports.deserializeAws_restJson1DescribeExportCommand = exports.deserializeAws_restJson1DescribeCustomVocabularyMetadataCommand = exports.deserializeAws_restJson1DescribeBotVersionCommand = exports.deserializeAws_restJson1DescribeBotRecommendationCommand = exports.deserializeAws_restJson1DescribeBotLocaleCommand = exports.deserializeAws_restJson1DescribeBotAliasCommand = exports.deserializeAws_restJson1DescribeBotCommand = exports.deserializeAws_restJson1DeleteUtterancesCommand = exports.deserializeAws_restJson1DeleteSlotTypeCommand = exports.deserializeAws_restJson1DeleteSlotCommand = exports.deserializeAws_restJson1DeleteResourcePolicyStatementCommand = exports.deserializeAws_restJson1DeleteResourcePolicyCommand = exports.deserializeAws_restJson1DeleteIntentCommand = exports.deserializeAws_restJson1DeleteImportCommand = exports.deserializeAws_restJson1DeleteExportCommand = exports.deserializeAws_restJson1DeleteCustomVocabularyCommand = exports.deserializeAws_restJson1DeleteBotVersionCommand = exports.deserializeAws_restJson1DeleteBotLocaleCommand = exports.deserializeAws_restJson1DeleteBotAliasCommand = exports.deserializeAws_restJson1DeleteBotCommand = exports.deserializeAws_restJson1CreateUploadUrlCommand = exports.deserializeAws_restJson1CreateSlotTypeCommand = exports.deserializeAws_restJson1CreateSlotCommand = exports.deserializeAws_restJson1CreateResourcePolicyStatementCommand = exports.deserializeAws_restJson1CreateResourcePolicyCommand = exports.deserializeAws_restJson1CreateIntentCommand = exports.deserializeAws_restJson1CreateExportCommand = exports.deserializeAws_restJson1CreateBotVersionCommand = exports.deserializeAws_restJson1CreateBotLocaleCommand = exports.deserializeAws_restJson1CreateBotAliasCommand = exports.deserializeAws_restJson1CreateBotCommand = exports.deserializeAws_restJson1BuildBotLocaleCommand = exports.serializeAws_restJson1UpdateSlotTypeCommand = exports.serializeAws_restJson1UpdateSlotCommand = exports.serializeAws_restJson1UpdateResourcePolicyCommand = exports.serializeAws_restJson1UpdateIntentCommand = exports.serializeAws_restJson1UpdateExportCommand = exports.serializeAws_restJson1UpdateBotRecommendationCommand = exports.serializeAws_restJson1UpdateBotLocaleCommand = exports.serializeAws_restJson1UpdateBotAliasCommand = exports.serializeAws_restJson1UpdateBotCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopBotRecommendationCommand = exports.serializeAws_restJson1StartImportCommand = exports.serializeAws_restJson1StartBotRecommendationCommand = exports.serializeAws_restJson1SearchAssociatedTranscriptsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSlotTypesCommand = void 0;
5
- exports.deserializeAws_restJson1UpdateSlotTypeCommand = exports.deserializeAws_restJson1UpdateSlotCommand = exports.deserializeAws_restJson1UpdateResourcePolicyCommand = exports.deserializeAws_restJson1UpdateIntentCommand = exports.deserializeAws_restJson1UpdateExportCommand = exports.deserializeAws_restJson1UpdateBotRecommendationCommand = exports.deserializeAws_restJson1UpdateBotLocaleCommand = exports.deserializeAws_restJson1UpdateBotAliasCommand = exports.deserializeAws_restJson1UpdateBotCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopBotRecommendationCommand = exports.deserializeAws_restJson1StartImportCommand = exports.deserializeAws_restJson1StartBotRecommendationCommand = exports.deserializeAws_restJson1SearchAssociatedTranscriptsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSlotTypesCommand = exports.deserializeAws_restJson1ListSlotsCommand = exports.deserializeAws_restJson1ListRecommendedIntentsCommand = exports.deserializeAws_restJson1ListIntentsCommand = exports.deserializeAws_restJson1ListImportsCommand = exports.deserializeAws_restJson1ListExportsCommand = exports.deserializeAws_restJson1ListBuiltInSlotTypesCommand = exports.deserializeAws_restJson1ListBuiltInIntentsCommand = exports.deserializeAws_restJson1ListBotVersionsCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListBotRecommendationsCommand = exports.deserializeAws_restJson1ListBotLocalesCommand = exports.deserializeAws_restJson1ListBotAliasesCommand = exports.deserializeAws_restJson1ListAggregatedUtterancesCommand = exports.deserializeAws_restJson1DescribeSlotTypeCommand = exports.deserializeAws_restJson1DescribeSlotCommand = exports.deserializeAws_restJson1DescribeResourcePolicyCommand = exports.deserializeAws_restJson1DescribeIntentCommand = void 0;
3
+ exports.serializeAws_restJson1ListExportsCommand = exports.serializeAws_restJson1ListCustomVocabularyItemsCommand = exports.serializeAws_restJson1ListBuiltInSlotTypesCommand = exports.serializeAws_restJson1ListBuiltInIntentsCommand = exports.serializeAws_restJson1ListBotVersionsCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListBotRecommendationsCommand = exports.serializeAws_restJson1ListBotLocalesCommand = exports.serializeAws_restJson1ListBotAliasesCommand = exports.serializeAws_restJson1ListAggregatedUtterancesCommand = exports.serializeAws_restJson1DescribeSlotTypeCommand = exports.serializeAws_restJson1DescribeSlotCommand = exports.serializeAws_restJson1DescribeResourcePolicyCommand = exports.serializeAws_restJson1DescribeIntentCommand = exports.serializeAws_restJson1DescribeImportCommand = exports.serializeAws_restJson1DescribeExportCommand = exports.serializeAws_restJson1DescribeCustomVocabularyMetadataCommand = exports.serializeAws_restJson1DescribeBotVersionCommand = exports.serializeAws_restJson1DescribeBotRecommendationCommand = exports.serializeAws_restJson1DescribeBotLocaleCommand = exports.serializeAws_restJson1DescribeBotAliasCommand = exports.serializeAws_restJson1DescribeBotCommand = exports.serializeAws_restJson1DeleteUtterancesCommand = exports.serializeAws_restJson1DeleteSlotTypeCommand = exports.serializeAws_restJson1DeleteSlotCommand = exports.serializeAws_restJson1DeleteResourcePolicyStatementCommand = exports.serializeAws_restJson1DeleteResourcePolicyCommand = exports.serializeAws_restJson1DeleteIntentCommand = exports.serializeAws_restJson1DeleteImportCommand = exports.serializeAws_restJson1DeleteExportCommand = exports.serializeAws_restJson1DeleteCustomVocabularyCommand = exports.serializeAws_restJson1DeleteBotVersionCommand = exports.serializeAws_restJson1DeleteBotLocaleCommand = exports.serializeAws_restJson1DeleteBotAliasCommand = exports.serializeAws_restJson1DeleteBotCommand = exports.serializeAws_restJson1CreateUploadUrlCommand = exports.serializeAws_restJson1CreateSlotTypeCommand = exports.serializeAws_restJson1CreateSlotCommand = exports.serializeAws_restJson1CreateResourcePolicyStatementCommand = exports.serializeAws_restJson1CreateResourcePolicyCommand = exports.serializeAws_restJson1CreateIntentCommand = exports.serializeAws_restJson1CreateExportCommand = exports.serializeAws_restJson1CreateBotVersionCommand = exports.serializeAws_restJson1CreateBotLocaleCommand = exports.serializeAws_restJson1CreateBotAliasCommand = exports.serializeAws_restJson1CreateBotCommand = exports.serializeAws_restJson1BuildBotLocaleCommand = exports.serializeAws_restJson1BatchUpdateCustomVocabularyItemCommand = exports.serializeAws_restJson1BatchDeleteCustomVocabularyItemCommand = exports.serializeAws_restJson1BatchCreateCustomVocabularyItemCommand = void 0;
4
+ exports.deserializeAws_restJson1DescribeBotCommand = exports.deserializeAws_restJson1DeleteUtterancesCommand = exports.deserializeAws_restJson1DeleteSlotTypeCommand = exports.deserializeAws_restJson1DeleteSlotCommand = exports.deserializeAws_restJson1DeleteResourcePolicyStatementCommand = exports.deserializeAws_restJson1DeleteResourcePolicyCommand = exports.deserializeAws_restJson1DeleteIntentCommand = exports.deserializeAws_restJson1DeleteImportCommand = exports.deserializeAws_restJson1DeleteExportCommand = exports.deserializeAws_restJson1DeleteCustomVocabularyCommand = exports.deserializeAws_restJson1DeleteBotVersionCommand = exports.deserializeAws_restJson1DeleteBotLocaleCommand = exports.deserializeAws_restJson1DeleteBotAliasCommand = exports.deserializeAws_restJson1DeleteBotCommand = exports.deserializeAws_restJson1CreateUploadUrlCommand = exports.deserializeAws_restJson1CreateSlotTypeCommand = exports.deserializeAws_restJson1CreateSlotCommand = exports.deserializeAws_restJson1CreateResourcePolicyStatementCommand = exports.deserializeAws_restJson1CreateResourcePolicyCommand = exports.deserializeAws_restJson1CreateIntentCommand = exports.deserializeAws_restJson1CreateExportCommand = exports.deserializeAws_restJson1CreateBotVersionCommand = exports.deserializeAws_restJson1CreateBotLocaleCommand = exports.deserializeAws_restJson1CreateBotAliasCommand = exports.deserializeAws_restJson1CreateBotCommand = exports.deserializeAws_restJson1BuildBotLocaleCommand = exports.deserializeAws_restJson1BatchUpdateCustomVocabularyItemCommand = exports.deserializeAws_restJson1BatchDeleteCustomVocabularyItemCommand = exports.deserializeAws_restJson1BatchCreateCustomVocabularyItemCommand = exports.serializeAws_restJson1UpdateSlotTypeCommand = exports.serializeAws_restJson1UpdateSlotCommand = exports.serializeAws_restJson1UpdateResourcePolicyCommand = exports.serializeAws_restJson1UpdateIntentCommand = exports.serializeAws_restJson1UpdateExportCommand = exports.serializeAws_restJson1UpdateBotRecommendationCommand = exports.serializeAws_restJson1UpdateBotLocaleCommand = exports.serializeAws_restJson1UpdateBotAliasCommand = exports.serializeAws_restJson1UpdateBotCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopBotRecommendationCommand = exports.serializeAws_restJson1StartImportCommand = exports.serializeAws_restJson1StartBotRecommendationCommand = exports.serializeAws_restJson1SearchAssociatedTranscriptsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSlotTypesCommand = exports.serializeAws_restJson1ListSlotsCommand = exports.serializeAws_restJson1ListRecommendedIntentsCommand = exports.serializeAws_restJson1ListIntentsCommand = exports.serializeAws_restJson1ListImportsCommand = void 0;
5
+ exports.deserializeAws_restJson1UpdateSlotTypeCommand = exports.deserializeAws_restJson1UpdateSlotCommand = exports.deserializeAws_restJson1UpdateResourcePolicyCommand = exports.deserializeAws_restJson1UpdateIntentCommand = exports.deserializeAws_restJson1UpdateExportCommand = exports.deserializeAws_restJson1UpdateBotRecommendationCommand = exports.deserializeAws_restJson1UpdateBotLocaleCommand = exports.deserializeAws_restJson1UpdateBotAliasCommand = exports.deserializeAws_restJson1UpdateBotCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopBotRecommendationCommand = exports.deserializeAws_restJson1StartImportCommand = exports.deserializeAws_restJson1StartBotRecommendationCommand = exports.deserializeAws_restJson1SearchAssociatedTranscriptsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSlotTypesCommand = exports.deserializeAws_restJson1ListSlotsCommand = exports.deserializeAws_restJson1ListRecommendedIntentsCommand = exports.deserializeAws_restJson1ListIntentsCommand = exports.deserializeAws_restJson1ListImportsCommand = exports.deserializeAws_restJson1ListExportsCommand = exports.deserializeAws_restJson1ListCustomVocabularyItemsCommand = exports.deserializeAws_restJson1ListBuiltInSlotTypesCommand = exports.deserializeAws_restJson1ListBuiltInIntentsCommand = exports.deserializeAws_restJson1ListBotVersionsCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListBotRecommendationsCommand = exports.deserializeAws_restJson1ListBotLocalesCommand = exports.deserializeAws_restJson1ListBotAliasesCommand = exports.deserializeAws_restJson1ListAggregatedUtterancesCommand = exports.deserializeAws_restJson1DescribeSlotTypeCommand = exports.deserializeAws_restJson1DescribeSlotCommand = exports.deserializeAws_restJson1DescribeResourcePolicyCommand = exports.deserializeAws_restJson1DescribeIntentCommand = exports.deserializeAws_restJson1DescribeImportCommand = exports.deserializeAws_restJson1DescribeExportCommand = exports.deserializeAws_restJson1DescribeCustomVocabularyMetadataCommand = exports.deserializeAws_restJson1DescribeBotVersionCommand = exports.deserializeAws_restJson1DescribeBotRecommendationCommand = exports.deserializeAws_restJson1DescribeBotLocaleCommand = exports.deserializeAws_restJson1DescribeBotAliasCommand = void 0;
6
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const LexModelsV2ServiceException_1 = require("../models/LexModelsV2ServiceException");
9
9
  const models_0_1 = require("../models/models_0");
10
+ const serializeAws_restJson1BatchCreateCustomVocabularyItemCommand = async (input, context) => {
11
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const headers = {
13
+ "content-type": "application/json",
14
+ };
15
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
16
+ "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchcreate";
17
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
18
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
19
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
20
+ let body;
21
+ body = JSON.stringify({
22
+ ...(input.customVocabularyItemList != null && {
23
+ customVocabularyItemList: serializeAws_restJson1CreateCustomVocabularyItemsList(input.customVocabularyItemList, context),
24
+ }),
25
+ });
26
+ return new protocol_http_1.HttpRequest({
27
+ protocol,
28
+ hostname,
29
+ port,
30
+ method: "PUT",
31
+ headers,
32
+ path: resolvedPath,
33
+ body,
34
+ });
35
+ };
36
+ exports.serializeAws_restJson1BatchCreateCustomVocabularyItemCommand = serializeAws_restJson1BatchCreateCustomVocabularyItemCommand;
37
+ const serializeAws_restJson1BatchDeleteCustomVocabularyItemCommand = async (input, context) => {
38
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
39
+ const headers = {
40
+ "content-type": "application/json",
41
+ };
42
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
43
+ "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchdelete";
44
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
45
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
46
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
47
+ let body;
48
+ body = JSON.stringify({
49
+ ...(input.customVocabularyItemList != null && {
50
+ customVocabularyItemList: serializeAws_restJson1DeleteCustomVocabularyItemsList(input.customVocabularyItemList, context),
51
+ }),
52
+ });
53
+ return new protocol_http_1.HttpRequest({
54
+ protocol,
55
+ hostname,
56
+ port,
57
+ method: "POST",
58
+ headers,
59
+ path: resolvedPath,
60
+ body,
61
+ });
62
+ };
63
+ exports.serializeAws_restJson1BatchDeleteCustomVocabularyItemCommand = serializeAws_restJson1BatchDeleteCustomVocabularyItemCommand;
64
+ const serializeAws_restJson1BatchUpdateCustomVocabularyItemCommand = async (input, context) => {
65
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
+ const headers = {
67
+ "content-type": "application/json",
68
+ };
69
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
70
+ "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchupdate";
71
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
72
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
73
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
74
+ let body;
75
+ body = JSON.stringify({
76
+ ...(input.customVocabularyItemList != null && {
77
+ customVocabularyItemList: serializeAws_restJson1UpdateCustomVocabularyItemsList(input.customVocabularyItemList, context),
78
+ }),
79
+ });
80
+ return new protocol_http_1.HttpRequest({
81
+ protocol,
82
+ hostname,
83
+ port,
84
+ method: "PUT",
85
+ headers,
86
+ path: resolvedPath,
87
+ body,
88
+ });
89
+ };
90
+ exports.serializeAws_restJson1BatchUpdateCustomVocabularyItemCommand = serializeAws_restJson1BatchUpdateCustomVocabularyItemCommand;
10
91
  const serializeAws_restJson1BuildBotLocaleCommand = async (input, context) => {
11
92
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
93
  const headers = {};
@@ -1094,6 +1175,32 @@ const serializeAws_restJson1ListBuiltInSlotTypesCommand = async (input, context)
1094
1175
  });
1095
1176
  };
1096
1177
  exports.serializeAws_restJson1ListBuiltInSlotTypesCommand = serializeAws_restJson1ListBuiltInSlotTypesCommand;
1178
+ const serializeAws_restJson1ListCustomVocabularyItemsCommand = async (input, context) => {
1179
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1180
+ const headers = {
1181
+ "content-type": "application/json",
1182
+ };
1183
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1184
+ "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/list";
1185
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botId", () => input.botId, "{botId}", false);
1186
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "botVersion", () => input.botVersion, "{botVersion}", false);
1187
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "localeId", () => input.localeId, "{localeId}", false);
1188
+ let body;
1189
+ body = JSON.stringify({
1190
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
1191
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
1192
+ });
1193
+ return new protocol_http_1.HttpRequest({
1194
+ protocol,
1195
+ hostname,
1196
+ port,
1197
+ method: "POST",
1198
+ headers,
1199
+ path: resolvedPath,
1200
+ body,
1201
+ });
1202
+ };
1203
+ exports.serializeAws_restJson1ListCustomVocabularyItemsCommand = serializeAws_restJson1ListCustomVocabularyItemsCommand;
1097
1204
  const serializeAws_restJson1ListExportsCommand = async (input, context) => {
1098
1205
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1099
1206
  const headers = {
@@ -1734,6 +1841,180 @@ const serializeAws_restJson1UpdateSlotTypeCommand = async (input, context) => {
1734
1841
  });
1735
1842
  };
1736
1843
  exports.serializeAws_restJson1UpdateSlotTypeCommand = serializeAws_restJson1UpdateSlotTypeCommand;
1844
+ const deserializeAws_restJson1BatchCreateCustomVocabularyItemCommand = async (output, context) => {
1845
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1846
+ return deserializeAws_restJson1BatchCreateCustomVocabularyItemCommandError(output, context);
1847
+ }
1848
+ const contents = map({
1849
+ $metadata: deserializeMetadata(output),
1850
+ });
1851
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1852
+ if (data.botId != null) {
1853
+ contents.botId = (0, smithy_client_1.expectString)(data.botId);
1854
+ }
1855
+ if (data.botVersion != null) {
1856
+ contents.botVersion = (0, smithy_client_1.expectString)(data.botVersion);
1857
+ }
1858
+ if (data.errors != null) {
1859
+ contents.errors = deserializeAws_restJson1FailedCustomVocabularyItems(data.errors, context);
1860
+ }
1861
+ if (data.localeId != null) {
1862
+ contents.localeId = (0, smithy_client_1.expectString)(data.localeId);
1863
+ }
1864
+ if (data.resources != null) {
1865
+ contents.resources = deserializeAws_restJson1CustomVocabularyItems(data.resources, context);
1866
+ }
1867
+ return contents;
1868
+ };
1869
+ exports.deserializeAws_restJson1BatchCreateCustomVocabularyItemCommand = deserializeAws_restJson1BatchCreateCustomVocabularyItemCommand;
1870
+ const deserializeAws_restJson1BatchCreateCustomVocabularyItemCommandError = async (output, context) => {
1871
+ const parsedOutput = {
1872
+ ...output,
1873
+ body: await parseErrorBody(output.body, context),
1874
+ };
1875
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1876
+ switch (errorCode) {
1877
+ case "InternalServerException":
1878
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
1879
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1880
+ case "ResourceNotFoundException":
1881
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
1882
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1883
+ case "ServiceQuotaExceededException":
1884
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
1885
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1886
+ case "ThrottlingException":
1887
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
1888
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1889
+ case "ValidationException":
1890
+ case "com.amazonaws.lexmodelsv2#ValidationException":
1891
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1892
+ default:
1893
+ const parsedBody = parsedOutput.body;
1894
+ (0, smithy_client_1.throwDefaultError)({
1895
+ output,
1896
+ parsedBody,
1897
+ exceptionCtor: LexModelsV2ServiceException_1.LexModelsV2ServiceException,
1898
+ errorCode,
1899
+ });
1900
+ }
1901
+ };
1902
+ const deserializeAws_restJson1BatchDeleteCustomVocabularyItemCommand = async (output, context) => {
1903
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1904
+ return deserializeAws_restJson1BatchDeleteCustomVocabularyItemCommandError(output, context);
1905
+ }
1906
+ const contents = map({
1907
+ $metadata: deserializeMetadata(output),
1908
+ });
1909
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1910
+ if (data.botId != null) {
1911
+ contents.botId = (0, smithy_client_1.expectString)(data.botId);
1912
+ }
1913
+ if (data.botVersion != null) {
1914
+ contents.botVersion = (0, smithy_client_1.expectString)(data.botVersion);
1915
+ }
1916
+ if (data.errors != null) {
1917
+ contents.errors = deserializeAws_restJson1FailedCustomVocabularyItems(data.errors, context);
1918
+ }
1919
+ if (data.localeId != null) {
1920
+ contents.localeId = (0, smithy_client_1.expectString)(data.localeId);
1921
+ }
1922
+ if (data.resources != null) {
1923
+ contents.resources = deserializeAws_restJson1CustomVocabularyItems(data.resources, context);
1924
+ }
1925
+ return contents;
1926
+ };
1927
+ exports.deserializeAws_restJson1BatchDeleteCustomVocabularyItemCommand = deserializeAws_restJson1BatchDeleteCustomVocabularyItemCommand;
1928
+ const deserializeAws_restJson1BatchDeleteCustomVocabularyItemCommandError = async (output, context) => {
1929
+ const parsedOutput = {
1930
+ ...output,
1931
+ body: await parseErrorBody(output.body, context),
1932
+ };
1933
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1934
+ switch (errorCode) {
1935
+ case "InternalServerException":
1936
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
1937
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1938
+ case "ResourceNotFoundException":
1939
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
1940
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1941
+ case "ServiceQuotaExceededException":
1942
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
1943
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1944
+ case "ThrottlingException":
1945
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
1946
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1947
+ case "ValidationException":
1948
+ case "com.amazonaws.lexmodelsv2#ValidationException":
1949
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1950
+ default:
1951
+ const parsedBody = parsedOutput.body;
1952
+ (0, smithy_client_1.throwDefaultError)({
1953
+ output,
1954
+ parsedBody,
1955
+ exceptionCtor: LexModelsV2ServiceException_1.LexModelsV2ServiceException,
1956
+ errorCode,
1957
+ });
1958
+ }
1959
+ };
1960
+ const deserializeAws_restJson1BatchUpdateCustomVocabularyItemCommand = async (output, context) => {
1961
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1962
+ return deserializeAws_restJson1BatchUpdateCustomVocabularyItemCommandError(output, context);
1963
+ }
1964
+ const contents = map({
1965
+ $metadata: deserializeMetadata(output),
1966
+ });
1967
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1968
+ if (data.botId != null) {
1969
+ contents.botId = (0, smithy_client_1.expectString)(data.botId);
1970
+ }
1971
+ if (data.botVersion != null) {
1972
+ contents.botVersion = (0, smithy_client_1.expectString)(data.botVersion);
1973
+ }
1974
+ if (data.errors != null) {
1975
+ contents.errors = deserializeAws_restJson1FailedCustomVocabularyItems(data.errors, context);
1976
+ }
1977
+ if (data.localeId != null) {
1978
+ contents.localeId = (0, smithy_client_1.expectString)(data.localeId);
1979
+ }
1980
+ if (data.resources != null) {
1981
+ contents.resources = deserializeAws_restJson1CustomVocabularyItems(data.resources, context);
1982
+ }
1983
+ return contents;
1984
+ };
1985
+ exports.deserializeAws_restJson1BatchUpdateCustomVocabularyItemCommand = deserializeAws_restJson1BatchUpdateCustomVocabularyItemCommand;
1986
+ const deserializeAws_restJson1BatchUpdateCustomVocabularyItemCommandError = async (output, context) => {
1987
+ const parsedOutput = {
1988
+ ...output,
1989
+ body: await parseErrorBody(output.body, context),
1990
+ };
1991
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1992
+ switch (errorCode) {
1993
+ case "InternalServerException":
1994
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
1995
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1996
+ case "ResourceNotFoundException":
1997
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
1998
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1999
+ case "ServiceQuotaExceededException":
2000
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
2001
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2002
+ case "ThrottlingException":
2003
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
2004
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2005
+ case "ValidationException":
2006
+ case "com.amazonaws.lexmodelsv2#ValidationException":
2007
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2008
+ default:
2009
+ const parsedBody = parsedOutput.body;
2010
+ (0, smithy_client_1.throwDefaultError)({
2011
+ output,
2012
+ parsedBody,
2013
+ exceptionCtor: LexModelsV2ServiceException_1.LexModelsV2ServiceException,
2014
+ errorCode,
2015
+ });
2016
+ }
2017
+ };
1737
2018
  const deserializeAws_restJson1BuildBotLocaleCommand = async (output, context) => {
1738
2019
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1739
2020
  return deserializeAws_restJson1BuildBotLocaleCommandError(output, context);
@@ -4521,6 +4802,64 @@ const deserializeAws_restJson1ListBuiltInSlotTypesCommandError = async (output,
4521
4802
  });
4522
4803
  }
4523
4804
  };
4805
+ const deserializeAws_restJson1ListCustomVocabularyItemsCommand = async (output, context) => {
4806
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4807
+ return deserializeAws_restJson1ListCustomVocabularyItemsCommandError(output, context);
4808
+ }
4809
+ const contents = map({
4810
+ $metadata: deserializeMetadata(output),
4811
+ });
4812
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4813
+ if (data.botId != null) {
4814
+ contents.botId = (0, smithy_client_1.expectString)(data.botId);
4815
+ }
4816
+ if (data.botVersion != null) {
4817
+ contents.botVersion = (0, smithy_client_1.expectString)(data.botVersion);
4818
+ }
4819
+ if (data.customVocabularyItems != null) {
4820
+ contents.customVocabularyItems = deserializeAws_restJson1CustomVocabularyItems(data.customVocabularyItems, context);
4821
+ }
4822
+ if (data.localeId != null) {
4823
+ contents.localeId = (0, smithy_client_1.expectString)(data.localeId);
4824
+ }
4825
+ if (data.nextToken != null) {
4826
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4827
+ }
4828
+ return contents;
4829
+ };
4830
+ exports.deserializeAws_restJson1ListCustomVocabularyItemsCommand = deserializeAws_restJson1ListCustomVocabularyItemsCommand;
4831
+ const deserializeAws_restJson1ListCustomVocabularyItemsCommandError = async (output, context) => {
4832
+ const parsedOutput = {
4833
+ ...output,
4834
+ body: await parseErrorBody(output.body, context),
4835
+ };
4836
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4837
+ switch (errorCode) {
4838
+ case "InternalServerException":
4839
+ case "com.amazonaws.lexmodelsv2#InternalServerException":
4840
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4841
+ case "ResourceNotFoundException":
4842
+ case "com.amazonaws.lexmodelsv2#ResourceNotFoundException":
4843
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4844
+ case "ServiceQuotaExceededException":
4845
+ case "com.amazonaws.lexmodelsv2#ServiceQuotaExceededException":
4846
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
4847
+ case "ThrottlingException":
4848
+ case "com.amazonaws.lexmodelsv2#ThrottlingException":
4849
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4850
+ case "ValidationException":
4851
+ case "com.amazonaws.lexmodelsv2#ValidationException":
4852
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4853
+ default:
4854
+ const parsedBody = parsedOutput.body;
4855
+ (0, smithy_client_1.throwDefaultError)({
4856
+ output,
4857
+ parsedBody,
4858
+ exceptionCtor: LexModelsV2ServiceException_1.LexModelsV2ServiceException,
4859
+ errorCode,
4860
+ });
4861
+ }
4862
+ };
4524
4863
  const deserializeAws_restJson1ListExportsCommand = async (output, context) => {
4525
4864
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4526
4865
  return deserializeAws_restJson1ListExportsCommandError(output, context);
@@ -6337,11 +6676,23 @@ const serializeAws_restJson1ConversationLogSettings = (input, context) => {
6337
6676
  }),
6338
6677
  };
6339
6678
  };
6679
+ const serializeAws_restJson1CreateCustomVocabularyItemsList = (input, context) => {
6680
+ return input
6681
+ .filter((e) => e != null)
6682
+ .map((entry) => {
6683
+ return serializeAws_restJson1NewCustomVocabularyItem(entry, context);
6684
+ });
6685
+ };
6340
6686
  const serializeAws_restJson1CustomPayload = (input, context) => {
6341
6687
  return {
6342
6688
  ...(input.value != null && { value: input.value }),
6343
6689
  };
6344
6690
  };
6691
+ const serializeAws_restJson1CustomVocabularyEntryId = (input, context) => {
6692
+ return {
6693
+ ...(input.itemId != null && { itemId: input.itemId }),
6694
+ };
6695
+ };
6345
6696
  const serializeAws_restJson1CustomVocabularyExportSpecification = (input, context) => {
6346
6697
  return {
6347
6698
  ...(input.botId != null && { botId: input.botId }),
@@ -6356,6 +6707,14 @@ const serializeAws_restJson1CustomVocabularyImportSpecification = (input, contex
6356
6707
  ...(input.localeId != null && { localeId: input.localeId }),
6357
6708
  };
6358
6709
  };
6710
+ const serializeAws_restJson1CustomVocabularyItem = (input, context) => {
6711
+ return {
6712
+ ...(input.displayAs != null && { displayAs: input.displayAs }),
6713
+ ...(input.itemId != null && { itemId: input.itemId }),
6714
+ ...(input.phrase != null && { phrase: input.phrase }),
6715
+ ...(input.weight != null && { weight: input.weight }),
6716
+ };
6717
+ };
6359
6718
  const serializeAws_restJson1DataPrivacy = (input, context) => {
6360
6719
  return {
6361
6720
  ...(input.childDirected != null && { childDirected: input.childDirected }),
@@ -6373,6 +6732,13 @@ const serializeAws_restJson1DefaultConditionalBranch = (input, context) => {
6373
6732
  ...(input.response != null && { response: serializeAws_restJson1ResponseSpecification(input.response, context) }),
6374
6733
  };
6375
6734
  };
6735
+ const serializeAws_restJson1DeleteCustomVocabularyItemsList = (input, context) => {
6736
+ return input
6737
+ .filter((e) => e != null)
6738
+ .map((entry) => {
6739
+ return serializeAws_restJson1CustomVocabularyEntryId(entry, context);
6740
+ });
6741
+ };
6376
6742
  const serializeAws_restJson1DialogAction = (input, context) => {
6377
6743
  return {
6378
6744
  ...(input.slotToElicit != null && { slotToElicit: input.slotToElicit }),
@@ -6737,6 +7103,13 @@ const serializeAws_restJson1MultipleValuesSetting = (input, context) => {
6737
7103
  ...(input.allowMultipleValues != null && { allowMultipleValues: input.allowMultipleValues }),
6738
7104
  };
6739
7105
  };
7106
+ const serializeAws_restJson1NewCustomVocabularyItem = (input, context) => {
7107
+ return {
7108
+ ...(input.displayAs != null && { displayAs: input.displayAs }),
7109
+ ...(input.phrase != null && { phrase: input.phrase }),
7110
+ ...(input.weight != null && { weight: input.weight }),
7111
+ };
7112
+ };
6740
7113
  const serializeAws_restJson1ObfuscationSetting = (input, context) => {
6741
7114
  return {
6742
7115
  ...(input.obfuscationSettingType != null && { obfuscationSettingType: input.obfuscationSettingType }),
@@ -7269,6 +7642,13 @@ const serializeAws_restJson1TranscriptSourceSetting = (input, context) => {
7269
7642
  }),
7270
7643
  };
7271
7644
  };
7645
+ const serializeAws_restJson1UpdateCustomVocabularyItemsList = (input, context) => {
7646
+ return input
7647
+ .filter((e) => e != null)
7648
+ .map((entry) => {
7649
+ return serializeAws_restJson1CustomVocabularyItem(entry, context);
7650
+ });
7651
+ };
7272
7652
  const serializeAws_restJson1UtteranceAggregationDuration = (input, context) => {
7273
7653
  return {
7274
7654
  ...(input.relativeAggregationDuration != null && {
@@ -7756,6 +8136,25 @@ const deserializeAws_restJson1CustomVocabularyImportSpecification = (output, con
7756
8136
  localeId: (0, smithy_client_1.expectString)(output.localeId),
7757
8137
  };
7758
8138
  };
8139
+ const deserializeAws_restJson1CustomVocabularyItem = (output, context) => {
8140
+ return {
8141
+ displayAs: (0, smithy_client_1.expectString)(output.displayAs),
8142
+ itemId: (0, smithy_client_1.expectString)(output.itemId),
8143
+ phrase: (0, smithy_client_1.expectString)(output.phrase),
8144
+ weight: (0, smithy_client_1.expectInt32)(output.weight),
8145
+ };
8146
+ };
8147
+ const deserializeAws_restJson1CustomVocabularyItems = (output, context) => {
8148
+ const retVal = (output || [])
8149
+ .filter((e) => e != null)
8150
+ .map((entry) => {
8151
+ if (entry === null) {
8152
+ return null;
8153
+ }
8154
+ return deserializeAws_restJson1CustomVocabularyItem(entry, context);
8155
+ });
8156
+ return retVal;
8157
+ };
7759
8158
  const deserializeAws_restJson1DataPrivacy = (output, context) => {
7760
8159
  return {
7761
8160
  childDirected: (0, smithy_client_1.expectBoolean)(output.childDirected),
@@ -7876,6 +8275,24 @@ const deserializeAws_restJson1ExternalSourceSetting = (output, context) => {
7876
8275
  : undefined,
7877
8276
  };
7878
8277
  };
8278
+ const deserializeAws_restJson1FailedCustomVocabularyItem = (output, context) => {
8279
+ return {
8280
+ errorCode: (0, smithy_client_1.expectString)(output.errorCode),
8281
+ errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
8282
+ itemId: (0, smithy_client_1.expectString)(output.itemId),
8283
+ };
8284
+ };
8285
+ const deserializeAws_restJson1FailedCustomVocabularyItems = (output, context) => {
8286
+ const retVal = (output || [])
8287
+ .filter((e) => e != null)
8288
+ .map((entry) => {
8289
+ if (entry === null) {
8290
+ return null;
8291
+ }
8292
+ return deserializeAws_restJson1FailedCustomVocabularyItem(entry, context);
8293
+ });
8294
+ return retVal;
8295
+ };
7879
8296
  const deserializeAws_restJson1FailureReasons = (output, context) => {
7880
8297
  const retVal = (output || [])
7881
8298
  .filter((e) => e != null)
@@ -8,7 +8,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
8
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
10
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
- const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
12
11
  const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
@@ -24,8 +23,6 @@ const getRuntimeConfig = (config) => {
24
23
  ...config,
25
24
  runtime: "browser",
26
25
  defaultsMode,
27
- base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
- base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
26
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
27
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
28
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -10,7 +10,6 @@ const hash_node_1 = require("@aws-sdk/hash-node");
10
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
11
  const node_config_provider_1 = require("@aws-sdk/node-config-provider");
12
12
  const node_http_handler_1 = require("@aws-sdk/node-http-handler");
13
- const util_base64_node_1 = require("@aws-sdk/util-base64-node");
14
13
  const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
14
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
15
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
@@ -28,8 +27,6 @@ const getRuntimeConfig = (config) => {
28
27
  ...config,
29
28
  runtime: "node",
30
29
  defaultsMode,
31
- base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
- base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
30
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
31
  credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
32
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -2,9 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
+ const util_base64_1 = require("@aws-sdk/util-base64");
5
6
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
7
  const getRuntimeConfig = (config) => ({
7
8
  apiVersion: "2020-08-07",
9
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
10
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
8
11
  disableHostPrefix: config?.disableHostPrefix ?? false,
9
12
  endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
13
  logger: config?.logger ?? {},