@aws-sdk/client-connect 3.79.0 → 3.80.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 (32) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/Connect.js +15 -0
  3. package/dist-cjs/commands/PutUserStatusCommand.js +36 -0
  4. package/dist-cjs/commands/SearchAvailablePhoneNumbersCommand.js +1 -2
  5. package/dist-cjs/commands/index.js +1 -0
  6. package/dist-cjs/models/models_0.js +13 -13
  7. package/dist-cjs/models/models_1.js +14 -2
  8. package/dist-cjs/protocols/Aws_restJson1.js +94 -5
  9. package/dist-es/Connect.js +15 -0
  10. package/dist-es/commands/PutUserStatusCommand.js +39 -0
  11. package/dist-es/commands/SearchAvailablePhoneNumbersCommand.js +1 -2
  12. package/dist-es/commands/index.js +1 -0
  13. package/dist-es/models/models_0.js +8 -8
  14. package/dist-es/models/models_1.js +8 -0
  15. package/dist-es/protocols/Aws_restJson1.js +114 -0
  16. package/dist-types/Connect.d.ts +11 -0
  17. package/dist-types/ConnectClient.d.ts +3 -2
  18. package/dist-types/commands/PutUserStatusCommand.d.ts +39 -0
  19. package/dist-types/commands/SearchAvailablePhoneNumbersCommand.d.ts +1 -2
  20. package/dist-types/commands/index.d.ts +1 -0
  21. package/dist-types/models/models_0.d.ts +28 -56
  22. package/dist-types/models/models_1.d.ts +57 -1
  23. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  24. package/dist-types/ts3.4/Connect.d.ts +5 -0
  25. package/dist-types/ts3.4/ConnectClient.d.ts +3 -2
  26. package/dist-types/ts3.4/commands/PutUserStatusCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/SearchAvailablePhoneNumbersCommand.d.ts +1 -2
  28. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +18 -31
  30. package/dist-types/ts3.4/models/models_1.d.ts +32 -1
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  32. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.80.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.79.0...v3.80.0) (2022-04-28)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-connect:** This release introduces an API for changing the current agent status of a user in Connect. ([9a4c9f8](https://github.com/aws/aws-sdk-js-v3/commit/9a4c9f807eb4f2607e4f2c084e5e9aa42cc3f106))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.79.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.78.0...v3.79.0) (2022-04-27)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-connect
@@ -96,6 +96,7 @@ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceComm
96
96
  const ListUseCasesCommand_1 = require("./commands/ListUseCasesCommand");
97
97
  const ListUserHierarchyGroupsCommand_1 = require("./commands/ListUserHierarchyGroupsCommand");
98
98
  const ListUsersCommand_1 = require("./commands/ListUsersCommand");
99
+ const PutUserStatusCommand_1 = require("./commands/PutUserStatusCommand");
99
100
  const ReleasePhoneNumberCommand_1 = require("./commands/ReleasePhoneNumberCommand");
100
101
  const ResumeContactRecordingCommand_1 = require("./commands/ResumeContactRecordingCommand");
101
102
  const SearchAvailablePhoneNumbersCommand_1 = require("./commands/SearchAvailablePhoneNumbersCommand");
@@ -1476,6 +1477,20 @@ class Connect extends ConnectClient_1.ConnectClient {
1476
1477
  return this.send(command, optionsOrCb);
1477
1478
  }
1478
1479
  }
1480
+ putUserStatus(args, optionsOrCb, cb) {
1481
+ const command = new PutUserStatusCommand_1.PutUserStatusCommand(args);
1482
+ if (typeof optionsOrCb === "function") {
1483
+ this.send(command, optionsOrCb);
1484
+ }
1485
+ else if (typeof cb === "function") {
1486
+ if (typeof optionsOrCb !== "object")
1487
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1488
+ this.send(command, optionsOrCb || {}, cb);
1489
+ }
1490
+ else {
1491
+ return this.send(command, optionsOrCb);
1492
+ }
1493
+ }
1479
1494
  releasePhoneNumber(args, optionsOrCb, cb) {
1480
1495
  const command = new ReleasePhoneNumberCommand_1.ReleasePhoneNumberCommand(args);
1481
1496
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutUserStatusCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class PutUserStatusCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ConnectClient";
18
+ const commandName = "PutUserStatusCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.PutUserStatusRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.PutUserStatusResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1PutUserStatusCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1PutUserStatusCommand)(output, context);
34
+ }
35
+ }
36
+ exports.PutUserStatusCommand = PutUserStatusCommand;
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SearchAvailablePhoneNumbersCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
7
6
  const models_1_1 = require("../models/models_1");
8
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
8
  class SearchAvailablePhoneNumbersCommand extends smithy_client_1.Command {
@@ -21,7 +20,7 @@ class SearchAvailablePhoneNumbersCommand extends smithy_client_1.Command {
21
20
  logger,
22
21
  clientName,
23
22
  commandName,
24
- inputFilterSensitiveLog: models_0_1.SearchAvailablePhoneNumbersRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.SearchAvailablePhoneNumbersRequest.filterSensitiveLog,
25
24
  outputFilterSensitiveLog: models_1_1.SearchAvailablePhoneNumbersResponse.filterSensitiveLog,
26
25
  };
27
26
  const { requestHandler } = configuration;
@@ -96,6 +96,7 @@ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
96
96
  tslib_1.__exportStar(require("./ListUseCasesCommand"), exports);
97
97
  tslib_1.__exportStar(require("./ListUserHierarchyGroupsCommand"), exports);
98
98
  tslib_1.__exportStar(require("./ListUsersCommand"), exports);
99
+ tslib_1.__exportStar(require("./PutUserStatusCommand"), exports);
99
100
  tslib_1.__exportStar(require("./ReleasePhoneNumberCommand"), exports);
100
101
  tslib_1.__exportStar(require("./ResumeContactRecordingCommand"), exports);
101
102
  tslib_1.__exportStar(require("./SearchAvailablePhoneNumbersCommand"), exports);
@@ -5,7 +5,7 @@ exports.DeleteHoursOfOperationRequest = exports.DeleteContactFlowModuleResponse
5
5
  exports.DescribeQueueRequest = exports.DescribePhoneNumberResponse = exports.ClaimedPhoneNumberSummary = exports.PhoneNumberType = exports.PhoneNumberStatus = exports.PhoneNumberWorkflowStatus = exports.PhoneNumberCountryCode = exports.DescribePhoneNumberRequest = exports.DescribeInstanceStorageConfigResponse = exports.DescribeInstanceStorageConfigRequest = exports.DescribeInstanceAttributeResponse = exports.Attribute = exports.DescribeInstanceAttributeRequest = exports.InstanceAttributeType = exports.DescribeInstanceResponse = exports.Instance = exports.InstanceStatusReason = exports.InstanceStatus = exports.DescribeInstanceRequest = exports.DescribeHoursOfOperationResponse = exports.HoursOfOperation = exports.DescribeHoursOfOperationRequest = exports.DescribeContactFlowModuleResponse = exports.ContactFlowModule = exports.ContactFlowModuleStatus = exports.ContactFlowModuleState = exports.DescribeContactFlowModuleRequest = exports.DescribeContactFlowResponse = exports.ContactFlow = exports.ContactFlowState = exports.DescribeContactFlowRequest = exports.ContactFlowNotPublishedException = exports.DescribeContactResponse = exports.Contact = exports.QueueInfo = exports.ContactInitiationMethod = exports.DescribeContactRequest = exports.DescribeAgentStatusResponse = exports.DescribeAgentStatusRequest = exports.DeleteVocabularyResponse = exports.DeleteVocabularyRequest = exports.DeleteUserHierarchyGroupRequest = exports.DeleteUserRequest = exports.DeleteUseCaseRequest = exports.ResourceInUseException = exports.ResourceType = exports.DeleteSecurityProfileRequest = exports.DeleteQuickConnectRequest = exports.DeleteIntegrationAssociationRequest = exports.DeleteInstanceRequest = void 0;
6
6
  exports.GetFederationTokenRequest = exports.GetCurrentMetricDataResponse = exports.CurrentMetricResult = exports.Dimensions = exports.QueueReference = exports.CurrentMetricData = exports.GetCurrentMetricDataRequest = exports.Grouping = exports.Filters = exports.CurrentMetric = exports.Unit = exports.CurrentMetricName = exports.GetContactAttributesResponse = exports.GetContactAttributesRequest = exports.DisassociateSecurityKeyRequest = exports.DisassociateRoutingProfileQueuesRequest = exports.DisassociateQueueQuickConnectsRequest = exports.DisassociatePhoneNumberContactFlowRequest = exports.DisassociateLexBotRequest = exports.DisassociateLambdaFunctionRequest = exports.DisassociateInstanceStorageConfigRequest = exports.DisassociateBotRequest = exports.DisassociateApprovedOriginRequest = exports.DescribeVocabularyResponse = exports.Vocabulary = exports.DescribeVocabularyRequest = exports.DescribeUserHierarchyStructureResponse = exports.HierarchyStructure = exports.HierarchyLevel = exports.DescribeUserHierarchyStructureRequest = exports.DescribeUserHierarchyGroupResponse = exports.HierarchyGroup = exports.HierarchyPath = exports.HierarchyGroupSummary = exports.DescribeUserHierarchyGroupRequest = exports.DescribeUserResponse = exports.User = exports.DescribeUserRequest = exports.DescribeSecurityProfileResponse = exports.SecurityProfile = exports.DescribeSecurityProfileRequest = exports.DescribeRoutingProfileResponse = exports.RoutingProfile = exports.DescribeRoutingProfileRequest = exports.DescribeQuickConnectResponse = exports.QuickConnect = exports.DescribeQuickConnectRequest = exports.DescribeQueueResponse = exports.Queue = exports.QueueStatus = void 0;
7
7
  exports.ListLambdaFunctionsRequest = exports.ListIntegrationAssociationsResponse = exports.IntegrationAssociationSummary = exports.ListIntegrationAssociationsRequest = exports.ListInstanceStorageConfigsResponse = exports.ListInstanceStorageConfigsRequest = exports.ListInstancesResponse = exports.InstanceSummary = exports.ListInstancesRequest = exports.ListInstanceAttributesResponse = exports.ListInstanceAttributesRequest = exports.ListHoursOfOperationsResponse = exports.HoursOfOperationSummary = exports.ListHoursOfOperationsRequest = exports.ListDefaultVocabulariesResponse = exports.DefaultVocabulary = exports.ListDefaultVocabulariesRequest = exports.ListContactReferencesResponse = exports.ReferenceSummary = exports.UrlReference = exports.AttachmentReference = exports.ReferenceStatus = exports.ListContactReferencesRequest = exports.ReferenceType = exports.ListContactFlowsResponse = exports.ContactFlowSummary = exports.ListContactFlowsRequest = exports.ListContactFlowModulesResponse = exports.ContactFlowModuleSummary = exports.ListContactFlowModulesRequest = exports.ListBotsResponse = exports.LexBotConfig = exports.ListBotsRequest = exports.LexVersion = exports.ListApprovedOriginsResponse = exports.ListApprovedOriginsRequest = exports.ListAgentStatusResponse = exports.ListAgentStatusRequest = exports.GetMetricDataResponse = exports.HistoricalMetricResult = exports.HistoricalMetricData = exports.GetMetricDataRequest = exports.HistoricalMetric = exports.Threshold = exports.Comparison = exports.Statistic = exports.HistoricalMetricName = exports.UserNotFoundException = exports.GetFederationTokenResponse = exports.Credentials = void 0;
8
- exports.AvailableNumberSummary = exports.SearchAvailablePhoneNumbersRequest = exports.ResumeContactRecordingResponse = exports.ResumeContactRecordingRequest = exports.ReleasePhoneNumberRequest = exports.ListUsersResponse = exports.UserSummary = exports.ListUsersRequest = exports.ListUserHierarchyGroupsResponse = exports.ListUserHierarchyGroupsRequest = exports.ListUseCasesResponse = exports.UseCase = exports.ListUseCasesRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSecurityProfilesResponse = exports.SecurityProfileSummary = exports.ListSecurityProfilesRequest = exports.ListSecurityProfilePermissionsResponse = exports.ListSecurityProfilePermissionsRequest = exports.ListSecurityKeysResponse = exports.SecurityKey = exports.ListSecurityKeysRequest = exports.ListRoutingProfilesResponse = exports.RoutingProfileSummary = exports.ListRoutingProfilesRequest = exports.ListRoutingProfileQueuesResponse = exports.RoutingProfileQueueConfigSummary = exports.ListRoutingProfileQueuesRequest = exports.ListQuickConnectsResponse = exports.ListQuickConnectsRequest = exports.ListQueuesResponse = exports.QueueSummary = exports.ListQueuesRequest = exports.QueueType = exports.ListQueueQuickConnectsResponse = exports.QuickConnectSummary = exports.ListQueueQuickConnectsRequest = exports.ListPromptsResponse = exports.PromptSummary = exports.ListPromptsRequest = exports.ListPhoneNumbersV2Response = exports.ListPhoneNumbersSummary = exports.ListPhoneNumbersV2Request = exports.ListPhoneNumbersResponse = exports.PhoneNumberSummary = exports.ListPhoneNumbersRequest = exports.ListLexBotsResponse = exports.ListLexBotsRequest = exports.ListLambdaFunctionsResponse = void 0;
8
+ exports.ResumeContactRecordingResponse = exports.ResumeContactRecordingRequest = exports.ReleasePhoneNumberRequest = exports.PutUserStatusResponse = exports.PutUserStatusRequest = exports.ListUsersResponse = exports.UserSummary = exports.ListUsersRequest = exports.ListUserHierarchyGroupsResponse = exports.ListUserHierarchyGroupsRequest = exports.ListUseCasesResponse = exports.UseCase = exports.ListUseCasesRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSecurityProfilesResponse = exports.SecurityProfileSummary = exports.ListSecurityProfilesRequest = exports.ListSecurityProfilePermissionsResponse = exports.ListSecurityProfilePermissionsRequest = exports.ListSecurityKeysResponse = exports.SecurityKey = exports.ListSecurityKeysRequest = exports.ListRoutingProfilesResponse = exports.RoutingProfileSummary = exports.ListRoutingProfilesRequest = exports.ListRoutingProfileQueuesResponse = exports.RoutingProfileQueueConfigSummary = exports.ListRoutingProfileQueuesRequest = exports.ListQuickConnectsResponse = exports.ListQuickConnectsRequest = exports.ListQueuesResponse = exports.QueueSummary = exports.ListQueuesRequest = exports.QueueType = exports.ListQueueQuickConnectsResponse = exports.QuickConnectSummary = exports.ListQueueQuickConnectsRequest = exports.ListPromptsResponse = exports.PromptSummary = exports.ListPromptsRequest = exports.ListPhoneNumbersV2Response = exports.ListPhoneNumbersSummary = exports.ListPhoneNumbersV2Request = exports.ListPhoneNumbersResponse = exports.PhoneNumberSummary = exports.ListPhoneNumbersRequest = exports.ListLexBotsResponse = exports.ListLexBotsRequest = exports.ListLambdaFunctionsResponse = void 0;
9
9
  const smithy_client_1 = require("@aws-sdk/smithy-client");
10
10
  const ConnectServiceException_1 = require("./ConnectServiceException");
11
11
  class AccessDeniedException extends ConnectServiceException_1.ConnectServiceException {
@@ -2229,6 +2229,18 @@ var ListUsersResponse;
2229
2229
  ...obj,
2230
2230
  });
2231
2231
  })(ListUsersResponse = exports.ListUsersResponse || (exports.ListUsersResponse = {}));
2232
+ var PutUserStatusRequest;
2233
+ (function (PutUserStatusRequest) {
2234
+ PutUserStatusRequest.filterSensitiveLog = (obj) => ({
2235
+ ...obj,
2236
+ });
2237
+ })(PutUserStatusRequest = exports.PutUserStatusRequest || (exports.PutUserStatusRequest = {}));
2238
+ var PutUserStatusResponse;
2239
+ (function (PutUserStatusResponse) {
2240
+ PutUserStatusResponse.filterSensitiveLog = (obj) => ({
2241
+ ...obj,
2242
+ });
2243
+ })(PutUserStatusResponse = exports.PutUserStatusResponse || (exports.PutUserStatusResponse = {}));
2232
2244
  var ReleasePhoneNumberRequest;
2233
2245
  (function (ReleasePhoneNumberRequest) {
2234
2246
  ReleasePhoneNumberRequest.filterSensitiveLog = (obj) => ({
@@ -2247,15 +2259,3 @@ var ResumeContactRecordingResponse;
2247
2259
  ...obj,
2248
2260
  });
2249
2261
  })(ResumeContactRecordingResponse = exports.ResumeContactRecordingResponse || (exports.ResumeContactRecordingResponse = {}));
2250
- var SearchAvailablePhoneNumbersRequest;
2251
- (function (SearchAvailablePhoneNumbersRequest) {
2252
- SearchAvailablePhoneNumbersRequest.filterSensitiveLog = (obj) => ({
2253
- ...obj,
2254
- });
2255
- })(SearchAvailablePhoneNumbersRequest = exports.SearchAvailablePhoneNumbersRequest || (exports.SearchAvailablePhoneNumbersRequest = {}));
2256
- var AvailableNumberSummary;
2257
- (function (AvailableNumberSummary) {
2258
- AvailableNumberSummary.filterSensitiveLog = (obj) => ({
2259
- ...obj,
2260
- });
2261
- })(AvailableNumberSummary = exports.AvailableNumberSummary || (exports.AvailableNumberSummary = {}));
@@ -1,8 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateContactAttributesResponse = exports.UpdateContactAttributesRequest = exports.UpdateContactResponse = exports.UpdateContactRequest = exports.UpdateAgentStatusRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.SuspendContactRecordingResponse = exports.SuspendContactRecordingRequest = exports.StopContactStreamingResponse = exports.StopContactStreamingRequest = exports.StopContactRecordingResponse = exports.StopContactRecordingRequest = exports.StopContactResponse = exports.StopContactRequest = exports.ContactNotFoundException = exports.StartTaskContactResponse = exports.StartTaskContactRequest = exports.Reference = exports.StartOutboundVoiceContactResponse = exports.StartOutboundVoiceContactRequest = exports.TrafficType = exports.AnswerMachineDetectionConfig = exports.OutboundContactNotPermittedException = exports.DestinationNotAllowedException = exports.StartContactStreamingResponse = exports.StartContactStreamingRequest = exports.ChatStreamingConfiguration = exports.StartContactRecordingResponse = exports.StartContactRecordingRequest = exports.VoiceRecordingConfiguration = exports.VoiceRecordingTrack = exports.StartChatContactResponse = exports.StartChatContactRequest = exports.ParticipantDetails = exports.ChatMessage = exports.SearchVocabulariesResponse = exports.VocabularySummary = exports.SearchVocabulariesRequest = exports.SearchUsersResponse = exports.UserSearchSummary = exports.UserIdentityInfoLite = exports.UserSearchFilter = exports.ControlPlaneTagFilter = exports.TagCondition = exports.StringCondition = exports.StringComparisonType = exports.HierarchyGroupCondition = exports.HierarchyGroupMatchType = exports.SearchAvailablePhoneNumbersResponse = void 0;
4
- exports.SearchUsersRequest = exports.UserSearchCriteria = exports.UpdateUserSecurityProfilesRequest = exports.UpdateUserRoutingProfileRequest = exports.UpdateUserPhoneConfigRequest = exports.UpdateUserIdentityInfoRequest = exports.UpdateUserHierarchyStructureRequest = exports.HierarchyStructureUpdate = exports.HierarchyLevelUpdate = exports.UpdateUserHierarchyGroupNameRequest = exports.UpdateUserHierarchyRequest = exports.UpdateSecurityProfileRequest = exports.UpdateRoutingProfileQueuesRequest = exports.UpdateRoutingProfileNameRequest = exports.UpdateRoutingProfileDefaultOutboundQueueRequest = exports.UpdateRoutingProfileConcurrencyRequest = exports.UpdateQuickConnectNameRequest = exports.UpdateQuickConnectConfigRequest = exports.UpdateQueueStatusRequest = exports.UpdateQueueOutboundCallerConfigRequest = exports.UpdateQueueNameRequest = exports.UpdateQueueMaxContactsRequest = exports.UpdateQueueHoursOfOperationRequest = exports.UpdatePhoneNumberResponse = exports.UpdatePhoneNumberRequest = exports.UpdateInstanceStorageConfigRequest = exports.UpdateInstanceAttributeRequest = exports.UpdateHoursOfOperationRequest = exports.UpdateContactScheduleResponse = exports.UpdateContactScheduleRequest = exports.UpdateContactFlowNameRequest = exports.UpdateContactFlowModuleMetadataResponse = exports.UpdateContactFlowModuleMetadataRequest = exports.UpdateContactFlowModuleContentResponse = exports.UpdateContactFlowModuleContentRequest = exports.UpdateContactFlowMetadataRequest = exports.UpdateContactFlowContentRequest = void 0;
3
+ exports.UpdateContactResponse = exports.UpdateContactRequest = exports.UpdateAgentStatusRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.SuspendContactRecordingResponse = exports.SuspendContactRecordingRequest = exports.StopContactStreamingResponse = exports.StopContactStreamingRequest = exports.StopContactRecordingResponse = exports.StopContactRecordingRequest = exports.StopContactResponse = exports.StopContactRequest = exports.ContactNotFoundException = exports.StartTaskContactResponse = exports.StartTaskContactRequest = exports.Reference = exports.StartOutboundVoiceContactResponse = exports.StartOutboundVoiceContactRequest = exports.TrafficType = exports.AnswerMachineDetectionConfig = exports.OutboundContactNotPermittedException = exports.DestinationNotAllowedException = exports.StartContactStreamingResponse = exports.StartContactStreamingRequest = exports.ChatStreamingConfiguration = exports.StartContactRecordingResponse = exports.StartContactRecordingRequest = exports.VoiceRecordingConfiguration = exports.VoiceRecordingTrack = exports.StartChatContactResponse = exports.StartChatContactRequest = exports.ParticipantDetails = exports.ChatMessage = exports.SearchVocabulariesResponse = exports.VocabularySummary = exports.SearchVocabulariesRequest = exports.SearchUsersResponse = exports.UserSearchSummary = exports.UserIdentityInfoLite = exports.UserSearchFilter = exports.ControlPlaneTagFilter = exports.TagCondition = exports.StringCondition = exports.StringComparisonType = exports.HierarchyGroupCondition = exports.HierarchyGroupMatchType = exports.SearchAvailablePhoneNumbersResponse = exports.AvailableNumberSummary = exports.SearchAvailablePhoneNumbersRequest = void 0;
4
+ exports.SearchUsersRequest = exports.UserSearchCriteria = exports.UpdateUserSecurityProfilesRequest = exports.UpdateUserRoutingProfileRequest = exports.UpdateUserPhoneConfigRequest = exports.UpdateUserIdentityInfoRequest = exports.UpdateUserHierarchyStructureRequest = exports.HierarchyStructureUpdate = exports.HierarchyLevelUpdate = exports.UpdateUserHierarchyGroupNameRequest = exports.UpdateUserHierarchyRequest = exports.UpdateSecurityProfileRequest = exports.UpdateRoutingProfileQueuesRequest = exports.UpdateRoutingProfileNameRequest = exports.UpdateRoutingProfileDefaultOutboundQueueRequest = exports.UpdateRoutingProfileConcurrencyRequest = exports.UpdateQuickConnectNameRequest = exports.UpdateQuickConnectConfigRequest = exports.UpdateQueueStatusRequest = exports.UpdateQueueOutboundCallerConfigRequest = exports.UpdateQueueNameRequest = exports.UpdateQueueMaxContactsRequest = exports.UpdateQueueHoursOfOperationRequest = exports.UpdatePhoneNumberResponse = exports.UpdatePhoneNumberRequest = exports.UpdateInstanceStorageConfigRequest = exports.UpdateInstanceAttributeRequest = exports.UpdateHoursOfOperationRequest = exports.UpdateContactScheduleResponse = exports.UpdateContactScheduleRequest = exports.UpdateContactFlowNameRequest = exports.UpdateContactFlowModuleMetadataResponse = exports.UpdateContactFlowModuleMetadataRequest = exports.UpdateContactFlowModuleContentResponse = exports.UpdateContactFlowModuleContentRequest = exports.UpdateContactFlowMetadataRequest = exports.UpdateContactFlowContentRequest = exports.UpdateContactAttributesResponse = exports.UpdateContactAttributesRequest = void 0;
5
5
  const ConnectServiceException_1 = require("./ConnectServiceException");
6
+ var SearchAvailablePhoneNumbersRequest;
7
+ (function (SearchAvailablePhoneNumbersRequest) {
8
+ SearchAvailablePhoneNumbersRequest.filterSensitiveLog = (obj) => ({
9
+ ...obj,
10
+ });
11
+ })(SearchAvailablePhoneNumbersRequest = exports.SearchAvailablePhoneNumbersRequest || (exports.SearchAvailablePhoneNumbersRequest = {}));
12
+ var AvailableNumberSummary;
13
+ (function (AvailableNumberSummary) {
14
+ AvailableNumberSummary.filterSensitiveLog = (obj) => ({
15
+ ...obj,
16
+ });
17
+ })(AvailableNumberSummary = exports.AvailableNumberSummary || (exports.AvailableNumberSummary = {}));
6
18
  var SearchAvailablePhoneNumbersResponse;
7
19
  (function (SearchAvailablePhoneNumbersResponse) {
8
20
  SearchAvailablePhoneNumbersResponse.filterSensitiveLog = (obj) => ({
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.serializeAws_restJson1DescribeUserCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeRoutingProfileCommand = exports.serializeAws_restJson1DescribeQuickConnectCommand = exports.serializeAws_restJson1DescribeQueueCommand = exports.serializeAws_restJson1DescribePhoneNumberCommand = exports.serializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.serializeAws_restJson1DescribeInstanceAttributeCommand = exports.serializeAws_restJson1DescribeInstanceCommand = exports.serializeAws_restJson1DescribeHoursOfOperationCommand = exports.serializeAws_restJson1DescribeContactFlowModuleCommand = exports.serializeAws_restJson1DescribeContactFlowCommand = exports.serializeAws_restJson1DescribeContactCommand = exports.serializeAws_restJson1DescribeAgentStatusCommand = exports.serializeAws_restJson1DeleteVocabularyCommand = exports.serializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.serializeAws_restJson1DeleteUserCommand = exports.serializeAws_restJson1DeleteUseCaseCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteQuickConnectCommand = exports.serializeAws_restJson1DeleteIntegrationAssociationCommand = exports.serializeAws_restJson1DeleteInstanceCommand = exports.serializeAws_restJson1DeleteHoursOfOperationCommand = exports.serializeAws_restJson1DeleteContactFlowModuleCommand = exports.serializeAws_restJson1DeleteContactFlowCommand = exports.serializeAws_restJson1CreateVocabularyCommand = exports.serializeAws_restJson1CreateUserHierarchyGroupCommand = exports.serializeAws_restJson1CreateUserCommand = exports.serializeAws_restJson1CreateUseCaseCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateRoutingProfileCommand = exports.serializeAws_restJson1CreateQuickConnectCommand = exports.serializeAws_restJson1CreateQueueCommand = exports.serializeAws_restJson1CreateIntegrationAssociationCommand = exports.serializeAws_restJson1CreateInstanceCommand = exports.serializeAws_restJson1CreateHoursOfOperationCommand = exports.serializeAws_restJson1CreateContactFlowModuleCommand = exports.serializeAws_restJson1CreateContactFlowCommand = exports.serializeAws_restJson1CreateAgentStatusCommand = exports.serializeAws_restJson1ClaimPhoneNumberCommand = exports.serializeAws_restJson1AssociateSecurityKeyCommand = exports.serializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.serializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1AssociateLexBotCommand = exports.serializeAws_restJson1AssociateLambdaFunctionCommand = exports.serializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.serializeAws_restJson1AssociateDefaultVocabularyCommand = exports.serializeAws_restJson1AssociateBotCommand = exports.serializeAws_restJson1AssociateApprovedOriginCommand = void 0;
4
- exports.serializeAws_restJson1SearchVocabulariesCommand = exports.serializeAws_restJson1SearchUsersCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersV2Command = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListDefaultVocabulariesCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeVocabularyCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = void 0;
5
- exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdatePhoneNumberCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = exports.serializeAws_restJson1StartChatContactCommand = void 0;
6
- exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeVocabularyCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribePhoneNumberCommand = exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteVocabularyCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1ClaimPhoneNumberCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = void 0;
7
- exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1SearchVocabulariesCommand = exports.deserializeAws_restJson1SearchUsersCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = exports.deserializeAws_restJson1ListPhoneNumbersV2Command = exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListDefaultVocabulariesCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = void 0;
8
- exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdatePhoneNumberCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = void 0;
4
+ exports.serializeAws_restJson1SearchUsersCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1PutUserStatusCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersV2Command = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListDefaultVocabulariesCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeVocabularyCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = void 0;
5
+ exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdatePhoneNumberCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = exports.serializeAws_restJson1StartChatContactCommand = exports.serializeAws_restJson1SearchVocabulariesCommand = void 0;
6
+ exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeVocabularyCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribePhoneNumberCommand = exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteVocabularyCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1ClaimPhoneNumberCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = void 0;
7
+ exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1SearchVocabulariesCommand = exports.deserializeAws_restJson1SearchUsersCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1PutUserStatusCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = exports.deserializeAws_restJson1ListPhoneNumbersV2Command = exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListDefaultVocabulariesCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = void 0;
8
+ exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdatePhoneNumberCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = void 0;
9
9
  const protocol_http_1 = require("@aws-sdk/protocol-http");
10
10
  const smithy_client_1 = require("@aws-sdk/smithy-client");
11
11
  const uuid_1 = require("uuid");
@@ -3372,6 +3372,47 @@ const serializeAws_restJson1ListUsersCommand = async (input, context) => {
3372
3372
  });
3373
3373
  };
3374
3374
  exports.serializeAws_restJson1ListUsersCommand = serializeAws_restJson1ListUsersCommand;
3375
+ const serializeAws_restJson1PutUserStatusCommand = async (input, context) => {
3376
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3377
+ const headers = {
3378
+ "content-type": "application/json",
3379
+ };
3380
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/users/{InstanceId}/{UserId}/status";
3381
+ if (input.UserId !== undefined) {
3382
+ const labelValue = input.UserId;
3383
+ if (labelValue.length <= 0) {
3384
+ throw new Error("Empty value provided for input HTTP label: UserId.");
3385
+ }
3386
+ resolvedPath = resolvedPath.replace("{UserId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3387
+ }
3388
+ else {
3389
+ throw new Error("No value provided for input HTTP label: UserId.");
3390
+ }
3391
+ if (input.InstanceId !== undefined) {
3392
+ const labelValue = input.InstanceId;
3393
+ if (labelValue.length <= 0) {
3394
+ throw new Error("Empty value provided for input HTTP label: InstanceId.");
3395
+ }
3396
+ resolvedPath = resolvedPath.replace("{InstanceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3397
+ }
3398
+ else {
3399
+ throw new Error("No value provided for input HTTP label: InstanceId.");
3400
+ }
3401
+ let body;
3402
+ body = JSON.stringify({
3403
+ ...(input.AgentStatusId !== undefined && input.AgentStatusId !== null && { AgentStatusId: input.AgentStatusId }),
3404
+ });
3405
+ return new protocol_http_1.HttpRequest({
3406
+ protocol,
3407
+ hostname,
3408
+ port,
3409
+ method: "PUT",
3410
+ headers,
3411
+ path: resolvedPath,
3412
+ body,
3413
+ });
3414
+ };
3415
+ exports.serializeAws_restJson1PutUserStatusCommand = serializeAws_restJson1PutUserStatusCommand;
3375
3416
  const serializeAws_restJson1ReleasePhoneNumberCommand = async (input, context) => {
3376
3417
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3377
3418
  const headers = {};
@@ -10025,6 +10066,54 @@ const deserializeAws_restJson1ListUsersCommandError = async (output, context) =>
10025
10066
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
10026
10067
  }
10027
10068
  };
10069
+ const deserializeAws_restJson1PutUserStatusCommand = async (output, context) => {
10070
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
10071
+ return deserializeAws_restJson1PutUserStatusCommandError(output, context);
10072
+ }
10073
+ const contents = {
10074
+ $metadata: deserializeMetadata(output),
10075
+ };
10076
+ await collectBody(output.body, context);
10077
+ return Promise.resolve(contents);
10078
+ };
10079
+ exports.deserializeAws_restJson1PutUserStatusCommand = deserializeAws_restJson1PutUserStatusCommand;
10080
+ const deserializeAws_restJson1PutUserStatusCommandError = async (output, context) => {
10081
+ const parsedOutput = {
10082
+ ...output,
10083
+ body: await parseBody(output.body, context),
10084
+ };
10085
+ let response;
10086
+ let errorCode = "UnknownError";
10087
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
10088
+ switch (errorCode) {
10089
+ case "AccessDeniedException":
10090
+ case "com.amazonaws.connect#AccessDeniedException":
10091
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
10092
+ case "InternalServiceException":
10093
+ case "com.amazonaws.connect#InternalServiceException":
10094
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
10095
+ case "InvalidParameterException":
10096
+ case "com.amazonaws.connect#InvalidParameterException":
10097
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
10098
+ case "InvalidRequestException":
10099
+ case "com.amazonaws.connect#InvalidRequestException":
10100
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
10101
+ case "ResourceNotFoundException":
10102
+ case "com.amazonaws.connect#ResourceNotFoundException":
10103
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
10104
+ case "ThrottlingException":
10105
+ case "com.amazonaws.connect#ThrottlingException":
10106
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
10107
+ default:
10108
+ const parsedBody = parsedOutput.body;
10109
+ response = new ConnectServiceException_1.ConnectServiceException({
10110
+ name: parsedBody.code || parsedBody.Code || errorCode,
10111
+ $fault: "client",
10112
+ $metadata: deserializeMetadata(output),
10113
+ });
10114
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
10115
+ }
10116
+ };
10028
10117
  const deserializeAws_restJson1ReleasePhoneNumberCommand = async (output, context) => {
10029
10118
  if (output.statusCode !== 200 && output.statusCode >= 300) {
10030
10119
  return deserializeAws_restJson1ReleasePhoneNumberCommandError(output, context);
@@ -94,6 +94,7 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
94
94
  import { ListUseCasesCommand, } from "./commands/ListUseCasesCommand";
95
95
  import { ListUserHierarchyGroupsCommand, } from "./commands/ListUserHierarchyGroupsCommand";
96
96
  import { ListUsersCommand } from "./commands/ListUsersCommand";
97
+ import { PutUserStatusCommand, } from "./commands/PutUserStatusCommand";
97
98
  import { ReleasePhoneNumberCommand, } from "./commands/ReleasePhoneNumberCommand";
98
99
  import { ResumeContactRecordingCommand, } from "./commands/ResumeContactRecordingCommand";
99
100
  import { SearchAvailablePhoneNumbersCommand, } from "./commands/SearchAvailablePhoneNumbersCommand";
@@ -1478,6 +1479,20 @@ var Connect = (function (_super) {
1478
1479
  return this.send(command, optionsOrCb);
1479
1480
  }
1480
1481
  };
1482
+ Connect.prototype.putUserStatus = function (args, optionsOrCb, cb) {
1483
+ var command = new PutUserStatusCommand(args);
1484
+ if (typeof optionsOrCb === "function") {
1485
+ this.send(command, optionsOrCb);
1486
+ }
1487
+ else if (typeof cb === "function") {
1488
+ if (typeof optionsOrCb !== "object")
1489
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1490
+ this.send(command, optionsOrCb || {}, cb);
1491
+ }
1492
+ else {
1493
+ return this.send(command, optionsOrCb);
1494
+ }
1495
+ };
1481
1496
  Connect.prototype.releasePhoneNumber = function (args, optionsOrCb, cb) {
1482
1497
  var command = new ReleasePhoneNumberCommand(args);
1483
1498
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { PutUserStatusRequest, PutUserStatusResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1PutUserStatusCommand, serializeAws_restJson1PutUserStatusCommand, } from "../protocols/Aws_restJson1";
6
+ var PutUserStatusCommand = (function (_super) {
7
+ __extends(PutUserStatusCommand, _super);
8
+ function PutUserStatusCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ PutUserStatusCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "PutUserStatusCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: PutUserStatusRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: PutUserStatusResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ PutUserStatusCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1PutUserStatusCommand(input, context);
33
+ };
34
+ PutUserStatusCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1PutUserStatusCommand(output, context);
36
+ };
37
+ return PutUserStatusCommand;
38
+ }($Command));
39
+ export { PutUserStatusCommand };
@@ -1,8 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { SearchAvailablePhoneNumbersRequest } from "../models/models_0";
5
- import { SearchAvailablePhoneNumbersResponse } from "../models/models_1";
4
+ import { SearchAvailablePhoneNumbersRequest, SearchAvailablePhoneNumbersResponse } from "../models/models_1";
6
5
  import { deserializeAws_restJson1SearchAvailablePhoneNumbersCommand, serializeAws_restJson1SearchAvailablePhoneNumbersCommand, } from "../protocols/Aws_restJson1";
7
6
  var SearchAvailablePhoneNumbersCommand = (function (_super) {
8
7
  __extends(SearchAvailablePhoneNumbersCommand, _super);
@@ -93,6 +93,7 @@ export * from "./ListTagsForResourceCommand";
93
93
  export * from "./ListUseCasesCommand";
94
94
  export * from "./ListUserHierarchyGroupsCommand";
95
95
  export * from "./ListUsersCommand";
96
+ export * from "./PutUserStatusCommand";
96
97
  export * from "./ReleasePhoneNumberCommand";
97
98
  export * from "./ResumeContactRecordingCommand";
98
99
  export * from "./SearchAvailablePhoneNumbersCommand";
@@ -1716,6 +1716,14 @@ export var ListUsersResponse;
1716
1716
  (function (ListUsersResponse) {
1717
1717
  ListUsersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1718
1718
  })(ListUsersResponse || (ListUsersResponse = {}));
1719
+ export var PutUserStatusRequest;
1720
+ (function (PutUserStatusRequest) {
1721
+ PutUserStatusRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1722
+ })(PutUserStatusRequest || (PutUserStatusRequest = {}));
1723
+ export var PutUserStatusResponse;
1724
+ (function (PutUserStatusResponse) {
1725
+ PutUserStatusResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1726
+ })(PutUserStatusResponse || (PutUserStatusResponse = {}));
1719
1727
  export var ReleasePhoneNumberRequest;
1720
1728
  (function (ReleasePhoneNumberRequest) {
1721
1729
  ReleasePhoneNumberRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1728,11 +1736,3 @@ export var ResumeContactRecordingResponse;
1728
1736
  (function (ResumeContactRecordingResponse) {
1729
1737
  ResumeContactRecordingResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1730
1738
  })(ResumeContactRecordingResponse || (ResumeContactRecordingResponse = {}));
1731
- export var SearchAvailablePhoneNumbersRequest;
1732
- (function (SearchAvailablePhoneNumbersRequest) {
1733
- SearchAvailablePhoneNumbersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1734
- })(SearchAvailablePhoneNumbersRequest || (SearchAvailablePhoneNumbersRequest = {}));
1735
- export var AvailableNumberSummary;
1736
- (function (AvailableNumberSummary) {
1737
- AvailableNumberSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1738
- })(AvailableNumberSummary || (AvailableNumberSummary = {}));
@@ -1,5 +1,13 @@
1
1
  import { __assign, __extends } from "tslib";
2
2
  import { ConnectServiceException as __BaseException } from "./ConnectServiceException";
3
+ export var SearchAvailablePhoneNumbersRequest;
4
+ (function (SearchAvailablePhoneNumbersRequest) {
5
+ SearchAvailablePhoneNumbersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
+ })(SearchAvailablePhoneNumbersRequest || (SearchAvailablePhoneNumbersRequest = {}));
7
+ export var AvailableNumberSummary;
8
+ (function (AvailableNumberSummary) {
9
+ AvailableNumberSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
10
+ })(AvailableNumberSummary || (AvailableNumberSummary = {}));
3
11
  export var SearchAvailablePhoneNumbersResponse;
4
12
  (function (SearchAvailablePhoneNumbersResponse) {
5
13
  SearchAvailablePhoneNumbersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };