@wildix/xbees-conversations-client 1.0.30 → 1.0.31
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 +36 -4
- package/dist-cjs/commands/AddChannelMemberCommand.js +41 -0
- package/dist-cjs/commands/AddChannelMembersCommand.js +41 -0
- package/dist-cjs/commands/CreateGroupChannelCommand.js +41 -0
- package/dist-cjs/commands/DeleteChannelMemberCommand.js +41 -0
- package/dist-cjs/commands/DeleteMessageReactionCommand.js +41 -0
- package/dist-cjs/commands/GetDirectChannelIdCommand.js +41 -0
- package/dist-cjs/commands/GetMessageReactionsCommand.js +41 -0
- package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +41 -0
- package/dist-cjs/commands/InviteCommand.js +41 -0
- package/dist-cjs/commands/{CreateChannelCommand.js → LeaveChannelCommand.js} +7 -7
- package/dist-cjs/commands/ListChannelMembersCommand.js +41 -0
- package/dist-cjs/commands/MarkReadCommand.js +41 -0
- package/dist-cjs/commands/SendGiphyCommand.js +41 -0
- package/dist-cjs/commands/SendMessageCommand.js +41 -0
- package/dist-cjs/commands/SendMessageReactionCommand.js +41 -0
- package/dist-cjs/commands/SendSystemMessageCommand.js +41 -0
- package/dist-cjs/commands/SendTypingStartCommand.js +41 -0
- package/dist-cjs/commands/{CreateMessageCommand.js → SendTypingStopCommand.js} +7 -7
- package/dist-cjs/commands/index.js +18 -2
- package/dist-cjs/models/models_0.js +71 -52
- package/dist-cjs/protocols/Aws_restJson1.js +1204 -145
- package/dist-es/Conversations.js +36 -4
- package/dist-es/commands/AddChannelMemberCommand.js +37 -0
- package/dist-es/commands/AddChannelMembersCommand.js +37 -0
- package/dist-es/commands/CreateGroupChannelCommand.js +37 -0
- package/dist-es/commands/DeleteChannelMemberCommand.js +37 -0
- package/dist-es/commands/DeleteMessageReactionCommand.js +37 -0
- package/dist-es/commands/GetDirectChannelIdCommand.js +37 -0
- package/dist-es/commands/GetMessageReactionsCommand.js +37 -0
- package/dist-es/commands/GetOrCreateDirectChannelCommand.js +37 -0
- package/dist-es/commands/{CreateChannelCommand.js → InviteCommand.js} +6 -6
- package/dist-es/commands/{CreateMessageCommand.js → LeaveChannelCommand.js} +6 -6
- package/dist-es/commands/ListChannelMembersCommand.js +37 -0
- package/dist-es/commands/MarkReadCommand.js +37 -0
- package/dist-es/commands/SendGiphyCommand.js +37 -0
- package/dist-es/commands/SendMessageCommand.js +37 -0
- package/dist-es/commands/SendMessageReactionCommand.js +37 -0
- package/dist-es/commands/SendSystemMessageCommand.js +37 -0
- package/dist-es/commands/SendTypingStartCommand.js +37 -0
- package/dist-es/commands/SendTypingStopCommand.js +37 -0
- package/dist-es/commands/index.js +18 -2
- package/dist-es/models/models_0.js +67 -50
- package/dist-es/protocols/Aws_restJson1.js +1174 -148
- package/dist-types/Conversations.d.ts +122 -10
- package/dist-types/ConversationsClient.d.ts +20 -4
- package/dist-types/commands/AddChannelMemberCommand.d.ts +105 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +113 -0
- package/dist-types/commands/{CreateChannelCommand.d.ts → CreateGroupChannelCommand.d.ts} +37 -79
- package/dist-types/commands/DeleteChannelCommand.d.ts +2 -0
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +79 -0
- package/dist-types/commands/DeleteMessageCommand.d.ts +2 -0
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +80 -0
- package/dist-types/commands/GetChannelCommand.d.ts +2 -0
- package/dist-types/commands/GetChannelMemberCommand.d.ts +17 -0
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +82 -0
- package/dist-types/commands/GetMessageCommand.d.ts +23 -21
- package/dist-types/commands/GetMessageReactionsCommand.d.ts +101 -0
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +144 -0
- package/dist-types/commands/InviteCommand.d.ts +98 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +1 -0
- package/dist-types/commands/LeaveChannelCommand.d.ts +77 -0
- package/dist-types/commands/ListChannelMembersCommand.d.ts +102 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +2 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +23 -21
- package/dist-types/commands/MarkReadCommand.d.ts +76 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +5 -52
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +46 -54
- package/dist-types/commands/SendGiphyCommand.d.ts +220 -0
- package/dist-types/commands/{CreateMessageCommand.d.ts → SendMessageCommand.d.ts} +137 -143
- package/dist-types/commands/SendMessageReactionCommand.d.ts +78 -0
- package/dist-types/commands/SendSystemMessageCommand.d.ts +213 -0
- package/dist-types/commands/SendTypingStartCommand.d.ts +76 -0
- package/dist-types/commands/SendTypingStopCommand.d.ts +76 -0
- package/dist-types/commands/UpdateChannelCommand.d.ts +8 -57
- package/dist-types/commands/UpdateMessageCommand.d.ts +118 -125
- package/dist-types/commands/index.d.ts +18 -2
- package/dist-types/models/models_0.d.ts +450 -172
- package/dist-types/protocols/Aws_restJson1.d.ts +154 -10
- package/package.json +1 -1
|
@@ -52,6 +52,103 @@ export declare const ChannelType: {
|
|
|
52
52
|
* @public
|
|
53
53
|
*/
|
|
54
54
|
export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
export interface UserToInvite {
|
|
59
|
+
email?: string;
|
|
60
|
+
phone?: string;
|
|
61
|
+
name?: string;
|
|
62
|
+
colleague?: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export interface AddChannelMemberInput {
|
|
68
|
+
channelId: string;
|
|
69
|
+
memberId?: string;
|
|
70
|
+
memberToInvite?: UserToInvite;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @public
|
|
74
|
+
* @enum
|
|
75
|
+
*/
|
|
76
|
+
export declare const ChannelMemberRole: {
|
|
77
|
+
readonly MEMBER: "member";
|
|
78
|
+
readonly SUPERVISOR: "supervisor";
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export type ChannelMemberRole = typeof ChannelMemberRole[keyof typeof ChannelMemberRole];
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export interface ChannelMember {
|
|
88
|
+
id: string;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
role: ChannelMemberRole | string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export interface AddChannelMemberOutput {
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
* Member added to the channel
|
|
99
|
+
*/
|
|
100
|
+
member: ChannelMember;
|
|
101
|
+
/**
|
|
102
|
+
* @public
|
|
103
|
+
* Users added to the channel
|
|
104
|
+
*/
|
|
105
|
+
user: User;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
export declare class ChannelNotFoundException extends __BaseException {
|
|
111
|
+
readonly name: "ChannelNotFoundException";
|
|
112
|
+
readonly $fault: "client";
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
constructor(opts: __ExceptionOptionType<ChannelNotFoundException, __BaseException>);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
export declare class MemberAlreadyExistException extends __BaseException {
|
|
122
|
+
readonly name: "MemberAlreadyExistException";
|
|
123
|
+
readonly $fault: "client";
|
|
124
|
+
/**
|
|
125
|
+
* @internal
|
|
126
|
+
*/
|
|
127
|
+
constructor(opts: __ExceptionOptionType<MemberAlreadyExistException, __BaseException>);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
export interface AddChannelMembersInput {
|
|
133
|
+
channelId: string;
|
|
134
|
+
members?: (string)[];
|
|
135
|
+
membersToInvite?: (UserToInvite)[];
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
export interface AddChannelMembersOutput {
|
|
141
|
+
/**
|
|
142
|
+
* @public
|
|
143
|
+
* The list of members added to the channel
|
|
144
|
+
*/
|
|
145
|
+
members: (ChannelMember)[];
|
|
146
|
+
/**
|
|
147
|
+
* @public
|
|
148
|
+
* The list of users added to the channel
|
|
149
|
+
*/
|
|
150
|
+
users: (User)[];
|
|
151
|
+
}
|
|
55
152
|
/**
|
|
56
153
|
* @public
|
|
57
154
|
* @enum
|
|
@@ -160,7 +257,18 @@ export interface Channel {
|
|
|
160
257
|
/**
|
|
161
258
|
* @public
|
|
162
259
|
*/
|
|
163
|
-
export
|
|
260
|
+
export declare class ChannelAlreadyExistException extends __BaseException {
|
|
261
|
+
readonly name: "ChannelAlreadyExistException";
|
|
262
|
+
readonly $fault: "client";
|
|
263
|
+
/**
|
|
264
|
+
* @internal
|
|
265
|
+
*/
|
|
266
|
+
constructor(opts: __ExceptionOptionType<ChannelAlreadyExistException, __BaseException>);
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* @public
|
|
270
|
+
*/
|
|
271
|
+
export interface CreateGroupChannelInput {
|
|
164
272
|
subject?: string;
|
|
165
273
|
description?: string;
|
|
166
274
|
/**
|
|
@@ -174,138 +282,172 @@ export interface ChannelCreateFields {
|
|
|
174
282
|
*/
|
|
175
283
|
pictureColor?: string;
|
|
176
284
|
access?: ChannelAccess | string;
|
|
177
|
-
company?: string;
|
|
178
|
-
context?: ChannelContext;
|
|
179
|
-
kite?: boolean;
|
|
180
|
-
kiteTarget?: string;
|
|
181
|
-
kiteVariant?: string;
|
|
182
|
-
kiteAssign?: string;
|
|
183
|
-
kiteServiceName?: string;
|
|
184
|
-
kiteDefaultSubject?: string;
|
|
185
|
-
service?: string;
|
|
186
|
-
serviceTitle?: string;
|
|
187
|
-
serviceRecipient?: string;
|
|
188
|
-
assignee?: User;
|
|
189
|
-
telephony?: boolean;
|
|
190
|
-
sms?: boolean;
|
|
191
|
-
mms?: boolean;
|
|
192
285
|
broadcast?: boolean;
|
|
193
|
-
|
|
286
|
+
userId?: string;
|
|
194
287
|
channelId?: string;
|
|
195
|
-
channelType: ChannelType | string;
|
|
196
288
|
members?: (string)[];
|
|
289
|
+
membersToInvite?: (UserToInvite)[];
|
|
197
290
|
}
|
|
198
291
|
/**
|
|
199
292
|
* @public
|
|
200
|
-
* @enum
|
|
201
293
|
*/
|
|
202
|
-
export
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
};
|
|
294
|
+
export interface CreateGroupChannelOutput {
|
|
295
|
+
channel: Channel;
|
|
296
|
+
}
|
|
206
297
|
/**
|
|
207
298
|
* @public
|
|
208
299
|
*/
|
|
209
|
-
export
|
|
300
|
+
export interface DeleteChannelInput {
|
|
301
|
+
channelId: string;
|
|
302
|
+
}
|
|
210
303
|
/**
|
|
211
304
|
* @public
|
|
212
305
|
*/
|
|
213
|
-
export interface
|
|
214
|
-
id: string;
|
|
215
|
-
createdAt: string;
|
|
216
|
-
role: ChannelMemberRole | string;
|
|
306
|
+
export interface DeleteChannelOutput {
|
|
217
307
|
}
|
|
218
308
|
/**
|
|
219
309
|
* @public
|
|
220
310
|
*/
|
|
221
|
-
export
|
|
222
|
-
|
|
311
|
+
export interface DeleteChannelMemberInput {
|
|
312
|
+
channelId: string;
|
|
313
|
+
memberId: string;
|
|
314
|
+
/**
|
|
315
|
+
* @public
|
|
316
|
+
* True to not send a system message that member was removed from the conversartion. Default - false.
|
|
317
|
+
*/
|
|
318
|
+
silent?: boolean;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* @public
|
|
322
|
+
*/
|
|
323
|
+
export interface DeleteChannelMemberOutput {
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* @public
|
|
327
|
+
*/
|
|
328
|
+
export declare class MemberNotFoundException extends __BaseException {
|
|
329
|
+
readonly name: "MemberNotFoundException";
|
|
223
330
|
readonly $fault: "client";
|
|
224
331
|
/**
|
|
225
332
|
* @internal
|
|
226
333
|
*/
|
|
227
|
-
constructor(opts: __ExceptionOptionType<
|
|
334
|
+
constructor(opts: __ExceptionOptionType<MemberNotFoundException, __BaseException>);
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* @public
|
|
338
|
+
*/
|
|
339
|
+
export interface DeleteMessageInput {
|
|
340
|
+
channelId: string;
|
|
341
|
+
messageId: string;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* @public
|
|
345
|
+
*/
|
|
346
|
+
export interface DeleteMessageOutput {
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* @public
|
|
350
|
+
*/
|
|
351
|
+
export declare class MessageNotFoundException extends __BaseException {
|
|
352
|
+
readonly name: "MessageNotFoundException";
|
|
353
|
+
readonly $fault: "client";
|
|
354
|
+
/**
|
|
355
|
+
* @internal
|
|
356
|
+
*/
|
|
357
|
+
constructor(opts: __ExceptionOptionType<MessageNotFoundException, __BaseException>);
|
|
228
358
|
}
|
|
229
359
|
/**
|
|
230
360
|
* @public
|
|
231
361
|
* @enum
|
|
232
362
|
*/
|
|
233
|
-
export declare const
|
|
234
|
-
readonly
|
|
235
|
-
readonly
|
|
236
|
-
readonly
|
|
237
|
-
readonly
|
|
238
|
-
readonly
|
|
239
|
-
readonly
|
|
240
|
-
readonly
|
|
241
|
-
readonly
|
|
242
|
-
readonly
|
|
243
|
-
readonly KITE_DEFAULT_SUBJECT: "kiteDefaultSubject";
|
|
244
|
-
readonly KITE_SERVICE_NAME: "kiteServiceName";
|
|
245
|
-
readonly KITE_TARGET: "kiteTarget";
|
|
246
|
-
readonly KITE_VARIANT: "kiteVariant";
|
|
247
|
-
readonly MMS: "mms";
|
|
248
|
-
readonly PICTURE: "picture";
|
|
249
|
-
readonly PICTURE_COLOR: "pictureColor";
|
|
250
|
-
readonly SERVICE: "service";
|
|
251
|
-
readonly SERVICE_RECIPIENT: "serviceRecipient";
|
|
252
|
-
readonly SERVICE_TITLE: "serviceTitle";
|
|
253
|
-
readonly SMS: "sms";
|
|
254
|
-
readonly SUBJECT: "subject";
|
|
255
|
-
readonly TELEPHONY: "telephony";
|
|
363
|
+
export declare const ReactionType: {
|
|
364
|
+
readonly CLAP: "clap";
|
|
365
|
+
readonly CONFUSED: "confused";
|
|
366
|
+
readonly EYES: "eyes";
|
|
367
|
+
readonly HEART: "heart";
|
|
368
|
+
readonly SLIGHTLY_SMILING_FACE: "slightly_smiling_face";
|
|
369
|
+
readonly SMILEY: "smiley";
|
|
370
|
+
readonly THUMBSDOWN: "thumbsdown";
|
|
371
|
+
readonly THUMBSUP: "thumbsup";
|
|
372
|
+
readonly WHITE_CHECK_MARK: "white_check_mark";
|
|
256
373
|
};
|
|
257
374
|
/**
|
|
258
375
|
* @public
|
|
259
376
|
*/
|
|
260
|
-
export type
|
|
377
|
+
export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
|
|
261
378
|
/**
|
|
262
379
|
* @public
|
|
263
380
|
*/
|
|
264
|
-
export interface
|
|
265
|
-
|
|
266
|
-
description?: string;
|
|
381
|
+
export interface DeleteMessageReactionInput {
|
|
382
|
+
channelId: string;
|
|
267
383
|
/**
|
|
268
384
|
* @public
|
|
269
|
-
*
|
|
385
|
+
* ID of the message to react to.
|
|
270
386
|
*/
|
|
271
|
-
|
|
387
|
+
messageId: string;
|
|
272
388
|
/**
|
|
273
389
|
* @public
|
|
274
|
-
*
|
|
390
|
+
* Type of the reaction.
|
|
275
391
|
*/
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
kiteVariant?: string;
|
|
283
|
-
kiteAssign?: string;
|
|
284
|
-
kiteServiceName?: string;
|
|
285
|
-
kiteDefaultSubject?: string;
|
|
286
|
-
service?: string;
|
|
287
|
-
serviceTitle?: string;
|
|
288
|
-
serviceRecipient?: string;
|
|
289
|
-
assignee?: User;
|
|
290
|
-
telephony?: boolean;
|
|
291
|
-
sms?: boolean;
|
|
292
|
-
mms?: boolean;
|
|
293
|
-
broadcast?: boolean;
|
|
294
|
-
external?: boolean;
|
|
392
|
+
reactionType: ReactionType | string;
|
|
393
|
+
/**
|
|
394
|
+
* @public
|
|
395
|
+
* User ID for server side calls
|
|
396
|
+
*/
|
|
397
|
+
userId?: string;
|
|
295
398
|
}
|
|
296
399
|
/**
|
|
297
400
|
* @public
|
|
298
401
|
*/
|
|
299
|
-
export interface
|
|
300
|
-
channel: ChannelCreateFields;
|
|
301
|
-
userId?: string;
|
|
402
|
+
export interface DeleteMessageReactionOutput {
|
|
302
403
|
}
|
|
303
404
|
/**
|
|
304
405
|
* @public
|
|
305
406
|
*/
|
|
306
|
-
export interface
|
|
407
|
+
export interface GetChannelInput {
|
|
408
|
+
channelId: string;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* @public
|
|
412
|
+
*/
|
|
413
|
+
export interface GetChannelOutput {
|
|
307
414
|
channel: Channel;
|
|
308
415
|
}
|
|
416
|
+
/**
|
|
417
|
+
* @public
|
|
418
|
+
*/
|
|
419
|
+
export interface GetChannelMemberInput {
|
|
420
|
+
channelId: string;
|
|
421
|
+
memberId: string;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* @public
|
|
425
|
+
*/
|
|
426
|
+
export interface GetChannelMemberOutput {
|
|
427
|
+
member: ChannelMember;
|
|
428
|
+
user: User;
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* @public
|
|
432
|
+
*/
|
|
433
|
+
export interface GetDirectChannelIdInput {
|
|
434
|
+
userId?: string;
|
|
435
|
+
participantId: string;
|
|
436
|
+
participantToInvite: UserToInvite;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* @public
|
|
440
|
+
*/
|
|
441
|
+
export interface GetDirectChannelIdOutput {
|
|
442
|
+
channelId: string;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* @public
|
|
446
|
+
*/
|
|
447
|
+
export interface GetMessageInput {
|
|
448
|
+
channelId: string;
|
|
449
|
+
messageId: string;
|
|
450
|
+
}
|
|
309
451
|
/**
|
|
310
452
|
* @public
|
|
311
453
|
*/
|
|
@@ -379,92 +521,93 @@ export type MessageType = typeof MessageType[keyof typeof MessageType];
|
|
|
379
521
|
/**
|
|
380
522
|
* @public
|
|
381
523
|
*/
|
|
382
|
-
export interface
|
|
524
|
+
export interface GetMessageReactionsInput {
|
|
383
525
|
channelId: string;
|
|
526
|
+
messageId: string;
|
|
527
|
+
limit?: number;
|
|
528
|
+
offset?: number;
|
|
384
529
|
}
|
|
385
530
|
/**
|
|
386
531
|
* @public
|
|
387
532
|
*/
|
|
388
|
-
export interface
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* @public
|
|
392
|
-
*/
|
|
393
|
-
export interface DeleteMessageInput {
|
|
394
|
-
channelId: string;
|
|
395
|
-
messageId: string;
|
|
533
|
+
export interface GetMessageReactionsOutput {
|
|
534
|
+
reactions: (Reaction)[];
|
|
396
535
|
}
|
|
397
536
|
/**
|
|
398
537
|
* @public
|
|
399
538
|
*/
|
|
400
|
-
export interface
|
|
539
|
+
export interface GetOrCreateDirectChannelInput {
|
|
540
|
+
userId?: string;
|
|
541
|
+
memberId?: string;
|
|
542
|
+
memberToInvite?: UserToInvite;
|
|
401
543
|
}
|
|
402
544
|
/**
|
|
403
545
|
* @public
|
|
404
546
|
*/
|
|
405
|
-
export
|
|
406
|
-
|
|
407
|
-
readonly $fault: "client";
|
|
408
|
-
/**
|
|
409
|
-
* @internal
|
|
410
|
-
*/
|
|
411
|
-
constructor(opts: __ExceptionOptionType<MessageNotFoundException, __BaseException>);
|
|
547
|
+
export interface GetOrCreateDirectChannelOutput {
|
|
548
|
+
channel: Channel;
|
|
412
549
|
}
|
|
413
550
|
/**
|
|
414
551
|
* @public
|
|
415
552
|
*/
|
|
416
|
-
export interface
|
|
417
|
-
|
|
553
|
+
export interface InviteInput {
|
|
554
|
+
invitees: (UserToInvite)[];
|
|
418
555
|
}
|
|
419
556
|
/**
|
|
420
557
|
* @public
|
|
421
558
|
*/
|
|
422
|
-
export interface
|
|
423
|
-
|
|
559
|
+
export interface InviteOutput {
|
|
560
|
+
users: (User)[];
|
|
424
561
|
}
|
|
425
562
|
/**
|
|
426
563
|
* @public
|
|
427
564
|
*/
|
|
428
|
-
export interface
|
|
565
|
+
export interface JoinChannelInput {
|
|
429
566
|
channelId: string;
|
|
430
|
-
|
|
567
|
+
userId?: string;
|
|
568
|
+
silent?: boolean;
|
|
431
569
|
}
|
|
432
570
|
/**
|
|
433
571
|
* @public
|
|
434
572
|
*/
|
|
435
|
-
export interface
|
|
436
|
-
|
|
573
|
+
export interface JoinChannelOutput {
|
|
574
|
+
channel: Channel;
|
|
437
575
|
}
|
|
438
576
|
/**
|
|
439
577
|
* @public
|
|
440
578
|
*/
|
|
441
|
-
export
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
* @internal
|
|
446
|
-
*/
|
|
447
|
-
constructor(opts: __ExceptionOptionType<MemberNotFoundException, __BaseException>);
|
|
579
|
+
export interface LeaveChannelInput {
|
|
580
|
+
channelId: string;
|
|
581
|
+
userId?: string;
|
|
582
|
+
silent?: boolean;
|
|
448
583
|
}
|
|
449
584
|
/**
|
|
450
585
|
* @public
|
|
451
586
|
*/
|
|
452
|
-
export interface
|
|
453
|
-
channelId: string;
|
|
454
|
-
messageId: string;
|
|
587
|
+
export interface LeaveChannelOutput {
|
|
455
588
|
}
|
|
456
589
|
/**
|
|
457
590
|
* @public
|
|
458
591
|
*/
|
|
459
|
-
export interface
|
|
592
|
+
export interface ListChannelMembersInput {
|
|
460
593
|
channelId: string;
|
|
461
|
-
|
|
594
|
+
limit?: number;
|
|
595
|
+
offset?: number;
|
|
462
596
|
}
|
|
463
597
|
/**
|
|
464
598
|
* @public
|
|
465
599
|
*/
|
|
466
|
-
export interface
|
|
467
|
-
|
|
600
|
+
export interface ListChannelMembersOutput {
|
|
601
|
+
/**
|
|
602
|
+
* @public
|
|
603
|
+
* The list of members matching the query
|
|
604
|
+
*/
|
|
605
|
+
members: (ChannelMember)[];
|
|
606
|
+
/**
|
|
607
|
+
* @public
|
|
608
|
+
* The list of users matching the query
|
|
609
|
+
*/
|
|
610
|
+
users: (User)[];
|
|
468
611
|
}
|
|
469
612
|
/**
|
|
470
613
|
* @public
|
|
@@ -486,14 +629,61 @@ export interface ListChannelsOutput {
|
|
|
486
629
|
export interface ListMessagesInput {
|
|
487
630
|
channelId: string;
|
|
488
631
|
}
|
|
632
|
+
/**
|
|
633
|
+
* @public
|
|
634
|
+
*/
|
|
635
|
+
export interface MarkReadInput {
|
|
636
|
+
channelId: string;
|
|
637
|
+
userId?: string;
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* @public
|
|
641
|
+
*/
|
|
642
|
+
export interface MarkReadOutput {
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* @public
|
|
646
|
+
*/
|
|
647
|
+
export interface PartialUpdateChannelSetOptions {
|
|
648
|
+
subject?: string;
|
|
649
|
+
description?: string;
|
|
650
|
+
/**
|
|
651
|
+
* @public
|
|
652
|
+
* Picture URL
|
|
653
|
+
*/
|
|
654
|
+
picture?: string;
|
|
655
|
+
/**
|
|
656
|
+
* @public
|
|
657
|
+
* Picture dominant color represented by a hex value.
|
|
658
|
+
*/
|
|
659
|
+
pictureColor?: string;
|
|
660
|
+
access?: ChannelAccess | string;
|
|
661
|
+
broadcast?: boolean;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* @public
|
|
665
|
+
* @enum
|
|
666
|
+
*/
|
|
667
|
+
export declare const GroupChannelUnsetOptions: {
|
|
668
|
+
readonly ACCESS: "access";
|
|
669
|
+
readonly BROADCAST: "broadcast";
|
|
670
|
+
readonly DESCRIPTION: "description";
|
|
671
|
+
readonly PICTURE: "picture";
|
|
672
|
+
readonly PICTURE_COLOR: "pictureColor";
|
|
673
|
+
readonly SUBJECT: "subject";
|
|
674
|
+
};
|
|
675
|
+
/**
|
|
676
|
+
* @public
|
|
677
|
+
*/
|
|
678
|
+
export type GroupChannelUnsetOptions = typeof GroupChannelUnsetOptions[keyof typeof GroupChannelUnsetOptions];
|
|
489
679
|
/**
|
|
490
680
|
* @public
|
|
491
681
|
*/
|
|
492
682
|
export interface PartialUpdateChannelInput {
|
|
493
683
|
channelId: string;
|
|
494
684
|
userId?: string;
|
|
495
|
-
set?:
|
|
496
|
-
unset?: (
|
|
685
|
+
set?: PartialUpdateChannelSetOptions;
|
|
686
|
+
unset?: (GroupChannelUnsetOptions | string)[];
|
|
497
687
|
}
|
|
498
688
|
/**
|
|
499
689
|
* @public
|
|
@@ -507,11 +697,9 @@ export interface PartialUpdateChannelOutput {
|
|
|
507
697
|
*/
|
|
508
698
|
export declare const MessageUnsetFields: {
|
|
509
699
|
readonly ATTACHMENTS: "attachments";
|
|
510
|
-
readonly EVENT: "event";
|
|
511
700
|
readonly FORWARD: "forward";
|
|
512
701
|
readonly QUOTE: "quote";
|
|
513
|
-
readonly
|
|
514
|
-
readonly SMS_STATUS: "smsStatus";
|
|
702
|
+
readonly TEXT: "text";
|
|
515
703
|
};
|
|
516
704
|
/**
|
|
517
705
|
* @public
|
|
@@ -543,13 +731,105 @@ export interface ScheduleExternalFlagAdjustmentJobInput {
|
|
|
543
731
|
*/
|
|
544
732
|
export interface ScheduleExternalFlagAdjustmentJobOutput {
|
|
545
733
|
}
|
|
734
|
+
/**
|
|
735
|
+
* @public
|
|
736
|
+
*/
|
|
737
|
+
export interface SendGiphyInput {
|
|
738
|
+
channelId: string;
|
|
739
|
+
/**
|
|
740
|
+
* @public
|
|
741
|
+
* User ID for server side calls
|
|
742
|
+
*/
|
|
743
|
+
userId?: string;
|
|
744
|
+
/**
|
|
745
|
+
* @public
|
|
746
|
+
* Message ID if empty ID will be auto-generated.
|
|
747
|
+
*/
|
|
748
|
+
messageId?: string;
|
|
749
|
+
giphy: MessageGiphy;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* @public
|
|
753
|
+
*/
|
|
754
|
+
export interface SendMessageReactionInput {
|
|
755
|
+
channelId: string;
|
|
756
|
+
messageId: string;
|
|
757
|
+
/**
|
|
758
|
+
* @public
|
|
759
|
+
* Type of the reaction. User could have only 1 reaction of each type per message.
|
|
760
|
+
*/
|
|
761
|
+
reactionType: ReactionType | string;
|
|
762
|
+
/**
|
|
763
|
+
* @public
|
|
764
|
+
* User ID for server side calls
|
|
765
|
+
*/
|
|
766
|
+
userId?: string;
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* @public
|
|
770
|
+
*/
|
|
771
|
+
export interface SendMessageReactionOutput {
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* @public
|
|
775
|
+
*/
|
|
776
|
+
export interface SendSystemMessageInput {
|
|
777
|
+
channelId: string;
|
|
778
|
+
/**
|
|
779
|
+
* @public
|
|
780
|
+
* User ID for server side calls
|
|
781
|
+
*/
|
|
782
|
+
userId?: string;
|
|
783
|
+
/**
|
|
784
|
+
* @public
|
|
785
|
+
* Message ID if empty ID will be auto-generated.
|
|
786
|
+
*/
|
|
787
|
+
messageId?: string;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* @public
|
|
791
|
+
*/
|
|
792
|
+
export interface SendTypingStartInput {
|
|
793
|
+
channelId: string;
|
|
794
|
+
userId?: string;
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* @public
|
|
798
|
+
*/
|
|
799
|
+
export interface SendTypingStartOutput {
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* @public
|
|
803
|
+
*/
|
|
804
|
+
export interface SendTypingStopInput {
|
|
805
|
+
channelId: string;
|
|
806
|
+
userId?: string;
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* @public
|
|
810
|
+
*/
|
|
811
|
+
export interface SendTypingStopOutput {
|
|
812
|
+
}
|
|
546
813
|
/**
|
|
547
814
|
* @public
|
|
548
815
|
*/
|
|
549
816
|
export interface UpdateChannelInput {
|
|
817
|
+
subject?: string;
|
|
818
|
+
description?: string;
|
|
819
|
+
/**
|
|
820
|
+
* @public
|
|
821
|
+
* Picture URL
|
|
822
|
+
*/
|
|
823
|
+
picture?: string;
|
|
824
|
+
/**
|
|
825
|
+
* @public
|
|
826
|
+
* Picture dominant color represented by a hex value.
|
|
827
|
+
*/
|
|
828
|
+
pictureColor?: string;
|
|
829
|
+
access?: ChannelAccess | string;
|
|
830
|
+
broadcast?: boolean;
|
|
550
831
|
channelId: string;
|
|
551
832
|
userId?: string;
|
|
552
|
-
channel: ChannelUpdateFields;
|
|
553
833
|
}
|
|
554
834
|
/**
|
|
555
835
|
* @public
|
|
@@ -561,14 +841,14 @@ export interface UpdateChannelOutput {
|
|
|
561
841
|
* @public
|
|
562
842
|
*/
|
|
563
843
|
export interface Message {
|
|
564
|
-
type: MessageType | string;
|
|
565
844
|
text?: string;
|
|
566
|
-
silent?: boolean;
|
|
567
|
-
event?: string;
|
|
568
845
|
attachments?: (MessageAttachment)[];
|
|
569
|
-
giphy?: MessageGiphy;
|
|
570
846
|
quote?: Message;
|
|
571
847
|
forward?: MessageForward;
|
|
848
|
+
type: MessageType | string;
|
|
849
|
+
giphy?: MessageGiphy;
|
|
850
|
+
silent?: boolean;
|
|
851
|
+
event?: string;
|
|
572
852
|
sms?: boolean;
|
|
573
853
|
smsStatus?: MessageSmsStatus | string;
|
|
574
854
|
messageId: string;
|
|
@@ -584,95 +864,93 @@ export interface Message {
|
|
|
584
864
|
/**
|
|
585
865
|
* @public
|
|
586
866
|
*/
|
|
587
|
-
export interface
|
|
867
|
+
export interface GetMessageOutput {
|
|
588
868
|
message?: Message;
|
|
589
869
|
}
|
|
590
870
|
/**
|
|
591
871
|
* @public
|
|
592
872
|
*/
|
|
593
|
-
export interface
|
|
873
|
+
export interface PartialUpdateMessageOutput {
|
|
594
874
|
message?: Message;
|
|
595
875
|
}
|
|
596
876
|
/**
|
|
597
877
|
* @public
|
|
598
|
-
* An interface of available options for new message command
|
|
599
878
|
*/
|
|
600
|
-
export interface
|
|
601
|
-
type: MessageType | string;
|
|
879
|
+
export interface PartialUpdateMessageSetInput {
|
|
602
880
|
text?: string;
|
|
603
|
-
silent?: boolean;
|
|
604
|
-
event?: string;
|
|
605
881
|
attachments?: (MessageAttachment)[];
|
|
606
|
-
giphy?: MessageGiphy;
|
|
607
882
|
quote?: Message;
|
|
608
883
|
forward?: MessageForward;
|
|
609
|
-
sms?: boolean;
|
|
610
|
-
smsStatus?: MessageSmsStatus | string;
|
|
611
|
-
messageId?: string;
|
|
612
|
-
mentions?: (string)[];
|
|
613
884
|
}
|
|
614
885
|
/**
|
|
615
886
|
* @public
|
|
616
887
|
*/
|
|
617
|
-
export interface
|
|
618
|
-
|
|
888
|
+
export interface SendGiphyOutput {
|
|
889
|
+
message?: Message;
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* @public
|
|
893
|
+
*/
|
|
894
|
+
export interface SendMessageInput {
|
|
619
895
|
text?: string;
|
|
620
|
-
silent?: boolean;
|
|
621
|
-
event?: string;
|
|
622
896
|
attachments?: (MessageAttachment)[];
|
|
623
|
-
giphy?: MessageGiphy;
|
|
624
897
|
quote?: Message;
|
|
625
898
|
forward?: MessageForward;
|
|
626
|
-
|
|
627
|
-
|
|
899
|
+
channelId: string;
|
|
900
|
+
/**
|
|
901
|
+
* @public
|
|
902
|
+
* User ID for server side calls
|
|
903
|
+
*/
|
|
904
|
+
userId?: string;
|
|
905
|
+
/**
|
|
906
|
+
* @public
|
|
907
|
+
* Message ID if empty ID will be auto-generated.
|
|
908
|
+
*/
|
|
909
|
+
messageId?: string;
|
|
628
910
|
mentions?: (string)[];
|
|
629
911
|
}
|
|
630
912
|
/**
|
|
631
913
|
* @public
|
|
632
914
|
*/
|
|
633
|
-
export interface
|
|
915
|
+
export interface SendMessageOutput {
|
|
634
916
|
message?: Message;
|
|
635
917
|
}
|
|
636
918
|
/**
|
|
637
919
|
* @public
|
|
638
920
|
*/
|
|
639
|
-
export interface
|
|
921
|
+
export interface SendSystemMessageOutput {
|
|
640
922
|
message?: Message;
|
|
641
923
|
}
|
|
642
924
|
/**
|
|
643
925
|
* @public
|
|
644
926
|
*/
|
|
645
|
-
export interface
|
|
927
|
+
export interface UpdateMessageInput {
|
|
928
|
+
text?: string;
|
|
929
|
+
attachments?: (MessageAttachment)[];
|
|
930
|
+
quote?: Message;
|
|
931
|
+
forward?: MessageForward;
|
|
646
932
|
channelId: string;
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
* @public
|
|
650
|
-
* An interface of available options for new message command
|
|
651
|
-
*/
|
|
652
|
-
message: MessageCreateFields;
|
|
933
|
+
messageId: string;
|
|
934
|
+
mentions?: (string)[];
|
|
653
935
|
}
|
|
654
936
|
/**
|
|
655
937
|
* @public
|
|
656
938
|
*/
|
|
657
|
-
export interface
|
|
658
|
-
|
|
939
|
+
export interface UpdateMessageOutput {
|
|
940
|
+
message?: Message;
|
|
659
941
|
}
|
|
660
942
|
/**
|
|
661
943
|
* @public
|
|
662
944
|
*/
|
|
663
|
-
export interface
|
|
664
|
-
|
|
665
|
-
messageId: string;
|
|
666
|
-
userId?: string;
|
|
667
|
-
set?: MessageUpdateFields;
|
|
668
|
-
unset?: (MessageUnsetFields | string)[];
|
|
945
|
+
export interface ListMessagesOutput {
|
|
946
|
+
messages?: (Message)[];
|
|
669
947
|
}
|
|
670
948
|
/**
|
|
671
949
|
* @public
|
|
672
950
|
*/
|
|
673
|
-
export interface
|
|
951
|
+
export interface PartialUpdateMessageInput {
|
|
674
952
|
channelId: string;
|
|
675
953
|
messageId: string;
|
|
676
|
-
|
|
677
|
-
|
|
954
|
+
set?: PartialUpdateMessageSetInput;
|
|
955
|
+
unset?: (MessageUnsetFields | string)[];
|
|
678
956
|
}
|