@aws-sdk/client-connect 3.692.0 → 3.695.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 +134 -3
  3. package/dist-es/Connect.js +4 -0
  4. package/dist-es/commands/CreateContactFlowVersionCommand.js +22 -0
  5. package/dist-es/commands/ListContactFlowVersionsCommand.js +22 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_0.js +1 -0
  8. package/dist-es/pagination/ListContactFlowVersionsPaginator.js +4 -0
  9. package/dist-es/pagination/index.js +1 -0
  10. package/dist-es/protocols/Aws_restJson1.js +92 -2
  11. package/dist-types/Connect.d.ts +14 -0
  12. package/dist-types/ConnectClient.d.ts +4 -2
  13. package/dist-types/commands/AssociateTrafficDistributionGroupUserCommand.d.ts +2 -2
  14. package/dist-types/commands/CreateContactFlowCommand.d.ts +1 -0
  15. package/dist-types/commands/CreateContactFlowVersionCommand.d.ts +103 -0
  16. package/dist-types/commands/CreateIntegrationAssociationCommand.d.ts +1 -1
  17. package/dist-types/commands/DescribeContactFlowCommand.d.ts +6 -0
  18. package/dist-types/commands/DisassociateTrafficDistributionGroupUserCommand.d.ts +2 -2
  19. package/dist-types/commands/ListContactFlowVersionsCommand.d.ts +100 -0
  20. package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +2 -2
  21. package/dist-types/commands/ListSecurityProfilePermissionsCommand.d.ts +2 -1
  22. package/dist-types/commands/ListSecurityProfilesCommand.d.ts +1 -1
  23. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -2
  24. package/dist-types/commands/SearchContactFlowsCommand.d.ts +6 -0
  25. package/dist-types/commands/StartScreenSharingCommand.d.ts +2 -1
  26. package/dist-types/commands/index.d.ts +2 -0
  27. package/dist-types/models/models_0.d.ts +68 -38
  28. package/dist-types/models/models_1.d.ts +192 -146
  29. package/dist-types/models/models_2.d.ts +107 -2
  30. package/dist-types/pagination/ListContactFlowVersionsPaginator.d.ts +7 -0
  31. package/dist-types/pagination/index.d.ts +1 -0
  32. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  33. package/dist-types/ts3.4/Connect.d.ts +34 -0
  34. package/dist-types/ts3.4/ConnectClient.d.ts +12 -0
  35. package/dist-types/ts3.4/commands/CreateContactFlowVersionCommand.d.ts +51 -0
  36. package/dist-types/ts3.4/commands/ListContactFlowVersionsCommand.d.ts +51 -0
  37. package/dist-types/ts3.4/commands/ListSecurityProfilePermissionsCommand.d.ts +2 -4
  38. package/dist-types/ts3.4/commands/ListSecurityProfilesCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +4 -2
  40. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  41. package/dist-types/ts3.4/models/models_0.d.ts +14 -7
  42. package/dist-types/ts3.4/models/models_1.d.ts +29 -26
  43. package/dist-types/ts3.4/models/models_2.d.ts +26 -1
  44. package/dist-types/ts3.4/pagination/ListContactFlowVersionsPaginator.d.ts +11 -0
  45. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  47. package/package.json +13 -13
package/README.md CHANGED
@@ -425,6 +425,14 @@ CreateContactFlowModule
425
425
 
426
426
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/CreateContactFlowModuleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/CreateContactFlowModuleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/CreateContactFlowModuleCommandOutput/)
427
427
 
428
+ </details>
429
+ <details>
430
+ <summary>
431
+ CreateContactFlowVersion
432
+ </summary>
433
+
434
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/CreateContactFlowVersionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/CreateContactFlowVersionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/CreateContactFlowVersionCommandOutput/)
435
+
428
436
  </details>
429
437
  <details>
430
438
  <summary>
@@ -1257,6 +1265,14 @@ ListContactFlows
1257
1265
 
1258
1266
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/ListContactFlowsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/ListContactFlowsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/ListContactFlowsCommandOutput/)
1259
1267
 
1268
+ </details>
1269
+ <details>
1270
+ <summary>
1271
+ ListContactFlowVersions
1272
+ </summary>
1273
+
1274
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/connect/command/ListContactFlowVersionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/ListContactFlowVersionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-connect/Interface/ListContactFlowVersionsCommandOutput/)
1275
+
1260
1276
  </details>
1261
1277
  <details>
1262
1278
  <summary>
package/dist-cjs/index.js CHANGED
@@ -75,6 +75,7 @@ __export(src_exports, {
75
75
  CreateAgentStatusCommand: () => CreateAgentStatusCommand,
76
76
  CreateContactFlowCommand: () => CreateContactFlowCommand,
77
77
  CreateContactFlowModuleCommand: () => CreateContactFlowModuleCommand,
78
+ CreateContactFlowVersionCommand: () => CreateContactFlowVersionCommand,
78
79
  CreateEvaluationFormCommand: () => CreateEvaluationFormCommand,
79
80
  CreateHoursOfOperationCommand: () => CreateHoursOfOperationCommand,
80
81
  CreateInstanceCommand: () => CreateInstanceCommand,
@@ -233,6 +234,7 @@ __export(src_exports, {
233
234
  ListBotsCommand: () => ListBotsCommand,
234
235
  ListContactEvaluationsCommand: () => ListContactEvaluationsCommand,
235
236
  ListContactFlowModulesCommand: () => ListContactFlowModulesCommand,
237
+ ListContactFlowVersionsCommand: () => ListContactFlowVersionsCommand,
236
238
  ListContactFlowsCommand: () => ListContactFlowsCommand,
237
239
  ListContactReferencesCommand: () => ListContactReferencesCommand,
238
240
  ListDefaultVocabulariesCommand: () => ListDefaultVocabulariesCommand,
@@ -476,6 +478,7 @@ __export(src_exports, {
476
478
  paginateListBots: () => paginateListBots,
477
479
  paginateListContactEvaluations: () => paginateListContactEvaluations,
478
480
  paginateListContactFlowModules: () => paginateListContactFlowModules,
481
+ paginateListContactFlowVersions: () => paginateListContactFlowVersions,
479
482
  paginateListContactFlows: () => paginateListContactFlows,
480
483
  paginateListContactReferences: () => paginateListContactReferences,
481
484
  paginateListDefaultVocabularies: () => paginateListDefaultVocabularies,
@@ -1205,6 +1208,7 @@ var IntegrationType = {
1205
1208
  EVENT: "EVENT",
1206
1209
  FILE_SCANNER: "FILE_SCANNER",
1207
1210
  PINPOINT_APP: "PINPOINT_APP",
1211
+ Q_MESSAGE_TEMPLATES: "Q_MESSAGE_TEMPLATES",
1208
1212
  VOICE_ID: "VOICE_ID",
1209
1213
  WISDOM_ASSISTANT: "WISDOM_ASSISTANT",
1210
1214
  WISDOM_KNOWLEDGE_BASE: "WISDOM_KNOWLEDGE_BASE",
@@ -2811,6 +2815,26 @@ var se_CreateContactFlowModuleCommand = /* @__PURE__ */ __name(async (input, con
2811
2815
  b.m("PUT").h(headers).b(body);
2812
2816
  return b.build();
2813
2817
  }, "se_CreateContactFlowModuleCommand");
2818
+ var se_CreateContactFlowVersionCommand = /* @__PURE__ */ __name(async (input, context) => {
2819
+ const b = (0, import_core.requestBuilder)(input, context);
2820
+ const headers = {
2821
+ "content-type": "application/json"
2822
+ };
2823
+ b.bp("/contact-flows/{InstanceId}/{ContactFlowId}/version");
2824
+ b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
2825
+ b.p("ContactFlowId", () => input.ContactFlowId, "{ContactFlowId}", false);
2826
+ let body;
2827
+ body = JSON.stringify(
2828
+ (0, import_smithy_client.take)(input, {
2829
+ Description: [],
2830
+ FlowContentSha256: [],
2831
+ LastModifiedRegion: [],
2832
+ LastModifiedTime: (_) => _.getTime() / 1e3
2833
+ })
2834
+ );
2835
+ b.m("PUT").h(headers).b(body);
2836
+ return b.build();
2837
+ }, "se_CreateContactFlowVersionCommand");
2814
2838
  var se_CreateEvaluationFormCommand = /* @__PURE__ */ __name(async (input, context) => {
2815
2839
  const b = (0, import_core.requestBuilder)(input, context);
2816
2840
  const headers = {
@@ -4226,6 +4250,20 @@ var se_ListContactFlowsCommand = /* @__PURE__ */ __name(async (input, context) =
4226
4250
  b.m("GET").h(headers).q(query).b(body);
4227
4251
  return b.build();
4228
4252
  }, "se_ListContactFlowsCommand");
4253
+ var se_ListContactFlowVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
4254
+ const b = (0, import_core.requestBuilder)(input, context);
4255
+ const headers = {};
4256
+ b.bp("/contact-flows/{InstanceId}/{ContactFlowId}/versions");
4257
+ b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
4258
+ b.p("ContactFlowId", () => input.ContactFlowId, "{ContactFlowId}", false);
4259
+ const query = (0, import_smithy_client.map)({
4260
+ [_nT]: [, input[_NT]],
4261
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
4262
+ });
4263
+ let body;
4264
+ b.m("GET").h(headers).q(query).b(body);
4265
+ return b.build();
4266
+ }, "se_ListContactFlowVersionsCommand");
4229
4267
  var se_ListContactReferencesCommand = /* @__PURE__ */ __name(async (input, context) => {
4230
4268
  const b = (0, import_core.requestBuilder)(input, context);
4231
4269
  const headers = {};
@@ -6722,7 +6760,8 @@ var de_CreateContactFlowCommand = /* @__PURE__ */ __name(async (output, context)
6722
6760
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
6723
6761
  const doc = (0, import_smithy_client.take)(data, {
6724
6762
  ContactFlowArn: import_smithy_client.expectString,
6725
- ContactFlowId: import_smithy_client.expectString
6763
+ ContactFlowId: import_smithy_client.expectString,
6764
+ FlowContentSha256: import_smithy_client.expectString
6726
6765
  });
6727
6766
  Object.assign(contents, doc);
6728
6767
  return contents;
@@ -6742,6 +6781,21 @@ var de_CreateContactFlowModuleCommand = /* @__PURE__ */ __name(async (output, co
6742
6781
  Object.assign(contents, doc);
6743
6782
  return contents;
6744
6783
  }, "de_CreateContactFlowModuleCommand");
6784
+ var de_CreateContactFlowVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
6785
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6786
+ return de_CommandError(output, context);
6787
+ }
6788
+ const contents = (0, import_smithy_client.map)({
6789
+ $metadata: deserializeMetadata(output)
6790
+ });
6791
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
6792
+ const doc = (0, import_smithy_client.take)(data, {
6793
+ ContactFlowArn: import_smithy_client.expectString,
6794
+ Version: import_smithy_client.expectLong
6795
+ });
6796
+ Object.assign(contents, doc);
6797
+ return contents;
6798
+ }, "de_CreateContactFlowVersionCommand");
6745
6799
  var de_CreateEvaluationFormCommand = /* @__PURE__ */ __name(async (output, context) => {
6746
6800
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6747
6801
  return de_CommandError(output, context);
@@ -7368,7 +7422,7 @@ var de_DescribeContactFlowCommand = /* @__PURE__ */ __name(async (output, contex
7368
7422
  });
7369
7423
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
7370
7424
  const doc = (0, import_smithy_client.take)(data, {
7371
- ContactFlow: import_smithy_client._json
7425
+ ContactFlow: (_) => de_ContactFlow(_, context)
7372
7426
  });
7373
7427
  Object.assign(contents, doc);
7374
7428
  return contents;
@@ -8123,6 +8177,21 @@ var de_ListContactFlowsCommand = /* @__PURE__ */ __name(async (output, context)
8123
8177
  Object.assign(contents, doc);
8124
8178
  return contents;
8125
8179
  }, "de_ListContactFlowsCommand");
8180
+ var de_ListContactFlowVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
8181
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8182
+ return de_CommandError(output, context);
8183
+ }
8184
+ const contents = (0, import_smithy_client.map)({
8185
+ $metadata: deserializeMetadata(output)
8186
+ });
8187
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
8188
+ const doc = (0, import_smithy_client.take)(data, {
8189
+ ContactFlowVersionSummaryList: import_smithy_client._json,
8190
+ NextToken: import_smithy_client.expectString
8191
+ });
8192
+ Object.assign(contents, doc);
8193
+ return contents;
8194
+ }, "de_ListContactFlowVersionsCommand");
8126
8195
  var de_ListContactReferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
8127
8196
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8128
8197
  return de_CommandError(output, context);
@@ -8826,7 +8895,7 @@ var de_SearchContactFlowsCommand = /* @__PURE__ */ __name(async (output, context
8826
8895
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
8827
8896
  const doc = (0, import_smithy_client.take)(data, {
8828
8897
  ApproximateTotalCount: import_smithy_client.expectLong,
8829
- ContactFlows: import_smithy_client._json,
8898
+ ContactFlows: (_) => de_ContactFlowSearchSummaryList(_, context),
8830
8899
  NextToken: import_smithy_client.expectString
8831
8900
  });
8832
8901
  Object.assign(contents, doc);
@@ -10730,6 +10799,31 @@ var de_Contact = /* @__PURE__ */ __name((output, context) => {
10730
10799
  WisdomInfo: import_smithy_client._json
10731
10800
  });
10732
10801
  }, "de_Contact");
10802
+ var de_ContactFlow = /* @__PURE__ */ __name((output, context) => {
10803
+ return (0, import_smithy_client.take)(output, {
10804
+ Arn: import_smithy_client.expectString,
10805
+ Content: import_smithy_client.expectString,
10806
+ Description: import_smithy_client.expectString,
10807
+ FlowContentSha256: import_smithy_client.expectString,
10808
+ Id: import_smithy_client.expectString,
10809
+ IsDefault: import_smithy_client.expectBoolean,
10810
+ LastModifiedRegion: import_smithy_client.expectString,
10811
+ LastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
10812
+ Name: import_smithy_client.expectString,
10813
+ State: import_smithy_client.expectString,
10814
+ Status: import_smithy_client.expectString,
10815
+ Tags: import_smithy_client._json,
10816
+ Type: import_smithy_client.expectString,
10817
+ Version: import_smithy_client.expectLong,
10818
+ VersionDescription: import_smithy_client.expectString
10819
+ });
10820
+ }, "de_ContactFlow");
10821
+ var de_ContactFlowSearchSummaryList = /* @__PURE__ */ __name((output, context) => {
10822
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
10823
+ return de_ContactFlow(entry, context);
10824
+ });
10825
+ return retVal;
10826
+ }, "de_ContactFlowSearchSummaryList");
10733
10827
  var de_Contacts = /* @__PURE__ */ __name((output, context) => {
10734
10828
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
10735
10829
  return de_ContactSearchSummary(entry, context);
@@ -12188,6 +12282,20 @@ var _CreateContactFlowModuleCommand = class _CreateContactFlowModuleCommand exte
12188
12282
  __name(_CreateContactFlowModuleCommand, "CreateContactFlowModuleCommand");
12189
12283
  var CreateContactFlowModuleCommand = _CreateContactFlowModuleCommand;
12190
12284
 
12285
+ // src/commands/CreateContactFlowVersionCommand.ts
12286
+
12287
+
12288
+
12289
+ var _CreateContactFlowVersionCommand = class _CreateContactFlowVersionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
12290
+ return [
12291
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
12292
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
12293
+ ];
12294
+ }).s("AmazonConnectService", "CreateContactFlowVersion", {}).n("ConnectClient", "CreateContactFlowVersionCommand").f(void 0, void 0).ser(se_CreateContactFlowVersionCommand).de(de_CreateContactFlowVersionCommand).build() {
12295
+ };
12296
+ __name(_CreateContactFlowVersionCommand, "CreateContactFlowVersionCommand");
12297
+ var CreateContactFlowVersionCommand = _CreateContactFlowVersionCommand;
12298
+
12191
12299
  // src/commands/CreateEvaluationFormCommand.ts
12192
12300
 
12193
12301
 
@@ -13644,6 +13752,20 @@ var _ListContactFlowsCommand = class _ListContactFlowsCommand extends import_smi
13644
13752
  __name(_ListContactFlowsCommand, "ListContactFlowsCommand");
13645
13753
  var ListContactFlowsCommand = _ListContactFlowsCommand;
13646
13754
 
13755
+ // src/commands/ListContactFlowVersionsCommand.ts
13756
+
13757
+
13758
+
13759
+ var _ListContactFlowVersionsCommand = class _ListContactFlowVersionsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
13760
+ return [
13761
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
13762
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
13763
+ ];
13764
+ }).s("AmazonConnectService", "ListContactFlowVersions", {}).n("ConnectClient", "ListContactFlowVersionsCommand").f(void 0, void 0).ser(se_ListContactFlowVersionsCommand).de(de_ListContactFlowVersionsCommand).build() {
13765
+ };
13766
+ __name(_ListContactFlowVersionsCommand, "ListContactFlowVersionsCommand");
13767
+ var ListContactFlowVersionsCommand = _ListContactFlowVersionsCommand;
13768
+
13647
13769
  // src/commands/ListContactReferencesCommand.ts
13648
13770
 
13649
13771
 
@@ -15463,6 +15585,7 @@ var commands = {
15463
15585
  CreateAgentStatusCommand,
15464
15586
  CreateContactFlowCommand,
15465
15587
  CreateContactFlowModuleCommand,
15588
+ CreateContactFlowVersionCommand,
15466
15589
  CreateEvaluationFormCommand,
15467
15590
  CreateHoursOfOperationCommand,
15468
15591
  CreateInstanceCommand,
@@ -15567,6 +15690,7 @@ var commands = {
15567
15690
  ListContactEvaluationsCommand,
15568
15691
  ListContactFlowModulesCommand,
15569
15692
  ListContactFlowsCommand,
15693
+ ListContactFlowVersionsCommand,
15570
15694
  ListContactReferencesCommand,
15571
15695
  ListDefaultVocabulariesCommand,
15572
15696
  ListEvaluationFormsCommand,
@@ -15742,6 +15866,10 @@ var paginateListContactEvaluations = (0, import_core.createPaginator)(ConnectCli
15742
15866
 
15743
15867
  var paginateListContactFlowModules = (0, import_core.createPaginator)(ConnectClient, ListContactFlowModulesCommand, "NextToken", "NextToken", "MaxResults");
15744
15868
 
15869
+ // src/pagination/ListContactFlowVersionsPaginator.ts
15870
+
15871
+ var paginateListContactFlowVersions = (0, import_core.createPaginator)(ConnectClient, ListContactFlowVersionsCommand, "NextToken", "NextToken", "MaxResults");
15872
+
15745
15873
  // src/pagination/ListContactFlowsPaginator.ts
15746
15874
 
15747
15875
  var paginateListContactFlows = (0, import_core.createPaginator)(ConnectClient, ListContactFlowsCommand, "NextToken", "NextToken", "MaxResults");
@@ -15986,6 +16114,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
15986
16114
  CreateAgentStatusCommand,
15987
16115
  CreateContactFlowCommand,
15988
16116
  CreateContactFlowModuleCommand,
16117
+ CreateContactFlowVersionCommand,
15989
16118
  CreateEvaluationFormCommand,
15990
16119
  CreateHoursOfOperationCommand,
15991
16120
  CreateInstanceCommand,
@@ -16089,6 +16218,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16089
16218
  ListBotsCommand,
16090
16219
  ListContactEvaluationsCommand,
16091
16220
  ListContactFlowModulesCommand,
16221
+ ListContactFlowVersionsCommand,
16092
16222
  ListContactFlowsCommand,
16093
16223
  ListContactReferencesCommand,
16094
16224
  ListDefaultVocabulariesCommand,
@@ -16228,6 +16358,7 @@ var paginateSearchVocabularies = (0, import_core.createPaginator)(ConnectClient,
16228
16358
  paginateListBots,
16229
16359
  paginateListContactEvaluations,
16230
16360
  paginateListContactFlowModules,
16361
+ paginateListContactFlowVersions,
16231
16362
  paginateListContactFlows,
16232
16363
  paginateListContactReferences,
16233
16364
  paginateListDefaultVocabularies,
@@ -24,6 +24,7 @@ import { CompleteAttachedFileUploadCommand, } from "./commands/CompleteAttachedF
24
24
  import { CreateAgentStatusCommand, } from "./commands/CreateAgentStatusCommand";
25
25
  import { CreateContactFlowCommand, } from "./commands/CreateContactFlowCommand";
26
26
  import { CreateContactFlowModuleCommand, } from "./commands/CreateContactFlowModuleCommand";
27
+ import { CreateContactFlowVersionCommand, } from "./commands/CreateContactFlowVersionCommand";
27
28
  import { CreateEvaluationFormCommand, } from "./commands/CreateEvaluationFormCommand";
28
29
  import { CreateHoursOfOperationCommand, } from "./commands/CreateHoursOfOperationCommand";
29
30
  import { CreateInstanceCommand, } from "./commands/CreateInstanceCommand";
@@ -128,6 +129,7 @@ import { ListBotsCommand } from "./commands/ListBotsCommand";
128
129
  import { ListContactEvaluationsCommand, } from "./commands/ListContactEvaluationsCommand";
129
130
  import { ListContactFlowModulesCommand, } from "./commands/ListContactFlowModulesCommand";
130
131
  import { ListContactFlowsCommand, } from "./commands/ListContactFlowsCommand";
132
+ import { ListContactFlowVersionsCommand, } from "./commands/ListContactFlowVersionsCommand";
131
133
  import { ListContactReferencesCommand, } from "./commands/ListContactReferencesCommand";
132
134
  import { ListDefaultVocabulariesCommand, } from "./commands/ListDefaultVocabulariesCommand";
133
135
  import { ListEvaluationFormsCommand, } from "./commands/ListEvaluationFormsCommand";
@@ -283,6 +285,7 @@ const commands = {
283
285
  CreateAgentStatusCommand,
284
286
  CreateContactFlowCommand,
285
287
  CreateContactFlowModuleCommand,
288
+ CreateContactFlowVersionCommand,
286
289
  CreateEvaluationFormCommand,
287
290
  CreateHoursOfOperationCommand,
288
291
  CreateInstanceCommand,
@@ -387,6 +390,7 @@ const commands = {
387
390
  ListContactEvaluationsCommand,
388
391
  ListContactFlowModulesCommand,
389
392
  ListContactFlowsCommand,
393
+ ListContactFlowVersionsCommand,
390
394
  ListContactReferencesCommand,
391
395
  ListDefaultVocabulariesCommand,
392
396
  ListEvaluationFormsCommand,
@@ -0,0 +1,22 @@
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_CreateContactFlowVersionCommand, se_CreateContactFlowVersionCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateContactFlowVersionCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonConnectService", "CreateContactFlowVersion", {})
17
+ .n("ConnectClient", "CreateContactFlowVersionCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateContactFlowVersionCommand)
20
+ .de(de_CreateContactFlowVersionCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
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_ListContactFlowVersionsCommand, se_ListContactFlowVersionsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListContactFlowVersionsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonConnectService", "ListContactFlowVersions", {})
17
+ .n("ConnectClient", "ListContactFlowVersionsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListContactFlowVersionsCommand)
20
+ .de(de_ListContactFlowVersionsCommand)
21
+ .build() {
22
+ }
@@ -23,6 +23,7 @@ export * from "./CompleteAttachedFileUploadCommand";
23
23
  export * from "./CreateAgentStatusCommand";
24
24
  export * from "./CreateContactFlowCommand";
25
25
  export * from "./CreateContactFlowModuleCommand";
26
+ export * from "./CreateContactFlowVersionCommand";
26
27
  export * from "./CreateEvaluationFormCommand";
27
28
  export * from "./CreateHoursOfOperationCommand";
28
29
  export * from "./CreateInstanceCommand";
@@ -126,6 +127,7 @@ export * from "./ListAuthenticationProfilesCommand";
126
127
  export * from "./ListBotsCommand";
127
128
  export * from "./ListContactEvaluationsCommand";
128
129
  export * from "./ListContactFlowModulesCommand";
130
+ export * from "./ListContactFlowVersionsCommand";
129
131
  export * from "./ListContactFlowsCommand";
130
132
  export * from "./ListContactReferencesCommand";
131
133
  export * from "./ListDefaultVocabulariesCommand";
@@ -441,6 +441,7 @@ export const IntegrationType = {
441
441
  EVENT: "EVENT",
442
442
  FILE_SCANNER: "FILE_SCANNER",
443
443
  PINPOINT_APP: "PINPOINT_APP",
444
+ Q_MESSAGE_TEMPLATES: "Q_MESSAGE_TEMPLATES",
444
445
  VOICE_ID: "VOICE_ID",
445
446
  WISDOM_ASSISTANT: "WISDOM_ASSISTANT",
446
447
  WISDOM_KNOWLEDGE_BASE: "WISDOM_KNOWLEDGE_BASE",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListContactFlowVersionsCommand, } from "../commands/ListContactFlowVersionsCommand";
3
+ import { ConnectClient } from "../ConnectClient";
4
+ export const paginateListContactFlowVersions = createPaginator(ConnectClient, ListContactFlowVersionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -9,6 +9,7 @@ export * from "./ListAuthenticationProfilesPaginator";
9
9
  export * from "./ListBotsPaginator";
10
10
  export * from "./ListContactEvaluationsPaginator";
11
11
  export * from "./ListContactFlowModulesPaginator";
12
+ export * from "./ListContactFlowVersionsPaginator";
12
13
  export * from "./ListContactFlowsPaginator";
13
14
  export * from "./ListContactReferencesPaginator";
14
15
  export * from "./ListDefaultVocabulariesPaginator";
@@ -391,6 +391,24 @@ export const se_CreateContactFlowModuleCommand = async (input, context) => {
391
391
  b.m("PUT").h(headers).b(body);
392
392
  return b.build();
393
393
  };
394
+ export const se_CreateContactFlowVersionCommand = async (input, context) => {
395
+ const b = rb(input, context);
396
+ const headers = {
397
+ "content-type": "application/json",
398
+ };
399
+ b.bp("/contact-flows/{InstanceId}/{ContactFlowId}/version");
400
+ b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
401
+ b.p("ContactFlowId", () => input.ContactFlowId, "{ContactFlowId}", false);
402
+ let body;
403
+ body = JSON.stringify(take(input, {
404
+ Description: [],
405
+ FlowContentSha256: [],
406
+ LastModifiedRegion: [],
407
+ LastModifiedTime: (_) => _.getTime() / 1000,
408
+ }));
409
+ b.m("PUT").h(headers).b(body);
410
+ return b.build();
411
+ };
394
412
  export const se_CreateEvaluationFormCommand = async (input, context) => {
395
413
  const b = rb(input, context);
396
414
  const headers = {
@@ -1740,6 +1758,20 @@ export const se_ListContactFlowsCommand = async (input, context) => {
1740
1758
  b.m("GET").h(headers).q(query).b(body);
1741
1759
  return b.build();
1742
1760
  };
1761
+ export const se_ListContactFlowVersionsCommand = async (input, context) => {
1762
+ const b = rb(input, context);
1763
+ const headers = {};
1764
+ b.bp("/contact-flows/{InstanceId}/{ContactFlowId}/versions");
1765
+ b.p("InstanceId", () => input.InstanceId, "{InstanceId}", false);
1766
+ b.p("ContactFlowId", () => input.ContactFlowId, "{ContactFlowId}", false);
1767
+ const query = map({
1768
+ [_nT]: [, input[_NT]],
1769
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1770
+ });
1771
+ let body;
1772
+ b.m("GET").h(headers).q(query).b(body);
1773
+ return b.build();
1774
+ };
1743
1775
  export const se_ListContactReferencesCommand = async (input, context) => {
1744
1776
  const b = rb(input, context);
1745
1777
  const headers = {};
@@ -4055,6 +4087,7 @@ export const de_CreateContactFlowCommand = async (output, context) => {
4055
4087
  const doc = take(data, {
4056
4088
  ContactFlowArn: __expectString,
4057
4089
  ContactFlowId: __expectString,
4090
+ FlowContentSha256: __expectString,
4058
4091
  });
4059
4092
  Object.assign(contents, doc);
4060
4093
  return contents;
@@ -4074,6 +4107,21 @@ export const de_CreateContactFlowModuleCommand = async (output, context) => {
4074
4107
  Object.assign(contents, doc);
4075
4108
  return contents;
4076
4109
  };
4110
+ export const de_CreateContactFlowVersionCommand = async (output, context) => {
4111
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4112
+ return de_CommandError(output, context);
4113
+ }
4114
+ const contents = map({
4115
+ $metadata: deserializeMetadata(output),
4116
+ });
4117
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4118
+ const doc = take(data, {
4119
+ ContactFlowArn: __expectString,
4120
+ Version: __expectLong,
4121
+ });
4122
+ Object.assign(contents, doc);
4123
+ return contents;
4124
+ };
4077
4125
  export const de_CreateEvaluationFormCommand = async (output, context) => {
4078
4126
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4079
4127
  return de_CommandError(output, context);
@@ -4700,7 +4748,7 @@ export const de_DescribeContactFlowCommand = async (output, context) => {
4700
4748
  });
4701
4749
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4702
4750
  const doc = take(data, {
4703
- ContactFlow: _json,
4751
+ ContactFlow: (_) => de_ContactFlow(_, context),
4704
4752
  });
4705
4753
  Object.assign(contents, doc);
4706
4754
  return contents;
@@ -5455,6 +5503,21 @@ export const de_ListContactFlowsCommand = async (output, context) => {
5455
5503
  Object.assign(contents, doc);
5456
5504
  return contents;
5457
5505
  };
5506
+ export const de_ListContactFlowVersionsCommand = async (output, context) => {
5507
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5508
+ return de_CommandError(output, context);
5509
+ }
5510
+ const contents = map({
5511
+ $metadata: deserializeMetadata(output),
5512
+ });
5513
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5514
+ const doc = take(data, {
5515
+ ContactFlowVersionSummaryList: _json,
5516
+ NextToken: __expectString,
5517
+ });
5518
+ Object.assign(contents, doc);
5519
+ return contents;
5520
+ };
5458
5521
  export const de_ListContactReferencesCommand = async (output, context) => {
5459
5522
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5460
5523
  return de_CommandError(output, context);
@@ -6158,7 +6221,7 @@ export const de_SearchContactFlowsCommand = async (output, context) => {
6158
6221
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6159
6222
  const doc = take(data, {
6160
6223
  ApproximateTotalCount: __expectLong,
6161
- ContactFlows: _json,
6224
+ ContactFlows: (_) => de_ContactFlowSearchSummaryList(_, context),
6162
6225
  NextToken: __expectString,
6163
6226
  });
6164
6227
  Object.assign(contents, doc);
@@ -8112,6 +8175,33 @@ const de_Contact = (output, context) => {
8112
8175
  WisdomInfo: _json,
8113
8176
  });
8114
8177
  };
8178
+ const de_ContactFlow = (output, context) => {
8179
+ return take(output, {
8180
+ Arn: __expectString,
8181
+ Content: __expectString,
8182
+ Description: __expectString,
8183
+ FlowContentSha256: __expectString,
8184
+ Id: __expectString,
8185
+ IsDefault: __expectBoolean,
8186
+ LastModifiedRegion: __expectString,
8187
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
8188
+ Name: __expectString,
8189
+ State: __expectString,
8190
+ Status: __expectString,
8191
+ Tags: _json,
8192
+ Type: __expectString,
8193
+ Version: __expectLong,
8194
+ VersionDescription: __expectString,
8195
+ });
8196
+ };
8197
+ const de_ContactFlowSearchSummaryList = (output, context) => {
8198
+ const retVal = (output || [])
8199
+ .filter((e) => e != null)
8200
+ .map((entry) => {
8201
+ return de_ContactFlow(entry, context);
8202
+ });
8203
+ return retVal;
8204
+ };
8115
8205
  const de_Contacts = (output, context) => {
8116
8206
  const retVal = (output || [])
8117
8207
  .filter((e) => e != null)
@@ -24,6 +24,7 @@ import { CompleteAttachedFileUploadCommandInput, CompleteAttachedFileUploadComma
24
24
  import { CreateAgentStatusCommandInput, CreateAgentStatusCommandOutput } from "./commands/CreateAgentStatusCommand";
25
25
  import { CreateContactFlowCommandInput, CreateContactFlowCommandOutput } from "./commands/CreateContactFlowCommand";
26
26
  import { CreateContactFlowModuleCommandInput, CreateContactFlowModuleCommandOutput } from "./commands/CreateContactFlowModuleCommand";
27
+ import { CreateContactFlowVersionCommandInput, CreateContactFlowVersionCommandOutput } from "./commands/CreateContactFlowVersionCommand";
27
28
  import { CreateEvaluationFormCommandInput, CreateEvaluationFormCommandOutput } from "./commands/CreateEvaluationFormCommand";
28
29
  import { CreateHoursOfOperationCommandInput, CreateHoursOfOperationCommandOutput } from "./commands/CreateHoursOfOperationCommand";
29
30
  import { CreateInstanceCommandInput, CreateInstanceCommandOutput } from "./commands/CreateInstanceCommand";
@@ -128,6 +129,7 @@ import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBots
128
129
  import { ListContactEvaluationsCommandInput, ListContactEvaluationsCommandOutput } from "./commands/ListContactEvaluationsCommand";
129
130
  import { ListContactFlowModulesCommandInput, ListContactFlowModulesCommandOutput } from "./commands/ListContactFlowModulesCommand";
130
131
  import { ListContactFlowsCommandInput, ListContactFlowsCommandOutput } from "./commands/ListContactFlowsCommand";
132
+ import { ListContactFlowVersionsCommandInput, ListContactFlowVersionsCommandOutput } from "./commands/ListContactFlowVersionsCommand";
131
133
  import { ListContactReferencesCommandInput, ListContactReferencesCommandOutput } from "./commands/ListContactReferencesCommand";
132
134
  import { ListDefaultVocabulariesCommandInput, ListDefaultVocabulariesCommandOutput } from "./commands/ListDefaultVocabulariesCommand";
133
135
  import { ListEvaluationFormsCommandInput, ListEvaluationFormsCommandOutput } from "./commands/ListEvaluationFormsCommand";
@@ -408,6 +410,12 @@ export interface Connect {
408
410
  createContactFlowModule(args: CreateContactFlowModuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateContactFlowModuleCommandOutput>;
409
411
  createContactFlowModule(args: CreateContactFlowModuleCommandInput, cb: (err: any, data?: CreateContactFlowModuleCommandOutput) => void): void;
410
412
  createContactFlowModule(args: CreateContactFlowModuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateContactFlowModuleCommandOutput) => void): void;
413
+ /**
414
+ * @see {@link CreateContactFlowVersionCommand}
415
+ */
416
+ createContactFlowVersion(args: CreateContactFlowVersionCommandInput, options?: __HttpHandlerOptions): Promise<CreateContactFlowVersionCommandOutput>;
417
+ createContactFlowVersion(args: CreateContactFlowVersionCommandInput, cb: (err: any, data?: CreateContactFlowVersionCommandOutput) => void): void;
418
+ createContactFlowVersion(args: CreateContactFlowVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateContactFlowVersionCommandOutput) => void): void;
411
419
  /**
412
420
  * @see {@link CreateEvaluationFormCommand}
413
421
  */
@@ -1032,6 +1040,12 @@ export interface Connect {
1032
1040
  listContactFlows(args: ListContactFlowsCommandInput, options?: __HttpHandlerOptions): Promise<ListContactFlowsCommandOutput>;
1033
1041
  listContactFlows(args: ListContactFlowsCommandInput, cb: (err: any, data?: ListContactFlowsCommandOutput) => void): void;
1034
1042
  listContactFlows(args: ListContactFlowsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListContactFlowsCommandOutput) => void): void;
1043
+ /**
1044
+ * @see {@link ListContactFlowVersionsCommand}
1045
+ */
1046
+ listContactFlowVersions(args: ListContactFlowVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListContactFlowVersionsCommandOutput>;
1047
+ listContactFlowVersions(args: ListContactFlowVersionsCommandInput, cb: (err: any, data?: ListContactFlowVersionsCommandOutput) => void): void;
1048
+ listContactFlowVersions(args: ListContactFlowVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListContactFlowVersionsCommandOutput) => void): void;
1035
1049
  /**
1036
1050
  * @see {@link ListContactReferencesCommand}
1037
1051
  */