@aws-sdk/client-connect 3.473.0 → 3.475.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/README.md +32 -0
- package/dist-cjs/Connect.js +8 -0
- package/dist-cjs/commands/PauseContactCommand.js +51 -0
- package/dist-cjs/commands/ResumeContactCommand.js +51 -0
- package/dist-cjs/commands/TagContactCommand.js +51 -0
- package/dist-cjs/commands/UntagContactCommand.js +51 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +7 -5
- package/dist-cjs/models/models_1.js +19 -6
- package/dist-cjs/models/models_2.js +6 -1
- package/dist-cjs/protocols/Aws_restJson1.js +414 -10
- package/dist-es/Connect.js +8 -0
- package/dist-es/commands/PauseContactCommand.js +47 -0
- package/dist-es/commands/ResumeContactCommand.js +47 -0
- package/dist-es/commands/TagContactCommand.js +47 -0
- package/dist-es/commands/UntagContactCommand.js +47 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +6 -4
- package/dist-es/models/models_1.js +17 -5
- package/dist-es/models/models_2.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +400 -4
- package/dist-types/Connect.d.ts +28 -0
- package/dist-types/ConnectClient.d.ts +6 -2
- package/dist-types/commands/BatchAssociateAnalyticsDataSetCommand.d.ts +2 -2
- package/dist-types/commands/CreateIntegrationAssociationCommand.d.ts +1 -1
- package/dist-types/commands/CreateRuleCommand.d.ts +30 -2
- package/dist-types/commands/DescribeContactCommand.d.ts +8 -0
- package/dist-types/commands/DescribePromptCommand.d.ts +2 -1
- package/dist-types/commands/DescribeQueueCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRuleCommand.d.ts +30 -2
- package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/ListRulesCommand.d.ts +3 -3
- package/dist-types/commands/PauseContactCommand.d.ts +97 -0
- package/dist-types/commands/ResumeContactCommand.d.ts +94 -0
- package/dist-types/commands/SearchUsersCommand.d.ts +1 -2
- package/dist-types/commands/SearchVocabulariesCommand.d.ts +1 -1
- package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +9 -0
- package/dist-types/commands/TagContactCommand.d.ts +92 -0
- package/dist-types/commands/UntagContactCommand.d.ts +91 -0
- package/dist-types/commands/UpdateRuleCommand.d.ts +29 -1
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +164 -175
- package/dist-types/models/models_1.d.ts +237 -319
- package/dist-types/models/models_2.d.ts +398 -9
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/Connect.d.ts +68 -0
- package/dist-types/ts3.4/ConnectClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/DescribePromptCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DescribeQueueCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PauseContactCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ResumeContactCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/SearchVocabulariesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagContactCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagContactCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +34 -37
- package/dist-types/ts3.4/models/models_1.d.ts +56 -65
- package/dist-types/ts3.4/models/models_2.d.ts +84 -5
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +4 -4
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.se_DeleteIntegrationAssociationCommand = exports.se_DeleteInstanceCommand = exports.se_DeleteHoursOfOperationCommand = exports.se_DeleteEvaluationFormCommand = exports.se_DeleteContactFlowModuleCommand = exports.se_DeleteContactFlowCommand = exports.se_DeleteContactEvaluationCommand = exports.se_DeactivateEvaluationFormCommand = exports.se_CreateVocabularyCommand = exports.se_CreateViewVersionCommand = exports.se_CreateViewCommand = exports.se_CreateUserHierarchyGroupCommand = exports.se_CreateUserCommand = exports.se_CreateUseCaseCommand = exports.se_CreateTrafficDistributionGroupCommand = exports.se_CreateTaskTemplateCommand = exports.se_CreateSecurityProfileCommand = exports.se_CreateRuleCommand = exports.se_CreateRoutingProfileCommand = exports.se_CreateQuickConnectCommand = exports.se_CreateQueueCommand = exports.se_CreatePromptCommand = exports.se_CreatePersistentContactAssociationCommand = exports.se_CreateParticipantCommand = exports.se_CreateIntegrationAssociationCommand = exports.se_CreateInstanceCommand = exports.se_CreateHoursOfOperationCommand = exports.se_CreateEvaluationFormCommand = exports.se_CreateContactFlowModuleCommand = exports.se_CreateContactFlowCommand = exports.se_CreateAgentStatusCommand = exports.se_ClaimPhoneNumberCommand = exports.se_BatchPutContactCommand = exports.se_BatchGetFlowAssociationCommand = exports.se_BatchDisassociateAnalyticsDataSetCommand = exports.se_BatchAssociateAnalyticsDataSetCommand = exports.se_AssociateTrafficDistributionGroupUserCommand = exports.se_AssociateSecurityKeyCommand = exports.se_AssociateRoutingProfileQueuesCommand = exports.se_AssociateQueueQuickConnectsCommand = exports.se_AssociatePhoneNumberContactFlowCommand = exports.se_AssociateLexBotCommand = exports.se_AssociateLambdaFunctionCommand = exports.se_AssociateInstanceStorageConfigCommand = exports.se_AssociateFlowCommand = exports.se_AssociateDefaultVocabularyCommand = exports.se_AssociateBotCommand = exports.se_AssociateApprovedOriginCommand = exports.se_AssociateAnalyticsDataSetCommand = exports.se_ActivateEvaluationFormCommand = void 0;
|
|
4
4
|
exports.se_DismissUserContactCommand = exports.se_DisassociateTrafficDistributionGroupUserCommand = exports.se_DisassociateSecurityKeyCommand = exports.se_DisassociateRoutingProfileQueuesCommand = exports.se_DisassociateQueueQuickConnectsCommand = exports.se_DisassociatePhoneNumberContactFlowCommand = exports.se_DisassociateLexBotCommand = exports.se_DisassociateLambdaFunctionCommand = exports.se_DisassociateInstanceStorageConfigCommand = exports.se_DisassociateFlowCommand = exports.se_DisassociateBotCommand = exports.se_DisassociateApprovedOriginCommand = exports.se_DisassociateAnalyticsDataSetCommand = exports.se_DescribeVocabularyCommand = exports.se_DescribeViewCommand = exports.se_DescribeUserHierarchyStructureCommand = exports.se_DescribeUserHierarchyGroupCommand = exports.se_DescribeUserCommand = exports.se_DescribeTrafficDistributionGroupCommand = exports.se_DescribeSecurityProfileCommand = exports.se_DescribeRuleCommand = exports.se_DescribeRoutingProfileCommand = exports.se_DescribeQuickConnectCommand = exports.se_DescribeQueueCommand = exports.se_DescribePromptCommand = exports.se_DescribePhoneNumberCommand = exports.se_DescribeInstanceStorageConfigCommand = exports.se_DescribeInstanceAttributeCommand = exports.se_DescribeInstanceCommand = exports.se_DescribeHoursOfOperationCommand = exports.se_DescribeEvaluationFormCommand = exports.se_DescribeContactFlowModuleCommand = exports.se_DescribeContactFlowCommand = exports.se_DescribeContactEvaluationCommand = exports.se_DescribeContactCommand = exports.se_DescribeAgentStatusCommand = exports.se_DeleteVocabularyCommand = exports.se_DeleteViewVersionCommand = exports.se_DeleteViewCommand = exports.se_DeleteUserHierarchyGroupCommand = exports.se_DeleteUserCommand = exports.se_DeleteUseCaseCommand = exports.se_DeleteTrafficDistributionGroupCommand = exports.se_DeleteTaskTemplateCommand = exports.se_DeleteSecurityProfileCommand = exports.se_DeleteRuleCommand = exports.se_DeleteRoutingProfileCommand = exports.se_DeleteQuickConnectCommand = exports.se_DeleteQueueCommand = exports.se_DeletePromptCommand = void 0;
|
|
5
5
|
exports.se_ListUserHierarchyGroupsCommand = exports.se_ListUseCasesCommand = exports.se_ListTrafficDistributionGroupUsersCommand = exports.se_ListTrafficDistributionGroupsCommand = exports.se_ListTaskTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSecurityProfilesCommand = exports.se_ListSecurityProfilePermissionsCommand = exports.se_ListSecurityProfileApplicationsCommand = exports.se_ListSecurityKeysCommand = exports.se_ListRulesCommand = exports.se_ListRoutingProfilesCommand = exports.se_ListRoutingProfileQueuesCommand = exports.se_ListRealtimeContactAnalysisSegmentsV2Command = exports.se_ListQuickConnectsCommand = exports.se_ListQueuesCommand = exports.se_ListQueueQuickConnectsCommand = exports.se_ListPromptsCommand = exports.se_ListPhoneNumbersV2Command = exports.se_ListPhoneNumbersCommand = exports.se_ListLexBotsCommand = exports.se_ListLambdaFunctionsCommand = exports.se_ListIntegrationAssociationsCommand = exports.se_ListInstanceStorageConfigsCommand = exports.se_ListInstancesCommand = exports.se_ListInstanceAttributesCommand = exports.se_ListHoursOfOperationsCommand = exports.se_ListFlowAssociationsCommand = exports.se_ListEvaluationFormVersionsCommand = exports.se_ListEvaluationFormsCommand = exports.se_ListDefaultVocabulariesCommand = exports.se_ListContactReferencesCommand = exports.se_ListContactFlowsCommand = exports.se_ListContactFlowModulesCommand = exports.se_ListContactEvaluationsCommand = exports.se_ListBotsCommand = exports.se_ListApprovedOriginsCommand = exports.se_ListAnalyticsDataAssociationsCommand = exports.se_ListAgentStatusesCommand = exports.se_ImportPhoneNumberCommand = exports.se_GetTrafficDistributionCommand = exports.se_GetTaskTemplateCommand = exports.se_GetPromptFileCommand = exports.se_GetMetricDataV2Command = exports.se_GetMetricDataCommand = exports.se_GetFlowAssociationCommand = exports.se_GetFederationTokenCommand = exports.se_GetCurrentUserDataCommand = exports.se_GetCurrentMetricDataCommand = exports.se_GetContactAttributesCommand = void 0;
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.de_UpdateViewMetadataCommand = exports.de_UpdateViewContentCommand = exports.de_UpdateUserSecurityProfilesCommand = exports.de_UpdateUserRoutingProfileCommand = void 0;
|
|
6
|
+
exports.se_UpdateHoursOfOperationCommand = exports.se_UpdateEvaluationFormCommand = exports.se_UpdateContactScheduleCommand = exports.se_UpdateContactFlowNameCommand = exports.se_UpdateContactFlowModuleMetadataCommand = exports.se_UpdateContactFlowModuleContentCommand = exports.se_UpdateContactFlowMetadataCommand = exports.se_UpdateContactFlowContentCommand = exports.se_UpdateContactEvaluationCommand = exports.se_UpdateContactAttributesCommand = exports.se_UpdateContactCommand = exports.se_UpdateAgentStatusCommand = exports.se_UntagResourceCommand = exports.se_UntagContactCommand = exports.se_TransferContactCommand = exports.se_TagResourceCommand = exports.se_TagContactCommand = exports.se_SuspendContactRecordingCommand = exports.se_SubmitContactEvaluationCommand = exports.se_StopContactStreamingCommand = exports.se_StopContactRecordingCommand = exports.se_StopContactCommand = exports.se_StartWebRTCContactCommand = exports.se_StartTaskContactCommand = exports.se_StartOutboundVoiceContactCommand = exports.se_StartContactStreamingCommand = exports.se_StartContactRecordingCommand = exports.se_StartContactEvaluationCommand = exports.se_StartChatContactCommand = exports.se_SendChatIntegrationEventCommand = exports.se_SearchVocabulariesCommand = exports.se_SearchUsersCommand = exports.se_SearchSecurityProfilesCommand = exports.se_SearchRoutingProfilesCommand = exports.se_SearchResourceTagsCommand = exports.se_SearchQuickConnectsCommand = exports.se_SearchQueuesCommand = exports.se_SearchPromptsCommand = exports.se_SearchHoursOfOperationsCommand = exports.se_SearchAvailablePhoneNumbersCommand = exports.se_ResumeContactRecordingCommand = exports.se_ResumeContactCommand = exports.se_ReplicateInstanceCommand = exports.se_ReleasePhoneNumberCommand = exports.se_PutUserStatusCommand = exports.se_PauseContactCommand = exports.se_MonitorContactCommand = exports.se_ListViewVersionsCommand = exports.se_ListViewsCommand = exports.se_ListUsersCommand = void 0;
|
|
7
|
+
exports.de_ClaimPhoneNumberCommand = exports.de_BatchPutContactCommand = exports.de_BatchGetFlowAssociationCommand = exports.de_BatchDisassociateAnalyticsDataSetCommand = exports.de_BatchAssociateAnalyticsDataSetCommand = exports.de_AssociateTrafficDistributionGroupUserCommand = exports.de_AssociateSecurityKeyCommand = exports.de_AssociateRoutingProfileQueuesCommand = exports.de_AssociateQueueQuickConnectsCommand = exports.de_AssociatePhoneNumberContactFlowCommand = exports.de_AssociateLexBotCommand = exports.de_AssociateLambdaFunctionCommand = exports.de_AssociateInstanceStorageConfigCommand = exports.de_AssociateFlowCommand = exports.de_AssociateDefaultVocabularyCommand = exports.de_AssociateBotCommand = exports.de_AssociateApprovedOriginCommand = exports.de_AssociateAnalyticsDataSetCommand = exports.de_ActivateEvaluationFormCommand = exports.se_UpdateViewMetadataCommand = exports.se_UpdateViewContentCommand = exports.se_UpdateUserSecurityProfilesCommand = exports.se_UpdateUserRoutingProfileCommand = exports.se_UpdateUserPhoneConfigCommand = exports.se_UpdateUserIdentityInfoCommand = exports.se_UpdateUserHierarchyStructureCommand = exports.se_UpdateUserHierarchyGroupNameCommand = exports.se_UpdateUserHierarchyCommand = exports.se_UpdateTrafficDistributionCommand = exports.se_UpdateTaskTemplateCommand = exports.se_UpdateSecurityProfileCommand = exports.se_UpdateRuleCommand = exports.se_UpdateRoutingProfileQueuesCommand = exports.se_UpdateRoutingProfileNameCommand = exports.se_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.se_UpdateRoutingProfileConcurrencyCommand = exports.se_UpdateRoutingProfileAgentAvailabilityTimerCommand = exports.se_UpdateQuickConnectNameCommand = exports.se_UpdateQuickConnectConfigCommand = exports.se_UpdateQueueStatusCommand = exports.se_UpdateQueueOutboundCallerConfigCommand = exports.se_UpdateQueueNameCommand = exports.se_UpdateQueueMaxContactsCommand = exports.se_UpdateQueueHoursOfOperationCommand = exports.se_UpdatePromptCommand = exports.se_UpdatePhoneNumberMetadataCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateParticipantRoleConfigCommand = exports.se_UpdateInstanceStorageConfigCommand = exports.se_UpdateInstanceAttributeCommand = void 0;
|
|
8
|
+
exports.de_DescribeContactFlowModuleCommand = exports.de_DescribeContactFlowCommand = exports.de_DescribeContactEvaluationCommand = exports.de_DescribeContactCommand = exports.de_DescribeAgentStatusCommand = exports.de_DeleteVocabularyCommand = exports.de_DeleteViewVersionCommand = exports.de_DeleteViewCommand = exports.de_DeleteUserHierarchyGroupCommand = exports.de_DeleteUserCommand = exports.de_DeleteUseCaseCommand = exports.de_DeleteTrafficDistributionGroupCommand = exports.de_DeleteTaskTemplateCommand = exports.de_DeleteSecurityProfileCommand = exports.de_DeleteRuleCommand = exports.de_DeleteRoutingProfileCommand = exports.de_DeleteQuickConnectCommand = exports.de_DeleteQueueCommand = exports.de_DeletePromptCommand = exports.de_DeleteIntegrationAssociationCommand = exports.de_DeleteInstanceCommand = exports.de_DeleteHoursOfOperationCommand = exports.de_DeleteEvaluationFormCommand = exports.de_DeleteContactFlowModuleCommand = exports.de_DeleteContactFlowCommand = exports.de_DeleteContactEvaluationCommand = exports.de_DeactivateEvaluationFormCommand = exports.de_CreateVocabularyCommand = exports.de_CreateViewVersionCommand = exports.de_CreateViewCommand = exports.de_CreateUserHierarchyGroupCommand = exports.de_CreateUserCommand = exports.de_CreateUseCaseCommand = exports.de_CreateTrafficDistributionGroupCommand = exports.de_CreateTaskTemplateCommand = exports.de_CreateSecurityProfileCommand = exports.de_CreateRuleCommand = exports.de_CreateRoutingProfileCommand = exports.de_CreateQuickConnectCommand = exports.de_CreateQueueCommand = exports.de_CreatePromptCommand = exports.de_CreatePersistentContactAssociationCommand = exports.de_CreateParticipantCommand = exports.de_CreateIntegrationAssociationCommand = exports.de_CreateInstanceCommand = exports.de_CreateHoursOfOperationCommand = exports.de_CreateEvaluationFormCommand = exports.de_CreateContactFlowModuleCommand = exports.de_CreateContactFlowCommand = exports.de_CreateAgentStatusCommand = void 0;
|
|
9
|
+
exports.de_ListContactReferencesCommand = exports.de_ListContactFlowsCommand = exports.de_ListContactFlowModulesCommand = exports.de_ListContactEvaluationsCommand = exports.de_ListBotsCommand = exports.de_ListApprovedOriginsCommand = exports.de_ListAnalyticsDataAssociationsCommand = exports.de_ListAgentStatusesCommand = exports.de_ImportPhoneNumberCommand = exports.de_GetTrafficDistributionCommand = exports.de_GetTaskTemplateCommand = exports.de_GetPromptFileCommand = exports.de_GetMetricDataV2Command = exports.de_GetMetricDataCommand = exports.de_GetFlowAssociationCommand = exports.de_GetFederationTokenCommand = exports.de_GetCurrentUserDataCommand = exports.de_GetCurrentMetricDataCommand = exports.de_GetContactAttributesCommand = exports.de_DismissUserContactCommand = exports.de_DisassociateTrafficDistributionGroupUserCommand = exports.de_DisassociateSecurityKeyCommand = exports.de_DisassociateRoutingProfileQueuesCommand = exports.de_DisassociateQueueQuickConnectsCommand = exports.de_DisassociatePhoneNumberContactFlowCommand = exports.de_DisassociateLexBotCommand = exports.de_DisassociateLambdaFunctionCommand = exports.de_DisassociateInstanceStorageConfigCommand = exports.de_DisassociateFlowCommand = exports.de_DisassociateBotCommand = exports.de_DisassociateApprovedOriginCommand = exports.de_DisassociateAnalyticsDataSetCommand = exports.de_DescribeVocabularyCommand = exports.de_DescribeViewCommand = exports.de_DescribeUserHierarchyStructureCommand = exports.de_DescribeUserHierarchyGroupCommand = exports.de_DescribeUserCommand = exports.de_DescribeTrafficDistributionGroupCommand = exports.de_DescribeSecurityProfileCommand = exports.de_DescribeRuleCommand = exports.de_DescribeRoutingProfileCommand = exports.de_DescribeQuickConnectCommand = exports.de_DescribeQueueCommand = exports.de_DescribePromptCommand = exports.de_DescribePhoneNumberCommand = exports.de_DescribeInstanceStorageConfigCommand = exports.de_DescribeInstanceAttributeCommand = exports.de_DescribeInstanceCommand = exports.de_DescribeHoursOfOperationCommand = exports.de_DescribeEvaluationFormCommand = void 0;
|
|
10
|
+
exports.de_SearchUsersCommand = exports.de_SearchSecurityProfilesCommand = exports.de_SearchRoutingProfilesCommand = exports.de_SearchResourceTagsCommand = exports.de_SearchQuickConnectsCommand = exports.de_SearchQueuesCommand = exports.de_SearchPromptsCommand = exports.de_SearchHoursOfOperationsCommand = exports.de_SearchAvailablePhoneNumbersCommand = exports.de_ResumeContactRecordingCommand = exports.de_ResumeContactCommand = exports.de_ReplicateInstanceCommand = exports.de_ReleasePhoneNumberCommand = exports.de_PutUserStatusCommand = exports.de_PauseContactCommand = exports.de_MonitorContactCommand = exports.de_ListViewVersionsCommand = exports.de_ListViewsCommand = exports.de_ListUsersCommand = exports.de_ListUserHierarchyGroupsCommand = exports.de_ListUseCasesCommand = exports.de_ListTrafficDistributionGroupUsersCommand = exports.de_ListTrafficDistributionGroupsCommand = exports.de_ListTaskTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSecurityProfilesCommand = exports.de_ListSecurityProfilePermissionsCommand = exports.de_ListSecurityProfileApplicationsCommand = exports.de_ListSecurityKeysCommand = exports.de_ListRulesCommand = exports.de_ListRoutingProfilesCommand = exports.de_ListRoutingProfileQueuesCommand = exports.de_ListRealtimeContactAnalysisSegmentsV2Command = exports.de_ListQuickConnectsCommand = exports.de_ListQueuesCommand = exports.de_ListQueueQuickConnectsCommand = exports.de_ListPromptsCommand = exports.de_ListPhoneNumbersV2Command = exports.de_ListPhoneNumbersCommand = exports.de_ListLexBotsCommand = exports.de_ListLambdaFunctionsCommand = exports.de_ListIntegrationAssociationsCommand = exports.de_ListInstanceStorageConfigsCommand = exports.de_ListInstancesCommand = exports.de_ListInstanceAttributesCommand = exports.de_ListHoursOfOperationsCommand = exports.de_ListFlowAssociationsCommand = exports.de_ListEvaluationFormVersionsCommand = exports.de_ListEvaluationFormsCommand = exports.de_ListDefaultVocabulariesCommand = void 0;
|
|
11
|
+
exports.de_UpdateRuleCommand = exports.de_UpdateRoutingProfileQueuesCommand = exports.de_UpdateRoutingProfileNameCommand = exports.de_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.de_UpdateRoutingProfileConcurrencyCommand = exports.de_UpdateRoutingProfileAgentAvailabilityTimerCommand = exports.de_UpdateQuickConnectNameCommand = exports.de_UpdateQuickConnectConfigCommand = exports.de_UpdateQueueStatusCommand = exports.de_UpdateQueueOutboundCallerConfigCommand = exports.de_UpdateQueueNameCommand = exports.de_UpdateQueueMaxContactsCommand = exports.de_UpdateQueueHoursOfOperationCommand = exports.de_UpdatePromptCommand = exports.de_UpdatePhoneNumberMetadataCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateParticipantRoleConfigCommand = exports.de_UpdateInstanceStorageConfigCommand = exports.de_UpdateInstanceAttributeCommand = exports.de_UpdateHoursOfOperationCommand = exports.de_UpdateEvaluationFormCommand = exports.de_UpdateContactScheduleCommand = exports.de_UpdateContactFlowNameCommand = exports.de_UpdateContactFlowModuleMetadataCommand = exports.de_UpdateContactFlowModuleContentCommand = exports.de_UpdateContactFlowMetadataCommand = exports.de_UpdateContactFlowContentCommand = exports.de_UpdateContactEvaluationCommand = exports.de_UpdateContactAttributesCommand = exports.de_UpdateContactCommand = exports.de_UpdateAgentStatusCommand = exports.de_UntagResourceCommand = exports.de_UntagContactCommand = exports.de_TransferContactCommand = exports.de_TagResourceCommand = exports.de_TagContactCommand = exports.de_SuspendContactRecordingCommand = exports.de_SubmitContactEvaluationCommand = exports.de_StopContactStreamingCommand = exports.de_StopContactRecordingCommand = exports.de_StopContactCommand = exports.de_StartWebRTCContactCommand = exports.de_StartTaskContactCommand = exports.de_StartOutboundVoiceContactCommand = exports.de_StartContactStreamingCommand = exports.de_StartContactRecordingCommand = exports.de_StartContactEvaluationCommand = exports.de_StartChatContactCommand = exports.de_SendChatIntegrationEventCommand = exports.de_SearchVocabulariesCommand = void 0;
|
|
12
|
+
exports.de_UpdateViewMetadataCommand = exports.de_UpdateViewContentCommand = exports.de_UpdateUserSecurityProfilesCommand = exports.de_UpdateUserRoutingProfileCommand = exports.de_UpdateUserPhoneConfigCommand = exports.de_UpdateUserIdentityInfoCommand = exports.de_UpdateUserHierarchyStructureCommand = exports.de_UpdateUserHierarchyGroupNameCommand = exports.de_UpdateUserHierarchyCommand = exports.de_UpdateTrafficDistributionCommand = exports.de_UpdateTaskTemplateCommand = exports.de_UpdateSecurityProfileCommand = void 0;
|
|
13
13
|
const core_1 = require("@aws-sdk/core");
|
|
14
14
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
15
15
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -814,7 +814,7 @@ const se_CreateRuleCommand = async (input, context) => {
|
|
|
814
814
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
815
815
|
let body;
|
|
816
816
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
817
|
-
Actions: (_) => (
|
|
817
|
+
Actions: (_) => se_RuleActions(_, context),
|
|
818
818
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
819
819
|
Function: [],
|
|
820
820
|
Name: [],
|
|
@@ -3469,6 +3469,29 @@ const se_MonitorContactCommand = async (input, context) => {
|
|
|
3469
3469
|
});
|
|
3470
3470
|
};
|
|
3471
3471
|
exports.se_MonitorContactCommand = se_MonitorContactCommand;
|
|
3472
|
+
const se_PauseContactCommand = async (input, context) => {
|
|
3473
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3474
|
+
const headers = {
|
|
3475
|
+
"content-type": "application/json",
|
|
3476
|
+
};
|
|
3477
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/pause";
|
|
3478
|
+
let body;
|
|
3479
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
3480
|
+
ContactFlowId: [],
|
|
3481
|
+
ContactId: [],
|
|
3482
|
+
InstanceId: [],
|
|
3483
|
+
}));
|
|
3484
|
+
return new protocol_http_1.HttpRequest({
|
|
3485
|
+
protocol,
|
|
3486
|
+
hostname,
|
|
3487
|
+
port,
|
|
3488
|
+
method: "POST",
|
|
3489
|
+
headers,
|
|
3490
|
+
path: resolvedPath,
|
|
3491
|
+
body,
|
|
3492
|
+
});
|
|
3493
|
+
};
|
|
3494
|
+
exports.se_PauseContactCommand = se_PauseContactCommand;
|
|
3472
3495
|
const se_PutUserStatusCommand = async (input, context) => {
|
|
3473
3496
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3474
3497
|
const headers = {
|
|
@@ -3537,6 +3560,29 @@ const se_ReplicateInstanceCommand = async (input, context) => {
|
|
|
3537
3560
|
});
|
|
3538
3561
|
};
|
|
3539
3562
|
exports.se_ReplicateInstanceCommand = se_ReplicateInstanceCommand;
|
|
3563
|
+
const se_ResumeContactCommand = async (input, context) => {
|
|
3564
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3565
|
+
const headers = {
|
|
3566
|
+
"content-type": "application/json",
|
|
3567
|
+
};
|
|
3568
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/resume";
|
|
3569
|
+
let body;
|
|
3570
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
3571
|
+
ContactFlowId: [],
|
|
3572
|
+
ContactId: [],
|
|
3573
|
+
InstanceId: [],
|
|
3574
|
+
}));
|
|
3575
|
+
return new protocol_http_1.HttpRequest({
|
|
3576
|
+
protocol,
|
|
3577
|
+
hostname,
|
|
3578
|
+
port,
|
|
3579
|
+
method: "POST",
|
|
3580
|
+
headers,
|
|
3581
|
+
path: resolvedPath,
|
|
3582
|
+
body,
|
|
3583
|
+
});
|
|
3584
|
+
};
|
|
3585
|
+
exports.se_ResumeContactCommand = se_ResumeContactCommand;
|
|
3540
3586
|
const se_ResumeContactRecordingCommand = async (input, context) => {
|
|
3541
3587
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3542
3588
|
const headers = {
|
|
@@ -3954,9 +4000,13 @@ const se_StartOutboundVoiceContactCommand = async (input, context) => {
|
|
|
3954
4000
|
CampaignId: [],
|
|
3955
4001
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3956
4002
|
ContactFlowId: [],
|
|
4003
|
+
Description: [],
|
|
3957
4004
|
DestinationPhoneNumber: [],
|
|
3958
4005
|
InstanceId: [],
|
|
4006
|
+
Name: [],
|
|
3959
4007
|
QueueId: [],
|
|
4008
|
+
References: (_) => (0, smithy_client_1._json)(_),
|
|
4009
|
+
RelatedContactId: [],
|
|
3960
4010
|
SourcePhoneNumber: [],
|
|
3961
4011
|
TrafficType: [],
|
|
3962
4012
|
}));
|
|
@@ -4149,6 +4199,29 @@ const se_SuspendContactRecordingCommand = async (input, context) => {
|
|
|
4149
4199
|
});
|
|
4150
4200
|
};
|
|
4151
4201
|
exports.se_SuspendContactRecordingCommand = se_SuspendContactRecordingCommand;
|
|
4202
|
+
const se_TagContactCommand = async (input, context) => {
|
|
4203
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4204
|
+
const headers = {
|
|
4205
|
+
"content-type": "application/json",
|
|
4206
|
+
};
|
|
4207
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/tags";
|
|
4208
|
+
let body;
|
|
4209
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
4210
|
+
ContactId: [],
|
|
4211
|
+
InstanceId: [],
|
|
4212
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
4213
|
+
}));
|
|
4214
|
+
return new protocol_http_1.HttpRequest({
|
|
4215
|
+
protocol,
|
|
4216
|
+
hostname,
|
|
4217
|
+
port,
|
|
4218
|
+
method: "POST",
|
|
4219
|
+
headers,
|
|
4220
|
+
path: resolvedPath,
|
|
4221
|
+
body,
|
|
4222
|
+
});
|
|
4223
|
+
};
|
|
4224
|
+
exports.se_TagContactCommand = se_TagContactCommand;
|
|
4152
4225
|
const se_TagResourceCommand = async (input, context) => {
|
|
4153
4226
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4154
4227
|
const headers = {
|
|
@@ -4197,6 +4270,31 @@ const se_TransferContactCommand = async (input, context) => {
|
|
|
4197
4270
|
});
|
|
4198
4271
|
};
|
|
4199
4272
|
exports.se_TransferContactCommand = se_TransferContactCommand;
|
|
4273
|
+
const se_UntagContactCommand = async (input, context) => {
|
|
4274
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4275
|
+
const headers = {};
|
|
4276
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/tags/{InstanceId}/{ContactId}";
|
|
4277
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ContactId", () => input.ContactId, "{ContactId}", false);
|
|
4278
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
4279
|
+
const query = (0, smithy_client_1.map)({
|
|
4280
|
+
TagKeys: [
|
|
4281
|
+
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
4282
|
+
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
4283
|
+
],
|
|
4284
|
+
});
|
|
4285
|
+
let body;
|
|
4286
|
+
return new protocol_http_1.HttpRequest({
|
|
4287
|
+
protocol,
|
|
4288
|
+
hostname,
|
|
4289
|
+
port,
|
|
4290
|
+
method: "DELETE",
|
|
4291
|
+
headers,
|
|
4292
|
+
path: resolvedPath,
|
|
4293
|
+
query,
|
|
4294
|
+
body,
|
|
4295
|
+
});
|
|
4296
|
+
};
|
|
4297
|
+
exports.se_UntagContactCommand = se_UntagContactCommand;
|
|
4200
4298
|
const se_UntagResourceCommand = async (input, context) => {
|
|
4201
4299
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4202
4300
|
const headers = {};
|
|
@@ -4974,7 +5072,7 @@ const se_UpdateRuleCommand = async (input, context) => {
|
|
|
4974
5072
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
|
|
4975
5073
|
let body;
|
|
4976
5074
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
4977
|
-
Actions: (_) => (
|
|
5075
|
+
Actions: (_) => se_RuleActions(_, context),
|
|
4978
5076
|
Function: [],
|
|
4979
5077
|
Name: [],
|
|
4980
5078
|
PublishStatus: [],
|
|
@@ -12509,6 +12607,57 @@ const de_MonitorContactCommandError = async (output, context) => {
|
|
|
12509
12607
|
});
|
|
12510
12608
|
}
|
|
12511
12609
|
};
|
|
12610
|
+
const de_PauseContactCommand = async (output, context) => {
|
|
12611
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12612
|
+
return de_PauseContactCommandError(output, context);
|
|
12613
|
+
}
|
|
12614
|
+
const contents = (0, smithy_client_1.map)({
|
|
12615
|
+
$metadata: deserializeMetadata(output),
|
|
12616
|
+
});
|
|
12617
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
12618
|
+
return contents;
|
|
12619
|
+
};
|
|
12620
|
+
exports.de_PauseContactCommand = de_PauseContactCommand;
|
|
12621
|
+
const de_PauseContactCommandError = async (output, context) => {
|
|
12622
|
+
const parsedOutput = {
|
|
12623
|
+
...output,
|
|
12624
|
+
body: await parseErrorBody(output.body, context),
|
|
12625
|
+
};
|
|
12626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12627
|
+
switch (errorCode) {
|
|
12628
|
+
case "AccessDeniedException":
|
|
12629
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
12630
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
12631
|
+
case "ConflictException":
|
|
12632
|
+
case "com.amazonaws.connect#ConflictException":
|
|
12633
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
12634
|
+
case "InternalServiceException":
|
|
12635
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
12636
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
12637
|
+
case "InvalidParameterException":
|
|
12638
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
12639
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
12640
|
+
case "InvalidRequestException":
|
|
12641
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
12642
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
12643
|
+
case "LimitExceededException":
|
|
12644
|
+
case "com.amazonaws.connect#LimitExceededException":
|
|
12645
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
12646
|
+
case "ResourceNotFoundException":
|
|
12647
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
12648
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
12649
|
+
case "ThrottlingException":
|
|
12650
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
12651
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
12652
|
+
default:
|
|
12653
|
+
const parsedBody = parsedOutput.body;
|
|
12654
|
+
return throwDefaultError({
|
|
12655
|
+
output,
|
|
12656
|
+
parsedBody,
|
|
12657
|
+
errorCode,
|
|
12658
|
+
});
|
|
12659
|
+
}
|
|
12660
|
+
};
|
|
12512
12661
|
const de_PutUserStatusCommand = async (output, context) => {
|
|
12513
12662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12514
12663
|
return de_PutUserStatusCommandError(output, context);
|
|
@@ -12658,6 +12807,54 @@ const de_ReplicateInstanceCommandError = async (output, context) => {
|
|
|
12658
12807
|
});
|
|
12659
12808
|
}
|
|
12660
12809
|
};
|
|
12810
|
+
const de_ResumeContactCommand = async (output, context) => {
|
|
12811
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12812
|
+
return de_ResumeContactCommandError(output, context);
|
|
12813
|
+
}
|
|
12814
|
+
const contents = (0, smithy_client_1.map)({
|
|
12815
|
+
$metadata: deserializeMetadata(output),
|
|
12816
|
+
});
|
|
12817
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
12818
|
+
return contents;
|
|
12819
|
+
};
|
|
12820
|
+
exports.de_ResumeContactCommand = de_ResumeContactCommand;
|
|
12821
|
+
const de_ResumeContactCommandError = async (output, context) => {
|
|
12822
|
+
const parsedOutput = {
|
|
12823
|
+
...output,
|
|
12824
|
+
body: await parseErrorBody(output.body, context),
|
|
12825
|
+
};
|
|
12826
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12827
|
+
switch (errorCode) {
|
|
12828
|
+
case "AccessDeniedException":
|
|
12829
|
+
case "com.amazonaws.connect#AccessDeniedException":
|
|
12830
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
12831
|
+
case "ConflictException":
|
|
12832
|
+
case "com.amazonaws.connect#ConflictException":
|
|
12833
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
12834
|
+
case "InternalServiceException":
|
|
12835
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
12836
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
12837
|
+
case "InvalidParameterException":
|
|
12838
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
12839
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
12840
|
+
case "InvalidRequestException":
|
|
12841
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
12842
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
12843
|
+
case "ResourceNotFoundException":
|
|
12844
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
12845
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
12846
|
+
case "ThrottlingException":
|
|
12847
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
12848
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
12849
|
+
default:
|
|
12850
|
+
const parsedBody = parsedOutput.body;
|
|
12851
|
+
return throwDefaultError({
|
|
12852
|
+
output,
|
|
12853
|
+
parsedBody,
|
|
12854
|
+
errorCode,
|
|
12855
|
+
});
|
|
12856
|
+
}
|
|
12857
|
+
};
|
|
12661
12858
|
const de_ResumeContactRecordingCommand = async (output, context) => {
|
|
12662
12859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12663
12860
|
return de_ResumeContactRecordingCommandError(output, context);
|
|
@@ -13749,6 +13946,48 @@ const de_SuspendContactRecordingCommandError = async (output, context) => {
|
|
|
13749
13946
|
});
|
|
13750
13947
|
}
|
|
13751
13948
|
};
|
|
13949
|
+
const de_TagContactCommand = async (output, context) => {
|
|
13950
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13951
|
+
return de_TagContactCommandError(output, context);
|
|
13952
|
+
}
|
|
13953
|
+
const contents = (0, smithy_client_1.map)({
|
|
13954
|
+
$metadata: deserializeMetadata(output),
|
|
13955
|
+
});
|
|
13956
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
13957
|
+
return contents;
|
|
13958
|
+
};
|
|
13959
|
+
exports.de_TagContactCommand = de_TagContactCommand;
|
|
13960
|
+
const de_TagContactCommandError = async (output, context) => {
|
|
13961
|
+
const parsedOutput = {
|
|
13962
|
+
...output,
|
|
13963
|
+
body: await parseErrorBody(output.body, context),
|
|
13964
|
+
};
|
|
13965
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13966
|
+
switch (errorCode) {
|
|
13967
|
+
case "InternalServiceException":
|
|
13968
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
13969
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
13970
|
+
case "InvalidParameterException":
|
|
13971
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
13972
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
13973
|
+
case "InvalidRequestException":
|
|
13974
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
13975
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
13976
|
+
case "ResourceNotFoundException":
|
|
13977
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
13978
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
13979
|
+
case "ThrottlingException":
|
|
13980
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
13981
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
13982
|
+
default:
|
|
13983
|
+
const parsedBody = parsedOutput.body;
|
|
13984
|
+
return throwDefaultError({
|
|
13985
|
+
output,
|
|
13986
|
+
parsedBody,
|
|
13987
|
+
errorCode,
|
|
13988
|
+
});
|
|
13989
|
+
}
|
|
13990
|
+
};
|
|
13752
13991
|
const de_TagResourceCommand = async (output, context) => {
|
|
13753
13992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13754
13993
|
return de_TagResourceCommandError(output, context);
|
|
@@ -13844,6 +14083,48 @@ const de_TransferContactCommandError = async (output, context) => {
|
|
|
13844
14083
|
});
|
|
13845
14084
|
}
|
|
13846
14085
|
};
|
|
14086
|
+
const de_UntagContactCommand = async (output, context) => {
|
|
14087
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
14088
|
+
return de_UntagContactCommandError(output, context);
|
|
14089
|
+
}
|
|
14090
|
+
const contents = (0, smithy_client_1.map)({
|
|
14091
|
+
$metadata: deserializeMetadata(output),
|
|
14092
|
+
});
|
|
14093
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
14094
|
+
return contents;
|
|
14095
|
+
};
|
|
14096
|
+
exports.de_UntagContactCommand = de_UntagContactCommand;
|
|
14097
|
+
const de_UntagContactCommandError = async (output, context) => {
|
|
14098
|
+
const parsedOutput = {
|
|
14099
|
+
...output,
|
|
14100
|
+
body: await parseErrorBody(output.body, context),
|
|
14101
|
+
};
|
|
14102
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
14103
|
+
switch (errorCode) {
|
|
14104
|
+
case "InternalServiceException":
|
|
14105
|
+
case "com.amazonaws.connect#InternalServiceException":
|
|
14106
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
14107
|
+
case "InvalidParameterException":
|
|
14108
|
+
case "com.amazonaws.connect#InvalidParameterException":
|
|
14109
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
14110
|
+
case "InvalidRequestException":
|
|
14111
|
+
case "com.amazonaws.connect#InvalidRequestException":
|
|
14112
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
14113
|
+
case "ResourceNotFoundException":
|
|
14114
|
+
case "com.amazonaws.connect#ResourceNotFoundException":
|
|
14115
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
14116
|
+
case "ThrottlingException":
|
|
14117
|
+
case "com.amazonaws.connect#ThrottlingException":
|
|
14118
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
14119
|
+
default:
|
|
14120
|
+
const parsedBody = parsedOutput.body;
|
|
14121
|
+
return throwDefaultError({
|
|
14122
|
+
output,
|
|
14123
|
+
parsedBody,
|
|
14124
|
+
errorCode,
|
|
14125
|
+
});
|
|
14126
|
+
}
|
|
14127
|
+
};
|
|
13847
14128
|
const de_UntagResourceCommand = async (output, context) => {
|
|
13848
14129
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13849
14130
|
return de_UntagResourceCommandError(output, context);
|
|
@@ -15830,6 +16111,19 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
15830
16111
|
});
|
|
15831
16112
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
15832
16113
|
};
|
|
16114
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
16115
|
+
const contents = (0, smithy_client_1.map)({});
|
|
16116
|
+
const data = parsedOutput.body;
|
|
16117
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
16118
|
+
Message: smithy_client_1.expectString,
|
|
16119
|
+
});
|
|
16120
|
+
Object.assign(contents, doc);
|
|
16121
|
+
const exception = new models_1_1.ConflictException({
|
|
16122
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
16123
|
+
...contents,
|
|
16124
|
+
});
|
|
16125
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
16126
|
+
};
|
|
15833
16127
|
const de_ContactFlowNotPublishedExceptionRes = async (parsedOutput, context) => {
|
|
15834
16128
|
const contents = (0, smithy_client_1.map)({});
|
|
15835
16129
|
const data = parsedOutput.body;
|
|
@@ -16132,6 +16426,12 @@ const de_UserNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
16132
16426
|
});
|
|
16133
16427
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
16134
16428
|
};
|
|
16429
|
+
const se_CreateCaseActionDefinition = (input, context) => {
|
|
16430
|
+
return (0, smithy_client_1.take)(input, {
|
|
16431
|
+
Fields: (_) => se_FieldValues(_, context),
|
|
16432
|
+
TemplateId: [],
|
|
16433
|
+
});
|
|
16434
|
+
};
|
|
16135
16435
|
const se_EvaluationAnswerData = (input, context) => {
|
|
16136
16436
|
return models_0_1.EvaluationAnswerData.visit(input, {
|
|
16137
16437
|
NotApplicable: (value) => ({ NotApplicable: value }),
|
|
@@ -16188,6 +16488,27 @@ const se_EvaluationFormSection = (input, context) => {
|
|
|
16188
16488
|
Weight: smithy_client_1.serializeFloat,
|
|
16189
16489
|
});
|
|
16190
16490
|
};
|
|
16491
|
+
const se_FieldValue = (input, context) => {
|
|
16492
|
+
return (0, smithy_client_1.take)(input, {
|
|
16493
|
+
Id: [],
|
|
16494
|
+
Value: (_) => se_FieldValueUnion(_, context),
|
|
16495
|
+
});
|
|
16496
|
+
};
|
|
16497
|
+
const se_FieldValues = (input, context) => {
|
|
16498
|
+
return input
|
|
16499
|
+
.filter((e) => e != null)
|
|
16500
|
+
.map((entry) => {
|
|
16501
|
+
return se_FieldValue(entry, context);
|
|
16502
|
+
});
|
|
16503
|
+
};
|
|
16504
|
+
const se_FieldValueUnion = (input, context) => {
|
|
16505
|
+
return (0, smithy_client_1.take)(input, {
|
|
16506
|
+
BooleanValue: [],
|
|
16507
|
+
DoubleValue: smithy_client_1.serializeFloat,
|
|
16508
|
+
EmptyValue: smithy_client_1._json,
|
|
16509
|
+
StringValue: [],
|
|
16510
|
+
});
|
|
16511
|
+
};
|
|
16191
16512
|
const se_HistoricalMetric = (input, context) => {
|
|
16192
16513
|
return (0, smithy_client_1.take)(input, {
|
|
16193
16514
|
Name: [],
|
|
@@ -16288,6 +16609,25 @@ const se_RoutingProfileSearchCriteria = (input, context) => {
|
|
|
16288
16609
|
StringCondition: smithy_client_1._json,
|
|
16289
16610
|
});
|
|
16290
16611
|
};
|
|
16612
|
+
const se_RuleAction = (input, context) => {
|
|
16613
|
+
return (0, smithy_client_1.take)(input, {
|
|
16614
|
+
ActionType: [],
|
|
16615
|
+
AssignContactCategoryAction: smithy_client_1._json,
|
|
16616
|
+
CreateCaseAction: (_) => se_CreateCaseActionDefinition(_, context),
|
|
16617
|
+
EndAssociatedTasksAction: smithy_client_1._json,
|
|
16618
|
+
EventBridgeAction: smithy_client_1._json,
|
|
16619
|
+
SendNotificationAction: smithy_client_1._json,
|
|
16620
|
+
TaskAction: smithy_client_1._json,
|
|
16621
|
+
UpdateCaseAction: (_) => se_UpdateCaseActionDefinition(_, context),
|
|
16622
|
+
});
|
|
16623
|
+
};
|
|
16624
|
+
const se_RuleActions = (input, context) => {
|
|
16625
|
+
return input
|
|
16626
|
+
.filter((e) => e != null)
|
|
16627
|
+
.map((entry) => {
|
|
16628
|
+
return se_RuleAction(entry, context);
|
|
16629
|
+
});
|
|
16630
|
+
};
|
|
16291
16631
|
const se_SecurityProfileSearchConditionList = (input, context) => {
|
|
16292
16632
|
return input
|
|
16293
16633
|
.filter((e) => e != null)
|
|
@@ -16321,6 +16661,11 @@ const se_ThresholdV2 = (input, context) => {
|
|
|
16321
16661
|
ThresholdValue: smithy_client_1.serializeFloat,
|
|
16322
16662
|
});
|
|
16323
16663
|
};
|
|
16664
|
+
const se_UpdateCaseActionDefinition = (input, context) => {
|
|
16665
|
+
return (0, smithy_client_1.take)(input, {
|
|
16666
|
+
Fields: (_) => se_FieldValues(_, context),
|
|
16667
|
+
});
|
|
16668
|
+
};
|
|
16324
16669
|
const se_UserSearchConditionList = (input, context) => {
|
|
16325
16670
|
return input
|
|
16326
16671
|
.filter((e) => e != null)
|
|
@@ -16357,6 +16702,7 @@ const de_AgentContactReferenceList = (output, context) => {
|
|
|
16357
16702
|
};
|
|
16358
16703
|
const de_AgentInfo = (output, context) => {
|
|
16359
16704
|
return (0, smithy_client_1.take)(output, {
|
|
16705
|
+
AgentPauseDurationInSeconds: smithy_client_1.expectInt32,
|
|
16360
16706
|
ConnectedToAgentTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16361
16707
|
Id: smithy_client_1.expectString,
|
|
16362
16708
|
});
|
|
@@ -16411,15 +16757,26 @@ const de_Contact = (output, context) => {
|
|
|
16411
16757
|
InitialContactId: smithy_client_1.expectString,
|
|
16412
16758
|
InitiationMethod: smithy_client_1.expectString,
|
|
16413
16759
|
InitiationTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16760
|
+
LastPausedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16761
|
+
LastResumedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16414
16762
|
LastUpdateTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16415
16763
|
Name: smithy_client_1.expectString,
|
|
16416
16764
|
PreviousContactId: smithy_client_1.expectString,
|
|
16417
16765
|
QueueInfo: (_) => de_QueueInfo(_, context),
|
|
16418
16766
|
RelatedContactId: smithy_client_1.expectString,
|
|
16419
16767
|
ScheduledTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
16768
|
+
Tags: smithy_client_1._json,
|
|
16769
|
+
TotalPauseCount: smithy_client_1.expectInt32,
|
|
16770
|
+
TotalPauseDurationInSeconds: smithy_client_1.expectInt32,
|
|
16420
16771
|
WisdomInfo: smithy_client_1._json,
|
|
16421
16772
|
});
|
|
16422
16773
|
};
|
|
16774
|
+
const de_CreateCaseActionDefinition = (output, context) => {
|
|
16775
|
+
return (0, smithy_client_1.take)(output, {
|
|
16776
|
+
Fields: (_) => de_FieldValues(_, context),
|
|
16777
|
+
TemplateId: smithy_client_1.expectString,
|
|
16778
|
+
});
|
|
16779
|
+
};
|
|
16423
16780
|
const de_Credentials = (output, context) => {
|
|
16424
16781
|
return (0, smithy_client_1.take)(output, {
|
|
16425
16782
|
AccessToken: smithy_client_1.expectString,
|
|
@@ -16656,6 +17013,28 @@ const de_EvaluationSummaryList = (output, context) => {
|
|
|
16656
17013
|
});
|
|
16657
17014
|
return retVal;
|
|
16658
17015
|
};
|
|
17016
|
+
const de_FieldValue = (output, context) => {
|
|
17017
|
+
return (0, smithy_client_1.take)(output, {
|
|
17018
|
+
Id: smithy_client_1.expectString,
|
|
17019
|
+
Value: (_) => de_FieldValueUnion(_, context),
|
|
17020
|
+
});
|
|
17021
|
+
};
|
|
17022
|
+
const de_FieldValues = (output, context) => {
|
|
17023
|
+
const retVal = (output || [])
|
|
17024
|
+
.filter((e) => e != null)
|
|
17025
|
+
.map((entry) => {
|
|
17026
|
+
return de_FieldValue(entry, context);
|
|
17027
|
+
});
|
|
17028
|
+
return retVal;
|
|
17029
|
+
};
|
|
17030
|
+
const de_FieldValueUnion = (output, context) => {
|
|
17031
|
+
return (0, smithy_client_1.take)(output, {
|
|
17032
|
+
BooleanValue: smithy_client_1.expectBoolean,
|
|
17033
|
+
DoubleValue: smithy_client_1.limitedParseDouble,
|
|
17034
|
+
EmptyValue: smithy_client_1._json,
|
|
17035
|
+
StringValue: smithy_client_1.expectString,
|
|
17036
|
+
});
|
|
17037
|
+
};
|
|
16659
17038
|
const de_HierarchyGroup = (output, context) => {
|
|
16660
17039
|
return (0, smithy_client_1.take)(output, {
|
|
16661
17040
|
Arn: smithy_client_1.expectString,
|
|
@@ -17110,7 +17489,7 @@ const de_RoutingProfileSummaryList = (output, context) => {
|
|
|
17110
17489
|
};
|
|
17111
17490
|
const de_Rule = (output, context) => {
|
|
17112
17491
|
return (0, smithy_client_1.take)(output, {
|
|
17113
|
-
Actions:
|
|
17492
|
+
Actions: (_) => de_RuleActions(_, context),
|
|
17114
17493
|
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
17115
17494
|
Function: smithy_client_1.expectString,
|
|
17116
17495
|
LastUpdatedBy: smithy_client_1.expectString,
|
|
@@ -17123,6 +17502,26 @@ const de_Rule = (output, context) => {
|
|
|
17123
17502
|
TriggerEventSource: smithy_client_1._json,
|
|
17124
17503
|
});
|
|
17125
17504
|
};
|
|
17505
|
+
const de_RuleAction = (output, context) => {
|
|
17506
|
+
return (0, smithy_client_1.take)(output, {
|
|
17507
|
+
ActionType: smithy_client_1.expectString,
|
|
17508
|
+
AssignContactCategoryAction: smithy_client_1._json,
|
|
17509
|
+
CreateCaseAction: (_) => de_CreateCaseActionDefinition(_, context),
|
|
17510
|
+
EndAssociatedTasksAction: smithy_client_1._json,
|
|
17511
|
+
EventBridgeAction: smithy_client_1._json,
|
|
17512
|
+
SendNotificationAction: smithy_client_1._json,
|
|
17513
|
+
TaskAction: smithy_client_1._json,
|
|
17514
|
+
UpdateCaseAction: (_) => de_UpdateCaseActionDefinition(_, context),
|
|
17515
|
+
});
|
|
17516
|
+
};
|
|
17517
|
+
const de_RuleActions = (output, context) => {
|
|
17518
|
+
const retVal = (output || [])
|
|
17519
|
+
.filter((e) => e != null)
|
|
17520
|
+
.map((entry) => {
|
|
17521
|
+
return de_RuleAction(entry, context);
|
|
17522
|
+
});
|
|
17523
|
+
return retVal;
|
|
17524
|
+
};
|
|
17126
17525
|
const de_RuleSummary = (output, context) => {
|
|
17127
17526
|
return (0, smithy_client_1.take)(output, {
|
|
17128
17527
|
ActionSummaries: smithy_client_1._json,
|
|
@@ -17228,6 +17627,11 @@ const de_ThresholdV2 = (output, context) => {
|
|
|
17228
17627
|
ThresholdValue: smithy_client_1.limitedParseDouble,
|
|
17229
17628
|
});
|
|
17230
17629
|
};
|
|
17630
|
+
const de_UpdateCaseActionDefinition = (output, context) => {
|
|
17631
|
+
return (0, smithy_client_1.take)(output, {
|
|
17632
|
+
Fields: (_) => de_FieldValues(_, context),
|
|
17633
|
+
});
|
|
17634
|
+
};
|
|
17231
17635
|
const de_User = (output, context) => {
|
|
17232
17636
|
return (0, smithy_client_1.take)(output, {
|
|
17233
17637
|
Arn: smithy_client_1.expectString,
|