@aws-sdk/client-connect 3.47.0 → 3.49.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 +40 -34
@@ -1,6 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { AssociateApprovedOriginCommand, } from "./commands/AssociateApprovedOriginCommand";
3
3
  import { AssociateBotCommand, } from "./commands/AssociateBotCommand";
4
+ import { AssociateDefaultVocabularyCommand, } from "./commands/AssociateDefaultVocabularyCommand";
4
5
  import { AssociateInstanceStorageConfigCommand, } from "./commands/AssociateInstanceStorageConfigCommand";
5
6
  import { AssociateLambdaFunctionCommand, } from "./commands/AssociateLambdaFunctionCommand";
6
7
  import { AssociateLexBotCommand, } from "./commands/AssociateLexBotCommand";
@@ -20,6 +21,7 @@ import { CreateSecurityProfileCommand, } from "./commands/CreateSecurityProfileC
20
21
  import { CreateUseCaseCommand, } from "./commands/CreateUseCaseCommand";
21
22
  import { CreateUserCommand } from "./commands/CreateUserCommand";
22
23
  import { CreateUserHierarchyGroupCommand, } from "./commands/CreateUserHierarchyGroupCommand";
24
+ import { CreateVocabularyCommand, } from "./commands/CreateVocabularyCommand";
23
25
  import { DeleteContactFlowCommand, } from "./commands/DeleteContactFlowCommand";
24
26
  import { DeleteContactFlowModuleCommand, } from "./commands/DeleteContactFlowModuleCommand";
25
27
  import { DeleteHoursOfOperationCommand, } from "./commands/DeleteHoursOfOperationCommand";
@@ -30,6 +32,7 @@ import { DeleteSecurityProfileCommand, } from "./commands/DeleteSecurityProfileC
30
32
  import { DeleteUseCaseCommand, } from "./commands/DeleteUseCaseCommand";
31
33
  import { DeleteUserCommand } from "./commands/DeleteUserCommand";
32
34
  import { DeleteUserHierarchyGroupCommand, } from "./commands/DeleteUserHierarchyGroupCommand";
35
+ import { DeleteVocabularyCommand, } from "./commands/DeleteVocabularyCommand";
33
36
  import { DescribeAgentStatusCommand, } from "./commands/DescribeAgentStatusCommand";
34
37
  import { DescribeContactCommand, } from "./commands/DescribeContactCommand";
35
38
  import { DescribeContactFlowCommand, } from "./commands/DescribeContactFlowCommand";
@@ -45,6 +48,7 @@ import { DescribeSecurityProfileCommand, } from "./commands/DescribeSecurityProf
45
48
  import { DescribeUserCommand, } from "./commands/DescribeUserCommand";
46
49
  import { DescribeUserHierarchyGroupCommand, } from "./commands/DescribeUserHierarchyGroupCommand";
47
50
  import { DescribeUserHierarchyStructureCommand, } from "./commands/DescribeUserHierarchyStructureCommand";
51
+ import { DescribeVocabularyCommand, } from "./commands/DescribeVocabularyCommand";
48
52
  import { DisassociateApprovedOriginCommand, } from "./commands/DisassociateApprovedOriginCommand";
49
53
  import { DisassociateBotCommand, } from "./commands/DisassociateBotCommand";
50
54
  import { DisassociateInstanceStorageConfigCommand, } from "./commands/DisassociateInstanceStorageConfigCommand";
@@ -63,6 +67,7 @@ import { ListBotsCommand } from "./commands/ListBotsCommand";
63
67
  import { ListContactFlowModulesCommand, } from "./commands/ListContactFlowModulesCommand";
64
68
  import { ListContactFlowsCommand, } from "./commands/ListContactFlowsCommand";
65
69
  import { ListContactReferencesCommand, } from "./commands/ListContactReferencesCommand";
70
+ import { ListDefaultVocabulariesCommand, } from "./commands/ListDefaultVocabulariesCommand";
66
71
  import { ListHoursOfOperationsCommand, } from "./commands/ListHoursOfOperationsCommand";
67
72
  import { ListInstanceAttributesCommand, } from "./commands/ListInstanceAttributesCommand";
68
73
  import { ListInstancesCommand, } from "./commands/ListInstancesCommand";
@@ -85,6 +90,7 @@ import { ListUseCasesCommand, } from "./commands/ListUseCasesCommand";
85
90
  import { ListUserHierarchyGroupsCommand, } from "./commands/ListUserHierarchyGroupsCommand";
86
91
  import { ListUsersCommand } from "./commands/ListUsersCommand";
87
92
  import { ResumeContactRecordingCommand, } from "./commands/ResumeContactRecordingCommand";
93
+ import { SearchVocabulariesCommand, } from "./commands/SearchVocabulariesCommand";
88
94
  import { StartChatContactCommand, } from "./commands/StartChatContactCommand";
89
95
  import { StartContactRecordingCommand, } from "./commands/StartContactRecordingCommand";
90
96
  import { StartContactStreamingCommand, } from "./commands/StartContactStreamingCommand";
@@ -161,6 +167,20 @@ var Connect = (function (_super) {
161
167
  return this.send(command, optionsOrCb);
162
168
  }
163
169
  };
170
+ Connect.prototype.associateDefaultVocabulary = function (args, optionsOrCb, cb) {
171
+ var command = new AssociateDefaultVocabularyCommand(args);
172
+ if (typeof optionsOrCb === "function") {
173
+ this.send(command, optionsOrCb);
174
+ }
175
+ else if (typeof cb === "function") {
176
+ if (typeof optionsOrCb !== "object")
177
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
178
+ this.send(command, optionsOrCb || {}, cb);
179
+ }
180
+ else {
181
+ return this.send(command, optionsOrCb);
182
+ }
183
+ };
164
184
  Connect.prototype.associateInstanceStorageConfig = function (args, optionsOrCb, cb) {
165
185
  var command = new AssociateInstanceStorageConfigCommand(args);
166
186
  if (typeof optionsOrCb === "function") {
@@ -427,6 +447,20 @@ var Connect = (function (_super) {
427
447
  return this.send(command, optionsOrCb);
428
448
  }
429
449
  };
450
+ Connect.prototype.createVocabulary = function (args, optionsOrCb, cb) {
451
+ var command = new CreateVocabularyCommand(args);
452
+ if (typeof optionsOrCb === "function") {
453
+ this.send(command, optionsOrCb);
454
+ }
455
+ else if (typeof cb === "function") {
456
+ if (typeof optionsOrCb !== "object")
457
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
458
+ this.send(command, optionsOrCb || {}, cb);
459
+ }
460
+ else {
461
+ return this.send(command, optionsOrCb);
462
+ }
463
+ };
430
464
  Connect.prototype.deleteContactFlow = function (args, optionsOrCb, cb) {
431
465
  var command = new DeleteContactFlowCommand(args);
432
466
  if (typeof optionsOrCb === "function") {
@@ -567,6 +601,20 @@ var Connect = (function (_super) {
567
601
  return this.send(command, optionsOrCb);
568
602
  }
569
603
  };
604
+ Connect.prototype.deleteVocabulary = function (args, optionsOrCb, cb) {
605
+ var command = new DeleteVocabularyCommand(args);
606
+ if (typeof optionsOrCb === "function") {
607
+ this.send(command, optionsOrCb);
608
+ }
609
+ else if (typeof cb === "function") {
610
+ if (typeof optionsOrCb !== "object")
611
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
612
+ this.send(command, optionsOrCb || {}, cb);
613
+ }
614
+ else {
615
+ return this.send(command, optionsOrCb);
616
+ }
617
+ };
570
618
  Connect.prototype.describeAgentStatus = function (args, optionsOrCb, cb) {
571
619
  var command = new DescribeAgentStatusCommand(args);
572
620
  if (typeof optionsOrCb === "function") {
@@ -777,6 +825,20 @@ var Connect = (function (_super) {
777
825
  return this.send(command, optionsOrCb);
778
826
  }
779
827
  };
828
+ Connect.prototype.describeVocabulary = function (args, optionsOrCb, cb) {
829
+ var command = new DescribeVocabularyCommand(args);
830
+ if (typeof optionsOrCb === "function") {
831
+ this.send(command, optionsOrCb);
832
+ }
833
+ else if (typeof cb === "function") {
834
+ if (typeof optionsOrCb !== "object")
835
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
836
+ this.send(command, optionsOrCb || {}, cb);
837
+ }
838
+ else {
839
+ return this.send(command, optionsOrCb);
840
+ }
841
+ };
780
842
  Connect.prototype.disassociateApprovedOrigin = function (args, optionsOrCb, cb) {
781
843
  var command = new DisassociateApprovedOriginCommand(args);
782
844
  if (typeof optionsOrCb === "function") {
@@ -1029,6 +1091,20 @@ var Connect = (function (_super) {
1029
1091
  return this.send(command, optionsOrCb);
1030
1092
  }
1031
1093
  };
1094
+ Connect.prototype.listDefaultVocabularies = function (args, optionsOrCb, cb) {
1095
+ var command = new ListDefaultVocabulariesCommand(args);
1096
+ if (typeof optionsOrCb === "function") {
1097
+ this.send(command, optionsOrCb);
1098
+ }
1099
+ else if (typeof cb === "function") {
1100
+ if (typeof optionsOrCb !== "object")
1101
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
1102
+ this.send(command, optionsOrCb || {}, cb);
1103
+ }
1104
+ else {
1105
+ return this.send(command, optionsOrCb);
1106
+ }
1107
+ };
1032
1108
  Connect.prototype.listHoursOfOperations = function (args, optionsOrCb, cb) {
1033
1109
  var command = new ListHoursOfOperationsCommand(args);
1034
1110
  if (typeof optionsOrCb === "function") {
@@ -1337,6 +1413,20 @@ var Connect = (function (_super) {
1337
1413
  return this.send(command, optionsOrCb);
1338
1414
  }
1339
1415
  };
1416
+ Connect.prototype.searchVocabularies = function (args, optionsOrCb, cb) {
1417
+ var command = new SearchVocabulariesCommand(args);
1418
+ if (typeof optionsOrCb === "function") {
1419
+ this.send(command, optionsOrCb);
1420
+ }
1421
+ else if (typeof cb === "function") {
1422
+ if (typeof optionsOrCb !== "object")
1423
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
1424
+ this.send(command, optionsOrCb || {}, cb);
1425
+ }
1426
+ else {
1427
+ return this.send(command, optionsOrCb);
1428
+ }
1429
+ };
1340
1430
  Connect.prototype.startChatContact = function (args, optionsOrCb, cb) {
1341
1431
  var command = new StartChatContactCommand(args);
1342
1432
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { AssociateDefaultVocabularyRequest, AssociateDefaultVocabularyResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1AssociateDefaultVocabularyCommand, serializeAws_restJson1AssociateDefaultVocabularyCommand, } from "../protocols/Aws_restJson1";
6
+ var AssociateDefaultVocabularyCommand = (function (_super) {
7
+ __extends(AssociateDefaultVocabularyCommand, _super);
8
+ function AssociateDefaultVocabularyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ AssociateDefaultVocabularyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "AssociateDefaultVocabularyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: AssociateDefaultVocabularyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: AssociateDefaultVocabularyResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ AssociateDefaultVocabularyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1AssociateDefaultVocabularyCommand(input, context);
33
+ };
34
+ AssociateDefaultVocabularyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1AssociateDefaultVocabularyCommand(output, context);
36
+ };
37
+ return AssociateDefaultVocabularyCommand;
38
+ }($Command));
39
+ export { AssociateDefaultVocabularyCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateVocabularyRequest, CreateVocabularyResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateVocabularyCommand, serializeAws_restJson1CreateVocabularyCommand, } from "../protocols/Aws_restJson1";
6
+ var CreateVocabularyCommand = (function (_super) {
7
+ __extends(CreateVocabularyCommand, _super);
8
+ function CreateVocabularyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateVocabularyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "CreateVocabularyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateVocabularyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateVocabularyResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateVocabularyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1CreateVocabularyCommand(input, context);
33
+ };
34
+ CreateVocabularyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1CreateVocabularyCommand(output, context);
36
+ };
37
+ return CreateVocabularyCommand;
38
+ }($Command));
39
+ export { CreateVocabularyCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteVocabularyRequest, DeleteVocabularyResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteVocabularyCommand, serializeAws_restJson1DeleteVocabularyCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteVocabularyCommand = (function (_super) {
7
+ __extends(DeleteVocabularyCommand, _super);
8
+ function DeleteVocabularyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteVocabularyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "DeleteVocabularyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteVocabularyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteVocabularyResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteVocabularyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteVocabularyCommand(input, context);
33
+ };
34
+ DeleteVocabularyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteVocabularyCommand(output, context);
36
+ };
37
+ return DeleteVocabularyCommand;
38
+ }($Command));
39
+ export { DeleteVocabularyCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeVocabularyRequest, DescribeVocabularyResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeVocabularyCommand, serializeAws_restJson1DescribeVocabularyCommand, } from "../protocols/Aws_restJson1";
6
+ var DescribeVocabularyCommand = (function (_super) {
7
+ __extends(DescribeVocabularyCommand, _super);
8
+ function DescribeVocabularyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeVocabularyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "DescribeVocabularyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeVocabularyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeVocabularyResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeVocabularyCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DescribeVocabularyCommand(input, context);
33
+ };
34
+ DescribeVocabularyCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DescribeVocabularyCommand(output, context);
36
+ };
37
+ return DescribeVocabularyCommand;
38
+ }($Command));
39
+ export { DescribeVocabularyCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListDefaultVocabulariesRequest, ListDefaultVocabulariesResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListDefaultVocabulariesCommand, serializeAws_restJson1ListDefaultVocabulariesCommand, } from "../protocols/Aws_restJson1";
6
+ var ListDefaultVocabulariesCommand = (function (_super) {
7
+ __extends(ListDefaultVocabulariesCommand, _super);
8
+ function ListDefaultVocabulariesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListDefaultVocabulariesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "ListDefaultVocabulariesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListDefaultVocabulariesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListDefaultVocabulariesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListDefaultVocabulariesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListDefaultVocabulariesCommand(input, context);
33
+ };
34
+ ListDefaultVocabulariesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListDefaultVocabulariesCommand(output, context);
36
+ };
37
+ return ListDefaultVocabulariesCommand;
38
+ }($Command));
39
+ export { ListDefaultVocabulariesCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { SearchVocabulariesRequest, SearchVocabulariesResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1SearchVocabulariesCommand, serializeAws_restJson1SearchVocabulariesCommand, } from "../protocols/Aws_restJson1";
6
+ var SearchVocabulariesCommand = (function (_super) {
7
+ __extends(SearchVocabulariesCommand, _super);
8
+ function SearchVocabulariesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ SearchVocabulariesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "SearchVocabulariesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: SearchVocabulariesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: SearchVocabulariesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ SearchVocabulariesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1SearchVocabulariesCommand(input, context);
33
+ };
34
+ SearchVocabulariesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1SearchVocabulariesCommand(output, context);
36
+ };
37
+ return SearchVocabulariesCommand;
38
+ }($Command));
39
+ export { SearchVocabulariesCommand };
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { StartOutboundVoiceContactRequest, StartOutboundVoiceContactResponse } from "../models/models_0";
4
+ import { StartOutboundVoiceContactRequest, StartOutboundVoiceContactResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1StartOutboundVoiceContactCommand, serializeAws_restJson1StartOutboundVoiceContactCommand, } from "../protocols/Aws_restJson1";
6
6
  var StartOutboundVoiceContactCommand = (function (_super) {
7
7
  __extends(StartOutboundVoiceContactCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { StartTaskContactRequest, StartTaskContactResponse } from "../models/models_0";
4
+ import { StartTaskContactRequest, StartTaskContactResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1StartTaskContactCommand, serializeAws_restJson1StartTaskContactCommand, } from "../protocols/Aws_restJson1";
6
6
  var StartTaskContactCommand = (function (_super) {
7
7
  __extends(StartTaskContactCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { StopContactRequest, StopContactResponse } from "../models/models_0";
4
+ import { StopContactRequest, StopContactResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1StopContactCommand, serializeAws_restJson1StopContactCommand, } from "../protocols/Aws_restJson1";
6
6
  var StopContactCommand = (function (_super) {
7
7
  __extends(StopContactCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { StopContactRecordingRequest, StopContactRecordingResponse } from "../models/models_0";
4
+ import { StopContactRecordingRequest, StopContactRecordingResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1StopContactRecordingCommand, serializeAws_restJson1StopContactRecordingCommand, } from "../protocols/Aws_restJson1";
6
6
  var StopContactRecordingCommand = (function (_super) {
7
7
  __extends(StopContactRecordingCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { StopContactStreamingRequest, StopContactStreamingResponse } from "../models/models_0";
4
+ import { StopContactStreamingRequest, StopContactStreamingResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1StopContactStreamingCommand, serializeAws_restJson1StopContactStreamingCommand, } from "../protocols/Aws_restJson1";
6
6
  var StopContactStreamingCommand = (function (_super) {
7
7
  __extends(StopContactStreamingCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { SuspendContactRecordingRequest, SuspendContactRecordingResponse } from "../models/models_0";
4
+ import { SuspendContactRecordingRequest, SuspendContactRecordingResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1SuspendContactRecordingCommand, serializeAws_restJson1SuspendContactRecordingCommand, } from "../protocols/Aws_restJson1";
6
6
  var SuspendContactRecordingCommand = (function (_super) {
7
7
  __extends(SuspendContactRecordingCommand, _super);
@@ -1,5 +1,6 @@
1
1
  export * from "./AssociateApprovedOriginCommand";
2
2
  export * from "./AssociateBotCommand";
3
+ export * from "./AssociateDefaultVocabularyCommand";
3
4
  export * from "./AssociateInstanceStorageConfigCommand";
4
5
  export * from "./AssociateLambdaFunctionCommand";
5
6
  export * from "./AssociateLexBotCommand";
@@ -19,6 +20,7 @@ export * from "./CreateSecurityProfileCommand";
19
20
  export * from "./CreateUseCaseCommand";
20
21
  export * from "./CreateUserCommand";
21
22
  export * from "./CreateUserHierarchyGroupCommand";
23
+ export * from "./CreateVocabularyCommand";
22
24
  export * from "./DeleteContactFlowCommand";
23
25
  export * from "./DeleteContactFlowModuleCommand";
24
26
  export * from "./DeleteHoursOfOperationCommand";
@@ -29,6 +31,7 @@ export * from "./DeleteSecurityProfileCommand";
29
31
  export * from "./DeleteUseCaseCommand";
30
32
  export * from "./DeleteUserCommand";
31
33
  export * from "./DeleteUserHierarchyGroupCommand";
34
+ export * from "./DeleteVocabularyCommand";
32
35
  export * from "./DescribeAgentStatusCommand";
33
36
  export * from "./DescribeContactCommand";
34
37
  export * from "./DescribeContactFlowCommand";
@@ -44,6 +47,7 @@ export * from "./DescribeSecurityProfileCommand";
44
47
  export * from "./DescribeUserCommand";
45
48
  export * from "./DescribeUserHierarchyGroupCommand";
46
49
  export * from "./DescribeUserHierarchyStructureCommand";
50
+ export * from "./DescribeVocabularyCommand";
47
51
  export * from "./DisassociateApprovedOriginCommand";
48
52
  export * from "./DisassociateBotCommand";
49
53
  export * from "./DisassociateInstanceStorageConfigCommand";
@@ -62,6 +66,7 @@ export * from "./ListBotsCommand";
62
66
  export * from "./ListContactFlowModulesCommand";
63
67
  export * from "./ListContactFlowsCommand";
64
68
  export * from "./ListContactReferencesCommand";
69
+ export * from "./ListDefaultVocabulariesCommand";
65
70
  export * from "./ListHoursOfOperationsCommand";
66
71
  export * from "./ListInstanceAttributesCommand";
67
72
  export * from "./ListInstanceStorageConfigsCommand";
@@ -84,6 +89,7 @@ export * from "./ListUseCasesCommand";
84
89
  export * from "./ListUserHierarchyGroupsCommand";
85
90
  export * from "./ListUsersCommand";
86
91
  export * from "./ResumeContactRecordingCommand";
92
+ export * from "./SearchVocabulariesCommand";
87
93
  export * from "./StartChatContactCommand";
88
94
  export * from "./StartContactRecordingCommand";
89
95
  export * from "./StartContactStreamingCommand";