@aws-sdk/client-connect 3.613.0 → 3.616.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 (53) hide show
  1. package/README.md +17 -2
  2. package/dist-cjs/index.js +204 -31
  3. package/dist-es/Connect.js +4 -0
  4. package/dist-es/ConnectClient.js +5 -5
  5. package/dist-es/commands/SearchAgentStatusesCommand.js +24 -0
  6. package/dist-es/commands/SearchUserHierarchyGroupsCommand.js +24 -0
  7. package/dist-es/commands/index.js +2 -0
  8. package/dist-es/models/models_0.js +5 -18
  9. package/dist-es/models/models_1.js +18 -0
  10. package/dist-es/models/models_2.js +12 -5
  11. package/dist-es/pagination/SearchAgentStatusesPaginator.js +4 -0
  12. package/dist-es/pagination/SearchUserHierarchyGroupsPaginator.js +4 -0
  13. package/dist-es/pagination/index.js +2 -0
  14. package/dist-es/protocols/Aws_restJson1.js +113 -2
  15. package/dist-types/Connect.d.ts +16 -3
  16. package/dist-types/ConnectClient.d.ts +8 -7
  17. package/dist-types/commands/DescribeContactEvaluationCommand.d.ts +1 -1
  18. package/dist-types/commands/ListTrafficDistributionGroupUsersCommand.d.ts +1 -1
  19. package/dist-types/commands/ListUseCasesCommand.d.ts +1 -1
  20. package/dist-types/commands/SearchAgentStatusesCommand.d.ts +142 -0
  21. package/dist-types/commands/SearchUserHierarchyGroupsCommand.d.ts +181 -0
  22. package/dist-types/commands/SearchUsersCommand.d.ts +32 -4
  23. package/dist-types/commands/index.d.ts +2 -0
  24. package/dist-types/index.d.ts +2 -3
  25. package/dist-types/models/models_0.d.ts +128 -133
  26. package/dist-types/models/models_1.d.ts +128 -118
  27. package/dist-types/models/models_2.d.ts +431 -73
  28. package/dist-types/pagination/SearchAgentStatusesPaginator.d.ts +7 -0
  29. package/dist-types/pagination/SearchUserHierarchyGroupsPaginator.d.ts +7 -0
  30. package/dist-types/pagination/index.d.ts +2 -0
  31. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  32. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  33. package/dist-types/runtimeConfig.d.ts +1 -1
  34. package/dist-types/runtimeConfig.native.d.ts +1 -1
  35. package/dist-types/ts3.4/Connect.d.ts +34 -0
  36. package/dist-types/ts3.4/ConnectClient.d.ts +14 -2
  37. package/dist-types/ts3.4/commands/DescribeContactEvaluationCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/ListTrafficDistributionGroupUsersCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/ListUseCasesCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/SearchAgentStatusesCommand.d.ts +40 -0
  41. package/dist-types/ts3.4/commands/SearchUserHierarchyGroupsCommand.d.ts +40 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +27 -60
  44. package/dist-types/ts3.4/models/models_1.d.ts +60 -29
  45. package/dist-types/ts3.4/models/models_2.d.ts +107 -20
  46. package/dist-types/ts3.4/pagination/SearchAgentStatusesPaginator.d.ts +11 -0
  47. package/dist-types/ts3.4/pagination/SearchUserHierarchyGroupsPaginator.d.ts +11 -0
  48. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  49. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  50. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  51. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  53. package/package.json +24 -24
package/README.md CHANGED
@@ -9,8 +9,7 @@ AWS SDK for JavaScript Connect Client for Node.js, Browser and React Native.
9
9
  <ul>
10
10
  <li>
11
11
  <p>
12
- <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect
13
- actions</a>
12
+ <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Service.html">Amazon Connect actions</a>
14
13
  </p>
15
14
  </li>
16
15
  <li>
@@ -1610,6 +1609,14 @@ ResumeContactRecording
1610
1609
 
1611
1610
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/ResumeContactRecordingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/ResumeContactRecordingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/ResumeContactRecordingCommandOutput/)
1612
1611
 
1612
+ </details>
1613
+ <details>
1614
+ <summary>
1615
+ SearchAgentStatuses
1616
+ </summary>
1617
+
1618
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SearchAgentStatusesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchAgentStatusesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchAgentStatusesCommandOutput/)
1619
+
1613
1620
  </details>
1614
1621
  <details>
1615
1622
  <summary>
@@ -1706,6 +1713,14 @@ SearchSecurityProfiles
1706
1713
 
1707
1714
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SearchSecurityProfilesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchSecurityProfilesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchSecurityProfilesCommandOutput/)
1708
1715
 
1716
+ </details>
1717
+ <details>
1718
+ <summary>
1719
+ SearchUserHierarchyGroups
1720
+ </summary>
1721
+
1722
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SearchUserHierarchyGroupsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchUserHierarchyGroupsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchUserHierarchyGroupsCommandOutput/)
1723
+
1709
1724
  </details>
1710
1725
  <details>
1711
1726
  <summary>
package/dist-cjs/index.js CHANGED
@@ -280,6 +280,7 @@ __export(src_exports, {
280
280
  MonitorContactCommand: () => MonitorContactCommand,
281
281
  NotificationContentType: () => NotificationContentType,
282
282
  NotificationDeliveryType: () => NotificationDeliveryType,
283
+ NumberComparisonType: () => NumberComparisonType,
283
284
  NumericQuestionPropertyAutomationLabel: () => NumericQuestionPropertyAutomationLabel,
284
285
  OutboundContactNotPermittedException: () => OutboundContactNotPermittedException,
285
286
  OutputTypeNotFoundException: () => OutputTypeNotFoundException,
@@ -322,6 +323,7 @@ __export(src_exports, {
322
323
  ResumeContactRecordingCommand: () => ResumeContactRecordingCommand,
323
324
  RoutingCriteriaStepStatus: () => RoutingCriteriaStepStatus,
324
325
  RulePublishStatus: () => RulePublishStatus,
326
+ SearchAgentStatusesCommand: () => SearchAgentStatusesCommand,
325
327
  SearchAvailablePhoneNumbersCommand: () => SearchAvailablePhoneNumbersCommand,
326
328
  SearchContactFlowModulesCommand: () => SearchContactFlowModulesCommand,
327
329
  SearchContactFlowsCommand: () => SearchContactFlowsCommand,
@@ -338,6 +340,7 @@ __export(src_exports, {
338
340
  SearchResourceTagsCommand: () => SearchResourceTagsCommand,
339
341
  SearchRoutingProfilesCommand: () => SearchRoutingProfilesCommand,
340
342
  SearchSecurityProfilesCommand: () => SearchSecurityProfilesCommand,
343
+ SearchUserHierarchyGroupsCommand: () => SearchUserHierarchyGroupsCommand,
341
344
  SearchUsersCommand: () => SearchUsersCommand,
342
345
  SearchUsersResponseFilterSensitiveLog: () => SearchUsersResponseFilterSensitiveLog,
343
346
  SearchVocabulariesCommand: () => SearchVocabulariesCommand,
@@ -372,6 +375,7 @@ __export(src_exports, {
372
375
  SuspendContactRecordingCommand: () => SuspendContactRecordingCommand,
373
376
  TagContactCommand: () => TagContactCommand,
374
377
  TagResourceCommand: () => TagResourceCommand,
378
+ TargetListType: () => TargetListType,
375
379
  TaskTemplateFieldType: () => TaskTemplateFieldType,
376
380
  TaskTemplateStatus: () => TaskTemplateStatus,
377
381
  ThrottlingException: () => ThrottlingException,
@@ -503,6 +507,7 @@ __export(src_exports, {
503
507
  paginateListUsers: () => paginateListUsers,
504
508
  paginateListViewVersions: () => paginateListViewVersions,
505
509
  paginateListViews: () => paginateListViews,
510
+ paginateSearchAgentStatuses: () => paginateSearchAgentStatuses,
506
511
  paginateSearchAvailablePhoneNumbers: () => paginateSearchAvailablePhoneNumbers,
507
512
  paginateSearchContactFlowModules: () => paginateSearchContactFlowModules,
508
513
  paginateSearchContactFlows: () => paginateSearchContactFlows,
@@ -515,6 +520,7 @@ __export(src_exports, {
515
520
  paginateSearchResourceTags: () => paginateSearchResourceTags,
516
521
  paginateSearchRoutingProfiles: () => paginateSearchRoutingProfiles,
517
522
  paginateSearchSecurityProfiles: () => paginateSearchSecurityProfiles,
523
+ paginateSearchUserHierarchyGroups: () => paginateSearchUserHierarchyGroups,
518
524
  paginateSearchUsers: () => paginateSearchUsers,
519
525
  paginateSearchVocabularies: () => paginateSearchVocabularies
520
526
  });
@@ -622,19 +628,19 @@ var _ConnectClient = class _ConnectClient extends import_smithy_client.Client {
622
628
  const _config_1 = resolveClientEndpointParameters(_config_0);
623
629
  const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
624
630
  const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
625
- const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
626
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
627
- const _config_6 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_5);
631
+ const _config_4 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_3);
632
+ const _config_5 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_4);
633
+ const _config_6 = (0, import_middleware_retry.resolveRetryConfig)(_config_5);
628
634
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
629
635
  const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
630
636
  super(_config_8);
631
637
  this.config = _config_8;
632
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
633
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
634
638
  this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
635
639
  this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
636
640
  this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
637
641
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
642
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
643
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
638
644
  this.middlewareStack.use(
639
645
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
640
646
  httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
@@ -854,6 +860,11 @@ var AgentStatusType = {
854
860
  OFFLINE: "OFFLINE",
855
861
  ROUTABLE: "ROUTABLE"
856
862
  };
863
+ var StringComparisonType = {
864
+ CONTAINS: "CONTAINS",
865
+ EXACT: "EXACT",
866
+ STARTS_WITH: "STARTS_WITH"
867
+ };
857
868
  var MonitorCapability = {
858
869
  BARGE: "BARGE",
859
870
  SILENT_MONITOR: "SILENT_MONITOR"
@@ -1398,24 +1409,6 @@ var AnsweringMachineDetectionStatus = {
1398
1409
  VOICEMAIL_BEEP: "VOICEMAIL_BEEP",
1399
1410
  VOICEMAIL_NO_BEEP: "VOICEMAIL_NO_BEEP"
1400
1411
  };
1401
- var RoutingCriteriaStepStatus = {
1402
- ACTIVE: "ACTIVE",
1403
- EXPIRED: "EXPIRED",
1404
- INACTIVE: "INACTIVE",
1405
- JOINED: "JOINED"
1406
- };
1407
- var EvaluationAnswerData;
1408
- ((EvaluationAnswerData3) => {
1409
- EvaluationAnswerData3.visit = /* @__PURE__ */ __name((value, visitor) => {
1410
- if (value.StringValue !== void 0)
1411
- return visitor.StringValue(value.StringValue);
1412
- if (value.NumericValue !== void 0)
1413
- return visitor.NumericValue(value.NumericValue);
1414
- if (value.NotApplicable !== void 0)
1415
- return visitor.NotApplicable(value.NotApplicable);
1416
- return visitor._(value.$unknown[0], value.$unknown[1]);
1417
- }, "visit");
1418
- })(EvaluationAnswerData || (EvaluationAnswerData = {}));
1419
1412
  var CreateInstanceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1420
1413
  ...obj,
1421
1414
  ...obj.InstanceAlias && { InstanceAlias: import_smithy_client.SENSITIVE_STRING }
@@ -1462,6 +1455,24 @@ var CreateViewVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) =
1462
1455
 
1463
1456
  // src/models/models_1.ts
1464
1457
 
1458
+ var RoutingCriteriaStepStatus = {
1459
+ ACTIVE: "ACTIVE",
1460
+ EXPIRED: "EXPIRED",
1461
+ INACTIVE: "INACTIVE",
1462
+ JOINED: "JOINED"
1463
+ };
1464
+ var EvaluationAnswerData;
1465
+ ((EvaluationAnswerData2) => {
1466
+ EvaluationAnswerData2.visit = /* @__PURE__ */ __name((value, visitor) => {
1467
+ if (value.StringValue !== void 0)
1468
+ return visitor.StringValue(value.StringValue);
1469
+ if (value.NumericValue !== void 0)
1470
+ return visitor.NumericValue(value.NumericValue);
1471
+ if (value.NotApplicable !== void 0)
1472
+ return visitor.NotApplicable(value.NotApplicable);
1473
+ return visitor._(value.$unknown[0], value.$unknown[1]);
1474
+ }, "visit");
1475
+ })(EvaluationAnswerData || (EvaluationAnswerData = {}));
1465
1476
  var EvaluationStatus = {
1466
1477
  DRAFT: "DRAFT",
1467
1478
  SUBMITTED: "SUBMITTED"
@@ -2036,11 +2047,6 @@ var _ConflictException = class _ConflictException extends ConnectServiceExceptio
2036
2047
  };
2037
2048
  __name(_ConflictException, "ConflictException");
2038
2049
  var ConflictException = _ConflictException;
2039
- var StringComparisonType = {
2040
- CONTAINS: "CONTAINS",
2041
- EXACT: "EXACT",
2042
- STARTS_WITH: "STARTS_WITH"
2043
- };
2044
2050
  var SearchContactsMatchType = {
2045
2051
  MATCH_ALL: "MATCH_ALL",
2046
2052
  MATCH_ANY: "MATCH_ANY"
@@ -2084,6 +2090,18 @@ var HierarchyGroupMatchType = {
2084
2090
  EXACT: "EXACT",
2085
2091
  WITH_CHILD_GROUPS: "WITH_CHILD_GROUPS"
2086
2092
  };
2093
+ var NumberComparisonType = {
2094
+ EQUAL: "EQUAL",
2095
+ GREATER: "GREATER",
2096
+ GREATER_OR_EQUAL: "GREATER_OR_EQUAL",
2097
+ LESSER: "LESSER",
2098
+ LESSER_OR_EQUAL: "LESSER_OR_EQUAL",
2099
+ NOT_EQUAL: "NOT_EQUAL",
2100
+ RANGE: "RANGE"
2101
+ };
2102
+ var TargetListType = {
2103
+ PROFICIENCIES: "PROFICIENCIES"
2104
+ };
2087
2105
  var ChatEventType = {
2088
2106
  DISCONNECT: "DISCONNECT",
2089
2107
  EVENT: "EVENT",
@@ -4813,6 +4831,25 @@ var se_ResumeContactRecordingCommand = /* @__PURE__ */ __name(async (input, cont
4813
4831
  b.m("POST").h(headers).b(body);
4814
4832
  return b.build();
4815
4833
  }, "se_ResumeContactRecordingCommand");
4834
+ var se_SearchAgentStatusesCommand = /* @__PURE__ */ __name(async (input, context) => {
4835
+ const b = (0, import_core.requestBuilder)(input, context);
4836
+ const headers = {
4837
+ "content-type": "application/json"
4838
+ };
4839
+ b.bp("/search-agent-statuses");
4840
+ let body;
4841
+ body = JSON.stringify(
4842
+ (0, import_smithy_client.take)(input, {
4843
+ InstanceId: [],
4844
+ MaxResults: [],
4845
+ NextToken: [],
4846
+ SearchCriteria: (_) => se_AgentStatusSearchCriteria(_, context),
4847
+ SearchFilter: (_) => (0, import_smithy_client._json)(_)
4848
+ })
4849
+ );
4850
+ b.m("POST").h(headers).b(body);
4851
+ return b.build();
4852
+ }, "se_SearchAgentStatusesCommand");
4816
4853
  var se_SearchAvailablePhoneNumbersCommand = /* @__PURE__ */ __name(async (input, context) => {
4817
4854
  const b = (0, import_core.requestBuilder)(input, context);
4818
4855
  const headers = {
@@ -5043,6 +5080,25 @@ var se_SearchSecurityProfilesCommand = /* @__PURE__ */ __name(async (input, cont
5043
5080
  b.m("POST").h(headers).b(body);
5044
5081
  return b.build();
5045
5082
  }, "se_SearchSecurityProfilesCommand");
5083
+ var se_SearchUserHierarchyGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
5084
+ const b = (0, import_core.requestBuilder)(input, context);
5085
+ const headers = {
5086
+ "content-type": "application/json"
5087
+ };
5088
+ b.bp("/search-user-hierarchy-groups");
5089
+ let body;
5090
+ body = JSON.stringify(
5091
+ (0, import_smithy_client.take)(input, {
5092
+ InstanceId: [],
5093
+ MaxResults: [],
5094
+ NextToken: [],
5095
+ SearchCriteria: (_) => se_UserHierarchyGroupSearchCriteria(_, context),
5096
+ SearchFilter: (_) => (0, import_smithy_client._json)(_)
5097
+ })
5098
+ );
5099
+ b.m("POST").h(headers).b(body);
5100
+ return b.build();
5101
+ }, "se_SearchUserHierarchyGroupsCommand");
5046
5102
  var se_SearchUsersCommand = /* @__PURE__ */ __name(async (input, context) => {
5047
5103
  const b = (0, import_core.requestBuilder)(input, context);
5048
5104
  const headers = {
@@ -8644,6 +8700,22 @@ var de_ResumeContactRecordingCommand = /* @__PURE__ */ __name(async (output, con
8644
8700
  await (0, import_smithy_client.collectBody)(output.body, context);
8645
8701
  return contents;
8646
8702
  }, "de_ResumeContactRecordingCommand");
8703
+ var de_SearchAgentStatusesCommand = /* @__PURE__ */ __name(async (output, context) => {
8704
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8705
+ return de_CommandError(output, context);
8706
+ }
8707
+ const contents = (0, import_smithy_client.map)({
8708
+ $metadata: deserializeMetadata(output)
8709
+ });
8710
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
8711
+ const doc = (0, import_smithy_client.take)(data, {
8712
+ AgentStatuses: (_) => de_AgentStatusList(_, context),
8713
+ ApproximateTotalCount: import_smithy_client.expectLong,
8714
+ NextToken: import_smithy_client.expectString
8715
+ });
8716
+ Object.assign(contents, doc);
8717
+ return contents;
8718
+ }, "de_SearchAgentStatusesCommand");
8647
8719
  var de_SearchAvailablePhoneNumbersCommand = /* @__PURE__ */ __name(async (output, context) => {
8648
8720
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8649
8721
  return de_CommandError(output, context);
@@ -8834,6 +8906,22 @@ var de_SearchSecurityProfilesCommand = /* @__PURE__ */ __name(async (output, con
8834
8906
  Object.assign(contents, doc);
8835
8907
  return contents;
8836
8908
  }, "de_SearchSecurityProfilesCommand");
8909
+ var de_SearchUserHierarchyGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
8910
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8911
+ return de_CommandError(output, context);
8912
+ }
8913
+ const contents = (0, import_smithy_client.map)({
8914
+ $metadata: deserializeMetadata(output)
8915
+ });
8916
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
8917
+ const doc = (0, import_smithy_client.take)(data, {
8918
+ ApproximateTotalCount: import_smithy_client.expectLong,
8919
+ NextToken: import_smithy_client.expectString,
8920
+ UserHierarchyGroups: (_) => de_UserHierarchyGroupList(_, context)
8921
+ });
8922
+ Object.assign(contents, doc);
8923
+ return contents;
8924
+ }, "de_SearchUserHierarchyGroupsCommand");
8837
8925
  var de_SearchUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
8838
8926
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8839
8927
  return de_CommandError(output, context);
@@ -10041,6 +10129,18 @@ var de_UserNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, co
10041
10129
  });
10042
10130
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
10043
10131
  }, "de_UserNotFoundExceptionRes");
10132
+ var se_AgentStatusSearchConditionList = /* @__PURE__ */ __name((input, context) => {
10133
+ return input.filter((e) => e != null).map((entry) => {
10134
+ return se_AgentStatusSearchCriteria(entry, context);
10135
+ });
10136
+ }, "se_AgentStatusSearchConditionList");
10137
+ var se_AgentStatusSearchCriteria = /* @__PURE__ */ __name((input, context) => {
10138
+ return (0, import_smithy_client.take)(input, {
10139
+ AndConditions: (_) => se_AgentStatusSearchConditionList(_, context),
10140
+ OrConditions: (_) => se_AgentStatusSearchConditionList(_, context),
10141
+ StringCondition: import_smithy_client._json
10142
+ });
10143
+ }, "se_AgentStatusSearchCriteria");
10044
10144
  var se_ContactFlowModuleSearchConditionList = /* @__PURE__ */ __name((input, context) => {
10045
10145
  return input.filter((e) => e != null).map((entry) => {
10046
10146
  return se_ContactFlowModuleSearchCriteria(entry, context);
@@ -10304,6 +10404,18 @@ var se_UpdateCaseActionDefinition = /* @__PURE__ */ __name((input, context) => {
10304
10404
  Fields: (_) => se_FieldValues(_, context)
10305
10405
  });
10306
10406
  }, "se_UpdateCaseActionDefinition");
10407
+ var se_UserHierarchyGroupSearchConditionList = /* @__PURE__ */ __name((input, context) => {
10408
+ return input.filter((e) => e != null).map((entry) => {
10409
+ return se_UserHierarchyGroupSearchCriteria(entry, context);
10410
+ });
10411
+ }, "se_UserHierarchyGroupSearchConditionList");
10412
+ var se_UserHierarchyGroupSearchCriteria = /* @__PURE__ */ __name((input, context) => {
10413
+ return (0, import_smithy_client.take)(input, {
10414
+ AndConditions: (_) => se_UserHierarchyGroupSearchConditionList(_, context),
10415
+ OrConditions: (_) => se_UserHierarchyGroupSearchConditionList(_, context),
10416
+ StringCondition: import_smithy_client._json
10417
+ });
10418
+ }, "se_UserHierarchyGroupSearchCriteria");
10307
10419
  var se_UserProficiency = /* @__PURE__ */ __name((input, context) => {
10308
10420
  return (0, import_smithy_client.take)(input, {
10309
10421
  AttributeName: [],
@@ -10325,6 +10437,7 @@ var se_UserSearchCriteria = /* @__PURE__ */ __name((input, context) => {
10325
10437
  return (0, import_smithy_client.take)(input, {
10326
10438
  AndConditions: (_) => se_UserSearchConditionList(_, context),
10327
10439
  HierarchyGroupCondition: import_smithy_client._json,
10440
+ ListCondition: import_smithy_client._json,
10328
10441
  OrConditions: (_) => se_UserSearchConditionList(_, context),
10329
10442
  StringCondition: import_smithy_client._json
10330
10443
  });
@@ -10375,6 +10488,12 @@ var de_AgentStatus = /* @__PURE__ */ __name((output, context) => {
10375
10488
  Type: import_smithy_client.expectString
10376
10489
  });
10377
10490
  }, "de_AgentStatus");
10491
+ var de_AgentStatusList = /* @__PURE__ */ __name((output, context) => {
10492
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
10493
+ return de_AgentStatus(entry, context);
10494
+ });
10495
+ return retVal;
10496
+ }, "de_AgentStatusList");
10378
10497
  var de_AgentStatusReference = /* @__PURE__ */ __name((output, context) => {
10379
10498
  return (0, import_smithy_client.take)(output, {
10380
10499
  StatusArn: import_smithy_client.expectString,
@@ -11437,6 +11556,12 @@ var de_UserDataList = /* @__PURE__ */ __name((output, context) => {
11437
11556
  });
11438
11557
  return retVal;
11439
11558
  }, "de_UserDataList");
11559
+ var de_UserHierarchyGroupList = /* @__PURE__ */ __name((output, context) => {
11560
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
11561
+ return de_HierarchyGroup(entry, context);
11562
+ });
11563
+ return retVal;
11564
+ }, "de_UserHierarchyGroupList");
11440
11565
  var de_UserProficiency = /* @__PURE__ */ __name((output, context) => {
11441
11566
  return (0, import_smithy_client.take)(output, {
11442
11567
  AttributeName: import_smithy_client.expectString,
@@ -14346,6 +14471,22 @@ var _ResumeContactRecordingCommand = class _ResumeContactRecordingCommand extend
14346
14471
  __name(_ResumeContactRecordingCommand, "ResumeContactRecordingCommand");
14347
14472
  var ResumeContactRecordingCommand = _ResumeContactRecordingCommand;
14348
14473
 
14474
+ // src/commands/SearchAgentStatusesCommand.ts
14475
+
14476
+
14477
+
14478
+ var _SearchAgentStatusesCommand = class _SearchAgentStatusesCommand extends import_smithy_client.Command.classBuilder().ep({
14479
+ ...commonParams
14480
+ }).m(function(Command, cs, config, o) {
14481
+ return [
14482
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
14483
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
14484
+ ];
14485
+ }).s("AmazonConnectService", "SearchAgentStatuses", {}).n("ConnectClient", "SearchAgentStatusesCommand").f(void 0, void 0).ser(se_SearchAgentStatusesCommand).de(de_SearchAgentStatusesCommand).build() {
14486
+ };
14487
+ __name(_SearchAgentStatusesCommand, "SearchAgentStatusesCommand");
14488
+ var SearchAgentStatusesCommand = _SearchAgentStatusesCommand;
14489
+
14349
14490
  // src/commands/SearchAvailablePhoneNumbersCommand.ts
14350
14491
 
14351
14492
 
@@ -14538,6 +14679,22 @@ var _SearchSecurityProfilesCommand = class _SearchSecurityProfilesCommand extend
14538
14679
  __name(_SearchSecurityProfilesCommand, "SearchSecurityProfilesCommand");
14539
14680
  var SearchSecurityProfilesCommand = _SearchSecurityProfilesCommand;
14540
14681
 
14682
+ // src/commands/SearchUserHierarchyGroupsCommand.ts
14683
+
14684
+
14685
+
14686
+ var _SearchUserHierarchyGroupsCommand = class _SearchUserHierarchyGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
14687
+ ...commonParams
14688
+ }).m(function(Command, cs, config, o) {
14689
+ return [
14690
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
14691
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
14692
+ ];
14693
+ }).s("AmazonConnectService", "SearchUserHierarchyGroups", {}).n("ConnectClient", "SearchUserHierarchyGroupsCommand").f(void 0, void 0).ser(se_SearchUserHierarchyGroupsCommand).de(de_SearchUserHierarchyGroupsCommand).build() {
14694
+ };
14695
+ __name(_SearchUserHierarchyGroupsCommand, "SearchUserHierarchyGroupsCommand");
14696
+ var SearchUserHierarchyGroupsCommand = _SearchUserHierarchyGroupsCommand;
14697
+
14541
14698
  // src/commands/SearchUsersCommand.ts
14542
14699
 
14543
14700
 
@@ -15801,6 +15958,7 @@ var commands = {
15801
15958
  ReplicateInstanceCommand,
15802
15959
  ResumeContactCommand,
15803
15960
  ResumeContactRecordingCommand,
15961
+ SearchAgentStatusesCommand,
15804
15962
  SearchAvailablePhoneNumbersCommand,
15805
15963
  SearchContactFlowModulesCommand,
15806
15964
  SearchContactFlowsCommand,
@@ -15813,6 +15971,7 @@ var commands = {
15813
15971
  SearchResourceTagsCommand,
15814
15972
  SearchRoutingProfilesCommand,
15815
15973
  SearchSecurityProfilesCommand,
15974
+ SearchUserHierarchyGroupsCommand,
15816
15975
  SearchUsersCommand,
15817
15976
  SearchVocabulariesCommand,
15818
15977
  SendChatIntegrationEventCommand,
@@ -16076,6 +16235,10 @@ var paginateListViewVersions = (0, import_core.createPaginator)(ConnectClient, L
16076
16235
 
16077
16236
  var paginateListViews = (0, import_core.createPaginator)(ConnectClient, ListViewsCommand, "NextToken", "NextToken", "MaxResults");
16078
16237
 
16238
+ // src/pagination/SearchAgentStatusesPaginator.ts
16239
+
16240
+ var paginateSearchAgentStatuses = (0, import_core.createPaginator)(ConnectClient, SearchAgentStatusesCommand, "NextToken", "NextToken", "MaxResults");
16241
+
16079
16242
  // src/pagination/SearchAvailablePhoneNumbersPaginator.ts
16080
16243
 
16081
16244
  var paginateSearchAvailablePhoneNumbers = (0, import_core.createPaginator)(ConnectClient, SearchAvailablePhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
@@ -16124,6 +16287,10 @@ var paginateSearchRoutingProfiles = (0, import_core.createPaginator)(ConnectClie
16124
16287
 
16125
16288
  var paginateSearchSecurityProfiles = (0, import_core.createPaginator)(ConnectClient, SearchSecurityProfilesCommand, "NextToken", "NextToken", "MaxResults");
16126
16289
 
16290
+ // src/pagination/SearchUserHierarchyGroupsPaginator.ts
16291
+
16292
+ var paginateSearchUserHierarchyGroups = (0, import_core.createPaginator)(ConnectClient, SearchUserHierarchyGroupsCommand, "NextToken", "NextToken", "MaxResults");
16293
+
16127
16294
  // src/pagination/SearchUsersPaginator.ts
16128
16295
 
16129
16296
  var paginateSearchUsers = (0, import_core.createPaginator)(ConnectClient, SearchUsersCommand, "NextToken", "NextToken", "MaxResults");
@@ -16312,6 +16479,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16312
16479
  ReplicateInstanceCommand,
16313
16480
  ResumeContactCommand,
16314
16481
  ResumeContactRecordingCommand,
16482
+ SearchAgentStatusesCommand,
16315
16483
  SearchAvailablePhoneNumbersCommand,
16316
16484
  SearchContactFlowModulesCommand,
16317
16485
  SearchContactFlowsCommand,
@@ -16324,6 +16492,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16324
16492
  SearchResourceTagsCommand,
16325
16493
  SearchRoutingProfilesCommand,
16326
16494
  SearchSecurityProfilesCommand,
16495
+ SearchUserHierarchyGroupsCommand,
16327
16496
  SearchUsersCommand,
16328
16497
  SearchVocabulariesCommand,
16329
16498
  SendChatIntegrationEventCommand,
@@ -16439,6 +16608,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16439
16608
  paginateListUsers,
16440
16609
  paginateListViewVersions,
16441
16610
  paginateListViews,
16611
+ paginateSearchAgentStatuses,
16442
16612
  paginateSearchAvailablePhoneNumbers,
16443
16613
  paginateSearchContactFlowModules,
16444
16614
  paginateSearchContactFlows,
@@ -16451,6 +16621,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16451
16621
  paginateSearchResourceTags,
16452
16622
  paginateSearchRoutingProfiles,
16453
16623
  paginateSearchSecurityProfiles,
16624
+ paginateSearchUserHierarchyGroups,
16454
16625
  paginateSearchUsers,
16455
16626
  paginateSearchVocabularies,
16456
16627
  AccessDeniedException,
@@ -16467,6 +16638,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16467
16638
  VideoCapability,
16468
16639
  AgentStatusState,
16469
16640
  AgentStatusType,
16641
+ StringComparisonType,
16470
16642
  MonitorCapability,
16471
16643
  AttachedFileInvalidRequestExceptionReason,
16472
16644
  InvalidRequestExceptionReason,
@@ -16527,8 +16699,6 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16527
16699
  TooManyRequestsException,
16528
16700
  VocabularyState,
16529
16701
  AnsweringMachineDetectionStatus,
16530
- RoutingCriteriaStepStatus,
16531
- EvaluationAnswerData,
16532
16702
  CreateInstanceRequestFilterSensitiveLog,
16533
16703
  UserIdentityInfoFilterSensitiveLog,
16534
16704
  CreateUserRequestFilterSensitiveLog,
@@ -16538,6 +16708,8 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16538
16708
  ViewFilterSensitiveLog,
16539
16709
  CreateViewResponseFilterSensitiveLog,
16540
16710
  CreateViewVersionResponseFilterSensitiveLog,
16711
+ RoutingCriteriaStepStatus,
16712
+ EvaluationAnswerData,
16541
16713
  EvaluationStatus,
16542
16714
  ContactFlowNotPublishedException,
16543
16715
  ContactFlowState,
@@ -16583,13 +16755,14 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16583
16755
  InstanceSummaryFilterSensitiveLog,
16584
16756
  ListInstancesResponseFilterSensitiveLog,
16585
16757
  ConflictException,
16586
- StringComparisonType,
16587
16758
  SearchContactsMatchType,
16588
16759
  SortableFieldName,
16589
16760
  SearchContactsTimeRangeType,
16590
16761
  SearchableQueueType,
16591
16762
  MaximumResultReturnedException,
16592
16763
  HierarchyGroupMatchType,
16764
+ NumberComparisonType,
16765
+ TargetListType,
16593
16766
  ChatEventType,
16594
16767
  VoiceRecordingTrack,
16595
16768
  DestinationNotAllowedException,
@@ -172,6 +172,7 @@ import { ReleasePhoneNumberCommand, } from "./commands/ReleasePhoneNumberCommand
172
172
  import { ReplicateInstanceCommand, } from "./commands/ReplicateInstanceCommand";
173
173
  import { ResumeContactCommand, } from "./commands/ResumeContactCommand";
174
174
  import { ResumeContactRecordingCommand, } from "./commands/ResumeContactRecordingCommand";
175
+ import { SearchAgentStatusesCommand, } from "./commands/SearchAgentStatusesCommand";
175
176
  import { SearchAvailablePhoneNumbersCommand, } from "./commands/SearchAvailablePhoneNumbersCommand";
176
177
  import { SearchContactFlowModulesCommand, } from "./commands/SearchContactFlowModulesCommand";
177
178
  import { SearchContactFlowsCommand, } from "./commands/SearchContactFlowsCommand";
@@ -184,6 +185,7 @@ import { SearchQuickConnectsCommand, } from "./commands/SearchQuickConnectsComma
184
185
  import { SearchResourceTagsCommand, } from "./commands/SearchResourceTagsCommand";
185
186
  import { SearchRoutingProfilesCommand, } from "./commands/SearchRoutingProfilesCommand";
186
187
  import { SearchSecurityProfilesCommand, } from "./commands/SearchSecurityProfilesCommand";
188
+ import { SearchUserHierarchyGroupsCommand, } from "./commands/SearchUserHierarchyGroupsCommand";
187
189
  import { SearchUsersCommand } from "./commands/SearchUsersCommand";
188
190
  import { SearchVocabulariesCommand, } from "./commands/SearchVocabulariesCommand";
189
191
  import { SendChatIntegrationEventCommand, } from "./commands/SendChatIntegrationEventCommand";
@@ -427,6 +429,7 @@ const commands = {
427
429
  ReplicateInstanceCommand,
428
430
  ResumeContactCommand,
429
431
  ResumeContactRecordingCommand,
432
+ SearchAgentStatusesCommand,
430
433
  SearchAvailablePhoneNumbersCommand,
431
434
  SearchContactFlowModulesCommand,
432
435
  SearchContactFlowsCommand,
@@ -439,6 +442,7 @@ const commands = {
439
442
  SearchResourceTagsCommand,
440
443
  SearchRoutingProfilesCommand,
441
444
  SearchSecurityProfilesCommand,
445
+ SearchUserHierarchyGroupsCommand,
442
446
  SearchUsersCommand,
443
447
  SearchVocabulariesCommand,
444
448
  SendChatIntegrationEventCommand,
@@ -19,19 +19,19 @@ export class ConnectClient extends __Client {
19
19
  const _config_1 = resolveClientEndpointParameters(_config_0);
20
20
  const _config_2 = resolveRegionConfig(_config_1);
21
21
  const _config_3 = resolveEndpointConfig(_config_2);
22
- const _config_4 = resolveRetryConfig(_config_3);
23
- const _config_5 = resolveHostHeaderConfig(_config_4);
24
- const _config_6 = resolveUserAgentConfig(_config_5);
22
+ const _config_4 = resolveHostHeaderConfig(_config_3);
23
+ const _config_5 = resolveUserAgentConfig(_config_4);
24
+ const _config_6 = resolveRetryConfig(_config_5);
25
25
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
26
26
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
27
27
  super(_config_8);
28
28
  this.config = _config_8;
29
- this.middlewareStack.use(getRetryPlugin(this.config));
30
- this.middlewareStack.use(getContentLengthPlugin(this.config));
31
29
  this.middlewareStack.use(getHostHeaderPlugin(this.config));
32
30
  this.middlewareStack.use(getLoggerPlugin(this.config));
33
31
  this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
34
32
  this.middlewareStack.use(getUserAgentPlugin(this.config));
33
+ this.middlewareStack.use(getRetryPlugin(this.config));
34
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
35
35
  this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
36
36
  httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
37
37
  identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_SearchAgentStatusesCommand, se_SearchAgentStatusesCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class SearchAgentStatusesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectService", "SearchAgentStatuses", {})
19
+ .n("ConnectClient", "SearchAgentStatusesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SearchAgentStatusesCommand)
22
+ .de(de_SearchAgentStatusesCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_SearchUserHierarchyGroupsCommand, se_SearchUserHierarchyGroupsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class SearchUserHierarchyGroupsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonConnectService", "SearchUserHierarchyGroups", {})
19
+ .n("ConnectClient", "SearchUserHierarchyGroupsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SearchUserHierarchyGroupsCommand)
22
+ .de(de_SearchUserHierarchyGroupsCommand)
23
+ .build() {
24
+ }
@@ -171,6 +171,7 @@ export * from "./ReleasePhoneNumberCommand";
171
171
  export * from "./ReplicateInstanceCommand";
172
172
  export * from "./ResumeContactCommand";
173
173
  export * from "./ResumeContactRecordingCommand";
174
+ export * from "./SearchAgentStatusesCommand";
174
175
  export * from "./SearchAvailablePhoneNumbersCommand";
175
176
  export * from "./SearchContactFlowModulesCommand";
176
177
  export * from "./SearchContactFlowsCommand";
@@ -183,6 +184,7 @@ export * from "./SearchQuickConnectsCommand";
183
184
  export * from "./SearchResourceTagsCommand";
184
185
  export * from "./SearchRoutingProfilesCommand";
185
186
  export * from "./SearchSecurityProfilesCommand";
187
+ export * from "./SearchUserHierarchyGroupsCommand";
186
188
  export * from "./SearchUsersCommand";
187
189
  export * from "./SearchVocabulariesCommand";
188
190
  export * from "./SendChatIntegrationEventCommand";