@aws-sdk/client-connect 3.100.0 → 3.104.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 (105) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/Connect.js +90 -0
  3. package/dist-cjs/commands/CreateTaskTemplateCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteTaskTemplateCommand.js +36 -0
  5. package/dist-cjs/commands/GetTaskTemplateCommand.js +36 -0
  6. package/dist-cjs/commands/ListSecurityKeysCommand.js +3 -3
  7. package/dist-cjs/commands/ListSecurityProfilePermissionsCommand.js +3 -3
  8. package/dist-cjs/commands/ListSecurityProfilesCommand.js +3 -3
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  10. package/dist-cjs/commands/ListTaskTemplatesCommand.js +36 -0
  11. package/dist-cjs/commands/ListUseCasesCommand.js +3 -3
  12. package/dist-cjs/commands/ListUserHierarchyGroupsCommand.js +3 -3
  13. package/dist-cjs/commands/ListUsersCommand.js +3 -3
  14. package/dist-cjs/commands/PutUserStatusCommand.js +3 -3
  15. package/dist-cjs/commands/ReleasePhoneNumberCommand.js +2 -2
  16. package/dist-cjs/commands/ResumeContactRecordingCommand.js +3 -3
  17. package/dist-cjs/commands/TransferContactCommand.js +36 -0
  18. package/dist-cjs/commands/UpdateTaskTemplateCommand.js +36 -0
  19. package/dist-cjs/commands/index.js +6 -0
  20. package/dist-cjs/models/models_0.js +183 -143
  21. package/dist-cjs/models/models_1.js +183 -2
  22. package/dist-cjs/pagination/ListTaskTemplatesPaginator.js +36 -0
  23. package/dist-cjs/pagination/index.js +1 -0
  24. package/dist-cjs/protocols/Aws_restJson1.js +1044 -38
  25. package/dist-es/Connect.js +90 -0
  26. package/dist-es/commands/CreateTaskTemplateCommand.js +39 -0
  27. package/dist-es/commands/DeleteTaskTemplateCommand.js +39 -0
  28. package/dist-es/commands/GetTaskTemplateCommand.js +39 -0
  29. package/dist-es/commands/ListSecurityKeysCommand.js +1 -1
  30. package/dist-es/commands/ListSecurityProfilePermissionsCommand.js +1 -1
  31. package/dist-es/commands/ListSecurityProfilesCommand.js +1 -1
  32. package/dist-es/commands/ListTagsForResourceCommand.js +1 -1
  33. package/dist-es/commands/ListTaskTemplatesCommand.js +39 -0
  34. package/dist-es/commands/ListUseCasesCommand.js +1 -1
  35. package/dist-es/commands/ListUserHierarchyGroupsCommand.js +1 -1
  36. package/dist-es/commands/ListUsersCommand.js +1 -1
  37. package/dist-es/commands/PutUserStatusCommand.js +1 -1
  38. package/dist-es/commands/ReleasePhoneNumberCommand.js +1 -1
  39. package/dist-es/commands/ResumeContactRecordingCommand.js +1 -1
  40. package/dist-es/commands/TransferContactCommand.js +39 -0
  41. package/dist-es/commands/UpdateTaskTemplateCommand.js +39 -0
  42. package/dist-es/commands/index.js +6 -0
  43. package/dist-es/models/models_0.js +139 -92
  44. package/dist-es/models/models_1.js +120 -0
  45. package/dist-es/pagination/ListTaskTemplatesPaginator.js +75 -0
  46. package/dist-es/pagination/index.js +1 -0
  47. package/dist-es/protocols/Aws_restJson1.js +1175 -54
  48. package/dist-types/Connect.d.ts +97 -22
  49. package/dist-types/ConnectClient.d.ts +8 -2
  50. package/dist-types/commands/AssociateDefaultVocabularyCommand.d.ts +2 -1
  51. package/dist-types/commands/CreateTaskTemplateCommand.d.ts +35 -0
  52. package/dist-types/commands/DeleteTaskTemplateCommand.d.ts +35 -0
  53. package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +2 -1
  54. package/dist-types/commands/GetTaskTemplateCommand.d.ts +35 -0
  55. package/dist-types/commands/ListPhoneNumbersV2Command.d.ts +1 -1
  56. package/dist-types/commands/ListSecurityKeysCommand.d.ts +1 -1
  57. package/dist-types/commands/ListSecurityProfilePermissionsCommand.d.ts +1 -1
  58. package/dist-types/commands/ListSecurityProfilesCommand.d.ts +1 -1
  59. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  60. package/dist-types/commands/ListTaskTemplatesCommand.d.ts +35 -0
  61. package/dist-types/commands/ListUseCasesCommand.d.ts +1 -1
  62. package/dist-types/commands/ListUserHierarchyGroupsCommand.d.ts +1 -1
  63. package/dist-types/commands/ListUsersCommand.d.ts +1 -1
  64. package/dist-types/commands/PutUserStatusCommand.d.ts +5 -6
  65. package/dist-types/commands/ReleasePhoneNumberCommand.d.ts +1 -1
  66. package/dist-types/commands/ResumeContactRecordingCommand.d.ts +1 -1
  67. package/dist-types/commands/SearchVocabulariesCommand.d.ts +2 -1
  68. package/dist-types/commands/StartChatContactCommand.d.ts +3 -3
  69. package/dist-types/commands/StartContactRecordingCommand.d.ts +9 -7
  70. package/dist-types/commands/StopContactCommand.d.ts +3 -1
  71. package/dist-types/commands/TagResourceCommand.d.ts +2 -1
  72. package/dist-types/commands/TransferContactCommand.d.ts +58 -0
  73. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +2 -1
  74. package/dist-types/commands/UpdateTaskTemplateCommand.d.ts +37 -0
  75. package/dist-types/commands/index.d.ts +6 -0
  76. package/dist-types/models/models_0.d.ts +573 -470
  77. package/dist-types/models/models_1.d.ts +719 -26
  78. package/dist-types/pagination/ListTaskTemplatesPaginator.d.ts +4 -0
  79. package/dist-types/pagination/index.d.ts +1 -0
  80. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  81. package/dist-types/ts3.4/Connect.d.ts +30 -0
  82. package/dist-types/ts3.4/ConnectClient.d.ts +8 -2
  83. package/dist-types/ts3.4/commands/CreateTaskTemplateCommand.d.ts +17 -0
  84. package/dist-types/ts3.4/commands/DeleteTaskTemplateCommand.d.ts +17 -0
  85. package/dist-types/ts3.4/commands/GetTaskTemplateCommand.d.ts +17 -0
  86. package/dist-types/ts3.4/commands/ListSecurityKeysCommand.d.ts +1 -1
  87. package/dist-types/ts3.4/commands/ListSecurityProfilePermissionsCommand.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/ListSecurityProfilesCommand.d.ts +1 -1
  89. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  90. package/dist-types/ts3.4/commands/ListTaskTemplatesCommand.d.ts +17 -0
  91. package/dist-types/ts3.4/commands/ListUseCasesCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/ListUserHierarchyGroupsCommand.d.ts +1 -1
  93. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +1 -1
  94. package/dist-types/ts3.4/commands/PutUserStatusCommand.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/ReleasePhoneNumberCommand.d.ts +1 -1
  96. package/dist-types/ts3.4/commands/ResumeContactRecordingCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/TransferContactCommand.d.ts +17 -0
  98. package/dist-types/ts3.4/commands/UpdateTaskTemplateCommand.d.ts +17 -0
  99. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  100. package/dist-types/ts3.4/models/models_0.d.ts +333 -254
  101. package/dist-types/ts3.4/models/models_1.d.ts +388 -2
  102. package/dist-types/ts3.4/pagination/ListTaskTemplatesPaginator.d.ts +4 -0
  103. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  104. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -0
  105. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.104.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.103.0...v3.104.0) (2022-06-02)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-connect:** This release adds the following features: 1) New APIs to manage (create, list, update) task template resources, 2) Updates to startTaskContact API to support task templates, and 3) new TransferContact API to programmatically transfer in-progress tasks via a contact flow. ([e10c8ed](https://github.com/aws/aws-sdk-js-v3/commit/e10c8edbdff1c5c94d95951ed3bd175123f0bd0d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-connect
@@ -22,6 +22,7 @@ const CreateQueueCommand_1 = require("./commands/CreateQueueCommand");
22
22
  const CreateQuickConnectCommand_1 = require("./commands/CreateQuickConnectCommand");
23
23
  const CreateRoutingProfileCommand_1 = require("./commands/CreateRoutingProfileCommand");
24
24
  const CreateSecurityProfileCommand_1 = require("./commands/CreateSecurityProfileCommand");
25
+ const CreateTaskTemplateCommand_1 = require("./commands/CreateTaskTemplateCommand");
25
26
  const CreateUseCaseCommand_1 = require("./commands/CreateUseCaseCommand");
26
27
  const CreateUserCommand_1 = require("./commands/CreateUserCommand");
27
28
  const CreateUserHierarchyGroupCommand_1 = require("./commands/CreateUserHierarchyGroupCommand");
@@ -33,6 +34,7 @@ const DeleteInstanceCommand_1 = require("./commands/DeleteInstanceCommand");
33
34
  const DeleteIntegrationAssociationCommand_1 = require("./commands/DeleteIntegrationAssociationCommand");
34
35
  const DeleteQuickConnectCommand_1 = require("./commands/DeleteQuickConnectCommand");
35
36
  const DeleteSecurityProfileCommand_1 = require("./commands/DeleteSecurityProfileCommand");
37
+ const DeleteTaskTemplateCommand_1 = require("./commands/DeleteTaskTemplateCommand");
36
38
  const DeleteUseCaseCommand_1 = require("./commands/DeleteUseCaseCommand");
37
39
  const DeleteUserCommand_1 = require("./commands/DeleteUserCommand");
38
40
  const DeleteUserHierarchyGroupCommand_1 = require("./commands/DeleteUserHierarchyGroupCommand");
@@ -67,6 +69,7 @@ const GetContactAttributesCommand_1 = require("./commands/GetContactAttributesCo
67
69
  const GetCurrentMetricDataCommand_1 = require("./commands/GetCurrentMetricDataCommand");
68
70
  const GetFederationTokenCommand_1 = require("./commands/GetFederationTokenCommand");
69
71
  const GetMetricDataCommand_1 = require("./commands/GetMetricDataCommand");
72
+ const GetTaskTemplateCommand_1 = require("./commands/GetTaskTemplateCommand");
70
73
  const ListAgentStatusesCommand_1 = require("./commands/ListAgentStatusesCommand");
71
74
  const ListApprovedOriginsCommand_1 = require("./commands/ListApprovedOriginsCommand");
72
75
  const ListBotsCommand_1 = require("./commands/ListBotsCommand");
@@ -93,6 +96,7 @@ const ListSecurityKeysCommand_1 = require("./commands/ListSecurityKeysCommand");
93
96
  const ListSecurityProfilePermissionsCommand_1 = require("./commands/ListSecurityProfilePermissionsCommand");
94
97
  const ListSecurityProfilesCommand_1 = require("./commands/ListSecurityProfilesCommand");
95
98
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
99
+ const ListTaskTemplatesCommand_1 = require("./commands/ListTaskTemplatesCommand");
96
100
  const ListUseCasesCommand_1 = require("./commands/ListUseCasesCommand");
97
101
  const ListUserHierarchyGroupsCommand_1 = require("./commands/ListUserHierarchyGroupsCommand");
98
102
  const ListUsersCommand_1 = require("./commands/ListUsersCommand");
@@ -112,6 +116,7 @@ const StopContactRecordingCommand_1 = require("./commands/StopContactRecordingCo
112
116
  const StopContactStreamingCommand_1 = require("./commands/StopContactStreamingCommand");
113
117
  const SuspendContactRecordingCommand_1 = require("./commands/SuspendContactRecordingCommand");
114
118
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
119
+ const TransferContactCommand_1 = require("./commands/TransferContactCommand");
115
120
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
116
121
  const UpdateAgentStatusCommand_1 = require("./commands/UpdateAgentStatusCommand");
117
122
  const UpdateContactAttributesCommand_1 = require("./commands/UpdateContactAttributesCommand");
@@ -138,6 +143,7 @@ const UpdateRoutingProfileDefaultOutboundQueueCommand_1 = require("./commands/Up
138
143
  const UpdateRoutingProfileNameCommand_1 = require("./commands/UpdateRoutingProfileNameCommand");
139
144
  const UpdateRoutingProfileQueuesCommand_1 = require("./commands/UpdateRoutingProfileQueuesCommand");
140
145
  const UpdateSecurityProfileCommand_1 = require("./commands/UpdateSecurityProfileCommand");
146
+ const UpdateTaskTemplateCommand_1 = require("./commands/UpdateTaskTemplateCommand");
141
147
  const UpdateUserHierarchyCommand_1 = require("./commands/UpdateUserHierarchyCommand");
142
148
  const UpdateUserHierarchyGroupNameCommand_1 = require("./commands/UpdateUserHierarchyGroupNameCommand");
143
149
  const UpdateUserHierarchyStructureCommand_1 = require("./commands/UpdateUserHierarchyStructureCommand");
@@ -441,6 +447,20 @@ class Connect extends ConnectClient_1.ConnectClient {
441
447
  return this.send(command, optionsOrCb);
442
448
  }
443
449
  }
450
+ createTaskTemplate(args, optionsOrCb, cb) {
451
+ const command = new CreateTaskTemplateCommand_1.CreateTaskTemplateCommand(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
+ }
444
464
  createUseCase(args, optionsOrCb, cb) {
445
465
  const command = new CreateUseCaseCommand_1.CreateUseCaseCommand(args);
446
466
  if (typeof optionsOrCb === "function") {
@@ -595,6 +615,20 @@ class Connect extends ConnectClient_1.ConnectClient {
595
615
  return this.send(command, optionsOrCb);
596
616
  }
597
617
  }
618
+ deleteTaskTemplate(args, optionsOrCb, cb) {
619
+ const command = new DeleteTaskTemplateCommand_1.DeleteTaskTemplateCommand(args);
620
+ if (typeof optionsOrCb === "function") {
621
+ this.send(command, optionsOrCb);
622
+ }
623
+ else if (typeof cb === "function") {
624
+ if (typeof optionsOrCb !== "object")
625
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
626
+ this.send(command, optionsOrCb || {}, cb);
627
+ }
628
+ else {
629
+ return this.send(command, optionsOrCb);
630
+ }
631
+ }
598
632
  deleteUseCase(args, optionsOrCb, cb) {
599
633
  const command = new DeleteUseCaseCommand_1.DeleteUseCaseCommand(args);
600
634
  if (typeof optionsOrCb === "function") {
@@ -1071,6 +1105,20 @@ class Connect extends ConnectClient_1.ConnectClient {
1071
1105
  return this.send(command, optionsOrCb);
1072
1106
  }
1073
1107
  }
1108
+ getTaskTemplate(args, optionsOrCb, cb) {
1109
+ const command = new GetTaskTemplateCommand_1.GetTaskTemplateCommand(args);
1110
+ if (typeof optionsOrCb === "function") {
1111
+ this.send(command, optionsOrCb);
1112
+ }
1113
+ else if (typeof cb === "function") {
1114
+ if (typeof optionsOrCb !== "object")
1115
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1116
+ this.send(command, optionsOrCb || {}, cb);
1117
+ }
1118
+ else {
1119
+ return this.send(command, optionsOrCb);
1120
+ }
1121
+ }
1074
1122
  listAgentStatuses(args, optionsOrCb, cb) {
1075
1123
  const command = new ListAgentStatusesCommand_1.ListAgentStatusesCommand(args);
1076
1124
  if (typeof optionsOrCb === "function") {
@@ -1435,6 +1483,20 @@ class Connect extends ConnectClient_1.ConnectClient {
1435
1483
  return this.send(command, optionsOrCb);
1436
1484
  }
1437
1485
  }
1486
+ listTaskTemplates(args, optionsOrCb, cb) {
1487
+ const command = new ListTaskTemplatesCommand_1.ListTaskTemplatesCommand(args);
1488
+ if (typeof optionsOrCb === "function") {
1489
+ this.send(command, optionsOrCb);
1490
+ }
1491
+ else if (typeof cb === "function") {
1492
+ if (typeof optionsOrCb !== "object")
1493
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1494
+ this.send(command, optionsOrCb || {}, cb);
1495
+ }
1496
+ else {
1497
+ return this.send(command, optionsOrCb);
1498
+ }
1499
+ }
1438
1500
  listUseCases(args, optionsOrCb, cb) {
1439
1501
  const command = new ListUseCasesCommand_1.ListUseCasesCommand(args);
1440
1502
  if (typeof optionsOrCb === "function") {
@@ -1701,6 +1763,20 @@ class Connect extends ConnectClient_1.ConnectClient {
1701
1763
  return this.send(command, optionsOrCb);
1702
1764
  }
1703
1765
  }
1766
+ transferContact(args, optionsOrCb, cb) {
1767
+ const command = new TransferContactCommand_1.TransferContactCommand(args);
1768
+ if (typeof optionsOrCb === "function") {
1769
+ this.send(command, optionsOrCb);
1770
+ }
1771
+ else if (typeof cb === "function") {
1772
+ if (typeof optionsOrCb !== "object")
1773
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1774
+ this.send(command, optionsOrCb || {}, cb);
1775
+ }
1776
+ else {
1777
+ return this.send(command, optionsOrCb);
1778
+ }
1779
+ }
1704
1780
  untagResource(args, optionsOrCb, cb) {
1705
1781
  const command = new UntagResourceCommand_1.UntagResourceCommand(args);
1706
1782
  if (typeof optionsOrCb === "function") {
@@ -2065,6 +2141,20 @@ class Connect extends ConnectClient_1.ConnectClient {
2065
2141
  return this.send(command, optionsOrCb);
2066
2142
  }
2067
2143
  }
2144
+ updateTaskTemplate(args, optionsOrCb, cb) {
2145
+ const command = new UpdateTaskTemplateCommand_1.UpdateTaskTemplateCommand(args);
2146
+ if (typeof optionsOrCb === "function") {
2147
+ this.send(command, optionsOrCb);
2148
+ }
2149
+ else if (typeof cb === "function") {
2150
+ if (typeof optionsOrCb !== "object")
2151
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2152
+ this.send(command, optionsOrCb || {}, cb);
2153
+ }
2154
+ else {
2155
+ return this.send(command, optionsOrCb);
2156
+ }
2157
+ }
2068
2158
  updateUserHierarchy(args, optionsOrCb, cb) {
2069
2159
  const command = new UpdateUserHierarchyCommand_1.UpdateUserHierarchyCommand(args);
2070
2160
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateTaskTemplateCommand = 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 CreateTaskTemplateCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, 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 = "CreateTaskTemplateCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateTaskTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateTaskTemplateResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1CreateTaskTemplateCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1CreateTaskTemplateCommand)(output, context);
34
+ }
35
+ }
36
+ exports.CreateTaskTemplateCommand = CreateTaskTemplateCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteTaskTemplateCommand = 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 DeleteTaskTemplateCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, 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 = "DeleteTaskTemplateCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteTaskTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DeleteTaskTemplateResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1DeleteTaskTemplateCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteTaskTemplateCommand)(output, context);
34
+ }
35
+ }
36
+ exports.DeleteTaskTemplateCommand = DeleteTaskTemplateCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetTaskTemplateCommand = 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 GetTaskTemplateCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, 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 = "GetTaskTemplateCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.GetTaskTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetTaskTemplateResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1GetTaskTemplateCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1GetTaskTemplateCommand)(output, context);
34
+ }
35
+ }
36
+ exports.GetTaskTemplateCommand = GetTaskTemplateCommand;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListSecurityKeysCommand = 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 ListSecurityKeysCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class ListSecurityKeysCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.ListSecurityKeysRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.ListSecurityKeysResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.ListSecurityKeysRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.ListSecurityKeysResponse.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.ListSecurityProfilePermissionsCommand = 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 ListSecurityProfilePermissionsCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class ListSecurityProfilePermissionsCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.ListSecurityProfilePermissionsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.ListSecurityProfilePermissionsResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.ListSecurityProfilePermissionsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.ListSecurityProfilePermissionsResponse.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.ListSecurityProfilesCommand = 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 ListSecurityProfilesCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class ListSecurityProfilesCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.ListSecurityProfilesRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.ListSecurityProfilesResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.ListSecurityProfilesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.ListSecurityProfilesResponse.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.ListTagsForResourceCommand = 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 ListTagsForResourceCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class ListTagsForResourceCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.ListTagsForResourceRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.ListTagsForResourceResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.ListTagsForResourceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.ListTagsForResourceResponse.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListTaskTemplatesCommand = 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 ListTaskTemplatesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, 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 = "ListTaskTemplatesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.ListTaskTemplatesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.ListTaskTemplatesResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListTaskTemplatesCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListTaskTemplatesCommand)(output, context);
34
+ }
35
+ }
36
+ exports.ListTaskTemplatesCommand = ListTaskTemplatesCommand;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListUseCasesCommand = 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 ListUseCasesCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class ListUseCasesCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.ListUseCasesRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.ListUseCasesResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.ListUseCasesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.ListUseCasesResponse.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.ListUserHierarchyGroupsCommand = 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 ListUserHierarchyGroupsCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class ListUserHierarchyGroupsCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.ListUserHierarchyGroupsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.ListUserHierarchyGroupsResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.ListUserHierarchyGroupsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.ListUserHierarchyGroupsResponse.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.ListUsersCommand = 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 ListUsersCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class ListUsersCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.ListUsersRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.ListUsersResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.ListUsersRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.ListUsersResponse.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.PutUserStatusCommand = 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 PutUserStatusCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class PutUserStatusCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.PutUserStatusRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.PutUserStatusResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.PutUserStatusRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.PutUserStatusResponse.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.ReleasePhoneNumberCommand = 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 ReleasePhoneNumberCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class ReleasePhoneNumberCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.ReleasePhoneNumberRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.ReleasePhoneNumberRequest.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.ResumeContactRecordingCommand = 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 ResumeContactRecordingCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class ResumeContactRecordingCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.ResumeContactRecordingRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.ResumeContactRecordingResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.ResumeContactRecordingRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.ResumeContactRecordingResponse.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransferContactCommand = 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 TransferContactCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, 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 = "TransferContactCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.TransferContactRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.TransferContactResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1TransferContactCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1TransferContactCommand)(output, context);
34
+ }
35
+ }
36
+ exports.TransferContactCommand = TransferContactCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTaskTemplateCommand = 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 UpdateTaskTemplateCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, 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 = "UpdateTaskTemplateCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.UpdateTaskTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.UpdateTaskTemplateResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1UpdateTaskTemplateCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateTaskTemplateCommand)(output, context);
34
+ }
35
+ }
36
+ exports.UpdateTaskTemplateCommand = UpdateTaskTemplateCommand;