@wildix/stream-client 0.0.4 → 0.0.5

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 (170) hide show
  1. package/dist-cjs/StreamService.js +98 -6
  2. package/dist-cjs/commands/AddChannelMemberCommand.js +21 -0
  3. package/dist-cjs/commands/AddChannelMembersCommand.js +21 -0
  4. package/dist-cjs/commands/AssignChannelCommand.js +21 -0
  5. package/dist-cjs/commands/CreateGroupChannelCommand.js +21 -0
  6. package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
  7. package/dist-cjs/commands/CreateSectionCommand.js +21 -0
  8. package/dist-cjs/commands/DeleteChannelCommand.js +21 -0
  9. package/dist-cjs/commands/DeleteChannelMemberCommand.js +21 -0
  10. package/dist-cjs/commands/DeleteMessageReactionCommand.js +21 -0
  11. package/dist-cjs/commands/DeleteSectionCommand.js +21 -0
  12. package/dist-cjs/commands/GetChannelCommand.js +21 -0
  13. package/dist-cjs/commands/GetChannelMemberCommand.js +21 -0
  14. package/dist-cjs/commands/GetDirectChannelIdCommand.js +21 -0
  15. package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +21 -0
  16. package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +21 -0
  17. package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +21 -0
  18. package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +21 -0
  19. package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +21 -0
  20. package/dist-cjs/commands/GetSmsChannelIdCommand.js +21 -0
  21. package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +21 -0
  22. package/dist-cjs/commands/GetTokenCommand.js +21 -0
  23. package/dist-cjs/commands/GetUploadedFileInfoCommand.js +21 -0
  24. package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +21 -0
  25. package/dist-cjs/commands/{AddReactionCommand.js → HideChannelCommand.js} +7 -7
  26. package/dist-cjs/commands/{EditMessageCommand.js → JoinChannelCommand.js} +7 -7
  27. package/dist-cjs/commands/LeaveChannelCommand.js +21 -0
  28. package/dist-cjs/commands/ListChannelMembersCommand.js +21 -0
  29. package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +21 -0
  30. package/dist-cjs/commands/MarkReadCommand.js +21 -0
  31. package/dist-cjs/commands/MarkUnreadCommand.js +21 -0
  32. package/dist-cjs/commands/MoveChannelToSectionCommand.js +21 -0
  33. package/dist-cjs/commands/MuteChannelCommand.js +21 -0
  34. package/dist-cjs/commands/PartialUpdateChannelCommand.js +21 -0
  35. package/dist-cjs/commands/PartialUpdateMessageCommand.js +21 -0
  36. package/dist-cjs/commands/PinChannelCommand.js +21 -0
  37. package/dist-cjs/commands/QueryChannelsCommand.js +21 -0
  38. package/dist-cjs/commands/RemoveChannelFromSectionCommand.js +21 -0
  39. package/dist-cjs/commands/RenameSectionCommand.js +21 -0
  40. package/dist-cjs/commands/SendGiphyCommand.js +21 -0
  41. package/dist-cjs/commands/SendMessageReactionCommand.js +21 -0
  42. package/dist-cjs/commands/SendSystemMessageCommand.js +21 -0
  43. package/dist-cjs/commands/SendTypingStartCommand.js +21 -0
  44. package/dist-cjs/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +7 -7
  45. package/dist-cjs/commands/ShowChannelCommand.js +21 -0
  46. package/dist-cjs/commands/UnmuteChannelCommand.js +21 -0
  47. package/dist-cjs/commands/UnpinChannelCommand.js +21 -0
  48. package/dist-cjs/commands/UpdateChannelCommand.js +21 -0
  49. package/dist-cjs/commands/UpdateMessageCommand.js +21 -0
  50. package/dist-cjs/commands/UploadFileCommand.js +21 -0
  51. package/dist-cjs/commands/index.js +49 -3
  52. package/dist-cjs/models/models_0.js +254 -49
  53. package/dist-cjs/protocols/Aws_restJson1.js +1954 -130
  54. package/dist-es/StreamService.js +98 -6
  55. package/dist-es/commands/AddChannelMemberCommand.js +17 -0
  56. package/dist-es/commands/AddChannelMembersCommand.js +17 -0
  57. package/dist-es/commands/AssignChannelCommand.js +17 -0
  58. package/dist-es/commands/CreateGroupChannelCommand.js +17 -0
  59. package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
  60. package/dist-es/commands/CreateSectionCommand.js +17 -0
  61. package/dist-es/commands/DeleteChannelCommand.js +17 -0
  62. package/dist-es/commands/DeleteChannelMemberCommand.js +17 -0
  63. package/dist-es/commands/DeleteMessageReactionCommand.js +17 -0
  64. package/dist-es/commands/DeleteSectionCommand.js +17 -0
  65. package/dist-es/commands/GetChannelCommand.js +17 -0
  66. package/dist-es/commands/GetChannelMemberCommand.js +17 -0
  67. package/dist-es/commands/GetDirectChannelIdCommand.js +17 -0
  68. package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +17 -0
  69. package/dist-es/commands/GetOrCreateDirectChannelCommand.js +17 -0
  70. package/dist-es/commands/GetOrCreateSmsChannelCommand.js +17 -0
  71. package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +17 -0
  72. package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +17 -0
  73. package/dist-es/commands/GetSmsChannelIdCommand.js +17 -0
  74. package/dist-es/commands/GetTelephonyChannelIdCommand.js +17 -0
  75. package/dist-es/commands/GetTokenCommand.js +17 -0
  76. package/dist-es/commands/GetUploadedFileInfoCommand.js +17 -0
  77. package/dist-es/commands/GetWhatsAppChannelIdCommand.js +17 -0
  78. package/dist-es/commands/{EditMessageCommand.js → HideChannelCommand.js} +6 -6
  79. package/dist-es/commands/{AddReactionCommand.js → JoinChannelCommand.js} +6 -6
  80. package/dist-es/commands/LeaveChannelCommand.js +17 -0
  81. package/dist-es/commands/ListChannelMembersCommand.js +17 -0
  82. package/dist-es/commands/ListChannelMembersReadStatusCommand.js +17 -0
  83. package/dist-es/commands/MarkReadCommand.js +17 -0
  84. package/dist-es/commands/MarkUnreadCommand.js +17 -0
  85. package/dist-es/commands/MoveChannelToSectionCommand.js +17 -0
  86. package/dist-es/commands/MuteChannelCommand.js +17 -0
  87. package/dist-es/commands/PartialUpdateChannelCommand.js +17 -0
  88. package/dist-es/commands/PartialUpdateMessageCommand.js +17 -0
  89. package/dist-es/commands/PinChannelCommand.js +17 -0
  90. package/dist-es/commands/QueryChannelsCommand.js +17 -0
  91. package/dist-es/commands/RemoveChannelFromSectionCommand.js +17 -0
  92. package/dist-es/commands/RenameSectionCommand.js +17 -0
  93. package/dist-es/commands/SendGiphyCommand.js +17 -0
  94. package/dist-es/commands/SendMessageReactionCommand.js +17 -0
  95. package/dist-es/commands/SendSystemMessageCommand.js +17 -0
  96. package/dist-es/commands/SendTypingStartCommand.js +17 -0
  97. package/dist-es/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +6 -6
  98. package/dist-es/commands/ShowChannelCommand.js +17 -0
  99. package/dist-es/commands/UnmuteChannelCommand.js +17 -0
  100. package/dist-es/commands/UnpinChannelCommand.js +17 -0
  101. package/dist-es/commands/UpdateChannelCommand.js +17 -0
  102. package/dist-es/commands/UpdateMessageCommand.js +17 -0
  103. package/dist-es/commands/UploadFileCommand.js +17 -0
  104. package/dist-es/commands/index.js +49 -3
  105. package/dist-es/models/models_0.js +242 -46
  106. package/dist-es/protocols/Aws_restJson1.js +1842 -112
  107. package/dist-types/StreamService.d.ts +341 -15
  108. package/dist-types/StreamServiceClient.d.ts +51 -5
  109. package/dist-types/commands/AddChannelMemberCommand.d.ts +101 -0
  110. package/dist-types/commands/AddChannelMembersCommand.d.ts +108 -0
  111. package/dist-types/commands/AssignChannelCommand.d.ts +96 -0
  112. package/dist-types/commands/CreateGroupChannelCommand.d.ts +201 -0
  113. package/dist-types/commands/CreateKiteChannelCommand.d.ts +291 -0
  114. package/dist-types/commands/CreateSectionCommand.d.ts +96 -0
  115. package/dist-types/commands/DeleteChannelCommand.d.ts +82 -0
  116. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +88 -0
  117. package/dist-types/commands/DeleteMessageCommand.d.ts +1 -1
  118. package/dist-types/commands/{RemoveReactionCommand.d.ts → DeleteMessageReactionCommand.d.ts} +26 -27
  119. package/dist-types/commands/DeleteSectionCommand.d.ts +84 -0
  120. package/dist-types/commands/GetChannelCommand.d.ts +150 -0
  121. package/dist-types/commands/GetChannelMemberCommand.d.ts +93 -0
  122. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +90 -0
  123. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +94 -0
  124. package/dist-types/commands/GetInboxCommand.d.ts +35 -35
  125. package/dist-types/commands/GetMessageCommand.d.ts +4 -5
  126. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +154 -0
  127. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +151 -0
  128. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +150 -0
  129. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +151 -0
  130. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +86 -0
  131. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +86 -0
  132. package/dist-types/commands/GetTokenCommand.d.ts +85 -0
  133. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +98 -0
  134. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +86 -0
  135. package/dist-types/commands/HideChannelCommand.d.ts +84 -0
  136. package/dist-types/commands/JoinChannelCommand.d.ts +151 -0
  137. package/dist-types/commands/LeaveChannelCommand.d.ts +85 -0
  138. package/dist-types/commands/ListChannelMembersCommand.d.ts +94 -0
  139. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +92 -0
  140. package/dist-types/commands/ListChannelsCommand.d.ts +35 -35
  141. package/dist-types/commands/ListMentionsCommand.d.ts +5 -6
  142. package/dist-types/commands/ListMessagesCommand.d.ts +4 -5
  143. package/dist-types/commands/MarkReadCommand.d.ts +99 -0
  144. package/dist-types/commands/MarkUnreadCommand.d.ts +103 -0
  145. package/dist-types/commands/MoveChannelToSectionCommand.d.ts +101 -0
  146. package/dist-types/commands/MuteChannelCommand.d.ts +99 -0
  147. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +195 -0
  148. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +261 -0
  149. package/dist-types/commands/PinChannelCommand.d.ts +87 -0
  150. package/dist-types/commands/PinMessageCommand.d.ts +4 -5
  151. package/dist-types/commands/QueryChannelsCommand.d.ts +167 -0
  152. package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +101 -0
  153. package/dist-types/commands/RenameSectionCommand.d.ts +98 -0
  154. package/dist-types/commands/{EditMessageCommand.d.ts → SendGiphyCommand.d.ts} +40 -41
  155. package/dist-types/commands/SendMessageCommand.d.ts +52 -12
  156. package/dist-types/commands/{AddReactionCommand.d.ts → SendMessageReactionCommand.d.ts} +27 -28
  157. package/dist-types/commands/SendSystemMessageCommand.d.ts +199 -0
  158. package/dist-types/commands/SendTypingStartCommand.d.ts +84 -0
  159. package/dist-types/commands/SendTypingStopCommand.d.ts +84 -0
  160. package/dist-types/commands/ShowChannelCommand.d.ts +84 -0
  161. package/dist-types/commands/UnmuteChannelCommand.d.ts +98 -0
  162. package/dist-types/commands/UnpinChannelCommand.d.ts +84 -0
  163. package/dist-types/commands/UnpinMessageCommand.d.ts +4 -5
  164. package/dist-types/commands/UpdateChannelCommand.d.ts +190 -0
  165. package/dist-types/commands/UpdateMessageCommand.d.ts +256 -0
  166. package/dist-types/commands/UploadFileCommand.d.ts +94 -0
  167. package/dist-types/commands/index.d.ts +49 -3
  168. package/dist-types/models/models_0.d.ts +3076 -563
  169. package/dist-types/protocols/Aws_restJson1.d.ts +429 -15
  170. package/package.json +1 -1
@@ -1,90 +1,214 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UnpinMessageCommand = exports.de_SendMessageCommand = exports.de_RemoveReactionCommand = exports.de_PinMessageCommand = exports.de_ListMessagesCommand = exports.de_ListMentionsCommand = exports.de_ListChannelsCommand = exports.de_GetMessageCommand = exports.de_GetInboxCommand = exports.de_EditMessageCommand = exports.de_DeleteMessageCommand = exports.de_AddReactionCommand = exports.se_UnpinMessageCommand = exports.se_SendMessageCommand = exports.se_RemoveReactionCommand = exports.se_PinMessageCommand = exports.se_ListMessagesCommand = exports.se_ListMentionsCommand = exports.se_ListChannelsCommand = exports.se_GetMessageCommand = exports.se_GetInboxCommand = exports.se_EditMessageCommand = exports.se_DeleteMessageCommand = exports.se_AddReactionCommand = void 0;
3
+ exports.se_SendTypingStartCommand = exports.se_SendSystemMessageCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_RenameSectionCommand = exports.se_RemoveChannelFromSectionCommand = exports.se_QueryChannelsCommand = exports.se_PinMessageCommand = exports.se_PinChannelCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MuteChannelCommand = exports.se_MoveChannelToSectionCommand = exports.se_MarkUnreadCommand = exports.se_MarkReadCommand = exports.se_ListMessagesCommand = exports.se_ListMentionsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersReadStatusCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_HideChannelCommand = exports.se_GetWhatsAppChannelIdCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetTokenCommand = exports.se_GetTelephonyChannelIdCommand = exports.se_GetSmsChannelIdCommand = exports.se_GetOrCreateWhatsAppChannelCommand = exports.se_GetOrCreateTelephonyChannelCommand = exports.se_GetOrCreateSmsChannelCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetInboxCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_DeleteSectionCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateSectionCommand = exports.se_CreateKiteChannelCommand = exports.se_CreateGroupChannelCommand = exports.se_AssignChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
4
+ exports.de_PinMessageCommand = exports.de_PinChannelCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MuteChannelCommand = exports.de_MoveChannelToSectionCommand = exports.de_MarkUnreadCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMentionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersReadStatusCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_HideChannelCommand = exports.de_GetWhatsAppChannelIdCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetTokenCommand = exports.de_GetTelephonyChannelIdCommand = exports.de_GetSmsChannelIdCommand = exports.de_GetOrCreateWhatsAppChannelCommand = exports.de_GetOrCreateTelephonyChannelCommand = exports.de_GetOrCreateSmsChannelCommand = exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetInboxCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_DeleteSectionCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateSectionCommand = exports.de_CreateKiteChannelCommand = exports.de_CreateGroupChannelCommand = exports.de_AssignChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateChannelCommand = exports.se_UnpinMessageCommand = exports.se_UnpinChannelCommand = exports.se_UnmuteChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = void 0;
5
+ exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_UnpinMessageCommand = exports.de_UnpinChannelCommand = exports.de_UnmuteChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendSystemMessageCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_RenameSectionCommand = exports.de_RemoveChannelFromSectionCommand = exports.de_QueryChannelsCommand = void 0;
4
6
  const StreamServiceServiceException_1 = require("../models/StreamServiceServiceException");
5
7
  const models_0_1 = require("../models/models_0");
6
8
  const core_1 = require("@aws-sdk/core");
7
9
  const core_2 = require("@smithy/core");
8
10
  const smithy_client_1 = require("@smithy/smithy-client");
9
- const se_AddReactionCommand = async (input, context) => {
11
+ const se_AddChannelMemberCommand = async (input, context) => {
10
12
  const b = (0, core_2.requestBuilder)(input, context);
11
- const headers = {};
12
- b.bp("/api/v1/channels/{channelId}/messages/{messageId}/reactions/{type}");
13
+ const headers = {
14
+ 'content-type': 'application/json',
15
+ };
16
+ b.bp("/api/v1/channels/{channelId}/members");
13
17
  b.p('channelId', () => input.channelId, '{channelId}', false);
14
- b.p('messageId', () => input.messageId, '{messageId}', false);
15
- b.p('type', () => input.type, '{type}', false);
16
18
  const query = (0, smithy_client_1.map)({
17
19
  [_c]: [, input[_cI]],
18
20
  [_uI]: [, input[_uI]],
19
21
  });
20
22
  let body;
21
- b.m("PUT")
23
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
24
+ 'hideHistory': [],
25
+ 'memberId': [],
26
+ 'memberToInvite': _ => (0, smithy_client_1._json)(_),
27
+ 'silent': [],
28
+ }));
29
+ b.m("POST")
22
30
  .h(headers)
23
31
  .q(query)
24
32
  .b(body);
25
33
  return b.build();
26
34
  };
27
- exports.se_AddReactionCommand = se_AddReactionCommand;
28
- const se_DeleteMessageCommand = async (input, context) => {
35
+ exports.se_AddChannelMemberCommand = se_AddChannelMemberCommand;
36
+ const se_AddChannelMembersCommand = async (input, context) => {
29
37
  const b = (0, core_2.requestBuilder)(input, context);
30
- const headers = {};
31
- b.bp("/api/v1/channels/{channelId}/messages/{messageId}");
38
+ const headers = {
39
+ 'content-type': 'application/json',
40
+ };
41
+ b.bp("/api/v1/channels/{channelId}/members");
32
42
  b.p('channelId', () => input.channelId, '{channelId}', false);
33
- b.p('messageId', () => input.messageId, '{messageId}', false);
34
43
  const query = (0, smithy_client_1.map)({
35
44
  [_c]: [, input[_cI]],
36
45
  [_uI]: [, input[_uI]],
37
46
  });
38
47
  let body;
39
- b.m("DELETE")
48
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
49
+ 'hideHistory': [],
50
+ 'members': _ => (0, smithy_client_1._json)(_),
51
+ 'membersToInvite': _ => (0, smithy_client_1._json)(_),
52
+ 'silent': [],
53
+ 'unreadMessageId': [],
54
+ }));
55
+ b.m("PUT")
40
56
  .h(headers)
41
57
  .q(query)
42
58
  .b(body);
43
59
  return b.build();
44
60
  };
45
- exports.se_DeleteMessageCommand = se_DeleteMessageCommand;
46
- const se_EditMessageCommand = async (input, context) => {
61
+ exports.se_AddChannelMembersCommand = se_AddChannelMembersCommand;
62
+ const se_AssignChannelCommand = async (input, context) => {
47
63
  const b = (0, core_2.requestBuilder)(input, context);
48
64
  const headers = {
49
65
  'content-type': 'application/json',
50
66
  };
51
- b.bp("/api/v1/channels/{channelId}/messages/{messageId}");
67
+ b.bp("/api/v1/channels/{channelId}/assign");
52
68
  b.p('channelId', () => input.channelId, '{channelId}', false);
53
- b.p('messageId', () => input.messageId, '{messageId}', false);
54
69
  const query = (0, smithy_client_1.map)({
55
70
  [_c]: [, input[_cI]],
56
71
  [_uI]: [, input[_uI]],
57
72
  });
58
73
  let body;
59
74
  body = JSON.stringify((0, smithy_client_1.take)(input, {
60
- 'attachments': _ => (0, smithy_client_1._json)(_),
61
- 'mentions': _ => (0, smithy_client_1._json)(_),
62
- 'text': [],
75
+ 'assignee': _ => (0, smithy_client_1._json)(_),
76
+ 'service': _ => (0, smithy_client_1._json)(_),
77
+ 'silent': [],
78
+ 'variant': [],
63
79
  }));
64
- b.m("PATCH")
80
+ b.m("POST")
65
81
  .h(headers)
66
82
  .q(query)
67
83
  .b(body);
68
84
  return b.build();
69
85
  };
70
- exports.se_EditMessageCommand = se_EditMessageCommand;
71
- const se_GetInboxCommand = async (input, context) => {
86
+ exports.se_AssignChannelCommand = se_AssignChannelCommand;
87
+ const se_CreateGroupChannelCommand = async (input, context) => {
88
+ const b = (0, core_2.requestBuilder)(input, context);
89
+ const headers = {
90
+ 'content-type': 'application/json',
91
+ };
92
+ b.bp("/api/v1/channels/group");
93
+ const query = (0, smithy_client_1.map)({
94
+ [_c]: [, input[_cI]],
95
+ [_uI]: [, input[_uI]],
96
+ });
97
+ let body;
98
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
99
+ 'access': [],
100
+ 'assigneeId': [],
101
+ 'autoRecord': [],
102
+ 'broadcast': [],
103
+ 'channelId': [],
104
+ 'context': _ => (0, smithy_client_1._json)(_),
105
+ 'creationEventType': [],
106
+ 'description': [],
107
+ 'kiteAssign': [],
108
+ 'members': _ => (0, smithy_client_1._json)(_),
109
+ 'membersToInvite': _ => (0, smithy_client_1._json)(_),
110
+ 'mms': [],
111
+ 'picture': [],
112
+ 'pictureColor': [],
113
+ 'serviceTitle': [],
114
+ 'sms': [],
115
+ 'subject': [],
116
+ 'transcriptionLanguage': [],
117
+ 'whatsapp': [],
118
+ 'whatsappStatus': [],
119
+ 'wizyGuestViewOnly': [],
120
+ }));
121
+ b.m("POST")
122
+ .h(headers)
123
+ .q(query)
124
+ .b(body);
125
+ return b.build();
126
+ };
127
+ exports.se_CreateGroupChannelCommand = se_CreateGroupChannelCommand;
128
+ const se_CreateKiteChannelCommand = async (input, context) => {
129
+ const b = (0, core_2.requestBuilder)(input, context);
130
+ const headers = {
131
+ 'content-type': 'application/json',
132
+ };
133
+ b.bp("/api/v1/channels/kite");
134
+ const query = (0, smithy_client_1.map)({
135
+ [_c]: [, input[_cI]],
136
+ [_uI]: [, input[_uI]],
137
+ });
138
+ let body;
139
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
140
+ 'channelId': [],
141
+ 'initialMessage': _ => (0, smithy_client_1._json)(_),
142
+ 'targetId': [],
143
+ 'targetRouteId': [],
144
+ 'welcomeMessages': _ => (0, smithy_client_1._json)(_),
145
+ }));
146
+ b.m("POST")
147
+ .h(headers)
148
+ .q(query)
149
+ .b(body);
150
+ return b.build();
151
+ };
152
+ exports.se_CreateKiteChannelCommand = se_CreateKiteChannelCommand;
153
+ const se_CreateSectionCommand = async (input, context) => {
154
+ const b = (0, core_2.requestBuilder)(input, context);
155
+ const headers = {
156
+ 'content-type': 'application/json',
157
+ };
158
+ b.bp("/api/v1/sections");
159
+ const query = (0, smithy_client_1.map)({
160
+ [_c]: [, input[_cI]],
161
+ [_uI]: [, input[_uI]],
162
+ });
163
+ let body;
164
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
165
+ 'name': [],
166
+ 'sectionId': [],
167
+ }));
168
+ b.m("POST")
169
+ .h(headers)
170
+ .q(query)
171
+ .b(body);
172
+ return b.build();
173
+ };
174
+ exports.se_CreateSectionCommand = se_CreateSectionCommand;
175
+ const se_DeleteChannelCommand = async (input, context) => {
72
176
  const b = (0, core_2.requestBuilder)(input, context);
73
177
  const headers = {};
74
- b.bp("/api/v1/inbox");
178
+ b.bp("/api/v1/channels/{channelId}");
179
+ b.p('channelId', () => input.channelId, '{channelId}', false);
75
180
  const query = (0, smithy_client_1.map)({
76
181
  [_c]: [, input[_cI]],
77
182
  [_uI]: [, input[_uI]],
78
183
  });
79
184
  let body;
80
- b.m("GET")
185
+ b.m("DELETE")
81
186
  .h(headers)
82
187
  .q(query)
83
188
  .b(body);
84
189
  return b.build();
85
190
  };
86
- exports.se_GetInboxCommand = se_GetInboxCommand;
87
- const se_GetMessageCommand = async (input, context) => {
191
+ exports.se_DeleteChannelCommand = se_DeleteChannelCommand;
192
+ const se_DeleteChannelMemberCommand = async (input, context) => {
193
+ const b = (0, core_2.requestBuilder)(input, context);
194
+ const headers = {};
195
+ b.bp("/api/v1/channels/{channelId}/members/{memberId}");
196
+ b.p('channelId', () => input.channelId, '{channelId}', false);
197
+ b.p('memberId', () => input.memberId, '{memberId}', false);
198
+ const query = (0, smithy_client_1.map)({
199
+ [_c]: [, input[_cI]],
200
+ [_uI]: [, input[_uI]],
201
+ [_s]: [() => input.silent !== void 0, () => (input[_s].toString())],
202
+ });
203
+ let body;
204
+ b.m("DELETE")
205
+ .h(headers)
206
+ .q(query)
207
+ .b(body);
208
+ return b.build();
209
+ };
210
+ exports.se_DeleteChannelMemberCommand = se_DeleteChannelMemberCommand;
211
+ const se_DeleteMessageCommand = async (input, context) => {
88
212
  const b = (0, core_2.requestBuilder)(input, context);
89
213
  const headers = {};
90
214
  b.bp("/api/v1/channels/{channelId}/messages/{messageId}");
@@ -95,41 +219,57 @@ const se_GetMessageCommand = async (input, context) => {
95
219
  [_uI]: [, input[_uI]],
96
220
  });
97
221
  let body;
98
- b.m("GET")
222
+ b.m("DELETE")
99
223
  .h(headers)
100
224
  .q(query)
101
225
  .b(body);
102
226
  return b.build();
103
227
  };
104
- exports.se_GetMessageCommand = se_GetMessageCommand;
105
- const se_ListChannelsCommand = async (input, context) => {
228
+ exports.se_DeleteMessageCommand = se_DeleteMessageCommand;
229
+ const se_DeleteMessageReactionCommand = async (input, context) => {
106
230
  const b = (0, core_2.requestBuilder)(input, context);
107
231
  const headers = {};
108
- b.bp("/api/v1/channels");
232
+ b.bp("/api/v1/channels/{channelId}/messages/{messageId}/reactions/{type}");
233
+ b.p('channelId', () => input.channelId, '{channelId}', false);
234
+ b.p('messageId', () => input.messageId, '{messageId}', false);
235
+ b.p('type', () => input.type, '{type}', false);
109
236
  const query = (0, smithy_client_1.map)({
110
237
  [_c]: [, input[_cI]],
111
238
  [_uI]: [, input[_uI]],
112
- [_s]: [, input[_s]],
113
- [_f]: [, input[_f]],
114
- [_cu]: [, input[_cu]],
115
239
  });
116
240
  let body;
117
- b.m("GET")
241
+ b.m("DELETE")
118
242
  .h(headers)
119
243
  .q(query)
120
244
  .b(body);
121
245
  return b.build();
122
246
  };
123
- exports.se_ListChannelsCommand = se_ListChannelsCommand;
124
- const se_ListMentionsCommand = async (input, context) => {
247
+ exports.se_DeleteMessageReactionCommand = se_DeleteMessageReactionCommand;
248
+ const se_DeleteSectionCommand = async (input, context) => {
125
249
  const b = (0, core_2.requestBuilder)(input, context);
126
250
  const headers = {};
127
- b.bp("/api/v1/mentions");
251
+ b.bp("/api/v1/sections/{sectionId}");
252
+ b.p('sectionId', () => input.sectionId, '{sectionId}', false);
253
+ const query = (0, smithy_client_1.map)({
254
+ [_c]: [, input[_cI]],
255
+ [_uI]: [, input[_uI]],
256
+ });
257
+ let body;
258
+ b.m("DELETE")
259
+ .h(headers)
260
+ .q(query)
261
+ .b(body);
262
+ return b.build();
263
+ };
264
+ exports.se_DeleteSectionCommand = se_DeleteSectionCommand;
265
+ const se_GetChannelCommand = async (input, context) => {
266
+ const b = (0, core_2.requestBuilder)(input, context);
267
+ const headers = {};
268
+ b.bp("/api/v1/channels/{channelId}");
269
+ b.p('channelId', () => input.channelId, '{channelId}', false);
128
270
  const query = (0, smithy_client_1.map)({
129
271
  [_c]: [, input[_cI]],
130
272
  [_uI]: [, input[_uI]],
131
- [_f]: [, input[_f]],
132
- [_cu]: [, input[_cu]],
133
273
  });
134
274
  let body;
135
275
  b.m("GET")
@@ -138,17 +278,16 @@ const se_ListMentionsCommand = async (input, context) => {
138
278
  .b(body);
139
279
  return b.build();
140
280
  };
141
- exports.se_ListMentionsCommand = se_ListMentionsCommand;
142
- const se_ListMessagesCommand = async (input, context) => {
281
+ exports.se_GetChannelCommand = se_GetChannelCommand;
282
+ const se_GetChannelMemberCommand = async (input, context) => {
143
283
  const b = (0, core_2.requestBuilder)(input, context);
144
284
  const headers = {};
145
- b.bp("/api/v1/channels/{channelId}/messages");
285
+ b.bp("/api/v1/channels/{channelId}/members/{memberId}");
146
286
  b.p('channelId', () => input.channelId, '{channelId}', false);
287
+ b.p('memberId', () => input.memberId, '{memberId}', false);
147
288
  const query = (0, smithy_client_1.map)({
148
289
  [_c]: [, input[_cI]],
149
290
  [_uI]: [, input[_uI]],
150
- [_fr]: [() => input.from !== void 0, () => (input[_fr].toString())],
151
- [_t]: [() => input.to !== void 0, () => (input[_t].toString())],
152
291
  });
153
292
  let body;
154
293
  b.m("GET")
@@ -157,64 +296,98 @@ const se_ListMessagesCommand = async (input, context) => {
157
296
  .b(body);
158
297
  return b.build();
159
298
  };
160
- exports.se_ListMessagesCommand = se_ListMessagesCommand;
161
- const se_PinMessageCommand = async (input, context) => {
299
+ exports.se_GetChannelMemberCommand = se_GetChannelMemberCommand;
300
+ const se_GetDirectChannelIdCommand = async (input, context) => {
301
+ const b = (0, core_2.requestBuilder)(input, context);
302
+ const headers = {
303
+ 'content-type': 'application/json',
304
+ };
305
+ b.bp("/api/v1/channels/direct/resolve-id");
306
+ const query = (0, smithy_client_1.map)({
307
+ [_c]: [, input[_cI]],
308
+ [_uI]: [, input[_uI]],
309
+ });
310
+ let body;
311
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
312
+ 'memberId': [],
313
+ 'memberToInvite': _ => (0, smithy_client_1._json)(_),
314
+ }));
315
+ b.m("POST")
316
+ .h(headers)
317
+ .q(query)
318
+ .b(body);
319
+ return b.build();
320
+ };
321
+ exports.se_GetDirectChannelIdCommand = se_GetDirectChannelIdCommand;
322
+ const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
162
323
  const b = (0, core_2.requestBuilder)(input, context);
163
324
  const headers = {};
164
- b.bp("/api/v1/channels/{channelId}/messages/{messageId}/pin");
325
+ b.bp("/api/v1/channels/{channelId}/messages/{messageId}/files/{fsId}/download-url");
165
326
  b.p('channelId', () => input.channelId, '{channelId}', false);
166
327
  b.p('messageId', () => input.messageId, '{messageId}', false);
328
+ b.p('fsId', () => input.fsId, '{fsId}', false);
167
329
  const query = (0, smithy_client_1.map)({
168
330
  [_c]: [, input[_cI]],
169
331
  [_uI]: [, input[_uI]],
332
+ [_ca]: [, input[_ca]],
333
+ [_d]: [() => input.download !== void 0, () => (input[_d].toString())],
170
334
  });
171
335
  let body;
172
- b.m("PUT")
336
+ b.m("GET")
173
337
  .h(headers)
174
338
  .q(query)
175
339
  .b(body);
176
340
  return b.build();
177
341
  };
178
- exports.se_PinMessageCommand = se_PinMessageCommand;
179
- const se_RemoveReactionCommand = async (input, context) => {
342
+ exports.se_GetFilePresignedDownloadUrlCommand = se_GetFilePresignedDownloadUrlCommand;
343
+ const se_GetInboxCommand = async (input, context) => {
180
344
  const b = (0, core_2.requestBuilder)(input, context);
181
345
  const headers = {};
182
- b.bp("/api/v1/channels/{channelId}/messages/{messageId}/reactions/{type}");
346
+ b.bp("/api/v1/inbox");
347
+ const query = (0, smithy_client_1.map)({
348
+ [_c]: [, input[_cI]],
349
+ [_uI]: [, input[_uI]],
350
+ });
351
+ let body;
352
+ b.m("GET")
353
+ .h(headers)
354
+ .q(query)
355
+ .b(body);
356
+ return b.build();
357
+ };
358
+ exports.se_GetInboxCommand = se_GetInboxCommand;
359
+ const se_GetMessageCommand = async (input, context) => {
360
+ const b = (0, core_2.requestBuilder)(input, context);
361
+ const headers = {};
362
+ b.bp("/api/v1/channels/{channelId}/messages/{messageId}");
183
363
  b.p('channelId', () => input.channelId, '{channelId}', false);
184
364
  b.p('messageId', () => input.messageId, '{messageId}', false);
185
- b.p('type', () => input.type, '{type}', false);
186
365
  const query = (0, smithy_client_1.map)({
187
366
  [_c]: [, input[_cI]],
188
367
  [_uI]: [, input[_uI]],
189
368
  });
190
369
  let body;
191
- b.m("DELETE")
370
+ b.m("GET")
192
371
  .h(headers)
193
372
  .q(query)
194
373
  .b(body);
195
374
  return b.build();
196
375
  };
197
- exports.se_RemoveReactionCommand = se_RemoveReactionCommand;
198
- const se_SendMessageCommand = async (input, context) => {
376
+ exports.se_GetMessageCommand = se_GetMessageCommand;
377
+ const se_GetOrCreateDirectChannelCommand = async (input, context) => {
199
378
  const b = (0, core_2.requestBuilder)(input, context);
200
379
  const headers = {
201
380
  'content-type': 'application/json',
202
381
  };
203
- b.bp("/api/v1/channels/{channelId}/messages");
204
- b.p('channelId', () => input.channelId, '{channelId}', false);
382
+ b.bp("/api/v1/channels/direct/get-or-create");
205
383
  const query = (0, smithy_client_1.map)({
206
384
  [_c]: [, input[_cI]],
207
385
  [_uI]: [, input[_uI]],
208
386
  });
209
387
  let body;
210
388
  body = JSON.stringify((0, smithy_client_1.take)(input, {
211
- 'attachments': _ => (0, smithy_client_1._json)(_),
212
- 'forward': _ => (0, smithy_client_1._json)(_),
213
- 'mentions': _ => (0, smithy_client_1._json)(_),
214
- 'messageType': [],
215
- 'quote': _ => (0, smithy_client_1._json)(_),
216
- 'system': [],
217
- 'text': [],
389
+ 'memberId': [],
390
+ 'memberToInvite': _ => (0, smithy_client_1._json)(_),
218
391
  }));
219
392
  b.m("POST")
220
393
  .h(headers)
@@ -222,26 +395,1438 @@ const se_SendMessageCommand = async (input, context) => {
222
395
  .b(body);
223
396
  return b.build();
224
397
  };
225
- exports.se_SendMessageCommand = se_SendMessageCommand;
226
- const se_UnpinMessageCommand = async (input, context) => {
398
+ exports.se_GetOrCreateDirectChannelCommand = se_GetOrCreateDirectChannelCommand;
399
+ const se_GetOrCreateSmsChannelCommand = async (input, context) => {
227
400
  const b = (0, core_2.requestBuilder)(input, context);
228
- const headers = {};
229
- b.bp("/api/v1/channels/{channelId}/messages/{messageId}/pin");
230
- b.p('channelId', () => input.channelId, '{channelId}', false);
231
- b.p('messageId', () => input.messageId, '{messageId}', false);
401
+ const headers = {
402
+ 'content-type': 'application/json',
403
+ };
404
+ b.bp("/api/v1/channels/sms/get-or-create");
405
+ const query = (0, smithy_client_1.map)({
406
+ [_c]: [, input[_cI]],
407
+ [_uI]: [, input[_uI]],
408
+ });
409
+ let body;
410
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
411
+ 'outgoing': [],
412
+ 'recipientId': [],
413
+ 'recipientNumber': [],
414
+ 'serviceUri': [],
415
+ }));
416
+ b.m("POST")
417
+ .h(headers)
418
+ .q(query)
419
+ .b(body);
420
+ return b.build();
421
+ };
422
+ exports.se_GetOrCreateSmsChannelCommand = se_GetOrCreateSmsChannelCommand;
423
+ const se_GetOrCreateTelephonyChannelCommand = async (input, context) => {
424
+ const b = (0, core_2.requestBuilder)(input, context);
425
+ const headers = {
426
+ 'content-type': 'application/json',
427
+ };
428
+ b.bp("/api/v1/channels/telephony/get-or-create");
429
+ const query = (0, smithy_client_1.map)({
430
+ [_c]: [, input[_cI]],
431
+ [_uI]: [, input[_uI]],
432
+ });
433
+ let body;
434
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
435
+ 'recipientId': [],
436
+ 'recipientNumber': [],
437
+ 'serviceUri': [],
438
+ }));
439
+ b.m("POST")
440
+ .h(headers)
441
+ .q(query)
442
+ .b(body);
443
+ return b.build();
444
+ };
445
+ exports.se_GetOrCreateTelephonyChannelCommand = se_GetOrCreateTelephonyChannelCommand;
446
+ const se_GetOrCreateWhatsAppChannelCommand = async (input, context) => {
447
+ const b = (0, core_2.requestBuilder)(input, context);
448
+ const headers = {
449
+ 'content-type': 'application/json',
450
+ };
451
+ b.bp("/api/v1/channels/whatsapp/get-or-create");
452
+ const query = (0, smithy_client_1.map)({
453
+ [_c]: [, input[_cI]],
454
+ [_uI]: [, input[_uI]],
455
+ });
456
+ let body;
457
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
458
+ 'outgoing': [],
459
+ 'recipientId': [],
460
+ 'recipientNumber': [],
461
+ 'serviceUri': [],
462
+ }));
463
+ b.m("POST")
464
+ .h(headers)
465
+ .q(query)
466
+ .b(body);
467
+ return b.build();
468
+ };
469
+ exports.se_GetOrCreateWhatsAppChannelCommand = se_GetOrCreateWhatsAppChannelCommand;
470
+ const se_GetSmsChannelIdCommand = async (input, context) => {
471
+ const b = (0, core_2.requestBuilder)(input, context);
472
+ const headers = {
473
+ 'content-type': 'application/json',
474
+ };
475
+ b.bp("/api/v1/channels/sms/resolve-id");
232
476
  const query = (0, smithy_client_1.map)({
233
477
  [_c]: [, input[_cI]],
234
478
  [_uI]: [, input[_uI]],
235
479
  });
236
- let body;
237
- b.m("DELETE")
238
- .h(headers)
239
- .q(query)
240
- .b(body);
241
- return b.build();
480
+ let body;
481
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
482
+ 'recipientId': [],
483
+ 'recipientNumber': [],
484
+ 'serviceUri': [],
485
+ }));
486
+ b.m("POST")
487
+ .h(headers)
488
+ .q(query)
489
+ .b(body);
490
+ return b.build();
491
+ };
492
+ exports.se_GetSmsChannelIdCommand = se_GetSmsChannelIdCommand;
493
+ const se_GetTelephonyChannelIdCommand = async (input, context) => {
494
+ const b = (0, core_2.requestBuilder)(input, context);
495
+ const headers = {
496
+ 'content-type': 'application/json',
497
+ };
498
+ b.bp("/api/v1/channels/telephony/resolve-id");
499
+ const query = (0, smithy_client_1.map)({
500
+ [_c]: [, input[_cI]],
501
+ [_uI]: [, input[_uI]],
502
+ });
503
+ let body;
504
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
505
+ 'recipientId': [],
506
+ 'recipientNumber': [],
507
+ 'serviceUri': [],
508
+ }));
509
+ b.m("POST")
510
+ .h(headers)
511
+ .q(query)
512
+ .b(body);
513
+ return b.build();
514
+ };
515
+ exports.se_GetTelephonyChannelIdCommand = se_GetTelephonyChannelIdCommand;
516
+ const se_GetTokenCommand = async (input, context) => {
517
+ const b = (0, core_2.requestBuilder)(input, context);
518
+ const headers = {};
519
+ b.bp("/api/v1/token");
520
+ const query = (0, smithy_client_1.map)({
521
+ [_c]: [, input[_cI]],
522
+ [_uI]: [, input[_uI]],
523
+ [_cIl]: [, input[_cIl]],
524
+ });
525
+ let body;
526
+ b.m("GET")
527
+ .h(headers)
528
+ .q(query)
529
+ .b(body);
530
+ return b.build();
531
+ };
532
+ exports.se_GetTokenCommand = se_GetTokenCommand;
533
+ const se_GetUploadedFileInfoCommand = async (input, context) => {
534
+ const b = (0, core_2.requestBuilder)(input, context);
535
+ const headers = {};
536
+ b.bp("/api/v1/channels/{channelId}/files/{fsId}");
537
+ b.p('channelId', () => input.channelId, '{channelId}', false);
538
+ b.p('fsId', () => input.fsId, '{fsId}', false);
539
+ const query = (0, smithy_client_1.map)({
540
+ [_c]: [, input[_cI]],
541
+ [_uI]: [, input[_uI]],
542
+ [_ca]: [, input[_ca]],
543
+ });
544
+ let body;
545
+ b.m("GET")
546
+ .h(headers)
547
+ .q(query)
548
+ .b(body);
549
+ return b.build();
550
+ };
551
+ exports.se_GetUploadedFileInfoCommand = se_GetUploadedFileInfoCommand;
552
+ const se_GetWhatsAppChannelIdCommand = async (input, context) => {
553
+ const b = (0, core_2.requestBuilder)(input, context);
554
+ const headers = {
555
+ 'content-type': 'application/json',
556
+ };
557
+ b.bp("/api/v1/channels/whatsapp/resolve-id");
558
+ const query = (0, smithy_client_1.map)({
559
+ [_c]: [, input[_cI]],
560
+ [_uI]: [, input[_uI]],
561
+ });
562
+ let body;
563
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
564
+ 'recipientId': [],
565
+ 'recipientNumber': [],
566
+ 'serviceUri': [],
567
+ }));
568
+ b.m("POST")
569
+ .h(headers)
570
+ .q(query)
571
+ .b(body);
572
+ return b.build();
573
+ };
574
+ exports.se_GetWhatsAppChannelIdCommand = se_GetWhatsAppChannelIdCommand;
575
+ const se_HideChannelCommand = async (input, context) => {
576
+ const b = (0, core_2.requestBuilder)(input, context);
577
+ const headers = {};
578
+ b.bp("/api/v1/channels/{channelId}/hide");
579
+ b.p('channelId', () => input.channelId, '{channelId}', false);
580
+ const query = (0, smithy_client_1.map)({
581
+ [_c]: [, input[_cI]],
582
+ [_uI]: [, input[_uI]],
583
+ });
584
+ let body;
585
+ b.m("POST")
586
+ .h(headers)
587
+ .q(query)
588
+ .b(body);
589
+ return b.build();
590
+ };
591
+ exports.se_HideChannelCommand = se_HideChannelCommand;
592
+ const se_JoinChannelCommand = async (input, context) => {
593
+ const b = (0, core_2.requestBuilder)(input, context);
594
+ const headers = {
595
+ 'content-type': 'application/json',
596
+ };
597
+ b.bp("/api/v1/channels/{channelId}/join");
598
+ b.p('channelId', () => input.channelId, '{channelId}', false);
599
+ const query = (0, smithy_client_1.map)({
600
+ [_c]: [, input[_cI]],
601
+ [_uI]: [, input[_uI]],
602
+ });
603
+ let body;
604
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
605
+ 'silent': [],
606
+ }));
607
+ b.m("POST")
608
+ .h(headers)
609
+ .q(query)
610
+ .b(body);
611
+ return b.build();
612
+ };
613
+ exports.se_JoinChannelCommand = se_JoinChannelCommand;
614
+ const se_LeaveChannelCommand = async (input, context) => {
615
+ const b = (0, core_2.requestBuilder)(input, context);
616
+ const headers = {
617
+ 'content-type': 'application/json',
618
+ };
619
+ b.bp("/api/v1/channels/{channelId}/leave");
620
+ b.p('channelId', () => input.channelId, '{channelId}', false);
621
+ const query = (0, smithy_client_1.map)({
622
+ [_c]: [, input[_cI]],
623
+ [_uI]: [, input[_uI]],
624
+ });
625
+ let body;
626
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
627
+ 'silent': [],
628
+ }));
629
+ b.m("POST")
630
+ .h(headers)
631
+ .q(query)
632
+ .b(body);
633
+ return b.build();
634
+ };
635
+ exports.se_LeaveChannelCommand = se_LeaveChannelCommand;
636
+ const se_ListChannelMembersCommand = async (input, context) => {
637
+ const b = (0, core_2.requestBuilder)(input, context);
638
+ const headers = {};
639
+ b.bp("/api/v1/channels/{channelId}/members");
640
+ b.p('channelId', () => input.channelId, '{channelId}', false);
641
+ const query = (0, smithy_client_1.map)({
642
+ [_c]: [, input[_cI]],
643
+ [_uI]: [, input[_uI]],
644
+ [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
645
+ [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
646
+ });
647
+ let body;
648
+ b.m("GET")
649
+ .h(headers)
650
+ .q(query)
651
+ .b(body);
652
+ return b.build();
653
+ };
654
+ exports.se_ListChannelMembersCommand = se_ListChannelMembersCommand;
655
+ const se_ListChannelMembersReadStatusCommand = async (input, context) => {
656
+ const b = (0, core_2.requestBuilder)(input, context);
657
+ const headers = {};
658
+ b.bp("/api/v1/channels/{channelId}/read-status");
659
+ b.p('channelId', () => input.channelId, '{channelId}', false);
660
+ const query = (0, smithy_client_1.map)({
661
+ [_c]: [, input[_cI]],
662
+ [_uI]: [, input[_uI]],
663
+ });
664
+ let body;
665
+ b.m("GET")
666
+ .h(headers)
667
+ .q(query)
668
+ .b(body);
669
+ return b.build();
670
+ };
671
+ exports.se_ListChannelMembersReadStatusCommand = se_ListChannelMembersReadStatusCommand;
672
+ const se_ListChannelsCommand = async (input, context) => {
673
+ const b = (0, core_2.requestBuilder)(input, context);
674
+ const headers = {};
675
+ b.bp("/api/v1/channels");
676
+ const query = (0, smithy_client_1.map)({
677
+ [_c]: [, input[_cI]],
678
+ [_uI]: [, input[_uI]],
679
+ [_se]: [, input[_se]],
680
+ [_f]: [, input[_f]],
681
+ [_cu]: [, input[_cu]],
682
+ });
683
+ let body;
684
+ b.m("GET")
685
+ .h(headers)
686
+ .q(query)
687
+ .b(body);
688
+ return b.build();
689
+ };
690
+ exports.se_ListChannelsCommand = se_ListChannelsCommand;
691
+ const se_ListMentionsCommand = async (input, context) => {
692
+ const b = (0, core_2.requestBuilder)(input, context);
693
+ const headers = {};
694
+ b.bp("/api/v1/mentions");
695
+ const query = (0, smithy_client_1.map)({
696
+ [_c]: [, input[_cI]],
697
+ [_uI]: [, input[_uI]],
698
+ [_f]: [, input[_f]],
699
+ [_cu]: [, input[_cu]],
700
+ });
701
+ let body;
702
+ b.m("GET")
703
+ .h(headers)
704
+ .q(query)
705
+ .b(body);
706
+ return b.build();
707
+ };
708
+ exports.se_ListMentionsCommand = se_ListMentionsCommand;
709
+ const se_ListMessagesCommand = async (input, context) => {
710
+ const b = (0, core_2.requestBuilder)(input, context);
711
+ const headers = {};
712
+ b.bp("/api/v1/channels/{channelId}/messages");
713
+ b.p('channelId', () => input.channelId, '{channelId}', false);
714
+ const query = (0, smithy_client_1.map)({
715
+ [_c]: [, input[_cI]],
716
+ [_uI]: [, input[_uI]],
717
+ [_fr]: [() => input.from !== void 0, () => (input[_fr].toString())],
718
+ [_t]: [() => input.to !== void 0, () => (input[_t].toString())],
719
+ });
720
+ let body;
721
+ b.m("GET")
722
+ .h(headers)
723
+ .q(query)
724
+ .b(body);
725
+ return b.build();
726
+ };
727
+ exports.se_ListMessagesCommand = se_ListMessagesCommand;
728
+ const se_MarkReadCommand = async (input, context) => {
729
+ const b = (0, core_2.requestBuilder)(input, context);
730
+ const headers = {
731
+ 'content-type': 'application/json',
732
+ };
733
+ b.bp("/api/v1/channels/{channelId}/read");
734
+ b.p('channelId', () => input.channelId, '{channelId}', false);
735
+ const query = (0, smithy_client_1.map)({
736
+ [_c]: [, input[_cI]],
737
+ [_uI]: [, input[_uI]],
738
+ });
739
+ let body;
740
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
741
+ 'lastReadVisibleSeq': [],
742
+ }));
743
+ b.m("POST")
744
+ .h(headers)
745
+ .q(query)
746
+ .b(body);
747
+ return b.build();
748
+ };
749
+ exports.se_MarkReadCommand = se_MarkReadCommand;
750
+ const se_MarkUnreadCommand = async (input, context) => {
751
+ const b = (0, core_2.requestBuilder)(input, context);
752
+ const headers = {
753
+ 'content-type': 'application/json',
754
+ };
755
+ b.bp("/api/v1/channels/{channelId}/unread");
756
+ b.p('channelId', () => input.channelId, '{channelId}', false);
757
+ const query = (0, smithy_client_1.map)({
758
+ [_c]: [, input[_cI]],
759
+ [_uI]: [, input[_uI]],
760
+ [_fo]: [() => input.force !== void 0, () => (input[_fo].toString())],
761
+ });
762
+ let body;
763
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
764
+ 'messageId': [],
765
+ 'unreadMarkAt': [],
766
+ }));
767
+ b.m("PUT")
768
+ .h(headers)
769
+ .q(query)
770
+ .b(body);
771
+ return b.build();
772
+ };
773
+ exports.se_MarkUnreadCommand = se_MarkUnreadCommand;
774
+ const se_MoveChannelToSectionCommand = async (input, context) => {
775
+ const b = (0, core_2.requestBuilder)(input, context);
776
+ const headers = {};
777
+ b.bp("/api/v1/channels/{channelId}/sections/{sectionId}");
778
+ b.p('channelId', () => input.channelId, '{channelId}', false);
779
+ b.p('sectionId', () => input.sectionId, '{sectionId}', false);
780
+ const query = (0, smithy_client_1.map)({
781
+ [_c]: [, input[_cI]],
782
+ [_uI]: [, input[_uI]],
783
+ });
784
+ let body;
785
+ b.m("PUT")
786
+ .h(headers)
787
+ .q(query)
788
+ .b(body);
789
+ return b.build();
790
+ };
791
+ exports.se_MoveChannelToSectionCommand = se_MoveChannelToSectionCommand;
792
+ const se_MuteChannelCommand = async (input, context) => {
793
+ const b = (0, core_2.requestBuilder)(input, context);
794
+ const headers = {
795
+ 'content-type': 'application/json',
796
+ };
797
+ b.bp("/api/v1/channels/{channelId}/mute");
798
+ b.p('channelId', () => input.channelId, '{channelId}', false);
799
+ const query = (0, smithy_client_1.map)({
800
+ [_c]: [, input[_cI]],
801
+ [_uI]: [, input[_uI]],
802
+ });
803
+ let body;
804
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
805
+ 'mutedUntil': [],
806
+ }));
807
+ b.m("POST")
808
+ .h(headers)
809
+ .q(query)
810
+ .b(body);
811
+ return b.build();
812
+ };
813
+ exports.se_MuteChannelCommand = se_MuteChannelCommand;
814
+ const se_PartialUpdateChannelCommand = async (input, context) => {
815
+ const b = (0, core_2.requestBuilder)(input, context);
816
+ const headers = {
817
+ 'content-type': 'application/json',
818
+ };
819
+ b.bp("/api/v1/channels/{channelId}");
820
+ b.p('channelId', () => input.channelId, '{channelId}', false);
821
+ const query = (0, smithy_client_1.map)({
822
+ [_c]: [, input[_cI]],
823
+ [_uI]: [, input[_uI]],
824
+ });
825
+ let body;
826
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
827
+ 'set': _ => (0, smithy_client_1._json)(_),
828
+ 'silent': [],
829
+ 'unset': _ => (0, smithy_client_1._json)(_),
830
+ }));
831
+ b.m("PATCH")
832
+ .h(headers)
833
+ .q(query)
834
+ .b(body);
835
+ return b.build();
836
+ };
837
+ exports.se_PartialUpdateChannelCommand = se_PartialUpdateChannelCommand;
838
+ const se_PartialUpdateMessageCommand = async (input, context) => {
839
+ const b = (0, core_2.requestBuilder)(input, context);
840
+ const headers = {
841
+ 'content-type': 'application/json',
842
+ };
843
+ b.bp("/api/v1/channels/{channelId}/messages/{messageId}");
844
+ b.p('channelId', () => input.channelId, '{channelId}', false);
845
+ b.p('messageId', () => input.messageId, '{messageId}', false);
846
+ const query = (0, smithy_client_1.map)({
847
+ [_c]: [, input[_cI]],
848
+ [_uI]: [, input[_uI]],
849
+ });
850
+ let body;
851
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
852
+ 'set': _ => (0, smithy_client_1._json)(_),
853
+ 'silent': [],
854
+ 'unset': _ => (0, smithy_client_1._json)(_),
855
+ }));
856
+ b.m("PATCH")
857
+ .h(headers)
858
+ .q(query)
859
+ .b(body);
860
+ return b.build();
861
+ };
862
+ exports.se_PartialUpdateMessageCommand = se_PartialUpdateMessageCommand;
863
+ const se_PinChannelCommand = async (input, context) => {
864
+ const b = (0, core_2.requestBuilder)(input, context);
865
+ const headers = {};
866
+ b.bp("/api/v1/channels/{channelId}/pin");
867
+ b.p('channelId', () => input.channelId, '{channelId}', false);
868
+ const query = (0, smithy_client_1.map)({
869
+ [_c]: [, input[_cI]],
870
+ [_uI]: [, input[_uI]],
871
+ [_fo]: [() => input.force !== void 0, () => (input[_fo].toString())],
872
+ });
873
+ let body;
874
+ b.m("POST")
875
+ .h(headers)
876
+ .q(query)
877
+ .b(body);
878
+ return b.build();
879
+ };
880
+ exports.se_PinChannelCommand = se_PinChannelCommand;
881
+ const se_PinMessageCommand = async (input, context) => {
882
+ const b = (0, core_2.requestBuilder)(input, context);
883
+ const headers = {};
884
+ b.bp("/api/v1/channels/{channelId}/messages/{messageId}/pin");
885
+ b.p('channelId', () => input.channelId, '{channelId}', false);
886
+ b.p('messageId', () => input.messageId, '{messageId}', false);
887
+ const query = (0, smithy_client_1.map)({
888
+ [_c]: [, input[_cI]],
889
+ [_uI]: [, input[_uI]],
890
+ });
891
+ let body;
892
+ b.m("PUT")
893
+ .h(headers)
894
+ .q(query)
895
+ .b(body);
896
+ return b.build();
897
+ };
898
+ exports.se_PinMessageCommand = se_PinMessageCommand;
899
+ const se_QueryChannelsCommand = async (input, context) => {
900
+ const b = (0, core_2.requestBuilder)(input, context);
901
+ const headers = {
902
+ 'content-type': 'application/json',
903
+ };
904
+ b.bp("/api/v1/channels/query");
905
+ const query = (0, smithy_client_1.map)({
906
+ [_c]: [, input[_cI]],
907
+ [_uI]: [, input[_uI]],
908
+ });
909
+ let body;
910
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
911
+ 'query': _ => (0, smithy_client_1._json)(_),
912
+ }));
913
+ b.m("POST")
914
+ .h(headers)
915
+ .q(query)
916
+ .b(body);
917
+ return b.build();
918
+ };
919
+ exports.se_QueryChannelsCommand = se_QueryChannelsCommand;
920
+ const se_RemoveChannelFromSectionCommand = async (input, context) => {
921
+ const b = (0, core_2.requestBuilder)(input, context);
922
+ const headers = {};
923
+ b.bp("/api/v1/channels/{channelId}/sections/{sectionId}");
924
+ b.p('channelId', () => input.channelId, '{channelId}', false);
925
+ b.p('sectionId', () => input.sectionId, '{sectionId}', false);
926
+ const query = (0, smithy_client_1.map)({
927
+ [_c]: [, input[_cI]],
928
+ [_uI]: [, input[_uI]],
929
+ });
930
+ let body;
931
+ b.m("DELETE")
932
+ .h(headers)
933
+ .q(query)
934
+ .b(body);
935
+ return b.build();
936
+ };
937
+ exports.se_RemoveChannelFromSectionCommand = se_RemoveChannelFromSectionCommand;
938
+ const se_RenameSectionCommand = async (input, context) => {
939
+ const b = (0, core_2.requestBuilder)(input, context);
940
+ const headers = {
941
+ 'content-type': 'application/json',
942
+ };
943
+ b.bp("/api/v1/sections/{sectionId}");
944
+ b.p('sectionId', () => input.sectionId, '{sectionId}', false);
945
+ const query = (0, smithy_client_1.map)({
946
+ [_c]: [, input[_cI]],
947
+ [_uI]: [, input[_uI]],
948
+ });
949
+ let body;
950
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
951
+ 'name': [],
952
+ }));
953
+ b.m("PATCH")
954
+ .h(headers)
955
+ .q(query)
956
+ .b(body);
957
+ return b.build();
958
+ };
959
+ exports.se_RenameSectionCommand = se_RenameSectionCommand;
960
+ const se_SendGiphyCommand = async (input, context) => {
961
+ const b = (0, core_2.requestBuilder)(input, context);
962
+ const headers = {
963
+ 'content-type': 'application/json',
964
+ };
965
+ b.bp("/api/v1/channels/{channelId}/giphys");
966
+ b.p('channelId', () => input.channelId, '{channelId}', false);
967
+ const query = (0, smithy_client_1.map)({
968
+ [_c]: [, input[_cI]],
969
+ [_uI]: [, input[_uI]],
970
+ });
971
+ let body;
972
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
973
+ 'giphy': _ => (0, smithy_client_1._json)(_),
974
+ 'mentions': _ => (0, smithy_client_1._json)(_),
975
+ 'messageId': [],
976
+ 'quote': _ => (0, smithy_client_1._json)(_),
977
+ 'silent': [],
978
+ }));
979
+ b.m("POST")
980
+ .h(headers)
981
+ .q(query)
982
+ .b(body);
983
+ return b.build();
984
+ };
985
+ exports.se_SendGiphyCommand = se_SendGiphyCommand;
986
+ const se_SendMessageCommand = async (input, context) => {
987
+ const b = (0, core_2.requestBuilder)(input, context);
988
+ const headers = {
989
+ 'content-type': 'application/json',
990
+ };
991
+ b.bp("/api/v1/channels/{channelId}/messages");
992
+ b.p('channelId', () => input.channelId, '{channelId}', false);
993
+ const query = (0, smithy_client_1.map)({
994
+ [_c]: [, input[_cI]],
995
+ [_uI]: [, input[_uI]],
996
+ });
997
+ let body;
998
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
999
+ 'attachments': _ => (0, smithy_client_1._json)(_),
1000
+ 'elements': _ => (0, smithy_client_1._json)(_),
1001
+ 'forward': _ => (0, smithy_client_1._json)(_),
1002
+ 'markdown': [],
1003
+ 'mentions': _ => (0, smithy_client_1._json)(_),
1004
+ 'messageId': [],
1005
+ 'messageType': [],
1006
+ 'quote': _ => (0, smithy_client_1._json)(_),
1007
+ 'silent': [],
1008
+ 'sms': [],
1009
+ 'smsStatus': [],
1010
+ 'text': [],
1011
+ 'whatsapp': [],
1012
+ 'whatsappStatus': [],
1013
+ }));
1014
+ b.m("POST")
1015
+ .h(headers)
1016
+ .q(query)
1017
+ .b(body);
1018
+ return b.build();
1019
+ };
1020
+ exports.se_SendMessageCommand = se_SendMessageCommand;
1021
+ const se_SendMessageReactionCommand = async (input, context) => {
1022
+ const b = (0, core_2.requestBuilder)(input, context);
1023
+ const headers = {};
1024
+ b.bp("/api/v1/channels/{channelId}/messages/{messageId}/reactions/{type}");
1025
+ b.p('channelId', () => input.channelId, '{channelId}', false);
1026
+ b.p('messageId', () => input.messageId, '{messageId}', false);
1027
+ b.p('type', () => input.type, '{type}', false);
1028
+ const query = (0, smithy_client_1.map)({
1029
+ [_c]: [, input[_cI]],
1030
+ [_uI]: [, input[_uI]],
1031
+ });
1032
+ let body;
1033
+ b.m("PUT")
1034
+ .h(headers)
1035
+ .q(query)
1036
+ .b(body);
1037
+ return b.build();
1038
+ };
1039
+ exports.se_SendMessageReactionCommand = se_SendMessageReactionCommand;
1040
+ const se_SendSystemMessageCommand = async (input, context) => {
1041
+ const b = (0, core_2.requestBuilder)(input, context);
1042
+ const headers = {
1043
+ 'content-type': 'application/json',
1044
+ };
1045
+ b.bp("/api/v1/channels/{channelId}/system-messages");
1046
+ b.p('channelId', () => input.channelId, '{channelId}', false);
1047
+ const query = (0, smithy_client_1.map)({
1048
+ [_c]: [, input[_cI]],
1049
+ [_uI]: [, input[_uI]],
1050
+ });
1051
+ let body;
1052
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1053
+ 'event': [],
1054
+ 'message': _ => (0, smithy_client_1._json)(_),
1055
+ 'silent': [],
1056
+ }));
1057
+ b.m("POST")
1058
+ .h(headers)
1059
+ .q(query)
1060
+ .b(body);
1061
+ return b.build();
1062
+ };
1063
+ exports.se_SendSystemMessageCommand = se_SendSystemMessageCommand;
1064
+ const se_SendTypingStartCommand = async (input, context) => {
1065
+ const b = (0, core_2.requestBuilder)(input, context);
1066
+ const headers = {};
1067
+ b.bp("/api/v1/channels/{channelId}/typing/start");
1068
+ b.p('channelId', () => input.channelId, '{channelId}', false);
1069
+ const query = (0, smithy_client_1.map)({
1070
+ [_c]: [, input[_cI]],
1071
+ [_uI]: [, input[_uI]],
1072
+ });
1073
+ let body;
1074
+ b.m("POST")
1075
+ .h(headers)
1076
+ .q(query)
1077
+ .b(body);
1078
+ return b.build();
1079
+ };
1080
+ exports.se_SendTypingStartCommand = se_SendTypingStartCommand;
1081
+ const se_SendTypingStopCommand = async (input, context) => {
1082
+ const b = (0, core_2.requestBuilder)(input, context);
1083
+ const headers = {};
1084
+ b.bp("/api/v1/channels/{channelId}/typing/stop");
1085
+ b.p('channelId', () => input.channelId, '{channelId}', false);
1086
+ const query = (0, smithy_client_1.map)({
1087
+ [_c]: [, input[_cI]],
1088
+ [_uI]: [, input[_uI]],
1089
+ });
1090
+ let body;
1091
+ b.m("POST")
1092
+ .h(headers)
1093
+ .q(query)
1094
+ .b(body);
1095
+ return b.build();
1096
+ };
1097
+ exports.se_SendTypingStopCommand = se_SendTypingStopCommand;
1098
+ const se_ShowChannelCommand = async (input, context) => {
1099
+ const b = (0, core_2.requestBuilder)(input, context);
1100
+ const headers = {};
1101
+ b.bp("/api/v1/channels/{channelId}/show");
1102
+ b.p('channelId', () => input.channelId, '{channelId}', false);
1103
+ const query = (0, smithy_client_1.map)({
1104
+ [_c]: [, input[_cI]],
1105
+ [_uI]: [, input[_uI]],
1106
+ });
1107
+ let body;
1108
+ b.m("POST")
1109
+ .h(headers)
1110
+ .q(query)
1111
+ .b(body);
1112
+ return b.build();
1113
+ };
1114
+ exports.se_ShowChannelCommand = se_ShowChannelCommand;
1115
+ const se_UnmuteChannelCommand = async (input, context) => {
1116
+ const b = (0, core_2.requestBuilder)(input, context);
1117
+ const headers = {};
1118
+ b.bp("/api/v1/channels/{channelId}/mute");
1119
+ b.p('channelId', () => input.channelId, '{channelId}', false);
1120
+ const query = (0, smithy_client_1.map)({
1121
+ [_c]: [, input[_cI]],
1122
+ [_uI]: [, input[_uI]],
1123
+ });
1124
+ let body;
1125
+ b.m("DELETE")
1126
+ .h(headers)
1127
+ .q(query)
1128
+ .b(body);
1129
+ return b.build();
1130
+ };
1131
+ exports.se_UnmuteChannelCommand = se_UnmuteChannelCommand;
1132
+ const se_UnpinChannelCommand = async (input, context) => {
1133
+ const b = (0, core_2.requestBuilder)(input, context);
1134
+ const headers = {};
1135
+ b.bp("/api/v1/channels/{channelId}/pin");
1136
+ b.p('channelId', () => input.channelId, '{channelId}', false);
1137
+ const query = (0, smithy_client_1.map)({
1138
+ [_c]: [, input[_cI]],
1139
+ [_uI]: [, input[_uI]],
1140
+ });
1141
+ let body;
1142
+ b.m("DELETE")
1143
+ .h(headers)
1144
+ .q(query)
1145
+ .b(body);
1146
+ return b.build();
1147
+ };
1148
+ exports.se_UnpinChannelCommand = se_UnpinChannelCommand;
1149
+ const se_UnpinMessageCommand = async (input, context) => {
1150
+ const b = (0, core_2.requestBuilder)(input, context);
1151
+ const headers = {};
1152
+ b.bp("/api/v1/channels/{channelId}/messages/{messageId}/pin");
1153
+ b.p('channelId', () => input.channelId, '{channelId}', false);
1154
+ b.p('messageId', () => input.messageId, '{messageId}', false);
1155
+ const query = (0, smithy_client_1.map)({
1156
+ [_c]: [, input[_cI]],
1157
+ [_uI]: [, input[_uI]],
1158
+ });
1159
+ let body;
1160
+ b.m("DELETE")
1161
+ .h(headers)
1162
+ .q(query)
1163
+ .b(body);
1164
+ return b.build();
1165
+ };
1166
+ exports.se_UnpinMessageCommand = se_UnpinMessageCommand;
1167
+ const se_UpdateChannelCommand = async (input, context) => {
1168
+ const b = (0, core_2.requestBuilder)(input, context);
1169
+ const headers = {
1170
+ 'content-type': 'application/json',
1171
+ };
1172
+ b.bp("/api/v1/channels/{channelId}");
1173
+ b.p('channelId', () => input.channelId, '{channelId}', false);
1174
+ const query = (0, smithy_client_1.map)({
1175
+ [_c]: [, input[_cI]],
1176
+ [_uI]: [, input[_uI]],
1177
+ });
1178
+ let body;
1179
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1180
+ 'access': [],
1181
+ 'assigneeId': [],
1182
+ 'autoRecord': [],
1183
+ 'broadcast': [],
1184
+ 'context': _ => (0, smithy_client_1._json)(_),
1185
+ 'description': [],
1186
+ 'kiteAssign': [],
1187
+ 'mms': [],
1188
+ 'picture': [],
1189
+ 'pictureColor': [],
1190
+ 'serviceTitle': [],
1191
+ 'silent': [],
1192
+ 'sms': [],
1193
+ 'subject': [],
1194
+ 'transcriptionLanguage': [],
1195
+ 'whatsapp': [],
1196
+ 'whatsappStatus': [],
1197
+ 'wizyGuestViewOnly': [],
1198
+ }));
1199
+ b.m("PUT")
1200
+ .h(headers)
1201
+ .q(query)
1202
+ .b(body);
1203
+ return b.build();
1204
+ };
1205
+ exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
1206
+ const se_UpdateMessageCommand = async (input, context) => {
1207
+ const b = (0, core_2.requestBuilder)(input, context);
1208
+ const headers = {
1209
+ 'content-type': 'application/json',
1210
+ };
1211
+ b.bp("/api/v1/channels/{channelId}/messages/{messageId}");
1212
+ b.p('channelId', () => input.channelId, '{channelId}', false);
1213
+ b.p('messageId', () => input.messageId, '{messageId}', false);
1214
+ const query = (0, smithy_client_1.map)({
1215
+ [_c]: [, input[_cI]],
1216
+ [_uI]: [, input[_uI]],
1217
+ });
1218
+ let body;
1219
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1220
+ 'attachments': _ => (0, smithy_client_1._json)(_),
1221
+ 'elements': _ => (0, smithy_client_1._json)(_),
1222
+ 'forward': _ => (0, smithy_client_1._json)(_),
1223
+ 'markdown': [],
1224
+ 'mentions': _ => (0, smithy_client_1._json)(_),
1225
+ 'quote': _ => (0, smithy_client_1._json)(_),
1226
+ 'silent': [],
1227
+ 'sms': [],
1228
+ 'smsStatus': [],
1229
+ 'text': [],
1230
+ 'whatsapp': [],
1231
+ 'whatsappStatus': [],
1232
+ }));
1233
+ b.m("PUT")
1234
+ .h(headers)
1235
+ .q(query)
1236
+ .b(body);
1237
+ return b.build();
1238
+ };
1239
+ exports.se_UpdateMessageCommand = se_UpdateMessageCommand;
1240
+ const se_UploadFileCommand = async (input, context) => {
1241
+ const b = (0, core_2.requestBuilder)(input, context);
1242
+ const headers = {
1243
+ 'content-type': 'application/json',
1244
+ };
1245
+ b.bp("/api/v1/channels/{channelId}/files");
1246
+ b.p('channelId', () => input.channelId, '{channelId}', false);
1247
+ const query = (0, smithy_client_1.map)({
1248
+ [_c]: [, input[_cI]],
1249
+ [_uI]: [, input[_uI]],
1250
+ });
1251
+ let body;
1252
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1253
+ 'name': [],
1254
+ 'options': _ => (0, smithy_client_1._json)(_),
1255
+ }));
1256
+ b.m("POST")
1257
+ .h(headers)
1258
+ .q(query)
1259
+ .b(body);
1260
+ return b.build();
1261
+ };
1262
+ exports.se_UploadFileCommand = se_UploadFileCommand;
1263
+ const de_AddChannelMemberCommand = async (output, context) => {
1264
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1265
+ return de_CommandError(output, context);
1266
+ }
1267
+ const contents = (0, smithy_client_1.map)({
1268
+ $metadata: deserializeMetadata(output),
1269
+ });
1270
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1271
+ const doc = (0, smithy_client_1.take)(data, {
1272
+ 'member': smithy_client_1._json,
1273
+ });
1274
+ Object.assign(contents, doc);
1275
+ return contents;
1276
+ };
1277
+ exports.de_AddChannelMemberCommand = de_AddChannelMemberCommand;
1278
+ const de_AddChannelMembersCommand = async (output, context) => {
1279
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1280
+ return de_CommandError(output, context);
1281
+ }
1282
+ const contents = (0, smithy_client_1.map)({
1283
+ $metadata: deserializeMetadata(output),
1284
+ });
1285
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1286
+ const doc = (0, smithy_client_1.take)(data, {
1287
+ 'members': smithy_client_1._json,
1288
+ });
1289
+ Object.assign(contents, doc);
1290
+ return contents;
1291
+ };
1292
+ exports.de_AddChannelMembersCommand = de_AddChannelMembersCommand;
1293
+ const de_AssignChannelCommand = async (output, context) => {
1294
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1295
+ return de_CommandError(output, context);
1296
+ }
1297
+ const contents = (0, smithy_client_1.map)({
1298
+ $metadata: deserializeMetadata(output),
1299
+ });
1300
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1301
+ const doc = (0, smithy_client_1.take)(data, {
1302
+ 'assigneeId': smithy_client_1.expectString,
1303
+ 'serviceUri': smithy_client_1.expectString,
1304
+ });
1305
+ Object.assign(contents, doc);
1306
+ return contents;
1307
+ };
1308
+ exports.de_AssignChannelCommand = de_AssignChannelCommand;
1309
+ const de_CreateGroupChannelCommand = async (output, context) => {
1310
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1311
+ return de_CommandError(output, context);
1312
+ }
1313
+ const contents = (0, smithy_client_1.map)({
1314
+ $metadata: deserializeMetadata(output),
1315
+ });
1316
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1317
+ const doc = (0, smithy_client_1.take)(data, {
1318
+ 'channel': smithy_client_1._json,
1319
+ });
1320
+ Object.assign(contents, doc);
1321
+ return contents;
1322
+ };
1323
+ exports.de_CreateGroupChannelCommand = de_CreateGroupChannelCommand;
1324
+ const de_CreateKiteChannelCommand = async (output, context) => {
1325
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1326
+ return de_CommandError(output, context);
1327
+ }
1328
+ const contents = (0, smithy_client_1.map)({
1329
+ $metadata: deserializeMetadata(output),
1330
+ });
1331
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1332
+ const doc = (0, smithy_client_1.take)(data, {
1333
+ 'channel': smithy_client_1._json,
1334
+ });
1335
+ Object.assign(contents, doc);
1336
+ return contents;
1337
+ };
1338
+ exports.de_CreateKiteChannelCommand = de_CreateKiteChannelCommand;
1339
+ const de_CreateSectionCommand = async (output, context) => {
1340
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1341
+ return de_CommandError(output, context);
1342
+ }
1343
+ const contents = (0, smithy_client_1.map)({
1344
+ $metadata: deserializeMetadata(output),
1345
+ });
1346
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1347
+ const doc = (0, smithy_client_1.take)(data, {
1348
+ 'section': smithy_client_1._json,
1349
+ });
1350
+ Object.assign(contents, doc);
1351
+ return contents;
1352
+ };
1353
+ exports.de_CreateSectionCommand = de_CreateSectionCommand;
1354
+ const de_DeleteChannelCommand = async (output, context) => {
1355
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1356
+ return de_CommandError(output, context);
1357
+ }
1358
+ const contents = (0, smithy_client_1.map)({
1359
+ $metadata: deserializeMetadata(output),
1360
+ });
1361
+ await (0, smithy_client_1.collectBody)(output.body, context);
1362
+ return contents;
1363
+ };
1364
+ exports.de_DeleteChannelCommand = de_DeleteChannelCommand;
1365
+ const de_DeleteChannelMemberCommand = async (output, context) => {
1366
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1367
+ return de_CommandError(output, context);
1368
+ }
1369
+ const contents = (0, smithy_client_1.map)({
1370
+ $metadata: deserializeMetadata(output),
1371
+ });
1372
+ await (0, smithy_client_1.collectBody)(output.body, context);
1373
+ return contents;
1374
+ };
1375
+ exports.de_DeleteChannelMemberCommand = de_DeleteChannelMemberCommand;
1376
+ const de_DeleteMessageCommand = async (output, context) => {
1377
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1378
+ return de_CommandError(output, context);
1379
+ }
1380
+ const contents = (0, smithy_client_1.map)({
1381
+ $metadata: deserializeMetadata(output),
1382
+ });
1383
+ await (0, smithy_client_1.collectBody)(output.body, context);
1384
+ return contents;
1385
+ };
1386
+ exports.de_DeleteMessageCommand = de_DeleteMessageCommand;
1387
+ const de_DeleteMessageReactionCommand = async (output, context) => {
1388
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1389
+ return de_CommandError(output, context);
1390
+ }
1391
+ const contents = (0, smithy_client_1.map)({
1392
+ $metadata: deserializeMetadata(output),
1393
+ });
1394
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1395
+ const doc = (0, smithy_client_1.take)(data, {
1396
+ 'message': smithy_client_1._json,
1397
+ });
1398
+ Object.assign(contents, doc);
1399
+ return contents;
1400
+ };
1401
+ exports.de_DeleteMessageReactionCommand = de_DeleteMessageReactionCommand;
1402
+ const de_DeleteSectionCommand = async (output, context) => {
1403
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1404
+ return de_CommandError(output, context);
1405
+ }
1406
+ const contents = (0, smithy_client_1.map)({
1407
+ $metadata: deserializeMetadata(output),
1408
+ });
1409
+ await (0, smithy_client_1.collectBody)(output.body, context);
1410
+ return contents;
1411
+ };
1412
+ exports.de_DeleteSectionCommand = de_DeleteSectionCommand;
1413
+ const de_GetChannelCommand = async (output, context) => {
1414
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1415
+ return de_CommandError(output, context);
1416
+ }
1417
+ const contents = (0, smithy_client_1.map)({
1418
+ $metadata: deserializeMetadata(output),
1419
+ });
1420
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1421
+ const doc = (0, smithy_client_1.take)(data, {
1422
+ 'channel': smithy_client_1._json,
1423
+ });
1424
+ Object.assign(contents, doc);
1425
+ return contents;
1426
+ };
1427
+ exports.de_GetChannelCommand = de_GetChannelCommand;
1428
+ const de_GetChannelMemberCommand = async (output, context) => {
1429
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1430
+ return de_CommandError(output, context);
1431
+ }
1432
+ const contents = (0, smithy_client_1.map)({
1433
+ $metadata: deserializeMetadata(output),
1434
+ });
1435
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1436
+ const doc = (0, smithy_client_1.take)(data, {
1437
+ 'member': smithy_client_1._json,
1438
+ });
1439
+ Object.assign(contents, doc);
1440
+ return contents;
1441
+ };
1442
+ exports.de_GetChannelMemberCommand = de_GetChannelMemberCommand;
1443
+ const de_GetDirectChannelIdCommand = async (output, context) => {
1444
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1445
+ return de_CommandError(output, context);
1446
+ }
1447
+ const contents = (0, smithy_client_1.map)({
1448
+ $metadata: deserializeMetadata(output),
1449
+ });
1450
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1451
+ const doc = (0, smithy_client_1.take)(data, {
1452
+ 'channelId': smithy_client_1.expectString,
1453
+ });
1454
+ Object.assign(contents, doc);
1455
+ return contents;
1456
+ };
1457
+ exports.de_GetDirectChannelIdCommand = de_GetDirectChannelIdCommand;
1458
+ const de_GetFilePresignedDownloadUrlCommand = async (output, context) => {
1459
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1460
+ return de_CommandError(output, context);
1461
+ }
1462
+ const contents = (0, smithy_client_1.map)({
1463
+ $metadata: deserializeMetadata(output),
1464
+ });
1465
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1466
+ const doc = (0, smithy_client_1.take)(data, {
1467
+ 'presignedDownloadUrl': smithy_client_1.expectString,
1468
+ });
1469
+ Object.assign(contents, doc);
1470
+ return contents;
1471
+ };
1472
+ exports.de_GetFilePresignedDownloadUrlCommand = de_GetFilePresignedDownloadUrlCommand;
1473
+ const de_GetInboxCommand = async (output, context) => {
1474
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1475
+ return de_CommandError(output, context);
1476
+ }
1477
+ const contents = (0, smithy_client_1.map)({
1478
+ $metadata: deserializeMetadata(output),
1479
+ });
1480
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1481
+ const doc = (0, smithy_client_1.take)(data, {
1482
+ 'channels': smithy_client_1._json,
1483
+ 'sections': smithy_client_1._json,
1484
+ });
1485
+ Object.assign(contents, doc);
1486
+ return contents;
1487
+ };
1488
+ exports.de_GetInboxCommand = de_GetInboxCommand;
1489
+ const de_GetMessageCommand = async (output, context) => {
1490
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1491
+ return de_CommandError(output, context);
1492
+ }
1493
+ const contents = (0, smithy_client_1.map)({
1494
+ $metadata: deserializeMetadata(output),
1495
+ });
1496
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1497
+ const doc = (0, smithy_client_1.take)(data, {
1498
+ 'message': smithy_client_1._json,
1499
+ });
1500
+ Object.assign(contents, doc);
1501
+ return contents;
1502
+ };
1503
+ exports.de_GetMessageCommand = de_GetMessageCommand;
1504
+ const de_GetOrCreateDirectChannelCommand = async (output, context) => {
1505
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1506
+ return de_CommandError(output, context);
1507
+ }
1508
+ const contents = (0, smithy_client_1.map)({
1509
+ $metadata: deserializeMetadata(output),
1510
+ });
1511
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1512
+ const doc = (0, smithy_client_1.take)(data, {
1513
+ 'channel': smithy_client_1._json,
1514
+ });
1515
+ Object.assign(contents, doc);
1516
+ return contents;
1517
+ };
1518
+ exports.de_GetOrCreateDirectChannelCommand = de_GetOrCreateDirectChannelCommand;
1519
+ const de_GetOrCreateSmsChannelCommand = async (output, context) => {
1520
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1521
+ return de_CommandError(output, context);
1522
+ }
1523
+ const contents = (0, smithy_client_1.map)({
1524
+ $metadata: deserializeMetadata(output),
1525
+ });
1526
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1527
+ const doc = (0, smithy_client_1.take)(data, {
1528
+ 'channel': smithy_client_1._json,
1529
+ });
1530
+ Object.assign(contents, doc);
1531
+ return contents;
1532
+ };
1533
+ exports.de_GetOrCreateSmsChannelCommand = de_GetOrCreateSmsChannelCommand;
1534
+ const de_GetOrCreateTelephonyChannelCommand = async (output, context) => {
1535
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1536
+ return de_CommandError(output, context);
1537
+ }
1538
+ const contents = (0, smithy_client_1.map)({
1539
+ $metadata: deserializeMetadata(output),
1540
+ });
1541
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1542
+ const doc = (0, smithy_client_1.take)(data, {
1543
+ 'channel': smithy_client_1._json,
1544
+ });
1545
+ Object.assign(contents, doc);
1546
+ return contents;
1547
+ };
1548
+ exports.de_GetOrCreateTelephonyChannelCommand = de_GetOrCreateTelephonyChannelCommand;
1549
+ const de_GetOrCreateWhatsAppChannelCommand = async (output, context) => {
1550
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1551
+ return de_CommandError(output, context);
1552
+ }
1553
+ const contents = (0, smithy_client_1.map)({
1554
+ $metadata: deserializeMetadata(output),
1555
+ });
1556
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1557
+ const doc = (0, smithy_client_1.take)(data, {
1558
+ 'channel': smithy_client_1._json,
1559
+ });
1560
+ Object.assign(contents, doc);
1561
+ return contents;
1562
+ };
1563
+ exports.de_GetOrCreateWhatsAppChannelCommand = de_GetOrCreateWhatsAppChannelCommand;
1564
+ const de_GetSmsChannelIdCommand = async (output, context) => {
1565
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1566
+ return de_CommandError(output, context);
1567
+ }
1568
+ const contents = (0, smithy_client_1.map)({
1569
+ $metadata: deserializeMetadata(output),
1570
+ });
1571
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1572
+ const doc = (0, smithy_client_1.take)(data, {
1573
+ 'channelId': smithy_client_1.expectString,
1574
+ });
1575
+ Object.assign(contents, doc);
1576
+ return contents;
1577
+ };
1578
+ exports.de_GetSmsChannelIdCommand = de_GetSmsChannelIdCommand;
1579
+ const de_GetTelephonyChannelIdCommand = async (output, context) => {
1580
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1581
+ return de_CommandError(output, context);
1582
+ }
1583
+ const contents = (0, smithy_client_1.map)({
1584
+ $metadata: deserializeMetadata(output),
1585
+ });
1586
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1587
+ const doc = (0, smithy_client_1.take)(data, {
1588
+ 'channelId': smithy_client_1.expectString,
1589
+ });
1590
+ Object.assign(contents, doc);
1591
+ return contents;
1592
+ };
1593
+ exports.de_GetTelephonyChannelIdCommand = de_GetTelephonyChannelIdCommand;
1594
+ const de_GetTokenCommand = async (output, context) => {
1595
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1596
+ return de_CommandError(output, context);
1597
+ }
1598
+ const contents = (0, smithy_client_1.map)({
1599
+ $metadata: deserializeMetadata(output),
1600
+ });
1601
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1602
+ const doc = (0, smithy_client_1.take)(data, {
1603
+ 'expires': smithy_client_1.expectLong,
1604
+ 'token': smithy_client_1.expectString,
1605
+ });
1606
+ Object.assign(contents, doc);
1607
+ return contents;
1608
+ };
1609
+ exports.de_GetTokenCommand = de_GetTokenCommand;
1610
+ const de_GetUploadedFileInfoCommand = async (output, context) => {
1611
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1612
+ return de_CommandError(output, context);
1613
+ }
1614
+ const contents = (0, smithy_client_1.map)({
1615
+ $metadata: deserializeMetadata(output),
1616
+ });
1617
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1618
+ const doc = (0, smithy_client_1.take)(data, {
1619
+ 'file': smithy_client_1._json,
1620
+ });
1621
+ Object.assign(contents, doc);
1622
+ return contents;
1623
+ };
1624
+ exports.de_GetUploadedFileInfoCommand = de_GetUploadedFileInfoCommand;
1625
+ const de_GetWhatsAppChannelIdCommand = async (output, context) => {
1626
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1627
+ return de_CommandError(output, context);
1628
+ }
1629
+ const contents = (0, smithy_client_1.map)({
1630
+ $metadata: deserializeMetadata(output),
1631
+ });
1632
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1633
+ const doc = (0, smithy_client_1.take)(data, {
1634
+ 'channelId': smithy_client_1.expectString,
1635
+ });
1636
+ Object.assign(contents, doc);
1637
+ return contents;
1638
+ };
1639
+ exports.de_GetWhatsAppChannelIdCommand = de_GetWhatsAppChannelIdCommand;
1640
+ const de_HideChannelCommand = async (output, context) => {
1641
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1642
+ return de_CommandError(output, context);
1643
+ }
1644
+ const contents = (0, smithy_client_1.map)({
1645
+ $metadata: deserializeMetadata(output),
1646
+ });
1647
+ await (0, smithy_client_1.collectBody)(output.body, context);
1648
+ return contents;
1649
+ };
1650
+ exports.de_HideChannelCommand = de_HideChannelCommand;
1651
+ const de_JoinChannelCommand = async (output, context) => {
1652
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1653
+ return de_CommandError(output, context);
1654
+ }
1655
+ const contents = (0, smithy_client_1.map)({
1656
+ $metadata: deserializeMetadata(output),
1657
+ });
1658
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1659
+ const doc = (0, smithy_client_1.take)(data, {
1660
+ 'channel': smithy_client_1._json,
1661
+ });
1662
+ Object.assign(contents, doc);
1663
+ return contents;
1664
+ };
1665
+ exports.de_JoinChannelCommand = de_JoinChannelCommand;
1666
+ const de_LeaveChannelCommand = async (output, context) => {
1667
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1668
+ return de_CommandError(output, context);
1669
+ }
1670
+ const contents = (0, smithy_client_1.map)({
1671
+ $metadata: deserializeMetadata(output),
1672
+ });
1673
+ await (0, smithy_client_1.collectBody)(output.body, context);
1674
+ return contents;
1675
+ };
1676
+ exports.de_LeaveChannelCommand = de_LeaveChannelCommand;
1677
+ const de_ListChannelMembersCommand = async (output, context) => {
1678
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1679
+ return de_CommandError(output, context);
1680
+ }
1681
+ const contents = (0, smithy_client_1.map)({
1682
+ $metadata: deserializeMetadata(output),
1683
+ });
1684
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1685
+ const doc = (0, smithy_client_1.take)(data, {
1686
+ 'members': smithy_client_1._json,
1687
+ });
1688
+ Object.assign(contents, doc);
1689
+ return contents;
1690
+ };
1691
+ exports.de_ListChannelMembersCommand = de_ListChannelMembersCommand;
1692
+ const de_ListChannelMembersReadStatusCommand = async (output, context) => {
1693
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1694
+ return de_CommandError(output, context);
1695
+ }
1696
+ const contents = (0, smithy_client_1.map)({
1697
+ $metadata: deserializeMetadata(output),
1698
+ });
1699
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1700
+ const doc = (0, smithy_client_1.take)(data, {
1701
+ 'members': smithy_client_1._json,
1702
+ });
1703
+ Object.assign(contents, doc);
1704
+ return contents;
1705
+ };
1706
+ exports.de_ListChannelMembersReadStatusCommand = de_ListChannelMembersReadStatusCommand;
1707
+ const de_ListChannelsCommand = async (output, context) => {
1708
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1709
+ return de_CommandError(output, context);
1710
+ }
1711
+ const contents = (0, smithy_client_1.map)({
1712
+ $metadata: deserializeMetadata(output),
1713
+ });
1714
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1715
+ const doc = (0, smithy_client_1.take)(data, {
1716
+ 'channels': smithy_client_1._json,
1717
+ 'nextCursor': smithy_client_1.expectString,
1718
+ });
1719
+ Object.assign(contents, doc);
1720
+ return contents;
1721
+ };
1722
+ exports.de_ListChannelsCommand = de_ListChannelsCommand;
1723
+ const de_ListMentionsCommand = async (output, context) => {
1724
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1725
+ return de_CommandError(output, context);
1726
+ }
1727
+ const contents = (0, smithy_client_1.map)({
1728
+ $metadata: deserializeMetadata(output),
1729
+ });
1730
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1731
+ const doc = (0, smithy_client_1.take)(data, {
1732
+ 'mentions': smithy_client_1._json,
1733
+ 'nextCursor': smithy_client_1.expectString,
1734
+ });
1735
+ Object.assign(contents, doc);
1736
+ return contents;
1737
+ };
1738
+ exports.de_ListMentionsCommand = de_ListMentionsCommand;
1739
+ const de_ListMessagesCommand = async (output, context) => {
1740
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1741
+ return de_CommandError(output, context);
1742
+ }
1743
+ const contents = (0, smithy_client_1.map)({
1744
+ $metadata: deserializeMetadata(output),
1745
+ });
1746
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1747
+ const doc = (0, smithy_client_1.take)(data, {
1748
+ 'messages': smithy_client_1._json,
1749
+ });
1750
+ Object.assign(contents, doc);
1751
+ return contents;
1752
+ };
1753
+ exports.de_ListMessagesCommand = de_ListMessagesCommand;
1754
+ const de_MarkReadCommand = async (output, context) => {
1755
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1756
+ return de_CommandError(output, context);
1757
+ }
1758
+ const contents = (0, smithy_client_1.map)({
1759
+ $metadata: deserializeMetadata(output),
1760
+ });
1761
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1762
+ const doc = (0, smithy_client_1.take)(data, {
1763
+ 'inbox': smithy_client_1._json,
1764
+ });
1765
+ Object.assign(contents, doc);
1766
+ return contents;
1767
+ };
1768
+ exports.de_MarkReadCommand = de_MarkReadCommand;
1769
+ const de_MarkUnreadCommand = async (output, context) => {
1770
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1771
+ return de_CommandError(output, context);
1772
+ }
1773
+ const contents = (0, smithy_client_1.map)({
1774
+ $metadata: deserializeMetadata(output),
1775
+ });
1776
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1777
+ const doc = (0, smithy_client_1.take)(data, {
1778
+ 'inbox': smithy_client_1._json,
1779
+ });
1780
+ Object.assign(contents, doc);
1781
+ return contents;
1782
+ };
1783
+ exports.de_MarkUnreadCommand = de_MarkUnreadCommand;
1784
+ const de_MoveChannelToSectionCommand = async (output, context) => {
1785
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1786
+ return de_CommandError(output, context);
1787
+ }
1788
+ const contents = (0, smithy_client_1.map)({
1789
+ $metadata: deserializeMetadata(output),
1790
+ });
1791
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1792
+ const doc = (0, smithy_client_1.take)(data, {
1793
+ 'inbox': smithy_client_1._json,
1794
+ });
1795
+ Object.assign(contents, doc);
1796
+ return contents;
1797
+ };
1798
+ exports.de_MoveChannelToSectionCommand = de_MoveChannelToSectionCommand;
1799
+ const de_MuteChannelCommand = async (output, context) => {
1800
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1801
+ return de_CommandError(output, context);
1802
+ }
1803
+ const contents = (0, smithy_client_1.map)({
1804
+ $metadata: deserializeMetadata(output),
1805
+ });
1806
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1807
+ const doc = (0, smithy_client_1.take)(data, {
1808
+ 'inbox': smithy_client_1._json,
1809
+ });
1810
+ Object.assign(contents, doc);
1811
+ return contents;
242
1812
  };
243
- exports.se_UnpinMessageCommand = se_UnpinMessageCommand;
244
- const de_AddReactionCommand = async (output, context) => {
1813
+ exports.de_MuteChannelCommand = de_MuteChannelCommand;
1814
+ const de_PartialUpdateChannelCommand = async (output, context) => {
1815
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1816
+ return de_CommandError(output, context);
1817
+ }
1818
+ const contents = (0, smithy_client_1.map)({
1819
+ $metadata: deserializeMetadata(output),
1820
+ });
1821
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1822
+ const doc = (0, smithy_client_1.take)(data, {
1823
+ 'channel': smithy_client_1._json,
1824
+ });
1825
+ Object.assign(contents, doc);
1826
+ return contents;
1827
+ };
1828
+ exports.de_PartialUpdateChannelCommand = de_PartialUpdateChannelCommand;
1829
+ const de_PartialUpdateMessageCommand = async (output, context) => {
245
1830
  if (output.statusCode !== 200 && output.statusCode >= 300) {
246
1831
  return de_CommandError(output, context);
247
1832
  }
@@ -255,9 +1840,9 @@ const de_AddReactionCommand = async (output, context) => {
255
1840
  Object.assign(contents, doc);
256
1841
  return contents;
257
1842
  };
258
- exports.de_AddReactionCommand = de_AddReactionCommand;
259
- const de_DeleteMessageCommand = async (output, context) => {
260
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1843
+ exports.de_PartialUpdateMessageCommand = de_PartialUpdateMessageCommand;
1844
+ const de_PinChannelCommand = async (output, context) => {
1845
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
261
1846
  return de_CommandError(output, context);
262
1847
  }
263
1848
  const contents = (0, smithy_client_1.map)({
@@ -266,8 +1851,8 @@ const de_DeleteMessageCommand = async (output, context) => {
266
1851
  await (0, smithy_client_1.collectBody)(output.body, context);
267
1852
  return contents;
268
1853
  };
269
- exports.de_DeleteMessageCommand = de_DeleteMessageCommand;
270
- const de_EditMessageCommand = async (output, context) => {
1854
+ exports.de_PinChannelCommand = de_PinChannelCommand;
1855
+ const de_PinMessageCommand = async (output, context) => {
271
1856
  if (output.statusCode !== 200 && output.statusCode >= 300) {
272
1857
  return de_CommandError(output, context);
273
1858
  }
@@ -281,8 +1866,8 @@ const de_EditMessageCommand = async (output, context) => {
281
1866
  Object.assign(contents, doc);
282
1867
  return contents;
283
1868
  };
284
- exports.de_EditMessageCommand = de_EditMessageCommand;
285
- const de_GetInboxCommand = async (output, context) => {
1869
+ exports.de_PinMessageCommand = de_PinMessageCommand;
1870
+ const de_QueryChannelsCommand = async (output, context) => {
286
1871
  if (output.statusCode !== 200 && output.statusCode >= 300) {
287
1872
  return de_CommandError(output, context);
288
1873
  }
@@ -292,14 +1877,13 @@ const de_GetInboxCommand = async (output, context) => {
292
1877
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
293
1878
  const doc = (0, smithy_client_1.take)(data, {
294
1879
  'channels': smithy_client_1._json,
295
- 'sections': smithy_client_1._json,
296
1880
  });
297
1881
  Object.assign(contents, doc);
298
1882
  return contents;
299
1883
  };
300
- exports.de_GetInboxCommand = de_GetInboxCommand;
301
- const de_GetMessageCommand = async (output, context) => {
302
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1884
+ exports.de_QueryChannelsCommand = de_QueryChannelsCommand;
1885
+ const de_RemoveChannelFromSectionCommand = async (output, context) => {
1886
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
303
1887
  return de_CommandError(output, context);
304
1888
  }
305
1889
  const contents = (0, smithy_client_1.map)({
@@ -307,13 +1891,13 @@ const de_GetMessageCommand = async (output, context) => {
307
1891
  });
308
1892
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
309
1893
  const doc = (0, smithy_client_1.take)(data, {
310
- 'message': smithy_client_1._json,
1894
+ 'inbox': smithy_client_1._json,
311
1895
  });
312
1896
  Object.assign(contents, doc);
313
1897
  return contents;
314
1898
  };
315
- exports.de_GetMessageCommand = de_GetMessageCommand;
316
- const de_ListChannelsCommand = async (output, context) => {
1899
+ exports.de_RemoveChannelFromSectionCommand = de_RemoveChannelFromSectionCommand;
1900
+ const de_RenameSectionCommand = async (output, context) => {
317
1901
  if (output.statusCode !== 200 && output.statusCode >= 300) {
318
1902
  return de_CommandError(output, context);
319
1903
  }
@@ -322,14 +1906,13 @@ const de_ListChannelsCommand = async (output, context) => {
322
1906
  });
323
1907
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
324
1908
  const doc = (0, smithy_client_1.take)(data, {
325
- 'channels': smithy_client_1._json,
326
- 'nextCursor': smithy_client_1.expectString,
1909
+ 'section': smithy_client_1._json,
327
1910
  });
328
1911
  Object.assign(contents, doc);
329
1912
  return contents;
330
1913
  };
331
- exports.de_ListChannelsCommand = de_ListChannelsCommand;
332
- const de_ListMentionsCommand = async (output, context) => {
1914
+ exports.de_RenameSectionCommand = de_RenameSectionCommand;
1915
+ const de_SendGiphyCommand = async (output, context) => {
333
1916
  if (output.statusCode !== 200 && output.statusCode >= 300) {
334
1917
  return de_CommandError(output, context);
335
1918
  }
@@ -338,14 +1921,13 @@ const de_ListMentionsCommand = async (output, context) => {
338
1921
  });
339
1922
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
340
1923
  const doc = (0, smithy_client_1.take)(data, {
341
- 'mentions': smithy_client_1._json,
342
- 'nextCursor': smithy_client_1.expectString,
1924
+ 'message': smithy_client_1._json,
343
1925
  });
344
1926
  Object.assign(contents, doc);
345
1927
  return contents;
346
1928
  };
347
- exports.de_ListMentionsCommand = de_ListMentionsCommand;
348
- const de_ListMessagesCommand = async (output, context) => {
1929
+ exports.de_SendGiphyCommand = de_SendGiphyCommand;
1930
+ const de_SendMessageCommand = async (output, context) => {
349
1931
  if (output.statusCode !== 200 && output.statusCode >= 300) {
350
1932
  return de_CommandError(output, context);
351
1933
  }
@@ -354,13 +1936,13 @@ const de_ListMessagesCommand = async (output, context) => {
354
1936
  });
355
1937
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
356
1938
  const doc = (0, smithy_client_1.take)(data, {
357
- 'messages': smithy_client_1._json,
1939
+ 'message': smithy_client_1._json,
358
1940
  });
359
1941
  Object.assign(contents, doc);
360
1942
  return contents;
361
1943
  };
362
- exports.de_ListMessagesCommand = de_ListMessagesCommand;
363
- const de_PinMessageCommand = async (output, context) => {
1944
+ exports.de_SendMessageCommand = de_SendMessageCommand;
1945
+ const de_SendMessageReactionCommand = async (output, context) => {
364
1946
  if (output.statusCode !== 200 && output.statusCode >= 300) {
365
1947
  return de_CommandError(output, context);
366
1948
  }
@@ -374,8 +1956,8 @@ const de_PinMessageCommand = async (output, context) => {
374
1956
  Object.assign(contents, doc);
375
1957
  return contents;
376
1958
  };
377
- exports.de_PinMessageCommand = de_PinMessageCommand;
378
- const de_RemoveReactionCommand = async (output, context) => {
1959
+ exports.de_SendMessageReactionCommand = de_SendMessageReactionCommand;
1960
+ const de_SendSystemMessageCommand = async (output, context) => {
379
1961
  if (output.statusCode !== 200 && output.statusCode >= 300) {
380
1962
  return de_CommandError(output, context);
381
1963
  }
@@ -389,22 +1971,66 @@ const de_RemoveReactionCommand = async (output, context) => {
389
1971
  Object.assign(contents, doc);
390
1972
  return contents;
391
1973
  };
392
- exports.de_RemoveReactionCommand = de_RemoveReactionCommand;
393
- const de_SendMessageCommand = async (output, context) => {
1974
+ exports.de_SendSystemMessageCommand = de_SendSystemMessageCommand;
1975
+ const de_SendTypingStartCommand = async (output, context) => {
1976
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1977
+ return de_CommandError(output, context);
1978
+ }
1979
+ const contents = (0, smithy_client_1.map)({
1980
+ $metadata: deserializeMetadata(output),
1981
+ });
1982
+ await (0, smithy_client_1.collectBody)(output.body, context);
1983
+ return contents;
1984
+ };
1985
+ exports.de_SendTypingStartCommand = de_SendTypingStartCommand;
1986
+ const de_SendTypingStopCommand = async (output, context) => {
394
1987
  if (output.statusCode !== 200 && output.statusCode >= 300) {
395
1988
  return de_CommandError(output, context);
396
1989
  }
397
1990
  const contents = (0, smithy_client_1.map)({
398
1991
  $metadata: deserializeMetadata(output),
399
1992
  });
1993
+ await (0, smithy_client_1.collectBody)(output.body, context);
1994
+ return contents;
1995
+ };
1996
+ exports.de_SendTypingStopCommand = de_SendTypingStopCommand;
1997
+ const de_ShowChannelCommand = async (output, context) => {
1998
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1999
+ return de_CommandError(output, context);
2000
+ }
2001
+ const contents = (0, smithy_client_1.map)({
2002
+ $metadata: deserializeMetadata(output),
2003
+ });
2004
+ await (0, smithy_client_1.collectBody)(output.body, context);
2005
+ return contents;
2006
+ };
2007
+ exports.de_ShowChannelCommand = de_ShowChannelCommand;
2008
+ const de_UnmuteChannelCommand = async (output, context) => {
2009
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2010
+ return de_CommandError(output, context);
2011
+ }
2012
+ const contents = (0, smithy_client_1.map)({
2013
+ $metadata: deserializeMetadata(output),
2014
+ });
400
2015
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
401
2016
  const doc = (0, smithy_client_1.take)(data, {
402
- 'message': smithy_client_1._json,
2017
+ 'inbox': smithy_client_1._json,
403
2018
  });
404
2019
  Object.assign(contents, doc);
405
2020
  return contents;
406
2021
  };
407
- exports.de_SendMessageCommand = de_SendMessageCommand;
2022
+ exports.de_UnmuteChannelCommand = de_UnmuteChannelCommand;
2023
+ const de_UnpinChannelCommand = async (output, context) => {
2024
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2025
+ return de_CommandError(output, context);
2026
+ }
2027
+ const contents = (0, smithy_client_1.map)({
2028
+ $metadata: deserializeMetadata(output),
2029
+ });
2030
+ await (0, smithy_client_1.collectBody)(output.body, context);
2031
+ return contents;
2032
+ };
2033
+ exports.de_UnpinChannelCommand = de_UnpinChannelCommand;
408
2034
  const de_UnpinMessageCommand = async (output, context) => {
409
2035
  if (output.statusCode !== 200 && output.statusCode >= 300) {
410
2036
  return de_CommandError(output, context);
@@ -420,6 +2046,52 @@ const de_UnpinMessageCommand = async (output, context) => {
420
2046
  return contents;
421
2047
  };
422
2048
  exports.de_UnpinMessageCommand = de_UnpinMessageCommand;
2049
+ const de_UpdateChannelCommand = async (output, context) => {
2050
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2051
+ return de_CommandError(output, context);
2052
+ }
2053
+ const contents = (0, smithy_client_1.map)({
2054
+ $metadata: deserializeMetadata(output),
2055
+ });
2056
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2057
+ const doc = (0, smithy_client_1.take)(data, {
2058
+ 'channel': smithy_client_1._json,
2059
+ });
2060
+ Object.assign(contents, doc);
2061
+ return contents;
2062
+ };
2063
+ exports.de_UpdateChannelCommand = de_UpdateChannelCommand;
2064
+ const de_UpdateMessageCommand = async (output, context) => {
2065
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2066
+ return de_CommandError(output, context);
2067
+ }
2068
+ const contents = (0, smithy_client_1.map)({
2069
+ $metadata: deserializeMetadata(output),
2070
+ });
2071
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2072
+ const doc = (0, smithy_client_1.take)(data, {
2073
+ 'message': smithy_client_1._json,
2074
+ });
2075
+ Object.assign(contents, doc);
2076
+ return contents;
2077
+ };
2078
+ exports.de_UpdateMessageCommand = de_UpdateMessageCommand;
2079
+ const de_UploadFileCommand = async (output, context) => {
2080
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2081
+ return de_CommandError(output, context);
2082
+ }
2083
+ const contents = (0, smithy_client_1.map)({
2084
+ $metadata: deserializeMetadata(output),
2085
+ });
2086
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2087
+ const doc = (0, smithy_client_1.take)(data, {
2088
+ 'fsId': smithy_client_1.expectString,
2089
+ 'presignedUploadUrl': smithy_client_1.expectString,
2090
+ });
2091
+ Object.assign(contents, doc);
2092
+ return contents;
2093
+ };
2094
+ exports.de_UploadFileCommand = de_UploadFileCommand;
423
2095
  const de_CommandError = async (output, context) => {
424
2096
  const parsedOutput = {
425
2097
  ...output,
@@ -433,21 +2105,48 @@ const de_CommandError = async (output, context) => {
433
2105
  case "ForbiddenException":
434
2106
  case "smithy.framework#ForbiddenException":
435
2107
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
436
- case "InternalServerError":
437
- case "smithy.framework#InternalServerError":
438
- throw await de_InternalServerErrorRes(parsedOutput, context);
439
- case "MessageNotFoundException":
440
- case "wildix.stream#MessageNotFoundException":
441
- throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
2108
+ case "MemberAlreadyExistException":
2109
+ case "wildix.stream#MemberAlreadyExistException":
2110
+ throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
442
2111
  case "RateLimitExceededException":
443
2112
  case "smithy.framework#RateLimitExceededException":
444
2113
  throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
2114
+ case "StreamServiceException":
2115
+ case "wildix.stream#StreamServiceException":
2116
+ throw await de_StreamServiceExceptionRes(parsedOutput, context);
445
2117
  case "UnauthorizedException":
446
2118
  case "smithy.framework#UnauthorizedException":
447
2119
  throw await de_UnauthorizedExceptionRes(parsedOutput, context);
448
2120
  case "ValidationException":
449
2121
  case "smithy.framework#ValidationException":
450
2122
  throw await de_ValidationExceptionRes(parsedOutput, context);
2123
+ case "ChannelAlreadyExistException":
2124
+ case "wildix.stream#ChannelAlreadyExistException":
2125
+ throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
2126
+ case "TargetNotEligibleException":
2127
+ case "wildix.xbees.kite#TargetNotEligibleException":
2128
+ throw await de_TargetNotEligibleExceptionRes(parsedOutput, context);
2129
+ case "TargetNotFoundException":
2130
+ case "wildix.xbees.kite#TargetNotFoundException":
2131
+ throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
2132
+ case "MemberNotFoundException":
2133
+ case "wildix.stream#MemberNotFoundException":
2134
+ throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
2135
+ case "MessageNotFoundException":
2136
+ case "wildix.stream#MessageNotFoundException":
2137
+ throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
2138
+ case "SectionNotFoundException":
2139
+ case "wildix.stream#SectionNotFoundException":
2140
+ throw await de_SectionNotFoundExceptionRes(parsedOutput, context);
2141
+ case "FileNotFoundException":
2142
+ case "wildix.stream#FileNotFoundException":
2143
+ throw await de_FileNotFoundExceptionRes(parsedOutput, context);
2144
+ case "MarkUnreadChannelsLimitReachedException":
2145
+ case "wildix.stream#MarkUnreadChannelsLimitReachedException":
2146
+ throw await de_MarkUnreadChannelsLimitReachedExceptionRes(parsedOutput, context);
2147
+ case "PinnedChannelsLimitReachedException":
2148
+ case "wildix.stream#PinnedChannelsLimitReachedException":
2149
+ throw await de_PinnedChannelsLimitReachedExceptionRes(parsedOutput, context);
451
2150
  default:
452
2151
  const parsedBody = parsedOutput.body;
453
2152
  return throwDefaultError({
@@ -471,19 +2170,6 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
471
2170
  });
472
2171
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
473
2172
  };
474
- const de_InternalServerErrorRes = async (parsedOutput, context) => {
475
- const contents = (0, smithy_client_1.map)({});
476
- const data = parsedOutput.body;
477
- const doc = (0, smithy_client_1.take)(data, {
478
- 'message': smithy_client_1.expectString,
479
- });
480
- Object.assign(contents, doc);
481
- const exception = new models_0_1.InternalServerError({
482
- $metadata: deserializeMetadata(parsedOutput),
483
- ...contents
484
- });
485
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
486
- };
487
2173
  const de_RateLimitExceededExceptionRes = async (parsedOutput, context) => {
488
2174
  const contents = (0, smithy_client_1.map)({
489
2175
  [_rL]: [, parsedOutput.headers[_xrl]],
@@ -528,6 +2214,19 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
528
2214
  });
529
2215
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
530
2216
  };
2217
+ const de_ChannelAlreadyExistExceptionRes = async (parsedOutput, context) => {
2218
+ const contents = (0, smithy_client_1.map)({});
2219
+ const data = parsedOutput.body;
2220
+ const doc = (0, smithy_client_1.take)(data, {
2221
+ 'message': smithy_client_1.expectString,
2222
+ });
2223
+ Object.assign(contents, doc);
2224
+ const exception = new models_0_1.ChannelAlreadyExistException({
2225
+ $metadata: deserializeMetadata(parsedOutput),
2226
+ ...contents
2227
+ });
2228
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2229
+ };
531
2230
  const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
532
2231
  const contents = (0, smithy_client_1.map)({});
533
2232
  const data = parsedOutput.body;
@@ -541,6 +2240,58 @@ const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
541
2240
  });
542
2241
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
543
2242
  };
2243
+ const de_FileNotFoundExceptionRes = async (parsedOutput, context) => {
2244
+ const contents = (0, smithy_client_1.map)({});
2245
+ const data = parsedOutput.body;
2246
+ const doc = (0, smithy_client_1.take)(data, {
2247
+ 'message': smithy_client_1.expectString,
2248
+ });
2249
+ Object.assign(contents, doc);
2250
+ const exception = new models_0_1.FileNotFoundException({
2251
+ $metadata: deserializeMetadata(parsedOutput),
2252
+ ...contents
2253
+ });
2254
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2255
+ };
2256
+ const de_MarkUnreadChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
2257
+ const contents = (0, smithy_client_1.map)({});
2258
+ const data = parsedOutput.body;
2259
+ const doc = (0, smithy_client_1.take)(data, {
2260
+ 'message': smithy_client_1.expectString,
2261
+ });
2262
+ Object.assign(contents, doc);
2263
+ const exception = new models_0_1.MarkUnreadChannelsLimitReachedException({
2264
+ $metadata: deserializeMetadata(parsedOutput),
2265
+ ...contents
2266
+ });
2267
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2268
+ };
2269
+ const de_MemberAlreadyExistExceptionRes = async (parsedOutput, context) => {
2270
+ const contents = (0, smithy_client_1.map)({});
2271
+ const data = parsedOutput.body;
2272
+ const doc = (0, smithy_client_1.take)(data, {
2273
+ 'message': smithy_client_1.expectString,
2274
+ });
2275
+ Object.assign(contents, doc);
2276
+ const exception = new models_0_1.MemberAlreadyExistException({
2277
+ $metadata: deserializeMetadata(parsedOutput),
2278
+ ...contents
2279
+ });
2280
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2281
+ };
2282
+ const de_MemberNotFoundExceptionRes = async (parsedOutput, context) => {
2283
+ const contents = (0, smithy_client_1.map)({});
2284
+ const data = parsedOutput.body;
2285
+ const doc = (0, smithy_client_1.take)(data, {
2286
+ 'message': smithy_client_1.expectString,
2287
+ });
2288
+ Object.assign(contents, doc);
2289
+ const exception = new models_0_1.MemberNotFoundException({
2290
+ $metadata: deserializeMetadata(parsedOutput),
2291
+ ...contents
2292
+ });
2293
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2294
+ };
544
2295
  const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
545
2296
  const contents = (0, smithy_client_1.map)({});
546
2297
  const data = parsedOutput.body;
@@ -554,6 +2305,72 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
554
2305
  });
555
2306
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
556
2307
  };
2308
+ const de_PinnedChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
2309
+ const contents = (0, smithy_client_1.map)({});
2310
+ const data = parsedOutput.body;
2311
+ const doc = (0, smithy_client_1.take)(data, {
2312
+ 'message': smithy_client_1.expectString,
2313
+ });
2314
+ Object.assign(contents, doc);
2315
+ const exception = new models_0_1.PinnedChannelsLimitReachedException({
2316
+ $metadata: deserializeMetadata(parsedOutput),
2317
+ ...contents
2318
+ });
2319
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2320
+ };
2321
+ const de_SectionNotFoundExceptionRes = async (parsedOutput, context) => {
2322
+ const contents = (0, smithy_client_1.map)({});
2323
+ const data = parsedOutput.body;
2324
+ const doc = (0, smithy_client_1.take)(data, {
2325
+ 'message': smithy_client_1.expectString,
2326
+ });
2327
+ Object.assign(contents, doc);
2328
+ const exception = new models_0_1.SectionNotFoundException({
2329
+ $metadata: deserializeMetadata(parsedOutput),
2330
+ ...contents
2331
+ });
2332
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2333
+ };
2334
+ const de_StreamServiceExceptionRes = async (parsedOutput, context) => {
2335
+ const contents = (0, smithy_client_1.map)({});
2336
+ const data = parsedOutput.body;
2337
+ const doc = (0, smithy_client_1.take)(data, {
2338
+ 'message': smithy_client_1.expectString,
2339
+ });
2340
+ Object.assign(contents, doc);
2341
+ const exception = new models_0_1.StreamServiceException({
2342
+ $metadata: deserializeMetadata(parsedOutput),
2343
+ ...contents
2344
+ });
2345
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2346
+ };
2347
+ const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
2348
+ const contents = (0, smithy_client_1.map)({});
2349
+ const data = parsedOutput.body;
2350
+ const doc = (0, smithy_client_1.take)(data, {
2351
+ 'message': smithy_client_1.expectString,
2352
+ 'reason': smithy_client_1.expectString,
2353
+ });
2354
+ Object.assign(contents, doc);
2355
+ const exception = new models_0_1.TargetNotEligibleException({
2356
+ $metadata: deserializeMetadata(parsedOutput),
2357
+ ...contents
2358
+ });
2359
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2360
+ };
2361
+ const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
2362
+ const contents = (0, smithy_client_1.map)({});
2363
+ const data = parsedOutput.body;
2364
+ const doc = (0, smithy_client_1.take)(data, {
2365
+ 'message': smithy_client_1.expectString,
2366
+ });
2367
+ Object.assign(contents, doc);
2368
+ const exception = new models_0_1.TargetNotFoundException({
2369
+ $metadata: deserializeMetadata(parsedOutput),
2370
+ ...contents
2371
+ });
2372
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2373
+ };
557
2374
  const deserializeMetadata = (output) => ({
558
2375
  httpStatusCode: output.statusCode,
559
2376
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -563,15 +2380,22 @@ const deserializeMetadata = (output) => ({
563
2380
  const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
564
2381
  const _c = "company";
565
2382
  const _cI = "companyId";
2383
+ const _cIl = "clientId";
2384
+ const _ca = "category";
566
2385
  const _cu = "cursor";
2386
+ const _d = "download";
567
2387
  const _f = "filter";
2388
+ const _fo = "force";
568
2389
  const _fr = "from";
2390
+ const _l = "limit";
2391
+ const _o = "offset";
569
2392
  const _rA = "retryAfter";
570
2393
  const _rL = "rateLimit";
571
2394
  const _rLR = "rateLimitRemaining";
572
2395
  const _rLRa = "rateLimitReset";
573
2396
  const _ra = "retry-after";
574
- const _s = "section";
2397
+ const _s = "silent";
2398
+ const _se = "section";
575
2399
  const _t = "to";
576
2400
  const _uI = "userId";
577
2401
  const _xrl = "x-ratelimit-limit";