@wildix/xbees-conversations-client 1.1.15 → 1.1.17

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 (33) hide show
  1. package/dist-cjs/Conversations.js +14 -0
  2. package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +21 -0
  3. package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +21 -0
  4. package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +21 -0
  5. package/dist-cjs/commands/GetSmsChannelIdCommand.js +21 -0
  6. package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +21 -0
  7. package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +21 -0
  8. package/dist-cjs/commands/SendTemplateMessageCommand.js +21 -0
  9. package/dist-cjs/commands/index.js +7 -0
  10. package/dist-cjs/protocols/Aws_restJson1.js +265 -3
  11. package/dist-es/Conversations.js +14 -0
  12. package/dist-es/commands/GetOrCreateSmsChannelCommand.js +17 -0
  13. package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +17 -0
  14. package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +17 -0
  15. package/dist-es/commands/GetSmsChannelIdCommand.js +17 -0
  16. package/dist-es/commands/GetTelephonyChannelIdCommand.js +17 -0
  17. package/dist-es/commands/GetWhatsAppChannelIdCommand.js +17 -0
  18. package/dist-es/commands/SendTemplateMessageCommand.js +17 -0
  19. package/dist-es/commands/index.js +7 -0
  20. package/dist-es/protocols/Aws_restJson1.js +248 -0
  21. package/dist-types/Conversations.d.ts +49 -0
  22. package/dist-types/ConversationsClient.d.ts +9 -2
  23. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +151 -0
  24. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +151 -0
  25. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +151 -0
  26. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +81 -0
  27. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +81 -0
  28. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +81 -0
  29. package/dist-types/commands/SendTemplateMessageCommand.d.ts +365 -0
  30. package/dist-types/commands/index.d.ts +7 -0
  31. package/dist-types/models/models_0.d.ts +243 -0
  32. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  33. package/package.json +1 -1
@@ -0,0 +1,17 @@
1
+ import { de_GetOrCreateWhatsAppChannelCommand, se_GetOrCreateWhatsAppChannelCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetOrCreateWhatsAppChannelCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "GetOrCreateWhatsAppChannel", {})
12
+ .n("ConversationsClient", "GetOrCreateWhatsAppChannelCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetOrCreateWhatsAppChannelCommand)
15
+ .de(de_GetOrCreateWhatsAppChannelCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetSmsChannelIdCommand, se_GetSmsChannelIdCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetSmsChannelIdCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "GetSmsChannelId", {})
12
+ .n("ConversationsClient", "GetSmsChannelIdCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetSmsChannelIdCommand)
15
+ .de(de_GetSmsChannelIdCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetTelephonyChannelIdCommand, se_GetTelephonyChannelIdCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetTelephonyChannelIdCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "GetTelephonyChannelId", {})
12
+ .n("ConversationsClient", "GetTelephonyChannelIdCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetTelephonyChannelIdCommand)
15
+ .de(de_GetTelephonyChannelIdCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetWhatsAppChannelIdCommand, se_GetWhatsAppChannelIdCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetWhatsAppChannelIdCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "GetWhatsAppChannelId", {})
12
+ .n("ConversationsClient", "GetWhatsAppChannelIdCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetWhatsAppChannelIdCommand)
15
+ .de(de_GetWhatsAppChannelIdCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_SendTemplateMessageCommand, se_SendTemplateMessageCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class SendTemplateMessageCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Conversations", "SendTemplateMessage", {})
12
+ .n("ConversationsClient", "SendTemplateMessageCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_SendTemplateMessageCommand)
15
+ .de(de_SendTemplateMessageCommand)
16
+ .build() {
17
+ }
@@ -18,8 +18,14 @@ export * from "./GetFilePresignedDownloadUrlCommand";
18
18
  export * from "./GetInboxStateCommand";
19
19
  export * from "./GetMessageCommand";
20
20
  export * from "./GetOrCreateDirectChannelCommand";
21
+ export * from "./GetOrCreateSmsChannelCommand";
22
+ export * from "./GetOrCreateTelephonyChannelCommand";
23
+ export * from "./GetOrCreateWhatsAppChannelCommand";
24
+ export * from "./GetSmsChannelIdCommand";
25
+ export * from "./GetTelephonyChannelIdCommand";
21
26
  export * from "./GetTokenCommand";
22
27
  export * from "./GetUploadedFileInfoCommand";
28
+ export * from "./GetWhatsAppChannelIdCommand";
23
29
  export * from "./HideChannelCommand";
24
30
  export * from "./InviteCommand";
25
31
  export * from "./JoinChannelCommand";
@@ -44,6 +50,7 @@ export * from "./SendActionTriggerResultCommand";
44
50
  export * from "./SendGiphyCommand";
45
51
  export * from "./SendMessageCommand";
46
52
  export * from "./SendMessageReactionCommand";
53
+ export * from "./SendTemplateMessageCommand";
47
54
  export * from "./SendTypingStartCommand";
48
55
  export * from "./SendTypingStopCommand";
49
56
  export * from "./ShowChannelCommand";
@@ -351,6 +351,111 @@ export const se_GetOrCreateDirectChannelCommand = async (input, context) => {
351
351
  .b(body);
352
352
  return b.build();
353
353
  };
354
+ export const se_GetOrCreateSmsChannelCommand = async (input, context) => {
355
+ const b = rb(input, context);
356
+ const headers = {
357
+ 'content-type': 'application/json',
358
+ };
359
+ b.bp("/v2/conversations/sms/get_or_create_channel");
360
+ const query = map({
361
+ [_u]: [, input[_uI]],
362
+ });
363
+ let body;
364
+ body = JSON.stringify(take(input, {
365
+ 'recipientId': [],
366
+ 'recipientNumber': [],
367
+ 'serviceUri': [],
368
+ }));
369
+ b.m("POST")
370
+ .h(headers)
371
+ .q(query)
372
+ .b(body);
373
+ return b.build();
374
+ };
375
+ export const se_GetOrCreateTelephonyChannelCommand = async (input, context) => {
376
+ const b = rb(input, context);
377
+ const headers = {
378
+ 'content-type': 'application/json',
379
+ };
380
+ b.bp("/v2/conversations/telephony/get_or_create_channel");
381
+ const query = map({
382
+ [_u]: [, input[_uI]],
383
+ });
384
+ let body;
385
+ body = JSON.stringify(take(input, {
386
+ 'recipientId': [],
387
+ 'recipientNumber': [],
388
+ 'serviceUri': [],
389
+ }));
390
+ b.m("POST")
391
+ .h(headers)
392
+ .q(query)
393
+ .b(body);
394
+ return b.build();
395
+ };
396
+ export const se_GetOrCreateWhatsAppChannelCommand = async (input, context) => {
397
+ const b = rb(input, context);
398
+ const headers = {
399
+ 'content-type': 'application/json',
400
+ };
401
+ b.bp("/v2/conversations/whatsapp/get_or_create_channel");
402
+ const query = map({
403
+ [_u]: [, input[_uI]],
404
+ });
405
+ let body;
406
+ body = JSON.stringify(take(input, {
407
+ 'recipientId': [],
408
+ 'recipientNumber': [],
409
+ 'serviceUri': [],
410
+ }));
411
+ b.m("POST")
412
+ .h(headers)
413
+ .q(query)
414
+ .b(body);
415
+ return b.build();
416
+ };
417
+ export const se_GetSmsChannelIdCommand = async (input, context) => {
418
+ const b = rb(input, context);
419
+ const headers = {
420
+ 'content-type': 'application/json',
421
+ };
422
+ b.bp("/v2/conversations/sms/get_channel_id");
423
+ const query = map({
424
+ [_u]: [, input[_uI]],
425
+ });
426
+ let body;
427
+ body = JSON.stringify(take(input, {
428
+ 'recipientId': [],
429
+ 'recipientNumber': [],
430
+ 'serviceUri': [],
431
+ }));
432
+ b.m("POST")
433
+ .h(headers)
434
+ .q(query)
435
+ .b(body);
436
+ return b.build();
437
+ };
438
+ export const se_GetTelephonyChannelIdCommand = async (input, context) => {
439
+ const b = rb(input, context);
440
+ const headers = {
441
+ 'content-type': 'application/json',
442
+ };
443
+ b.bp("/v2/conversations/telephony/get_channel_id");
444
+ const query = map({
445
+ [_u]: [, input[_uI]],
446
+ });
447
+ let body;
448
+ body = JSON.stringify(take(input, {
449
+ 'recipientId': [],
450
+ 'recipientNumber': [],
451
+ 'serviceUri': [],
452
+ }));
453
+ b.m("POST")
454
+ .h(headers)
455
+ .q(query)
456
+ .b(body);
457
+ return b.build();
458
+ };
354
459
  export const se_GetTokenCommand = async (input, context) => {
355
460
  const b = rb(input, context);
356
461
  const headers = {};
@@ -377,6 +482,27 @@ export const se_GetUploadedFileInfoCommand = async (input, context) => {
377
482
  .b(body);
378
483
  return b.build();
379
484
  };
485
+ export const se_GetWhatsAppChannelIdCommand = async (input, context) => {
486
+ const b = rb(input, context);
487
+ const headers = {
488
+ 'content-type': 'application/json',
489
+ };
490
+ b.bp("/v2/conversations/whatsapp/get_channel_id");
491
+ const query = map({
492
+ [_u]: [, input[_uI]],
493
+ });
494
+ let body;
495
+ body = JSON.stringify(take(input, {
496
+ 'recipientId': [],
497
+ 'recipientNumber': [],
498
+ 'serviceUri': [],
499
+ }));
500
+ b.m("POST")
501
+ .h(headers)
502
+ .q(query)
503
+ .b(body);
504
+ return b.build();
505
+ };
380
506
  export const se_HideChannelCommand = async (input, context) => {
381
507
  const b = rb(input, context);
382
508
  const headers = {};
@@ -811,6 +937,30 @@ export const se_SendMessageReactionCommand = async (input, context) => {
811
937
  .b(body);
812
938
  return b.build();
813
939
  };
940
+ export const se_SendTemplateMessageCommand = async (input, context) => {
941
+ const b = rb(input, context);
942
+ const headers = {
943
+ 'content-type': 'application/json',
944
+ };
945
+ b.bp("/v2/conversations/channels/{channelId}/send_template_message");
946
+ b.p('channelId', () => input.channelId, '{channelId}', false);
947
+ let body;
948
+ body = JSON.stringify(take(input, {
949
+ 'attachments': _ => _json(_),
950
+ 'elements': _ => _json(_),
951
+ 'forward': _ => _json(_),
952
+ 'mentions': _ => _json(_),
953
+ 'messageId': [],
954
+ 'quote': _ => _json(_),
955
+ 'text': [],
956
+ 'userId': [],
957
+ 'whatsapp': _ => _json(_),
958
+ }));
959
+ b.m("POST")
960
+ .h(headers)
961
+ .b(body);
962
+ return b.build();
963
+ };
814
964
  export const se_SendTypingStartCommand = async (input, context) => {
815
965
  const b = rb(input, context);
816
966
  const headers = {};
@@ -1312,6 +1462,76 @@ export const de_GetOrCreateDirectChannelCommand = async (output, context) => {
1312
1462
  Object.assign(contents, doc);
1313
1463
  return contents;
1314
1464
  };
1465
+ export const de_GetOrCreateSmsChannelCommand = async (output, context) => {
1466
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1467
+ return de_CommandError(output, context);
1468
+ }
1469
+ const contents = map({
1470
+ $metadata: deserializeMetadata(output),
1471
+ });
1472
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1473
+ const doc = take(data, {
1474
+ 'channel': _json,
1475
+ });
1476
+ Object.assign(contents, doc);
1477
+ return contents;
1478
+ };
1479
+ export const de_GetOrCreateTelephonyChannelCommand = async (output, context) => {
1480
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1481
+ return de_CommandError(output, context);
1482
+ }
1483
+ const contents = map({
1484
+ $metadata: deserializeMetadata(output),
1485
+ });
1486
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1487
+ const doc = take(data, {
1488
+ 'channel': _json,
1489
+ });
1490
+ Object.assign(contents, doc);
1491
+ return contents;
1492
+ };
1493
+ export const de_GetOrCreateWhatsAppChannelCommand = async (output, context) => {
1494
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1495
+ return de_CommandError(output, context);
1496
+ }
1497
+ const contents = map({
1498
+ $metadata: deserializeMetadata(output),
1499
+ });
1500
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1501
+ const doc = take(data, {
1502
+ 'channel': _json,
1503
+ });
1504
+ Object.assign(contents, doc);
1505
+ return contents;
1506
+ };
1507
+ export const de_GetSmsChannelIdCommand = async (output, context) => {
1508
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1509
+ return de_CommandError(output, context);
1510
+ }
1511
+ const contents = map({
1512
+ $metadata: deserializeMetadata(output),
1513
+ });
1514
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1515
+ const doc = take(data, {
1516
+ 'channelId': __expectString,
1517
+ });
1518
+ Object.assign(contents, doc);
1519
+ return contents;
1520
+ };
1521
+ export const de_GetTelephonyChannelIdCommand = async (output, context) => {
1522
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1523
+ return de_CommandError(output, context);
1524
+ }
1525
+ const contents = map({
1526
+ $metadata: deserializeMetadata(output),
1527
+ });
1528
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1529
+ const doc = take(data, {
1530
+ 'channelId': __expectString,
1531
+ });
1532
+ Object.assign(contents, doc);
1533
+ return contents;
1534
+ };
1315
1535
  export const de_GetTokenCommand = async (output, context) => {
1316
1536
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1317
1537
  return de_CommandError(output, context);
@@ -1341,6 +1561,20 @@ export const de_GetUploadedFileInfoCommand = async (output, context) => {
1341
1561
  Object.assign(contents, doc);
1342
1562
  return contents;
1343
1563
  };
1564
+ export const de_GetWhatsAppChannelIdCommand = async (output, context) => {
1565
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1566
+ return de_CommandError(output, context);
1567
+ }
1568
+ const contents = map({
1569
+ $metadata: deserializeMetadata(output),
1570
+ });
1571
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1572
+ const doc = take(data, {
1573
+ 'channelId': __expectString,
1574
+ });
1575
+ Object.assign(contents, doc);
1576
+ return contents;
1577
+ };
1344
1578
  export const de_HideChannelCommand = async (output, context) => {
1345
1579
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1346
1580
  return de_CommandError(output, context);
@@ -1642,6 +1876,20 @@ export const de_SendMessageReactionCommand = async (output, context) => {
1642
1876
  await collectBody(output.body, context);
1643
1877
  return contents;
1644
1878
  };
1879
+ export const de_SendTemplateMessageCommand = async (output, context) => {
1880
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1881
+ return de_CommandError(output, context);
1882
+ }
1883
+ const contents = map({
1884
+ $metadata: deserializeMetadata(output),
1885
+ });
1886
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1887
+ const doc = take(data, {
1888
+ 'message': _json,
1889
+ });
1890
+ Object.assign(contents, doc);
1891
+ return contents;
1892
+ };
1645
1893
  export const de_SendTypingStartCommand = async (output, context) => {
1646
1894
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1647
1895
  return de_CommandError(output, context);
@@ -19,8 +19,14 @@ import { GetFilePresignedDownloadUrlCommandInput, GetFilePresignedDownloadUrlCom
19
19
  import { GetInboxStateCommandInput, GetInboxStateCommandOutput } from "./commands/GetInboxStateCommand";
20
20
  import { GetMessageCommandInput, GetMessageCommandOutput } from "./commands/GetMessageCommand";
21
21
  import { GetOrCreateDirectChannelCommandInput, GetOrCreateDirectChannelCommandOutput } from "./commands/GetOrCreateDirectChannelCommand";
22
+ import { GetOrCreateSmsChannelCommandInput, GetOrCreateSmsChannelCommandOutput } from "./commands/GetOrCreateSmsChannelCommand";
23
+ import { GetOrCreateTelephonyChannelCommandInput, GetOrCreateTelephonyChannelCommandOutput } from "./commands/GetOrCreateTelephonyChannelCommand";
24
+ import { GetOrCreateWhatsAppChannelCommandInput, GetOrCreateWhatsAppChannelCommandOutput } from "./commands/GetOrCreateWhatsAppChannelCommand";
25
+ import { GetSmsChannelIdCommandInput, GetSmsChannelIdCommandOutput } from "./commands/GetSmsChannelIdCommand";
26
+ import { GetTelephonyChannelIdCommandInput, GetTelephonyChannelIdCommandOutput } from "./commands/GetTelephonyChannelIdCommand";
22
27
  import { GetTokenCommandInput, GetTokenCommandOutput } from "./commands/GetTokenCommand";
23
28
  import { GetUploadedFileInfoCommandInput, GetUploadedFileInfoCommandOutput } from "./commands/GetUploadedFileInfoCommand";
29
+ import { GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput } from "./commands/GetWhatsAppChannelIdCommand";
24
30
  import { HideChannelCommandInput, HideChannelCommandOutput } from "./commands/HideChannelCommand";
25
31
  import { InviteCommandInput, InviteCommandOutput } from "./commands/InviteCommand";
26
32
  import { JoinChannelCommandInput, JoinChannelCommandOutput } from "./commands/JoinChannelCommand";
@@ -45,6 +51,7 @@ import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutp
45
51
  import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
46
52
  import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
47
53
  import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "./commands/SendMessageReactionCommand";
54
+ import { SendTemplateMessageCommandInput, SendTemplateMessageCommandOutput } from "./commands/SendTemplateMessageCommand";
48
55
  import { SendTypingStartCommandInput, SendTypingStartCommandOutput } from "./commands/SendTypingStartCommand";
49
56
  import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "./commands/SendTypingStopCommand";
50
57
  import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/ShowChannelCommand";
@@ -184,6 +191,36 @@ export interface Conversations {
184
191
  getOrCreateDirectChannel(args: GetOrCreateDirectChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetOrCreateDirectChannelCommandOutput>;
185
192
  getOrCreateDirectChannel(args: GetOrCreateDirectChannelCommandInput, cb: (err: any, data?: GetOrCreateDirectChannelCommandOutput) => void): void;
186
193
  getOrCreateDirectChannel(args: GetOrCreateDirectChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrCreateDirectChannelCommandOutput) => void): void;
194
+ /**
195
+ * @see {@link GetOrCreateSmsChannelCommand}
196
+ */
197
+ getOrCreateSmsChannel(args: GetOrCreateSmsChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetOrCreateSmsChannelCommandOutput>;
198
+ getOrCreateSmsChannel(args: GetOrCreateSmsChannelCommandInput, cb: (err: any, data?: GetOrCreateSmsChannelCommandOutput) => void): void;
199
+ getOrCreateSmsChannel(args: GetOrCreateSmsChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrCreateSmsChannelCommandOutput) => void): void;
200
+ /**
201
+ * @see {@link GetOrCreateTelephonyChannelCommand}
202
+ */
203
+ getOrCreateTelephonyChannel(args: GetOrCreateTelephonyChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetOrCreateTelephonyChannelCommandOutput>;
204
+ getOrCreateTelephonyChannel(args: GetOrCreateTelephonyChannelCommandInput, cb: (err: any, data?: GetOrCreateTelephonyChannelCommandOutput) => void): void;
205
+ getOrCreateTelephonyChannel(args: GetOrCreateTelephonyChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrCreateTelephonyChannelCommandOutput) => void): void;
206
+ /**
207
+ * @see {@link GetOrCreateWhatsAppChannelCommand}
208
+ */
209
+ getOrCreateWhatsAppChannel(args: GetOrCreateWhatsAppChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetOrCreateWhatsAppChannelCommandOutput>;
210
+ getOrCreateWhatsAppChannel(args: GetOrCreateWhatsAppChannelCommandInput, cb: (err: any, data?: GetOrCreateWhatsAppChannelCommandOutput) => void): void;
211
+ getOrCreateWhatsAppChannel(args: GetOrCreateWhatsAppChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrCreateWhatsAppChannelCommandOutput) => void): void;
212
+ /**
213
+ * @see {@link GetSmsChannelIdCommand}
214
+ */
215
+ getSmsChannelId(args: GetSmsChannelIdCommandInput, options?: __HttpHandlerOptions): Promise<GetSmsChannelIdCommandOutput>;
216
+ getSmsChannelId(args: GetSmsChannelIdCommandInput, cb: (err: any, data?: GetSmsChannelIdCommandOutput) => void): void;
217
+ getSmsChannelId(args: GetSmsChannelIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSmsChannelIdCommandOutput) => void): void;
218
+ /**
219
+ * @see {@link GetTelephonyChannelIdCommand}
220
+ */
221
+ getTelephonyChannelId(args: GetTelephonyChannelIdCommandInput, options?: __HttpHandlerOptions): Promise<GetTelephonyChannelIdCommandOutput>;
222
+ getTelephonyChannelId(args: GetTelephonyChannelIdCommandInput, cb: (err: any, data?: GetTelephonyChannelIdCommandOutput) => void): void;
223
+ getTelephonyChannelId(args: GetTelephonyChannelIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTelephonyChannelIdCommandOutput) => void): void;
187
224
  /**
188
225
  * @see {@link GetTokenCommand}
189
226
  */
@@ -197,6 +234,12 @@ export interface Conversations {
197
234
  getUploadedFileInfo(args: GetUploadedFileInfoCommandInput, options?: __HttpHandlerOptions): Promise<GetUploadedFileInfoCommandOutput>;
198
235
  getUploadedFileInfo(args: GetUploadedFileInfoCommandInput, cb: (err: any, data?: GetUploadedFileInfoCommandOutput) => void): void;
199
236
  getUploadedFileInfo(args: GetUploadedFileInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUploadedFileInfoCommandOutput) => void): void;
237
+ /**
238
+ * @see {@link GetWhatsAppChannelIdCommand}
239
+ */
240
+ getWhatsAppChannelId(args: GetWhatsAppChannelIdCommandInput, options?: __HttpHandlerOptions): Promise<GetWhatsAppChannelIdCommandOutput>;
241
+ getWhatsAppChannelId(args: GetWhatsAppChannelIdCommandInput, cb: (err: any, data?: GetWhatsAppChannelIdCommandOutput) => void): void;
242
+ getWhatsAppChannelId(args: GetWhatsAppChannelIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWhatsAppChannelIdCommandOutput) => void): void;
200
243
  /**
201
244
  * @see {@link HideChannelCommand}
202
245
  */
@@ -344,6 +387,12 @@ export interface Conversations {
344
387
  sendMessageReaction(args: SendMessageReactionCommandInput, options?: __HttpHandlerOptions): Promise<SendMessageReactionCommandOutput>;
345
388
  sendMessageReaction(args: SendMessageReactionCommandInput, cb: (err: any, data?: SendMessageReactionCommandOutput) => void): void;
346
389
  sendMessageReaction(args: SendMessageReactionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendMessageReactionCommandOutput) => void): void;
390
+ /**
391
+ * @see {@link SendTemplateMessageCommand}
392
+ */
393
+ sendTemplateMessage(args: SendTemplateMessageCommandInput, options?: __HttpHandlerOptions): Promise<SendTemplateMessageCommandOutput>;
394
+ sendTemplateMessage(args: SendTemplateMessageCommandInput, cb: (err: any, data?: SendTemplateMessageCommandOutput) => void): void;
395
+ sendTemplateMessage(args: SendTemplateMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendTemplateMessageCommandOutput) => void): void;
347
396
  /**
348
397
  * @see {@link SendTypingStartCommand}
349
398
  */
@@ -18,8 +18,14 @@ import { GetFilePresignedDownloadUrlCommandInput, GetFilePresignedDownloadUrlCom
18
18
  import { GetInboxStateCommandInput, GetInboxStateCommandOutput } from "./commands/GetInboxStateCommand";
19
19
  import { GetMessageCommandInput, GetMessageCommandOutput } from "./commands/GetMessageCommand";
20
20
  import { GetOrCreateDirectChannelCommandInput, GetOrCreateDirectChannelCommandOutput } from "./commands/GetOrCreateDirectChannelCommand";
21
+ import { GetOrCreateSmsChannelCommandInput, GetOrCreateSmsChannelCommandOutput } from "./commands/GetOrCreateSmsChannelCommand";
22
+ import { GetOrCreateTelephonyChannelCommandInput, GetOrCreateTelephonyChannelCommandOutput } from "./commands/GetOrCreateTelephonyChannelCommand";
23
+ import { GetOrCreateWhatsAppChannelCommandInput, GetOrCreateWhatsAppChannelCommandOutput } from "./commands/GetOrCreateWhatsAppChannelCommand";
24
+ import { GetSmsChannelIdCommandInput, GetSmsChannelIdCommandOutput } from "./commands/GetSmsChannelIdCommand";
25
+ import { GetTelephonyChannelIdCommandInput, GetTelephonyChannelIdCommandOutput } from "./commands/GetTelephonyChannelIdCommand";
21
26
  import { GetTokenCommandInput, GetTokenCommandOutput } from "./commands/GetTokenCommand";
22
27
  import { GetUploadedFileInfoCommandInput, GetUploadedFileInfoCommandOutput } from "./commands/GetUploadedFileInfoCommand";
28
+ import { GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput } from "./commands/GetWhatsAppChannelIdCommand";
23
29
  import { HideChannelCommandInput, HideChannelCommandOutput } from "./commands/HideChannelCommand";
24
30
  import { InviteCommandInput, InviteCommandOutput } from "./commands/InviteCommand";
25
31
  import { JoinChannelCommandInput, JoinChannelCommandOutput } from "./commands/JoinChannelCommand";
@@ -44,6 +50,7 @@ import { SendActionTriggerResultCommandInput, SendActionTriggerResultCommandOutp
44
50
  import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
45
51
  import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
46
52
  import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "./commands/SendMessageReactionCommand";
53
+ import { SendTemplateMessageCommandInput, SendTemplateMessageCommandOutput } from "./commands/SendTemplateMessageCommand";
47
54
  import { SendTypingStartCommandInput, SendTypingStartCommandOutput } from "./commands/SendTypingStartCommand";
48
55
  import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "./commands/SendTypingStopCommand";
49
56
  import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/ShowChannelCommand";
@@ -67,11 +74,11 @@ export { __Client };
67
74
  /**
68
75
  * @public
69
76
  */
70
- export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | CreateKiteChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetTokenCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelMembersReadStatusCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | ListPinnedMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | QueryChannelsCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
77
+ export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | CreateKiteChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetOrCreateSmsChannelCommandInput | GetOrCreateTelephonyChannelCommandInput | GetOrCreateWhatsAppChannelCommandInput | GetSmsChannelIdCommandInput | GetTelephonyChannelIdCommandInput | GetTokenCommandInput | GetUploadedFileInfoCommandInput | GetWhatsAppChannelIdCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelMembersReadStatusCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | ListPinnedMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | QueryChannelsCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTemplateMessageCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
71
78
  /**
72
79
  * @public
73
80
  */
74
- export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | CreateKiteChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetTokenCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelMembersReadStatusCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | ListPinnedMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | QueryChannelsCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
81
+ export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | CreateKiteChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetOrCreateSmsChannelCommandOutput | GetOrCreateTelephonyChannelCommandOutput | GetOrCreateWhatsAppChannelCommandOutput | GetSmsChannelIdCommandOutput | GetTelephonyChannelIdCommandOutput | GetTokenCommandOutput | GetUploadedFileInfoCommandOutput | GetWhatsAppChannelIdCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelMembersReadStatusCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | ListPinnedMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | QueryChannelsCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTemplateMessageCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
75
82
  /**
76
83
  * @public
77
84
  */