@aws-sdk/client-connect 3.100.0 → 3.109.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 (131) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist-cjs/Connect.js +105 -0
  3. package/dist-cjs/ConnectClient.js +2 -0
  4. package/dist-cjs/commands/CreateTaskTemplateCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteTaskTemplateCommand.js +36 -0
  6. package/dist-cjs/commands/GetCurrentUserDataCommand.js +36 -0
  7. package/dist-cjs/commands/GetTaskTemplateCommand.js +36 -0
  8. package/dist-cjs/commands/ListQueuesCommand.js +3 -3
  9. package/dist-cjs/commands/ListQuickConnectsCommand.js +3 -3
  10. package/dist-cjs/commands/ListRoutingProfileQueuesCommand.js +3 -3
  11. package/dist-cjs/commands/ListRoutingProfilesCommand.js +3 -3
  12. package/dist-cjs/commands/ListSecurityKeysCommand.js +3 -3
  13. package/dist-cjs/commands/ListSecurityProfilePermissionsCommand.js +3 -3
  14. package/dist-cjs/commands/ListSecurityProfilesCommand.js +3 -3
  15. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  16. package/dist-cjs/commands/ListTaskTemplatesCommand.js +36 -0
  17. package/dist-cjs/commands/ListUseCasesCommand.js +3 -3
  18. package/dist-cjs/commands/ListUserHierarchyGroupsCommand.js +3 -3
  19. package/dist-cjs/commands/ListUsersCommand.js +3 -3
  20. package/dist-cjs/commands/PutUserStatusCommand.js +3 -3
  21. package/dist-cjs/commands/ReleasePhoneNumberCommand.js +2 -2
  22. package/dist-cjs/commands/ResumeContactRecordingCommand.js +3 -3
  23. package/dist-cjs/commands/TransferContactCommand.js +36 -0
  24. package/dist-cjs/commands/UpdateTaskTemplateCommand.js +36 -0
  25. package/dist-cjs/commands/index.js +7 -0
  26. package/dist-cjs/models/models_0.js +283 -236
  27. package/dist-cjs/models/models_1.js +254 -2
  28. package/dist-cjs/pagination/GetCurrentUserDataPaginator.js +36 -0
  29. package/dist-cjs/pagination/ListTaskTemplatesPaginator.js +36 -0
  30. package/dist-cjs/pagination/index.js +2 -0
  31. package/dist-cjs/protocols/Aws_restJson1.js +1279 -34
  32. package/dist-es/Connect.js +105 -0
  33. package/dist-es/ConnectClient.js +2 -0
  34. package/dist-es/commands/CreateTaskTemplateCommand.js +39 -0
  35. package/dist-es/commands/DeleteTaskTemplateCommand.js +39 -0
  36. package/dist-es/commands/GetCurrentUserDataCommand.js +39 -0
  37. package/dist-es/commands/GetTaskTemplateCommand.js +39 -0
  38. package/dist-es/commands/ListQueuesCommand.js +1 -1
  39. package/dist-es/commands/ListQuickConnectsCommand.js +1 -1
  40. package/dist-es/commands/ListRoutingProfileQueuesCommand.js +1 -1
  41. package/dist-es/commands/ListRoutingProfilesCommand.js +1 -1
  42. package/dist-es/commands/ListSecurityKeysCommand.js +1 -1
  43. package/dist-es/commands/ListSecurityProfilePermissionsCommand.js +1 -1
  44. package/dist-es/commands/ListSecurityProfilesCommand.js +1 -1
  45. package/dist-es/commands/ListTagsForResourceCommand.js +1 -1
  46. package/dist-es/commands/ListTaskTemplatesCommand.js +39 -0
  47. package/dist-es/commands/ListUseCasesCommand.js +1 -1
  48. package/dist-es/commands/ListUserHierarchyGroupsCommand.js +1 -1
  49. package/dist-es/commands/ListUsersCommand.js +1 -1
  50. package/dist-es/commands/PutUserStatusCommand.js +1 -1
  51. package/dist-es/commands/ReleasePhoneNumberCommand.js +1 -1
  52. package/dist-es/commands/ResumeContactRecordingCommand.js +1 -1
  53. package/dist-es/commands/TransferContactCommand.js +39 -0
  54. package/dist-es/commands/UpdateTaskTemplateCommand.js +39 -0
  55. package/dist-es/commands/index.js +7 -0
  56. package/dist-es/models/models_0.js +214 -160
  57. package/dist-es/models/models_1.js +169 -0
  58. package/dist-es/pagination/GetCurrentUserDataPaginator.js +75 -0
  59. package/dist-es/pagination/ListTaskTemplatesPaginator.js +75 -0
  60. package/dist-es/pagination/index.js +2 -0
  61. package/dist-es/protocols/Aws_restJson1.js +1440 -63
  62. package/dist-types/Connect.d.ts +104 -22
  63. package/dist-types/ConnectClient.d.ts +9 -2
  64. package/dist-types/commands/AssociateDefaultVocabularyCommand.d.ts +2 -1
  65. package/dist-types/commands/CreateTaskTemplateCommand.d.ts +35 -0
  66. package/dist-types/commands/DeleteTaskTemplateCommand.d.ts +35 -0
  67. package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +2 -1
  68. package/dist-types/commands/GetCurrentUserDataCommand.d.ts +35 -0
  69. package/dist-types/commands/GetTaskTemplateCommand.d.ts +35 -0
  70. package/dist-types/commands/ListPhoneNumbersV2Command.d.ts +1 -1
  71. package/dist-types/commands/ListQueuesCommand.d.ts +1 -1
  72. package/dist-types/commands/ListQuickConnectsCommand.d.ts +1 -1
  73. package/dist-types/commands/ListRoutingProfileQueuesCommand.d.ts +1 -1
  74. package/dist-types/commands/ListRoutingProfilesCommand.d.ts +1 -1
  75. package/dist-types/commands/ListSecurityKeysCommand.d.ts +1 -1
  76. package/dist-types/commands/ListSecurityProfilePermissionsCommand.d.ts +1 -1
  77. package/dist-types/commands/ListSecurityProfilesCommand.d.ts +1 -1
  78. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  79. package/dist-types/commands/ListTaskTemplatesCommand.d.ts +35 -0
  80. package/dist-types/commands/ListUseCasesCommand.d.ts +1 -1
  81. package/dist-types/commands/ListUserHierarchyGroupsCommand.d.ts +1 -1
  82. package/dist-types/commands/ListUsersCommand.d.ts +1 -1
  83. package/dist-types/commands/PutUserStatusCommand.d.ts +5 -6
  84. package/dist-types/commands/ReleasePhoneNumberCommand.d.ts +1 -1
  85. package/dist-types/commands/ResumeContactRecordingCommand.d.ts +1 -1
  86. package/dist-types/commands/SearchVocabulariesCommand.d.ts +2 -1
  87. package/dist-types/commands/StartChatContactCommand.d.ts +3 -3
  88. package/dist-types/commands/StartContactRecordingCommand.d.ts +9 -7
  89. package/dist-types/commands/StopContactCommand.d.ts +3 -1
  90. package/dist-types/commands/TagResourceCommand.d.ts +2 -1
  91. package/dist-types/commands/TransferContactCommand.d.ts +58 -0
  92. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +2 -1
  93. package/dist-types/commands/UpdateTaskTemplateCommand.d.ts +37 -0
  94. package/dist-types/commands/index.d.ts +7 -0
  95. package/dist-types/models/models_0.d.ts +927 -850
  96. package/dist-types/models/models_1.d.ts +979 -50
  97. package/dist-types/pagination/GetCurrentUserDataPaginator.d.ts +4 -0
  98. package/dist-types/pagination/ListTaskTemplatesPaginator.d.ts +4 -0
  99. package/dist-types/pagination/index.d.ts +2 -0
  100. package/dist-types/protocols/Aws_restJson1.d.ts +21 -0
  101. package/dist-types/ts3.4/Connect.d.ts +35 -0
  102. package/dist-types/ts3.4/ConnectClient.d.ts +9 -2
  103. package/dist-types/ts3.4/commands/CreateTaskTemplateCommand.d.ts +17 -0
  104. package/dist-types/ts3.4/commands/DeleteTaskTemplateCommand.d.ts +17 -0
  105. package/dist-types/ts3.4/commands/GetCurrentUserDataCommand.d.ts +17 -0
  106. package/dist-types/ts3.4/commands/GetTaskTemplateCommand.d.ts +17 -0
  107. package/dist-types/ts3.4/commands/ListQueuesCommand.d.ts +1 -1
  108. package/dist-types/ts3.4/commands/ListQuickConnectsCommand.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/ListRoutingProfileQueuesCommand.d.ts +1 -1
  110. package/dist-types/ts3.4/commands/ListRoutingProfilesCommand.d.ts +1 -1
  111. package/dist-types/ts3.4/commands/ListSecurityKeysCommand.d.ts +1 -1
  112. package/dist-types/ts3.4/commands/ListSecurityProfilePermissionsCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/ListSecurityProfilesCommand.d.ts +1 -1
  114. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  115. package/dist-types/ts3.4/commands/ListTaskTemplatesCommand.d.ts +17 -0
  116. package/dist-types/ts3.4/commands/ListUseCasesCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/ListUserHierarchyGroupsCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +1 -1
  119. package/dist-types/ts3.4/commands/PutUserStatusCommand.d.ts +1 -1
  120. package/dist-types/ts3.4/commands/ReleasePhoneNumberCommand.d.ts +1 -1
  121. package/dist-types/ts3.4/commands/ResumeContactRecordingCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/TransferContactCommand.d.ts +17 -0
  123. package/dist-types/ts3.4/commands/UpdateTaskTemplateCommand.d.ts +17 -0
  124. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  125. package/dist-types/ts3.4/models/models_0.d.ts +555 -517
  126. package/dist-types/ts3.4/models/models_1.d.ts +539 -26
  127. package/dist-types/ts3.4/pagination/GetCurrentUserDataPaginator.d.ts +4 -0
  128. package/dist-types/ts3.4/pagination/ListTaskTemplatesPaginator.d.ts +4 -0
  129. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  130. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +21 -0
  131. package/package.json +29 -28
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = 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_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_restJson1DeleteContactFlowModuleCommand = exports.serializeAws_restJson1DeleteContactFlowCommand = exports.serializeAws_restJson1CreateVocabularyCommand = exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateUseCaseCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateRoutingProfileCommand = exports.serializeAws_restJson1CreateQuickConnectCommand = exports.serializeAws_restJson1CreateQueueCommand = exports.serializeAws_restJson1CreateIntegrationAssociationCommand = exports.serializeAws_restJson1CreateInstanceCommand = exports.serializeAws_restJson1CreateHoursOfOperationCommand = exports.serializeAws_restJson1CreateContactFlowModuleCommand = exports.serializeAws_restJson1CreateContactFlowCommand = exports.serializeAws_restJson1CreateAgentStatusCommand = exports.serializeAws_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_restJson1SearchUsersCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1PutUserStatusCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_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_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = 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 = void 0;
5
- exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_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_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 = void 0;
6
- exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeVocabularyCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_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 = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = 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 = void 0;
7
- exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1SearchVocabulariesCommand = exports.deserializeAws_restJson1SearchUsersCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1PutUserStatusCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = exports.deserializeAws_restJson1ListPhoneNumbersV2Command = 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_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = void 0;
8
- exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdatePhoneNumberCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = void 0;
3
+ exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = 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_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_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_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTaskTemplatesCommand = 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_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_restJson1DescribeSecurityProfileCommand = void 0;
5
+ exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateTaskTemplateCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_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_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1PutUserStatusCommand = void 0;
6
+ 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 = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = 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_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 = void 0;
7
+ exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = 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 = 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_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_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = void 0;
8
+ exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = 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 = 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_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1PutUserStatusCommand = exports.deserializeAws_restJson1ListUsersCommand = void 0;
9
+ exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = void 0;
9
10
  const protocol_http_1 = require("@aws-sdk/protocol-http");
10
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
11
12
  const uuid_1 = require("uuid");
@@ -770,6 +771,50 @@ const serializeAws_restJson1CreateSecurityProfileCommand = async (input, context
770
771
  });
771
772
  };
772
773
  exports.serializeAws_restJson1CreateSecurityProfileCommand = serializeAws_restJson1CreateSecurityProfileCommand;
774
+ const serializeAws_restJson1CreateTaskTemplateCommand = async (input, context) => {
775
+ var _a;
776
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
777
+ const headers = {
778
+ "content-type": "application/json",
779
+ };
780
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/task/template";
781
+ if (input.InstanceId !== undefined) {
782
+ const labelValue = input.InstanceId;
783
+ if (labelValue.length <= 0) {
784
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
785
+ }
786
+ resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
787
+ }
788
+ else {
789
+ throw new Error("No value provided for input HTTP label: InstanceId.");
790
+ }
791
+ let body;
792
+ body = JSON.stringify({
793
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
794
+ ...(input.Constraints !== undefined &&
795
+ input.Constraints !== null && {
796
+ Constraints: serializeAws_restJson1TaskTemplateConstraints(input.Constraints, context),
797
+ }),
798
+ ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
799
+ ...(input.Defaults !== undefined &&
800
+ input.Defaults !== null && { Defaults: serializeAws_restJson1TaskTemplateDefaults(input.Defaults, context) }),
801
+ ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
802
+ ...(input.Fields !== undefined &&
803
+ input.Fields !== null && { Fields: serializeAws_restJson1TaskTemplateFields(input.Fields, context) }),
804
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
805
+ ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
806
+ });
807
+ return new protocol_http_1.HttpRequest({
808
+ protocol,
809
+ hostname,
810
+ port,
811
+ method: "PUT",
812
+ headers,
813
+ path: resolvedPath,
814
+ body,
815
+ });
816
+ };
817
+ exports.serializeAws_restJson1CreateTaskTemplateCommand = serializeAws_restJson1CreateTaskTemplateCommand;
773
818
  const serializeAws_restJson1CreateUseCaseCommand = async (input, context) => {
774
819
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
775
820
  const headers = {
@@ -1180,6 +1225,43 @@ const serializeAws_restJson1DeleteSecurityProfileCommand = async (input, context
1180
1225
  });
1181
1226
  };
1182
1227
  exports.serializeAws_restJson1DeleteSecurityProfileCommand = serializeAws_restJson1DeleteSecurityProfileCommand;
1228
+ const serializeAws_restJson1DeleteTaskTemplateCommand = async (input, context) => {
1229
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1230
+ const headers = {};
1231
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1232
+ "/instance/{InstanceId}/task/template/{TaskTemplateId}";
1233
+ if (input.InstanceId !== undefined) {
1234
+ const labelValue = input.InstanceId;
1235
+ if (labelValue.length <= 0) {
1236
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
1237
+ }
1238
+ resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1239
+ }
1240
+ else {
1241
+ throw new Error("No value provided for input HTTP label: InstanceId.");
1242
+ }
1243
+ if (input.TaskTemplateId !== undefined) {
1244
+ const labelValue = input.TaskTemplateId;
1245
+ if (labelValue.length <= 0) {
1246
+ throw new Error("Empty value provided for input HTTP label: TaskTemplateId.");
1247
+ }
1248
+ resolvedPath = resolvedPath.replace("{TaskTemplateId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1249
+ }
1250
+ else {
1251
+ throw new Error("No value provided for input HTTP label: TaskTemplateId.");
1252
+ }
1253
+ let body;
1254
+ return new protocol_http_1.HttpRequest({
1255
+ protocol,
1256
+ hostname,
1257
+ port,
1258
+ method: "DELETE",
1259
+ headers,
1260
+ path: resolvedPath,
1261
+ body,
1262
+ });
1263
+ };
1264
+ exports.serializeAws_restJson1DeleteTaskTemplateCommand = serializeAws_restJson1DeleteTaskTemplateCommand;
1183
1265
  const serializeAws_restJson1DeleteUseCaseCommand = async (input, context) => {
1184
1266
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1185
1267
  const headers = {};
@@ -2334,6 +2416,40 @@ const serializeAws_restJson1GetCurrentMetricDataCommand = async (input, context)
2334
2416
  });
2335
2417
  };
2336
2418
  exports.serializeAws_restJson1GetCurrentMetricDataCommand = serializeAws_restJson1GetCurrentMetricDataCommand;
2419
+ const serializeAws_restJson1GetCurrentUserDataCommand = async (input, context) => {
2420
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2421
+ const headers = {
2422
+ "content-type": "application/json",
2423
+ };
2424
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/metrics/userdata/{InstanceId}";
2425
+ if (input.InstanceId !== undefined) {
2426
+ const labelValue = input.InstanceId;
2427
+ if (labelValue.length <= 0) {
2428
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
2429
+ }
2430
+ resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2431
+ }
2432
+ else {
2433
+ throw new Error("No value provided for input HTTP label: InstanceId.");
2434
+ }
2435
+ let body;
2436
+ body = JSON.stringify({
2437
+ ...(input.Filters !== undefined &&
2438
+ input.Filters !== null && { Filters: serializeAws_restJson1UserDataFilters(input.Filters, context) }),
2439
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
2440
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
2441
+ });
2442
+ return new protocol_http_1.HttpRequest({
2443
+ protocol,
2444
+ hostname,
2445
+ port,
2446
+ method: "POST",
2447
+ headers,
2448
+ path: resolvedPath,
2449
+ body,
2450
+ });
2451
+ };
2452
+ exports.serializeAws_restJson1GetCurrentUserDataCommand = serializeAws_restJson1GetCurrentUserDataCommand;
2337
2453
  const serializeAws_restJson1GetFederationTokenCommand = async (input, context) => {
2338
2454
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2339
2455
  const headers = {};
@@ -2404,6 +2520,47 @@ const serializeAws_restJson1GetMetricDataCommand = async (input, context) => {
2404
2520
  });
2405
2521
  };
2406
2522
  exports.serializeAws_restJson1GetMetricDataCommand = serializeAws_restJson1GetMetricDataCommand;
2523
+ const serializeAws_restJson1GetTaskTemplateCommand = async (input, context) => {
2524
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2525
+ const headers = {};
2526
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
2527
+ "/instance/{InstanceId}/task/template/{TaskTemplateId}";
2528
+ if (input.InstanceId !== undefined) {
2529
+ const labelValue = input.InstanceId;
2530
+ if (labelValue.length <= 0) {
2531
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
2532
+ }
2533
+ resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2534
+ }
2535
+ else {
2536
+ throw new Error("No value provided for input HTTP label: InstanceId.");
2537
+ }
2538
+ if (input.TaskTemplateId !== undefined) {
2539
+ const labelValue = input.TaskTemplateId;
2540
+ if (labelValue.length <= 0) {
2541
+ throw new Error("Empty value provided for input HTTP label: TaskTemplateId.");
2542
+ }
2543
+ resolvedPath = resolvedPath.replace("{TaskTemplateId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2544
+ }
2545
+ else {
2546
+ throw new Error("No value provided for input HTTP label: TaskTemplateId.");
2547
+ }
2548
+ const query = {
2549
+ ...(input.SnapshotVersion !== undefined && { snapshotVersion: input.SnapshotVersion }),
2550
+ };
2551
+ let body;
2552
+ return new protocol_http_1.HttpRequest({
2553
+ protocol,
2554
+ hostname,
2555
+ port,
2556
+ method: "GET",
2557
+ headers,
2558
+ path: resolvedPath,
2559
+ query,
2560
+ body,
2561
+ });
2562
+ };
2563
+ exports.serializeAws_restJson1GetTaskTemplateCommand = serializeAws_restJson1GetTaskTemplateCommand;
2407
2564
  const serializeAws_restJson1ListAgentStatusesCommand = async (input, context) => {
2408
2565
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2409
2566
  const headers = {};
@@ -3267,6 +3424,39 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
3267
3424
  });
3268
3425
  };
3269
3426
  exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
3427
+ const serializeAws_restJson1ListTaskTemplatesCommand = async (input, context) => {
3428
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3429
+ const headers = {};
3430
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/instance/{InstanceId}/task/template";
3431
+ if (input.InstanceId !== undefined) {
3432
+ const labelValue = input.InstanceId;
3433
+ if (labelValue.length <= 0) {
3434
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
3435
+ }
3436
+ resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3437
+ }
3438
+ else {
3439
+ throw new Error("No value provided for input HTTP label: InstanceId.");
3440
+ }
3441
+ const query = {
3442
+ ...(input.NextToken !== undefined && { nextToken: input.NextToken }),
3443
+ ...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
3444
+ ...(input.Status !== undefined && { status: input.Status }),
3445
+ ...(input.Name !== undefined && { name: input.Name }),
3446
+ };
3447
+ let body;
3448
+ return new protocol_http_1.HttpRequest({
3449
+ protocol,
3450
+ hostname,
3451
+ port,
3452
+ method: "GET",
3453
+ headers,
3454
+ path: resolvedPath,
3455
+ query,
3456
+ body,
3457
+ });
3458
+ };
3459
+ exports.serializeAws_restJson1ListTaskTemplatesCommand = serializeAws_restJson1ListTaskTemplatesCommand;
3270
3460
  const serializeAws_restJson1ListUseCasesCommand = async (input, context) => {
3271
3461
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3272
3462
  const headers = {};
@@ -3714,10 +3904,14 @@ const serializeAws_restJson1StartTaskContactCommand = async (input, context) =>
3714
3904
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3715
3905
  ...(input.PreviousContactId !== undefined &&
3716
3906
  input.PreviousContactId !== null && { PreviousContactId: input.PreviousContactId }),
3907
+ ...(input.QuickConnectId !== undefined &&
3908
+ input.QuickConnectId !== null && { QuickConnectId: input.QuickConnectId }),
3717
3909
  ...(input.References !== undefined &&
3718
3910
  input.References !== null && { References: serializeAws_restJson1ContactReferences(input.References, context) }),
3719
3911
  ...(input.ScheduledTime !== undefined &&
3720
3912
  input.ScheduledTime !== null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
3913
+ ...(input.TaskTemplateId !== undefined &&
3914
+ input.TaskTemplateId !== null && { TaskTemplateId: input.TaskTemplateId }),
3721
3915
  });
3722
3916
  return new protocol_http_1.HttpRequest({
3723
3917
  protocol,
@@ -3854,6 +4048,33 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
3854
4048
  });
3855
4049
  };
3856
4050
  exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
4051
+ const serializeAws_restJson1TransferContactCommand = async (input, context) => {
4052
+ var _a;
4053
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4054
+ const headers = {
4055
+ "content-type": "application/json",
4056
+ };
4057
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/transfer";
4058
+ let body;
4059
+ body = JSON.stringify({
4060
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4061
+ ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
4062
+ ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
4063
+ ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
4064
+ ...(input.QueueId !== undefined && input.QueueId !== null && { QueueId: input.QueueId }),
4065
+ ...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
4066
+ });
4067
+ return new protocol_http_1.HttpRequest({
4068
+ protocol,
4069
+ hostname,
4070
+ port,
4071
+ method: "POST",
4072
+ headers,
4073
+ path: resolvedPath,
4074
+ body,
4075
+ });
4076
+ };
4077
+ exports.serializeAws_restJson1TransferContactCommand = serializeAws_restJson1TransferContactCommand;
3857
4078
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
3858
4079
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3859
4080
  const headers = {};
@@ -4931,6 +5152,59 @@ const serializeAws_restJson1UpdateSecurityProfileCommand = async (input, context
4931
5152
  });
4932
5153
  };
4933
5154
  exports.serializeAws_restJson1UpdateSecurityProfileCommand = serializeAws_restJson1UpdateSecurityProfileCommand;
5155
+ const serializeAws_restJson1UpdateTaskTemplateCommand = async (input, context) => {
5156
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5157
+ const headers = {
5158
+ "content-type": "application/json",
5159
+ };
5160
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
5161
+ "/instance/{InstanceId}/task/template/{TaskTemplateId}";
5162
+ if (input.TaskTemplateId !== undefined) {
5163
+ const labelValue = input.TaskTemplateId;
5164
+ if (labelValue.length <= 0) {
5165
+ throw new Error("Empty value provided for input HTTP label: TaskTemplateId.");
5166
+ }
5167
+ resolvedPath = resolvedPath.replace("{TaskTemplateId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
5168
+ }
5169
+ else {
5170
+ throw new Error("No value provided for input HTTP label: TaskTemplateId.");
5171
+ }
5172
+ if (input.InstanceId !== undefined) {
5173
+ const labelValue = input.InstanceId;
5174
+ if (labelValue.length <= 0) {
5175
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
5176
+ }
5177
+ resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
5178
+ }
5179
+ else {
5180
+ throw new Error("No value provided for input HTTP label: InstanceId.");
5181
+ }
5182
+ let body;
5183
+ body = JSON.stringify({
5184
+ ...(input.Constraints !== undefined &&
5185
+ input.Constraints !== null && {
5186
+ Constraints: serializeAws_restJson1TaskTemplateConstraints(input.Constraints, context),
5187
+ }),
5188
+ ...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
5189
+ ...(input.Defaults !== undefined &&
5190
+ input.Defaults !== null && { Defaults: serializeAws_restJson1TaskTemplateDefaults(input.Defaults, context) }),
5191
+ ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
5192
+ ...(input.Fields !== undefined &&
5193
+ input.Fields !== null && { Fields: serializeAws_restJson1TaskTemplateFields(input.Fields, context) }),
5194
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
5195
+ ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
5196
+ });
5197
+ return new protocol_http_1.HttpRequest({
5198
+ protocol,
5199
+ hostname,
5200
+ port,
5201
+ method: "POST",
5202
+ headers,
5203
+ path: resolvedPath,
5204
+ body,
5205
+ });
5206
+ };
5207
+ exports.serializeAws_restJson1UpdateTaskTemplateCommand = serializeAws_restJson1UpdateTaskTemplateCommand;
4934
5208
  const serializeAws_restJson1UpdateUserHierarchyCommand = async (input, context) => {
4935
5209
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4936
5210
  const headers = {
@@ -6364,26 +6638,26 @@ const deserializeAws_restJson1CreateSecurityProfileCommandError = async (output,
6364
6638
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6365
6639
  }
6366
6640
  };
6367
- const deserializeAws_restJson1CreateUseCaseCommand = async (output, context) => {
6641
+ const deserializeAws_restJson1CreateTaskTemplateCommand = async (output, context) => {
6368
6642
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6369
- return deserializeAws_restJson1CreateUseCaseCommandError(output, context);
6643
+ return deserializeAws_restJson1CreateTaskTemplateCommandError(output, context);
6370
6644
  }
6371
6645
  const contents = {
6372
6646
  $metadata: deserializeMetadata(output),
6373
- UseCaseArn: undefined,
6374
- UseCaseId: undefined,
6647
+ Arn: undefined,
6648
+ Id: undefined,
6375
6649
  };
6376
6650
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6377
- if (data.UseCaseArn !== undefined && data.UseCaseArn !== null) {
6378
- contents.UseCaseArn = (0, smithy_client_1.expectString)(data.UseCaseArn);
6651
+ if (data.Arn !== undefined && data.Arn !== null) {
6652
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
6379
6653
  }
6380
- if (data.UseCaseId !== undefined && data.UseCaseId !== null) {
6381
- contents.UseCaseId = (0, smithy_client_1.expectString)(data.UseCaseId);
6654
+ if (data.Id !== undefined && data.Id !== null) {
6655
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
6382
6656
  }
6383
6657
  return Promise.resolve(contents);
6384
6658
  };
6385
- exports.deserializeAws_restJson1CreateUseCaseCommand = deserializeAws_restJson1CreateUseCaseCommand;
6386
- const deserializeAws_restJson1CreateUseCaseCommandError = async (output, context) => {
6659
+ exports.deserializeAws_restJson1CreateTaskTemplateCommand = deserializeAws_restJson1CreateTaskTemplateCommand;
6660
+ const deserializeAws_restJson1CreateTaskTemplateCommandError = async (output, context) => {
6387
6661
  const parsedOutput = {
6388
6662
  ...output,
6389
6663
  body: await parseBody(output.body, context),
@@ -6392,18 +6666,21 @@ const deserializeAws_restJson1CreateUseCaseCommandError = async (output, context
6392
6666
  let errorCode = "UnknownError";
6393
6667
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6394
6668
  switch (errorCode) {
6395
- case "DuplicateResourceException":
6396
- case "com.amazonaws.connect#DuplicateResourceException":
6397
- throw await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context);
6398
6669
  case "InternalServiceException":
6399
6670
  case "com.amazonaws.connect#InternalServiceException":
6400
6671
  throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
6401
- case "InvalidRequestException":
6402
- case "com.amazonaws.connect#InvalidRequestException":
6403
- throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
6672
+ case "InvalidParameterException":
6673
+ case "com.amazonaws.connect#InvalidParameterException":
6674
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
6675
+ case "PropertyValidationException":
6676
+ case "com.amazonaws.connect#PropertyValidationException":
6677
+ throw await deserializeAws_restJson1PropertyValidationExceptionResponse(parsedOutput, context);
6404
6678
  case "ResourceNotFoundException":
6405
6679
  case "com.amazonaws.connect#ResourceNotFoundException":
6406
6680
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
6681
+ case "ServiceQuotaExceededException":
6682
+ case "com.amazonaws.connect#ServiceQuotaExceededException":
6683
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
6407
6684
  case "ThrottlingException":
6408
6685
  case "com.amazonaws.connect#ThrottlingException":
6409
6686
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
@@ -6417,20 +6694,73 @@ const deserializeAws_restJson1CreateUseCaseCommandError = async (output, context
6417
6694
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6418
6695
  }
6419
6696
  };
6420
- const deserializeAws_restJson1CreateUserCommand = async (output, context) => {
6697
+ const deserializeAws_restJson1CreateUseCaseCommand = async (output, context) => {
6421
6698
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6422
- return deserializeAws_restJson1CreateUserCommandError(output, context);
6699
+ return deserializeAws_restJson1CreateUseCaseCommandError(output, context);
6423
6700
  }
6424
6701
  const contents = {
6425
6702
  $metadata: deserializeMetadata(output),
6426
- UserArn: undefined,
6427
- UserId: undefined,
6703
+ UseCaseArn: undefined,
6704
+ UseCaseId: undefined,
6428
6705
  };
6429
6706
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6430
- if (data.UserArn !== undefined && data.UserArn !== null) {
6431
- contents.UserArn = (0, smithy_client_1.expectString)(data.UserArn);
6707
+ if (data.UseCaseArn !== undefined && data.UseCaseArn !== null) {
6708
+ contents.UseCaseArn = (0, smithy_client_1.expectString)(data.UseCaseArn);
6432
6709
  }
6433
- if (data.UserId !== undefined && data.UserId !== null) {
6710
+ if (data.UseCaseId !== undefined && data.UseCaseId !== null) {
6711
+ contents.UseCaseId = (0, smithy_client_1.expectString)(data.UseCaseId);
6712
+ }
6713
+ return Promise.resolve(contents);
6714
+ };
6715
+ exports.deserializeAws_restJson1CreateUseCaseCommand = deserializeAws_restJson1CreateUseCaseCommand;
6716
+ const deserializeAws_restJson1CreateUseCaseCommandError = async (output, context) => {
6717
+ const parsedOutput = {
6718
+ ...output,
6719
+ body: await parseBody(output.body, context),
6720
+ };
6721
+ let response;
6722
+ let errorCode = "UnknownError";
6723
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6724
+ switch (errorCode) {
6725
+ case "DuplicateResourceException":
6726
+ case "com.amazonaws.connect#DuplicateResourceException":
6727
+ throw await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context);
6728
+ case "InternalServiceException":
6729
+ case "com.amazonaws.connect#InternalServiceException":
6730
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
6731
+ case "InvalidRequestException":
6732
+ case "com.amazonaws.connect#InvalidRequestException":
6733
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
6734
+ case "ResourceNotFoundException":
6735
+ case "com.amazonaws.connect#ResourceNotFoundException":
6736
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
6737
+ case "ThrottlingException":
6738
+ case "com.amazonaws.connect#ThrottlingException":
6739
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
6740
+ default:
6741
+ const parsedBody = parsedOutput.body;
6742
+ response = new ConnectServiceException_1.ConnectServiceException({
6743
+ name: parsedBody.code || parsedBody.Code || errorCode,
6744
+ $fault: "client",
6745
+ $metadata: deserializeMetadata(output),
6746
+ });
6747
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6748
+ }
6749
+ };
6750
+ const deserializeAws_restJson1CreateUserCommand = async (output, context) => {
6751
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6752
+ return deserializeAws_restJson1CreateUserCommandError(output, context);
6753
+ }
6754
+ const contents = {
6755
+ $metadata: deserializeMetadata(output),
6756
+ UserArn: undefined,
6757
+ UserId: undefined,
6758
+ };
6759
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6760
+ if (data.UserArn !== undefined && data.UserArn !== null) {
6761
+ contents.UserArn = (0, smithy_client_1.expectString)(data.UserArn);
6762
+ }
6763
+ if (data.UserId !== undefined && data.UserId !== null) {
6434
6764
  contents.UserId = (0, smithy_client_1.expectString)(data.UserId);
6435
6765
  }
6436
6766
  return Promise.resolve(contents);
@@ -6916,6 +7246,51 @@ const deserializeAws_restJson1DeleteSecurityProfileCommandError = async (output,
6916
7246
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6917
7247
  }
6918
7248
  };
7249
+ const deserializeAws_restJson1DeleteTaskTemplateCommand = async (output, context) => {
7250
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7251
+ return deserializeAws_restJson1DeleteTaskTemplateCommandError(output, context);
7252
+ }
7253
+ const contents = {
7254
+ $metadata: deserializeMetadata(output),
7255
+ };
7256
+ await collectBody(output.body, context);
7257
+ return Promise.resolve(contents);
7258
+ };
7259
+ exports.deserializeAws_restJson1DeleteTaskTemplateCommand = deserializeAws_restJson1DeleteTaskTemplateCommand;
7260
+ const deserializeAws_restJson1DeleteTaskTemplateCommandError = async (output, context) => {
7261
+ const parsedOutput = {
7262
+ ...output,
7263
+ body: await parseBody(output.body, context),
7264
+ };
7265
+ let response;
7266
+ let errorCode = "UnknownError";
7267
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7268
+ switch (errorCode) {
7269
+ case "InternalServiceException":
7270
+ case "com.amazonaws.connect#InternalServiceException":
7271
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
7272
+ case "InvalidParameterException":
7273
+ case "com.amazonaws.connect#InvalidParameterException":
7274
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
7275
+ case "InvalidRequestException":
7276
+ case "com.amazonaws.connect#InvalidRequestException":
7277
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
7278
+ case "ResourceNotFoundException":
7279
+ case "com.amazonaws.connect#ResourceNotFoundException":
7280
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
7281
+ case "ThrottlingException":
7282
+ case "com.amazonaws.connect#ThrottlingException":
7283
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
7284
+ default:
7285
+ const parsedBody = parsedOutput.body;
7286
+ response = new ConnectServiceException_1.ConnectServiceException({
7287
+ name: parsedBody.code || parsedBody.Code || errorCode,
7288
+ $fault: "client",
7289
+ $metadata: deserializeMetadata(output),
7290
+ });
7291
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7292
+ }
7293
+ };
6919
7294
  const deserializeAws_restJson1DeleteUseCaseCommand = async (output, context) => {
6920
7295
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6921
7296
  return deserializeAws_restJson1DeleteUseCaseCommandError(output, context);
@@ -8446,6 +8821,59 @@ const deserializeAws_restJson1GetCurrentMetricDataCommandError = async (output,
8446
8821
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8447
8822
  }
8448
8823
  };
8824
+ const deserializeAws_restJson1GetCurrentUserDataCommand = async (output, context) => {
8825
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8826
+ return deserializeAws_restJson1GetCurrentUserDataCommandError(output, context);
8827
+ }
8828
+ const contents = {
8829
+ $metadata: deserializeMetadata(output),
8830
+ NextToken: undefined,
8831
+ UserDataList: undefined,
8832
+ };
8833
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
8834
+ if (data.NextToken !== undefined && data.NextToken !== null) {
8835
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
8836
+ }
8837
+ if (data.UserDataList !== undefined && data.UserDataList !== null) {
8838
+ contents.UserDataList = deserializeAws_restJson1UserDataList(data.UserDataList, context);
8839
+ }
8840
+ return Promise.resolve(contents);
8841
+ };
8842
+ exports.deserializeAws_restJson1GetCurrentUserDataCommand = deserializeAws_restJson1GetCurrentUserDataCommand;
8843
+ const deserializeAws_restJson1GetCurrentUserDataCommandError = async (output, context) => {
8844
+ const parsedOutput = {
8845
+ ...output,
8846
+ body: await parseBody(output.body, context),
8847
+ };
8848
+ let response;
8849
+ let errorCode = "UnknownError";
8850
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8851
+ switch (errorCode) {
8852
+ case "InternalServiceException":
8853
+ case "com.amazonaws.connect#InternalServiceException":
8854
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
8855
+ case "InvalidParameterException":
8856
+ case "com.amazonaws.connect#InvalidParameterException":
8857
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
8858
+ case "InvalidRequestException":
8859
+ case "com.amazonaws.connect#InvalidRequestException":
8860
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
8861
+ case "ResourceNotFoundException":
8862
+ case "com.amazonaws.connect#ResourceNotFoundException":
8863
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
8864
+ case "ThrottlingException":
8865
+ case "com.amazonaws.connect#ThrottlingException":
8866
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
8867
+ default:
8868
+ const parsedBody = parsedOutput.body;
8869
+ response = new ConnectServiceException_1.ConnectServiceException({
8870
+ name: parsedBody.code || parsedBody.Code || errorCode,
8871
+ $fault: "client",
8872
+ $metadata: deserializeMetadata(output),
8873
+ });
8874
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8875
+ }
8876
+ };
8449
8877
  const deserializeAws_restJson1GetFederationTokenCommand = async (output, context) => {
8450
8878
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8451
8879
  return deserializeAws_restJson1GetFederationTokenCommandError(output, context);
@@ -8551,6 +8979,103 @@ const deserializeAws_restJson1GetMetricDataCommandError = async (output, context
8551
8979
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8552
8980
  }
8553
8981
  };
8982
+ const deserializeAws_restJson1GetTaskTemplateCommand = async (output, context) => {
8983
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8984
+ return deserializeAws_restJson1GetTaskTemplateCommandError(output, context);
8985
+ }
8986
+ const contents = {
8987
+ $metadata: deserializeMetadata(output),
8988
+ Arn: undefined,
8989
+ Constraints: undefined,
8990
+ ContactFlowId: undefined,
8991
+ CreatedTime: undefined,
8992
+ Defaults: undefined,
8993
+ Description: undefined,
8994
+ Fields: undefined,
8995
+ Id: undefined,
8996
+ InstanceId: undefined,
8997
+ LastModifiedTime: undefined,
8998
+ Name: undefined,
8999
+ Status: undefined,
9000
+ Tags: undefined,
9001
+ };
9002
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
9003
+ if (data.Arn !== undefined && data.Arn !== null) {
9004
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
9005
+ }
9006
+ if (data.Constraints !== undefined && data.Constraints !== null) {
9007
+ contents.Constraints = deserializeAws_restJson1TaskTemplateConstraints(data.Constraints, context);
9008
+ }
9009
+ if (data.ContactFlowId !== undefined && data.ContactFlowId !== null) {
9010
+ contents.ContactFlowId = (0, smithy_client_1.expectString)(data.ContactFlowId);
9011
+ }
9012
+ if (data.CreatedTime !== undefined && data.CreatedTime !== null) {
9013
+ contents.CreatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreatedTime)));
9014
+ }
9015
+ if (data.Defaults !== undefined && data.Defaults !== null) {
9016
+ contents.Defaults = deserializeAws_restJson1TaskTemplateDefaults(data.Defaults, context);
9017
+ }
9018
+ if (data.Description !== undefined && data.Description !== null) {
9019
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
9020
+ }
9021
+ if (data.Fields !== undefined && data.Fields !== null) {
9022
+ contents.Fields = deserializeAws_restJson1TaskTemplateFields(data.Fields, context);
9023
+ }
9024
+ if (data.Id !== undefined && data.Id !== null) {
9025
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
9026
+ }
9027
+ if (data.InstanceId !== undefined && data.InstanceId !== null) {
9028
+ contents.InstanceId = (0, smithy_client_1.expectString)(data.InstanceId);
9029
+ }
9030
+ if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
9031
+ contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
9032
+ }
9033
+ if (data.Name !== undefined && data.Name !== null) {
9034
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
9035
+ }
9036
+ if (data.Status !== undefined && data.Status !== null) {
9037
+ contents.Status = (0, smithy_client_1.expectString)(data.Status);
9038
+ }
9039
+ if (data.Tags !== undefined && data.Tags !== null) {
9040
+ contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
9041
+ }
9042
+ return Promise.resolve(contents);
9043
+ };
9044
+ exports.deserializeAws_restJson1GetTaskTemplateCommand = deserializeAws_restJson1GetTaskTemplateCommand;
9045
+ const deserializeAws_restJson1GetTaskTemplateCommandError = async (output, context) => {
9046
+ const parsedOutput = {
9047
+ ...output,
9048
+ body: await parseBody(output.body, context),
9049
+ };
9050
+ let response;
9051
+ let errorCode = "UnknownError";
9052
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
9053
+ switch (errorCode) {
9054
+ case "InternalServiceException":
9055
+ case "com.amazonaws.connect#InternalServiceException":
9056
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
9057
+ case "InvalidParameterException":
9058
+ case "com.amazonaws.connect#InvalidParameterException":
9059
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
9060
+ case "InvalidRequestException":
9061
+ case "com.amazonaws.connect#InvalidRequestException":
9062
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
9063
+ case "ResourceNotFoundException":
9064
+ case "com.amazonaws.connect#ResourceNotFoundException":
9065
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
9066
+ case "ThrottlingException":
9067
+ case "com.amazonaws.connect#ThrottlingException":
9068
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
9069
+ default:
9070
+ const parsedBody = parsedOutput.body;
9071
+ response = new ConnectServiceException_1.ConnectServiceException({
9072
+ name: parsedBody.code || parsedBody.Code || errorCode,
9073
+ $fault: "client",
9074
+ $metadata: deserializeMetadata(output),
9075
+ });
9076
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
9077
+ }
9078
+ };
8554
9079
  const deserializeAws_restJson1ListAgentStatusesCommand = async (output, context) => {
8555
9080
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8556
9081
  return deserializeAws_restJson1ListAgentStatusesCommandError(output, context);
@@ -9910,6 +10435,59 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
9910
10435
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
9911
10436
  }
9912
10437
  };
10438
+ const deserializeAws_restJson1ListTaskTemplatesCommand = async (output, context) => {
10439
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
10440
+ return deserializeAws_restJson1ListTaskTemplatesCommandError(output, context);
10441
+ }
10442
+ const contents = {
10443
+ $metadata: deserializeMetadata(output),
10444
+ NextToken: undefined,
10445
+ TaskTemplates: undefined,
10446
+ };
10447
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
10448
+ if (data.NextToken !== undefined && data.NextToken !== null) {
10449
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
10450
+ }
10451
+ if (data.TaskTemplates !== undefined && data.TaskTemplates !== null) {
10452
+ contents.TaskTemplates = deserializeAws_restJson1TaskTemplateList(data.TaskTemplates, context);
10453
+ }
10454
+ return Promise.resolve(contents);
10455
+ };
10456
+ exports.deserializeAws_restJson1ListTaskTemplatesCommand = deserializeAws_restJson1ListTaskTemplatesCommand;
10457
+ const deserializeAws_restJson1ListTaskTemplatesCommandError = async (output, context) => {
10458
+ const parsedOutput = {
10459
+ ...output,
10460
+ body: await parseBody(output.body, context),
10461
+ };
10462
+ let response;
10463
+ let errorCode = "UnknownError";
10464
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
10465
+ switch (errorCode) {
10466
+ case "InternalServiceException":
10467
+ case "com.amazonaws.connect#InternalServiceException":
10468
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
10469
+ case "InvalidParameterException":
10470
+ case "com.amazonaws.connect#InvalidParameterException":
10471
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
10472
+ case "InvalidRequestException":
10473
+ case "com.amazonaws.connect#InvalidRequestException":
10474
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
10475
+ case "ResourceNotFoundException":
10476
+ case "com.amazonaws.connect#ResourceNotFoundException":
10477
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
10478
+ case "ThrottlingException":
10479
+ case "com.amazonaws.connect#ThrottlingException":
10480
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
10481
+ default:
10482
+ const parsedBody = parsedOutput.body;
10483
+ response = new ConnectServiceException_1.ConnectServiceException({
10484
+ name: parsedBody.code || parsedBody.Code || errorCode,
10485
+ $fault: "client",
10486
+ $metadata: deserializeMetadata(output),
10487
+ });
10488
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
10489
+ }
10490
+ };
9913
10491
  const deserializeAws_restJson1ListUseCasesCommand = async (output, context) => {
9914
10492
  if (output.statusCode !== 200 && output.statusCode >= 300) {
9915
10493
  return deserializeAws_restJson1ListUseCasesCommandError(output, context);
@@ -10826,16 +11404,75 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
10826
11404
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
10827
11405
  }
10828
11406
  };
10829
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
11407
+ const deserializeAws_restJson1TransferContactCommand = async (output, context) => {
10830
11408
  if (output.statusCode !== 200 && output.statusCode >= 300) {
10831
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
11409
+ return deserializeAws_restJson1TransferContactCommandError(output, context);
10832
11410
  }
10833
11411
  const contents = {
10834
11412
  $metadata: deserializeMetadata(output),
11413
+ ContactArn: undefined,
11414
+ ContactId: undefined,
10835
11415
  };
10836
- await collectBody(output.body, context);
10837
- return Promise.resolve(contents);
10838
- };
11416
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
11417
+ if (data.ContactArn !== undefined && data.ContactArn !== null) {
11418
+ contents.ContactArn = (0, smithy_client_1.expectString)(data.ContactArn);
11419
+ }
11420
+ if (data.ContactId !== undefined && data.ContactId !== null) {
11421
+ contents.ContactId = (0, smithy_client_1.expectString)(data.ContactId);
11422
+ }
11423
+ return Promise.resolve(contents);
11424
+ };
11425
+ exports.deserializeAws_restJson1TransferContactCommand = deserializeAws_restJson1TransferContactCommand;
11426
+ const deserializeAws_restJson1TransferContactCommandError = async (output, context) => {
11427
+ const parsedOutput = {
11428
+ ...output,
11429
+ body: await parseBody(output.body, context),
11430
+ };
11431
+ let response;
11432
+ let errorCode = "UnknownError";
11433
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11434
+ switch (errorCode) {
11435
+ case "AccessDeniedException":
11436
+ case "com.amazonaws.connect#AccessDeniedException":
11437
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
11438
+ case "IdempotencyException":
11439
+ case "com.amazonaws.connect#IdempotencyException":
11440
+ throw await deserializeAws_restJson1IdempotencyExceptionResponse(parsedOutput, context);
11441
+ case "InternalServiceException":
11442
+ case "com.amazonaws.connect#InternalServiceException":
11443
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
11444
+ case "InvalidRequestException":
11445
+ case "com.amazonaws.connect#InvalidRequestException":
11446
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
11447
+ case "ResourceNotFoundException":
11448
+ case "com.amazonaws.connect#ResourceNotFoundException":
11449
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
11450
+ case "ServiceQuotaExceededException":
11451
+ case "com.amazonaws.connect#ServiceQuotaExceededException":
11452
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
11453
+ case "ThrottlingException":
11454
+ case "com.amazonaws.connect#ThrottlingException":
11455
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
11456
+ default:
11457
+ const parsedBody = parsedOutput.body;
11458
+ response = new ConnectServiceException_1.ConnectServiceException({
11459
+ name: parsedBody.code || parsedBody.Code || errorCode,
11460
+ $fault: "client",
11461
+ $metadata: deserializeMetadata(output),
11462
+ });
11463
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
11464
+ }
11465
+ };
11466
+ const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
11467
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
11468
+ return deserializeAws_restJson1UntagResourceCommandError(output, context);
11469
+ }
11470
+ const contents = {
11471
+ $metadata: deserializeMetadata(output),
11472
+ };
11473
+ await collectBody(output.body, context);
11474
+ return Promise.resolve(contents);
11475
+ };
10839
11476
  exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
10840
11477
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
10841
11478
  const parsedOutput = {
@@ -12043,6 +12680,102 @@ const deserializeAws_restJson1UpdateSecurityProfileCommandError = async (output,
12043
12680
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
12044
12681
  }
12045
12682
  };
12683
+ const deserializeAws_restJson1UpdateTaskTemplateCommand = async (output, context) => {
12684
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
12685
+ return deserializeAws_restJson1UpdateTaskTemplateCommandError(output, context);
12686
+ }
12687
+ const contents = {
12688
+ $metadata: deserializeMetadata(output),
12689
+ Arn: undefined,
12690
+ Constraints: undefined,
12691
+ ContactFlowId: undefined,
12692
+ CreatedTime: undefined,
12693
+ Defaults: undefined,
12694
+ Description: undefined,
12695
+ Fields: undefined,
12696
+ Id: undefined,
12697
+ InstanceId: undefined,
12698
+ LastModifiedTime: undefined,
12699
+ Name: undefined,
12700
+ Status: undefined,
12701
+ };
12702
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
12703
+ if (data.Arn !== undefined && data.Arn !== null) {
12704
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
12705
+ }
12706
+ if (data.Constraints !== undefined && data.Constraints !== null) {
12707
+ contents.Constraints = deserializeAws_restJson1TaskTemplateConstraints(data.Constraints, context);
12708
+ }
12709
+ if (data.ContactFlowId !== undefined && data.ContactFlowId !== null) {
12710
+ contents.ContactFlowId = (0, smithy_client_1.expectString)(data.ContactFlowId);
12711
+ }
12712
+ if (data.CreatedTime !== undefined && data.CreatedTime !== null) {
12713
+ contents.CreatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreatedTime)));
12714
+ }
12715
+ if (data.Defaults !== undefined && data.Defaults !== null) {
12716
+ contents.Defaults = deserializeAws_restJson1TaskTemplateDefaults(data.Defaults, context);
12717
+ }
12718
+ if (data.Description !== undefined && data.Description !== null) {
12719
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
12720
+ }
12721
+ if (data.Fields !== undefined && data.Fields !== null) {
12722
+ contents.Fields = deserializeAws_restJson1TaskTemplateFields(data.Fields, context);
12723
+ }
12724
+ if (data.Id !== undefined && data.Id !== null) {
12725
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
12726
+ }
12727
+ if (data.InstanceId !== undefined && data.InstanceId !== null) {
12728
+ contents.InstanceId = (0, smithy_client_1.expectString)(data.InstanceId);
12729
+ }
12730
+ if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
12731
+ contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
12732
+ }
12733
+ if (data.Name !== undefined && data.Name !== null) {
12734
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
12735
+ }
12736
+ if (data.Status !== undefined && data.Status !== null) {
12737
+ contents.Status = (0, smithy_client_1.expectString)(data.Status);
12738
+ }
12739
+ return Promise.resolve(contents);
12740
+ };
12741
+ exports.deserializeAws_restJson1UpdateTaskTemplateCommand = deserializeAws_restJson1UpdateTaskTemplateCommand;
12742
+ const deserializeAws_restJson1UpdateTaskTemplateCommandError = async (output, context) => {
12743
+ const parsedOutput = {
12744
+ ...output,
12745
+ body: await parseBody(output.body, context),
12746
+ };
12747
+ let response;
12748
+ let errorCode = "UnknownError";
12749
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12750
+ switch (errorCode) {
12751
+ case "InternalServiceException":
12752
+ case "com.amazonaws.connect#InternalServiceException":
12753
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
12754
+ case "InvalidParameterException":
12755
+ case "com.amazonaws.connect#InvalidParameterException":
12756
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
12757
+ case "PropertyValidationException":
12758
+ case "com.amazonaws.connect#PropertyValidationException":
12759
+ throw await deserializeAws_restJson1PropertyValidationExceptionResponse(parsedOutput, context);
12760
+ case "ResourceNotFoundException":
12761
+ case "com.amazonaws.connect#ResourceNotFoundException":
12762
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
12763
+ case "ServiceQuotaExceededException":
12764
+ case "com.amazonaws.connect#ServiceQuotaExceededException":
12765
+ throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
12766
+ case "ThrottlingException":
12767
+ case "com.amazonaws.connect#ThrottlingException":
12768
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
12769
+ default:
12770
+ const parsedBody = parsedOutput.body;
12771
+ response = new ConnectServiceException_1.ConnectServiceException({
12772
+ name: parsedBody.code || parsedBody.Code || errorCode,
12773
+ $fault: "client",
12774
+ $metadata: deserializeMetadata(output),
12775
+ });
12776
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
12777
+ }
12778
+ };
12046
12779
  const deserializeAws_restJson1UpdateUserHierarchyCommand = async (output, context) => {
12047
12780
  if (output.statusCode !== 200 && output.statusCode >= 300) {
12048
12781
  return deserializeAws_restJson1UpdateUserHierarchyCommandError(output, context);
@@ -12520,6 +13253,21 @@ const deserializeAws_restJson1OutboundContactNotPermittedExceptionResponse = asy
12520
13253
  });
12521
13254
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
12522
13255
  };
13256
+ const deserializeAws_restJson1PropertyValidationExceptionResponse = async (parsedOutput, context) => {
13257
+ const contents = {};
13258
+ const data = parsedOutput.body;
13259
+ if (data.Message !== undefined && data.Message !== null) {
13260
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
13261
+ }
13262
+ if (data.PropertyList !== undefined && data.PropertyList !== null) {
13263
+ contents.PropertyList = deserializeAws_restJson1PropertyValidationExceptionPropertyList(data.PropertyList, context);
13264
+ }
13265
+ const exception = new models_0_1.PropertyValidationException({
13266
+ $metadata: deserializeMetadata(parsedOutput),
13267
+ ...contents,
13268
+ });
13269
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
13270
+ };
12523
13271
  const deserializeAws_restJson1ResourceConflictExceptionResponse = async (parsedOutput, context) => {
12524
13272
  const contents = {};
12525
13273
  const data = parsedOutput.body;
@@ -12641,6 +13389,14 @@ const serializeAws_restJson1ChatStreamingConfiguration = (input, context) => {
12641
13389
  input.StreamingEndpointArn !== null && { StreamingEndpointArn: input.StreamingEndpointArn }),
12642
13390
  };
12643
13391
  };
13392
+ const serializeAws_restJson1ContactFilter = (input, context) => {
13393
+ return {
13394
+ ...(input.ContactStates !== undefined &&
13395
+ input.ContactStates !== null && {
13396
+ ContactStates: serializeAws_restJson1ContactStates(input.ContactStates, context),
13397
+ }),
13398
+ };
13399
+ };
12644
13400
  const serializeAws_restJson1ContactReferences = (input, context) => {
12645
13401
  return Object.entries(input).reduce((acc, [key, value]) => {
12646
13402
  if (value === null) {
@@ -12652,6 +13408,16 @@ const serializeAws_restJson1ContactReferences = (input, context) => {
12652
13408
  };
12653
13409
  }, {});
12654
13410
  };
13411
+ const serializeAws_restJson1ContactStates = (input, context) => {
13412
+ return input
13413
+ .filter((e) => e != null)
13414
+ .map((entry) => {
13415
+ if (entry === null) {
13416
+ return null;
13417
+ }
13418
+ return entry;
13419
+ });
13420
+ };
12655
13421
  const serializeAws_restJson1ControlPlaneTagFilter = (input, context) => {
12656
13422
  return {
12657
13423
  ...(input.AndConditions !== undefined &&
@@ -12801,6 +13567,22 @@ const serializeAws_restJson1InstanceStorageConfig = (input, context) => {
12801
13567
  ...(input.StorageType !== undefined && input.StorageType !== null && { StorageType: input.StorageType }),
12802
13568
  };
12803
13569
  };
13570
+ const serializeAws_restJson1InvisibleFieldInfo = (input, context) => {
13571
+ return {
13572
+ ...(input.Id !== undefined &&
13573
+ input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13574
+ };
13575
+ };
13576
+ const serializeAws_restJson1InvisibleTaskTemplateFields = (input, context) => {
13577
+ return input
13578
+ .filter((e) => e != null)
13579
+ .map((entry) => {
13580
+ if (entry === null) {
13581
+ return null;
13582
+ }
13583
+ return serializeAws_restJson1InvisibleFieldInfo(entry, context);
13584
+ });
13585
+ };
12804
13586
  const serializeAws_restJson1KinesisFirehoseConfig = (input, context) => {
12805
13587
  return {
12806
13588
  ...(input.FirehoseArn !== undefined && input.FirehoseArn !== null && { FirehoseArn: input.FirehoseArn }),
@@ -12943,12 +13725,44 @@ const serializeAws_restJson1QuickConnectsList = (input, context) => {
12943
13725
  return entry;
12944
13726
  });
12945
13727
  };
13728
+ const serializeAws_restJson1ReadOnlyFieldInfo = (input, context) => {
13729
+ return {
13730
+ ...(input.Id !== undefined &&
13731
+ input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13732
+ };
13733
+ };
13734
+ const serializeAws_restJson1ReadOnlyTaskTemplateFields = (input, context) => {
13735
+ return input
13736
+ .filter((e) => e != null)
13737
+ .map((entry) => {
13738
+ if (entry === null) {
13739
+ return null;
13740
+ }
13741
+ return serializeAws_restJson1ReadOnlyFieldInfo(entry, context);
13742
+ });
13743
+ };
12946
13744
  const serializeAws_restJson1Reference = (input, context) => {
12947
13745
  return {
12948
13746
  ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
12949
13747
  ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
12950
13748
  };
12951
13749
  };
13750
+ const serializeAws_restJson1RequiredFieldInfo = (input, context) => {
13751
+ return {
13752
+ ...(input.Id !== undefined &&
13753
+ input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13754
+ };
13755
+ };
13756
+ const serializeAws_restJson1RequiredTaskTemplateFields = (input, context) => {
13757
+ return input
13758
+ .filter((e) => e != null)
13759
+ .map((entry) => {
13760
+ if (entry === null) {
13761
+ return null;
13762
+ }
13763
+ return serializeAws_restJson1RequiredFieldInfo(entry, context);
13764
+ });
13765
+ };
12952
13766
  const serializeAws_restJson1RoutingProfileQueueConfig = (input, context) => {
12953
13767
  return {
12954
13768
  ...(input.Delay !== undefined && input.Delay !== null && { Delay: input.Delay }),
@@ -13005,6 +13819,16 @@ const serializeAws_restJson1SecurityProfileIds = (input, context) => {
13005
13819
  return entry;
13006
13820
  });
13007
13821
  };
13822
+ const serializeAws_restJson1SingleSelectOptions = (input, context) => {
13823
+ return input
13824
+ .filter((e) => e != null)
13825
+ .map((entry) => {
13826
+ if (entry === null) {
13827
+ return null;
13828
+ }
13829
+ return entry;
13830
+ });
13831
+ };
13008
13832
  const serializeAws_restJson1StringCondition = (input, context) => {
13009
13833
  return {
13010
13834
  ...(input.ComparisonType !== undefined &&
@@ -13060,6 +13884,74 @@ const serializeAws_restJson1TagOrConditionList = (input, context) => {
13060
13884
  return serializeAws_restJson1TagAndConditionList(entry, context);
13061
13885
  });
13062
13886
  };
13887
+ const serializeAws_restJson1TaskTemplateConstraints = (input, context) => {
13888
+ return {
13889
+ ...(input.InvisibleFields !== undefined &&
13890
+ input.InvisibleFields !== null && {
13891
+ InvisibleFields: serializeAws_restJson1InvisibleTaskTemplateFields(input.InvisibleFields, context),
13892
+ }),
13893
+ ...(input.ReadOnlyFields !== undefined &&
13894
+ input.ReadOnlyFields !== null && {
13895
+ ReadOnlyFields: serializeAws_restJson1ReadOnlyTaskTemplateFields(input.ReadOnlyFields, context),
13896
+ }),
13897
+ ...(input.RequiredFields !== undefined &&
13898
+ input.RequiredFields !== null && {
13899
+ RequiredFields: serializeAws_restJson1RequiredTaskTemplateFields(input.RequiredFields, context),
13900
+ }),
13901
+ };
13902
+ };
13903
+ const serializeAws_restJson1TaskTemplateDefaultFieldValue = (input, context) => {
13904
+ return {
13905
+ ...(input.DefaultValue !== undefined && input.DefaultValue !== null && { DefaultValue: input.DefaultValue }),
13906
+ ...(input.Id !== undefined &&
13907
+ input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13908
+ };
13909
+ };
13910
+ const serializeAws_restJson1TaskTemplateDefaultFieldValueList = (input, context) => {
13911
+ return input
13912
+ .filter((e) => e != null)
13913
+ .map((entry) => {
13914
+ if (entry === null) {
13915
+ return null;
13916
+ }
13917
+ return serializeAws_restJson1TaskTemplateDefaultFieldValue(entry, context);
13918
+ });
13919
+ };
13920
+ const serializeAws_restJson1TaskTemplateDefaults = (input, context) => {
13921
+ return {
13922
+ ...(input.DefaultFieldValues !== undefined &&
13923
+ input.DefaultFieldValues !== null && {
13924
+ DefaultFieldValues: serializeAws_restJson1TaskTemplateDefaultFieldValueList(input.DefaultFieldValues, context),
13925
+ }),
13926
+ };
13927
+ };
13928
+ const serializeAws_restJson1TaskTemplateField = (input, context) => {
13929
+ return {
13930
+ ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
13931
+ ...(input.Id !== undefined &&
13932
+ input.Id !== null && { Id: serializeAws_restJson1TaskTemplateFieldIdentifier(input.Id, context) }),
13933
+ ...(input.SingleSelectOptions !== undefined &&
13934
+ input.SingleSelectOptions !== null && {
13935
+ SingleSelectOptions: serializeAws_restJson1SingleSelectOptions(input.SingleSelectOptions, context),
13936
+ }),
13937
+ ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
13938
+ };
13939
+ };
13940
+ const serializeAws_restJson1TaskTemplateFieldIdentifier = (input, context) => {
13941
+ return {
13942
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
13943
+ };
13944
+ };
13945
+ const serializeAws_restJson1TaskTemplateFields = (input, context) => {
13946
+ return input
13947
+ .filter((e) => e != null)
13948
+ .map((entry) => {
13949
+ if (entry === null) {
13950
+ return null;
13951
+ }
13952
+ return serializeAws_restJson1TaskTemplateField(entry, context);
13953
+ });
13954
+ };
13063
13955
  const serializeAws_restJson1Threshold = (input, context) => {
13064
13956
  return {
13065
13957
  ...(input.Comparison !== undefined && input.Comparison !== null && { Comparison: input.Comparison }),
@@ -13067,6 +13959,16 @@ const serializeAws_restJson1Threshold = (input, context) => {
13067
13959
  input.ThresholdValue !== null && { ThresholdValue: (0, smithy_client_1.serializeFloat)(input.ThresholdValue) }),
13068
13960
  };
13069
13961
  };
13962
+ const serializeAws_restJson1UserDataFilters = (input, context) => {
13963
+ return {
13964
+ ...(input.ContactFilter !== undefined &&
13965
+ input.ContactFilter !== null && {
13966
+ ContactFilter: serializeAws_restJson1ContactFilter(input.ContactFilter, context),
13967
+ }),
13968
+ ...(input.Queues !== undefined &&
13969
+ input.Queues !== null && { Queues: serializeAws_restJson1Queues(input.Queues, context) }),
13970
+ };
13971
+ };
13070
13972
  const serializeAws_restJson1UserIdentityInfo = (input, context) => {
13071
13973
  return {
13072
13974
  ...(input.Email !== undefined && input.Email !== null && { Email: input.Email }),
@@ -13132,6 +14034,34 @@ const serializeAws_restJson1VoiceRecordingConfiguration = (input, context) => {
13132
14034
  input.VoiceRecordingTrack !== null && { VoiceRecordingTrack: input.VoiceRecordingTrack }),
13133
14035
  };
13134
14036
  };
14037
+ const deserializeAws_restJson1AgentContactReference = (output, context) => {
14038
+ return {
14039
+ AgentContactState: (0, smithy_client_1.expectString)(output.AgentContactState),
14040
+ Channel: (0, smithy_client_1.expectString)(output.Channel),
14041
+ ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp !== undefined && output.ConnectedToAgentTimestamp !== null
14042
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ConnectedToAgentTimestamp)))
14043
+ : undefined,
14044
+ ContactId: (0, smithy_client_1.expectString)(output.ContactId),
14045
+ InitiationMethod: (0, smithy_client_1.expectString)(output.InitiationMethod),
14046
+ Queue: output.Queue !== undefined && output.Queue !== null
14047
+ ? deserializeAws_restJson1QueueReference(output.Queue, context)
14048
+ : undefined,
14049
+ StateStartTimestamp: output.StateStartTimestamp !== undefined && output.StateStartTimestamp !== null
14050
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StateStartTimestamp)))
14051
+ : undefined,
14052
+ };
14053
+ };
14054
+ const deserializeAws_restJson1AgentContactReferenceList = (output, context) => {
14055
+ const retVal = (output || [])
14056
+ .filter((e) => e != null)
14057
+ .map((entry) => {
14058
+ if (entry === null) {
14059
+ return null;
14060
+ }
14061
+ return deserializeAws_restJson1AgentContactReference(entry, context);
14062
+ });
14063
+ return retVal;
14064
+ };
13135
14065
  const deserializeAws_restJson1AgentInfo = (output, context) => {
13136
14066
  return {
13137
14067
  ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp !== undefined && output.ConnectedToAgentTimestamp !== null
@@ -13154,6 +14084,14 @@ const deserializeAws_restJson1AgentStatus = (output, context) => {
13154
14084
  Type: (0, smithy_client_1.expectString)(output.Type),
13155
14085
  };
13156
14086
  };
14087
+ const deserializeAws_restJson1AgentStatusReference = (output, context) => {
14088
+ return {
14089
+ StatusArn: (0, smithy_client_1.expectString)(output.StatusArn),
14090
+ StatusStartTimestamp: output.StatusStartTimestamp !== undefined && output.StatusStartTimestamp !== null
14091
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StatusStartTimestamp)))
14092
+ : undefined,
14093
+ };
14094
+ };
13157
14095
  const deserializeAws_restJson1AgentStatusSummary = (output, context) => {
13158
14096
  return {
13159
14097
  Arn: (0, smithy_client_1.expectString)(output.Arn),
@@ -13226,6 +14164,17 @@ const deserializeAws_restJson1AvailableNumberSummary = (output, context) => {
13226
14164
  PhoneNumberType: (0, smithy_client_1.expectString)(output.PhoneNumberType),
13227
14165
  };
13228
14166
  };
14167
+ const deserializeAws_restJson1ChannelToCountMap = (output, context) => {
14168
+ return Object.entries(output).reduce((acc, [key, value]) => {
14169
+ if (value === null) {
14170
+ return acc;
14171
+ }
14172
+ return {
14173
+ ...acc,
14174
+ [key]: (0, smithy_client_1.expectInt32)(value),
14175
+ };
14176
+ }, {});
14177
+ };
13229
14178
  const deserializeAws_restJson1ClaimedPhoneNumberSummary = (output, context) => {
13230
14179
  return {
13231
14180
  PhoneNumber: (0, smithy_client_1.expectString)(output.PhoneNumber),
@@ -13398,6 +14347,12 @@ const deserializeAws_restJson1CurrentMetricResults = (output, context) => {
13398
14347
  });
13399
14348
  return retVal;
13400
14349
  };
14350
+ const deserializeAws_restJson1DateReference = (output, context) => {
14351
+ return {
14352
+ Name: (0, smithy_client_1.expectString)(output.Name),
14353
+ Value: (0, smithy_client_1.expectString)(output.Value),
14354
+ };
14355
+ };
13401
14356
  const deserializeAws_restJson1DefaultVocabulary = (output, context) => {
13402
14357
  return {
13403
14358
  InstanceId: (0, smithy_client_1.expectString)(output.InstanceId),
@@ -13425,6 +14380,12 @@ const deserializeAws_restJson1Dimensions = (output, context) => {
13425
14380
  : undefined,
13426
14381
  };
13427
14382
  };
14383
+ const deserializeAws_restJson1EmailReference = (output, context) => {
14384
+ return {
14385
+ Name: (0, smithy_client_1.expectString)(output.Name),
14386
+ Value: (0, smithy_client_1.expectString)(output.Value),
14387
+ };
14388
+ };
13428
14389
  const deserializeAws_restJson1EncryptionConfig = (output, context) => {
13429
14390
  return {
13430
14391
  EncryptionType: (0, smithy_client_1.expectString)(output.EncryptionType),
@@ -13474,6 +14435,12 @@ const deserializeAws_restJson1HierarchyGroupSummaryList = (output, context) => {
13474
14435
  });
13475
14436
  return retVal;
13476
14437
  };
14438
+ const deserializeAws_restJson1HierarchyGroupSummaryReference = (output, context) => {
14439
+ return {
14440
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
14441
+ Id: (0, smithy_client_1.expectString)(output.Id),
14442
+ };
14443
+ };
13477
14444
  const deserializeAws_restJson1HierarchyLevel = (output, context) => {
13478
14445
  return {
13479
14446
  Arn: (0, smithy_client_1.expectString)(output.Arn),
@@ -13500,6 +14467,25 @@ const deserializeAws_restJson1HierarchyPath = (output, context) => {
13500
14467
  : undefined,
13501
14468
  };
13502
14469
  };
14470
+ const deserializeAws_restJson1HierarchyPathReference = (output, context) => {
14471
+ return {
14472
+ LevelFive: output.LevelFive !== undefined && output.LevelFive !== null
14473
+ ? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelFive, context)
14474
+ : undefined,
14475
+ LevelFour: output.LevelFour !== undefined && output.LevelFour !== null
14476
+ ? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelFour, context)
14477
+ : undefined,
14478
+ LevelOne: output.LevelOne !== undefined && output.LevelOne !== null
14479
+ ? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelOne, context)
14480
+ : undefined,
14481
+ LevelThree: output.LevelThree !== undefined && output.LevelThree !== null
14482
+ ? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelThree, context)
14483
+ : undefined,
14484
+ LevelTwo: output.LevelTwo !== undefined && output.LevelTwo !== null
14485
+ ? deserializeAws_restJson1HierarchyGroupSummaryReference(output.LevelTwo, context)
14486
+ : undefined,
14487
+ };
14488
+ };
13503
14489
  const deserializeAws_restJson1HierarchyStructure = (output, context) => {
13504
14490
  return {
13505
14491
  LevelFive: output.LevelFive !== undefined && output.LevelFive !== null
@@ -13731,6 +14717,24 @@ const deserializeAws_restJson1IntegrationAssociationSummaryList = (output, conte
13731
14717
  });
13732
14718
  return retVal;
13733
14719
  };
14720
+ const deserializeAws_restJson1InvisibleFieldInfo = (output, context) => {
14721
+ return {
14722
+ Id: output.Id !== undefined && output.Id !== null
14723
+ ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
14724
+ : undefined,
14725
+ };
14726
+ };
14727
+ const deserializeAws_restJson1InvisibleTaskTemplateFields = (output, context) => {
14728
+ const retVal = (output || [])
14729
+ .filter((e) => e != null)
14730
+ .map((entry) => {
14731
+ if (entry === null) {
14732
+ return null;
14733
+ }
14734
+ return deserializeAws_restJson1InvisibleFieldInfo(entry, context);
14735
+ });
14736
+ return retVal;
14737
+ };
13734
14738
  const deserializeAws_restJson1KinesisFirehoseConfig = (output, context) => {
13735
14739
  return {
13736
14740
  FirehoseArn: (0, smithy_client_1.expectString)(output.FirehoseArn),
@@ -13831,6 +14835,12 @@ const deserializeAws_restJson1MediaConcurrency = (output, context) => {
13831
14835
  Concurrency: (0, smithy_client_1.expectInt32)(output.Concurrency),
13832
14836
  };
13833
14837
  };
14838
+ const deserializeAws_restJson1NumberReference = (output, context) => {
14839
+ return {
14840
+ Name: (0, smithy_client_1.expectString)(output.Name),
14841
+ Value: (0, smithy_client_1.expectString)(output.Value),
14842
+ };
14843
+ };
13834
14844
  const deserializeAws_restJson1OriginsList = (output, context) => {
13835
14845
  const retVal = (output || [])
13836
14846
  .filter((e) => e != null)
@@ -13925,6 +14935,24 @@ const deserializeAws_restJson1PromptSummaryList = (output, context) => {
13925
14935
  });
13926
14936
  return retVal;
13927
14937
  };
14938
+ const deserializeAws_restJson1PropertyValidationExceptionProperty = (output, context) => {
14939
+ return {
14940
+ Message: (0, smithy_client_1.expectString)(output.Message),
14941
+ PropertyPath: (0, smithy_client_1.expectString)(output.PropertyPath),
14942
+ Reason: (0, smithy_client_1.expectString)(output.Reason),
14943
+ };
14944
+ };
14945
+ const deserializeAws_restJson1PropertyValidationExceptionPropertyList = (output, context) => {
14946
+ const retVal = (output || [])
14947
+ .filter((e) => e != null)
14948
+ .map((entry) => {
14949
+ if (entry === null) {
14950
+ return null;
14951
+ }
14952
+ return deserializeAws_restJson1PropertyValidationExceptionProperty(entry, context);
14953
+ });
14954
+ return retVal;
14955
+ };
13928
14956
  const deserializeAws_restJson1Queue = (output, context) => {
13929
14957
  return {
13930
14958
  Description: (0, smithy_client_1.expectString)(output.Description),
@@ -14028,12 +15056,50 @@ const deserializeAws_restJson1QuickConnectSummaryList = (output, context) => {
14028
15056
  });
14029
15057
  return retVal;
14030
15058
  };
15059
+ const deserializeAws_restJson1ReadOnlyFieldInfo = (output, context) => {
15060
+ return {
15061
+ Id: output.Id !== undefined && output.Id !== null
15062
+ ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
15063
+ : undefined,
15064
+ };
15065
+ };
15066
+ const deserializeAws_restJson1ReadOnlyTaskTemplateFields = (output, context) => {
15067
+ const retVal = (output || [])
15068
+ .filter((e) => e != null)
15069
+ .map((entry) => {
15070
+ if (entry === null) {
15071
+ return null;
15072
+ }
15073
+ return deserializeAws_restJson1ReadOnlyFieldInfo(entry, context);
15074
+ });
15075
+ return retVal;
15076
+ };
14031
15077
  const deserializeAws_restJson1ReferenceSummary = (output, context) => {
14032
15078
  if (output.Attachment !== undefined && output.Attachment !== null) {
14033
15079
  return {
14034
15080
  Attachment: deserializeAws_restJson1AttachmentReference(output.Attachment, context),
14035
15081
  };
14036
15082
  }
15083
+ if (output.Date !== undefined && output.Date !== null) {
15084
+ return {
15085
+ Date: deserializeAws_restJson1DateReference(output.Date, context),
15086
+ };
15087
+ }
15088
+ if (output.Email !== undefined && output.Email !== null) {
15089
+ return {
15090
+ Email: deserializeAws_restJson1EmailReference(output.Email, context),
15091
+ };
15092
+ }
15093
+ if (output.Number !== undefined && output.Number !== null) {
15094
+ return {
15095
+ Number: deserializeAws_restJson1NumberReference(output.Number, context),
15096
+ };
15097
+ }
15098
+ if (output.String !== undefined && output.String !== null) {
15099
+ return {
15100
+ String: deserializeAws_restJson1StringReference(output.String, context),
15101
+ };
15102
+ }
14037
15103
  if (output.Url !== undefined && output.Url !== null) {
14038
15104
  return {
14039
15105
  Url: deserializeAws_restJson1UrlReference(output.Url, context),
@@ -14052,6 +15118,24 @@ const deserializeAws_restJson1ReferenceSummaryList = (output, context) => {
14052
15118
  });
14053
15119
  return retVal;
14054
15120
  };
15121
+ const deserializeAws_restJson1RequiredFieldInfo = (output, context) => {
15122
+ return {
15123
+ Id: output.Id !== undefined && output.Id !== null
15124
+ ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
15125
+ : undefined,
15126
+ };
15127
+ };
15128
+ const deserializeAws_restJson1RequiredTaskTemplateFields = (output, context) => {
15129
+ const retVal = (output || [])
15130
+ .filter((e) => e != null)
15131
+ .map((entry) => {
15132
+ if (entry === null) {
15133
+ return null;
15134
+ }
15135
+ return deserializeAws_restJson1RequiredFieldInfo(entry, context);
15136
+ });
15137
+ return retVal;
15138
+ };
14055
15139
  const deserializeAws_restJson1RoutingProfile = (output, context) => {
14056
15140
  return {
14057
15141
  DefaultOutboundQueueId: (0, smithy_client_1.expectString)(output.DefaultOutboundQueueId),
@@ -14089,6 +15173,12 @@ const deserializeAws_restJson1RoutingProfileQueueConfigSummaryList = (output, co
14089
15173
  });
14090
15174
  return retVal;
14091
15175
  };
15176
+ const deserializeAws_restJson1RoutingProfileReference = (output, context) => {
15177
+ return {
15178
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
15179
+ Id: (0, smithy_client_1.expectString)(output.Id),
15180
+ };
15181
+ };
14092
15182
  const deserializeAws_restJson1RoutingProfileSummary = (output, context) => {
14093
15183
  return {
14094
15184
  Arn: (0, smithy_client_1.expectString)(output.Arn),
@@ -14177,6 +15267,23 @@ const deserializeAws_restJson1SecurityProfileSummaryList = (output, context) =>
14177
15267
  });
14178
15268
  return retVal;
14179
15269
  };
15270
+ const deserializeAws_restJson1SingleSelectOptions = (output, context) => {
15271
+ const retVal = (output || [])
15272
+ .filter((e) => e != null)
15273
+ .map((entry) => {
15274
+ if (entry === null) {
15275
+ return null;
15276
+ }
15277
+ return (0, smithy_client_1.expectString)(entry);
15278
+ });
15279
+ return retVal;
15280
+ };
15281
+ const deserializeAws_restJson1StringReference = (output, context) => {
15282
+ return {
15283
+ Name: (0, smithy_client_1.expectString)(output.Name),
15284
+ Value: (0, smithy_client_1.expectString)(output.Value),
15285
+ };
15286
+ };
14180
15287
  const deserializeAws_restJson1TagMap = (output, context) => {
14181
15288
  return Object.entries(output).reduce((acc, [key, value]) => {
14182
15289
  if (value === null) {
@@ -14188,6 +15295,99 @@ const deserializeAws_restJson1TagMap = (output, context) => {
14188
15295
  };
14189
15296
  }, {});
14190
15297
  };
15298
+ const deserializeAws_restJson1TaskTemplateConstraints = (output, context) => {
15299
+ return {
15300
+ InvisibleFields: output.InvisibleFields !== undefined && output.InvisibleFields !== null
15301
+ ? deserializeAws_restJson1InvisibleTaskTemplateFields(output.InvisibleFields, context)
15302
+ : undefined,
15303
+ ReadOnlyFields: output.ReadOnlyFields !== undefined && output.ReadOnlyFields !== null
15304
+ ? deserializeAws_restJson1ReadOnlyTaskTemplateFields(output.ReadOnlyFields, context)
15305
+ : undefined,
15306
+ RequiredFields: output.RequiredFields !== undefined && output.RequiredFields !== null
15307
+ ? deserializeAws_restJson1RequiredTaskTemplateFields(output.RequiredFields, context)
15308
+ : undefined,
15309
+ };
15310
+ };
15311
+ const deserializeAws_restJson1TaskTemplateDefaultFieldValue = (output, context) => {
15312
+ return {
15313
+ DefaultValue: (0, smithy_client_1.expectString)(output.DefaultValue),
15314
+ Id: output.Id !== undefined && output.Id !== null
15315
+ ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
15316
+ : undefined,
15317
+ };
15318
+ };
15319
+ const deserializeAws_restJson1TaskTemplateDefaultFieldValueList = (output, context) => {
15320
+ const retVal = (output || [])
15321
+ .filter((e) => e != null)
15322
+ .map((entry) => {
15323
+ if (entry === null) {
15324
+ return null;
15325
+ }
15326
+ return deserializeAws_restJson1TaskTemplateDefaultFieldValue(entry, context);
15327
+ });
15328
+ return retVal;
15329
+ };
15330
+ const deserializeAws_restJson1TaskTemplateDefaults = (output, context) => {
15331
+ return {
15332
+ DefaultFieldValues: output.DefaultFieldValues !== undefined && output.DefaultFieldValues !== null
15333
+ ? deserializeAws_restJson1TaskTemplateDefaultFieldValueList(output.DefaultFieldValues, context)
15334
+ : undefined,
15335
+ };
15336
+ };
15337
+ const deserializeAws_restJson1TaskTemplateField = (output, context) => {
15338
+ return {
15339
+ Description: (0, smithy_client_1.expectString)(output.Description),
15340
+ Id: output.Id !== undefined && output.Id !== null
15341
+ ? deserializeAws_restJson1TaskTemplateFieldIdentifier(output.Id, context)
15342
+ : undefined,
15343
+ SingleSelectOptions: output.SingleSelectOptions !== undefined && output.SingleSelectOptions !== null
15344
+ ? deserializeAws_restJson1SingleSelectOptions(output.SingleSelectOptions, context)
15345
+ : undefined,
15346
+ Type: (0, smithy_client_1.expectString)(output.Type),
15347
+ };
15348
+ };
15349
+ const deserializeAws_restJson1TaskTemplateFieldIdentifier = (output, context) => {
15350
+ return {
15351
+ Name: (0, smithy_client_1.expectString)(output.Name),
15352
+ };
15353
+ };
15354
+ const deserializeAws_restJson1TaskTemplateFields = (output, context) => {
15355
+ const retVal = (output || [])
15356
+ .filter((e) => e != null)
15357
+ .map((entry) => {
15358
+ if (entry === null) {
15359
+ return null;
15360
+ }
15361
+ return deserializeAws_restJson1TaskTemplateField(entry, context);
15362
+ });
15363
+ return retVal;
15364
+ };
15365
+ const deserializeAws_restJson1TaskTemplateList = (output, context) => {
15366
+ const retVal = (output || [])
15367
+ .filter((e) => e != null)
15368
+ .map((entry) => {
15369
+ if (entry === null) {
15370
+ return null;
15371
+ }
15372
+ return deserializeAws_restJson1TaskTemplateMetadata(entry, context);
15373
+ });
15374
+ return retVal;
15375
+ };
15376
+ const deserializeAws_restJson1TaskTemplateMetadata = (output, context) => {
15377
+ return {
15378
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
15379
+ CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
15380
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
15381
+ : undefined,
15382
+ Description: (0, smithy_client_1.expectString)(output.Description),
15383
+ Id: (0, smithy_client_1.expectString)(output.Id),
15384
+ LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
15385
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
15386
+ : undefined,
15387
+ Name: (0, smithy_client_1.expectString)(output.Name),
15388
+ Status: (0, smithy_client_1.expectString)(output.Status),
15389
+ };
15390
+ };
14191
15391
  const deserializeAws_restJson1Threshold = (output, context) => {
14192
15392
  return {
14193
15393
  Comparison: (0, smithy_client_1.expectString)(output.Comparison),
@@ -14240,6 +15440,45 @@ const deserializeAws_restJson1User = (output, context) => {
14240
15440
  Username: (0, smithy_client_1.expectString)(output.Username),
14241
15441
  };
14242
15442
  };
15443
+ const deserializeAws_restJson1UserData = (output, context) => {
15444
+ return {
15445
+ ActiveSlotsByChannel: output.ActiveSlotsByChannel !== undefined && output.ActiveSlotsByChannel !== null
15446
+ ? deserializeAws_restJson1ChannelToCountMap(output.ActiveSlotsByChannel, context)
15447
+ : undefined,
15448
+ AvailableSlotsByChannel: output.AvailableSlotsByChannel !== undefined && output.AvailableSlotsByChannel !== null
15449
+ ? deserializeAws_restJson1ChannelToCountMap(output.AvailableSlotsByChannel, context)
15450
+ : undefined,
15451
+ Contacts: output.Contacts !== undefined && output.Contacts !== null
15452
+ ? deserializeAws_restJson1AgentContactReferenceList(output.Contacts, context)
15453
+ : undefined,
15454
+ HierarchyPath: output.HierarchyPath !== undefined && output.HierarchyPath !== null
15455
+ ? deserializeAws_restJson1HierarchyPathReference(output.HierarchyPath, context)
15456
+ : undefined,
15457
+ MaxSlotsByChannel: output.MaxSlotsByChannel !== undefined && output.MaxSlotsByChannel !== null
15458
+ ? deserializeAws_restJson1ChannelToCountMap(output.MaxSlotsByChannel, context)
15459
+ : undefined,
15460
+ RoutingProfile: output.RoutingProfile !== undefined && output.RoutingProfile !== null
15461
+ ? deserializeAws_restJson1RoutingProfileReference(output.RoutingProfile, context)
15462
+ : undefined,
15463
+ Status: output.Status !== undefined && output.Status !== null
15464
+ ? deserializeAws_restJson1AgentStatusReference(output.Status, context)
15465
+ : undefined,
15466
+ User: output.User !== undefined && output.User !== null
15467
+ ? deserializeAws_restJson1UserReference(output.User, context)
15468
+ : undefined,
15469
+ };
15470
+ };
15471
+ const deserializeAws_restJson1UserDataList = (output, context) => {
15472
+ const retVal = (output || [])
15473
+ .filter((e) => e != null)
15474
+ .map((entry) => {
15475
+ if (entry === null) {
15476
+ return null;
15477
+ }
15478
+ return deserializeAws_restJson1UserData(entry, context);
15479
+ });
15480
+ return retVal;
15481
+ };
14243
15482
  const deserializeAws_restJson1UserIdentityInfo = (output, context) => {
14244
15483
  return {
14245
15484
  Email: (0, smithy_client_1.expectString)(output.Email),
@@ -14267,6 +15506,12 @@ const deserializeAws_restJson1UserQuickConnectConfig = (output, context) => {
14267
15506
  UserId: (0, smithy_client_1.expectString)(output.UserId),
14268
15507
  };
14269
15508
  };
15509
+ const deserializeAws_restJson1UserReference = (output, context) => {
15510
+ return {
15511
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
15512
+ Id: (0, smithy_client_1.expectString)(output.Id),
15513
+ };
15514
+ };
14270
15515
  const deserializeAws_restJson1UserSearchSummary = (output, context) => {
14271
15516
  return {
14272
15517
  Arn: (0, smithy_client_1.expectString)(output.Arn),