@aws-sdk/client-connect 3.76.0 → 3.79.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 (97) hide show
  1. package/CHANGELOG.md +30 -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/GetCurrentMetricDataPaginator.js +2 -1
  7. package/dist-cjs/pagination/GetMetricDataPaginator.js +2 -1
  8. package/dist-cjs/pagination/ListAgentStatusesPaginator.js +2 -1
  9. package/dist-cjs/pagination/ListApprovedOriginsPaginator.js +2 -1
  10. package/dist-cjs/pagination/ListBotsPaginator.js +2 -1
  11. package/dist-cjs/pagination/ListContactFlowModulesPaginator.js +2 -1
  12. package/dist-cjs/pagination/ListContactFlowsPaginator.js +2 -1
  13. package/dist-cjs/pagination/ListContactReferencesPaginator.js +2 -1
  14. package/dist-cjs/pagination/ListDefaultVocabulariesPaginator.js +2 -1
  15. package/dist-cjs/pagination/ListHoursOfOperationsPaginator.js +2 -1
  16. package/dist-cjs/pagination/ListInstanceAttributesPaginator.js +2 -1
  17. package/dist-cjs/pagination/ListInstanceStorageConfigsPaginator.js +2 -1
  18. package/dist-cjs/pagination/ListInstancesPaginator.js +2 -1
  19. package/dist-cjs/pagination/ListIntegrationAssociationsPaginator.js +2 -1
  20. package/dist-cjs/pagination/ListLambdaFunctionsPaginator.js +2 -1
  21. package/dist-cjs/pagination/ListLexBotsPaginator.js +2 -1
  22. package/dist-cjs/pagination/ListPhoneNumbersPaginator.js +2 -1
  23. package/dist-cjs/pagination/ListPhoneNumbersV2Paginator.js +2 -1
  24. package/dist-cjs/pagination/ListPromptsPaginator.js +2 -1
  25. package/dist-cjs/pagination/ListQueueQuickConnectsPaginator.js +2 -1
  26. package/dist-cjs/pagination/ListQueuesPaginator.js +2 -1
  27. package/dist-cjs/pagination/ListQuickConnectsPaginator.js +2 -1
  28. package/dist-cjs/pagination/ListRoutingProfileQueuesPaginator.js +2 -1
  29. package/dist-cjs/pagination/ListRoutingProfilesPaginator.js +2 -1
  30. package/dist-cjs/pagination/ListSecurityKeysPaginator.js +2 -1
  31. package/dist-cjs/pagination/ListSecurityProfilePermissionsPaginator.js +2 -1
  32. package/dist-cjs/pagination/ListSecurityProfilesPaginator.js +2 -1
  33. package/dist-cjs/pagination/ListUseCasesPaginator.js +2 -1
  34. package/dist-cjs/pagination/ListUserHierarchyGroupsPaginator.js +2 -1
  35. package/dist-cjs/pagination/ListUsersPaginator.js +2 -1
  36. package/dist-cjs/pagination/SearchAvailablePhoneNumbersPaginator.js +2 -1
  37. package/dist-cjs/pagination/SearchUsersPaginator.js +36 -0
  38. package/dist-cjs/pagination/SearchVocabulariesPaginator.js +2 -1
  39. package/dist-cjs/pagination/index.js +1 -0
  40. package/dist-cjs/protocols/Aws_restJson1.js +223 -5
  41. package/dist-es/Connect.js +15 -0
  42. package/dist-es/commands/SearchUsersCommand.js +39 -0
  43. package/dist-es/commands/index.js +1 -0
  44. package/dist-es/models/models_1.js +51 -0
  45. package/dist-es/pagination/GetCurrentMetricDataPaginator.js +3 -2
  46. package/dist-es/pagination/GetMetricDataPaginator.js +3 -2
  47. package/dist-es/pagination/ListAgentStatusesPaginator.js +3 -2
  48. package/dist-es/pagination/ListApprovedOriginsPaginator.js +3 -2
  49. package/dist-es/pagination/ListBotsPaginator.js +3 -2
  50. package/dist-es/pagination/ListContactFlowModulesPaginator.js +3 -2
  51. package/dist-es/pagination/ListContactFlowsPaginator.js +3 -2
  52. package/dist-es/pagination/ListContactReferencesPaginator.js +3 -2
  53. package/dist-es/pagination/ListDefaultVocabulariesPaginator.js +3 -2
  54. package/dist-es/pagination/ListHoursOfOperationsPaginator.js +3 -2
  55. package/dist-es/pagination/ListInstanceAttributesPaginator.js +3 -2
  56. package/dist-es/pagination/ListInstanceStorageConfigsPaginator.js +3 -2
  57. package/dist-es/pagination/ListInstancesPaginator.js +3 -2
  58. package/dist-es/pagination/ListIntegrationAssociationsPaginator.js +3 -2
  59. package/dist-es/pagination/ListLambdaFunctionsPaginator.js +3 -2
  60. package/dist-es/pagination/ListLexBotsPaginator.js +3 -2
  61. package/dist-es/pagination/ListPhoneNumbersPaginator.js +3 -2
  62. package/dist-es/pagination/ListPhoneNumbersV2Paginator.js +3 -2
  63. package/dist-es/pagination/ListPromptsPaginator.js +3 -2
  64. package/dist-es/pagination/ListQueueQuickConnectsPaginator.js +3 -2
  65. package/dist-es/pagination/ListQueuesPaginator.js +3 -2
  66. package/dist-es/pagination/ListQuickConnectsPaginator.js +3 -2
  67. package/dist-es/pagination/ListRoutingProfileQueuesPaginator.js +3 -2
  68. package/dist-es/pagination/ListRoutingProfilesPaginator.js +3 -2
  69. package/dist-es/pagination/ListSecurityKeysPaginator.js +3 -2
  70. package/dist-es/pagination/ListSecurityProfilePermissionsPaginator.js +3 -2
  71. package/dist-es/pagination/ListSecurityProfilesPaginator.js +3 -2
  72. package/dist-es/pagination/ListUseCasesPaginator.js +3 -2
  73. package/dist-es/pagination/ListUserHierarchyGroupsPaginator.js +3 -2
  74. package/dist-es/pagination/ListUsersPaginator.js +3 -2
  75. package/dist-es/pagination/SearchAvailablePhoneNumbersPaginator.js +3 -2
  76. package/dist-es/pagination/SearchUsersPaginator.js +75 -0
  77. package/dist-es/pagination/SearchVocabulariesPaginator.js +3 -2
  78. package/dist-es/pagination/index.js +1 -0
  79. package/dist-es/protocols/Aws_restJson1.js +220 -1
  80. package/dist-types/Connect.d.ts +7 -0
  81. package/dist-types/ConnectClient.d.ts +3 -2
  82. package/dist-types/commands/SearchUsersCommand.d.ts +35 -0
  83. package/dist-types/commands/index.d.ts +1 -0
  84. package/dist-types/models/models_0.d.ts +7 -8
  85. package/dist-types/models/models_1.d.ts +282 -2
  86. package/dist-types/pagination/SearchUsersPaginator.d.ts +4 -0
  87. package/dist-types/pagination/index.d.ts +1 -0
  88. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  89. package/dist-types/ts3.4/Connect.d.ts +5 -0
  90. package/dist-types/ts3.4/ConnectClient.d.ts +3 -2
  91. package/dist-types/ts3.4/commands/SearchUsersCommand.d.ts +17 -0
  92. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  93. package/dist-types/ts3.4/models/models_1.d.ts +149 -0
  94. package/dist-types/ts3.4/pagination/SearchUsersPaginator.d.ts +4 -0
  95. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  96. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  97. package/package.json +25 -25
@@ -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") {
@@ -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 { SearchUsersRequest, SearchUsersResponse } from "../models/models_1";
5
+ import { deserializeAws_restJson1SearchUsersCommand, serializeAws_restJson1SearchUsersCommand, } from "../protocols/Aws_restJson1";
6
+ var SearchUsersCommand = (function (_super) {
7
+ __extends(SearchUsersCommand, _super);
8
+ function SearchUsersCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ SearchUsersCommand.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 = "SearchUsersCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: SearchUsersRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: SearchUsersResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ SearchUsersCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1SearchUsersCommand(input, context);
33
+ };
34
+ SearchUsersCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1SearchUsersCommand(output, context);
36
+ };
37
+ return SearchUsersCommand;
38
+ }($Command));
39
+ export { SearchUsersCommand };
@@ -96,6 +96,7 @@ export * from "./ListUsersCommand";
96
96
  export * from "./ReleasePhoneNumberCommand";
97
97
  export * from "./ResumeContactRecordingCommand";
98
98
  export * from "./SearchAvailablePhoneNumbersCommand";
99
+ export * from "./SearchUsersCommand";
99
100
  export * from "./SearchVocabulariesCommand";
100
101
  export * from "./StartChatContactCommand";
101
102
  export * from "./StartContactRecordingCommand";
@@ -4,6 +4,49 @@ export var SearchAvailablePhoneNumbersResponse;
4
4
  (function (SearchAvailablePhoneNumbersResponse) {
5
5
  SearchAvailablePhoneNumbersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
6
  })(SearchAvailablePhoneNumbersResponse || (SearchAvailablePhoneNumbersResponse = {}));
7
+ export var HierarchyGroupMatchType;
8
+ (function (HierarchyGroupMatchType) {
9
+ HierarchyGroupMatchType["EXACT"] = "EXACT";
10
+ HierarchyGroupMatchType["WITH_CHILD_GROUPS"] = "WITH_CHILD_GROUPS";
11
+ })(HierarchyGroupMatchType || (HierarchyGroupMatchType = {}));
12
+ export var HierarchyGroupCondition;
13
+ (function (HierarchyGroupCondition) {
14
+ HierarchyGroupCondition.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
15
+ })(HierarchyGroupCondition || (HierarchyGroupCondition = {}));
16
+ export var StringComparisonType;
17
+ (function (StringComparisonType) {
18
+ StringComparisonType["CONTAINS"] = "CONTAINS";
19
+ StringComparisonType["EXACT"] = "EXACT";
20
+ StringComparisonType["STARTS_WITH"] = "STARTS_WITH";
21
+ })(StringComparisonType || (StringComparisonType = {}));
22
+ export var StringCondition;
23
+ (function (StringCondition) {
24
+ StringCondition.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
+ })(StringCondition || (StringCondition = {}));
26
+ export var TagCondition;
27
+ (function (TagCondition) {
28
+ TagCondition.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
+ })(TagCondition || (TagCondition = {}));
30
+ export var ControlPlaneTagFilter;
31
+ (function (ControlPlaneTagFilter) {
32
+ ControlPlaneTagFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
33
+ })(ControlPlaneTagFilter || (ControlPlaneTagFilter = {}));
34
+ export var UserSearchFilter;
35
+ (function (UserSearchFilter) {
36
+ UserSearchFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
37
+ })(UserSearchFilter || (UserSearchFilter = {}));
38
+ export var UserIdentityInfoLite;
39
+ (function (UserIdentityInfoLite) {
40
+ UserIdentityInfoLite.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
41
+ })(UserIdentityInfoLite || (UserIdentityInfoLite = {}));
42
+ export var UserSearchSummary;
43
+ (function (UserSearchSummary) {
44
+ UserSearchSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
45
+ })(UserSearchSummary || (UserSearchSummary = {}));
46
+ export var SearchUsersResponse;
47
+ (function (SearchUsersResponse) {
48
+ SearchUsersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
49
+ })(SearchUsersResponse || (SearchUsersResponse = {}));
7
50
  export var SearchVocabulariesRequest;
8
51
  (function (SearchVocabulariesRequest) {
9
52
  SearchVocabulariesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -330,3 +373,11 @@ export var UpdateUserSecurityProfilesRequest;
330
373
  (function (UpdateUserSecurityProfilesRequest) {
331
374
  UpdateUserSecurityProfilesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
332
375
  })(UpdateUserSecurityProfilesRequest || (UpdateUserSecurityProfilesRequest = {}));
376
+ export var UserSearchCriteria;
377
+ (function (UserSearchCriteria) {
378
+ UserSearchCriteria.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
379
+ })(UserSearchCriteria || (UserSearchCriteria = {}));
380
+ export var SearchUsersRequest;
381
+ (function (SearchUsersRequest) {
382
+ SearchUsersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
383
+ })(SearchUsersRequest || (SearchUsersRequest = {}));
@@ -36,7 +36,7 @@ export function paginateGetCurrentMetricData(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateGetCurrentMetricData_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateGetCurrentMetricData(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateGetMetricData(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateGetMetricData_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateGetMetricData(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListAgentStatuses(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListAgentStatuses_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListAgentStatuses(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListApprovedOrigins(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListApprovedOrigins_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListApprovedOrigins(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListBots(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListBots_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListBots(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];
@@ -36,7 +36,7 @@ export function paginateListContactFlowModules(config, input) {
36
36
  additionalArguments[_i - 2] = arguments[_i];
37
37
  }
38
38
  return __asyncGenerator(this, arguments, function paginateListContactFlowModules_1() {
39
- var token, hasNext, page;
39
+ var token, hasNext, page, prevToken;
40
40
  return __generator(this, function (_a) {
41
41
  switch (_a.label) {
42
42
  case 0:
@@ -63,8 +63,9 @@ export function paginateListContactFlowModules(config, input) {
63
63
  case 7: return [4, _a.sent()];
64
64
  case 8:
65
65
  _a.sent();
66
+ prevToken = token;
66
67
  token = page.NextToken;
67
- hasNext = !!token;
68
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
68
69
  return [3, 1];
69
70
  case 9: return [4, __await(undefined)];
70
71
  case 10: return [2, _a.sent()];