@aws-sdk/client-connect 3.575.0 → 3.576.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 (47) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +167 -11
  3. package/dist-es/Connect.js +4 -0
  4. package/dist-es/commands/ReplicateInstanceCommand.js +1 -1
  5. package/dist-es/commands/SearchContactFlowModulesCommand.js +24 -0
  6. package/dist-es/commands/SearchContactFlowsCommand.js +24 -0
  7. package/dist-es/commands/index.js +2 -0
  8. package/dist-es/models/models_0.js +4 -0
  9. package/dist-es/models/models_1.js +0 -4
  10. package/dist-es/models/models_2.js +9 -5
  11. package/dist-es/pagination/SearchContactFlowModulesPaginator.js +4 -0
  12. package/dist-es/pagination/SearchContactFlowsPaginator.js +4 -0
  13. package/dist-es/pagination/index.js +2 -0
  14. package/dist-es/protocols/Aws_restJson1.js +98 -0
  15. package/dist-types/Connect.d.ts +14 -0
  16. package/dist-types/ConnectClient.d.ts +4 -2
  17. package/dist-types/commands/CreateContactFlowCommand.d.ts +1 -0
  18. package/dist-types/commands/DescribeContactFlowCommand.d.ts +10 -0
  19. package/dist-types/commands/DescribeContactFlowModuleCommand.d.ts +4 -0
  20. package/dist-types/commands/ListContactFlowsCommand.d.ts +1 -0
  21. package/dist-types/commands/ReplicateInstanceCommand.d.ts +1 -2
  22. package/dist-types/commands/SearchContactFlowModulesCommand.d.ts +135 -0
  23. package/dist-types/commands/SearchContactFlowsCommand.d.ts +143 -0
  24. package/dist-types/commands/UpdateContactFlowContentCommand.d.ts +4 -0
  25. package/dist-types/commands/UpdateContactFlowModuleContentCommand.d.ts +4 -0
  26. package/dist-types/commands/index.d.ts +2 -0
  27. package/dist-types/models/models_0.d.ts +27 -52
  28. package/dist-types/models/models_1.d.ts +131 -97
  29. package/dist-types/models/models_2.d.ts +352 -92
  30. package/dist-types/pagination/SearchContactFlowModulesPaginator.d.ts +7 -0
  31. package/dist-types/pagination/SearchContactFlowsPaginator.d.ts +7 -0
  32. package/dist-types/pagination/index.d.ts +2 -0
  33. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  34. package/dist-types/ts3.4/Connect.d.ts +34 -0
  35. package/dist-types/ts3.4/ConnectClient.d.ts +12 -0
  36. package/dist-types/ts3.4/commands/ReplicateInstanceCommand.d.ts +4 -2
  37. package/dist-types/ts3.4/commands/SearchContactFlowModulesCommand.d.ts +39 -0
  38. package/dist-types/ts3.4/commands/SearchContactFlowsCommand.d.ts +39 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +8 -11
  41. package/dist-types/ts3.4/models/models_1.d.ts +14 -10
  42. package/dist-types/ts3.4/models/models_2.d.ts +78 -22
  43. package/dist-types/ts3.4/pagination/SearchContactFlowModulesPaginator.d.ts +11 -0
  44. package/dist-types/ts3.4/pagination/SearchContactFlowsPaginator.d.ts +11 -0
  45. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  47. package/package.json +5 -5
package/README.md CHANGED
@@ -1588,6 +1588,22 @@ SearchAvailablePhoneNumbers
1588
1588
 
1589
1589
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SearchAvailablePhoneNumbersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchAvailablePhoneNumbersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchAvailablePhoneNumbersCommandOutput/)
1590
1590
 
1591
+ </details>
1592
+ <details>
1593
+ <summary>
1594
+ SearchContactFlowModules
1595
+ </summary>
1596
+
1597
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SearchContactFlowModulesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchContactFlowModulesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchContactFlowModulesCommandOutput/)
1598
+
1599
+ </details>
1600
+ <details>
1601
+ <summary>
1602
+ SearchContactFlows
1603
+ </summary>
1604
+
1605
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/SearchContactFlowsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchContactFlowsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/SearchContactFlowsCommandOutput/)
1606
+
1591
1607
  </details>
1592
1608
  <details>
1593
1609
  <summary>
package/dist-cjs/index.js CHANGED
@@ -66,6 +66,7 @@ __export(src_exports, {
66
66
  ContactFlowModuleStatus: () => ContactFlowModuleStatus,
67
67
  ContactFlowNotPublishedException: () => ContactFlowNotPublishedException,
68
68
  ContactFlowState: () => ContactFlowState,
69
+ ContactFlowStatus: () => ContactFlowStatus,
69
70
  ContactFlowType: () => ContactFlowType,
70
71
  ContactInitiationMethod: () => ContactInitiationMethod,
71
72
  ContactNotFoundException: () => ContactNotFoundException,
@@ -318,6 +319,8 @@ __export(src_exports, {
318
319
  ResumeContactRecordingCommand: () => ResumeContactRecordingCommand,
319
320
  RulePublishStatus: () => RulePublishStatus,
320
321
  SearchAvailablePhoneNumbersCommand: () => SearchAvailablePhoneNumbersCommand,
322
+ SearchContactFlowModulesCommand: () => SearchContactFlowModulesCommand,
323
+ SearchContactFlowsCommand: () => SearchContactFlowsCommand,
321
324
  SearchContactsCommand: () => SearchContactsCommand,
322
325
  SearchContactsMatchType: () => SearchContactsMatchType,
323
326
  SearchContactsRequestFilterSensitiveLog: () => SearchContactsRequestFilterSensitiveLog,
@@ -495,6 +498,8 @@ __export(src_exports, {
495
498
  paginateListViewVersions: () => paginateListViewVersions,
496
499
  paginateListViews: () => paginateListViews,
497
500
  paginateSearchAvailablePhoneNumbers: () => paginateSearchAvailablePhoneNumbers,
501
+ paginateSearchContactFlowModules: () => paginateSearchContactFlowModules,
502
+ paginateSearchContactFlows: () => paginateSearchContactFlows,
498
503
  paginateSearchContacts: () => paginateSearchContacts,
499
504
  paginateSearchHoursOfOperations: () => paginateSearchHoursOfOperations,
500
505
  paginateSearchPredefinedAttributes: () => paginateSearchPredefinedAttributes,
@@ -1042,6 +1047,10 @@ var _DuplicateResourceException = class _DuplicateResourceException extends Conn
1042
1047
  };
1043
1048
  __name(_DuplicateResourceException, "DuplicateResourceException");
1044
1049
  var DuplicateResourceException = _DuplicateResourceException;
1050
+ var ContactFlowStatus = {
1051
+ PUBLISHED: "PUBLISHED",
1052
+ SAVED: "SAVED"
1053
+ };
1045
1054
  var ContactFlowType = {
1046
1055
  AGENT_HOLD: "AGENT_HOLD",
1047
1056
  AGENT_TRANSFER: "AGENT_TRANSFER",
@@ -2026,13 +2035,14 @@ var ListViewVersionsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
2026
2035
  ViewVersionSummaryList: obj.ViewVersionSummaryList.map((item) => ViewVersionSummaryFilterSensitiveLog(item))
2027
2036
  }
2028
2037
  }), "ListViewVersionsResponseFilterSensitiveLog");
2029
- var ReplicateInstanceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
2030
- ...obj,
2031
- ...obj.ReplicaAlias && { ReplicaAlias: import_smithy_client.SENSITIVE_STRING }
2032
- }), "ReplicateInstanceRequestFilterSensitiveLog");
2033
2038
 
2034
2039
  // src/models/models_2.ts
2035
2040
 
2041
+ var StringComparisonType = {
2042
+ CONTAINS: "CONTAINS",
2043
+ EXACT: "EXACT",
2044
+ STARTS_WITH: "STARTS_WITH"
2045
+ };
2036
2046
  var SearchContactsMatchType = {
2037
2047
  MATCH_ALL: "MATCH_ALL",
2038
2048
  MATCH_ANY: "MATCH_ANY"
@@ -2051,11 +2061,6 @@ var SearchContactsTimeRangeType = {
2051
2061
  INITIATION_TIMESTAMP: "INITIATION_TIMESTAMP",
2052
2062
  SCHEDULED_TIMESTAMP: "SCHEDULED_TIMESTAMP"
2053
2063
  };
2054
- var StringComparisonType = {
2055
- CONTAINS: "CONTAINS",
2056
- EXACT: "EXACT",
2057
- STARTS_WITH: "STARTS_WITH"
2058
- };
2059
2064
  var SearchableQueueType = {
2060
2065
  STANDARD: "STANDARD"
2061
2066
  };
@@ -2192,6 +2197,10 @@ var EvaluationFormItem;
2192
2197
  return visitor._(value.$unknown[0], value.$unknown[1]);
2193
2198
  }, "visit");
2194
2199
  })(EvaluationFormItem || (EvaluationFormItem = {}));
2200
+ var ReplicateInstanceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
2201
+ ...obj,
2202
+ ...obj.ReplicaAlias && { ReplicaAlias: import_smithy_client.SENSITIVE_STRING }
2203
+ }), "ReplicateInstanceRequestFilterSensitiveLog");
2195
2204
  var TranscriptCriteriaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
2196
2205
  ...obj,
2197
2206
  ...obj.SearchText && { SearchText: import_smithy_client.SENSITIVE_STRING }
@@ -2693,6 +2702,7 @@ var se_CreateContactFlowCommand = /* @__PURE__ */ __name(async (input, context)
2693
2702
  Content: [],
2694
2703
  Description: [],
2695
2704
  Name: [],
2705
+ Status: [],
2696
2706
  Tags: (_) => (0, import_smithy_client._json)(_),
2697
2707
  Type: []
2698
2708
  })
@@ -4774,6 +4784,44 @@ var se_SearchAvailablePhoneNumbersCommand = /* @__PURE__ */ __name(async (input,
4774
4784
  b.m("POST").h(headers).b(body);
4775
4785
  return b.build();
4776
4786
  }, "se_SearchAvailablePhoneNumbersCommand");
4787
+ var se_SearchContactFlowModulesCommand = /* @__PURE__ */ __name(async (input, context) => {
4788
+ const b = (0, import_core.requestBuilder)(input, context);
4789
+ const headers = {
4790
+ "content-type": "application/json"
4791
+ };
4792
+ b.bp("/search-contact-flow-modules");
4793
+ let body;
4794
+ body = JSON.stringify(
4795
+ (0, import_smithy_client.take)(input, {
4796
+ InstanceId: [],
4797
+ MaxResults: [],
4798
+ NextToken: [],
4799
+ SearchCriteria: (_) => se_ContactFlowModuleSearchCriteria(_, context),
4800
+ SearchFilter: (_) => (0, import_smithy_client._json)(_)
4801
+ })
4802
+ );
4803
+ b.m("POST").h(headers).b(body);
4804
+ return b.build();
4805
+ }, "se_SearchContactFlowModulesCommand");
4806
+ var se_SearchContactFlowsCommand = /* @__PURE__ */ __name(async (input, context) => {
4807
+ const b = (0, import_core.requestBuilder)(input, context);
4808
+ const headers = {
4809
+ "content-type": "application/json"
4810
+ };
4811
+ b.bp("/search-contact-flows");
4812
+ let body;
4813
+ body = JSON.stringify(
4814
+ (0, import_smithy_client.take)(input, {
4815
+ InstanceId: [],
4816
+ MaxResults: [],
4817
+ NextToken: [],
4818
+ SearchCriteria: (_) => se_ContactFlowSearchCriteria(_, context),
4819
+ SearchFilter: (_) => (0, import_smithy_client._json)(_)
4820
+ })
4821
+ );
4822
+ b.m("POST").h(headers).b(body);
4823
+ return b.build();
4824
+ }, "se_SearchContactFlowsCommand");
4777
4825
  var se_SearchContactsCommand = /* @__PURE__ */ __name(async (input, context) => {
4778
4826
  const b = (0, import_core.requestBuilder)(input, context);
4779
4827
  const headers = {
@@ -8511,6 +8559,38 @@ var de_SearchAvailablePhoneNumbersCommand = /* @__PURE__ */ __name(async (output
8511
8559
  Object.assign(contents, doc);
8512
8560
  return contents;
8513
8561
  }, "de_SearchAvailablePhoneNumbersCommand");
8562
+ var de_SearchContactFlowModulesCommand = /* @__PURE__ */ __name(async (output, context) => {
8563
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8564
+ return de_CommandError(output, context);
8565
+ }
8566
+ const contents = (0, import_smithy_client.map)({
8567
+ $metadata: deserializeMetadata(output)
8568
+ });
8569
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
8570
+ const doc = (0, import_smithy_client.take)(data, {
8571
+ ApproximateTotalCount: import_smithy_client.expectLong,
8572
+ ContactFlowModules: import_smithy_client._json,
8573
+ NextToken: import_smithy_client.expectString
8574
+ });
8575
+ Object.assign(contents, doc);
8576
+ return contents;
8577
+ }, "de_SearchContactFlowModulesCommand");
8578
+ var de_SearchContactFlowsCommand = /* @__PURE__ */ __name(async (output, context) => {
8579
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8580
+ return de_CommandError(output, context);
8581
+ }
8582
+ const contents = (0, import_smithy_client.map)({
8583
+ $metadata: deserializeMetadata(output)
8584
+ });
8585
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
8586
+ const doc = (0, import_smithy_client.take)(data, {
8587
+ ApproximateTotalCount: import_smithy_client.expectLong,
8588
+ ContactFlows: import_smithy_client._json,
8589
+ NextToken: import_smithy_client.expectString
8590
+ });
8591
+ Object.assign(contents, doc);
8592
+ return contents;
8593
+ }, "de_SearchContactFlowsCommand");
8514
8594
  var de_SearchContactsCommand = /* @__PURE__ */ __name(async (output, context) => {
8515
8595
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8516
8596
  return de_CommandError(output, context);
@@ -9851,6 +9931,33 @@ var de_UserNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, co
9851
9931
  });
9852
9932
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
9853
9933
  }, "de_UserNotFoundExceptionRes");
9934
+ var se_ContactFlowModuleSearchConditionList = /* @__PURE__ */ __name((input, context) => {
9935
+ return input.filter((e) => e != null).map((entry) => {
9936
+ return se_ContactFlowModuleSearchCriteria(entry, context);
9937
+ });
9938
+ }, "se_ContactFlowModuleSearchConditionList");
9939
+ var se_ContactFlowModuleSearchCriteria = /* @__PURE__ */ __name((input, context) => {
9940
+ return (0, import_smithy_client.take)(input, {
9941
+ AndConditions: (_) => se_ContactFlowModuleSearchConditionList(_, context),
9942
+ OrConditions: (_) => se_ContactFlowModuleSearchConditionList(_, context),
9943
+ StringCondition: import_smithy_client._json
9944
+ });
9945
+ }, "se_ContactFlowModuleSearchCriteria");
9946
+ var se_ContactFlowSearchConditionList = /* @__PURE__ */ __name((input, context) => {
9947
+ return input.filter((e) => e != null).map((entry) => {
9948
+ return se_ContactFlowSearchCriteria(entry, context);
9949
+ });
9950
+ }, "se_ContactFlowSearchConditionList");
9951
+ var se_ContactFlowSearchCriteria = /* @__PURE__ */ __name((input, context) => {
9952
+ return (0, import_smithy_client.take)(input, {
9953
+ AndConditions: (_) => se_ContactFlowSearchConditionList(_, context),
9954
+ OrConditions: (_) => se_ContactFlowSearchConditionList(_, context),
9955
+ StateCondition: [],
9956
+ StatusCondition: [],
9957
+ StringCondition: import_smithy_client._json,
9958
+ TypeCondition: []
9959
+ });
9960
+ }, "se_ContactFlowSearchCriteria");
9854
9961
  var se_CreateCaseActionDefinition = /* @__PURE__ */ __name((input, context) => {
9855
9962
  return (0, import_smithy_client.take)(input, {
9856
9963
  Fields: (_) => se_FieldValues(_, context),
@@ -14163,6 +14270,40 @@ var _SearchAvailablePhoneNumbersCommand = class _SearchAvailablePhoneNumbersComm
14163
14270
  __name(_SearchAvailablePhoneNumbersCommand, "SearchAvailablePhoneNumbersCommand");
14164
14271
  var SearchAvailablePhoneNumbersCommand = _SearchAvailablePhoneNumbersCommand;
14165
14272
 
14273
+ // src/commands/SearchContactFlowModulesCommand.ts
14274
+
14275
+
14276
+
14277
+
14278
+ var _SearchContactFlowModulesCommand = class _SearchContactFlowModulesCommand extends import_smithy_client.Command.classBuilder().ep({
14279
+ ...commonParams
14280
+ }).m(function(Command, cs, config, o) {
14281
+ return [
14282
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
14283
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
14284
+ ];
14285
+ }).s("AmazonConnectService", "SearchContactFlowModules", {}).n("ConnectClient", "SearchContactFlowModulesCommand").f(void 0, void 0).ser(se_SearchContactFlowModulesCommand).de(de_SearchContactFlowModulesCommand).build() {
14286
+ };
14287
+ __name(_SearchContactFlowModulesCommand, "SearchContactFlowModulesCommand");
14288
+ var SearchContactFlowModulesCommand = _SearchContactFlowModulesCommand;
14289
+
14290
+ // src/commands/SearchContactFlowsCommand.ts
14291
+
14292
+
14293
+
14294
+
14295
+ var _SearchContactFlowsCommand = class _SearchContactFlowsCommand extends import_smithy_client.Command.classBuilder().ep({
14296
+ ...commonParams
14297
+ }).m(function(Command, cs, config, o) {
14298
+ return [
14299
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
14300
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
14301
+ ];
14302
+ }).s("AmazonConnectService", "SearchContactFlows", {}).n("ConnectClient", "SearchContactFlowsCommand").f(void 0, void 0).ser(se_SearchContactFlowsCommand).de(de_SearchContactFlowsCommand).build() {
14303
+ };
14304
+ __name(_SearchContactFlowsCommand, "SearchContactFlowsCommand");
14305
+ var SearchContactFlowsCommand = _SearchContactFlowsCommand;
14306
+
14166
14307
  // src/commands/SearchContactsCommand.ts
14167
14308
 
14168
14309
 
@@ -15629,6 +15770,8 @@ var commands = {
15629
15770
  ResumeContactCommand,
15630
15771
  ResumeContactRecordingCommand,
15631
15772
  SearchAvailablePhoneNumbersCommand,
15773
+ SearchContactFlowModulesCommand,
15774
+ SearchContactFlowsCommand,
15632
15775
  SearchContactsCommand,
15633
15776
  SearchHoursOfOperationsCommand,
15634
15777
  SearchPredefinedAttributesCommand,
@@ -15900,6 +16043,14 @@ var paginateListViews = (0, import_core.createPaginator)(ConnectClient, ListView
15900
16043
 
15901
16044
  var paginateSearchAvailablePhoneNumbers = (0, import_core.createPaginator)(ConnectClient, SearchAvailablePhoneNumbersCommand, "NextToken", "NextToken", "MaxResults");
15902
16045
 
16046
+ // src/pagination/SearchContactFlowModulesPaginator.ts
16047
+
16048
+ var paginateSearchContactFlowModules = (0, import_core.createPaginator)(ConnectClient, SearchContactFlowModulesCommand, "NextToken", "NextToken", "MaxResults");
16049
+
16050
+ // src/pagination/SearchContactFlowsPaginator.ts
16051
+
16052
+ var paginateSearchContactFlows = (0, import_core.createPaginator)(ConnectClient, SearchContactFlowsCommand, "NextToken", "NextToken", "MaxResults");
16053
+
15903
16054
  // src/pagination/SearchContactsPaginator.ts
15904
16055
 
15905
16056
  var paginateSearchContacts = (0, import_core.createPaginator)(ConnectClient, SearchContactsCommand, "NextToken", "NextToken", "MaxResults");
@@ -16123,6 +16274,8 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16123
16274
  ResumeContactCommand,
16124
16275
  ResumeContactRecordingCommand,
16125
16276
  SearchAvailablePhoneNumbersCommand,
16277
+ SearchContactFlowModulesCommand,
16278
+ SearchContactFlowsCommand,
16126
16279
  SearchContactsCommand,
16127
16280
  SearchHoursOfOperationsCommand,
16128
16281
  SearchPredefinedAttributesCommand,
@@ -16246,6 +16399,8 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16246
16399
  paginateListViewVersions,
16247
16400
  paginateListViews,
16248
16401
  paginateSearchAvailablePhoneNumbers,
16402
+ paginateSearchContactFlowModules,
16403
+ paginateSearchContactFlows,
16249
16404
  paginateSearchContacts,
16250
16405
  paginateSearchHoursOfOperations,
16251
16406
  paginateSearchPredefinedAttributes,
@@ -16290,6 +16445,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16290
16445
  FailureReasonCode,
16291
16446
  IdempotencyException,
16292
16447
  DuplicateResourceException,
16448
+ ContactFlowStatus,
16293
16449
  ContactFlowType,
16294
16450
  InvalidContactFlowException,
16295
16451
  InvalidContactFlowModuleException,
@@ -16390,11 +16546,10 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16390
16546
  ListViewsResponseFilterSensitiveLog,
16391
16547
  ViewVersionSummaryFilterSensitiveLog,
16392
16548
  ListViewVersionsResponseFilterSensitiveLog,
16393
- ReplicateInstanceRequestFilterSensitiveLog,
16549
+ StringComparisonType,
16394
16550
  SearchContactsMatchType,
16395
16551
  SortableFieldName,
16396
16552
  SearchContactsTimeRangeType,
16397
- StringComparisonType,
16398
16553
  SearchableQueueType,
16399
16554
  MaximumResultReturnedException,
16400
16555
  HierarchyGroupMatchType,
@@ -16411,6 +16566,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16411
16566
  ParticipantTimerValue,
16412
16567
  UpdateParticipantRoleConfigChannelInfo,
16413
16568
  EvaluationFormItem,
16569
+ ReplicateInstanceRequestFilterSensitiveLog,
16414
16570
  TranscriptCriteriaFilterSensitiveLog,
16415
16571
  TranscriptFilterSensitiveLog,
16416
16572
  ContactAnalysisFilterSensitiveLog,
@@ -171,6 +171,8 @@ import { ReplicateInstanceCommand, } from "./commands/ReplicateInstanceCommand";
171
171
  import { ResumeContactCommand, } from "./commands/ResumeContactCommand";
172
172
  import { ResumeContactRecordingCommand, } from "./commands/ResumeContactRecordingCommand";
173
173
  import { SearchAvailablePhoneNumbersCommand, } from "./commands/SearchAvailablePhoneNumbersCommand";
174
+ import { SearchContactFlowModulesCommand, } from "./commands/SearchContactFlowModulesCommand";
175
+ import { SearchContactFlowsCommand, } from "./commands/SearchContactFlowsCommand";
174
176
  import { SearchContactsCommand, } from "./commands/SearchContactsCommand";
175
177
  import { SearchHoursOfOperationsCommand, } from "./commands/SearchHoursOfOperationsCommand";
176
178
  import { SearchPredefinedAttributesCommand, } from "./commands/SearchPredefinedAttributesCommand";
@@ -421,6 +423,8 @@ const commands = {
421
423
  ResumeContactCommand,
422
424
  ResumeContactRecordingCommand,
423
425
  SearchAvailablePhoneNumbersCommand,
426
+ SearchContactFlowModulesCommand,
427
+ SearchContactFlowsCommand,
424
428
  SearchContactsCommand,
425
429
  SearchHoursOfOperationsCommand,
426
430
  SearchPredefinedAttributesCommand,
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { ReplicateInstanceRequestFilterSensitiveLog } from "../models/models_1";
5
+ import { ReplicateInstanceRequestFilterSensitiveLog, } from "../models/models_2";
6
6
  import { de_ReplicateInstanceCommand, se_ReplicateInstanceCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class ReplicateInstanceCommand extends $Command
@@ -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_SearchContactFlowModulesCommand, se_SearchContactFlowModulesCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class SearchContactFlowModulesCommand 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", "SearchContactFlowModules", {})
19
+ .n("ConnectClient", "SearchContactFlowModulesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SearchContactFlowModulesCommand)
22
+ .de(de_SearchContactFlowModulesCommand)
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_SearchContactFlowsCommand, se_SearchContactFlowsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class SearchContactFlowsCommand 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", "SearchContactFlows", {})
19
+ .n("ConnectClient", "SearchContactFlowsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_SearchContactFlowsCommand)
22
+ .de(de_SearchContactFlowsCommand)
23
+ .build() {
24
+ }
@@ -170,6 +170,8 @@ export * from "./ReplicateInstanceCommand";
170
170
  export * from "./ResumeContactCommand";
171
171
  export * from "./ResumeContactRecordingCommand";
172
172
  export * from "./SearchAvailablePhoneNumbersCommand";
173
+ export * from "./SearchContactFlowModulesCommand";
174
+ export * from "./SearchContactFlowsCommand";
173
175
  export * from "./SearchContactsCommand";
174
176
  export * from "./SearchHoursOfOperationsCommand";
175
177
  export * from "./SearchPredefinedAttributesCommand";
@@ -304,6 +304,10 @@ export class DuplicateResourceException extends __BaseException {
304
304
  this.Message = opts.Message;
305
305
  }
306
306
  }
307
+ export const ContactFlowStatus = {
308
+ PUBLISHED: "PUBLISHED",
309
+ SAVED: "SAVED",
310
+ };
307
311
  export const ContactFlowType = {
308
312
  AGENT_HOLD: "AGENT_HOLD",
309
313
  AGENT_TRANSFER: "AGENT_TRANSFER",
@@ -539,7 +539,3 @@ export const ListViewVersionsResponseFilterSensitiveLog = (obj) => ({
539
539
  ViewVersionSummaryList: obj.ViewVersionSummaryList.map((item) => ViewVersionSummaryFilterSensitiveLog(item)),
540
540
  }),
541
541
  });
542
- export const ReplicateInstanceRequestFilterSensitiveLog = (obj) => ({
543
- ...obj,
544
- ...(obj.ReplicaAlias && { ReplicaAlias: SENSITIVE_STRING }),
545
- });
@@ -1,6 +1,11 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { ConnectServiceException as __BaseException } from "./ConnectServiceException";
3
3
  import { UserIdentityInfoFilterSensitiveLog, ViewFilterSensitiveLog, ViewInputContentFilterSensitiveLog, } from "./models_0";
4
+ export const StringComparisonType = {
5
+ CONTAINS: "CONTAINS",
6
+ EXACT: "EXACT",
7
+ STARTS_WITH: "STARTS_WITH",
8
+ };
4
9
  export const SearchContactsMatchType = {
5
10
  MATCH_ALL: "MATCH_ALL",
6
11
  MATCH_ANY: "MATCH_ANY",
@@ -19,11 +24,6 @@ export const SearchContactsTimeRangeType = {
19
24
  INITIATION_TIMESTAMP: "INITIATION_TIMESTAMP",
20
25
  SCHEDULED_TIMESTAMP: "SCHEDULED_TIMESTAMP",
21
26
  };
22
- export const StringComparisonType = {
23
- CONTAINS: "CONTAINS",
24
- EXACT: "EXACT",
25
- STARTS_WITH: "STARTS_WITH",
26
- };
27
27
  export const SearchableQueueType = {
28
28
  STANDARD: "STANDARD",
29
29
  };
@@ -140,6 +140,10 @@ export var EvaluationFormItem;
140
140
  return visitor._(value.$unknown[0], value.$unknown[1]);
141
141
  };
142
142
  })(EvaluationFormItem || (EvaluationFormItem = {}));
143
+ export const ReplicateInstanceRequestFilterSensitiveLog = (obj) => ({
144
+ ...obj,
145
+ ...(obj.ReplicaAlias && { ReplicaAlias: SENSITIVE_STRING }),
146
+ });
143
147
  export const TranscriptCriteriaFilterSensitiveLog = (obj) => ({
144
148
  ...obj,
145
149
  ...(obj.SearchText && { SearchText: SENSITIVE_STRING }),
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { SearchContactFlowModulesCommand, } from "../commands/SearchContactFlowModulesCommand";
3
+ import { ConnectClient } from "../ConnectClient";
4
+ export const paginateSearchContactFlowModules = createPaginator(ConnectClient, SearchContactFlowModulesCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { SearchContactFlowsCommand, } from "../commands/SearchContactFlowsCommand";
3
+ import { ConnectClient } from "../ConnectClient";
4
+ export const paginateSearchContactFlows = createPaginator(ConnectClient, SearchContactFlowsCommand, "NextToken", "NextToken", "MaxResults");
@@ -46,6 +46,8 @@ export * from "./ListUsersPaginator";
46
46
  export * from "./ListViewVersionsPaginator";
47
47
  export * from "./ListViewsPaginator";
48
48
  export * from "./SearchAvailablePhoneNumbersPaginator";
49
+ export * from "./SearchContactFlowModulesPaginator";
50
+ export * from "./SearchContactFlowsPaginator";
49
51
  export * from "./SearchContactsPaginator";
50
52
  export * from "./SearchHoursOfOperationsPaginator";
51
53
  export * from "./SearchPredefinedAttributesPaginator";
@@ -366,6 +366,7 @@ export const se_CreateContactFlowCommand = async (input, context) => {
366
366
  Content: [],
367
367
  Description: [],
368
368
  Name: [],
369
+ Status: [],
369
370
  Tags: (_) => _json(_),
370
371
  Type: [],
371
372
  }));
@@ -2358,6 +2359,40 @@ export const se_SearchAvailablePhoneNumbersCommand = async (input, context) => {
2358
2359
  b.m("POST").h(headers).b(body);
2359
2360
  return b.build();
2360
2361
  };
2362
+ export const se_SearchContactFlowModulesCommand = async (input, context) => {
2363
+ const b = rb(input, context);
2364
+ const headers = {
2365
+ "content-type": "application/json",
2366
+ };
2367
+ b.bp("/search-contact-flow-modules");
2368
+ let body;
2369
+ body = JSON.stringify(take(input, {
2370
+ InstanceId: [],
2371
+ MaxResults: [],
2372
+ NextToken: [],
2373
+ SearchCriteria: (_) => se_ContactFlowModuleSearchCriteria(_, context),
2374
+ SearchFilter: (_) => _json(_),
2375
+ }));
2376
+ b.m("POST").h(headers).b(body);
2377
+ return b.build();
2378
+ };
2379
+ export const se_SearchContactFlowsCommand = async (input, context) => {
2380
+ const b = rb(input, context);
2381
+ const headers = {
2382
+ "content-type": "application/json",
2383
+ };
2384
+ b.bp("/search-contact-flows");
2385
+ let body;
2386
+ body = JSON.stringify(take(input, {
2387
+ InstanceId: [],
2388
+ MaxResults: [],
2389
+ NextToken: [],
2390
+ SearchCriteria: (_) => se_ContactFlowSearchCriteria(_, context),
2391
+ SearchFilter: (_) => _json(_),
2392
+ }));
2393
+ b.m("POST").h(headers).b(body);
2394
+ return b.build();
2395
+ };
2361
2396
  export const se_SearchContactsCommand = async (input, context) => {
2362
2397
  const b = rb(input, context);
2363
2398
  const headers = {
@@ -5947,6 +5982,38 @@ export const de_SearchAvailablePhoneNumbersCommand = async (output, context) =>
5947
5982
  Object.assign(contents, doc);
5948
5983
  return contents;
5949
5984
  };
5985
+ export const de_SearchContactFlowModulesCommand = async (output, context) => {
5986
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5987
+ return de_CommandError(output, context);
5988
+ }
5989
+ const contents = map({
5990
+ $metadata: deserializeMetadata(output),
5991
+ });
5992
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5993
+ const doc = take(data, {
5994
+ ApproximateTotalCount: __expectLong,
5995
+ ContactFlowModules: _json,
5996
+ NextToken: __expectString,
5997
+ });
5998
+ Object.assign(contents, doc);
5999
+ return contents;
6000
+ };
6001
+ export const de_SearchContactFlowsCommand = async (output, context) => {
6002
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6003
+ return de_CommandError(output, context);
6004
+ }
6005
+ const contents = map({
6006
+ $metadata: deserializeMetadata(output),
6007
+ });
6008
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6009
+ const doc = take(data, {
6010
+ ApproximateTotalCount: __expectLong,
6011
+ ContactFlows: _json,
6012
+ NextToken: __expectString,
6013
+ });
6014
+ Object.assign(contents, doc);
6015
+ return contents;
6016
+ };
5950
6017
  export const de_SearchContactsCommand = async (output, context) => {
5951
6018
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5952
6019
  return de_CommandError(output, context);
@@ -7287,6 +7354,37 @@ const de_UserNotFoundExceptionRes = async (parsedOutput, context) => {
7287
7354
  });
7288
7355
  return __decorateServiceException(exception, parsedOutput.body);
7289
7356
  };
7357
+ const se_ContactFlowModuleSearchConditionList = (input, context) => {
7358
+ return input
7359
+ .filter((e) => e != null)
7360
+ .map((entry) => {
7361
+ return se_ContactFlowModuleSearchCriteria(entry, context);
7362
+ });
7363
+ };
7364
+ const se_ContactFlowModuleSearchCriteria = (input, context) => {
7365
+ return take(input, {
7366
+ AndConditions: (_) => se_ContactFlowModuleSearchConditionList(_, context),
7367
+ OrConditions: (_) => se_ContactFlowModuleSearchConditionList(_, context),
7368
+ StringCondition: _json,
7369
+ });
7370
+ };
7371
+ const se_ContactFlowSearchConditionList = (input, context) => {
7372
+ return input
7373
+ .filter((e) => e != null)
7374
+ .map((entry) => {
7375
+ return se_ContactFlowSearchCriteria(entry, context);
7376
+ });
7377
+ };
7378
+ const se_ContactFlowSearchCriteria = (input, context) => {
7379
+ return take(input, {
7380
+ AndConditions: (_) => se_ContactFlowSearchConditionList(_, context),
7381
+ OrConditions: (_) => se_ContactFlowSearchConditionList(_, context),
7382
+ StateCondition: [],
7383
+ StatusCondition: [],
7384
+ StringCondition: _json,
7385
+ TypeCondition: [],
7386
+ });
7387
+ };
7290
7388
  const se_CreateCaseActionDefinition = (input, context) => {
7291
7389
  return take(input, {
7292
7390
  Fields: (_) => se_FieldValues(_, context),
@@ -171,6 +171,8 @@ import { ReplicateInstanceCommandInput, ReplicateInstanceCommandOutput } from ".
171
171
  import { ResumeContactCommandInput, ResumeContactCommandOutput } from "./commands/ResumeContactCommand";
172
172
  import { ResumeContactRecordingCommandInput, ResumeContactRecordingCommandOutput } from "./commands/ResumeContactRecordingCommand";
173
173
  import { SearchAvailablePhoneNumbersCommandInput, SearchAvailablePhoneNumbersCommandOutput } from "./commands/SearchAvailablePhoneNumbersCommand";
174
+ import { SearchContactFlowModulesCommandInput, SearchContactFlowModulesCommandOutput } from "./commands/SearchContactFlowModulesCommand";
175
+ import { SearchContactFlowsCommandInput, SearchContactFlowsCommandOutput } from "./commands/SearchContactFlowsCommand";
174
176
  import { SearchContactsCommandInput, SearchContactsCommandOutput } from "./commands/SearchContactsCommand";
175
177
  import { SearchHoursOfOperationsCommandInput, SearchHoursOfOperationsCommandOutput } from "./commands/SearchHoursOfOperationsCommand";
176
178
  import { SearchPredefinedAttributesCommandInput, SearchPredefinedAttributesCommandOutput } from "./commands/SearchPredefinedAttributesCommand";
@@ -1284,6 +1286,18 @@ export interface Connect {
1284
1286
  searchAvailablePhoneNumbers(args: SearchAvailablePhoneNumbersCommandInput, options?: __HttpHandlerOptions): Promise<SearchAvailablePhoneNumbersCommandOutput>;
1285
1287
  searchAvailablePhoneNumbers(args: SearchAvailablePhoneNumbersCommandInput, cb: (err: any, data?: SearchAvailablePhoneNumbersCommandOutput) => void): void;
1286
1288
  searchAvailablePhoneNumbers(args: SearchAvailablePhoneNumbersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchAvailablePhoneNumbersCommandOutput) => void): void;
1289
+ /**
1290
+ * @see {@link SearchContactFlowModulesCommand}
1291
+ */
1292
+ searchContactFlowModules(args: SearchContactFlowModulesCommandInput, options?: __HttpHandlerOptions): Promise<SearchContactFlowModulesCommandOutput>;
1293
+ searchContactFlowModules(args: SearchContactFlowModulesCommandInput, cb: (err: any, data?: SearchContactFlowModulesCommandOutput) => void): void;
1294
+ searchContactFlowModules(args: SearchContactFlowModulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchContactFlowModulesCommandOutput) => void): void;
1295
+ /**
1296
+ * @see {@link SearchContactFlowsCommand}
1297
+ */
1298
+ searchContactFlows(args: SearchContactFlowsCommandInput, options?: __HttpHandlerOptions): Promise<SearchContactFlowsCommandOutput>;
1299
+ searchContactFlows(args: SearchContactFlowsCommandInput, cb: (err: any, data?: SearchContactFlowsCommandOutput) => void): void;
1300
+ searchContactFlows(args: SearchContactFlowsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchContactFlowsCommandOutput) => void): void;
1287
1301
  /**
1288
1302
  * @see {@link SearchContactsCommand}
1289
1303
  */