@aws-sdk/client-connect 3.42.0 → 3.47.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 (137) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +2 -4
  3. package/dist-cjs/Connect.js +120 -0
  4. package/dist-cjs/commands/CreateContactFlowModuleCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteContactFlowCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteContactFlowModuleCommand.js +36 -0
  7. package/dist-cjs/commands/DescribeContactFlowModuleCommand.js +36 -0
  8. package/dist-cjs/commands/ListContactFlowModulesCommand.js +36 -0
  9. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  10. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  11. package/dist-cjs/commands/UpdateAgentStatusCommand.js +2 -2
  12. package/dist-cjs/commands/UpdateContactAttributesCommand.js +3 -3
  13. package/dist-cjs/commands/UpdateContactCommand.js +3 -3
  14. package/dist-cjs/commands/UpdateContactFlowContentCommand.js +2 -2
  15. package/dist-cjs/commands/UpdateContactFlowMetadataCommand.js +36 -0
  16. package/dist-cjs/commands/UpdateContactFlowModuleContentCommand.js +36 -0
  17. package/dist-cjs/commands/UpdateContactFlowModuleMetadataCommand.js +36 -0
  18. package/dist-cjs/commands/UpdateContactFlowNameCommand.js +2 -2
  19. package/dist-cjs/commands/UpdateContactScheduleCommand.js +3 -3
  20. package/dist-cjs/commands/UpdateHoursOfOperationCommand.js +2 -2
  21. package/dist-cjs/commands/UpdateInstanceAttributeCommand.js +2 -2
  22. package/dist-cjs/commands/UpdateInstanceStorageConfigCommand.js +2 -2
  23. package/dist-cjs/commands/UpdateQueueHoursOfOperationCommand.js +2 -2
  24. package/dist-cjs/commands/UpdateQueueMaxContactsCommand.js +2 -2
  25. package/dist-cjs/commands/index.js +8 -0
  26. package/dist-cjs/endpoints.js +1 -0
  27. package/dist-cjs/models/models_0.js +84 -201
  28. package/dist-cjs/models/models_1.js +127 -1
  29. package/dist-cjs/pagination/ListContactFlowModulesPaginator.js +35 -0
  30. package/dist-cjs/pagination/index.js +1 -0
  31. package/dist-cjs/protocols/Aws_restJson1.js +1271 -167
  32. package/dist-cjs/runtimeConfig.browser.js +7 -2
  33. package/dist-cjs/runtimeConfig.js +9 -3
  34. package/dist-es/Connect.js +120 -0
  35. package/dist-es/commands/CreateContactFlowModuleCommand.js +39 -0
  36. package/dist-es/commands/DeleteContactFlowCommand.js +39 -0
  37. package/dist-es/commands/DeleteContactFlowModuleCommand.js +39 -0
  38. package/dist-es/commands/DescribeContactFlowModuleCommand.js +39 -0
  39. package/dist-es/commands/ListContactFlowModulesCommand.js +39 -0
  40. package/dist-es/commands/TagResourceCommand.js +1 -1
  41. package/dist-es/commands/UntagResourceCommand.js +1 -1
  42. package/dist-es/commands/UpdateAgentStatusCommand.js +1 -1
  43. package/dist-es/commands/UpdateContactAttributesCommand.js +1 -1
  44. package/dist-es/commands/UpdateContactCommand.js +1 -1
  45. package/dist-es/commands/UpdateContactFlowContentCommand.js +1 -1
  46. package/dist-es/commands/UpdateContactFlowMetadataCommand.js +39 -0
  47. package/dist-es/commands/UpdateContactFlowModuleContentCommand.js +39 -0
  48. package/dist-es/commands/UpdateContactFlowModuleMetadataCommand.js +39 -0
  49. package/dist-es/commands/UpdateContactFlowNameCommand.js +1 -1
  50. package/dist-es/commands/UpdateContactScheduleCommand.js +1 -1
  51. package/dist-es/commands/UpdateHoursOfOperationCommand.js +1 -1
  52. package/dist-es/commands/UpdateInstanceAttributeCommand.js +1 -1
  53. package/dist-es/commands/UpdateInstanceStorageConfigCommand.js +1 -1
  54. package/dist-es/commands/UpdateQueueHoursOfOperationCommand.js +1 -1
  55. package/dist-es/commands/UpdateQueueMaxContactsCommand.js +1 -1
  56. package/dist-es/commands/index.js +8 -0
  57. package/dist-es/endpoints.js +1 -0
  58. package/dist-es/models/models_0.js +59 -132
  59. package/dist-es/models/models_1.js +84 -0
  60. package/dist-es/pagination/ListContactFlowModulesPaginator.js +74 -0
  61. package/dist-es/pagination/index.js +1 -0
  62. package/dist-es/protocols/Aws_restJson1.js +1423 -192
  63. package/dist-es/runtimeConfig.browser.js +12 -3
  64. package/dist-es/runtimeConfig.js +13 -6
  65. package/dist-types/Connect.d.ts +78 -21
  66. package/dist-types/ConnectClient.d.ts +18 -8
  67. package/dist-types/commands/CreateContactFlowModuleCommand.d.ts +35 -0
  68. package/dist-types/commands/CreateHoursOfOperationCommand.d.ts +2 -1
  69. package/dist-types/commands/DeleteContactFlowCommand.d.ts +35 -0
  70. package/dist-types/commands/DeleteContactFlowModuleCommand.d.ts +35 -0
  71. package/dist-types/commands/DeleteHoursOfOperationCommand.d.ts +2 -1
  72. package/dist-types/commands/DescribeContactCommand.d.ts +2 -1
  73. package/dist-types/commands/DescribeContactFlowModuleCommand.d.ts +35 -0
  74. package/dist-types/commands/DescribeHoursOfOperationCommand.d.ts +2 -1
  75. package/dist-types/commands/ListBotsCommand.d.ts +2 -2
  76. package/dist-types/commands/ListContactFlowModulesCommand.d.ts +35 -0
  77. package/dist-types/commands/StartContactStreamingCommand.d.ts +1 -1
  78. package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +2 -3
  79. package/dist-types/commands/StartTaskContactCommand.d.ts +1 -2
  80. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  81. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  82. package/dist-types/commands/UpdateAgentStatusCommand.d.ts +1 -1
  83. package/dist-types/commands/UpdateContactAttributesCommand.d.ts +1 -1
  84. package/dist-types/commands/UpdateContactCommand.d.ts +2 -2
  85. package/dist-types/commands/UpdateContactFlowContentCommand.d.ts +1 -1
  86. package/dist-types/commands/UpdateContactFlowMetadataCommand.d.ts +35 -0
  87. package/dist-types/commands/UpdateContactFlowModuleContentCommand.d.ts +35 -0
  88. package/dist-types/commands/UpdateContactFlowModuleMetadataCommand.d.ts +35 -0
  89. package/dist-types/commands/UpdateContactFlowNameCommand.d.ts +1 -1
  90. package/dist-types/commands/UpdateContactScheduleCommand.d.ts +1 -1
  91. package/dist-types/commands/UpdateHoursOfOperationCommand.d.ts +3 -2
  92. package/dist-types/commands/UpdateInstanceAttributeCommand.d.ts +1 -1
  93. package/dist-types/commands/UpdateInstanceStorageConfigCommand.d.ts +1 -1
  94. package/dist-types/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  95. package/dist-types/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  96. package/dist-types/commands/index.d.ts +8 -0
  97. package/dist-types/models/models_0.d.ts +291 -461
  98. package/dist-types/models/models_1.d.ts +429 -1
  99. package/dist-types/pagination/ListContactFlowModulesPaginator.d.ts +4 -0
  100. package/dist-types/pagination/index.d.ts +1 -0
  101. package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
  102. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  103. package/dist-types/runtimeConfig.d.ts +4 -3
  104. package/dist-types/runtimeConfig.native.d.ts +1 -0
  105. package/dist-types/ts3.4/Connect.d.ts +40 -0
  106. package/dist-types/ts3.4/ConnectClient.d.ts +13 -3
  107. package/dist-types/ts3.4/commands/CreateContactFlowModuleCommand.d.ts +17 -0
  108. package/dist-types/ts3.4/commands/DeleteContactFlowCommand.d.ts +17 -0
  109. package/dist-types/ts3.4/commands/DeleteContactFlowModuleCommand.d.ts +17 -0
  110. package/dist-types/ts3.4/commands/DescribeContactFlowModuleCommand.d.ts +17 -0
  111. package/dist-types/ts3.4/commands/ListContactFlowModulesCommand.d.ts +17 -0
  112. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  114. package/dist-types/ts3.4/commands/UpdateAgentStatusCommand.d.ts +1 -1
  115. package/dist-types/ts3.4/commands/UpdateContactAttributesCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/UpdateContactCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/UpdateContactFlowContentCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/UpdateContactFlowMetadataCommand.d.ts +17 -0
  119. package/dist-types/ts3.4/commands/UpdateContactFlowModuleContentCommand.d.ts +17 -0
  120. package/dist-types/ts3.4/commands/UpdateContactFlowModuleMetadataCommand.d.ts +17 -0
  121. package/dist-types/ts3.4/commands/UpdateContactFlowNameCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/UpdateContactScheduleCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/UpdateHoursOfOperationCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/UpdateInstanceAttributeCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/UpdateInstanceStorageConfigCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  127. package/dist-types/ts3.4/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  128. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  129. package/dist-types/ts3.4/models/models_0.d.ts +164 -264
  130. package/dist-types/ts3.4/models/models_1.d.ts +255 -1
  131. package/dist-types/ts3.4/pagination/ListContactFlowModulesPaginator.d.ts +4 -0
  132. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  133. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  134. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  135. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  136. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  137. package/package.json +38 -45
package/CHANGELOG.md CHANGED
@@ -3,6 +3,56 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
28
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
46
+
47
+
48
+ ### Features
49
+
50
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
51
+
52
+
53
+
54
+
55
+
6
56
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
7
57
 
8
58
 
package/README.md CHANGED
@@ -15,10 +15,8 @@ appropriate agents.</p>
15
15
  <p>There are limits to the number of Amazon Connect resources that you can create. There are also limits
16
16
  to the number of requests that you can make per second. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">Amazon Connect
17
17
  Service Quotas</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
18
- <p>You can
19
- connect
20
- programmatically to an AWS service by using an endpoint. For a list of Amazon Connect endpoints, see
21
- <a href="https://docs.aws.amazon.com/general/latest/gr/connect_region.html">Amazon Connect
18
+ <p>You can connect programmatically to an AWS service by using an endpoint. For a list of Amazon Connect
19
+ endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/connect_region.html">Amazon Connect
22
20
  Endpoints</a>.</p>
23
21
  <note>
24
22
  <p>Working with contact flows? Check out the <a href="https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html">Amazon Connect Flow language</a>.</p>
@@ -11,6 +11,7 @@ const AssociateRoutingProfileQueuesCommand_1 = require("./commands/AssociateRout
11
11
  const AssociateSecurityKeyCommand_1 = require("./commands/AssociateSecurityKeyCommand");
12
12
  const CreateAgentStatusCommand_1 = require("./commands/CreateAgentStatusCommand");
13
13
  const CreateContactFlowCommand_1 = require("./commands/CreateContactFlowCommand");
14
+ const CreateContactFlowModuleCommand_1 = require("./commands/CreateContactFlowModuleCommand");
14
15
  const CreateHoursOfOperationCommand_1 = require("./commands/CreateHoursOfOperationCommand");
15
16
  const CreateInstanceCommand_1 = require("./commands/CreateInstanceCommand");
16
17
  const CreateIntegrationAssociationCommand_1 = require("./commands/CreateIntegrationAssociationCommand");
@@ -21,6 +22,8 @@ const CreateSecurityProfileCommand_1 = require("./commands/CreateSecurityProfile
21
22
  const CreateUseCaseCommand_1 = require("./commands/CreateUseCaseCommand");
22
23
  const CreateUserCommand_1 = require("./commands/CreateUserCommand");
23
24
  const CreateUserHierarchyGroupCommand_1 = require("./commands/CreateUserHierarchyGroupCommand");
25
+ const DeleteContactFlowCommand_1 = require("./commands/DeleteContactFlowCommand");
26
+ const DeleteContactFlowModuleCommand_1 = require("./commands/DeleteContactFlowModuleCommand");
24
27
  const DeleteHoursOfOperationCommand_1 = require("./commands/DeleteHoursOfOperationCommand");
25
28
  const DeleteInstanceCommand_1 = require("./commands/DeleteInstanceCommand");
26
29
  const DeleteIntegrationAssociationCommand_1 = require("./commands/DeleteIntegrationAssociationCommand");
@@ -32,6 +35,7 @@ const DeleteUserHierarchyGroupCommand_1 = require("./commands/DeleteUserHierarch
32
35
  const DescribeAgentStatusCommand_1 = require("./commands/DescribeAgentStatusCommand");
33
36
  const DescribeContactCommand_1 = require("./commands/DescribeContactCommand");
34
37
  const DescribeContactFlowCommand_1 = require("./commands/DescribeContactFlowCommand");
38
+ const DescribeContactFlowModuleCommand_1 = require("./commands/DescribeContactFlowModuleCommand");
35
39
  const DescribeHoursOfOperationCommand_1 = require("./commands/DescribeHoursOfOperationCommand");
36
40
  const DescribeInstanceAttributeCommand_1 = require("./commands/DescribeInstanceAttributeCommand");
37
41
  const DescribeInstanceCommand_1 = require("./commands/DescribeInstanceCommand");
@@ -58,6 +62,7 @@ const GetMetricDataCommand_1 = require("./commands/GetMetricDataCommand");
58
62
  const ListAgentStatusesCommand_1 = require("./commands/ListAgentStatusesCommand");
59
63
  const ListApprovedOriginsCommand_1 = require("./commands/ListApprovedOriginsCommand");
60
64
  const ListBotsCommand_1 = require("./commands/ListBotsCommand");
65
+ const ListContactFlowModulesCommand_1 = require("./commands/ListContactFlowModulesCommand");
61
66
  const ListContactFlowsCommand_1 = require("./commands/ListContactFlowsCommand");
62
67
  const ListContactReferencesCommand_1 = require("./commands/ListContactReferencesCommand");
63
68
  const ListHoursOfOperationsCommand_1 = require("./commands/ListHoursOfOperationsCommand");
@@ -97,6 +102,9 @@ const UpdateAgentStatusCommand_1 = require("./commands/UpdateAgentStatusCommand"
97
102
  const UpdateContactAttributesCommand_1 = require("./commands/UpdateContactAttributesCommand");
98
103
  const UpdateContactCommand_1 = require("./commands/UpdateContactCommand");
99
104
  const UpdateContactFlowContentCommand_1 = require("./commands/UpdateContactFlowContentCommand");
105
+ const UpdateContactFlowMetadataCommand_1 = require("./commands/UpdateContactFlowMetadataCommand");
106
+ const UpdateContactFlowModuleContentCommand_1 = require("./commands/UpdateContactFlowModuleContentCommand");
107
+ const UpdateContactFlowModuleMetadataCommand_1 = require("./commands/UpdateContactFlowModuleMetadataCommand");
100
108
  const UpdateContactFlowNameCommand_1 = require("./commands/UpdateContactFlowNameCommand");
101
109
  const UpdateContactScheduleCommand_1 = require("./commands/UpdateContactScheduleCommand");
102
110
  const UpdateHoursOfOperationCommand_1 = require("./commands/UpdateHoursOfOperationCommand");
@@ -263,6 +271,20 @@ class Connect extends ConnectClient_1.ConnectClient {
263
271
  return this.send(command, optionsOrCb);
264
272
  }
265
273
  }
274
+ createContactFlowModule(args, optionsOrCb, cb) {
275
+ const command = new CreateContactFlowModuleCommand_1.CreateContactFlowModuleCommand(args);
276
+ if (typeof optionsOrCb === "function") {
277
+ this.send(command, optionsOrCb);
278
+ }
279
+ else if (typeof cb === "function") {
280
+ if (typeof optionsOrCb !== "object")
281
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
282
+ this.send(command, optionsOrCb || {}, cb);
283
+ }
284
+ else {
285
+ return this.send(command, optionsOrCb);
286
+ }
287
+ }
266
288
  createHoursOfOperation(args, optionsOrCb, cb) {
267
289
  const command = new CreateHoursOfOperationCommand_1.CreateHoursOfOperationCommand(args);
268
290
  if (typeof optionsOrCb === "function") {
@@ -403,6 +425,34 @@ class Connect extends ConnectClient_1.ConnectClient {
403
425
  return this.send(command, optionsOrCb);
404
426
  }
405
427
  }
428
+ deleteContactFlow(args, optionsOrCb, cb) {
429
+ const command = new DeleteContactFlowCommand_1.DeleteContactFlowCommand(args);
430
+ if (typeof optionsOrCb === "function") {
431
+ this.send(command, optionsOrCb);
432
+ }
433
+ else if (typeof cb === "function") {
434
+ if (typeof optionsOrCb !== "object")
435
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
436
+ this.send(command, optionsOrCb || {}, cb);
437
+ }
438
+ else {
439
+ return this.send(command, optionsOrCb);
440
+ }
441
+ }
442
+ deleteContactFlowModule(args, optionsOrCb, cb) {
443
+ const command = new DeleteContactFlowModuleCommand_1.DeleteContactFlowModuleCommand(args);
444
+ if (typeof optionsOrCb === "function") {
445
+ this.send(command, optionsOrCb);
446
+ }
447
+ else if (typeof cb === "function") {
448
+ if (typeof optionsOrCb !== "object")
449
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
450
+ this.send(command, optionsOrCb || {}, cb);
451
+ }
452
+ else {
453
+ return this.send(command, optionsOrCb);
454
+ }
455
+ }
406
456
  deleteHoursOfOperation(args, optionsOrCb, cb) {
407
457
  const command = new DeleteHoursOfOperationCommand_1.DeleteHoursOfOperationCommand(args);
408
458
  if (typeof optionsOrCb === "function") {
@@ -557,6 +607,20 @@ class Connect extends ConnectClient_1.ConnectClient {
557
607
  return this.send(command, optionsOrCb);
558
608
  }
559
609
  }
610
+ describeContactFlowModule(args, optionsOrCb, cb) {
611
+ const command = new DescribeContactFlowModuleCommand_1.DescribeContactFlowModuleCommand(args);
612
+ if (typeof optionsOrCb === "function") {
613
+ this.send(command, optionsOrCb);
614
+ }
615
+ else if (typeof cb === "function") {
616
+ if (typeof optionsOrCb !== "object")
617
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
618
+ this.send(command, optionsOrCb || {}, cb);
619
+ }
620
+ else {
621
+ return this.send(command, optionsOrCb);
622
+ }
623
+ }
560
624
  describeHoursOfOperation(args, optionsOrCb, cb) {
561
625
  const command = new DescribeHoursOfOperationCommand_1.DescribeHoursOfOperationCommand(args);
562
626
  if (typeof optionsOrCb === "function") {
@@ -921,6 +985,20 @@ class Connect extends ConnectClient_1.ConnectClient {
921
985
  return this.send(command, optionsOrCb);
922
986
  }
923
987
  }
988
+ listContactFlowModules(args, optionsOrCb, cb) {
989
+ const command = new ListContactFlowModulesCommand_1.ListContactFlowModulesCommand(args);
990
+ if (typeof optionsOrCb === "function") {
991
+ this.send(command, optionsOrCb);
992
+ }
993
+ else if (typeof cb === "function") {
994
+ if (typeof optionsOrCb !== "object")
995
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
996
+ this.send(command, optionsOrCb || {}, cb);
997
+ }
998
+ else {
999
+ return this.send(command, optionsOrCb);
1000
+ }
1001
+ }
924
1002
  listContactFlows(args, optionsOrCb, cb) {
925
1003
  const command = new ListContactFlowsCommand_1.ListContactFlowsCommand(args);
926
1004
  if (typeof optionsOrCb === "function") {
@@ -1467,6 +1545,48 @@ class Connect extends ConnectClient_1.ConnectClient {
1467
1545
  return this.send(command, optionsOrCb);
1468
1546
  }
1469
1547
  }
1548
+ updateContactFlowMetadata(args, optionsOrCb, cb) {
1549
+ const command = new UpdateContactFlowMetadataCommand_1.UpdateContactFlowMetadataCommand(args);
1550
+ if (typeof optionsOrCb === "function") {
1551
+ this.send(command, optionsOrCb);
1552
+ }
1553
+ else if (typeof cb === "function") {
1554
+ if (typeof optionsOrCb !== "object")
1555
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1556
+ this.send(command, optionsOrCb || {}, cb);
1557
+ }
1558
+ else {
1559
+ return this.send(command, optionsOrCb);
1560
+ }
1561
+ }
1562
+ updateContactFlowModuleContent(args, optionsOrCb, cb) {
1563
+ const command = new UpdateContactFlowModuleContentCommand_1.UpdateContactFlowModuleContentCommand(args);
1564
+ if (typeof optionsOrCb === "function") {
1565
+ this.send(command, optionsOrCb);
1566
+ }
1567
+ else if (typeof cb === "function") {
1568
+ if (typeof optionsOrCb !== "object")
1569
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1570
+ this.send(command, optionsOrCb || {}, cb);
1571
+ }
1572
+ else {
1573
+ return this.send(command, optionsOrCb);
1574
+ }
1575
+ }
1576
+ updateContactFlowModuleMetadata(args, optionsOrCb, cb) {
1577
+ const command = new UpdateContactFlowModuleMetadataCommand_1.UpdateContactFlowModuleMetadataCommand(args);
1578
+ if (typeof optionsOrCb === "function") {
1579
+ this.send(command, optionsOrCb);
1580
+ }
1581
+ else if (typeof cb === "function") {
1582
+ if (typeof optionsOrCb !== "object")
1583
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1584
+ this.send(command, optionsOrCb || {}, cb);
1585
+ }
1586
+ else {
1587
+ return this.send(command, optionsOrCb);
1588
+ }
1589
+ }
1470
1590
  updateContactFlowName(args, optionsOrCb, cb) {
1471
1591
  const command = new UpdateContactFlowNameCommand_1.UpdateContactFlowNameCommand(args);
1472
1592
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateContactFlowModuleCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateContactFlowModuleCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ConnectClient";
18
+ const commandName = "CreateContactFlowModuleCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateContactFlowModuleRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateContactFlowModuleResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateContactFlowModuleCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateContactFlowModuleCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateContactFlowModuleCommand = CreateContactFlowModuleCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteContactFlowCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteContactFlowCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ConnectClient";
18
+ const commandName = "DeleteContactFlowCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteContactFlowRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DeleteContactFlowCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DeleteContactFlowCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteContactFlowCommand = DeleteContactFlowCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteContactFlowModuleCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteContactFlowModuleCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ConnectClient";
18
+ const commandName = "DeleteContactFlowModuleCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteContactFlowModuleRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DeleteContactFlowModuleResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DeleteContactFlowModuleCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DeleteContactFlowModuleCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteContactFlowModuleCommand = DeleteContactFlowModuleCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeContactFlowModuleCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DescribeContactFlowModuleCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ConnectClient";
18
+ const commandName = "DescribeContactFlowModuleCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribeContactFlowModuleRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeContactFlowModuleResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DescribeContactFlowModuleCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DescribeContactFlowModuleCommand(output, context);
34
+ }
35
+ }
36
+ exports.DescribeContactFlowModuleCommand = DescribeContactFlowModuleCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListContactFlowModulesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListContactFlowModulesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ConnectClient";
18
+ const commandName = "ListContactFlowModulesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListContactFlowModulesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListContactFlowModulesResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1ListContactFlowModulesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1ListContactFlowModulesCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListContactFlowModulesCommand = ListContactFlowModulesCommand;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TagResourceCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
8
  class TagResourceCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class TagResourceCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.TagResourceRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.TagResourceRequest.filterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UntagResourceCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
8
  class UntagResourceCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class UntagResourceCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.UntagResourceRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.UntagResourceRequest.filterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateAgentStatusCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
8
  class UpdateAgentStatusCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class UpdateAgentStatusCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.UpdateAgentStatusRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.UpdateAgentStatusRequest.filterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateContactAttributesCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
8
  class UpdateContactAttributesCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class UpdateContactAttributesCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.UpdateContactAttributesRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.UpdateContactAttributesResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.UpdateContactAttributesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.UpdateContactAttributesResponse.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateContactCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
8
  class UpdateContactCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class UpdateContactCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.UpdateContactRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.UpdateContactResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.UpdateContactRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.UpdateContactResponse.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateContactFlowContentCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
8
  class UpdateContactFlowContentCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class UpdateContactFlowContentCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.UpdateContactFlowContentRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.UpdateContactFlowContentRequest.filterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateContactFlowMetadataCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_1_1 = require("../models/models_1");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class UpdateContactFlowMetadataCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ConnectClient";
18
+ const commandName = "UpdateContactFlowMetadataCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.UpdateContactFlowMetadataRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1UpdateContactFlowMetadataCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1UpdateContactFlowMetadataCommand(output, context);
34
+ }
35
+ }
36
+ exports.UpdateContactFlowMetadataCommand = UpdateContactFlowMetadataCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateContactFlowModuleContentCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_1_1 = require("../models/models_1");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class UpdateContactFlowModuleContentCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ConnectClient";
18
+ const commandName = "UpdateContactFlowModuleContentCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.UpdateContactFlowModuleContentRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.UpdateContactFlowModuleContentResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1UpdateContactFlowModuleContentCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1UpdateContactFlowModuleContentCommand(output, context);
34
+ }
35
+ }
36
+ exports.UpdateContactFlowModuleContentCommand = UpdateContactFlowModuleContentCommand;