@aws-sdk/client-connect 3.67.0 → 3.75.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 (85) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/Connect.js +120 -0
  3. package/dist-cjs/commands/AssociatePhoneNumberContactFlowCommand.js +36 -0
  4. package/dist-cjs/commands/ClaimPhoneNumberCommand.js +36 -0
  5. package/dist-cjs/commands/DescribePhoneNumberCommand.js +36 -0
  6. package/dist-cjs/commands/DisassociatePhoneNumberContactFlowCommand.js +36 -0
  7. package/dist-cjs/commands/ListPhoneNumbersV2Command.js +36 -0
  8. package/dist-cjs/commands/ReleasePhoneNumberCommand.js +36 -0
  9. package/dist-cjs/commands/SearchAvailablePhoneNumbersCommand.js +37 -0
  10. package/dist-cjs/commands/SearchVocabulariesCommand.js +3 -3
  11. package/dist-cjs/commands/StartChatContactCommand.js +3 -3
  12. package/dist-cjs/commands/StartContactRecordingCommand.js +3 -3
  13. package/dist-cjs/commands/StartContactStreamingCommand.js +3 -3
  14. package/dist-cjs/commands/UpdatePhoneNumberCommand.js +36 -0
  15. package/dist-cjs/commands/index.js +8 -0
  16. package/dist-cjs/models/models_0.js +795 -803
  17. package/dist-cjs/models/models_1.js +118 -2
  18. package/dist-cjs/pagination/ListPhoneNumbersV2Paginator.js +35 -0
  19. package/dist-cjs/pagination/SearchAvailablePhoneNumbersPaginator.js +35 -0
  20. package/dist-cjs/pagination/index.js +2 -0
  21. package/dist-cjs/protocols/Aws_restJson1.js +744 -12
  22. package/dist-es/Connect.js +120 -0
  23. package/dist-es/commands/AssociatePhoneNumberContactFlowCommand.js +39 -0
  24. package/dist-es/commands/ClaimPhoneNumberCommand.js +39 -0
  25. package/dist-es/commands/DescribePhoneNumberCommand.js +39 -0
  26. package/dist-es/commands/DisassociatePhoneNumberContactFlowCommand.js +39 -0
  27. package/dist-es/commands/ListPhoneNumbersV2Command.js +39 -0
  28. package/dist-es/commands/ReleasePhoneNumberCommand.js +39 -0
  29. package/dist-es/commands/SearchAvailablePhoneNumbersCommand.js +40 -0
  30. package/dist-es/commands/SearchVocabulariesCommand.js +1 -1
  31. package/dist-es/commands/StartChatContactCommand.js +1 -1
  32. package/dist-es/commands/StartContactRecordingCommand.js +1 -1
  33. package/dist-es/commands/StartContactStreamingCommand.js +1 -1
  34. package/dist-es/commands/UpdatePhoneNumberCommand.js +39 -0
  35. package/dist-es/commands/index.js +8 -0
  36. package/dist-es/models/models_0.js +320 -329
  37. package/dist-es/models/models_1.js +83 -0
  38. package/dist-es/pagination/ListPhoneNumbersV2Paginator.js +74 -0
  39. package/dist-es/pagination/SearchAvailablePhoneNumbersPaginator.js +74 -0
  40. package/dist-es/pagination/index.js +2 -0
  41. package/dist-es/protocols/Aws_restJson1.js +960 -36
  42. package/dist-types/Connect.d.ts +59 -1
  43. package/dist-types/ConnectClient.d.ts +10 -2
  44. package/dist-types/commands/AssociatePhoneNumberContactFlowCommand.d.ts +35 -0
  45. package/dist-types/commands/ClaimPhoneNumberCommand.d.ts +35 -0
  46. package/dist-types/commands/DescribePhoneNumberCommand.d.ts +35 -0
  47. package/dist-types/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +35 -0
  48. package/dist-types/commands/ListPhoneNumbersV2Command.d.ts +37 -0
  49. package/dist-types/commands/ReleasePhoneNumberCommand.d.ts +35 -0
  50. package/dist-types/commands/SearchAvailablePhoneNumbersCommand.d.ts +36 -0
  51. package/dist-types/commands/SearchVocabulariesCommand.d.ts +1 -1
  52. package/dist-types/commands/StartChatContactCommand.d.ts +1 -1
  53. package/dist-types/commands/StartContactRecordingCommand.d.ts +1 -1
  54. package/dist-types/commands/StartContactStreamingCommand.d.ts +1 -1
  55. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdatePhoneNumberCommand.d.ts +35 -0
  57. package/dist-types/commands/index.d.ts +8 -0
  58. package/dist-types/models/models_0.d.ts +778 -763
  59. package/dist-types/models/models_1.d.ts +377 -1
  60. package/dist-types/pagination/ListPhoneNumbersV2Paginator.d.ts +4 -0
  61. package/dist-types/pagination/SearchAvailablePhoneNumbersPaginator.d.ts +4 -0
  62. package/dist-types/pagination/index.d.ts +2 -0
  63. package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
  64. package/dist-types/ts3.4/Connect.d.ts +40 -0
  65. package/dist-types/ts3.4/ConnectClient.d.ts +10 -2
  66. package/dist-types/ts3.4/commands/AssociatePhoneNumberContactFlowCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/ClaimPhoneNumberCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/DescribePhoneNumberCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/DisassociatePhoneNumberContactFlowCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/ListPhoneNumbersV2Command.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/ReleasePhoneNumberCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/SearchAvailablePhoneNumbersCommand.d.ts +18 -0
  73. package/dist-types/ts3.4/commands/SearchVocabulariesCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/StartChatContactCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/StartContactRecordingCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/StartContactStreamingCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/UpdatePhoneNumberCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  79. package/dist-types/ts3.4/models/models_0.d.ts +767 -749
  80. package/dist-types/ts3.4/models/models_1.d.ts +212 -1
  81. package/dist-types/ts3.4/pagination/ListPhoneNumbersV2Paginator.d.ts +4 -0
  82. package/dist-types/ts3.4/pagination/SearchAvailablePhoneNumbersPaginator.d.ts +4 -0
  83. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  84. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  85. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
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.75.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.74.0...v3.75.0) (2022-04-21)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-connect
9
+
10
+
11
+
12
+
13
+
14
+ # [3.74.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.73.0...v3.74.0) (2022-04-20)
15
+
16
+
17
+ ### Features
18
+
19
+ * **client-connect:** This release adds APIs to search, claim, release, list, update, and describe phone numbers. You can also use them to associate and disassociate contact flows to phone numbers. ([78e0c59](https://github.com/aws/aws-sdk-js-v3/commit/78e0c59d115eaaf1f9bc22c67cd1e3b53ae68272))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.72.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.71.0...v3.72.0) (2022-04-15)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-connect
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.67.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.66.0...v3.67.0) (2022-04-08)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-connect
@@ -7,9 +7,11 @@ const AssociateDefaultVocabularyCommand_1 = require("./commands/AssociateDefault
7
7
  const AssociateInstanceStorageConfigCommand_1 = require("./commands/AssociateInstanceStorageConfigCommand");
8
8
  const AssociateLambdaFunctionCommand_1 = require("./commands/AssociateLambdaFunctionCommand");
9
9
  const AssociateLexBotCommand_1 = require("./commands/AssociateLexBotCommand");
10
+ const AssociatePhoneNumberContactFlowCommand_1 = require("./commands/AssociatePhoneNumberContactFlowCommand");
10
11
  const AssociateQueueQuickConnectsCommand_1 = require("./commands/AssociateQueueQuickConnectsCommand");
11
12
  const AssociateRoutingProfileQueuesCommand_1 = require("./commands/AssociateRoutingProfileQueuesCommand");
12
13
  const AssociateSecurityKeyCommand_1 = require("./commands/AssociateSecurityKeyCommand");
14
+ const ClaimPhoneNumberCommand_1 = require("./commands/ClaimPhoneNumberCommand");
13
15
  const CreateAgentStatusCommand_1 = require("./commands/CreateAgentStatusCommand");
14
16
  const CreateContactFlowCommand_1 = require("./commands/CreateContactFlowCommand");
15
17
  const CreateContactFlowModuleCommand_1 = require("./commands/CreateContactFlowModuleCommand");
@@ -43,6 +45,7 @@ const DescribeHoursOfOperationCommand_1 = require("./commands/DescribeHoursOfOpe
43
45
  const DescribeInstanceAttributeCommand_1 = require("./commands/DescribeInstanceAttributeCommand");
44
46
  const DescribeInstanceCommand_1 = require("./commands/DescribeInstanceCommand");
45
47
  const DescribeInstanceStorageConfigCommand_1 = require("./commands/DescribeInstanceStorageConfigCommand");
48
+ const DescribePhoneNumberCommand_1 = require("./commands/DescribePhoneNumberCommand");
46
49
  const DescribeQueueCommand_1 = require("./commands/DescribeQueueCommand");
47
50
  const DescribeQuickConnectCommand_1 = require("./commands/DescribeQuickConnectCommand");
48
51
  const DescribeRoutingProfileCommand_1 = require("./commands/DescribeRoutingProfileCommand");
@@ -56,6 +59,7 @@ const DisassociateBotCommand_1 = require("./commands/DisassociateBotCommand");
56
59
  const DisassociateInstanceStorageConfigCommand_1 = require("./commands/DisassociateInstanceStorageConfigCommand");
57
60
  const DisassociateLambdaFunctionCommand_1 = require("./commands/DisassociateLambdaFunctionCommand");
58
61
  const DisassociateLexBotCommand_1 = require("./commands/DisassociateLexBotCommand");
62
+ const DisassociatePhoneNumberContactFlowCommand_1 = require("./commands/DisassociatePhoneNumberContactFlowCommand");
59
63
  const DisassociateQueueQuickConnectsCommand_1 = require("./commands/DisassociateQueueQuickConnectsCommand");
60
64
  const DisassociateRoutingProfileQueuesCommand_1 = require("./commands/DisassociateRoutingProfileQueuesCommand");
61
65
  const DisassociateSecurityKeyCommand_1 = require("./commands/DisassociateSecurityKeyCommand");
@@ -78,6 +82,7 @@ const ListIntegrationAssociationsCommand_1 = require("./commands/ListIntegration
78
82
  const ListLambdaFunctionsCommand_1 = require("./commands/ListLambdaFunctionsCommand");
79
83
  const ListLexBotsCommand_1 = require("./commands/ListLexBotsCommand");
80
84
  const ListPhoneNumbersCommand_1 = require("./commands/ListPhoneNumbersCommand");
85
+ const ListPhoneNumbersV2Command_1 = require("./commands/ListPhoneNumbersV2Command");
81
86
  const ListPromptsCommand_1 = require("./commands/ListPromptsCommand");
82
87
  const ListQueueQuickConnectsCommand_1 = require("./commands/ListQueueQuickConnectsCommand");
83
88
  const ListQueuesCommand_1 = require("./commands/ListQueuesCommand");
@@ -91,7 +96,9 @@ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceComm
91
96
  const ListUseCasesCommand_1 = require("./commands/ListUseCasesCommand");
92
97
  const ListUserHierarchyGroupsCommand_1 = require("./commands/ListUserHierarchyGroupsCommand");
93
98
  const ListUsersCommand_1 = require("./commands/ListUsersCommand");
99
+ const ReleasePhoneNumberCommand_1 = require("./commands/ReleasePhoneNumberCommand");
94
100
  const ResumeContactRecordingCommand_1 = require("./commands/ResumeContactRecordingCommand");
101
+ const SearchAvailablePhoneNumbersCommand_1 = require("./commands/SearchAvailablePhoneNumbersCommand");
95
102
  const SearchVocabulariesCommand_1 = require("./commands/SearchVocabulariesCommand");
96
103
  const StartChatContactCommand_1 = require("./commands/StartChatContactCommand");
97
104
  const StartContactRecordingCommand_1 = require("./commands/StartContactRecordingCommand");
@@ -116,6 +123,7 @@ const UpdateContactScheduleCommand_1 = require("./commands/UpdateContactSchedule
116
123
  const UpdateHoursOfOperationCommand_1 = require("./commands/UpdateHoursOfOperationCommand");
117
124
  const UpdateInstanceAttributeCommand_1 = require("./commands/UpdateInstanceAttributeCommand");
118
125
  const UpdateInstanceStorageConfigCommand_1 = require("./commands/UpdateInstanceStorageConfigCommand");
126
+ const UpdatePhoneNumberCommand_1 = require("./commands/UpdatePhoneNumberCommand");
119
127
  const UpdateQueueHoursOfOperationCommand_1 = require("./commands/UpdateQueueHoursOfOperationCommand");
120
128
  const UpdateQueueMaxContactsCommand_1 = require("./commands/UpdateQueueMaxContactsCommand");
121
129
  const UpdateQueueNameCommand_1 = require("./commands/UpdateQueueNameCommand");
@@ -221,6 +229,20 @@ class Connect extends ConnectClient_1.ConnectClient {
221
229
  return this.send(command, optionsOrCb);
222
230
  }
223
231
  }
232
+ associatePhoneNumberContactFlow(args, optionsOrCb, cb) {
233
+ const command = new AssociatePhoneNumberContactFlowCommand_1.AssociatePhoneNumberContactFlowCommand(args);
234
+ if (typeof optionsOrCb === "function") {
235
+ this.send(command, optionsOrCb);
236
+ }
237
+ else if (typeof cb === "function") {
238
+ if (typeof optionsOrCb !== "object")
239
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
+ this.send(command, optionsOrCb || {}, cb);
241
+ }
242
+ else {
243
+ return this.send(command, optionsOrCb);
244
+ }
245
+ }
224
246
  associateQueueQuickConnects(args, optionsOrCb, cb) {
225
247
  const command = new AssociateQueueQuickConnectsCommand_1.AssociateQueueQuickConnectsCommand(args);
226
248
  if (typeof optionsOrCb === "function") {
@@ -263,6 +285,20 @@ class Connect extends ConnectClient_1.ConnectClient {
263
285
  return this.send(command, optionsOrCb);
264
286
  }
265
287
  }
288
+ claimPhoneNumber(args, optionsOrCb, cb) {
289
+ const command = new ClaimPhoneNumberCommand_1.ClaimPhoneNumberCommand(args);
290
+ if (typeof optionsOrCb === "function") {
291
+ this.send(command, optionsOrCb);
292
+ }
293
+ else if (typeof cb === "function") {
294
+ if (typeof optionsOrCb !== "object")
295
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
296
+ this.send(command, optionsOrCb || {}, cb);
297
+ }
298
+ else {
299
+ return this.send(command, optionsOrCb);
300
+ }
301
+ }
266
302
  createAgentStatus(args, optionsOrCb, cb) {
267
303
  const command = new CreateAgentStatusCommand_1.CreateAgentStatusCommand(args);
268
304
  if (typeof optionsOrCb === "function") {
@@ -725,6 +761,20 @@ class Connect extends ConnectClient_1.ConnectClient {
725
761
  return this.send(command, optionsOrCb);
726
762
  }
727
763
  }
764
+ describePhoneNumber(args, optionsOrCb, cb) {
765
+ const command = new DescribePhoneNumberCommand_1.DescribePhoneNumberCommand(args);
766
+ if (typeof optionsOrCb === "function") {
767
+ this.send(command, optionsOrCb);
768
+ }
769
+ else if (typeof cb === "function") {
770
+ if (typeof optionsOrCb !== "object")
771
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
772
+ this.send(command, optionsOrCb || {}, cb);
773
+ }
774
+ else {
775
+ return this.send(command, optionsOrCb);
776
+ }
777
+ }
728
778
  describeQueue(args, optionsOrCb, cb) {
729
779
  const command = new DescribeQueueCommand_1.DescribeQueueCommand(args);
730
780
  if (typeof optionsOrCb === "function") {
@@ -907,6 +957,20 @@ class Connect extends ConnectClient_1.ConnectClient {
907
957
  return this.send(command, optionsOrCb);
908
958
  }
909
959
  }
960
+ disassociatePhoneNumberContactFlow(args, optionsOrCb, cb) {
961
+ const command = new DisassociatePhoneNumberContactFlowCommand_1.DisassociatePhoneNumberContactFlowCommand(args);
962
+ if (typeof optionsOrCb === "function") {
963
+ this.send(command, optionsOrCb);
964
+ }
965
+ else if (typeof cb === "function") {
966
+ if (typeof optionsOrCb !== "object")
967
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
968
+ this.send(command, optionsOrCb || {}, cb);
969
+ }
970
+ else {
971
+ return this.send(command, optionsOrCb);
972
+ }
973
+ }
910
974
  disassociateQueueQuickConnects(args, optionsOrCb, cb) {
911
975
  const command = new DisassociateQueueQuickConnectsCommand_1.DisassociateQueueQuickConnectsCommand(args);
912
976
  if (typeof optionsOrCb === "function") {
@@ -1215,6 +1279,20 @@ class Connect extends ConnectClient_1.ConnectClient {
1215
1279
  return this.send(command, optionsOrCb);
1216
1280
  }
1217
1281
  }
1282
+ listPhoneNumbersV2(args, optionsOrCb, cb) {
1283
+ const command = new ListPhoneNumbersV2Command_1.ListPhoneNumbersV2Command(args);
1284
+ if (typeof optionsOrCb === "function") {
1285
+ this.send(command, optionsOrCb);
1286
+ }
1287
+ else if (typeof cb === "function") {
1288
+ if (typeof optionsOrCb !== "object")
1289
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1290
+ this.send(command, optionsOrCb || {}, cb);
1291
+ }
1292
+ else {
1293
+ return this.send(command, optionsOrCb);
1294
+ }
1295
+ }
1218
1296
  listPrompts(args, optionsOrCb, cb) {
1219
1297
  const command = new ListPromptsCommand_1.ListPromptsCommand(args);
1220
1298
  if (typeof optionsOrCb === "function") {
@@ -1397,6 +1475,20 @@ class Connect extends ConnectClient_1.ConnectClient {
1397
1475
  return this.send(command, optionsOrCb);
1398
1476
  }
1399
1477
  }
1478
+ releasePhoneNumber(args, optionsOrCb, cb) {
1479
+ const command = new ReleasePhoneNumberCommand_1.ReleasePhoneNumberCommand(args);
1480
+ if (typeof optionsOrCb === "function") {
1481
+ this.send(command, optionsOrCb);
1482
+ }
1483
+ else if (typeof cb === "function") {
1484
+ if (typeof optionsOrCb !== "object")
1485
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1486
+ this.send(command, optionsOrCb || {}, cb);
1487
+ }
1488
+ else {
1489
+ return this.send(command, optionsOrCb);
1490
+ }
1491
+ }
1400
1492
  resumeContactRecording(args, optionsOrCb, cb) {
1401
1493
  const command = new ResumeContactRecordingCommand_1.ResumeContactRecordingCommand(args);
1402
1494
  if (typeof optionsOrCb === "function") {
@@ -1411,6 +1503,20 @@ class Connect extends ConnectClient_1.ConnectClient {
1411
1503
  return this.send(command, optionsOrCb);
1412
1504
  }
1413
1505
  }
1506
+ searchAvailablePhoneNumbers(args, optionsOrCb, cb) {
1507
+ const command = new SearchAvailablePhoneNumbersCommand_1.SearchAvailablePhoneNumbersCommand(args);
1508
+ if (typeof optionsOrCb === "function") {
1509
+ this.send(command, optionsOrCb);
1510
+ }
1511
+ else if (typeof cb === "function") {
1512
+ if (typeof optionsOrCb !== "object")
1513
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1514
+ this.send(command, optionsOrCb || {}, cb);
1515
+ }
1516
+ else {
1517
+ return this.send(command, optionsOrCb);
1518
+ }
1519
+ }
1414
1520
  searchVocabularies(args, optionsOrCb, cb) {
1415
1521
  const command = new SearchVocabulariesCommand_1.SearchVocabulariesCommand(args);
1416
1522
  if (typeof optionsOrCb === "function") {
@@ -1747,6 +1853,20 @@ class Connect extends ConnectClient_1.ConnectClient {
1747
1853
  return this.send(command, optionsOrCb);
1748
1854
  }
1749
1855
  }
1856
+ updatePhoneNumber(args, optionsOrCb, cb) {
1857
+ const command = new UpdatePhoneNumberCommand_1.UpdatePhoneNumberCommand(args);
1858
+ if (typeof optionsOrCb === "function") {
1859
+ this.send(command, optionsOrCb);
1860
+ }
1861
+ else if (typeof cb === "function") {
1862
+ if (typeof optionsOrCb !== "object")
1863
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1864
+ this.send(command, optionsOrCb || {}, cb);
1865
+ }
1866
+ else {
1867
+ return this.send(command, optionsOrCb);
1868
+ }
1869
+ }
1750
1870
  updateQueueHoursOfOperation(args, optionsOrCb, cb) {
1751
1871
  const command = new UpdateQueueHoursOfOperationCommand_1.UpdateQueueHoursOfOperationCommand(args);
1752
1872
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssociatePhoneNumberContactFlowCommand = 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 AssociatePhoneNumberContactFlowCommand 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 = "AssociatePhoneNumberContactFlowCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.AssociatePhoneNumberContactFlowRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1AssociatePhoneNumberContactFlowCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1AssociatePhoneNumberContactFlowCommand)(output, context);
34
+ }
35
+ }
36
+ exports.AssociatePhoneNumberContactFlowCommand = AssociatePhoneNumberContactFlowCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClaimPhoneNumberCommand = 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 ClaimPhoneNumberCommand 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 = "ClaimPhoneNumberCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ClaimPhoneNumberRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ClaimPhoneNumberResponse.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_restJson1ClaimPhoneNumberCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ClaimPhoneNumberCommand)(output, context);
34
+ }
35
+ }
36
+ exports.ClaimPhoneNumberCommand = ClaimPhoneNumberCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribePhoneNumberCommand = 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 DescribePhoneNumberCommand 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 = "DescribePhoneNumberCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribePhoneNumberRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribePhoneNumberResponse.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_restJson1DescribePhoneNumberCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DescribePhoneNumberCommand)(output, context);
34
+ }
35
+ }
36
+ exports.DescribePhoneNumberCommand = DescribePhoneNumberCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DisassociatePhoneNumberContactFlowCommand = 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 DisassociatePhoneNumberContactFlowCommand 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 = "DisassociatePhoneNumberContactFlowCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DisassociatePhoneNumberContactFlowRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1DisassociatePhoneNumberContactFlowCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DisassociatePhoneNumberContactFlowCommand)(output, context);
34
+ }
35
+ }
36
+ exports.DisassociatePhoneNumberContactFlowCommand = DisassociatePhoneNumberContactFlowCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListPhoneNumbersV2Command = 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 ListPhoneNumbersV2Command 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 = "ListPhoneNumbersV2Command";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListPhoneNumbersV2Request.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListPhoneNumbersV2Response.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_restJson1ListPhoneNumbersV2Command)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListPhoneNumbersV2Command)(output, context);
34
+ }
35
+ }
36
+ exports.ListPhoneNumbersV2Command = ListPhoneNumbersV2Command;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReleasePhoneNumberCommand = 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 ReleasePhoneNumberCommand 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 = "ReleasePhoneNumberCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ReleasePhoneNumberRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ReleasePhoneNumberCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ReleasePhoneNumberCommand)(output, context);
34
+ }
35
+ }
36
+ exports.ReleasePhoneNumberCommand = ReleasePhoneNumberCommand;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchAvailablePhoneNumbersCommand = 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 models_1_1 = require("../models/models_1");
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class SearchAvailablePhoneNumbersCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ resolveMiddleware(clientStack, configuration, options) {
15
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
16
+ const stack = clientStack.concat(this.middlewareStack);
17
+ const { logger } = configuration;
18
+ const clientName = "ConnectClient";
19
+ const commandName = "SearchAvailablePhoneNumbersCommand";
20
+ const handlerExecutionContext = {
21
+ logger,
22
+ clientName,
23
+ commandName,
24
+ inputFilterSensitiveLog: models_0_1.SearchAvailablePhoneNumbersRequest.filterSensitiveLog,
25
+ outputFilterSensitiveLog: models_1_1.SearchAvailablePhoneNumbersResponse.filterSensitiveLog,
26
+ };
27
+ const { requestHandler } = configuration;
28
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
29
+ }
30
+ serialize(input, context) {
31
+ return (0, Aws_restJson1_1.serializeAws_restJson1SearchAvailablePhoneNumbersCommand)(input, context);
32
+ }
33
+ deserialize(output, context) {
34
+ return (0, Aws_restJson1_1.deserializeAws_restJson1SearchAvailablePhoneNumbersCommand)(output, context);
35
+ }
36
+ }
37
+ exports.SearchAvailablePhoneNumbersCommand = SearchAvailablePhoneNumbersCommand;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SearchVocabulariesCommand = 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 SearchVocabulariesCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class SearchVocabulariesCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.SearchVocabulariesRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.SearchVocabulariesResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.SearchVocabulariesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.SearchVocabulariesResponse.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.StartChatContactCommand = 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 StartChatContactCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class StartChatContactCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.StartChatContactRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.StartChatContactResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.StartChatContactRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.StartChatContactResponse.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.StartContactRecordingCommand = 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 StartContactRecordingCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class StartContactRecordingCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.StartContactRecordingRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.StartContactRecordingResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.StartContactRecordingRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.StartContactRecordingResponse.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.StartContactStreamingCommand = 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 StartContactStreamingCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class StartContactStreamingCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.StartContactStreamingRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.StartContactStreamingResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.StartContactStreamingRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.StartContactStreamingResponse.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.UpdatePhoneNumberCommand = 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 UpdatePhoneNumberCommand 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 = "UpdatePhoneNumberCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.UpdatePhoneNumberRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.UpdatePhoneNumberResponse.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_restJson1UpdatePhoneNumberCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1UpdatePhoneNumberCommand)(output, context);
34
+ }
35
+ }
36
+ exports.UpdatePhoneNumberCommand = UpdatePhoneNumberCommand;