mezon-js 2.15.19 → 2.15.21
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/README.md +244 -244
- package/dist/client.d.ts +119 -177
- package/dist/index.d.ts +1 -6
- package/dist/mezon-js.cjs.js +1 -1
- package/dist/mezon-js.esm.mjs +1 -1
- package/dist/mezon-js.iife.js +1 -1
- package/dist/mezon-js.umd.js +1 -1
- package/dist/mezon-js.umd.js.map +1 -1
- package/dist/transport.d.ts +513 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{api.gen.d.ts → types.d.ts} +1188 -426
- package/package.json +71 -71
- package/dist/api.d.ts +0 -2604
- package/dist/config.d.ts +0 -13
- package/dist/socket.d.ts +0 -1194
|
@@ -1,6 +1,985 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ClanBadgeCount, DirectFcmProto } from "mezon-js-protobuf";
|
|
2
|
+
export interface PromiseExecutor {
|
|
3
|
+
resolve: (value?: any) => void;
|
|
4
|
+
reject: (reason?: any) => void;
|
|
5
|
+
}
|
|
6
|
+
/** An object which represents a connected user in the server. */
|
|
7
|
+
export interface Presence {
|
|
8
|
+
/** The id of the user. */
|
|
9
|
+
user_id: string;
|
|
10
|
+
/** The session id of the user. */
|
|
11
|
+
session_id: string;
|
|
12
|
+
/** The username of the user. */
|
|
13
|
+
username: string;
|
|
14
|
+
/** The node the user is connected to. */
|
|
15
|
+
node: string;
|
|
16
|
+
/** The status of the user */
|
|
17
|
+
status: string;
|
|
18
|
+
is_mobile: boolean;
|
|
19
|
+
user_status: string;
|
|
20
|
+
}
|
|
21
|
+
export interface NotificationInfo {
|
|
22
|
+
/** Category code for this notification. */
|
|
23
|
+
code?: number;
|
|
24
|
+
/** Content of the notification in JSON. */
|
|
25
|
+
content?: {};
|
|
26
|
+
/** The UNIX time when the notification was created. */
|
|
27
|
+
create_time_seconds?: number;
|
|
28
|
+
/** ID of the Notification. */
|
|
29
|
+
id?: string;
|
|
30
|
+
/** True if this notification was persisted to the database. */
|
|
31
|
+
persistent?: boolean;
|
|
32
|
+
/** ID of the sender, if a user. Otherwise 'null'. */
|
|
33
|
+
sender_id?: string;
|
|
34
|
+
/** Subject of the notification. */
|
|
35
|
+
subject?: string;
|
|
36
|
+
channel_id?: string;
|
|
37
|
+
clan_id?: string;
|
|
38
|
+
channel?: ApiChannelDescription;
|
|
39
|
+
topic_id?: string;
|
|
40
|
+
}
|
|
41
|
+
/** A response from a channel join operation. */
|
|
42
|
+
export interface Channel {
|
|
43
|
+
/** The server-assigned channel id. */
|
|
44
|
+
id: string;
|
|
45
|
+
chanel_label: string;
|
|
46
|
+
/** The presences visible on the chat channel. */
|
|
47
|
+
presences: Presence[];
|
|
48
|
+
/** The presence of the current user, i.e. yourself. */
|
|
49
|
+
self: Presence;
|
|
50
|
+
clan_logo: string;
|
|
51
|
+
category_name: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ClanJoin {
|
|
54
|
+
clan_join: {
|
|
55
|
+
clan_id: string;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/** Join a realtime chat channel. */
|
|
59
|
+
export interface ChannelJoin {
|
|
60
|
+
channel_join: {
|
|
61
|
+
/** The id of the channel to join. */
|
|
62
|
+
channel_id: string;
|
|
63
|
+
/** The name of the channel to join. */
|
|
64
|
+
channel_label: string;
|
|
65
|
+
/** The channel type: 1 = Channel, 2 = Direct Message, 3 = Group. */
|
|
66
|
+
type: number;
|
|
67
|
+
/** Whether channel messages are persisted in the database. */
|
|
68
|
+
persistence: boolean;
|
|
69
|
+
/** Whether the user's channel presence is hidden when joining. */
|
|
70
|
+
hidden: boolean;
|
|
71
|
+
is_public: boolean;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/** Leave a realtime chat channel. */
|
|
75
|
+
export interface ChannelLeave {
|
|
76
|
+
channel_leave: {
|
|
77
|
+
/** The id of the channel to leave. */
|
|
78
|
+
channel_id: string;
|
|
79
|
+
mode: number;
|
|
80
|
+
channel_label: string;
|
|
81
|
+
is_public: boolean;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export interface AddClanUserEvent {
|
|
85
|
+
clan_id: string;
|
|
86
|
+
user: UserProfile;
|
|
87
|
+
invitor: string;
|
|
88
|
+
}
|
|
89
|
+
export interface BannedUserEvent {
|
|
90
|
+
user_ids: Array<string>;
|
|
91
|
+
action: number;
|
|
92
|
+
banner_id: string;
|
|
93
|
+
channel_id: string;
|
|
94
|
+
clan_id: string;
|
|
95
|
+
ban_time: number;
|
|
96
|
+
}
|
|
97
|
+
export interface ListChannelUsersBannedEvent {
|
|
98
|
+
banned_user_ids: Array<string>;
|
|
99
|
+
}
|
|
100
|
+
export interface AiAgentEnabledEvent {
|
|
101
|
+
clan_id: string;
|
|
102
|
+
channel_id: string;
|
|
103
|
+
enabled: boolean;
|
|
104
|
+
}
|
|
105
|
+
export interface UserProfile {
|
|
106
|
+
/** User IDs to follow. */
|
|
107
|
+
user_id: string;
|
|
108
|
+
/** Username to follow. */
|
|
109
|
+
username: string;
|
|
110
|
+
/** Avatar to follow. */
|
|
111
|
+
avatar: string;
|
|
112
|
+
/** Display name */
|
|
113
|
+
display_name: string;
|
|
114
|
+
/** custom status */
|
|
115
|
+
custom_status: string;
|
|
116
|
+
/** online */
|
|
117
|
+
online: boolean;
|
|
118
|
+
create_time_second: number;
|
|
119
|
+
/** clans */
|
|
120
|
+
joined_clans: number[];
|
|
121
|
+
app_url: string;
|
|
122
|
+
is_bot: boolean;
|
|
123
|
+
}
|
|
124
|
+
/** UserChannelAddedEvent */
|
|
125
|
+
export interface UserChannelAddedEvent {
|
|
126
|
+
channel_desc: ChannelDescription;
|
|
127
|
+
users: UserProfile[];
|
|
128
|
+
status: string;
|
|
129
|
+
clan_id: string;
|
|
130
|
+
caller: UserProfile;
|
|
131
|
+
create_time_second: number;
|
|
132
|
+
active: number;
|
|
133
|
+
}
|
|
134
|
+
export interface UserChannelRemovedEvent {
|
|
135
|
+
channel_id: string;
|
|
136
|
+
user_ids: string[];
|
|
137
|
+
channel_type: number;
|
|
138
|
+
clan_id: string;
|
|
139
|
+
badge_counts: number[];
|
|
140
|
+
}
|
|
141
|
+
export interface UserClanRemovedEvent {
|
|
142
|
+
clan_id: string;
|
|
143
|
+
user_ids: string[];
|
|
144
|
+
}
|
|
145
|
+
/** Last seen message by user */
|
|
146
|
+
export interface LastPinMessageEvent {
|
|
147
|
+
/** The channel this message belongs to. */
|
|
148
|
+
channel_id: string;
|
|
149
|
+
mode: number;
|
|
150
|
+
channel_label: string;
|
|
151
|
+
/** The unique ID of this message. */
|
|
152
|
+
message_id: string;
|
|
153
|
+
/** user id */
|
|
154
|
+
user_id: string;
|
|
155
|
+
/** operation */
|
|
156
|
+
operation: number;
|
|
157
|
+
is_public: boolean;
|
|
158
|
+
clan_id: string;
|
|
159
|
+
message_sender_avatar: string;
|
|
160
|
+
message_sender_id: string;
|
|
161
|
+
message_sender_username: string;
|
|
162
|
+
message_content: string;
|
|
163
|
+
message_attachment: string;
|
|
164
|
+
message_created_time: string;
|
|
165
|
+
}
|
|
166
|
+
export interface UnmuteEvent {
|
|
167
|
+
channel_id: string;
|
|
168
|
+
category_id: string;
|
|
169
|
+
clan_id: string;
|
|
170
|
+
}
|
|
171
|
+
/** Last seen message by user */
|
|
172
|
+
export interface LastSeenMessageEvent {
|
|
173
|
+
clan_id: string;
|
|
174
|
+
/** The channel this message belongs to. */
|
|
175
|
+
channel_id: string;
|
|
176
|
+
mode: number;
|
|
177
|
+
channel_label: string;
|
|
178
|
+
/** The unique ID of this message. */
|
|
179
|
+
message_id: string;
|
|
180
|
+
badge_count: number;
|
|
181
|
+
}
|
|
182
|
+
/** User is typing */
|
|
183
|
+
export interface MessageTypingEvent {
|
|
184
|
+
/** The channel this message belongs to. */
|
|
185
|
+
channel_id: string;
|
|
186
|
+
mode: number;
|
|
187
|
+
channel_label: string;
|
|
188
|
+
/** Message sender, usually a user ID. */
|
|
189
|
+
sender_id: string;
|
|
190
|
+
is_public: boolean;
|
|
191
|
+
sender_username: string;
|
|
192
|
+
sender_display_name: string;
|
|
193
|
+
topic_id?: string;
|
|
194
|
+
}
|
|
195
|
+
export interface UserProfileUpdatedEvent {
|
|
196
|
+
user_id: string;
|
|
197
|
+
display_name: string;
|
|
198
|
+
avatar: string;
|
|
199
|
+
about_me: string;
|
|
200
|
+
channel_id: string;
|
|
201
|
+
clan_id: string;
|
|
202
|
+
encrypt_private_key: string;
|
|
203
|
+
}
|
|
204
|
+
/** An acknowledgement received in response to sending a message on a chat channel. */
|
|
205
|
+
export interface ChannelMessageAck {
|
|
206
|
+
/** The server-assigned channel ID. */
|
|
207
|
+
channel_id: string;
|
|
208
|
+
mode: number;
|
|
209
|
+
/** A unique ID for the chat message. */
|
|
210
|
+
message_id: string;
|
|
211
|
+
/** A user-defined code for the chat message. */
|
|
212
|
+
code: number;
|
|
213
|
+
/** The username of the sender of the message. */
|
|
214
|
+
username: string;
|
|
215
|
+
/** The UNIX time when the message was created. */
|
|
216
|
+
create_time: string;
|
|
217
|
+
/** The UNIX time when the message was updated. */
|
|
218
|
+
update_time: string;
|
|
219
|
+
/** True if the chat message has been stored in history. */
|
|
220
|
+
persistence: boolean;
|
|
221
|
+
}
|
|
222
|
+
/** Send a message to a realtime chat channel. */
|
|
223
|
+
export interface ChannelMessageSend {
|
|
224
|
+
channel_message_send: {
|
|
225
|
+
/** Clan Id */
|
|
226
|
+
clan_id: string;
|
|
227
|
+
/** The server-assigned channel ID. */
|
|
228
|
+
channel_id: string;
|
|
229
|
+
mode: number;
|
|
230
|
+
channel_label: string;
|
|
231
|
+
/** The content payload. */
|
|
232
|
+
content: any;
|
|
233
|
+
mentions?: Array<ApiMessageMention>;
|
|
234
|
+
attachments?: Array<ApiMessageAttachment>;
|
|
235
|
+
anonymous_message?: boolean;
|
|
236
|
+
mention_everyone?: boolean;
|
|
237
|
+
avatar: string;
|
|
238
|
+
is_public: boolean;
|
|
239
|
+
code: number;
|
|
240
|
+
topic_id?: string;
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
export interface TransferOwnershipEvent {
|
|
244
|
+
clan_id: string;
|
|
245
|
+
prev_owner: string;
|
|
246
|
+
curr_owner: string;
|
|
247
|
+
}
|
|
248
|
+
export interface QuickMenuEvent {
|
|
249
|
+
quick_menu_event: {
|
|
250
|
+
menu_name: string;
|
|
251
|
+
message: {
|
|
252
|
+
/** Clan Id */
|
|
253
|
+
clan_id: string;
|
|
254
|
+
/** The server-assigned channel ID. */
|
|
255
|
+
channel_id: string;
|
|
256
|
+
mode: number;
|
|
257
|
+
channel_label: string;
|
|
258
|
+
/** The content payload. */
|
|
259
|
+
content: any;
|
|
260
|
+
mentions?: Array<ApiMessageMention>;
|
|
261
|
+
attachments?: Array<ApiMessageAttachment>;
|
|
262
|
+
anonymous_message?: boolean;
|
|
263
|
+
mention_everyone?: boolean;
|
|
264
|
+
avatar: string;
|
|
265
|
+
is_public: boolean;
|
|
266
|
+
code: number;
|
|
267
|
+
topic_id?: string;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
export interface EphemeralMessageSend {
|
|
272
|
+
ephemeral_message_send: {
|
|
273
|
+
receiver_ids: string[];
|
|
274
|
+
message: {
|
|
275
|
+
/** Clan Id */
|
|
276
|
+
clan_id: string;
|
|
277
|
+
/** The server-assigned channel ID. */
|
|
278
|
+
channel_id: string;
|
|
279
|
+
mode: number;
|
|
280
|
+
channel_label: string;
|
|
281
|
+
/** The content payload. */
|
|
282
|
+
content: any;
|
|
283
|
+
mentions?: Array<ApiMessageMention>;
|
|
284
|
+
attachments?: Array<ApiMessageAttachment>;
|
|
285
|
+
anonymous_message?: boolean;
|
|
286
|
+
mention_everyone?: boolean;
|
|
287
|
+
avatar: string;
|
|
288
|
+
is_public: boolean;
|
|
289
|
+
code: number;
|
|
290
|
+
topic_id?: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
/** Update a message previously sent to a realtime chat channel. */
|
|
295
|
+
export interface ChannelMessageUpdate {
|
|
296
|
+
channel_message_update: {
|
|
297
|
+
/** The server-assigned channel ID. */
|
|
298
|
+
channel_id: string;
|
|
299
|
+
/** A unique ID for the chat message to be updated. */
|
|
300
|
+
message_id: string;
|
|
301
|
+
/** The content payload. */
|
|
302
|
+
content: any;
|
|
303
|
+
/** mentions */
|
|
304
|
+
mentions?: Array<ApiMessageMention>;
|
|
305
|
+
/** attachments */
|
|
306
|
+
attachments?: Array<ApiMessageAttachment>;
|
|
307
|
+
/** The mode payload. */
|
|
308
|
+
mode: number;
|
|
309
|
+
is_public: boolean;
|
|
310
|
+
topic_id?: string;
|
|
311
|
+
is_update_msg_topic?: boolean;
|
|
312
|
+
old_mentions?: string;
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
/** Remove a message previously sent to a realtime chat channel. */
|
|
316
|
+
export interface ChannelMessageRemove {
|
|
317
|
+
channel_message_remove: {
|
|
318
|
+
/** The clan id */
|
|
319
|
+
clan_id: string;
|
|
320
|
+
/** The server-assigned channel ID. */
|
|
321
|
+
channel_id: string;
|
|
322
|
+
mode: number;
|
|
323
|
+
channel_label: string;
|
|
324
|
+
/** A unique ID for the chat message to be removed. */
|
|
325
|
+
message_id: string;
|
|
326
|
+
is_public: boolean;
|
|
327
|
+
/** attachments */
|
|
328
|
+
has_attachment?: boolean;
|
|
329
|
+
topic_id?: string;
|
|
330
|
+
mentions: string;
|
|
331
|
+
references: string;
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
/** Presence update for a particular realtime chat channel. */
|
|
335
|
+
export interface ChannelPresenceEvent {
|
|
336
|
+
/** The unique identifier of the chat channel. */
|
|
337
|
+
channel_id: string;
|
|
338
|
+
channel_label: string;
|
|
339
|
+
mode: number;
|
|
340
|
+
/** Presences of the users who joined the channel. */
|
|
341
|
+
joins: Presence[];
|
|
342
|
+
/** Presences of users who left the channel. */
|
|
343
|
+
leaves: Presence[];
|
|
344
|
+
}
|
|
345
|
+
export interface VoiceEndedEvent {
|
|
346
|
+
id: string;
|
|
347
|
+
clan_id: string;
|
|
348
|
+
voice_channel_id: string;
|
|
349
|
+
}
|
|
350
|
+
export interface VoiceStartedEvent {
|
|
351
|
+
id: string;
|
|
352
|
+
clan_id: string;
|
|
353
|
+
voice_channel_id: string;
|
|
354
|
+
}
|
|
355
|
+
export interface VoiceLeavedEvent {
|
|
356
|
+
id: string;
|
|
357
|
+
clan_id: string;
|
|
358
|
+
voice_channel_id: string;
|
|
359
|
+
voice_user_id: string;
|
|
360
|
+
}
|
|
361
|
+
export interface VoiceJoinedEvent {
|
|
362
|
+
/** The unique identifier of the chat channel. */
|
|
363
|
+
clan_id: string;
|
|
364
|
+
clan_name: string;
|
|
365
|
+
id: string;
|
|
366
|
+
participant: string;
|
|
367
|
+
user_id: string;
|
|
368
|
+
voice_channel_label: string;
|
|
369
|
+
voice_channel_id: string;
|
|
370
|
+
last_screenshot: string;
|
|
371
|
+
}
|
|
372
|
+
export interface CustomStatusEvent {
|
|
373
|
+
clan_id: string;
|
|
374
|
+
user_id: string;
|
|
375
|
+
username: string;
|
|
376
|
+
status: string;
|
|
377
|
+
/** time reset */
|
|
378
|
+
time_reset: number;
|
|
379
|
+
/** no clear */
|
|
380
|
+
no_clear: boolean;
|
|
381
|
+
}
|
|
382
|
+
export interface UnpinMessageEvent {
|
|
383
|
+
id: string;
|
|
384
|
+
message_id: string;
|
|
385
|
+
channel_id: string;
|
|
386
|
+
clan_id: string;
|
|
387
|
+
}
|
|
388
|
+
export interface ChannelUpdatedEvent {
|
|
389
|
+
clan_id: string;
|
|
390
|
+
category_id: string;
|
|
391
|
+
creator_id: string;
|
|
392
|
+
parent_id: string;
|
|
393
|
+
channel_id: string;
|
|
394
|
+
channel_label: string;
|
|
395
|
+
channel_type: number;
|
|
396
|
+
status: number;
|
|
397
|
+
meeting_code: string;
|
|
398
|
+
channel_private: number;
|
|
399
|
+
is_error: boolean;
|
|
400
|
+
app_id: string;
|
|
401
|
+
e2ee: number;
|
|
402
|
+
topic: string;
|
|
403
|
+
age_restricted: number;
|
|
404
|
+
is_active_thread: boolean;
|
|
405
|
+
active: number;
|
|
406
|
+
count_mess_unread: number;
|
|
407
|
+
role_ids?: Array<string>;
|
|
408
|
+
user_ids?: Array<string>;
|
|
409
|
+
channel_avatar: string;
|
|
410
|
+
}
|
|
411
|
+
export interface DeleteAccountEvent {
|
|
412
|
+
user_id: string;
|
|
413
|
+
}
|
|
414
|
+
export interface ChannelCreatedEvent {
|
|
415
|
+
clan_id: string;
|
|
416
|
+
category_id: string;
|
|
417
|
+
creator_id: string;
|
|
418
|
+
parent_id: string;
|
|
419
|
+
channel_id: string;
|
|
420
|
+
channel_label: string;
|
|
421
|
+
channel_private: number;
|
|
422
|
+
channel_type: number;
|
|
423
|
+
status: number;
|
|
424
|
+
app_id: string;
|
|
425
|
+
clan_name: string;
|
|
426
|
+
channel_avatar: string;
|
|
427
|
+
}
|
|
428
|
+
export interface CategoryEvent {
|
|
429
|
+
clan_id: string;
|
|
430
|
+
id: string;
|
|
431
|
+
creator_id: string;
|
|
432
|
+
category_name: string;
|
|
433
|
+
status: number;
|
|
434
|
+
}
|
|
435
|
+
export interface ChannelDeletedEvent {
|
|
436
|
+
clan_id: string;
|
|
437
|
+
category_id: string;
|
|
438
|
+
channel_id: string;
|
|
439
|
+
deletor: string;
|
|
440
|
+
parent_id: string;
|
|
441
|
+
}
|
|
442
|
+
export interface StickerCreateEvent {
|
|
443
|
+
clan_id: string;
|
|
444
|
+
source: string;
|
|
445
|
+
shortname: string;
|
|
446
|
+
category: string;
|
|
447
|
+
creator_id: string;
|
|
448
|
+
sticker_id: string;
|
|
449
|
+
logo: string;
|
|
450
|
+
clan_name: string;
|
|
451
|
+
}
|
|
452
|
+
export interface StickerUpdateEvent {
|
|
453
|
+
shortname: string;
|
|
454
|
+
sticker_id: string;
|
|
455
|
+
user_id: string;
|
|
456
|
+
}
|
|
457
|
+
export interface StickerDeleteEvent {
|
|
458
|
+
sticker_id: string;
|
|
459
|
+
user_id: string;
|
|
460
|
+
}
|
|
461
|
+
export interface ClanDeletedEvent {
|
|
462
|
+
clan_id: string;
|
|
463
|
+
deletor: string;
|
|
464
|
+
}
|
|
465
|
+
export interface ClanUpdatedEvent {
|
|
466
|
+
clan_id: string;
|
|
467
|
+
clan_name: string;
|
|
468
|
+
logo: string;
|
|
469
|
+
banner: string;
|
|
470
|
+
status: number;
|
|
471
|
+
is_onboarding: boolean;
|
|
472
|
+
welcome_channel_id: string;
|
|
473
|
+
onboarding_banner: string;
|
|
474
|
+
about: string;
|
|
475
|
+
prevent_anonymous: boolean;
|
|
476
|
+
}
|
|
477
|
+
export interface ClanProfileUpdatedEvent {
|
|
478
|
+
user_id: string;
|
|
479
|
+
clan_nick: string;
|
|
480
|
+
clan_avatar: string;
|
|
481
|
+
clan_id: string;
|
|
482
|
+
}
|
|
483
|
+
export interface MeetParticipantEvent {
|
|
484
|
+
username: string;
|
|
485
|
+
room_name: string;
|
|
486
|
+
channel_id: string;
|
|
487
|
+
clan_id: string;
|
|
488
|
+
action: number;
|
|
489
|
+
}
|
|
490
|
+
export interface AllowAnonymousEvent {
|
|
491
|
+
clan_id: string;
|
|
492
|
+
allow: boolean;
|
|
493
|
+
}
|
|
494
|
+
/** Application-level heartbeat ping. */
|
|
495
|
+
export interface Ping {
|
|
496
|
+
}
|
|
497
|
+
/** A snapshot of statuses for some set of users. */
|
|
498
|
+
export interface Status {
|
|
499
|
+
/** The user presences to view statuses of. */
|
|
500
|
+
presences: Presence[];
|
|
501
|
+
}
|
|
502
|
+
/** Start receiving status updates for some set of users. */
|
|
503
|
+
export interface StatusFollow {
|
|
504
|
+
/** The IDs of the users to follow. */
|
|
505
|
+
status_follow: {
|
|
506
|
+
user_ids: string[];
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
/** A batch of status updates for a given user. */
|
|
510
|
+
export interface StatusPresenceEvent {
|
|
511
|
+
/** This join information is in response to a subscription made to be notified when a user comes online. */
|
|
512
|
+
joins: Presence[];
|
|
513
|
+
/** This join information is in response to a subscription made to be notified when a user goes offline. */
|
|
514
|
+
leaves: Presence[];
|
|
515
|
+
}
|
|
516
|
+
/** Stop receiving status updates for some set of users. */
|
|
517
|
+
export interface StatusUnfollow {
|
|
518
|
+
/** The IDs of user to unfollow. */
|
|
519
|
+
status_unfollow: {
|
|
520
|
+
user_ids: string[];
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
/** Set the user's own status. */
|
|
524
|
+
export interface StatusUpdate {
|
|
525
|
+
/** Status string to set, if not present the user will appear offline. */
|
|
526
|
+
status_update: {
|
|
527
|
+
status?: string;
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
export interface CheckNameExistedEvent {
|
|
531
|
+
clan_name: string;
|
|
532
|
+
exist: boolean;
|
|
533
|
+
condition_id: string;
|
|
534
|
+
type: number;
|
|
535
|
+
clan_id: string;
|
|
536
|
+
}
|
|
537
|
+
/** */
|
|
538
|
+
export interface ClanSticker {
|
|
539
|
+
category?: string;
|
|
540
|
+
clan_id?: string;
|
|
541
|
+
create_time_seconds?: number;
|
|
542
|
+
creator_id?: string;
|
|
543
|
+
id?: string;
|
|
544
|
+
shortname?: string;
|
|
545
|
+
source?: string;
|
|
546
|
+
logo?: string;
|
|
547
|
+
clan_name?: string;
|
|
548
|
+
is_for_sale?: boolean;
|
|
549
|
+
}
|
|
550
|
+
export interface RoleEvent {
|
|
551
|
+
role: ApiRole;
|
|
552
|
+
status: number;
|
|
553
|
+
user_id: string;
|
|
554
|
+
user_add_ids: Array<string>;
|
|
555
|
+
user_remove_ids: Array<string>;
|
|
556
|
+
active_permission_ids: Array<string>;
|
|
557
|
+
remove_permission_ids: Array<string>;
|
|
558
|
+
}
|
|
559
|
+
export interface EventEmoji {
|
|
560
|
+
id: string;
|
|
561
|
+
clan_id: string;
|
|
562
|
+
short_name: string;
|
|
563
|
+
source: string;
|
|
564
|
+
category: string;
|
|
565
|
+
action: number;
|
|
566
|
+
user_id: string;
|
|
567
|
+
logo: string;
|
|
568
|
+
clan_name: string;
|
|
569
|
+
is_for_sale: boolean;
|
|
570
|
+
}
|
|
571
|
+
/** */
|
|
572
|
+
export interface ClanEmoji {
|
|
573
|
+
category?: string;
|
|
574
|
+
creator_id?: string;
|
|
575
|
+
id?: string;
|
|
576
|
+
shortname?: string;
|
|
577
|
+
src?: string;
|
|
578
|
+
logo?: string;
|
|
579
|
+
clan_name?: string;
|
|
580
|
+
clan_id?: string;
|
|
581
|
+
is_for_sale?: boolean;
|
|
582
|
+
}
|
|
583
|
+
/** */
|
|
584
|
+
export interface ChannelDescription {
|
|
585
|
+
clan_id?: string;
|
|
586
|
+
channel_id?: string;
|
|
587
|
+
type?: number;
|
|
588
|
+
channel_label?: string;
|
|
589
|
+
app_url?: string;
|
|
590
|
+
channel_private?: number;
|
|
591
|
+
meeting_code?: string;
|
|
592
|
+
clan_name?: string;
|
|
593
|
+
parent_id?: string;
|
|
594
|
+
last_sent_message?: ApiChannelMessageHeader;
|
|
595
|
+
}
|
|
596
|
+
export interface HashtagDm {
|
|
597
|
+
channel_id?: string;
|
|
598
|
+
channel_label?: string;
|
|
599
|
+
clan_id?: string;
|
|
600
|
+
clan_name?: string;
|
|
601
|
+
meeting_code?: string;
|
|
602
|
+
type?: number;
|
|
603
|
+
channel_private?: number;
|
|
604
|
+
parent_id?: string;
|
|
605
|
+
}
|
|
606
|
+
export interface NotificationSetting {
|
|
607
|
+
id?: string;
|
|
608
|
+
notification_setting_type?: number;
|
|
609
|
+
}
|
|
610
|
+
export interface NotificationChannelCategorySetting {
|
|
611
|
+
id: string;
|
|
612
|
+
channel_category_label: string;
|
|
613
|
+
notification_setting_type: number;
|
|
614
|
+
channel_category_title: string;
|
|
615
|
+
action: number;
|
|
616
|
+
}
|
|
617
|
+
export interface UserEmojiUsage {
|
|
618
|
+
user_id: string;
|
|
619
|
+
emoji_id: string;
|
|
620
|
+
clan_id: string;
|
|
621
|
+
create_time: string;
|
|
622
|
+
}
|
|
623
|
+
export interface AddFriend {
|
|
624
|
+
user_id: string;
|
|
625
|
+
username: string;
|
|
626
|
+
display_name: string;
|
|
627
|
+
avatar: string;
|
|
628
|
+
}
|
|
629
|
+
export interface RemoveFriend {
|
|
630
|
+
user_id: string;
|
|
631
|
+
}
|
|
632
|
+
export interface BlockFriend {
|
|
633
|
+
user_id: string;
|
|
634
|
+
}
|
|
635
|
+
export interface UnblockFriend {
|
|
636
|
+
user_id: string;
|
|
637
|
+
username: string;
|
|
638
|
+
avatar: string;
|
|
639
|
+
display_name: string;
|
|
640
|
+
status: string;
|
|
641
|
+
user_status: string;
|
|
642
|
+
}
|
|
643
|
+
export interface AddUserEmojiUsageEvent {
|
|
644
|
+
emoji_id: string;
|
|
645
|
+
clan_id: string;
|
|
646
|
+
}
|
|
647
|
+
/** Response cho ListUserEmojiUsage */
|
|
648
|
+
export interface GetUserEmojiUsageEvent {
|
|
649
|
+
clanId: string;
|
|
650
|
+
user_emoji_usage: Array<UserEmojiUsage>;
|
|
651
|
+
}
|
|
652
|
+
/** On role assign */
|
|
653
|
+
export interface RoleAssignedEvent {
|
|
654
|
+
/** The clan of this role */
|
|
655
|
+
ClanId: string;
|
|
656
|
+
/** Role ID */
|
|
657
|
+
role_id: string;
|
|
658
|
+
/** UserIds Assigned */
|
|
659
|
+
user_ids_assigned: string[];
|
|
660
|
+
/** UserIds Removed */
|
|
661
|
+
user_ids_removed: string[];
|
|
662
|
+
}
|
|
663
|
+
/** Streaming Joined event */
|
|
664
|
+
export interface StreamingLeavedEvent {
|
|
665
|
+
/** id */
|
|
666
|
+
id: string;
|
|
667
|
+
/** The unique identifier of the chat clan. */
|
|
668
|
+
clan_id: string;
|
|
669
|
+
/** streaming channel name */
|
|
670
|
+
streaming_channel_id: string;
|
|
671
|
+
/** streaming user_id */
|
|
672
|
+
streaming_user_id: string;
|
|
673
|
+
}
|
|
674
|
+
/** Streaming Joined event */
|
|
675
|
+
export interface StreamingJoinedEvent {
|
|
676
|
+
/** The unique identifier of the chat clan. */
|
|
677
|
+
clan_id: string;
|
|
678
|
+
/** The channel name */
|
|
679
|
+
clan_name: string;
|
|
680
|
+
/** id streaming */
|
|
681
|
+
id: string;
|
|
682
|
+
/** streaming participant */
|
|
683
|
+
participant: string;
|
|
684
|
+
/** user id */
|
|
685
|
+
user_id: string;
|
|
686
|
+
/** streaming channel label */
|
|
687
|
+
streaming_channel_label: string;
|
|
688
|
+
/** streaming channel id */
|
|
689
|
+
streaming_channel_id: string;
|
|
690
|
+
}
|
|
691
|
+
/** Streaming start event */
|
|
692
|
+
export interface StreamingStartedEvent {
|
|
693
|
+
/** clan id */
|
|
694
|
+
clan_id: string;
|
|
695
|
+
/** channel id */
|
|
696
|
+
channel_id: string;
|
|
697
|
+
/** stream url */
|
|
698
|
+
streaming_url: string;
|
|
699
|
+
/** status */
|
|
700
|
+
is_streaming: boolean;
|
|
701
|
+
}
|
|
702
|
+
/** Streaming start event */
|
|
703
|
+
export interface StreamingEndedEvent {
|
|
704
|
+
/** clan id */
|
|
705
|
+
clan_id: string;
|
|
706
|
+
/** channel id */
|
|
707
|
+
channel_id: string;
|
|
708
|
+
}
|
|
709
|
+
export interface ChannelAppEvent {
|
|
710
|
+
user_id: string;
|
|
711
|
+
username: string;
|
|
712
|
+
clan_id: string;
|
|
713
|
+
channel_id: string;
|
|
714
|
+
action: number;
|
|
715
|
+
}
|
|
716
|
+
export interface HandleParticipantMeetStateEvent {
|
|
717
|
+
/** clan id */
|
|
718
|
+
clan_id: string;
|
|
719
|
+
/** channel id */
|
|
720
|
+
channel_id: string;
|
|
721
|
+
/** display name */
|
|
722
|
+
display_name: string;
|
|
723
|
+
/** state (0: join, 1: leave) */
|
|
724
|
+
state: number;
|
|
725
|
+
/** room name */
|
|
726
|
+
room_name: string;
|
|
727
|
+
}
|
|
728
|
+
export interface PermissionSet {
|
|
729
|
+
/** Role ID */
|
|
730
|
+
role_id: string;
|
|
731
|
+
/** User ID */
|
|
732
|
+
user_id: string;
|
|
733
|
+
/** Channel ID */
|
|
734
|
+
channel_id: string;
|
|
735
|
+
/** List permission update */
|
|
736
|
+
permission_updates: ApiPermissionUpdate[];
|
|
737
|
+
/** */
|
|
738
|
+
caller: string;
|
|
739
|
+
}
|
|
740
|
+
export interface PermissionChangedEvent {
|
|
741
|
+
user_id: string;
|
|
742
|
+
channel_id: string;
|
|
743
|
+
add_permissions: ApiPermissionUpdate[];
|
|
744
|
+
remove_permissions: ApiPermissionUpdate[];
|
|
745
|
+
default_permissions: ApiPermissionUpdate[];
|
|
746
|
+
}
|
|
747
|
+
export interface DropdownBoxSelected {
|
|
748
|
+
message_id: string;
|
|
749
|
+
channel_id: string;
|
|
750
|
+
selectbox_id: string;
|
|
751
|
+
sender_id: string;
|
|
752
|
+
user_id: string;
|
|
753
|
+
value: Array<string>;
|
|
754
|
+
}
|
|
755
|
+
export interface MessageButtonClicked {
|
|
756
|
+
message_id: string;
|
|
757
|
+
channel_id: string;
|
|
758
|
+
button_id: string;
|
|
759
|
+
sender_id: string;
|
|
760
|
+
user_id: string;
|
|
761
|
+
extra_data: string;
|
|
762
|
+
}
|
|
763
|
+
export interface IncomingCallPush {
|
|
764
|
+
receiver_id: string;
|
|
765
|
+
json_data: string;
|
|
766
|
+
channel_id: string;
|
|
767
|
+
caller_id: string;
|
|
768
|
+
}
|
|
769
|
+
export interface VoiceReactionSend {
|
|
770
|
+
emojis: Array<string>;
|
|
771
|
+
channel_id: string;
|
|
772
|
+
sender_id: string;
|
|
773
|
+
media_type: number;
|
|
774
|
+
}
|
|
775
|
+
export interface MarkAsRead {
|
|
776
|
+
channel_id: string;
|
|
777
|
+
category_id: string;
|
|
778
|
+
clan_id: string;
|
|
779
|
+
}
|
|
780
|
+
export interface WebrtcSignalingFwd {
|
|
781
|
+
receiver_id: string;
|
|
782
|
+
data_type: number;
|
|
783
|
+
json_data: string;
|
|
784
|
+
channel_id: string;
|
|
785
|
+
caller_id: string;
|
|
786
|
+
}
|
|
787
|
+
export interface ListActivity {
|
|
788
|
+
acts: ApiUserActivity[];
|
|
789
|
+
}
|
|
790
|
+
export interface SdTopicEvent {
|
|
791
|
+
id: string;
|
|
792
|
+
clan_id: string;
|
|
793
|
+
channel_id: string;
|
|
794
|
+
message_id: string;
|
|
795
|
+
user_id: string;
|
|
796
|
+
last_sent_message?: ApiChannelMessageHeader;
|
|
797
|
+
message?: ChannelMessage;
|
|
798
|
+
}
|
|
799
|
+
export interface UserStatusEvent {
|
|
800
|
+
user_id: string;
|
|
801
|
+
custom_status: string;
|
|
802
|
+
}
|
|
803
|
+
export interface JoinChannelAppData {
|
|
804
|
+
user_id: string;
|
|
805
|
+
username: string;
|
|
806
|
+
hash: string;
|
|
807
|
+
}
|
|
808
|
+
/** */
|
|
809
|
+
export interface ChannelCanvas {
|
|
810
|
+
content?: string;
|
|
811
|
+
creator_id?: string;
|
|
812
|
+
editor_id?: string;
|
|
813
|
+
id?: string;
|
|
814
|
+
is_default?: boolean;
|
|
815
|
+
title?: string;
|
|
816
|
+
channel_id?: string;
|
|
817
|
+
status?: number;
|
|
818
|
+
}
|
|
819
|
+
export interface ApiListChannelBadgeCountRequest {
|
|
820
|
+
clan_id?: string;
|
|
821
|
+
}
|
|
822
|
+
export interface ApiListUserOnlineRequest {
|
|
823
|
+
clan_id?: string;
|
|
824
|
+
}
|
|
825
|
+
export interface ApiLogedDevice {
|
|
826
|
+
device_id?: string;
|
|
827
|
+
device_name?: string;
|
|
828
|
+
login_at_seconds?: number;
|
|
829
|
+
status?: number;
|
|
830
|
+
platform?: string;
|
|
831
|
+
ip?: string;
|
|
832
|
+
last_active_seconds?: string;
|
|
833
|
+
location?: string;
|
|
834
|
+
is_current?: boolean;
|
|
835
|
+
}
|
|
836
|
+
export interface ApiLogedDeviceList {
|
|
837
|
+
devices?: Array<ApiLogedDevice>;
|
|
838
|
+
}
|
|
839
|
+
export interface ApiLogedDeviceList {
|
|
840
|
+
}
|
|
841
|
+
export interface ApiListChannelBadgeCountResponse {
|
|
842
|
+
channeldesc?: Array<ApiChannelDescription>;
|
|
843
|
+
}
|
|
844
|
+
export interface ApiListClanBadgeCountResponse {
|
|
845
|
+
list_badge?: Array<ClanBadgeCount>;
|
|
846
|
+
}
|
|
847
|
+
export interface ListDataSocket {
|
|
848
|
+
api_name?: string;
|
|
849
|
+
list_channel_badge_count_req?: ApiListChannelBadgeCountRequest;
|
|
850
|
+
channel_badge_count?: ApiListChannelBadgeCountResponse;
|
|
851
|
+
clan_badge_count?: ApiListClanBadgeCountResponse;
|
|
852
|
+
list_loged_device?: ApiLogedDeviceList;
|
|
853
|
+
list_user_online_req?: ApiListUserOnlineRequest;
|
|
854
|
+
user_online_list?: ApiListUserOnlineResponse;
|
|
855
|
+
}
|
|
856
|
+
export interface ApiListChannelTimelineRequest {
|
|
857
|
+
clan_id: string;
|
|
858
|
+
channel_id: string;
|
|
859
|
+
year: number;
|
|
860
|
+
start_time?: number;
|
|
861
|
+
end_time?: number;
|
|
862
|
+
limit?: number;
|
|
863
|
+
}
|
|
864
|
+
export interface ApiCreateChannelTimelineRequest {
|
|
865
|
+
clan_id: string;
|
|
866
|
+
channel_id: string;
|
|
867
|
+
title: string;
|
|
868
|
+
description?: string;
|
|
869
|
+
start_time_seconds: number;
|
|
870
|
+
end_time_seconds: number;
|
|
871
|
+
location?: string;
|
|
872
|
+
type?: number;
|
|
873
|
+
attachments?: Array<ChannelTimelineAttachment>;
|
|
874
|
+
}
|
|
875
|
+
export interface ApiCreateChannelTimelineResponse {
|
|
876
|
+
event: ApiChannelTimeline;
|
|
877
|
+
}
|
|
878
|
+
export interface ApiUpdateChannelTimelineRequest {
|
|
879
|
+
id: string;
|
|
880
|
+
clan_id: string;
|
|
881
|
+
channel_id: string;
|
|
882
|
+
title?: string;
|
|
883
|
+
description?: string;
|
|
884
|
+
start_time_seconds: number;
|
|
885
|
+
location?: string;
|
|
886
|
+
type?: number;
|
|
887
|
+
attachments?: Array<ChannelTimelineAttachment>;
|
|
888
|
+
}
|
|
889
|
+
export interface ApiUpdateChannelTimelineResponse {
|
|
890
|
+
event: ApiChannelTimeline;
|
|
891
|
+
}
|
|
892
|
+
export interface ApiDetailChannelTimelineRequest {
|
|
893
|
+
id: string;
|
|
894
|
+
clan_id: string;
|
|
895
|
+
channel_id: string;
|
|
896
|
+
start_time_seconds: number;
|
|
897
|
+
}
|
|
898
|
+
export interface ApiDetailChannelTimelineResponse {
|
|
899
|
+
event: ApiChannelTimeline;
|
|
900
|
+
}
|
|
901
|
+
export interface ChannelTimelineAttachment {
|
|
902
|
+
id: string;
|
|
903
|
+
file_name: string;
|
|
904
|
+
file_url: string;
|
|
905
|
+
file_type: string;
|
|
906
|
+
file_size: string;
|
|
907
|
+
width: number;
|
|
908
|
+
height: number;
|
|
909
|
+
thumbnail: string;
|
|
910
|
+
duration: number;
|
|
911
|
+
message_id: string;
|
|
912
|
+
}
|
|
913
|
+
export interface ApiChannelTimeline {
|
|
914
|
+
id: string;
|
|
915
|
+
clan_id: string;
|
|
916
|
+
channel_id: string;
|
|
917
|
+
start_time_seconds: number;
|
|
918
|
+
title: string;
|
|
919
|
+
description: string;
|
|
920
|
+
end_time_seconds: number;
|
|
921
|
+
location: string;
|
|
922
|
+
status: number;
|
|
923
|
+
creator_id: string;
|
|
924
|
+
create_time_seconds: number;
|
|
925
|
+
update_time_seconds: number;
|
|
926
|
+
type: number;
|
|
927
|
+
attachments: Array<ChannelTimelineAttachment>;
|
|
928
|
+
preview_imgs: Array<ChannelTimelineAttachment>;
|
|
929
|
+
}
|
|
930
|
+
export interface ApiListChannelTimelineResponse {
|
|
931
|
+
events?: Array<ApiChannelTimeline>;
|
|
932
|
+
}
|
|
933
|
+
export interface ApiCreatePollRequest {
|
|
934
|
+
channel_id?: string;
|
|
935
|
+
clan_id?: string;
|
|
936
|
+
question?: string;
|
|
937
|
+
answers?: string[];
|
|
938
|
+
expire_hours?: number;
|
|
939
|
+
type?: number;
|
|
940
|
+
}
|
|
941
|
+
export interface ApiPollAnswer {
|
|
942
|
+
index?: number;
|
|
943
|
+
label?: string;
|
|
944
|
+
}
|
|
945
|
+
export interface ApiPollVoterDetail {
|
|
946
|
+
answer_index?: number;
|
|
947
|
+
user_ids?: string[];
|
|
948
|
+
}
|
|
949
|
+
export interface ApiCreatePollResponse {
|
|
950
|
+
poll_id?: string;
|
|
951
|
+
message_id?: string;
|
|
952
|
+
question?: string;
|
|
953
|
+
answers?: ApiPollAnswer[];
|
|
954
|
+
answer_counts?: number[];
|
|
955
|
+
exp?: string;
|
|
956
|
+
is_closed?: boolean;
|
|
957
|
+
creator_id?: string;
|
|
958
|
+
type?: number;
|
|
959
|
+
total_votes?: number;
|
|
960
|
+
}
|
|
961
|
+
export interface ApiGetPollRequest {
|
|
962
|
+
poll_id?: string;
|
|
963
|
+
message_id?: string;
|
|
964
|
+
channel_id?: string;
|
|
965
|
+
}
|
|
966
|
+
export interface ApiVotePollRequest {
|
|
967
|
+
poll_id?: string;
|
|
968
|
+
message_id?: string;
|
|
969
|
+
channel_id?: string;
|
|
970
|
+
answer_indices?: number[];
|
|
971
|
+
}
|
|
972
|
+
export interface ApiVotePollResponse {
|
|
973
|
+
my_answer_indices?: number[];
|
|
974
|
+
}
|
|
975
|
+
export interface ApiClosePollRequest {
|
|
976
|
+
poll_id?: string;
|
|
977
|
+
message_id?: string;
|
|
978
|
+
channel_id?: string;
|
|
979
|
+
}
|
|
980
|
+
export interface ApiGetPollResponse extends ApiCreatePollResponse {
|
|
981
|
+
voter_details?: ApiPollVoterDetail[];
|
|
982
|
+
}
|
|
4
983
|
/** A single user-role pair. */
|
|
5
984
|
export interface ChannelUserListChannelUser {
|
|
6
985
|
clan_avatar?: string;
|
|
@@ -528,7 +1507,6 @@ export interface ApiChannelDescription {
|
|
|
528
1507
|
last_pin_message?: string;
|
|
529
1508
|
last_seen_message?: ApiChannelMessageHeader;
|
|
530
1509
|
last_sent_message?: ApiChannelMessageHeader;
|
|
531
|
-
meeting_code?: string;
|
|
532
1510
|
channel_avatar?: string;
|
|
533
1511
|
parent_id?: string;
|
|
534
1512
|
type?: number;
|
|
@@ -555,6 +1533,9 @@ export interface ApiChannelMessageList {
|
|
|
555
1533
|
last_sent_message?: ApiChannelMessageHeader;
|
|
556
1534
|
messages?: Array<ChannelMessage>;
|
|
557
1535
|
}
|
|
1536
|
+
export interface ApiMutedChannelList {
|
|
1537
|
+
muted_list?: Array<String>;
|
|
1538
|
+
}
|
|
558
1539
|
/** */
|
|
559
1540
|
export interface ApiChannelSettingItem {
|
|
560
1541
|
active?: number;
|
|
@@ -587,6 +1568,16 @@ export interface ApiChannelUserList {
|
|
|
587
1568
|
export interface ApiCheckDuplicateClanNameResponse {
|
|
588
1569
|
is_duplicate?: boolean;
|
|
589
1570
|
}
|
|
1571
|
+
/** Request for CheckDuplicateName; type 0–5 matches server TypeCheck iota. */
|
|
1572
|
+
export interface ApiCheckDuplicateNameRequest {
|
|
1573
|
+
name?: string;
|
|
1574
|
+
type?: number;
|
|
1575
|
+
condition_id?: string;
|
|
1576
|
+
}
|
|
1577
|
+
/** Response for CheckDuplicateName. */
|
|
1578
|
+
export interface ApiCheckDuplicateNameResponse {
|
|
1579
|
+
is_duplicate?: boolean;
|
|
1580
|
+
}
|
|
590
1581
|
/** */
|
|
591
1582
|
export interface ApiClanDesc {
|
|
592
1583
|
banner?: string;
|
|
@@ -611,6 +1602,14 @@ export interface ApiClanDesc {
|
|
|
611
1602
|
export interface ApiClanDescList {
|
|
612
1603
|
clandesc?: Array<ApiClanDesc>;
|
|
613
1604
|
}
|
|
1605
|
+
export interface ApiListChannelBadgeCountResponse {
|
|
1606
|
+
channeldesc?: Array<ApiChannelDescription>;
|
|
1607
|
+
total_count?: number;
|
|
1608
|
+
}
|
|
1609
|
+
export interface ApiListUserOnlineResponse {
|
|
1610
|
+
users?: Array<ApiUser>;
|
|
1611
|
+
total_count?: number;
|
|
1612
|
+
}
|
|
614
1613
|
/** */
|
|
615
1614
|
export interface ApiClanEmoji {
|
|
616
1615
|
category?: string;
|
|
@@ -670,6 +1669,15 @@ export interface ApiClanUserList {
|
|
|
670
1669
|
clan_users?: Array<ClanUserListClanUser>;
|
|
671
1670
|
cursor?: string;
|
|
672
1671
|
}
|
|
1672
|
+
/** One clan member's custom status (user_status) keyed by user id. */
|
|
1673
|
+
export interface ApiClanUserStatusEntry {
|
|
1674
|
+
user_id?: string;
|
|
1675
|
+
user_status?: string;
|
|
1676
|
+
}
|
|
1677
|
+
/** List of clan members' custom statuses for a clan. */
|
|
1678
|
+
export interface ApiClanUserStatusList {
|
|
1679
|
+
clan_user_statuses?: Array<ApiClanUserStatusEntry>;
|
|
1680
|
+
}
|
|
673
1681
|
/** */
|
|
674
1682
|
export interface ApiConfirmLoginRequest {
|
|
675
1683
|
is_remember?: boolean;
|
|
@@ -926,9 +1934,12 @@ export interface ApiInviteUserRes {
|
|
|
926
1934
|
clan_id?: string;
|
|
927
1935
|
clan_name?: string;
|
|
928
1936
|
user_joined?: boolean;
|
|
929
|
-
|
|
1937
|
+
expiry_time_seconds?: number;
|
|
930
1938
|
clan_logo: string;
|
|
931
1939
|
member_count: number;
|
|
1940
|
+
banner: string;
|
|
1941
|
+
community_banner: string;
|
|
1942
|
+
is_community: boolean;
|
|
932
1943
|
}
|
|
933
1944
|
/** Add link invite users to. */
|
|
934
1945
|
export interface ApiLinkInviteUser {
|
|
@@ -1115,7 +2126,7 @@ export interface ApiMessageRef {
|
|
|
1115
2126
|
ref_type?: number;
|
|
1116
2127
|
message_sender_id?: string;
|
|
1117
2128
|
message_sender_username?: string;
|
|
1118
|
-
|
|
2129
|
+
message_sender_avatar?: string;
|
|
1119
2130
|
message_sender_clan_nick?: string;
|
|
1120
2131
|
message_sender_display_name?: string;
|
|
1121
2132
|
content?: string;
|
|
@@ -1132,7 +2143,7 @@ export interface ApiNotification {
|
|
|
1132
2143
|
channel_type?: number;
|
|
1133
2144
|
clan_id?: string;
|
|
1134
2145
|
code?: number;
|
|
1135
|
-
content?:
|
|
2146
|
+
content?: DirectFcmProto;
|
|
1136
2147
|
create_time_seconds?: number;
|
|
1137
2148
|
id?: string;
|
|
1138
2149
|
persistent?: boolean;
|
|
@@ -1173,7 +2184,7 @@ export interface ApiNotificationUserChannel {
|
|
|
1173
2184
|
active?: number;
|
|
1174
2185
|
id?: string;
|
|
1175
2186
|
notification_setting_type?: number;
|
|
1176
|
-
|
|
2187
|
+
time_mute_seconds?: number;
|
|
1177
2188
|
channel_id?: string;
|
|
1178
2189
|
}
|
|
1179
2190
|
/** */
|
|
@@ -1592,7 +2603,7 @@ export interface ApiUser {
|
|
|
1592
2603
|
edge_count?: number;
|
|
1593
2604
|
id?: string;
|
|
1594
2605
|
is_mobile?: boolean;
|
|
1595
|
-
|
|
2606
|
+
join_time_seconds?: number;
|
|
1596
2607
|
lang_tag?: string;
|
|
1597
2608
|
location?: string;
|
|
1598
2609
|
user_status?: string;
|
|
@@ -1950,10 +2961,6 @@ export interface ApiListClanDiscover {
|
|
|
1950
2961
|
page_count?: number;
|
|
1951
2962
|
}
|
|
1952
2963
|
/** */
|
|
1953
|
-
export interface ApiListClanUnreadMsgIndicatorResponse {
|
|
1954
|
-
has_unread_message?: boolean;
|
|
1955
|
-
}
|
|
1956
|
-
/** */
|
|
1957
2964
|
export interface ApiClanDiscoverRequest {
|
|
1958
2965
|
clan_id?: string;
|
|
1959
2966
|
item_per_page?: number;
|
|
@@ -2000,417 +3007,172 @@ export interface ApiDirectFcmProto {
|
|
|
2000
3007
|
is_mention_role: boolean[];
|
|
2001
3008
|
message_id: string;
|
|
2002
3009
|
}
|
|
2003
|
-
export declare
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
/**
|
|
2047
|
-
|
|
2048
|
-
/**
|
|
2049
|
-
|
|
2050
|
-
/**
|
|
2051
|
-
|
|
2052
|
-
/**
|
|
2053
|
-
|
|
2054
|
-
/**
|
|
2055
|
-
|
|
2056
|
-
/**
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
/**
|
|
2067
|
-
|
|
2068
|
-
/**
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
/**
|
|
2091
|
-
|
|
2092
|
-
/**
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
/**
|
|
2113
|
-
|
|
2114
|
-
/**
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
/**
|
|
2127
|
-
|
|
2128
|
-
/** regist fcm device token */
|
|
2129
|
-
registFCMDeviceToken(bearerToken: string, token?: string, deviceId?: string, platform?: string, voipToken?: string, options?: {}): Promise<ApiRegistFcmDeviceTokenResponse>;
|
|
2130
|
-
/** close direct message. */
|
|
2131
|
-
closeDirectMess(bearerToken: string, body: ApiDeleteChannelDescRequest, options?: {}): Promise<any>;
|
|
2132
|
-
/** open direct message. */
|
|
2133
|
-
openDirectMess(bearerToken: string, body: ApiDeleteChannelDescRequest, options?: {}): Promise<any>;
|
|
2134
|
-
/** Post clan Emoji /v2/emoji/create */
|
|
2135
|
-
createClanEmoji(bearerToken: string, body: ApiClanEmojiCreateRequest, options?: {}): Promise<any>;
|
|
2136
|
-
/** Delete a emoji by ID. */
|
|
2137
|
-
deleteClanEmojiById(bearerToken: string, id: string, clanId?: string, emojiLabel?: string, options?: {}): Promise<any>;
|
|
2138
|
-
/** Update ClanEmoj By id */
|
|
2139
|
-
updateClanEmojiById(bearerToken: string, id: string, body: MezonUpdateClanEmojiByIdBody, options?: {}): Promise<any>;
|
|
2140
|
-
/** get list emoji recent by user id */
|
|
2141
|
-
emojiRecentList(bearerToken: string, options?: {}): Promise<ApiEmojiRecentList>;
|
|
2142
|
-
/** get list emoji by user id */
|
|
2143
|
-
getListEmojisByUserId(bearerToken: string, options?: {}): Promise<ApiEmojiListedResponse>;
|
|
2144
|
-
/** Search message from elasticsearch service. */
|
|
2145
|
-
searchMessage(bearerToken: string, body: ApiSearchMessageRequest, options?: {}): Promise<ApiSearchMessageResponse>;
|
|
2146
|
-
/** Submit an event for processing in the server's registered runtime custom events handler. */
|
|
2147
|
-
event(bearerToken: string, body: ApiEvent, options?: {}): Promise<any>;
|
|
2148
|
-
/** List user events */
|
|
2149
|
-
listEvents(bearerToken: string, clanId?: string, options?: {}): Promise<ApiEventList>;
|
|
2150
|
-
/** Create a new event for clan. */
|
|
2151
|
-
createEvent(bearerToken: string, body: ApiCreateEventRequest, options?: {}): Promise<ApiEventManagement>;
|
|
2152
|
-
/** Update fields in a given event. */
|
|
2153
|
-
updateEventUser(bearerToken: string, body: ApiDeleteEventRequest, options?: {}): Promise<any>;
|
|
2154
|
-
/** Delete a event by ID. */
|
|
2155
|
-
deleteEvent(bearerToken: string, eventId: string, clanId?: string, creatorId?: string, eventLabel?: string, channelId?: string, options?: {}): Promise<any>;
|
|
2156
|
-
/** Update fields in a given event. */
|
|
2157
|
-
updateEvent(bearerToken: string, eventId: string, body: MezonUpdateEventBody, options?: {}): Promise<any>;
|
|
2158
|
-
/** Delete one or more users by ID or username. */
|
|
2159
|
-
deleteFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: {}): Promise<any>;
|
|
2160
|
-
/** List all friends for the current user. */
|
|
2161
|
-
listFriends(bearerToken: string, limit?: number, state?: number, cursor?: string, options?: {}): Promise<ApiFriendList>;
|
|
2162
|
-
/** Add friends by ID or username to a user's account. */
|
|
2163
|
-
addFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: {}): Promise<ApiAddFriendsResponse>;
|
|
2164
|
-
/** Block one or more users by ID or username. */
|
|
2165
|
-
blockFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: {}): Promise<any>;
|
|
2166
|
-
/** Block one or more users by ID or username. */
|
|
2167
|
-
unblockFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: {}): Promise<any>;
|
|
2168
|
-
/** List GetChannelCategoryNotiSettingsList */
|
|
2169
|
-
getChannelCategoryNotiSettingsList(bearerToken: string, clanId?: string, options?: {}): Promise<ApiNotificationChannelCategorySettingList>;
|
|
2170
|
-
/** */
|
|
2171
|
-
getUserProfileOnClan(bearerToken: string, clanId: string, options?: {}): Promise<ApiClanProfile>;
|
|
2172
|
-
/** List GetNotificationChannel */
|
|
2173
|
-
getNotificationCategory(bearerToken: string, categoryId?: string, options?: {}): Promise<ApiNotificationUserChannel>;
|
|
2174
|
-
/** List GetNotificationChannel */
|
|
2175
|
-
getNotificationChannel(bearerToken: string, channelId?: string, options?: {}): Promise<ApiNotificationUserChannel>;
|
|
2176
|
-
/** List GetNotificationClan */
|
|
2177
|
-
getNotificationClan(bearerToken: string, clanId?: string, options?: {}): Promise<ApiNotificationSetting>;
|
|
2178
|
-
/** List GetNotificationReactMessage */
|
|
2179
|
-
getNotificationReactMessage(bearerToken: string, channelId?: string, options?: {}): Promise<ApiNotifiReactMessage>;
|
|
2180
|
-
/** Give a coffee */
|
|
2181
|
-
giveMeACoffee(bearerToken: string, body: ApiGiveCoffeeEvent, options?: {}): Promise<any>;
|
|
2182
|
-
/** get key server */
|
|
2183
|
-
getKeyServer(bearerToken: string, options?: {}): Promise<ApiGetKeyServerResp>;
|
|
2184
|
-
/** Add users to a channel. */
|
|
2185
|
-
createLinkInviteUser(bearerToken: string, body: ApiLinkInviteUserRequest, options?: {}): Promise<ApiLinkInviteUser>;
|
|
2186
|
-
/** Add users to a channel. */
|
|
2187
|
-
inviteUser(bearerToken: string, inviteId: string, options?: {}): Promise<ApiInviteUserRes>;
|
|
2188
|
-
/** Add users to a channel. */
|
|
2189
|
-
getLinkInvite(basicAuthUsername: string, basicAuthPassword: string, inviteId: string, options?: {}): Promise<ApiInviteUserRes>;
|
|
2190
|
-
/** List HashtagDMList */
|
|
2191
|
-
listChannelByUserId(bearerToken: string, options?: {}): Promise<ApiChannelDescList>;
|
|
2192
|
-
/** Mark as read */
|
|
2193
|
-
markAsRead(bearerToken: string, body: ApiMarkAsReadRequest, options?: {}): Promise<any>;
|
|
2194
|
-
/** List mezon OAuth client */
|
|
2195
|
-
listMezonOauthClient(bearerToken: string, options?: {}): Promise<ApiMezonOauthClientList>;
|
|
2196
|
-
/** set mute notification user channel. */
|
|
2197
|
-
setMuteCategory(bearerToken: string, body: ApiSetMuteRequest, options?: {}): Promise<any>;
|
|
2198
|
-
/** set mute notification user channel. */
|
|
2199
|
-
setMuteChannel(bearerToken: string, body: ApiSetMuteRequest, options?: {}): Promise<any>;
|
|
2200
|
-
/** Delete one or more notifications for the current user. */
|
|
2201
|
-
deleteNotifications(bearerToken: string, ids?: Array<string>, category?: number, options?: {}): Promise<any>;
|
|
2202
|
-
/** Fetch list of notifications. */
|
|
2203
|
-
listNotifications(bearerToken: string, limit?: number, clanId?: string, notificationId?: string, category?: number, direction?: number, options?: {}): Promise<ApiNotificationList>;
|
|
2204
|
-
/** set notification user channel. */
|
|
2205
|
-
setNotificationChannelSetting(bearerToken: string, body: ApiSetNotificationRequest, options?: {}): Promise<any>;
|
|
2206
|
-
/** set notification user channel. */
|
|
2207
|
-
setNotificationClanSetting(bearerToken: string, body: ApiSetDefaultNotificationRequest, options?: {}): Promise<any>;
|
|
2208
|
-
/** set notification user channel. */
|
|
2209
|
-
setNotificationCategorySetting(bearerToken: string, body: ApiSetNotificationRequest, options?: {}): Promise<any>;
|
|
2210
|
-
/** */
|
|
2211
|
-
deleteNotificationCategorySetting(bearerToken: string, categoryId?: string, options?: {}): Promise<any>;
|
|
2212
|
-
/** */
|
|
2213
|
-
deleteNotificationChannel(bearerToken: string, channelId?: string, options?: {}): Promise<any>;
|
|
2214
|
-
/** */
|
|
2215
|
-
deleteNotiReactMessage(bearerToken: string, channelId?: string, options?: {}): Promise<any>;
|
|
2216
|
-
/** */
|
|
2217
|
-
setNotificationReactMessage(bearerToken: string, body: ApiNotificationChannel, options?: {}): Promise<any>;
|
|
2218
|
-
/** set permission role channel. */
|
|
2219
|
-
setRoleChannelPermission(bearerToken: string, body: ApiUpdateRoleChannelRequest, options?: {}): Promise<any>;
|
|
2220
|
-
/** Get permission list */
|
|
2221
|
-
getListPermission(bearerToken: string, options?: {}): Promise<ApiPermissionList>;
|
|
2222
|
-
/** GetPermissionByRoleIdChannelId */
|
|
2223
|
-
getPermissionByRoleIdChannelId(bearerToken: string, roleId?: string, channelId?: string, userId?: string, options?: {}): Promise<ApiPermissionRoleChannelListEventResponse>;
|
|
2224
|
-
/** */
|
|
2225
|
-
deletePinMessage(bearerToken: string, id?: string, messageId?: string, channelId?: string, clanId?: string, options?: {}): Promise<any>;
|
|
2226
|
-
/** */
|
|
2227
|
-
getPinMessagesList(bearerToken: string, messageId?: string, channelId?: string, clanId?: string, options?: {}): Promise<tsproto.PinMessagesList>;
|
|
2228
|
-
/** create message to inbox. */
|
|
2229
|
-
createMessage2Inbox(bearerToken: string, body: ApiMessage2InboxRequest, options?: {}): Promise<ApiChannelMessageHeader>;
|
|
2230
|
-
/** set notification user channel. */
|
|
2231
|
-
createPinMessage(bearerToken: string, body: ApiPinMessageRequest, options?: {}): Promise<ApiChannelMessageHeader>;
|
|
2232
|
-
/** get pubkey */
|
|
2233
|
-
getPubKeys(bearerToken: string, userIds?: Array<string>, options?: {}): Promise<ApiGetPubKeysResponse>;
|
|
2234
|
-
/** store pubkey for e2ee */
|
|
2235
|
-
pushPubKey(bearerToken: string, body: ApiPushPubKeyRequest, options?: {}): Promise<any>;
|
|
2236
|
-
/** */
|
|
2237
|
-
addRolesChannelDesc(bearerToken: string, body: ApiAddRoleChannelDescRequest, options?: {}): Promise<any>;
|
|
2238
|
-
/** update the category of a channel */
|
|
2239
|
-
changeChannelCategory(bearerToken: string, newCategoryId: string, body: MezonChangeChannelCategoryBody, options?: {}): Promise<any>;
|
|
2240
|
-
/** Update a role when Delete a role by ID. */
|
|
2241
|
-
deleteRoleChannelDesc(bearerToken: string, body: ApiDeleteRoleRequest, options?: {}): Promise<any>;
|
|
2242
|
-
/** ListRoles */
|
|
2243
|
-
listRoles(bearerToken: string, clanId?: string, limit?: number, state?: number, cursor?: string, options?: {}): Promise<ApiRoleListEventResponse>;
|
|
2244
|
-
/** Create a new role for clan. */
|
|
2245
|
-
createRole(bearerToken: string, body: ApiCreateRoleRequest, options?: {}): Promise<ApiRole>;
|
|
2246
|
-
/** Update a role when Delete a role by ID. */
|
|
2247
|
-
updateRoleDelete(bearerToken: string, roleId: string, body: MezonUpdateRoleDeleteBody, options?: {}): Promise<any>;
|
|
2248
|
-
/** Delete a role by ID. */
|
|
2249
|
-
deleteRole(bearerToken: string, roleId: string, channelId?: string, clanId?: string, roleLabel?: string, options?: {}): Promise<any>;
|
|
2250
|
-
/** Update fields in a given role. */
|
|
2251
|
-
updateRole(bearerToken: string, roleId: string, body: MezonUpdateRoleBody, options?: {}): Promise<any>;
|
|
2252
|
-
/** List role permissions */
|
|
2253
|
-
listRolePermissions(bearerToken: string, roleId: string, options?: {}): Promise<ApiPermissionList>;
|
|
2254
|
-
/** List role permissions */
|
|
2255
|
-
listRoleUsers(bearerToken: string, roleId: string, limit?: number, cursor?: string, options?: {}): Promise<ApiRoleUserList>;
|
|
2256
|
-
/** */
|
|
2257
|
-
getRoleOfUserInTheClan(bearerToken: string, clanId: string, channelId?: string, options?: {}): Promise<ApiRoleList>;
|
|
2258
|
-
/** */
|
|
2259
|
-
searchThread(bearerToken: string, clanId?: string, channelId?: string, label?: string, options?: {}): Promise<ApiChannelDescList>;
|
|
2260
|
-
/** UpdateWallets */
|
|
2261
|
-
sendToken(bearerToken: string, body: ApiTokenSentEvent, options?: {}): Promise<any>;
|
|
2262
|
-
/** Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user. */
|
|
2263
|
-
sessionLogout(bearerToken: string, body: ApiSessionLogoutRequest, options?: {}): Promise<any>;
|
|
2264
|
-
/** Add a new sticker */
|
|
2265
|
-
addClanSticker(bearerToken: string, body: ApiClanStickerAddRequest, options?: {}): Promise<any>;
|
|
2266
|
-
/** Delete a sticker by ID */
|
|
2267
|
-
deleteClanStickerById(bearerToken: string, id: string, clanId?: string, stickerLabel?: string, options?: {}): Promise<any>;
|
|
2268
|
-
/** Update a sticker by ID */
|
|
2269
|
-
updateClanStickerById(bearerToken: string, id: string, body: MezonUpdateClanStickerByIdBody, options?: {}): Promise<any>;
|
|
2270
|
-
/** get list sticker by user id */
|
|
2271
|
-
getListStickersByUserId(bearerToken: string, options?: {}): Promise<ApiStickerListedResponse>;
|
|
2272
|
-
/** Register streaming in channel ( for bot - get streaming key) */
|
|
2273
|
-
registerStreamingChannel(bearerToken: string, body: ApiRegisterStreamingChannelRequest, options?: {}): Promise<ApiRegisterStreamingChannelResponse>;
|
|
2274
|
-
/** List all users that are part of a channel. */
|
|
2275
|
-
listStreamingChannelUsers(bearerToken: string, clanId?: string, channelId?: string, channelType?: number, limit?: number, state?: number, cursor?: string, options?: {}): Promise<ApiStreamingChannelUserList>;
|
|
2276
|
-
/** Get the list of system messages. */
|
|
2277
|
-
getSystemMessagesList(bearerToken: string, options?: {}): Promise<ApiSystemMessagesList>;
|
|
2278
|
-
/** Create a system messages. */
|
|
2279
|
-
createSystemMessage(bearerToken: string, body: ApiSystemMessageRequest, options?: {}): Promise<any>;
|
|
2280
|
-
/** List Sd Topic */
|
|
2281
|
-
listSdTopic(bearerToken: string, clanId?: string, limit?: number, options?: {}): Promise<ApiSdTopicList>;
|
|
2282
|
-
/** Create Sd Topic */
|
|
2283
|
-
createSdTopic(bearerToken: string, body: ApiSdTopicRequest, options?: {}): Promise<ApiSdTopic>;
|
|
2284
|
-
/** Delete a specific system messages. */
|
|
2285
|
-
deleteSystemMessage(bearerToken: string, clanId: string, options?: {}): Promise<any>;
|
|
2286
|
-
/** Get details of a specific system messages. */
|
|
2287
|
-
getSystemMessageByClanId(bearerToken: string, clanId: string, options?: {}): Promise<ApiSystemMessage>;
|
|
2288
|
-
/** Update a system messages. */
|
|
2289
|
-
updateSystemMessage(bearerToken: string, clanId: string, body: MezonUpdateSystemMessageBody, options?: {}): Promise<any>;
|
|
2290
|
-
/** List user channels */
|
|
2291
|
-
listThreadDescs(bearerToken: string, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number, options?: {}): Promise<ApiChannelDescList>;
|
|
2292
|
-
/** Update fields in a given category. */
|
|
2293
|
-
updateCategory(bearerToken: string, clanId: string, body: MezonUpdateCategoryBody, options?: {}): Promise<any>;
|
|
2294
|
-
/** Update channel private. */
|
|
2295
|
-
updateChannelPrivate(bearerToken: string, body: ApiChangeChannelPrivateRequest, options?: {}): Promise<any>;
|
|
2296
|
-
/** */
|
|
2297
|
-
updateUserProfileByClan(bearerToken: string, clanId: string, body: MezonUpdateUserProfileByClanBody, options?: {}): Promise<any>;
|
|
2298
|
-
/** Upload attachment */
|
|
2299
|
-
uploadOauthFile(bearerToken: string, body: ApiUploadAttachmentRequest, options?: {}): Promise<ApiUploadAttachment>;
|
|
2300
|
-
/** Upload attachment */
|
|
2301
|
-
uploadAttachmentFile(bearerToken: string, body: ApiUploadAttachmentRequest, options?: {}): Promise<ApiUploadAttachment>;
|
|
2302
|
-
/** */
|
|
2303
|
-
updateUser(bearerToken: string, body: ApiUpdateUsersRequest, options?: {}): Promise<any>;
|
|
2304
|
-
/** ListUserClansByUserId */
|
|
2305
|
-
listUserClansByUserId(bearerToken: string, options?: {}): Promise<ApiAllUserClans>;
|
|
2306
|
-
/** ListUserPermissionInChannel */
|
|
2307
|
-
listUserPermissionInChannel(bearerToken: string, clanId?: string, channelId?: string, options?: {}): Promise<ApiUserPermissionInChannelListResponse>;
|
|
2308
|
-
/** Get user status */
|
|
2309
|
-
getUserStatus(bearerToken: string, options?: {}): Promise<ApiUserStatus>;
|
|
2310
|
-
/** Update user status */
|
|
2311
|
-
updateUserStatus(bearerToken: string, body: ApiUserStatusUpdate, options?: {}): Promise<any>;
|
|
2312
|
-
/** create webhook */
|
|
2313
|
-
generateWebhook(bearerToken: string, body: ApiWebhookCreateRequest, options?: {}): Promise<any>;
|
|
2314
|
-
/** update webhook name by id */
|
|
2315
|
-
updateWebhookById(bearerToken: string, id: string, body: MezonUpdateWebhookByIdBody, options?: {}): Promise<any>;
|
|
2316
|
-
/** list webhook belong to the channel */
|
|
2317
|
-
listWebhookByChannelId(bearerToken: string, channelId: string, clanId?: string, options?: {}): Promise<ApiWebhookListResponse>;
|
|
2318
|
-
/** disabled webhook */
|
|
2319
|
-
deleteWebhookById(bearerToken: string, id: string, body: MezonDeleteWebhookByIdBody, options?: {}): Promise<any>;
|
|
2320
|
-
buildFullUrl(basePath: string, fragment: string, queryParams: Map<string, any>): string;
|
|
2321
|
-
/** Channel canvas editor */
|
|
2322
|
-
editChannelCanvases(bearerToken: string, body: ApiEditChannelCanvasRequest, options?: {}): Promise<ApiEditChannelCanvasResponse>;
|
|
2323
|
-
/** */
|
|
2324
|
-
getChannelCanvasDetail(bearerToken: string, id: string, clanId?: string, channelId?: string, options?: {}): Promise<ApiChannelCanvasDetailResponse>;
|
|
2325
|
-
/** */
|
|
2326
|
-
deleteChannelCanvas(bearerToken: string, canvasId: string, clanId?: string, channelId?: string, options?: {}): Promise<any>;
|
|
2327
|
-
/** list onboarding. */
|
|
2328
|
-
listOnboarding(bearerToken: string, clanId?: string, guideType?: number, limit?: number, page?: number, options?: {}): Promise<ApiListOnboardingResponse>;
|
|
2329
|
-
/** create onboarding. */
|
|
2330
|
-
createOnboarding(bearerToken: string, body: ApiCreateOnboardingRequest, options?: {}): Promise<ApiListOnboardingResponse>;
|
|
2331
|
-
/** delete onboarding. */
|
|
2332
|
-
deleteOnboarding(bearerToken: string, id: string, clanId?: string, options?: {}): Promise<any>;
|
|
2333
|
-
/** get detailed onboarding information. */
|
|
2334
|
-
getOnboardingDetail(bearerToken: string, id: string, clanId?: string, options?: {}): Promise<ApiOnboardingItem>;
|
|
2335
|
-
/** update onboarding. */
|
|
2336
|
-
updateOnboarding(bearerToken: string, id: string, body: MezonUpdateOnboardingBody, options?: {}): Promise<any>;
|
|
2337
|
-
/** Generate clan webhook. */
|
|
2338
|
-
generateClanWebhook(bearerToken: string, body: ApiGenerateClanWebhookRequest, options?: {}): Promise<ApiGenerateClanWebhookResponse>;
|
|
2339
|
-
/** List clan webhook. */
|
|
2340
|
-
listClanWebhook(bearerToken: string, clanId: string, options?: {}): Promise<ApiListClanWebhookResponse>;
|
|
2341
|
-
/** Disabled clan webhook. */
|
|
2342
|
-
deleteClanWebhookById(bearerToken: string, id: string, clanId?: string, options?: {}): Promise<any>;
|
|
2343
|
-
/** Update clan webhook by id. */
|
|
2344
|
-
updateClanWebhookById(bearerToken: string, id: string, body: MezonUpdateClanWebhookByIdBody, options?: {}): Promise<any>;
|
|
2345
|
-
/** Sd Topic */
|
|
2346
|
-
getTopicDetail(bearerToken: string, topicId?: string, options?: {}): Promise<ApiSdTopic>;
|
|
2347
|
-
/** List onboarding step. */
|
|
2348
|
-
listOnboardingStep(bearerToken: string, clanId?: string, limit?: number, page?: number, options?: {}): Promise<ApiListOnboardingStepResponse>;
|
|
2349
|
-
/** Update onboarding step. */
|
|
2350
|
-
updateOnboardingStepByClanId(bearerToken: string, clanId: string, body: MezonUpdateOnboardingStepByClanIdBody, options?: {}): Promise<any>;
|
|
2351
|
-
/** create meeting room */
|
|
2352
|
-
createRoomChannelApps(bearerToken: string, body: MezonapiCreateRoomChannelApps, options?: {}): Promise<MezonapiCreateRoomChannelApps>;
|
|
2353
|
-
/** Generate Meet Token */
|
|
2354
|
-
generateMeetToken(bearerToken: string, body: ApiGenerateMeetTokenRequest, options?: {}): Promise<ApiGenerateMeetTokenResponse>;
|
|
2355
|
-
/** Create mezon OAuth client */
|
|
2356
|
-
getMezonOauthClient(bearerToken: string, clientId?: string, clientName?: string, options?: {}): Promise<ApiMezonOauthClient>;
|
|
2357
|
-
/** update mezon OAuth */
|
|
2358
|
-
updateMezonOauthClient(bearerToken: string, body: ApiMezonOauthClient, options?: {}): Promise<ApiMezonOauthClient>;
|
|
2359
|
-
/** */
|
|
2360
|
-
generateHashChannelApps(bearerToken: string, appId?: string, options?: {}): Promise<ApiCreateHashChannelAppsResponse>;
|
|
2361
|
-
/** Add user event */
|
|
2362
|
-
addUserEvent(bearerToken: string, body: ApiUserEventRequest, options?: {}): Promise<any>;
|
|
2363
|
-
/** Delete user event */
|
|
2364
|
-
deleteUserEvent(bearerToken: string, clanId?: string, eventId?: string, options?: {}): Promise<any>;
|
|
2365
|
-
/** */
|
|
2366
|
-
updateRoleOrder(bearerToken: string, body: ApiUpdateRoleOrderRequest, options?: {}): Promise<any>;
|
|
2367
|
-
/** Create external Mezon meet */
|
|
2368
|
-
createExternalMezonMeet(bearerToken: string, options?: {}): Promise<ApiGenerateMezonMeetResponse>;
|
|
2369
|
-
/** handler external mezon meet */
|
|
2370
|
-
generateMeetTokenExternal(bearerToken: string, basePath: string, token: string, displayName?: string, isGuest?: boolean, options?: {}): Promise<ApiGenerateMeetTokenExternalResponse>;
|
|
2371
|
-
/** mute participant in the room */
|
|
2372
|
-
muteParticipantMezonMeet(bearerToken: string, body: ApiMeetParticipantRequest, options?: {}): Promise<any>;
|
|
2373
|
-
/** Remove participant out the room */
|
|
2374
|
-
removeParticipantMezonMeet(bearerToken: string, body: ApiMeetParticipantRequest, options?: {}): Promise<any>;
|
|
2375
|
-
/** List channels detail */
|
|
2376
|
-
listChannelDetail(bearerToken: string, channelId: string, options?: {}): Promise<ApiChannelDescription>;
|
|
2377
|
-
/** */
|
|
2378
|
-
updateClanOrder(bearerToken: string, body: ApiUpdateClanOrderRequest, options?: {}): Promise<any>;
|
|
2379
|
-
/** Discover mezon clan. */
|
|
2380
|
-
clanDiscover(basicAuthUsername: string, basicAuthPassword: string, basePath: string, body: ApiClanDiscoverRequest, options?: {}): Promise<ApiListClanDiscover>;
|
|
2381
|
-
/** */
|
|
2382
|
-
deleteQuickMenuAccess(bearerToken: string, id?: string, clanId?: string, botId?: string, menuName?: string, background?: string, actionMsg?: string, options?: {}): Promise<any>;
|
|
2383
|
-
/** */
|
|
2384
|
-
listQuickMenuAccess(bearerToken: string, botId?: string, channelId?: string, menuType?: number, options?: {}): Promise<ApiQuickMenuAccessList>;
|
|
2385
|
-
/** */
|
|
2386
|
-
addQuickMenuAccess(bearerToken: string, body: ApiQuickMenuAccessRequest, options?: {}): Promise<any>;
|
|
2387
|
-
/** */
|
|
2388
|
-
updateQuickMenuAccess(bearerToken: string, body: ApiQuickMenuAccessRequest, options?: {}): Promise<any>;
|
|
2389
|
-
/** For sale items */
|
|
2390
|
-
listForSaleItems(bearerToken: string, page?: number, options?: {}): Promise<ApiForSaleItemList>;
|
|
2391
|
-
/** */
|
|
2392
|
-
isFollower(bearerToken: string, body: ApiIsFollowerRequest, options?: {}): Promise<ApiIsFollowerResponse>;
|
|
2393
|
-
/** */
|
|
2394
|
-
transferOwnership(bearerToken: string, body: ApiTransferOwnershipRequest, options?: {}): Promise<any>;
|
|
2395
|
-
/** Update username */
|
|
2396
|
-
updateUsername(bearerToken: string, body: ApiUpdateUsernameRequest, options?: {}): Promise<ApiSession>;
|
|
2397
|
-
/** Ban a set of users from a channel. */
|
|
2398
|
-
isBanned(bearerToken: string, channelId: string, options?: {}): Promise<ApiIsBannedResponse>;
|
|
2399
|
-
/** */
|
|
2400
|
-
reportMessageAbuse(bearerToken: string, messageId?: string, abuseType?: string, options?: {}): Promise<any>;
|
|
2401
|
-
/** */
|
|
2402
|
-
sendChannelMessage(bearerToken: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: boolean, avatar?: string, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
|
|
2403
|
-
/** */
|
|
2404
|
-
updateChannelMessage(bearerToken: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean): Promise<any>;
|
|
2405
|
-
/** */
|
|
2406
|
-
deleteChannelMessage(bearerToken: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, has_attachment?: boolean, topic_id?: string, mentions?: Uint8Array, references?: Uint8Array): Promise<any>;
|
|
2407
|
-
/** */
|
|
2408
|
-
updateMezonVoiceState(bearerToken: string, clanId?: string, channelId?: string, displayName?: string, roomName?: string, state?: number, options?: {}): Promise<any>;
|
|
2409
|
-
/** */
|
|
2410
|
-
messageButtonClick(bearerToken: string, messageId?: string, channelId?: string, buttonId?: string, senderId?: string, userId?: string, extraData?: string, options?: {}): Promise<any>;
|
|
2411
|
-
/** */
|
|
2412
|
-
dropdownBoxSelected(bearerToken: string, messageId?: string, channelId?: string, selectboxId?: string, senderId?: string, userId?: string, values?: string[], options?: {}): Promise<any>;
|
|
2413
|
-
activeArchivedThread(bearerToken: string, clanId?: string, channelId?: string, options?: {}): Promise<any>;
|
|
2414
|
-
addAgentToChannel(bearerToken: string, roomName?: string, channelId?: string, options?: {}): Promise<any>;
|
|
2415
|
-
disconnectAgent(bearerToken: string, roomName?: string, channelId?: string, options?: {}): Promise<any>;
|
|
3010
|
+
export declare enum ChannelType {
|
|
3011
|
+
CHANNEL_TYPE_CHANNEL = 1,
|
|
3012
|
+
CHANNEL_TYPE_GROUP = 2,
|
|
3013
|
+
CHANNEL_TYPE_DM = 3,
|
|
3014
|
+
CHANNEL_TYPE_FORUM = 5,
|
|
3015
|
+
CHANNEL_TYPE_STREAMING = 6,
|
|
3016
|
+
CHANNEL_TYPE_THREAD = 7,
|
|
3017
|
+
CHANNEL_TYPE_APP = 8,
|
|
3018
|
+
CHANNEL_TYPE_ANNOUNCEMENT = 9,
|
|
3019
|
+
CHANNEL_TYPE_MEZON_VOICE = 10
|
|
3020
|
+
}
|
|
3021
|
+
export declare enum ChannelStreamMode {
|
|
3022
|
+
STREAM_MODE_CHANNEL = 2,
|
|
3023
|
+
STREAM_MODE_GROUP = 3,
|
|
3024
|
+
STREAM_MODE_DM = 4,
|
|
3025
|
+
STREAM_MODE_CLAN = 5,
|
|
3026
|
+
STREAM_MODE_THREAD = 6
|
|
3027
|
+
}
|
|
3028
|
+
export declare enum NotificationType {
|
|
3029
|
+
ALL_MESSAGE = 1,
|
|
3030
|
+
MENTION_MESSAGE = 2,
|
|
3031
|
+
NOTHING_MESSAGE = 3
|
|
3032
|
+
}
|
|
3033
|
+
export declare enum WebrtcSignalingType {
|
|
3034
|
+
WEBRTC_SDP_INIT = 0,
|
|
3035
|
+
WEBRTC_SDP_OFFER = 1,
|
|
3036
|
+
WEBRTC_SDP_ANSWER = 2,
|
|
3037
|
+
WEBRTC_ICE_CANDIDATE = 3,
|
|
3038
|
+
WEBRTC_SDP_QUIT = 4,
|
|
3039
|
+
WEBRTC_SDP_TIMEOUT = 5,
|
|
3040
|
+
WEBRTC_SDP_NOT_AVAILABLE = 6,
|
|
3041
|
+
WEBRTC_SDP_JOINED_OTHER_CALL = 7,
|
|
3042
|
+
WEBRTC_SDP_STATUS_REMOTE_MEDIA = 8
|
|
3043
|
+
}
|
|
3044
|
+
/** Response for an RPC function executed on the server. */
|
|
3045
|
+
export interface RpcResponse {
|
|
3046
|
+
/** The identifier of the function. */
|
|
3047
|
+
id?: string;
|
|
3048
|
+
/** The payload of the function which must be a JSON object. */
|
|
3049
|
+
payload?: object;
|
|
3050
|
+
}
|
|
3051
|
+
/** A list of channel messages, usually a result of a list operation. */
|
|
3052
|
+
export interface ChannelMessageList {
|
|
3053
|
+
/** Cacheable cursor to list newer messages. Durable and designed to be stored, unlike next/prev cursors. */
|
|
3054
|
+
cacheable_cursor?: string;
|
|
3055
|
+
/**last seen message from user on channel */
|
|
3056
|
+
last_seen_message?: ApiChannelMessageHeader;
|
|
3057
|
+
/**last sent message from channel */
|
|
3058
|
+
last_sent_message?: ApiChannelMessageHeader;
|
|
3059
|
+
/** A list of messages. */
|
|
3060
|
+
messages?: Array<ChannelMessage>;
|
|
3061
|
+
/** The cursor to send when retireving the next page, if any. */
|
|
3062
|
+
next_cursor?: string;
|
|
3063
|
+
/** The cursor to send when retrieving the previous page, if any. */
|
|
3064
|
+
prev_cursor?: string;
|
|
3065
|
+
}
|
|
3066
|
+
/** A collection of zero or more users. */
|
|
3067
|
+
export interface Users {
|
|
3068
|
+
/** The User objects. */
|
|
3069
|
+
users?: Array<ApiUser>;
|
|
3070
|
+
}
|
|
3071
|
+
/** A collection of zero or more friends of the user. */
|
|
3072
|
+
export interface Friends {
|
|
3073
|
+
/** The Friend objects. */
|
|
3074
|
+
friends?: Array<ApiFriend>;
|
|
3075
|
+
/** Cursor for the next page of results, if any. */
|
|
3076
|
+
cursor?: string;
|
|
3077
|
+
}
|
|
3078
|
+
/** A notification in the server. */
|
|
3079
|
+
export interface Notification {
|
|
3080
|
+
/** Category code for this notification. */
|
|
3081
|
+
code?: number;
|
|
3082
|
+
/** Content of the notification in JSON. */
|
|
3083
|
+
content?: {};
|
|
3084
|
+
/** The UNIX time when the notification was created. */
|
|
3085
|
+
create_time_seconds?: number;
|
|
3086
|
+
/** ID of the Notification. */
|
|
3087
|
+
id?: string;
|
|
3088
|
+
/** True if this notification was persisted to the database. */
|
|
3089
|
+
persistent?: boolean;
|
|
3090
|
+
/** ID of the sender, if a user. Otherwise 'null'. */
|
|
3091
|
+
sender_id?: string;
|
|
3092
|
+
/** Subject of the notification. */
|
|
3093
|
+
subject?: string;
|
|
3094
|
+
}
|
|
3095
|
+
/** A collection of zero or more notifications. */
|
|
3096
|
+
export interface NotificationList {
|
|
3097
|
+
/** Use this cursor to paginate notifications. Cache this to catch up to new notifications. */
|
|
3098
|
+
cacheable_cursor?: string;
|
|
3099
|
+
/** Collection of notifications. */
|
|
3100
|
+
notifications?: Array<Notification>;
|
|
3101
|
+
}
|
|
3102
|
+
/** Update fields in a given channel. */
|
|
3103
|
+
export interface ApiUpdateChannelDescRequest {
|
|
3104
|
+
/** The ID of the channel to update. */
|
|
3105
|
+
channel_id: string;
|
|
3106
|
+
/** The channel lable */
|
|
3107
|
+
channel_label: string | undefined;
|
|
3108
|
+
/** The category of channel */
|
|
3109
|
+
category_id: string | undefined;
|
|
3110
|
+
/** The app url of channel */
|
|
3111
|
+
app_id: string | undefined;
|
|
3112
|
+
e2ee?: number;
|
|
3113
|
+
topic?: string;
|
|
3114
|
+
age_restricted?: number;
|
|
3115
|
+
channel_avatar?: string;
|
|
3116
|
+
}
|
|
3117
|
+
/** Add users to a channel. */
|
|
3118
|
+
export interface ApiAddChannelUsersRequest {
|
|
3119
|
+
/** The channel to add users to. */
|
|
3120
|
+
channel_id: string;
|
|
3121
|
+
/** The users to add. */
|
|
3122
|
+
user_ids: string[];
|
|
3123
|
+
}
|
|
3124
|
+
/** Kick a set of users from a channel. */
|
|
3125
|
+
export interface ApiKickChannelUsersRequest {
|
|
3126
|
+
/** The channel ID to kick from. */
|
|
3127
|
+
channel_id: string;
|
|
3128
|
+
/** The users to kick. */
|
|
3129
|
+
user_ids: string[];
|
|
3130
|
+
}
|
|
3131
|
+
/** Leave a channel. */
|
|
3132
|
+
export interface ApiLeaveChannelRequest {
|
|
3133
|
+
/** The channel ID to leave. */
|
|
3134
|
+
channel_id: string;
|
|
2416
3135
|
}
|
|
3136
|
+
/** Update Clan profile information */
|
|
3137
|
+
export interface ApiUpdateClanDescProfileRequest {
|
|
3138
|
+
/** Clan id */
|
|
3139
|
+
clan_id: string;
|
|
3140
|
+
/** Clan nick name */
|
|
3141
|
+
nick_name: string;
|
|
3142
|
+
/** Clan profile banner */
|
|
3143
|
+
profile_banner: string;
|
|
3144
|
+
/** Clan profile theme */
|
|
3145
|
+
profile_theme: string;
|
|
3146
|
+
/** Clan profile avatar */
|
|
3147
|
+
avatar_url: string;
|
|
3148
|
+
}
|
|
3149
|
+
export interface ApiUpdateClanProfileRequest {
|
|
3150
|
+
/** Clan id*/
|
|
3151
|
+
clan_id: string;
|
|
3152
|
+
/** Clan nick name */
|
|
3153
|
+
nick_name: string;
|
|
3154
|
+
/** Clan profile avatar */
|
|
3155
|
+
avatar: string;
|
|
3156
|
+
}
|
|
3157
|
+
/** Update fields in a given role. */
|
|
3158
|
+
export interface ApiUpdateRoleRequest {
|
|
3159
|
+
/** The ID of the role to update. */
|
|
3160
|
+
role_id: string;
|
|
3161
|
+
/** The users to add. */
|
|
3162
|
+
add_user_ids: string[];
|
|
3163
|
+
/** The permissions to add. */
|
|
3164
|
+
active_permission_ids: string[];
|
|
3165
|
+
/** The users to remove. */
|
|
3166
|
+
remove_user_ids: string[];
|
|
3167
|
+
/** The permissions to remove. */
|
|
3168
|
+
remove_permission_ids: string[];
|
|
3169
|
+
clan_id: string;
|
|
3170
|
+
max_permission_id: string;
|
|
3171
|
+
title?: string | undefined;
|
|
3172
|
+
color?: string | undefined;
|
|
3173
|
+
role_icon?: string | undefined;
|
|
3174
|
+
description?: string | undefined;
|
|
3175
|
+
display_online?: number | undefined;
|
|
3176
|
+
allow_mention?: number | undefined;
|
|
3177
|
+
}
|
|
3178
|
+
export declare function CreateChannelMessageFromEvent(message: any): ChannelMessage;
|