@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
@@ -20,6 +20,7 @@ import { CreateQueueCommand } from "./commands/CreateQueueCommand";
20
20
  import { CreateQuickConnectCommand, } from "./commands/CreateQuickConnectCommand";
21
21
  import { CreateRoutingProfileCommand, } from "./commands/CreateRoutingProfileCommand";
22
22
  import { CreateSecurityProfileCommand, } from "./commands/CreateSecurityProfileCommand";
23
+ import { CreateTaskTemplateCommand, } from "./commands/CreateTaskTemplateCommand";
23
24
  import { CreateUseCaseCommand, } from "./commands/CreateUseCaseCommand";
24
25
  import { CreateUserCommand } from "./commands/CreateUserCommand";
25
26
  import { CreateUserHierarchyGroupCommand, } from "./commands/CreateUserHierarchyGroupCommand";
@@ -31,6 +32,7 @@ import { DeleteInstanceCommand, } from "./commands/DeleteInstanceCommand";
31
32
  import { DeleteIntegrationAssociationCommand, } from "./commands/DeleteIntegrationAssociationCommand";
32
33
  import { DeleteQuickConnectCommand, } from "./commands/DeleteQuickConnectCommand";
33
34
  import { DeleteSecurityProfileCommand, } from "./commands/DeleteSecurityProfileCommand";
35
+ import { DeleteTaskTemplateCommand, } from "./commands/DeleteTaskTemplateCommand";
34
36
  import { DeleteUseCaseCommand, } from "./commands/DeleteUseCaseCommand";
35
37
  import { DeleteUserCommand } from "./commands/DeleteUserCommand";
36
38
  import { DeleteUserHierarchyGroupCommand, } from "./commands/DeleteUserHierarchyGroupCommand";
@@ -65,6 +67,7 @@ import { GetContactAttributesCommand, } from "./commands/GetContactAttributesCom
65
67
  import { GetCurrentMetricDataCommand, } from "./commands/GetCurrentMetricDataCommand";
66
68
  import { GetFederationTokenCommand, } from "./commands/GetFederationTokenCommand";
67
69
  import { GetMetricDataCommand, } from "./commands/GetMetricDataCommand";
70
+ import { GetTaskTemplateCommand, } from "./commands/GetTaskTemplateCommand";
68
71
  import { ListAgentStatusesCommand, } from "./commands/ListAgentStatusesCommand";
69
72
  import { ListApprovedOriginsCommand, } from "./commands/ListApprovedOriginsCommand";
70
73
  import { ListBotsCommand } from "./commands/ListBotsCommand";
@@ -91,6 +94,7 @@ import { ListSecurityKeysCommand, } from "./commands/ListSecurityKeysCommand";
91
94
  import { ListSecurityProfilePermissionsCommand, } from "./commands/ListSecurityProfilePermissionsCommand";
92
95
  import { ListSecurityProfilesCommand, } from "./commands/ListSecurityProfilesCommand";
93
96
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
97
+ import { ListTaskTemplatesCommand, } from "./commands/ListTaskTemplatesCommand";
94
98
  import { ListUseCasesCommand, } from "./commands/ListUseCasesCommand";
95
99
  import { ListUserHierarchyGroupsCommand, } from "./commands/ListUserHierarchyGroupsCommand";
96
100
  import { ListUsersCommand } from "./commands/ListUsersCommand";
@@ -110,6 +114,7 @@ import { StopContactRecordingCommand, } from "./commands/StopContactRecordingCom
110
114
  import { StopContactStreamingCommand, } from "./commands/StopContactStreamingCommand";
111
115
  import { SuspendContactRecordingCommand, } from "./commands/SuspendContactRecordingCommand";
112
116
  import { TagResourceCommand } from "./commands/TagResourceCommand";
117
+ import { TransferContactCommand, } from "./commands/TransferContactCommand";
113
118
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
114
119
  import { UpdateAgentStatusCommand, } from "./commands/UpdateAgentStatusCommand";
115
120
  import { UpdateContactAttributesCommand, } from "./commands/UpdateContactAttributesCommand";
@@ -136,6 +141,7 @@ import { UpdateRoutingProfileDefaultOutboundQueueCommand, } from "./commands/Upd
136
141
  import { UpdateRoutingProfileNameCommand, } from "./commands/UpdateRoutingProfileNameCommand";
137
142
  import { UpdateRoutingProfileQueuesCommand, } from "./commands/UpdateRoutingProfileQueuesCommand";
138
143
  import { UpdateSecurityProfileCommand, } from "./commands/UpdateSecurityProfileCommand";
144
+ import { UpdateTaskTemplateCommand, } from "./commands/UpdateTaskTemplateCommand";
139
145
  import { UpdateUserHierarchyCommand, } from "./commands/UpdateUserHierarchyCommand";
140
146
  import { UpdateUserHierarchyGroupNameCommand, } from "./commands/UpdateUserHierarchyGroupNameCommand";
141
147
  import { UpdateUserHierarchyStructureCommand, } from "./commands/UpdateUserHierarchyStructureCommand";
@@ -443,6 +449,20 @@ var Connect = (function (_super) {
443
449
  return this.send(command, optionsOrCb);
444
450
  }
445
451
  };
452
+ Connect.prototype.createTaskTemplate = function (args, optionsOrCb, cb) {
453
+ var command = new CreateTaskTemplateCommand(args);
454
+ if (typeof optionsOrCb === "function") {
455
+ this.send(command, optionsOrCb);
456
+ }
457
+ else if (typeof cb === "function") {
458
+ if (typeof optionsOrCb !== "object")
459
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
460
+ this.send(command, optionsOrCb || {}, cb);
461
+ }
462
+ else {
463
+ return this.send(command, optionsOrCb);
464
+ }
465
+ };
446
466
  Connect.prototype.createUseCase = function (args, optionsOrCb, cb) {
447
467
  var command = new CreateUseCaseCommand(args);
448
468
  if (typeof optionsOrCb === "function") {
@@ -597,6 +617,20 @@ var Connect = (function (_super) {
597
617
  return this.send(command, optionsOrCb);
598
618
  }
599
619
  };
620
+ Connect.prototype.deleteTaskTemplate = function (args, optionsOrCb, cb) {
621
+ var command = new DeleteTaskTemplateCommand(args);
622
+ if (typeof optionsOrCb === "function") {
623
+ this.send(command, optionsOrCb);
624
+ }
625
+ else if (typeof cb === "function") {
626
+ if (typeof optionsOrCb !== "object")
627
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
628
+ this.send(command, optionsOrCb || {}, cb);
629
+ }
630
+ else {
631
+ return this.send(command, optionsOrCb);
632
+ }
633
+ };
600
634
  Connect.prototype.deleteUseCase = function (args, optionsOrCb, cb) {
601
635
  var command = new DeleteUseCaseCommand(args);
602
636
  if (typeof optionsOrCb === "function") {
@@ -1073,6 +1107,20 @@ var Connect = (function (_super) {
1073
1107
  return this.send(command, optionsOrCb);
1074
1108
  }
1075
1109
  };
1110
+ Connect.prototype.getTaskTemplate = function (args, optionsOrCb, cb) {
1111
+ var command = new GetTaskTemplateCommand(args);
1112
+ if (typeof optionsOrCb === "function") {
1113
+ this.send(command, optionsOrCb);
1114
+ }
1115
+ else if (typeof cb === "function") {
1116
+ if (typeof optionsOrCb !== "object")
1117
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1118
+ this.send(command, optionsOrCb || {}, cb);
1119
+ }
1120
+ else {
1121
+ return this.send(command, optionsOrCb);
1122
+ }
1123
+ };
1076
1124
  Connect.prototype.listAgentStatuses = function (args, optionsOrCb, cb) {
1077
1125
  var command = new ListAgentStatusesCommand(args);
1078
1126
  if (typeof optionsOrCb === "function") {
@@ -1437,6 +1485,20 @@ var Connect = (function (_super) {
1437
1485
  return this.send(command, optionsOrCb);
1438
1486
  }
1439
1487
  };
1488
+ Connect.prototype.listTaskTemplates = function (args, optionsOrCb, cb) {
1489
+ var command = new ListTaskTemplatesCommand(args);
1490
+ if (typeof optionsOrCb === "function") {
1491
+ this.send(command, optionsOrCb);
1492
+ }
1493
+ else if (typeof cb === "function") {
1494
+ if (typeof optionsOrCb !== "object")
1495
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1496
+ this.send(command, optionsOrCb || {}, cb);
1497
+ }
1498
+ else {
1499
+ return this.send(command, optionsOrCb);
1500
+ }
1501
+ };
1440
1502
  Connect.prototype.listUseCases = function (args, optionsOrCb, cb) {
1441
1503
  var command = new ListUseCasesCommand(args);
1442
1504
  if (typeof optionsOrCb === "function") {
@@ -1703,6 +1765,20 @@ var Connect = (function (_super) {
1703
1765
  return this.send(command, optionsOrCb);
1704
1766
  }
1705
1767
  };
1768
+ Connect.prototype.transferContact = function (args, optionsOrCb, cb) {
1769
+ var command = new TransferContactCommand(args);
1770
+ if (typeof optionsOrCb === "function") {
1771
+ this.send(command, optionsOrCb);
1772
+ }
1773
+ else if (typeof cb === "function") {
1774
+ if (typeof optionsOrCb !== "object")
1775
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1776
+ this.send(command, optionsOrCb || {}, cb);
1777
+ }
1778
+ else {
1779
+ return this.send(command, optionsOrCb);
1780
+ }
1781
+ };
1706
1782
  Connect.prototype.untagResource = function (args, optionsOrCb, cb) {
1707
1783
  var command = new UntagResourceCommand(args);
1708
1784
  if (typeof optionsOrCb === "function") {
@@ -2067,6 +2143,20 @@ var Connect = (function (_super) {
2067
2143
  return this.send(command, optionsOrCb);
2068
2144
  }
2069
2145
  };
2146
+ Connect.prototype.updateTaskTemplate = function (args, optionsOrCb, cb) {
2147
+ var command = new UpdateTaskTemplateCommand(args);
2148
+ if (typeof optionsOrCb === "function") {
2149
+ this.send(command, optionsOrCb);
2150
+ }
2151
+ else if (typeof cb === "function") {
2152
+ if (typeof optionsOrCb !== "object")
2153
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
2154
+ this.send(command, optionsOrCb || {}, cb);
2155
+ }
2156
+ else {
2157
+ return this.send(command, optionsOrCb);
2158
+ }
2159
+ };
2070
2160
  Connect.prototype.updateUserHierarchy = function (args, optionsOrCb, cb) {
2071
2161
  var command = new UpdateUserHierarchyCommand(args);
2072
2162
  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 { CreateTaskTemplateRequest, CreateTaskTemplateResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateTaskTemplateCommand, serializeAws_restJson1CreateTaskTemplateCommand, } from "../protocols/Aws_restJson1";
6
+ var CreateTaskTemplateCommand = (function (_super) {
7
+ __extends(CreateTaskTemplateCommand, _super);
8
+ function CreateTaskTemplateCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateTaskTemplateCommand.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 = "CreateTaskTemplateCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateTaskTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateTaskTemplateResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateTaskTemplateCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1CreateTaskTemplateCommand(input, context);
33
+ };
34
+ CreateTaskTemplateCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1CreateTaskTemplateCommand(output, context);
36
+ };
37
+ return CreateTaskTemplateCommand;
38
+ }($Command));
39
+ export { CreateTaskTemplateCommand };
@@ -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 { DeleteTaskTemplateRequest, DeleteTaskTemplateResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteTaskTemplateCommand, serializeAws_restJson1DeleteTaskTemplateCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteTaskTemplateCommand = (function (_super) {
7
+ __extends(DeleteTaskTemplateCommand, _super);
8
+ function DeleteTaskTemplateCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteTaskTemplateCommand.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 = "DeleteTaskTemplateCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteTaskTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteTaskTemplateResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteTaskTemplateCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteTaskTemplateCommand(input, context);
33
+ };
34
+ DeleteTaskTemplateCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteTaskTemplateCommand(output, context);
36
+ };
37
+ return DeleteTaskTemplateCommand;
38
+ }($Command));
39
+ export { DeleteTaskTemplateCommand };
@@ -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 { GetTaskTemplateRequest, GetTaskTemplateResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetTaskTemplateCommand, serializeAws_restJson1GetTaskTemplateCommand, } from "../protocols/Aws_restJson1";
6
+ var GetTaskTemplateCommand = (function (_super) {
7
+ __extends(GetTaskTemplateCommand, _super);
8
+ function GetTaskTemplateCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetTaskTemplateCommand.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 = "GetTaskTemplateCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetTaskTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetTaskTemplateResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetTaskTemplateCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1GetTaskTemplateCommand(input, context);
33
+ };
34
+ GetTaskTemplateCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1GetTaskTemplateCommand(output, context);
36
+ };
37
+ return GetTaskTemplateCommand;
38
+ }($Command));
39
+ export { GetTaskTemplateCommand };
@@ -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 { ListSecurityKeysRequest, ListSecurityKeysResponse } from "../models/models_0";
4
+ import { ListSecurityKeysRequest, ListSecurityKeysResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListSecurityKeysCommand, serializeAws_restJson1ListSecurityKeysCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListSecurityKeysCommand = (function (_super) {
7
7
  __extends(ListSecurityKeysCommand, _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 { ListSecurityProfilePermissionsRequest, ListSecurityProfilePermissionsResponse } from "../models/models_0";
4
+ import { ListSecurityProfilePermissionsRequest, ListSecurityProfilePermissionsResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListSecurityProfilePermissionsCommand, serializeAws_restJson1ListSecurityProfilePermissionsCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListSecurityProfilePermissionsCommand = (function (_super) {
7
7
  __extends(ListSecurityProfilePermissionsCommand, _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 { ListSecurityProfilesRequest, ListSecurityProfilesResponse } from "../models/models_0";
4
+ import { ListSecurityProfilesRequest, ListSecurityProfilesResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListSecurityProfilesCommand, serializeAws_restJson1ListSecurityProfilesCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListSecurityProfilesCommand = (function (_super) {
7
7
  __extends(ListSecurityProfilesCommand, _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 { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
4
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListTagsForResourceCommand = (function (_super) {
7
7
  __extends(ListTagsForResourceCommand, _super);
@@ -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 { ListTaskTemplatesRequest, ListTaskTemplatesResponse } from "../models/models_1";
5
+ import { deserializeAws_restJson1ListTaskTemplatesCommand, serializeAws_restJson1ListTaskTemplatesCommand, } from "../protocols/Aws_restJson1";
6
+ var ListTaskTemplatesCommand = (function (_super) {
7
+ __extends(ListTaskTemplatesCommand, _super);
8
+ function ListTaskTemplatesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListTaskTemplatesCommand.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 = "ListTaskTemplatesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListTaskTemplatesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListTaskTemplatesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTaskTemplatesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListTaskTemplatesCommand(input, context);
33
+ };
34
+ ListTaskTemplatesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListTaskTemplatesCommand(output, context);
36
+ };
37
+ return ListTaskTemplatesCommand;
38
+ }($Command));
39
+ export { ListTaskTemplatesCommand };
@@ -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 { ListUseCasesRequest, ListUseCasesResponse } from "../models/models_0";
4
+ import { ListUseCasesRequest, ListUseCasesResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListUseCasesCommand, serializeAws_restJson1ListUseCasesCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListUseCasesCommand = (function (_super) {
7
7
  __extends(ListUseCasesCommand, _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 { ListUserHierarchyGroupsRequest, ListUserHierarchyGroupsResponse } from "../models/models_0";
4
+ import { ListUserHierarchyGroupsRequest, ListUserHierarchyGroupsResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListUserHierarchyGroupsCommand, serializeAws_restJson1ListUserHierarchyGroupsCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListUserHierarchyGroupsCommand = (function (_super) {
7
7
  __extends(ListUserHierarchyGroupsCommand, _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 { ListUsersRequest, ListUsersResponse } from "../models/models_0";
4
+ import { ListUsersRequest, ListUsersResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListUsersCommand, serializeAws_restJson1ListUsersCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListUsersCommand = (function (_super) {
7
7
  __extends(ListUsersCommand, _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 { PutUserStatusRequest, PutUserStatusResponse } from "../models/models_0";
4
+ import { PutUserStatusRequest, PutUserStatusResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1PutUserStatusCommand, serializeAws_restJson1PutUserStatusCommand, } from "../protocols/Aws_restJson1";
6
6
  var PutUserStatusCommand = (function (_super) {
7
7
  __extends(PutUserStatusCommand, _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 { ReleasePhoneNumberRequest } from "../models/models_0";
4
+ import { ReleasePhoneNumberRequest } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ReleasePhoneNumberCommand, serializeAws_restJson1ReleasePhoneNumberCommand, } from "../protocols/Aws_restJson1";
6
6
  var ReleasePhoneNumberCommand = (function (_super) {
7
7
  __extends(ReleasePhoneNumberCommand, _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 { ResumeContactRecordingRequest, ResumeContactRecordingResponse } from "../models/models_0";
4
+ import { ResumeContactRecordingRequest, ResumeContactRecordingResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ResumeContactRecordingCommand, serializeAws_restJson1ResumeContactRecordingCommand, } from "../protocols/Aws_restJson1";
6
6
  var ResumeContactRecordingCommand = (function (_super) {
7
7
  __extends(ResumeContactRecordingCommand, _super);
@@ -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 { TransferContactRequest, TransferContactResponse } from "../models/models_1";
5
+ import { deserializeAws_restJson1TransferContactCommand, serializeAws_restJson1TransferContactCommand, } from "../protocols/Aws_restJson1";
6
+ var TransferContactCommand = (function (_super) {
7
+ __extends(TransferContactCommand, _super);
8
+ function TransferContactCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ TransferContactCommand.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 = "TransferContactCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: TransferContactRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: TransferContactResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ TransferContactCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1TransferContactCommand(input, context);
33
+ };
34
+ TransferContactCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1TransferContactCommand(output, context);
36
+ };
37
+ return TransferContactCommand;
38
+ }($Command));
39
+ export { TransferContactCommand };
@@ -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 { UpdateTaskTemplateRequest, UpdateTaskTemplateResponse } from "../models/models_1";
5
+ import { deserializeAws_restJson1UpdateTaskTemplateCommand, serializeAws_restJson1UpdateTaskTemplateCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateTaskTemplateCommand = (function (_super) {
7
+ __extends(UpdateTaskTemplateCommand, _super);
8
+ function UpdateTaskTemplateCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateTaskTemplateCommand.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 = "UpdateTaskTemplateCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateTaskTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateTaskTemplateResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateTaskTemplateCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateTaskTemplateCommand(input, context);
33
+ };
34
+ UpdateTaskTemplateCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateTaskTemplateCommand(output, context);
36
+ };
37
+ return UpdateTaskTemplateCommand;
38
+ }($Command));
39
+ export { UpdateTaskTemplateCommand };
@@ -19,6 +19,7 @@ export * from "./CreateQueueCommand";
19
19
  export * from "./CreateQuickConnectCommand";
20
20
  export * from "./CreateRoutingProfileCommand";
21
21
  export * from "./CreateSecurityProfileCommand";
22
+ export * from "./CreateTaskTemplateCommand";
22
23
  export * from "./CreateUseCaseCommand";
23
24
  export * from "./CreateUserCommand";
24
25
  export * from "./CreateUserHierarchyGroupCommand";
@@ -30,6 +31,7 @@ export * from "./DeleteInstanceCommand";
30
31
  export * from "./DeleteIntegrationAssociationCommand";
31
32
  export * from "./DeleteQuickConnectCommand";
32
33
  export * from "./DeleteSecurityProfileCommand";
34
+ export * from "./DeleteTaskTemplateCommand";
33
35
  export * from "./DeleteUseCaseCommand";
34
36
  export * from "./DeleteUserCommand";
35
37
  export * from "./DeleteUserHierarchyGroupCommand";
@@ -64,6 +66,7 @@ export * from "./GetContactAttributesCommand";
64
66
  export * from "./GetCurrentMetricDataCommand";
65
67
  export * from "./GetFederationTokenCommand";
66
68
  export * from "./GetMetricDataCommand";
69
+ export * from "./GetTaskTemplateCommand";
67
70
  export * from "./ListAgentStatusesCommand";
68
71
  export * from "./ListApprovedOriginsCommand";
69
72
  export * from "./ListBotsCommand";
@@ -90,6 +93,7 @@ export * from "./ListSecurityKeysCommand";
90
93
  export * from "./ListSecurityProfilePermissionsCommand";
91
94
  export * from "./ListSecurityProfilesCommand";
92
95
  export * from "./ListTagsForResourceCommand";
96
+ export * from "./ListTaskTemplatesCommand";
93
97
  export * from "./ListUseCasesCommand";
94
98
  export * from "./ListUserHierarchyGroupsCommand";
95
99
  export * from "./ListUsersCommand";
@@ -109,6 +113,7 @@ export * from "./StopContactRecordingCommand";
109
113
  export * from "./StopContactStreamingCommand";
110
114
  export * from "./SuspendContactRecordingCommand";
111
115
  export * from "./TagResourceCommand";
116
+ export * from "./TransferContactCommand";
112
117
  export * from "./UntagResourceCommand";
113
118
  export * from "./UpdateAgentStatusCommand";
114
119
  export * from "./UpdateContactAttributesCommand";
@@ -135,6 +140,7 @@ export * from "./UpdateRoutingProfileDefaultOutboundQueueCommand";
135
140
  export * from "./UpdateRoutingProfileNameCommand";
136
141
  export * from "./UpdateRoutingProfileQueuesCommand";
137
142
  export * from "./UpdateSecurityProfileCommand";
143
+ export * from "./UpdateTaskTemplateCommand";
138
144
  export * from "./UpdateUserHierarchyCommand";
139
145
  export * from "./UpdateUserHierarchyGroupNameCommand";
140
146
  export * from "./UpdateUserHierarchyStructureCommand";