@wildix/xbees-conversations-client 1.0.30 → 1.0.32
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 +1208 -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 +1178 -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 +3 -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 +455 -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,177 @@ 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
|
+
* @public
|
|
344
|
+
* User ID for server side calls
|
|
345
|
+
*/
|
|
346
|
+
userId?: string;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* @public
|
|
350
|
+
*/
|
|
351
|
+
export interface DeleteMessageOutput {
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* @public
|
|
355
|
+
*/
|
|
356
|
+
export declare class MessageNotFoundException extends __BaseException {
|
|
357
|
+
readonly name: "MessageNotFoundException";
|
|
358
|
+
readonly $fault: "client";
|
|
359
|
+
/**
|
|
360
|
+
* @internal
|
|
361
|
+
*/
|
|
362
|
+
constructor(opts: __ExceptionOptionType<MessageNotFoundException, __BaseException>);
|
|
228
363
|
}
|
|
229
364
|
/**
|
|
230
365
|
* @public
|
|
231
366
|
* @enum
|
|
232
367
|
*/
|
|
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";
|
|
368
|
+
export declare const ReactionType: {
|
|
369
|
+
readonly CLAP: "clap";
|
|
370
|
+
readonly CONFUSED: "confused";
|
|
371
|
+
readonly EYES: "eyes";
|
|
372
|
+
readonly HEART: "heart";
|
|
373
|
+
readonly SLIGHTLY_SMILING_FACE: "slightly_smiling_face";
|
|
374
|
+
readonly SMILEY: "smiley";
|
|
375
|
+
readonly THUMBSDOWN: "thumbsdown";
|
|
376
|
+
readonly THUMBSUP: "thumbsup";
|
|
377
|
+
readonly WHITE_CHECK_MARK: "white_check_mark";
|
|
256
378
|
};
|
|
257
379
|
/**
|
|
258
380
|
* @public
|
|
259
381
|
*/
|
|
260
|
-
export type
|
|
382
|
+
export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
|
|
261
383
|
/**
|
|
262
384
|
* @public
|
|
263
385
|
*/
|
|
264
|
-
export interface
|
|
265
|
-
|
|
266
|
-
description?: string;
|
|
386
|
+
export interface DeleteMessageReactionInput {
|
|
387
|
+
channelId: string;
|
|
267
388
|
/**
|
|
268
389
|
* @public
|
|
269
|
-
*
|
|
390
|
+
* ID of the message to react to.
|
|
270
391
|
*/
|
|
271
|
-
|
|
392
|
+
messageId: string;
|
|
272
393
|
/**
|
|
273
394
|
* @public
|
|
274
|
-
*
|
|
395
|
+
* Type of the reaction.
|
|
275
396
|
*/
|
|
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;
|
|
397
|
+
reactionType: ReactionType | string;
|
|
398
|
+
/**
|
|
399
|
+
* @public
|
|
400
|
+
* User ID for server side calls
|
|
401
|
+
*/
|
|
402
|
+
userId?: string;
|
|
295
403
|
}
|
|
296
404
|
/**
|
|
297
405
|
* @public
|
|
298
406
|
*/
|
|
299
|
-
export interface
|
|
300
|
-
channel: ChannelCreateFields;
|
|
301
|
-
userId?: string;
|
|
407
|
+
export interface DeleteMessageReactionOutput {
|
|
302
408
|
}
|
|
303
409
|
/**
|
|
304
410
|
* @public
|
|
305
411
|
*/
|
|
306
|
-
export interface
|
|
412
|
+
export interface GetChannelInput {
|
|
413
|
+
channelId: string;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* @public
|
|
417
|
+
*/
|
|
418
|
+
export interface GetChannelOutput {
|
|
307
419
|
channel: Channel;
|
|
308
420
|
}
|
|
421
|
+
/**
|
|
422
|
+
* @public
|
|
423
|
+
*/
|
|
424
|
+
export interface GetChannelMemberInput {
|
|
425
|
+
channelId: string;
|
|
426
|
+
memberId: string;
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* @public
|
|
430
|
+
*/
|
|
431
|
+
export interface GetChannelMemberOutput {
|
|
432
|
+
member: ChannelMember;
|
|
433
|
+
user: User;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* @public
|
|
437
|
+
*/
|
|
438
|
+
export interface GetDirectChannelIdInput {
|
|
439
|
+
userId?: string;
|
|
440
|
+
participantId: string;
|
|
441
|
+
participantToInvite: UserToInvite;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* @public
|
|
445
|
+
*/
|
|
446
|
+
export interface GetDirectChannelIdOutput {
|
|
447
|
+
channelId: string;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* @public
|
|
451
|
+
*/
|
|
452
|
+
export interface GetMessageInput {
|
|
453
|
+
channelId: string;
|
|
454
|
+
messageId: string;
|
|
455
|
+
}
|
|
309
456
|
/**
|
|
310
457
|
* @public
|
|
311
458
|
*/
|
|
@@ -379,92 +526,93 @@ export type MessageType = typeof MessageType[keyof typeof MessageType];
|
|
|
379
526
|
/**
|
|
380
527
|
* @public
|
|
381
528
|
*/
|
|
382
|
-
export interface
|
|
529
|
+
export interface GetMessageReactionsInput {
|
|
383
530
|
channelId: string;
|
|
531
|
+
messageId: string;
|
|
532
|
+
limit?: number;
|
|
533
|
+
offset?: number;
|
|
384
534
|
}
|
|
385
535
|
/**
|
|
386
536
|
* @public
|
|
387
537
|
*/
|
|
388
|
-
export interface
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* @public
|
|
392
|
-
*/
|
|
393
|
-
export interface DeleteMessageInput {
|
|
394
|
-
channelId: string;
|
|
395
|
-
messageId: string;
|
|
538
|
+
export interface GetMessageReactionsOutput {
|
|
539
|
+
reactions: (Reaction)[];
|
|
396
540
|
}
|
|
397
541
|
/**
|
|
398
542
|
* @public
|
|
399
543
|
*/
|
|
400
|
-
export interface
|
|
544
|
+
export interface GetOrCreateDirectChannelInput {
|
|
545
|
+
userId?: string;
|
|
546
|
+
memberId?: string;
|
|
547
|
+
memberToInvite?: UserToInvite;
|
|
401
548
|
}
|
|
402
549
|
/**
|
|
403
550
|
* @public
|
|
404
551
|
*/
|
|
405
|
-
export
|
|
406
|
-
|
|
407
|
-
readonly $fault: "client";
|
|
408
|
-
/**
|
|
409
|
-
* @internal
|
|
410
|
-
*/
|
|
411
|
-
constructor(opts: __ExceptionOptionType<MessageNotFoundException, __BaseException>);
|
|
552
|
+
export interface GetOrCreateDirectChannelOutput {
|
|
553
|
+
channel: Channel;
|
|
412
554
|
}
|
|
413
555
|
/**
|
|
414
556
|
* @public
|
|
415
557
|
*/
|
|
416
|
-
export interface
|
|
417
|
-
|
|
558
|
+
export interface InviteInput {
|
|
559
|
+
invitees: (UserToInvite)[];
|
|
418
560
|
}
|
|
419
561
|
/**
|
|
420
562
|
* @public
|
|
421
563
|
*/
|
|
422
|
-
export interface
|
|
423
|
-
|
|
564
|
+
export interface InviteOutput {
|
|
565
|
+
users: (User)[];
|
|
424
566
|
}
|
|
425
567
|
/**
|
|
426
568
|
* @public
|
|
427
569
|
*/
|
|
428
|
-
export interface
|
|
570
|
+
export interface JoinChannelInput {
|
|
429
571
|
channelId: string;
|
|
430
|
-
|
|
572
|
+
userId?: string;
|
|
573
|
+
silent?: boolean;
|
|
431
574
|
}
|
|
432
575
|
/**
|
|
433
576
|
* @public
|
|
434
577
|
*/
|
|
435
|
-
export interface
|
|
436
|
-
|
|
578
|
+
export interface JoinChannelOutput {
|
|
579
|
+
channel: Channel;
|
|
437
580
|
}
|
|
438
581
|
/**
|
|
439
582
|
* @public
|
|
440
583
|
*/
|
|
441
|
-
export
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
* @internal
|
|
446
|
-
*/
|
|
447
|
-
constructor(opts: __ExceptionOptionType<MemberNotFoundException, __BaseException>);
|
|
584
|
+
export interface LeaveChannelInput {
|
|
585
|
+
channelId: string;
|
|
586
|
+
userId?: string;
|
|
587
|
+
silent?: boolean;
|
|
448
588
|
}
|
|
449
589
|
/**
|
|
450
590
|
* @public
|
|
451
591
|
*/
|
|
452
|
-
export interface
|
|
453
|
-
channelId: string;
|
|
454
|
-
messageId: string;
|
|
592
|
+
export interface LeaveChannelOutput {
|
|
455
593
|
}
|
|
456
594
|
/**
|
|
457
595
|
* @public
|
|
458
596
|
*/
|
|
459
|
-
export interface
|
|
597
|
+
export interface ListChannelMembersInput {
|
|
460
598
|
channelId: string;
|
|
461
|
-
|
|
599
|
+
limit?: number;
|
|
600
|
+
offset?: number;
|
|
462
601
|
}
|
|
463
602
|
/**
|
|
464
603
|
* @public
|
|
465
604
|
*/
|
|
466
|
-
export interface
|
|
467
|
-
|
|
605
|
+
export interface ListChannelMembersOutput {
|
|
606
|
+
/**
|
|
607
|
+
* @public
|
|
608
|
+
* The list of members matching the query
|
|
609
|
+
*/
|
|
610
|
+
members: (ChannelMember)[];
|
|
611
|
+
/**
|
|
612
|
+
* @public
|
|
613
|
+
* The list of users matching the query
|
|
614
|
+
*/
|
|
615
|
+
users: (User)[];
|
|
468
616
|
}
|
|
469
617
|
/**
|
|
470
618
|
* @public
|
|
@@ -486,14 +634,61 @@ export interface ListChannelsOutput {
|
|
|
486
634
|
export interface ListMessagesInput {
|
|
487
635
|
channelId: string;
|
|
488
636
|
}
|
|
637
|
+
/**
|
|
638
|
+
* @public
|
|
639
|
+
*/
|
|
640
|
+
export interface MarkReadInput {
|
|
641
|
+
channelId: string;
|
|
642
|
+
userId?: string;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* @public
|
|
646
|
+
*/
|
|
647
|
+
export interface MarkReadOutput {
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* @public
|
|
651
|
+
*/
|
|
652
|
+
export interface PartialUpdateChannelSetOptions {
|
|
653
|
+
subject?: string;
|
|
654
|
+
description?: string;
|
|
655
|
+
/**
|
|
656
|
+
* @public
|
|
657
|
+
* Picture URL
|
|
658
|
+
*/
|
|
659
|
+
picture?: string;
|
|
660
|
+
/**
|
|
661
|
+
* @public
|
|
662
|
+
* Picture dominant color represented by a hex value.
|
|
663
|
+
*/
|
|
664
|
+
pictureColor?: string;
|
|
665
|
+
access?: ChannelAccess | string;
|
|
666
|
+
broadcast?: boolean;
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* @public
|
|
670
|
+
* @enum
|
|
671
|
+
*/
|
|
672
|
+
export declare const GroupChannelUnsetOptions: {
|
|
673
|
+
readonly ACCESS: "access";
|
|
674
|
+
readonly BROADCAST: "broadcast";
|
|
675
|
+
readonly DESCRIPTION: "description";
|
|
676
|
+
readonly PICTURE: "picture";
|
|
677
|
+
readonly PICTURE_COLOR: "pictureColor";
|
|
678
|
+
readonly SUBJECT: "subject";
|
|
679
|
+
};
|
|
680
|
+
/**
|
|
681
|
+
* @public
|
|
682
|
+
*/
|
|
683
|
+
export type GroupChannelUnsetOptions = typeof GroupChannelUnsetOptions[keyof typeof GroupChannelUnsetOptions];
|
|
489
684
|
/**
|
|
490
685
|
* @public
|
|
491
686
|
*/
|
|
492
687
|
export interface PartialUpdateChannelInput {
|
|
493
688
|
channelId: string;
|
|
494
689
|
userId?: string;
|
|
495
|
-
set?:
|
|
496
|
-
unset?: (
|
|
690
|
+
set?: PartialUpdateChannelSetOptions;
|
|
691
|
+
unset?: (GroupChannelUnsetOptions | string)[];
|
|
497
692
|
}
|
|
498
693
|
/**
|
|
499
694
|
* @public
|
|
@@ -507,11 +702,9 @@ export interface PartialUpdateChannelOutput {
|
|
|
507
702
|
*/
|
|
508
703
|
export declare const MessageUnsetFields: {
|
|
509
704
|
readonly ATTACHMENTS: "attachments";
|
|
510
|
-
readonly EVENT: "event";
|
|
511
705
|
readonly FORWARD: "forward";
|
|
512
706
|
readonly QUOTE: "quote";
|
|
513
|
-
readonly
|
|
514
|
-
readonly SMS_STATUS: "smsStatus";
|
|
707
|
+
readonly TEXT: "text";
|
|
515
708
|
};
|
|
516
709
|
/**
|
|
517
710
|
* @public
|
|
@@ -543,13 +736,105 @@ export interface ScheduleExternalFlagAdjustmentJobInput {
|
|
|
543
736
|
*/
|
|
544
737
|
export interface ScheduleExternalFlagAdjustmentJobOutput {
|
|
545
738
|
}
|
|
739
|
+
/**
|
|
740
|
+
* @public
|
|
741
|
+
*/
|
|
742
|
+
export interface SendGiphyInput {
|
|
743
|
+
channelId: string;
|
|
744
|
+
/**
|
|
745
|
+
* @public
|
|
746
|
+
* User ID for server side calls
|
|
747
|
+
*/
|
|
748
|
+
userId?: string;
|
|
749
|
+
/**
|
|
750
|
+
* @public
|
|
751
|
+
* Message ID if empty ID will be auto-generated.
|
|
752
|
+
*/
|
|
753
|
+
messageId?: string;
|
|
754
|
+
giphy: MessageGiphy;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* @public
|
|
758
|
+
*/
|
|
759
|
+
export interface SendMessageReactionInput {
|
|
760
|
+
channelId: string;
|
|
761
|
+
messageId: string;
|
|
762
|
+
/**
|
|
763
|
+
* @public
|
|
764
|
+
* Type of the reaction. User could have only 1 reaction of each type per message.
|
|
765
|
+
*/
|
|
766
|
+
reactionType: ReactionType | string;
|
|
767
|
+
/**
|
|
768
|
+
* @public
|
|
769
|
+
* User ID for server side calls
|
|
770
|
+
*/
|
|
771
|
+
userId?: string;
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* @public
|
|
775
|
+
*/
|
|
776
|
+
export interface SendMessageReactionOutput {
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* @public
|
|
780
|
+
*/
|
|
781
|
+
export interface SendSystemMessageInput {
|
|
782
|
+
channelId: string;
|
|
783
|
+
/**
|
|
784
|
+
* @public
|
|
785
|
+
* User ID for server side calls
|
|
786
|
+
*/
|
|
787
|
+
userId?: string;
|
|
788
|
+
/**
|
|
789
|
+
* @public
|
|
790
|
+
* Message ID if empty ID will be auto-generated.
|
|
791
|
+
*/
|
|
792
|
+
messageId?: string;
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* @public
|
|
796
|
+
*/
|
|
797
|
+
export interface SendTypingStartInput {
|
|
798
|
+
channelId: string;
|
|
799
|
+
userId?: string;
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* @public
|
|
803
|
+
*/
|
|
804
|
+
export interface SendTypingStartOutput {
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* @public
|
|
808
|
+
*/
|
|
809
|
+
export interface SendTypingStopInput {
|
|
810
|
+
channelId: string;
|
|
811
|
+
userId?: string;
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* @public
|
|
815
|
+
*/
|
|
816
|
+
export interface SendTypingStopOutput {
|
|
817
|
+
}
|
|
546
818
|
/**
|
|
547
819
|
* @public
|
|
548
820
|
*/
|
|
549
821
|
export interface UpdateChannelInput {
|
|
822
|
+
subject?: string;
|
|
823
|
+
description?: string;
|
|
824
|
+
/**
|
|
825
|
+
* @public
|
|
826
|
+
* Picture URL
|
|
827
|
+
*/
|
|
828
|
+
picture?: string;
|
|
829
|
+
/**
|
|
830
|
+
* @public
|
|
831
|
+
* Picture dominant color represented by a hex value.
|
|
832
|
+
*/
|
|
833
|
+
pictureColor?: string;
|
|
834
|
+
access?: ChannelAccess | string;
|
|
835
|
+
broadcast?: boolean;
|
|
550
836
|
channelId: string;
|
|
551
837
|
userId?: string;
|
|
552
|
-
channel: ChannelUpdateFields;
|
|
553
838
|
}
|
|
554
839
|
/**
|
|
555
840
|
* @public
|
|
@@ -561,14 +846,14 @@ export interface UpdateChannelOutput {
|
|
|
561
846
|
* @public
|
|
562
847
|
*/
|
|
563
848
|
export interface Message {
|
|
564
|
-
type: MessageType | string;
|
|
565
849
|
text?: string;
|
|
566
|
-
silent?: boolean;
|
|
567
|
-
event?: string;
|
|
568
850
|
attachments?: (MessageAttachment)[];
|
|
569
|
-
giphy?: MessageGiphy;
|
|
570
851
|
quote?: Message;
|
|
571
852
|
forward?: MessageForward;
|
|
853
|
+
type: MessageType | string;
|
|
854
|
+
giphy?: MessageGiphy;
|
|
855
|
+
silent?: boolean;
|
|
856
|
+
event?: string;
|
|
572
857
|
sms?: boolean;
|
|
573
858
|
smsStatus?: MessageSmsStatus | string;
|
|
574
859
|
messageId: string;
|
|
@@ -584,95 +869,93 @@ export interface Message {
|
|
|
584
869
|
/**
|
|
585
870
|
* @public
|
|
586
871
|
*/
|
|
587
|
-
export interface
|
|
872
|
+
export interface GetMessageOutput {
|
|
588
873
|
message?: Message;
|
|
589
874
|
}
|
|
590
875
|
/**
|
|
591
876
|
* @public
|
|
592
877
|
*/
|
|
593
|
-
export interface
|
|
878
|
+
export interface PartialUpdateMessageOutput {
|
|
594
879
|
message?: Message;
|
|
595
880
|
}
|
|
596
881
|
/**
|
|
597
882
|
* @public
|
|
598
|
-
* An interface of available options for new message command
|
|
599
883
|
*/
|
|
600
|
-
export interface
|
|
601
|
-
type: MessageType | string;
|
|
884
|
+
export interface PartialUpdateMessageSetInput {
|
|
602
885
|
text?: string;
|
|
603
|
-
silent?: boolean;
|
|
604
|
-
event?: string;
|
|
605
886
|
attachments?: (MessageAttachment)[];
|
|
606
|
-
giphy?: MessageGiphy;
|
|
607
887
|
quote?: Message;
|
|
608
888
|
forward?: MessageForward;
|
|
609
|
-
sms?: boolean;
|
|
610
|
-
smsStatus?: MessageSmsStatus | string;
|
|
611
|
-
messageId?: string;
|
|
612
|
-
mentions?: (string)[];
|
|
613
889
|
}
|
|
614
890
|
/**
|
|
615
891
|
* @public
|
|
616
892
|
*/
|
|
617
|
-
export interface
|
|
618
|
-
|
|
893
|
+
export interface SendGiphyOutput {
|
|
894
|
+
message?: Message;
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* @public
|
|
898
|
+
*/
|
|
899
|
+
export interface SendMessageInput {
|
|
619
900
|
text?: string;
|
|
620
|
-
silent?: boolean;
|
|
621
|
-
event?: string;
|
|
622
901
|
attachments?: (MessageAttachment)[];
|
|
623
|
-
giphy?: MessageGiphy;
|
|
624
902
|
quote?: Message;
|
|
625
903
|
forward?: MessageForward;
|
|
626
|
-
|
|
627
|
-
|
|
904
|
+
channelId: string;
|
|
905
|
+
/**
|
|
906
|
+
* @public
|
|
907
|
+
* User ID for server side calls
|
|
908
|
+
*/
|
|
909
|
+
userId?: string;
|
|
910
|
+
/**
|
|
911
|
+
* @public
|
|
912
|
+
* Message ID if empty ID will be auto-generated.
|
|
913
|
+
*/
|
|
914
|
+
messageId?: string;
|
|
628
915
|
mentions?: (string)[];
|
|
629
916
|
}
|
|
630
917
|
/**
|
|
631
918
|
* @public
|
|
632
919
|
*/
|
|
633
|
-
export interface
|
|
920
|
+
export interface SendMessageOutput {
|
|
634
921
|
message?: Message;
|
|
635
922
|
}
|
|
636
923
|
/**
|
|
637
924
|
* @public
|
|
638
925
|
*/
|
|
639
|
-
export interface
|
|
926
|
+
export interface SendSystemMessageOutput {
|
|
640
927
|
message?: Message;
|
|
641
928
|
}
|
|
642
929
|
/**
|
|
643
930
|
* @public
|
|
644
931
|
*/
|
|
645
|
-
export interface
|
|
932
|
+
export interface UpdateMessageInput {
|
|
933
|
+
text?: string;
|
|
934
|
+
attachments?: (MessageAttachment)[];
|
|
935
|
+
quote?: Message;
|
|
936
|
+
forward?: MessageForward;
|
|
646
937
|
channelId: string;
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
* @public
|
|
650
|
-
* An interface of available options for new message command
|
|
651
|
-
*/
|
|
652
|
-
message: MessageCreateFields;
|
|
938
|
+
messageId: string;
|
|
939
|
+
mentions?: (string)[];
|
|
653
940
|
}
|
|
654
941
|
/**
|
|
655
942
|
* @public
|
|
656
943
|
*/
|
|
657
|
-
export interface
|
|
658
|
-
|
|
944
|
+
export interface UpdateMessageOutput {
|
|
945
|
+
message?: Message;
|
|
659
946
|
}
|
|
660
947
|
/**
|
|
661
948
|
* @public
|
|
662
949
|
*/
|
|
663
|
-
export interface
|
|
664
|
-
|
|
665
|
-
messageId: string;
|
|
666
|
-
userId?: string;
|
|
667
|
-
set?: MessageUpdateFields;
|
|
668
|
-
unset?: (MessageUnsetFields | string)[];
|
|
950
|
+
export interface ListMessagesOutput {
|
|
951
|
+
messages?: (Message)[];
|
|
669
952
|
}
|
|
670
953
|
/**
|
|
671
954
|
* @public
|
|
672
955
|
*/
|
|
673
|
-
export interface
|
|
956
|
+
export interface PartialUpdateMessageInput {
|
|
674
957
|
channelId: string;
|
|
675
958
|
messageId: string;
|
|
676
|
-
|
|
677
|
-
|
|
959
|
+
set?: PartialUpdateMessageSetInput;
|
|
960
|
+
unset?: (MessageUnsetFields | string)[];
|
|
678
961
|
}
|