@wildix/stream-client 0.0.1 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/dist-cjs/StreamService.js +98 -6
  2. package/dist-cjs/commands/AddChannelMemberCommand.js +21 -0
  3. package/dist-cjs/commands/AddChannelMembersCommand.js +21 -0
  4. package/dist-cjs/commands/AssignChannelCommand.js +21 -0
  5. package/dist-cjs/commands/CreateGroupChannelCommand.js +21 -0
  6. package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
  7. package/dist-cjs/commands/CreateSectionCommand.js +21 -0
  8. package/dist-cjs/commands/DeleteChannelCommand.js +21 -0
  9. package/dist-cjs/commands/DeleteChannelMemberCommand.js +21 -0
  10. package/dist-cjs/commands/DeleteMessageReactionCommand.js +21 -0
  11. package/dist-cjs/commands/DeleteSectionCommand.js +21 -0
  12. package/dist-cjs/commands/GetChannelCommand.js +21 -0
  13. package/dist-cjs/commands/GetChannelMemberCommand.js +21 -0
  14. package/dist-cjs/commands/GetDirectChannelIdCommand.js +21 -0
  15. package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +21 -0
  16. package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +21 -0
  17. package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +21 -0
  18. package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +21 -0
  19. package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +21 -0
  20. package/dist-cjs/commands/GetSmsChannelIdCommand.js +21 -0
  21. package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +21 -0
  22. package/dist-cjs/commands/GetTokenCommand.js +21 -0
  23. package/dist-cjs/commands/GetUploadedFileInfoCommand.js +21 -0
  24. package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +21 -0
  25. package/dist-cjs/commands/{AddReactionCommand.js → HideChannelCommand.js} +7 -7
  26. package/dist-cjs/commands/{EditMessageCommand.js → JoinChannelCommand.js} +7 -7
  27. package/dist-cjs/commands/LeaveChannelCommand.js +21 -0
  28. package/dist-cjs/commands/ListChannelMembersCommand.js +21 -0
  29. package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +21 -0
  30. package/dist-cjs/commands/MarkReadCommand.js +21 -0
  31. package/dist-cjs/commands/MarkUnreadCommand.js +21 -0
  32. package/dist-cjs/commands/MoveChannelToSectionCommand.js +21 -0
  33. package/dist-cjs/commands/MuteChannelCommand.js +21 -0
  34. package/dist-cjs/commands/PartialUpdateChannelCommand.js +21 -0
  35. package/dist-cjs/commands/PartialUpdateMessageCommand.js +21 -0
  36. package/dist-cjs/commands/PinChannelCommand.js +21 -0
  37. package/dist-cjs/commands/QueryChannelsCommand.js +21 -0
  38. package/dist-cjs/commands/RemoveChannelFromSectionCommand.js +21 -0
  39. package/dist-cjs/commands/RenameSectionCommand.js +21 -0
  40. package/dist-cjs/commands/SendGiphyCommand.js +21 -0
  41. package/dist-cjs/commands/SendMessageReactionCommand.js +21 -0
  42. package/dist-cjs/commands/SendSystemMessageCommand.js +21 -0
  43. package/dist-cjs/commands/SendTypingStartCommand.js +21 -0
  44. package/dist-cjs/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +7 -7
  45. package/dist-cjs/commands/ShowChannelCommand.js +21 -0
  46. package/dist-cjs/commands/UnmuteChannelCommand.js +21 -0
  47. package/dist-cjs/commands/UnpinChannelCommand.js +21 -0
  48. package/dist-cjs/commands/UpdateChannelCommand.js +21 -0
  49. package/dist-cjs/commands/UpdateMessageCommand.js +21 -0
  50. package/dist-cjs/commands/UploadFileCommand.js +21 -0
  51. package/dist-cjs/commands/index.js +49 -3
  52. package/dist-cjs/models/models_0.js +293 -26
  53. package/dist-cjs/protocols/Aws_restJson1.js +1955 -131
  54. package/dist-es/StreamService.js +98 -6
  55. package/dist-es/commands/AddChannelMemberCommand.js +17 -0
  56. package/dist-es/commands/AddChannelMembersCommand.js +17 -0
  57. package/dist-es/commands/AssignChannelCommand.js +17 -0
  58. package/dist-es/commands/CreateGroupChannelCommand.js +17 -0
  59. package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
  60. package/dist-es/commands/CreateSectionCommand.js +17 -0
  61. package/dist-es/commands/DeleteChannelCommand.js +17 -0
  62. package/dist-es/commands/DeleteChannelMemberCommand.js +17 -0
  63. package/dist-es/commands/DeleteMessageReactionCommand.js +17 -0
  64. package/dist-es/commands/DeleteSectionCommand.js +17 -0
  65. package/dist-es/commands/GetChannelCommand.js +17 -0
  66. package/dist-es/commands/GetChannelMemberCommand.js +17 -0
  67. package/dist-es/commands/GetDirectChannelIdCommand.js +17 -0
  68. package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +17 -0
  69. package/dist-es/commands/GetOrCreateDirectChannelCommand.js +17 -0
  70. package/dist-es/commands/GetOrCreateSmsChannelCommand.js +17 -0
  71. package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +17 -0
  72. package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +17 -0
  73. package/dist-es/commands/GetSmsChannelIdCommand.js +17 -0
  74. package/dist-es/commands/GetTelephonyChannelIdCommand.js +17 -0
  75. package/dist-es/commands/GetTokenCommand.js +17 -0
  76. package/dist-es/commands/GetUploadedFileInfoCommand.js +17 -0
  77. package/dist-es/commands/GetWhatsAppChannelIdCommand.js +17 -0
  78. package/dist-es/commands/{EditMessageCommand.js → HideChannelCommand.js} +6 -6
  79. package/dist-es/commands/{AddReactionCommand.js → JoinChannelCommand.js} +6 -6
  80. package/dist-es/commands/LeaveChannelCommand.js +17 -0
  81. package/dist-es/commands/ListChannelMembersCommand.js +17 -0
  82. package/dist-es/commands/ListChannelMembersReadStatusCommand.js +17 -0
  83. package/dist-es/commands/MarkReadCommand.js +17 -0
  84. package/dist-es/commands/MarkUnreadCommand.js +17 -0
  85. package/dist-es/commands/MoveChannelToSectionCommand.js +17 -0
  86. package/dist-es/commands/MuteChannelCommand.js +17 -0
  87. package/dist-es/commands/PartialUpdateChannelCommand.js +17 -0
  88. package/dist-es/commands/PartialUpdateMessageCommand.js +17 -0
  89. package/dist-es/commands/PinChannelCommand.js +17 -0
  90. package/dist-es/commands/QueryChannelsCommand.js +17 -0
  91. package/dist-es/commands/RemoveChannelFromSectionCommand.js +17 -0
  92. package/dist-es/commands/RenameSectionCommand.js +17 -0
  93. package/dist-es/commands/SendGiphyCommand.js +17 -0
  94. package/dist-es/commands/SendMessageReactionCommand.js +17 -0
  95. package/dist-es/commands/SendSystemMessageCommand.js +17 -0
  96. package/dist-es/commands/SendTypingStartCommand.js +17 -0
  97. package/dist-es/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +6 -6
  98. package/dist-es/commands/ShowChannelCommand.js +17 -0
  99. package/dist-es/commands/UnmuteChannelCommand.js +17 -0
  100. package/dist-es/commands/UnpinChannelCommand.js +17 -0
  101. package/dist-es/commands/UpdateChannelCommand.js +17 -0
  102. package/dist-es/commands/UpdateMessageCommand.js +17 -0
  103. package/dist-es/commands/UploadFileCommand.js +17 -0
  104. package/dist-es/commands/index.js +49 -3
  105. package/dist-es/models/models_0.js +281 -23
  106. package/dist-es/protocols/Aws_restJson1.js +1843 -113
  107. package/dist-types/StreamService.d.ts +341 -15
  108. package/dist-types/StreamServiceClient.d.ts +51 -5
  109. package/dist-types/commands/AddChannelMemberCommand.d.ts +101 -0
  110. package/dist-types/commands/AddChannelMembersCommand.d.ts +108 -0
  111. package/dist-types/commands/AssignChannelCommand.d.ts +96 -0
  112. package/dist-types/commands/CreateGroupChannelCommand.d.ts +201 -0
  113. package/dist-types/commands/CreateKiteChannelCommand.d.ts +291 -0
  114. package/dist-types/commands/CreateSectionCommand.d.ts +96 -0
  115. package/dist-types/commands/DeleteChannelCommand.d.ts +82 -0
  116. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +88 -0
  117. package/dist-types/commands/DeleteMessageCommand.d.ts +1 -1
  118. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +193 -0
  119. package/dist-types/commands/DeleteSectionCommand.d.ts +84 -0
  120. package/dist-types/commands/GetChannelCommand.d.ts +150 -0
  121. package/dist-types/commands/GetChannelMemberCommand.d.ts +93 -0
  122. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +90 -0
  123. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +94 -0
  124. package/dist-types/commands/GetInboxCommand.d.ts +53 -6
  125. package/dist-types/commands/GetMessageCommand.d.ts +57 -1
  126. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +154 -0
  127. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +151 -0
  128. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +150 -0
  129. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +151 -0
  130. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +86 -0
  131. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +86 -0
  132. package/dist-types/commands/GetTokenCommand.d.ts +85 -0
  133. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +98 -0
  134. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +86 -0
  135. package/dist-types/commands/HideChannelCommand.d.ts +84 -0
  136. package/dist-types/commands/JoinChannelCommand.d.ts +151 -0
  137. package/dist-types/commands/LeaveChannelCommand.d.ts +85 -0
  138. package/dist-types/commands/ListChannelMembersCommand.d.ts +94 -0
  139. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +92 -0
  140. package/dist-types/commands/ListChannelsCommand.d.ts +53 -6
  141. package/dist-types/commands/ListMentionsCommand.d.ts +58 -2
  142. package/dist-types/commands/ListMessagesCommand.d.ts +57 -1
  143. package/dist-types/commands/MarkReadCommand.d.ts +99 -0
  144. package/dist-types/commands/MarkUnreadCommand.d.ts +103 -0
  145. package/dist-types/commands/MoveChannelToSectionCommand.d.ts +101 -0
  146. package/dist-types/commands/MuteChannelCommand.d.ts +99 -0
  147. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +195 -0
  148. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +261 -0
  149. package/dist-types/commands/PinChannelCommand.d.ts +87 -0
  150. package/dist-types/commands/PinMessageCommand.d.ts +57 -1
  151. package/dist-types/commands/QueryChannelsCommand.d.ts +167 -0
  152. package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +101 -0
  153. package/dist-types/commands/RenameSectionCommand.d.ts +98 -0
  154. package/dist-types/commands/SendGiphyCommand.d.ts +207 -0
  155. package/dist-types/commands/SendMessageCommand.d.ts +105 -8
  156. package/dist-types/commands/SendMessageReactionCommand.d.ts +193 -0
  157. package/dist-types/commands/SendSystemMessageCommand.d.ts +199 -0
  158. package/dist-types/commands/SendTypingStartCommand.d.ts +84 -0
  159. package/dist-types/commands/SendTypingStopCommand.d.ts +84 -0
  160. package/dist-types/commands/ShowChannelCommand.d.ts +84 -0
  161. package/dist-types/commands/UnmuteChannelCommand.d.ts +98 -0
  162. package/dist-types/commands/UnpinChannelCommand.d.ts +84 -0
  163. package/dist-types/commands/UnpinMessageCommand.d.ts +57 -1
  164. package/dist-types/commands/UpdateChannelCommand.d.ts +190 -0
  165. package/dist-types/commands/UpdateMessageCommand.d.ts +256 -0
  166. package/dist-types/commands/UploadFileCommand.d.ts +94 -0
  167. package/dist-types/commands/index.d.ts +49 -3
  168. package/dist-types/models/models_0.d.ts +3256 -403
  169. package/dist-types/protocols/Aws_restJson1.d.ts +429 -15
  170. package/package.json +1 -1
  171. package/dist-types/commands/AddReactionCommand.d.ts +0 -137
  172. package/dist-types/commands/EditMessageCommand.d.ts +0 -151
  173. package/dist-types/commands/RemoveReactionCommand.d.ts +0 -137
@@ -27,7 +27,7 @@ declare const SendMessageCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Persists a new message to a channel. Serves regular messages, replies (`quote`), forwards (`forward`), targeted user mentions (`mentions[]`), and backend-emitted system messages (`system: true`); only the body fields differ. File attachments must be uploaded first to the file service and referenced by `attachments[].fsId`. Returns the full message snapshot in the same shape as one `ListMessages` item.
30
+ * Persists a new user message to a channel. Supports text, attachments, rich `elements`, replies (`quote`), forwards (`forward`), and targeted user mentions (`mentions[]`). File attachments must be uploaded first to the file service and referenced by `attachments[].fsId`. Returns the full message snapshot in the same shape as one `ListMessages` item.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -37,9 +37,42 @@ declare const SendMessageCommand_base: {
37
37
  * const input = { // SendMessageInput
38
38
  * companyId: "STRING_VALUE",
39
39
  * userId: "STRING_VALUE",
40
- * channelId: "STRING_VALUE", // required
41
- * messageType: "regular" || "system",
42
40
  * text: "STRING_VALUE",
41
+ * elements: [ // ElementsList
42
+ * { // Element Union: only one key present
43
+ * template: { // MessageTemplateConfig
44
+ * whatsapp: { // TemplateWithParameters
45
+ * name: "STRING_VALUE", // required
46
+ * parameters: [ // ListTemplateParameter
47
+ * { // TemplateParameter
48
+ * name: "STRING_VALUE", // required
49
+ * value: "STRING_VALUE", // required
50
+ * },
51
+ * ],
52
+ * },
53
+ * },
54
+ * actions: [ // ActionsElementsList
55
+ * { // ActionElement Union: only one key present
56
+ * button: { // ButtonElement
57
+ * text: "STRING_VALUE", // required
58
+ * handler: { // ButtonHandler Union: only one key present
59
+ * link: { // ButtonLinkHandler
60
+ * url: "STRING_VALUE", // required
61
+ * },
62
+ * reply: { // ButtonReplyHandler
63
+ * text: "STRING_VALUE",
64
+ * },
65
+ * action: { // ButtonActionHandler
66
+ * id: "STRING_VALUE", // required
67
+ * },
68
+ * },
69
+ * variant: "contained" || "outlined",
70
+ * disabled: true || false,
71
+ * },
72
+ * },
73
+ * ],
74
+ * },
75
+ * ],
43
76
  * attachments: [ // MessageAttachmentRequestList
44
77
  * { // MessageAttachmentRequest
45
78
  * fsId: "STRING_VALUE", // required
@@ -51,9 +84,6 @@ declare const SendMessageCommand_base: {
51
84
  * thumbnail: "STRING_VALUE",
52
85
  * },
53
86
  * ],
54
- * mentions: [ // UserIdList
55
- * "STRING_VALUE",
56
- * ],
57
87
  * quote: { // MessageQuoteRef
58
88
  * channelId: "STRING_VALUE", // required
59
89
  * messageId: "STRING_VALUE", // required
@@ -62,7 +92,18 @@ declare const SendMessageCommand_base: {
62
92
  * channelId: "STRING_VALUE", // required
63
93
  * messageId: "STRING_VALUE", // required
64
94
  * },
65
- * system: true || false,
95
+ * markdown: true || false,
96
+ * silent: true || false,
97
+ * whatsapp: true || false,
98
+ * whatsappStatus: "trying" || "sent" || "delivered" || "error",
99
+ * sms: true || false,
100
+ * smsStatus: "sent" || "delivered" || "trying" || "error",
101
+ * messageId: "STRING_VALUE",
102
+ * mentions: [ // UserIdList
103
+ * "STRING_VALUE",
104
+ * ],
105
+ * channelId: "STRING_VALUE", // required
106
+ * messageType: "regular" || "system",
66
107
  * };
67
108
  * const command = new SendMessageCommand(input);
68
109
  * const response = await client.send(command);
@@ -103,6 +144,13 @@ declare const SendMessageCommand_base: {
103
144
  * // reactionCounts: { // ReactionCounts // required
104
145
  * // "<keys>": Number("int"),
105
146
  * // },
147
+ * // latestReactions: [ // ReactionList
148
+ * // { // Reaction
149
+ * // type: "STRING_VALUE", // required
150
+ * // userId: "STRING_VALUE", // required
151
+ * // messageId: "STRING_VALUE", // required
152
+ * // },
153
+ * // ],
106
154
  * // pinned: true || false, // required
107
155
  * // pinnedAt: "STRING_VALUE",
108
156
  * // pinnedBy: "STRING_VALUE",
@@ -114,6 +162,55 @@ declare const SendMessageCommand_base: {
114
162
  * // createdAt: "STRING_VALUE", // required
115
163
  * // editedAt: "STRING_VALUE",
116
164
  * // deletedAt: "STRING_VALUE",
165
+ * // elements: [ // ElementsList
166
+ * // { // Element Union: only one key present
167
+ * // template: { // MessageTemplateConfig
168
+ * // whatsapp: { // TemplateWithParameters
169
+ * // name: "STRING_VALUE", // required
170
+ * // parameters: [ // ListTemplateParameter
171
+ * // { // TemplateParameter
172
+ * // name: "STRING_VALUE", // required
173
+ * // value: "STRING_VALUE", // required
174
+ * // },
175
+ * // ],
176
+ * // },
177
+ * // },
178
+ * // actions: [ // ActionsElementsList
179
+ * // { // ActionElement Union: only one key present
180
+ * // button: { // ButtonElement
181
+ * // text: "STRING_VALUE", // required
182
+ * // handler: { // ButtonHandler Union: only one key present
183
+ * // link: { // ButtonLinkHandler
184
+ * // url: "STRING_VALUE", // required
185
+ * // },
186
+ * // reply: { // ButtonReplyHandler
187
+ * // text: "STRING_VALUE",
188
+ * // },
189
+ * // action: { // ButtonActionHandler
190
+ * // id: "STRING_VALUE", // required
191
+ * // },
192
+ * // },
193
+ * // variant: "contained" || "outlined",
194
+ * // disabled: true || false,
195
+ * // },
196
+ * // },
197
+ * // ],
198
+ * // },
199
+ * // ],
200
+ * // whatsapp: true || false,
201
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
202
+ * // sms: true || false,
203
+ * // smsStatus: "sent" || "delivered" || "trying" || "error",
204
+ * // markdown: true || false,
205
+ * // giphy: { // MessageGiphy
206
+ * // id: "STRING_VALUE", // required
207
+ * // size: "STRING_VALUE", // required
208
+ * // url: "STRING_VALUE", // required
209
+ * // height: "STRING_VALUE", // required
210
+ * // width: "STRING_VALUE", // required
211
+ * // },
212
+ * // silent: true || false,
213
+ * // event: "STRING_VALUE",
117
214
  * // },
118
215
  * // };
119
216
  *
@@ -129,7 +226,7 @@ declare const SendMessageCommand_base: {
129
226
  *
130
227
  * @throws {@link MessageNotFoundException} (client fault)
131
228
  *
132
- * @throws {@link InternalServerError} (server fault)
229
+ * @throws {@link StreamServiceException} (server fault)
133
230
  *
134
231
  * @throws {@link UnauthorizedException} (client fault)
135
232
  *
@@ -0,0 +1,193 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { SendMessageReactionInput, SendMessageReactionOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link SendMessageReactionCommand}.
14
+ */
15
+ export interface SendMessageReactionCommandInput extends SendMessageReactionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SendMessageReactionCommand}.
21
+ */
22
+ export interface SendMessageReactionCommandOutput extends SendMessageReactionOutput, __MetadataBearer {
23
+ }
24
+ declare const SendMessageReactionCommand_base: {
25
+ new (input: SendMessageReactionCommandInput): import("@smithy/smithy-client").CommandImpl<SendMessageReactionCommandInput, SendMessageReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SendMessageReactionCommandInput): import("@smithy/smithy-client").CommandImpl<SendMessageReactionCommandInput, SendMessageReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Adds the current user's reaction of `<type>` on one message. Duplicate adds are absorbed and only the first apply advances `messageVersion`. Reactions on a deleted message are rejected.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, SendMessageReactionCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, SendMessageReactionCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // SendMessageReactionInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * messageId: "STRING_VALUE", // required
42
+ * type: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new SendMessageReactionCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // SendMessageReactionOutput
47
+ * // message: { // Message
48
+ * // messageId: "STRING_VALUE", // required
49
+ * // userId: "STRING_VALUE", // required
50
+ * // messageType: "regular" || "system", // required
51
+ * // text: "STRING_VALUE",
52
+ * // attachments: [ // MessageAttachmentList // required
53
+ * // { // MessageAttachment
54
+ * // fsId: "STRING_VALUE", // required
55
+ * // mime: "STRING_VALUE",
56
+ * // name: "STRING_VALUE", // required
57
+ * // size: Number("long"), // required
58
+ * // width: Number("int"),
59
+ * // height: Number("int"),
60
+ * // thumbnail: "STRING_VALUE",
61
+ * // id: "STRING_VALUE", // required
62
+ * // },
63
+ * // ],
64
+ * // mentions: [ // UserIdList // required
65
+ * // "STRING_VALUE",
66
+ * // ],
67
+ * // quote: { // MessageQuote
68
+ * // channelId: "STRING_VALUE", // required
69
+ * // messageId: "STRING_VALUE", // required
70
+ * // userId: "STRING_VALUE", // required
71
+ * // text: "STRING_VALUE",
72
+ * // createdAt: "STRING_VALUE", // required
73
+ * // },
74
+ * // forward: { // MessageForward
75
+ * // channelId: "STRING_VALUE", // required
76
+ * // messageId: "STRING_VALUE", // required
77
+ * // userId: "STRING_VALUE", // required
78
+ * // forwardedAt: "STRING_VALUE", // required
79
+ * // },
80
+ * // reactionCounts: { // ReactionCounts // required
81
+ * // "<keys>": Number("int"),
82
+ * // },
83
+ * // latestReactions: [ // ReactionList
84
+ * // { // Reaction
85
+ * // type: "STRING_VALUE", // required
86
+ * // userId: "STRING_VALUE", // required
87
+ * // messageId: "STRING_VALUE", // required
88
+ * // },
89
+ * // ],
90
+ * // pinned: true || false, // required
91
+ * // pinnedAt: "STRING_VALUE",
92
+ * // pinnedBy: "STRING_VALUE",
93
+ * // system: true || false, // required
94
+ * // timelineSeq: Number("long"), // required
95
+ * // visibleSeq: Number("long"), // required
96
+ * // channelVersion: Number("long"), // required
97
+ * // messageVersion: Number("long"), // required
98
+ * // createdAt: "STRING_VALUE", // required
99
+ * // editedAt: "STRING_VALUE",
100
+ * // deletedAt: "STRING_VALUE",
101
+ * // elements: [ // ElementsList
102
+ * // { // Element Union: only one key present
103
+ * // template: { // MessageTemplateConfig
104
+ * // whatsapp: { // TemplateWithParameters
105
+ * // name: "STRING_VALUE", // required
106
+ * // parameters: [ // ListTemplateParameter
107
+ * // { // TemplateParameter
108
+ * // name: "STRING_VALUE", // required
109
+ * // value: "STRING_VALUE", // required
110
+ * // },
111
+ * // ],
112
+ * // },
113
+ * // },
114
+ * // actions: [ // ActionsElementsList
115
+ * // { // ActionElement Union: only one key present
116
+ * // button: { // ButtonElement
117
+ * // text: "STRING_VALUE", // required
118
+ * // handler: { // ButtonHandler Union: only one key present
119
+ * // link: { // ButtonLinkHandler
120
+ * // url: "STRING_VALUE", // required
121
+ * // },
122
+ * // reply: { // ButtonReplyHandler
123
+ * // text: "STRING_VALUE",
124
+ * // },
125
+ * // action: { // ButtonActionHandler
126
+ * // id: "STRING_VALUE", // required
127
+ * // },
128
+ * // },
129
+ * // variant: "contained" || "outlined",
130
+ * // disabled: true || false,
131
+ * // },
132
+ * // },
133
+ * // ],
134
+ * // },
135
+ * // ],
136
+ * // whatsapp: true || false,
137
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
138
+ * // sms: true || false,
139
+ * // smsStatus: "sent" || "delivered" || "trying" || "error",
140
+ * // markdown: true || false,
141
+ * // giphy: { // MessageGiphy
142
+ * // id: "STRING_VALUE", // required
143
+ * // size: "STRING_VALUE", // required
144
+ * // url: "STRING_VALUE", // required
145
+ * // height: "STRING_VALUE", // required
146
+ * // width: "STRING_VALUE", // required
147
+ * // },
148
+ * // silent: true || false,
149
+ * // event: "STRING_VALUE",
150
+ * // },
151
+ * // };
152
+ *
153
+ * ```
154
+ *
155
+ * @param SendMessageReactionCommandInput - {@link SendMessageReactionCommandInput}
156
+ * @returns {@link SendMessageReactionCommandOutput}
157
+ * @see {@link SendMessageReactionCommandInput} for command's `input` shape.
158
+ * @see {@link SendMessageReactionCommandOutput} for command's `response` shape.
159
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
160
+ *
161
+ * @throws {@link ChannelNotFoundException} (client fault)
162
+ *
163
+ * @throws {@link MessageNotFoundException} (client fault)
164
+ *
165
+ * @throws {@link StreamServiceException} (server fault)
166
+ *
167
+ * @throws {@link UnauthorizedException} (client fault)
168
+ *
169
+ * @throws {@link ForbiddenException} (client fault)
170
+ *
171
+ * @throws {@link ValidationException} (client fault)
172
+ *
173
+ * @throws {@link RateLimitExceededException} (client fault)
174
+ *
175
+ * @throws {@link StreamServiceServiceException}
176
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
177
+ *
178
+ *
179
+ * @public
180
+ */
181
+ export declare class SendMessageReactionCommand extends SendMessageReactionCommand_base {
182
+ /** @internal type navigation helper, not in runtime. */
183
+ protected static __types: {
184
+ api: {
185
+ input: SendMessageReactionInput;
186
+ output: SendMessageReactionOutput;
187
+ };
188
+ sdk: {
189
+ input: SendMessageReactionCommandInput;
190
+ output: SendMessageReactionCommandOutput;
191
+ };
192
+ };
193
+ }
@@ -0,0 +1,199 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { SendSystemMessageInput, SendSystemMessageOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link SendSystemMessageCommand}.
14
+ */
15
+ export interface SendSystemMessageCommandInput extends SendSystemMessageInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SendSystemMessageCommand}.
21
+ */
22
+ export interface SendSystemMessageCommandOutput extends SendSystemMessageOutput, __MetadataBearer {
23
+ }
24
+ declare const SendSystemMessageCommand_base: {
25
+ new (input: SendSystemMessageCommandInput): import("@smithy/smithy-client").CommandImpl<SendSystemMessageCommandInput, SendSystemMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SendSystemMessageCommandInput): import("@smithy/smithy-client").CommandImpl<SendSystemMessageCommandInput, SendSystemMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Persists a backend-generated system message to a channel. Available with S2S authorization only. Each `message` variant maps to a server-side template; optional `event` carries a client rendering hint.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, SendSystemMessageCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, SendSystemMessageCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // SendSystemMessageInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * message: { // SystemMessage Union: only one key present
42
+ * whatsAppClosed: {},
43
+ * multipleMembersJoined: { // MultipleMembersJoinedSystemMessage
44
+ * addedMembers: [ // UserIdList // required
45
+ * "STRING_VALUE",
46
+ * ],
47
+ * },
48
+ * },
49
+ * event: "STRING_VALUE",
50
+ * silent: true || false,
51
+ * };
52
+ * const command = new SendSystemMessageCommand(input);
53
+ * const response = await client.send(command);
54
+ * // { // SendSystemMessageOutput
55
+ * // message: { // Message
56
+ * // messageId: "STRING_VALUE", // required
57
+ * // userId: "STRING_VALUE", // required
58
+ * // messageType: "regular" || "system", // required
59
+ * // text: "STRING_VALUE",
60
+ * // attachments: [ // MessageAttachmentList // required
61
+ * // { // MessageAttachment
62
+ * // fsId: "STRING_VALUE", // required
63
+ * // mime: "STRING_VALUE",
64
+ * // name: "STRING_VALUE", // required
65
+ * // size: Number("long"), // required
66
+ * // width: Number("int"),
67
+ * // height: Number("int"),
68
+ * // thumbnail: "STRING_VALUE",
69
+ * // id: "STRING_VALUE", // required
70
+ * // },
71
+ * // ],
72
+ * // mentions: [ // UserIdList // required
73
+ * // "STRING_VALUE",
74
+ * // ],
75
+ * // quote: { // MessageQuote
76
+ * // channelId: "STRING_VALUE", // required
77
+ * // messageId: "STRING_VALUE", // required
78
+ * // userId: "STRING_VALUE", // required
79
+ * // text: "STRING_VALUE",
80
+ * // createdAt: "STRING_VALUE", // required
81
+ * // },
82
+ * // forward: { // MessageForward
83
+ * // channelId: "STRING_VALUE", // required
84
+ * // messageId: "STRING_VALUE", // required
85
+ * // userId: "STRING_VALUE", // required
86
+ * // forwardedAt: "STRING_VALUE", // required
87
+ * // },
88
+ * // reactionCounts: { // ReactionCounts // required
89
+ * // "<keys>": Number("int"),
90
+ * // },
91
+ * // latestReactions: [ // ReactionList
92
+ * // { // Reaction
93
+ * // type: "STRING_VALUE", // required
94
+ * // userId: "STRING_VALUE", // required
95
+ * // messageId: "STRING_VALUE", // required
96
+ * // },
97
+ * // ],
98
+ * // pinned: true || false, // required
99
+ * // pinnedAt: "STRING_VALUE",
100
+ * // pinnedBy: "STRING_VALUE",
101
+ * // system: true || false, // required
102
+ * // timelineSeq: Number("long"), // required
103
+ * // visibleSeq: Number("long"), // required
104
+ * // channelVersion: Number("long"), // required
105
+ * // messageVersion: Number("long"), // required
106
+ * // createdAt: "STRING_VALUE", // required
107
+ * // editedAt: "STRING_VALUE",
108
+ * // deletedAt: "STRING_VALUE",
109
+ * // elements: [ // ElementsList
110
+ * // { // Element Union: only one key present
111
+ * // template: { // MessageTemplateConfig
112
+ * // whatsapp: { // TemplateWithParameters
113
+ * // name: "STRING_VALUE", // required
114
+ * // parameters: [ // ListTemplateParameter
115
+ * // { // TemplateParameter
116
+ * // name: "STRING_VALUE", // required
117
+ * // value: "STRING_VALUE", // required
118
+ * // },
119
+ * // ],
120
+ * // },
121
+ * // },
122
+ * // actions: [ // ActionsElementsList
123
+ * // { // ActionElement Union: only one key present
124
+ * // button: { // ButtonElement
125
+ * // text: "STRING_VALUE", // required
126
+ * // handler: { // ButtonHandler Union: only one key present
127
+ * // link: { // ButtonLinkHandler
128
+ * // url: "STRING_VALUE", // required
129
+ * // },
130
+ * // reply: { // ButtonReplyHandler
131
+ * // text: "STRING_VALUE",
132
+ * // },
133
+ * // action: { // ButtonActionHandler
134
+ * // id: "STRING_VALUE", // required
135
+ * // },
136
+ * // },
137
+ * // variant: "contained" || "outlined",
138
+ * // disabled: true || false,
139
+ * // },
140
+ * // },
141
+ * // ],
142
+ * // },
143
+ * // ],
144
+ * // whatsapp: true || false,
145
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
146
+ * // sms: true || false,
147
+ * // smsStatus: "sent" || "delivered" || "trying" || "error",
148
+ * // markdown: true || false,
149
+ * // giphy: { // MessageGiphy
150
+ * // id: "STRING_VALUE", // required
151
+ * // size: "STRING_VALUE", // required
152
+ * // url: "STRING_VALUE", // required
153
+ * // height: "STRING_VALUE", // required
154
+ * // width: "STRING_VALUE", // required
155
+ * // },
156
+ * // silent: true || false,
157
+ * // event: "STRING_VALUE",
158
+ * // },
159
+ * // };
160
+ *
161
+ * ```
162
+ *
163
+ * @param SendSystemMessageCommandInput - {@link SendSystemMessageCommandInput}
164
+ * @returns {@link SendSystemMessageCommandOutput}
165
+ * @see {@link SendSystemMessageCommandInput} for command's `input` shape.
166
+ * @see {@link SendSystemMessageCommandOutput} for command's `response` shape.
167
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
168
+ *
169
+ * @throws {@link ChannelNotFoundException} (client fault)
170
+ *
171
+ * @throws {@link StreamServiceException} (server fault)
172
+ *
173
+ * @throws {@link UnauthorizedException} (client fault)
174
+ *
175
+ * @throws {@link ForbiddenException} (client fault)
176
+ *
177
+ * @throws {@link ValidationException} (client fault)
178
+ *
179
+ * @throws {@link RateLimitExceededException} (client fault)
180
+ *
181
+ * @throws {@link StreamServiceServiceException}
182
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
183
+ *
184
+ *
185
+ * @public
186
+ */
187
+ export declare class SendSystemMessageCommand extends SendSystemMessageCommand_base {
188
+ /** @internal type navigation helper, not in runtime. */
189
+ protected static __types: {
190
+ api: {
191
+ input: SendSystemMessageInput;
192
+ output: SendSystemMessageOutput;
193
+ };
194
+ sdk: {
195
+ input: SendSystemMessageCommandInput;
196
+ output: SendSystemMessageCommandOutput;
197
+ };
198
+ };
199
+ }
@@ -0,0 +1,84 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { SendTypingStartInput, SendTypingStartOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link SendTypingStartCommand}.
14
+ */
15
+ export interface SendTypingStartCommandInput extends SendTypingStartInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SendTypingStartCommand}.
21
+ */
22
+ export interface SendTypingStartCommandOutput extends SendTypingStartOutput, __MetadataBearer {
23
+ }
24
+ declare const SendTypingStartCommand_base: {
25
+ new (input: SendTypingStartCommandInput): import("@smithy/smithy-client").CommandImpl<SendTypingStartCommandInput, SendTypingStartCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SendTypingStartCommandInput): import("@smithy/smithy-client").CommandImpl<SendTypingStartCommandInput, SendTypingStartCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Broadcasts a typing-start indicator for the current user in a channel.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, SendTypingStartCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, SendTypingStartCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // SendTypingStartInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new SendTypingStartCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param SendTypingStartCommandInput - {@link SendTypingStartCommandInput}
49
+ * @returns {@link SendTypingStartCommandOutput}
50
+ * @see {@link SendTypingStartCommandInput} for command's `input` shape.
51
+ * @see {@link SendTypingStartCommandOutput} for command's `response` shape.
52
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
53
+ *
54
+ * @throws {@link ChannelNotFoundException} (client fault)
55
+ *
56
+ * @throws {@link StreamServiceException} (server fault)
57
+ *
58
+ * @throws {@link UnauthorizedException} (client fault)
59
+ *
60
+ * @throws {@link ForbiddenException} (client fault)
61
+ *
62
+ * @throws {@link ValidationException} (client fault)
63
+ *
64
+ * @throws {@link RateLimitExceededException} (client fault)
65
+ *
66
+ * @throws {@link StreamServiceServiceException}
67
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
68
+ *
69
+ *
70
+ * @public
71
+ */
72
+ export declare class SendTypingStartCommand extends SendTypingStartCommand_base {
73
+ /** @internal type navigation helper, not in runtime. */
74
+ protected static __types: {
75
+ api: {
76
+ input: SendTypingStartInput;
77
+ output: {};
78
+ };
79
+ sdk: {
80
+ input: SendTypingStartCommandInput;
81
+ output: SendTypingStartCommandOutput;
82
+ };
83
+ };
84
+ }