@wildix/xbees-conversations-client 1.0.33 → 1.0.35

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 (27) hide show
  1. package/dist-cjs/Conversations.js +4 -2
  2. package/dist-cjs/commands/{SendSystemMessageCommand.js → HideChannelCommand.js} +7 -7
  3. package/dist-cjs/commands/ShowChannelCommand.js +41 -0
  4. package/dist-cjs/commands/index.js +2 -1
  5. package/dist-cjs/protocols/Aws_restJson1.js +102 -104
  6. package/dist-es/Conversations.js +4 -2
  7. package/dist-es/commands/{SendSystemMessageCommand.js → HideChannelCommand.js} +6 -6
  8. package/dist-es/commands/ShowChannelCommand.js +37 -0
  9. package/dist-es/commands/index.js +2 -1
  10. package/dist-es/protocols/Aws_restJson1.js +93 -97
  11. package/dist-types/Conversations.d.ts +14 -7
  12. package/dist-types/ConversationsClient.d.ts +4 -3
  13. package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -0
  14. package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -0
  15. package/dist-types/commands/GetMessageCommand.d.ts +27 -45
  16. package/dist-types/commands/HideChannelCommand.d.ts +140 -0
  17. package/dist-types/commands/ListMessagesCommand.d.ts +27 -45
  18. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +61 -134
  19. package/dist-types/commands/SendGiphyCommand.d.ts +27 -45
  20. package/dist-types/commands/SendMessageCommand.d.ts +61 -134
  21. package/dist-types/commands/ShowChannelCommand.d.ts +140 -0
  22. package/dist-types/commands/UpdateMessageCommand.d.ts +61 -134
  23. package/dist-types/commands/index.d.ts +2 -1
  24. package/dist-types/models/models_0.d.ts +141 -112
  25. package/dist-types/protocols/Aws_restJson1.d.ts +18 -9
  26. package/package.json +1 -1
  27. package/dist-types/commands/SendSystemMessageCommand.d.ts +0 -213
@@ -10,6 +10,7 @@ export * from "./GetChannelMemberCommand";
10
10
  export * from "./GetDirectChannelIdCommand";
11
11
  export * from "./GetMessageCommand";
12
12
  export * from "./GetOrCreateDirectChannelCommand";
13
+ export * from "./HideChannelCommand";
13
14
  export * from "./InviteCommand";
14
15
  export * from "./JoinChannelCommand";
15
16
  export * from "./LeaveChannelCommand";
@@ -24,8 +25,8 @@ export * from "./ScheduleExternalFlagAdjustmentJobCommand";
24
25
  export * from "./SendGiphyCommand";
25
26
  export * from "./SendMessageCommand";
26
27
  export * from "./SendMessageReactionCommand";
27
- export * from "./SendSystemMessageCommand";
28
28
  export * from "./SendTypingStartCommand";
29
29
  export * from "./SendTypingStopCommand";
30
+ export * from "./ShowChannelCommand";
30
31
  export * from "./UpdateChannelCommand";
31
32
  export * from "./UpdateMessageCommand";
@@ -1,7 +1,7 @@
1
1
  import { ConversationsServiceException as __BaseException } from "../models/ConversationsServiceException";
2
2
  import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, ForbiddenException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, ValidationException, } from "../models/models_0";
3
3
  import { HttpRequest as __HttpRequest, } from "@smithy/protocol-http";
4
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, resolvedPath as __resolvedPath, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
4
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, resolvedPath as __resolvedPath, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
5
  export const se_AddChannelMemberCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
@@ -13,6 +13,7 @@ export const se_AddChannelMemberCommand = async (input, context) => {
13
13
  body = JSON.stringify(take(input, {
14
14
  'memberId': [],
15
15
  'memberToInvite': _ => _json(_),
16
+ 'silent': [],
16
17
  }));
17
18
  return new __HttpRequest({
18
19
  protocol,
@@ -35,6 +36,7 @@ export const se_AddChannelMembersCommand = async (input, context) => {
35
36
  body = JSON.stringify(take(input, {
36
37
  'members': _ => _json(_),
37
38
  'membersToInvite': _ => _json(_),
39
+ 'silent': [],
38
40
  }));
39
41
  return new __HttpRequest({
40
42
  protocol,
@@ -258,6 +260,26 @@ export const se_GetOrCreateDirectChannelCommand = async (input, context) => {
258
260
  body,
259
261
  });
260
262
  };
263
+ export const se_HideChannelCommand = async (input, context) => {
264
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
265
+ const headers = {};
266
+ let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/conversations/channels/{channelId}/hide";
267
+ resolvedPath = __resolvedPath(resolvedPath, input, 'channelId', () => input.channelId, '{channelId}', false);
268
+ const query = map({
269
+ "user": [, input.userId],
270
+ });
271
+ let body;
272
+ return new __HttpRequest({
273
+ protocol,
274
+ hostname,
275
+ port,
276
+ method: "POST",
277
+ headers,
278
+ path: resolvedPath,
279
+ query,
280
+ body,
281
+ });
282
+ };
261
283
  export const se_InviteCommand = async (input, context) => {
262
284
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
263
285
  const headers = {
@@ -469,7 +491,7 @@ export const se_PartialUpdateMessageCommand = async (input, context) => {
469
491
  resolvedPath = __resolvedPath(resolvedPath, input, 'messageId', () => input.messageId, '{messageId}', false);
470
492
  let body;
471
493
  body = JSON.stringify(take(input, {
472
- 'set': _ => se_PartialUpdateMessageSetInput(_, context),
494
+ 'set': _ => _json(_),
473
495
  'unset': _ => _json(_),
474
496
  }));
475
497
  return new __HttpRequest({
@@ -544,7 +566,7 @@ export const se_SendMessageCommand = async (input, context) => {
544
566
  'forward': _ => _json(_),
545
567
  'mentions': _ => _json(_),
546
568
  'messageId': [],
547
- 'quote': _ => se_Message(_, context),
569
+ 'quote': _ => _json(_),
548
570
  'text': [],
549
571
  }));
550
572
  return new __HttpRequest({
@@ -584,20 +606,15 @@ export const se_SendMessageReactionCommand = async (input, context) => {
584
606
  body,
585
607
  });
586
608
  };
587
- export const se_SendSystemMessageCommand = async (input, context) => {
609
+ export const se_SendTypingStartCommand = async (input, context) => {
588
610
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
589
- const headers = {
590
- 'content-type': 'application/json',
591
- };
592
- let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/conversations/channels/{channelId}/send_system_message";
611
+ const headers = {};
612
+ let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/conversations/channels/{channelId}/send_typing_start";
593
613
  resolvedPath = __resolvedPath(resolvedPath, input, 'channelId', () => input.channelId, '{channelId}', false);
594
614
  const query = map({
595
615
  "user": [, input.userId],
596
616
  });
597
617
  let body;
598
- body = JSON.stringify(take(input, {
599
- 'messageId': [],
600
- }));
601
618
  return new __HttpRequest({
602
619
  protocol,
603
620
  hostname,
@@ -609,10 +626,10 @@ export const se_SendSystemMessageCommand = async (input, context) => {
609
626
  body,
610
627
  });
611
628
  };
612
- export const se_SendTypingStartCommand = async (input, context) => {
629
+ export const se_SendTypingStopCommand = async (input, context) => {
613
630
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
614
631
  const headers = {};
615
- let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/conversations/channels/{channelId}/send_typing_start";
632
+ let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/conversations/channels/{channelId}/send_typing_stop";
616
633
  resolvedPath = __resolvedPath(resolvedPath, input, 'channelId', () => input.channelId, '{channelId}', false);
617
634
  const query = map({
618
635
  "user": [, input.userId],
@@ -629,10 +646,10 @@ export const se_SendTypingStartCommand = async (input, context) => {
629
646
  body,
630
647
  });
631
648
  };
632
- export const se_SendTypingStopCommand = async (input, context) => {
649
+ export const se_ShowChannelCommand = async (input, context) => {
633
650
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
634
651
  const headers = {};
635
- let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/conversations/channels/{channelId}/send_typing_stop";
652
+ let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/conversations/channels/{channelId}/show";
636
653
  resolvedPath = __resolvedPath(resolvedPath, input, 'channelId', () => input.channelId, '{channelId}', false);
637
654
  const query = map({
638
655
  "user": [, input.userId],
@@ -692,7 +709,7 @@ export const se_UpdateMessageCommand = async (input, context) => {
692
709
  'attachments': _ => _json(_),
693
710
  'forward': _ => _json(_),
694
711
  'mentions': _ => _json(_),
695
- 'quote': _ => se_Message(_, context),
712
+ 'quote': _ => _json(_),
696
713
  'text': [],
697
714
  }));
698
715
  return new __HttpRequest({
@@ -1106,7 +1123,7 @@ export const de_GetMessageCommand = async (output, context) => {
1106
1123
  });
1107
1124
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1108
1125
  const doc = take(data, {
1109
- 'message': _ => de_Message(_, context),
1126
+ 'message': _json,
1110
1127
  });
1111
1128
  Object.assign(contents, doc);
1112
1129
  return contents;
@@ -1172,6 +1189,45 @@ const de_GetOrCreateDirectChannelCommandError = async (output, context) => {
1172
1189
  });
1173
1190
  }
1174
1191
  };
1192
+ export const de_HideChannelCommand = async (output, context) => {
1193
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1194
+ return de_HideChannelCommandError(output, context);
1195
+ }
1196
+ const contents = map({
1197
+ $metadata: deserializeMetadata(output),
1198
+ });
1199
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1200
+ const doc = take(data, {
1201
+ 'channel': _json,
1202
+ });
1203
+ Object.assign(contents, doc);
1204
+ return contents;
1205
+ };
1206
+ const de_HideChannelCommandError = async (output, context) => {
1207
+ const parsedOutput = {
1208
+ ...output,
1209
+ body: await parseErrorBody(output.body, context)
1210
+ };
1211
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1212
+ switch (errorCode) {
1213
+ case "ChannelNotFoundException":
1214
+ case "wildix.xbees.conversations#ChannelNotFoundException":
1215
+ throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
1216
+ case "ForbiddenException":
1217
+ case "smithy.framework#ForbiddenException":
1218
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1219
+ case "ValidationException":
1220
+ case "smithy.framework#ValidationException":
1221
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1222
+ default:
1223
+ const parsedBody = parsedOutput.body;
1224
+ return throwDefaultError({
1225
+ output,
1226
+ parsedBody,
1227
+ errorCode
1228
+ });
1229
+ }
1230
+ };
1175
1231
  export const de_InviteCommand = async (output, context) => {
1176
1232
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1177
1233
  return de_InviteCommandError(output, context);
@@ -1406,7 +1462,7 @@ export const de_ListMessagesCommand = async (output, context) => {
1406
1462
  });
1407
1463
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1408
1464
  const doc = take(data, {
1409
- 'messages': _ => de_MessagesList(_, context),
1465
+ 'messages': _json,
1410
1466
  });
1411
1467
  Object.assign(contents, doc);
1412
1468
  return contents;
@@ -1519,7 +1575,7 @@ export const de_PartialUpdateMessageCommand = async (output, context) => {
1519
1575
  });
1520
1576
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1521
1577
  const doc = take(data, {
1522
- 'message': _ => de_Message(_, context),
1578
+ 'message': _json,
1523
1579
  });
1524
1580
  Object.assign(contents, doc);
1525
1581
  return contents;
@@ -1596,7 +1652,7 @@ export const de_SendGiphyCommand = async (output, context) => {
1596
1652
  });
1597
1653
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1598
1654
  const doc = take(data, {
1599
- 'message': _ => de_Message(_, context),
1655
+ 'message': _json,
1600
1656
  });
1601
1657
  Object.assign(contents, doc);
1602
1658
  return contents;
@@ -1635,7 +1691,7 @@ export const de_SendMessageCommand = async (output, context) => {
1635
1691
  });
1636
1692
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1637
1693
  const doc = take(data, {
1638
- 'message': _ => de_Message(_, context),
1694
+ 'message': _json,
1639
1695
  });
1640
1696
  Object.assign(contents, doc);
1641
1697
  return contents;
@@ -1700,21 +1756,17 @@ const de_SendMessageReactionCommandError = async (output, context) => {
1700
1756
  });
1701
1757
  }
1702
1758
  };
1703
- export const de_SendSystemMessageCommand = async (output, context) => {
1759
+ export const de_SendTypingStartCommand = async (output, context) => {
1704
1760
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1705
- return de_SendSystemMessageCommandError(output, context);
1761
+ return de_SendTypingStartCommandError(output, context);
1706
1762
  }
1707
1763
  const contents = map({
1708
1764
  $metadata: deserializeMetadata(output),
1709
1765
  });
1710
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1711
- const doc = take(data, {
1712
- 'message': _ => de_Message(_, context),
1713
- });
1714
- Object.assign(contents, doc);
1766
+ await collectBody(output.body, context);
1715
1767
  return contents;
1716
1768
  };
1717
- const de_SendSystemMessageCommandError = async (output, context) => {
1769
+ const de_SendTypingStartCommandError = async (output, context) => {
1718
1770
  const parsedOutput = {
1719
1771
  ...output,
1720
1772
  body: await parseErrorBody(output.body, context)
@@ -1739,9 +1791,9 @@ const de_SendSystemMessageCommandError = async (output, context) => {
1739
1791
  });
1740
1792
  }
1741
1793
  };
1742
- export const de_SendTypingStartCommand = async (output, context) => {
1794
+ export const de_SendTypingStopCommand = async (output, context) => {
1743
1795
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1744
- return de_SendTypingStartCommandError(output, context);
1796
+ return de_SendTypingStopCommandError(output, context);
1745
1797
  }
1746
1798
  const contents = map({
1747
1799
  $metadata: deserializeMetadata(output),
@@ -1749,7 +1801,7 @@ export const de_SendTypingStartCommand = async (output, context) => {
1749
1801
  await collectBody(output.body, context);
1750
1802
  return contents;
1751
1803
  };
1752
- const de_SendTypingStartCommandError = async (output, context) => {
1804
+ const de_SendTypingStopCommandError = async (output, context) => {
1753
1805
  const parsedOutput = {
1754
1806
  ...output,
1755
1807
  body: await parseErrorBody(output.body, context)
@@ -1774,17 +1826,21 @@ const de_SendTypingStartCommandError = async (output, context) => {
1774
1826
  });
1775
1827
  }
1776
1828
  };
1777
- export const de_SendTypingStopCommand = async (output, context) => {
1829
+ export const de_ShowChannelCommand = async (output, context) => {
1778
1830
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1779
- return de_SendTypingStopCommandError(output, context);
1831
+ return de_ShowChannelCommandError(output, context);
1780
1832
  }
1781
1833
  const contents = map({
1782
1834
  $metadata: deserializeMetadata(output),
1783
1835
  });
1784
- await collectBody(output.body, context);
1836
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1837
+ const doc = take(data, {
1838
+ 'channel': _json,
1839
+ });
1840
+ Object.assign(contents, doc);
1785
1841
  return contents;
1786
1842
  };
1787
- const de_SendTypingStopCommandError = async (output, context) => {
1843
+ const de_ShowChannelCommandError = async (output, context) => {
1788
1844
  const parsedOutput = {
1789
1845
  ...output,
1790
1846
  body: await parseErrorBody(output.body, context)
@@ -1857,7 +1913,7 @@ export const de_UpdateMessageCommand = async (output, context) => {
1857
1913
  });
1858
1914
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1859
1915
  const doc = take(data, {
1860
- 'message': _ => de_Message(_, context),
1916
+ 'message': _json,
1861
1917
  });
1862
1918
  Object.assign(contents, doc);
1863
1919
  return contents;
@@ -1995,66 +2051,6 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
1995
2051
  });
1996
2052
  return __decorateServiceException(exception, parsedOutput.body);
1997
2053
  };
1998
- const se_Message = (input, context) => {
1999
- return take(input, {
2000
- 'attachments': _json,
2001
- 'channelId': [],
2002
- 'createdAt': [],
2003
- 'edit': [],
2004
- 'event': [],
2005
- 'forward': _json,
2006
- 'giphy': _json,
2007
- 'latestReactions': _json,
2008
- 'mentions': _json,
2009
- 'messageId': [],
2010
- 'quote': _ => se_Message(_, context),
2011
- 'reactionCounts': _json,
2012
- 'silent': [],
2013
- 'sms': [],
2014
- 'smsStatus': [],
2015
- 'text': [],
2016
- 'type': [],
2017
- 'updatedAt': [],
2018
- 'user': _json,
2019
- });
2020
- };
2021
- const se_PartialUpdateMessageSetInput = (input, context) => {
2022
- return take(input, {
2023
- 'attachments': _json,
2024
- 'forward': _json,
2025
- 'quote': _ => se_Message(_, context),
2026
- 'text': [],
2027
- });
2028
- };
2029
- const de_Message = (output, context) => {
2030
- return take(output, {
2031
- 'attachments': _json,
2032
- 'channelId': __expectString,
2033
- 'createdAt': __expectString,
2034
- 'edit': __expectBoolean,
2035
- 'event': __expectString,
2036
- 'forward': _json,
2037
- 'giphy': _json,
2038
- 'latestReactions': _json,
2039
- 'mentions': _json,
2040
- 'messageId': __expectString,
2041
- 'quote': (_) => de_Message(_, context),
2042
- 'reactionCounts': _json,
2043
- 'silent': __expectBoolean,
2044
- 'sms': __expectBoolean,
2045
- 'smsStatus': __expectString,
2046
- 'text': __expectString,
2047
- 'type': __expectString,
2048
- 'updatedAt': __expectString,
2049
- 'user': _json,
2050
- });
2051
- };
2052
- const de_MessagesList = (output, context) => {
2053
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
2054
- return de_Message(entry, context);
2055
- });
2056
- return retVal;
2057
- };
2058
2054
  const deserializeMetadata = (output) => ({
2059
2055
  httpStatusCode: output.statusCode,
2060
2056
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -11,6 +11,7 @@ import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "./c
11
11
  import { GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput } from "./commands/GetDirectChannelIdCommand";
12
12
  import { GetMessageCommandInput, GetMessageCommandOutput } from "./commands/GetMessageCommand";
13
13
  import { GetOrCreateDirectChannelCommandInput, GetOrCreateDirectChannelCommandOutput } from "./commands/GetOrCreateDirectChannelCommand";
14
+ import { HideChannelCommandInput, HideChannelCommandOutput } from "./commands/HideChannelCommand";
14
15
  import { InviteCommandInput, InviteCommandOutput } from "./commands/InviteCommand";
15
16
  import { JoinChannelCommandInput, JoinChannelCommandOutput } from "./commands/JoinChannelCommand";
16
17
  import { LeaveChannelCommandInput, LeaveChannelCommandOutput } from "./commands/LeaveChannelCommand";
@@ -25,9 +26,9 @@ import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdju
25
26
  import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
26
27
  import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
27
28
  import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "./commands/SendMessageReactionCommand";
28
- import { SendSystemMessageCommandInput, SendSystemMessageCommandOutput } from "./commands/SendSystemMessageCommand";
29
29
  import { SendTypingStartCommandInput, SendTypingStartCommandOutput } from "./commands/SendTypingStartCommand";
30
30
  import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "./commands/SendTypingStopCommand";
31
+ import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/ShowChannelCommand";
31
32
  import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
32
33
  import { UpdateMessageCommandInput, UpdateMessageCommandOutput } from "./commands/UpdateMessageCommand";
33
34
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
@@ -104,6 +105,12 @@ export interface Conversations {
104
105
  getOrCreateDirectChannel(args: GetOrCreateDirectChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetOrCreateDirectChannelCommandOutput>;
105
106
  getOrCreateDirectChannel(args: GetOrCreateDirectChannelCommandInput, cb: (err: any, data?: GetOrCreateDirectChannelCommandOutput) => void): void;
106
107
  getOrCreateDirectChannel(args: GetOrCreateDirectChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrCreateDirectChannelCommandOutput) => void): void;
108
+ /**
109
+ * @see {@link HideChannelCommand}
110
+ */
111
+ hideChannel(args: HideChannelCommandInput, options?: __HttpHandlerOptions): Promise<HideChannelCommandOutput>;
112
+ hideChannel(args: HideChannelCommandInput, cb: (err: any, data?: HideChannelCommandOutput) => void): void;
113
+ hideChannel(args: HideChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: HideChannelCommandOutput) => void): void;
107
114
  /**
108
115
  * @see {@link InviteCommand}
109
116
  */
@@ -188,12 +195,6 @@ export interface Conversations {
188
195
  sendMessageReaction(args: SendMessageReactionCommandInput, options?: __HttpHandlerOptions): Promise<SendMessageReactionCommandOutput>;
189
196
  sendMessageReaction(args: SendMessageReactionCommandInput, cb: (err: any, data?: SendMessageReactionCommandOutput) => void): void;
190
197
  sendMessageReaction(args: SendMessageReactionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendMessageReactionCommandOutput) => void): void;
191
- /**
192
- * @see {@link SendSystemMessageCommand}
193
- */
194
- sendSystemMessage(args: SendSystemMessageCommandInput, options?: __HttpHandlerOptions): Promise<SendSystemMessageCommandOutput>;
195
- sendSystemMessage(args: SendSystemMessageCommandInput, cb: (err: any, data?: SendSystemMessageCommandOutput) => void): void;
196
- sendSystemMessage(args: SendSystemMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendSystemMessageCommandOutput) => void): void;
197
198
  /**
198
199
  * @see {@link SendTypingStartCommand}
199
200
  */
@@ -206,6 +207,12 @@ export interface Conversations {
206
207
  sendTypingStop(args: SendTypingStopCommandInput, options?: __HttpHandlerOptions): Promise<SendTypingStopCommandOutput>;
207
208
  sendTypingStop(args: SendTypingStopCommandInput, cb: (err: any, data?: SendTypingStopCommandOutput) => void): void;
208
209
  sendTypingStop(args: SendTypingStopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendTypingStopCommandOutput) => void): void;
210
+ /**
211
+ * @see {@link ShowChannelCommand}
212
+ */
213
+ showChannel(args: ShowChannelCommandInput, options?: __HttpHandlerOptions): Promise<ShowChannelCommandOutput>;
214
+ showChannel(args: ShowChannelCommandInput, cb: (err: any, data?: ShowChannelCommandOutput) => void): void;
215
+ showChannel(args: ShowChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ShowChannelCommandOutput) => void): void;
209
216
  /**
210
217
  * @see {@link UpdateChannelCommand}
211
218
  */
@@ -10,6 +10,7 @@ import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "./c
10
10
  import { GetDirectChannelIdCommandInput, GetDirectChannelIdCommandOutput } from "./commands/GetDirectChannelIdCommand";
11
11
  import { GetMessageCommandInput, GetMessageCommandOutput } from "./commands/GetMessageCommand";
12
12
  import { GetOrCreateDirectChannelCommandInput, GetOrCreateDirectChannelCommandOutput } from "./commands/GetOrCreateDirectChannelCommand";
13
+ import { HideChannelCommandInput, HideChannelCommandOutput } from "./commands/HideChannelCommand";
13
14
  import { InviteCommandInput, InviteCommandOutput } from "./commands/InviteCommand";
14
15
  import { JoinChannelCommandInput, JoinChannelCommandOutput } from "./commands/JoinChannelCommand";
15
16
  import { LeaveChannelCommandInput, LeaveChannelCommandOutput } from "./commands/LeaveChannelCommand";
@@ -24,9 +25,9 @@ import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdju
24
25
  import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
25
26
  import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
26
27
  import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "./commands/SendMessageReactionCommand";
27
- import { SendSystemMessageCommandInput, SendSystemMessageCommandOutput } from "./commands/SendSystemMessageCommand";
28
28
  import { SendTypingStartCommandInput, SendTypingStartCommandOutput } from "./commands/SendTypingStartCommand";
29
29
  import { SendTypingStopCommandInput, SendTypingStopCommandOutput } from "./commands/SendTypingStopCommand";
30
+ import { ShowChannelCommandInput, ShowChannelCommandOutput } from "./commands/ShowChannelCommand";
30
31
  import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
31
32
  import { UpdateMessageCommandInput, UpdateMessageCommandOutput } from "./commands/UpdateMessageCommand";
32
33
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
@@ -38,11 +39,11 @@ export { __Client };
38
39
  /**
39
40
  * @public
40
41
  */
41
- export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendSystemMessageCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput;
42
+ export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput;
42
43
  /**
43
44
  * @public
44
45
  */
45
- export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendSystemMessageCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput;
46
+ export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput;
46
47
  /**
47
48
  * @public
48
49
  */
@@ -31,6 +31,7 @@ export interface AddChannelMemberCommandOutput extends AddChannelMemberOutput, _
31
31
  * const client = new ConversationsClient(config);
32
32
  * const input = { // AddChannelMemberInput
33
33
  * channelId: "STRING_VALUE", // required
34
+ * silent: true || false,
34
35
  * memberId: "STRING_VALUE",
35
36
  * memberToInvite: { // UserToInvite
36
37
  * email: "STRING_VALUE",
@@ -31,6 +31,7 @@ export interface AddChannelMembersCommandOutput extends AddChannelMembersOutput,
31
31
  * const client = new ConversationsClient(config);
32
32
  * const input = { // AddChannelMembersInput
33
33
  * channelId: "STRING_VALUE", // required
34
+ * silent: true || false,
34
35
  * members: [ // UsersIdList
35
36
  * "STRING_VALUE",
36
37
  * ],
@@ -50,7 +50,24 @@ export interface GetMessageCommandOutput extends GetMessageOutput, __MetadataBea
50
50
  * // thumbnail: "STRING_VALUE",
51
51
  * // },
52
52
  * // ],
53
- * // quote: {
53
+ * // quote: { // MessageQuote
54
+ * // messageId: "STRING_VALUE", // required
55
+ * // channelId: "STRING_VALUE", // required
56
+ * // user: { // User
57
+ * // id: "STRING_VALUE", // required
58
+ * // name: "STRING_VALUE",
59
+ * // email: "STRING_VALUE",
60
+ * // phone: "STRING_VALUE",
61
+ * // picture: "STRING_VALUE",
62
+ * // company: "STRING_VALUE",
63
+ * // pbxDomain: "STRING_VALUE",
64
+ * // pbxPort: "STRING_VALUE",
65
+ * // pbxExtension: "STRING_VALUE",
66
+ * // pbxSerial: "STRING_VALUE",
67
+ * // pbxUserId: "STRING_VALUE",
68
+ * // createdAt: "STRING_VALUE",
69
+ * // updatedAt: "STRING_VALUE",
70
+ * // },
54
71
  * // text: "STRING_VALUE",
55
72
  * // attachments: [
56
73
  * // {
@@ -64,43 +81,12 @@ export interface GetMessageCommandOutput extends GetMessageOutput, __MetadataBea
64
81
  * // thumbnail: "STRING_VALUE",
65
82
  * // },
66
83
  * // ],
67
- * // quote: "<Message>",
68
84
  * // forward: { // MessageForward
69
85
  * // forwardCompany: "STRING_VALUE",
70
86
  * // forwardDate: "STRING_VALUE", // required
71
87
  * // forwardEmail: "STRING_VALUE",
72
88
  * // forwardName: "STRING_VALUE",
73
89
  * // },
74
- * // type: "regular", // required
75
- * // giphy: { // MessageGiphy
76
- * // id: "STRING_VALUE",
77
- * // size: "STRING_VALUE",
78
- * // url: "STRING_VALUE",
79
- * // height: "STRING_VALUE",
80
- * // width: "STRING_VALUE",
81
- * // },
82
- * // silent: true || false,
83
- * // event: "STRING_VALUE",
84
- * // sms: true || false,
85
- * // smsStatus: "sent" || "delivered" || "trying" || "error",
86
- * // messageId: "STRING_VALUE", // required
87
- * // channelId: "STRING_VALUE", // required
88
- * // user: { // User
89
- * // id: "STRING_VALUE", // required
90
- * // name: "STRING_VALUE",
91
- * // email: "STRING_VALUE",
92
- * // phone: "STRING_VALUE",
93
- * // picture: "STRING_VALUE",
94
- * // company: "STRING_VALUE",
95
- * // pbxDomain: "STRING_VALUE",
96
- * // pbxPort: "STRING_VALUE",
97
- * // pbxExtension: "STRING_VALUE",
98
- * // pbxSerial: "STRING_VALUE",
99
- * // pbxUserId: "STRING_VALUE",
100
- * // createdAt: "STRING_VALUE",
101
- * // updatedAt: "STRING_VALUE",
102
- * // },
103
- * // edit: true || false,
104
90
  * // mentions: [ // UsersList
105
91
  * // {
106
92
  * // id: "STRING_VALUE", // required
@@ -118,16 +104,12 @@ export interface GetMessageCommandOutput extends GetMessageOutput, __MetadataBea
118
104
  * // updatedAt: "STRING_VALUE",
119
105
  * // },
120
106
  * // ],
121
- * // latestReactions: [ // ReactionList
122
- * // { // Reaction
123
- * // type: "STRING_VALUE",
124
- * // userId: "STRING_VALUE",
125
- * // messageId: "STRING_VALUE",
126
- * // user: "<User>",
127
- * // },
128
- * // ],
129
- * // reactionCounts: { // ReactionCounts
130
- * // "<keys>": Number("int"),
107
+ * // giphy: { // MessageGiphy
108
+ * // id: "STRING_VALUE",
109
+ * // size: "STRING_VALUE",
110
+ * // url: "STRING_VALUE",
111
+ * // height: "STRING_VALUE",
112
+ * // width: "STRING_VALUE",
131
113
  * // },
132
114
  * // createdAt: "STRING_VALUE", // required
133
115
  * // updatedAt: "STRING_VALUE",
@@ -157,15 +139,15 @@ export interface GetMessageCommandOutput extends GetMessageOutput, __MetadataBea
157
139
  * // mentions: [
158
140
  * // "<User>",
159
141
  * // ],
160
- * // latestReactions: [
161
- * // {
142
+ * // latestReactions: [ // ReactionList
143
+ * // { // Reaction
162
144
  * // type: "STRING_VALUE",
163
145
  * // userId: "STRING_VALUE",
164
146
  * // messageId: "STRING_VALUE",
165
147
  * // user: "<User>",
166
148
  * // },
167
149
  * // ],
168
- * // reactionCounts: {
150
+ * // reactionCounts: { // ReactionCounts
169
151
  * // "<keys>": Number("int"),
170
152
  * // },
171
153
  * // createdAt: "STRING_VALUE", // required