@aws-sdk/client-connect 3.41.0 → 3.46.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 (196) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +2 -4
  3. package/dist-cjs/Connect.js +180 -0
  4. package/dist-cjs/commands/CreateContactFlowModuleCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteContactFlowCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteContactFlowModuleCommand.js +36 -0
  7. package/dist-cjs/commands/DescribeContactCommand.js +36 -0
  8. package/dist-cjs/commands/DescribeContactFlowModuleCommand.js +36 -0
  9. package/dist-cjs/commands/ListContactFlowModulesCommand.js +36 -0
  10. package/dist-cjs/commands/ListContactReferencesCommand.js +36 -0
  11. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  12. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  13. package/dist-cjs/commands/UpdateAgentStatusCommand.js +2 -2
  14. package/dist-cjs/commands/UpdateContactAttributesCommand.js +3 -3
  15. package/dist-cjs/commands/UpdateContactCommand.js +36 -0
  16. package/dist-cjs/commands/UpdateContactFlowContentCommand.js +2 -2
  17. package/dist-cjs/commands/UpdateContactFlowMetadataCommand.js +36 -0
  18. package/dist-cjs/commands/UpdateContactFlowModuleContentCommand.js +36 -0
  19. package/dist-cjs/commands/UpdateContactFlowModuleMetadataCommand.js +36 -0
  20. package/dist-cjs/commands/UpdateContactFlowNameCommand.js +2 -2
  21. package/dist-cjs/commands/UpdateContactScheduleCommand.js +36 -0
  22. package/dist-cjs/commands/UpdateHoursOfOperationCommand.js +2 -2
  23. package/dist-cjs/commands/UpdateInstanceAttributeCommand.js +2 -2
  24. package/dist-cjs/commands/UpdateInstanceStorageConfigCommand.js +2 -2
  25. package/dist-cjs/commands/UpdateQueueHoursOfOperationCommand.js +2 -2
  26. package/dist-cjs/commands/UpdateQueueMaxContactsCommand.js +2 -2
  27. package/dist-cjs/commands/UpdateQueueNameCommand.js +2 -2
  28. package/dist-cjs/commands/UpdateQueueOutboundCallerConfigCommand.js +2 -2
  29. package/dist-cjs/commands/UpdateQueueStatusCommand.js +2 -2
  30. package/dist-cjs/commands/UpdateQuickConnectConfigCommand.js +2 -2
  31. package/dist-cjs/commands/UpdateQuickConnectNameCommand.js +2 -2
  32. package/dist-cjs/commands/UpdateRoutingProfileConcurrencyCommand.js +2 -2
  33. package/dist-cjs/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.js +2 -2
  34. package/dist-cjs/commands/UpdateRoutingProfileNameCommand.js +2 -2
  35. package/dist-cjs/commands/UpdateRoutingProfileQueuesCommand.js +2 -2
  36. package/dist-cjs/commands/UpdateSecurityProfileCommand.js +2 -2
  37. package/dist-cjs/commands/UpdateUserHierarchyCommand.js +2 -2
  38. package/dist-cjs/commands/UpdateUserHierarchyGroupNameCommand.js +2 -2
  39. package/dist-cjs/commands/UpdateUserHierarchyStructureCommand.js +2 -2
  40. package/dist-cjs/commands/UpdateUserIdentityInfoCommand.js +2 -2
  41. package/dist-cjs/commands/index.js +12 -0
  42. package/dist-cjs/endpoints.js +1 -0
  43. package/dist-cjs/models/models_0.js +193 -178
  44. package/dist-cjs/models/models_1.js +223 -1
  45. package/dist-cjs/pagination/ListContactFlowModulesPaginator.js +35 -0
  46. package/dist-cjs/pagination/ListContactReferencesPaginator.js +34 -0
  47. package/dist-cjs/pagination/index.js +2 -0
  48. package/dist-cjs/protocols/Aws_restJson1.js +1829 -169
  49. package/dist-cjs/runtimeConfig.js +0 -2
  50. package/dist-es/Connect.js +180 -0
  51. package/dist-es/commands/CreateContactFlowModuleCommand.js +39 -0
  52. package/dist-es/commands/DeleteContactFlowCommand.js +39 -0
  53. package/dist-es/commands/DeleteContactFlowModuleCommand.js +39 -0
  54. package/dist-es/commands/DescribeContactCommand.js +39 -0
  55. package/dist-es/commands/DescribeContactFlowModuleCommand.js +39 -0
  56. package/dist-es/commands/ListContactFlowModulesCommand.js +39 -0
  57. package/dist-es/commands/ListContactReferencesCommand.js +39 -0
  58. package/dist-es/commands/TagResourceCommand.js +1 -1
  59. package/dist-es/commands/UntagResourceCommand.js +1 -1
  60. package/dist-es/commands/UpdateAgentStatusCommand.js +1 -1
  61. package/dist-es/commands/UpdateContactAttributesCommand.js +1 -1
  62. package/dist-es/commands/UpdateContactCommand.js +39 -0
  63. package/dist-es/commands/UpdateContactFlowContentCommand.js +1 -1
  64. package/dist-es/commands/UpdateContactFlowMetadataCommand.js +39 -0
  65. package/dist-es/commands/UpdateContactFlowModuleContentCommand.js +39 -0
  66. package/dist-es/commands/UpdateContactFlowModuleMetadataCommand.js +39 -0
  67. package/dist-es/commands/UpdateContactFlowNameCommand.js +1 -1
  68. package/dist-es/commands/UpdateContactScheduleCommand.js +39 -0
  69. package/dist-es/commands/UpdateHoursOfOperationCommand.js +1 -1
  70. package/dist-es/commands/UpdateInstanceAttributeCommand.js +1 -1
  71. package/dist-es/commands/UpdateInstanceStorageConfigCommand.js +1 -1
  72. package/dist-es/commands/UpdateQueueHoursOfOperationCommand.js +1 -1
  73. package/dist-es/commands/UpdateQueueMaxContactsCommand.js +1 -1
  74. package/dist-es/commands/UpdateQueueNameCommand.js +1 -1
  75. package/dist-es/commands/UpdateQueueOutboundCallerConfigCommand.js +1 -1
  76. package/dist-es/commands/UpdateQueueStatusCommand.js +1 -1
  77. package/dist-es/commands/UpdateQuickConnectConfigCommand.js +1 -1
  78. package/dist-es/commands/UpdateQuickConnectNameCommand.js +1 -1
  79. package/dist-es/commands/UpdateRoutingProfileConcurrencyCommand.js +1 -1
  80. package/dist-es/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.js +1 -1
  81. package/dist-es/commands/UpdateRoutingProfileNameCommand.js +1 -1
  82. package/dist-es/commands/UpdateRoutingProfileQueuesCommand.js +1 -1
  83. package/dist-es/commands/UpdateSecurityProfileCommand.js +1 -1
  84. package/dist-es/commands/UpdateUserHierarchyCommand.js +1 -1
  85. package/dist-es/commands/UpdateUserHierarchyGroupNameCommand.js +1 -1
  86. package/dist-es/commands/UpdateUserHierarchyStructureCommand.js +1 -1
  87. package/dist-es/commands/UpdateUserIdentityInfoCommand.js +1 -1
  88. package/dist-es/commands/index.js +12 -0
  89. package/dist-es/endpoints.js +1 -0
  90. package/dist-es/models/models_0.js +143 -116
  91. package/dist-es/models/models_1.js +148 -0
  92. package/dist-es/pagination/ListContactFlowModulesPaginator.js +74 -0
  93. package/dist-es/pagination/ListContactReferencesPaginator.js +73 -0
  94. package/dist-es/pagination/index.js +2 -0
  95. package/dist-es/protocols/Aws_restJson1.js +2179 -332
  96. package/dist-es/runtimeConfig.js +0 -2
  97. package/dist-types/Connect.d.ts +112 -14
  98. package/dist-types/ConnectClient.d.ts +17 -7
  99. package/dist-types/commands/CreateContactFlowModuleCommand.d.ts +35 -0
  100. package/dist-types/commands/CreateHoursOfOperationCommand.d.ts +2 -1
  101. package/dist-types/commands/CreateIntegrationAssociationCommand.d.ts +1 -1
  102. package/dist-types/commands/DeleteContactFlowCommand.d.ts +35 -0
  103. package/dist-types/commands/DeleteContactFlowModuleCommand.d.ts +35 -0
  104. package/dist-types/commands/DeleteHoursOfOperationCommand.d.ts +2 -1
  105. package/dist-types/commands/DeleteIntegrationAssociationCommand.d.ts +1 -1
  106. package/dist-types/commands/DescribeContactCommand.d.ts +40 -0
  107. package/dist-types/commands/DescribeContactFlowModuleCommand.d.ts +35 -0
  108. package/dist-types/commands/DescribeHoursOfOperationCommand.d.ts +2 -1
  109. package/dist-types/commands/ListContactFlowModulesCommand.d.ts +35 -0
  110. package/dist-types/commands/ListContactReferencesCommand.d.ts +37 -0
  111. package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +1 -1
  112. package/dist-types/commands/ListSecurityProfilesCommand.d.ts +1 -2
  113. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  114. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  115. package/dist-types/commands/UpdateAgentStatusCommand.d.ts +1 -1
  116. package/dist-types/commands/UpdateContactAttributesCommand.d.ts +1 -1
  117. package/dist-types/commands/UpdateContactCommand.d.ts +41 -0
  118. package/dist-types/commands/UpdateContactFlowContentCommand.d.ts +1 -1
  119. package/dist-types/commands/UpdateContactFlowMetadataCommand.d.ts +35 -0
  120. package/dist-types/commands/UpdateContactFlowModuleContentCommand.d.ts +35 -0
  121. package/dist-types/commands/UpdateContactFlowModuleMetadataCommand.d.ts +35 -0
  122. package/dist-types/commands/UpdateContactFlowNameCommand.d.ts +1 -1
  123. package/dist-types/commands/UpdateContactScheduleCommand.d.ts +35 -0
  124. package/dist-types/commands/UpdateHoursOfOperationCommand.d.ts +3 -2
  125. package/dist-types/commands/UpdateInstanceAttributeCommand.d.ts +1 -1
  126. package/dist-types/commands/UpdateInstanceStorageConfigCommand.d.ts +1 -1
  127. package/dist-types/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  128. package/dist-types/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  129. package/dist-types/commands/UpdateQueueNameCommand.d.ts +1 -1
  130. package/dist-types/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +1 -1
  131. package/dist-types/commands/UpdateQueueStatusCommand.d.ts +1 -1
  132. package/dist-types/commands/UpdateQuickConnectConfigCommand.d.ts +1 -1
  133. package/dist-types/commands/UpdateQuickConnectNameCommand.d.ts +1 -1
  134. package/dist-types/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
  135. package/dist-types/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.d.ts +1 -1
  136. package/dist-types/commands/UpdateRoutingProfileNameCommand.d.ts +1 -1
  137. package/dist-types/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
  138. package/dist-types/commands/UpdateSecurityProfileCommand.d.ts +1 -1
  139. package/dist-types/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  140. package/dist-types/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  141. package/dist-types/commands/UpdateUserHierarchyStructureCommand.d.ts +1 -1
  142. package/dist-types/commands/UpdateUserIdentityInfoCommand.d.ts +1 -1
  143. package/dist-types/commands/index.d.ts +12 -0
  144. package/dist-types/models/models_0.d.ts +592 -643
  145. package/dist-types/models/models_1.d.ts +771 -1
  146. package/dist-types/pagination/ListContactFlowModulesPaginator.d.ts +4 -0
  147. package/dist-types/pagination/ListContactReferencesPaginator.d.ts +4 -0
  148. package/dist-types/pagination/index.d.ts +2 -0
  149. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  150. package/dist-types/ts3.4/Connect.d.ts +60 -0
  151. package/dist-types/ts3.4/ConnectClient.d.ts +14 -2
  152. package/dist-types/ts3.4/commands/CreateContactFlowModuleCommand.d.ts +17 -0
  153. package/dist-types/ts3.4/commands/DeleteContactFlowCommand.d.ts +17 -0
  154. package/dist-types/ts3.4/commands/DeleteContactFlowModuleCommand.d.ts +17 -0
  155. package/dist-types/ts3.4/commands/DescribeContactCommand.d.ts +17 -0
  156. package/dist-types/ts3.4/commands/DescribeContactFlowModuleCommand.d.ts +17 -0
  157. package/dist-types/ts3.4/commands/ListContactFlowModulesCommand.d.ts +17 -0
  158. package/dist-types/ts3.4/commands/ListContactReferencesCommand.d.ts +17 -0
  159. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  160. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  161. package/dist-types/ts3.4/commands/UpdateAgentStatusCommand.d.ts +1 -1
  162. package/dist-types/ts3.4/commands/UpdateContactAttributesCommand.d.ts +1 -1
  163. package/dist-types/ts3.4/commands/UpdateContactCommand.d.ts +17 -0
  164. package/dist-types/ts3.4/commands/UpdateContactFlowContentCommand.d.ts +1 -1
  165. package/dist-types/ts3.4/commands/UpdateContactFlowMetadataCommand.d.ts +17 -0
  166. package/dist-types/ts3.4/commands/UpdateContactFlowModuleContentCommand.d.ts +17 -0
  167. package/dist-types/ts3.4/commands/UpdateContactFlowModuleMetadataCommand.d.ts +17 -0
  168. package/dist-types/ts3.4/commands/UpdateContactFlowNameCommand.d.ts +1 -1
  169. package/dist-types/ts3.4/commands/UpdateContactScheduleCommand.d.ts +17 -0
  170. package/dist-types/ts3.4/commands/UpdateHoursOfOperationCommand.d.ts +1 -1
  171. package/dist-types/ts3.4/commands/UpdateInstanceAttributeCommand.d.ts +1 -1
  172. package/dist-types/ts3.4/commands/UpdateInstanceStorageConfigCommand.d.ts +1 -1
  173. package/dist-types/ts3.4/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  174. package/dist-types/ts3.4/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  175. package/dist-types/ts3.4/commands/UpdateQueueNameCommand.d.ts +1 -1
  176. package/dist-types/ts3.4/commands/UpdateQueueOutboundCallerConfigCommand.d.ts +1 -1
  177. package/dist-types/ts3.4/commands/UpdateQueueStatusCommand.d.ts +1 -1
  178. package/dist-types/ts3.4/commands/UpdateQuickConnectConfigCommand.d.ts +1 -1
  179. package/dist-types/ts3.4/commands/UpdateQuickConnectNameCommand.d.ts +1 -1
  180. package/dist-types/ts3.4/commands/UpdateRoutingProfileConcurrencyCommand.d.ts +1 -1
  181. package/dist-types/ts3.4/commands/UpdateRoutingProfileDefaultOutboundQueueCommand.d.ts +1 -1
  182. package/dist-types/ts3.4/commands/UpdateRoutingProfileNameCommand.d.ts +1 -1
  183. package/dist-types/ts3.4/commands/UpdateRoutingProfileQueuesCommand.d.ts +1 -1
  184. package/dist-types/ts3.4/commands/UpdateSecurityProfileCommand.d.ts +1 -1
  185. package/dist-types/ts3.4/commands/UpdateUserHierarchyCommand.d.ts +1 -1
  186. package/dist-types/ts3.4/commands/UpdateUserHierarchyGroupNameCommand.d.ts +1 -1
  187. package/dist-types/ts3.4/commands/UpdateUserHierarchyStructureCommand.d.ts +1 -1
  188. package/dist-types/ts3.4/commands/UpdateUserIdentityInfoCommand.d.ts +1 -1
  189. package/dist-types/ts3.4/commands/index.d.ts +12 -0
  190. package/dist-types/ts3.4/models/models_0.d.ts +347 -359
  191. package/dist-types/ts3.4/models/models_1.d.ts +455 -1
  192. package/dist-types/ts3.4/pagination/ListContactFlowModulesPaginator.d.ts +4 -0
  193. package/dist-types/ts3.4/pagination/ListContactReferencesPaginator.d.ts +4 -0
  194. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  195. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  196. package/package.json +36 -43
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.serializeAws_restJson1DescribeInstanceAttributeCommand = exports.serializeAws_restJson1DescribeInstanceCommand = exports.serializeAws_restJson1DescribeHoursOfOperationCommand = exports.serializeAws_restJson1DescribeContactFlowCommand = exports.serializeAws_restJson1DescribeAgentStatusCommand = exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteUseCaseCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_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_restJson1CreateContactFlowCommand = exports.serializeAws_restJson1CreateAgentStatusCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
4
- exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = exports.serializeAws_restJson1StartChatContactCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = void 0;
5
- exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_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_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = void 0;
6
- exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = 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_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = void 0;
7
- 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_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = 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_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.serializeAws_restJson1DescribeInstanceAttributeCommand = exports.serializeAws_restJson1DescribeInstanceCommand = exports.serializeAws_restJson1DescribeHoursOfOperationCommand = exports.serializeAws_restJson1DescribeContactFlowModuleCommand = exports.serializeAws_restJson1DescribeContactFlowCommand = exports.serializeAws_restJson1DescribeContactCommand = exports.serializeAws_restJson1DescribeAgentStatusCommand = exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteUseCaseCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_restJson1DeleteContactFlowModuleCommand = exports.serializeAws_restJson1DeleteContactFlowCommand = exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateUseCaseCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateRoutingProfileCommand = exports.serializeAws_restJson1CreateQuickConnectCommand = exports.serializeAws_restJson1CreateQueueCommand = exports.serializeAws_restJson1CreateIntegrationAssociationCommand = exports.serializeAws_restJson1CreateInstanceCommand = exports.serializeAws_restJson1CreateHoursOfOperationCommand = exports.serializeAws_restJson1CreateContactFlowModuleCommand = exports.serializeAws_restJson1CreateContactFlowCommand = exports.serializeAws_restJson1CreateAgentStatusCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
4
+ exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = exports.serializeAws_restJson1StartChatContactCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = void 0;
5
+ exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = void 0;
6
+ exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = void 0;
7
+ exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = void 0;
8
+ exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = void 0;
8
9
  const protocol_http_1 = require("@aws-sdk/protocol-http");
9
10
  const smithy_client_1 = require("@aws-sdk/smithy-client");
10
11
  const uuid_1 = require("uuid");
@@ -362,6 +363,42 @@ const serializeAws_restJson1CreateContactFlowCommand = async (input, context) =>
362
363
  });
363
364
  };
364
365
  exports.serializeAws_restJson1CreateContactFlowCommand = serializeAws_restJson1CreateContactFlowCommand;
366
+ const serializeAws_restJson1CreateContactFlowModuleCommand = async (input, context) => {
367
+ var _a;
368
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
369
+ const headers = {
370
+ "content-type": "application/json",
371
+ };
372
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact-flow-modules/{InstanceId}";
373
+ if (input.InstanceId !== undefined) {
374
+ const labelValue = input.InstanceId;
375
+ if (labelValue.length <= 0) {
376
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
377
+ }
378
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
379
+ }
380
+ else {
381
+ throw new Error("No value provided for input HTTP label: InstanceId.");
382
+ }
383
+ let body;
384
+ body = JSON.stringify({
385
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
386
+ ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
387
+ ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
388
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
389
+ ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
390
+ });
391
+ return new protocol_http_1.HttpRequest({
392
+ protocol,
393
+ hostname,
394
+ port,
395
+ method: "PUT",
396
+ headers,
397
+ path: resolvedPath,
398
+ body,
399
+ });
400
+ };
401
+ exports.serializeAws_restJson1CreateContactFlowModuleCommand = serializeAws_restJson1CreateContactFlowModuleCommand;
365
402
  const serializeAws_restJson1CreateHoursOfOperationCommand = async (input, context) => {
366
403
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
367
404
  const headers = {
@@ -752,6 +789,80 @@ const serializeAws_restJson1CreateUserHierarchyGroupCommand = async (input, cont
752
789
  });
753
790
  };
754
791
  exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = serializeAws_restJson1CreateUserHierarchyGroupCommand;
792
+ const serializeAws_restJson1DeleteContactFlowCommand = async (input, context) => {
793
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
794
+ const headers = {};
795
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
796
+ "/contact-flows/{InstanceId}/{ContactFlowId}";
797
+ if (input.InstanceId !== undefined) {
798
+ const labelValue = input.InstanceId;
799
+ if (labelValue.length <= 0) {
800
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
801
+ }
802
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
803
+ }
804
+ else {
805
+ throw new Error("No value provided for input HTTP label: InstanceId.");
806
+ }
807
+ if (input.ContactFlowId !== undefined) {
808
+ const labelValue = input.ContactFlowId;
809
+ if (labelValue.length <= 0) {
810
+ throw new Error("Empty value provided for input HTTP label: ContactFlowId.");
811
+ }
812
+ resolvedPath = resolvedPath.replace("{ContactFlowId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
813
+ }
814
+ else {
815
+ throw new Error("No value provided for input HTTP label: ContactFlowId.");
816
+ }
817
+ let body;
818
+ return new protocol_http_1.HttpRequest({
819
+ protocol,
820
+ hostname,
821
+ port,
822
+ method: "DELETE",
823
+ headers,
824
+ path: resolvedPath,
825
+ body,
826
+ });
827
+ };
828
+ exports.serializeAws_restJson1DeleteContactFlowCommand = serializeAws_restJson1DeleteContactFlowCommand;
829
+ const serializeAws_restJson1DeleteContactFlowModuleCommand = async (input, context) => {
830
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
831
+ const headers = {};
832
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
833
+ "/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}";
834
+ if (input.InstanceId !== undefined) {
835
+ const labelValue = input.InstanceId;
836
+ if (labelValue.length <= 0) {
837
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
838
+ }
839
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
840
+ }
841
+ else {
842
+ throw new Error("No value provided for input HTTP label: InstanceId.");
843
+ }
844
+ if (input.ContactFlowModuleId !== undefined) {
845
+ const labelValue = input.ContactFlowModuleId;
846
+ if (labelValue.length <= 0) {
847
+ throw new Error("Empty value provided for input HTTP label: ContactFlowModuleId.");
848
+ }
849
+ resolvedPath = resolvedPath.replace("{ContactFlowModuleId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
850
+ }
851
+ else {
852
+ throw new Error("No value provided for input HTTP label: ContactFlowModuleId.");
853
+ }
854
+ let body;
855
+ return new protocol_http_1.HttpRequest({
856
+ protocol,
857
+ hostname,
858
+ port,
859
+ method: "DELETE",
860
+ headers,
861
+ path: resolvedPath,
862
+ body,
863
+ });
864
+ };
865
+ exports.serializeAws_restJson1DeleteContactFlowModuleCommand = serializeAws_restJson1DeleteContactFlowModuleCommand;
755
866
  const serializeAws_restJson1DeleteHoursOfOperationCommand = async (input, context) => {
756
867
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
757
868
  const headers = {};
@@ -1083,6 +1194,42 @@ const serializeAws_restJson1DescribeAgentStatusCommand = async (input, context)
1083
1194
  });
1084
1195
  };
1085
1196
  exports.serializeAws_restJson1DescribeAgentStatusCommand = serializeAws_restJson1DescribeAgentStatusCommand;
1197
+ const serializeAws_restJson1DescribeContactCommand = async (input, context) => {
1198
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1199
+ const headers = {};
1200
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contacts/{InstanceId}/{ContactId}";
1201
+ if (input.InstanceId !== undefined) {
1202
+ const labelValue = input.InstanceId;
1203
+ if (labelValue.length <= 0) {
1204
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
1205
+ }
1206
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1207
+ }
1208
+ else {
1209
+ throw new Error("No value provided for input HTTP label: InstanceId.");
1210
+ }
1211
+ if (input.ContactId !== undefined) {
1212
+ const labelValue = input.ContactId;
1213
+ if (labelValue.length <= 0) {
1214
+ throw new Error("Empty value provided for input HTTP label: ContactId.");
1215
+ }
1216
+ resolvedPath = resolvedPath.replace("{ContactId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1217
+ }
1218
+ else {
1219
+ throw new Error("No value provided for input HTTP label: ContactId.");
1220
+ }
1221
+ let body;
1222
+ return new protocol_http_1.HttpRequest({
1223
+ protocol,
1224
+ hostname,
1225
+ port,
1226
+ method: "GET",
1227
+ headers,
1228
+ path: resolvedPath,
1229
+ body,
1230
+ });
1231
+ };
1232
+ exports.serializeAws_restJson1DescribeContactCommand = serializeAws_restJson1DescribeContactCommand;
1086
1233
  const serializeAws_restJson1DescribeContactFlowCommand = async (input, context) => {
1087
1234
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1088
1235
  const headers = {};
@@ -1120,6 +1267,43 @@ const serializeAws_restJson1DescribeContactFlowCommand = async (input, context)
1120
1267
  });
1121
1268
  };
1122
1269
  exports.serializeAws_restJson1DescribeContactFlowCommand = serializeAws_restJson1DescribeContactFlowCommand;
1270
+ const serializeAws_restJson1DescribeContactFlowModuleCommand = async (input, context) => {
1271
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1272
+ const headers = {};
1273
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1274
+ "/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}";
1275
+ if (input.InstanceId !== undefined) {
1276
+ const labelValue = input.InstanceId;
1277
+ if (labelValue.length <= 0) {
1278
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
1279
+ }
1280
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1281
+ }
1282
+ else {
1283
+ throw new Error("No value provided for input HTTP label: InstanceId.");
1284
+ }
1285
+ if (input.ContactFlowModuleId !== undefined) {
1286
+ const labelValue = input.ContactFlowModuleId;
1287
+ if (labelValue.length <= 0) {
1288
+ throw new Error("Empty value provided for input HTTP label: ContactFlowModuleId.");
1289
+ }
1290
+ resolvedPath = resolvedPath.replace("{ContactFlowModuleId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1291
+ }
1292
+ else {
1293
+ throw new Error("No value provided for input HTTP label: ContactFlowModuleId.");
1294
+ }
1295
+ let body;
1296
+ return new protocol_http_1.HttpRequest({
1297
+ protocol,
1298
+ hostname,
1299
+ port,
1300
+ method: "GET",
1301
+ headers,
1302
+ path: resolvedPath,
1303
+ body,
1304
+ });
1305
+ };
1306
+ exports.serializeAws_restJson1DescribeContactFlowModuleCommand = serializeAws_restJson1DescribeContactFlowModuleCommand;
1123
1307
  const serializeAws_restJson1DescribeHoursOfOperationCommand = async (input, context) => {
1124
1308
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1125
1309
  const headers = {};
@@ -2044,6 +2228,39 @@ const serializeAws_restJson1ListBotsCommand = async (input, context) => {
2044
2228
  });
2045
2229
  };
2046
2230
  exports.serializeAws_restJson1ListBotsCommand = serializeAws_restJson1ListBotsCommand;
2231
+ const serializeAws_restJson1ListContactFlowModulesCommand = async (input, context) => {
2232
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2233
+ const headers = {};
2234
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
2235
+ "/contact-flow-modules-summary/{InstanceId}";
2236
+ if (input.InstanceId !== undefined) {
2237
+ const labelValue = input.InstanceId;
2238
+ if (labelValue.length <= 0) {
2239
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
2240
+ }
2241
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2242
+ }
2243
+ else {
2244
+ throw new Error("No value provided for input HTTP label: InstanceId.");
2245
+ }
2246
+ const query = {
2247
+ ...(input.NextToken !== undefined && { nextToken: input.NextToken }),
2248
+ ...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
2249
+ ...(input.ContactFlowModuleState !== undefined && { state: input.ContactFlowModuleState }),
2250
+ };
2251
+ let body;
2252
+ return new protocol_http_1.HttpRequest({
2253
+ protocol,
2254
+ hostname,
2255
+ port,
2256
+ method: "GET",
2257
+ headers,
2258
+ path: resolvedPath,
2259
+ query,
2260
+ body,
2261
+ });
2262
+ };
2263
+ exports.serializeAws_restJson1ListContactFlowModulesCommand = serializeAws_restJson1ListContactFlowModulesCommand;
2047
2264
  const serializeAws_restJson1ListContactFlowsCommand = async (input, context) => {
2048
2265
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2049
2266
  const headers = {};
@@ -2078,6 +2295,50 @@ const serializeAws_restJson1ListContactFlowsCommand = async (input, context) =>
2078
2295
  });
2079
2296
  };
2080
2297
  exports.serializeAws_restJson1ListContactFlowsCommand = serializeAws_restJson1ListContactFlowsCommand;
2298
+ const serializeAws_restJson1ListContactReferencesCommand = async (input, context) => {
2299
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2300
+ const headers = {};
2301
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
2302
+ "/contact/references/{InstanceId}/{ContactId}";
2303
+ if (input.InstanceId !== undefined) {
2304
+ const labelValue = input.InstanceId;
2305
+ if (labelValue.length <= 0) {
2306
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
2307
+ }
2308
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2309
+ }
2310
+ else {
2311
+ throw new Error("No value provided for input HTTP label: InstanceId.");
2312
+ }
2313
+ if (input.ContactId !== undefined) {
2314
+ const labelValue = input.ContactId;
2315
+ if (labelValue.length <= 0) {
2316
+ throw new Error("Empty value provided for input HTTP label: ContactId.");
2317
+ }
2318
+ resolvedPath = resolvedPath.replace("{ContactId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2319
+ }
2320
+ else {
2321
+ throw new Error("No value provided for input HTTP label: ContactId.");
2322
+ }
2323
+ const query = {
2324
+ ...(input.ReferenceTypes !== undefined && {
2325
+ referenceTypes: (input.ReferenceTypes || []).map((_entry) => _entry),
2326
+ }),
2327
+ ...(input.NextToken !== undefined && { nextToken: input.NextToken }),
2328
+ };
2329
+ let body;
2330
+ return new protocol_http_1.HttpRequest({
2331
+ protocol,
2332
+ hostname,
2333
+ port,
2334
+ method: "GET",
2335
+ headers,
2336
+ path: resolvedPath,
2337
+ query,
2338
+ body,
2339
+ });
2340
+ };
2341
+ exports.serializeAws_restJson1ListContactReferencesCommand = serializeAws_restJson1ListContactReferencesCommand;
2081
2342
  const serializeAws_restJson1ListHoursOfOperationsCommand = async (input, context) => {
2082
2343
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2083
2344
  const headers = {};
@@ -2943,6 +3204,8 @@ const serializeAws_restJson1StartTaskContactCommand = async (input, context) =>
2943
3204
  input.PreviousContactId !== null && { PreviousContactId: input.PreviousContactId }),
2944
3205
  ...(input.References !== undefined &&
2945
3206
  input.References !== null && { References: serializeAws_restJson1ContactReferences(input.References, context) }),
3207
+ ...(input.ScheduledTime !== undefined &&
3208
+ input.ScheduledTime !== null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
2946
3209
  });
2947
3210
  return new protocol_http_1.HttpRequest({
2948
3211
  protocol,
@@ -3156,6 +3419,50 @@ const serializeAws_restJson1UpdateAgentStatusCommand = async (input, context) =>
3156
3419
  });
3157
3420
  };
3158
3421
  exports.serializeAws_restJson1UpdateAgentStatusCommand = serializeAws_restJson1UpdateAgentStatusCommand;
3422
+ const serializeAws_restJson1UpdateContactCommand = async (input, context) => {
3423
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3424
+ const headers = {
3425
+ "content-type": "application/json",
3426
+ };
3427
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contacts/{InstanceId}/{ContactId}";
3428
+ if (input.InstanceId !== undefined) {
3429
+ const labelValue = input.InstanceId;
3430
+ if (labelValue.length <= 0) {
3431
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
3432
+ }
3433
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3434
+ }
3435
+ else {
3436
+ throw new Error("No value provided for input HTTP label: InstanceId.");
3437
+ }
3438
+ if (input.ContactId !== undefined) {
3439
+ const labelValue = input.ContactId;
3440
+ if (labelValue.length <= 0) {
3441
+ throw new Error("Empty value provided for input HTTP label: ContactId.");
3442
+ }
3443
+ resolvedPath = resolvedPath.replace("{ContactId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3444
+ }
3445
+ else {
3446
+ throw new Error("No value provided for input HTTP label: ContactId.");
3447
+ }
3448
+ let body;
3449
+ body = JSON.stringify({
3450
+ ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3451
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3452
+ ...(input.References !== undefined &&
3453
+ input.References !== null && { References: serializeAws_restJson1ContactReferences(input.References, context) }),
3454
+ });
3455
+ return new protocol_http_1.HttpRequest({
3456
+ protocol,
3457
+ hostname,
3458
+ port,
3459
+ method: "POST",
3460
+ headers,
3461
+ path: resolvedPath,
3462
+ body,
3463
+ });
3464
+ };
3465
+ exports.serializeAws_restJson1UpdateContactCommand = serializeAws_restJson1UpdateContactCommand;
3159
3466
  const serializeAws_restJson1UpdateContactAttributesCommand = async (input, context) => {
3160
3467
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3161
3468
  const headers = {
@@ -3223,13 +3530,13 @@ const serializeAws_restJson1UpdateContactFlowContentCommand = async (input, cont
3223
3530
  });
3224
3531
  };
3225
3532
  exports.serializeAws_restJson1UpdateContactFlowContentCommand = serializeAws_restJson1UpdateContactFlowContentCommand;
3226
- const serializeAws_restJson1UpdateContactFlowNameCommand = async (input, context) => {
3533
+ const serializeAws_restJson1UpdateContactFlowMetadataCommand = async (input, context) => {
3227
3534
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3228
3535
  const headers = {
3229
3536
  "content-type": "application/json",
3230
3537
  };
3231
3538
  let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3232
- "/contact-flows/{InstanceId}/{ContactFlowId}/name";
3539
+ "/contact-flows/{InstanceId}/{ContactFlowId}/metadata";
3233
3540
  if (input.InstanceId !== undefined) {
3234
3541
  const labelValue = input.InstanceId;
3235
3542
  if (labelValue.length <= 0) {
@@ -3252,6 +3559,8 @@ const serializeAws_restJson1UpdateContactFlowNameCommand = async (input, context
3252
3559
  }
3253
3560
  let body;
3254
3561
  body = JSON.stringify({
3562
+ ...(input.ContactFlowState !== undefined &&
3563
+ input.ContactFlowState !== null && { ContactFlowState: input.ContactFlowState }),
3255
3564
  ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3256
3565
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3257
3566
  });
@@ -3265,7 +3574,160 @@ const serializeAws_restJson1UpdateContactFlowNameCommand = async (input, context
3265
3574
  body,
3266
3575
  });
3267
3576
  };
3268
- exports.serializeAws_restJson1UpdateContactFlowNameCommand = serializeAws_restJson1UpdateContactFlowNameCommand;
3577
+ exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = serializeAws_restJson1UpdateContactFlowMetadataCommand;
3578
+ const serializeAws_restJson1UpdateContactFlowModuleContentCommand = async (input, context) => {
3579
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3580
+ const headers = {
3581
+ "content-type": "application/json",
3582
+ };
3583
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3584
+ "/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}/content";
3585
+ if (input.InstanceId !== undefined) {
3586
+ const labelValue = input.InstanceId;
3587
+ if (labelValue.length <= 0) {
3588
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
3589
+ }
3590
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3591
+ }
3592
+ else {
3593
+ throw new Error("No value provided for input HTTP label: InstanceId.");
3594
+ }
3595
+ if (input.ContactFlowModuleId !== undefined) {
3596
+ const labelValue = input.ContactFlowModuleId;
3597
+ if (labelValue.length <= 0) {
3598
+ throw new Error("Empty value provided for input HTTP label: ContactFlowModuleId.");
3599
+ }
3600
+ resolvedPath = resolvedPath.replace("{ContactFlowModuleId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3601
+ }
3602
+ else {
3603
+ throw new Error("No value provided for input HTTP label: ContactFlowModuleId.");
3604
+ }
3605
+ let body;
3606
+ body = JSON.stringify({
3607
+ ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
3608
+ });
3609
+ return new protocol_http_1.HttpRequest({
3610
+ protocol,
3611
+ hostname,
3612
+ port,
3613
+ method: "POST",
3614
+ headers,
3615
+ path: resolvedPath,
3616
+ body,
3617
+ });
3618
+ };
3619
+ exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = serializeAws_restJson1UpdateContactFlowModuleContentCommand;
3620
+ const serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = async (input, context) => {
3621
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3622
+ const headers = {
3623
+ "content-type": "application/json",
3624
+ };
3625
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3626
+ "/contact-flow-modules/{InstanceId}/{ContactFlowModuleId}/metadata";
3627
+ if (input.InstanceId !== undefined) {
3628
+ const labelValue = input.InstanceId;
3629
+ if (labelValue.length <= 0) {
3630
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
3631
+ }
3632
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3633
+ }
3634
+ else {
3635
+ throw new Error("No value provided for input HTTP label: InstanceId.");
3636
+ }
3637
+ if (input.ContactFlowModuleId !== undefined) {
3638
+ const labelValue = input.ContactFlowModuleId;
3639
+ if (labelValue.length <= 0) {
3640
+ throw new Error("Empty value provided for input HTTP label: ContactFlowModuleId.");
3641
+ }
3642
+ resolvedPath = resolvedPath.replace("{ContactFlowModuleId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3643
+ }
3644
+ else {
3645
+ throw new Error("No value provided for input HTTP label: ContactFlowModuleId.");
3646
+ }
3647
+ let body;
3648
+ body = JSON.stringify({
3649
+ ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3650
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3651
+ ...(input.State !== undefined && input.State !== null && { State: input.State }),
3652
+ });
3653
+ return new protocol_http_1.HttpRequest({
3654
+ protocol,
3655
+ hostname,
3656
+ port,
3657
+ method: "POST",
3658
+ headers,
3659
+ path: resolvedPath,
3660
+ body,
3661
+ });
3662
+ };
3663
+ exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = serializeAws_restJson1UpdateContactFlowModuleMetadataCommand;
3664
+ const serializeAws_restJson1UpdateContactFlowNameCommand = async (input, context) => {
3665
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3666
+ const headers = {
3667
+ "content-type": "application/json",
3668
+ };
3669
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
3670
+ "/contact-flows/{InstanceId}/{ContactFlowId}/name";
3671
+ if (input.InstanceId !== undefined) {
3672
+ const labelValue = input.InstanceId;
3673
+ if (labelValue.length <= 0) {
3674
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
3675
+ }
3676
+ resolvedPath = resolvedPath.replace("{InstanceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3677
+ }
3678
+ else {
3679
+ throw new Error("No value provided for input HTTP label: InstanceId.");
3680
+ }
3681
+ if (input.ContactFlowId !== undefined) {
3682
+ const labelValue = input.ContactFlowId;
3683
+ if (labelValue.length <= 0) {
3684
+ throw new Error("Empty value provided for input HTTP label: ContactFlowId.");
3685
+ }
3686
+ resolvedPath = resolvedPath.replace("{ContactFlowId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3687
+ }
3688
+ else {
3689
+ throw new Error("No value provided for input HTTP label: ContactFlowId.");
3690
+ }
3691
+ let body;
3692
+ body = JSON.stringify({
3693
+ ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3694
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3695
+ });
3696
+ return new protocol_http_1.HttpRequest({
3697
+ protocol,
3698
+ hostname,
3699
+ port,
3700
+ method: "POST",
3701
+ headers,
3702
+ path: resolvedPath,
3703
+ body,
3704
+ });
3705
+ };
3706
+ exports.serializeAws_restJson1UpdateContactFlowNameCommand = serializeAws_restJson1UpdateContactFlowNameCommand;
3707
+ const serializeAws_restJson1UpdateContactScheduleCommand = async (input, context) => {
3708
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3709
+ const headers = {
3710
+ "content-type": "application/json",
3711
+ };
3712
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact/schedule";
3713
+ let body;
3714
+ body = JSON.stringify({
3715
+ ...(input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId }),
3716
+ ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3717
+ ...(input.ScheduledTime !== undefined &&
3718
+ input.ScheduledTime !== null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
3719
+ });
3720
+ return new protocol_http_1.HttpRequest({
3721
+ protocol,
3722
+ hostname,
3723
+ port,
3724
+ method: "POST",
3725
+ headers,
3726
+ path: resolvedPath,
3727
+ body,
3728
+ });
3729
+ };
3730
+ exports.serializeAws_restJson1UpdateContactScheduleCommand = serializeAws_restJson1UpdateContactScheduleCommand;
3269
3731
  const serializeAws_restJson1UpdateHoursOfOperationCommand = async (input, context) => {
3270
3732
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3271
3733
  const headers = {
@@ -5137,6 +5599,130 @@ const deserializeAws_restJson1CreateContactFlowCommandError = async (output, con
5137
5599
  delete response.Message;
5138
5600
  return Promise.reject(Object.assign(new Error(message), response));
5139
5601
  };
5602
+ const deserializeAws_restJson1CreateContactFlowModuleCommand = async (output, context) => {
5603
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5604
+ return deserializeAws_restJson1CreateContactFlowModuleCommandError(output, context);
5605
+ }
5606
+ const contents = {
5607
+ $metadata: deserializeMetadata(output),
5608
+ Arn: undefined,
5609
+ Id: undefined,
5610
+ };
5611
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5612
+ if (data.Arn !== undefined && data.Arn !== null) {
5613
+ contents.Arn = smithy_client_1.expectString(data.Arn);
5614
+ }
5615
+ if (data.Id !== undefined && data.Id !== null) {
5616
+ contents.Id = smithy_client_1.expectString(data.Id);
5617
+ }
5618
+ return Promise.resolve(contents);
5619
+ };
5620
+ exports.deserializeAws_restJson1CreateContactFlowModuleCommand = deserializeAws_restJson1CreateContactFlowModuleCommand;
5621
+ const deserializeAws_restJson1CreateContactFlowModuleCommandError = async (output, context) => {
5622
+ const parsedOutput = {
5623
+ ...output,
5624
+ body: await parseBody(output.body, context),
5625
+ };
5626
+ let response;
5627
+ let errorCode = "UnknownError";
5628
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5629
+ switch (errorCode) {
5630
+ case "AccessDeniedException":
5631
+ case "com.amazonaws.connect#AccessDeniedException":
5632
+ response = {
5633
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
5634
+ name: errorCode,
5635
+ $metadata: deserializeMetadata(output),
5636
+ };
5637
+ break;
5638
+ case "DuplicateResourceException":
5639
+ case "com.amazonaws.connect#DuplicateResourceException":
5640
+ response = {
5641
+ ...(await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)),
5642
+ name: errorCode,
5643
+ $metadata: deserializeMetadata(output),
5644
+ };
5645
+ break;
5646
+ case "IdempotencyException":
5647
+ case "com.amazonaws.connect#IdempotencyException":
5648
+ response = {
5649
+ ...(await deserializeAws_restJson1IdempotencyExceptionResponse(parsedOutput, context)),
5650
+ name: errorCode,
5651
+ $metadata: deserializeMetadata(output),
5652
+ };
5653
+ break;
5654
+ case "InternalServiceException":
5655
+ case "com.amazonaws.connect#InternalServiceException":
5656
+ response = {
5657
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
5658
+ name: errorCode,
5659
+ $metadata: deserializeMetadata(output),
5660
+ };
5661
+ break;
5662
+ case "InvalidContactFlowModuleException":
5663
+ case "com.amazonaws.connect#InvalidContactFlowModuleException":
5664
+ response = {
5665
+ ...(await deserializeAws_restJson1InvalidContactFlowModuleExceptionResponse(parsedOutput, context)),
5666
+ name: errorCode,
5667
+ $metadata: deserializeMetadata(output),
5668
+ };
5669
+ break;
5670
+ case "InvalidParameterException":
5671
+ case "com.amazonaws.connect#InvalidParameterException":
5672
+ response = {
5673
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
5674
+ name: errorCode,
5675
+ $metadata: deserializeMetadata(output),
5676
+ };
5677
+ break;
5678
+ case "InvalidRequestException":
5679
+ case "com.amazonaws.connect#InvalidRequestException":
5680
+ response = {
5681
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
5682
+ name: errorCode,
5683
+ $metadata: deserializeMetadata(output),
5684
+ };
5685
+ break;
5686
+ case "LimitExceededException":
5687
+ case "com.amazonaws.connect#LimitExceededException":
5688
+ response = {
5689
+ ...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
5690
+ name: errorCode,
5691
+ $metadata: deserializeMetadata(output),
5692
+ };
5693
+ break;
5694
+ case "ResourceNotFoundException":
5695
+ case "com.amazonaws.connect#ResourceNotFoundException":
5696
+ response = {
5697
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
5698
+ name: errorCode,
5699
+ $metadata: deserializeMetadata(output),
5700
+ };
5701
+ break;
5702
+ case "ThrottlingException":
5703
+ case "com.amazonaws.connect#ThrottlingException":
5704
+ response = {
5705
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
5706
+ name: errorCode,
5707
+ $metadata: deserializeMetadata(output),
5708
+ };
5709
+ break;
5710
+ default:
5711
+ const parsedBody = parsedOutput.body;
5712
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
5713
+ response = {
5714
+ ...parsedBody,
5715
+ name: `${errorCode}`,
5716
+ message: parsedBody.message || parsedBody.Message || errorCode,
5717
+ $fault: "client",
5718
+ $metadata: deserializeMetadata(output),
5719
+ };
5720
+ }
5721
+ const message = response.message || response.Message || errorCode;
5722
+ response.message = message;
5723
+ delete response.Message;
5724
+ return Promise.reject(Object.assign(new Error(message), response));
5725
+ };
5140
5726
  const deserializeAws_restJson1CreateHoursOfOperationCommand = async (output, context) => {
5141
5727
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5142
5728
  return deserializeAws_restJson1CreateHoursOfOperationCommandError(output, context);
@@ -6089,9 +6675,9 @@ const deserializeAws_restJson1CreateUserHierarchyGroupCommandError = async (outp
6089
6675
  delete response.Message;
6090
6676
  return Promise.reject(Object.assign(new Error(message), response));
6091
6677
  };
6092
- const deserializeAws_restJson1DeleteHoursOfOperationCommand = async (output, context) => {
6678
+ const deserializeAws_restJson1DeleteContactFlowCommand = async (output, context) => {
6093
6679
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6094
- return deserializeAws_restJson1DeleteHoursOfOperationCommandError(output, context);
6680
+ return deserializeAws_restJson1DeleteContactFlowCommandError(output, context);
6095
6681
  }
6096
6682
  const contents = {
6097
6683
  $metadata: deserializeMetadata(output),
@@ -6099,8 +6685,8 @@ const deserializeAws_restJson1DeleteHoursOfOperationCommand = async (output, con
6099
6685
  await collectBody(output.body, context);
6100
6686
  return Promise.resolve(contents);
6101
6687
  };
6102
- exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = deserializeAws_restJson1DeleteHoursOfOperationCommand;
6103
- const deserializeAws_restJson1DeleteHoursOfOperationCommandError = async (output, context) => {
6688
+ exports.deserializeAws_restJson1DeleteContactFlowCommand = deserializeAws_restJson1DeleteContactFlowCommand;
6689
+ const deserializeAws_restJson1DeleteContactFlowCommandError = async (output, context) => {
6104
6690
  const parsedOutput = {
6105
6691
  ...output,
6106
6692
  body: await parseBody(output.body, context),
@@ -6109,10 +6695,178 @@ const deserializeAws_restJson1DeleteHoursOfOperationCommandError = async (output
6109
6695
  let errorCode = "UnknownError";
6110
6696
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6111
6697
  switch (errorCode) {
6112
- case "InternalServiceException":
6113
- case "com.amazonaws.connect#InternalServiceException":
6698
+ case "AccessDeniedException":
6699
+ case "com.amazonaws.connect#AccessDeniedException":
6114
6700
  response = {
6115
- ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
6701
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
6702
+ name: errorCode,
6703
+ $metadata: deserializeMetadata(output),
6704
+ };
6705
+ break;
6706
+ case "InternalServiceException":
6707
+ case "com.amazonaws.connect#InternalServiceException":
6708
+ response = {
6709
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
6710
+ name: errorCode,
6711
+ $metadata: deserializeMetadata(output),
6712
+ };
6713
+ break;
6714
+ case "InvalidParameterException":
6715
+ case "com.amazonaws.connect#InvalidParameterException":
6716
+ response = {
6717
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
6718
+ name: errorCode,
6719
+ $metadata: deserializeMetadata(output),
6720
+ };
6721
+ break;
6722
+ case "InvalidRequestException":
6723
+ case "com.amazonaws.connect#InvalidRequestException":
6724
+ response = {
6725
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
6726
+ name: errorCode,
6727
+ $metadata: deserializeMetadata(output),
6728
+ };
6729
+ break;
6730
+ case "ResourceNotFoundException":
6731
+ case "com.amazonaws.connect#ResourceNotFoundException":
6732
+ response = {
6733
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
6734
+ name: errorCode,
6735
+ $metadata: deserializeMetadata(output),
6736
+ };
6737
+ break;
6738
+ case "ThrottlingException":
6739
+ case "com.amazonaws.connect#ThrottlingException":
6740
+ response = {
6741
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
6742
+ name: errorCode,
6743
+ $metadata: deserializeMetadata(output),
6744
+ };
6745
+ break;
6746
+ default:
6747
+ const parsedBody = parsedOutput.body;
6748
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
6749
+ response = {
6750
+ ...parsedBody,
6751
+ name: `${errorCode}`,
6752
+ message: parsedBody.message || parsedBody.Message || errorCode,
6753
+ $fault: "client",
6754
+ $metadata: deserializeMetadata(output),
6755
+ };
6756
+ }
6757
+ const message = response.message || response.Message || errorCode;
6758
+ response.message = message;
6759
+ delete response.Message;
6760
+ return Promise.reject(Object.assign(new Error(message), response));
6761
+ };
6762
+ const deserializeAws_restJson1DeleteContactFlowModuleCommand = async (output, context) => {
6763
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6764
+ return deserializeAws_restJson1DeleteContactFlowModuleCommandError(output, context);
6765
+ }
6766
+ const contents = {
6767
+ $metadata: deserializeMetadata(output),
6768
+ };
6769
+ await collectBody(output.body, context);
6770
+ return Promise.resolve(contents);
6771
+ };
6772
+ exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = deserializeAws_restJson1DeleteContactFlowModuleCommand;
6773
+ const deserializeAws_restJson1DeleteContactFlowModuleCommandError = async (output, context) => {
6774
+ const parsedOutput = {
6775
+ ...output,
6776
+ body: await parseBody(output.body, context),
6777
+ };
6778
+ let response;
6779
+ let errorCode = "UnknownError";
6780
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6781
+ switch (errorCode) {
6782
+ case "AccessDeniedException":
6783
+ case "com.amazonaws.connect#AccessDeniedException":
6784
+ response = {
6785
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
6786
+ name: errorCode,
6787
+ $metadata: deserializeMetadata(output),
6788
+ };
6789
+ break;
6790
+ case "InternalServiceException":
6791
+ case "com.amazonaws.connect#InternalServiceException":
6792
+ response = {
6793
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
6794
+ name: errorCode,
6795
+ $metadata: deserializeMetadata(output),
6796
+ };
6797
+ break;
6798
+ case "InvalidParameterException":
6799
+ case "com.amazonaws.connect#InvalidParameterException":
6800
+ response = {
6801
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
6802
+ name: errorCode,
6803
+ $metadata: deserializeMetadata(output),
6804
+ };
6805
+ break;
6806
+ case "InvalidRequestException":
6807
+ case "com.amazonaws.connect#InvalidRequestException":
6808
+ response = {
6809
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
6810
+ name: errorCode,
6811
+ $metadata: deserializeMetadata(output),
6812
+ };
6813
+ break;
6814
+ case "ResourceNotFoundException":
6815
+ case "com.amazonaws.connect#ResourceNotFoundException":
6816
+ response = {
6817
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
6818
+ name: errorCode,
6819
+ $metadata: deserializeMetadata(output),
6820
+ };
6821
+ break;
6822
+ case "ThrottlingException":
6823
+ case "com.amazonaws.connect#ThrottlingException":
6824
+ response = {
6825
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
6826
+ name: errorCode,
6827
+ $metadata: deserializeMetadata(output),
6828
+ };
6829
+ break;
6830
+ default:
6831
+ const parsedBody = parsedOutput.body;
6832
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
6833
+ response = {
6834
+ ...parsedBody,
6835
+ name: `${errorCode}`,
6836
+ message: parsedBody.message || parsedBody.Message || errorCode,
6837
+ $fault: "client",
6838
+ $metadata: deserializeMetadata(output),
6839
+ };
6840
+ }
6841
+ const message = response.message || response.Message || errorCode;
6842
+ response.message = message;
6843
+ delete response.Message;
6844
+ return Promise.reject(Object.assign(new Error(message), response));
6845
+ };
6846
+ const deserializeAws_restJson1DeleteHoursOfOperationCommand = async (output, context) => {
6847
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6848
+ return deserializeAws_restJson1DeleteHoursOfOperationCommandError(output, context);
6849
+ }
6850
+ const contents = {
6851
+ $metadata: deserializeMetadata(output),
6852
+ };
6853
+ await collectBody(output.body, context);
6854
+ return Promise.resolve(contents);
6855
+ };
6856
+ exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = deserializeAws_restJson1DeleteHoursOfOperationCommand;
6857
+ const deserializeAws_restJson1DeleteHoursOfOperationCommandError = async (output, context) => {
6858
+ const parsedOutput = {
6859
+ ...output,
6860
+ body: await parseBody(output.body, context),
6861
+ };
6862
+ let response;
6863
+ let errorCode = "UnknownError";
6864
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6865
+ switch (errorCode) {
6866
+ case "InternalServiceException":
6867
+ case "com.amazonaws.connect#InternalServiceException":
6868
+ response = {
6869
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
6116
6870
  name: errorCode,
6117
6871
  $metadata: deserializeMetadata(output),
6118
6872
  };
@@ -6769,22 +7523,22 @@ const deserializeAws_restJson1DescribeAgentStatusCommandError = async (output, c
6769
7523
  delete response.Message;
6770
7524
  return Promise.reject(Object.assign(new Error(message), response));
6771
7525
  };
6772
- const deserializeAws_restJson1DescribeContactFlowCommand = async (output, context) => {
7526
+ const deserializeAws_restJson1DescribeContactCommand = async (output, context) => {
6773
7527
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6774
- return deserializeAws_restJson1DescribeContactFlowCommandError(output, context);
7528
+ return deserializeAws_restJson1DescribeContactCommandError(output, context);
6775
7529
  }
6776
7530
  const contents = {
6777
7531
  $metadata: deserializeMetadata(output),
6778
- ContactFlow: undefined,
7532
+ Contact: undefined,
6779
7533
  };
6780
7534
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6781
- if (data.ContactFlow !== undefined && data.ContactFlow !== null) {
6782
- contents.ContactFlow = deserializeAws_restJson1ContactFlow(data.ContactFlow, context);
7535
+ if (data.Contact !== undefined && data.Contact !== null) {
7536
+ contents.Contact = deserializeAws_restJson1Contact(data.Contact, context);
6783
7537
  }
6784
7538
  return Promise.resolve(contents);
6785
7539
  };
6786
- exports.deserializeAws_restJson1DescribeContactFlowCommand = deserializeAws_restJson1DescribeContactFlowCommand;
6787
- const deserializeAws_restJson1DescribeContactFlowCommandError = async (output, context) => {
7540
+ exports.deserializeAws_restJson1DescribeContactCommand = deserializeAws_restJson1DescribeContactCommand;
7541
+ const deserializeAws_restJson1DescribeContactCommandError = async (output, context) => {
6788
7542
  const parsedOutput = {
6789
7543
  ...output,
6790
7544
  body: await parseBody(output.body, context),
@@ -6793,14 +7547,6 @@ const deserializeAws_restJson1DescribeContactFlowCommandError = async (output, c
6793
7547
  let errorCode = "UnknownError";
6794
7548
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6795
7549
  switch (errorCode) {
6796
- case "ContactFlowNotPublishedException":
6797
- case "com.amazonaws.connect#ContactFlowNotPublishedException":
6798
- response = {
6799
- ...(await deserializeAws_restJson1ContactFlowNotPublishedExceptionResponse(parsedOutput, context)),
6800
- name: errorCode,
6801
- $metadata: deserializeMetadata(output),
6802
- };
6803
- break;
6804
7550
  case "InternalServiceException":
6805
7551
  case "com.amazonaws.connect#InternalServiceException":
6806
7552
  response = {
@@ -6857,22 +7603,22 @@ const deserializeAws_restJson1DescribeContactFlowCommandError = async (output, c
6857
7603
  delete response.Message;
6858
7604
  return Promise.reject(Object.assign(new Error(message), response));
6859
7605
  };
6860
- const deserializeAws_restJson1DescribeHoursOfOperationCommand = async (output, context) => {
7606
+ const deserializeAws_restJson1DescribeContactFlowCommand = async (output, context) => {
6861
7607
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6862
- return deserializeAws_restJson1DescribeHoursOfOperationCommandError(output, context);
7608
+ return deserializeAws_restJson1DescribeContactFlowCommandError(output, context);
6863
7609
  }
6864
7610
  const contents = {
6865
7611
  $metadata: deserializeMetadata(output),
6866
- HoursOfOperation: undefined,
7612
+ ContactFlow: undefined,
6867
7613
  };
6868
7614
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6869
- if (data.HoursOfOperation !== undefined && data.HoursOfOperation !== null) {
6870
- contents.HoursOfOperation = deserializeAws_restJson1HoursOfOperation(data.HoursOfOperation, context);
7615
+ if (data.ContactFlow !== undefined && data.ContactFlow !== null) {
7616
+ contents.ContactFlow = deserializeAws_restJson1ContactFlow(data.ContactFlow, context);
6871
7617
  }
6872
7618
  return Promise.resolve(contents);
6873
7619
  };
6874
- exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = deserializeAws_restJson1DescribeHoursOfOperationCommand;
6875
- const deserializeAws_restJson1DescribeHoursOfOperationCommandError = async (output, context) => {
7620
+ exports.deserializeAws_restJson1DescribeContactFlowCommand = deserializeAws_restJson1DescribeContactFlowCommand;
7621
+ const deserializeAws_restJson1DescribeContactFlowCommandError = async (output, context) => {
6876
7622
  const parsedOutput = {
6877
7623
  ...output,
6878
7624
  body: await parseBody(output.body, context),
@@ -6881,6 +7627,14 @@ const deserializeAws_restJson1DescribeHoursOfOperationCommandError = async (outp
6881
7627
  let errorCode = "UnknownError";
6882
7628
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6883
7629
  switch (errorCode) {
7630
+ case "ContactFlowNotPublishedException":
7631
+ case "com.amazonaws.connect#ContactFlowNotPublishedException":
7632
+ response = {
7633
+ ...(await deserializeAws_restJson1ContactFlowNotPublishedExceptionResponse(parsedOutput, context)),
7634
+ name: errorCode,
7635
+ $metadata: deserializeMetadata(output),
7636
+ };
7637
+ break;
6884
7638
  case "InternalServiceException":
6885
7639
  case "com.amazonaws.connect#InternalServiceException":
6886
7640
  response = {
@@ -6937,22 +7691,22 @@ const deserializeAws_restJson1DescribeHoursOfOperationCommandError = async (outp
6937
7691
  delete response.Message;
6938
7692
  return Promise.reject(Object.assign(new Error(message), response));
6939
7693
  };
6940
- const deserializeAws_restJson1DescribeInstanceCommand = async (output, context) => {
7694
+ const deserializeAws_restJson1DescribeContactFlowModuleCommand = async (output, context) => {
6941
7695
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6942
- return deserializeAws_restJson1DescribeInstanceCommandError(output, context);
7696
+ return deserializeAws_restJson1DescribeContactFlowModuleCommandError(output, context);
6943
7697
  }
6944
7698
  const contents = {
6945
7699
  $metadata: deserializeMetadata(output),
6946
- Instance: undefined,
7700
+ ContactFlowModule: undefined,
6947
7701
  };
6948
7702
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6949
- if (data.Instance !== undefined && data.Instance !== null) {
6950
- contents.Instance = deserializeAws_restJson1Instance(data.Instance, context);
7703
+ if (data.ContactFlowModule !== undefined && data.ContactFlowModule !== null) {
7704
+ contents.ContactFlowModule = deserializeAws_restJson1ContactFlowModule(data.ContactFlowModule, context);
6951
7705
  }
6952
7706
  return Promise.resolve(contents);
6953
7707
  };
6954
- exports.deserializeAws_restJson1DescribeInstanceCommand = deserializeAws_restJson1DescribeInstanceCommand;
6955
- const deserializeAws_restJson1DescribeInstanceCommandError = async (output, context) => {
7708
+ exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = deserializeAws_restJson1DescribeContactFlowModuleCommand;
7709
+ const deserializeAws_restJson1DescribeContactFlowModuleCommandError = async (output, context) => {
6956
7710
  const parsedOutput = {
6957
7711
  ...output,
6958
7712
  body: await parseBody(output.body, context),
@@ -6961,6 +7715,14 @@ const deserializeAws_restJson1DescribeInstanceCommandError = async (output, cont
6961
7715
  let errorCode = "UnknownError";
6962
7716
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6963
7717
  switch (errorCode) {
7718
+ case "AccessDeniedException":
7719
+ case "com.amazonaws.connect#AccessDeniedException":
7720
+ response = {
7721
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
7722
+ name: errorCode,
7723
+ $metadata: deserializeMetadata(output),
7724
+ };
7725
+ break;
6964
7726
  case "InternalServiceException":
6965
7727
  case "com.amazonaws.connect#InternalServiceException":
6966
7728
  response = {
@@ -6969,6 +7731,14 @@ const deserializeAws_restJson1DescribeInstanceCommandError = async (output, cont
6969
7731
  $metadata: deserializeMetadata(output),
6970
7732
  };
6971
7733
  break;
7734
+ case "InvalidParameterException":
7735
+ case "com.amazonaws.connect#InvalidParameterException":
7736
+ response = {
7737
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
7738
+ name: errorCode,
7739
+ $metadata: deserializeMetadata(output),
7740
+ };
7741
+ break;
6972
7742
  case "InvalidRequestException":
6973
7743
  case "com.amazonaws.connect#InvalidRequestException":
6974
7744
  response = {
@@ -6985,6 +7755,14 @@ const deserializeAws_restJson1DescribeInstanceCommandError = async (output, cont
6985
7755
  $metadata: deserializeMetadata(output),
6986
7756
  };
6987
7757
  break;
7758
+ case "ThrottlingException":
7759
+ case "com.amazonaws.connect#ThrottlingException":
7760
+ response = {
7761
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
7762
+ name: errorCode,
7763
+ $metadata: deserializeMetadata(output),
7764
+ };
7765
+ break;
6988
7766
  default:
6989
7767
  const parsedBody = parsedOutput.body;
6990
7768
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -7001,22 +7779,22 @@ const deserializeAws_restJson1DescribeInstanceCommandError = async (output, cont
7001
7779
  delete response.Message;
7002
7780
  return Promise.reject(Object.assign(new Error(message), response));
7003
7781
  };
7004
- const deserializeAws_restJson1DescribeInstanceAttributeCommand = async (output, context) => {
7782
+ const deserializeAws_restJson1DescribeHoursOfOperationCommand = async (output, context) => {
7005
7783
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7006
- return deserializeAws_restJson1DescribeInstanceAttributeCommandError(output, context);
7784
+ return deserializeAws_restJson1DescribeHoursOfOperationCommandError(output, context);
7007
7785
  }
7008
7786
  const contents = {
7009
7787
  $metadata: deserializeMetadata(output),
7010
- Attribute: undefined,
7788
+ HoursOfOperation: undefined,
7011
7789
  };
7012
7790
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7013
- if (data.Attribute !== undefined && data.Attribute !== null) {
7014
- contents.Attribute = deserializeAws_restJson1Attribute(data.Attribute, context);
7791
+ if (data.HoursOfOperation !== undefined && data.HoursOfOperation !== null) {
7792
+ contents.HoursOfOperation = deserializeAws_restJson1HoursOfOperation(data.HoursOfOperation, context);
7015
7793
  }
7016
7794
  return Promise.resolve(contents);
7017
7795
  };
7018
- exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = deserializeAws_restJson1DescribeInstanceAttributeCommand;
7019
- const deserializeAws_restJson1DescribeInstanceAttributeCommandError = async (output, context) => {
7796
+ exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = deserializeAws_restJson1DescribeHoursOfOperationCommand;
7797
+ const deserializeAws_restJson1DescribeHoursOfOperationCommandError = async (output, context) => {
7020
7798
  const parsedOutput = {
7021
7799
  ...output,
7022
7800
  body: await parseBody(output.body, context),
@@ -7081,17 +7859,161 @@ const deserializeAws_restJson1DescribeInstanceAttributeCommandError = async (out
7081
7859
  delete response.Message;
7082
7860
  return Promise.reject(Object.assign(new Error(message), response));
7083
7861
  };
7084
- const deserializeAws_restJson1DescribeInstanceStorageConfigCommand = async (output, context) => {
7862
+ const deserializeAws_restJson1DescribeInstanceCommand = async (output, context) => {
7085
7863
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7086
- return deserializeAws_restJson1DescribeInstanceStorageConfigCommandError(output, context);
7864
+ return deserializeAws_restJson1DescribeInstanceCommandError(output, context);
7087
7865
  }
7088
7866
  const contents = {
7089
7867
  $metadata: deserializeMetadata(output),
7090
- StorageConfig: undefined,
7868
+ Instance: undefined,
7091
7869
  };
7092
7870
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7093
- if (data.StorageConfig !== undefined && data.StorageConfig !== null) {
7094
- contents.StorageConfig = deserializeAws_restJson1InstanceStorageConfig(data.StorageConfig, context);
7871
+ if (data.Instance !== undefined && data.Instance !== null) {
7872
+ contents.Instance = deserializeAws_restJson1Instance(data.Instance, context);
7873
+ }
7874
+ return Promise.resolve(contents);
7875
+ };
7876
+ exports.deserializeAws_restJson1DescribeInstanceCommand = deserializeAws_restJson1DescribeInstanceCommand;
7877
+ const deserializeAws_restJson1DescribeInstanceCommandError = async (output, context) => {
7878
+ const parsedOutput = {
7879
+ ...output,
7880
+ body: await parseBody(output.body, context),
7881
+ };
7882
+ let response;
7883
+ let errorCode = "UnknownError";
7884
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7885
+ switch (errorCode) {
7886
+ case "InternalServiceException":
7887
+ case "com.amazonaws.connect#InternalServiceException":
7888
+ response = {
7889
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
7890
+ name: errorCode,
7891
+ $metadata: deserializeMetadata(output),
7892
+ };
7893
+ break;
7894
+ case "InvalidRequestException":
7895
+ case "com.amazonaws.connect#InvalidRequestException":
7896
+ response = {
7897
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
7898
+ name: errorCode,
7899
+ $metadata: deserializeMetadata(output),
7900
+ };
7901
+ break;
7902
+ case "ResourceNotFoundException":
7903
+ case "com.amazonaws.connect#ResourceNotFoundException":
7904
+ response = {
7905
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
7906
+ name: errorCode,
7907
+ $metadata: deserializeMetadata(output),
7908
+ };
7909
+ break;
7910
+ default:
7911
+ const parsedBody = parsedOutput.body;
7912
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
7913
+ response = {
7914
+ ...parsedBody,
7915
+ name: `${errorCode}`,
7916
+ message: parsedBody.message || parsedBody.Message || errorCode,
7917
+ $fault: "client",
7918
+ $metadata: deserializeMetadata(output),
7919
+ };
7920
+ }
7921
+ const message = response.message || response.Message || errorCode;
7922
+ response.message = message;
7923
+ delete response.Message;
7924
+ return Promise.reject(Object.assign(new Error(message), response));
7925
+ };
7926
+ const deserializeAws_restJson1DescribeInstanceAttributeCommand = async (output, context) => {
7927
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7928
+ return deserializeAws_restJson1DescribeInstanceAttributeCommandError(output, context);
7929
+ }
7930
+ const contents = {
7931
+ $metadata: deserializeMetadata(output),
7932
+ Attribute: undefined,
7933
+ };
7934
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7935
+ if (data.Attribute !== undefined && data.Attribute !== null) {
7936
+ contents.Attribute = deserializeAws_restJson1Attribute(data.Attribute, context);
7937
+ }
7938
+ return Promise.resolve(contents);
7939
+ };
7940
+ exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = deserializeAws_restJson1DescribeInstanceAttributeCommand;
7941
+ const deserializeAws_restJson1DescribeInstanceAttributeCommandError = async (output, context) => {
7942
+ const parsedOutput = {
7943
+ ...output,
7944
+ body: await parseBody(output.body, context),
7945
+ };
7946
+ let response;
7947
+ let errorCode = "UnknownError";
7948
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7949
+ switch (errorCode) {
7950
+ case "InternalServiceException":
7951
+ case "com.amazonaws.connect#InternalServiceException":
7952
+ response = {
7953
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
7954
+ name: errorCode,
7955
+ $metadata: deserializeMetadata(output),
7956
+ };
7957
+ break;
7958
+ case "InvalidParameterException":
7959
+ case "com.amazonaws.connect#InvalidParameterException":
7960
+ response = {
7961
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
7962
+ name: errorCode,
7963
+ $metadata: deserializeMetadata(output),
7964
+ };
7965
+ break;
7966
+ case "InvalidRequestException":
7967
+ case "com.amazonaws.connect#InvalidRequestException":
7968
+ response = {
7969
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
7970
+ name: errorCode,
7971
+ $metadata: deserializeMetadata(output),
7972
+ };
7973
+ break;
7974
+ case "ResourceNotFoundException":
7975
+ case "com.amazonaws.connect#ResourceNotFoundException":
7976
+ response = {
7977
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
7978
+ name: errorCode,
7979
+ $metadata: deserializeMetadata(output),
7980
+ };
7981
+ break;
7982
+ case "ThrottlingException":
7983
+ case "com.amazonaws.connect#ThrottlingException":
7984
+ response = {
7985
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
7986
+ name: errorCode,
7987
+ $metadata: deserializeMetadata(output),
7988
+ };
7989
+ break;
7990
+ default:
7991
+ const parsedBody = parsedOutput.body;
7992
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
7993
+ response = {
7994
+ ...parsedBody,
7995
+ name: `${errorCode}`,
7996
+ message: parsedBody.message || parsedBody.Message || errorCode,
7997
+ $fault: "client",
7998
+ $metadata: deserializeMetadata(output),
7999
+ };
8000
+ }
8001
+ const message = response.message || response.Message || errorCode;
8002
+ response.message = message;
8003
+ delete response.Message;
8004
+ return Promise.reject(Object.assign(new Error(message), response));
8005
+ };
8006
+ const deserializeAws_restJson1DescribeInstanceStorageConfigCommand = async (output, context) => {
8007
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8008
+ return deserializeAws_restJson1DescribeInstanceStorageConfigCommandError(output, context);
8009
+ }
8010
+ const contents = {
8011
+ $metadata: deserializeMetadata(output),
8012
+ StorageConfig: undefined,
8013
+ };
8014
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8015
+ if (data.StorageConfig !== undefined && data.StorageConfig !== null) {
8016
+ contents.StorageConfig = deserializeAws_restJson1InstanceStorageConfig(data.StorageConfig, context);
7095
8017
  }
7096
8018
  return Promise.resolve(contents);
7097
8019
  };
@@ -8889,26 +9811,26 @@ const deserializeAws_restJson1ListBotsCommandError = async (output, context) =>
8889
9811
  delete response.Message;
8890
9812
  return Promise.reject(Object.assign(new Error(message), response));
8891
9813
  };
8892
- const deserializeAws_restJson1ListContactFlowsCommand = async (output, context) => {
9814
+ const deserializeAws_restJson1ListContactFlowModulesCommand = async (output, context) => {
8893
9815
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8894
- return deserializeAws_restJson1ListContactFlowsCommandError(output, context);
9816
+ return deserializeAws_restJson1ListContactFlowModulesCommandError(output, context);
8895
9817
  }
8896
9818
  const contents = {
8897
9819
  $metadata: deserializeMetadata(output),
8898
- ContactFlowSummaryList: undefined,
9820
+ ContactFlowModulesSummaryList: undefined,
8899
9821
  NextToken: undefined,
8900
9822
  };
8901
9823
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8902
- if (data.ContactFlowSummaryList !== undefined && data.ContactFlowSummaryList !== null) {
8903
- contents.ContactFlowSummaryList = deserializeAws_restJson1ContactFlowSummaryList(data.ContactFlowSummaryList, context);
9824
+ if (data.ContactFlowModulesSummaryList !== undefined && data.ContactFlowModulesSummaryList !== null) {
9825
+ contents.ContactFlowModulesSummaryList = deserializeAws_restJson1ContactFlowModulesSummaryList(data.ContactFlowModulesSummaryList, context);
8904
9826
  }
8905
9827
  if (data.NextToken !== undefined && data.NextToken !== null) {
8906
9828
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
8907
9829
  }
8908
9830
  return Promise.resolve(contents);
8909
9831
  };
8910
- exports.deserializeAws_restJson1ListContactFlowsCommand = deserializeAws_restJson1ListContactFlowsCommand;
8911
- const deserializeAws_restJson1ListContactFlowsCommandError = async (output, context) => {
9832
+ exports.deserializeAws_restJson1ListContactFlowModulesCommand = deserializeAws_restJson1ListContactFlowModulesCommand;
9833
+ const deserializeAws_restJson1ListContactFlowModulesCommandError = async (output, context) => {
8912
9834
  const parsedOutput = {
8913
9835
  ...output,
8914
9836
  body: await parseBody(output.body, context),
@@ -8917,6 +9839,14 @@ const deserializeAws_restJson1ListContactFlowsCommandError = async (output, cont
8917
9839
  let errorCode = "UnknownError";
8918
9840
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8919
9841
  switch (errorCode) {
9842
+ case "AccessDeniedException":
9843
+ case "com.amazonaws.connect#AccessDeniedException":
9844
+ response = {
9845
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
9846
+ name: errorCode,
9847
+ $metadata: deserializeMetadata(output),
9848
+ };
9849
+ break;
8920
9850
  case "InternalServiceException":
8921
9851
  case "com.amazonaws.connect#InternalServiceException":
8922
9852
  response = {
@@ -8973,26 +9903,26 @@ const deserializeAws_restJson1ListContactFlowsCommandError = async (output, cont
8973
9903
  delete response.Message;
8974
9904
  return Promise.reject(Object.assign(new Error(message), response));
8975
9905
  };
8976
- const deserializeAws_restJson1ListHoursOfOperationsCommand = async (output, context) => {
9906
+ const deserializeAws_restJson1ListContactFlowsCommand = async (output, context) => {
8977
9907
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8978
- return deserializeAws_restJson1ListHoursOfOperationsCommandError(output, context);
9908
+ return deserializeAws_restJson1ListContactFlowsCommandError(output, context);
8979
9909
  }
8980
9910
  const contents = {
8981
9911
  $metadata: deserializeMetadata(output),
8982
- HoursOfOperationSummaryList: undefined,
9912
+ ContactFlowSummaryList: undefined,
8983
9913
  NextToken: undefined,
8984
9914
  };
8985
9915
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
8986
- if (data.HoursOfOperationSummaryList !== undefined && data.HoursOfOperationSummaryList !== null) {
8987
- contents.HoursOfOperationSummaryList = deserializeAws_restJson1HoursOfOperationSummaryList(data.HoursOfOperationSummaryList, context);
9916
+ if (data.ContactFlowSummaryList !== undefined && data.ContactFlowSummaryList !== null) {
9917
+ contents.ContactFlowSummaryList = deserializeAws_restJson1ContactFlowSummaryList(data.ContactFlowSummaryList, context);
8988
9918
  }
8989
9919
  if (data.NextToken !== undefined && data.NextToken !== null) {
8990
9920
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
8991
9921
  }
8992
9922
  return Promise.resolve(contents);
8993
9923
  };
8994
- exports.deserializeAws_restJson1ListHoursOfOperationsCommand = deserializeAws_restJson1ListHoursOfOperationsCommand;
8995
- const deserializeAws_restJson1ListHoursOfOperationsCommandError = async (output, context) => {
9924
+ exports.deserializeAws_restJson1ListContactFlowsCommand = deserializeAws_restJson1ListContactFlowsCommand;
9925
+ const deserializeAws_restJson1ListContactFlowsCommandError = async (output, context) => {
8996
9926
  const parsedOutput = {
8997
9927
  ...output,
8998
9928
  body: await parseBody(output.body, context),
@@ -9057,26 +9987,26 @@ const deserializeAws_restJson1ListHoursOfOperationsCommandError = async (output,
9057
9987
  delete response.Message;
9058
9988
  return Promise.reject(Object.assign(new Error(message), response));
9059
9989
  };
9060
- const deserializeAws_restJson1ListInstanceAttributesCommand = async (output, context) => {
9990
+ const deserializeAws_restJson1ListContactReferencesCommand = async (output, context) => {
9061
9991
  if (output.statusCode !== 200 && output.statusCode >= 300) {
9062
- return deserializeAws_restJson1ListInstanceAttributesCommandError(output, context);
9992
+ return deserializeAws_restJson1ListContactReferencesCommandError(output, context);
9063
9993
  }
9064
9994
  const contents = {
9065
9995
  $metadata: deserializeMetadata(output),
9066
- Attributes: undefined,
9067
9996
  NextToken: undefined,
9997
+ ReferenceSummaryList: undefined,
9068
9998
  };
9069
9999
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9070
- if (data.Attributes !== undefined && data.Attributes !== null) {
9071
- contents.Attributes = deserializeAws_restJson1AttributesList(data.Attributes, context);
9072
- }
9073
10000
  if (data.NextToken !== undefined && data.NextToken !== null) {
9074
10001
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9075
10002
  }
10003
+ if (data.ReferenceSummaryList !== undefined && data.ReferenceSummaryList !== null) {
10004
+ contents.ReferenceSummaryList = deserializeAws_restJson1ReferenceSummaryList(data.ReferenceSummaryList, context);
10005
+ }
9076
10006
  return Promise.resolve(contents);
9077
10007
  };
9078
- exports.deserializeAws_restJson1ListInstanceAttributesCommand = deserializeAws_restJson1ListInstanceAttributesCommand;
9079
- const deserializeAws_restJson1ListInstanceAttributesCommandError = async (output, context) => {
10008
+ exports.deserializeAws_restJson1ListContactReferencesCommand = deserializeAws_restJson1ListContactReferencesCommand;
10009
+ const deserializeAws_restJson1ListContactReferencesCommandError = async (output, context) => {
9080
10010
  const parsedOutput = {
9081
10011
  ...output,
9082
10012
  body: await parseBody(output.body, context),
@@ -9141,26 +10071,26 @@ const deserializeAws_restJson1ListInstanceAttributesCommandError = async (output
9141
10071
  delete response.Message;
9142
10072
  return Promise.reject(Object.assign(new Error(message), response));
9143
10073
  };
9144
- const deserializeAws_restJson1ListInstancesCommand = async (output, context) => {
10074
+ const deserializeAws_restJson1ListHoursOfOperationsCommand = async (output, context) => {
9145
10075
  if (output.statusCode !== 200 && output.statusCode >= 300) {
9146
- return deserializeAws_restJson1ListInstancesCommandError(output, context);
10076
+ return deserializeAws_restJson1ListHoursOfOperationsCommandError(output, context);
9147
10077
  }
9148
10078
  const contents = {
9149
10079
  $metadata: deserializeMetadata(output),
9150
- InstanceSummaryList: undefined,
10080
+ HoursOfOperationSummaryList: undefined,
9151
10081
  NextToken: undefined,
9152
10082
  };
9153
10083
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9154
- if (data.InstanceSummaryList !== undefined && data.InstanceSummaryList !== null) {
9155
- contents.InstanceSummaryList = deserializeAws_restJson1InstanceSummaryList(data.InstanceSummaryList, context);
10084
+ if (data.HoursOfOperationSummaryList !== undefined && data.HoursOfOperationSummaryList !== null) {
10085
+ contents.HoursOfOperationSummaryList = deserializeAws_restJson1HoursOfOperationSummaryList(data.HoursOfOperationSummaryList, context);
9156
10086
  }
9157
10087
  if (data.NextToken !== undefined && data.NextToken !== null) {
9158
10088
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9159
10089
  }
9160
10090
  return Promise.resolve(contents);
9161
10091
  };
9162
- exports.deserializeAws_restJson1ListInstancesCommand = deserializeAws_restJson1ListInstancesCommand;
9163
- const deserializeAws_restJson1ListInstancesCommandError = async (output, context) => {
10092
+ exports.deserializeAws_restJson1ListHoursOfOperationsCommand = deserializeAws_restJson1ListHoursOfOperationsCommand;
10093
+ const deserializeAws_restJson1ListHoursOfOperationsCommandError = async (output, context) => {
9164
10094
  const parsedOutput = {
9165
10095
  ...output,
9166
10096
  body: await parseBody(output.body, context),
@@ -9177,6 +10107,14 @@ const deserializeAws_restJson1ListInstancesCommandError = async (output, context
9177
10107
  $metadata: deserializeMetadata(output),
9178
10108
  };
9179
10109
  break;
10110
+ case "InvalidParameterException":
10111
+ case "com.amazonaws.connect#InvalidParameterException":
10112
+ response = {
10113
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
10114
+ name: errorCode,
10115
+ $metadata: deserializeMetadata(output),
10116
+ };
10117
+ break;
9180
10118
  case "InvalidRequestException":
9181
10119
  case "com.amazonaws.connect#InvalidRequestException":
9182
10120
  response = {
@@ -9185,6 +10123,22 @@ const deserializeAws_restJson1ListInstancesCommandError = async (output, context
9185
10123
  $metadata: deserializeMetadata(output),
9186
10124
  };
9187
10125
  break;
10126
+ case "ResourceNotFoundException":
10127
+ case "com.amazonaws.connect#ResourceNotFoundException":
10128
+ response = {
10129
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
10130
+ name: errorCode,
10131
+ $metadata: deserializeMetadata(output),
10132
+ };
10133
+ break;
10134
+ case "ThrottlingException":
10135
+ case "com.amazonaws.connect#ThrottlingException":
10136
+ response = {
10137
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
10138
+ name: errorCode,
10139
+ $metadata: deserializeMetadata(output),
10140
+ };
10141
+ break;
9188
10142
  default:
9189
10143
  const parsedBody = parsedOutput.body;
9190
10144
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -9201,26 +10155,26 @@ const deserializeAws_restJson1ListInstancesCommandError = async (output, context
9201
10155
  delete response.Message;
9202
10156
  return Promise.reject(Object.assign(new Error(message), response));
9203
10157
  };
9204
- const deserializeAws_restJson1ListInstanceStorageConfigsCommand = async (output, context) => {
10158
+ const deserializeAws_restJson1ListInstanceAttributesCommand = async (output, context) => {
9205
10159
  if (output.statusCode !== 200 && output.statusCode >= 300) {
9206
- return deserializeAws_restJson1ListInstanceStorageConfigsCommandError(output, context);
10160
+ return deserializeAws_restJson1ListInstanceAttributesCommandError(output, context);
9207
10161
  }
9208
10162
  const contents = {
9209
10163
  $metadata: deserializeMetadata(output),
10164
+ Attributes: undefined,
9210
10165
  NextToken: undefined,
9211
- StorageConfigs: undefined,
9212
10166
  };
9213
10167
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
10168
+ if (data.Attributes !== undefined && data.Attributes !== null) {
10169
+ contents.Attributes = deserializeAws_restJson1AttributesList(data.Attributes, context);
10170
+ }
9214
10171
  if (data.NextToken !== undefined && data.NextToken !== null) {
9215
10172
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9216
10173
  }
9217
- if (data.StorageConfigs !== undefined && data.StorageConfigs !== null) {
9218
- contents.StorageConfigs = deserializeAws_restJson1InstanceStorageConfigs(data.StorageConfigs, context);
9219
- }
9220
10174
  return Promise.resolve(contents);
9221
10175
  };
9222
- exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = deserializeAws_restJson1ListInstanceStorageConfigsCommand;
9223
- const deserializeAws_restJson1ListInstanceStorageConfigsCommandError = async (output, context) => {
10176
+ exports.deserializeAws_restJson1ListInstanceAttributesCommand = deserializeAws_restJson1ListInstanceAttributesCommand;
10177
+ const deserializeAws_restJson1ListInstanceAttributesCommandError = async (output, context) => {
9224
10178
  const parsedOutput = {
9225
10179
  ...output,
9226
10180
  body: await parseBody(output.body, context),
@@ -9285,26 +10239,26 @@ const deserializeAws_restJson1ListInstanceStorageConfigsCommandError = async (ou
9285
10239
  delete response.Message;
9286
10240
  return Promise.reject(Object.assign(new Error(message), response));
9287
10241
  };
9288
- const deserializeAws_restJson1ListIntegrationAssociationsCommand = async (output, context) => {
10242
+ const deserializeAws_restJson1ListInstancesCommand = async (output, context) => {
9289
10243
  if (output.statusCode !== 200 && output.statusCode >= 300) {
9290
- return deserializeAws_restJson1ListIntegrationAssociationsCommandError(output, context);
10244
+ return deserializeAws_restJson1ListInstancesCommandError(output, context);
9291
10245
  }
9292
10246
  const contents = {
9293
10247
  $metadata: deserializeMetadata(output),
9294
- IntegrationAssociationSummaryList: undefined,
10248
+ InstanceSummaryList: undefined,
9295
10249
  NextToken: undefined,
9296
10250
  };
9297
10251
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
9298
- if (data.IntegrationAssociationSummaryList !== undefined && data.IntegrationAssociationSummaryList !== null) {
9299
- contents.IntegrationAssociationSummaryList = deserializeAws_restJson1IntegrationAssociationSummaryList(data.IntegrationAssociationSummaryList, context);
10252
+ if (data.InstanceSummaryList !== undefined && data.InstanceSummaryList !== null) {
10253
+ contents.InstanceSummaryList = deserializeAws_restJson1InstanceSummaryList(data.InstanceSummaryList, context);
9300
10254
  }
9301
10255
  if (data.NextToken !== undefined && data.NextToken !== null) {
9302
10256
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
9303
10257
  }
9304
10258
  return Promise.resolve(contents);
9305
10259
  };
9306
- exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = deserializeAws_restJson1ListIntegrationAssociationsCommand;
9307
- const deserializeAws_restJson1ListIntegrationAssociationsCommandError = async (output, context) => {
10260
+ exports.deserializeAws_restJson1ListInstancesCommand = deserializeAws_restJson1ListInstancesCommand;
10261
+ const deserializeAws_restJson1ListInstancesCommandError = async (output, context) => {
9308
10262
  const parsedOutput = {
9309
10263
  ...output,
9310
10264
  body: await parseBody(output.body, context),
@@ -9329,10 +10283,154 @@ const deserializeAws_restJson1ListIntegrationAssociationsCommandError = async (o
9329
10283
  $metadata: deserializeMetadata(output),
9330
10284
  };
9331
10285
  break;
9332
- case "ResourceNotFoundException":
9333
- case "com.amazonaws.connect#ResourceNotFoundException":
10286
+ default:
10287
+ const parsedBody = parsedOutput.body;
10288
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
9334
10289
  response = {
9335
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
10290
+ ...parsedBody,
10291
+ name: `${errorCode}`,
10292
+ message: parsedBody.message || parsedBody.Message || errorCode,
10293
+ $fault: "client",
10294
+ $metadata: deserializeMetadata(output),
10295
+ };
10296
+ }
10297
+ const message = response.message || response.Message || errorCode;
10298
+ response.message = message;
10299
+ delete response.Message;
10300
+ return Promise.reject(Object.assign(new Error(message), response));
10301
+ };
10302
+ const deserializeAws_restJson1ListInstanceStorageConfigsCommand = async (output, context) => {
10303
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
10304
+ return deserializeAws_restJson1ListInstanceStorageConfigsCommandError(output, context);
10305
+ }
10306
+ const contents = {
10307
+ $metadata: deserializeMetadata(output),
10308
+ NextToken: undefined,
10309
+ StorageConfigs: undefined,
10310
+ };
10311
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
10312
+ if (data.NextToken !== undefined && data.NextToken !== null) {
10313
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
10314
+ }
10315
+ if (data.StorageConfigs !== undefined && data.StorageConfigs !== null) {
10316
+ contents.StorageConfigs = deserializeAws_restJson1InstanceStorageConfigs(data.StorageConfigs, context);
10317
+ }
10318
+ return Promise.resolve(contents);
10319
+ };
10320
+ exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = deserializeAws_restJson1ListInstanceStorageConfigsCommand;
10321
+ const deserializeAws_restJson1ListInstanceStorageConfigsCommandError = async (output, context) => {
10322
+ const parsedOutput = {
10323
+ ...output,
10324
+ body: await parseBody(output.body, context),
10325
+ };
10326
+ let response;
10327
+ let errorCode = "UnknownError";
10328
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
10329
+ switch (errorCode) {
10330
+ case "InternalServiceException":
10331
+ case "com.amazonaws.connect#InternalServiceException":
10332
+ response = {
10333
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
10334
+ name: errorCode,
10335
+ $metadata: deserializeMetadata(output),
10336
+ };
10337
+ break;
10338
+ case "InvalidParameterException":
10339
+ case "com.amazonaws.connect#InvalidParameterException":
10340
+ response = {
10341
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
10342
+ name: errorCode,
10343
+ $metadata: deserializeMetadata(output),
10344
+ };
10345
+ break;
10346
+ case "InvalidRequestException":
10347
+ case "com.amazonaws.connect#InvalidRequestException":
10348
+ response = {
10349
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
10350
+ name: errorCode,
10351
+ $metadata: deserializeMetadata(output),
10352
+ };
10353
+ break;
10354
+ case "ResourceNotFoundException":
10355
+ case "com.amazonaws.connect#ResourceNotFoundException":
10356
+ response = {
10357
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
10358
+ name: errorCode,
10359
+ $metadata: deserializeMetadata(output),
10360
+ };
10361
+ break;
10362
+ case "ThrottlingException":
10363
+ case "com.amazonaws.connect#ThrottlingException":
10364
+ response = {
10365
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
10366
+ name: errorCode,
10367
+ $metadata: deserializeMetadata(output),
10368
+ };
10369
+ break;
10370
+ default:
10371
+ const parsedBody = parsedOutput.body;
10372
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
10373
+ response = {
10374
+ ...parsedBody,
10375
+ name: `${errorCode}`,
10376
+ message: parsedBody.message || parsedBody.Message || errorCode,
10377
+ $fault: "client",
10378
+ $metadata: deserializeMetadata(output),
10379
+ };
10380
+ }
10381
+ const message = response.message || response.Message || errorCode;
10382
+ response.message = message;
10383
+ delete response.Message;
10384
+ return Promise.reject(Object.assign(new Error(message), response));
10385
+ };
10386
+ const deserializeAws_restJson1ListIntegrationAssociationsCommand = async (output, context) => {
10387
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
10388
+ return deserializeAws_restJson1ListIntegrationAssociationsCommandError(output, context);
10389
+ }
10390
+ const contents = {
10391
+ $metadata: deserializeMetadata(output),
10392
+ IntegrationAssociationSummaryList: undefined,
10393
+ NextToken: undefined,
10394
+ };
10395
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
10396
+ if (data.IntegrationAssociationSummaryList !== undefined && data.IntegrationAssociationSummaryList !== null) {
10397
+ contents.IntegrationAssociationSummaryList = deserializeAws_restJson1IntegrationAssociationSummaryList(data.IntegrationAssociationSummaryList, context);
10398
+ }
10399
+ if (data.NextToken !== undefined && data.NextToken !== null) {
10400
+ contents.NextToken = smithy_client_1.expectString(data.NextToken);
10401
+ }
10402
+ return Promise.resolve(contents);
10403
+ };
10404
+ exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = deserializeAws_restJson1ListIntegrationAssociationsCommand;
10405
+ const deserializeAws_restJson1ListIntegrationAssociationsCommandError = async (output, context) => {
10406
+ const parsedOutput = {
10407
+ ...output,
10408
+ body: await parseBody(output.body, context),
10409
+ };
10410
+ let response;
10411
+ let errorCode = "UnknownError";
10412
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
10413
+ switch (errorCode) {
10414
+ case "InternalServiceException":
10415
+ case "com.amazonaws.connect#InternalServiceException":
10416
+ response = {
10417
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
10418
+ name: errorCode,
10419
+ $metadata: deserializeMetadata(output),
10420
+ };
10421
+ break;
10422
+ case "InvalidRequestException":
10423
+ case "com.amazonaws.connect#InvalidRequestException":
10424
+ response = {
10425
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
10426
+ name: errorCode,
10427
+ $metadata: deserializeMetadata(output),
10428
+ };
10429
+ break;
10430
+ case "ResourceNotFoundException":
10431
+ case "com.amazonaws.connect#ResourceNotFoundException":
10432
+ response = {
10433
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
9336
10434
  name: errorCode,
9337
10435
  $metadata: deserializeMetadata(output),
9338
10436
  };
@@ -11277,18 +12375,390 @@ const deserializeAws_restJson1StopContactRecordingCommandError = async (output,
11277
12375
  $metadata: deserializeMetadata(output),
11278
12376
  };
11279
12377
  break;
11280
- case "InvalidRequestException":
11281
- case "com.amazonaws.connect#InvalidRequestException":
12378
+ case "InvalidRequestException":
12379
+ case "com.amazonaws.connect#InvalidRequestException":
12380
+ response = {
12381
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
12382
+ name: errorCode,
12383
+ $metadata: deserializeMetadata(output),
12384
+ };
12385
+ break;
12386
+ case "ResourceNotFoundException":
12387
+ case "com.amazonaws.connect#ResourceNotFoundException":
12388
+ response = {
12389
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
12390
+ name: errorCode,
12391
+ $metadata: deserializeMetadata(output),
12392
+ };
12393
+ break;
12394
+ default:
12395
+ const parsedBody = parsedOutput.body;
12396
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
12397
+ response = {
12398
+ ...parsedBody,
12399
+ name: `${errorCode}`,
12400
+ message: parsedBody.message || parsedBody.Message || errorCode,
12401
+ $fault: "client",
12402
+ $metadata: deserializeMetadata(output),
12403
+ };
12404
+ }
12405
+ const message = response.message || response.Message || errorCode;
12406
+ response.message = message;
12407
+ delete response.Message;
12408
+ return Promise.reject(Object.assign(new Error(message), response));
12409
+ };
12410
+ const deserializeAws_restJson1StopContactStreamingCommand = async (output, context) => {
12411
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
12412
+ return deserializeAws_restJson1StopContactStreamingCommandError(output, context);
12413
+ }
12414
+ const contents = {
12415
+ $metadata: deserializeMetadata(output),
12416
+ };
12417
+ await collectBody(output.body, context);
12418
+ return Promise.resolve(contents);
12419
+ };
12420
+ exports.deserializeAws_restJson1StopContactStreamingCommand = deserializeAws_restJson1StopContactStreamingCommand;
12421
+ const deserializeAws_restJson1StopContactStreamingCommandError = async (output, context) => {
12422
+ const parsedOutput = {
12423
+ ...output,
12424
+ body: await parseBody(output.body, context),
12425
+ };
12426
+ let response;
12427
+ let errorCode = "UnknownError";
12428
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12429
+ switch (errorCode) {
12430
+ case "InternalServiceException":
12431
+ case "com.amazonaws.connect#InternalServiceException":
12432
+ response = {
12433
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
12434
+ name: errorCode,
12435
+ $metadata: deserializeMetadata(output),
12436
+ };
12437
+ break;
12438
+ case "InvalidParameterException":
12439
+ case "com.amazonaws.connect#InvalidParameterException":
12440
+ response = {
12441
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
12442
+ name: errorCode,
12443
+ $metadata: deserializeMetadata(output),
12444
+ };
12445
+ break;
12446
+ case "InvalidRequestException":
12447
+ case "com.amazonaws.connect#InvalidRequestException":
12448
+ response = {
12449
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
12450
+ name: errorCode,
12451
+ $metadata: deserializeMetadata(output),
12452
+ };
12453
+ break;
12454
+ case "ResourceNotFoundException":
12455
+ case "com.amazonaws.connect#ResourceNotFoundException":
12456
+ response = {
12457
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
12458
+ name: errorCode,
12459
+ $metadata: deserializeMetadata(output),
12460
+ };
12461
+ break;
12462
+ default:
12463
+ const parsedBody = parsedOutput.body;
12464
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
12465
+ response = {
12466
+ ...parsedBody,
12467
+ name: `${errorCode}`,
12468
+ message: parsedBody.message || parsedBody.Message || errorCode,
12469
+ $fault: "client",
12470
+ $metadata: deserializeMetadata(output),
12471
+ };
12472
+ }
12473
+ const message = response.message || response.Message || errorCode;
12474
+ response.message = message;
12475
+ delete response.Message;
12476
+ return Promise.reject(Object.assign(new Error(message), response));
12477
+ };
12478
+ const deserializeAws_restJson1SuspendContactRecordingCommand = async (output, context) => {
12479
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
12480
+ return deserializeAws_restJson1SuspendContactRecordingCommandError(output, context);
12481
+ }
12482
+ const contents = {
12483
+ $metadata: deserializeMetadata(output),
12484
+ };
12485
+ await collectBody(output.body, context);
12486
+ return Promise.resolve(contents);
12487
+ };
12488
+ exports.deserializeAws_restJson1SuspendContactRecordingCommand = deserializeAws_restJson1SuspendContactRecordingCommand;
12489
+ const deserializeAws_restJson1SuspendContactRecordingCommandError = async (output, context) => {
12490
+ const parsedOutput = {
12491
+ ...output,
12492
+ body: await parseBody(output.body, context),
12493
+ };
12494
+ let response;
12495
+ let errorCode = "UnknownError";
12496
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12497
+ switch (errorCode) {
12498
+ case "InternalServiceException":
12499
+ case "com.amazonaws.connect#InternalServiceException":
12500
+ response = {
12501
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
12502
+ name: errorCode,
12503
+ $metadata: deserializeMetadata(output),
12504
+ };
12505
+ break;
12506
+ case "InvalidRequestException":
12507
+ case "com.amazonaws.connect#InvalidRequestException":
12508
+ response = {
12509
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
12510
+ name: errorCode,
12511
+ $metadata: deserializeMetadata(output),
12512
+ };
12513
+ break;
12514
+ case "ResourceNotFoundException":
12515
+ case "com.amazonaws.connect#ResourceNotFoundException":
12516
+ response = {
12517
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
12518
+ name: errorCode,
12519
+ $metadata: deserializeMetadata(output),
12520
+ };
12521
+ break;
12522
+ default:
12523
+ const parsedBody = parsedOutput.body;
12524
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
12525
+ response = {
12526
+ ...parsedBody,
12527
+ name: `${errorCode}`,
12528
+ message: parsedBody.message || parsedBody.Message || errorCode,
12529
+ $fault: "client",
12530
+ $metadata: deserializeMetadata(output),
12531
+ };
12532
+ }
12533
+ const message = response.message || response.Message || errorCode;
12534
+ response.message = message;
12535
+ delete response.Message;
12536
+ return Promise.reject(Object.assign(new Error(message), response));
12537
+ };
12538
+ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
12539
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
12540
+ return deserializeAws_restJson1TagResourceCommandError(output, context);
12541
+ }
12542
+ const contents = {
12543
+ $metadata: deserializeMetadata(output),
12544
+ };
12545
+ await collectBody(output.body, context);
12546
+ return Promise.resolve(contents);
12547
+ };
12548
+ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
12549
+ const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
12550
+ const parsedOutput = {
12551
+ ...output,
12552
+ body: await parseBody(output.body, context),
12553
+ };
12554
+ let response;
12555
+ let errorCode = "UnknownError";
12556
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12557
+ switch (errorCode) {
12558
+ case "InternalServiceException":
12559
+ case "com.amazonaws.connect#InternalServiceException":
12560
+ response = {
12561
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
12562
+ name: errorCode,
12563
+ $metadata: deserializeMetadata(output),
12564
+ };
12565
+ break;
12566
+ case "InvalidParameterException":
12567
+ case "com.amazonaws.connect#InvalidParameterException":
12568
+ response = {
12569
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
12570
+ name: errorCode,
12571
+ $metadata: deserializeMetadata(output),
12572
+ };
12573
+ break;
12574
+ case "InvalidRequestException":
12575
+ case "com.amazonaws.connect#InvalidRequestException":
12576
+ response = {
12577
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
12578
+ name: errorCode,
12579
+ $metadata: deserializeMetadata(output),
12580
+ };
12581
+ break;
12582
+ case "ResourceNotFoundException":
12583
+ case "com.amazonaws.connect#ResourceNotFoundException":
12584
+ response = {
12585
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
12586
+ name: errorCode,
12587
+ $metadata: deserializeMetadata(output),
12588
+ };
12589
+ break;
12590
+ case "ThrottlingException":
12591
+ case "com.amazonaws.connect#ThrottlingException":
12592
+ response = {
12593
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
12594
+ name: errorCode,
12595
+ $metadata: deserializeMetadata(output),
12596
+ };
12597
+ break;
12598
+ default:
12599
+ const parsedBody = parsedOutput.body;
12600
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
12601
+ response = {
12602
+ ...parsedBody,
12603
+ name: `${errorCode}`,
12604
+ message: parsedBody.message || parsedBody.Message || errorCode,
12605
+ $fault: "client",
12606
+ $metadata: deserializeMetadata(output),
12607
+ };
12608
+ }
12609
+ const message = response.message || response.Message || errorCode;
12610
+ response.message = message;
12611
+ delete response.Message;
12612
+ return Promise.reject(Object.assign(new Error(message), response));
12613
+ };
12614
+ const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
12615
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
12616
+ return deserializeAws_restJson1UntagResourceCommandError(output, context);
12617
+ }
12618
+ const contents = {
12619
+ $metadata: deserializeMetadata(output),
12620
+ };
12621
+ await collectBody(output.body, context);
12622
+ return Promise.resolve(contents);
12623
+ };
12624
+ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
12625
+ const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
12626
+ const parsedOutput = {
12627
+ ...output,
12628
+ body: await parseBody(output.body, context),
12629
+ };
12630
+ let response;
12631
+ let errorCode = "UnknownError";
12632
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12633
+ switch (errorCode) {
12634
+ case "InternalServiceException":
12635
+ case "com.amazonaws.connect#InternalServiceException":
12636
+ response = {
12637
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
12638
+ name: errorCode,
12639
+ $metadata: deserializeMetadata(output),
12640
+ };
12641
+ break;
12642
+ case "InvalidParameterException":
12643
+ case "com.amazonaws.connect#InvalidParameterException":
12644
+ response = {
12645
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
12646
+ name: errorCode,
12647
+ $metadata: deserializeMetadata(output),
12648
+ };
12649
+ break;
12650
+ case "InvalidRequestException":
12651
+ case "com.amazonaws.connect#InvalidRequestException":
12652
+ response = {
12653
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
12654
+ name: errorCode,
12655
+ $metadata: deserializeMetadata(output),
12656
+ };
12657
+ break;
12658
+ case "ResourceNotFoundException":
12659
+ case "com.amazonaws.connect#ResourceNotFoundException":
12660
+ response = {
12661
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
12662
+ name: errorCode,
12663
+ $metadata: deserializeMetadata(output),
12664
+ };
12665
+ break;
12666
+ case "ThrottlingException":
12667
+ case "com.amazonaws.connect#ThrottlingException":
12668
+ response = {
12669
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
12670
+ name: errorCode,
12671
+ $metadata: deserializeMetadata(output),
12672
+ };
12673
+ break;
12674
+ default:
12675
+ const parsedBody = parsedOutput.body;
12676
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
12677
+ response = {
12678
+ ...parsedBody,
12679
+ name: `${errorCode}`,
12680
+ message: parsedBody.message || parsedBody.Message || errorCode,
12681
+ $fault: "client",
12682
+ $metadata: deserializeMetadata(output),
12683
+ };
12684
+ }
12685
+ const message = response.message || response.Message || errorCode;
12686
+ response.message = message;
12687
+ delete response.Message;
12688
+ return Promise.reject(Object.assign(new Error(message), response));
12689
+ };
12690
+ const deserializeAws_restJson1UpdateAgentStatusCommand = async (output, context) => {
12691
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
12692
+ return deserializeAws_restJson1UpdateAgentStatusCommandError(output, context);
12693
+ }
12694
+ const contents = {
12695
+ $metadata: deserializeMetadata(output),
12696
+ };
12697
+ await collectBody(output.body, context);
12698
+ return Promise.resolve(contents);
12699
+ };
12700
+ exports.deserializeAws_restJson1UpdateAgentStatusCommand = deserializeAws_restJson1UpdateAgentStatusCommand;
12701
+ const deserializeAws_restJson1UpdateAgentStatusCommandError = async (output, context) => {
12702
+ const parsedOutput = {
12703
+ ...output,
12704
+ body: await parseBody(output.body, context),
12705
+ };
12706
+ let response;
12707
+ let errorCode = "UnknownError";
12708
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12709
+ switch (errorCode) {
12710
+ case "DuplicateResourceException":
12711
+ case "com.amazonaws.connect#DuplicateResourceException":
12712
+ response = {
12713
+ ...(await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)),
12714
+ name: errorCode,
12715
+ $metadata: deserializeMetadata(output),
12716
+ };
12717
+ break;
12718
+ case "InternalServiceException":
12719
+ case "com.amazonaws.connect#InternalServiceException":
12720
+ response = {
12721
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
12722
+ name: errorCode,
12723
+ $metadata: deserializeMetadata(output),
12724
+ };
12725
+ break;
12726
+ case "InvalidParameterException":
12727
+ case "com.amazonaws.connect#InvalidParameterException":
12728
+ response = {
12729
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
12730
+ name: errorCode,
12731
+ $metadata: deserializeMetadata(output),
12732
+ };
12733
+ break;
12734
+ case "InvalidRequestException":
12735
+ case "com.amazonaws.connect#InvalidRequestException":
12736
+ response = {
12737
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
12738
+ name: errorCode,
12739
+ $metadata: deserializeMetadata(output),
12740
+ };
12741
+ break;
12742
+ case "LimitExceededException":
12743
+ case "com.amazonaws.connect#LimitExceededException":
12744
+ response = {
12745
+ ...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
12746
+ name: errorCode,
12747
+ $metadata: deserializeMetadata(output),
12748
+ };
12749
+ break;
12750
+ case "ResourceNotFoundException":
12751
+ case "com.amazonaws.connect#ResourceNotFoundException":
11282
12752
  response = {
11283
- ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
12753
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
11284
12754
  name: errorCode,
11285
12755
  $metadata: deserializeMetadata(output),
11286
12756
  };
11287
12757
  break;
11288
- case "ResourceNotFoundException":
11289
- case "com.amazonaws.connect#ResourceNotFoundException":
12758
+ case "ThrottlingException":
12759
+ case "com.amazonaws.connect#ThrottlingException":
11290
12760
  response = {
11291
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
12761
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
11292
12762
  name: errorCode,
11293
12763
  $metadata: deserializeMetadata(output),
11294
12764
  };
@@ -11309,9 +12779,9 @@ const deserializeAws_restJson1StopContactRecordingCommandError = async (output,
11309
12779
  delete response.Message;
11310
12780
  return Promise.reject(Object.assign(new Error(message), response));
11311
12781
  };
11312
- const deserializeAws_restJson1StopContactStreamingCommand = async (output, context) => {
12782
+ const deserializeAws_restJson1UpdateContactCommand = async (output, context) => {
11313
12783
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11314
- return deserializeAws_restJson1StopContactStreamingCommandError(output, context);
12784
+ return deserializeAws_restJson1UpdateContactCommandError(output, context);
11315
12785
  }
11316
12786
  const contents = {
11317
12787
  $metadata: deserializeMetadata(output),
@@ -11319,8 +12789,8 @@ const deserializeAws_restJson1StopContactStreamingCommand = async (output, conte
11319
12789
  await collectBody(output.body, context);
11320
12790
  return Promise.resolve(contents);
11321
12791
  };
11322
- exports.deserializeAws_restJson1StopContactStreamingCommand = deserializeAws_restJson1StopContactStreamingCommand;
11323
- const deserializeAws_restJson1StopContactStreamingCommandError = async (output, context) => {
12792
+ exports.deserializeAws_restJson1UpdateContactCommand = deserializeAws_restJson1UpdateContactCommand;
12793
+ const deserializeAws_restJson1UpdateContactCommandError = async (output, context) => {
11324
12794
  const parsedOutput = {
11325
12795
  ...output,
11326
12796
  body: await parseBody(output.body, context),
@@ -11361,6 +12831,14 @@ const deserializeAws_restJson1StopContactStreamingCommandError = async (output,
11361
12831
  $metadata: deserializeMetadata(output),
11362
12832
  };
11363
12833
  break;
12834
+ case "ThrottlingException":
12835
+ case "com.amazonaws.connect#ThrottlingException":
12836
+ response = {
12837
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
12838
+ name: errorCode,
12839
+ $metadata: deserializeMetadata(output),
12840
+ };
12841
+ break;
11364
12842
  default:
11365
12843
  const parsedBody = parsedOutput.body;
11366
12844
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -11377,9 +12855,9 @@ const deserializeAws_restJson1StopContactStreamingCommandError = async (output,
11377
12855
  delete response.Message;
11378
12856
  return Promise.reject(Object.assign(new Error(message), response));
11379
12857
  };
11380
- const deserializeAws_restJson1SuspendContactRecordingCommand = async (output, context) => {
12858
+ const deserializeAws_restJson1UpdateContactAttributesCommand = async (output, context) => {
11381
12859
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11382
- return deserializeAws_restJson1SuspendContactRecordingCommandError(output, context);
12860
+ return deserializeAws_restJson1UpdateContactAttributesCommandError(output, context);
11383
12861
  }
11384
12862
  const contents = {
11385
12863
  $metadata: deserializeMetadata(output),
@@ -11387,8 +12865,8 @@ const deserializeAws_restJson1SuspendContactRecordingCommand = async (output, co
11387
12865
  await collectBody(output.body, context);
11388
12866
  return Promise.resolve(contents);
11389
12867
  };
11390
- exports.deserializeAws_restJson1SuspendContactRecordingCommand = deserializeAws_restJson1SuspendContactRecordingCommand;
11391
- const deserializeAws_restJson1SuspendContactRecordingCommandError = async (output, context) => {
12868
+ exports.deserializeAws_restJson1UpdateContactAttributesCommand = deserializeAws_restJson1UpdateContactAttributesCommand;
12869
+ const deserializeAws_restJson1UpdateContactAttributesCommandError = async (output, context) => {
11392
12870
  const parsedOutput = {
11393
12871
  ...output,
11394
12872
  body: await parseBody(output.body, context),
@@ -11405,6 +12883,14 @@ const deserializeAws_restJson1SuspendContactRecordingCommandError = async (outpu
11405
12883
  $metadata: deserializeMetadata(output),
11406
12884
  };
11407
12885
  break;
12886
+ case "InvalidParameterException":
12887
+ case "com.amazonaws.connect#InvalidParameterException":
12888
+ response = {
12889
+ ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
12890
+ name: errorCode,
12891
+ $metadata: deserializeMetadata(output),
12892
+ };
12893
+ break;
11408
12894
  case "InvalidRequestException":
11409
12895
  case "com.amazonaws.connect#InvalidRequestException":
11410
12896
  response = {
@@ -11437,9 +12923,9 @@ const deserializeAws_restJson1SuspendContactRecordingCommandError = async (outpu
11437
12923
  delete response.Message;
11438
12924
  return Promise.reject(Object.assign(new Error(message), response));
11439
12925
  };
11440
- const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
12926
+ const deserializeAws_restJson1UpdateContactFlowContentCommand = async (output, context) => {
11441
12927
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11442
- return deserializeAws_restJson1TagResourceCommandError(output, context);
12928
+ return deserializeAws_restJson1UpdateContactFlowContentCommandError(output, context);
11443
12929
  }
11444
12930
  const contents = {
11445
12931
  $metadata: deserializeMetadata(output),
@@ -11447,8 +12933,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
11447
12933
  await collectBody(output.body, context);
11448
12934
  return Promise.resolve(contents);
11449
12935
  };
11450
- exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
11451
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
12936
+ exports.deserializeAws_restJson1UpdateContactFlowContentCommand = deserializeAws_restJson1UpdateContactFlowContentCommand;
12937
+ const deserializeAws_restJson1UpdateContactFlowContentCommandError = async (output, context) => {
11452
12938
  const parsedOutput = {
11453
12939
  ...output,
11454
12940
  body: await parseBody(output.body, context),
@@ -11465,6 +12951,14 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
11465
12951
  $metadata: deserializeMetadata(output),
11466
12952
  };
11467
12953
  break;
12954
+ case "InvalidContactFlowException":
12955
+ case "com.amazonaws.connect#InvalidContactFlowException":
12956
+ response = {
12957
+ ...(await deserializeAws_restJson1InvalidContactFlowExceptionResponse(parsedOutput, context)),
12958
+ name: errorCode,
12959
+ $metadata: deserializeMetadata(output),
12960
+ };
12961
+ break;
11468
12962
  case "InvalidParameterException":
11469
12963
  case "com.amazonaws.connect#InvalidParameterException":
11470
12964
  response = {
@@ -11513,9 +13007,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
11513
13007
  delete response.Message;
11514
13008
  return Promise.reject(Object.assign(new Error(message), response));
11515
13009
  };
11516
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
13010
+ const deserializeAws_restJson1UpdateContactFlowMetadataCommand = async (output, context) => {
11517
13011
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11518
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
13012
+ return deserializeAws_restJson1UpdateContactFlowMetadataCommandError(output, context);
11519
13013
  }
11520
13014
  const contents = {
11521
13015
  $metadata: deserializeMetadata(output),
@@ -11523,8 +13017,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
11523
13017
  await collectBody(output.body, context);
11524
13018
  return Promise.resolve(contents);
11525
13019
  };
11526
- exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
11527
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
13020
+ exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = deserializeAws_restJson1UpdateContactFlowMetadataCommand;
13021
+ const deserializeAws_restJson1UpdateContactFlowMetadataCommandError = async (output, context) => {
11528
13022
  const parsedOutput = {
11529
13023
  ...output,
11530
13024
  body: await parseBody(output.body, context),
@@ -11533,6 +13027,14 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
11533
13027
  let errorCode = "UnknownError";
11534
13028
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11535
13029
  switch (errorCode) {
13030
+ case "DuplicateResourceException":
13031
+ case "com.amazonaws.connect#DuplicateResourceException":
13032
+ response = {
13033
+ ...(await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)),
13034
+ name: errorCode,
13035
+ $metadata: deserializeMetadata(output),
13036
+ };
13037
+ break;
11536
13038
  case "InternalServiceException":
11537
13039
  case "com.amazonaws.connect#InternalServiceException":
11538
13040
  response = {
@@ -11589,9 +13091,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
11589
13091
  delete response.Message;
11590
13092
  return Promise.reject(Object.assign(new Error(message), response));
11591
13093
  };
11592
- const deserializeAws_restJson1UpdateAgentStatusCommand = async (output, context) => {
13094
+ const deserializeAws_restJson1UpdateContactFlowModuleContentCommand = async (output, context) => {
11593
13095
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11594
- return deserializeAws_restJson1UpdateAgentStatusCommandError(output, context);
13096
+ return deserializeAws_restJson1UpdateContactFlowModuleContentCommandError(output, context);
11595
13097
  }
11596
13098
  const contents = {
11597
13099
  $metadata: deserializeMetadata(output),
@@ -11599,8 +13101,8 @@ const deserializeAws_restJson1UpdateAgentStatusCommand = async (output, context)
11599
13101
  await collectBody(output.body, context);
11600
13102
  return Promise.resolve(contents);
11601
13103
  };
11602
- exports.deserializeAws_restJson1UpdateAgentStatusCommand = deserializeAws_restJson1UpdateAgentStatusCommand;
11603
- const deserializeAws_restJson1UpdateAgentStatusCommandError = async (output, context) => {
13104
+ exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = deserializeAws_restJson1UpdateContactFlowModuleContentCommand;
13105
+ const deserializeAws_restJson1UpdateContactFlowModuleContentCommandError = async (output, context) => {
11604
13106
  const parsedOutput = {
11605
13107
  ...output,
11606
13108
  body: await parseBody(output.body, context),
@@ -11609,10 +13111,10 @@ const deserializeAws_restJson1UpdateAgentStatusCommandError = async (output, con
11609
13111
  let errorCode = "UnknownError";
11610
13112
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11611
13113
  switch (errorCode) {
11612
- case "DuplicateResourceException":
11613
- case "com.amazonaws.connect#DuplicateResourceException":
13114
+ case "AccessDeniedException":
13115
+ case "com.amazonaws.connect#AccessDeniedException":
11614
13116
  response = {
11615
- ...(await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)),
13117
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
11616
13118
  name: errorCode,
11617
13119
  $metadata: deserializeMetadata(output),
11618
13120
  };
@@ -11625,10 +13127,10 @@ const deserializeAws_restJson1UpdateAgentStatusCommandError = async (output, con
11625
13127
  $metadata: deserializeMetadata(output),
11626
13128
  };
11627
13129
  break;
11628
- case "InvalidParameterException":
11629
- case "com.amazonaws.connect#InvalidParameterException":
13130
+ case "InvalidContactFlowModuleException":
13131
+ case "com.amazonaws.connect#InvalidContactFlowModuleException":
11630
13132
  response = {
11631
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
13133
+ ...(await deserializeAws_restJson1InvalidContactFlowModuleExceptionResponse(parsedOutput, context)),
11632
13134
  name: errorCode,
11633
13135
  $metadata: deserializeMetadata(output),
11634
13136
  };
@@ -11641,14 +13143,6 @@ const deserializeAws_restJson1UpdateAgentStatusCommandError = async (output, con
11641
13143
  $metadata: deserializeMetadata(output),
11642
13144
  };
11643
13145
  break;
11644
- case "LimitExceededException":
11645
- case "com.amazonaws.connect#LimitExceededException":
11646
- response = {
11647
- ...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
11648
- name: errorCode,
11649
- $metadata: deserializeMetadata(output),
11650
- };
11651
- break;
11652
13146
  case "ResourceNotFoundException":
11653
13147
  case "com.amazonaws.connect#ResourceNotFoundException":
11654
13148
  response = {
@@ -11681,9 +13175,9 @@ const deserializeAws_restJson1UpdateAgentStatusCommandError = async (output, con
11681
13175
  delete response.Message;
11682
13176
  return Promise.reject(Object.assign(new Error(message), response));
11683
13177
  };
11684
- const deserializeAws_restJson1UpdateContactAttributesCommand = async (output, context) => {
13178
+ const deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = async (output, context) => {
11685
13179
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11686
- return deserializeAws_restJson1UpdateContactAttributesCommandError(output, context);
13180
+ return deserializeAws_restJson1UpdateContactFlowModuleMetadataCommandError(output, context);
11687
13181
  }
11688
13182
  const contents = {
11689
13183
  $metadata: deserializeMetadata(output),
@@ -11691,8 +13185,8 @@ const deserializeAws_restJson1UpdateContactAttributesCommand = async (output, co
11691
13185
  await collectBody(output.body, context);
11692
13186
  return Promise.resolve(contents);
11693
13187
  };
11694
- exports.deserializeAws_restJson1UpdateContactAttributesCommand = deserializeAws_restJson1UpdateContactAttributesCommand;
11695
- const deserializeAws_restJson1UpdateContactAttributesCommandError = async (output, context) => {
13188
+ exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand;
13189
+ const deserializeAws_restJson1UpdateContactFlowModuleMetadataCommandError = async (output, context) => {
11696
13190
  const parsedOutput = {
11697
13191
  ...output,
11698
13192
  body: await parseBody(output.body, context),
@@ -11701,6 +13195,22 @@ const deserializeAws_restJson1UpdateContactAttributesCommandError = async (outpu
11701
13195
  let errorCode = "UnknownError";
11702
13196
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11703
13197
  switch (errorCode) {
13198
+ case "AccessDeniedException":
13199
+ case "com.amazonaws.connect#AccessDeniedException":
13200
+ response = {
13201
+ ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
13202
+ name: errorCode,
13203
+ $metadata: deserializeMetadata(output),
13204
+ };
13205
+ break;
13206
+ case "DuplicateResourceException":
13207
+ case "com.amazonaws.connect#DuplicateResourceException":
13208
+ response = {
13209
+ ...(await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)),
13210
+ name: errorCode,
13211
+ $metadata: deserializeMetadata(output),
13212
+ };
13213
+ break;
11704
13214
  case "InternalServiceException":
11705
13215
  case "com.amazonaws.connect#InternalServiceException":
11706
13216
  response = {
@@ -11733,6 +13243,14 @@ const deserializeAws_restJson1UpdateContactAttributesCommandError = async (outpu
11733
13243
  $metadata: deserializeMetadata(output),
11734
13244
  };
11735
13245
  break;
13246
+ case "ThrottlingException":
13247
+ case "com.amazonaws.connect#ThrottlingException":
13248
+ response = {
13249
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
13250
+ name: errorCode,
13251
+ $metadata: deserializeMetadata(output),
13252
+ };
13253
+ break;
11736
13254
  default:
11737
13255
  const parsedBody = parsedOutput.body;
11738
13256
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -11749,9 +13267,9 @@ const deserializeAws_restJson1UpdateContactAttributesCommandError = async (outpu
11749
13267
  delete response.Message;
11750
13268
  return Promise.reject(Object.assign(new Error(message), response));
11751
13269
  };
11752
- const deserializeAws_restJson1UpdateContactFlowContentCommand = async (output, context) => {
13270
+ const deserializeAws_restJson1UpdateContactFlowNameCommand = async (output, context) => {
11753
13271
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11754
- return deserializeAws_restJson1UpdateContactFlowContentCommandError(output, context);
13272
+ return deserializeAws_restJson1UpdateContactFlowNameCommandError(output, context);
11755
13273
  }
11756
13274
  const contents = {
11757
13275
  $metadata: deserializeMetadata(output),
@@ -11759,8 +13277,8 @@ const deserializeAws_restJson1UpdateContactFlowContentCommand = async (output, c
11759
13277
  await collectBody(output.body, context);
11760
13278
  return Promise.resolve(contents);
11761
13279
  };
11762
- exports.deserializeAws_restJson1UpdateContactFlowContentCommand = deserializeAws_restJson1UpdateContactFlowContentCommand;
11763
- const deserializeAws_restJson1UpdateContactFlowContentCommandError = async (output, context) => {
13280
+ exports.deserializeAws_restJson1UpdateContactFlowNameCommand = deserializeAws_restJson1UpdateContactFlowNameCommand;
13281
+ const deserializeAws_restJson1UpdateContactFlowNameCommandError = async (output, context) => {
11764
13282
  const parsedOutput = {
11765
13283
  ...output,
11766
13284
  body: await parseBody(output.body, context),
@@ -11769,18 +13287,18 @@ const deserializeAws_restJson1UpdateContactFlowContentCommandError = async (outp
11769
13287
  let errorCode = "UnknownError";
11770
13288
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11771
13289
  switch (errorCode) {
11772
- case "InternalServiceException":
11773
- case "com.amazonaws.connect#InternalServiceException":
13290
+ case "DuplicateResourceException":
13291
+ case "com.amazonaws.connect#DuplicateResourceException":
11774
13292
  response = {
11775
- ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
13293
+ ...(await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)),
11776
13294
  name: errorCode,
11777
13295
  $metadata: deserializeMetadata(output),
11778
13296
  };
11779
13297
  break;
11780
- case "InvalidContactFlowException":
11781
- case "com.amazonaws.connect#InvalidContactFlowException":
13298
+ case "InternalServiceException":
13299
+ case "com.amazonaws.connect#InternalServiceException":
11782
13300
  response = {
11783
- ...(await deserializeAws_restJson1InvalidContactFlowExceptionResponse(parsedOutput, context)),
13301
+ ...(await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)),
11784
13302
  name: errorCode,
11785
13303
  $metadata: deserializeMetadata(output),
11786
13304
  };
@@ -11833,9 +13351,9 @@ const deserializeAws_restJson1UpdateContactFlowContentCommandError = async (outp
11833
13351
  delete response.Message;
11834
13352
  return Promise.reject(Object.assign(new Error(message), response));
11835
13353
  };
11836
- const deserializeAws_restJson1UpdateContactFlowNameCommand = async (output, context) => {
13354
+ const deserializeAws_restJson1UpdateContactScheduleCommand = async (output, context) => {
11837
13355
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11838
- return deserializeAws_restJson1UpdateContactFlowNameCommandError(output, context);
13356
+ return deserializeAws_restJson1UpdateContactScheduleCommandError(output, context);
11839
13357
  }
11840
13358
  const contents = {
11841
13359
  $metadata: deserializeMetadata(output),
@@ -11843,8 +13361,8 @@ const deserializeAws_restJson1UpdateContactFlowNameCommand = async (output, cont
11843
13361
  await collectBody(output.body, context);
11844
13362
  return Promise.resolve(contents);
11845
13363
  };
11846
- exports.deserializeAws_restJson1UpdateContactFlowNameCommand = deserializeAws_restJson1UpdateContactFlowNameCommand;
11847
- const deserializeAws_restJson1UpdateContactFlowNameCommandError = async (output, context) => {
13364
+ exports.deserializeAws_restJson1UpdateContactScheduleCommand = deserializeAws_restJson1UpdateContactScheduleCommand;
13365
+ const deserializeAws_restJson1UpdateContactScheduleCommandError = async (output, context) => {
11848
13366
  const parsedOutput = {
11849
13367
  ...output,
11850
13368
  body: await parseBody(output.body, context),
@@ -11853,14 +13371,6 @@ const deserializeAws_restJson1UpdateContactFlowNameCommandError = async (output,
11853
13371
  let errorCode = "UnknownError";
11854
13372
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
11855
13373
  switch (errorCode) {
11856
- case "DuplicateResourceException":
11857
- case "com.amazonaws.connect#DuplicateResourceException":
11858
- response = {
11859
- ...(await deserializeAws_restJson1DuplicateResourceExceptionResponse(parsedOutput, context)),
11860
- name: errorCode,
11861
- $metadata: deserializeMetadata(output),
11862
- };
11863
- break;
11864
13374
  case "InternalServiceException":
11865
13375
  case "com.amazonaws.connect#InternalServiceException":
11866
13376
  response = {
@@ -11885,6 +13395,14 @@ const deserializeAws_restJson1UpdateContactFlowNameCommandError = async (output,
11885
13395
  $metadata: deserializeMetadata(output),
11886
13396
  };
11887
13397
  break;
13398
+ case "LimitExceededException":
13399
+ case "com.amazonaws.connect#LimitExceededException":
13400
+ response = {
13401
+ ...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
13402
+ name: errorCode,
13403
+ $metadata: deserializeMetadata(output),
13404
+ };
13405
+ break;
11888
13406
  case "ResourceNotFoundException":
11889
13407
  case "com.amazonaws.connect#ResourceNotFoundException":
11890
13408
  response = {
@@ -13694,6 +15212,19 @@ const deserializeAws_restJson1DuplicateResourceExceptionResponse = async (parsed
13694
15212
  }
13695
15213
  return contents;
13696
15214
  };
15215
+ const deserializeAws_restJson1IdempotencyExceptionResponse = async (parsedOutput, context) => {
15216
+ const contents = {
15217
+ name: "IdempotencyException",
15218
+ $fault: "client",
15219
+ $metadata: deserializeMetadata(parsedOutput),
15220
+ Message: undefined,
15221
+ };
15222
+ const data = parsedOutput.body;
15223
+ if (data.Message !== undefined && data.Message !== null) {
15224
+ contents.Message = smithy_client_1.expectString(data.Message);
15225
+ }
15226
+ return contents;
15227
+ };
13697
15228
  const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOutput, context) => {
13698
15229
  const contents = {
13699
15230
  name: "InternalServiceException",
@@ -13720,6 +15251,19 @@ const deserializeAws_restJson1InvalidContactFlowExceptionResponse = async (parse
13720
15251
  }
13721
15252
  return contents;
13722
15253
  };
15254
+ const deserializeAws_restJson1InvalidContactFlowModuleExceptionResponse = async (parsedOutput, context) => {
15255
+ const contents = {
15256
+ name: "InvalidContactFlowModuleException",
15257
+ $fault: "client",
15258
+ $metadata: deserializeMetadata(parsedOutput),
15259
+ Problems: undefined,
15260
+ };
15261
+ const data = parsedOutput.body;
15262
+ if (data.Problems !== undefined && data.Problems !== null) {
15263
+ contents.Problems = deserializeAws_restJson1Problems(data.Problems, context);
15264
+ }
15265
+ return contents;
15266
+ };
13723
15267
  const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
13724
15268
  const contents = {
13725
15269
  name: "InvalidParameterException",
@@ -14271,6 +15815,14 @@ const serializeAws_restJson1VoiceRecordingConfiguration = (input, context) => {
14271
15815
  input.VoiceRecordingTrack !== null && { VoiceRecordingTrack: input.VoiceRecordingTrack }),
14272
15816
  };
14273
15817
  };
15818
+ const deserializeAws_restJson1AgentInfo = (output, context) => {
15819
+ return {
15820
+ ConnectedToAgentTimestamp: output.ConnectedToAgentTimestamp !== undefined && output.ConnectedToAgentTimestamp !== null
15821
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ConnectedToAgentTimestamp)))
15822
+ : undefined,
15823
+ Id: smithy_client_1.expectString(output.Id),
15824
+ };
15825
+ };
14274
15826
  const deserializeAws_restJson1AgentStatus = (output, context) => {
14275
15827
  return {
14276
15828
  AgentStatusARN: smithy_client_1.expectString(output.AgentStatusARN),
@@ -14303,6 +15855,13 @@ const deserializeAws_restJson1AgentStatusSummaryList = (output, context) => {
14303
15855
  return deserializeAws_restJson1AgentStatusSummary(entry, context);
14304
15856
  });
14305
15857
  };
15858
+ const deserializeAws_restJson1AttachmentReference = (output, context) => {
15859
+ return {
15860
+ Name: smithy_client_1.expectString(output.Name),
15861
+ Status: smithy_client_1.expectString(output.Status),
15862
+ Value: smithy_client_1.expectString(output.Value),
15863
+ };
15864
+ };
14306
15865
  const deserializeAws_restJson1Attribute = (output, context) => {
14307
15866
  return {
14308
15867
  AttributeType: smithy_client_1.expectString(output.AttributeType),
@@ -14330,6 +15889,36 @@ const deserializeAws_restJson1AttributesList = (output, context) => {
14330
15889
  return deserializeAws_restJson1Attribute(entry, context);
14331
15890
  });
14332
15891
  };
15892
+ const deserializeAws_restJson1Contact = (output, context) => {
15893
+ return {
15894
+ AgentInfo: output.AgentInfo !== undefined && output.AgentInfo !== null
15895
+ ? deserializeAws_restJson1AgentInfo(output.AgentInfo, context)
15896
+ : undefined,
15897
+ Arn: smithy_client_1.expectString(output.Arn),
15898
+ Channel: smithy_client_1.expectString(output.Channel),
15899
+ Description: smithy_client_1.expectString(output.Description),
15900
+ DisconnectTimestamp: output.DisconnectTimestamp !== undefined && output.DisconnectTimestamp !== null
15901
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DisconnectTimestamp)))
15902
+ : undefined,
15903
+ Id: smithy_client_1.expectString(output.Id),
15904
+ InitialContactId: smithy_client_1.expectString(output.InitialContactId),
15905
+ InitiationMethod: smithy_client_1.expectString(output.InitiationMethod),
15906
+ InitiationTimestamp: output.InitiationTimestamp !== undefined && output.InitiationTimestamp !== null
15907
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.InitiationTimestamp)))
15908
+ : undefined,
15909
+ LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
15910
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastUpdateTimestamp)))
15911
+ : undefined,
15912
+ Name: smithy_client_1.expectString(output.Name),
15913
+ PreviousContactId: smithy_client_1.expectString(output.PreviousContactId),
15914
+ QueueInfo: output.QueueInfo !== undefined && output.QueueInfo !== null
15915
+ ? deserializeAws_restJson1QueueInfo(output.QueueInfo, context)
15916
+ : undefined,
15917
+ ScheduledTimestamp: output.ScheduledTimestamp !== undefined && output.ScheduledTimestamp !== null
15918
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ScheduledTimestamp)))
15919
+ : undefined,
15920
+ };
15921
+ };
14333
15922
  const deserializeAws_restJson1ContactFlow = (output, context) => {
14334
15923
  return {
14335
15924
  Arn: smithy_client_1.expectString(output.Arn),
@@ -14337,15 +15926,49 @@ const deserializeAws_restJson1ContactFlow = (output, context) => {
14337
15926
  Description: smithy_client_1.expectString(output.Description),
14338
15927
  Id: smithy_client_1.expectString(output.Id),
14339
15928
  Name: smithy_client_1.expectString(output.Name),
15929
+ State: smithy_client_1.expectString(output.State),
14340
15930
  Tags: output.Tags !== undefined && output.Tags !== null
14341
15931
  ? deserializeAws_restJson1TagMap(output.Tags, context)
14342
15932
  : undefined,
14343
15933
  Type: smithy_client_1.expectString(output.Type),
14344
15934
  };
14345
15935
  };
15936
+ const deserializeAws_restJson1ContactFlowModule = (output, context) => {
15937
+ return {
15938
+ Arn: smithy_client_1.expectString(output.Arn),
15939
+ Content: smithy_client_1.expectString(output.Content),
15940
+ Description: smithy_client_1.expectString(output.Description),
15941
+ Id: smithy_client_1.expectString(output.Id),
15942
+ Name: smithy_client_1.expectString(output.Name),
15943
+ State: smithy_client_1.expectString(output.State),
15944
+ Status: smithy_client_1.expectString(output.Status),
15945
+ Tags: output.Tags !== undefined && output.Tags !== null
15946
+ ? deserializeAws_restJson1TagMap(output.Tags, context)
15947
+ : undefined,
15948
+ };
15949
+ };
15950
+ const deserializeAws_restJson1ContactFlowModulesSummaryList = (output, context) => {
15951
+ return (output || [])
15952
+ .filter((e) => e != null)
15953
+ .map((entry) => {
15954
+ if (entry === null) {
15955
+ return null;
15956
+ }
15957
+ return deserializeAws_restJson1ContactFlowModuleSummary(entry, context);
15958
+ });
15959
+ };
15960
+ const deserializeAws_restJson1ContactFlowModuleSummary = (output, context) => {
15961
+ return {
15962
+ Arn: smithy_client_1.expectString(output.Arn),
15963
+ Id: smithy_client_1.expectString(output.Id),
15964
+ Name: smithy_client_1.expectString(output.Name),
15965
+ State: smithy_client_1.expectString(output.State),
15966
+ };
15967
+ };
14346
15968
  const deserializeAws_restJson1ContactFlowSummary = (output, context) => {
14347
15969
  return {
14348
15970
  Arn: smithy_client_1.expectString(output.Arn),
15971
+ ContactFlowState: smithy_client_1.expectString(output.ContactFlowState),
14349
15972
  ContactFlowType: smithy_client_1.expectString(output.ContactFlowType),
14350
15973
  Id: smithy_client_1.expectString(output.Id),
14351
15974
  Name: smithy_client_1.expectString(output.Name),
@@ -14895,6 +16518,14 @@ const deserializeAws_restJson1Queue = (output, context) => {
14895
16518
  : undefined,
14896
16519
  };
14897
16520
  };
16521
+ const deserializeAws_restJson1QueueInfo = (output, context) => {
16522
+ return {
16523
+ EnqueueTimestamp: output.EnqueueTimestamp !== undefined && output.EnqueueTimestamp !== null
16524
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.EnqueueTimestamp)))
16525
+ : undefined,
16526
+ Id: smithy_client_1.expectString(output.Id),
16527
+ };
16528
+ };
14898
16529
  const deserializeAws_restJson1QueueQuickConnectConfig = (output, context) => {
14899
16530
  return {
14900
16531
  ContactFlowId: smithy_client_1.expectString(output.ContactFlowId),
@@ -14971,6 +16602,29 @@ const deserializeAws_restJson1QuickConnectSummaryList = (output, context) => {
14971
16602
  return deserializeAws_restJson1QuickConnectSummary(entry, context);
14972
16603
  });
14973
16604
  };
16605
+ const deserializeAws_restJson1ReferenceSummary = (output, context) => {
16606
+ if (output.Attachment !== undefined && output.Attachment !== null) {
16607
+ return {
16608
+ Attachment: deserializeAws_restJson1AttachmentReference(output.Attachment, context),
16609
+ };
16610
+ }
16611
+ if (output.Url !== undefined && output.Url !== null) {
16612
+ return {
16613
+ Url: deserializeAws_restJson1UrlReference(output.Url, context),
16614
+ };
16615
+ }
16616
+ return { $unknown: Object.entries(output)[0] };
16617
+ };
16618
+ const deserializeAws_restJson1ReferenceSummaryList = (output, context) => {
16619
+ return (output || [])
16620
+ .filter((e) => e != null)
16621
+ .map((entry) => {
16622
+ if (entry === null) {
16623
+ return null;
16624
+ }
16625
+ return deserializeAws_restJson1ReferenceSummary(smithy_client_1.expectUnion(entry), context);
16626
+ });
16627
+ };
14974
16628
  const deserializeAws_restJson1RoutingProfile = (output, context) => {
14975
16629
  return {
14976
16630
  DefaultOutboundQueueId: smithy_client_1.expectString(output.DefaultOutboundQueueId),
@@ -15108,6 +16762,12 @@ const deserializeAws_restJson1Threshold = (output, context) => {
15108
16762
  ThresholdValue: smithy_client_1.limitedParseDouble(output.ThresholdValue),
15109
16763
  };
15110
16764
  };
16765
+ const deserializeAws_restJson1UrlReference = (output, context) => {
16766
+ return {
16767
+ Name: smithy_client_1.expectString(output.Name),
16768
+ Value: smithy_client_1.expectString(output.Value),
16769
+ };
16770
+ };
15111
16771
  const deserializeAws_restJson1UseCase = (output, context) => {
15112
16772
  return {
15113
16773
  UseCaseArn: smithy_client_1.expectString(output.UseCaseArn),