@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,190 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { UpdateChannelInput, UpdateChannelOutput } 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 UpdateChannelCommand}.
14
+ */
15
+ export interface UpdateChannelCommandInput extends UpdateChannelInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateChannelCommand}.
21
+ */
22
+ export interface UpdateChannelCommandOutput extends UpdateChannelOutput, __MetadataBearer {
23
+ }
24
+ declare const UpdateChannelCommand_base: {
25
+ new (input: UpdateChannelCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateChannelCommandInput, UpdateChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateChannelCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateChannelCommandInput, UpdateChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Replaces editable channel metadata.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, UpdateChannelCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, UpdateChannelCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // UpdateChannelInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * subject: "STRING_VALUE",
41
+ * description: "STRING_VALUE",
42
+ * picture: "STRING_VALUE",
43
+ * pictureColor: "STRING_VALUE",
44
+ * access: "private" || "public",
45
+ * broadcast: true || false,
46
+ * context: { // ChannelContext
47
+ * source: "kite",
48
+ * target: "STRING_VALUE",
49
+ * events: [ // ChannelContextEventList
50
+ * { // ChannelContextEvent
51
+ * id: "STRING_VALUE",
52
+ * owner: "STRING_VALUE",
53
+ * start: "STRING_VALUE",
54
+ * end: "STRING_VALUE",
55
+ * summary: "STRING_VALUE",
56
+ * attendees: [ // ChannelContextEventAttendeeList
57
+ * { // ChannelContextEventAttendee
58
+ * email: "STRING_VALUE", // required
59
+ * name: "STRING_VALUE",
60
+ * status: "accepted" || "tentative" || "declined" || "none", // required
61
+ * },
62
+ * ],
63
+ * },
64
+ * ],
65
+ * ptt: { // ChannelContextPushToTalk
66
+ * broadcastId: "STRING_VALUE",
67
+ * },
68
+ * },
69
+ * whatsappStatus: "24h_channel_closed",
70
+ * sms: true || false,
71
+ * mms: true || false,
72
+ * whatsapp: true || false,
73
+ * kiteAssign: "STRING_VALUE",
74
+ * serviceTitle: "STRING_VALUE",
75
+ * assigneeId: "STRING_VALUE",
76
+ * autoRecord: true || false,
77
+ * transcriptionLanguage: "STRING_VALUE",
78
+ * wizyGuestViewOnly: true || false,
79
+ * channelId: "STRING_VALUE", // required
80
+ * silent: true || false,
81
+ * };
82
+ * const command = new UpdateChannelCommand(input);
83
+ * const response = await client.send(command);
84
+ * // { // UpdateChannelOutput
85
+ * // channel: { // Channel
86
+ * // channelId: "STRING_VALUE", // required
87
+ * // channelType: "direct" || "group", // required
88
+ * // membersCount: Number("int"), // required
89
+ * // createdAt: "STRING_VALUE", // required
90
+ * // createdBy: "STRING_VALUE", // required
91
+ * // updatedAt: "STRING_VALUE",
92
+ * // channelVersion: Number("long"), // required
93
+ * // lastActivityAt: "STRING_VALUE", // required
94
+ * // lastMessage: { // LastMessagePreview
95
+ * // messageId: "STRING_VALUE", // required
96
+ * // userId: "STRING_VALUE", // required
97
+ * // text: "STRING_VALUE",
98
+ * // createdAt: "STRING_VALUE", // required
99
+ * // },
100
+ * // company: "STRING_VALUE",
101
+ * // kite: true || false,
102
+ * // kiteTarget: "STRING_VALUE",
103
+ * // kiteVariant: "STRING_VALUE",
104
+ * // kiteServiceName: "STRING_VALUE",
105
+ * // kiteDefaultSubject: "STRING_VALUE",
106
+ * // service: "STRING_VALUE",
107
+ * // serviceRecipient: "STRING_VALUE",
108
+ * // telephony: true || false,
109
+ * // external: true || false,
110
+ * // subject: "STRING_VALUE",
111
+ * // description: "STRING_VALUE",
112
+ * // picture: "STRING_VALUE",
113
+ * // pictureColor: "STRING_VALUE",
114
+ * // access: "private" || "public",
115
+ * // broadcast: true || false,
116
+ * // context: { // ChannelContext
117
+ * // source: "kite",
118
+ * // target: "STRING_VALUE",
119
+ * // events: [ // ChannelContextEventList
120
+ * // { // ChannelContextEvent
121
+ * // id: "STRING_VALUE",
122
+ * // owner: "STRING_VALUE",
123
+ * // start: "STRING_VALUE",
124
+ * // end: "STRING_VALUE",
125
+ * // summary: "STRING_VALUE",
126
+ * // attendees: [ // ChannelContextEventAttendeeList
127
+ * // { // ChannelContextEventAttendee
128
+ * // email: "STRING_VALUE", // required
129
+ * // name: "STRING_VALUE",
130
+ * // status: "accepted" || "tentative" || "declined" || "none", // required
131
+ * // },
132
+ * // ],
133
+ * // },
134
+ * // ],
135
+ * // ptt: { // ChannelContextPushToTalk
136
+ * // broadcastId: "STRING_VALUE",
137
+ * // },
138
+ * // },
139
+ * // whatsappStatus: "24h_channel_closed",
140
+ * // sms: true || false,
141
+ * // mms: true || false,
142
+ * // whatsapp: true || false,
143
+ * // kiteAssign: "STRING_VALUE",
144
+ * // serviceTitle: "STRING_VALUE",
145
+ * // assigneeId: "STRING_VALUE",
146
+ * // autoRecord: true || false,
147
+ * // transcriptionLanguage: "STRING_VALUE",
148
+ * // wizyGuestViewOnly: true || false,
149
+ * // },
150
+ * // };
151
+ *
152
+ * ```
153
+ *
154
+ * @param UpdateChannelCommandInput - {@link UpdateChannelCommandInput}
155
+ * @returns {@link UpdateChannelCommandOutput}
156
+ * @see {@link UpdateChannelCommandInput} for command's `input` shape.
157
+ * @see {@link UpdateChannelCommandOutput} for command's `response` shape.
158
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
159
+ *
160
+ * @throws {@link ChannelNotFoundException} (client fault)
161
+ *
162
+ * @throws {@link StreamServiceException} (server fault)
163
+ *
164
+ * @throws {@link UnauthorizedException} (client fault)
165
+ *
166
+ * @throws {@link ForbiddenException} (client fault)
167
+ *
168
+ * @throws {@link ValidationException} (client fault)
169
+ *
170
+ * @throws {@link RateLimitExceededException} (client fault)
171
+ *
172
+ * @throws {@link StreamServiceServiceException}
173
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
174
+ *
175
+ *
176
+ * @public
177
+ */
178
+ export declare class UpdateChannelCommand extends UpdateChannelCommand_base {
179
+ /** @internal type navigation helper, not in runtime. */
180
+ protected static __types: {
181
+ api: {
182
+ input: UpdateChannelInput;
183
+ output: UpdateChannelOutput;
184
+ };
185
+ sdk: {
186
+ input: UpdateChannelCommandInput;
187
+ output: UpdateChannelCommandOutput;
188
+ };
189
+ };
190
+ }
@@ -0,0 +1,256 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { UpdateMessageInput, UpdateMessageOutput } 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 UpdateMessageCommand}.
14
+ */
15
+ export interface UpdateMessageCommandInput extends UpdateMessageInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateMessageCommand}.
21
+ */
22
+ export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __MetadataBearer {
23
+ }
24
+ declare const UpdateMessageCommand_base: {
25
+ new (input: UpdateMessageCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateMessageCommandInput, UpdateMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateMessageCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateMessageCommandInput, UpdateMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Replaces the editable content of an existing message in place. Updates 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.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, UpdateMessageCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, UpdateMessageCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // UpdateMessageInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
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
+ * ],
76
+ * attachments: [ // MessageAttachmentRequestList
77
+ * { // MessageAttachmentRequest
78
+ * fsId: "STRING_VALUE", // required
79
+ * mime: "STRING_VALUE",
80
+ * name: "STRING_VALUE", // required
81
+ * size: Number("long"), // required
82
+ * width: Number("int"),
83
+ * height: Number("int"),
84
+ * thumbnail: "STRING_VALUE",
85
+ * },
86
+ * ],
87
+ * quote: { // MessageQuoteRef
88
+ * channelId: "STRING_VALUE", // required
89
+ * messageId: "STRING_VALUE", // required
90
+ * },
91
+ * forward: { // MessageForwardRef
92
+ * channelId: "STRING_VALUE", // required
93
+ * messageId: "STRING_VALUE", // required
94
+ * },
95
+ * markdown: true || false,
96
+ * mentions: [ // UserIdList
97
+ * "STRING_VALUE",
98
+ * ],
99
+ * whatsapp: true || false,
100
+ * whatsappStatus: "trying" || "sent" || "delivered" || "error",
101
+ * sms: true || false,
102
+ * smsStatus: "sent" || "delivered" || "trying" || "error",
103
+ * channelId: "STRING_VALUE", // required
104
+ * messageId: "STRING_VALUE", // required
105
+ * silent: true || false,
106
+ * };
107
+ * const command = new UpdateMessageCommand(input);
108
+ * const response = await client.send(command);
109
+ * // { // UpdateMessageOutput
110
+ * // message: { // Message
111
+ * // messageId: "STRING_VALUE", // required
112
+ * // userId: "STRING_VALUE", // required
113
+ * // messageType: "regular" || "system", // required
114
+ * // text: "STRING_VALUE",
115
+ * // attachments: [ // MessageAttachmentList // required
116
+ * // { // MessageAttachment
117
+ * // fsId: "STRING_VALUE", // required
118
+ * // mime: "STRING_VALUE",
119
+ * // name: "STRING_VALUE", // required
120
+ * // size: Number("long"), // required
121
+ * // width: Number("int"),
122
+ * // height: Number("int"),
123
+ * // thumbnail: "STRING_VALUE",
124
+ * // id: "STRING_VALUE", // required
125
+ * // },
126
+ * // ],
127
+ * // mentions: [ // UserIdList // required
128
+ * // "STRING_VALUE",
129
+ * // ],
130
+ * // quote: { // MessageQuote
131
+ * // channelId: "STRING_VALUE", // required
132
+ * // messageId: "STRING_VALUE", // required
133
+ * // userId: "STRING_VALUE", // required
134
+ * // text: "STRING_VALUE",
135
+ * // createdAt: "STRING_VALUE", // required
136
+ * // },
137
+ * // forward: { // MessageForward
138
+ * // channelId: "STRING_VALUE", // required
139
+ * // messageId: "STRING_VALUE", // required
140
+ * // userId: "STRING_VALUE", // required
141
+ * // forwardedAt: "STRING_VALUE", // required
142
+ * // },
143
+ * // reactionCounts: { // ReactionCounts // required
144
+ * // "<keys>": Number("int"),
145
+ * // },
146
+ * // latestReactions: [ // ReactionList
147
+ * // { // Reaction
148
+ * // type: "STRING_VALUE", // required
149
+ * // userId: "STRING_VALUE", // required
150
+ * // messageId: "STRING_VALUE", // required
151
+ * // },
152
+ * // ],
153
+ * // pinned: true || false, // required
154
+ * // pinnedAt: "STRING_VALUE",
155
+ * // pinnedBy: "STRING_VALUE",
156
+ * // system: true || false, // required
157
+ * // timelineSeq: Number("long"), // required
158
+ * // visibleSeq: Number("long"), // required
159
+ * // channelVersion: Number("long"), // required
160
+ * // messageVersion: Number("long"), // required
161
+ * // createdAt: "STRING_VALUE", // required
162
+ * // editedAt: "STRING_VALUE",
163
+ * // deletedAt: "STRING_VALUE",
164
+ * // elements: [ // ElementsList
165
+ * // { // Element Union: only one key present
166
+ * // template: { // MessageTemplateConfig
167
+ * // whatsapp: { // TemplateWithParameters
168
+ * // name: "STRING_VALUE", // required
169
+ * // parameters: [ // ListTemplateParameter
170
+ * // { // TemplateParameter
171
+ * // name: "STRING_VALUE", // required
172
+ * // value: "STRING_VALUE", // required
173
+ * // },
174
+ * // ],
175
+ * // },
176
+ * // },
177
+ * // actions: [ // ActionsElementsList
178
+ * // { // ActionElement Union: only one key present
179
+ * // button: { // ButtonElement
180
+ * // text: "STRING_VALUE", // required
181
+ * // handler: { // ButtonHandler Union: only one key present
182
+ * // link: { // ButtonLinkHandler
183
+ * // url: "STRING_VALUE", // required
184
+ * // },
185
+ * // reply: { // ButtonReplyHandler
186
+ * // text: "STRING_VALUE",
187
+ * // },
188
+ * // action: { // ButtonActionHandler
189
+ * // id: "STRING_VALUE", // required
190
+ * // },
191
+ * // },
192
+ * // variant: "contained" || "outlined",
193
+ * // disabled: true || false,
194
+ * // },
195
+ * // },
196
+ * // ],
197
+ * // },
198
+ * // ],
199
+ * // whatsapp: true || false,
200
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
201
+ * // sms: true || false,
202
+ * // smsStatus: "sent" || "delivered" || "trying" || "error",
203
+ * // markdown: true || false,
204
+ * // giphy: { // MessageGiphy
205
+ * // id: "STRING_VALUE", // required
206
+ * // size: "STRING_VALUE", // required
207
+ * // url: "STRING_VALUE", // required
208
+ * // height: "STRING_VALUE", // required
209
+ * // width: "STRING_VALUE", // required
210
+ * // },
211
+ * // silent: true || false,
212
+ * // event: "STRING_VALUE",
213
+ * // },
214
+ * // };
215
+ *
216
+ * ```
217
+ *
218
+ * @param UpdateMessageCommandInput - {@link UpdateMessageCommandInput}
219
+ * @returns {@link UpdateMessageCommandOutput}
220
+ * @see {@link UpdateMessageCommandInput} for command's `input` shape.
221
+ * @see {@link UpdateMessageCommandOutput} for command's `response` shape.
222
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
223
+ *
224
+ * @throws {@link ChannelNotFoundException} (client fault)
225
+ *
226
+ * @throws {@link MessageNotFoundException} (client fault)
227
+ *
228
+ * @throws {@link StreamServiceException} (server fault)
229
+ *
230
+ * @throws {@link UnauthorizedException} (client fault)
231
+ *
232
+ * @throws {@link ForbiddenException} (client fault)
233
+ *
234
+ * @throws {@link ValidationException} (client fault)
235
+ *
236
+ * @throws {@link RateLimitExceededException} (client fault)
237
+ *
238
+ * @throws {@link StreamServiceServiceException}
239
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
240
+ *
241
+ *
242
+ * @public
243
+ */
244
+ export declare class UpdateMessageCommand extends UpdateMessageCommand_base {
245
+ /** @internal type navigation helper, not in runtime. */
246
+ protected static __types: {
247
+ api: {
248
+ input: UpdateMessageInput;
249
+ output: UpdateMessageOutput;
250
+ };
251
+ sdk: {
252
+ input: UpdateMessageCommandInput;
253
+ output: UpdateMessageCommandOutput;
254
+ };
255
+ };
256
+ }
@@ -0,0 +1,94 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
2
+ import { UploadFileInput, UploadFileOutput } 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 UploadFileCommand}.
14
+ */
15
+ export interface UploadFileCommandInput extends UploadFileInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UploadFileCommand}.
21
+ */
22
+ export interface UploadFileCommandOutput extends UploadFileOutput, __MetadataBearer {
23
+ }
24
+ declare const UploadFileCommand_base: {
25
+ new (input: UploadFileCommandInput): import("@smithy/smithy-client").CommandImpl<UploadFileCommandInput, UploadFileCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UploadFileCommandInput): import("@smithy/smithy-client").CommandImpl<UploadFileCommandInput, UploadFileCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Creates a presigned URL for uploading a file into a channel. The returned `fsId` is referenced verbatim as `attachments[].fsId` when sending or editing a message.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, UploadFileCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, UploadFileCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * const client = new StreamServiceClient(config);
37
+ * const input = { // UploadFileInput
38
+ * companyId: "STRING_VALUE",
39
+ * userId: "STRING_VALUE",
40
+ * channelId: "STRING_VALUE", // required
41
+ * name: "STRING_VALUE", // required
42
+ * options: { // UploadFileOptions
43
+ * category: "channels" || "recordings" || "wizyconfRecordings",
44
+ * region: "STRING_VALUE",
45
+ * },
46
+ * };
47
+ * const command = new UploadFileCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // UploadFileOutput
50
+ * // fsId: "STRING_VALUE", // required
51
+ * // presignedUploadUrl: "STRING_VALUE", // required
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param UploadFileCommandInput - {@link UploadFileCommandInput}
57
+ * @returns {@link UploadFileCommandOutput}
58
+ * @see {@link UploadFileCommandInput} for command's `input` shape.
59
+ * @see {@link UploadFileCommandOutput} for command's `response` shape.
60
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
61
+ *
62
+ * @throws {@link ChannelNotFoundException} (client fault)
63
+ *
64
+ * @throws {@link MemberNotFoundException} (client fault)
65
+ *
66
+ * @throws {@link ValidationException} (client fault)
67
+ *
68
+ * @throws {@link ForbiddenException} (client fault)
69
+ *
70
+ * @throws {@link StreamServiceException} (server fault)
71
+ *
72
+ * @throws {@link UnauthorizedException} (client fault)
73
+ *
74
+ * @throws {@link RateLimitExceededException} (client fault)
75
+ *
76
+ * @throws {@link StreamServiceServiceException}
77
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
78
+ *
79
+ *
80
+ * @public
81
+ */
82
+ export declare class UploadFileCommand extends UploadFileCommand_base {
83
+ /** @internal type navigation helper, not in runtime. */
84
+ protected static __types: {
85
+ api: {
86
+ input: UploadFileInput;
87
+ output: UploadFileOutput;
88
+ };
89
+ sdk: {
90
+ input: UploadFileCommandInput;
91
+ output: UploadFileCommandOutput;
92
+ };
93
+ };
94
+ }
@@ -1,12 +1,58 @@
1
- export * from "./AddReactionCommand";
1
+ export * from "./AddChannelMemberCommand";
2
+ export * from "./AddChannelMembersCommand";
3
+ export * from "./AssignChannelCommand";
4
+ export * from "./CreateGroupChannelCommand";
5
+ export * from "./CreateKiteChannelCommand";
6
+ export * from "./CreateSectionCommand";
7
+ export * from "./DeleteChannelCommand";
8
+ export * from "./DeleteChannelMemberCommand";
2
9
  export * from "./DeleteMessageCommand";
3
- export * from "./EditMessageCommand";
10
+ export * from "./DeleteMessageReactionCommand";
11
+ export * from "./DeleteSectionCommand";
12
+ export * from "./GetChannelCommand";
13
+ export * from "./GetChannelMemberCommand";
14
+ export * from "./GetDirectChannelIdCommand";
15
+ export * from "./GetFilePresignedDownloadUrlCommand";
4
16
  export * from "./GetInboxCommand";
5
17
  export * from "./GetMessageCommand";
18
+ export * from "./GetOrCreateDirectChannelCommand";
19
+ export * from "./GetOrCreateSmsChannelCommand";
20
+ export * from "./GetOrCreateTelephonyChannelCommand";
21
+ export * from "./GetOrCreateWhatsAppChannelCommand";
22
+ export * from "./GetSmsChannelIdCommand";
23
+ export * from "./GetTelephonyChannelIdCommand";
24
+ export * from "./GetTokenCommand";
25
+ export * from "./GetUploadedFileInfoCommand";
26
+ export * from "./GetWhatsAppChannelIdCommand";
27
+ export * from "./HideChannelCommand";
28
+ export * from "./JoinChannelCommand";
29
+ export * from "./LeaveChannelCommand";
30
+ export * from "./ListChannelMembersCommand";
31
+ export * from "./ListChannelMembersReadStatusCommand";
6
32
  export * from "./ListChannelsCommand";
7
33
  export * from "./ListMentionsCommand";
8
34
  export * from "./ListMessagesCommand";
35
+ export * from "./MarkReadCommand";
36
+ export * from "./MarkUnreadCommand";
37
+ export * from "./MoveChannelToSectionCommand";
38
+ export * from "./MuteChannelCommand";
39
+ export * from "./PartialUpdateChannelCommand";
40
+ export * from "./PartialUpdateMessageCommand";
41
+ export * from "./PinChannelCommand";
9
42
  export * from "./PinMessageCommand";
10
- export * from "./RemoveReactionCommand";
43
+ export * from "./QueryChannelsCommand";
44
+ export * from "./RemoveChannelFromSectionCommand";
45
+ export * from "./RenameSectionCommand";
46
+ export * from "./SendGiphyCommand";
11
47
  export * from "./SendMessageCommand";
48
+ export * from "./SendMessageReactionCommand";
49
+ export * from "./SendSystemMessageCommand";
50
+ export * from "./SendTypingStartCommand";
51
+ export * from "./SendTypingStopCommand";
52
+ export * from "./ShowChannelCommand";
53
+ export * from "./UnmuteChannelCommand";
54
+ export * from "./UnpinChannelCommand";
12
55
  export * from "./UnpinMessageCommand";
56
+ export * from "./UpdateChannelCommand";
57
+ export * from "./UpdateMessageCommand";
58
+ export * from "./UploadFileCommand";