@aws-sdk/client-connect 3.329.0 → 3.335.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/Connect.js +10 -0
  3. package/dist-cjs/commands/CreatePromptCommand.js +45 -0
  4. package/dist-cjs/commands/DeletePromptCommand.js +45 -0
  5. package/dist-cjs/commands/DescribePromptCommand.js +45 -0
  6. package/dist-cjs/commands/GetPromptFileCommand.js +45 -0
  7. package/dist-cjs/commands/UpdatePromptCommand.js +45 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/protocols/Aws_restJson1.js +344 -9
  10. package/dist-es/Connect.js +10 -0
  11. package/dist-es/commands/CreatePromptCommand.js +41 -0
  12. package/dist-es/commands/DeletePromptCommand.js +41 -0
  13. package/dist-es/commands/DescribePromptCommand.js +41 -0
  14. package/dist-es/commands/GetPromptFileCommand.js +41 -0
  15. package/dist-es/commands/UpdatePromptCommand.js +41 -0
  16. package/dist-es/commands/index.js +5 -0
  17. package/dist-es/protocols/Aws_restJson1.js +326 -1
  18. package/dist-types/Connect.d.ts +35 -0
  19. package/dist-types/ConnectClient.d.ts +10 -4
  20. package/dist-types/commands/CreateEvaluationFormCommand.d.ts +4 -3
  21. package/dist-types/commands/CreateParticipantCommand.d.ts +1 -1
  22. package/dist-types/commands/CreatePromptCommand.d.ts +94 -0
  23. package/dist-types/commands/DeleteEvaluationFormCommand.d.ts +2 -2
  24. package/dist-types/commands/DeletePromptCommand.d.ts +83 -0
  25. package/dist-types/commands/DescribePromptCommand.d.ts +93 -0
  26. package/dist-types/commands/GetCurrentMetricDataCommand.d.ts +2 -1
  27. package/dist-types/commands/GetMetricDataV2Command.d.ts +1 -1
  28. package/dist-types/commands/GetPromptFileCommand.d.ts +85 -0
  29. package/dist-types/commands/UpdateEvaluationFormCommand.d.ts +4 -3
  30. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +4 -0
  31. package/dist-types/commands/UpdatePromptCommand.d.ts +89 -0
  32. package/dist-types/commands/index.d.ts +5 -0
  33. package/dist-types/endpoint/EndpointParameters.d.ts +2 -1
  34. package/dist-types/models/models_0.d.ts +107 -102
  35. package/dist-types/models/models_1.d.ts +166 -7
  36. package/dist-types/protocols/Aws_restJson1.d.ts +47 -2
  37. package/dist-types/runtimeConfig.browser.d.ts +12 -12
  38. package/dist-types/runtimeConfig.d.ts +9 -9
  39. package/dist-types/runtimeConfig.native.d.ts +13 -13
  40. package/dist-types/runtimeConfig.shared.d.ts +4 -4
  41. package/dist-types/ts3.4/Connect.d.ts +85 -0
  42. package/dist-types/ts3.4/ConnectClient.d.ts +37 -5
  43. package/dist-types/ts3.4/commands/CreatePromptCommand.d.ts +34 -0
  44. package/dist-types/ts3.4/commands/DeletePromptCommand.d.ts +32 -0
  45. package/dist-types/ts3.4/commands/DescribePromptCommand.d.ts +37 -0
  46. package/dist-types/ts3.4/commands/GetCurrentMetricDataCommand.d.ts +2 -4
  47. package/dist-types/ts3.4/commands/GetPromptFileCommand.d.ts +37 -0
  48. package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +34 -0
  49. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  50. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -2
  51. package/dist-types/ts3.4/models/models_0.d.ts +29 -26
  52. package/dist-types/ts3.4/models/models_1.d.ts +47 -3
  53. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +62 -2
  54. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +18 -15
  55. package/dist-types/ts3.4/runtimeConfig.d.ts +12 -12
  56. package/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -15
  57. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -4
  58. package/package.json +7 -6
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_DescribeContactCommand = exports.se_DescribeAgentStatusCommand = exports.se_DeleteVocabularyCommand = exports.se_DeleteUserHierarchyGroupCommand = exports.se_DeleteUserCommand = exports.se_DeleteUseCaseCommand = exports.se_DeleteTrafficDistributionGroupCommand = exports.se_DeleteTaskTemplateCommand = exports.se_DeleteSecurityProfileCommand = exports.se_DeleteRuleCommand = exports.se_DeleteQuickConnectCommand = 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_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_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_AssociateSecurityKeyCommand = exports.se_AssociateRoutingProfileQueuesCommand = exports.se_AssociateQueueQuickConnectsCommand = exports.se_AssociatePhoneNumberContactFlowCommand = exports.se_AssociateLexBotCommand = exports.se_AssociateLambdaFunctionCommand = exports.se_AssociateInstanceStorageConfigCommand = exports.se_AssociateDefaultVocabularyCommand = exports.se_AssociateBotCommand = exports.se_AssociateApprovedOriginCommand = exports.se_ActivateEvaluationFormCommand = void 0;
4
- exports.se_ListInstancesCommand = exports.se_ListInstanceAttributesCommand = exports.se_ListHoursOfOperationsCommand = 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_ListAgentStatusesCommand = exports.se_GetTrafficDistributionCommand = exports.se_GetTaskTemplateCommand = exports.se_GetMetricDataV2Command = exports.se_GetMetricDataCommand = exports.se_GetFederationTokenCommand = exports.se_GetCurrentUserDataCommand = exports.se_GetCurrentMetricDataCommand = exports.se_GetContactAttributesCommand = exports.se_DismissUserContactCommand = exports.se_DisassociateSecurityKeyCommand = exports.se_DisassociateRoutingProfileQueuesCommand = exports.se_DisassociateQueueQuickConnectsCommand = exports.se_DisassociatePhoneNumberContactFlowCommand = exports.se_DisassociateLexBotCommand = exports.se_DisassociateLambdaFunctionCommand = exports.se_DisassociateInstanceStorageConfigCommand = exports.se_DisassociateBotCommand = exports.se_DisassociateApprovedOriginCommand = exports.se_DescribeVocabularyCommand = 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_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 = void 0;
5
- exports.se_UpdateContactAttributesCommand = exports.se_UpdateContactCommand = exports.se_UpdateAgentStatusCommand = exports.se_UntagResourceCommand = exports.se_TransferContactCommand = exports.se_TagResourceCommand = exports.se_SuspendContactRecordingCommand = exports.se_SubmitContactEvaluationCommand = exports.se_StopContactStreamingCommand = exports.se_StopContactRecordingCommand = exports.se_StopContactCommand = exports.se_StartTaskContactCommand = exports.se_StartOutboundVoiceContactCommand = exports.se_StartContactStreamingCommand = exports.se_StartContactRecordingCommand = exports.se_StartContactEvaluationCommand = exports.se_StartChatContactCommand = exports.se_SearchVocabulariesCommand = exports.se_SearchUsersCommand = exports.se_SearchSecurityProfilesCommand = exports.se_SearchRoutingProfilesCommand = exports.se_SearchQueuesCommand = exports.se_SearchAvailablePhoneNumbersCommand = exports.se_ResumeContactRecordingCommand = exports.se_ReplicateInstanceCommand = exports.se_ReleasePhoneNumberCommand = exports.se_PutUserStatusCommand = exports.se_MonitorContactCommand = exports.se_ListUsersCommand = exports.se_ListUserHierarchyGroupsCommand = exports.se_ListUseCasesCommand = exports.se_ListTrafficDistributionGroupsCommand = exports.se_ListTaskTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSecurityProfilesCommand = exports.se_ListSecurityProfilePermissionsCommand = exports.se_ListSecurityKeysCommand = exports.se_ListRulesCommand = exports.se_ListRoutingProfilesCommand = exports.se_ListRoutingProfileQueuesCommand = 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 = void 0;
6
- exports.de_CreateContactFlowModuleCommand = exports.de_CreateContactFlowCommand = exports.de_CreateAgentStatusCommand = exports.de_ClaimPhoneNumberCommand = exports.de_AssociateSecurityKeyCommand = exports.de_AssociateRoutingProfileQueuesCommand = exports.de_AssociateQueueQuickConnectsCommand = exports.de_AssociatePhoneNumberContactFlowCommand = exports.de_AssociateLexBotCommand = exports.de_AssociateLambdaFunctionCommand = exports.de_AssociateInstanceStorageConfigCommand = exports.de_AssociateDefaultVocabularyCommand = exports.de_AssociateBotCommand = exports.de_AssociateApprovedOriginCommand = exports.de_ActivateEvaluationFormCommand = 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_UpdateQuickConnectNameCommand = exports.se_UpdateQuickConnectConfigCommand = exports.se_UpdateQueueStatusCommand = exports.se_UpdateQueueOutboundCallerConfigCommand = exports.se_UpdateQueueNameCommand = exports.se_UpdateQueueMaxContactsCommand = exports.se_UpdateQueueHoursOfOperationCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateParticipantRoleConfigCommand = exports.se_UpdateInstanceStorageConfigCommand = exports.se_UpdateInstanceAttributeCommand = 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 = void 0;
7
- exports.de_DescribeTrafficDistributionGroupCommand = exports.de_DescribeSecurityProfileCommand = exports.de_DescribeRuleCommand = exports.de_DescribeRoutingProfileCommand = exports.de_DescribeQuickConnectCommand = exports.de_DescribeQueueCommand = exports.de_DescribePhoneNumberCommand = exports.de_DescribeInstanceStorageConfigCommand = exports.de_DescribeInstanceAttributeCommand = exports.de_DescribeInstanceCommand = exports.de_DescribeHoursOfOperationCommand = exports.de_DescribeEvaluationFormCommand = exports.de_DescribeContactFlowModuleCommand = exports.de_DescribeContactFlowCommand = exports.de_DescribeContactEvaluationCommand = exports.de_DescribeContactCommand = exports.de_DescribeAgentStatusCommand = exports.de_DeleteVocabularyCommand = exports.de_DeleteUserHierarchyGroupCommand = exports.de_DeleteUserCommand = exports.de_DeleteUseCaseCommand = exports.de_DeleteTrafficDistributionGroupCommand = exports.de_DeleteTaskTemplateCommand = exports.de_DeleteSecurityProfileCommand = exports.de_DeleteRuleCommand = exports.de_DeleteQuickConnectCommand = 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_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_CreateParticipantCommand = exports.de_CreateIntegrationAssociationCommand = exports.de_CreateInstanceCommand = exports.de_CreateHoursOfOperationCommand = exports.de_CreateEvaluationFormCommand = void 0;
8
- exports.de_ListSecurityProfilePermissionsCommand = exports.de_ListSecurityKeysCommand = exports.de_ListRulesCommand = exports.de_ListRoutingProfilesCommand = exports.de_ListRoutingProfileQueuesCommand = 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_ListEvaluationFormVersionsCommand = exports.de_ListEvaluationFormsCommand = exports.de_ListDefaultVocabulariesCommand = exports.de_ListContactReferencesCommand = exports.de_ListContactFlowsCommand = exports.de_ListContactFlowModulesCommand = exports.de_ListContactEvaluationsCommand = exports.de_ListBotsCommand = exports.de_ListApprovedOriginsCommand = exports.de_ListAgentStatusesCommand = exports.de_GetTrafficDistributionCommand = exports.de_GetTaskTemplateCommand = exports.de_GetMetricDataV2Command = exports.de_GetMetricDataCommand = exports.de_GetFederationTokenCommand = exports.de_GetCurrentUserDataCommand = exports.de_GetCurrentMetricDataCommand = exports.de_GetContactAttributesCommand = exports.de_DismissUserContactCommand = exports.de_DisassociateSecurityKeyCommand = exports.de_DisassociateRoutingProfileQueuesCommand = exports.de_DisassociateQueueQuickConnectsCommand = exports.de_DisassociatePhoneNumberContactFlowCommand = exports.de_DisassociateLexBotCommand = exports.de_DisassociateLambdaFunctionCommand = exports.de_DisassociateInstanceStorageConfigCommand = exports.de_DisassociateBotCommand = exports.de_DisassociateApprovedOriginCommand = exports.de_DescribeVocabularyCommand = exports.de_DescribeUserHierarchyStructureCommand = exports.de_DescribeUserHierarchyGroupCommand = exports.de_DescribeUserCommand = void 0;
9
- exports.de_UpdateQueueMaxContactsCommand = exports.de_UpdateQueueHoursOfOperationCommand = 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_TransferContactCommand = exports.de_TagResourceCommand = exports.de_SuspendContactRecordingCommand = exports.de_SubmitContactEvaluationCommand = exports.de_StopContactStreamingCommand = exports.de_StopContactRecordingCommand = exports.de_StopContactCommand = exports.de_StartTaskContactCommand = exports.de_StartOutboundVoiceContactCommand = exports.de_StartContactStreamingCommand = exports.de_StartContactRecordingCommand = exports.de_StartContactEvaluationCommand = exports.de_StartChatContactCommand = exports.de_SearchVocabulariesCommand = exports.de_SearchUsersCommand = exports.de_SearchSecurityProfilesCommand = exports.de_SearchRoutingProfilesCommand = exports.de_SearchQueuesCommand = exports.de_SearchAvailablePhoneNumbersCommand = exports.de_ResumeContactRecordingCommand = exports.de_ReplicateInstanceCommand = exports.de_ReleasePhoneNumberCommand = exports.de_PutUserStatusCommand = exports.de_MonitorContactCommand = exports.de_ListUsersCommand = exports.de_ListUserHierarchyGroupsCommand = exports.de_ListUseCasesCommand = exports.de_ListTrafficDistributionGroupsCommand = exports.de_ListTaskTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSecurityProfilesCommand = void 0;
10
- 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 = exports.de_UpdateRuleCommand = exports.de_UpdateRoutingProfileQueuesCommand = exports.de_UpdateRoutingProfileNameCommand = exports.de_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.de_UpdateRoutingProfileConcurrencyCommand = exports.de_UpdateQuickConnectNameCommand = exports.de_UpdateQuickConnectConfigCommand = exports.de_UpdateQueueStatusCommand = exports.de_UpdateQueueOutboundCallerConfigCommand = exports.de_UpdateQueueNameCommand = void 0;
11
- const protocol_http_1 = require("@aws-sdk/protocol-http");
3
+ exports.se_DeleteVocabularyCommand = exports.se_DeleteUserHierarchyGroupCommand = exports.se_DeleteUserCommand = exports.se_DeleteUseCaseCommand = exports.se_DeleteTrafficDistributionGroupCommand = exports.se_DeleteTaskTemplateCommand = exports.se_DeleteSecurityProfileCommand = exports.se_DeleteRuleCommand = exports.se_DeleteQuickConnectCommand = exports.se_DeletePromptCommand = 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_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_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_AssociateSecurityKeyCommand = exports.se_AssociateRoutingProfileQueuesCommand = exports.se_AssociateQueueQuickConnectsCommand = exports.se_AssociatePhoneNumberContactFlowCommand = exports.se_AssociateLexBotCommand = exports.se_AssociateLambdaFunctionCommand = exports.se_AssociateInstanceStorageConfigCommand = exports.se_AssociateDefaultVocabularyCommand = exports.se_AssociateBotCommand = exports.se_AssociateApprovedOriginCommand = exports.se_ActivateEvaluationFormCommand = void 0;
4
+ 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_ListAgentStatusesCommand = exports.se_GetTrafficDistributionCommand = exports.se_GetTaskTemplateCommand = exports.se_GetPromptFileCommand = exports.se_GetMetricDataV2Command = exports.se_GetMetricDataCommand = exports.se_GetFederationTokenCommand = exports.se_GetCurrentUserDataCommand = exports.se_GetCurrentMetricDataCommand = exports.se_GetContactAttributesCommand = exports.se_DismissUserContactCommand = exports.se_DisassociateSecurityKeyCommand = exports.se_DisassociateRoutingProfileQueuesCommand = exports.se_DisassociateQueueQuickConnectsCommand = exports.se_DisassociatePhoneNumberContactFlowCommand = exports.se_DisassociateLexBotCommand = exports.se_DisassociateLambdaFunctionCommand = exports.se_DisassociateInstanceStorageConfigCommand = exports.se_DisassociateBotCommand = exports.se_DisassociateApprovedOriginCommand = exports.se_DescribeVocabularyCommand = 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 = void 0;
5
+ exports.se_TransferContactCommand = exports.se_TagResourceCommand = exports.se_SuspendContactRecordingCommand = exports.se_SubmitContactEvaluationCommand = exports.se_StopContactStreamingCommand = exports.se_StopContactRecordingCommand = exports.se_StopContactCommand = exports.se_StartTaskContactCommand = exports.se_StartOutboundVoiceContactCommand = exports.se_StartContactStreamingCommand = exports.se_StartContactRecordingCommand = exports.se_StartContactEvaluationCommand = exports.se_StartChatContactCommand = exports.se_SearchVocabulariesCommand = exports.se_SearchUsersCommand = exports.se_SearchSecurityProfilesCommand = exports.se_SearchRoutingProfilesCommand = exports.se_SearchQueuesCommand = exports.se_SearchAvailablePhoneNumbersCommand = exports.se_ResumeContactRecordingCommand = exports.se_ReplicateInstanceCommand = exports.se_ReleasePhoneNumberCommand = exports.se_PutUserStatusCommand = exports.se_MonitorContactCommand = exports.se_ListUsersCommand = exports.se_ListUserHierarchyGroupsCommand = exports.se_ListUseCasesCommand = exports.se_ListTrafficDistributionGroupsCommand = exports.se_ListTaskTemplatesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSecurityProfilesCommand = exports.se_ListSecurityProfilePermissionsCommand = exports.se_ListSecurityKeysCommand = exports.se_ListRulesCommand = exports.se_ListRoutingProfilesCommand = exports.se_ListRoutingProfileQueuesCommand = 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_ListEvaluationFormVersionsCommand = void 0;
6
+ exports.de_AssociateRoutingProfileQueuesCommand = exports.de_AssociateQueueQuickConnectsCommand = exports.de_AssociatePhoneNumberContactFlowCommand = exports.de_AssociateLexBotCommand = exports.de_AssociateLambdaFunctionCommand = exports.de_AssociateInstanceStorageConfigCommand = exports.de_AssociateDefaultVocabularyCommand = exports.de_AssociateBotCommand = exports.de_AssociateApprovedOriginCommand = exports.de_ActivateEvaluationFormCommand = 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_UpdateQuickConnectNameCommand = exports.se_UpdateQuickConnectConfigCommand = exports.se_UpdateQueueStatusCommand = exports.se_UpdateQueueOutboundCallerConfigCommand = exports.se_UpdateQueueNameCommand = exports.se_UpdateQueueMaxContactsCommand = exports.se_UpdateQueueHoursOfOperationCommand = exports.se_UpdatePromptCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateParticipantRoleConfigCommand = exports.se_UpdateInstanceStorageConfigCommand = exports.se_UpdateInstanceAttributeCommand = 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 = void 0;
7
+ exports.de_DescribeInstanceStorageConfigCommand = exports.de_DescribeInstanceAttributeCommand = exports.de_DescribeInstanceCommand = exports.de_DescribeHoursOfOperationCommand = exports.de_DescribeEvaluationFormCommand = exports.de_DescribeContactFlowModuleCommand = exports.de_DescribeContactFlowCommand = exports.de_DescribeContactEvaluationCommand = exports.de_DescribeContactCommand = exports.de_DescribeAgentStatusCommand = exports.de_DeleteVocabularyCommand = exports.de_DeleteUserHierarchyGroupCommand = exports.de_DeleteUserCommand = exports.de_DeleteUseCaseCommand = exports.de_DeleteTrafficDistributionGroupCommand = exports.de_DeleteTaskTemplateCommand = exports.de_DeleteSecurityProfileCommand = exports.de_DeleteRuleCommand = exports.de_DeleteQuickConnectCommand = 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_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_CreateParticipantCommand = exports.de_CreateIntegrationAssociationCommand = exports.de_CreateInstanceCommand = exports.de_CreateHoursOfOperationCommand = exports.de_CreateEvaluationFormCommand = exports.de_CreateContactFlowModuleCommand = exports.de_CreateContactFlowCommand = exports.de_CreateAgentStatusCommand = exports.de_ClaimPhoneNumberCommand = exports.de_AssociateSecurityKeyCommand = void 0;
8
+ 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_ListEvaluationFormVersionsCommand = exports.de_ListEvaluationFormsCommand = exports.de_ListDefaultVocabulariesCommand = exports.de_ListContactReferencesCommand = exports.de_ListContactFlowsCommand = exports.de_ListContactFlowModulesCommand = exports.de_ListContactEvaluationsCommand = exports.de_ListBotsCommand = exports.de_ListApprovedOriginsCommand = exports.de_ListAgentStatusesCommand = exports.de_GetTrafficDistributionCommand = exports.de_GetTaskTemplateCommand = exports.de_GetPromptFileCommand = exports.de_GetMetricDataV2Command = exports.de_GetMetricDataCommand = exports.de_GetFederationTokenCommand = exports.de_GetCurrentUserDataCommand = exports.de_GetCurrentMetricDataCommand = exports.de_GetContactAttributesCommand = exports.de_DismissUserContactCommand = exports.de_DisassociateSecurityKeyCommand = exports.de_DisassociateRoutingProfileQueuesCommand = exports.de_DisassociateQueueQuickConnectsCommand = exports.de_DisassociatePhoneNumberContactFlowCommand = exports.de_DisassociateLexBotCommand = exports.de_DisassociateLambdaFunctionCommand = exports.de_DisassociateInstanceStorageConfigCommand = exports.de_DisassociateBotCommand = exports.de_DisassociateApprovedOriginCommand = exports.de_DescribeVocabularyCommand = 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 = void 0;
9
+ 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_TransferContactCommand = exports.de_TagResourceCommand = exports.de_SuspendContactRecordingCommand = exports.de_SubmitContactEvaluationCommand = exports.de_StopContactStreamingCommand = exports.de_StopContactRecordingCommand = exports.de_StopContactCommand = exports.de_StartTaskContactCommand = exports.de_StartOutboundVoiceContactCommand = exports.de_StartContactStreamingCommand = exports.de_StartContactRecordingCommand = exports.de_StartContactEvaluationCommand = exports.de_StartChatContactCommand = exports.de_SearchVocabulariesCommand = exports.de_SearchUsersCommand = exports.de_SearchSecurityProfilesCommand = exports.de_SearchRoutingProfilesCommand = exports.de_SearchQueuesCommand = exports.de_SearchAvailablePhoneNumbersCommand = exports.de_ResumeContactRecordingCommand = exports.de_ReplicateInstanceCommand = exports.de_ReleasePhoneNumberCommand = exports.de_PutUserStatusCommand = exports.de_MonitorContactCommand = exports.de_ListUsersCommand = exports.de_ListUserHierarchyGroupsCommand = exports.de_ListUseCasesCommand = exports.de_ListTrafficDistributionGroupsCommand = exports.de_ListTaskTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSecurityProfilesCommand = exports.de_ListSecurityProfilePermissionsCommand = exports.de_ListSecurityKeysCommand = exports.de_ListRulesCommand = exports.de_ListRoutingProfilesCommand = exports.de_ListRoutingProfileQueuesCommand = exports.de_ListQuickConnectsCommand = exports.de_ListQueuesCommand = exports.de_ListQueueQuickConnectsCommand = exports.de_ListPromptsCommand = void 0;
10
+ 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 = exports.de_UpdateRuleCommand = exports.de_UpdateRoutingProfileQueuesCommand = exports.de_UpdateRoutingProfileNameCommand = exports.de_UpdateRoutingProfileDefaultOutboundQueueCommand = exports.de_UpdateRoutingProfileConcurrencyCommand = 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_UpdatePhoneNumberCommand = exports.de_UpdateParticipantRoleConfigCommand = exports.de_UpdateInstanceStorageConfigCommand = exports.de_UpdateInstanceAttributeCommand = exports.de_UpdateHoursOfOperationCommand = exports.de_UpdateEvaluationFormCommand = exports.de_UpdateContactScheduleCommand = void 0;
12
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
+ const protocol_http_1 = require("@smithy/protocol-http");
13
13
  const uuid_1 = require("uuid");
14
14
  const ConnectServiceException_1 = require("../models/ConnectServiceException");
15
15
  const models_0_1 = require("../models/models_0");
@@ -501,6 +501,31 @@ const se_CreateParticipantCommand = async (input, context) => {
501
501
  });
502
502
  };
503
503
  exports.se_CreateParticipantCommand = se_CreateParticipantCommand;
504
+ const se_CreatePromptCommand = async (input, context) => {
505
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
506
+ const headers = {
507
+ "content-type": "application/json",
508
+ };
509
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}";
510
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
511
+ let body;
512
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
513
+ Description: [],
514
+ Name: [],
515
+ S3Uri: [],
516
+ Tags: (_) => (0, smithy_client_1._json)(_),
517
+ }));
518
+ return new protocol_http_1.HttpRequest({
519
+ protocol,
520
+ hostname,
521
+ port,
522
+ method: "PUT",
523
+ headers,
524
+ path: resolvedPath,
525
+ body,
526
+ });
527
+ };
528
+ exports.se_CreatePromptCommand = se_CreatePromptCommand;
504
529
  const se_CreateQueueCommand = async (input, context) => {
505
530
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
506
531
  const headers = {
@@ -953,6 +978,24 @@ const se_DeleteIntegrationAssociationCommand = async (input, context) => {
953
978
  });
954
979
  };
955
980
  exports.se_DeleteIntegrationAssociationCommand = se_DeleteIntegrationAssociationCommand;
981
+ const se_DeletePromptCommand = async (input, context) => {
982
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
983
+ const headers = {};
984
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}/{PromptId}";
985
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
986
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PromptId", () => input.PromptId, "{PromptId}", false);
987
+ let body;
988
+ return new protocol_http_1.HttpRequest({
989
+ protocol,
990
+ hostname,
991
+ port,
992
+ method: "DELETE",
993
+ headers,
994
+ path: resolvedPath,
995
+ body,
996
+ });
997
+ };
998
+ exports.se_DeletePromptCommand = se_DeletePromptCommand;
956
999
  const se_DeleteQuickConnectCommand = async (input, context) => {
957
1000
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
958
1001
  const headers = {};
@@ -1334,6 +1377,24 @@ const se_DescribePhoneNumberCommand = async (input, context) => {
1334
1377
  });
1335
1378
  };
1336
1379
  exports.se_DescribePhoneNumberCommand = se_DescribePhoneNumberCommand;
1380
+ const se_DescribePromptCommand = async (input, context) => {
1381
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1382
+ const headers = {};
1383
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}/{PromptId}";
1384
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1385
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PromptId", () => input.PromptId, "{PromptId}", false);
1386
+ let body;
1387
+ return new protocol_http_1.HttpRequest({
1388
+ protocol,
1389
+ hostname,
1390
+ port,
1391
+ method: "GET",
1392
+ headers,
1393
+ path: resolvedPath,
1394
+ body,
1395
+ });
1396
+ };
1397
+ exports.se_DescribePromptCommand = se_DescribePromptCommand;
1337
1398
  const se_DescribeQueueCommand = async (input, context) => {
1338
1399
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1339
1400
  const headers = {};
@@ -1882,6 +1943,24 @@ const se_GetMetricDataV2Command = async (input, context) => {
1882
1943
  });
1883
1944
  };
1884
1945
  exports.se_GetMetricDataV2Command = se_GetMetricDataV2Command;
1946
+ const se_GetPromptFileCommand = async (input, context) => {
1947
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1948
+ const headers = {};
1949
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}/{PromptId}/file";
1950
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
1951
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PromptId", () => input.PromptId, "{PromptId}", false);
1952
+ let body;
1953
+ return new protocol_http_1.HttpRequest({
1954
+ protocol,
1955
+ hostname,
1956
+ port,
1957
+ method: "GET",
1958
+ headers,
1959
+ path: resolvedPath,
1960
+ body,
1961
+ });
1962
+ };
1963
+ exports.se_GetPromptFileCommand = se_GetPromptFileCommand;
1885
1964
  const se_GetTaskTemplateCommand = async (input, context) => {
1886
1965
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1887
1966
  const headers = {};
@@ -3764,6 +3843,31 @@ const se_UpdatePhoneNumberCommand = async (input, context) => {
3764
3843
  });
3765
3844
  };
3766
3845
  exports.se_UpdatePhoneNumberCommand = se_UpdatePhoneNumberCommand;
3846
+ const se_UpdatePromptCommand = async (input, context) => {
3847
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3848
+ const headers = {
3849
+ "content-type": "application/json",
3850
+ };
3851
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prompts/{InstanceId}/{PromptId}";
3852
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InstanceId", () => input.InstanceId, "{InstanceId}", false);
3853
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PromptId", () => input.PromptId, "{PromptId}", false);
3854
+ let body;
3855
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
3856
+ Description: [],
3857
+ Name: [],
3858
+ S3Uri: [],
3859
+ }));
3860
+ return new protocol_http_1.HttpRequest({
3861
+ protocol,
3862
+ hostname,
3863
+ port,
3864
+ method: "POST",
3865
+ headers,
3866
+ path: resolvedPath,
3867
+ body,
3868
+ });
3869
+ };
3870
+ exports.se_UpdatePromptCommand = se_UpdatePromptCommand;
3767
3871
  const se_UpdateQueueHoursOfOperationCommand = async (input, context) => {
3768
3872
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3769
3873
  const headers = {
@@ -5275,6 +5379,56 @@ const de_CreateParticipantCommandError = async (output, context) => {
5275
5379
  });
5276
5380
  }
5277
5381
  };
5382
+ const de_CreatePromptCommand = async (output, context) => {
5383
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5384
+ return de_CreatePromptCommandError(output, context);
5385
+ }
5386
+ const contents = (0, smithy_client_1.map)({
5387
+ $metadata: deserializeMetadata(output),
5388
+ });
5389
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5390
+ const doc = (0, smithy_client_1.take)(data, {
5391
+ PromptARN: smithy_client_1.expectString,
5392
+ PromptId: smithy_client_1.expectString,
5393
+ });
5394
+ Object.assign(contents, doc);
5395
+ return contents;
5396
+ };
5397
+ exports.de_CreatePromptCommand = de_CreatePromptCommand;
5398
+ const de_CreatePromptCommandError = async (output, context) => {
5399
+ const parsedOutput = {
5400
+ ...output,
5401
+ body: await parseErrorBody(output.body, context),
5402
+ };
5403
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5404
+ switch (errorCode) {
5405
+ case "DuplicateResourceException":
5406
+ case "com.amazonaws.connect#DuplicateResourceException":
5407
+ throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
5408
+ case "InternalServiceException":
5409
+ case "com.amazonaws.connect#InternalServiceException":
5410
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
5411
+ case "InvalidParameterException":
5412
+ case "com.amazonaws.connect#InvalidParameterException":
5413
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
5414
+ case "InvalidRequestException":
5415
+ case "com.amazonaws.connect#InvalidRequestException":
5416
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5417
+ case "LimitExceededException":
5418
+ case "com.amazonaws.connect#LimitExceededException":
5419
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
5420
+ case "ThrottlingException":
5421
+ case "com.amazonaws.connect#ThrottlingException":
5422
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5423
+ default:
5424
+ const parsedBody = parsedOutput.body;
5425
+ return throwDefaultError({
5426
+ output,
5427
+ parsedBody,
5428
+ errorCode,
5429
+ });
5430
+ }
5431
+ };
5278
5432
  const de_CreateQueueCommand = async (output, context) => {
5279
5433
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5280
5434
  return de_CreateQueueCommandError(output, context);
@@ -6192,6 +6346,48 @@ const de_DeleteIntegrationAssociationCommandError = async (output, context) => {
6192
6346
  });
6193
6347
  }
6194
6348
  };
6349
+ const de_DeletePromptCommand = async (output, context) => {
6350
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6351
+ return de_DeletePromptCommandError(output, context);
6352
+ }
6353
+ const contents = (0, smithy_client_1.map)({
6354
+ $metadata: deserializeMetadata(output),
6355
+ });
6356
+ await collectBody(output.body, context);
6357
+ return contents;
6358
+ };
6359
+ exports.de_DeletePromptCommand = de_DeletePromptCommand;
6360
+ const de_DeletePromptCommandError = async (output, context) => {
6361
+ const parsedOutput = {
6362
+ ...output,
6363
+ body: await parseErrorBody(output.body, context),
6364
+ };
6365
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6366
+ switch (errorCode) {
6367
+ case "InternalServiceException":
6368
+ case "com.amazonaws.connect#InternalServiceException":
6369
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
6370
+ case "InvalidParameterException":
6371
+ case "com.amazonaws.connect#InvalidParameterException":
6372
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
6373
+ case "InvalidRequestException":
6374
+ case "com.amazonaws.connect#InvalidRequestException":
6375
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6376
+ case "ResourceNotFoundException":
6377
+ case "com.amazonaws.connect#ResourceNotFoundException":
6378
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6379
+ case "ThrottlingException":
6380
+ case "com.amazonaws.connect#ThrottlingException":
6381
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
6382
+ default:
6383
+ const parsedBody = parsedOutput.body;
6384
+ return throwDefaultError({
6385
+ output,
6386
+ parsedBody,
6387
+ errorCode,
6388
+ });
6389
+ }
6390
+ };
6195
6391
  const de_DeleteQuickConnectCommand = async (output, context) => {
6196
6392
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6197
6393
  return de_DeleteQuickConnectCommandError(output, context);
@@ -7086,6 +7282,52 @@ const de_DescribePhoneNumberCommandError = async (output, context) => {
7086
7282
  });
7087
7283
  }
7088
7284
  };
7285
+ const de_DescribePromptCommand = async (output, context) => {
7286
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7287
+ return de_DescribePromptCommandError(output, context);
7288
+ }
7289
+ const contents = (0, smithy_client_1.map)({
7290
+ $metadata: deserializeMetadata(output),
7291
+ });
7292
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7293
+ const doc = (0, smithy_client_1.take)(data, {
7294
+ Prompt: smithy_client_1._json,
7295
+ });
7296
+ Object.assign(contents, doc);
7297
+ return contents;
7298
+ };
7299
+ exports.de_DescribePromptCommand = de_DescribePromptCommand;
7300
+ const de_DescribePromptCommandError = async (output, context) => {
7301
+ const parsedOutput = {
7302
+ ...output,
7303
+ body: await parseErrorBody(output.body, context),
7304
+ };
7305
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7306
+ switch (errorCode) {
7307
+ case "InternalServiceException":
7308
+ case "com.amazonaws.connect#InternalServiceException":
7309
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
7310
+ case "InvalidParameterException":
7311
+ case "com.amazonaws.connect#InvalidParameterException":
7312
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
7313
+ case "InvalidRequestException":
7314
+ case "com.amazonaws.connect#InvalidRequestException":
7315
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
7316
+ case "ResourceNotFoundException":
7317
+ case "com.amazonaws.connect#ResourceNotFoundException":
7318
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
7319
+ case "ThrottlingException":
7320
+ case "com.amazonaws.connect#ThrottlingException":
7321
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
7322
+ default:
7323
+ const parsedBody = parsedOutput.body;
7324
+ return throwDefaultError({
7325
+ output,
7326
+ parsedBody,
7327
+ errorCode,
7328
+ });
7329
+ }
7330
+ };
7089
7331
  const de_DescribeQueueCommand = async (output, context) => {
7090
7332
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7091
7333
  return de_DescribeQueueCommandError(output, context);
@@ -8249,6 +8491,52 @@ const de_GetMetricDataV2CommandError = async (output, context) => {
8249
8491
  });
8250
8492
  }
8251
8493
  };
8494
+ const de_GetPromptFileCommand = async (output, context) => {
8495
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8496
+ return de_GetPromptFileCommandError(output, context);
8497
+ }
8498
+ const contents = (0, smithy_client_1.map)({
8499
+ $metadata: deserializeMetadata(output),
8500
+ });
8501
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
8502
+ const doc = (0, smithy_client_1.take)(data, {
8503
+ PromptPresignedUrl: smithy_client_1.expectString,
8504
+ });
8505
+ Object.assign(contents, doc);
8506
+ return contents;
8507
+ };
8508
+ exports.de_GetPromptFileCommand = de_GetPromptFileCommand;
8509
+ const de_GetPromptFileCommandError = async (output, context) => {
8510
+ const parsedOutput = {
8511
+ ...output,
8512
+ body: await parseErrorBody(output.body, context),
8513
+ };
8514
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8515
+ switch (errorCode) {
8516
+ case "InternalServiceException":
8517
+ case "com.amazonaws.connect#InternalServiceException":
8518
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
8519
+ case "InvalidParameterException":
8520
+ case "com.amazonaws.connect#InvalidParameterException":
8521
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
8522
+ case "InvalidRequestException":
8523
+ case "com.amazonaws.connect#InvalidRequestException":
8524
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
8525
+ case "ResourceNotFoundException":
8526
+ case "com.amazonaws.connect#ResourceNotFoundException":
8527
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
8528
+ case "ThrottlingException":
8529
+ case "com.amazonaws.connect#ThrottlingException":
8530
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
8531
+ default:
8532
+ const parsedBody = parsedOutput.body;
8533
+ return throwDefaultError({
8534
+ output,
8535
+ parsedBody,
8536
+ errorCode,
8537
+ });
8538
+ }
8539
+ };
8252
8540
  const de_GetTaskTemplateCommand = async (output, context) => {
8253
8541
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8254
8542
  return de_GetTaskTemplateCommandError(output, context);
@@ -11836,6 +12124,53 @@ const de_UpdatePhoneNumberCommandError = async (output, context) => {
11836
12124
  });
11837
12125
  }
11838
12126
  };
12127
+ const de_UpdatePromptCommand = async (output, context) => {
12128
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
12129
+ return de_UpdatePromptCommandError(output, context);
12130
+ }
12131
+ const contents = (0, smithy_client_1.map)({
12132
+ $metadata: deserializeMetadata(output),
12133
+ });
12134
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
12135
+ const doc = (0, smithy_client_1.take)(data, {
12136
+ PromptARN: smithy_client_1.expectString,
12137
+ PromptId: smithy_client_1.expectString,
12138
+ });
12139
+ Object.assign(contents, doc);
12140
+ return contents;
12141
+ };
12142
+ exports.de_UpdatePromptCommand = de_UpdatePromptCommand;
12143
+ const de_UpdatePromptCommandError = async (output, context) => {
12144
+ const parsedOutput = {
12145
+ ...output,
12146
+ body: await parseErrorBody(output.body, context),
12147
+ };
12148
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12149
+ switch (errorCode) {
12150
+ case "InternalServiceException":
12151
+ case "com.amazonaws.connect#InternalServiceException":
12152
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
12153
+ case "InvalidParameterException":
12154
+ case "com.amazonaws.connect#InvalidParameterException":
12155
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
12156
+ case "InvalidRequestException":
12157
+ case "com.amazonaws.connect#InvalidRequestException":
12158
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
12159
+ case "ResourceNotFoundException":
12160
+ case "com.amazonaws.connect#ResourceNotFoundException":
12161
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
12162
+ case "ThrottlingException":
12163
+ case "com.amazonaws.connect#ThrottlingException":
12164
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
12165
+ default:
12166
+ const parsedBody = parsedOutput.body;
12167
+ return throwDefaultError({
12168
+ output,
12169
+ parsedBody,
12170
+ errorCode,
12171
+ });
12172
+ }
12173
+ };
11839
12174
  const de_UpdateQueueHoursOfOperationCommand = async (output, context) => {
11840
12175
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11841
12176
  return de_UpdateQueueHoursOfOperationCommandError(output, context);
@@ -19,6 +19,7 @@ import { CreateHoursOfOperationCommand, } from "./commands/CreateHoursOfOperatio
19
19
  import { CreateInstanceCommand, } from "./commands/CreateInstanceCommand";
20
20
  import { CreateIntegrationAssociationCommand, } from "./commands/CreateIntegrationAssociationCommand";
21
21
  import { CreateParticipantCommand, } from "./commands/CreateParticipantCommand";
22
+ import { CreatePromptCommand, } from "./commands/CreatePromptCommand";
22
23
  import { CreateQueueCommand } from "./commands/CreateQueueCommand";
23
24
  import { CreateQuickConnectCommand, } from "./commands/CreateQuickConnectCommand";
24
25
  import { CreateRoutingProfileCommand, } from "./commands/CreateRoutingProfileCommand";
@@ -38,6 +39,7 @@ import { DeleteEvaluationFormCommand, } from "./commands/DeleteEvaluationFormCom
38
39
  import { DeleteHoursOfOperationCommand, } from "./commands/DeleteHoursOfOperationCommand";
39
40
  import { DeleteInstanceCommand, } from "./commands/DeleteInstanceCommand";
40
41
  import { DeleteIntegrationAssociationCommand, } from "./commands/DeleteIntegrationAssociationCommand";
42
+ import { DeletePromptCommand, } from "./commands/DeletePromptCommand";
41
43
  import { DeleteQuickConnectCommand, } from "./commands/DeleteQuickConnectCommand";
42
44
  import { DeleteRuleCommand } from "./commands/DeleteRuleCommand";
43
45
  import { DeleteSecurityProfileCommand, } from "./commands/DeleteSecurityProfileCommand";
@@ -58,6 +60,7 @@ import { DescribeInstanceAttributeCommand, } from "./commands/DescribeInstanceAt
58
60
  import { DescribeInstanceCommand, } from "./commands/DescribeInstanceCommand";
59
61
  import { DescribeInstanceStorageConfigCommand, } from "./commands/DescribeInstanceStorageConfigCommand";
60
62
  import { DescribePhoneNumberCommand, } from "./commands/DescribePhoneNumberCommand";
63
+ import { DescribePromptCommand, } from "./commands/DescribePromptCommand";
61
64
  import { DescribeQueueCommand, } from "./commands/DescribeQueueCommand";
62
65
  import { DescribeQuickConnectCommand, } from "./commands/DescribeQuickConnectCommand";
63
66
  import { DescribeRoutingProfileCommand, } from "./commands/DescribeRoutingProfileCommand";
@@ -84,6 +87,7 @@ import { GetCurrentUserDataCommand, } from "./commands/GetCurrentUserDataCommand
84
87
  import { GetFederationTokenCommand, } from "./commands/GetFederationTokenCommand";
85
88
  import { GetMetricDataCommand, } from "./commands/GetMetricDataCommand";
86
89
  import { GetMetricDataV2Command, } from "./commands/GetMetricDataV2Command";
90
+ import { GetPromptFileCommand, } from "./commands/GetPromptFileCommand";
87
91
  import { GetTaskTemplateCommand, } from "./commands/GetTaskTemplateCommand";
88
92
  import { GetTrafficDistributionCommand, } from "./commands/GetTrafficDistributionCommand";
89
93
  import { ListAgentStatusesCommand, } from "./commands/ListAgentStatusesCommand";
@@ -162,6 +166,7 @@ import { UpdateInstanceAttributeCommand, } from "./commands/UpdateInstanceAttrib
162
166
  import { UpdateInstanceStorageConfigCommand, } from "./commands/UpdateInstanceStorageConfigCommand";
163
167
  import { UpdateParticipantRoleConfigCommand, } from "./commands/UpdateParticipantRoleConfigCommand";
164
168
  import { UpdatePhoneNumberCommand, } from "./commands/UpdatePhoneNumberCommand";
169
+ import { UpdatePromptCommand, } from "./commands/UpdatePromptCommand";
165
170
  import { UpdateQueueHoursOfOperationCommand, } from "./commands/UpdateQueueHoursOfOperationCommand";
166
171
  import { UpdateQueueMaxContactsCommand, } from "./commands/UpdateQueueMaxContactsCommand";
167
172
  import { UpdateQueueNameCommand, } from "./commands/UpdateQueueNameCommand";
@@ -206,6 +211,7 @@ const commands = {
206
211
  CreateInstanceCommand,
207
212
  CreateIntegrationAssociationCommand,
208
213
  CreateParticipantCommand,
214
+ CreatePromptCommand,
209
215
  CreateQueueCommand,
210
216
  CreateQuickConnectCommand,
211
217
  CreateRoutingProfileCommand,
@@ -225,6 +231,7 @@ const commands = {
225
231
  DeleteHoursOfOperationCommand,
226
232
  DeleteInstanceCommand,
227
233
  DeleteIntegrationAssociationCommand,
234
+ DeletePromptCommand,
228
235
  DeleteQuickConnectCommand,
229
236
  DeleteRuleCommand,
230
237
  DeleteSecurityProfileCommand,
@@ -245,6 +252,7 @@ const commands = {
245
252
  DescribeInstanceAttributeCommand,
246
253
  DescribeInstanceStorageConfigCommand,
247
254
  DescribePhoneNumberCommand,
255
+ DescribePromptCommand,
248
256
  DescribeQueueCommand,
249
257
  DescribeQuickConnectCommand,
250
258
  DescribeRoutingProfileCommand,
@@ -271,6 +279,7 @@ const commands = {
271
279
  GetFederationTokenCommand,
272
280
  GetMetricDataCommand,
273
281
  GetMetricDataV2Command,
282
+ GetPromptFileCommand,
274
283
  GetTaskTemplateCommand,
275
284
  GetTrafficDistributionCommand,
276
285
  ListAgentStatusesCommand,
@@ -349,6 +358,7 @@ const commands = {
349
358
  UpdateInstanceStorageConfigCommand,
350
359
  UpdateParticipantRoleConfigCommand,
351
360
  UpdatePhoneNumberCommand,
361
+ UpdatePromptCommand,
352
362
  UpdateQueueHoursOfOperationCommand,
353
363
  UpdateQueueMaxContactsCommand,
354
364
  UpdateQueueNameCommand,
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_CreatePromptCommand, se_CreatePromptCommand } from "../protocols/Aws_restJson1";
5
+ export class CreatePromptCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreatePromptCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "ConnectClient";
24
+ const commandName = "CreatePromptCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_CreatePromptCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_CreatePromptCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DeletePromptCommand, se_DeletePromptCommand } from "../protocols/Aws_restJson1";
5
+ export class DeletePromptCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeletePromptCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "ConnectClient";
24
+ const commandName = "DeletePromptCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_DeletePromptCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_DeletePromptCommand(output, context);
40
+ }
41
+ }