@wildix/stream-client 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/dist-cjs/StreamService.js +98 -6
  2. package/dist-cjs/commands/AddChannelMemberCommand.js +21 -0
  3. package/dist-cjs/commands/AddChannelMembersCommand.js +21 -0
  4. package/dist-cjs/commands/AssignChannelCommand.js +21 -0
  5. package/dist-cjs/commands/CreateGroupChannelCommand.js +21 -0
  6. package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
  7. package/dist-cjs/commands/CreateSectionCommand.js +21 -0
  8. package/dist-cjs/commands/DeleteChannelCommand.js +21 -0
  9. package/dist-cjs/commands/DeleteChannelMemberCommand.js +21 -0
  10. package/dist-cjs/commands/DeleteMessageReactionCommand.js +21 -0
  11. package/dist-cjs/commands/DeleteSectionCommand.js +21 -0
  12. package/dist-cjs/commands/GetChannelCommand.js +21 -0
  13. package/dist-cjs/commands/GetChannelMemberCommand.js +21 -0
  14. package/dist-cjs/commands/GetDirectChannelIdCommand.js +21 -0
  15. package/dist-cjs/commands/GetFilePresignedDownloadUrlCommand.js +21 -0
  16. package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +21 -0
  17. package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +21 -0
  18. package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +21 -0
  19. package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +21 -0
  20. package/dist-cjs/commands/GetSmsChannelIdCommand.js +21 -0
  21. package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +21 -0
  22. package/dist-cjs/commands/GetTokenCommand.js +21 -0
  23. package/dist-cjs/commands/GetUploadedFileInfoCommand.js +21 -0
  24. package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +21 -0
  25. package/dist-cjs/commands/{AddReactionCommand.js → HideChannelCommand.js} +7 -7
  26. package/dist-cjs/commands/{EditMessageCommand.js → JoinChannelCommand.js} +7 -7
  27. package/dist-cjs/commands/LeaveChannelCommand.js +21 -0
  28. package/dist-cjs/commands/ListChannelMembersCommand.js +21 -0
  29. package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +21 -0
  30. package/dist-cjs/commands/MarkReadCommand.js +21 -0
  31. package/dist-cjs/commands/MarkUnreadCommand.js +21 -0
  32. package/dist-cjs/commands/MoveChannelToSectionCommand.js +21 -0
  33. package/dist-cjs/commands/MuteChannelCommand.js +21 -0
  34. package/dist-cjs/commands/PartialUpdateChannelCommand.js +21 -0
  35. package/dist-cjs/commands/PartialUpdateMessageCommand.js +21 -0
  36. package/dist-cjs/commands/PinChannelCommand.js +21 -0
  37. package/dist-cjs/commands/QueryChannelsCommand.js +21 -0
  38. package/dist-cjs/commands/RemoveChannelFromSectionCommand.js +21 -0
  39. package/dist-cjs/commands/RenameSectionCommand.js +21 -0
  40. package/dist-cjs/commands/SendGiphyCommand.js +21 -0
  41. package/dist-cjs/commands/SendMessageReactionCommand.js +21 -0
  42. package/dist-cjs/commands/SendSystemMessageCommand.js +21 -0
  43. package/dist-cjs/commands/SendTypingStartCommand.js +21 -0
  44. package/dist-cjs/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +7 -7
  45. package/dist-cjs/commands/ShowChannelCommand.js +21 -0
  46. package/dist-cjs/commands/UnmuteChannelCommand.js +21 -0
  47. package/dist-cjs/commands/UnpinChannelCommand.js +21 -0
  48. package/dist-cjs/commands/UpdateChannelCommand.js +21 -0
  49. package/dist-cjs/commands/UpdateMessageCommand.js +21 -0
  50. package/dist-cjs/commands/UploadFileCommand.js +21 -0
  51. package/dist-cjs/commands/index.js +49 -3
  52. package/dist-cjs/models/models_0.js +254 -49
  53. package/dist-cjs/protocols/Aws_restJson1.js +1954 -130
  54. package/dist-es/StreamService.js +98 -6
  55. package/dist-es/commands/AddChannelMemberCommand.js +17 -0
  56. package/dist-es/commands/AddChannelMembersCommand.js +17 -0
  57. package/dist-es/commands/AssignChannelCommand.js +17 -0
  58. package/dist-es/commands/CreateGroupChannelCommand.js +17 -0
  59. package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
  60. package/dist-es/commands/CreateSectionCommand.js +17 -0
  61. package/dist-es/commands/DeleteChannelCommand.js +17 -0
  62. package/dist-es/commands/DeleteChannelMemberCommand.js +17 -0
  63. package/dist-es/commands/DeleteMessageReactionCommand.js +17 -0
  64. package/dist-es/commands/DeleteSectionCommand.js +17 -0
  65. package/dist-es/commands/GetChannelCommand.js +17 -0
  66. package/dist-es/commands/GetChannelMemberCommand.js +17 -0
  67. package/dist-es/commands/GetDirectChannelIdCommand.js +17 -0
  68. package/dist-es/commands/GetFilePresignedDownloadUrlCommand.js +17 -0
  69. package/dist-es/commands/GetOrCreateDirectChannelCommand.js +17 -0
  70. package/dist-es/commands/GetOrCreateSmsChannelCommand.js +17 -0
  71. package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +17 -0
  72. package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +17 -0
  73. package/dist-es/commands/GetSmsChannelIdCommand.js +17 -0
  74. package/dist-es/commands/GetTelephonyChannelIdCommand.js +17 -0
  75. package/dist-es/commands/GetTokenCommand.js +17 -0
  76. package/dist-es/commands/GetUploadedFileInfoCommand.js +17 -0
  77. package/dist-es/commands/GetWhatsAppChannelIdCommand.js +17 -0
  78. package/dist-es/commands/{EditMessageCommand.js → HideChannelCommand.js} +6 -6
  79. package/dist-es/commands/{AddReactionCommand.js → JoinChannelCommand.js} +6 -6
  80. package/dist-es/commands/LeaveChannelCommand.js +17 -0
  81. package/dist-es/commands/ListChannelMembersCommand.js +17 -0
  82. package/dist-es/commands/ListChannelMembersReadStatusCommand.js +17 -0
  83. package/dist-es/commands/MarkReadCommand.js +17 -0
  84. package/dist-es/commands/MarkUnreadCommand.js +17 -0
  85. package/dist-es/commands/MoveChannelToSectionCommand.js +17 -0
  86. package/dist-es/commands/MuteChannelCommand.js +17 -0
  87. package/dist-es/commands/PartialUpdateChannelCommand.js +17 -0
  88. package/dist-es/commands/PartialUpdateMessageCommand.js +17 -0
  89. package/dist-es/commands/PinChannelCommand.js +17 -0
  90. package/dist-es/commands/QueryChannelsCommand.js +17 -0
  91. package/dist-es/commands/RemoveChannelFromSectionCommand.js +17 -0
  92. package/dist-es/commands/RenameSectionCommand.js +17 -0
  93. package/dist-es/commands/SendGiphyCommand.js +17 -0
  94. package/dist-es/commands/SendMessageReactionCommand.js +17 -0
  95. package/dist-es/commands/SendSystemMessageCommand.js +17 -0
  96. package/dist-es/commands/SendTypingStartCommand.js +17 -0
  97. package/dist-es/commands/{RemoveReactionCommand.js → SendTypingStopCommand.js} +6 -6
  98. package/dist-es/commands/ShowChannelCommand.js +17 -0
  99. package/dist-es/commands/UnmuteChannelCommand.js +17 -0
  100. package/dist-es/commands/UnpinChannelCommand.js +17 -0
  101. package/dist-es/commands/UpdateChannelCommand.js +17 -0
  102. package/dist-es/commands/UpdateMessageCommand.js +17 -0
  103. package/dist-es/commands/UploadFileCommand.js +17 -0
  104. package/dist-es/commands/index.js +49 -3
  105. package/dist-es/models/models_0.js +242 -46
  106. package/dist-es/protocols/Aws_restJson1.js +1842 -112
  107. package/dist-types/StreamService.d.ts +341 -15
  108. package/dist-types/StreamServiceClient.d.ts +51 -5
  109. package/dist-types/commands/AddChannelMemberCommand.d.ts +101 -0
  110. package/dist-types/commands/AddChannelMembersCommand.d.ts +108 -0
  111. package/dist-types/commands/AssignChannelCommand.d.ts +96 -0
  112. package/dist-types/commands/CreateGroupChannelCommand.d.ts +201 -0
  113. package/dist-types/commands/CreateKiteChannelCommand.d.ts +291 -0
  114. package/dist-types/commands/CreateSectionCommand.d.ts +96 -0
  115. package/dist-types/commands/DeleteChannelCommand.d.ts +82 -0
  116. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +88 -0
  117. package/dist-types/commands/DeleteMessageCommand.d.ts +1 -1
  118. package/dist-types/commands/{RemoveReactionCommand.d.ts → DeleteMessageReactionCommand.d.ts} +26 -27
  119. package/dist-types/commands/DeleteSectionCommand.d.ts +84 -0
  120. package/dist-types/commands/GetChannelCommand.d.ts +150 -0
  121. package/dist-types/commands/GetChannelMemberCommand.d.ts +93 -0
  122. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +90 -0
  123. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +94 -0
  124. package/dist-types/commands/GetInboxCommand.d.ts +35 -35
  125. package/dist-types/commands/GetMessageCommand.d.ts +4 -5
  126. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +154 -0
  127. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +151 -0
  128. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +150 -0
  129. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +151 -0
  130. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +86 -0
  131. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +86 -0
  132. package/dist-types/commands/GetTokenCommand.d.ts +85 -0
  133. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +98 -0
  134. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +86 -0
  135. package/dist-types/commands/HideChannelCommand.d.ts +84 -0
  136. package/dist-types/commands/JoinChannelCommand.d.ts +151 -0
  137. package/dist-types/commands/LeaveChannelCommand.d.ts +85 -0
  138. package/dist-types/commands/ListChannelMembersCommand.d.ts +94 -0
  139. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +92 -0
  140. package/dist-types/commands/ListChannelsCommand.d.ts +35 -35
  141. package/dist-types/commands/ListMentionsCommand.d.ts +5 -6
  142. package/dist-types/commands/ListMessagesCommand.d.ts +4 -5
  143. package/dist-types/commands/MarkReadCommand.d.ts +99 -0
  144. package/dist-types/commands/MarkUnreadCommand.d.ts +103 -0
  145. package/dist-types/commands/MoveChannelToSectionCommand.d.ts +101 -0
  146. package/dist-types/commands/MuteChannelCommand.d.ts +99 -0
  147. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +195 -0
  148. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +261 -0
  149. package/dist-types/commands/PinChannelCommand.d.ts +87 -0
  150. package/dist-types/commands/PinMessageCommand.d.ts +4 -5
  151. package/dist-types/commands/QueryChannelsCommand.d.ts +167 -0
  152. package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +101 -0
  153. package/dist-types/commands/RenameSectionCommand.d.ts +98 -0
  154. package/dist-types/commands/{EditMessageCommand.d.ts → SendGiphyCommand.d.ts} +40 -41
  155. package/dist-types/commands/SendMessageCommand.d.ts +52 -12
  156. package/dist-types/commands/{AddReactionCommand.d.ts → SendMessageReactionCommand.d.ts} +27 -28
  157. package/dist-types/commands/SendSystemMessageCommand.d.ts +199 -0
  158. package/dist-types/commands/SendTypingStartCommand.d.ts +84 -0
  159. package/dist-types/commands/SendTypingStopCommand.d.ts +84 -0
  160. package/dist-types/commands/ShowChannelCommand.d.ts +84 -0
  161. package/dist-types/commands/UnmuteChannelCommand.d.ts +98 -0
  162. package/dist-types/commands/UnpinChannelCommand.d.ts +84 -0
  163. package/dist-types/commands/UnpinMessageCommand.d.ts +4 -5
  164. package/dist-types/commands/UpdateChannelCommand.d.ts +190 -0
  165. package/dist-types/commands/UpdateMessageCommand.d.ts +256 -0
  166. package/dist-types/commands/UploadFileCommand.d.ts +94 -0
  167. package/dist-types/commands/index.d.ts +49 -3
  168. package/dist-types/models/models_0.d.ts +3076 -563
  169. package/dist-types/protocols/Aws_restJson1.d.ts +429 -15
  170. package/package.json +1 -1
@@ -0,0 +1,98 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { RenameSectionInput, RenameSectionOutput } 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 RenameSectionCommand}.
14
+ */
15
+ export interface RenameSectionCommandInput extends RenameSectionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link RenameSectionCommand}.
21
+ */
22
+ export interface RenameSectionCommandOutput extends RenameSectionOutput, __MetadataBearer {
23
+ }
24
+ declare const RenameSectionCommand_base: {
25
+ new (input: RenameSectionCommandInput): import("@smithy/smithy-client").CommandImpl<RenameSectionCommandInput, RenameSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: RenameSectionCommandInput): import("@smithy/smithy-client").CommandImpl<RenameSectionCommandInput, RenameSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Renames a custom inbox section.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, RenameSectionCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, RenameSectionCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // RenameSectionInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * sectionId: "STRING_VALUE", // required
41
+ * name: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new RenameSectionCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // RenameSectionOutput
46
+ * // section: { // Section
47
+ * // sectionId: "STRING_VALUE", // required
48
+ * // name: "STRING_VALUE", // required
49
+ * // type: "system" || "custom", // required
50
+ * // channelCount: Number("int"), // required
51
+ * // unread: { // SectionUnreadCounters
52
+ * // unmutedUnreadChannelCount: Number("int"), // required
53
+ * // unmutedUnreadMessageCount: Number("int"), // required
54
+ * // mutedUnreadMessageCount: Number("int"), // required
55
+ * // unreadMentionCount: Number("int"), // required
56
+ * // },
57
+ * // },
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param RenameSectionCommandInput - {@link RenameSectionCommandInput}
63
+ * @returns {@link RenameSectionCommandOutput}
64
+ * @see {@link RenameSectionCommandInput} for command's `input` shape.
65
+ * @see {@link RenameSectionCommandOutput} for command's `response` shape.
66
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
67
+ *
68
+ * @throws {@link SectionNotFoundException} (client fault)
69
+ *
70
+ * @throws {@link StreamServiceException} (server fault)
71
+ *
72
+ * @throws {@link UnauthorizedException} (client fault)
73
+ *
74
+ * @throws {@link ForbiddenException} (client fault)
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ *
78
+ * @throws {@link RateLimitExceededException} (client fault)
79
+ *
80
+ * @throws {@link StreamServiceServiceException}
81
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
82
+ *
83
+ *
84
+ * @public
85
+ */
86
+ export declare class RenameSectionCommand extends RenameSectionCommand_base {
87
+ /** @internal type navigation helper, not in runtime. */
88
+ protected static __types: {
89
+ api: {
90
+ input: RenameSectionInput;
91
+ output: RenameSectionOutput;
92
+ };
93
+ sdk: {
94
+ input: RenameSectionCommandInput;
95
+ output: RenameSectionCommandOutput;
96
+ };
97
+ };
98
+ }
@@ -1,5 +1,5 @@
1
1
  import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
- import { EditMessageInput, EditMessageOutput } from "../models/models_0";
2
+ import { SendGiphyInput, SendGiphyOutput } from "../models/models_0";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
@@ -10,54 +10,54 @@ export { $Command };
10
10
  /**
11
11
  * @public
12
12
  *
13
- * The input for {@link EditMessageCommand}.
13
+ * The input for {@link SendGiphyCommand}.
14
14
  */
15
- export interface EditMessageCommandInput extends EditMessageInput {
15
+ export interface SendGiphyCommandInput extends SendGiphyInput {
16
16
  }
17
17
  /**
18
18
  * @public
19
19
  *
20
- * The output of {@link EditMessageCommand}.
20
+ * The output of {@link SendGiphyCommand}.
21
21
  */
22
- export interface EditMessageCommandOutput extends EditMessageOutput, __MetadataBearer {
22
+ export interface SendGiphyCommandOutput extends SendGiphyOutput, __MetadataBearer {
23
23
  }
24
- declare const EditMessageCommand_base: {
25
- new (input: EditMessageCommandInput): import("@smithy/smithy-client").CommandImpl<EditMessageCommandInput, EditMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: EditMessageCommandInput): import("@smithy/smithy-client").CommandImpl<EditMessageCommandInput, EditMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
24
+ declare const SendGiphyCommand_base: {
25
+ new (input: SendGiphyCommandInput): import("@smithy/smithy-client").CommandImpl<SendGiphyCommandInput, SendGiphyCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SendGiphyCommandInput): import("@smithy/smithy-client").CommandImpl<SendGiphyCommandInput, SendGiphyCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Rewrites the content of an existing message in place. Edits change `text`, `attachments`, and `mentions[]` only and never move the message in the timeline. The server rejects payloads that would empty both `text` and `attachments`. Returns the rewritten message snapshot with `messageVersion` incremented and `editedAt` set.
30
+ * Persists a Giphy message to a channel. 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
34
- * import { StreamServiceClient, EditMessageCommand } from "@wildix/stream-client"; // ES Modules import
35
- * // const { StreamServiceClient, EditMessageCommand } = require("@wildix/stream-client"); // CommonJS import
34
+ * import { StreamServiceClient, SendGiphyCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, SendGiphyCommand } = require("@wildix/stream-client"); // CommonJS import
36
36
  * const client = new StreamServiceClient(config);
37
- * const input = { // EditMessageInput
37
+ * const input = { // SendGiphyInput
38
38
  * companyId: "STRING_VALUE",
39
39
  * userId: "STRING_VALUE",
40
40
  * channelId: "STRING_VALUE", // required
41
- * messageId: "STRING_VALUE", // required
42
- * text: "STRING_VALUE",
43
- * attachments: [ // MessageAttachmentRequestList
44
- * { // MessageAttachmentRequest
45
- * fsId: "STRING_VALUE", // required
46
- * mime: "STRING_VALUE",
47
- * name: "STRING_VALUE", // required
48
- * size: Number("long"), // required
49
- * width: Number("int"),
50
- * height: Number("int"),
51
- * thumbnail: "STRING_VALUE",
52
- * },
53
- * ],
41
+ * messageId: "STRING_VALUE",
42
+ * giphy: { // MessageGiphy
43
+ * id: "STRING_VALUE", // required
44
+ * size: "STRING_VALUE", // required
45
+ * url: "STRING_VALUE", // required
46
+ * height: "STRING_VALUE", // required
47
+ * width: "STRING_VALUE", // required
48
+ * },
54
49
  * mentions: [ // UserIdList
55
50
  * "STRING_VALUE",
56
51
  * ],
52
+ * quote: { // MessageQuoteRef
53
+ * channelId: "STRING_VALUE", // required
54
+ * messageId: "STRING_VALUE", // required
55
+ * },
56
+ * silent: true || false,
57
57
  * };
58
- * const command = new EditMessageCommand(input);
58
+ * const command = new SendGiphyCommand(input);
59
59
  * const response = await client.send(command);
60
- * // { // EditMessageOutput
60
+ * // { // SendGiphyOutput
61
61
  * // message: { // Message
62
62
  * // messageId: "STRING_VALUE", // required
63
63
  * // userId: "STRING_VALUE", // required
@@ -96,10 +96,9 @@ declare const EditMessageCommand_base: {
96
96
  * // },
97
97
  * // latestReactions: [ // ReactionList
98
98
  * // { // Reaction
99
- * // type: "STRING_VALUE",
100
- * // userId: "STRING_VALUE",
101
- * // messageId: "STRING_VALUE",
102
- * // user: "STRING_VALUE",
99
+ * // type: "STRING_VALUE", // required
100
+ * // userId: "STRING_VALUE", // required
101
+ * // messageId: "STRING_VALUE", // required
103
102
  * // },
104
103
  * // ],
105
104
  * // pinned: true || false, // required
@@ -167,17 +166,17 @@ declare const EditMessageCommand_base: {
167
166
  *
168
167
  * ```
169
168
  *
170
- * @param EditMessageCommandInput - {@link EditMessageCommandInput}
171
- * @returns {@link EditMessageCommandOutput}
172
- * @see {@link EditMessageCommandInput} for command's `input` shape.
173
- * @see {@link EditMessageCommandOutput} for command's `response` shape.
169
+ * @param SendGiphyCommandInput - {@link SendGiphyCommandInput}
170
+ * @returns {@link SendGiphyCommandOutput}
171
+ * @see {@link SendGiphyCommandInput} for command's `input` shape.
172
+ * @see {@link SendGiphyCommandOutput} for command's `response` shape.
174
173
  * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
175
174
  *
176
175
  * @throws {@link ChannelNotFoundException} (client fault)
177
176
  *
178
177
  * @throws {@link MessageNotFoundException} (client fault)
179
178
  *
180
- * @throws {@link InternalServerError} (server fault)
179
+ * @throws {@link StreamServiceException} (server fault)
181
180
  *
182
181
  * @throws {@link UnauthorizedException} (client fault)
183
182
  *
@@ -193,16 +192,16 @@ declare const EditMessageCommand_base: {
193
192
  *
194
193
  * @public
195
194
  */
196
- export declare class EditMessageCommand extends EditMessageCommand_base {
195
+ export declare class SendGiphyCommand extends SendGiphyCommand_base {
197
196
  /** @internal type navigation helper, not in runtime. */
198
197
  protected static __types: {
199
198
  api: {
200
- input: EditMessageInput;
201
- output: EditMessageOutput;
199
+ input: SendGiphyInput;
200
+ output: SendGiphyOutput;
202
201
  };
203
202
  sdk: {
204
- input: EditMessageCommandInput;
205
- output: EditMessageCommandOutput;
203
+ input: SendGiphyCommandInput;
204
+ output: SendGiphyCommandOutput;
206
205
  };
207
206
  };
208
207
  }
@@ -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);
@@ -105,10 +146,9 @@ declare const SendMessageCommand_base: {
105
146
  * // },
106
147
  * // latestReactions: [ // ReactionList
107
148
  * // { // Reaction
108
- * // type: "STRING_VALUE",
109
- * // userId: "STRING_VALUE",
110
- * // messageId: "STRING_VALUE",
111
- * // user: "STRING_VALUE",
149
+ * // type: "STRING_VALUE", // required
150
+ * // userId: "STRING_VALUE", // required
151
+ * // messageId: "STRING_VALUE", // required
112
152
  * // },
113
153
  * // ],
114
154
  * // pinned: true || false, // required
@@ -186,7 +226,7 @@ declare const SendMessageCommand_base: {
186
226
  *
187
227
  * @throws {@link MessageNotFoundException} (client fault)
188
228
  *
189
- * @throws {@link InternalServerError} (server fault)
229
+ * @throws {@link StreamServiceException} (server fault)
190
230
  *
191
231
  * @throws {@link UnauthorizedException} (client fault)
192
232
  *
@@ -1,5 +1,5 @@
1
1
  import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
- import { AddReactionInput, AddReactionOutput } from "../models/models_0";
2
+ import { SendMessageReactionInput, SendMessageReactionOutput } from "../models/models_0";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
@@ -10,40 +10,40 @@ export { $Command };
10
10
  /**
11
11
  * @public
12
12
  *
13
- * The input for {@link AddReactionCommand}.
13
+ * The input for {@link SendMessageReactionCommand}.
14
14
  */
15
- export interface AddReactionCommandInput extends AddReactionInput {
15
+ export interface SendMessageReactionCommandInput extends SendMessageReactionInput {
16
16
  }
17
17
  /**
18
18
  * @public
19
19
  *
20
- * The output of {@link AddReactionCommand}.
20
+ * The output of {@link SendMessageReactionCommand}.
21
21
  */
22
- export interface AddReactionCommandOutput extends AddReactionOutput, __MetadataBearer {
22
+ export interface SendMessageReactionCommandOutput extends SendMessageReactionOutput, __MetadataBearer {
23
23
  }
24
- declare const AddReactionCommand_base: {
25
- new (input: AddReactionCommandInput): import("@smithy/smithy-client").CommandImpl<AddReactionCommandInput, AddReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: AddReactionCommandInput): import("@smithy/smithy-client").CommandImpl<AddReactionCommandInput, AddReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
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
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Adds the current user's reaction of `<type>` on one message. The denormalized `reactionCounts` map on the message row is enough for rendering counters; the full reactor list per `<type>` is fetched on demand. Duplicate adds are absorbed and only the first apply advances `messageVersion`. Reactions on a deleted message are rejected.
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
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
34
- * import { StreamServiceClient, AddReactionCommand } from "@wildix/stream-client"; // ES Modules import
35
- * // const { StreamServiceClient, AddReactionCommand } = require("@wildix/stream-client"); // CommonJS import
34
+ * import { StreamServiceClient, SendMessageReactionCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, SendMessageReactionCommand } = require("@wildix/stream-client"); // CommonJS import
36
36
  * const client = new StreamServiceClient(config);
37
- * const input = { // AddReactionInput
37
+ * const input = { // SendMessageReactionInput
38
38
  * companyId: "STRING_VALUE",
39
39
  * userId: "STRING_VALUE",
40
40
  * channelId: "STRING_VALUE", // required
41
41
  * messageId: "STRING_VALUE", // required
42
42
  * type: "STRING_VALUE", // required
43
43
  * };
44
- * const command = new AddReactionCommand(input);
44
+ * const command = new SendMessageReactionCommand(input);
45
45
  * const response = await client.send(command);
46
- * // { // AddReactionOutput
46
+ * // { // SendMessageReactionOutput
47
47
  * // message: { // Message
48
48
  * // messageId: "STRING_VALUE", // required
49
49
  * // userId: "STRING_VALUE", // required
@@ -82,10 +82,9 @@ declare const AddReactionCommand_base: {
82
82
  * // },
83
83
  * // latestReactions: [ // ReactionList
84
84
  * // { // Reaction
85
- * // type: "STRING_VALUE",
86
- * // userId: "STRING_VALUE",
87
- * // messageId: "STRING_VALUE",
88
- * // user: "STRING_VALUE",
85
+ * // type: "STRING_VALUE", // required
86
+ * // userId: "STRING_VALUE", // required
87
+ * // messageId: "STRING_VALUE", // required
89
88
  * // },
90
89
  * // ],
91
90
  * // pinned: true || false, // required
@@ -153,17 +152,17 @@ declare const AddReactionCommand_base: {
153
152
  *
154
153
  * ```
155
154
  *
156
- * @param AddReactionCommandInput - {@link AddReactionCommandInput}
157
- * @returns {@link AddReactionCommandOutput}
158
- * @see {@link AddReactionCommandInput} for command's `input` shape.
159
- * @see {@link AddReactionCommandOutput} for command's `response` shape.
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.
160
159
  * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
161
160
  *
162
161
  * @throws {@link ChannelNotFoundException} (client fault)
163
162
  *
164
163
  * @throws {@link MessageNotFoundException} (client fault)
165
164
  *
166
- * @throws {@link InternalServerError} (server fault)
165
+ * @throws {@link StreamServiceException} (server fault)
167
166
  *
168
167
  * @throws {@link UnauthorizedException} (client fault)
169
168
  *
@@ -179,16 +178,16 @@ declare const AddReactionCommand_base: {
179
178
  *
180
179
  * @public
181
180
  */
182
- export declare class AddReactionCommand extends AddReactionCommand_base {
181
+ export declare class SendMessageReactionCommand extends SendMessageReactionCommand_base {
183
182
  /** @internal type navigation helper, not in runtime. */
184
183
  protected static __types: {
185
184
  api: {
186
- input: AddReactionInput;
187
- output: AddReactionOutput;
185
+ input: SendMessageReactionInput;
186
+ output: SendMessageReactionOutput;
188
187
  };
189
188
  sdk: {
190
- input: AddReactionCommandInput;
191
- output: AddReactionCommandOutput;
189
+ input: SendMessageReactionCommandInput;
190
+ output: SendMessageReactionCommandOutput;
192
191
  };
193
192
  };
194
193
  }