@aws-sdk/client-connect 3.47.2 → 3.51.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 (92) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +2 -3
  3. package/dist-cjs/Connect.js +90 -0
  4. package/dist-cjs/commands/AssociateDefaultVocabularyCommand.js +36 -0
  5. package/dist-cjs/commands/CreateVocabularyCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteVocabularyCommand.js +36 -0
  7. package/dist-cjs/commands/DescribeVocabularyCommand.js +36 -0
  8. package/dist-cjs/commands/ListDefaultVocabulariesCommand.js +36 -0
  9. package/dist-cjs/commands/SearchVocabulariesCommand.js +36 -0
  10. package/dist-cjs/commands/StartOutboundVoiceContactCommand.js +3 -3
  11. package/dist-cjs/commands/StartTaskContactCommand.js +3 -3
  12. package/dist-cjs/commands/StopContactCommand.js +3 -3
  13. package/dist-cjs/commands/StopContactRecordingCommand.js +3 -3
  14. package/dist-cjs/commands/StopContactStreamingCommand.js +3 -3
  15. package/dist-cjs/commands/SuspendContactRecordingCommand.js +3 -3
  16. package/dist-cjs/commands/index.js +6 -0
  17. package/dist-cjs/models/models_0.js +127 -95
  18. package/dist-cjs/models/models_1.js +91 -1
  19. package/dist-cjs/pagination/ListDefaultVocabulariesPaginator.js +35 -0
  20. package/dist-cjs/pagination/SearchVocabulariesPaginator.js +35 -0
  21. package/dist-cjs/pagination/index.js +2 -0
  22. package/dist-cjs/protocols/Aws_restJson1.js +800 -7
  23. package/dist-es/Connect.js +90 -0
  24. package/dist-es/commands/AssociateDefaultVocabularyCommand.js +39 -0
  25. package/dist-es/commands/CreateVocabularyCommand.js +39 -0
  26. package/dist-es/commands/DeleteVocabularyCommand.js +39 -0
  27. package/dist-es/commands/DescribeVocabularyCommand.js +39 -0
  28. package/dist-es/commands/ListDefaultVocabulariesCommand.js +39 -0
  29. package/dist-es/commands/SearchVocabulariesCommand.js +39 -0
  30. package/dist-es/commands/StartOutboundVoiceContactCommand.js +1 -1
  31. package/dist-es/commands/StartTaskContactCommand.js +1 -1
  32. package/dist-es/commands/StopContactCommand.js +1 -1
  33. package/dist-es/commands/StopContactRecordingCommand.js +1 -1
  34. package/dist-es/commands/StopContactStreamingCommand.js +1 -1
  35. package/dist-es/commands/SuspendContactRecordingCommand.js +1 -1
  36. package/dist-es/commands/index.js +6 -0
  37. package/dist-es/models/models_0.js +91 -61
  38. package/dist-es/models/models_1.js +61 -0
  39. package/dist-es/pagination/ListDefaultVocabulariesPaginator.js +74 -0
  40. package/dist-es/pagination/SearchVocabulariesPaginator.js +74 -0
  41. package/dist-es/pagination/index.js +2 -0
  42. package/dist-es/protocols/Aws_restJson1.js +948 -63
  43. package/dist-types/Connect.d.ts +63 -16
  44. package/dist-types/ConnectClient.d.ts +10 -5
  45. package/dist-types/commands/AssociateDefaultVocabularyCommand.d.ts +35 -0
  46. package/dist-types/commands/CreateIntegrationAssociationCommand.d.ts +1 -1
  47. package/dist-types/commands/CreateVocabularyCommand.d.ts +37 -0
  48. package/dist-types/commands/DeleteIntegrationAssociationCommand.d.ts +2 -2
  49. package/dist-types/commands/DeleteVocabularyCommand.d.ts +35 -0
  50. package/dist-types/commands/DescribeVocabularyCommand.d.ts +35 -0
  51. package/dist-types/commands/ListBotsCommand.d.ts +2 -2
  52. package/dist-types/commands/ListDefaultVocabulariesCommand.d.ts +35 -0
  53. package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +2 -2
  54. package/dist-types/commands/SearchVocabulariesCommand.d.ts +35 -0
  55. package/dist-types/commands/StartChatContactCommand.d.ts +4 -1
  56. package/dist-types/commands/StartContactStreamingCommand.d.ts +1 -1
  57. package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +4 -3
  58. package/dist-types/commands/StartTaskContactCommand.d.ts +1 -1
  59. package/dist-types/commands/StopContactCommand.d.ts +1 -1
  60. package/dist-types/commands/StopContactRecordingCommand.d.ts +1 -1
  61. package/dist-types/commands/StopContactStreamingCommand.d.ts +1 -1
  62. package/dist-types/commands/SuspendContactRecordingCommand.d.ts +1 -1
  63. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  64. package/dist-types/commands/index.d.ts +6 -0
  65. package/dist-types/models/models_0.d.ts +445 -347
  66. package/dist-types/models/models_1.d.ts +337 -2
  67. package/dist-types/pagination/ListDefaultVocabulariesPaginator.d.ts +4 -0
  68. package/dist-types/pagination/SearchVocabulariesPaginator.d.ts +4 -0
  69. package/dist-types/pagination/index.d.ts +2 -0
  70. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  71. package/dist-types/ts3.4/Connect.d.ts +30 -0
  72. package/dist-types/ts3.4/ConnectClient.d.ts +8 -2
  73. package/dist-types/ts3.4/commands/AssociateDefaultVocabularyCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/CreateVocabularyCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/DeleteVocabularyCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/DescribeVocabularyCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/ListDefaultVocabulariesCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/SearchVocabulariesCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/StartOutboundVoiceContactCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/StartTaskContactCommand.d.ts +1 -1
  81. package/dist-types/ts3.4/commands/StopContactCommand.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/StopContactRecordingCommand.d.ts +1 -1
  83. package/dist-types/ts3.4/commands/StopContactStreamingCommand.d.ts +1 -1
  84. package/dist-types/ts3.4/commands/SuspendContactRecordingCommand.d.ts +1 -1
  85. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  86. package/dist-types/ts3.4/models/models_0.d.ts +244 -182
  87. package/dist-types/ts3.4/models/models_1.d.ts +184 -1
  88. package/dist-types/ts3.4/pagination/ListDefaultVocabulariesPaginator.d.ts +4 -0
  89. package/dist-types/ts3.4/pagination/SearchVocabulariesPaginator.d.ts +4 -0
  90. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  91. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -0
  92. package/package.json +39 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
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.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-connect
9
+
10
+
11
+
12
+
13
+
14
+ # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-connect
17
+
18
+
19
+
20
+
21
+
22
+ # [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** update clients as of 01/28/2022 ([#3263](https://github.com/aws/aws-sdk-js-v3/issues/3263)) ([c207cf4](https://github.com/aws/aws-sdk-js-v3/commit/c207cf4a70ba9ef14dc5b94da7883b0889d64918))
28
+
29
+
30
+
31
+
32
+
33
+ # [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
34
+
35
+
36
+ ### Features
37
+
38
+ * **clients:** update clients as of 2022/01/21 ([#3228](https://github.com/aws/aws-sdk-js-v3/issues/3228)) ([fa713ef](https://github.com/aws/aws-sdk-js-v3/commit/fa713efca6b2f424c27535d000359f08830960b1))
39
+
40
+
41
+
42
+
43
+
6
44
  ## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
7
45
 
8
46
  **Note:** Version bump only for package @aws-sdk/client-connect
package/README.md CHANGED
@@ -15,9 +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 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
20
- Endpoints</a>.</p>
18
+ <p>You can connect programmatically to an Amazon Web Services service by using an endpoint. For
19
+ a list of Amazon Connect endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/connect_region.html">Amazon Connect Endpoints</a>.</p>
21
20
  <note>
22
21
  <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>
23
22
  </note>
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Connect = void 0;
4
4
  const AssociateApprovedOriginCommand_1 = require("./commands/AssociateApprovedOriginCommand");
5
5
  const AssociateBotCommand_1 = require("./commands/AssociateBotCommand");
6
+ const AssociateDefaultVocabularyCommand_1 = require("./commands/AssociateDefaultVocabularyCommand");
6
7
  const AssociateInstanceStorageConfigCommand_1 = require("./commands/AssociateInstanceStorageConfigCommand");
7
8
  const AssociateLambdaFunctionCommand_1 = require("./commands/AssociateLambdaFunctionCommand");
8
9
  const AssociateLexBotCommand_1 = require("./commands/AssociateLexBotCommand");
@@ -22,6 +23,7 @@ const CreateSecurityProfileCommand_1 = require("./commands/CreateSecurityProfile
22
23
  const CreateUseCaseCommand_1 = require("./commands/CreateUseCaseCommand");
23
24
  const CreateUserCommand_1 = require("./commands/CreateUserCommand");
24
25
  const CreateUserHierarchyGroupCommand_1 = require("./commands/CreateUserHierarchyGroupCommand");
26
+ const CreateVocabularyCommand_1 = require("./commands/CreateVocabularyCommand");
25
27
  const DeleteContactFlowCommand_1 = require("./commands/DeleteContactFlowCommand");
26
28
  const DeleteContactFlowModuleCommand_1 = require("./commands/DeleteContactFlowModuleCommand");
27
29
  const DeleteHoursOfOperationCommand_1 = require("./commands/DeleteHoursOfOperationCommand");
@@ -32,6 +34,7 @@ const DeleteSecurityProfileCommand_1 = require("./commands/DeleteSecurityProfile
32
34
  const DeleteUseCaseCommand_1 = require("./commands/DeleteUseCaseCommand");
33
35
  const DeleteUserCommand_1 = require("./commands/DeleteUserCommand");
34
36
  const DeleteUserHierarchyGroupCommand_1 = require("./commands/DeleteUserHierarchyGroupCommand");
37
+ const DeleteVocabularyCommand_1 = require("./commands/DeleteVocabularyCommand");
35
38
  const DescribeAgentStatusCommand_1 = require("./commands/DescribeAgentStatusCommand");
36
39
  const DescribeContactCommand_1 = require("./commands/DescribeContactCommand");
37
40
  const DescribeContactFlowCommand_1 = require("./commands/DescribeContactFlowCommand");
@@ -47,6 +50,7 @@ const DescribeSecurityProfileCommand_1 = require("./commands/DescribeSecurityPro
47
50
  const DescribeUserCommand_1 = require("./commands/DescribeUserCommand");
48
51
  const DescribeUserHierarchyGroupCommand_1 = require("./commands/DescribeUserHierarchyGroupCommand");
49
52
  const DescribeUserHierarchyStructureCommand_1 = require("./commands/DescribeUserHierarchyStructureCommand");
53
+ const DescribeVocabularyCommand_1 = require("./commands/DescribeVocabularyCommand");
50
54
  const DisassociateApprovedOriginCommand_1 = require("./commands/DisassociateApprovedOriginCommand");
51
55
  const DisassociateBotCommand_1 = require("./commands/DisassociateBotCommand");
52
56
  const DisassociateInstanceStorageConfigCommand_1 = require("./commands/DisassociateInstanceStorageConfigCommand");
@@ -65,6 +69,7 @@ const ListBotsCommand_1 = require("./commands/ListBotsCommand");
65
69
  const ListContactFlowModulesCommand_1 = require("./commands/ListContactFlowModulesCommand");
66
70
  const ListContactFlowsCommand_1 = require("./commands/ListContactFlowsCommand");
67
71
  const ListContactReferencesCommand_1 = require("./commands/ListContactReferencesCommand");
72
+ const ListDefaultVocabulariesCommand_1 = require("./commands/ListDefaultVocabulariesCommand");
68
73
  const ListHoursOfOperationsCommand_1 = require("./commands/ListHoursOfOperationsCommand");
69
74
  const ListInstanceAttributesCommand_1 = require("./commands/ListInstanceAttributesCommand");
70
75
  const ListInstancesCommand_1 = require("./commands/ListInstancesCommand");
@@ -87,6 +92,7 @@ const ListUseCasesCommand_1 = require("./commands/ListUseCasesCommand");
87
92
  const ListUserHierarchyGroupsCommand_1 = require("./commands/ListUserHierarchyGroupsCommand");
88
93
  const ListUsersCommand_1 = require("./commands/ListUsersCommand");
89
94
  const ResumeContactRecordingCommand_1 = require("./commands/ResumeContactRecordingCommand");
95
+ const SearchVocabulariesCommand_1 = require("./commands/SearchVocabulariesCommand");
90
96
  const StartChatContactCommand_1 = require("./commands/StartChatContactCommand");
91
97
  const StartContactRecordingCommand_1 = require("./commands/StartContactRecordingCommand");
92
98
  const StartContactStreamingCommand_1 = require("./commands/StartContactStreamingCommand");
@@ -159,6 +165,20 @@ class Connect extends ConnectClient_1.ConnectClient {
159
165
  return this.send(command, optionsOrCb);
160
166
  }
161
167
  }
168
+ associateDefaultVocabulary(args, optionsOrCb, cb) {
169
+ const command = new AssociateDefaultVocabularyCommand_1.AssociateDefaultVocabularyCommand(args);
170
+ if (typeof optionsOrCb === "function") {
171
+ this.send(command, optionsOrCb);
172
+ }
173
+ else if (typeof cb === "function") {
174
+ if (typeof optionsOrCb !== "object")
175
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
176
+ this.send(command, optionsOrCb || {}, cb);
177
+ }
178
+ else {
179
+ return this.send(command, optionsOrCb);
180
+ }
181
+ }
162
182
  associateInstanceStorageConfig(args, optionsOrCb, cb) {
163
183
  const command = new AssociateInstanceStorageConfigCommand_1.AssociateInstanceStorageConfigCommand(args);
164
184
  if (typeof optionsOrCb === "function") {
@@ -425,6 +445,20 @@ class Connect extends ConnectClient_1.ConnectClient {
425
445
  return this.send(command, optionsOrCb);
426
446
  }
427
447
  }
448
+ createVocabulary(args, optionsOrCb, cb) {
449
+ const command = new CreateVocabularyCommand_1.CreateVocabularyCommand(args);
450
+ if (typeof optionsOrCb === "function") {
451
+ this.send(command, optionsOrCb);
452
+ }
453
+ else if (typeof cb === "function") {
454
+ if (typeof optionsOrCb !== "object")
455
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
456
+ this.send(command, optionsOrCb || {}, cb);
457
+ }
458
+ else {
459
+ return this.send(command, optionsOrCb);
460
+ }
461
+ }
428
462
  deleteContactFlow(args, optionsOrCb, cb) {
429
463
  const command = new DeleteContactFlowCommand_1.DeleteContactFlowCommand(args);
430
464
  if (typeof optionsOrCb === "function") {
@@ -565,6 +599,20 @@ class Connect extends ConnectClient_1.ConnectClient {
565
599
  return this.send(command, optionsOrCb);
566
600
  }
567
601
  }
602
+ deleteVocabulary(args, optionsOrCb, cb) {
603
+ const command = new DeleteVocabularyCommand_1.DeleteVocabularyCommand(args);
604
+ if (typeof optionsOrCb === "function") {
605
+ this.send(command, optionsOrCb);
606
+ }
607
+ else if (typeof cb === "function") {
608
+ if (typeof optionsOrCb !== "object")
609
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
610
+ this.send(command, optionsOrCb || {}, cb);
611
+ }
612
+ else {
613
+ return this.send(command, optionsOrCb);
614
+ }
615
+ }
568
616
  describeAgentStatus(args, optionsOrCb, cb) {
569
617
  const command = new DescribeAgentStatusCommand_1.DescribeAgentStatusCommand(args);
570
618
  if (typeof optionsOrCb === "function") {
@@ -775,6 +823,20 @@ class Connect extends ConnectClient_1.ConnectClient {
775
823
  return this.send(command, optionsOrCb);
776
824
  }
777
825
  }
826
+ describeVocabulary(args, optionsOrCb, cb) {
827
+ const command = new DescribeVocabularyCommand_1.DescribeVocabularyCommand(args);
828
+ if (typeof optionsOrCb === "function") {
829
+ this.send(command, optionsOrCb);
830
+ }
831
+ else if (typeof cb === "function") {
832
+ if (typeof optionsOrCb !== "object")
833
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
834
+ this.send(command, optionsOrCb || {}, cb);
835
+ }
836
+ else {
837
+ return this.send(command, optionsOrCb);
838
+ }
839
+ }
778
840
  disassociateApprovedOrigin(args, optionsOrCb, cb) {
779
841
  const command = new DisassociateApprovedOriginCommand_1.DisassociateApprovedOriginCommand(args);
780
842
  if (typeof optionsOrCb === "function") {
@@ -1027,6 +1089,20 @@ class Connect extends ConnectClient_1.ConnectClient {
1027
1089
  return this.send(command, optionsOrCb);
1028
1090
  }
1029
1091
  }
1092
+ listDefaultVocabularies(args, optionsOrCb, cb) {
1093
+ const command = new ListDefaultVocabulariesCommand_1.ListDefaultVocabulariesCommand(args);
1094
+ if (typeof optionsOrCb === "function") {
1095
+ this.send(command, optionsOrCb);
1096
+ }
1097
+ else if (typeof cb === "function") {
1098
+ if (typeof optionsOrCb !== "object")
1099
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1100
+ this.send(command, optionsOrCb || {}, cb);
1101
+ }
1102
+ else {
1103
+ return this.send(command, optionsOrCb);
1104
+ }
1105
+ }
1030
1106
  listHoursOfOperations(args, optionsOrCb, cb) {
1031
1107
  const command = new ListHoursOfOperationsCommand_1.ListHoursOfOperationsCommand(args);
1032
1108
  if (typeof optionsOrCb === "function") {
@@ -1335,6 +1411,20 @@ class Connect extends ConnectClient_1.ConnectClient {
1335
1411
  return this.send(command, optionsOrCb);
1336
1412
  }
1337
1413
  }
1414
+ searchVocabularies(args, optionsOrCb, cb) {
1415
+ const command = new SearchVocabulariesCommand_1.SearchVocabulariesCommand(args);
1416
+ if (typeof optionsOrCb === "function") {
1417
+ this.send(command, optionsOrCb);
1418
+ }
1419
+ else if (typeof cb === "function") {
1420
+ if (typeof optionsOrCb !== "object")
1421
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1422
+ this.send(command, optionsOrCb || {}, cb);
1423
+ }
1424
+ else {
1425
+ return this.send(command, optionsOrCb);
1426
+ }
1427
+ }
1338
1428
  startChatContact(args, optionsOrCb, cb) {
1339
1429
  const command = new StartChatContactCommand_1.StartChatContactCommand(args);
1340
1430
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssociateDefaultVocabularyCommand = 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 AssociateDefaultVocabularyCommand 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 = "AssociateDefaultVocabularyCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.AssociateDefaultVocabularyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.AssociateDefaultVocabularyResponse.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_restJson1AssociateDefaultVocabularyCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1AssociateDefaultVocabularyCommand(output, context);
34
+ }
35
+ }
36
+ exports.AssociateDefaultVocabularyCommand = AssociateDefaultVocabularyCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateVocabularyCommand = 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 CreateVocabularyCommand 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 = "CreateVocabularyCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateVocabularyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateVocabularyResponse.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_restJson1CreateVocabularyCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateVocabularyCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateVocabularyCommand = CreateVocabularyCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteVocabularyCommand = 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 DeleteVocabularyCommand 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 = "DeleteVocabularyCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteVocabularyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DeleteVocabularyResponse.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_restJson1DeleteVocabularyCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DeleteVocabularyCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteVocabularyCommand = DeleteVocabularyCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeVocabularyCommand = 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 DescribeVocabularyCommand 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 = "DescribeVocabularyCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribeVocabularyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeVocabularyResponse.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_restJson1DescribeVocabularyCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DescribeVocabularyCommand(output, context);
34
+ }
35
+ }
36
+ exports.DescribeVocabularyCommand = DescribeVocabularyCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListDefaultVocabulariesCommand = 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 ListDefaultVocabulariesCommand 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 = "ListDefaultVocabulariesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListDefaultVocabulariesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListDefaultVocabulariesResponse.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_restJson1ListDefaultVocabulariesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1ListDefaultVocabulariesCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListDefaultVocabulariesCommand = ListDefaultVocabulariesCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchVocabulariesCommand = 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 SearchVocabulariesCommand 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 = "SearchVocabulariesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.SearchVocabulariesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.SearchVocabulariesResponse.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_restJson1SearchVocabulariesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1SearchVocabulariesCommand(output, context);
34
+ }
35
+ }
36
+ exports.SearchVocabulariesCommand = SearchVocabulariesCommand;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StartOutboundVoiceContactCommand = 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 StartOutboundVoiceContactCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class StartOutboundVoiceContactCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.StartOutboundVoiceContactRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.StartOutboundVoiceContactResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.StartOutboundVoiceContactRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.StartOutboundVoiceContactResponse.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.StartTaskContactCommand = 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 StartTaskContactCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class StartTaskContactCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.StartTaskContactRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.StartTaskContactResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.StartTaskContactRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.StartTaskContactResponse.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.StopContactCommand = 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 StopContactCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class StopContactCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.StopContactRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.StopContactResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.StopContactRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.StopContactResponse.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.StopContactRecordingCommand = 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 StopContactRecordingCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class StopContactRecordingCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.StopContactRecordingRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.StopContactRecordingResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.StopContactRecordingRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.StopContactRecordingResponse.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.StopContactStreamingCommand = 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 StopContactStreamingCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class StopContactStreamingCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.StopContactStreamingRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.StopContactStreamingResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.StopContactStreamingRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.StopContactStreamingResponse.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.SuspendContactRecordingCommand = 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 SuspendContactRecordingCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class SuspendContactRecordingCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.SuspendContactRecordingRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.SuspendContactRecordingResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.SuspendContactRecordingRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.SuspendContactRecordingResponse.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./AssociateApprovedOriginCommand"), exports);
5
5
  tslib_1.__exportStar(require("./AssociateBotCommand"), exports);
6
+ tslib_1.__exportStar(require("./AssociateDefaultVocabularyCommand"), exports);
6
7
  tslib_1.__exportStar(require("./AssociateInstanceStorageConfigCommand"), exports);
7
8
  tslib_1.__exportStar(require("./AssociateLambdaFunctionCommand"), exports);
8
9
  tslib_1.__exportStar(require("./AssociateLexBotCommand"), exports);
@@ -22,6 +23,7 @@ tslib_1.__exportStar(require("./CreateSecurityProfileCommand"), exports);
22
23
  tslib_1.__exportStar(require("./CreateUseCaseCommand"), exports);
23
24
  tslib_1.__exportStar(require("./CreateUserCommand"), exports);
24
25
  tslib_1.__exportStar(require("./CreateUserHierarchyGroupCommand"), exports);
26
+ tslib_1.__exportStar(require("./CreateVocabularyCommand"), exports);
25
27
  tslib_1.__exportStar(require("./DeleteContactFlowCommand"), exports);
26
28
  tslib_1.__exportStar(require("./DeleteContactFlowModuleCommand"), exports);
27
29
  tslib_1.__exportStar(require("./DeleteHoursOfOperationCommand"), exports);
@@ -32,6 +34,7 @@ tslib_1.__exportStar(require("./DeleteSecurityProfileCommand"), exports);
32
34
  tslib_1.__exportStar(require("./DeleteUseCaseCommand"), exports);
33
35
  tslib_1.__exportStar(require("./DeleteUserCommand"), exports);
34
36
  tslib_1.__exportStar(require("./DeleteUserHierarchyGroupCommand"), exports);
37
+ tslib_1.__exportStar(require("./DeleteVocabularyCommand"), exports);
35
38
  tslib_1.__exportStar(require("./DescribeAgentStatusCommand"), exports);
36
39
  tslib_1.__exportStar(require("./DescribeContactCommand"), exports);
37
40
  tslib_1.__exportStar(require("./DescribeContactFlowCommand"), exports);
@@ -47,6 +50,7 @@ tslib_1.__exportStar(require("./DescribeSecurityProfileCommand"), exports);
47
50
  tslib_1.__exportStar(require("./DescribeUserCommand"), exports);
48
51
  tslib_1.__exportStar(require("./DescribeUserHierarchyGroupCommand"), exports);
49
52
  tslib_1.__exportStar(require("./DescribeUserHierarchyStructureCommand"), exports);
53
+ tslib_1.__exportStar(require("./DescribeVocabularyCommand"), exports);
50
54
  tslib_1.__exportStar(require("./DisassociateApprovedOriginCommand"), exports);
51
55
  tslib_1.__exportStar(require("./DisassociateBotCommand"), exports);
52
56
  tslib_1.__exportStar(require("./DisassociateInstanceStorageConfigCommand"), exports);
@@ -65,6 +69,7 @@ tslib_1.__exportStar(require("./ListBotsCommand"), exports);
65
69
  tslib_1.__exportStar(require("./ListContactFlowModulesCommand"), exports);
66
70
  tslib_1.__exportStar(require("./ListContactFlowsCommand"), exports);
67
71
  tslib_1.__exportStar(require("./ListContactReferencesCommand"), exports);
72
+ tslib_1.__exportStar(require("./ListDefaultVocabulariesCommand"), exports);
68
73
  tslib_1.__exportStar(require("./ListHoursOfOperationsCommand"), exports);
69
74
  tslib_1.__exportStar(require("./ListInstanceAttributesCommand"), exports);
70
75
  tslib_1.__exportStar(require("./ListInstanceStorageConfigsCommand"), exports);
@@ -87,6 +92,7 @@ tslib_1.__exportStar(require("./ListUseCasesCommand"), exports);
87
92
  tslib_1.__exportStar(require("./ListUserHierarchyGroupsCommand"), exports);
88
93
  tslib_1.__exportStar(require("./ListUsersCommand"), exports);
89
94
  tslib_1.__exportStar(require("./ResumeContactRecordingCommand"), exports);
95
+ tslib_1.__exportStar(require("./SearchVocabulariesCommand"), exports);
90
96
  tslib_1.__exportStar(require("./StartChatContactCommand"), exports);
91
97
  tslib_1.__exportStar(require("./StartContactRecordingCommand"), exports);
92
98
  tslib_1.__exportStar(require("./StartContactStreamingCommand"), exports);