@aws-sdk/client-connect 3.76.0 → 3.77.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 (33) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/Connect.js +15 -0
  3. package/dist-cjs/commands/SearchUsersCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_1.js +73 -2
  6. package/dist-cjs/pagination/SearchUsersPaginator.js +35 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_restJson1.js +223 -5
  9. package/dist-es/Connect.js +15 -0
  10. package/dist-es/commands/SearchUsersCommand.js +39 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/models/models_1.js +51 -0
  13. package/dist-es/pagination/SearchUsersPaginator.js +74 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_restJson1.js +220 -1
  16. package/dist-types/Connect.d.ts +7 -0
  17. package/dist-types/ConnectClient.d.ts +3 -2
  18. package/dist-types/commands/SearchUsersCommand.d.ts +35 -0
  19. package/dist-types/commands/index.d.ts +1 -0
  20. package/dist-types/models/models_0.d.ts +7 -8
  21. package/dist-types/models/models_1.d.ts +282 -2
  22. package/dist-types/pagination/SearchUsersPaginator.d.ts +4 -0
  23. package/dist-types/pagination/index.d.ts +1 -0
  24. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  25. package/dist-types/ts3.4/Connect.d.ts +5 -0
  26. package/dist-types/ts3.4/ConnectClient.d.ts +3 -2
  27. package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  29. package/dist-types/ts3.4/models/models_1.d.ts +149 -0
  30. package/dist-types/ts3.4/pagination/SearchUsersPaginator.d.ts +4 -0
  31. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  33. package/package.json +1 -1
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.77.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.76.0...v3.77.0) (2022-04-25)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-connect:** This release adds SearchUsers API which can be used to search for users with a Connect Instance ([15544b5](https://github.com/aws/aws-sdk-js-v3/commit/15544b5f4fbfe03a32a590aa0a7d6145e1c50998))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-connect
@@ -99,6 +99,7 @@ const ListUsersCommand_1 = require("./commands/ListUsersCommand");
99
99
  const ReleasePhoneNumberCommand_1 = require("./commands/ReleasePhoneNumberCommand");
100
100
  const ResumeContactRecordingCommand_1 = require("./commands/ResumeContactRecordingCommand");
101
101
  const SearchAvailablePhoneNumbersCommand_1 = require("./commands/SearchAvailablePhoneNumbersCommand");
102
+ const SearchUsersCommand_1 = require("./commands/SearchUsersCommand");
102
103
  const SearchVocabulariesCommand_1 = require("./commands/SearchVocabulariesCommand");
103
104
  const StartChatContactCommand_1 = require("./commands/StartChatContactCommand");
104
105
  const StartContactRecordingCommand_1 = require("./commands/StartContactRecordingCommand");
@@ -1517,6 +1518,20 @@ class Connect extends ConnectClient_1.ConnectClient {
1517
1518
  return this.send(command, optionsOrCb);
1518
1519
  }
1519
1520
  }
1521
+ searchUsers(args, optionsOrCb, cb) {
1522
+ const command = new SearchUsersCommand_1.SearchUsersCommand(args);
1523
+ if (typeof optionsOrCb === "function") {
1524
+ this.send(command, optionsOrCb);
1525
+ }
1526
+ else if (typeof cb === "function") {
1527
+ if (typeof optionsOrCb !== "object")
1528
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1529
+ this.send(command, optionsOrCb || {}, cb);
1530
+ }
1531
+ else {
1532
+ return this.send(command, optionsOrCb);
1533
+ }
1534
+ }
1520
1535
  searchVocabularies(args, optionsOrCb, cb) {
1521
1536
  const command = new SearchVocabulariesCommand_1.SearchVocabulariesCommand(args);
1522
1537
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchUsersCommand = 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_1_1 = require("../models/models_1");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class SearchUsersCommand 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 = "SearchUsersCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.SearchUsersRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.SearchUsersResponse.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_restJson1SearchUsersCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1SearchUsersCommand)(output, context);
34
+ }
35
+ }
36
+ exports.SearchUsersCommand = SearchUsersCommand;
@@ -99,6 +99,7 @@ tslib_1.__exportStar(require("./ListUsersCommand"), exports);
99
99
  tslib_1.__exportStar(require("./ReleasePhoneNumberCommand"), exports);
100
100
  tslib_1.__exportStar(require("./ResumeContactRecordingCommand"), exports);
101
101
  tslib_1.__exportStar(require("./SearchAvailablePhoneNumbersCommand"), exports);
102
+ tslib_1.__exportStar(require("./SearchUsersCommand"), exports);
102
103
  tslib_1.__exportStar(require("./SearchVocabulariesCommand"), exports);
103
104
  tslib_1.__exportStar(require("./StartChatContactCommand"), exports);
104
105
  tslib_1.__exportStar(require("./StartContactRecordingCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateHoursOfOperationRequest = exports.UpdateContactScheduleResponse = exports.UpdateContactScheduleRequest = exports.UpdateContactFlowNameRequest = exports.UpdateContactFlowModuleMetadataResponse = exports.UpdateContactFlowModuleMetadataRequest = exports.UpdateContactFlowModuleContentResponse = exports.UpdateContactFlowModuleContentRequest = exports.UpdateContactFlowMetadataRequest = exports.UpdateContactFlowContentRequest = 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.SearchAvailablePhoneNumbersResponse = void 0;
4
- 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 = void 0;
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;
5
5
  const ConnectServiceException_1 = require("./ConnectServiceException");
6
6
  var SearchAvailablePhoneNumbersResponse;
7
7
  (function (SearchAvailablePhoneNumbersResponse) {
@@ -9,6 +9,65 @@ var SearchAvailablePhoneNumbersResponse;
9
9
  ...obj,
10
10
  });
11
11
  })(SearchAvailablePhoneNumbersResponse = exports.SearchAvailablePhoneNumbersResponse || (exports.SearchAvailablePhoneNumbersResponse = {}));
12
+ var HierarchyGroupMatchType;
13
+ (function (HierarchyGroupMatchType) {
14
+ HierarchyGroupMatchType["EXACT"] = "EXACT";
15
+ HierarchyGroupMatchType["WITH_CHILD_GROUPS"] = "WITH_CHILD_GROUPS";
16
+ })(HierarchyGroupMatchType = exports.HierarchyGroupMatchType || (exports.HierarchyGroupMatchType = {}));
17
+ var HierarchyGroupCondition;
18
+ (function (HierarchyGroupCondition) {
19
+ HierarchyGroupCondition.filterSensitiveLog = (obj) => ({
20
+ ...obj,
21
+ });
22
+ })(HierarchyGroupCondition = exports.HierarchyGroupCondition || (exports.HierarchyGroupCondition = {}));
23
+ var StringComparisonType;
24
+ (function (StringComparisonType) {
25
+ StringComparisonType["CONTAINS"] = "CONTAINS";
26
+ StringComparisonType["EXACT"] = "EXACT";
27
+ StringComparisonType["STARTS_WITH"] = "STARTS_WITH";
28
+ })(StringComparisonType = exports.StringComparisonType || (exports.StringComparisonType = {}));
29
+ var StringCondition;
30
+ (function (StringCondition) {
31
+ StringCondition.filterSensitiveLog = (obj) => ({
32
+ ...obj,
33
+ });
34
+ })(StringCondition = exports.StringCondition || (exports.StringCondition = {}));
35
+ var TagCondition;
36
+ (function (TagCondition) {
37
+ TagCondition.filterSensitiveLog = (obj) => ({
38
+ ...obj,
39
+ });
40
+ })(TagCondition = exports.TagCondition || (exports.TagCondition = {}));
41
+ var ControlPlaneTagFilter;
42
+ (function (ControlPlaneTagFilter) {
43
+ ControlPlaneTagFilter.filterSensitiveLog = (obj) => ({
44
+ ...obj,
45
+ });
46
+ })(ControlPlaneTagFilter = exports.ControlPlaneTagFilter || (exports.ControlPlaneTagFilter = {}));
47
+ var UserSearchFilter;
48
+ (function (UserSearchFilter) {
49
+ UserSearchFilter.filterSensitiveLog = (obj) => ({
50
+ ...obj,
51
+ });
52
+ })(UserSearchFilter = exports.UserSearchFilter || (exports.UserSearchFilter = {}));
53
+ var UserIdentityInfoLite;
54
+ (function (UserIdentityInfoLite) {
55
+ UserIdentityInfoLite.filterSensitiveLog = (obj) => ({
56
+ ...obj,
57
+ });
58
+ })(UserIdentityInfoLite = exports.UserIdentityInfoLite || (exports.UserIdentityInfoLite = {}));
59
+ var UserSearchSummary;
60
+ (function (UserSearchSummary) {
61
+ UserSearchSummary.filterSensitiveLog = (obj) => ({
62
+ ...obj,
63
+ });
64
+ })(UserSearchSummary = exports.UserSearchSummary || (exports.UserSearchSummary = {}));
65
+ var SearchUsersResponse;
66
+ (function (SearchUsersResponse) {
67
+ SearchUsersResponse.filterSensitiveLog = (obj) => ({
68
+ ...obj,
69
+ });
70
+ })(SearchUsersResponse = exports.SearchUsersResponse || (exports.SearchUsersResponse = {}));
12
71
  var SearchVocabulariesRequest;
13
72
  (function (SearchVocabulariesRequest) {
14
73
  SearchVocabulariesRequest.filterSensitiveLog = (obj) => ({
@@ -476,3 +535,15 @@ var UpdateUserSecurityProfilesRequest;
476
535
  ...obj,
477
536
  });
478
537
  })(UpdateUserSecurityProfilesRequest = exports.UpdateUserSecurityProfilesRequest || (exports.UpdateUserSecurityProfilesRequest = {}));
538
+ var UserSearchCriteria;
539
+ (function (UserSearchCriteria) {
540
+ UserSearchCriteria.filterSensitiveLog = (obj) => ({
541
+ ...obj,
542
+ });
543
+ })(UserSearchCriteria = exports.UserSearchCriteria || (exports.UserSearchCriteria = {}));
544
+ var SearchUsersRequest;
545
+ (function (SearchUsersRequest) {
546
+ SearchUsersRequest.filterSensitiveLog = (obj) => ({
547
+ ...obj,
548
+ });
549
+ })(SearchUsersRequest = exports.SearchUsersRequest || (exports.SearchUsersRequest = {}));
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateSearchUsers = void 0;
4
+ const SearchUsersCommand_1 = require("../commands/SearchUsersCommand");
5
+ const Connect_1 = require("../Connect");
6
+ const ConnectClient_1 = require("../ConnectClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new SearchUsersCommand_1.SearchUsersCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.searchUsers(input, ...args);
12
+ };
13
+ async function* paginateSearchUsers(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.NextToken = token;
19
+ input["MaxResults"] = config.pageSize;
20
+ if (config.client instanceof Connect_1.Connect) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof ConnectClient_1.ConnectClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected Connect | ConnectClient");
28
+ }
29
+ yield page;
30
+ token = page.NextToken;
31
+ hasNext = !!token;
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateSearchUsers = paginateSearchUsers;
@@ -33,4 +33,5 @@ tslib_1.__exportStar(require("./ListUseCasesPaginator"), exports);
33
33
  tslib_1.__exportStar(require("./ListUserHierarchyGroupsPaginator"), exports);
34
34
  tslib_1.__exportStar(require("./ListUsersPaginator"), exports);
35
35
  tslib_1.__exportStar(require("./SearchAvailablePhoneNumbersPaginator"), exports);
36
+ tslib_1.__exportStar(require("./SearchUsersPaginator"), exports);
36
37
  tslib_1.__exportStar(require("./SearchVocabulariesPaginator"), exports);
@@ -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_restJson1StartChatContactCommand = exports.serializeAws_restJson1SearchVocabulariesCommand = exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.serializeAws_restJson1ResumeContactRecordingCommand = exports.serializeAws_restJson1ReleasePhoneNumberCommand = exports.serializeAws_restJson1ListUsersCommand = exports.serializeAws_restJson1ListUserHierarchyGroupsCommand = exports.serializeAws_restJson1ListUseCasesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.serializeAws_restJson1ListSecurityKeysCommand = exports.serializeAws_restJson1ListRoutingProfilesCommand = exports.serializeAws_restJson1ListRoutingProfileQueuesCommand = exports.serializeAws_restJson1ListQuickConnectsCommand = exports.serializeAws_restJson1ListQueuesCommand = exports.serializeAws_restJson1ListQueueQuickConnectsCommand = exports.serializeAws_restJson1ListPromptsCommand = exports.serializeAws_restJson1ListPhoneNumbersV2Command = exports.serializeAws_restJson1ListPhoneNumbersCommand = exports.serializeAws_restJson1ListLexBotsCommand = exports.serializeAws_restJson1ListLambdaFunctionsCommand = exports.serializeAws_restJson1ListIntegrationAssociationsCommand = exports.serializeAws_restJson1ListInstanceStorageConfigsCommand = exports.serializeAws_restJson1ListInstancesCommand = exports.serializeAws_restJson1ListInstanceAttributesCommand = exports.serializeAws_restJson1ListHoursOfOperationsCommand = exports.serializeAws_restJson1ListDefaultVocabulariesCommand = exports.serializeAws_restJson1ListContactReferencesCommand = exports.serializeAws_restJson1ListContactFlowsCommand = exports.serializeAws_restJson1ListContactFlowModulesCommand = exports.serializeAws_restJson1ListBotsCommand = exports.serializeAws_restJson1ListApprovedOriginsCommand = exports.serializeAws_restJson1ListAgentStatusesCommand = exports.serializeAws_restJson1GetMetricDataCommand = exports.serializeAws_restJson1GetFederationTokenCommand = exports.serializeAws_restJson1GetCurrentMetricDataCommand = exports.serializeAws_restJson1GetContactAttributesCommand = exports.serializeAws_restJson1DisassociateSecurityKeyCommand = exports.serializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.serializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = exports.serializeAws_restJson1DisassociateLexBotCommand = exports.serializeAws_restJson1DisassociateLambdaFunctionCommand = exports.serializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.serializeAws_restJson1DisassociateBotCommand = exports.serializeAws_restJson1DisassociateApprovedOriginCommand = exports.serializeAws_restJson1DescribeVocabularyCommand = exports.serializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.serializeAws_restJson1DescribeUserHierarchyGroupCommand = void 0;
5
- exports.deserializeAws_restJson1AssociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand = exports.deserializeAws_restJson1AssociateLexBotCommand = exports.deserializeAws_restJson1AssociateLambdaFunctionCommand = exports.deserializeAws_restJson1AssociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1AssociateDefaultVocabularyCommand = exports.deserializeAws_restJson1AssociateBotCommand = exports.deserializeAws_restJson1AssociateApprovedOriginCommand = exports.serializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.serializeAws_restJson1UpdateUserRoutingProfileCommand = exports.serializeAws_restJson1UpdateUserPhoneConfigCommand = exports.serializeAws_restJson1UpdateUserIdentityInfoCommand = exports.serializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.serializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.serializeAws_restJson1UpdateUserHierarchyCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.serializeAws_restJson1UpdateRoutingProfileNameCommand = exports.serializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.serializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.serializeAws_restJson1UpdateQuickConnectNameCommand = exports.serializeAws_restJson1UpdateQuickConnectConfigCommand = exports.serializeAws_restJson1UpdateQueueStatusCommand = exports.serializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.serializeAws_restJson1UpdateQueueNameCommand = exports.serializeAws_restJson1UpdateQueueMaxContactsCommand = exports.serializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.serializeAws_restJson1UpdatePhoneNumberCommand = exports.serializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.serializeAws_restJson1UpdateInstanceAttributeCommand = exports.serializeAws_restJson1UpdateHoursOfOperationCommand = exports.serializeAws_restJson1UpdateContactScheduleCommand = exports.serializeAws_restJson1UpdateContactFlowNameCommand = exports.serializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.serializeAws_restJson1UpdateContactFlowMetadataCommand = exports.serializeAws_restJson1UpdateContactFlowContentCommand = exports.serializeAws_restJson1UpdateContactAttributesCommand = exports.serializeAws_restJson1UpdateContactCommand = exports.serializeAws_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SuspendContactRecordingCommand = exports.serializeAws_restJson1StopContactStreamingCommand = exports.serializeAws_restJson1StopContactRecordingCommand = exports.serializeAws_restJson1StopContactCommand = exports.serializeAws_restJson1StartTaskContactCommand = exports.serializeAws_restJson1StartOutboundVoiceContactCommand = exports.serializeAws_restJson1StartContactStreamingCommand = exports.serializeAws_restJson1StartContactRecordingCommand = void 0;
6
- exports.deserializeAws_restJson1DisassociateLexBotCommand = exports.deserializeAws_restJson1DisassociateLambdaFunctionCommand = exports.deserializeAws_restJson1DisassociateInstanceStorageConfigCommand = exports.deserializeAws_restJson1DisassociateBotCommand = exports.deserializeAws_restJson1DisassociateApprovedOriginCommand = exports.deserializeAws_restJson1DescribeVocabularyCommand = exports.deserializeAws_restJson1DescribeUserHierarchyStructureCommand = exports.deserializeAws_restJson1DescribeUserHierarchyGroupCommand = exports.deserializeAws_restJson1DescribeUserCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeRoutingProfileCommand = exports.deserializeAws_restJson1DescribeQuickConnectCommand = exports.deserializeAws_restJson1DescribeQueueCommand = exports.deserializeAws_restJson1DescribePhoneNumberCommand = exports.deserializeAws_restJson1DescribeInstanceStorageConfigCommand = exports.deserializeAws_restJson1DescribeInstanceAttributeCommand = exports.deserializeAws_restJson1DescribeInstanceCommand = exports.deserializeAws_restJson1DescribeHoursOfOperationCommand = exports.deserializeAws_restJson1DescribeContactFlowModuleCommand = exports.deserializeAws_restJson1DescribeContactFlowCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DescribeAgentStatusCommand = exports.deserializeAws_restJson1DeleteVocabularyCommand = exports.deserializeAws_restJson1DeleteUserHierarchyGroupCommand = exports.deserializeAws_restJson1DeleteUserCommand = exports.deserializeAws_restJson1DeleteUseCaseCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteQuickConnectCommand = exports.deserializeAws_restJson1DeleteIntegrationAssociationCommand = exports.deserializeAws_restJson1DeleteInstanceCommand = exports.deserializeAws_restJson1DeleteHoursOfOperationCommand = exports.deserializeAws_restJson1DeleteContactFlowModuleCommand = exports.deserializeAws_restJson1DeleteContactFlowCommand = exports.deserializeAws_restJson1CreateVocabularyCommand = exports.deserializeAws_restJson1CreateUserHierarchyGroupCommand = exports.deserializeAws_restJson1CreateUserCommand = exports.deserializeAws_restJson1CreateUseCaseCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateRoutingProfileCommand = exports.deserializeAws_restJson1CreateQuickConnectCommand = exports.deserializeAws_restJson1CreateQueueCommand = exports.deserializeAws_restJson1CreateIntegrationAssociationCommand = exports.deserializeAws_restJson1CreateInstanceCommand = exports.deserializeAws_restJson1CreateHoursOfOperationCommand = exports.deserializeAws_restJson1CreateContactFlowModuleCommand = exports.deserializeAws_restJson1CreateContactFlowCommand = exports.deserializeAws_restJson1CreateAgentStatusCommand = exports.deserializeAws_restJson1ClaimPhoneNumberCommand = exports.deserializeAws_restJson1AssociateSecurityKeyCommand = exports.deserializeAws_restJson1AssociateRoutingProfileQueuesCommand = void 0;
7
- exports.deserializeAws_restJson1SuspendContactRecordingCommand = exports.deserializeAws_restJson1StopContactStreamingCommand = exports.deserializeAws_restJson1StopContactRecordingCommand = exports.deserializeAws_restJson1StopContactCommand = exports.deserializeAws_restJson1StartTaskContactCommand = exports.deserializeAws_restJson1StartOutboundVoiceContactCommand = exports.deserializeAws_restJson1StartContactStreamingCommand = exports.deserializeAws_restJson1StartContactRecordingCommand = exports.deserializeAws_restJson1StartChatContactCommand = exports.deserializeAws_restJson1SearchVocabulariesCommand = exports.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand = exports.deserializeAws_restJson1ResumeContactRecordingCommand = exports.deserializeAws_restJson1ReleasePhoneNumberCommand = exports.deserializeAws_restJson1ListUsersCommand = exports.deserializeAws_restJson1ListUserHierarchyGroupsCommand = exports.deserializeAws_restJson1ListUseCasesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListSecurityProfilePermissionsCommand = exports.deserializeAws_restJson1ListSecurityKeysCommand = exports.deserializeAws_restJson1ListRoutingProfilesCommand = exports.deserializeAws_restJson1ListRoutingProfileQueuesCommand = exports.deserializeAws_restJson1ListQuickConnectsCommand = exports.deserializeAws_restJson1ListQueuesCommand = exports.deserializeAws_restJson1ListQueueQuickConnectsCommand = exports.deserializeAws_restJson1ListPromptsCommand = exports.deserializeAws_restJson1ListPhoneNumbersV2Command = exports.deserializeAws_restJson1ListPhoneNumbersCommand = exports.deserializeAws_restJson1ListLexBotsCommand = exports.deserializeAws_restJson1ListLambdaFunctionsCommand = exports.deserializeAws_restJson1ListIntegrationAssociationsCommand = exports.deserializeAws_restJson1ListInstanceStorageConfigsCommand = exports.deserializeAws_restJson1ListInstancesCommand = exports.deserializeAws_restJson1ListInstanceAttributesCommand = exports.deserializeAws_restJson1ListHoursOfOperationsCommand = exports.deserializeAws_restJson1ListDefaultVocabulariesCommand = exports.deserializeAws_restJson1ListContactReferencesCommand = exports.deserializeAws_restJson1ListContactFlowsCommand = exports.deserializeAws_restJson1ListContactFlowModulesCommand = exports.deserializeAws_restJson1ListBotsCommand = exports.deserializeAws_restJson1ListApprovedOriginsCommand = exports.deserializeAws_restJson1ListAgentStatusesCommand = exports.deserializeAws_restJson1GetMetricDataCommand = exports.deserializeAws_restJson1GetFederationTokenCommand = exports.deserializeAws_restJson1GetCurrentMetricDataCommand = exports.deserializeAws_restJson1GetContactAttributesCommand = exports.deserializeAws_restJson1DisassociateSecurityKeyCommand = exports.deserializeAws_restJson1DisassociateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1DisassociateQueueQuickConnectsCommand = exports.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand = void 0;
8
- exports.deserializeAws_restJson1UpdateUserSecurityProfilesCommand = exports.deserializeAws_restJson1UpdateUserRoutingProfileCommand = exports.deserializeAws_restJson1UpdateUserPhoneConfigCommand = exports.deserializeAws_restJson1UpdateUserIdentityInfoCommand = exports.deserializeAws_restJson1UpdateUserHierarchyStructureCommand = exports.deserializeAws_restJson1UpdateUserHierarchyGroupNameCommand = exports.deserializeAws_restJson1UpdateUserHierarchyCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateRoutingProfileQueuesCommand = exports.deserializeAws_restJson1UpdateRoutingProfileNameCommand = exports.deserializeAws_restJson1UpdateRoutingProfileDefaultOutboundQueueCommand = exports.deserializeAws_restJson1UpdateRoutingProfileConcurrencyCommand = exports.deserializeAws_restJson1UpdateQuickConnectNameCommand = exports.deserializeAws_restJson1UpdateQuickConnectConfigCommand = exports.deserializeAws_restJson1UpdateQueueStatusCommand = exports.deserializeAws_restJson1UpdateQueueOutboundCallerConfigCommand = exports.deserializeAws_restJson1UpdateQueueNameCommand = exports.deserializeAws_restJson1UpdateQueueMaxContactsCommand = exports.deserializeAws_restJson1UpdateQueueHoursOfOperationCommand = exports.deserializeAws_restJson1UpdatePhoneNumberCommand = exports.deserializeAws_restJson1UpdateInstanceStorageConfigCommand = exports.deserializeAws_restJson1UpdateInstanceAttributeCommand = exports.deserializeAws_restJson1UpdateHoursOfOperationCommand = exports.deserializeAws_restJson1UpdateContactScheduleCommand = exports.deserializeAws_restJson1UpdateContactFlowNameCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowModuleContentCommand = exports.deserializeAws_restJson1UpdateContactFlowMetadataCommand = exports.deserializeAws_restJson1UpdateContactFlowContentCommand = exports.deserializeAws_restJson1UpdateContactAttributesCommand = exports.deserializeAws_restJson1UpdateContactCommand = exports.deserializeAws_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = void 0;
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;
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");
@@ -3455,6 +3455,37 @@ const serializeAws_restJson1SearchAvailablePhoneNumbersCommand = async (input, c
3455
3455
  });
3456
3456
  };
3457
3457
  exports.serializeAws_restJson1SearchAvailablePhoneNumbersCommand = serializeAws_restJson1SearchAvailablePhoneNumbersCommand;
3458
+ const serializeAws_restJson1SearchUsersCommand = async (input, context) => {
3459
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3460
+ const headers = {
3461
+ "content-type": "application/json",
3462
+ };
3463
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/search-users";
3464
+ let body;
3465
+ body = JSON.stringify({
3466
+ ...(input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId }),
3467
+ ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3468
+ ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3469
+ ...(input.SearchCriteria !== undefined &&
3470
+ input.SearchCriteria !== null && {
3471
+ SearchCriteria: serializeAws_restJson1UserSearchCriteria(input.SearchCriteria, context),
3472
+ }),
3473
+ ...(input.SearchFilter !== undefined &&
3474
+ input.SearchFilter !== null && {
3475
+ SearchFilter: serializeAws_restJson1UserSearchFilter(input.SearchFilter, context),
3476
+ }),
3477
+ });
3478
+ return new protocol_http_1.HttpRequest({
3479
+ protocol,
3480
+ hostname,
3481
+ port,
3482
+ method: "POST",
3483
+ headers,
3484
+ path: resolvedPath,
3485
+ body,
3486
+ });
3487
+ };
3488
+ exports.serializeAws_restJson1SearchUsersCommand = serializeAws_restJson1SearchUsersCommand;
3458
3489
  const serializeAws_restJson1SearchVocabulariesCommand = async (input, context) => {
3459
3490
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3460
3491
  const headers = {
@@ -10134,6 +10165,63 @@ const deserializeAws_restJson1SearchAvailablePhoneNumbersCommandError = async (o
10134
10165
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
10135
10166
  }
10136
10167
  };
10168
+ const deserializeAws_restJson1SearchUsersCommand = async (output, context) => {
10169
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
10170
+ return deserializeAws_restJson1SearchUsersCommandError(output, context);
10171
+ }
10172
+ const contents = {
10173
+ $metadata: deserializeMetadata(output),
10174
+ ApproximateTotalCount: undefined,
10175
+ NextToken: undefined,
10176
+ Users: undefined,
10177
+ };
10178
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
10179
+ if (data.ApproximateTotalCount !== undefined && data.ApproximateTotalCount !== null) {
10180
+ contents.ApproximateTotalCount = (0, smithy_client_1.expectLong)(data.ApproximateTotalCount);
10181
+ }
10182
+ if (data.NextToken !== undefined && data.NextToken !== null) {
10183
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
10184
+ }
10185
+ if (data.Users !== undefined && data.Users !== null) {
10186
+ contents.Users = deserializeAws_restJson1UserSearchSummaryList(data.Users, context);
10187
+ }
10188
+ return Promise.resolve(contents);
10189
+ };
10190
+ exports.deserializeAws_restJson1SearchUsersCommand = deserializeAws_restJson1SearchUsersCommand;
10191
+ const deserializeAws_restJson1SearchUsersCommandError = async (output, context) => {
10192
+ const parsedOutput = {
10193
+ ...output,
10194
+ body: await parseBody(output.body, context),
10195
+ };
10196
+ let response;
10197
+ let errorCode = "UnknownError";
10198
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
10199
+ switch (errorCode) {
10200
+ case "InternalServiceException":
10201
+ case "com.amazonaws.connect#InternalServiceException":
10202
+ throw await deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context);
10203
+ case "InvalidParameterException":
10204
+ case "com.amazonaws.connect#InvalidParameterException":
10205
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
10206
+ case "InvalidRequestException":
10207
+ case "com.amazonaws.connect#InvalidRequestException":
10208
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
10209
+ case "ResourceNotFoundException":
10210
+ case "com.amazonaws.connect#ResourceNotFoundException":
10211
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
10212
+ case "ThrottlingException":
10213
+ case "com.amazonaws.connect#ThrottlingException":
10214
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
10215
+ default:
10216
+ const parsedBody = parsedOutput.body;
10217
+ response = new ConnectServiceException_1.ConnectServiceException({
10218
+ name: parsedBody.code || parsedBody.Code || errorCode,
10219
+ $fault: "client",
10220
+ $metadata: deserializeMetadata(output),
10221
+ });
10222
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
10223
+ }
10224
+ };
10137
10225
  const deserializeAws_restJson1SearchVocabulariesCommand = async (output, context) => {
10138
10226
  if (output.statusCode !== 200 && output.statusCode >= 300) {
10139
10227
  return deserializeAws_restJson1SearchVocabulariesCommandError(output, context);
@@ -12475,6 +12563,20 @@ const serializeAws_restJson1ContactReferences = (input, context) => {
12475
12563
  };
12476
12564
  }, {});
12477
12565
  };
12566
+ const serializeAws_restJson1ControlPlaneTagFilter = (input, context) => {
12567
+ return {
12568
+ ...(input.AndConditions !== undefined &&
12569
+ input.AndConditions !== null && {
12570
+ AndConditions: serializeAws_restJson1TagAndConditionList(input.AndConditions, context),
12571
+ }),
12572
+ ...(input.OrConditions !== undefined &&
12573
+ input.OrConditions !== null && {
12574
+ OrConditions: serializeAws_restJson1TagOrConditionList(input.OrConditions, context),
12575
+ }),
12576
+ ...(input.TagCondition !== undefined &&
12577
+ input.TagCondition !== null && { TagCondition: serializeAws_restJson1TagCondition(input.TagCondition, context) }),
12578
+ };
12579
+ };
12478
12580
  const serializeAws_restJson1CurrentMetric = (input, context) => {
12479
12581
  return {
12480
12582
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
@@ -12516,6 +12618,13 @@ const serializeAws_restJson1Groupings = (input, context) => {
12516
12618
  return entry;
12517
12619
  });
12518
12620
  };
12621
+ const serializeAws_restJson1HierarchyGroupCondition = (input, context) => {
12622
+ return {
12623
+ ...(input.HierarchyGroupMatchType !== undefined &&
12624
+ input.HierarchyGroupMatchType !== null && { HierarchyGroupMatchType: input.HierarchyGroupMatchType }),
12625
+ ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
12626
+ };
12627
+ };
12519
12628
  const serializeAws_restJson1HierarchyLevelUpdate = (input, context) => {
12520
12629
  return {
12521
12630
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
@@ -12807,6 +12916,14 @@ const serializeAws_restJson1SecurityProfileIds = (input, context) => {
12807
12916
  return entry;
12808
12917
  });
12809
12918
  };
12919
+ const serializeAws_restJson1StringCondition = (input, context) => {
12920
+ return {
12921
+ ...(input.ComparisonType !== undefined &&
12922
+ input.ComparisonType !== null && { ComparisonType: input.ComparisonType }),
12923
+ ...(input.FieldName !== undefined && input.FieldName !== null && { FieldName: input.FieldName }),
12924
+ ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
12925
+ };
12926
+ };
12810
12927
  const serializeAws_restJson1SupportedMessagingContentTypes = (input, context) => {
12811
12928
  return input
12812
12929
  .filter((e) => e != null)
@@ -12817,6 +12934,22 @@ const serializeAws_restJson1SupportedMessagingContentTypes = (input, context) =>
12817
12934
  return entry;
12818
12935
  });
12819
12936
  };
12937
+ const serializeAws_restJson1TagAndConditionList = (input, context) => {
12938
+ return input
12939
+ .filter((e) => e != null)
12940
+ .map((entry) => {
12941
+ if (entry === null) {
12942
+ return null;
12943
+ }
12944
+ return serializeAws_restJson1TagCondition(entry, context);
12945
+ });
12946
+ };
12947
+ const serializeAws_restJson1TagCondition = (input, context) => {
12948
+ return {
12949
+ ...(input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey }),
12950
+ ...(input.TagValue !== undefined && input.TagValue !== null && { TagValue: input.TagValue }),
12951
+ };
12952
+ };
12820
12953
  const serializeAws_restJson1TagMap = (input, context) => {
12821
12954
  return Object.entries(input).reduce((acc, [key, value]) => {
12822
12955
  if (value === null) {
@@ -12828,6 +12961,16 @@ const serializeAws_restJson1TagMap = (input, context) => {
12828
12961
  };
12829
12962
  }, {});
12830
12963
  };
12964
+ const serializeAws_restJson1TagOrConditionList = (input, context) => {
12965
+ return input
12966
+ .filter((e) => e != null)
12967
+ .map((entry) => {
12968
+ if (entry === null) {
12969
+ return null;
12970
+ }
12971
+ return serializeAws_restJson1TagAndConditionList(entry, context);
12972
+ });
12973
+ };
12831
12974
  const serializeAws_restJson1Threshold = (input, context) => {
12832
12975
  return {
12833
12976
  ...(input.Comparison !== undefined && input.Comparison !== null && { Comparison: input.Comparison }),
@@ -12858,6 +13001,42 @@ const serializeAws_restJson1UserQuickConnectConfig = (input, context) => {
12858
13001
  ...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
12859
13002
  };
12860
13003
  };
13004
+ const serializeAws_restJson1UserSearchConditionList = (input, context) => {
13005
+ return input
13006
+ .filter((e) => e != null)
13007
+ .map((entry) => {
13008
+ if (entry === null) {
13009
+ return null;
13010
+ }
13011
+ return serializeAws_restJson1UserSearchCriteria(entry, context);
13012
+ });
13013
+ };
13014
+ const serializeAws_restJson1UserSearchCriteria = (input, context) => {
13015
+ return {
13016
+ ...(input.AndConditions !== undefined &&
13017
+ input.AndConditions !== null && {
13018
+ AndConditions: serializeAws_restJson1UserSearchConditionList(input.AndConditions, context),
13019
+ }),
13020
+ ...(input.HierarchyGroupCondition !== undefined &&
13021
+ input.HierarchyGroupCondition !== null && {
13022
+ HierarchyGroupCondition: serializeAws_restJson1HierarchyGroupCondition(input.HierarchyGroupCondition, context),
13023
+ }),
13024
+ ...(input.OrConditions !== undefined &&
13025
+ input.OrConditions !== null && {
13026
+ OrConditions: serializeAws_restJson1UserSearchConditionList(input.OrConditions, context),
13027
+ }),
13028
+ ...(input.StringCondition !== undefined &&
13029
+ input.StringCondition !== null && {
13030
+ StringCondition: serializeAws_restJson1StringCondition(input.StringCondition, context),
13031
+ }),
13032
+ };
13033
+ };
13034
+ const serializeAws_restJson1UserSearchFilter = (input, context) => {
13035
+ return {
13036
+ ...(input.TagFilter !== undefined &&
13037
+ input.TagFilter !== null && { TagFilter: serializeAws_restJson1ControlPlaneTagFilter(input.TagFilter, context) }),
13038
+ };
13039
+ };
12861
13040
  const serializeAws_restJson1VoiceRecordingConfiguration = (input, context) => {
12862
13041
  return {
12863
13042
  ...(input.VoiceRecordingTrack !== undefined &&
@@ -13979,6 +14158,12 @@ const deserializeAws_restJson1UserIdentityInfo = (output, context) => {
13979
14158
  LastName: (0, smithy_client_1.expectString)(output.LastName),
13980
14159
  };
13981
14160
  };
14161
+ const deserializeAws_restJson1UserIdentityInfoLite = (output, context) => {
14162
+ return {
14163
+ FirstName: (0, smithy_client_1.expectString)(output.FirstName),
14164
+ LastName: (0, smithy_client_1.expectString)(output.LastName),
14165
+ };
14166
+ };
13982
14167
  const deserializeAws_restJson1UserPhoneConfig = (output, context) => {
13983
14168
  return {
13984
14169
  AfterContactWorkTimeLimit: (0, smithy_client_1.expectInt32)(output.AfterContactWorkTimeLimit),
@@ -13993,6 +14178,39 @@ const deserializeAws_restJson1UserQuickConnectConfig = (output, context) => {
13993
14178
  UserId: (0, smithy_client_1.expectString)(output.UserId),
13994
14179
  };
13995
14180
  };
14181
+ const deserializeAws_restJson1UserSearchSummary = (output, context) => {
14182
+ return {
14183
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
14184
+ DirectoryUserId: (0, smithy_client_1.expectString)(output.DirectoryUserId),
14185
+ HierarchyGroupId: (0, smithy_client_1.expectString)(output.HierarchyGroupId),
14186
+ Id: (0, smithy_client_1.expectString)(output.Id),
14187
+ IdentityInfo: output.IdentityInfo !== undefined && output.IdentityInfo !== null
14188
+ ? deserializeAws_restJson1UserIdentityInfoLite(output.IdentityInfo, context)
14189
+ : undefined,
14190
+ PhoneConfig: output.PhoneConfig !== undefined && output.PhoneConfig !== null
14191
+ ? deserializeAws_restJson1UserPhoneConfig(output.PhoneConfig, context)
14192
+ : undefined,
14193
+ RoutingProfileId: (0, smithy_client_1.expectString)(output.RoutingProfileId),
14194
+ SecurityProfileIds: output.SecurityProfileIds !== undefined && output.SecurityProfileIds !== null
14195
+ ? deserializeAws_restJson1SecurityProfileIds(output.SecurityProfileIds, context)
14196
+ : undefined,
14197
+ Tags: output.Tags !== undefined && output.Tags !== null
14198
+ ? deserializeAws_restJson1TagMap(output.Tags, context)
14199
+ : undefined,
14200
+ Username: (0, smithy_client_1.expectString)(output.Username),
14201
+ };
14202
+ };
14203
+ const deserializeAws_restJson1UserSearchSummaryList = (output, context) => {
14204
+ const retVal = (output || [])
14205
+ .filter((e) => e != null)
14206
+ .map((entry) => {
14207
+ if (entry === null) {
14208
+ return null;
14209
+ }
14210
+ return deserializeAws_restJson1UserSearchSummary(entry, context);
14211
+ });
14212
+ return retVal;
14213
+ };
13996
14214
  const deserializeAws_restJson1UserSummary = (output, context) => {
13997
14215
  return {
13998
14216
  Arn: (0, smithy_client_1.expectString)(output.Arn),
@@ -97,6 +97,7 @@ import { ListUsersCommand } from "./commands/ListUsersCommand";
97
97
  import { ReleasePhoneNumberCommand, } from "./commands/ReleasePhoneNumberCommand";
98
98
  import { ResumeContactRecordingCommand, } from "./commands/ResumeContactRecordingCommand";
99
99
  import { SearchAvailablePhoneNumbersCommand, } from "./commands/SearchAvailablePhoneNumbersCommand";
100
+ import { SearchUsersCommand } from "./commands/SearchUsersCommand";
100
101
  import { SearchVocabulariesCommand, } from "./commands/SearchVocabulariesCommand";
101
102
  import { StartChatContactCommand, } from "./commands/StartChatContactCommand";
102
103
  import { StartContactRecordingCommand, } from "./commands/StartContactRecordingCommand";
@@ -1519,6 +1520,20 @@ var Connect = (function (_super) {
1519
1520
  return this.send(command, optionsOrCb);
1520
1521
  }
1521
1522
  };
1523
+ Connect.prototype.searchUsers = function (args, optionsOrCb, cb) {
1524
+ var command = new SearchUsersCommand(args);
1525
+ if (typeof optionsOrCb === "function") {
1526
+ this.send(command, optionsOrCb);
1527
+ }
1528
+ else if (typeof cb === "function") {
1529
+ if (typeof optionsOrCb !== "object")
1530
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1531
+ this.send(command, optionsOrCb || {}, cb);
1532
+ }
1533
+ else {
1534
+ return this.send(command, optionsOrCb);
1535
+ }
1536
+ };
1522
1537
  Connect.prototype.searchVocabularies = function (args, optionsOrCb, cb) {
1523
1538
  var command = new SearchVocabulariesCommand(args);
1524
1539
  if (typeof optionsOrCb === "function") {