@aws-sdk/client-connect 3.199.0 → 3.201.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 (48) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist-cjs/Connect.js +15 -0
  3. package/dist-cjs/commands/DismissUserContactCommand.js +46 -0
  4. package/dist-cjs/commands/ListLambdaFunctionsCommand.js +2 -1
  5. package/dist-cjs/commands/ListLexBotsCommand.js +1 -2
  6. package/dist-cjs/commands/index.js +1 -0
  7. package/dist-cjs/endpoint/EndpointParameters.js +2 -3
  8. package/dist-cjs/endpoint/ruleset.js +1 -1
  9. package/dist-cjs/models/models_0.js +11 -11
  10. package/dist-cjs/models/models_1.js +12 -4
  11. package/dist-cjs/protocols/Aws_restJson1.js +255 -202
  12. package/dist-cjs/runtimeConfig.browser.js +16 -16
  13. package/dist-cjs/runtimeConfig.js +20 -19
  14. package/dist-cjs/runtimeConfig.native.js +1 -2
  15. package/dist-cjs/runtimeConfig.shared.js +8 -11
  16. package/dist-es/Connect.js +15 -0
  17. package/dist-es/commands/DismissUserContactCommand.js +42 -0
  18. package/dist-es/commands/ListLambdaFunctionsCommand.js +2 -1
  19. package/dist-es/commands/ListLexBotsCommand.js +1 -2
  20. package/dist-es/commands/index.js +1 -0
  21. package/dist-es/endpoint/ruleset.js +1 -1
  22. package/dist-es/models/models_0.js +6 -6
  23. package/dist-es/models/models_1.js +6 -0
  24. package/dist-es/protocols/Aws_restJson1.js +67 -0
  25. package/dist-types/Connect.d.ts +16 -5
  26. package/dist-types/ConnectClient.d.ts +3 -2
  27. package/dist-types/commands/ClaimPhoneNumberCommand.d.ts +1 -1
  28. package/dist-types/commands/DismissUserContactCommand.d.ts +40 -0
  29. package/dist-types/commands/ListLambdaFunctionsCommand.d.ts +2 -1
  30. package/dist-types/commands/ListLexBotsCommand.d.ts +1 -2
  31. package/dist-types/commands/ReleasePhoneNumberCommand.d.ts +2 -1
  32. package/dist-types/commands/UpdateTrafficDistributionCommand.d.ts +3 -3
  33. package/dist-types/commands/index.d.ts +1 -0
  34. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  35. package/dist-types/models/models_0.d.ts +31 -40
  36. package/dist-types/models/models_1.d.ts +36 -2
  37. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  38. package/dist-types/ts3.4/Connect.d.ts +17 -0
  39. package/dist-types/ts3.4/ConnectClient.d.ts +6 -0
  40. package/dist-types/ts3.4/commands/DismissUserContactCommand.d.ts +38 -0
  41. package/dist-types/ts3.4/commands/ListLambdaFunctionsCommand.d.ts +2 -4
  42. package/dist-types/ts3.4/commands/ListLexBotsCommand.d.ts +1 -2
  43. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  44. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  45. package/dist-types/ts3.4/models/models_0.d.ts +12 -15
  46. package/dist-types/ts3.4/models/models_1.d.ts +15 -0
  47. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  48. package/package.json +33 -33
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribePhoneNumberCommand = 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_restJson1DeleteTrafficDistributionGroupCommand = exports.serializeAws_restJson1DeleteTaskTemplateCommand = 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_restJson1CreateTrafficDistributionGroupCommand = exports.serializeAws_restJson1CreateTaskTemplateCommand = 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_restJson1ClaimPhoneNumberCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateDefaultVocabularyCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
4
- 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_restJson1ListPhoneNumbersV2Command = 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_restJson1GetTrafficDistributionCommand = exports.serializeAws_restJson1GetTaskTemplateCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentUserDataCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeVocabularyCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeTrafficDistributionGroupCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = void 0;
5
- 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_restJson1UpdatePhoneNumberCommand = 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_restJson1TransferContactCommand = 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_restJson1SearchVocabulariesCommand = exports.serializeAws_restJson1SearchUsersCommand = exports.serializeAws_restJson1SearchSecurityProfilesCommand = exports.serializeAws_restJson1SearchRoutingProfilesCommand = exports.serializeAws_restJson1SearchQueuesCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReplicateInstanceCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1PutUserStatusCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTrafficDistributionGroupsCommand = exports.serializeAws_restJson1ListTaskTemplatesCommand = void 0;
6
- exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteTrafficDistributionGroupCommand = exports.deserializeAws_restJson1DeleteTaskTemplateCommand = 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_restJson1CreateTrafficDistributionGroupCommand = exports.deserializeAws_restJson1CreateTaskTemplateCommand = 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_restJson1ClaimPhoneNumberCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = 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_restJson1UpdateTrafficDistributionCommand = exports.serializeAws_restJson1UpdateTaskTemplateCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = void 0;
7
- 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 = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetTrafficDistributionCommand = exports.deserializeAws_restJson1GetTaskTemplateCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentUserDataCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = 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_restJson1DescribeTrafficDistributionGroupCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribePhoneNumberCommand = 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 = void 0;
8
- 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_restJson1TransferContactCommand = 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_restJson1SearchUsersCommand = exports.deserializeAws_restJson1SearchSecurityProfilesCommand = exports.deserializeAws_restJson1SearchRoutingProfilesCommand = exports.deserializeAws_restJson1SearchQueuesCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReplicateInstanceCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1PutUserStatusCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTrafficDistributionGroupsCommand = exports.deserializeAws_restJson1ListTaskTemplatesCommand = 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_restJson1ListPhoneNumbersV2Command = void 0;
9
- exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateTrafficDistributionCommand = exports.deserializeAws_restJson1UpdateTaskTemplateCommand = 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_restJson1UpdatePhoneNumberCommand = void 0;
4
+ 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_restJson1ListPhoneNumbersV2Command = 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_restJson1GetTrafficDistributionCommand = exports.serializeAws_restJson1GetTaskTemplateCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentUserDataCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DismissUserContactCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeVocabularyCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeTrafficDistributionGroupCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = void 0;
5
+ 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_restJson1UpdatePhoneNumberCommand = 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_restJson1TransferContactCommand = 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_restJson1SearchVocabulariesCommand = exports.serializeAws_restJson1SearchUsersCommand = exports.serializeAws_restJson1SearchSecurityProfilesCommand = exports.serializeAws_restJson1SearchRoutingProfilesCommand = exports.serializeAws_restJson1SearchQueuesCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReplicateInstanceCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1PutUserStatusCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTrafficDistributionGroupsCommand = exports.serializeAws_restJson1ListTaskTemplatesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = void 0;
6
+ exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteTrafficDistributionGroupCommand = exports.deserializeAws_restJson1DeleteTaskTemplateCommand = 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_restJson1CreateTrafficDistributionGroupCommand = exports.deserializeAws_restJson1CreateTaskTemplateCommand = 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_restJson1ClaimPhoneNumberCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = 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_restJson1UpdateTrafficDistributionCommand = exports.serializeAws_restJson1UpdateTaskTemplateCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = void 0;
7
+ 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 = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetTrafficDistributionCommand = exports.deserializeAws_restJson1GetTaskTemplateCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentUserDataCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DismissUserContactCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = 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_restJson1DescribeTrafficDistributionGroupCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribePhoneNumberCommand = 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 = void 0;
8
+ 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_restJson1TransferContactCommand = 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_restJson1SearchUsersCommand = exports.deserializeAws_restJson1SearchSecurityProfilesCommand = exports.deserializeAws_restJson1SearchRoutingProfilesCommand = exports.deserializeAws_restJson1SearchQueuesCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReplicateInstanceCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1PutUserStatusCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTrafficDistributionGroupsCommand = exports.deserializeAws_restJson1ListTaskTemplatesCommand = 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_restJson1ListPhoneNumbersV2Command = exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = void 0;
9
+ exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateTrafficDistributionCommand = exports.deserializeAws_restJson1UpdateTaskTemplateCommand = 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_restJson1UpdatePhoneNumberCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = void 0;
10
10
  const protocol_http_1 = require("@aws-sdk/protocol-http");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const uuid_1 = require("uuid");
@@ -18,7 +18,7 @@ const serializeAws_restJson1AssociateApprovedOriginCommand = async (input, conte
18
18
  const headers = {
19
19
  "content-type": "application/json",
20
20
  };
21
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/approved-origin";
21
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/approved-origin";
22
22
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
23
23
  let body;
24
24
  body = JSON.stringify({
@@ -40,7 +40,7 @@ const serializeAws_restJson1AssociateBotCommand = async (input, context) => {
40
40
  const headers = {
41
41
  "content-type": "application/json",
42
42
  };
43
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/bot";
43
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/bot";
44
44
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
45
45
  let body;
46
46
  body = JSON.stringify({
@@ -63,7 +63,7 @@ const serializeAws_restJson1AssociateDefaultVocabularyCommand = async (input, co
63
63
  const headers = {
64
64
  "content-type": "application/json",
65
65
  };
66
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
66
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
67
67
  "/default-vocabulary/{InstanceId}/{LanguageCode}";
68
68
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
69
69
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LanguageCode", () => input.LanguageCode, "{LanguageCode}", false);
@@ -87,7 +87,7 @@ const serializeAws_restJson1AssociateInstanceStorageConfigCommand = async (input
87
87
  const headers = {
88
88
  "content-type": "application/json",
89
89
  };
90
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/storage-config";
90
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/storage-config";
91
91
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
92
92
  let body;
93
93
  body = JSON.stringify({
@@ -112,7 +112,7 @@ const serializeAws_restJson1AssociateLambdaFunctionCommand = async (input, conte
112
112
  const headers = {
113
113
  "content-type": "application/json",
114
114
  };
115
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lambda-function";
115
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lambda-function";
116
116
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
117
117
  let body;
118
118
  body = JSON.stringify({
@@ -134,7 +134,7 @@ const serializeAws_restJson1AssociateLexBotCommand = async (input, context) => {
134
134
  const headers = {
135
135
  "content-type": "application/json",
136
136
  };
137
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lex-bot";
137
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lex-bot";
138
138
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
139
139
  let body;
140
140
  body = JSON.stringify({
@@ -156,7 +156,7 @@ const serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = async (inpu
156
156
  const headers = {
157
157
  "content-type": "application/json",
158
158
  };
159
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
159
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
160
160
  "/phone-number/{PhoneNumberId}/contact-flow";
161
161
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
162
162
  let body;
@@ -180,7 +180,7 @@ const serializeAws_restJson1AssociateQueueQuickConnectsCommand = async (input, c
180
180
  const headers = {
181
181
  "content-type": "application/json",
182
182
  };
183
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
183
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
184
184
  "/queues/{InstanceId}/{QueueId}/associate-quick-connects";
185
185
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
186
186
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QueueId", () => input.QueueId, "{QueueId}", false);
@@ -206,7 +206,7 @@ const serializeAws_restJson1AssociateRoutingProfileQueuesCommand = async (input,
206
206
  const headers = {
207
207
  "content-type": "application/json",
208
208
  };
209
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
209
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
210
210
  "/routing-profiles/{InstanceId}/{RoutingProfileId}/associate-queues";
211
211
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
212
212
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RoutingProfileId", () => input.RoutingProfileId, "{RoutingProfileId}", false);
@@ -232,7 +232,7 @@ const serializeAws_restJson1AssociateSecurityKeyCommand = async (input, context)
232
232
  const headers = {
233
233
  "content-type": "application/json",
234
234
  };
235
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/security-key";
235
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/security-key";
236
236
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
237
237
  let body;
238
238
  body = JSON.stringify({
@@ -250,15 +250,14 @@ const serializeAws_restJson1AssociateSecurityKeyCommand = async (input, context)
250
250
  };
251
251
  exports.serializeAws_restJson1AssociateSecurityKeyCommand = serializeAws_restJson1AssociateSecurityKeyCommand;
252
252
  const serializeAws_restJson1ClaimPhoneNumberCommand = async (input, context) => {
253
- var _a;
254
253
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
255
254
  const headers = {
256
255
  "content-type": "application/json",
257
256
  };
258
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/claim";
257
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/claim";
259
258
  let body;
260
259
  body = JSON.stringify({
261
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
260
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
262
261
  ...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
263
262
  ...(input.PhoneNumberDescription != null && { PhoneNumberDescription: input.PhoneNumberDescription }),
264
263
  ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
@@ -280,7 +279,7 @@ const serializeAws_restJson1CreateAgentStatusCommand = async (input, context) =>
280
279
  const headers = {
281
280
  "content-type": "application/json",
282
281
  };
283
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/agent-status/{InstanceId}";
282
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent-status/{InstanceId}";
284
283
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
285
284
  let body;
286
285
  body = JSON.stringify({
@@ -306,7 +305,7 @@ const serializeAws_restJson1CreateContactFlowCommand = async (input, context) =>
306
305
  const headers = {
307
306
  "content-type": "application/json",
308
307
  };
309
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact-flows/{InstanceId}";
308
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact-flows/{InstanceId}";
310
309
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
311
310
  let body;
312
311
  body = JSON.stringify({
@@ -328,16 +327,15 @@ const serializeAws_restJson1CreateContactFlowCommand = async (input, context) =>
328
327
  };
329
328
  exports.serializeAws_restJson1CreateContactFlowCommand = serializeAws_restJson1CreateContactFlowCommand;
330
329
  const serializeAws_restJson1CreateContactFlowModuleCommand = async (input, context) => {
331
- var _a;
332
330
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
333
331
  const headers = {
334
332
  "content-type": "application/json",
335
333
  };
336
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact-flow-modules/{InstanceId}";
334
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact-flow-modules/{InstanceId}";
337
335
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
338
336
  let body;
339
337
  body = JSON.stringify({
340
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
338
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
341
339
  ...(input.Content != null && { Content: input.Content }),
342
340
  ...(input.Description != null && { Description: input.Description }),
343
341
  ...(input.Name != null && { Name: input.Name }),
@@ -359,7 +357,7 @@ const serializeAws_restJson1CreateHoursOfOperationCommand = async (input, contex
359
357
  const headers = {
360
358
  "content-type": "application/json",
361
359
  };
362
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/hours-of-operations/{InstanceId}";
360
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/hours-of-operations/{InstanceId}";
363
361
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
364
362
  let body;
365
363
  body = JSON.stringify({
@@ -385,7 +383,7 @@ const serializeAws_restJson1CreateInstanceCommand = async (input, context) => {
385
383
  const headers = {
386
384
  "content-type": "application/json",
387
385
  };
388
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance";
386
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance";
389
387
  let body;
390
388
  body = JSON.stringify({
391
389
  ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
@@ -411,7 +409,7 @@ const serializeAws_restJson1CreateIntegrationAssociationCommand = async (input,
411
409
  const headers = {
412
410
  "content-type": "application/json",
413
411
  };
414
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
412
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
415
413
  "/instance/{InstanceId}/integration-associations";
416
414
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
417
415
  let body;
@@ -439,7 +437,7 @@ const serializeAws_restJson1CreateQueueCommand = async (input, context) => {
439
437
  const headers = {
440
438
  "content-type": "application/json",
441
439
  };
442
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}";
440
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}";
443
441
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
444
442
  let body;
445
443
  body = JSON.stringify({
@@ -471,7 +469,7 @@ const serializeAws_restJson1CreateQuickConnectCommand = async (input, context) =
471
469
  const headers = {
472
470
  "content-type": "application/json",
473
471
  };
474
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/quick-connects/{InstanceId}";
472
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/quick-connects/{InstanceId}";
475
473
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
476
474
  let body;
477
475
  body = JSON.stringify({
@@ -498,7 +496,7 @@ const serializeAws_restJson1CreateRoutingProfileCommand = async (input, context)
498
496
  const headers = {
499
497
  "content-type": "application/json",
500
498
  };
501
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/routing-profiles/{InstanceId}";
499
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routing-profiles/{InstanceId}";
502
500
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
503
501
  let body;
504
502
  body = JSON.stringify({
@@ -529,7 +527,7 @@ const serializeAws_restJson1CreateSecurityProfileCommand = async (input, context
529
527
  const headers = {
530
528
  "content-type": "application/json",
531
529
  };
532
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles/{InstanceId}";
530
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles/{InstanceId}";
533
531
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
534
532
  let body;
535
533
  body = JSON.stringify({
@@ -552,16 +550,15 @@ const serializeAws_restJson1CreateSecurityProfileCommand = async (input, context
552
550
  };
553
551
  exports.serializeAws_restJson1CreateSecurityProfileCommand = serializeAws_restJson1CreateSecurityProfileCommand;
554
552
  const serializeAws_restJson1CreateTaskTemplateCommand = async (input, context) => {
555
- var _a;
556
553
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
557
554
  const headers = {
558
555
  "content-type": "application/json",
559
556
  };
560
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/task/template";
557
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/task/template";
561
558
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
562
559
  let body;
563
560
  body = JSON.stringify({
564
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
561
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
565
562
  ...(input.Constraints != null && {
566
563
  Constraints: serializeAws_restJson1TaskTemplateConstraints(input.Constraints, context),
567
564
  }),
@@ -584,15 +581,14 @@ const serializeAws_restJson1CreateTaskTemplateCommand = async (input, context) =
584
581
  };
585
582
  exports.serializeAws_restJson1CreateTaskTemplateCommand = serializeAws_restJson1CreateTaskTemplateCommand;
586
583
  const serializeAws_restJson1CreateTrafficDistributionGroupCommand = async (input, context) => {
587
- var _a;
588
584
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
589
585
  const headers = {
590
586
  "content-type": "application/json",
591
587
  };
592
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution-group";
588
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution-group";
593
589
  let body;
594
590
  body = JSON.stringify({
595
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
591
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
596
592
  ...(input.Description != null && { Description: input.Description }),
597
593
  ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
598
594
  ...(input.Name != null && { Name: input.Name }),
@@ -614,7 +610,7 @@ const serializeAws_restJson1CreateUseCaseCommand = async (input, context) => {
614
610
  const headers = {
615
611
  "content-type": "application/json",
616
612
  };
617
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
613
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
618
614
  "/instance/{InstanceId}/integration-associations/{IntegrationAssociationId}/use-cases";
619
615
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
620
616
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationAssociationId", () => input.IntegrationAssociationId, "{IntegrationAssociationId}", false);
@@ -639,7 +635,7 @@ const serializeAws_restJson1CreateUserCommand = async (input, context) => {
639
635
  const headers = {
640
636
  "content-type": "application/json",
641
637
  };
642
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}";
638
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}";
643
639
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
644
640
  let body;
645
641
  body = JSON.stringify({
@@ -675,7 +671,7 @@ const serializeAws_restJson1CreateUserHierarchyGroupCommand = async (input, cont
675
671
  const headers = {
676
672
  "content-type": "application/json",
677
673
  };
678
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user-hierarchy-groups/{InstanceId}";
674
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user-hierarchy-groups/{InstanceId}";
679
675
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
680
676
  let body;
681
677
  body = JSON.stringify({
@@ -695,16 +691,15 @@ const serializeAws_restJson1CreateUserHierarchyGroupCommand = async (input, cont
695
691
  };
696
692
  exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = serializeAws_restJson1CreateUserHierarchyGroupCommand;
697
693
  const serializeAws_restJson1CreateVocabularyCommand = async (input, context) => {
698
- var _a;
699
694
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
700
695
  const headers = {
701
696
  "content-type": "application/json",
702
697
  };
703
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/vocabulary/{InstanceId}";
698
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vocabulary/{InstanceId}";
704
699
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
705
700
  let body;
706
701
  body = JSON.stringify({
707
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
702
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
708
703
  ...(input.Content != null && { Content: input.Content }),
709
704
  ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
710
705
  ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
@@ -724,7 +719,7 @@ exports.serializeAws_restJson1CreateVocabularyCommand = serializeAws_restJson1Cr
724
719
  const serializeAws_restJson1DeleteContactFlowCommand = async (input, context) => {
725
720
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
726
721
  const headers = {};
727
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
722
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
728
723
  "/contact-flows/{InstanceId}/{ContactFlowId}";
729
724
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
730
725
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactFlowId", () => input.ContactFlowId, "{ContactFlowId}", false);
@@ -743,7 +738,7 @@ exports.serializeAws_restJson1DeleteContactFlowCommand = serializeAws_restJson1D
743
738
  const serializeAws_restJson1DeleteContactFlowModuleCommand = async (input, context) => {
744
739
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
745
740
  const headers = {};
746
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
741
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
747
742
  "/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}";
748
743
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
749
744
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactFlowModuleId", () => input.ContactFlowModuleId, "{ContactFlowModuleId}", false);
@@ -762,7 +757,7 @@ exports.serializeAws_restJson1DeleteContactFlowModuleCommand = serializeAws_rest
762
757
  const serializeAws_restJson1DeleteHoursOfOperationCommand = async (input, context) => {
763
758
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
764
759
  const headers = {};
765
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
760
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
766
761
  "/hours-of-operations/{InstanceId}/{HoursOfOperationId}";
767
762
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
768
763
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "HoursOfOperationId", () => input.HoursOfOperationId, "{HoursOfOperationId}", false);
@@ -781,7 +776,7 @@ exports.serializeAws_restJson1DeleteHoursOfOperationCommand = serializeAws_restJ
781
776
  const serializeAws_restJson1DeleteInstanceCommand = async (input, context) => {
782
777
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
783
778
  const headers = {};
784
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}";
779
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}";
785
780
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
786
781
  let body;
787
782
  return new protocol_http_1.HttpRequest({
@@ -798,7 +793,7 @@ exports.serializeAws_restJson1DeleteInstanceCommand = serializeAws_restJson1Dele
798
793
  const serializeAws_restJson1DeleteIntegrationAssociationCommand = async (input, context) => {
799
794
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
800
795
  const headers = {};
801
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
796
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
802
797
  "/instance/{InstanceId}/integration-associations/{IntegrationAssociationId}";
803
798
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
804
799
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationAssociationId", () => input.IntegrationAssociationId, "{IntegrationAssociationId}", false);
@@ -817,7 +812,7 @@ exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = serializeAws
817
812
  const serializeAws_restJson1DeleteQuickConnectCommand = async (input, context) => {
818
813
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
819
814
  const headers = {};
820
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
815
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
821
816
  "/quick-connects/{InstanceId}/{QuickConnectId}";
822
817
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
823
818
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuickConnectId", () => input.QuickConnectId, "{QuickConnectId}", false);
@@ -836,7 +831,7 @@ exports.serializeAws_restJson1DeleteQuickConnectCommand = serializeAws_restJson1
836
831
  const serializeAws_restJson1DeleteSecurityProfileCommand = async (input, context) => {
837
832
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
838
833
  const headers = {};
839
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
834
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
840
835
  "/security-profiles/{InstanceId}/{SecurityProfileId}";
841
836
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
842
837
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SecurityProfileId", () => input.SecurityProfileId, "{SecurityProfileId}", false);
@@ -855,7 +850,7 @@ exports.serializeAws_restJson1DeleteSecurityProfileCommand = serializeAws_restJs
855
850
  const serializeAws_restJson1DeleteTaskTemplateCommand = async (input, context) => {
856
851
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
857
852
  const headers = {};
858
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
853
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
859
854
  "/instance/{InstanceId}/task/template/{TaskTemplateId}";
860
855
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
861
856
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TaskTemplateId", () => input.TaskTemplateId, "{TaskTemplateId}", false);
@@ -874,7 +869,7 @@ exports.serializeAws_restJson1DeleteTaskTemplateCommand = serializeAws_restJson1
874
869
  const serializeAws_restJson1DeleteTrafficDistributionGroupCommand = async (input, context) => {
875
870
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
876
871
  const headers = {};
877
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
872
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
878
873
  "/traffic-distribution-group/{TrafficDistributionGroupId}";
879
874
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrafficDistributionGroupId", () => input.TrafficDistributionGroupId, "{TrafficDistributionGroupId}", false);
880
875
  let body;
@@ -892,7 +887,7 @@ exports.serializeAws_restJson1DeleteTrafficDistributionGroupCommand = serializeA
892
887
  const serializeAws_restJson1DeleteUseCaseCommand = async (input, context) => {
893
888
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
894
889
  const headers = {};
895
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
890
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
896
891
  "/instance/{InstanceId}/integration-associations/{IntegrationAssociationId}/use-cases/{UseCaseId}";
897
892
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
898
893
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationAssociationId", () => input.IntegrationAssociationId, "{IntegrationAssociationId}", false);
@@ -912,7 +907,7 @@ exports.serializeAws_restJson1DeleteUseCaseCommand = serializeAws_restJson1Delet
912
907
  const serializeAws_restJson1DeleteUserCommand = async (input, context) => {
913
908
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
914
909
  const headers = {};
915
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}";
910
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}";
916
911
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
917
912
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
918
913
  let body;
@@ -930,7 +925,7 @@ exports.serializeAws_restJson1DeleteUserCommand = serializeAws_restJson1DeleteUs
930
925
  const serializeAws_restJson1DeleteUserHierarchyGroupCommand = async (input, context) => {
931
926
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
932
927
  const headers = {};
933
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
928
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
934
929
  "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}";
935
930
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "HierarchyGroupId", () => input.HierarchyGroupId, "{HierarchyGroupId}", false);
936
931
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
@@ -949,7 +944,7 @@ exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = serializeAws_res
949
944
  const serializeAws_restJson1DeleteVocabularyCommand = async (input, context) => {
950
945
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
951
946
  const headers = {};
952
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
947
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
953
948
  "/vocabulary-remove/{InstanceId}/{VocabularyId}";
954
949
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
955
950
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VocabularyId", () => input.VocabularyId, "{VocabularyId}", false);
@@ -968,7 +963,7 @@ exports.serializeAws_restJson1DeleteVocabularyCommand = serializeAws_restJson1De
968
963
  const serializeAws_restJson1DescribeAgentStatusCommand = async (input, context) => {
969
964
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
970
965
  const headers = {};
971
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
966
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
972
967
  "/agent-status/{InstanceId}/{AgentStatusId}";
973
968
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
974
969
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AgentStatusId", () => input.AgentStatusId, "{AgentStatusId}", false);
@@ -987,7 +982,7 @@ exports.serializeAws_restJson1DescribeAgentStatusCommand = serializeAws_restJson
987
982
  const serializeAws_restJson1DescribeContactCommand = async (input, context) => {
988
983
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
989
984
  const headers = {};
990
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contacts/{InstanceId}/{ContactId}";
985
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contacts/{InstanceId}/{ContactId}";
991
986
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
992
987
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactId", () => input.ContactId, "{ContactId}", false);
993
988
  let body;
@@ -1005,7 +1000,7 @@ exports.serializeAws_restJson1DescribeContactCommand = serializeAws_restJson1Des
1005
1000
  const serializeAws_restJson1DescribeContactFlowCommand = async (input, context) => {
1006
1001
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1007
1002
  const headers = {};
1008
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1003
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1009
1004
  "/contact-flows/{InstanceId}/{ContactFlowId}";
1010
1005
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1011
1006
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactFlowId", () => input.ContactFlowId, "{ContactFlowId}", false);
@@ -1024,7 +1019,7 @@ exports.serializeAws_restJson1DescribeContactFlowCommand = serializeAws_restJson
1024
1019
  const serializeAws_restJson1DescribeContactFlowModuleCommand = async (input, context) => {
1025
1020
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1026
1021
  const headers = {};
1027
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1022
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1028
1023
  "/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}";
1029
1024
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1030
1025
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactFlowModuleId", () => input.ContactFlowModuleId, "{ContactFlowModuleId}", false);
@@ -1043,7 +1038,7 @@ exports.serializeAws_restJson1DescribeContactFlowModuleCommand = serializeAws_re
1043
1038
  const serializeAws_restJson1DescribeHoursOfOperationCommand = async (input, context) => {
1044
1039
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1045
1040
  const headers = {};
1046
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1041
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1047
1042
  "/hours-of-operations/{InstanceId}/{HoursOfOperationId}";
1048
1043
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1049
1044
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "HoursOfOperationId", () => input.HoursOfOperationId, "{HoursOfOperationId}", false);
@@ -1062,7 +1057,7 @@ exports.serializeAws_restJson1DescribeHoursOfOperationCommand = serializeAws_res
1062
1057
  const serializeAws_restJson1DescribeInstanceCommand = async (input, context) => {
1063
1058
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1064
1059
  const headers = {};
1065
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}";
1060
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}";
1066
1061
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1067
1062
  let body;
1068
1063
  return new protocol_http_1.HttpRequest({
@@ -1079,7 +1074,7 @@ exports.serializeAws_restJson1DescribeInstanceCommand = serializeAws_restJson1De
1079
1074
  const serializeAws_restJson1DescribeInstanceAttributeCommand = async (input, context) => {
1080
1075
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1081
1076
  const headers = {};
1082
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1077
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1083
1078
  "/instance/{InstanceId}/attribute/{AttributeType}";
1084
1079
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1085
1080
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttributeType", () => input.AttributeType, "{AttributeType}", false);
@@ -1098,7 +1093,7 @@ exports.serializeAws_restJson1DescribeInstanceAttributeCommand = serializeAws_re
1098
1093
  const serializeAws_restJson1DescribeInstanceStorageConfigCommand = async (input, context) => {
1099
1094
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1100
1095
  const headers = {};
1101
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1096
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1102
1097
  "/instance/{InstanceId}/storage-config/{AssociationId}";
1103
1098
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1104
1099
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AssociationId", () => input.AssociationId, "{AssociationId}", false);
@@ -1121,7 +1116,7 @@ exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = serializeAw
1121
1116
  const serializeAws_restJson1DescribePhoneNumberCommand = async (input, context) => {
1122
1117
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1123
1118
  const headers = {};
1124
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}";
1119
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}";
1125
1120
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
1126
1121
  let body;
1127
1122
  return new protocol_http_1.HttpRequest({
@@ -1138,7 +1133,7 @@ exports.serializeAws_restJson1DescribePhoneNumberCommand = serializeAws_restJson
1138
1133
  const serializeAws_restJson1DescribeQueueCommand = async (input, context) => {
1139
1134
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1140
1135
  const headers = {};
1141
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}/{QueueId}";
1136
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}/{QueueId}";
1142
1137
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1143
1138
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QueueId", () => input.QueueId, "{QueueId}", false);
1144
1139
  let body;
@@ -1156,7 +1151,7 @@ exports.serializeAws_restJson1DescribeQueueCommand = serializeAws_restJson1Descr
1156
1151
  const serializeAws_restJson1DescribeQuickConnectCommand = async (input, context) => {
1157
1152
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1158
1153
  const headers = {};
1159
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1154
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1160
1155
  "/quick-connects/{InstanceId}/{QuickConnectId}";
1161
1156
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1162
1157
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuickConnectId", () => input.QuickConnectId, "{QuickConnectId}", false);
@@ -1175,7 +1170,7 @@ exports.serializeAws_restJson1DescribeQuickConnectCommand = serializeAws_restJso
1175
1170
  const serializeAws_restJson1DescribeRoutingProfileCommand = async (input, context) => {
1176
1171
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1177
1172
  const headers = {};
1178
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1173
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1179
1174
  "/routing-profiles/{InstanceId}/{RoutingProfileId}";
1180
1175
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1181
1176
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RoutingProfileId", () => input.RoutingProfileId, "{RoutingProfileId}", false);
@@ -1194,7 +1189,7 @@ exports.serializeAws_restJson1DescribeRoutingProfileCommand = serializeAws_restJ
1194
1189
  const serializeAws_restJson1DescribeSecurityProfileCommand = async (input, context) => {
1195
1190
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1196
1191
  const headers = {};
1197
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1192
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1198
1193
  "/security-profiles/{InstanceId}/{SecurityProfileId}";
1199
1194
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SecurityProfileId", () => input.SecurityProfileId, "{SecurityProfileId}", false);
1200
1195
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
@@ -1213,7 +1208,7 @@ exports.serializeAws_restJson1DescribeSecurityProfileCommand = serializeAws_rest
1213
1208
  const serializeAws_restJson1DescribeTrafficDistributionGroupCommand = async (input, context) => {
1214
1209
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1215
1210
  const headers = {};
1216
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1211
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1217
1212
  "/traffic-distribution-group/{TrafficDistributionGroupId}";
1218
1213
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrafficDistributionGroupId", () => input.TrafficDistributionGroupId, "{TrafficDistributionGroupId}", false);
1219
1214
  let body;
@@ -1231,7 +1226,7 @@ exports.serializeAws_restJson1DescribeTrafficDistributionGroupCommand = serializ
1231
1226
  const serializeAws_restJson1DescribeUserCommand = async (input, context) => {
1232
1227
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1233
1228
  const headers = {};
1234
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}";
1229
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}";
1235
1230
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
1236
1231
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1237
1232
  let body;
@@ -1249,7 +1244,7 @@ exports.serializeAws_restJson1DescribeUserCommand = serializeAws_restJson1Descri
1249
1244
  const serializeAws_restJson1DescribeUserHierarchyGroupCommand = async (input, context) => {
1250
1245
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1251
1246
  const headers = {};
1252
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1247
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1253
1248
  "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}";
1254
1249
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "HierarchyGroupId", () => input.HierarchyGroupId, "{HierarchyGroupId}", false);
1255
1250
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
@@ -1268,7 +1263,7 @@ exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = serializeAws_r
1268
1263
  const serializeAws_restJson1DescribeUserHierarchyStructureCommand = async (input, context) => {
1269
1264
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1270
1265
  const headers = {};
1271
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user-hierarchy-structure/{InstanceId}";
1266
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user-hierarchy-structure/{InstanceId}";
1272
1267
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1273
1268
  let body;
1274
1269
  return new protocol_http_1.HttpRequest({
@@ -1285,7 +1280,7 @@ exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = serializeA
1285
1280
  const serializeAws_restJson1DescribeVocabularyCommand = async (input, context) => {
1286
1281
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1287
1282
  const headers = {};
1288
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/vocabulary/{InstanceId}/{VocabularyId}";
1283
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vocabulary/{InstanceId}/{VocabularyId}";
1289
1284
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1290
1285
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VocabularyId", () => input.VocabularyId, "{VocabularyId}", false);
1291
1286
  let body;
@@ -1303,7 +1298,7 @@ exports.serializeAws_restJson1DescribeVocabularyCommand = serializeAws_restJson1
1303
1298
  const serializeAws_restJson1DisassociateApprovedOriginCommand = async (input, context) => {
1304
1299
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1305
1300
  const headers = {};
1306
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/approved-origin";
1301
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/approved-origin";
1307
1302
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1308
1303
  const query = map({
1309
1304
  origin: [, input.Origin],
@@ -1326,7 +1321,7 @@ const serializeAws_restJson1DisassociateBotCommand = async (input, context) => {
1326
1321
  const headers = {
1327
1322
  "content-type": "application/json",
1328
1323
  };
1329
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/bot";
1324
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/bot";
1330
1325
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1331
1326
  let body;
1332
1327
  body = JSON.stringify({
@@ -1347,7 +1342,7 @@ exports.serializeAws_restJson1DisassociateBotCommand = serializeAws_restJson1Dis
1347
1342
  const serializeAws_restJson1DisassociateInstanceStorageConfigCommand = async (input, context) => {
1348
1343
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1349
1344
  const headers = {};
1350
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1345
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1351
1346
  "/instance/{InstanceId}/storage-config/{AssociationId}";
1352
1347
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1353
1348
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AssociationId", () => input.AssociationId, "{AssociationId}", false);
@@ -1370,7 +1365,7 @@ exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = seriali
1370
1365
  const serializeAws_restJson1DisassociateLambdaFunctionCommand = async (input, context) => {
1371
1366
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1372
1367
  const headers = {};
1373
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lambda-function";
1368
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lambda-function";
1374
1369
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1375
1370
  const query = map({
1376
1371
  functionArn: [, input.FunctionArn],
@@ -1391,7 +1386,7 @@ exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = serializeAws_r
1391
1386
  const serializeAws_restJson1DisassociateLexBotCommand = async (input, context) => {
1392
1387
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1393
1388
  const headers = {};
1394
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lex-bot";
1389
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lex-bot";
1395
1390
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1396
1391
  const query = map({
1397
1392
  botName: [, input.BotName],
@@ -1413,7 +1408,7 @@ exports.serializeAws_restJson1DisassociateLexBotCommand = serializeAws_restJson1
1413
1408
  const serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = async (input, context) => {
1414
1409
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1415
1410
  const headers = {};
1416
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1411
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1417
1412
  "/phone-number/{PhoneNumberId}/contact-flow";
1418
1413
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
1419
1414
  const query = map({
@@ -1437,7 +1432,7 @@ const serializeAws_restJson1DisassociateQueueQuickConnectsCommand = async (input
1437
1432
  const headers = {
1438
1433
  "content-type": "application/json",
1439
1434
  };
1440
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1435
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1441
1436
  "/queues/{InstanceId}/{QueueId}/disassociate-quick-connects";
1442
1437
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1443
1438
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QueueId", () => input.QueueId, "{QueueId}", false);
@@ -1463,7 +1458,7 @@ const serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = async (inp
1463
1458
  const headers = {
1464
1459
  "content-type": "application/json",
1465
1460
  };
1466
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1461
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1467
1462
  "/routing-profiles/{InstanceId}/{RoutingProfileId}/disassociate-queues";
1468
1463
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1469
1464
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RoutingProfileId", () => input.RoutingProfileId, "{RoutingProfileId}", false);
@@ -1487,7 +1482,7 @@ exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = serializ
1487
1482
  const serializeAws_restJson1DisassociateSecurityKeyCommand = async (input, context) => {
1488
1483
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1489
1484
  const headers = {};
1490
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1485
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1491
1486
  "/instance/{InstanceId}/security-key/{AssociationId}";
1492
1487
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1493
1488
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AssociationId", () => input.AssociationId, "{AssociationId}", false);
@@ -1503,10 +1498,33 @@ const serializeAws_restJson1DisassociateSecurityKeyCommand = async (input, conte
1503
1498
  });
1504
1499
  };
1505
1500
  exports.serializeAws_restJson1DisassociateSecurityKeyCommand = serializeAws_restJson1DisassociateSecurityKeyCommand;
1501
+ const serializeAws_restJson1DismissUserContactCommand = async (input, context) => {
1502
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1503
+ const headers = {
1504
+ "content-type": "application/json",
1505
+ };
1506
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}/contact";
1507
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
1508
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1509
+ let body;
1510
+ body = JSON.stringify({
1511
+ ...(input.ContactId != null && { ContactId: input.ContactId }),
1512
+ });
1513
+ return new protocol_http_1.HttpRequest({
1514
+ protocol,
1515
+ hostname,
1516
+ port,
1517
+ method: "POST",
1518
+ headers,
1519
+ path: resolvedPath,
1520
+ body,
1521
+ });
1522
+ };
1523
+ exports.serializeAws_restJson1DismissUserContactCommand = serializeAws_restJson1DismissUserContactCommand;
1506
1524
  const serializeAws_restJson1GetContactAttributesCommand = async (input, context) => {
1507
1525
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1508
1526
  const headers = {};
1509
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1527
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1510
1528
  "/contact/attributes/{InstanceId}/{InitialContactId}";
1511
1529
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1512
1530
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InitialContactId", () => input.InitialContactId, "{InitialContactId}", false);
@@ -1527,7 +1545,7 @@ const serializeAws_restJson1GetCurrentMetricDataCommand = async (input, context)
1527
1545
  const headers = {
1528
1546
  "content-type": "application/json",
1529
1547
  };
1530
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/current/{InstanceId}";
1548
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/current/{InstanceId}";
1531
1549
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1532
1550
  let body;
1533
1551
  body = JSON.stringify({
@@ -1555,7 +1573,7 @@ const serializeAws_restJson1GetCurrentUserDataCommand = async (input, context) =
1555
1573
  const headers = {
1556
1574
  "content-type": "application/json",
1557
1575
  };
1558
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/userdata/{InstanceId}";
1576
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/userdata/{InstanceId}";
1559
1577
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1560
1578
  let body;
1561
1579
  body = JSON.stringify({
@@ -1577,7 +1595,7 @@ exports.serializeAws_restJson1GetCurrentUserDataCommand = serializeAws_restJson1
1577
1595
  const serializeAws_restJson1GetFederationTokenCommand = async (input, context) => {
1578
1596
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1579
1597
  const headers = {};
1580
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user/federate/{InstanceId}";
1598
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/federate/{InstanceId}";
1581
1599
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1582
1600
  let body;
1583
1601
  return new protocol_http_1.HttpRequest({
@@ -1596,7 +1614,7 @@ const serializeAws_restJson1GetMetricDataCommand = async (input, context) => {
1596
1614
  const headers = {
1597
1615
  "content-type": "application/json",
1598
1616
  };
1599
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/historical/{InstanceId}";
1617
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/historical/{InstanceId}";
1600
1618
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1601
1619
  let body;
1602
1620
  body = JSON.stringify({
@@ -1624,7 +1642,7 @@ exports.serializeAws_restJson1GetMetricDataCommand = serializeAws_restJson1GetMe
1624
1642
  const serializeAws_restJson1GetTaskTemplateCommand = async (input, context) => {
1625
1643
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1626
1644
  const headers = {};
1627
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1645
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1628
1646
  "/instance/{InstanceId}/task/template/{TaskTemplateId}";
1629
1647
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1630
1648
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TaskTemplateId", () => input.TaskTemplateId, "{TaskTemplateId}", false);
@@ -1647,7 +1665,7 @@ exports.serializeAws_restJson1GetTaskTemplateCommand = serializeAws_restJson1Get
1647
1665
  const serializeAws_restJson1GetTrafficDistributionCommand = async (input, context) => {
1648
1666
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1649
1667
  const headers = {};
1650
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution/{Id}";
1668
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution/{Id}";
1651
1669
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1652
1670
  let body;
1653
1671
  return new protocol_http_1.HttpRequest({
@@ -1664,7 +1682,7 @@ exports.serializeAws_restJson1GetTrafficDistributionCommand = serializeAws_restJ
1664
1682
  const serializeAws_restJson1ListAgentStatusesCommand = async (input, context) => {
1665
1683
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1666
1684
  const headers = {};
1667
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/agent-status/{InstanceId}";
1685
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent-status/{InstanceId}";
1668
1686
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1669
1687
  const query = map({
1670
1688
  nextToken: [, input.NextToken],
@@ -1690,7 +1708,7 @@ exports.serializeAws_restJson1ListAgentStatusesCommand = serializeAws_restJson1L
1690
1708
  const serializeAws_restJson1ListApprovedOriginsCommand = async (input, context) => {
1691
1709
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1692
1710
  const headers = {};
1693
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/approved-origins";
1711
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/approved-origins";
1694
1712
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1695
1713
  const query = map({
1696
1714
  nextToken: [, input.NextToken],
@@ -1712,7 +1730,7 @@ exports.serializeAws_restJson1ListApprovedOriginsCommand = serializeAws_restJson
1712
1730
  const serializeAws_restJson1ListBotsCommand = async (input, context) => {
1713
1731
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1714
1732
  const headers = {};
1715
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/bots";
1733
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/bots";
1716
1734
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1717
1735
  const query = map({
1718
1736
  nextToken: [, input.NextToken],
@@ -1735,7 +1753,7 @@ exports.serializeAws_restJson1ListBotsCommand = serializeAws_restJson1ListBotsCo
1735
1753
  const serializeAws_restJson1ListContactFlowModulesCommand = async (input, context) => {
1736
1754
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1737
1755
  const headers = {};
1738
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1756
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1739
1757
  "/contact-flow-modules-summary/{InstanceId}";
1740
1758
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1741
1759
  const query = map({
@@ -1759,7 +1777,7 @@ exports.serializeAws_restJson1ListContactFlowModulesCommand = serializeAws_restJ
1759
1777
  const serializeAws_restJson1ListContactFlowsCommand = async (input, context) => {
1760
1778
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1761
1779
  const headers = {};
1762
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact-flows-summary/{InstanceId}";
1780
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact-flows-summary/{InstanceId}";
1763
1781
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1764
1782
  const query = map({
1765
1783
  contactFlowTypes: [
@@ -1785,7 +1803,7 @@ exports.serializeAws_restJson1ListContactFlowsCommand = serializeAws_restJson1Li
1785
1803
  const serializeAws_restJson1ListContactReferencesCommand = async (input, context) => {
1786
1804
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1787
1805
  const headers = {};
1788
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1806
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1789
1807
  "/contact/references/{InstanceId}/{ContactId}";
1790
1808
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1791
1809
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactId", () => input.ContactId, "{ContactId}", false);
@@ -1814,7 +1832,7 @@ const serializeAws_restJson1ListDefaultVocabulariesCommand = async (input, conte
1814
1832
  const headers = {
1815
1833
  "content-type": "application/json",
1816
1834
  };
1817
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/default-vocabulary-summary/{InstanceId}";
1835
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/default-vocabulary-summary/{InstanceId}";
1818
1836
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1819
1837
  let body;
1820
1838
  body = JSON.stringify({
@@ -1836,7 +1854,7 @@ exports.serializeAws_restJson1ListDefaultVocabulariesCommand = serializeAws_rest
1836
1854
  const serializeAws_restJson1ListHoursOfOperationsCommand = async (input, context) => {
1837
1855
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1838
1856
  const headers = {};
1839
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/hours-of-operations-summary/{InstanceId}";
1857
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/hours-of-operations-summary/{InstanceId}";
1840
1858
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1841
1859
  const query = map({
1842
1860
  nextToken: [, input.NextToken],
@@ -1858,7 +1876,7 @@ exports.serializeAws_restJson1ListHoursOfOperationsCommand = serializeAws_restJs
1858
1876
  const serializeAws_restJson1ListInstanceAttributesCommand = async (input, context) => {
1859
1877
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1860
1878
  const headers = {};
1861
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/attributes";
1879
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/attributes";
1862
1880
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1863
1881
  const query = map({
1864
1882
  nextToken: [, input.NextToken],
@@ -1880,7 +1898,7 @@ exports.serializeAws_restJson1ListInstanceAttributesCommand = serializeAws_restJ
1880
1898
  const serializeAws_restJson1ListInstancesCommand = async (input, context) => {
1881
1899
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1882
1900
  const headers = {};
1883
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance";
1901
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance";
1884
1902
  const query = map({
1885
1903
  nextToken: [, input.NextToken],
1886
1904
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -1901,7 +1919,7 @@ exports.serializeAws_restJson1ListInstancesCommand = serializeAws_restJson1ListI
1901
1919
  const serializeAws_restJson1ListInstanceStorageConfigsCommand = async (input, context) => {
1902
1920
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1903
1921
  const headers = {};
1904
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/storage-configs";
1922
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/storage-configs";
1905
1923
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1906
1924
  const query = map({
1907
1925
  resourceType: [, input.ResourceType],
@@ -1924,7 +1942,7 @@ exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = serializeAws_r
1924
1942
  const serializeAws_restJson1ListIntegrationAssociationsCommand = async (input, context) => {
1925
1943
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1926
1944
  const headers = {};
1927
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1945
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1928
1946
  "/instance/{InstanceId}/integration-associations";
1929
1947
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1930
1948
  const query = map({
@@ -1948,7 +1966,7 @@ exports.serializeAws_restJson1ListIntegrationAssociationsCommand = serializeAws_
1948
1966
  const serializeAws_restJson1ListLambdaFunctionsCommand = async (input, context) => {
1949
1967
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1950
1968
  const headers = {};
1951
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lambda-functions";
1969
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lambda-functions";
1952
1970
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1953
1971
  const query = map({
1954
1972
  nextToken: [, input.NextToken],
@@ -1970,7 +1988,7 @@ exports.serializeAws_restJson1ListLambdaFunctionsCommand = serializeAws_restJson
1970
1988
  const serializeAws_restJson1ListLexBotsCommand = async (input, context) => {
1971
1989
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1972
1990
  const headers = {};
1973
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lex-bots";
1991
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/lex-bots";
1974
1992
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1975
1993
  const query = map({
1976
1994
  nextToken: [, input.NextToken],
@@ -1992,7 +2010,7 @@ exports.serializeAws_restJson1ListLexBotsCommand = serializeAws_restJson1ListLex
1992
2010
  const serializeAws_restJson1ListPhoneNumbersCommand = async (input, context) => {
1993
2011
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1994
2012
  const headers = {};
1995
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers-summary/{InstanceId}";
2013
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-numbers-summary/{InstanceId}";
1996
2014
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1997
2015
  const query = map({
1998
2016
  phoneNumberTypes: [
@@ -2024,7 +2042,7 @@ const serializeAws_restJson1ListPhoneNumbersV2Command = async (input, context) =
2024
2042
  const headers = {
2025
2043
  "content-type": "application/json",
2026
2044
  };
2027
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/list";
2045
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/list";
2028
2046
  let body;
2029
2047
  body = JSON.stringify({
2030
2048
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
@@ -2052,7 +2070,7 @@ exports.serializeAws_restJson1ListPhoneNumbersV2Command = serializeAws_restJson1
2052
2070
  const serializeAws_restJson1ListPromptsCommand = async (input, context) => {
2053
2071
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2054
2072
  const headers = {};
2055
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prompts-summary/{InstanceId}";
2073
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts-summary/{InstanceId}";
2056
2074
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2057
2075
  const query = map({
2058
2076
  nextToken: [, input.NextToken],
@@ -2074,7 +2092,7 @@ exports.serializeAws_restJson1ListPromptsCommand = serializeAws_restJson1ListPro
2074
2092
  const serializeAws_restJson1ListQueueQuickConnectsCommand = async (input, context) => {
2075
2093
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2076
2094
  const headers = {};
2077
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
2095
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2078
2096
  "/queues/{InstanceId}/{QueueId}/quick-connects";
2079
2097
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2080
2098
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QueueId", () => input.QueueId, "{QueueId}", false);
@@ -2098,7 +2116,7 @@ exports.serializeAws_restJson1ListQueueQuickConnectsCommand = serializeAws_restJ
2098
2116
  const serializeAws_restJson1ListQueuesCommand = async (input, context) => {
2099
2117
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2100
2118
  const headers = {};
2101
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/queues-summary/{InstanceId}";
2119
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queues-summary/{InstanceId}";
2102
2120
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2103
2121
  const query = map({
2104
2122
  queueTypes: [() => input.QueueTypes !== void 0, () => (input.QueueTypes || []).map((_entry) => _entry)],
@@ -2121,7 +2139,7 @@ exports.serializeAws_restJson1ListQueuesCommand = serializeAws_restJson1ListQueu
2121
2139
  const serializeAws_restJson1ListQuickConnectsCommand = async (input, context) => {
2122
2140
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2123
2141
  const headers = {};
2124
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/quick-connects/{InstanceId}";
2142
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/quick-connects/{InstanceId}";
2125
2143
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2126
2144
  const query = map({
2127
2145
  nextToken: [, input.NextToken],
@@ -2147,7 +2165,7 @@ exports.serializeAws_restJson1ListQuickConnectsCommand = serializeAws_restJson1L
2147
2165
  const serializeAws_restJson1ListRoutingProfileQueuesCommand = async (input, context) => {
2148
2166
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2149
2167
  const headers = {};
2150
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
2168
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2151
2169
  "/routing-profiles/{InstanceId}/{RoutingProfileId}/queues";
2152
2170
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2153
2171
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RoutingProfileId", () => input.RoutingProfileId, "{RoutingProfileId}", false);
@@ -2171,7 +2189,7 @@ exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = serializeAws_res
2171
2189
  const serializeAws_restJson1ListRoutingProfilesCommand = async (input, context) => {
2172
2190
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2173
2191
  const headers = {};
2174
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/routing-profiles-summary/{InstanceId}";
2192
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routing-profiles-summary/{InstanceId}";
2175
2193
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2176
2194
  const query = map({
2177
2195
  nextToken: [, input.NextToken],
@@ -2193,7 +2211,7 @@ exports.serializeAws_restJson1ListRoutingProfilesCommand = serializeAws_restJson
2193
2211
  const serializeAws_restJson1ListSecurityKeysCommand = async (input, context) => {
2194
2212
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2195
2213
  const headers = {};
2196
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/security-keys";
2214
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/security-keys";
2197
2215
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2198
2216
  const query = map({
2199
2217
  nextToken: [, input.NextToken],
@@ -2215,7 +2233,7 @@ exports.serializeAws_restJson1ListSecurityKeysCommand = serializeAws_restJson1Li
2215
2233
  const serializeAws_restJson1ListSecurityProfilePermissionsCommand = async (input, context) => {
2216
2234
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2217
2235
  const headers = {};
2218
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
2236
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2219
2237
  "/security-profiles-permissions/{InstanceId}/{SecurityProfileId}";
2220
2238
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SecurityProfileId", () => input.SecurityProfileId, "{SecurityProfileId}", false);
2221
2239
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
@@ -2239,7 +2257,7 @@ exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = serializeA
2239
2257
  const serializeAws_restJson1ListSecurityProfilesCommand = async (input, context) => {
2240
2258
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2241
2259
  const headers = {};
2242
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles-summary/{InstanceId}";
2260
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/security-profiles-summary/{InstanceId}";
2243
2261
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2244
2262
  const query = map({
2245
2263
  nextToken: [, input.NextToken],
@@ -2261,7 +2279,7 @@ exports.serializeAws_restJson1ListSecurityProfilesCommand = serializeAws_restJso
2261
2279
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
2262
2280
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2263
2281
  const headers = {};
2264
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
2282
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
2265
2283
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
2266
2284
  let body;
2267
2285
  return new protocol_http_1.HttpRequest({
@@ -2278,7 +2296,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
2278
2296
  const serializeAws_restJson1ListTaskTemplatesCommand = async (input, context) => {
2279
2297
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2280
2298
  const headers = {};
2281
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/task/template";
2299
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/task/template";
2282
2300
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2283
2301
  const query = map({
2284
2302
  nextToken: [, input.NextToken],
@@ -2302,7 +2320,7 @@ exports.serializeAws_restJson1ListTaskTemplatesCommand = serializeAws_restJson1L
2302
2320
  const serializeAws_restJson1ListTrafficDistributionGroupsCommand = async (input, context) => {
2303
2321
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2304
2322
  const headers = {};
2305
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution-groups";
2323
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution-groups";
2306
2324
  const query = map({
2307
2325
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
2308
2326
  nextToken: [, input.NextToken],
@@ -2324,7 +2342,7 @@ exports.serializeAws_restJson1ListTrafficDistributionGroupsCommand = serializeAw
2324
2342
  const serializeAws_restJson1ListUseCasesCommand = async (input, context) => {
2325
2343
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2326
2344
  const headers = {};
2327
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
2345
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2328
2346
  "/instance/{InstanceId}/integration-associations/{IntegrationAssociationId}/use-cases";
2329
2347
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2330
2348
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IntegrationAssociationId", () => input.IntegrationAssociationId, "{IntegrationAssociationId}", false);
@@ -2348,7 +2366,7 @@ exports.serializeAws_restJson1ListUseCasesCommand = serializeAws_restJson1ListUs
2348
2366
  const serializeAws_restJson1ListUserHierarchyGroupsCommand = async (input, context) => {
2349
2367
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2350
2368
  const headers = {};
2351
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
2369
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2352
2370
  "/user-hierarchy-groups-summary/{InstanceId}";
2353
2371
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2354
2372
  const query = map({
@@ -2371,7 +2389,7 @@ exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = serializeAws_rest
2371
2389
  const serializeAws_restJson1ListUsersCommand = async (input, context) => {
2372
2390
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2373
2391
  const headers = {};
2374
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/users-summary/{InstanceId}";
2392
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users-summary/{InstanceId}";
2375
2393
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2376
2394
  const query = map({
2377
2395
  nextToken: [, input.NextToken],
@@ -2395,7 +2413,7 @@ const serializeAws_restJson1PutUserStatusCommand = async (input, context) => {
2395
2413
  const headers = {
2396
2414
  "content-type": "application/json",
2397
2415
  };
2398
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}/status";
2416
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}/status";
2399
2417
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
2400
2418
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2401
2419
  let body;
@@ -2416,7 +2434,7 @@ exports.serializeAws_restJson1PutUserStatusCommand = serializeAws_restJson1PutUs
2416
2434
  const serializeAws_restJson1ReleasePhoneNumberCommand = async (input, context) => {
2417
2435
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2418
2436
  const headers = {};
2419
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}";
2437
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}";
2420
2438
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
2421
2439
  const query = map({
2422
2440
  clientToken: [, input.ClientToken],
@@ -2435,16 +2453,15 @@ const serializeAws_restJson1ReleasePhoneNumberCommand = async (input, context) =
2435
2453
  };
2436
2454
  exports.serializeAws_restJson1ReleasePhoneNumberCommand = serializeAws_restJson1ReleasePhoneNumberCommand;
2437
2455
  const serializeAws_restJson1ReplicateInstanceCommand = async (input, context) => {
2438
- var _a;
2439
2456
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2440
2457
  const headers = {
2441
2458
  "content-type": "application/json",
2442
2459
  };
2443
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/replicate";
2460
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/replicate";
2444
2461
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2445
2462
  let body;
2446
2463
  body = JSON.stringify({
2447
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2464
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
2448
2465
  ...(input.ReplicaAlias != null && { ReplicaAlias: input.ReplicaAlias }),
2449
2466
  ...(input.ReplicaRegion != null && { ReplicaRegion: input.ReplicaRegion }),
2450
2467
  });
@@ -2464,7 +2481,7 @@ const serializeAws_restJson1ResumeContactRecordingCommand = async (input, contex
2464
2481
  const headers = {
2465
2482
  "content-type": "application/json",
2466
2483
  };
2467
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/resume-recording";
2484
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/resume-recording";
2468
2485
  let body;
2469
2486
  body = JSON.stringify({
2470
2487
  ...(input.ContactId != null && { ContactId: input.ContactId }),
@@ -2487,7 +2504,7 @@ const serializeAws_restJson1SearchAvailablePhoneNumbersCommand = async (input, c
2487
2504
  const headers = {
2488
2505
  "content-type": "application/json",
2489
2506
  };
2490
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/search-available";
2507
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/search-available";
2491
2508
  let body;
2492
2509
  body = JSON.stringify({
2493
2510
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
@@ -2513,7 +2530,7 @@ const serializeAws_restJson1SearchQueuesCommand = async (input, context) => {
2513
2530
  const headers = {
2514
2531
  "content-type": "application/json",
2515
2532
  };
2516
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/search-queues";
2533
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-queues";
2517
2534
  let body;
2518
2535
  body = JSON.stringify({
2519
2536
  ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
@@ -2542,7 +2559,7 @@ const serializeAws_restJson1SearchRoutingProfilesCommand = async (input, context
2542
2559
  const headers = {
2543
2560
  "content-type": "application/json",
2544
2561
  };
2545
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/search-routing-profiles";
2562
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-routing-profiles";
2546
2563
  let body;
2547
2564
  body = JSON.stringify({
2548
2565
  ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
@@ -2571,7 +2588,7 @@ const serializeAws_restJson1SearchSecurityProfilesCommand = async (input, contex
2571
2588
  const headers = {
2572
2589
  "content-type": "application/json",
2573
2590
  };
2574
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/search-security-profiles";
2591
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-security-profiles";
2575
2592
  let body;
2576
2593
  body = JSON.stringify({
2577
2594
  ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
@@ -2600,7 +2617,7 @@ const serializeAws_restJson1SearchUsersCommand = async (input, context) => {
2600
2617
  const headers = {
2601
2618
  "content-type": "application/json",
2602
2619
  };
2603
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/search-users";
2620
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/search-users";
2604
2621
  let body;
2605
2622
  body = JSON.stringify({
2606
2623
  ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
@@ -2629,7 +2646,7 @@ const serializeAws_restJson1SearchVocabulariesCommand = async (input, context) =
2629
2646
  const headers = {
2630
2647
  "content-type": "application/json",
2631
2648
  };
2632
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/vocabulary-summary/{InstanceId}";
2649
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vocabulary-summary/{InstanceId}";
2633
2650
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2634
2651
  let body;
2635
2652
  body = JSON.stringify({
@@ -2651,17 +2668,16 @@ const serializeAws_restJson1SearchVocabulariesCommand = async (input, context) =
2651
2668
  };
2652
2669
  exports.serializeAws_restJson1SearchVocabulariesCommand = serializeAws_restJson1SearchVocabulariesCommand;
2653
2670
  const serializeAws_restJson1StartChatContactCommand = async (input, context) => {
2654
- var _a;
2655
2671
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2656
2672
  const headers = {
2657
2673
  "content-type": "application/json",
2658
2674
  };
2659
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/chat";
2675
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/chat";
2660
2676
  let body;
2661
2677
  body = JSON.stringify({
2662
2678
  ...(input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
2663
2679
  ...(input.ChatDurationInMinutes != null && { ChatDurationInMinutes: input.ChatDurationInMinutes }),
2664
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2680
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
2665
2681
  ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
2666
2682
  ...(input.InitialMessage != null && {
2667
2683
  InitialMessage: serializeAws_restJson1ChatMessage(input.InitialMessage, context),
@@ -2690,7 +2706,7 @@ const serializeAws_restJson1StartContactRecordingCommand = async (input, context
2690
2706
  const headers = {
2691
2707
  "content-type": "application/json",
2692
2708
  };
2693
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/start-recording";
2709
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/start-recording";
2694
2710
  let body;
2695
2711
  body = JSON.stringify({
2696
2712
  ...(input.ContactId != null && { ContactId: input.ContactId }),
@@ -2712,18 +2728,17 @@ const serializeAws_restJson1StartContactRecordingCommand = async (input, context
2712
2728
  };
2713
2729
  exports.serializeAws_restJson1StartContactRecordingCommand = serializeAws_restJson1StartContactRecordingCommand;
2714
2730
  const serializeAws_restJson1StartContactStreamingCommand = async (input, context) => {
2715
- var _a;
2716
2731
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2717
2732
  const headers = {
2718
2733
  "content-type": "application/json",
2719
2734
  };
2720
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/start-streaming";
2735
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/start-streaming";
2721
2736
  let body;
2722
2737
  body = JSON.stringify({
2723
2738
  ...(input.ChatStreamingConfiguration != null && {
2724
2739
  ChatStreamingConfiguration: serializeAws_restJson1ChatStreamingConfiguration(input.ChatStreamingConfiguration, context),
2725
2740
  }),
2726
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2741
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
2727
2742
  ...(input.ContactId != null && { ContactId: input.ContactId }),
2728
2743
  ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
2729
2744
  });
@@ -2739,12 +2754,11 @@ const serializeAws_restJson1StartContactStreamingCommand = async (input, context
2739
2754
  };
2740
2755
  exports.serializeAws_restJson1StartContactStreamingCommand = serializeAws_restJson1StartContactStreamingCommand;
2741
2756
  const serializeAws_restJson1StartOutboundVoiceContactCommand = async (input, context) => {
2742
- var _a;
2743
2757
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2744
2758
  const headers = {
2745
2759
  "content-type": "application/json",
2746
2760
  };
2747
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/outbound-voice";
2761
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/outbound-voice";
2748
2762
  let body;
2749
2763
  body = JSON.stringify({
2750
2764
  ...(input.AnswerMachineDetectionConfig != null && {
@@ -2752,7 +2766,7 @@ const serializeAws_restJson1StartOutboundVoiceContactCommand = async (input, con
2752
2766
  }),
2753
2767
  ...(input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
2754
2768
  ...(input.CampaignId != null && { CampaignId: input.CampaignId }),
2755
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2769
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
2756
2770
  ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
2757
2771
  ...(input.DestinationPhoneNumber != null && { DestinationPhoneNumber: input.DestinationPhoneNumber }),
2758
2772
  ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
@@ -2772,16 +2786,15 @@ const serializeAws_restJson1StartOutboundVoiceContactCommand = async (input, con
2772
2786
  };
2773
2787
  exports.serializeAws_restJson1StartOutboundVoiceContactCommand = serializeAws_restJson1StartOutboundVoiceContactCommand;
2774
2788
  const serializeAws_restJson1StartTaskContactCommand = async (input, context) => {
2775
- var _a;
2776
2789
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2777
2790
  const headers = {
2778
2791
  "content-type": "application/json",
2779
2792
  };
2780
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/task";
2793
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/task";
2781
2794
  let body;
2782
2795
  body = JSON.stringify({
2783
2796
  ...(input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
2784
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2797
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
2785
2798
  ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
2786
2799
  ...(input.Description != null && { Description: input.Description }),
2787
2800
  ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
@@ -2808,7 +2821,7 @@ const serializeAws_restJson1StopContactCommand = async (input, context) => {
2808
2821
  const headers = {
2809
2822
  "content-type": "application/json",
2810
2823
  };
2811
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/stop";
2824
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/stop";
2812
2825
  let body;
2813
2826
  body = JSON.stringify({
2814
2827
  ...(input.ContactId != null && { ContactId: input.ContactId }),
@@ -2830,7 +2843,7 @@ const serializeAws_restJson1StopContactRecordingCommand = async (input, context)
2830
2843
  const headers = {
2831
2844
  "content-type": "application/json",
2832
2845
  };
2833
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/stop-recording";
2846
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/stop-recording";
2834
2847
  let body;
2835
2848
  body = JSON.stringify({
2836
2849
  ...(input.ContactId != null && { ContactId: input.ContactId }),
@@ -2853,7 +2866,7 @@ const serializeAws_restJson1StopContactStreamingCommand = async (input, context)
2853
2866
  const headers = {
2854
2867
  "content-type": "application/json",
2855
2868
  };
2856
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/stop-streaming";
2869
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/stop-streaming";
2857
2870
  let body;
2858
2871
  body = JSON.stringify({
2859
2872
  ...(input.ContactId != null && { ContactId: input.ContactId }),
@@ -2876,7 +2889,7 @@ const serializeAws_restJson1SuspendContactRecordingCommand = async (input, conte
2876
2889
  const headers = {
2877
2890
  "content-type": "application/json",
2878
2891
  };
2879
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/suspend-recording";
2892
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/suspend-recording";
2880
2893
  let body;
2881
2894
  body = JSON.stringify({
2882
2895
  ...(input.ContactId != null && { ContactId: input.ContactId }),
@@ -2899,7 +2912,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
2899
2912
  const headers = {
2900
2913
  "content-type": "application/json",
2901
2914
  };
2902
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
2915
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
2903
2916
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
2904
2917
  let body;
2905
2918
  body = JSON.stringify({
@@ -2917,15 +2930,14 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
2917
2930
  };
2918
2931
  exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
2919
2932
  const serializeAws_restJson1TransferContactCommand = async (input, context) => {
2920
- var _a;
2921
2933
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2922
2934
  const headers = {
2923
2935
  "content-type": "application/json",
2924
2936
  };
2925
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/transfer";
2937
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/transfer";
2926
2938
  let body;
2927
2939
  body = JSON.stringify({
2928
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2940
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
2929
2941
  ...(input.ContactFlowId != null && { ContactFlowId: input.ContactFlowId }),
2930
2942
  ...(input.ContactId != null && { ContactId: input.ContactId }),
2931
2943
  ...(input.InstanceId != null && { InstanceId: input.InstanceId }),
@@ -2946,7 +2958,7 @@ exports.serializeAws_restJson1TransferContactCommand = serializeAws_restJson1Tra
2946
2958
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
2947
2959
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2948
2960
  const headers = {};
2949
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
2961
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
2950
2962
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
2951
2963
  const query = map({
2952
2964
  tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
@@ -2969,7 +2981,7 @@ const serializeAws_restJson1UpdateAgentStatusCommand = async (input, context) =>
2969
2981
  const headers = {
2970
2982
  "content-type": "application/json",
2971
2983
  };
2972
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
2984
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2973
2985
  "/agent-status/{InstanceId}/{AgentStatusId}";
2974
2986
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
2975
2987
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AgentStatusId", () => input.AgentStatusId, "{AgentStatusId}", false);
@@ -2997,7 +3009,7 @@ const serializeAws_restJson1UpdateContactCommand = async (input, context) => {
2997
3009
  const headers = {
2998
3010
  "content-type": "application/json",
2999
3011
  };
3000
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contacts/{InstanceId}/{ContactId}";
3012
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contacts/{InstanceId}/{ContactId}";
3001
3013
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3002
3014
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactId", () => input.ContactId, "{ContactId}", false);
3003
3015
  let body;
@@ -3022,7 +3034,7 @@ const serializeAws_restJson1UpdateContactAttributesCommand = async (input, conte
3022
3034
  const headers = {
3023
3035
  "content-type": "application/json",
3024
3036
  };
3025
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/attributes";
3037
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/attributes";
3026
3038
  let body;
3027
3039
  body = JSON.stringify({
3028
3040
  ...(input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
@@ -3045,7 +3057,7 @@ const serializeAws_restJson1UpdateContactFlowContentCommand = async (input, cont
3045
3057
  const headers = {
3046
3058
  "content-type": "application/json",
3047
3059
  };
3048
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3060
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3049
3061
  "/contact-flows/{InstanceId}/{ContactFlowId}/content";
3050
3062
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3051
3063
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactFlowId", () => input.ContactFlowId, "{ContactFlowId}", false);
@@ -3069,7 +3081,7 @@ const serializeAws_restJson1UpdateContactFlowMetadataCommand = async (input, con
3069
3081
  const headers = {
3070
3082
  "content-type": "application/json",
3071
3083
  };
3072
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3084
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3073
3085
  "/contact-flows/{InstanceId}/{ContactFlowId}/metadata";
3074
3086
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3075
3087
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactFlowId", () => input.ContactFlowId, "{ContactFlowId}", false);
@@ -3095,7 +3107,7 @@ const serializeAws_restJson1UpdateContactFlowModuleContentCommand = async (input
3095
3107
  const headers = {
3096
3108
  "content-type": "application/json",
3097
3109
  };
3098
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3110
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3099
3111
  "/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}/content";
3100
3112
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3101
3113
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactFlowModuleId", () => input.ContactFlowModuleId, "{ContactFlowModuleId}", false);
@@ -3119,7 +3131,7 @@ const serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = async (inpu
3119
3131
  const headers = {
3120
3132
  "content-type": "application/json",
3121
3133
  };
3122
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3134
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3123
3135
  "/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}/metadata";
3124
3136
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3125
3137
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactFlowModuleId", () => input.ContactFlowModuleId, "{ContactFlowModuleId}", false);
@@ -3145,7 +3157,7 @@ const serializeAws_restJson1UpdateContactFlowNameCommand = async (input, context
3145
3157
  const headers = {
3146
3158
  "content-type": "application/json",
3147
3159
  };
3148
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3160
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3149
3161
  "/contact-flows/{InstanceId}/{ContactFlowId}/name";
3150
3162
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3151
3163
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactFlowId", () => input.ContactFlowId, "{ContactFlowId}", false);
@@ -3170,7 +3182,7 @@ const serializeAws_restJson1UpdateContactScheduleCommand = async (input, context
3170
3182
  const headers = {
3171
3183
  "content-type": "application/json",
3172
3184
  };
3173
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/schedule";
3185
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/schedule";
3174
3186
  let body;
3175
3187
  body = JSON.stringify({
3176
3188
  ...(input.ContactId != null && { ContactId: input.ContactId }),
@@ -3193,7 +3205,7 @@ const serializeAws_restJson1UpdateHoursOfOperationCommand = async (input, contex
3193
3205
  const headers = {
3194
3206
  "content-type": "application/json",
3195
3207
  };
3196
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3208
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3197
3209
  "/hours-of-operations/{InstanceId}/{HoursOfOperationId}";
3198
3210
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3199
3211
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "HoursOfOperationId", () => input.HoursOfOperationId, "{HoursOfOperationId}", false);
@@ -3220,7 +3232,7 @@ const serializeAws_restJson1UpdateInstanceAttributeCommand = async (input, conte
3220
3232
  const headers = {
3221
3233
  "content-type": "application/json",
3222
3234
  };
3223
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3235
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3224
3236
  "/instance/{InstanceId}/attribute/{AttributeType}";
3225
3237
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3226
3238
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttributeType", () => input.AttributeType, "{AttributeType}", false);
@@ -3244,7 +3256,7 @@ const serializeAws_restJson1UpdateInstanceStorageConfigCommand = async (input, c
3244
3256
  const headers = {
3245
3257
  "content-type": "application/json",
3246
3258
  };
3247
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3259
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3248
3260
  "/instance/{InstanceId}/storage-config/{AssociationId}";
3249
3261
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3250
3262
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AssociationId", () => input.AssociationId, "{AssociationId}", false);
@@ -3270,16 +3282,15 @@ const serializeAws_restJson1UpdateInstanceStorageConfigCommand = async (input, c
3270
3282
  };
3271
3283
  exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = serializeAws_restJson1UpdateInstanceStorageConfigCommand;
3272
3284
  const serializeAws_restJson1UpdatePhoneNumberCommand = async (input, context) => {
3273
- var _a;
3274
3285
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3275
3286
  const headers = {
3276
3287
  "content-type": "application/json",
3277
3288
  };
3278
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}";
3289
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}";
3279
3290
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PhoneNumberId", () => input.PhoneNumberId, "{PhoneNumberId}", false);
3280
3291
  let body;
3281
3292
  body = JSON.stringify({
3282
- ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
3293
+ ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
3283
3294
  ...(input.TargetArn != null && { TargetArn: input.TargetArn }),
3284
3295
  });
3285
3296
  return new protocol_http_1.HttpRequest({
@@ -3298,7 +3309,7 @@ const serializeAws_restJson1UpdateQueueHoursOfOperationCommand = async (input, c
3298
3309
  const headers = {
3299
3310
  "content-type": "application/json",
3300
3311
  };
3301
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3312
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3302
3313
  "/queues/{InstanceId}/{QueueId}/hours-of-operation";
3303
3314
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3304
3315
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QueueId", () => input.QueueId, "{QueueId}", false);
@@ -3322,7 +3333,7 @@ const serializeAws_restJson1UpdateQueueMaxContactsCommand = async (input, contex
3322
3333
  const headers = {
3323
3334
  "content-type": "application/json",
3324
3335
  };
3325
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3336
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3326
3337
  "/queues/{InstanceId}/{QueueId}/max-contacts";
3327
3338
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3328
3339
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QueueId", () => input.QueueId, "{QueueId}", false);
@@ -3346,7 +3357,7 @@ const serializeAws_restJson1UpdateQueueNameCommand = async (input, context) => {
3346
3357
  const headers = {
3347
3358
  "content-type": "application/json",
3348
3359
  };
3349
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}/{QueueId}/name";
3360
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}/{QueueId}/name";
3350
3361
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3351
3362
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QueueId", () => input.QueueId, "{QueueId}", false);
3352
3363
  let body;
@@ -3370,7 +3381,7 @@ const serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = async (inpu
3370
3381
  const headers = {
3371
3382
  "content-type": "application/json",
3372
3383
  };
3373
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3384
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3374
3385
  "/queues/{InstanceId}/{QueueId}/outbound-caller-config";
3375
3386
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3376
3387
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QueueId", () => input.QueueId, "{QueueId}", false);
@@ -3396,7 +3407,7 @@ const serializeAws_restJson1UpdateQueueStatusCommand = async (input, context) =>
3396
3407
  const headers = {
3397
3408
  "content-type": "application/json",
3398
3409
  };
3399
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}/{QueueId}/status";
3410
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queues/{InstanceId}/{QueueId}/status";
3400
3411
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3401
3412
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QueueId", () => input.QueueId, "{QueueId}", false);
3402
3413
  let body;
@@ -3419,7 +3430,7 @@ const serializeAws_restJson1UpdateQuickConnectConfigCommand = async (input, cont
3419
3430
  const headers = {
3420
3431
  "content-type": "application/json",
3421
3432
  };
3422
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3433
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3423
3434
  "/quick-connects/{InstanceId}/{QuickConnectId}/config";
3424
3435
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3425
3436
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuickConnectId", () => input.QuickConnectId, "{QuickConnectId}", false);
@@ -3445,7 +3456,7 @@ const serializeAws_restJson1UpdateQuickConnectNameCommand = async (input, contex
3445
3456
  const headers = {
3446
3457
  "content-type": "application/json",
3447
3458
  };
3448
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3459
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3449
3460
  "/quick-connects/{InstanceId}/{QuickConnectId}/name";
3450
3461
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3451
3462
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "QuickConnectId", () => input.QuickConnectId, "{QuickConnectId}", false);
@@ -3470,7 +3481,7 @@ const serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = async (inpu
3470
3481
  const headers = {
3471
3482
  "content-type": "application/json",
3472
3483
  };
3473
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3484
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3474
3485
  "/routing-profiles/{InstanceId}/{RoutingProfileId}/concurrency";
3475
3486
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3476
3487
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RoutingProfileId", () => input.RoutingProfileId, "{RoutingProfileId}", false);
@@ -3496,7 +3507,7 @@ const serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = as
3496
3507
  const headers = {
3497
3508
  "content-type": "application/json",
3498
3509
  };
3499
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3510
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3500
3511
  "/routing-profiles/{InstanceId}/{RoutingProfileId}/default-outbound-queue";
3501
3512
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3502
3513
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RoutingProfileId", () => input.RoutingProfileId, "{RoutingProfileId}", false);
@@ -3520,7 +3531,7 @@ const serializeAws_restJson1UpdateRoutingProfileNameCommand = async (input, cont
3520
3531
  const headers = {
3521
3532
  "content-type": "application/json",
3522
3533
  };
3523
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3534
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3524
3535
  "/routing-profiles/{InstanceId}/{RoutingProfileId}/name";
3525
3536
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3526
3537
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RoutingProfileId", () => input.RoutingProfileId, "{RoutingProfileId}", false);
@@ -3545,7 +3556,7 @@ const serializeAws_restJson1UpdateRoutingProfileQueuesCommand = async (input, co
3545
3556
  const headers = {
3546
3557
  "content-type": "application/json",
3547
3558
  };
3548
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3559
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3549
3560
  "/routing-profiles/{InstanceId}/{RoutingProfileId}/queues";
3550
3561
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3551
3562
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RoutingProfileId", () => input.RoutingProfileId, "{RoutingProfileId}", false);
@@ -3571,7 +3582,7 @@ const serializeAws_restJson1UpdateSecurityProfileCommand = async (input, context
3571
3582
  const headers = {
3572
3583
  "content-type": "application/json",
3573
3584
  };
3574
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3585
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3575
3586
  "/security-profiles/{InstanceId}/{SecurityProfileId}";
3576
3587
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SecurityProfileId", () => input.SecurityProfileId, "{SecurityProfileId}", false);
3577
3588
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
@@ -3598,7 +3609,7 @@ const serializeAws_restJson1UpdateTaskTemplateCommand = async (input, context) =
3598
3609
  const headers = {
3599
3610
  "content-type": "application/json",
3600
3611
  };
3601
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3612
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3602
3613
  "/instance/{InstanceId}/task/template/{TaskTemplateId}";
3603
3614
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TaskTemplateId", () => input.TaskTemplateId, "{TaskTemplateId}", false);
3604
3615
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
@@ -3630,7 +3641,7 @@ const serializeAws_restJson1UpdateTrafficDistributionCommand = async (input, con
3630
3641
  const headers = {
3631
3642
  "content-type": "application/json",
3632
3643
  };
3633
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution/{Id}";
3644
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/traffic-distribution/{Id}";
3634
3645
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
3635
3646
  let body;
3636
3647
  body = JSON.stringify({
@@ -3654,7 +3665,7 @@ const serializeAws_restJson1UpdateUserHierarchyCommand = async (input, context)
3654
3665
  const headers = {
3655
3666
  "content-type": "application/json",
3656
3667
  };
3657
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}/hierarchy";
3668
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}/hierarchy";
3658
3669
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
3659
3670
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3660
3671
  let body;
@@ -3677,7 +3688,7 @@ const serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = async (input,
3677
3688
  const headers = {
3678
3689
  "content-type": "application/json",
3679
3690
  };
3680
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3691
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3681
3692
  "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}/name";
3682
3693
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "HierarchyGroupId", () => input.HierarchyGroupId, "{HierarchyGroupId}", false);
3683
3694
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
@@ -3701,7 +3712,7 @@ const serializeAws_restJson1UpdateUserHierarchyStructureCommand = async (input,
3701
3712
  const headers = {
3702
3713
  "content-type": "application/json",
3703
3714
  };
3704
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/user-hierarchy-structure/{InstanceId}";
3715
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user-hierarchy-structure/{InstanceId}";
3705
3716
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3706
3717
  let body;
3707
3718
  body = JSON.stringify({
@@ -3725,7 +3736,7 @@ const serializeAws_restJson1UpdateUserIdentityInfoCommand = async (input, contex
3725
3736
  const headers = {
3726
3737
  "content-type": "application/json",
3727
3738
  };
3728
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3739
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3729
3740
  "/users/{InstanceId}/{UserId}/identity-info";
3730
3741
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
3731
3742
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
@@ -3751,7 +3762,7 @@ const serializeAws_restJson1UpdateUserPhoneConfigCommand = async (input, context
3751
3762
  const headers = {
3752
3763
  "content-type": "application/json",
3753
3764
  };
3754
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}/phone-config";
3765
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}/phone-config";
3755
3766
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
3756
3767
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3757
3768
  let body;
@@ -3776,7 +3787,7 @@ const serializeAws_restJson1UpdateUserRoutingProfileCommand = async (input, cont
3776
3787
  const headers = {
3777
3788
  "content-type": "application/json",
3778
3789
  };
3779
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3790
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3780
3791
  "/users/{InstanceId}/{UserId}/routing-profile";
3781
3792
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
3782
3793
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
@@ -3800,7 +3811,7 @@ const serializeAws_restJson1UpdateUserSecurityProfilesCommand = async (input, co
3800
3811
  const headers = {
3801
3812
  "content-type": "application/json",
3802
3813
  };
3803
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3814
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3804
3815
  "/users/{InstanceId}/{UserId}/security-profiles";
3805
3816
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "UserId", () => input.UserId, "{UserId}", false);
3806
3817
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
@@ -7008,6 +7019,52 @@ const deserializeAws_restJson1DisassociateSecurityKeyCommandError = async (outpu
7008
7019
  });
7009
7020
  }
7010
7021
  };
7022
+ const deserializeAws_restJson1DismissUserContactCommand = async (output, context) => {
7023
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7024
+ return deserializeAws_restJson1DismissUserContactCommandError(output, context);
7025
+ }
7026
+ const contents = map({
7027
+ $metadata: deserializeMetadata(output),
7028
+ });
7029
+ await collectBody(output.body, context);
7030
+ return contents;
7031
+ };
7032
+ exports.deserializeAws_restJson1DismissUserContactCommand = deserializeAws_restJson1DismissUserContactCommand;
7033
+ const deserializeAws_restJson1DismissUserContactCommandError = async (output, context) => {
7034
+ const parsedOutput = {
7035
+ ...output,
7036
+ body: await parseErrorBody(output.body, context),
7037
+ };
7038
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7039
+ switch (errorCode) {
7040
+ case "AccessDeniedException":
7041
+ case "com.amazonaws.connect#AccessDeniedException":
7042
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
7043
+ case "InternalServiceException":
7044
+ case "com.amazonaws.connect#InternalServiceException":
7045
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
7046
+ case "InvalidParameterException":
7047
+ case "com.amazonaws.connect#InvalidParameterException":
7048
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
7049
+ case "InvalidRequestException":
7050
+ case "com.amazonaws.connect#InvalidRequestException":
7051
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
7052
+ case "ResourceNotFoundException":
7053
+ case "com.amazonaws.connect#ResourceNotFoundException":
7054
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
7055
+ case "ThrottlingException":
7056
+ case "com.amazonaws.connect#ThrottlingException":
7057
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
7058
+ default:
7059
+ const parsedBody = parsedOutput.body;
7060
+ (0, smithy_client_1.throwDefaultError)({
7061
+ output,
7062
+ parsedBody,
7063
+ exceptionCtor: ConnectServiceException_1.ConnectServiceException,
7064
+ errorCode,
7065
+ });
7066
+ }
7067
+ };
7011
7068
  const deserializeAws_restJson1GetContactAttributesCommand = async (output, context) => {
7012
7069
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7013
7070
  return deserializeAws_restJson1GetContactAttributesCommandError(output, context);
@@ -13959,15 +14016,12 @@ const deserializeAws_restJson1VocabularySummaryList = (output, context) => {
13959
14016
  });
13960
14017
  return retVal;
13961
14018
  };
13962
- const deserializeMetadata = (output) => {
13963
- var _a, _b;
13964
- return ({
13965
- httpStatusCode: output.statusCode,
13966
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
13967
- extendedRequestId: output.headers["x-amz-id-2"],
13968
- cfId: output.headers["x-amz-cf-id"],
13969
- });
13970
- };
14019
+ const deserializeMetadata = (output) => ({
14020
+ httpStatusCode: output.statusCode,
14021
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
14022
+ extendedRequestId: output.headers["x-amz-id-2"],
14023
+ cfId: output.headers["x-amz-cf-id"],
14024
+ });
13971
14025
  const collectBody = (streamBody = new Uint8Array(), context) => {
13972
14026
  if (streamBody instanceof Uint8Array) {
13973
14027
  return Promise.resolve(streamBody);
@@ -13987,9 +14041,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
13987
14041
  return {};
13988
14042
  });
13989
14043
  const parseErrorBody = async (errorBody, context) => {
13990
- var _a;
13991
14044
  const value = await parseBody(errorBody, context);
13992
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
14045
+ value.message = value.message ?? value.Message;
13993
14046
  return value;
13994
14047
  };
13995
14048
  const loadRestJsonErrorCode = (output, data) => {