@wildix/xbees-conversations-client 1.0.28 → 1.0.29
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.
- package/dist-cjs/Conversations.js +10 -0
- package/dist-cjs/commands/DeleteMessageCommand.js +41 -0
- package/dist-cjs/commands/ListChannelsCommand.js +41 -0
- package/dist-cjs/commands/ListMessagesCommand.js +41 -0
- package/dist-cjs/commands/PartialUpdateMessageCommand.js +41 -0
- package/dist-cjs/commands/UpdateMessageCommand.js +41 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +32 -11
- package/dist-cjs/protocols/Aws_restJson1.js +353 -3
- package/dist-es/Conversations.js +10 -0
- package/dist-es/commands/DeleteMessageCommand.js +37 -0
- package/dist-es/commands/ListChannelsCommand.js +37 -0
- package/dist-es/commands/ListMessagesCommand.js +37 -0
- package/dist-es/commands/PartialUpdateMessageCommand.js +37 -0
- package/dist-es/commands/UpdateMessageCommand.js +37 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +28 -8
- package/dist-es/protocols/Aws_restJson1.js +343 -3
- package/dist-types/Conversations.d.ts +35 -0
- package/dist-types/ConversationsClient.d.ts +7 -2
- package/dist-types/commands/CreateChannelCommand.d.ts +1 -0
- package/dist-types/commands/CreateMessageCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMessageCommand.d.ts +76 -0
- package/dist-types/commands/GetMessageCommand.d.ts +1 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +1 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +139 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +211 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +1 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +365 -0
- package/dist-types/commands/UpdateChannelCommand.d.ts +1 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +362 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +124 -7
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/package.json +2 -2
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { UpdateMessageInput, UpdateMessageOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link UpdateMessageCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface UpdateMessageCommandInput extends UpdateMessageInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link UpdateMessageCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateMessageCommandOutput extends UpdateMessageOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { ConversationsClient, UpdateMessageCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
+
* // const { ConversationsClient, UpdateMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
+
* const client = new ConversationsClient(config);
|
|
32
|
+
* const input = { // UpdateMessageInput
|
|
33
|
+
* channelId: "STRING_VALUE", // required
|
|
34
|
+
* messageId: "STRING_VALUE", // required
|
|
35
|
+
* userId: "STRING_VALUE",
|
|
36
|
+
* message: { // MessageUpdateFields
|
|
37
|
+
* type: "regular", // required
|
|
38
|
+
* text: "STRING_VALUE",
|
|
39
|
+
* silent: true || false,
|
|
40
|
+
* event: "STRING_VALUE",
|
|
41
|
+
* attachments: [ // MessageAttachmentList
|
|
42
|
+
* { // MessageAttachment
|
|
43
|
+
* id: "STRING_VALUE", // required
|
|
44
|
+
* fsId: "STRING_VALUE", // required
|
|
45
|
+
* mime: "STRING_VALUE",
|
|
46
|
+
* name: "STRING_VALUE",
|
|
47
|
+
* size: Number("int"), // required
|
|
48
|
+
* width: Number("int"),
|
|
49
|
+
* height: Number("int"),
|
|
50
|
+
* thumbnail: "STRING_VALUE",
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
53
|
+
* giphy: { // MessageGiphy
|
|
54
|
+
* id: "STRING_VALUE",
|
|
55
|
+
* size: "STRING_VALUE",
|
|
56
|
+
* url: "STRING_VALUE",
|
|
57
|
+
* height: "STRING_VALUE",
|
|
58
|
+
* width: "STRING_VALUE",
|
|
59
|
+
* },
|
|
60
|
+
* quote: { // Message
|
|
61
|
+
* type: "regular", // required
|
|
62
|
+
* text: "STRING_VALUE",
|
|
63
|
+
* silent: true || false,
|
|
64
|
+
* event: "STRING_VALUE",
|
|
65
|
+
* attachments: [
|
|
66
|
+
* {
|
|
67
|
+
* id: "STRING_VALUE", // required
|
|
68
|
+
* fsId: "STRING_VALUE", // required
|
|
69
|
+
* mime: "STRING_VALUE",
|
|
70
|
+
* name: "STRING_VALUE",
|
|
71
|
+
* size: Number("int"), // required
|
|
72
|
+
* width: Number("int"),
|
|
73
|
+
* height: Number("int"),
|
|
74
|
+
* thumbnail: "STRING_VALUE",
|
|
75
|
+
* },
|
|
76
|
+
* ],
|
|
77
|
+
* giphy: {
|
|
78
|
+
* id: "STRING_VALUE",
|
|
79
|
+
* size: "STRING_VALUE",
|
|
80
|
+
* url: "STRING_VALUE",
|
|
81
|
+
* height: "STRING_VALUE",
|
|
82
|
+
* width: "STRING_VALUE",
|
|
83
|
+
* },
|
|
84
|
+
* quote: {
|
|
85
|
+
* type: "regular", // required
|
|
86
|
+
* text: "STRING_VALUE",
|
|
87
|
+
* silent: true || false,
|
|
88
|
+
* event: "STRING_VALUE",
|
|
89
|
+
* attachments: "<MessageAttachmentList>",
|
|
90
|
+
* giphy: "<MessageGiphy>",
|
|
91
|
+
* quote: "<Message>",
|
|
92
|
+
* forward: { // MessageForward
|
|
93
|
+
* forwardCompany: "STRING_VALUE",
|
|
94
|
+
* forwardDate: "STRING_VALUE", // required
|
|
95
|
+
* forwardEmail: "STRING_VALUE",
|
|
96
|
+
* forwardName: "STRING_VALUE",
|
|
97
|
+
* },
|
|
98
|
+
* sms: true || false,
|
|
99
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
100
|
+
* messageId: "STRING_VALUE", // required
|
|
101
|
+
* channelId: "STRING_VALUE", // required
|
|
102
|
+
* user: { // User
|
|
103
|
+
* id: "STRING_VALUE", // required
|
|
104
|
+
* name: "STRING_VALUE",
|
|
105
|
+
* email: "STRING_VALUE",
|
|
106
|
+
* phone: "STRING_VALUE",
|
|
107
|
+
* picture: "STRING_VALUE",
|
|
108
|
+
* company: "STRING_VALUE",
|
|
109
|
+
* pbxDomain: "STRING_VALUE",
|
|
110
|
+
* pbxPort: "STRING_VALUE",
|
|
111
|
+
* pbxExtension: "STRING_VALUE",
|
|
112
|
+
* pbxSerial: "STRING_VALUE",
|
|
113
|
+
* pbxUserId: "STRING_VALUE",
|
|
114
|
+
* createdAt: "STRING_VALUE",
|
|
115
|
+
* updatedAt: "STRING_VALUE",
|
|
116
|
+
* },
|
|
117
|
+
* edit: true || false,
|
|
118
|
+
* mentions: [ // UserList
|
|
119
|
+
* {
|
|
120
|
+
* id: "STRING_VALUE", // required
|
|
121
|
+
* name: "STRING_VALUE",
|
|
122
|
+
* email: "STRING_VALUE",
|
|
123
|
+
* phone: "STRING_VALUE",
|
|
124
|
+
* picture: "STRING_VALUE",
|
|
125
|
+
* company: "STRING_VALUE",
|
|
126
|
+
* pbxDomain: "STRING_VALUE",
|
|
127
|
+
* pbxPort: "STRING_VALUE",
|
|
128
|
+
* pbxExtension: "STRING_VALUE",
|
|
129
|
+
* pbxSerial: "STRING_VALUE",
|
|
130
|
+
* pbxUserId: "STRING_VALUE",
|
|
131
|
+
* createdAt: "STRING_VALUE",
|
|
132
|
+
* updatedAt: "STRING_VALUE",
|
|
133
|
+
* },
|
|
134
|
+
* ],
|
|
135
|
+
* latestReactions: [ // ReactionList
|
|
136
|
+
* { // Reaction
|
|
137
|
+
* type: "STRING_VALUE",
|
|
138
|
+
* userId: "STRING_VALUE",
|
|
139
|
+
* messageId: "STRING_VALUE",
|
|
140
|
+
* user: "<User>",
|
|
141
|
+
* },
|
|
142
|
+
* ],
|
|
143
|
+
* reactionCounts: { // ReactionCounts
|
|
144
|
+
* "<keys>": Number("int"),
|
|
145
|
+
* },
|
|
146
|
+
* createdAt: "STRING_VALUE", // required
|
|
147
|
+
* updatedAt: "STRING_VALUE",
|
|
148
|
+
* },
|
|
149
|
+
* forward: {
|
|
150
|
+
* forwardCompany: "STRING_VALUE",
|
|
151
|
+
* forwardDate: "STRING_VALUE", // required
|
|
152
|
+
* forwardEmail: "STRING_VALUE",
|
|
153
|
+
* forwardName: "STRING_VALUE",
|
|
154
|
+
* },
|
|
155
|
+
* sms: true || false,
|
|
156
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
157
|
+
* messageId: "STRING_VALUE", // required
|
|
158
|
+
* channelId: "STRING_VALUE", // required
|
|
159
|
+
* user: "<User>", // required
|
|
160
|
+
* edit: true || false,
|
|
161
|
+
* mentions: [
|
|
162
|
+
* "<User>",
|
|
163
|
+
* ],
|
|
164
|
+
* latestReactions: [
|
|
165
|
+
* {
|
|
166
|
+
* type: "STRING_VALUE",
|
|
167
|
+
* userId: "STRING_VALUE",
|
|
168
|
+
* messageId: "STRING_VALUE",
|
|
169
|
+
* user: "<User>",
|
|
170
|
+
* },
|
|
171
|
+
* ],
|
|
172
|
+
* reactionCounts: {
|
|
173
|
+
* "<keys>": Number("int"),
|
|
174
|
+
* },
|
|
175
|
+
* createdAt: "STRING_VALUE", // required
|
|
176
|
+
* updatedAt: "STRING_VALUE",
|
|
177
|
+
* },
|
|
178
|
+
* forward: "<MessageForward>",
|
|
179
|
+
* sms: true || false,
|
|
180
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
181
|
+
* mentions: [ // MessageCreateMentionsList
|
|
182
|
+
* "STRING_VALUE",
|
|
183
|
+
* ],
|
|
184
|
+
* },
|
|
185
|
+
* };
|
|
186
|
+
* const command = new UpdateMessageCommand(input);
|
|
187
|
+
* const response = await client.send(command);
|
|
188
|
+
* // { // UpdateMessageOutput
|
|
189
|
+
* // message: { // Message
|
|
190
|
+
* // type: "regular", // required
|
|
191
|
+
* // text: "STRING_VALUE",
|
|
192
|
+
* // silent: true || false,
|
|
193
|
+
* // event: "STRING_VALUE",
|
|
194
|
+
* // attachments: [ // MessageAttachmentList
|
|
195
|
+
* // { // MessageAttachment
|
|
196
|
+
* // id: "STRING_VALUE", // required
|
|
197
|
+
* // fsId: "STRING_VALUE", // required
|
|
198
|
+
* // mime: "STRING_VALUE",
|
|
199
|
+
* // name: "STRING_VALUE",
|
|
200
|
+
* // size: Number("int"), // required
|
|
201
|
+
* // width: Number("int"),
|
|
202
|
+
* // height: Number("int"),
|
|
203
|
+
* // thumbnail: "STRING_VALUE",
|
|
204
|
+
* // },
|
|
205
|
+
* // ],
|
|
206
|
+
* // giphy: { // MessageGiphy
|
|
207
|
+
* // id: "STRING_VALUE",
|
|
208
|
+
* // size: "STRING_VALUE",
|
|
209
|
+
* // url: "STRING_VALUE",
|
|
210
|
+
* // height: "STRING_VALUE",
|
|
211
|
+
* // width: "STRING_VALUE",
|
|
212
|
+
* // },
|
|
213
|
+
* // quote: {
|
|
214
|
+
* // type: "regular", // required
|
|
215
|
+
* // text: "STRING_VALUE",
|
|
216
|
+
* // silent: true || false,
|
|
217
|
+
* // event: "STRING_VALUE",
|
|
218
|
+
* // attachments: [
|
|
219
|
+
* // {
|
|
220
|
+
* // id: "STRING_VALUE", // required
|
|
221
|
+
* // fsId: "STRING_VALUE", // required
|
|
222
|
+
* // mime: "STRING_VALUE",
|
|
223
|
+
* // name: "STRING_VALUE",
|
|
224
|
+
* // size: Number("int"), // required
|
|
225
|
+
* // width: Number("int"),
|
|
226
|
+
* // height: Number("int"),
|
|
227
|
+
* // thumbnail: "STRING_VALUE",
|
|
228
|
+
* // },
|
|
229
|
+
* // ],
|
|
230
|
+
* // giphy: {
|
|
231
|
+
* // id: "STRING_VALUE",
|
|
232
|
+
* // size: "STRING_VALUE",
|
|
233
|
+
* // url: "STRING_VALUE",
|
|
234
|
+
* // height: "STRING_VALUE",
|
|
235
|
+
* // width: "STRING_VALUE",
|
|
236
|
+
* // },
|
|
237
|
+
* // quote: "<Message>",
|
|
238
|
+
* // forward: { // MessageForward
|
|
239
|
+
* // forwardCompany: "STRING_VALUE",
|
|
240
|
+
* // forwardDate: "STRING_VALUE", // required
|
|
241
|
+
* // forwardEmail: "STRING_VALUE",
|
|
242
|
+
* // forwardName: "STRING_VALUE",
|
|
243
|
+
* // },
|
|
244
|
+
* // sms: true || false,
|
|
245
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
246
|
+
* // messageId: "STRING_VALUE", // required
|
|
247
|
+
* // channelId: "STRING_VALUE", // required
|
|
248
|
+
* // user: { // User
|
|
249
|
+
* // id: "STRING_VALUE", // required
|
|
250
|
+
* // name: "STRING_VALUE",
|
|
251
|
+
* // email: "STRING_VALUE",
|
|
252
|
+
* // phone: "STRING_VALUE",
|
|
253
|
+
* // picture: "STRING_VALUE",
|
|
254
|
+
* // company: "STRING_VALUE",
|
|
255
|
+
* // pbxDomain: "STRING_VALUE",
|
|
256
|
+
* // pbxPort: "STRING_VALUE",
|
|
257
|
+
* // pbxExtension: "STRING_VALUE",
|
|
258
|
+
* // pbxSerial: "STRING_VALUE",
|
|
259
|
+
* // pbxUserId: "STRING_VALUE",
|
|
260
|
+
* // createdAt: "STRING_VALUE",
|
|
261
|
+
* // updatedAt: "STRING_VALUE",
|
|
262
|
+
* // },
|
|
263
|
+
* // edit: true || false,
|
|
264
|
+
* // mentions: [ // UserList
|
|
265
|
+
* // {
|
|
266
|
+
* // id: "STRING_VALUE", // required
|
|
267
|
+
* // name: "STRING_VALUE",
|
|
268
|
+
* // email: "STRING_VALUE",
|
|
269
|
+
* // phone: "STRING_VALUE",
|
|
270
|
+
* // picture: "STRING_VALUE",
|
|
271
|
+
* // company: "STRING_VALUE",
|
|
272
|
+
* // pbxDomain: "STRING_VALUE",
|
|
273
|
+
* // pbxPort: "STRING_VALUE",
|
|
274
|
+
* // pbxExtension: "STRING_VALUE",
|
|
275
|
+
* // pbxSerial: "STRING_VALUE",
|
|
276
|
+
* // pbxUserId: "STRING_VALUE",
|
|
277
|
+
* // createdAt: "STRING_VALUE",
|
|
278
|
+
* // updatedAt: "STRING_VALUE",
|
|
279
|
+
* // },
|
|
280
|
+
* // ],
|
|
281
|
+
* // latestReactions: [ // ReactionList
|
|
282
|
+
* // { // Reaction
|
|
283
|
+
* // type: "STRING_VALUE",
|
|
284
|
+
* // userId: "STRING_VALUE",
|
|
285
|
+
* // messageId: "STRING_VALUE",
|
|
286
|
+
* // user: "<User>",
|
|
287
|
+
* // },
|
|
288
|
+
* // ],
|
|
289
|
+
* // reactionCounts: { // ReactionCounts
|
|
290
|
+
* // "<keys>": Number("int"),
|
|
291
|
+
* // },
|
|
292
|
+
* // createdAt: "STRING_VALUE", // required
|
|
293
|
+
* // updatedAt: "STRING_VALUE",
|
|
294
|
+
* // },
|
|
295
|
+
* // forward: {
|
|
296
|
+
* // forwardCompany: "STRING_VALUE",
|
|
297
|
+
* // forwardDate: "STRING_VALUE", // required
|
|
298
|
+
* // forwardEmail: "STRING_VALUE",
|
|
299
|
+
* // forwardName: "STRING_VALUE",
|
|
300
|
+
* // },
|
|
301
|
+
* // sms: true || false,
|
|
302
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
303
|
+
* // messageId: "STRING_VALUE", // required
|
|
304
|
+
* // channelId: "STRING_VALUE", // required
|
|
305
|
+
* // user: "<User>", // required
|
|
306
|
+
* // edit: true || false,
|
|
307
|
+
* // mentions: [
|
|
308
|
+
* // "<User>",
|
|
309
|
+
* // ],
|
|
310
|
+
* // latestReactions: [
|
|
311
|
+
* // {
|
|
312
|
+
* // type: "STRING_VALUE",
|
|
313
|
+
* // userId: "STRING_VALUE",
|
|
314
|
+
* // messageId: "STRING_VALUE",
|
|
315
|
+
* // user: "<User>",
|
|
316
|
+
* // },
|
|
317
|
+
* // ],
|
|
318
|
+
* // reactionCounts: {
|
|
319
|
+
* // "<keys>": Number("int"),
|
|
320
|
+
* // },
|
|
321
|
+
* // createdAt: "STRING_VALUE", // required
|
|
322
|
+
* // updatedAt: "STRING_VALUE",
|
|
323
|
+
* // },
|
|
324
|
+
* // };
|
|
325
|
+
*
|
|
326
|
+
* ```
|
|
327
|
+
*
|
|
328
|
+
* @param UpdateMessageCommandInput - {@link UpdateMessageCommandInput}
|
|
329
|
+
* @returns {@link UpdateMessageCommandOutput}
|
|
330
|
+
* @see {@link UpdateMessageCommandInput} for command's `input` shape.
|
|
331
|
+
* @see {@link UpdateMessageCommandOutput} for command's `response` shape.
|
|
332
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
333
|
+
*
|
|
334
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
335
|
+
*
|
|
336
|
+
* @throws {@link MessageNotFoundException} (client fault)
|
|
337
|
+
*
|
|
338
|
+
* @throws {@link ValidationException} (client fault)
|
|
339
|
+
*
|
|
340
|
+
* @throws {@link ConversationsServiceException}
|
|
341
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
342
|
+
*
|
|
343
|
+
*/
|
|
344
|
+
export declare class UpdateMessageCommand extends $Command<UpdateMessageCommandInput, UpdateMessageCommandOutput, ConversationsClientResolvedConfig> {
|
|
345
|
+
readonly input: UpdateMessageCommandInput;
|
|
346
|
+
/**
|
|
347
|
+
* @public
|
|
348
|
+
*/
|
|
349
|
+
constructor(input: UpdateMessageCommandInput);
|
|
350
|
+
/**
|
|
351
|
+
* @internal
|
|
352
|
+
*/
|
|
353
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateMessageCommandInput, UpdateMessageCommandOutput>;
|
|
354
|
+
/**
|
|
355
|
+
* @internal
|
|
356
|
+
*/
|
|
357
|
+
private serialize;
|
|
358
|
+
/**
|
|
359
|
+
* @internal
|
|
360
|
+
*/
|
|
361
|
+
private deserialize;
|
|
362
|
+
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export * from "./CreateChannelCommand";
|
|
2
2
|
export * from "./CreateMessageCommand";
|
|
3
3
|
export * from "./DeleteChannelCommand";
|
|
4
|
+
export * from "./DeleteMessageCommand";
|
|
4
5
|
export * from "./GetChannelCommand";
|
|
5
6
|
export * from "./GetChannelMemberCommand";
|
|
6
7
|
export * from "./GetMessageCommand";
|
|
7
8
|
export * from "./JoinChannelCommand";
|
|
9
|
+
export * from "./ListChannelsCommand";
|
|
10
|
+
export * from "./ListMessagesCommand";
|
|
8
11
|
export * from "./PartialUpdateChannelCommand";
|
|
12
|
+
export * from "./PartialUpdateMessageCommand";
|
|
9
13
|
export * from "./ScheduleExternalFlagAdjustmentJobCommand";
|
|
10
14
|
export * from "./UpdateChannelCommand";
|
|
15
|
+
export * from "./UpdateMessageCommand";
|
|
@@ -3,24 +3,24 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-cli
|
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export declare class
|
|
7
|
-
readonly name: "
|
|
6
|
+
export declare class ForbiddenException extends __BaseException {
|
|
7
|
+
readonly name: "ForbiddenException";
|
|
8
8
|
readonly $fault: "client";
|
|
9
9
|
/**
|
|
10
10
|
* @internal
|
|
11
11
|
*/
|
|
12
|
-
constructor(opts: __ExceptionOptionType<
|
|
12
|
+
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
export declare class
|
|
18
|
-
readonly name: "
|
|
17
|
+
export declare class ValidationException extends __BaseException {
|
|
18
|
+
readonly name: "ValidationException";
|
|
19
19
|
readonly $fault: "client";
|
|
20
20
|
/**
|
|
21
21
|
* @internal
|
|
22
22
|
*/
|
|
23
|
-
constructor(opts: __ExceptionOptionType<
|
|
23
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* @public
|
|
@@ -298,6 +298,7 @@ export interface ChannelUpdateFields {
|
|
|
298
298
|
*/
|
|
299
299
|
export interface CreateChannelInput {
|
|
300
300
|
channel: ChannelCreateFields;
|
|
301
|
+
userId?: string;
|
|
301
302
|
}
|
|
302
303
|
/**
|
|
303
304
|
* @public
|
|
@@ -386,6 +387,29 @@ export interface DeleteChannelInput {
|
|
|
386
387
|
*/
|
|
387
388
|
export interface DeleteChannelOutput {
|
|
388
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
* @public
|
|
392
|
+
*/
|
|
393
|
+
export interface DeleteMessageInput {
|
|
394
|
+
channelId: string;
|
|
395
|
+
messageId: string;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* @public
|
|
399
|
+
*/
|
|
400
|
+
export interface DeleteMessageOutput {
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* @public
|
|
404
|
+
*/
|
|
405
|
+
export declare class MessageNotFoundException extends __BaseException {
|
|
406
|
+
readonly name: "MessageNotFoundException";
|
|
407
|
+
readonly $fault: "client";
|
|
408
|
+
/**
|
|
409
|
+
* @internal
|
|
410
|
+
*/
|
|
411
|
+
constructor(opts: __ExceptionOptionType<MessageNotFoundException, __BaseException>);
|
|
412
|
+
}
|
|
389
413
|
/**
|
|
390
414
|
* @public
|
|
391
415
|
*/
|
|
@@ -427,12 +451,14 @@ export declare class MemberNotFoundException extends __BaseException {
|
|
|
427
451
|
*/
|
|
428
452
|
export interface GetMessageInput {
|
|
429
453
|
channelId: string;
|
|
454
|
+
messageId: string;
|
|
430
455
|
}
|
|
431
456
|
/**
|
|
432
457
|
* @public
|
|
433
458
|
*/
|
|
434
459
|
export interface JoinChannelInput {
|
|
435
460
|
channelId: string;
|
|
461
|
+
userId?: string;
|
|
436
462
|
}
|
|
437
463
|
/**
|
|
438
464
|
* @public
|
|
@@ -440,11 +466,32 @@ export interface JoinChannelInput {
|
|
|
440
466
|
export interface JoinChannelOutput {
|
|
441
467
|
channel: Channel;
|
|
442
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* @public
|
|
471
|
+
*/
|
|
472
|
+
export interface ListChannelsInput {
|
|
473
|
+
userId?: string;
|
|
474
|
+
limit?: number;
|
|
475
|
+
offset?: number;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* @public
|
|
479
|
+
*/
|
|
480
|
+
export interface ListChannelsOutput {
|
|
481
|
+
channels: (Channel)[];
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* @public
|
|
485
|
+
*/
|
|
486
|
+
export interface ListMessagesInput {
|
|
487
|
+
channelId: string;
|
|
488
|
+
}
|
|
443
489
|
/**
|
|
444
490
|
* @public
|
|
445
491
|
*/
|
|
446
492
|
export interface PartialUpdateChannelInput {
|
|
447
493
|
channelId: string;
|
|
494
|
+
userId?: string;
|
|
448
495
|
set?: ChannelUpdateFields;
|
|
449
496
|
unset?: (ChannelUnsetFields | string)[];
|
|
450
497
|
}
|
|
@@ -454,6 +501,22 @@ export interface PartialUpdateChannelInput {
|
|
|
454
501
|
export interface PartialUpdateChannelOutput {
|
|
455
502
|
channel: Channel;
|
|
456
503
|
}
|
|
504
|
+
/**
|
|
505
|
+
* @public
|
|
506
|
+
* @enum
|
|
507
|
+
*/
|
|
508
|
+
export declare const MessageUnsetFields: {
|
|
509
|
+
readonly ATTACHMENTS: "attachments";
|
|
510
|
+
readonly EVENT: "event";
|
|
511
|
+
readonly FORWARD: "forward";
|
|
512
|
+
readonly QUOTE: "quote";
|
|
513
|
+
readonly SMS: "sms";
|
|
514
|
+
readonly SMS_STATUS: "smsStatus";
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* @public
|
|
518
|
+
*/
|
|
519
|
+
export type MessageUnsetFields = typeof MessageUnsetFields[keyof typeof MessageUnsetFields];
|
|
457
520
|
/**
|
|
458
521
|
* @public
|
|
459
522
|
*/
|
|
@@ -485,6 +548,7 @@ export interface ScheduleExternalFlagAdjustmentJobOutput {
|
|
|
485
548
|
*/
|
|
486
549
|
export interface UpdateChannelInput {
|
|
487
550
|
channelId: string;
|
|
551
|
+
userId?: string;
|
|
488
552
|
channel: ChannelUpdateFields;
|
|
489
553
|
}
|
|
490
554
|
/**
|
|
@@ -547,15 +611,68 @@ export interface MessageCreateFields {
|
|
|
547
611
|
messageId?: string;
|
|
548
612
|
mentions?: (string)[];
|
|
549
613
|
}
|
|
614
|
+
/**
|
|
615
|
+
* @public
|
|
616
|
+
*/
|
|
617
|
+
export interface MessageUpdateFields {
|
|
618
|
+
type: MessageType | string;
|
|
619
|
+
text?: string;
|
|
620
|
+
silent?: boolean;
|
|
621
|
+
event?: string;
|
|
622
|
+
attachments?: (MessageAttachment)[];
|
|
623
|
+
giphy?: MessageGiphy;
|
|
624
|
+
quote?: Message;
|
|
625
|
+
forward?: MessageForward;
|
|
626
|
+
sms?: boolean;
|
|
627
|
+
smsStatus?: MessageSmsStatus | string;
|
|
628
|
+
mentions?: (string)[];
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* @public
|
|
632
|
+
*/
|
|
633
|
+
export interface PartialUpdateMessageOutput {
|
|
634
|
+
message?: Message;
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* @public
|
|
638
|
+
*/
|
|
639
|
+
export interface UpdateMessageOutput {
|
|
640
|
+
message?: Message;
|
|
641
|
+
}
|
|
550
642
|
/**
|
|
551
643
|
* @public
|
|
552
644
|
*/
|
|
553
645
|
export interface CreateMessageInput {
|
|
554
646
|
channelId: string;
|
|
555
|
-
userId
|
|
647
|
+
userId?: string;
|
|
556
648
|
/**
|
|
557
649
|
* @public
|
|
558
650
|
* An interface of available options for new message command
|
|
559
651
|
*/
|
|
560
652
|
message: MessageCreateFields;
|
|
561
653
|
}
|
|
654
|
+
/**
|
|
655
|
+
* @public
|
|
656
|
+
*/
|
|
657
|
+
export interface ListMessagesOutput {
|
|
658
|
+
messages?: (Message)[];
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* @public
|
|
662
|
+
*/
|
|
663
|
+
export interface PartialUpdateMessageInput {
|
|
664
|
+
channelId: string;
|
|
665
|
+
messageId: string;
|
|
666
|
+
userId?: string;
|
|
667
|
+
set?: MessageUpdateFields;
|
|
668
|
+
unset?: (MessageUnsetFields | string)[];
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* @public
|
|
672
|
+
*/
|
|
673
|
+
export interface UpdateMessageInput {
|
|
674
|
+
channelId: string;
|
|
675
|
+
messageId: string;
|
|
676
|
+
userId?: string;
|
|
677
|
+
message: MessageUpdateFields;
|
|
678
|
+
}
|