@aws-sdk/client-connect 3.48.0 → 3.52.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 (91) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +2 -3
  3. package/dist-cjs/Connect.js +90 -0
  4. package/dist-cjs/commands/AssociateDefaultVocabularyCommand.js +36 -0
  5. package/dist-cjs/commands/CreateVocabularyCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteVocabularyCommand.js +36 -0
  7. package/dist-cjs/commands/DescribeVocabularyCommand.js +36 -0
  8. package/dist-cjs/commands/ListDefaultVocabulariesCommand.js +36 -0
  9. package/dist-cjs/commands/SearchVocabulariesCommand.js +36 -0
  10. package/dist-cjs/commands/StartOutboundVoiceContactCommand.js +3 -3
  11. package/dist-cjs/commands/StartTaskContactCommand.js +3 -3
  12. package/dist-cjs/commands/StopContactCommand.js +3 -3
  13. package/dist-cjs/commands/StopContactRecordingCommand.js +3 -3
  14. package/dist-cjs/commands/StopContactStreamingCommand.js +3 -3
  15. package/dist-cjs/commands/SuspendContactRecordingCommand.js +3 -3
  16. package/dist-cjs/commands/index.js +6 -0
  17. package/dist-cjs/models/models_0.js +127 -95
  18. package/dist-cjs/models/models_1.js +91 -1
  19. package/dist-cjs/pagination/ListDefaultVocabulariesPaginator.js +35 -0
  20. package/dist-cjs/pagination/SearchVocabulariesPaginator.js +35 -0
  21. package/dist-cjs/pagination/index.js +2 -0
  22. package/dist-cjs/protocols/Aws_restJson1.js +796 -7
  23. package/dist-es/Connect.js +90 -0
  24. package/dist-es/commands/AssociateDefaultVocabularyCommand.js +39 -0
  25. package/dist-es/commands/CreateVocabularyCommand.js +39 -0
  26. package/dist-es/commands/DeleteVocabularyCommand.js +39 -0
  27. package/dist-es/commands/DescribeVocabularyCommand.js +39 -0
  28. package/dist-es/commands/ListDefaultVocabulariesCommand.js +39 -0
  29. package/dist-es/commands/SearchVocabulariesCommand.js +39 -0
  30. package/dist-es/commands/StartOutboundVoiceContactCommand.js +1 -1
  31. package/dist-es/commands/StartTaskContactCommand.js +1 -1
  32. package/dist-es/commands/StopContactCommand.js +1 -1
  33. package/dist-es/commands/StopContactRecordingCommand.js +1 -1
  34. package/dist-es/commands/StopContactStreamingCommand.js +1 -1
  35. package/dist-es/commands/SuspendContactRecordingCommand.js +1 -1
  36. package/dist-es/commands/index.js +6 -0
  37. package/dist-es/models/models_0.js +91 -61
  38. package/dist-es/models/models_1.js +61 -0
  39. package/dist-es/pagination/ListDefaultVocabulariesPaginator.js +74 -0
  40. package/dist-es/pagination/SearchVocabulariesPaginator.js +74 -0
  41. package/dist-es/pagination/index.js +2 -0
  42. package/dist-es/protocols/Aws_restJson1.js +946 -64
  43. package/dist-types/Connect.d.ts +62 -15
  44. package/dist-types/ConnectClient.d.ts +10 -5
  45. package/dist-types/commands/AssociateDefaultVocabularyCommand.d.ts +35 -0
  46. package/dist-types/commands/CreateVocabularyCommand.d.ts +37 -0
  47. package/dist-types/commands/DeleteIntegrationAssociationCommand.d.ts +2 -2
  48. package/dist-types/commands/DeleteVocabularyCommand.d.ts +35 -0
  49. package/dist-types/commands/DescribeVocabularyCommand.d.ts +35 -0
  50. package/dist-types/commands/ListBotsCommand.d.ts +2 -2
  51. package/dist-types/commands/ListDefaultVocabulariesCommand.d.ts +35 -0
  52. package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +2 -2
  53. package/dist-types/commands/SearchVocabulariesCommand.d.ts +35 -0
  54. package/dist-types/commands/StartChatContactCommand.d.ts +4 -1
  55. package/dist-types/commands/StartContactStreamingCommand.d.ts +1 -1
  56. package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +4 -3
  57. package/dist-types/commands/StartTaskContactCommand.d.ts +1 -1
  58. package/dist-types/commands/StopContactCommand.d.ts +1 -1
  59. package/dist-types/commands/StopContactRecordingCommand.d.ts +1 -1
  60. package/dist-types/commands/StopContactStreamingCommand.d.ts +1 -1
  61. package/dist-types/commands/SuspendContactRecordingCommand.d.ts +1 -1
  62. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  63. package/dist-types/commands/index.d.ts +6 -0
  64. package/dist-types/models/models_0.d.ts +433 -347
  65. package/dist-types/models/models_1.d.ts +337 -2
  66. package/dist-types/pagination/ListDefaultVocabulariesPaginator.d.ts +4 -0
  67. package/dist-types/pagination/SearchVocabulariesPaginator.d.ts +4 -0
  68. package/dist-types/pagination/index.d.ts +2 -0
  69. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  70. package/dist-types/ts3.4/Connect.d.ts +30 -0
  71. package/dist-types/ts3.4/ConnectClient.d.ts +8 -2
  72. package/dist-types/ts3.4/commands/AssociateDefaultVocabularyCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/CreateVocabularyCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/DeleteVocabularyCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/DescribeVocabularyCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/ListDefaultVocabulariesCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/SearchVocabulariesCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/StartOutboundVoiceContactCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/StartTaskContactCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/StopContactCommand.d.ts +1 -1
  81. package/dist-types/ts3.4/commands/StopContactRecordingCommand.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/StopContactStreamingCommand.d.ts +1 -1
  83. package/dist-types/ts3.4/commands/SuspendContactRecordingCommand.d.ts +1 -1
  84. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +236 -182
  86. package/dist-types/ts3.4/models/models_1.d.ts +184 -1
  87. package/dist-types/ts3.4/pagination/ListDefaultVocabulariesPaginator.d.ts +4 -0
  88. package/dist-types/ts3.4/pagination/SearchVocabulariesPaginator.d.ts +4 -0
  89. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  90. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -0
  91. package/package.json +40 -34
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.serializeAws_restJson1DescribeInstanceAttributeCommand = exports.serializeAws_restJson1DescribeInstanceCommand = exports.serializeAws_restJson1DescribeHoursOfOperationCommand = exports.serializeAws_restJson1DescribeContactFlowModuleCommand = exports.serializeAws_restJson1DescribeContactFlowCommand = exports.serializeAws_restJson1DescribeContactCommand = exports.serializeAws_restJson1DescribeAgentStatusCommand = exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteUseCaseCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_restJson1DeleteContactFlowModuleCommand = exports.serializeAws_restJson1DeleteContactFlowCommand = exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateUseCaseCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateRoutingProfileCommand = exports.serializeAws_restJson1CreateQuickConnectCommand = exports.serializeAws_restJson1CreateQueueCommand = exports.serializeAws_restJson1CreateIntegrationAssociationCommand = exports.serializeAws_restJson1CreateInstanceCommand = exports.serializeAws_restJson1CreateHoursOfOperationCommand = exports.serializeAws_restJson1CreateContactFlowModuleCommand = exports.serializeAws_restJson1CreateContactFlowCommand = exports.serializeAws_restJson1CreateAgentStatusCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
4
- exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = exports.serializeAws_restJson1StartChatContactCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = void 0;
5
- exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = void 0;
6
- exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = void 0;
7
- exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = void 0;
8
- exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = void 0;
3
+ exports.serializeAws_restJson1DescribeVocabularyCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.serializeAws_restJson1DescribeInstanceAttributeCommand = exports.serializeAws_restJson1DescribeInstanceCommand = exports.serializeAws_restJson1DescribeHoursOfOperationCommand = exports.serializeAws_restJson1DescribeContactFlowModuleCommand = exports.serializeAws_restJson1DescribeContactFlowCommand = exports.serializeAws_restJson1DescribeContactCommand = exports.serializeAws_restJson1DescribeAgentStatusCommand = exports.serializeAws_restJson1DeleteVocabularyCommand = exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteUseCaseCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_restJson1DeleteContactFlowModuleCommand = exports.serializeAws_restJson1DeleteContactFlowCommand = exports.serializeAws_restJson1CreateVocabularyCommand = exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateUseCaseCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateRoutingProfileCommand = exports.serializeAws_restJson1CreateQuickConnectCommand = exports.serializeAws_restJson1CreateQueueCommand = exports.serializeAws_restJson1CreateIntegrationAssociationCommand = exports.serializeAws_restJson1CreateInstanceCommand = exports.serializeAws_restJson1CreateHoursOfOperationCommand = exports.serializeAws_restJson1CreateContactFlowModuleCommand = exports.serializeAws_restJson1CreateContactFlowCommand = exports.serializeAws_restJson1CreateAgentStatusCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateDefaultVocabularyCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
4
+ exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = exports.serializeAws_restJson1StartChatContactCommand = exports.serializeAws_restJson1SearchVocabulariesCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListDefaultVocabulariesCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = void 0;
5
+ exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = void 0;
6
+ exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeVocabularyCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteVocabularyCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = void 0;
7
+ exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1SearchVocabulariesCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListDefaultVocabulariesCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = void 0;
8
+ exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = void 0;
9
9
  const protocol_http_1 = require("@aws-sdk/protocol-http");
10
10
  const smithy_client_1 = require("@aws-sdk/smithy-client");
11
11
  const uuid_1 = require("uuid");
@@ -74,6 +74,48 @@ const serializeAws_restJson1AssociateBotCommand = async (input, context) => {
74
74
  });
75
75
  };
76
76
  exports.serializeAws_restJson1AssociateBotCommand = serializeAws_restJson1AssociateBotCommand;
77
+ const serializeAws_restJson1AssociateDefaultVocabularyCommand = async (input, context) => {
78
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
79
+ const headers = {
80
+ "content-type": "application/json",
81
+ };
82
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
83
+ "/default-vocabulary/{InstanceId}/{LanguageCode}";
84
+ if (input.InstanceId !== undefined) {
85
+ const labelValue = input.InstanceId;
86
+ if (labelValue.length <= 0) {
87
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
88
+ }
89
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
90
+ }
91
+ else {
92
+ throw new Error("No value provided for input HTTP label: InstanceId.");
93
+ }
94
+ if (input.LanguageCode !== undefined) {
95
+ const labelValue = input.LanguageCode;
96
+ if (labelValue.length <= 0) {
97
+ throw new Error("Empty value provided for input HTTP label: LanguageCode.");
98
+ }
99
+ resolvedPath = resolvedPath.replace("{LanguageCode}", smithy_client_1.extendedEncodeURIComponent(labelValue));
100
+ }
101
+ else {
102
+ throw new Error("No value provided for input HTTP label: LanguageCode.");
103
+ }
104
+ let body;
105
+ body = JSON.stringify({
106
+ ...(input.VocabularyId !== undefined && input.VocabularyId !== null && { VocabularyId: input.VocabularyId }),
107
+ });
108
+ return new protocol_http_1.HttpRequest({
109
+ protocol,
110
+ hostname,
111
+ port,
112
+ method: "PUT",
113
+ headers,
114
+ path: resolvedPath,
115
+ body,
116
+ });
117
+ };
118
+ exports.serializeAws_restJson1AssociateDefaultVocabularyCommand = serializeAws_restJson1AssociateDefaultVocabularyCommand;
77
119
  const serializeAws_restJson1AssociateInstanceStorageConfigCommand = async (input, context) => {
78
120
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
79
121
  const headers = {
@@ -790,6 +832,43 @@ const serializeAws_restJson1CreateUserHierarchyGroupCommand = async (input, cont
790
832
  });
791
833
  };
792
834
  exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = serializeAws_restJson1CreateUserHierarchyGroupCommand;
835
+ const serializeAws_restJson1CreateVocabularyCommand = async (input, context) => {
836
+ var _a;
837
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
838
+ const headers = {
839
+ "content-type": "application/json",
840
+ };
841
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/vocabulary/{InstanceId}";
842
+ if (input.InstanceId !== undefined) {
843
+ const labelValue = input.InstanceId;
844
+ if (labelValue.length <= 0) {
845
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
846
+ }
847
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
848
+ }
849
+ else {
850
+ throw new Error("No value provided for input HTTP label: InstanceId.");
851
+ }
852
+ let body;
853
+ body = JSON.stringify({
854
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
855
+ ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
856
+ ...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
857
+ ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
858
+ ...(input.VocabularyName !== undefined &&
859
+ input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
860
+ });
861
+ return new protocol_http_1.HttpRequest({
862
+ protocol,
863
+ hostname,
864
+ port,
865
+ method: "POST",
866
+ headers,
867
+ path: resolvedPath,
868
+ body,
869
+ });
870
+ };
871
+ exports.serializeAws_restJson1CreateVocabularyCommand = serializeAws_restJson1CreateVocabularyCommand;
793
872
  const serializeAws_restJson1DeleteContactFlowCommand = async (input, context) => {
794
873
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
795
874
  const headers = {};
@@ -1158,6 +1237,43 @@ const serializeAws_restJson1DeleteUserHierarchyGroupCommand = async (input, cont
1158
1237
  });
1159
1238
  };
1160
1239
  exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = serializeAws_restJson1DeleteUserHierarchyGroupCommand;
1240
+ const serializeAws_restJson1DeleteVocabularyCommand = async (input, context) => {
1241
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1242
+ const headers = {};
1243
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1244
+ "/vocabulary-remove/{InstanceId}/{VocabularyId}";
1245
+ if (input.InstanceId !== undefined) {
1246
+ const labelValue = input.InstanceId;
1247
+ if (labelValue.length <= 0) {
1248
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
1249
+ }
1250
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1251
+ }
1252
+ else {
1253
+ throw new Error("No value provided for input HTTP label: InstanceId.");
1254
+ }
1255
+ if (input.VocabularyId !== undefined) {
1256
+ const labelValue = input.VocabularyId;
1257
+ if (labelValue.length <= 0) {
1258
+ throw new Error("Empty value provided for input HTTP label: VocabularyId.");
1259
+ }
1260
+ resolvedPath = resolvedPath.replace("{VocabularyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1261
+ }
1262
+ else {
1263
+ throw new Error("No value provided for input HTTP label: VocabularyId.");
1264
+ }
1265
+ let body;
1266
+ return new protocol_http_1.HttpRequest({
1267
+ protocol,
1268
+ hostname,
1269
+ port,
1270
+ method: "POST",
1271
+ headers,
1272
+ path: resolvedPath,
1273
+ body,
1274
+ });
1275
+ };
1276
+ exports.serializeAws_restJson1DeleteVocabularyCommand = serializeAws_restJson1DeleteVocabularyCommand;
1161
1277
  const serializeAws_restJson1DescribeAgentStatusCommand = async (input, context) => {
1162
1278
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1163
1279
  const headers = {};
@@ -1692,6 +1808,42 @@ const serializeAws_restJson1DescribeUserHierarchyStructureCommand = async (input
1692
1808
  });
1693
1809
  };
1694
1810
  exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = serializeAws_restJson1DescribeUserHierarchyStructureCommand;
1811
+ const serializeAws_restJson1DescribeVocabularyCommand = async (input, context) => {
1812
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1813
+ const headers = {};
1814
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/vocabulary/{InstanceId}/{VocabularyId}";
1815
+ if (input.InstanceId !== undefined) {
1816
+ const labelValue = input.InstanceId;
1817
+ if (labelValue.length <= 0) {
1818
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
1819
+ }
1820
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1821
+ }
1822
+ else {
1823
+ throw new Error("No value provided for input HTTP label: InstanceId.");
1824
+ }
1825
+ if (input.VocabularyId !== undefined) {
1826
+ const labelValue = input.VocabularyId;
1827
+ if (labelValue.length <= 0) {
1828
+ throw new Error("Empty value provided for input HTTP label: VocabularyId.");
1829
+ }
1830
+ resolvedPath = resolvedPath.replace("{VocabularyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1831
+ }
1832
+ else {
1833
+ throw new Error("No value provided for input HTTP label: VocabularyId.");
1834
+ }
1835
+ let body;
1836
+ return new protocol_http_1.HttpRequest({
1837
+ protocol,
1838
+ hostname,
1839
+ port,
1840
+ method: "GET",
1841
+ headers,
1842
+ path: resolvedPath,
1843
+ body,
1844
+ });
1845
+ };
1846
+ exports.serializeAws_restJson1DescribeVocabularyCommand = serializeAws_restJson1DescribeVocabularyCommand;
1695
1847
  const serializeAws_restJson1DisassociateApprovedOriginCommand = async (input, context) => {
1696
1848
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1697
1849
  const headers = {};
@@ -2340,6 +2492,39 @@ const serializeAws_restJson1ListContactReferencesCommand = async (input, context
2340
2492
  });
2341
2493
  };
2342
2494
  exports.serializeAws_restJson1ListContactReferencesCommand = serializeAws_restJson1ListContactReferencesCommand;
2495
+ const serializeAws_restJson1ListDefaultVocabulariesCommand = async (input, context) => {
2496
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2497
+ const headers = {
2498
+ "content-type": "application/json",
2499
+ };
2500
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/default-vocabulary-summary/{InstanceId}";
2501
+ if (input.InstanceId !== undefined) {
2502
+ const labelValue = input.InstanceId;
2503
+ if (labelValue.length <= 0) {
2504
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
2505
+ }
2506
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2507
+ }
2508
+ else {
2509
+ throw new Error("No value provided for input HTTP label: InstanceId.");
2510
+ }
2511
+ let body;
2512
+ body = JSON.stringify({
2513
+ ...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
2514
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2515
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2516
+ });
2517
+ return new protocol_http_1.HttpRequest({
2518
+ protocol,
2519
+ hostname,
2520
+ port,
2521
+ method: "POST",
2522
+ headers,
2523
+ path: resolvedPath,
2524
+ body,
2525
+ });
2526
+ };
2527
+ exports.serializeAws_restJson1ListDefaultVocabulariesCommand = serializeAws_restJson1ListDefaultVocabulariesCommand;
2343
2528
  const serializeAws_restJson1ListHoursOfOperationsCommand = async (input, context) => {
2344
2529
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2345
2530
  const headers = {};
@@ -3058,6 +3243,42 @@ const serializeAws_restJson1ResumeContactRecordingCommand = async (input, contex
3058
3243
  });
3059
3244
  };
3060
3245
  exports.serializeAws_restJson1ResumeContactRecordingCommand = serializeAws_restJson1ResumeContactRecordingCommand;
3246
+ const serializeAws_restJson1SearchVocabulariesCommand = async (input, context) => {
3247
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3248
+ const headers = {
3249
+ "content-type": "application/json",
3250
+ };
3251
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/vocabulary-summary/{InstanceId}";
3252
+ if (input.InstanceId !== undefined) {
3253
+ const labelValue = input.InstanceId;
3254
+ if (labelValue.length <= 0) {
3255
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
3256
+ }
3257
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3258
+ }
3259
+ else {
3260
+ throw new Error("No value provided for input HTTP label: InstanceId.");
3261
+ }
3262
+ let body;
3263
+ body = JSON.stringify({
3264
+ ...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
3265
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3266
+ ...(input.NameStartsWith !== undefined &&
3267
+ input.NameStartsWith !== null && { NameStartsWith: input.NameStartsWith }),
3268
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3269
+ ...(input.State !== undefined && input.State !== null && { State: input.State }),
3270
+ });
3271
+ return new protocol_http_1.HttpRequest({
3272
+ protocol,
3273
+ hostname,
3274
+ port,
3275
+ method: "POST",
3276
+ headers,
3277
+ path: resolvedPath,
3278
+ body,
3279
+ });
3280
+ };
3281
+ exports.serializeAws_restJson1SearchVocabulariesCommand = serializeAws_restJson1SearchVocabulariesCommand;
3061
3282
  const serializeAws_restJson1StartChatContactCommand = async (input, context) => {
3062
3283
  var _a;
3063
3284
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -3069,6 +3290,8 @@ const serializeAws_restJson1StartChatContactCommand = async (input, context) =>
3069
3290
  body = JSON.stringify({
3070
3291
  ...(input.Attributes !== undefined &&
3071
3292
  input.Attributes !== null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
3293
+ ...(input.ChatDurationInMinutes !== undefined &&
3294
+ input.ChatDurationInMinutes !== null && { ChatDurationInMinutes: input.ChatDurationInMinutes }),
3072
3295
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
3073
3296
  ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
3074
3297
  ...(input.InitialMessage !== undefined &&
@@ -4864,6 +5087,82 @@ const deserializeAws_restJson1AssociateBotCommandError = async (output, context)
4864
5087
  delete response.Message;
4865
5088
  return Promise.reject(Object.assign(new Error(message), response));
4866
5089
  };
5090
+ const deserializeAws_restJson1AssociateDefaultVocabularyCommand = async (output, context) => {
5091
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5092
+ return deserializeAws_restJson1AssociateDefaultVocabularyCommandError(output, context);
5093
+ }
5094
+ const contents = {
5095
+ $metadata: deserializeMetadata(output),
5096
+ };
5097
+ await collectBody(output.body, context);
5098
+ return Promise.resolve(contents);
5099
+ };
5100
+ exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = deserializeAws_restJson1AssociateDefaultVocabularyCommand;
5101
+ const deserializeAws_restJson1AssociateDefaultVocabularyCommandError = async (output, context) => {
5102
+ const parsedOutput = {
5103
+ ...output,
5104
+ body: await parseBody(output.body, context),
5105
+ };
5106
+ let response;
5107
+ let errorCode = "UnknownError";
5108
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5109
+ switch (errorCode) {
5110
+ case "AccessDeniedException":
5111
+ case "com.amazonaws.connect#AccessDeniedException":
5112
+ response = {
5113
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
5114
+ name: errorCode,
5115
+ $metadata: deserializeMetadata(output),
5116
+ };
5117
+ break;
5118
+ case "InternalServiceException":
5119
+ case "com.amazonaws.connect#InternalServiceException":
5120
+ response = {
5121
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
5122
+ name: errorCode,
5123
+ $metadata: deserializeMetadata(output),
5124
+ };
5125
+ break;
5126
+ case "InvalidRequestException":
5127
+ case "com.amazonaws.connect#InvalidRequestException":
5128
+ response = {
5129
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
5130
+ name: errorCode,
5131
+ $metadata: deserializeMetadata(output),
5132
+ };
5133
+ break;
5134
+ case "ResourceNotFoundException":
5135
+ case "com.amazonaws.connect#ResourceNotFoundException":
5136
+ response = {
5137
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
5138
+ name: errorCode,
5139
+ $metadata: deserializeMetadata(output),
5140
+ };
5141
+ break;
5142
+ case "ThrottlingException":
5143
+ case "com.amazonaws.connect#ThrottlingException":
5144
+ response = {
5145
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
5146
+ name: errorCode,
5147
+ $metadata: deserializeMetadata(output),
5148
+ };
5149
+ break;
5150
+ default:
5151
+ const parsedBody = parsedOutput.body;
5152
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
5153
+ response = {
5154
+ ...parsedBody,
5155
+ name: `${errorCode}`,
5156
+ message: parsedBody.message || parsedBody.Message || errorCode,
5157
+ $fault: "client",
5158
+ $metadata: deserializeMetadata(output),
5159
+ };
5160
+ }
5161
+ const message = response.message || response.Message || errorCode;
5162
+ response.message = message;
5163
+ delete response.Message;
5164
+ return Promise.reject(Object.assign(new Error(message), response));
5165
+ };
4867
5166
  const deserializeAws_restJson1AssociateInstanceStorageConfigCommand = async (output, context) => {
4868
5167
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4869
5168
  return deserializeAws_restJson1AssociateInstanceStorageConfigCommandError(output, context);
@@ -6676,6 +6975,110 @@ const deserializeAws_restJson1CreateUserHierarchyGroupCommandError = async (outp
6676
6975
  delete response.Message;
6677
6976
  return Promise.reject(Object.assign(new Error(message), response));
6678
6977
  };
6978
+ const deserializeAws_restJson1CreateVocabularyCommand = async (output, context) => {
6979
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6980
+ return deserializeAws_restJson1CreateVocabularyCommandError(output, context);
6981
+ }
6982
+ const contents = {
6983
+ $metadata: deserializeMetadata(output),
6984
+ State: undefined,
6985
+ VocabularyArn: undefined,
6986
+ VocabularyId: undefined,
6987
+ };
6988
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6989
+ if (data.State !== undefined && data.State !== null) {
6990
+ contents.State = smithy_client_1.expectString(data.State);
6991
+ }
6992
+ if (data.VocabularyArn !== undefined && data.VocabularyArn !== null) {
6993
+ contents.VocabularyArn = smithy_client_1.expectString(data.VocabularyArn);
6994
+ }
6995
+ if (data.VocabularyId !== undefined && data.VocabularyId !== null) {
6996
+ contents.VocabularyId = smithy_client_1.expectString(data.VocabularyId);
6997
+ }
6998
+ return Promise.resolve(contents);
6999
+ };
7000
+ exports.deserializeAws_restJson1CreateVocabularyCommand = deserializeAws_restJson1CreateVocabularyCommand;
7001
+ const deserializeAws_restJson1CreateVocabularyCommandError = async (output, context) => {
7002
+ const parsedOutput = {
7003
+ ...output,
7004
+ body: await parseBody(output.body, context),
7005
+ };
7006
+ let response;
7007
+ let errorCode = "UnknownError";
7008
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7009
+ switch (errorCode) {
7010
+ case "AccessDeniedException":
7011
+ case "com.amazonaws.connect#AccessDeniedException":
7012
+ response = {
7013
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
7014
+ name: errorCode,
7015
+ $metadata: deserializeMetadata(output),
7016
+ };
7017
+ break;
7018
+ case "InternalServiceException":
7019
+ case "com.amazonaws.connect#InternalServiceException":
7020
+ response = {
7021
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
7022
+ name: errorCode,
7023
+ $metadata: deserializeMetadata(output),
7024
+ };
7025
+ break;
7026
+ case "InvalidRequestException":
7027
+ case "com.amazonaws.connect#InvalidRequestException":
7028
+ response = {
7029
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
7030
+ name: errorCode,
7031
+ $metadata: deserializeMetadata(output),
7032
+ };
7033
+ break;
7034
+ case "ResourceConflictException":
7035
+ case "com.amazonaws.connect#ResourceConflictException":
7036
+ response = {
7037
+ ...(await deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context)),
7038
+ name: errorCode,
7039
+ $metadata: deserializeMetadata(output),
7040
+ };
7041
+ break;
7042
+ case "ResourceNotFoundException":
7043
+ case "com.amazonaws.connect#ResourceNotFoundException":
7044
+ response = {
7045
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
7046
+ name: errorCode,
7047
+ $metadata: deserializeMetadata(output),
7048
+ };
7049
+ break;
7050
+ case "ServiceQuotaExceededException":
7051
+ case "com.amazonaws.connect#ServiceQuotaExceededException":
7052
+ response = {
7053
+ ...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
7054
+ name: errorCode,
7055
+ $metadata: deserializeMetadata(output),
7056
+ };
7057
+ break;
7058
+ case "ThrottlingException":
7059
+ case "com.amazonaws.connect#ThrottlingException":
7060
+ response = {
7061
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
7062
+ name: errorCode,
7063
+ $metadata: deserializeMetadata(output),
7064
+ };
7065
+ break;
7066
+ default:
7067
+ const parsedBody = parsedOutput.body;
7068
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
7069
+ response = {
7070
+ ...parsedBody,
7071
+ name: `${errorCode}`,
7072
+ message: parsedBody.message || parsedBody.Message || errorCode,
7073
+ $fault: "client",
7074
+ $metadata: deserializeMetadata(output),
7075
+ };
7076
+ }
7077
+ const message = response.message || response.Message || errorCode;
7078
+ response.message = message;
7079
+ delete response.Message;
7080
+ return Promise.reject(Object.assign(new Error(message), response));
7081
+ };
6679
7082
  const deserializeAws_restJson1DeleteContactFlowCommand = async (output, context) => {
6680
7083
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6681
7084
  return deserializeAws_restJson1DeleteContactFlowCommandError(output, context);
@@ -7391,7 +7794,103 @@ const deserializeAws_restJson1DeleteUserHierarchyGroupCommandError = async (outp
7391
7794
  case "InvalidParameterException":
7392
7795
  case "com.amazonaws.connect#InvalidParameterException":
7393
7796
  response = {
7394
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
7797
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
7798
+ name: errorCode,
7799
+ $metadata: deserializeMetadata(output),
7800
+ };
7801
+ break;
7802
+ case "InvalidRequestException":
7803
+ case "com.amazonaws.connect#InvalidRequestException":
7804
+ response = {
7805
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
7806
+ name: errorCode,
7807
+ $metadata: deserializeMetadata(output),
7808
+ };
7809
+ break;
7810
+ case "ResourceInUseException":
7811
+ case "com.amazonaws.connect#ResourceInUseException":
7812
+ response = {
7813
+ ...(await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context)),
7814
+ name: errorCode,
7815
+ $metadata: deserializeMetadata(output),
7816
+ };
7817
+ break;
7818
+ case "ResourceNotFoundException":
7819
+ case "com.amazonaws.connect#ResourceNotFoundException":
7820
+ response = {
7821
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
7822
+ name: errorCode,
7823
+ $metadata: deserializeMetadata(output),
7824
+ };
7825
+ break;
7826
+ case "ThrottlingException":
7827
+ case "com.amazonaws.connect#ThrottlingException":
7828
+ response = {
7829
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
7830
+ name: errorCode,
7831
+ $metadata: deserializeMetadata(output),
7832
+ };
7833
+ break;
7834
+ default:
7835
+ const parsedBody = parsedOutput.body;
7836
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
7837
+ response = {
7838
+ ...parsedBody,
7839
+ name: `${errorCode}`,
7840
+ message: parsedBody.message || parsedBody.Message || errorCode,
7841
+ $fault: "client",
7842
+ $metadata: deserializeMetadata(output),
7843
+ };
7844
+ }
7845
+ const message = response.message || response.Message || errorCode;
7846
+ response.message = message;
7847
+ delete response.Message;
7848
+ return Promise.reject(Object.assign(new Error(message), response));
7849
+ };
7850
+ const deserializeAws_restJson1DeleteVocabularyCommand = async (output, context) => {
7851
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7852
+ return deserializeAws_restJson1DeleteVocabularyCommandError(output, context);
7853
+ }
7854
+ const contents = {
7855
+ $metadata: deserializeMetadata(output),
7856
+ State: undefined,
7857
+ VocabularyArn: undefined,
7858
+ VocabularyId: undefined,
7859
+ };
7860
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7861
+ if (data.State !== undefined && data.State !== null) {
7862
+ contents.State = smithy_client_1.expectString(data.State);
7863
+ }
7864
+ if (data.VocabularyArn !== undefined && data.VocabularyArn !== null) {
7865
+ contents.VocabularyArn = smithy_client_1.expectString(data.VocabularyArn);
7866
+ }
7867
+ if (data.VocabularyId !== undefined && data.VocabularyId !== null) {
7868
+ contents.VocabularyId = smithy_client_1.expectString(data.VocabularyId);
7869
+ }
7870
+ return Promise.resolve(contents);
7871
+ };
7872
+ exports.deserializeAws_restJson1DeleteVocabularyCommand = deserializeAws_restJson1DeleteVocabularyCommand;
7873
+ const deserializeAws_restJson1DeleteVocabularyCommandError = async (output, context) => {
7874
+ const parsedOutput = {
7875
+ ...output,
7876
+ body: await parseBody(output.body, context),
7877
+ };
7878
+ let response;
7879
+ let errorCode = "UnknownError";
7880
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7881
+ switch (errorCode) {
7882
+ case "AccessDeniedException":
7883
+ case "com.amazonaws.connect#AccessDeniedException":
7884
+ response = {
7885
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
7886
+ name: errorCode,
7887
+ $metadata: deserializeMetadata(output),
7888
+ };
7889
+ break;
7890
+ case "InternalServiceException":
7891
+ case "com.amazonaws.connect#InternalServiceException":
7892
+ response = {
7893
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
7395
7894
  name: errorCode,
7396
7895
  $metadata: deserializeMetadata(output),
7397
7896
  };
@@ -8644,6 +9143,86 @@ const deserializeAws_restJson1DescribeUserHierarchyStructureCommandError = async
8644
9143
  delete response.Message;
8645
9144
  return Promise.reject(Object.assign(new Error(message), response));
8646
9145
  };
9146
+ const deserializeAws_restJson1DescribeVocabularyCommand = async (output, context) => {
9147
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
9148
+ return deserializeAws_restJson1DescribeVocabularyCommandError(output, context);
9149
+ }
9150
+ const contents = {
9151
+ $metadata: deserializeMetadata(output),
9152
+ Vocabulary: undefined,
9153
+ };
9154
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9155
+ if (data.Vocabulary !== undefined && data.Vocabulary !== null) {
9156
+ contents.Vocabulary = deserializeAws_restJson1Vocabulary(data.Vocabulary, context);
9157
+ }
9158
+ return Promise.resolve(contents);
9159
+ };
9160
+ exports.deserializeAws_restJson1DescribeVocabularyCommand = deserializeAws_restJson1DescribeVocabularyCommand;
9161
+ const deserializeAws_restJson1DescribeVocabularyCommandError = async (output, context) => {
9162
+ const parsedOutput = {
9163
+ ...output,
9164
+ body: await parseBody(output.body, context),
9165
+ };
9166
+ let response;
9167
+ let errorCode = "UnknownError";
9168
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
9169
+ switch (errorCode) {
9170
+ case "AccessDeniedException":
9171
+ case "com.amazonaws.connect#AccessDeniedException":
9172
+ response = {
9173
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
9174
+ name: errorCode,
9175
+ $metadata: deserializeMetadata(output),
9176
+ };
9177
+ break;
9178
+ case "InternalServiceException":
9179
+ case "com.amazonaws.connect#InternalServiceException":
9180
+ response = {
9181
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
9182
+ name: errorCode,
9183
+ $metadata: deserializeMetadata(output),
9184
+ };
9185
+ break;
9186
+ case "InvalidRequestException":
9187
+ case "com.amazonaws.connect#InvalidRequestException":
9188
+ response = {
9189
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
9190
+ name: errorCode,
9191
+ $metadata: deserializeMetadata(output),
9192
+ };
9193
+ break;
9194
+ case "ResourceNotFoundException":
9195
+ case "com.amazonaws.connect#ResourceNotFoundException":
9196
+ response = {
9197
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
9198
+ name: errorCode,
9199
+ $metadata: deserializeMetadata(output),
9200
+ };
9201
+ break;
9202
+ case "ThrottlingException":
9203
+ case "com.amazonaws.connect#ThrottlingException":
9204
+ response = {
9205
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
9206
+ name: errorCode,
9207
+ $metadata: deserializeMetadata(output),
9208
+ };
9209
+ break;
9210
+ default:
9211
+ const parsedBody = parsedOutput.body;
9212
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
9213
+ response = {
9214
+ ...parsedBody,
9215
+ name: `${errorCode}`,
9216
+ message: parsedBody.message || parsedBody.Message || errorCode,
9217
+ $fault: "client",
9218
+ $metadata: deserializeMetadata(output),
9219
+ };
9220
+ }
9221
+ const message = response.message || response.Message || errorCode;
9222
+ response.message = message;
9223
+ delete response.Message;
9224
+ return Promise.reject(Object.assign(new Error(message), response));
9225
+ };
8647
9226
  const deserializeAws_restJson1DisassociateApprovedOriginCommand = async (output, context) => {
8648
9227
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8649
9228
  return deserializeAws_restJson1DisassociateApprovedOriginCommandError(output, context);
@@ -10072,6 +10651,82 @@ const deserializeAws_restJson1ListContactReferencesCommandError = async (output,
10072
10651
  delete response.Message;
10073
10652
  return Promise.reject(Object.assign(new Error(message), response));
10074
10653
  };
10654
+ const deserializeAws_restJson1ListDefaultVocabulariesCommand = async (output, context) => {
10655
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
10656
+ return deserializeAws_restJson1ListDefaultVocabulariesCommandError(output, context);
10657
+ }
10658
+ const contents = {
10659
+ $metadata: deserializeMetadata(output),
10660
+ DefaultVocabularyList: undefined,
10661
+ NextToken: undefined,
10662
+ };
10663
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
10664
+ if (data.DefaultVocabularyList !== undefined && data.DefaultVocabularyList !== null) {
10665
+ contents.DefaultVocabularyList = deserializeAws_restJson1DefaultVocabularyList(data.DefaultVocabularyList, context);
10666
+ }
10667
+ if (data.NextToken !== undefined && data.NextToken !== null) {
10668
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
10669
+ }
10670
+ return Promise.resolve(contents);
10671
+ };
10672
+ exports.deserializeAws_restJson1ListDefaultVocabulariesCommand = deserializeAws_restJson1ListDefaultVocabulariesCommand;
10673
+ const deserializeAws_restJson1ListDefaultVocabulariesCommandError = async (output, context) => {
10674
+ const parsedOutput = {
10675
+ ...output,
10676
+ body: await parseBody(output.body, context),
10677
+ };
10678
+ let response;
10679
+ let errorCode = "UnknownError";
10680
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
10681
+ switch (errorCode) {
10682
+ case "AccessDeniedException":
10683
+ case "com.amazonaws.connect#AccessDeniedException":
10684
+ response = {
10685
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
10686
+ name: errorCode,
10687
+ $metadata: deserializeMetadata(output),
10688
+ };
10689
+ break;
10690
+ case "InternalServiceException":
10691
+ case "com.amazonaws.connect#InternalServiceException":
10692
+ response = {
10693
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
10694
+ name: errorCode,
10695
+ $metadata: deserializeMetadata(output),
10696
+ };
10697
+ break;
10698
+ case "InvalidRequestException":
10699
+ case "com.amazonaws.connect#InvalidRequestException":
10700
+ response = {
10701
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
10702
+ name: errorCode,
10703
+ $metadata: deserializeMetadata(output),
10704
+ };
10705
+ break;
10706
+ case "ThrottlingException":
10707
+ case "com.amazonaws.connect#ThrottlingException":
10708
+ response = {
10709
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
10710
+ name: errorCode,
10711
+ $metadata: deserializeMetadata(output),
10712
+ };
10713
+ break;
10714
+ default:
10715
+ const parsedBody = parsedOutput.body;
10716
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
10717
+ response = {
10718
+ ...parsedBody,
10719
+ name: `${errorCode}`,
10720
+ message: parsedBody.message || parsedBody.Message || errorCode,
10721
+ $fault: "client",
10722
+ $metadata: deserializeMetadata(output),
10723
+ };
10724
+ }
10725
+ const message = response.message || response.Message || errorCode;
10726
+ response.message = message;
10727
+ delete response.Message;
10728
+ return Promise.reject(Object.assign(new Error(message), response));
10729
+ };
10075
10730
  const deserializeAws_restJson1ListHoursOfOperationsCommand = async (output, context) => {
10076
10731
  if (output.statusCode !== 200 && output.statusCode >= 300) {
10077
10732
  return deserializeAws_restJson1ListHoursOfOperationsCommandError(output, context);
@@ -11852,6 +12507,82 @@ const deserializeAws_restJson1ResumeContactRecordingCommandError = async (output
11852
12507
  delete response.Message;
11853
12508
  return Promise.reject(Object.assign(new Error(message), response));
11854
12509
  };
12510
+ const deserializeAws_restJson1SearchVocabulariesCommand = async (output, context) => {
12511
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
12512
+ return deserializeAws_restJson1SearchVocabulariesCommandError(output, context);
12513
+ }
12514
+ const contents = {
12515
+ $metadata: deserializeMetadata(output),
12516
+ NextToken: undefined,
12517
+ VocabularySummaryList: undefined,
12518
+ };
12519
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
12520
+ if (data.NextToken !== undefined && data.NextToken !== null) {
12521
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
12522
+ }
12523
+ if (data.VocabularySummaryList !== undefined && data.VocabularySummaryList !== null) {
12524
+ contents.VocabularySummaryList = deserializeAws_restJson1VocabularySummaryList(data.VocabularySummaryList, context);
12525
+ }
12526
+ return Promise.resolve(contents);
12527
+ };
12528
+ exports.deserializeAws_restJson1SearchVocabulariesCommand = deserializeAws_restJson1SearchVocabulariesCommand;
12529
+ const deserializeAws_restJson1SearchVocabulariesCommandError = async (output, context) => {
12530
+ const parsedOutput = {
12531
+ ...output,
12532
+ body: await parseBody(output.body, context),
12533
+ };
12534
+ let response;
12535
+ let errorCode = "UnknownError";
12536
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12537
+ switch (errorCode) {
12538
+ case "AccessDeniedException":
12539
+ case "com.amazonaws.connect#AccessDeniedException":
12540
+ response = {
12541
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
12542
+ name: errorCode,
12543
+ $metadata: deserializeMetadata(output),
12544
+ };
12545
+ break;
12546
+ case "InternalServiceException":
12547
+ case "com.amazonaws.connect#InternalServiceException":
12548
+ response = {
12549
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
12550
+ name: errorCode,
12551
+ $metadata: deserializeMetadata(output),
12552
+ };
12553
+ break;
12554
+ case "InvalidRequestException":
12555
+ case "com.amazonaws.connect#InvalidRequestException":
12556
+ response = {
12557
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
12558
+ name: errorCode,
12559
+ $metadata: deserializeMetadata(output),
12560
+ };
12561
+ break;
12562
+ case "ThrottlingException":
12563
+ case "com.amazonaws.connect#ThrottlingException":
12564
+ response = {
12565
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
12566
+ name: errorCode,
12567
+ $metadata: deserializeMetadata(output),
12568
+ };
12569
+ break;
12570
+ default:
12571
+ const parsedBody = parsedOutput.body;
12572
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
12573
+ response = {
12574
+ ...parsedBody,
12575
+ name: `${errorCode}`,
12576
+ message: parsedBody.message || parsedBody.Message || errorCode,
12577
+ $fault: "client",
12578
+ $metadata: deserializeMetadata(output),
12579
+ };
12580
+ }
12581
+ const message = response.message || response.Message || errorCode;
12582
+ response.message = message;
12583
+ delete response.Message;
12584
+ return Promise.reject(Object.assign(new Error(message), response));
12585
+ };
11855
12586
  const deserializeAws_restJson1StartChatContactCommand = async (output, context) => {
11856
12587
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11857
12588
  return deserializeAws_restJson1StartChatContactCommandError(output, context);
@@ -16041,6 +16772,24 @@ const deserializeAws_restJson1CurrentMetricResults = (output, context) => {
16041
16772
  return deserializeAws_restJson1CurrentMetricResult(entry, context);
16042
16773
  });
16043
16774
  };
16775
+ const deserializeAws_restJson1DefaultVocabulary = (output, context) => {
16776
+ return {
16777
+ InstanceId: smithy_client_1.expectString(output.InstanceId),
16778
+ LanguageCode: smithy_client_1.expectString(output.LanguageCode),
16779
+ VocabularyId: smithy_client_1.expectString(output.VocabularyId),
16780
+ VocabularyName: smithy_client_1.expectString(output.VocabularyName),
16781
+ };
16782
+ };
16783
+ const deserializeAws_restJson1DefaultVocabularyList = (output, context) => {
16784
+ return (output || [])
16785
+ .filter((e) => e != null)
16786
+ .map((entry) => {
16787
+ if (entry === null) {
16788
+ return null;
16789
+ }
16790
+ return deserializeAws_restJson1DefaultVocabulary(entry, context);
16791
+ });
16792
+ };
16044
16793
  const deserializeAws_restJson1Dimensions = (output, context) => {
16045
16794
  return {
16046
16795
  Channel: smithy_client_1.expectString(output.Channel),
@@ -16849,6 +17598,46 @@ const deserializeAws_restJson1UserSummaryList = (output, context) => {
16849
17598
  return deserializeAws_restJson1UserSummary(entry, context);
16850
17599
  });
16851
17600
  };
17601
+ const deserializeAws_restJson1Vocabulary = (output, context) => {
17602
+ return {
17603
+ Arn: smithy_client_1.expectString(output.Arn),
17604
+ Content: smithy_client_1.expectString(output.Content),
17605
+ FailureReason: smithy_client_1.expectString(output.FailureReason),
17606
+ Id: smithy_client_1.expectString(output.Id),
17607
+ LanguageCode: smithy_client_1.expectString(output.LanguageCode),
17608
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
17609
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
17610
+ : undefined,
17611
+ Name: smithy_client_1.expectString(output.Name),
17612
+ State: smithy_client_1.expectString(output.State),
17613
+ Tags: output.Tags !== undefined && output.Tags !== null
17614
+ ? deserializeAws_restJson1TagMap(output.Tags, context)
17615
+ : undefined,
17616
+ };
17617
+ };
17618
+ const deserializeAws_restJson1VocabularySummary = (output, context) => {
17619
+ return {
17620
+ Arn: smithy_client_1.expectString(output.Arn),
17621
+ FailureReason: smithy_client_1.expectString(output.FailureReason),
17622
+ Id: smithy_client_1.expectString(output.Id),
17623
+ LanguageCode: smithy_client_1.expectString(output.LanguageCode),
17624
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
17625
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
17626
+ : undefined,
17627
+ Name: smithy_client_1.expectString(output.Name),
17628
+ State: smithy_client_1.expectString(output.State),
17629
+ };
17630
+ };
17631
+ const deserializeAws_restJson1VocabularySummaryList = (output, context) => {
17632
+ return (output || [])
17633
+ .filter((e) => e != null)
17634
+ .map((entry) => {
17635
+ if (entry === null) {
17636
+ return null;
17637
+ }
17638
+ return deserializeAws_restJson1VocabularySummary(entry, context);
17639
+ });
17640
+ };
16852
17641
  const deserializeMetadata = (output) => {
16853
17642
  var _a;
16854
17643
  return ({