@aws-sdk/client-connect 3.72.0 → 3.76.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/Connect.js +120 -0
- package/dist-cjs/commands/AssociatePhoneNumberContactFlowCommand.js +36 -0
- package/dist-cjs/commands/ClaimPhoneNumberCommand.js +36 -0
- package/dist-cjs/commands/DescribePhoneNumberCommand.js +36 -0
- package/dist-cjs/commands/DisassociatePhoneNumberContactFlowCommand.js +36 -0
- package/dist-cjs/commands/ListPhoneNumbersV2Command.js +36 -0
- package/dist-cjs/commands/ReleasePhoneNumberCommand.js +36 -0
- package/dist-cjs/commands/SearchAvailablePhoneNumbersCommand.js +37 -0
- package/dist-cjs/commands/SearchVocabulariesCommand.js +3 -3
- package/dist-cjs/commands/StartChatContactCommand.js +3 -3
- package/dist-cjs/commands/StartContactRecordingCommand.js +3 -3
- package/dist-cjs/commands/StartContactStreamingCommand.js +3 -3
- package/dist-cjs/commands/UpdatePhoneNumberCommand.js +36 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +795 -803
- package/dist-cjs/models/models_1.js +118 -2
- package/dist-cjs/pagination/ListPhoneNumbersV2Paginator.js +35 -0
- package/dist-cjs/pagination/SearchAvailablePhoneNumbersPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +744 -12
- package/dist-es/Connect.js +120 -0
- package/dist-es/commands/AssociatePhoneNumberContactFlowCommand.js +39 -0
- package/dist-es/commands/ClaimPhoneNumberCommand.js +39 -0
- package/dist-es/commands/DescribePhoneNumberCommand.js +39 -0
- package/dist-es/commands/DisassociatePhoneNumberContactFlowCommand.js +39 -0
- package/dist-es/commands/ListPhoneNumbersV2Command.js +39 -0
- package/dist-es/commands/ReleasePhoneNumberCommand.js +39 -0
- package/dist-es/commands/SearchAvailablePhoneNumbersCommand.js +40 -0
- package/dist-es/commands/SearchVocabulariesCommand.js +1 -1
- package/dist-es/commands/StartChatContactCommand.js +1 -1
- package/dist-es/commands/StartContactRecordingCommand.js +1 -1
- package/dist-es/commands/StartContactStreamingCommand.js +1 -1
- package/dist-es/commands/UpdatePhoneNumberCommand.js +39 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +320 -329
- package/dist-es/models/models_1.js +83 -0
- package/dist-es/pagination/ListPhoneNumbersV2Paginator.js +74 -0
- package/dist-es/pagination/SearchAvailablePhoneNumbersPaginator.js +74 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +960 -36
- package/dist-types/Connect.d.ts +59 -1
- package/dist-types/ConnectClient.d.ts +10 -2
- package/dist-types/commands/AssociatePhoneNumberContactFlowCommand.d.ts +35 -0
- package/dist-types/commands/ClaimPhoneNumberCommand.d.ts +35 -0
- package/dist-types/commands/DescribePhoneNumberCommand.d.ts +35 -0
- package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +35 -0
- package/dist-types/commands/ListPhoneNumbersV2Command.d.ts +37 -0
- package/dist-types/commands/ReleasePhoneNumberCommand.d.ts +35 -0
- package/dist-types/commands/SearchAvailablePhoneNumbersCommand.d.ts +36 -0
- package/dist-types/commands/SearchVocabulariesCommand.d.ts +1 -1
- package/dist-types/commands/StartChatContactCommand.d.ts +1 -1
- package/dist-types/commands/StartContactRecordingCommand.d.ts +1 -1
- package/dist-types/commands/StartContactStreamingCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +778 -763
- package/dist-types/models/models_1.d.ts +377 -1
- package/dist-types/pagination/ListPhoneNumbersV2Paginator.d.ts +4 -0
- package/dist-types/pagination/SearchAvailablePhoneNumbersPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
- package/dist-types/ts3.4/Connect.d.ts +40 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +10 -2
- package/dist-types/ts3.4/commands/AssociatePhoneNumberContactFlowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ClaimPhoneNumberCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribePhoneNumberCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPhoneNumbersV2Command.d.ts +17 -0
- package/dist-types/ts3.4/commands/ReleasePhoneNumberCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SearchAvailablePhoneNumbersCommand.d.ts +18 -0
- package/dist-types/ts3.4/commands/SearchVocabulariesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartChatContactCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartContactRecordingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartContactStreamingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePhoneNumberCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +767 -749
- package/dist-types/ts3.4/models/models_1.d.ts +212 -1
- package/dist-types/ts3.4/pagination/ListPhoneNumbersV2Paginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/SearchAvailablePhoneNumbersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +9 -9
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribePhoneNumberCommand = exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.serializeAws_restJson1DescribeInstanceAttributeCommand = exports.serializeAws_restJson1DescribeInstanceCommand = exports.serializeAws_restJson1DescribeHoursOfOperationCommand = exports.serializeAws_restJson1DescribeContactFlowModuleCommand = exports.serializeAws_restJson1DescribeContactFlowCommand = exports.serializeAws_restJson1DescribeContactCommand = exports.serializeAws_restJson1DescribeAgentStatusCommand = exports.serializeAws_restJson1DeleteVocabularyCommand = exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteUseCaseCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_restJson1DeleteContactFlowModuleCommand = exports.serializeAws_restJson1DeleteContactFlowCommand = exports.serializeAws_restJson1CreateVocabularyCommand = exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateUseCaseCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateRoutingProfileCommand = exports.serializeAws_restJson1CreateQuickConnectCommand = exports.serializeAws_restJson1CreateQueueCommand = exports.serializeAws_restJson1CreateIntegrationAssociationCommand = exports.serializeAws_restJson1CreateInstanceCommand = exports.serializeAws_restJson1CreateHoursOfOperationCommand = exports.serializeAws_restJson1CreateContactFlowModuleCommand = exports.serializeAws_restJson1CreateContactFlowCommand = exports.serializeAws_restJson1CreateAgentStatusCommand = exports.serializeAws_restJson1ClaimPhoneNumberCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateDefaultVocabularyCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
|
|
4
|
+
exports.serializeAws_restJson1StartChatContactCommand = exports.serializeAws_restJson1SearchVocabulariesCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersV2Command = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListDefaultVocabulariesCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeVocabularyCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdatePhoneNumberCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = void 0;
|
|
6
|
+
exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeVocabularyCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribePhoneNumberCommand = exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteVocabularyCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1ClaimPhoneNumberCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = void 0;
|
|
7
|
+
exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1SearchVocabulariesCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = exports.deserializeAws_restJson1ListPhoneNumbersV2Command = exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListDefaultVocabulariesCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = void 0;
|
|
8
|
+
exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdatePhoneNumberCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = void 0;
|
|
9
9
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
10
10
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
11
11
|
const uuid_1 = require("uuid");
|
|
@@ -217,6 +217,39 @@ const serializeAws_restJson1AssociateLexBotCommand = async (input, context) => {
|
|
|
217
217
|
});
|
|
218
218
|
};
|
|
219
219
|
exports.serializeAws_restJson1AssociateLexBotCommand = serializeAws_restJson1AssociateLexBotCommand;
|
|
220
|
+
const serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = async (input, context) => {
|
|
221
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
222
|
+
const headers = {
|
|
223
|
+
"content-type": "application/json",
|
|
224
|
+
};
|
|
225
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
226
|
+
"/phone-number/{PhoneNumberId}/contact-flow";
|
|
227
|
+
if (input.PhoneNumberId !== undefined) {
|
|
228
|
+
const labelValue = input.PhoneNumberId;
|
|
229
|
+
if (labelValue.length <= 0) {
|
|
230
|
+
throw new Error("Empty value provided for input HTTP label: PhoneNumberId.");
|
|
231
|
+
}
|
|
232
|
+
resolvedPath = resolvedPath.replace("{PhoneNumberId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
throw new Error("No value provided for input HTTP label: PhoneNumberId.");
|
|
236
|
+
}
|
|
237
|
+
let body;
|
|
238
|
+
body = JSON.stringify({
|
|
239
|
+
...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
|
|
240
|
+
...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
|
|
241
|
+
});
|
|
242
|
+
return new protocol_http_1.HttpRequest({
|
|
243
|
+
protocol,
|
|
244
|
+
hostname,
|
|
245
|
+
port,
|
|
246
|
+
method: "PUT",
|
|
247
|
+
headers,
|
|
248
|
+
path: resolvedPath,
|
|
249
|
+
body,
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
exports.serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = serializeAws_restJson1AssociatePhoneNumberContactFlowCommand;
|
|
220
253
|
const serializeAws_restJson1AssociateQueueQuickConnectsCommand = async (input, context) => {
|
|
221
254
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
222
255
|
const headers = {
|
|
@@ -338,6 +371,33 @@ const serializeAws_restJson1AssociateSecurityKeyCommand = async (input, context)
|
|
|
338
371
|
});
|
|
339
372
|
};
|
|
340
373
|
exports.serializeAws_restJson1AssociateSecurityKeyCommand = serializeAws_restJson1AssociateSecurityKeyCommand;
|
|
374
|
+
const serializeAws_restJson1ClaimPhoneNumberCommand = async (input, context) => {
|
|
375
|
+
var _a;
|
|
376
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
377
|
+
const headers = {
|
|
378
|
+
"content-type": "application/json",
|
|
379
|
+
};
|
|
380
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/claim";
|
|
381
|
+
let body;
|
|
382
|
+
body = JSON.stringify({
|
|
383
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
384
|
+
...(input.PhoneNumber !== undefined && input.PhoneNumber !== null && { PhoneNumber: input.PhoneNumber }),
|
|
385
|
+
...(input.PhoneNumberDescription !== undefined &&
|
|
386
|
+
input.PhoneNumberDescription !== null && { PhoneNumberDescription: input.PhoneNumberDescription }),
|
|
387
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
388
|
+
...(input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }),
|
|
389
|
+
});
|
|
390
|
+
return new protocol_http_1.HttpRequest({
|
|
391
|
+
protocol,
|
|
392
|
+
hostname,
|
|
393
|
+
port,
|
|
394
|
+
method: "POST",
|
|
395
|
+
headers,
|
|
396
|
+
path: resolvedPath,
|
|
397
|
+
body,
|
|
398
|
+
});
|
|
399
|
+
};
|
|
400
|
+
exports.serializeAws_restJson1ClaimPhoneNumberCommand = serializeAws_restJson1ClaimPhoneNumberCommand;
|
|
341
401
|
const serializeAws_restJson1CreateAgentStatusCommand = async (input, context) => {
|
|
342
402
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
343
403
|
const headers = {
|
|
@@ -1565,6 +1625,32 @@ const serializeAws_restJson1DescribeInstanceStorageConfigCommand = async (input,
|
|
|
1565
1625
|
});
|
|
1566
1626
|
};
|
|
1567
1627
|
exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = serializeAws_restJson1DescribeInstanceStorageConfigCommand;
|
|
1628
|
+
const serializeAws_restJson1DescribePhoneNumberCommand = async (input, context) => {
|
|
1629
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1630
|
+
const headers = {};
|
|
1631
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}";
|
|
1632
|
+
if (input.PhoneNumberId !== undefined) {
|
|
1633
|
+
const labelValue = input.PhoneNumberId;
|
|
1634
|
+
if (labelValue.length <= 0) {
|
|
1635
|
+
throw new Error("Empty value provided for input HTTP label: PhoneNumberId.");
|
|
1636
|
+
}
|
|
1637
|
+
resolvedPath = resolvedPath.replace("{PhoneNumberId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
1638
|
+
}
|
|
1639
|
+
else {
|
|
1640
|
+
throw new Error("No value provided for input HTTP label: PhoneNumberId.");
|
|
1641
|
+
}
|
|
1642
|
+
let body;
|
|
1643
|
+
return new protocol_http_1.HttpRequest({
|
|
1644
|
+
protocol,
|
|
1645
|
+
hostname,
|
|
1646
|
+
port,
|
|
1647
|
+
method: "GET",
|
|
1648
|
+
headers,
|
|
1649
|
+
path: resolvedPath,
|
|
1650
|
+
body,
|
|
1651
|
+
});
|
|
1652
|
+
};
|
|
1653
|
+
exports.serializeAws_restJson1DescribePhoneNumberCommand = serializeAws_restJson1DescribePhoneNumberCommand;
|
|
1568
1654
|
const serializeAws_restJson1DescribeQueueCommand = async (input, context) => {
|
|
1569
1655
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1570
1656
|
const headers = {};
|
|
@@ -2013,6 +2099,37 @@ const serializeAws_restJson1DisassociateLexBotCommand = async (input, context) =
|
|
|
2013
2099
|
});
|
|
2014
2100
|
};
|
|
2015
2101
|
exports.serializeAws_restJson1DisassociateLexBotCommand = serializeAws_restJson1DisassociateLexBotCommand;
|
|
2102
|
+
const serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = async (input, context) => {
|
|
2103
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2104
|
+
const headers = {};
|
|
2105
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2106
|
+
"/phone-number/{PhoneNumberId}/contact-flow";
|
|
2107
|
+
if (input.PhoneNumberId !== undefined) {
|
|
2108
|
+
const labelValue = input.PhoneNumberId;
|
|
2109
|
+
if (labelValue.length <= 0) {
|
|
2110
|
+
throw new Error("Empty value provided for input HTTP label: PhoneNumberId.");
|
|
2111
|
+
}
|
|
2112
|
+
resolvedPath = resolvedPath.replace("{PhoneNumberId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
2113
|
+
}
|
|
2114
|
+
else {
|
|
2115
|
+
throw new Error("No value provided for input HTTP label: PhoneNumberId.");
|
|
2116
|
+
}
|
|
2117
|
+
const query = {
|
|
2118
|
+
...(input.InstanceId !== undefined && { instanceId: input.InstanceId }),
|
|
2119
|
+
};
|
|
2120
|
+
let body;
|
|
2121
|
+
return new protocol_http_1.HttpRequest({
|
|
2122
|
+
protocol,
|
|
2123
|
+
hostname,
|
|
2124
|
+
port,
|
|
2125
|
+
method: "DELETE",
|
|
2126
|
+
headers,
|
|
2127
|
+
path: resolvedPath,
|
|
2128
|
+
query,
|
|
2129
|
+
body,
|
|
2130
|
+
});
|
|
2131
|
+
};
|
|
2132
|
+
exports.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand;
|
|
2016
2133
|
const serializeAws_restJson1DisassociateQueueQuickConnectsCommand = async (input, context) => {
|
|
2017
2134
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2018
2135
|
const headers = {
|
|
@@ -2775,6 +2892,39 @@ const serializeAws_restJson1ListPhoneNumbersCommand = async (input, context) =>
|
|
|
2775
2892
|
});
|
|
2776
2893
|
};
|
|
2777
2894
|
exports.serializeAws_restJson1ListPhoneNumbersCommand = serializeAws_restJson1ListPhoneNumbersCommand;
|
|
2895
|
+
const serializeAws_restJson1ListPhoneNumbersV2Command = async (input, context) => {
|
|
2896
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2897
|
+
const headers = {
|
|
2898
|
+
"content-type": "application/json",
|
|
2899
|
+
};
|
|
2900
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/list";
|
|
2901
|
+
let body;
|
|
2902
|
+
body = JSON.stringify({
|
|
2903
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2904
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2905
|
+
...(input.PhoneNumberCountryCodes !== undefined &&
|
|
2906
|
+
input.PhoneNumberCountryCodes !== null && {
|
|
2907
|
+
PhoneNumberCountryCodes: serializeAws_restJson1PhoneNumberCountryCodes(input.PhoneNumberCountryCodes, context),
|
|
2908
|
+
}),
|
|
2909
|
+
...(input.PhoneNumberPrefix !== undefined &&
|
|
2910
|
+
input.PhoneNumberPrefix !== null && { PhoneNumberPrefix: input.PhoneNumberPrefix }),
|
|
2911
|
+
...(input.PhoneNumberTypes !== undefined &&
|
|
2912
|
+
input.PhoneNumberTypes !== null && {
|
|
2913
|
+
PhoneNumberTypes: serializeAws_restJson1PhoneNumberTypes(input.PhoneNumberTypes, context),
|
|
2914
|
+
}),
|
|
2915
|
+
...(input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }),
|
|
2916
|
+
});
|
|
2917
|
+
return new protocol_http_1.HttpRequest({
|
|
2918
|
+
protocol,
|
|
2919
|
+
hostname,
|
|
2920
|
+
port,
|
|
2921
|
+
method: "POST",
|
|
2922
|
+
headers,
|
|
2923
|
+
path: resolvedPath,
|
|
2924
|
+
body,
|
|
2925
|
+
});
|
|
2926
|
+
};
|
|
2927
|
+
exports.serializeAws_restJson1ListPhoneNumbersV2Command = serializeAws_restJson1ListPhoneNumbersV2Command;
|
|
2778
2928
|
const serializeAws_restJson1ListPromptsCommand = async (input, context) => {
|
|
2779
2929
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2780
2930
|
const headers = {};
|
|
@@ -3222,6 +3372,36 @@ const serializeAws_restJson1ListUsersCommand = async (input, context) => {
|
|
|
3222
3372
|
});
|
|
3223
3373
|
};
|
|
3224
3374
|
exports.serializeAws_restJson1ListUsersCommand = serializeAws_restJson1ListUsersCommand;
|
|
3375
|
+
const serializeAws_restJson1ReleasePhoneNumberCommand = async (input, context) => {
|
|
3376
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3377
|
+
const headers = {};
|
|
3378
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}";
|
|
3379
|
+
if (input.PhoneNumberId !== undefined) {
|
|
3380
|
+
const labelValue = input.PhoneNumberId;
|
|
3381
|
+
if (labelValue.length <= 0) {
|
|
3382
|
+
throw new Error("Empty value provided for input HTTP label: PhoneNumberId.");
|
|
3383
|
+
}
|
|
3384
|
+
resolvedPath = resolvedPath.replace("{PhoneNumberId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
3385
|
+
}
|
|
3386
|
+
else {
|
|
3387
|
+
throw new Error("No value provided for input HTTP label: PhoneNumberId.");
|
|
3388
|
+
}
|
|
3389
|
+
const query = {
|
|
3390
|
+
...(input.ClientToken !== undefined && { clientToken: input.ClientToken }),
|
|
3391
|
+
};
|
|
3392
|
+
let body;
|
|
3393
|
+
return new protocol_http_1.HttpRequest({
|
|
3394
|
+
protocol,
|
|
3395
|
+
hostname,
|
|
3396
|
+
port,
|
|
3397
|
+
method: "DELETE",
|
|
3398
|
+
headers,
|
|
3399
|
+
path: resolvedPath,
|
|
3400
|
+
query,
|
|
3401
|
+
body,
|
|
3402
|
+
});
|
|
3403
|
+
};
|
|
3404
|
+
exports.serializeAws_restJson1ReleasePhoneNumberCommand = serializeAws_restJson1ReleasePhoneNumberCommand;
|
|
3225
3405
|
const serializeAws_restJson1ResumeContactRecordingCommand = async (input, context) => {
|
|
3226
3406
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3227
3407
|
const headers = {
|
|
@@ -3246,6 +3426,35 @@ const serializeAws_restJson1ResumeContactRecordingCommand = async (input, contex
|
|
|
3246
3426
|
});
|
|
3247
3427
|
};
|
|
3248
3428
|
exports.serializeAws_restJson1ResumeContactRecordingCommand = serializeAws_restJson1ResumeContactRecordingCommand;
|
|
3429
|
+
const serializeAws_restJson1SearchAvailablePhoneNumbersCommand = async (input, context) => {
|
|
3430
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3431
|
+
const headers = {
|
|
3432
|
+
"content-type": "application/json",
|
|
3433
|
+
};
|
|
3434
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/search-available";
|
|
3435
|
+
let body;
|
|
3436
|
+
body = JSON.stringify({
|
|
3437
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3438
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3439
|
+
...(input.PhoneNumberCountryCode !== undefined &&
|
|
3440
|
+
input.PhoneNumberCountryCode !== null && { PhoneNumberCountryCode: input.PhoneNumberCountryCode }),
|
|
3441
|
+
...(input.PhoneNumberPrefix !== undefined &&
|
|
3442
|
+
input.PhoneNumberPrefix !== null && { PhoneNumberPrefix: input.PhoneNumberPrefix }),
|
|
3443
|
+
...(input.PhoneNumberType !== undefined &&
|
|
3444
|
+
input.PhoneNumberType !== null && { PhoneNumberType: input.PhoneNumberType }),
|
|
3445
|
+
...(input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }),
|
|
3446
|
+
});
|
|
3447
|
+
return new protocol_http_1.HttpRequest({
|
|
3448
|
+
protocol,
|
|
3449
|
+
hostname,
|
|
3450
|
+
port,
|
|
3451
|
+
method: "POST",
|
|
3452
|
+
headers,
|
|
3453
|
+
path: resolvedPath,
|
|
3454
|
+
body,
|
|
3455
|
+
});
|
|
3456
|
+
};
|
|
3457
|
+
exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = serializeAws_restJson1SearchAvailablePhoneNumbersCommand;
|
|
3249
3458
|
const serializeAws_restJson1SearchVocabulariesCommand = async (input, context) => {
|
|
3250
3459
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3251
3460
|
const headers = {
|
|
@@ -4096,6 +4305,39 @@ const serializeAws_restJson1UpdateInstanceStorageConfigCommand = async (input, c
|
|
|
4096
4305
|
});
|
|
4097
4306
|
};
|
|
4098
4307
|
exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = serializeAws_restJson1UpdateInstanceStorageConfigCommand;
|
|
4308
|
+
const serializeAws_restJson1UpdatePhoneNumberCommand = async (input, context) => {
|
|
4309
|
+
var _a;
|
|
4310
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4311
|
+
const headers = {
|
|
4312
|
+
"content-type": "application/json",
|
|
4313
|
+
};
|
|
4314
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number/{PhoneNumberId}";
|
|
4315
|
+
if (input.PhoneNumberId !== undefined) {
|
|
4316
|
+
const labelValue = input.PhoneNumberId;
|
|
4317
|
+
if (labelValue.length <= 0) {
|
|
4318
|
+
throw new Error("Empty value provided for input HTTP label: PhoneNumberId.");
|
|
4319
|
+
}
|
|
4320
|
+
resolvedPath = resolvedPath.replace("{PhoneNumberId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
4321
|
+
}
|
|
4322
|
+
else {
|
|
4323
|
+
throw new Error("No value provided for input HTTP label: PhoneNumberId.");
|
|
4324
|
+
}
|
|
4325
|
+
let body;
|
|
4326
|
+
body = JSON.stringify({
|
|
4327
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
4328
|
+
...(input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }),
|
|
4329
|
+
});
|
|
4330
|
+
return new protocol_http_1.HttpRequest({
|
|
4331
|
+
protocol,
|
|
4332
|
+
hostname,
|
|
4333
|
+
port,
|
|
4334
|
+
method: "PUT",
|
|
4335
|
+
headers,
|
|
4336
|
+
path: resolvedPath,
|
|
4337
|
+
body,
|
|
4338
|
+
});
|
|
4339
|
+
};
|
|
4340
|
+
exports.serializeAws_restJson1UpdatePhoneNumberCommand = serializeAws_restJson1UpdatePhoneNumberCommand;
|
|
4099
4341
|
const serializeAws_restJson1UpdateQueueHoursOfOperationCommand = async (input, context) => {
|
|
4100
4342
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4101
4343
|
const headers = {
|
|
@@ -5211,6 +5453,51 @@ const deserializeAws_restJson1AssociateLexBotCommandError = async (output, conte
|
|
|
5211
5453
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5212
5454
|
}
|
|
5213
5455
|
};
|
|
5456
|
+
const deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = async (output, context) => {
|
|
5457
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5458
|
+
return deserializeAws_restJson1AssociatePhoneNumberContactFlowCommandError(output, context);
|
|
5459
|
+
}
|
|
5460
|
+
const contents = {
|
|
5461
|
+
$metadata: deserializeMetadata(output),
|
|
5462
|
+
};
|
|
5463
|
+
await collectBody(output.body, context);
|
|
5464
|
+
return Promise.resolve(contents);
|
|
5465
|
+
};
|
|
5466
|
+
exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand;
|
|
5467
|
+
const deserializeAws_restJson1AssociatePhoneNumberContactFlowCommandError = async (output, context) => {
|
|
5468
|
+
const parsedOutput = {
|
|
5469
|
+
...output,
|
|
5470
|
+
body: await parseBody(output.body, context),
|
|
5471
|
+
};
|
|
5472
|
+
let response;
|
|
5473
|
+
let errorCode = "UnknownError";
|
|
5474
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5475
|
+
switch (errorCode) {
|
|
5476
|
+
case "AccessDeniedException":
|
|
5477
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
5478
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5479
|
+
case "InternalServiceException":
|
|
5480
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
5481
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
5482
|
+
case "InvalidParameterException":
|
|
5483
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
5484
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
5485
|
+
case "ResourceNotFoundException":
|
|
5486
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
5487
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5488
|
+
case "ThrottlingException":
|
|
5489
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
5490
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5491
|
+
default:
|
|
5492
|
+
const parsedBody = parsedOutput.body;
|
|
5493
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
5494
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5495
|
+
$fault: "client",
|
|
5496
|
+
$metadata: deserializeMetadata(output),
|
|
5497
|
+
});
|
|
5498
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5499
|
+
}
|
|
5500
|
+
};
|
|
5214
5501
|
const deserializeAws_restJson1AssociateQueueQuickConnectsCommand = async (output, context) => {
|
|
5215
5502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5216
5503
|
return deserializeAws_restJson1AssociateQueueQuickConnectsCommandError(output, context);
|
|
@@ -5359,6 +5646,62 @@ const deserializeAws_restJson1AssociateSecurityKeyCommandError = async (output,
|
|
|
5359
5646
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5360
5647
|
}
|
|
5361
5648
|
};
|
|
5649
|
+
const deserializeAws_restJson1ClaimPhoneNumberCommand = async (output, context) => {
|
|
5650
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5651
|
+
return deserializeAws_restJson1ClaimPhoneNumberCommandError(output, context);
|
|
5652
|
+
}
|
|
5653
|
+
const contents = {
|
|
5654
|
+
$metadata: deserializeMetadata(output),
|
|
5655
|
+
PhoneNumberArn: undefined,
|
|
5656
|
+
PhoneNumberId: undefined,
|
|
5657
|
+
};
|
|
5658
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5659
|
+
if (data.PhoneNumberArn !== undefined && data.PhoneNumberArn !== null) {
|
|
5660
|
+
contents.PhoneNumberArn = (0, smithy_client_1.expectString)(data.PhoneNumberArn);
|
|
5661
|
+
}
|
|
5662
|
+
if (data.PhoneNumberId !== undefined && data.PhoneNumberId !== null) {
|
|
5663
|
+
contents.PhoneNumberId = (0, smithy_client_1.expectString)(data.PhoneNumberId);
|
|
5664
|
+
}
|
|
5665
|
+
return Promise.resolve(contents);
|
|
5666
|
+
};
|
|
5667
|
+
exports.deserializeAws_restJson1ClaimPhoneNumberCommand = deserializeAws_restJson1ClaimPhoneNumberCommand;
|
|
5668
|
+
const deserializeAws_restJson1ClaimPhoneNumberCommandError = async (output, context) => {
|
|
5669
|
+
const parsedOutput = {
|
|
5670
|
+
...output,
|
|
5671
|
+
body: await parseBody(output.body, context),
|
|
5672
|
+
};
|
|
5673
|
+
let response;
|
|
5674
|
+
let errorCode = "UnknownError";
|
|
5675
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5676
|
+
switch (errorCode) {
|
|
5677
|
+
case "AccessDeniedException":
|
|
5678
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
5679
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5680
|
+
case "IdempotencyException":
|
|
5681
|
+
case "com.amazonaws.connect#IdempotencyException":
|
|
5682
|
+
throw await deserializeAws_restJson1IdempotencyExceptionResponse(parsedOutput, context);
|
|
5683
|
+
case "InternalServiceException":
|
|
5684
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
5685
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
5686
|
+
case "InvalidParameterException":
|
|
5687
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
5688
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
5689
|
+
case "ResourceNotFoundException":
|
|
5690
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
5691
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5692
|
+
case "ThrottlingException":
|
|
5693
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
5694
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5695
|
+
default:
|
|
5696
|
+
const parsedBody = parsedOutput.body;
|
|
5697
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
5698
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5699
|
+
$fault: "client",
|
|
5700
|
+
$metadata: deserializeMetadata(output),
|
|
5701
|
+
});
|
|
5702
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5703
|
+
}
|
|
5704
|
+
};
|
|
5362
5705
|
const deserializeAws_restJson1CreateAgentStatusCommand = async (output, context) => {
|
|
5363
5706
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5364
5707
|
return deserializeAws_restJson1CreateAgentStatusCommandError(output, context);
|
|
@@ -7088,6 +7431,55 @@ const deserializeAws_restJson1DescribeInstanceStorageConfigCommandError = async
|
|
|
7088
7431
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7089
7432
|
}
|
|
7090
7433
|
};
|
|
7434
|
+
const deserializeAws_restJson1DescribePhoneNumberCommand = async (output, context) => {
|
|
7435
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7436
|
+
return deserializeAws_restJson1DescribePhoneNumberCommandError(output, context);
|
|
7437
|
+
}
|
|
7438
|
+
const contents = {
|
|
7439
|
+
$metadata: deserializeMetadata(output),
|
|
7440
|
+
ClaimedPhoneNumberSummary: undefined,
|
|
7441
|
+
};
|
|
7442
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
7443
|
+
if (data.ClaimedPhoneNumberSummary !== undefined && data.ClaimedPhoneNumberSummary !== null) {
|
|
7444
|
+
contents.ClaimedPhoneNumberSummary = deserializeAws_restJson1ClaimedPhoneNumberSummary(data.ClaimedPhoneNumberSummary, context);
|
|
7445
|
+
}
|
|
7446
|
+
return Promise.resolve(contents);
|
|
7447
|
+
};
|
|
7448
|
+
exports.deserializeAws_restJson1DescribePhoneNumberCommand = deserializeAws_restJson1DescribePhoneNumberCommand;
|
|
7449
|
+
const deserializeAws_restJson1DescribePhoneNumberCommandError = async (output, context) => {
|
|
7450
|
+
const parsedOutput = {
|
|
7451
|
+
...output,
|
|
7452
|
+
body: await parseBody(output.body, context),
|
|
7453
|
+
};
|
|
7454
|
+
let response;
|
|
7455
|
+
let errorCode = "UnknownError";
|
|
7456
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7457
|
+
switch (errorCode) {
|
|
7458
|
+
case "AccessDeniedException":
|
|
7459
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
7460
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
7461
|
+
case "InternalServiceException":
|
|
7462
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
7463
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
7464
|
+
case "InvalidParameterException":
|
|
7465
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
7466
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
7467
|
+
case "ResourceNotFoundException":
|
|
7468
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
7469
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
7470
|
+
case "ThrottlingException":
|
|
7471
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
7472
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
7473
|
+
default:
|
|
7474
|
+
const parsedBody = parsedOutput.body;
|
|
7475
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
7476
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7477
|
+
$fault: "client",
|
|
7478
|
+
$metadata: deserializeMetadata(output),
|
|
7479
|
+
});
|
|
7480
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
7481
|
+
}
|
|
7482
|
+
};
|
|
7091
7483
|
const deserializeAws_restJson1DescribeQueueCommand = async (output, context) => {
|
|
7092
7484
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7093
7485
|
return deserializeAws_restJson1DescribeQueueCommandError(output, context);
|
|
@@ -7667,8 +8059,53 @@ const deserializeAws_restJson1DisassociateLexBotCommand = async (output, context
|
|
|
7667
8059
|
await collectBody(output.body, context);
|
|
7668
8060
|
return Promise.resolve(contents);
|
|
7669
8061
|
};
|
|
7670
|
-
exports.deserializeAws_restJson1DisassociateLexBotCommand = deserializeAws_restJson1DisassociateLexBotCommand;
|
|
7671
|
-
const deserializeAws_restJson1DisassociateLexBotCommandError = async (output, context) => {
|
|
8062
|
+
exports.deserializeAws_restJson1DisassociateLexBotCommand = deserializeAws_restJson1DisassociateLexBotCommand;
|
|
8063
|
+
const deserializeAws_restJson1DisassociateLexBotCommandError = async (output, context) => {
|
|
8064
|
+
const parsedOutput = {
|
|
8065
|
+
...output,
|
|
8066
|
+
body: await parseBody(output.body, context),
|
|
8067
|
+
};
|
|
8068
|
+
let response;
|
|
8069
|
+
let errorCode = "UnknownError";
|
|
8070
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8071
|
+
switch (errorCode) {
|
|
8072
|
+
case "InternalServiceException":
|
|
8073
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
8074
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
8075
|
+
case "InvalidParameterException":
|
|
8076
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
8077
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
8078
|
+
case "InvalidRequestException":
|
|
8079
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
8080
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
8081
|
+
case "ResourceNotFoundException":
|
|
8082
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
8083
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
8084
|
+
case "ThrottlingException":
|
|
8085
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
8086
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
8087
|
+
default:
|
|
8088
|
+
const parsedBody = parsedOutput.body;
|
|
8089
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
8090
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
8091
|
+
$fault: "client",
|
|
8092
|
+
$metadata: deserializeMetadata(output),
|
|
8093
|
+
});
|
|
8094
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8095
|
+
}
|
|
8096
|
+
};
|
|
8097
|
+
const deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = async (output, context) => {
|
|
8098
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8099
|
+
return deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommandError(output, context);
|
|
8100
|
+
}
|
|
8101
|
+
const contents = {
|
|
8102
|
+
$metadata: deserializeMetadata(output),
|
|
8103
|
+
};
|
|
8104
|
+
await collectBody(output.body, context);
|
|
8105
|
+
return Promise.resolve(contents);
|
|
8106
|
+
};
|
|
8107
|
+
exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand;
|
|
8108
|
+
const deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommandError = async (output, context) => {
|
|
7672
8109
|
const parsedOutput = {
|
|
7673
8110
|
...output,
|
|
7674
8111
|
body: await parseBody(output.body, context),
|
|
@@ -7677,15 +8114,15 @@ const deserializeAws_restJson1DisassociateLexBotCommandError = async (output, co
|
|
|
7677
8114
|
let errorCode = "UnknownError";
|
|
7678
8115
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7679
8116
|
switch (errorCode) {
|
|
8117
|
+
case "AccessDeniedException":
|
|
8118
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
8119
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
7680
8120
|
case "InternalServiceException":
|
|
7681
8121
|
case "com.amazonaws.connect#InternalServiceException":
|
|
7682
8122
|
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
7683
8123
|
case "InvalidParameterException":
|
|
7684
8124
|
case "com.amazonaws.connect#InvalidParameterException":
|
|
7685
8125
|
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
7686
|
-
case "InvalidRequestException":
|
|
7687
|
-
case "com.amazonaws.connect#InvalidRequestException":
|
|
7688
|
-
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
7689
8126
|
case "ResourceNotFoundException":
|
|
7690
8127
|
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
7691
8128
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -8822,6 +9259,59 @@ const deserializeAws_restJson1ListPhoneNumbersCommandError = async (output, cont
|
|
|
8822
9259
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
8823
9260
|
}
|
|
8824
9261
|
};
|
|
9262
|
+
const deserializeAws_restJson1ListPhoneNumbersV2Command = async (output, context) => {
|
|
9263
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9264
|
+
return deserializeAws_restJson1ListPhoneNumbersV2CommandError(output, context);
|
|
9265
|
+
}
|
|
9266
|
+
const contents = {
|
|
9267
|
+
$metadata: deserializeMetadata(output),
|
|
9268
|
+
ListPhoneNumbersSummaryList: undefined,
|
|
9269
|
+
NextToken: undefined,
|
|
9270
|
+
};
|
|
9271
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
9272
|
+
if (data.ListPhoneNumbersSummaryList !== undefined && data.ListPhoneNumbersSummaryList !== null) {
|
|
9273
|
+
contents.ListPhoneNumbersSummaryList = deserializeAws_restJson1ListPhoneNumbersSummaryList(data.ListPhoneNumbersSummaryList, context);
|
|
9274
|
+
}
|
|
9275
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
9276
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
9277
|
+
}
|
|
9278
|
+
return Promise.resolve(contents);
|
|
9279
|
+
};
|
|
9280
|
+
exports.deserializeAws_restJson1ListPhoneNumbersV2Command = deserializeAws_restJson1ListPhoneNumbersV2Command;
|
|
9281
|
+
const deserializeAws_restJson1ListPhoneNumbersV2CommandError = async (output, context) => {
|
|
9282
|
+
const parsedOutput = {
|
|
9283
|
+
...output,
|
|
9284
|
+
body: await parseBody(output.body, context),
|
|
9285
|
+
};
|
|
9286
|
+
let response;
|
|
9287
|
+
let errorCode = "UnknownError";
|
|
9288
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9289
|
+
switch (errorCode) {
|
|
9290
|
+
case "AccessDeniedException":
|
|
9291
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
9292
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
9293
|
+
case "InternalServiceException":
|
|
9294
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
9295
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
9296
|
+
case "InvalidParameterException":
|
|
9297
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
9298
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
9299
|
+
case "ResourceNotFoundException":
|
|
9300
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
9301
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
9302
|
+
case "ThrottlingException":
|
|
9303
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
9304
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
9305
|
+
default:
|
|
9306
|
+
const parsedBody = parsedOutput.body;
|
|
9307
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
9308
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
9309
|
+
$fault: "client",
|
|
9310
|
+
$metadata: deserializeMetadata(output),
|
|
9311
|
+
});
|
|
9312
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9313
|
+
}
|
|
9314
|
+
};
|
|
8825
9315
|
const deserializeAws_restJson1ListPromptsCommand = async (output, context) => {
|
|
8826
9316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8827
9317
|
return deserializeAws_restJson1ListPromptsCommandError(output, context);
|
|
@@ -9504,6 +9994,57 @@ const deserializeAws_restJson1ListUsersCommandError = async (output, context) =>
|
|
|
9504
9994
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9505
9995
|
}
|
|
9506
9996
|
};
|
|
9997
|
+
const deserializeAws_restJson1ReleasePhoneNumberCommand = async (output, context) => {
|
|
9998
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9999
|
+
return deserializeAws_restJson1ReleasePhoneNumberCommandError(output, context);
|
|
10000
|
+
}
|
|
10001
|
+
const contents = {
|
|
10002
|
+
$metadata: deserializeMetadata(output),
|
|
10003
|
+
};
|
|
10004
|
+
await collectBody(output.body, context);
|
|
10005
|
+
return Promise.resolve(contents);
|
|
10006
|
+
};
|
|
10007
|
+
exports.deserializeAws_restJson1ReleasePhoneNumberCommand = deserializeAws_restJson1ReleasePhoneNumberCommand;
|
|
10008
|
+
const deserializeAws_restJson1ReleasePhoneNumberCommandError = async (output, context) => {
|
|
10009
|
+
const parsedOutput = {
|
|
10010
|
+
...output,
|
|
10011
|
+
body: await parseBody(output.body, context),
|
|
10012
|
+
};
|
|
10013
|
+
let response;
|
|
10014
|
+
let errorCode = "UnknownError";
|
|
10015
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10016
|
+
switch (errorCode) {
|
|
10017
|
+
case "AccessDeniedException":
|
|
10018
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
10019
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
10020
|
+
case "IdempotencyException":
|
|
10021
|
+
case "com.amazonaws.connect#IdempotencyException":
|
|
10022
|
+
throw await deserializeAws_restJson1IdempotencyExceptionResponse(parsedOutput, context);
|
|
10023
|
+
case "InternalServiceException":
|
|
10024
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
10025
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
10026
|
+
case "InvalidParameterException":
|
|
10027
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
10028
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
10029
|
+
case "ResourceInUseException":
|
|
10030
|
+
case "com.amazonaws.connect#ResourceInUseException":
|
|
10031
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
10032
|
+
case "ResourceNotFoundException":
|
|
10033
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
10034
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
10035
|
+
case "ThrottlingException":
|
|
10036
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
10037
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
10038
|
+
default:
|
|
10039
|
+
const parsedBody = parsedOutput.body;
|
|
10040
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
10041
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10042
|
+
$fault: "client",
|
|
10043
|
+
$metadata: deserializeMetadata(output),
|
|
10044
|
+
});
|
|
10045
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10046
|
+
}
|
|
10047
|
+
};
|
|
9507
10048
|
const deserializeAws_restJson1ResumeContactRecordingCommand = async (output, context) => {
|
|
9508
10049
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9509
10050
|
return deserializeAws_restJson1ResumeContactRecordingCommandError(output, context);
|
|
@@ -9543,6 +10084,56 @@ const deserializeAws_restJson1ResumeContactRecordingCommandError = async (output
|
|
|
9543
10084
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
9544
10085
|
}
|
|
9545
10086
|
};
|
|
10087
|
+
const deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = async (output, context) => {
|
|
10088
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10089
|
+
return deserializeAws_restJson1SearchAvailablePhoneNumbersCommandError(output, context);
|
|
10090
|
+
}
|
|
10091
|
+
const contents = {
|
|
10092
|
+
$metadata: deserializeMetadata(output),
|
|
10093
|
+
AvailableNumbersList: undefined,
|
|
10094
|
+
NextToken: undefined,
|
|
10095
|
+
};
|
|
10096
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
10097
|
+
if (data.AvailableNumbersList !== undefined && data.AvailableNumbersList !== null) {
|
|
10098
|
+
contents.AvailableNumbersList = deserializeAws_restJson1AvailableNumbersList(data.AvailableNumbersList, context);
|
|
10099
|
+
}
|
|
10100
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
10101
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
10102
|
+
}
|
|
10103
|
+
return Promise.resolve(contents);
|
|
10104
|
+
};
|
|
10105
|
+
exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = deserializeAws_restJson1SearchAvailablePhoneNumbersCommand;
|
|
10106
|
+
const deserializeAws_restJson1SearchAvailablePhoneNumbersCommandError = async (output, context) => {
|
|
10107
|
+
const parsedOutput = {
|
|
10108
|
+
...output,
|
|
10109
|
+
body: await parseBody(output.body, context),
|
|
10110
|
+
};
|
|
10111
|
+
let response;
|
|
10112
|
+
let errorCode = "UnknownError";
|
|
10113
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10114
|
+
switch (errorCode) {
|
|
10115
|
+
case "AccessDeniedException":
|
|
10116
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
10117
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
10118
|
+
case "InternalServiceException":
|
|
10119
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
10120
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
10121
|
+
case "InvalidParameterException":
|
|
10122
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
10123
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
10124
|
+
case "ThrottlingException":
|
|
10125
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
10126
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
10127
|
+
default:
|
|
10128
|
+
const parsedBody = parsedOutput.body;
|
|
10129
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
10130
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
10131
|
+
$fault: "client",
|
|
10132
|
+
$metadata: deserializeMetadata(output),
|
|
10133
|
+
});
|
|
10134
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10135
|
+
}
|
|
10136
|
+
};
|
|
9546
10137
|
const deserializeAws_restJson1SearchVocabulariesCommand = async (output, context) => {
|
|
9547
10138
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9548
10139
|
return deserializeAws_restJson1SearchVocabulariesCommandError(output, context);
|
|
@@ -10670,6 +11261,65 @@ const deserializeAws_restJson1UpdateInstanceStorageConfigCommandError = async (o
|
|
|
10670
11261
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
10671
11262
|
}
|
|
10672
11263
|
};
|
|
11264
|
+
const deserializeAws_restJson1UpdatePhoneNumberCommand = async (output, context) => {
|
|
11265
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11266
|
+
return deserializeAws_restJson1UpdatePhoneNumberCommandError(output, context);
|
|
11267
|
+
}
|
|
11268
|
+
const contents = {
|
|
11269
|
+
$metadata: deserializeMetadata(output),
|
|
11270
|
+
PhoneNumberArn: undefined,
|
|
11271
|
+
PhoneNumberId: undefined,
|
|
11272
|
+
};
|
|
11273
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
11274
|
+
if (data.PhoneNumberArn !== undefined && data.PhoneNumberArn !== null) {
|
|
11275
|
+
contents.PhoneNumberArn = (0, smithy_client_1.expectString)(data.PhoneNumberArn);
|
|
11276
|
+
}
|
|
11277
|
+
if (data.PhoneNumberId !== undefined && data.PhoneNumberId !== null) {
|
|
11278
|
+
contents.PhoneNumberId = (0, smithy_client_1.expectString)(data.PhoneNumberId);
|
|
11279
|
+
}
|
|
11280
|
+
return Promise.resolve(contents);
|
|
11281
|
+
};
|
|
11282
|
+
exports.deserializeAws_restJson1UpdatePhoneNumberCommand = deserializeAws_restJson1UpdatePhoneNumberCommand;
|
|
11283
|
+
const deserializeAws_restJson1UpdatePhoneNumberCommandError = async (output, context) => {
|
|
11284
|
+
const parsedOutput = {
|
|
11285
|
+
...output,
|
|
11286
|
+
body: await parseBody(output.body, context),
|
|
11287
|
+
};
|
|
11288
|
+
let response;
|
|
11289
|
+
let errorCode = "UnknownError";
|
|
11290
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11291
|
+
switch (errorCode) {
|
|
11292
|
+
case "AccessDeniedException":
|
|
11293
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
11294
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
11295
|
+
case "IdempotencyException":
|
|
11296
|
+
case "com.amazonaws.connect#IdempotencyException":
|
|
11297
|
+
throw await deserializeAws_restJson1IdempotencyExceptionResponse(parsedOutput, context);
|
|
11298
|
+
case "InternalServiceException":
|
|
11299
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
11300
|
+
throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
|
|
11301
|
+
case "InvalidParameterException":
|
|
11302
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
11303
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
11304
|
+
case "ResourceInUseException":
|
|
11305
|
+
case "com.amazonaws.connect#ResourceInUseException":
|
|
11306
|
+
throw await deserializeAws_restJson1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
11307
|
+
case "ResourceNotFoundException":
|
|
11308
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
11309
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
11310
|
+
case "ThrottlingException":
|
|
11311
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
11312
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
11313
|
+
default:
|
|
11314
|
+
const parsedBody = parsedOutput.body;
|
|
11315
|
+
response = new ConnectServiceException_1.ConnectServiceException({
|
|
11316
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
11317
|
+
$fault: "client",
|
|
11318
|
+
$metadata: deserializeMetadata(output),
|
|
11319
|
+
});
|
|
11320
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
11321
|
+
}
|
|
11322
|
+
};
|
|
10673
11323
|
const deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = async (output, context) => {
|
|
10674
11324
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10675
11325
|
return deserializeAws_restJson1UpdateQueueHoursOfOperationCommandError(output, context);
|
|
@@ -11579,7 +12229,7 @@ const deserializeAws_restJson1DestinationNotAllowedExceptionResponse = async (pa
|
|
|
11579
12229
|
if (data.Message !== undefined && data.Message !== null) {
|
|
11580
12230
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
11581
12231
|
}
|
|
11582
|
-
const exception = new
|
|
12232
|
+
const exception = new models_1_1.DestinationNotAllowedException({
|
|
11583
12233
|
$metadata: deserializeMetadata(parsedOutput),
|
|
11584
12234
|
...contents,
|
|
11585
12235
|
});
|
|
@@ -12026,11 +12676,31 @@ const serializeAws_restJson1PermissionsList = (input, context) => {
|
|
|
12026
12676
|
return entry;
|
|
12027
12677
|
});
|
|
12028
12678
|
};
|
|
12679
|
+
const serializeAws_restJson1PhoneNumberCountryCodes = (input, context) => {
|
|
12680
|
+
return input
|
|
12681
|
+
.filter((e) => e != null)
|
|
12682
|
+
.map((entry) => {
|
|
12683
|
+
if (entry === null) {
|
|
12684
|
+
return null;
|
|
12685
|
+
}
|
|
12686
|
+
return entry;
|
|
12687
|
+
});
|
|
12688
|
+
};
|
|
12029
12689
|
const serializeAws_restJson1PhoneNumberQuickConnectConfig = (input, context) => {
|
|
12030
12690
|
return {
|
|
12031
12691
|
...(input.PhoneNumber !== undefined && input.PhoneNumber !== null && { PhoneNumber: input.PhoneNumber }),
|
|
12032
12692
|
};
|
|
12033
12693
|
};
|
|
12694
|
+
const serializeAws_restJson1PhoneNumberTypes = (input, context) => {
|
|
12695
|
+
return input
|
|
12696
|
+
.filter((e) => e != null)
|
|
12697
|
+
.map((entry) => {
|
|
12698
|
+
if (entry === null) {
|
|
12699
|
+
return null;
|
|
12700
|
+
}
|
|
12701
|
+
return entry;
|
|
12702
|
+
});
|
|
12703
|
+
};
|
|
12034
12704
|
const serializeAws_restJson1QueueQuickConnectConfig = (input, context) => {
|
|
12035
12705
|
return {
|
|
12036
12706
|
...(input.ContactFlowId !== undefined && input.ContactFlowId !== null && { ContactFlowId: input.ContactFlowId }),
|
|
@@ -12270,6 +12940,41 @@ const deserializeAws_restJson1AttributesList = (output, context) => {
|
|
|
12270
12940
|
});
|
|
12271
12941
|
return retVal;
|
|
12272
12942
|
};
|
|
12943
|
+
const deserializeAws_restJson1AvailableNumbersList = (output, context) => {
|
|
12944
|
+
const retVal = (output || [])
|
|
12945
|
+
.filter((e) => e != null)
|
|
12946
|
+
.map((entry) => {
|
|
12947
|
+
if (entry === null) {
|
|
12948
|
+
return null;
|
|
12949
|
+
}
|
|
12950
|
+
return deserializeAws_restJson1AvailableNumberSummary(entry, context);
|
|
12951
|
+
});
|
|
12952
|
+
return retVal;
|
|
12953
|
+
};
|
|
12954
|
+
const deserializeAws_restJson1AvailableNumberSummary = (output, context) => {
|
|
12955
|
+
return {
|
|
12956
|
+
PhoneNumber: (0, smithy_client_1.expectString)(output.PhoneNumber),
|
|
12957
|
+
PhoneNumberCountryCode: (0, smithy_client_1.expectString)(output.PhoneNumberCountryCode),
|
|
12958
|
+
PhoneNumberType: (0, smithy_client_1.expectString)(output.PhoneNumberType),
|
|
12959
|
+
};
|
|
12960
|
+
};
|
|
12961
|
+
const deserializeAws_restJson1ClaimedPhoneNumberSummary = (output, context) => {
|
|
12962
|
+
return {
|
|
12963
|
+
PhoneNumber: (0, smithy_client_1.expectString)(output.PhoneNumber),
|
|
12964
|
+
PhoneNumberArn: (0, smithy_client_1.expectString)(output.PhoneNumberArn),
|
|
12965
|
+
PhoneNumberCountryCode: (0, smithy_client_1.expectString)(output.PhoneNumberCountryCode),
|
|
12966
|
+
PhoneNumberDescription: (0, smithy_client_1.expectString)(output.PhoneNumberDescription),
|
|
12967
|
+
PhoneNumberId: (0, smithy_client_1.expectString)(output.PhoneNumberId),
|
|
12968
|
+
PhoneNumberStatus: output.PhoneNumberStatus !== undefined && output.PhoneNumberStatus !== null
|
|
12969
|
+
? deserializeAws_restJson1PhoneNumberStatus(output.PhoneNumberStatus, context)
|
|
12970
|
+
: undefined,
|
|
12971
|
+
PhoneNumberType: (0, smithy_client_1.expectString)(output.PhoneNumberType),
|
|
12972
|
+
Tags: output.Tags !== undefined && output.Tags !== null
|
|
12973
|
+
? deserializeAws_restJson1TagMap(output.Tags, context)
|
|
12974
|
+
: undefined,
|
|
12975
|
+
TargetArn: (0, smithy_client_1.expectString)(output.TargetArn),
|
|
12976
|
+
};
|
|
12977
|
+
};
|
|
12273
12978
|
const deserializeAws_restJson1Contact = (output, context) => {
|
|
12274
12979
|
return {
|
|
12275
12980
|
AgentInfo: output.AgentInfo !== undefined && output.AgentInfo !== null
|
|
@@ -12820,6 +13525,27 @@ const deserializeAws_restJson1LexV2Bot = (output, context) => {
|
|
|
12820
13525
|
AliasArn: (0, smithy_client_1.expectString)(output.AliasArn),
|
|
12821
13526
|
};
|
|
12822
13527
|
};
|
|
13528
|
+
const deserializeAws_restJson1ListPhoneNumbersSummary = (output, context) => {
|
|
13529
|
+
return {
|
|
13530
|
+
PhoneNumber: (0, smithy_client_1.expectString)(output.PhoneNumber),
|
|
13531
|
+
PhoneNumberArn: (0, smithy_client_1.expectString)(output.PhoneNumberArn),
|
|
13532
|
+
PhoneNumberCountryCode: (0, smithy_client_1.expectString)(output.PhoneNumberCountryCode),
|
|
13533
|
+
PhoneNumberId: (0, smithy_client_1.expectString)(output.PhoneNumberId),
|
|
13534
|
+
PhoneNumberType: (0, smithy_client_1.expectString)(output.PhoneNumberType),
|
|
13535
|
+
TargetArn: (0, smithy_client_1.expectString)(output.TargetArn),
|
|
13536
|
+
};
|
|
13537
|
+
};
|
|
13538
|
+
const deserializeAws_restJson1ListPhoneNumbersSummaryList = (output, context) => {
|
|
13539
|
+
const retVal = (output || [])
|
|
13540
|
+
.filter((e) => e != null)
|
|
13541
|
+
.map((entry) => {
|
|
13542
|
+
if (entry === null) {
|
|
13543
|
+
return null;
|
|
13544
|
+
}
|
|
13545
|
+
return deserializeAws_restJson1ListPhoneNumbersSummary(entry, context);
|
|
13546
|
+
});
|
|
13547
|
+
return retVal;
|
|
13548
|
+
};
|
|
12823
13549
|
const deserializeAws_restJson1MediaConcurrencies = (output, context) => {
|
|
12824
13550
|
const retVal = (output || [])
|
|
12825
13551
|
.filter((e) => e != null)
|
|
@@ -12871,6 +13597,12 @@ const deserializeAws_restJson1PhoneNumberQuickConnectConfig = (output, context)
|
|
|
12871
13597
|
PhoneNumber: (0, smithy_client_1.expectString)(output.PhoneNumber),
|
|
12872
13598
|
};
|
|
12873
13599
|
};
|
|
13600
|
+
const deserializeAws_restJson1PhoneNumberStatus = (output, context) => {
|
|
13601
|
+
return {
|
|
13602
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
13603
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
13604
|
+
};
|
|
13605
|
+
};
|
|
12874
13606
|
const deserializeAws_restJson1PhoneNumberSummary = (output, context) => {
|
|
12875
13607
|
return {
|
|
12876
13608
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|