@wildix/stream-client 0.0.14 → 3.1.10

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 (243) hide show
  1. package/dist-cjs/StreamService.js +3 -7
  2. package/dist-cjs/StreamServiceClient.js +34 -27
  3. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  4. package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
  5. package/dist-cjs/commands/AddChannelMemberCommand.js +10 -11
  6. package/dist-cjs/commands/AddChannelMembersCommand.js +10 -11
  7. package/dist-cjs/commands/AssignChannelCommand.js +10 -11
  8. package/dist-cjs/commands/CreateGroupChannelCommand.js +10 -11
  9. package/dist-cjs/commands/CreateKiteChannelCommand.js +10 -11
  10. package/dist-cjs/commands/CreateSectionCommand.js +10 -11
  11. package/dist-cjs/commands/DeleteChannelCommand.js +10 -11
  12. package/dist-cjs/commands/DeleteChannelMemberCommand.js +10 -11
  13. package/dist-cjs/commands/DeleteMessageCommand.js +10 -11
  14. package/dist-cjs/commands/DeleteMessageReactionCommand.js +10 -11
  15. package/dist-cjs/commands/DeleteSectionCommand.js +10 -11
  16. package/dist-cjs/commands/GetChannelCommand.js +10 -11
  17. package/dist-cjs/commands/GetChannelMemberCommand.js +10 -11
  18. package/dist-cjs/commands/GetDirectChannelIdCommand.js +10 -11
  19. package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +10 -11
  20. package/dist-cjs/commands/GetInboxCommand.js +10 -11
  21. package/dist-cjs/commands/GetMessageCommand.js +10 -11
  22. package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +10 -11
  23. package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +10 -11
  24. package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +10 -11
  25. package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +10 -11
  26. package/dist-cjs/commands/GetSmsChannelIdCommand.js +10 -11
  27. package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +10 -11
  28. package/dist-cjs/commands/GetTokenCommand.js +10 -11
  29. package/dist-cjs/commands/GetUploadedFileInfoCommand.js +10 -11
  30. package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +10 -11
  31. package/dist-cjs/commands/HideChannelCommand.js +10 -11
  32. package/dist-cjs/commands/JoinChannelCommand.js +10 -11
  33. package/dist-cjs/commands/LeaveChannelCommand.js +10 -11
  34. package/dist-cjs/commands/ListChannelMembersCommand.js +10 -11
  35. package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +10 -11
  36. package/dist-cjs/commands/ListChannelsCommand.js +10 -11
  37. package/dist-cjs/commands/ListMentionsCommand.js +10 -11
  38. package/dist-cjs/commands/ListMessagesCommand.js +10 -11
  39. package/dist-cjs/commands/MarkReadCommand.js +10 -11
  40. package/dist-cjs/commands/MarkUnreadCommand.js +10 -11
  41. package/dist-cjs/commands/MoveChannelToSectionCommand.js +10 -11
  42. package/dist-cjs/commands/MuteChannelCommand.js +10 -11
  43. package/dist-cjs/commands/PartialUpdateChannelCommand.js +10 -11
  44. package/dist-cjs/commands/PartialUpdateMessageCommand.js +10 -11
  45. package/dist-cjs/commands/PinChannelCommand.js +10 -11
  46. package/dist-cjs/commands/PinMessageCommand.js +10 -11
  47. package/dist-cjs/commands/QueryChannelsCommand.js +10 -11
  48. package/dist-cjs/commands/RemoveChannelFromSectionCommand.js +10 -11
  49. package/dist-cjs/commands/RenameSectionCommand.js +10 -11
  50. package/dist-cjs/commands/SendGiphyCommand.js +10 -11
  51. package/dist-cjs/commands/SendMessageCommand.js +10 -11
  52. package/dist-cjs/commands/SendMessageReactionCommand.js +10 -11
  53. package/dist-cjs/commands/SendSystemMessageCommand.js +10 -11
  54. package/dist-cjs/commands/SendTypingStartCommand.js +10 -11
  55. package/dist-cjs/commands/SendTypingStopCommand.js +10 -11
  56. package/dist-cjs/commands/ShowChannelCommand.js +10 -11
  57. package/dist-cjs/commands/UnmuteChannelCommand.js +10 -11
  58. package/dist-cjs/commands/UnpinChannelCommand.js +10 -11
  59. package/dist-cjs/commands/UnpinMessageCommand.js +10 -11
  60. package/dist-cjs/commands/UpdateChannelCommand.js +10 -11
  61. package/dist-cjs/commands/UpdateMessageCommand.js +10 -11
  62. package/dist-cjs/commands/UploadFileCommand.js +10 -11
  63. package/dist-cjs/commands/index.js +0 -2
  64. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  65. package/dist-cjs/endpoint/bdd.js +28 -0
  66. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  67. package/dist-cjs/index.js +4 -1
  68. package/dist-cjs/models/StreamServiceServiceException.js +3 -3
  69. package/dist-cjs/models/enums.js +114 -0
  70. package/dist-cjs/models/errors.js +209 -0
  71. package/dist-cjs/models/models_0.js +0 -381
  72. package/dist-cjs/runtimeConfig.browser.js +11 -11
  73. package/dist-cjs/runtimeConfig.js +22 -18
  74. package/dist-cjs/runtimeConfig.shared.js +30 -10
  75. package/dist-cjs/runtimeExtensions.js +6 -5
  76. package/dist-cjs/schemas/schemas_0.js +1584 -0
  77. package/dist-es/StreamService.js +6 -10
  78. package/dist-es/StreamServiceClient.js +30 -23
  79. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  80. package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
  81. package/dist-es/commands/AddChannelMemberCommand.js +9 -10
  82. package/dist-es/commands/AddChannelMembersCommand.js +9 -10
  83. package/dist-es/commands/AssignChannelCommand.js +9 -10
  84. package/dist-es/commands/CreateGroupChannelCommand.js +9 -10
  85. package/dist-es/commands/CreateKiteChannelCommand.js +9 -10
  86. package/dist-es/commands/CreateSectionCommand.js +9 -10
  87. package/dist-es/commands/DeleteChannelCommand.js +9 -10
  88. package/dist-es/commands/DeleteChannelMemberCommand.js +9 -10
  89. package/dist-es/commands/DeleteMessageCommand.js +9 -10
  90. package/dist-es/commands/DeleteMessageReactionCommand.js +9 -10
  91. package/dist-es/commands/DeleteSectionCommand.js +9 -10
  92. package/dist-es/commands/GetChannelCommand.js +9 -10
  93. package/dist-es/commands/GetChannelMemberCommand.js +9 -10
  94. package/dist-es/commands/GetDirectChannelIdCommand.js +9 -10
  95. package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +9 -10
  96. package/dist-es/commands/GetInboxCommand.js +9 -10
  97. package/dist-es/commands/GetMessageCommand.js +9 -10
  98. package/dist-es/commands/GetOrCreateDirectChannelCommand.js +9 -10
  99. package/dist-es/commands/GetOrCreateSmsChannelCommand.js +9 -10
  100. package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +9 -10
  101. package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +9 -10
  102. package/dist-es/commands/GetSmsChannelIdCommand.js +9 -10
  103. package/dist-es/commands/GetTelephonyChannelIdCommand.js +9 -10
  104. package/dist-es/commands/GetTokenCommand.js +9 -10
  105. package/dist-es/commands/GetUploadedFileInfoCommand.js +9 -10
  106. package/dist-es/commands/GetWhatsAppChannelIdCommand.js +9 -10
  107. package/dist-es/commands/HideChannelCommand.js +9 -10
  108. package/dist-es/commands/JoinChannelCommand.js +9 -10
  109. package/dist-es/commands/LeaveChannelCommand.js +9 -10
  110. package/dist-es/commands/ListChannelMembersCommand.js +9 -10
  111. package/dist-es/commands/ListChannelMembersReadStatusCommand.js +9 -10
  112. package/dist-es/commands/ListChannelsCommand.js +9 -10
  113. package/dist-es/commands/ListMentionsCommand.js +9 -10
  114. package/dist-es/commands/ListMessagesCommand.js +9 -10
  115. package/dist-es/commands/MarkReadCommand.js +9 -10
  116. package/dist-es/commands/MarkUnreadCommand.js +9 -10
  117. package/dist-es/commands/MoveChannelToSectionCommand.js +9 -10
  118. package/dist-es/commands/MuteChannelCommand.js +9 -10
  119. package/dist-es/commands/PartialUpdateChannelCommand.js +9 -10
  120. package/dist-es/commands/PartialUpdateMessageCommand.js +9 -10
  121. package/dist-es/commands/PinChannelCommand.js +9 -10
  122. package/dist-es/commands/PinMessageCommand.js +9 -10
  123. package/dist-es/commands/QueryChannelsCommand.js +9 -10
  124. package/dist-es/commands/RemoveChannelFromSectionCommand.js +9 -10
  125. package/dist-es/commands/RenameSectionCommand.js +9 -10
  126. package/dist-es/commands/SendGiphyCommand.js +9 -10
  127. package/dist-es/commands/SendMessageCommand.js +9 -10
  128. package/dist-es/commands/SendMessageReactionCommand.js +9 -10
  129. package/dist-es/commands/SendSystemMessageCommand.js +9 -10
  130. package/dist-es/commands/SendTypingStartCommand.js +9 -10
  131. package/dist-es/commands/SendTypingStopCommand.js +9 -10
  132. package/dist-es/commands/ShowChannelCommand.js +9 -10
  133. package/dist-es/commands/UnmuteChannelCommand.js +9 -10
  134. package/dist-es/commands/UnpinChannelCommand.js +9 -10
  135. package/dist-es/commands/UnpinMessageCommand.js +9 -10
  136. package/dist-es/commands/UpdateChannelCommand.js +9 -10
  137. package/dist-es/commands/UpdateMessageCommand.js +9 -10
  138. package/dist-es/commands/UploadFileCommand.js +9 -10
  139. package/dist-es/commands/index.js +0 -2
  140. package/dist-es/endpoint/EndpointParameters.js +14 -0
  141. package/dist-es/endpoint/bdd.js +25 -0
  142. package/dist-es/endpoint/endpointResolver.js +12 -0
  143. package/dist-es/index.js +4 -1
  144. package/dist-es/models/StreamServiceServiceException.js +1 -1
  145. package/dist-es/models/enums.js +111 -0
  146. package/dist-es/models/errors.js +191 -0
  147. package/dist-es/models/models_0.js +1 -365
  148. package/dist-es/runtimeConfig.browser.js +7 -7
  149. package/dist-es/runtimeConfig.js +17 -13
  150. package/dist-es/runtimeConfig.shared.js +24 -4
  151. package/dist-es/runtimeExtensions.js +6 -5
  152. package/dist-es/schemas/schemas_0.js +1577 -0
  153. package/dist-types/StreamService.d.ts +59 -73
  154. package/dist-types/StreamServiceClient.d.ts +90 -76
  155. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  156. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  157. package/dist-types/commands/AddChannelMemberCommand.d.ts +11 -7
  158. package/dist-types/commands/AddChannelMembersCommand.d.ts +11 -7
  159. package/dist-types/commands/AssignChannelCommand.d.ts +11 -7
  160. package/dist-types/commands/CreateGroupChannelCommand.d.ts +11 -7
  161. package/dist-types/commands/CreateKiteChannelCommand.d.ts +11 -7
  162. package/dist-types/commands/CreateSectionCommand.d.ts +11 -7
  163. package/dist-types/commands/DeleteChannelCommand.d.ts +11 -7
  164. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +11 -7
  165. package/dist-types/commands/DeleteMessageCommand.d.ts +11 -7
  166. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +11 -7
  167. package/dist-types/commands/DeleteSectionCommand.d.ts +11 -7
  168. package/dist-types/commands/GetChannelCommand.d.ts +11 -7
  169. package/dist-types/commands/GetChannelMemberCommand.d.ts +11 -7
  170. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +11 -7
  171. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +11 -7
  172. package/dist-types/commands/GetInboxCommand.d.ts +11 -7
  173. package/dist-types/commands/GetMessageCommand.d.ts +11 -7
  174. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +11 -7
  175. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +11 -7
  176. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +11 -7
  177. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +11 -7
  178. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +11 -7
  179. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +11 -7
  180. package/dist-types/commands/GetTokenCommand.d.ts +11 -7
  181. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +11 -7
  182. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +11 -7
  183. package/dist-types/commands/HideChannelCommand.d.ts +11 -7
  184. package/dist-types/commands/JoinChannelCommand.d.ts +11 -7
  185. package/dist-types/commands/LeaveChannelCommand.d.ts +11 -7
  186. package/dist-types/commands/ListChannelMembersCommand.d.ts +11 -7
  187. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +11 -7
  188. package/dist-types/commands/ListChannelsCommand.d.ts +11 -7
  189. package/dist-types/commands/ListMentionsCommand.d.ts +11 -7
  190. package/dist-types/commands/ListMessagesCommand.d.ts +11 -7
  191. package/dist-types/commands/MarkReadCommand.d.ts +11 -7
  192. package/dist-types/commands/MarkUnreadCommand.d.ts +11 -7
  193. package/dist-types/commands/MoveChannelToSectionCommand.d.ts +11 -7
  194. package/dist-types/commands/MuteChannelCommand.d.ts +11 -7
  195. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +11 -7
  196. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +11 -7
  197. package/dist-types/commands/PinChannelCommand.d.ts +11 -7
  198. package/dist-types/commands/PinMessageCommand.d.ts +11 -7
  199. package/dist-types/commands/QueryChannelsCommand.d.ts +11 -7
  200. package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +11 -7
  201. package/dist-types/commands/RenameSectionCommand.d.ts +11 -7
  202. package/dist-types/commands/SendGiphyCommand.d.ts +11 -7
  203. package/dist-types/commands/SendMessageCommand.d.ts +11 -7
  204. package/dist-types/commands/SendMessageReactionCommand.d.ts +11 -7
  205. package/dist-types/commands/SendSystemMessageCommand.d.ts +11 -7
  206. package/dist-types/commands/SendTypingStartCommand.d.ts +11 -7
  207. package/dist-types/commands/SendTypingStopCommand.d.ts +11 -7
  208. package/dist-types/commands/ShowChannelCommand.d.ts +11 -7
  209. package/dist-types/commands/UnmuteChannelCommand.d.ts +11 -7
  210. package/dist-types/commands/UnpinChannelCommand.d.ts +11 -7
  211. package/dist-types/commands/UnpinMessageCommand.d.ts +11 -7
  212. package/dist-types/commands/UpdateChannelCommand.d.ts +11 -7
  213. package/dist-types/commands/UpdateMessageCommand.d.ts +11 -7
  214. package/dist-types/commands/UploadFileCommand.d.ts +11 -7
  215. package/dist-types/commands/index.d.ts +0 -2
  216. package/dist-types/endpoint/EndpointParameters.d.ts +48 -0
  217. package/dist-types/endpoint/bdd.d.ts +2 -0
  218. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  219. package/dist-types/extensionConfiguration.d.ts +4 -3
  220. package/dist-types/index.d.ts +5 -1
  221. package/dist-types/models/StreamServiceServiceException.d.ts +1 -1
  222. package/dist-types/models/enums.d.ts +286 -0
  223. package/dist-types/models/errors.d.ts +189 -0
  224. package/dist-types/models/models_0.d.ts +69 -669
  225. package/dist-types/runtimeConfig.browser.d.ts +37 -18
  226. package/dist-types/runtimeConfig.d.ts +36 -17
  227. package/dist-types/runtimeConfig.native.d.ts +38 -19
  228. package/dist-types/runtimeConfig.shared.d.ts +20 -3
  229. package/dist-types/runtimeExtensions.d.ts +1 -1
  230. package/dist-types/schemas/schemas_0.d.ts +243 -0
  231. package/package.json +13 -39
  232. package/dist-cjs/commands/SearchChannelsCommand.js +0 -21
  233. package/dist-cjs/commands/SearchMessagesCommand.js +0 -21
  234. package/dist-cjs/models/index.js +0 -4
  235. package/dist-cjs/protocols/Aws_restJson1.js +0 -2463
  236. package/dist-es/commands/SearchChannelsCommand.js +0 -17
  237. package/dist-es/commands/SearchMessagesCommand.js +0 -17
  238. package/dist-es/models/index.js +0 -1
  239. package/dist-es/protocols/Aws_restJson1.js +0 -2338
  240. package/dist-types/commands/SearchChannelsCommand.d.ts +0 -160
  241. package/dist-types/commands/SearchMessagesCommand.d.ts +0 -204
  242. package/dist-types/models/index.d.ts +0 -1
  243. package/dist-types/protocols/Aws_restJson1.d.ts +0 -542
@@ -1,2463 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_SearchMessagesCommand = exports.se_SearchChannelsCommand = 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_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 = exports.se_SendTypingStartCommand = exports.se_SendSystemMessageCommand = 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_SearchMessagesCommand = exports.de_SearchChannelsCommand = exports.de_RenameSectionCommand = exports.de_RemoveChannelFromSectionCommand = exports.de_QueryChannelsCommand = exports.de_PinMessageCommand = exports.de_PinChannelCommand = void 0;
6
- const StreamServiceServiceException_1 = require("../models/StreamServiceServiceException");
7
- const models_0_1 = require("../models/models_0");
8
- const core_1 = require("@aws-sdk/core");
9
- const core_2 = require("@smithy/core");
10
- const smithy_client_1 = require("@smithy/smithy-client");
11
- const se_AddChannelMemberCommand = async (input, context) => {
12
- const b = (0, core_2.requestBuilder)(input, context);
13
- const headers = {
14
- 'content-type': 'application/json',
15
- };
16
- b.bp("/api/v1/channels/{channelId}/members");
17
- b.p('channelId', () => input.channelId, '{channelId}', false);
18
- const query = (0, smithy_client_1.map)({
19
- [_c]: [, input[_cI]],
20
- [_uI]: [, input[_uI]],
21
- });
22
- let body;
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")
30
- .h(headers)
31
- .q(query)
32
- .b(body);
33
- return b.build();
34
- };
35
- exports.se_AddChannelMemberCommand = se_AddChannelMemberCommand;
36
- const se_AddChannelMembersCommand = async (input, context) => {
37
- const b = (0, core_2.requestBuilder)(input, context);
38
- const headers = {
39
- 'content-type': 'application/json',
40
- };
41
- b.bp("/api/v1/channels/{channelId}/members");
42
- b.p('channelId', () => input.channelId, '{channelId}', false);
43
- const query = (0, smithy_client_1.map)({
44
- [_c]: [, input[_cI]],
45
- [_uI]: [, input[_uI]],
46
- });
47
- let body;
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")
56
- .h(headers)
57
- .q(query)
58
- .b(body);
59
- return b.build();
60
- };
61
- exports.se_AddChannelMembersCommand = se_AddChannelMembersCommand;
62
- const se_AssignChannelCommand = async (input, context) => {
63
- const b = (0, core_2.requestBuilder)(input, context);
64
- const headers = {
65
- 'content-type': 'application/json',
66
- };
67
- b.bp("/api/v1/channels/{channelId}/assign");
68
- b.p('channelId', () => input.channelId, '{channelId}', false);
69
- const query = (0, smithy_client_1.map)({
70
- [_c]: [, input[_cI]],
71
- [_uI]: [, input[_uI]],
72
- });
73
- let body;
74
- body = JSON.stringify((0, smithy_client_1.take)(input, {
75
- 'assignee': _ => (0, smithy_client_1._json)(_),
76
- 'service': _ => (0, smithy_client_1._json)(_),
77
- 'silent': [],
78
- 'variant': [],
79
- }));
80
- b.m("POST")
81
- .h(headers)
82
- .q(query)
83
- .b(body);
84
- return b.build();
85
- };
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) => {
176
- const b = (0, core_2.requestBuilder)(input, context);
177
- const headers = {};
178
- b.bp("/api/v1/channels/{channelId}");
179
- b.p('channelId', () => input.channelId, '{channelId}', false);
180
- const query = (0, smithy_client_1.map)({
181
- [_c]: [, input[_cI]],
182
- [_uI]: [, input[_uI]],
183
- });
184
- let body;
185
- b.m("DELETE")
186
- .h(headers)
187
- .q(query)
188
- .b(body);
189
- return b.build();
190
- };
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) => {
212
- const b = (0, core_2.requestBuilder)(input, context);
213
- const headers = {};
214
- b.bp("/api/v1/channels/{channelId}/messages/{messageId}");
215
- b.p('channelId', () => input.channelId, '{channelId}', false);
216
- b.p('messageId', () => input.messageId, '{messageId}', false);
217
- const query = (0, smithy_client_1.map)({
218
- [_c]: [, input[_cI]],
219
- [_uI]: [, input[_uI]],
220
- });
221
- let body;
222
- b.m("DELETE")
223
- .h(headers)
224
- .q(query)
225
- .b(body);
226
- return b.build();
227
- };
228
- exports.se_DeleteMessageCommand = se_DeleteMessageCommand;
229
- const se_DeleteMessageReactionCommand = async (input, context) => {
230
- const b = (0, core_2.requestBuilder)(input, context);
231
- const headers = {};
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);
236
- const query = (0, smithy_client_1.map)({
237
- [_c]: [, input[_cI]],
238
- [_uI]: [, input[_uI]],
239
- });
240
- let body;
241
- b.m("DELETE")
242
- .h(headers)
243
- .q(query)
244
- .b(body);
245
- return b.build();
246
- };
247
- exports.se_DeleteMessageReactionCommand = se_DeleteMessageReactionCommand;
248
- const se_DeleteSectionCommand = async (input, context) => {
249
- const b = (0, core_2.requestBuilder)(input, context);
250
- const headers = {};
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);
270
- const query = (0, smithy_client_1.map)({
271
- [_c]: [, input[_cI]],
272
- [_uI]: [, input[_uI]],
273
- });
274
- let body;
275
- b.m("GET")
276
- .h(headers)
277
- .q(query)
278
- .b(body);
279
- return b.build();
280
- };
281
- exports.se_GetChannelCommand = se_GetChannelCommand;
282
- const se_GetChannelMemberCommand = async (input, context) => {
283
- const b = (0, core_2.requestBuilder)(input, context);
284
- const headers = {};
285
- b.bp("/api/v1/channels/{channelId}/members/{memberId}");
286
- b.p('channelId', () => input.channelId, '{channelId}', false);
287
- b.p('memberId', () => input.memberId, '{memberId}', false);
288
- const query = (0, smithy_client_1.map)({
289
- [_c]: [, input[_cI]],
290
- [_uI]: [, input[_uI]],
291
- });
292
- let body;
293
- b.m("GET")
294
- .h(headers)
295
- .q(query)
296
- .b(body);
297
- return b.build();
298
- };
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) => {
323
- const b = (0, core_2.requestBuilder)(input, context);
324
- const headers = {};
325
- b.bp("/api/v1/channels/{channelId}/messages/{messageId}/files/{fsId}/download-url");
326
- b.p('channelId', () => input.channelId, '{channelId}', false);
327
- b.p('messageId', () => input.messageId, '{messageId}', false);
328
- b.p('fsId', () => input.fsId, '{fsId}', false);
329
- const query = (0, smithy_client_1.map)({
330
- [_c]: [, input[_cI]],
331
- [_uI]: [, input[_uI]],
332
- [_ca]: [, input[_ca]],
333
- [_d]: [() => input.download !== void 0, () => (input[_d].toString())],
334
- });
335
- let body;
336
- b.m("GET")
337
- .h(headers)
338
- .q(query)
339
- .b(body);
340
- return b.build();
341
- };
342
- exports.se_GetFilePresignedDownloadUrlCommand = se_GetFilePresignedDownloadUrlCommand;
343
- const se_GetInboxCommand = async (input, context) => {
344
- const b = (0, core_2.requestBuilder)(input, context);
345
- const headers = {};
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}");
363
- b.p('channelId', () => input.channelId, '{channelId}', false);
364
- b.p('messageId', () => input.messageId, '{messageId}', false);
365
- const query = (0, smithy_client_1.map)({
366
- [_c]: [, input[_cI]],
367
- [_uI]: [, input[_uI]],
368
- });
369
- let body;
370
- b.m("GET")
371
- .h(headers)
372
- .q(query)
373
- .b(body);
374
- return b.build();
375
- };
376
- exports.se_GetMessageCommand = se_GetMessageCommand;
377
- const se_GetOrCreateDirectChannelCommand = async (input, context) => {
378
- const b = (0, core_2.requestBuilder)(input, context);
379
- const headers = {
380
- 'content-type': 'application/json',
381
- };
382
- b.bp("/api/v1/channels/direct/get-or-create");
383
- const query = (0, smithy_client_1.map)({
384
- [_c]: [, input[_cI]],
385
- [_uI]: [, input[_uI]],
386
- });
387
- let body;
388
- body = JSON.stringify((0, smithy_client_1.take)(input, {
389
- 'memberId': [],
390
- 'memberToInvite': _ => (0, smithy_client_1._json)(_),
391
- }));
392
- b.m("POST")
393
- .h(headers)
394
- .q(query)
395
- .b(body);
396
- return b.build();
397
- };
398
- exports.se_GetOrCreateDirectChannelCommand = se_GetOrCreateDirectChannelCommand;
399
- const se_GetOrCreateSmsChannelCommand = async (input, context) => {
400
- const b = (0, core_2.requestBuilder)(input, context);
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");
476
- const query = (0, smithy_client_1.map)({
477
- [_c]: [, input[_cI]],
478
- [_uI]: [, input[_uI]],
479
- });
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
- });
872
- let body;
873
- b.m("POST")
874
- .h(headers)
875
- .q(query)
876
- .b(body);
877
- return b.build();
878
- };
879
- exports.se_PinChannelCommand = se_PinChannelCommand;
880
- const se_PinMessageCommand = async (input, context) => {
881
- const b = (0, core_2.requestBuilder)(input, context);
882
- const headers = {};
883
- b.bp("/api/v1/channels/{channelId}/messages/{messageId}/pin");
884
- b.p('channelId', () => input.channelId, '{channelId}', false);
885
- b.p('messageId', () => input.messageId, '{messageId}', false);
886
- const query = (0, smithy_client_1.map)({
887
- [_c]: [, input[_cI]],
888
- [_uI]: [, input[_uI]],
889
- });
890
- let body;
891
- b.m("PUT")
892
- .h(headers)
893
- .q(query)
894
- .b(body);
895
- return b.build();
896
- };
897
- exports.se_PinMessageCommand = se_PinMessageCommand;
898
- const se_QueryChannelsCommand = async (input, context) => {
899
- const b = (0, core_2.requestBuilder)(input, context);
900
- const headers = {
901
- 'content-type': 'application/json',
902
- };
903
- b.bp("/api/v1/channels/query");
904
- const query = (0, smithy_client_1.map)({
905
- [_c]: [, input[_cI]],
906
- [_uI]: [, input[_uI]],
907
- });
908
- let body;
909
- body = JSON.stringify((0, smithy_client_1.take)(input, {
910
- 'query': _ => (0, smithy_client_1._json)(_),
911
- }));
912
- b.m("POST")
913
- .h(headers)
914
- .q(query)
915
- .b(body);
916
- return b.build();
917
- };
918
- exports.se_QueryChannelsCommand = se_QueryChannelsCommand;
919
- const se_RemoveChannelFromSectionCommand = async (input, context) => {
920
- const b = (0, core_2.requestBuilder)(input, context);
921
- const headers = {};
922
- b.bp("/api/v1/channels/{channelId}/sections/{sectionId}");
923
- b.p('channelId', () => input.channelId, '{channelId}', false);
924
- b.p('sectionId', () => input.sectionId, '{sectionId}', false);
925
- const query = (0, smithy_client_1.map)({
926
- [_c]: [, input[_cI]],
927
- [_uI]: [, input[_uI]],
928
- });
929
- let body;
930
- b.m("DELETE")
931
- .h(headers)
932
- .q(query)
933
- .b(body);
934
- return b.build();
935
- };
936
- exports.se_RemoveChannelFromSectionCommand = se_RemoveChannelFromSectionCommand;
937
- const se_RenameSectionCommand = async (input, context) => {
938
- const b = (0, core_2.requestBuilder)(input, context);
939
- const headers = {
940
- 'content-type': 'application/json',
941
- };
942
- b.bp("/api/v1/sections/{sectionId}");
943
- b.p('sectionId', () => input.sectionId, '{sectionId}', false);
944
- const query = (0, smithy_client_1.map)({
945
- [_c]: [, input[_cI]],
946
- [_uI]: [, input[_uI]],
947
- });
948
- let body;
949
- body = JSON.stringify((0, smithy_client_1.take)(input, {
950
- 'name': [],
951
- }));
952
- b.m("PATCH")
953
- .h(headers)
954
- .q(query)
955
- .b(body);
956
- return b.build();
957
- };
958
- exports.se_RenameSectionCommand = se_RenameSectionCommand;
959
- const se_SearchChannelsCommand = async (input, context) => {
960
- const b = (0, core_2.requestBuilder)(input, context);
961
- const headers = {};
962
- b.bp("/api/v1/search/channels");
963
- const query = (0, smithy_client_1.map)({
964
- [_c]: [, input[_cI]],
965
- [_uI]: [, input[_uI]],
966
- [_q]: [, (0, smithy_client_1.expectNonNull)(input[_q], `q`)],
967
- [_si]: [() => input.size !== void 0, () => (input[_si].toString())],
968
- [_cu]: [, input[_cu]],
969
- });
970
- let body;
971
- b.m("GET")
972
- .h(headers)
973
- .q(query)
974
- .b(body);
975
- return b.build();
976
- };
977
- exports.se_SearchChannelsCommand = se_SearchChannelsCommand;
978
- const se_SearchMessagesCommand = async (input, context) => {
979
- const b = (0, core_2.requestBuilder)(input, context);
980
- const headers = {};
981
- b.bp("/api/v1/search/messages");
982
- const query = (0, smithy_client_1.map)({
983
- [_c]: [, input[_cI]],
984
- [_uI]: [, input[_uI]],
985
- [_q]: [, (0, smithy_client_1.expectNonNull)(input[_q], `q`)],
986
- [_cIh]: [, input[_cIh]],
987
- [_si]: [() => input.size !== void 0, () => (input[_si].toString())],
988
- [_cu]: [, input[_cu]],
989
- [_so]: [, input[_so]],
990
- });
991
- let body;
992
- b.m("GET")
993
- .h(headers)
994
- .q(query)
995
- .b(body);
996
- return b.build();
997
- };
998
- exports.se_SearchMessagesCommand = se_SearchMessagesCommand;
999
- const se_SendGiphyCommand = async (input, context) => {
1000
- const b = (0, core_2.requestBuilder)(input, context);
1001
- const headers = {
1002
- 'content-type': 'application/json',
1003
- };
1004
- b.bp("/api/v1/channels/{channelId}/giphys");
1005
- b.p('channelId', () => input.channelId, '{channelId}', false);
1006
- const query = (0, smithy_client_1.map)({
1007
- [_c]: [, input[_cI]],
1008
- [_uI]: [, input[_uI]],
1009
- });
1010
- let body;
1011
- body = JSON.stringify((0, smithy_client_1.take)(input, {
1012
- 'giphy': _ => (0, smithy_client_1._json)(_),
1013
- 'mentions': _ => (0, smithy_client_1._json)(_),
1014
- 'messageId': [],
1015
- 'quote': _ => (0, smithy_client_1._json)(_),
1016
- 'silent': [],
1017
- }));
1018
- b.m("POST")
1019
- .h(headers)
1020
- .q(query)
1021
- .b(body);
1022
- return b.build();
1023
- };
1024
- exports.se_SendGiphyCommand = se_SendGiphyCommand;
1025
- const se_SendMessageCommand = async (input, context) => {
1026
- const b = (0, core_2.requestBuilder)(input, context);
1027
- const headers = {
1028
- 'content-type': 'application/json',
1029
- };
1030
- b.bp("/api/v1/channels/{channelId}/messages");
1031
- b.p('channelId', () => input.channelId, '{channelId}', false);
1032
- const query = (0, smithy_client_1.map)({
1033
- [_c]: [, input[_cI]],
1034
- [_uI]: [, input[_uI]],
1035
- });
1036
- let body;
1037
- body = JSON.stringify((0, smithy_client_1.take)(input, {
1038
- 'attachments': _ => (0, smithy_client_1._json)(_),
1039
- 'elements': _ => (0, smithy_client_1._json)(_),
1040
- 'forward': _ => (0, smithy_client_1._json)(_),
1041
- 'markdown': [],
1042
- 'mentions': _ => (0, smithy_client_1._json)(_),
1043
- 'messageId': [],
1044
- 'messageType': [],
1045
- 'quote': _ => (0, smithy_client_1._json)(_),
1046
- 'silent': [],
1047
- 'sms': [],
1048
- 'smsStatus': [],
1049
- 'text': [],
1050
- 'whatsapp': [],
1051
- 'whatsappStatus': [],
1052
- }));
1053
- b.m("POST")
1054
- .h(headers)
1055
- .q(query)
1056
- .b(body);
1057
- return b.build();
1058
- };
1059
- exports.se_SendMessageCommand = se_SendMessageCommand;
1060
- const se_SendMessageReactionCommand = async (input, context) => {
1061
- const b = (0, core_2.requestBuilder)(input, context);
1062
- const headers = {};
1063
- b.bp("/api/v1/channels/{channelId}/messages/{messageId}/reactions/{type}");
1064
- b.p('channelId', () => input.channelId, '{channelId}', false);
1065
- b.p('messageId', () => input.messageId, '{messageId}', false);
1066
- b.p('type', () => input.type, '{type}', false);
1067
- const query = (0, smithy_client_1.map)({
1068
- [_c]: [, input[_cI]],
1069
- [_uI]: [, input[_uI]],
1070
- });
1071
- let body;
1072
- b.m("PUT")
1073
- .h(headers)
1074
- .q(query)
1075
- .b(body);
1076
- return b.build();
1077
- };
1078
- exports.se_SendMessageReactionCommand = se_SendMessageReactionCommand;
1079
- const se_SendSystemMessageCommand = async (input, context) => {
1080
- const b = (0, core_2.requestBuilder)(input, context);
1081
- const headers = {
1082
- 'content-type': 'application/json',
1083
- };
1084
- b.bp("/api/v1/channels/{channelId}/system-messages");
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
- body = JSON.stringify((0, smithy_client_1.take)(input, {
1092
- 'event': [],
1093
- 'message': _ => (0, smithy_client_1._json)(_),
1094
- 'silent': [],
1095
- }));
1096
- b.m("POST")
1097
- .h(headers)
1098
- .q(query)
1099
- .b(body);
1100
- return b.build();
1101
- };
1102
- exports.se_SendSystemMessageCommand = se_SendSystemMessageCommand;
1103
- const se_SendTypingStartCommand = async (input, context) => {
1104
- const b = (0, core_2.requestBuilder)(input, context);
1105
- const headers = {};
1106
- b.bp("/api/v1/channels/{channelId}/typing/start");
1107
- b.p('channelId', () => input.channelId, '{channelId}', false);
1108
- const query = (0, smithy_client_1.map)({
1109
- [_c]: [, input[_cI]],
1110
- [_uI]: [, input[_uI]],
1111
- });
1112
- let body;
1113
- b.m("POST")
1114
- .h(headers)
1115
- .q(query)
1116
- .b(body);
1117
- return b.build();
1118
- };
1119
- exports.se_SendTypingStartCommand = se_SendTypingStartCommand;
1120
- const se_SendTypingStopCommand = async (input, context) => {
1121
- const b = (0, core_2.requestBuilder)(input, context);
1122
- const headers = {};
1123
- b.bp("/api/v1/channels/{channelId}/typing/stop");
1124
- b.p('channelId', () => input.channelId, '{channelId}', false);
1125
- const query = (0, smithy_client_1.map)({
1126
- [_c]: [, input[_cI]],
1127
- [_uI]: [, input[_uI]],
1128
- });
1129
- let body;
1130
- b.m("POST")
1131
- .h(headers)
1132
- .q(query)
1133
- .b(body);
1134
- return b.build();
1135
- };
1136
- exports.se_SendTypingStopCommand = se_SendTypingStopCommand;
1137
- const se_ShowChannelCommand = async (input, context) => {
1138
- const b = (0, core_2.requestBuilder)(input, context);
1139
- const headers = {};
1140
- b.bp("/api/v1/channels/{channelId}/show");
1141
- b.p('channelId', () => input.channelId, '{channelId}', false);
1142
- const query = (0, smithy_client_1.map)({
1143
- [_c]: [, input[_cI]],
1144
- [_uI]: [, input[_uI]],
1145
- });
1146
- let body;
1147
- b.m("POST")
1148
- .h(headers)
1149
- .q(query)
1150
- .b(body);
1151
- return b.build();
1152
- };
1153
- exports.se_ShowChannelCommand = se_ShowChannelCommand;
1154
- const se_UnmuteChannelCommand = async (input, context) => {
1155
- const b = (0, core_2.requestBuilder)(input, context);
1156
- const headers = {};
1157
- b.bp("/api/v1/channels/{channelId}/mute");
1158
- b.p('channelId', () => input.channelId, '{channelId}', false);
1159
- const query = (0, smithy_client_1.map)({
1160
- [_c]: [, input[_cI]],
1161
- [_uI]: [, input[_uI]],
1162
- });
1163
- let body;
1164
- b.m("DELETE")
1165
- .h(headers)
1166
- .q(query)
1167
- .b(body);
1168
- return b.build();
1169
- };
1170
- exports.se_UnmuteChannelCommand = se_UnmuteChannelCommand;
1171
- const se_UnpinChannelCommand = async (input, context) => {
1172
- const b = (0, core_2.requestBuilder)(input, context);
1173
- const headers = {};
1174
- b.bp("/api/v1/channels/{channelId}/pin");
1175
- b.p('channelId', () => input.channelId, '{channelId}', false);
1176
- const query = (0, smithy_client_1.map)({
1177
- [_c]: [, input[_cI]],
1178
- [_uI]: [, input[_uI]],
1179
- });
1180
- let body;
1181
- b.m("DELETE")
1182
- .h(headers)
1183
- .q(query)
1184
- .b(body);
1185
- return b.build();
1186
- };
1187
- exports.se_UnpinChannelCommand = se_UnpinChannelCommand;
1188
- const se_UnpinMessageCommand = async (input, context) => {
1189
- const b = (0, core_2.requestBuilder)(input, context);
1190
- const headers = {};
1191
- b.bp("/api/v1/channels/{channelId}/messages/{messageId}/pin");
1192
- b.p('channelId', () => input.channelId, '{channelId}', false);
1193
- b.p('messageId', () => input.messageId, '{messageId}', false);
1194
- const query = (0, smithy_client_1.map)({
1195
- [_c]: [, input[_cI]],
1196
- [_uI]: [, input[_uI]],
1197
- });
1198
- let body;
1199
- b.m("DELETE")
1200
- .h(headers)
1201
- .q(query)
1202
- .b(body);
1203
- return b.build();
1204
- };
1205
- exports.se_UnpinMessageCommand = se_UnpinMessageCommand;
1206
- const se_UpdateChannelCommand = 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}");
1212
- b.p('channelId', () => input.channelId, '{channelId}', false);
1213
- const query = (0, smithy_client_1.map)({
1214
- [_c]: [, input[_cI]],
1215
- [_uI]: [, input[_uI]],
1216
- });
1217
- let body;
1218
- body = JSON.stringify((0, smithy_client_1.take)(input, {
1219
- 'access': [],
1220
- 'assigneeId': [],
1221
- 'autoRecord': [],
1222
- 'broadcast': [],
1223
- 'context': _ => (0, smithy_client_1._json)(_),
1224
- 'description': [],
1225
- 'kiteAssign': [],
1226
- 'mms': [],
1227
- 'picture': [],
1228
- 'pictureColor': [],
1229
- 'serviceTitle': [],
1230
- 'silent': [],
1231
- 'sms': [],
1232
- 'subject': [],
1233
- 'transcriptionLanguage': [],
1234
- 'whatsapp': [],
1235
- 'whatsappStatus': [],
1236
- 'wizyGuestViewOnly': [],
1237
- }));
1238
- b.m("PUT")
1239
- .h(headers)
1240
- .q(query)
1241
- .b(body);
1242
- return b.build();
1243
- };
1244
- exports.se_UpdateChannelCommand = se_UpdateChannelCommand;
1245
- const se_UpdateMessageCommand = async (input, context) => {
1246
- const b = (0, core_2.requestBuilder)(input, context);
1247
- const headers = {
1248
- 'content-type': 'application/json',
1249
- };
1250
- b.bp("/api/v1/channels/{channelId}/messages/{messageId}");
1251
- b.p('channelId', () => input.channelId, '{channelId}', false);
1252
- b.p('messageId', () => input.messageId, '{messageId}', false);
1253
- const query = (0, smithy_client_1.map)({
1254
- [_c]: [, input[_cI]],
1255
- [_uI]: [, input[_uI]],
1256
- });
1257
- let body;
1258
- body = JSON.stringify((0, smithy_client_1.take)(input, {
1259
- 'attachments': _ => (0, smithy_client_1._json)(_),
1260
- 'elements': _ => (0, smithy_client_1._json)(_),
1261
- 'forward': _ => (0, smithy_client_1._json)(_),
1262
- 'markdown': [],
1263
- 'mentions': _ => (0, smithy_client_1._json)(_),
1264
- 'quote': _ => (0, smithy_client_1._json)(_),
1265
- 'silent': [],
1266
- 'sms': [],
1267
- 'smsStatus': [],
1268
- 'text': [],
1269
- 'whatsapp': [],
1270
- 'whatsappStatus': [],
1271
- }));
1272
- b.m("PUT")
1273
- .h(headers)
1274
- .q(query)
1275
- .b(body);
1276
- return b.build();
1277
- };
1278
- exports.se_UpdateMessageCommand = se_UpdateMessageCommand;
1279
- const se_UploadFileCommand = async (input, context) => {
1280
- const b = (0, core_2.requestBuilder)(input, context);
1281
- const headers = {
1282
- 'content-type': 'application/json',
1283
- };
1284
- b.bp("/api/v1/channels/{channelId}/files");
1285
- b.p('channelId', () => input.channelId, '{channelId}', false);
1286
- const query = (0, smithy_client_1.map)({
1287
- [_c]: [, input[_cI]],
1288
- [_uI]: [, input[_uI]],
1289
- });
1290
- let body;
1291
- body = JSON.stringify((0, smithy_client_1.take)(input, {
1292
- 'name': [],
1293
- 'options': _ => (0, smithy_client_1._json)(_),
1294
- }));
1295
- b.m("POST")
1296
- .h(headers)
1297
- .q(query)
1298
- .b(body);
1299
- return b.build();
1300
- };
1301
- exports.se_UploadFileCommand = se_UploadFileCommand;
1302
- const de_AddChannelMemberCommand = async (output, context) => {
1303
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1304
- return de_CommandError(output, context);
1305
- }
1306
- const contents = (0, smithy_client_1.map)({
1307
- $metadata: deserializeMetadata(output),
1308
- });
1309
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1310
- const doc = (0, smithy_client_1.take)(data, {
1311
- 'member': smithy_client_1._json,
1312
- });
1313
- Object.assign(contents, doc);
1314
- return contents;
1315
- };
1316
- exports.de_AddChannelMemberCommand = de_AddChannelMemberCommand;
1317
- const de_AddChannelMembersCommand = async (output, context) => {
1318
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1319
- return de_CommandError(output, context);
1320
- }
1321
- const contents = (0, smithy_client_1.map)({
1322
- $metadata: deserializeMetadata(output),
1323
- });
1324
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1325
- const doc = (0, smithy_client_1.take)(data, {
1326
- 'members': smithy_client_1._json,
1327
- });
1328
- Object.assign(contents, doc);
1329
- return contents;
1330
- };
1331
- exports.de_AddChannelMembersCommand = de_AddChannelMembersCommand;
1332
- const de_AssignChannelCommand = async (output, context) => {
1333
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1334
- return de_CommandError(output, context);
1335
- }
1336
- const contents = (0, smithy_client_1.map)({
1337
- $metadata: deserializeMetadata(output),
1338
- });
1339
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1340
- const doc = (0, smithy_client_1.take)(data, {
1341
- 'assigneeId': smithy_client_1.expectString,
1342
- 'serviceUri': smithy_client_1.expectString,
1343
- });
1344
- Object.assign(contents, doc);
1345
- return contents;
1346
- };
1347
- exports.de_AssignChannelCommand = de_AssignChannelCommand;
1348
- const de_CreateGroupChannelCommand = async (output, context) => {
1349
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1350
- return de_CommandError(output, context);
1351
- }
1352
- const contents = (0, smithy_client_1.map)({
1353
- $metadata: deserializeMetadata(output),
1354
- });
1355
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1356
- const doc = (0, smithy_client_1.take)(data, {
1357
- 'channel': smithy_client_1._json,
1358
- });
1359
- Object.assign(contents, doc);
1360
- return contents;
1361
- };
1362
- exports.de_CreateGroupChannelCommand = de_CreateGroupChannelCommand;
1363
- const de_CreateKiteChannelCommand = async (output, context) => {
1364
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1365
- return de_CommandError(output, context);
1366
- }
1367
- const contents = (0, smithy_client_1.map)({
1368
- $metadata: deserializeMetadata(output),
1369
- });
1370
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1371
- const doc = (0, smithy_client_1.take)(data, {
1372
- 'channel': smithy_client_1._json,
1373
- });
1374
- Object.assign(contents, doc);
1375
- return contents;
1376
- };
1377
- exports.de_CreateKiteChannelCommand = de_CreateKiteChannelCommand;
1378
- const de_CreateSectionCommand = async (output, context) => {
1379
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1380
- return de_CommandError(output, context);
1381
- }
1382
- const contents = (0, smithy_client_1.map)({
1383
- $metadata: deserializeMetadata(output),
1384
- });
1385
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1386
- const doc = (0, smithy_client_1.take)(data, {
1387
- 'section': smithy_client_1._json,
1388
- });
1389
- Object.assign(contents, doc);
1390
- return contents;
1391
- };
1392
- exports.de_CreateSectionCommand = de_CreateSectionCommand;
1393
- const de_DeleteChannelCommand = async (output, context) => {
1394
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1395
- return de_CommandError(output, context);
1396
- }
1397
- const contents = (0, smithy_client_1.map)({
1398
- $metadata: deserializeMetadata(output),
1399
- });
1400
- await (0, smithy_client_1.collectBody)(output.body, context);
1401
- return contents;
1402
- };
1403
- exports.de_DeleteChannelCommand = de_DeleteChannelCommand;
1404
- const de_DeleteChannelMemberCommand = async (output, context) => {
1405
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1406
- return de_CommandError(output, context);
1407
- }
1408
- const contents = (0, smithy_client_1.map)({
1409
- $metadata: deserializeMetadata(output),
1410
- });
1411
- await (0, smithy_client_1.collectBody)(output.body, context);
1412
- return contents;
1413
- };
1414
- exports.de_DeleteChannelMemberCommand = de_DeleteChannelMemberCommand;
1415
- const de_DeleteMessageCommand = async (output, context) => {
1416
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1417
- return de_CommandError(output, context);
1418
- }
1419
- const contents = (0, smithy_client_1.map)({
1420
- $metadata: deserializeMetadata(output),
1421
- });
1422
- await (0, smithy_client_1.collectBody)(output.body, context);
1423
- return contents;
1424
- };
1425
- exports.de_DeleteMessageCommand = de_DeleteMessageCommand;
1426
- const de_DeleteMessageReactionCommand = async (output, context) => {
1427
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1428
- return de_CommandError(output, context);
1429
- }
1430
- const contents = (0, smithy_client_1.map)({
1431
- $metadata: deserializeMetadata(output),
1432
- });
1433
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1434
- const doc = (0, smithy_client_1.take)(data, {
1435
- 'message': smithy_client_1._json,
1436
- });
1437
- Object.assign(contents, doc);
1438
- return contents;
1439
- };
1440
- exports.de_DeleteMessageReactionCommand = de_DeleteMessageReactionCommand;
1441
- const de_DeleteSectionCommand = async (output, context) => {
1442
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1443
- return de_CommandError(output, context);
1444
- }
1445
- const contents = (0, smithy_client_1.map)({
1446
- $metadata: deserializeMetadata(output),
1447
- });
1448
- await (0, smithy_client_1.collectBody)(output.body, context);
1449
- return contents;
1450
- };
1451
- exports.de_DeleteSectionCommand = de_DeleteSectionCommand;
1452
- const de_GetChannelCommand = async (output, context) => {
1453
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1454
- return de_CommandError(output, context);
1455
- }
1456
- const contents = (0, smithy_client_1.map)({
1457
- $metadata: deserializeMetadata(output),
1458
- });
1459
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1460
- const doc = (0, smithy_client_1.take)(data, {
1461
- 'channel': smithy_client_1._json,
1462
- });
1463
- Object.assign(contents, doc);
1464
- return contents;
1465
- };
1466
- exports.de_GetChannelCommand = de_GetChannelCommand;
1467
- const de_GetChannelMemberCommand = async (output, context) => {
1468
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1469
- return de_CommandError(output, context);
1470
- }
1471
- const contents = (0, smithy_client_1.map)({
1472
- $metadata: deserializeMetadata(output),
1473
- });
1474
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1475
- const doc = (0, smithy_client_1.take)(data, {
1476
- 'member': smithy_client_1._json,
1477
- });
1478
- Object.assign(contents, doc);
1479
- return contents;
1480
- };
1481
- exports.de_GetChannelMemberCommand = de_GetChannelMemberCommand;
1482
- const de_GetDirectChannelIdCommand = async (output, context) => {
1483
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1484
- return de_CommandError(output, context);
1485
- }
1486
- const contents = (0, smithy_client_1.map)({
1487
- $metadata: deserializeMetadata(output),
1488
- });
1489
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1490
- const doc = (0, smithy_client_1.take)(data, {
1491
- 'channelId': smithy_client_1.expectString,
1492
- });
1493
- Object.assign(contents, doc);
1494
- return contents;
1495
- };
1496
- exports.de_GetDirectChannelIdCommand = de_GetDirectChannelIdCommand;
1497
- const de_GetFilePresignedDownloadUrlCommand = async (output, context) => {
1498
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1499
- return de_CommandError(output, context);
1500
- }
1501
- const contents = (0, smithy_client_1.map)({
1502
- $metadata: deserializeMetadata(output),
1503
- });
1504
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1505
- const doc = (0, smithy_client_1.take)(data, {
1506
- 'presignedDownloadUrl': smithy_client_1.expectString,
1507
- });
1508
- Object.assign(contents, doc);
1509
- return contents;
1510
- };
1511
- exports.de_GetFilePresignedDownloadUrlCommand = de_GetFilePresignedDownloadUrlCommand;
1512
- const de_GetInboxCommand = async (output, context) => {
1513
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1514
- return de_CommandError(output, context);
1515
- }
1516
- const contents = (0, smithy_client_1.map)({
1517
- $metadata: deserializeMetadata(output),
1518
- });
1519
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1520
- const doc = (0, smithy_client_1.take)(data, {
1521
- 'channels': smithy_client_1._json,
1522
- 'sections': smithy_client_1._json,
1523
- });
1524
- Object.assign(contents, doc);
1525
- return contents;
1526
- };
1527
- exports.de_GetInboxCommand = de_GetInboxCommand;
1528
- const de_GetMessageCommand = async (output, context) => {
1529
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1530
- return de_CommandError(output, context);
1531
- }
1532
- const contents = (0, smithy_client_1.map)({
1533
- $metadata: deserializeMetadata(output),
1534
- });
1535
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1536
- const doc = (0, smithy_client_1.take)(data, {
1537
- 'message': smithy_client_1._json,
1538
- });
1539
- Object.assign(contents, doc);
1540
- return contents;
1541
- };
1542
- exports.de_GetMessageCommand = de_GetMessageCommand;
1543
- const de_GetOrCreateDirectChannelCommand = async (output, context) => {
1544
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1545
- return de_CommandError(output, context);
1546
- }
1547
- const contents = (0, smithy_client_1.map)({
1548
- $metadata: deserializeMetadata(output),
1549
- });
1550
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1551
- const doc = (0, smithy_client_1.take)(data, {
1552
- 'channel': smithy_client_1._json,
1553
- });
1554
- Object.assign(contents, doc);
1555
- return contents;
1556
- };
1557
- exports.de_GetOrCreateDirectChannelCommand = de_GetOrCreateDirectChannelCommand;
1558
- const de_GetOrCreateSmsChannelCommand = async (output, context) => {
1559
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1560
- return de_CommandError(output, context);
1561
- }
1562
- const contents = (0, smithy_client_1.map)({
1563
- $metadata: deserializeMetadata(output),
1564
- });
1565
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1566
- const doc = (0, smithy_client_1.take)(data, {
1567
- 'channel': smithy_client_1._json,
1568
- });
1569
- Object.assign(contents, doc);
1570
- return contents;
1571
- };
1572
- exports.de_GetOrCreateSmsChannelCommand = de_GetOrCreateSmsChannelCommand;
1573
- const de_GetOrCreateTelephonyChannelCommand = async (output, context) => {
1574
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1575
- return de_CommandError(output, context);
1576
- }
1577
- const contents = (0, smithy_client_1.map)({
1578
- $metadata: deserializeMetadata(output),
1579
- });
1580
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1581
- const doc = (0, smithy_client_1.take)(data, {
1582
- 'channel': smithy_client_1._json,
1583
- });
1584
- Object.assign(contents, doc);
1585
- return contents;
1586
- };
1587
- exports.de_GetOrCreateTelephonyChannelCommand = de_GetOrCreateTelephonyChannelCommand;
1588
- const de_GetOrCreateWhatsAppChannelCommand = async (output, context) => {
1589
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1590
- return de_CommandError(output, context);
1591
- }
1592
- const contents = (0, smithy_client_1.map)({
1593
- $metadata: deserializeMetadata(output),
1594
- });
1595
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1596
- const doc = (0, smithy_client_1.take)(data, {
1597
- 'channel': smithy_client_1._json,
1598
- });
1599
- Object.assign(contents, doc);
1600
- return contents;
1601
- };
1602
- exports.de_GetOrCreateWhatsAppChannelCommand = de_GetOrCreateWhatsAppChannelCommand;
1603
- const de_GetSmsChannelIdCommand = async (output, context) => {
1604
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1605
- return de_CommandError(output, context);
1606
- }
1607
- const contents = (0, smithy_client_1.map)({
1608
- $metadata: deserializeMetadata(output),
1609
- });
1610
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1611
- const doc = (0, smithy_client_1.take)(data, {
1612
- 'channelId': smithy_client_1.expectString,
1613
- });
1614
- Object.assign(contents, doc);
1615
- return contents;
1616
- };
1617
- exports.de_GetSmsChannelIdCommand = de_GetSmsChannelIdCommand;
1618
- const de_GetTelephonyChannelIdCommand = async (output, context) => {
1619
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1620
- return de_CommandError(output, context);
1621
- }
1622
- const contents = (0, smithy_client_1.map)({
1623
- $metadata: deserializeMetadata(output),
1624
- });
1625
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1626
- const doc = (0, smithy_client_1.take)(data, {
1627
- 'channelId': smithy_client_1.expectString,
1628
- });
1629
- Object.assign(contents, doc);
1630
- return contents;
1631
- };
1632
- exports.de_GetTelephonyChannelIdCommand = de_GetTelephonyChannelIdCommand;
1633
- const de_GetTokenCommand = async (output, context) => {
1634
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1635
- return de_CommandError(output, context);
1636
- }
1637
- const contents = (0, smithy_client_1.map)({
1638
- $metadata: deserializeMetadata(output),
1639
- });
1640
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1641
- const doc = (0, smithy_client_1.take)(data, {
1642
- 'expires': smithy_client_1.expectLong,
1643
- 'token': smithy_client_1.expectString,
1644
- });
1645
- Object.assign(contents, doc);
1646
- return contents;
1647
- };
1648
- exports.de_GetTokenCommand = de_GetTokenCommand;
1649
- const de_GetUploadedFileInfoCommand = async (output, context) => {
1650
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1651
- return de_CommandError(output, context);
1652
- }
1653
- const contents = (0, smithy_client_1.map)({
1654
- $metadata: deserializeMetadata(output),
1655
- });
1656
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1657
- const doc = (0, smithy_client_1.take)(data, {
1658
- 'file': smithy_client_1._json,
1659
- });
1660
- Object.assign(contents, doc);
1661
- return contents;
1662
- };
1663
- exports.de_GetUploadedFileInfoCommand = de_GetUploadedFileInfoCommand;
1664
- const de_GetWhatsAppChannelIdCommand = async (output, context) => {
1665
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1666
- return de_CommandError(output, context);
1667
- }
1668
- const contents = (0, smithy_client_1.map)({
1669
- $metadata: deserializeMetadata(output),
1670
- });
1671
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1672
- const doc = (0, smithy_client_1.take)(data, {
1673
- 'channelId': smithy_client_1.expectString,
1674
- });
1675
- Object.assign(contents, doc);
1676
- return contents;
1677
- };
1678
- exports.de_GetWhatsAppChannelIdCommand = de_GetWhatsAppChannelIdCommand;
1679
- const de_HideChannelCommand = async (output, context) => {
1680
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1681
- return de_CommandError(output, context);
1682
- }
1683
- const contents = (0, smithy_client_1.map)({
1684
- $metadata: deserializeMetadata(output),
1685
- });
1686
- await (0, smithy_client_1.collectBody)(output.body, context);
1687
- return contents;
1688
- };
1689
- exports.de_HideChannelCommand = de_HideChannelCommand;
1690
- const de_JoinChannelCommand = async (output, context) => {
1691
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1692
- return de_CommandError(output, context);
1693
- }
1694
- const contents = (0, smithy_client_1.map)({
1695
- $metadata: deserializeMetadata(output),
1696
- });
1697
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1698
- const doc = (0, smithy_client_1.take)(data, {
1699
- 'channel': smithy_client_1._json,
1700
- });
1701
- Object.assign(contents, doc);
1702
- return contents;
1703
- };
1704
- exports.de_JoinChannelCommand = de_JoinChannelCommand;
1705
- const de_LeaveChannelCommand = async (output, context) => {
1706
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1707
- return de_CommandError(output, context);
1708
- }
1709
- const contents = (0, smithy_client_1.map)({
1710
- $metadata: deserializeMetadata(output),
1711
- });
1712
- await (0, smithy_client_1.collectBody)(output.body, context);
1713
- return contents;
1714
- };
1715
- exports.de_LeaveChannelCommand = de_LeaveChannelCommand;
1716
- const de_ListChannelMembersCommand = async (output, context) => {
1717
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1718
- return de_CommandError(output, context);
1719
- }
1720
- const contents = (0, smithy_client_1.map)({
1721
- $metadata: deserializeMetadata(output),
1722
- });
1723
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1724
- const doc = (0, smithy_client_1.take)(data, {
1725
- 'members': smithy_client_1._json,
1726
- });
1727
- Object.assign(contents, doc);
1728
- return contents;
1729
- };
1730
- exports.de_ListChannelMembersCommand = de_ListChannelMembersCommand;
1731
- const de_ListChannelMembersReadStatusCommand = async (output, context) => {
1732
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1733
- return de_CommandError(output, context);
1734
- }
1735
- const contents = (0, smithy_client_1.map)({
1736
- $metadata: deserializeMetadata(output),
1737
- });
1738
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1739
- const doc = (0, smithy_client_1.take)(data, {
1740
- 'members': smithy_client_1._json,
1741
- });
1742
- Object.assign(contents, doc);
1743
- return contents;
1744
- };
1745
- exports.de_ListChannelMembersReadStatusCommand = de_ListChannelMembersReadStatusCommand;
1746
- const de_ListChannelsCommand = async (output, context) => {
1747
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1748
- return de_CommandError(output, context);
1749
- }
1750
- const contents = (0, smithy_client_1.map)({
1751
- $metadata: deserializeMetadata(output),
1752
- });
1753
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1754
- const doc = (0, smithy_client_1.take)(data, {
1755
- 'channels': smithy_client_1._json,
1756
- 'nextCursor': smithy_client_1.expectString,
1757
- });
1758
- Object.assign(contents, doc);
1759
- return contents;
1760
- };
1761
- exports.de_ListChannelsCommand = de_ListChannelsCommand;
1762
- const de_ListMentionsCommand = async (output, context) => {
1763
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1764
- return de_CommandError(output, context);
1765
- }
1766
- const contents = (0, smithy_client_1.map)({
1767
- $metadata: deserializeMetadata(output),
1768
- });
1769
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1770
- const doc = (0, smithy_client_1.take)(data, {
1771
- 'mentions': smithy_client_1._json,
1772
- 'nextCursor': smithy_client_1.expectString,
1773
- });
1774
- Object.assign(contents, doc);
1775
- return contents;
1776
- };
1777
- exports.de_ListMentionsCommand = de_ListMentionsCommand;
1778
- const de_ListMessagesCommand = async (output, context) => {
1779
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1780
- return de_CommandError(output, context);
1781
- }
1782
- const contents = (0, smithy_client_1.map)({
1783
- $metadata: deserializeMetadata(output),
1784
- });
1785
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1786
- const doc = (0, smithy_client_1.take)(data, {
1787
- 'messages': smithy_client_1._json,
1788
- });
1789
- Object.assign(contents, doc);
1790
- return contents;
1791
- };
1792
- exports.de_ListMessagesCommand = de_ListMessagesCommand;
1793
- const de_MarkReadCommand = async (output, context) => {
1794
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1795
- return de_CommandError(output, context);
1796
- }
1797
- const contents = (0, smithy_client_1.map)({
1798
- $metadata: deserializeMetadata(output),
1799
- });
1800
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1801
- const doc = (0, smithy_client_1.take)(data, {
1802
- 'inbox': smithy_client_1._json,
1803
- });
1804
- Object.assign(contents, doc);
1805
- return contents;
1806
- };
1807
- exports.de_MarkReadCommand = de_MarkReadCommand;
1808
- const de_MarkUnreadCommand = async (output, context) => {
1809
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1810
- return de_CommandError(output, context);
1811
- }
1812
- const contents = (0, smithy_client_1.map)({
1813
- $metadata: deserializeMetadata(output),
1814
- });
1815
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1816
- const doc = (0, smithy_client_1.take)(data, {
1817
- 'inbox': smithy_client_1._json,
1818
- });
1819
- Object.assign(contents, doc);
1820
- return contents;
1821
- };
1822
- exports.de_MarkUnreadCommand = de_MarkUnreadCommand;
1823
- const de_MoveChannelToSectionCommand = async (output, context) => {
1824
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1825
- return de_CommandError(output, context);
1826
- }
1827
- const contents = (0, smithy_client_1.map)({
1828
- $metadata: deserializeMetadata(output),
1829
- });
1830
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1831
- const doc = (0, smithy_client_1.take)(data, {
1832
- 'inbox': smithy_client_1._json,
1833
- });
1834
- Object.assign(contents, doc);
1835
- return contents;
1836
- };
1837
- exports.de_MoveChannelToSectionCommand = de_MoveChannelToSectionCommand;
1838
- const de_MuteChannelCommand = async (output, context) => {
1839
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1840
- return de_CommandError(output, context);
1841
- }
1842
- const contents = (0, smithy_client_1.map)({
1843
- $metadata: deserializeMetadata(output),
1844
- });
1845
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1846
- const doc = (0, smithy_client_1.take)(data, {
1847
- 'inbox': smithy_client_1._json,
1848
- });
1849
- Object.assign(contents, doc);
1850
- return contents;
1851
- };
1852
- exports.de_MuteChannelCommand = de_MuteChannelCommand;
1853
- const de_PartialUpdateChannelCommand = async (output, context) => {
1854
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1855
- return de_CommandError(output, context);
1856
- }
1857
- const contents = (0, smithy_client_1.map)({
1858
- $metadata: deserializeMetadata(output),
1859
- });
1860
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1861
- const doc = (0, smithy_client_1.take)(data, {
1862
- 'channel': smithy_client_1._json,
1863
- });
1864
- Object.assign(contents, doc);
1865
- return contents;
1866
- };
1867
- exports.de_PartialUpdateChannelCommand = de_PartialUpdateChannelCommand;
1868
- const de_PartialUpdateMessageCommand = async (output, context) => {
1869
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1870
- return de_CommandError(output, context);
1871
- }
1872
- const contents = (0, smithy_client_1.map)({
1873
- $metadata: deserializeMetadata(output),
1874
- });
1875
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1876
- const doc = (0, smithy_client_1.take)(data, {
1877
- 'message': smithy_client_1._json,
1878
- });
1879
- Object.assign(contents, doc);
1880
- return contents;
1881
- };
1882
- exports.de_PartialUpdateMessageCommand = de_PartialUpdateMessageCommand;
1883
- const de_PinChannelCommand = async (output, context) => {
1884
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1885
- return de_CommandError(output, context);
1886
- }
1887
- const contents = (0, smithy_client_1.map)({
1888
- $metadata: deserializeMetadata(output),
1889
- });
1890
- await (0, smithy_client_1.collectBody)(output.body, context);
1891
- return contents;
1892
- };
1893
- exports.de_PinChannelCommand = de_PinChannelCommand;
1894
- const de_PinMessageCommand = async (output, context) => {
1895
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1896
- return de_CommandError(output, context);
1897
- }
1898
- const contents = (0, smithy_client_1.map)({
1899
- $metadata: deserializeMetadata(output),
1900
- });
1901
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1902
- const doc = (0, smithy_client_1.take)(data, {
1903
- 'message': smithy_client_1._json,
1904
- });
1905
- Object.assign(contents, doc);
1906
- return contents;
1907
- };
1908
- exports.de_PinMessageCommand = de_PinMessageCommand;
1909
- const de_QueryChannelsCommand = async (output, context) => {
1910
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1911
- return de_CommandError(output, context);
1912
- }
1913
- const contents = (0, smithy_client_1.map)({
1914
- $metadata: deserializeMetadata(output),
1915
- });
1916
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1917
- const doc = (0, smithy_client_1.take)(data, {
1918
- 'channels': smithy_client_1._json,
1919
- });
1920
- Object.assign(contents, doc);
1921
- return contents;
1922
- };
1923
- exports.de_QueryChannelsCommand = de_QueryChannelsCommand;
1924
- const de_RemoveChannelFromSectionCommand = async (output, context) => {
1925
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1926
- return de_CommandError(output, context);
1927
- }
1928
- const contents = (0, smithy_client_1.map)({
1929
- $metadata: deserializeMetadata(output),
1930
- });
1931
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1932
- const doc = (0, smithy_client_1.take)(data, {
1933
- 'inbox': smithy_client_1._json,
1934
- });
1935
- Object.assign(contents, doc);
1936
- return contents;
1937
- };
1938
- exports.de_RemoveChannelFromSectionCommand = de_RemoveChannelFromSectionCommand;
1939
- const de_RenameSectionCommand = async (output, context) => {
1940
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1941
- return de_CommandError(output, context);
1942
- }
1943
- const contents = (0, smithy_client_1.map)({
1944
- $metadata: deserializeMetadata(output),
1945
- });
1946
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1947
- const doc = (0, smithy_client_1.take)(data, {
1948
- 'section': smithy_client_1._json,
1949
- });
1950
- Object.assign(contents, doc);
1951
- return contents;
1952
- };
1953
- exports.de_RenameSectionCommand = de_RenameSectionCommand;
1954
- const de_SearchChannelsCommand = async (output, context) => {
1955
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1956
- return de_CommandError(output, context);
1957
- }
1958
- const contents = (0, smithy_client_1.map)({
1959
- $metadata: deserializeMetadata(output),
1960
- });
1961
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1962
- const doc = (0, smithy_client_1.take)(data, {
1963
- 'nextCursor': smithy_client_1.expectString,
1964
- 'results': smithy_client_1._json,
1965
- });
1966
- Object.assign(contents, doc);
1967
- return contents;
1968
- };
1969
- exports.de_SearchChannelsCommand = de_SearchChannelsCommand;
1970
- const de_SearchMessagesCommand = async (output, context) => {
1971
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1972
- return de_CommandError(output, context);
1973
- }
1974
- const contents = (0, smithy_client_1.map)({
1975
- $metadata: deserializeMetadata(output),
1976
- });
1977
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1978
- const doc = (0, smithy_client_1.take)(data, {
1979
- 'nextCursor': smithy_client_1.expectString,
1980
- 'results': smithy_client_1._json,
1981
- 'totalCount': smithy_client_1.expectInt32,
1982
- });
1983
- Object.assign(contents, doc);
1984
- return contents;
1985
- };
1986
- exports.de_SearchMessagesCommand = de_SearchMessagesCommand;
1987
- const de_SendGiphyCommand = async (output, context) => {
1988
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1989
- return de_CommandError(output, context);
1990
- }
1991
- const contents = (0, smithy_client_1.map)({
1992
- $metadata: deserializeMetadata(output),
1993
- });
1994
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1995
- const doc = (0, smithy_client_1.take)(data, {
1996
- 'message': smithy_client_1._json,
1997
- });
1998
- Object.assign(contents, doc);
1999
- return contents;
2000
- };
2001
- exports.de_SendGiphyCommand = de_SendGiphyCommand;
2002
- const de_SendMessageCommand = async (output, context) => {
2003
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2004
- return de_CommandError(output, context);
2005
- }
2006
- const contents = (0, smithy_client_1.map)({
2007
- $metadata: deserializeMetadata(output),
2008
- });
2009
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2010
- const doc = (0, smithy_client_1.take)(data, {
2011
- 'message': smithy_client_1._json,
2012
- });
2013
- Object.assign(contents, doc);
2014
- return contents;
2015
- };
2016
- exports.de_SendMessageCommand = de_SendMessageCommand;
2017
- const de_SendMessageReactionCommand = async (output, context) => {
2018
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2019
- return de_CommandError(output, context);
2020
- }
2021
- const contents = (0, smithy_client_1.map)({
2022
- $metadata: deserializeMetadata(output),
2023
- });
2024
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2025
- const doc = (0, smithy_client_1.take)(data, {
2026
- 'message': smithy_client_1._json,
2027
- });
2028
- Object.assign(contents, doc);
2029
- return contents;
2030
- };
2031
- exports.de_SendMessageReactionCommand = de_SendMessageReactionCommand;
2032
- const de_SendSystemMessageCommand = async (output, context) => {
2033
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2034
- return de_CommandError(output, context);
2035
- }
2036
- const contents = (0, smithy_client_1.map)({
2037
- $metadata: deserializeMetadata(output),
2038
- });
2039
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2040
- const doc = (0, smithy_client_1.take)(data, {
2041
- 'message': smithy_client_1._json,
2042
- });
2043
- Object.assign(contents, doc);
2044
- return contents;
2045
- };
2046
- exports.de_SendSystemMessageCommand = de_SendSystemMessageCommand;
2047
- const de_SendTypingStartCommand = async (output, context) => {
2048
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2049
- return de_CommandError(output, context);
2050
- }
2051
- const contents = (0, smithy_client_1.map)({
2052
- $metadata: deserializeMetadata(output),
2053
- });
2054
- await (0, smithy_client_1.collectBody)(output.body, context);
2055
- return contents;
2056
- };
2057
- exports.de_SendTypingStartCommand = de_SendTypingStartCommand;
2058
- const de_SendTypingStopCommand = async (output, context) => {
2059
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2060
- return de_CommandError(output, context);
2061
- }
2062
- const contents = (0, smithy_client_1.map)({
2063
- $metadata: deserializeMetadata(output),
2064
- });
2065
- await (0, smithy_client_1.collectBody)(output.body, context);
2066
- return contents;
2067
- };
2068
- exports.de_SendTypingStopCommand = de_SendTypingStopCommand;
2069
- const de_ShowChannelCommand = async (output, context) => {
2070
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2071
- return de_CommandError(output, context);
2072
- }
2073
- const contents = (0, smithy_client_1.map)({
2074
- $metadata: deserializeMetadata(output),
2075
- });
2076
- await (0, smithy_client_1.collectBody)(output.body, context);
2077
- return contents;
2078
- };
2079
- exports.de_ShowChannelCommand = de_ShowChannelCommand;
2080
- const de_UnmuteChannelCommand = async (output, context) => {
2081
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2082
- return de_CommandError(output, context);
2083
- }
2084
- const contents = (0, smithy_client_1.map)({
2085
- $metadata: deserializeMetadata(output),
2086
- });
2087
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2088
- const doc = (0, smithy_client_1.take)(data, {
2089
- 'inbox': smithy_client_1._json,
2090
- });
2091
- Object.assign(contents, doc);
2092
- return contents;
2093
- };
2094
- exports.de_UnmuteChannelCommand = de_UnmuteChannelCommand;
2095
- const de_UnpinChannelCommand = async (output, context) => {
2096
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2097
- return de_CommandError(output, context);
2098
- }
2099
- const contents = (0, smithy_client_1.map)({
2100
- $metadata: deserializeMetadata(output),
2101
- });
2102
- await (0, smithy_client_1.collectBody)(output.body, context);
2103
- return contents;
2104
- };
2105
- exports.de_UnpinChannelCommand = de_UnpinChannelCommand;
2106
- const de_UnpinMessageCommand = async (output, context) => {
2107
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2108
- return de_CommandError(output, context);
2109
- }
2110
- const contents = (0, smithy_client_1.map)({
2111
- $metadata: deserializeMetadata(output),
2112
- });
2113
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2114
- const doc = (0, smithy_client_1.take)(data, {
2115
- 'message': smithy_client_1._json,
2116
- });
2117
- Object.assign(contents, doc);
2118
- return contents;
2119
- };
2120
- exports.de_UnpinMessageCommand = de_UnpinMessageCommand;
2121
- const de_UpdateChannelCommand = async (output, context) => {
2122
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2123
- return de_CommandError(output, context);
2124
- }
2125
- const contents = (0, smithy_client_1.map)({
2126
- $metadata: deserializeMetadata(output),
2127
- });
2128
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2129
- const doc = (0, smithy_client_1.take)(data, {
2130
- 'channel': smithy_client_1._json,
2131
- });
2132
- Object.assign(contents, doc);
2133
- return contents;
2134
- };
2135
- exports.de_UpdateChannelCommand = de_UpdateChannelCommand;
2136
- const de_UpdateMessageCommand = async (output, context) => {
2137
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2138
- return de_CommandError(output, context);
2139
- }
2140
- const contents = (0, smithy_client_1.map)({
2141
- $metadata: deserializeMetadata(output),
2142
- });
2143
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2144
- const doc = (0, smithy_client_1.take)(data, {
2145
- 'message': smithy_client_1._json,
2146
- });
2147
- Object.assign(contents, doc);
2148
- return contents;
2149
- };
2150
- exports.de_UpdateMessageCommand = de_UpdateMessageCommand;
2151
- const de_UploadFileCommand = async (output, context) => {
2152
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2153
- return de_CommandError(output, context);
2154
- }
2155
- const contents = (0, smithy_client_1.map)({
2156
- $metadata: deserializeMetadata(output),
2157
- });
2158
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2159
- const doc = (0, smithy_client_1.take)(data, {
2160
- 'fsId': smithy_client_1.expectString,
2161
- 'presignedUploadUrl': smithy_client_1.expectString,
2162
- });
2163
- Object.assign(contents, doc);
2164
- return contents;
2165
- };
2166
- exports.de_UploadFileCommand = de_UploadFileCommand;
2167
- const de_CommandError = async (output, context) => {
2168
- const parsedOutput = {
2169
- ...output,
2170
- body: await (0, core_1.parseJsonErrorBody)(output.body, context)
2171
- };
2172
- const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
2173
- switch (errorCode) {
2174
- case "ChannelNotFoundException":
2175
- case "wildix.stream#ChannelNotFoundException":
2176
- throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
2177
- case "ForbiddenException":
2178
- case "smithy.framework#ForbiddenException":
2179
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2180
- case "MemberAlreadyExistException":
2181
- case "wildix.stream#MemberAlreadyExistException":
2182
- throw await de_MemberAlreadyExistExceptionRes(parsedOutput, context);
2183
- case "RateLimitExceededException":
2184
- case "smithy.framework#RateLimitExceededException":
2185
- throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
2186
- case "StreamServiceException":
2187
- case "wildix.stream#StreamServiceException":
2188
- throw await de_StreamServiceExceptionRes(parsedOutput, context);
2189
- case "UnauthorizedException":
2190
- case "smithy.framework#UnauthorizedException":
2191
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2192
- case "ValidationException":
2193
- case "smithy.framework#ValidationException":
2194
- throw await de_ValidationExceptionRes(parsedOutput, context);
2195
- case "ChannelAlreadyExistException":
2196
- case "wildix.stream#ChannelAlreadyExistException":
2197
- throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
2198
- case "TargetNotEligibleException":
2199
- case "wildix.xbees.kite#TargetNotEligibleException":
2200
- throw await de_TargetNotEligibleExceptionRes(parsedOutput, context);
2201
- case "TargetNotFoundException":
2202
- case "wildix.xbees.kite#TargetNotFoundException":
2203
- throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
2204
- case "MemberNotFoundException":
2205
- case "wildix.stream#MemberNotFoundException":
2206
- throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
2207
- case "MessageNotFoundException":
2208
- case "wildix.stream#MessageNotFoundException":
2209
- throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
2210
- case "SectionNotFoundException":
2211
- case "wildix.stream#SectionNotFoundException":
2212
- throw await de_SectionNotFoundExceptionRes(parsedOutput, context);
2213
- case "FileNotFoundException":
2214
- case "wildix.stream#FileNotFoundException":
2215
- throw await de_FileNotFoundExceptionRes(parsedOutput, context);
2216
- case "MarkUnreadChannelsLimitReachedException":
2217
- case "wildix.stream#MarkUnreadChannelsLimitReachedException":
2218
- throw await de_MarkUnreadChannelsLimitReachedExceptionRes(parsedOutput, context);
2219
- default:
2220
- const parsedBody = parsedOutput.body;
2221
- return throwDefaultError({
2222
- output,
2223
- parsedBody,
2224
- errorCode
2225
- });
2226
- }
2227
- };
2228
- const throwDefaultError = (0, smithy_client_1.withBaseException)(StreamServiceServiceException_1.StreamServiceServiceException);
2229
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
2230
- const contents = (0, smithy_client_1.map)({});
2231
- const data = parsedOutput.body;
2232
- const doc = (0, smithy_client_1.take)(data, {
2233
- 'message': smithy_client_1.expectString,
2234
- });
2235
- Object.assign(contents, doc);
2236
- const exception = new models_0_1.ForbiddenException({
2237
- $metadata: deserializeMetadata(parsedOutput),
2238
- ...contents
2239
- });
2240
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2241
- };
2242
- const de_RateLimitExceededExceptionRes = async (parsedOutput, context) => {
2243
- const contents = (0, smithy_client_1.map)({
2244
- [_rL]: [, parsedOutput.headers[_xrl]],
2245
- [_rLR]: [() => void 0 !== parsedOutput.headers[_xrr], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_xrr])],
2246
- [_rLRa]: [() => void 0 !== parsedOutput.headers[_xrr_], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_xrr_])],
2247
- [_rA]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
2248
- });
2249
- const data = parsedOutput.body;
2250
- const doc = (0, smithy_client_1.take)(data, {
2251
- 'message': smithy_client_1.expectString,
2252
- });
2253
- Object.assign(contents, doc);
2254
- const exception = new models_0_1.RateLimitExceededException({
2255
- $metadata: deserializeMetadata(parsedOutput),
2256
- ...contents
2257
- });
2258
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2259
- };
2260
- const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
2261
- const contents = (0, smithy_client_1.map)({});
2262
- const data = parsedOutput.body;
2263
- const doc = (0, smithy_client_1.take)(data, {
2264
- 'message': smithy_client_1.expectString,
2265
- });
2266
- Object.assign(contents, doc);
2267
- const exception = new models_0_1.UnauthorizedException({
2268
- $metadata: deserializeMetadata(parsedOutput),
2269
- ...contents
2270
- });
2271
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2272
- };
2273
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
2274
- const contents = (0, smithy_client_1.map)({});
2275
- const data = parsedOutput.body;
2276
- const doc = (0, smithy_client_1.take)(data, {
2277
- 'message': smithy_client_1.expectString,
2278
- });
2279
- Object.assign(contents, doc);
2280
- const exception = new models_0_1.ValidationException({
2281
- $metadata: deserializeMetadata(parsedOutput),
2282
- ...contents
2283
- });
2284
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2285
- };
2286
- const de_ChannelAlreadyExistExceptionRes = async (parsedOutput, context) => {
2287
- const contents = (0, smithy_client_1.map)({});
2288
- const data = parsedOutput.body;
2289
- const doc = (0, smithy_client_1.take)(data, {
2290
- 'message': smithy_client_1.expectString,
2291
- });
2292
- Object.assign(contents, doc);
2293
- const exception = new models_0_1.ChannelAlreadyExistException({
2294
- $metadata: deserializeMetadata(parsedOutput),
2295
- ...contents
2296
- });
2297
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2298
- };
2299
- const de_ChannelNotFoundExceptionRes = async (parsedOutput, context) => {
2300
- const contents = (0, smithy_client_1.map)({});
2301
- const data = parsedOutput.body;
2302
- const doc = (0, smithy_client_1.take)(data, {
2303
- 'message': smithy_client_1.expectString,
2304
- });
2305
- Object.assign(contents, doc);
2306
- const exception = new models_0_1.ChannelNotFoundException({
2307
- $metadata: deserializeMetadata(parsedOutput),
2308
- ...contents
2309
- });
2310
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2311
- };
2312
- const de_FileNotFoundExceptionRes = async (parsedOutput, context) => {
2313
- const contents = (0, smithy_client_1.map)({});
2314
- const data = parsedOutput.body;
2315
- const doc = (0, smithy_client_1.take)(data, {
2316
- 'message': smithy_client_1.expectString,
2317
- });
2318
- Object.assign(contents, doc);
2319
- const exception = new models_0_1.FileNotFoundException({
2320
- $metadata: deserializeMetadata(parsedOutput),
2321
- ...contents
2322
- });
2323
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2324
- };
2325
- const de_MarkUnreadChannelsLimitReachedExceptionRes = async (parsedOutput, context) => {
2326
- const contents = (0, smithy_client_1.map)({});
2327
- const data = parsedOutput.body;
2328
- const doc = (0, smithy_client_1.take)(data, {
2329
- 'message': smithy_client_1.expectString,
2330
- });
2331
- Object.assign(contents, doc);
2332
- const exception = new models_0_1.MarkUnreadChannelsLimitReachedException({
2333
- $metadata: deserializeMetadata(parsedOutput),
2334
- ...contents
2335
- });
2336
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2337
- };
2338
- const de_MemberAlreadyExistExceptionRes = async (parsedOutput, context) => {
2339
- const contents = (0, smithy_client_1.map)({});
2340
- const data = parsedOutput.body;
2341
- const doc = (0, smithy_client_1.take)(data, {
2342
- 'message': smithy_client_1.expectString,
2343
- });
2344
- Object.assign(contents, doc);
2345
- const exception = new models_0_1.MemberAlreadyExistException({
2346
- $metadata: deserializeMetadata(parsedOutput),
2347
- ...contents
2348
- });
2349
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2350
- };
2351
- const de_MemberNotFoundExceptionRes = async (parsedOutput, context) => {
2352
- const contents = (0, smithy_client_1.map)({});
2353
- const data = parsedOutput.body;
2354
- const doc = (0, smithy_client_1.take)(data, {
2355
- 'message': smithy_client_1.expectString,
2356
- });
2357
- Object.assign(contents, doc);
2358
- const exception = new models_0_1.MemberNotFoundException({
2359
- $metadata: deserializeMetadata(parsedOutput),
2360
- ...contents
2361
- });
2362
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2363
- };
2364
- const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
2365
- const contents = (0, smithy_client_1.map)({});
2366
- const data = parsedOutput.body;
2367
- const doc = (0, smithy_client_1.take)(data, {
2368
- 'message': smithy_client_1.expectString,
2369
- });
2370
- Object.assign(contents, doc);
2371
- const exception = new models_0_1.MessageNotFoundException({
2372
- $metadata: deserializeMetadata(parsedOutput),
2373
- ...contents
2374
- });
2375
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2376
- };
2377
- const de_SectionNotFoundExceptionRes = async (parsedOutput, context) => {
2378
- const contents = (0, smithy_client_1.map)({});
2379
- const data = parsedOutput.body;
2380
- const doc = (0, smithy_client_1.take)(data, {
2381
- 'message': smithy_client_1.expectString,
2382
- });
2383
- Object.assign(contents, doc);
2384
- const exception = new models_0_1.SectionNotFoundException({
2385
- $metadata: deserializeMetadata(parsedOutput),
2386
- ...contents
2387
- });
2388
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2389
- };
2390
- const de_StreamServiceExceptionRes = async (parsedOutput, context) => {
2391
- const contents = (0, smithy_client_1.map)({});
2392
- const data = parsedOutput.body;
2393
- const doc = (0, smithy_client_1.take)(data, {
2394
- 'message': smithy_client_1.expectString,
2395
- });
2396
- Object.assign(contents, doc);
2397
- const exception = new models_0_1.StreamServiceException({
2398
- $metadata: deserializeMetadata(parsedOutput),
2399
- ...contents
2400
- });
2401
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2402
- };
2403
- const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
2404
- const contents = (0, smithy_client_1.map)({});
2405
- const data = parsedOutput.body;
2406
- const doc = (0, smithy_client_1.take)(data, {
2407
- 'message': smithy_client_1.expectString,
2408
- 'reason': smithy_client_1.expectString,
2409
- });
2410
- Object.assign(contents, doc);
2411
- const exception = new models_0_1.TargetNotEligibleException({
2412
- $metadata: deserializeMetadata(parsedOutput),
2413
- ...contents
2414
- });
2415
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2416
- };
2417
- const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
2418
- const contents = (0, smithy_client_1.map)({});
2419
- const data = parsedOutput.body;
2420
- const doc = (0, smithy_client_1.take)(data, {
2421
- 'message': smithy_client_1.expectString,
2422
- });
2423
- Object.assign(contents, doc);
2424
- const exception = new models_0_1.TargetNotFoundException({
2425
- $metadata: deserializeMetadata(parsedOutput),
2426
- ...contents
2427
- });
2428
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2429
- };
2430
- const deserializeMetadata = (output) => ({
2431
- httpStatusCode: output.statusCode,
2432
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2433
- extendedRequestId: output.headers["x-amz-id-2"],
2434
- cfId: output.headers["x-amz-cf-id"],
2435
- });
2436
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
2437
- const _c = "company";
2438
- const _cI = "companyId";
2439
- const _cIh = "channelId";
2440
- const _cIl = "clientId";
2441
- const _ca = "category";
2442
- const _cu = "cursor";
2443
- const _d = "download";
2444
- const _f = "filter";
2445
- const _fo = "force";
2446
- const _fr = "from";
2447
- const _l = "limit";
2448
- const _o = "offset";
2449
- const _q = "q";
2450
- const _rA = "retryAfter";
2451
- const _rL = "rateLimit";
2452
- const _rLR = "rateLimitRemaining";
2453
- const _rLRa = "rateLimitReset";
2454
- const _ra = "retry-after";
2455
- const _s = "silent";
2456
- const _se = "section";
2457
- const _si = "size";
2458
- const _so = "sort";
2459
- const _t = "to";
2460
- const _uI = "userId";
2461
- const _xrl = "x-ratelimit-limit";
2462
- const _xrr = "x-ratelimit-remaining";
2463
- const _xrr_ = "x-ratelimit-reset";