mezon-js 2.14.83 → 2.14.85
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/api.d.ts +2459 -0
- package/dist/client.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- 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/socket.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils.d.ts +1 -0
- package/package.json +2 -2
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,2459 @@
|
|
|
1
|
+
import * as tsproto from "mezon-js-protobuf";
|
|
2
|
+
import { ApiUpdateChannelDescRequest } from "./client";
|
|
3
|
+
import { ChannelMessageAck } from "./socket";
|
|
4
|
+
export interface ApiListChannelEventsRequest {
|
|
5
|
+
clan_id: string;
|
|
6
|
+
channel_id: string;
|
|
7
|
+
year: number;
|
|
8
|
+
start_time?: number;
|
|
9
|
+
end_time?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ChannelEventAttachment {
|
|
13
|
+
id: string;
|
|
14
|
+
file_name: string;
|
|
15
|
+
file_url: string;
|
|
16
|
+
file_type: string;
|
|
17
|
+
file_size: string;
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
thumbnail: string;
|
|
21
|
+
duration: number;
|
|
22
|
+
message_id: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ApiChannelEvent {
|
|
25
|
+
id: string;
|
|
26
|
+
clan_id: string;
|
|
27
|
+
channel_id: string;
|
|
28
|
+
start_time_seconds: number;
|
|
29
|
+
title: string;
|
|
30
|
+
description: string;
|
|
31
|
+
end_time_seconds: number;
|
|
32
|
+
location: string;
|
|
33
|
+
status: number;
|
|
34
|
+
creator_id: string;
|
|
35
|
+
create_time_seconds: number;
|
|
36
|
+
update_time_seconds: number;
|
|
37
|
+
attachments: Array<ChannelEventAttachment>;
|
|
38
|
+
}
|
|
39
|
+
export interface ApiListChannelEventsResponse {
|
|
40
|
+
events?: Array<ApiChannelEvent>;
|
|
41
|
+
}
|
|
42
|
+
/** A single user-role pair. */
|
|
43
|
+
export interface ChannelUserListChannelUser {
|
|
44
|
+
clan_avatar?: string;
|
|
45
|
+
clan_id?: string;
|
|
46
|
+
clan_nick?: string;
|
|
47
|
+
id?: string;
|
|
48
|
+
role_id?: Array<string>;
|
|
49
|
+
thread_id?: string;
|
|
50
|
+
user_id?: string;
|
|
51
|
+
added_by?: string;
|
|
52
|
+
is_banned?: boolean;
|
|
53
|
+
expired_ban_time?: number;
|
|
54
|
+
}
|
|
55
|
+
/** A message sent on a channel. */
|
|
56
|
+
export interface ChannelMessage {
|
|
57
|
+
id: string;
|
|
58
|
+
avatar?: string;
|
|
59
|
+
channel_id: string;
|
|
60
|
+
channel_label: string;
|
|
61
|
+
clan_id?: string;
|
|
62
|
+
code: number;
|
|
63
|
+
content: string;
|
|
64
|
+
reactions?: Array<ApiMessageReaction>;
|
|
65
|
+
mentions?: Array<ApiMessageMention>;
|
|
66
|
+
attachments?: Array<ApiMessageAttachment>;
|
|
67
|
+
references?: Array<ApiMessageRef>;
|
|
68
|
+
referenced_message?: string[];
|
|
69
|
+
persistent?: boolean;
|
|
70
|
+
sender_id: string;
|
|
71
|
+
update_time?: string;
|
|
72
|
+
clan_logo?: string;
|
|
73
|
+
category_name?: string;
|
|
74
|
+
username?: string;
|
|
75
|
+
clan_nick?: string;
|
|
76
|
+
clan_avatar?: string;
|
|
77
|
+
display_name?: string;
|
|
78
|
+
create_time_seconds?: number;
|
|
79
|
+
update_time_seconds?: number;
|
|
80
|
+
mode?: number;
|
|
81
|
+
message_id?: string;
|
|
82
|
+
hide_editted?: boolean;
|
|
83
|
+
is_public?: boolean;
|
|
84
|
+
topic_id?: string;
|
|
85
|
+
}
|
|
86
|
+
/** */
|
|
87
|
+
export interface ApiBannedUser {
|
|
88
|
+
ban_time?: number;
|
|
89
|
+
banned_id?: string;
|
|
90
|
+
banner_id?: string;
|
|
91
|
+
channel_id?: string;
|
|
92
|
+
reason?: string;
|
|
93
|
+
}
|
|
94
|
+
/** */
|
|
95
|
+
export interface ApiBannedUserList {
|
|
96
|
+
banned_users?: Array<ApiBannedUser>;
|
|
97
|
+
}
|
|
98
|
+
/** A single user-role pair. */
|
|
99
|
+
export interface ClanUserListClanUser {
|
|
100
|
+
clan_avatar?: string;
|
|
101
|
+
clan_id?: string;
|
|
102
|
+
clan_nick?: string;
|
|
103
|
+
role_id?: Array<string>;
|
|
104
|
+
user?: ApiUser;
|
|
105
|
+
}
|
|
106
|
+
/** */
|
|
107
|
+
export interface GetPubKeysResponseUserPubKey {
|
|
108
|
+
PK?: ApiPubKey;
|
|
109
|
+
user_id?: string;
|
|
110
|
+
}
|
|
111
|
+
/** */
|
|
112
|
+
export interface CountClanBadgeResponseBadge {
|
|
113
|
+
clan_id?: string;
|
|
114
|
+
count?: number;
|
|
115
|
+
}
|
|
116
|
+
/** */
|
|
117
|
+
export interface MezonChangeChannelCategoryBody {
|
|
118
|
+
channel_id?: string;
|
|
119
|
+
clan_id?: string;
|
|
120
|
+
}
|
|
121
|
+
/** */
|
|
122
|
+
export interface MezonSetChanEncryptionMethodBody {
|
|
123
|
+
method?: string;
|
|
124
|
+
}
|
|
125
|
+
/** */
|
|
126
|
+
export interface MezonDeleteWebhookByIdBody {
|
|
127
|
+
channel_id?: string;
|
|
128
|
+
clan_id?: string;
|
|
129
|
+
}
|
|
130
|
+
/** Update app information. */
|
|
131
|
+
export interface MezonUpdateAppBody {
|
|
132
|
+
about?: string;
|
|
133
|
+
app_url?: string;
|
|
134
|
+
applogo?: string;
|
|
135
|
+
appname?: string;
|
|
136
|
+
metadata?: string;
|
|
137
|
+
token?: string;
|
|
138
|
+
is_shadow?: string;
|
|
139
|
+
}
|
|
140
|
+
/** */
|
|
141
|
+
export interface MezonUpdateCategoryBody {
|
|
142
|
+
category_id?: string;
|
|
143
|
+
category_name?: string;
|
|
144
|
+
}
|
|
145
|
+
/** */
|
|
146
|
+
export interface ApiAddAppRequest {
|
|
147
|
+
about_me?: string;
|
|
148
|
+
app_logo?: string;
|
|
149
|
+
app_url?: string;
|
|
150
|
+
appname?: string;
|
|
151
|
+
creator_id?: string;
|
|
152
|
+
is_shadow?: boolean;
|
|
153
|
+
role?: number;
|
|
154
|
+
token?: string;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* - USER_ROLE_ADMIN: All access
|
|
158
|
+
- USER_ROLE_DEVELOPER: Best for developers, also enables APIs and API explorer
|
|
159
|
+
- USER_ROLE_MAINTAINER: Best for users who regularly update player information.
|
|
160
|
+
- USER_ROLE_READONLY: Read-only role for those only need to view data
|
|
161
|
+
*/
|
|
162
|
+
export declare enum ApiAppRole {
|
|
163
|
+
USER_ROLE_UNKNOWN = 0,
|
|
164
|
+
USER_ROLE_ADMIN = 1,// All access
|
|
165
|
+
USER_ROLE_DEVELOPER = 2,// Best for developers, also enables APIs and API explorer
|
|
166
|
+
USER_ROLE_MAINTAINER = 3,// Best for users who regularly update player information.
|
|
167
|
+
USER_ROLE_READONLY = 4
|
|
168
|
+
}
|
|
169
|
+
/** Update fields in a given channel. */
|
|
170
|
+
export interface MezonUpdateChannelDescBody {
|
|
171
|
+
age_restricted?: number;
|
|
172
|
+
category_id?: string;
|
|
173
|
+
channel_label?: string;
|
|
174
|
+
e2ee?: number;
|
|
175
|
+
topic?: string;
|
|
176
|
+
/** The clan ID */
|
|
177
|
+
clan_id: string;
|
|
178
|
+
/** The ID of the channel to update. */
|
|
179
|
+
channel_id: string;
|
|
180
|
+
/** app url for channel type app */
|
|
181
|
+
app_id: string;
|
|
182
|
+
/** channel avatar */
|
|
183
|
+
channel_avatar: string | undefined;
|
|
184
|
+
}
|
|
185
|
+
/** */
|
|
186
|
+
export interface ApiLogedDevice {
|
|
187
|
+
device_id?: string;
|
|
188
|
+
device_name?: string;
|
|
189
|
+
ip?: string;
|
|
190
|
+
last_active?: string;
|
|
191
|
+
login_at?: string;
|
|
192
|
+
platform?: string;
|
|
193
|
+
status?: number;
|
|
194
|
+
location?: string;
|
|
195
|
+
is_current?: boolean;
|
|
196
|
+
}
|
|
197
|
+
/** */
|
|
198
|
+
export interface ApiLogedDeviceList {
|
|
199
|
+
devices?: Array<ApiLogedDevice>;
|
|
200
|
+
}
|
|
201
|
+
/** */
|
|
202
|
+
export interface MezonUpdateClanDescBody {
|
|
203
|
+
banner?: string;
|
|
204
|
+
clan_name?: string;
|
|
205
|
+
creator_id?: string;
|
|
206
|
+
logo?: string;
|
|
207
|
+
status?: number;
|
|
208
|
+
is_onboarding?: boolean;
|
|
209
|
+
welcome_channel_id?: string;
|
|
210
|
+
onboarding_banner?: string;
|
|
211
|
+
is_community?: boolean;
|
|
212
|
+
community_banner?: string;
|
|
213
|
+
description?: string;
|
|
214
|
+
about?: string;
|
|
215
|
+
short_url?: string;
|
|
216
|
+
prevent_anonymous?: boolean;
|
|
217
|
+
}
|
|
218
|
+
/** */
|
|
219
|
+
export interface MezonUpdateClanDescProfileBody {
|
|
220
|
+
avatar_url?: string;
|
|
221
|
+
nick_name?: string;
|
|
222
|
+
profile_banner?: string;
|
|
223
|
+
profile_theme?: string;
|
|
224
|
+
}
|
|
225
|
+
/** */
|
|
226
|
+
export interface MezonUpdateClanEmojiByIdBody {
|
|
227
|
+
id: string;
|
|
228
|
+
shortname: string;
|
|
229
|
+
clan_id: string;
|
|
230
|
+
source: string;
|
|
231
|
+
}
|
|
232
|
+
/** */
|
|
233
|
+
export interface MezonUpdateClanStickerByIdBody {
|
|
234
|
+
category?: string;
|
|
235
|
+
clan_id?: string;
|
|
236
|
+
shortname?: string;
|
|
237
|
+
source?: string;
|
|
238
|
+
}
|
|
239
|
+
/** update a event within clan. */
|
|
240
|
+
export interface MezonUpdateEventBody {
|
|
241
|
+
event_id?: string;
|
|
242
|
+
address?: string;
|
|
243
|
+
channel_id?: string;
|
|
244
|
+
channel_voice_id?: string;
|
|
245
|
+
clan_id?: string;
|
|
246
|
+
creator_id?: string;
|
|
247
|
+
description?: string;
|
|
248
|
+
end_time_seconds?: number;
|
|
249
|
+
logo?: string;
|
|
250
|
+
start_time_seconds?: number;
|
|
251
|
+
title?: string;
|
|
252
|
+
channel_id_old?: string;
|
|
253
|
+
repeat_type?: number;
|
|
254
|
+
}
|
|
255
|
+
/** Update fields in a given role. */
|
|
256
|
+
export interface MezonUpdateRoleBody {
|
|
257
|
+
active_permission_ids?: Array<string>;
|
|
258
|
+
add_user_ids?: Array<string>;
|
|
259
|
+
allow_mention?: number;
|
|
260
|
+
clan_id?: string;
|
|
261
|
+
color?: string;
|
|
262
|
+
description?: string;
|
|
263
|
+
display_online?: number;
|
|
264
|
+
max_permission_id: string;
|
|
265
|
+
remove_permission_ids?: Array<string>;
|
|
266
|
+
remove_user_ids?: Array<string>;
|
|
267
|
+
role_icon?: string;
|
|
268
|
+
title?: string;
|
|
269
|
+
}
|
|
270
|
+
/** Delete a role the user has access to. */
|
|
271
|
+
export interface MezonUpdateRoleDeleteBody {
|
|
272
|
+
clan_id?: string;
|
|
273
|
+
}
|
|
274
|
+
/** Request to get system message by clan and channel IDs. */
|
|
275
|
+
export interface MezonUpdateSystemMessageBody {
|
|
276
|
+
boost_message?: string;
|
|
277
|
+
channel_id?: string;
|
|
278
|
+
hide_audit_log?: boolean;
|
|
279
|
+
setup_tips?: string;
|
|
280
|
+
welcome_random?: string;
|
|
281
|
+
welcome_sticker?: string;
|
|
282
|
+
}
|
|
283
|
+
/** */
|
|
284
|
+
export interface MezonUpdateUserProfileByClanBody {
|
|
285
|
+
avatar?: string;
|
|
286
|
+
nick_name?: string;
|
|
287
|
+
}
|
|
288
|
+
/** */
|
|
289
|
+
export interface MezonUpdateWebhookByIdBody {
|
|
290
|
+
avatar?: string;
|
|
291
|
+
channel_id?: string;
|
|
292
|
+
channel_id_update?: string;
|
|
293
|
+
clan_id?: string;
|
|
294
|
+
webhook_name?: string;
|
|
295
|
+
}
|
|
296
|
+
/** A single user-role pair. */
|
|
297
|
+
export interface RoleUserListRoleUser {
|
|
298
|
+
avatar_url?: string;
|
|
299
|
+
display_name?: string;
|
|
300
|
+
id?: string;
|
|
301
|
+
lang_tag?: string;
|
|
302
|
+
location?: string;
|
|
303
|
+
online?: boolean;
|
|
304
|
+
username?: string;
|
|
305
|
+
}
|
|
306
|
+
/** */
|
|
307
|
+
export interface UpdateClanOrderRequestClanOrder {
|
|
308
|
+
clan_id?: string;
|
|
309
|
+
order?: number;
|
|
310
|
+
}
|
|
311
|
+
/** */
|
|
312
|
+
export interface ApiUpdateClanOrderRequest {
|
|
313
|
+
clans_order?: Array<UpdateClanOrderRequestClanOrder>;
|
|
314
|
+
}
|
|
315
|
+
/** A user with additional account details. Always the current user. */
|
|
316
|
+
export interface ApiAccount {
|
|
317
|
+
custom_id?: string;
|
|
318
|
+
disable_time?: string;
|
|
319
|
+
email?: string;
|
|
320
|
+
encrypt_private_key?: string;
|
|
321
|
+
logo?: string;
|
|
322
|
+
splash_screen?: string;
|
|
323
|
+
user?: ApiUser;
|
|
324
|
+
verify_time?: string;
|
|
325
|
+
wallet?: number;
|
|
326
|
+
password_setted?: boolean;
|
|
327
|
+
}
|
|
328
|
+
/** Send a app token to the server. Used with authenticate/link/unlink. */
|
|
329
|
+
export interface ApiAccountApp {
|
|
330
|
+
appid?: string;
|
|
331
|
+
appname?: string;
|
|
332
|
+
token?: string;
|
|
333
|
+
vars?: Record<string, string>;
|
|
334
|
+
}
|
|
335
|
+
export interface ApiAccountSMS {
|
|
336
|
+
phoneno: string;
|
|
337
|
+
vars?: Record<string, string>;
|
|
338
|
+
}
|
|
339
|
+
/** Send an email with password to the server. Used with authenticate/link/unlink. */
|
|
340
|
+
export interface ApiAccountEmail {
|
|
341
|
+
email?: string;
|
|
342
|
+
password?: string;
|
|
343
|
+
prev_email?: string;
|
|
344
|
+
vars?: Record<string, string>;
|
|
345
|
+
}
|
|
346
|
+
/** Send a Mezon token to the server. Used with authenticate/link/unlink. */
|
|
347
|
+
export interface ApiAccountMezon {
|
|
348
|
+
token?: string;
|
|
349
|
+
vars?: Record<string, string>;
|
|
350
|
+
}
|
|
351
|
+
/** Send a Mezon token to the server. Used with authenticate/link/unlink. */
|
|
352
|
+
export interface ApiLinkAccountMezon {
|
|
353
|
+
phone_number?: string;
|
|
354
|
+
vars?: Record<string, string>;
|
|
355
|
+
}
|
|
356
|
+
/** */
|
|
357
|
+
export interface ApiAddFavoriteChannelRequest {
|
|
358
|
+
channel_id?: string;
|
|
359
|
+
clan_id?: string;
|
|
360
|
+
}
|
|
361
|
+
/** */
|
|
362
|
+
export interface ApiAddFavoriteChannelResponse {
|
|
363
|
+
channel_id?: string;
|
|
364
|
+
}
|
|
365
|
+
/** Add a role for channel. */
|
|
366
|
+
export interface ApiAddRoleChannelDescRequest {
|
|
367
|
+
channel_id?: string;
|
|
368
|
+
role_ids?: Array<string>;
|
|
369
|
+
}
|
|
370
|
+
/** */
|
|
371
|
+
export interface ApiAllUsersAddChannelResponse {
|
|
372
|
+
channel_id?: string;
|
|
373
|
+
limit?: number;
|
|
374
|
+
user_ids?: Array<string>;
|
|
375
|
+
usernames?: Array<string>;
|
|
376
|
+
display_names?: Array<string>;
|
|
377
|
+
avatars?: Array<string>;
|
|
378
|
+
onlines?: Array<boolean>;
|
|
379
|
+
}
|
|
380
|
+
/** */
|
|
381
|
+
export interface ApiAllUserClans {
|
|
382
|
+
users?: Array<ApiUser>;
|
|
383
|
+
}
|
|
384
|
+
/** App information. */
|
|
385
|
+
export interface ApiApp {
|
|
386
|
+
about?: string;
|
|
387
|
+
app_url?: string;
|
|
388
|
+
applogo?: string;
|
|
389
|
+
appname?: string;
|
|
390
|
+
creator_id?: string;
|
|
391
|
+
disable_time?: string;
|
|
392
|
+
create_time_seconds?: number;
|
|
393
|
+
id?: string;
|
|
394
|
+
is_shadow?: boolean;
|
|
395
|
+
role?: number;
|
|
396
|
+
token?: string;
|
|
397
|
+
}
|
|
398
|
+
/** A list of apps. */
|
|
399
|
+
export interface ApiAppList {
|
|
400
|
+
apps?: Array<ApiApp>;
|
|
401
|
+
next_cursor?: string;
|
|
402
|
+
total_count?: number;
|
|
403
|
+
}
|
|
404
|
+
/** */
|
|
405
|
+
export interface ApiAuditLog {
|
|
406
|
+
action_log?: string;
|
|
407
|
+
channel_id?: string;
|
|
408
|
+
channel_label?: string;
|
|
409
|
+
clan_id?: string;
|
|
410
|
+
details?: string;
|
|
411
|
+
entity_id?: string;
|
|
412
|
+
entity_name?: string;
|
|
413
|
+
id?: string;
|
|
414
|
+
time_log?: string;
|
|
415
|
+
user_id?: string;
|
|
416
|
+
}
|
|
417
|
+
/** Authenticate against the server with email+password. */
|
|
418
|
+
export interface ApiAuthenticateSMSRequest {
|
|
419
|
+
account?: ApiAccountSMS;
|
|
420
|
+
create?: boolean;
|
|
421
|
+
username?: string;
|
|
422
|
+
}
|
|
423
|
+
/** Authenticate against the server with email+password. */
|
|
424
|
+
export interface ApiAuthenticateEmailRequest {
|
|
425
|
+
account?: ApiAccountEmail;
|
|
426
|
+
create?: boolean;
|
|
427
|
+
username?: string;
|
|
428
|
+
}
|
|
429
|
+
/** */
|
|
430
|
+
export interface ApiCategoryDesc {
|
|
431
|
+
category_id?: string;
|
|
432
|
+
category_name?: string;
|
|
433
|
+
category_order?: number;
|
|
434
|
+
clan_id?: string;
|
|
435
|
+
creator_id?: string;
|
|
436
|
+
}
|
|
437
|
+
/** */
|
|
438
|
+
export interface ApiCategoryDescList {
|
|
439
|
+
categorydesc?: Array<ApiCategoryDesc>;
|
|
440
|
+
}
|
|
441
|
+
/** */
|
|
442
|
+
export interface ApiUpdateUsernameRequest {
|
|
443
|
+
username?: string;
|
|
444
|
+
}
|
|
445
|
+
/** */
|
|
446
|
+
export interface ApiCategoryOrderUpdate {
|
|
447
|
+
category_id?: string;
|
|
448
|
+
order?: number;
|
|
449
|
+
}
|
|
450
|
+
/** */
|
|
451
|
+
export interface ApiChanEncryptionMethod {
|
|
452
|
+
channel_id?: string;
|
|
453
|
+
method?: string;
|
|
454
|
+
}
|
|
455
|
+
export interface ApiListChannelAppsResponse {
|
|
456
|
+
channel_apps?: Array<ApiChannelAppResponse>;
|
|
457
|
+
}
|
|
458
|
+
/** Update fields in a given channel. */
|
|
459
|
+
export interface ApiChangeChannelPrivateRequest {
|
|
460
|
+
clan_id?: string;
|
|
461
|
+
channel_id?: string;
|
|
462
|
+
channel_private?: number;
|
|
463
|
+
role_ids?: Array<string>;
|
|
464
|
+
user_ids?: Array<string>;
|
|
465
|
+
}
|
|
466
|
+
/** */
|
|
467
|
+
export interface ApiChannelAppResponse {
|
|
468
|
+
app_id?: string;
|
|
469
|
+
channel_id?: string;
|
|
470
|
+
clan_id?: string;
|
|
471
|
+
id?: string;
|
|
472
|
+
app_url?: string;
|
|
473
|
+
app_name?: string;
|
|
474
|
+
app_logo?: string;
|
|
475
|
+
}
|
|
476
|
+
/** */
|
|
477
|
+
export interface ApiChannelAttachment {
|
|
478
|
+
create_time_seconds?: number;
|
|
479
|
+
filename?: string;
|
|
480
|
+
filesize?: string;
|
|
481
|
+
filetype?: string;
|
|
482
|
+
id?: string;
|
|
483
|
+
uploader?: string;
|
|
484
|
+
url?: string;
|
|
485
|
+
message_id?: string;
|
|
486
|
+
width?: number;
|
|
487
|
+
height?: number;
|
|
488
|
+
}
|
|
489
|
+
/** */
|
|
490
|
+
export interface ApiChannelAttachmentList {
|
|
491
|
+
attachments?: Array<ApiChannelAttachment>;
|
|
492
|
+
}
|
|
493
|
+
/** */
|
|
494
|
+
export interface ApiChannelCanvasDetailResponse {
|
|
495
|
+
content?: string;
|
|
496
|
+
creator_id?: string;
|
|
497
|
+
editor_id?: string;
|
|
498
|
+
id?: string;
|
|
499
|
+
is_default?: boolean;
|
|
500
|
+
title?: string;
|
|
501
|
+
}
|
|
502
|
+
/** */
|
|
503
|
+
export interface ApiChannelCanvasItem {
|
|
504
|
+
content?: string;
|
|
505
|
+
creator_id?: string;
|
|
506
|
+
id?: string;
|
|
507
|
+
is_default?: boolean;
|
|
508
|
+
title?: string;
|
|
509
|
+
update_time?: string;
|
|
510
|
+
create_time_seconds?: number;
|
|
511
|
+
}
|
|
512
|
+
/** */
|
|
513
|
+
export interface ApiChannelCanvasListResponse {
|
|
514
|
+
channel_canvases?: Array<ApiChannelCanvasItem>;
|
|
515
|
+
channel_id?: string;
|
|
516
|
+
clan_id?: string;
|
|
517
|
+
count?: number;
|
|
518
|
+
}
|
|
519
|
+
/** */
|
|
520
|
+
export interface ApiEditChannelCanvasRequest {
|
|
521
|
+
channel_id?: string;
|
|
522
|
+
clan_id?: string;
|
|
523
|
+
content?: string;
|
|
524
|
+
id?: string;
|
|
525
|
+
is_default?: boolean;
|
|
526
|
+
title?: string;
|
|
527
|
+
status?: number;
|
|
528
|
+
}
|
|
529
|
+
/** */
|
|
530
|
+
export interface ApiEditChannelCanvasResponse {
|
|
531
|
+
id?: string;
|
|
532
|
+
}
|
|
533
|
+
/** A list of channel description, usually a result of a list operation. */
|
|
534
|
+
export interface ApiChannelDescList {
|
|
535
|
+
cacheable_cursor?: string;
|
|
536
|
+
channeldesc?: Array<ApiChannelDescription>;
|
|
537
|
+
next_cursor?: string;
|
|
538
|
+
page?: number;
|
|
539
|
+
prev_cursor?: string;
|
|
540
|
+
}
|
|
541
|
+
/** */
|
|
542
|
+
export interface ApiAddChannelAppRequest {
|
|
543
|
+
app_url?: string;
|
|
544
|
+
appname?: string;
|
|
545
|
+
creator_id?: string;
|
|
546
|
+
role?: number;
|
|
547
|
+
token?: string;
|
|
548
|
+
}
|
|
549
|
+
/** */
|
|
550
|
+
export interface ApiChannelDescription {
|
|
551
|
+
active?: number;
|
|
552
|
+
age_restricted?: number;
|
|
553
|
+
category_id?: string;
|
|
554
|
+
category_name?: string;
|
|
555
|
+
channel_id?: string;
|
|
556
|
+
channel_label?: string;
|
|
557
|
+
channel_private?: number;
|
|
558
|
+
clan_id?: string;
|
|
559
|
+
clan_name?: string;
|
|
560
|
+
count_mess_unread?: number;
|
|
561
|
+
create_time_seconds?: number;
|
|
562
|
+
creator_id?: string;
|
|
563
|
+
creator_name?: string;
|
|
564
|
+
e2ee?: number;
|
|
565
|
+
is_mute?: boolean;
|
|
566
|
+
last_pin_message?: string;
|
|
567
|
+
last_seen_message?: ApiChannelMessageHeader;
|
|
568
|
+
last_sent_message?: ApiChannelMessageHeader;
|
|
569
|
+
meeting_code?: string;
|
|
570
|
+
channel_avatar?: string;
|
|
571
|
+
parent_id?: string;
|
|
572
|
+
type?: number;
|
|
573
|
+
update_time_seconds?: number;
|
|
574
|
+
app_id?: string;
|
|
575
|
+
topic?: string;
|
|
576
|
+
user_ids?: Array<string>;
|
|
577
|
+
usernames?: Array<string>;
|
|
578
|
+
display_names?: Array<string>;
|
|
579
|
+
onlines?: Array<boolean>;
|
|
580
|
+
avatars?: Array<string>;
|
|
581
|
+
member_count?: number;
|
|
582
|
+
}
|
|
583
|
+
/** */
|
|
584
|
+
export interface ApiChannelMessageHeader {
|
|
585
|
+
id?: string;
|
|
586
|
+
sender_id?: string;
|
|
587
|
+
timestamp_seconds?: number;
|
|
588
|
+
content?: string;
|
|
589
|
+
}
|
|
590
|
+
/** A list of channel messages, usually a result of a list operation. */
|
|
591
|
+
export interface ApiChannelMessageList {
|
|
592
|
+
last_seen_message?: ApiChannelMessageHeader;
|
|
593
|
+
last_sent_message?: ApiChannelMessageHeader;
|
|
594
|
+
messages?: Array<ChannelMessage>;
|
|
595
|
+
}
|
|
596
|
+
/** */
|
|
597
|
+
export interface ApiChannelSettingItem {
|
|
598
|
+
active?: number;
|
|
599
|
+
category_id?: string;
|
|
600
|
+
channel_label?: string;
|
|
601
|
+
channel_private?: number;
|
|
602
|
+
channel_type?: number;
|
|
603
|
+
creator_id?: string;
|
|
604
|
+
id?: string;
|
|
605
|
+
last_sent_message?: ApiChannelMessageHeader;
|
|
606
|
+
meeting_code?: string;
|
|
607
|
+
message_count?: string;
|
|
608
|
+
parent_id?: string;
|
|
609
|
+
user_ids?: Array<string>;
|
|
610
|
+
}
|
|
611
|
+
/** */
|
|
612
|
+
export interface ApiChannelSettingListResponse {
|
|
613
|
+
channel_count?: number;
|
|
614
|
+
channel_setting_list?: Array<ApiChannelSettingItem>;
|
|
615
|
+
clan_id?: string;
|
|
616
|
+
thread_count?: number;
|
|
617
|
+
}
|
|
618
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
619
|
+
export interface ApiChannelUserList {
|
|
620
|
+
channel_id?: string;
|
|
621
|
+
channel_users?: Array<ChannelUserListChannelUser>;
|
|
622
|
+
cursor?: string;
|
|
623
|
+
}
|
|
624
|
+
/** */
|
|
625
|
+
export interface ApiCheckDuplicateClanNameResponse {
|
|
626
|
+
is_duplicate?: boolean;
|
|
627
|
+
}
|
|
628
|
+
/** */
|
|
629
|
+
export interface ApiClanDesc {
|
|
630
|
+
banner?: string;
|
|
631
|
+
clan_id?: string;
|
|
632
|
+
clan_name?: string;
|
|
633
|
+
creator_id?: string;
|
|
634
|
+
logo?: string;
|
|
635
|
+
status?: number;
|
|
636
|
+
badge_count?: number;
|
|
637
|
+
is_onboarding?: boolean;
|
|
638
|
+
welcome_channel_id?: string;
|
|
639
|
+
onboarding_banner?: string;
|
|
640
|
+
is_community?: boolean;
|
|
641
|
+
community_banner?: string;
|
|
642
|
+
description?: string;
|
|
643
|
+
about?: string;
|
|
644
|
+
short_url?: string;
|
|
645
|
+
prevent_anonymous?: boolean;
|
|
646
|
+
has_unread_message?: boolean;
|
|
647
|
+
}
|
|
648
|
+
/** */
|
|
649
|
+
export interface ApiClanDescList {
|
|
650
|
+
clandesc?: Array<ApiClanDesc>;
|
|
651
|
+
}
|
|
652
|
+
/** */
|
|
653
|
+
export interface ApiClanEmoji {
|
|
654
|
+
category?: string;
|
|
655
|
+
clan_id?: string;
|
|
656
|
+
clan_name?: string;
|
|
657
|
+
creator_id?: string;
|
|
658
|
+
id?: string;
|
|
659
|
+
logo?: string;
|
|
660
|
+
shortname?: string;
|
|
661
|
+
src?: string;
|
|
662
|
+
is_for_sale?: boolean;
|
|
663
|
+
}
|
|
664
|
+
/** */
|
|
665
|
+
export interface ApiClanEmojiCreateRequest {
|
|
666
|
+
category?: string;
|
|
667
|
+
clan_id?: string;
|
|
668
|
+
id?: string;
|
|
669
|
+
shortname?: string;
|
|
670
|
+
source?: string;
|
|
671
|
+
is_for_sale?: boolean;
|
|
672
|
+
}
|
|
673
|
+
/** Get clan profile. */
|
|
674
|
+
export interface ApiClanProfile {
|
|
675
|
+
avatar?: string;
|
|
676
|
+
clan_id?: string;
|
|
677
|
+
nick_name?: string;
|
|
678
|
+
user_id?: string;
|
|
679
|
+
about?: string;
|
|
680
|
+
}
|
|
681
|
+
/** */
|
|
682
|
+
export interface ApiClanSticker {
|
|
683
|
+
category?: string;
|
|
684
|
+
clan_id?: string;
|
|
685
|
+
clan_name?: string;
|
|
686
|
+
create_time_seconds?: number;
|
|
687
|
+
creator_id?: string;
|
|
688
|
+
id?: string;
|
|
689
|
+
logo?: string;
|
|
690
|
+
shortname?: string;
|
|
691
|
+
source?: string;
|
|
692
|
+
media_type?: number;
|
|
693
|
+
is_for_sale?: boolean;
|
|
694
|
+
}
|
|
695
|
+
/** */
|
|
696
|
+
export interface ApiClanStickerAddRequest {
|
|
697
|
+
category?: string;
|
|
698
|
+
clan_id?: string;
|
|
699
|
+
id?: string;
|
|
700
|
+
shortname?: string;
|
|
701
|
+
source?: string;
|
|
702
|
+
media_type?: number;
|
|
703
|
+
is_for_sale?: boolean;
|
|
704
|
+
}
|
|
705
|
+
/** A list of users belonging to a clan, along with their role. */
|
|
706
|
+
export interface ApiClanUserList {
|
|
707
|
+
clan_id?: string;
|
|
708
|
+
clan_users?: Array<ClanUserListClanUser>;
|
|
709
|
+
cursor?: string;
|
|
710
|
+
}
|
|
711
|
+
/** */
|
|
712
|
+
export interface ApiConfirmLoginRequest {
|
|
713
|
+
is_remember?: boolean;
|
|
714
|
+
login_id?: string;
|
|
715
|
+
}
|
|
716
|
+
/** */
|
|
717
|
+
export interface ApiCreateActivityRequest {
|
|
718
|
+
activity_description?: string;
|
|
719
|
+
activity_name?: string;
|
|
720
|
+
activity_type?: number;
|
|
721
|
+
application_id?: string;
|
|
722
|
+
status?: number;
|
|
723
|
+
}
|
|
724
|
+
/** */
|
|
725
|
+
export interface ApiCreateCategoryDescRequest {
|
|
726
|
+
category_name?: string;
|
|
727
|
+
clan_id?: string;
|
|
728
|
+
}
|
|
729
|
+
/** Create a channel within clan. */
|
|
730
|
+
export interface ApiCreateChannelDescRequest {
|
|
731
|
+
app_id?: string;
|
|
732
|
+
category_id?: string;
|
|
733
|
+
channel_id?: string;
|
|
734
|
+
channel_label?: string;
|
|
735
|
+
channel_private?: number;
|
|
736
|
+
clan_id?: string;
|
|
737
|
+
parent_id?: string;
|
|
738
|
+
type?: number;
|
|
739
|
+
user_ids?: Array<string>;
|
|
740
|
+
}
|
|
741
|
+
/** */
|
|
742
|
+
export interface ApiCreateClanDescRequest {
|
|
743
|
+
banner?: string;
|
|
744
|
+
clan_name?: string;
|
|
745
|
+
creator_id?: string;
|
|
746
|
+
logo?: string;
|
|
747
|
+
}
|
|
748
|
+
/** Create a event within clan. */
|
|
749
|
+
export interface ApiCreateEventRequest {
|
|
750
|
+
address?: string;
|
|
751
|
+
channel_voice_id?: string;
|
|
752
|
+
clan_id?: string;
|
|
753
|
+
description?: string;
|
|
754
|
+
end_time_seconds?: number;
|
|
755
|
+
logo?: string;
|
|
756
|
+
start_time_seconds?: number;
|
|
757
|
+
title?: string;
|
|
758
|
+
channel_id?: string;
|
|
759
|
+
action?: number;
|
|
760
|
+
event_status?: number;
|
|
761
|
+
repeat_type?: number;
|
|
762
|
+
creator_id?: string;
|
|
763
|
+
user_id?: string;
|
|
764
|
+
is_private?: boolean;
|
|
765
|
+
meet_room?: ApiGenerateMezonMeetResponse;
|
|
766
|
+
}
|
|
767
|
+
/** Create a event within clan. */
|
|
768
|
+
export interface ApiUpdateEventRequest {
|
|
769
|
+
address?: string;
|
|
770
|
+
channel_id?: string;
|
|
771
|
+
event_id?: string;
|
|
772
|
+
description?: string;
|
|
773
|
+
end_time?: string;
|
|
774
|
+
logo?: string;
|
|
775
|
+
start_time?: string;
|
|
776
|
+
title?: string;
|
|
777
|
+
clan_id?: string;
|
|
778
|
+
}
|
|
779
|
+
/** Create a role within clan. */
|
|
780
|
+
export interface ApiCreateRoleRequest {
|
|
781
|
+
active_permission_ids?: Array<string>;
|
|
782
|
+
add_user_ids?: Array<string>;
|
|
783
|
+
allow_mention?: number;
|
|
784
|
+
clan_id?: string;
|
|
785
|
+
color?: string;
|
|
786
|
+
description?: string;
|
|
787
|
+
display_online?: number;
|
|
788
|
+
max_permission_id: string;
|
|
789
|
+
role_icon?: string;
|
|
790
|
+
title?: string;
|
|
791
|
+
order_role?: number;
|
|
792
|
+
}
|
|
793
|
+
/** Delete a channel the user has access to. */
|
|
794
|
+
export interface ApiDeleteChannelDescRequest {
|
|
795
|
+
clan_id?: string;
|
|
796
|
+
channel_id?: string;
|
|
797
|
+
}
|
|
798
|
+
/** */
|
|
799
|
+
export interface ApiDeleteEventRequest {
|
|
800
|
+
channel_id?: string;
|
|
801
|
+
clan_id?: string;
|
|
802
|
+
creator_id?: string;
|
|
803
|
+
event_id?: string;
|
|
804
|
+
event_label?: string;
|
|
805
|
+
}
|
|
806
|
+
/** Delete a role the user has access to. */
|
|
807
|
+
export interface ApiDeleteRoleRequest {
|
|
808
|
+
channel_id?: string;
|
|
809
|
+
clan_id?: string;
|
|
810
|
+
role_id?: string;
|
|
811
|
+
role_label?: string;
|
|
812
|
+
}
|
|
813
|
+
/** Storage objects to delete. */
|
|
814
|
+
export interface ApiDeleteStorageObjectId {
|
|
815
|
+
collection?: string;
|
|
816
|
+
key?: string;
|
|
817
|
+
version?: string;
|
|
818
|
+
}
|
|
819
|
+
/** Batch delete storage objects. */
|
|
820
|
+
export interface ApiDeleteStorageObjectsRequest {
|
|
821
|
+
object_ids?: Array<ApiDeleteStorageObjectId>;
|
|
822
|
+
}
|
|
823
|
+
/** Represents an event to be passed through the server to registered event handlers. */
|
|
824
|
+
export interface ApiEvent {
|
|
825
|
+
external?: boolean;
|
|
826
|
+
name?: string;
|
|
827
|
+
properties?: Record<string, string>;
|
|
828
|
+
timestamp?: string;
|
|
829
|
+
}
|
|
830
|
+
/** */
|
|
831
|
+
export interface ApiRegisterStreamingChannelRequest {
|
|
832
|
+
channel_id?: string;
|
|
833
|
+
clan_id?: string;
|
|
834
|
+
}
|
|
835
|
+
/** */
|
|
836
|
+
export interface ApiRegisterStreamingChannelResponse {
|
|
837
|
+
channel_id?: string;
|
|
838
|
+
clan_id?: string;
|
|
839
|
+
streaming_url?: string;
|
|
840
|
+
}
|
|
841
|
+
/** */
|
|
842
|
+
export interface ApiListStreamingChannelsResponse {
|
|
843
|
+
streaming_channels?: Array<ApiStreamingChannelResponse>;
|
|
844
|
+
}
|
|
845
|
+
export interface ApiEmojiListedResponse {
|
|
846
|
+
emoji_list?: Array<ApiClanEmoji>;
|
|
847
|
+
}
|
|
848
|
+
/** */
|
|
849
|
+
export interface ApiEmojiRecent {
|
|
850
|
+
emoji_recents_id?: string;
|
|
851
|
+
emoji_id?: string;
|
|
852
|
+
update_time?: string;
|
|
853
|
+
}
|
|
854
|
+
export interface ApiAddFriendsResponse {
|
|
855
|
+
ids?: Array<string>;
|
|
856
|
+
usernames?: Array<string>;
|
|
857
|
+
}
|
|
858
|
+
/** */
|
|
859
|
+
export interface ApiEventList {
|
|
860
|
+
events?: Array<ApiEventManagement>;
|
|
861
|
+
}
|
|
862
|
+
/** */
|
|
863
|
+
export interface ApiEventManagement {
|
|
864
|
+
active?: number;
|
|
865
|
+
address?: string;
|
|
866
|
+
channel_voice_id?: string;
|
|
867
|
+
clan_id?: string;
|
|
868
|
+
creator_id?: string;
|
|
869
|
+
description?: string;
|
|
870
|
+
end_time_seconds?: number;
|
|
871
|
+
id?: string;
|
|
872
|
+
logo?: string;
|
|
873
|
+
max_permission?: number;
|
|
874
|
+
start_event?: number;
|
|
875
|
+
start_time_seconds?: number;
|
|
876
|
+
title?: string;
|
|
877
|
+
user_ids?: Array<string>;
|
|
878
|
+
create_time_seconds?: number;
|
|
879
|
+
channel_id?: string;
|
|
880
|
+
event_status?: number;
|
|
881
|
+
repeat_type?: number;
|
|
882
|
+
is_private?: boolean;
|
|
883
|
+
meet_room?: ApiGenerateMezonMeetResponse;
|
|
884
|
+
}
|
|
885
|
+
/** */
|
|
886
|
+
export interface ApiListFavoriteChannelResponse {
|
|
887
|
+
channel_ids?: Array<string>;
|
|
888
|
+
}
|
|
889
|
+
/** */
|
|
890
|
+
export interface ApiFilterParam {
|
|
891
|
+
field_name?: string;
|
|
892
|
+
field_value?: string;
|
|
893
|
+
}
|
|
894
|
+
/** A friend of a user. */
|
|
895
|
+
export interface ApiFriend {
|
|
896
|
+
state?: number;
|
|
897
|
+
update_time?: string;
|
|
898
|
+
user?: ApiUser;
|
|
899
|
+
source_id?: string;
|
|
900
|
+
}
|
|
901
|
+
/** A collection of zero or more friends of the user. */
|
|
902
|
+
export interface ApiFriendList {
|
|
903
|
+
cursor?: string;
|
|
904
|
+
friends?: Array<ApiFriend>;
|
|
905
|
+
}
|
|
906
|
+
/** */
|
|
907
|
+
export interface ApiGetKeyServerResp {
|
|
908
|
+
url?: string;
|
|
909
|
+
}
|
|
910
|
+
/** */
|
|
911
|
+
export interface ApiGenerateMezonMeetResponse {
|
|
912
|
+
meet_id?: string;
|
|
913
|
+
room_name?: string;
|
|
914
|
+
external_link?: string;
|
|
915
|
+
creator_id?: string;
|
|
916
|
+
event_id?: string;
|
|
917
|
+
}
|
|
918
|
+
/** */
|
|
919
|
+
export interface ApiGenerateMeetTokenExternalResponse {
|
|
920
|
+
guest_user_id?: string;
|
|
921
|
+
token?: string;
|
|
922
|
+
guest_access_token?: string;
|
|
923
|
+
}
|
|
924
|
+
/** */
|
|
925
|
+
export interface ApiMeetParticipantRequest {
|
|
926
|
+
room_name?: string;
|
|
927
|
+
username?: string;
|
|
928
|
+
channel_id?: string;
|
|
929
|
+
clan_id?: string;
|
|
930
|
+
}
|
|
931
|
+
/** */
|
|
932
|
+
export interface ApiGetPubKeysResponse {
|
|
933
|
+
pub_keys?: Array<GetPubKeysResponseUserPubKey>;
|
|
934
|
+
}
|
|
935
|
+
/** */
|
|
936
|
+
export interface ApiGiveCoffeeEvent {
|
|
937
|
+
channel_id?: string;
|
|
938
|
+
clan_id?: string;
|
|
939
|
+
message_ref_id?: string;
|
|
940
|
+
receiver_id?: string;
|
|
941
|
+
sender_id?: string;
|
|
942
|
+
token_count?: number;
|
|
943
|
+
}
|
|
944
|
+
/** */
|
|
945
|
+
export interface ApiHashtagDm {
|
|
946
|
+
channel_id?: string;
|
|
947
|
+
channel_label?: string;
|
|
948
|
+
channel_private?: number;
|
|
949
|
+
clan_id?: string;
|
|
950
|
+
clan_name?: string;
|
|
951
|
+
meeting_code?: string;
|
|
952
|
+
parent_id?: string;
|
|
953
|
+
type?: number;
|
|
954
|
+
}
|
|
955
|
+
/** */
|
|
956
|
+
export interface ApiHashtagDmList {
|
|
957
|
+
hashtag_dm?: Array<ApiHashtagDm>;
|
|
958
|
+
}
|
|
959
|
+
/** Add link invite users to. */
|
|
960
|
+
export interface ApiInviteUserRes {
|
|
961
|
+
channel_desc?: ApiChannelDescription;
|
|
962
|
+
channel_id?: string;
|
|
963
|
+
channel_label?: string;
|
|
964
|
+
clan_id?: string;
|
|
965
|
+
clan_name?: string;
|
|
966
|
+
user_joined?: boolean;
|
|
967
|
+
expiry_time_seconds?: number;
|
|
968
|
+
clan_logo: string;
|
|
969
|
+
member_count: number;
|
|
970
|
+
banner: string;
|
|
971
|
+
community_banner: string;
|
|
972
|
+
is_community: boolean;
|
|
973
|
+
}
|
|
974
|
+
/** Add link invite users to. */
|
|
975
|
+
export interface ApiLinkInviteUser {
|
|
976
|
+
channel_id?: string;
|
|
977
|
+
clan_id?: string;
|
|
978
|
+
create_time_seconds?: number;
|
|
979
|
+
creator_id?: string;
|
|
980
|
+
expiry_time?: string;
|
|
981
|
+
id?: string;
|
|
982
|
+
invite_link?: string;
|
|
983
|
+
}
|
|
984
|
+
/** Add link invite users to. */
|
|
985
|
+
export interface ApiLinkInviteUserRequest {
|
|
986
|
+
channel_id?: string;
|
|
987
|
+
clan_id?: string;
|
|
988
|
+
expiry_time?: number;
|
|
989
|
+
}
|
|
990
|
+
export interface ApiNotifiReactMessage {
|
|
991
|
+
channel_id?: string;
|
|
992
|
+
id?: string;
|
|
993
|
+
user_id?: string;
|
|
994
|
+
}
|
|
995
|
+
/** */
|
|
996
|
+
export interface ApiMessage2InboxRequest {
|
|
997
|
+
avatar?: string;
|
|
998
|
+
channel_id?: string;
|
|
999
|
+
clan_id?: string;
|
|
1000
|
+
content?: string;
|
|
1001
|
+
message_id?: string;
|
|
1002
|
+
reactions?: Array<ApiMessageReaction>;
|
|
1003
|
+
mentions?: Array<ApiMessageMention>;
|
|
1004
|
+
attachments?: Array<ApiMessageAttachment>;
|
|
1005
|
+
references?: Array<ApiMessageRef>;
|
|
1006
|
+
}
|
|
1007
|
+
/** */
|
|
1008
|
+
export interface ApiMessageAttachment {
|
|
1009
|
+
filename?: string;
|
|
1010
|
+
filetype?: string;
|
|
1011
|
+
height?: number;
|
|
1012
|
+
size?: number;
|
|
1013
|
+
url?: string;
|
|
1014
|
+
width?: number;
|
|
1015
|
+
thumbnail?: string;
|
|
1016
|
+
channel_id?: string;
|
|
1017
|
+
mode?: number;
|
|
1018
|
+
channel_label?: string;
|
|
1019
|
+
message_id?: string;
|
|
1020
|
+
sender_id?: string;
|
|
1021
|
+
duration?: number;
|
|
1022
|
+
create_time_seconds?: number;
|
|
1023
|
+
}
|
|
1024
|
+
/** */
|
|
1025
|
+
export interface ApiMessageDeleted {
|
|
1026
|
+
deletor?: string;
|
|
1027
|
+
message_id?: string;
|
|
1028
|
+
}
|
|
1029
|
+
/** */
|
|
1030
|
+
export interface ApiListUserActivity {
|
|
1031
|
+
activities?: Array<ApiUserActivity>;
|
|
1032
|
+
}
|
|
1033
|
+
/** */
|
|
1034
|
+
export interface ApiLoginIDResponse {
|
|
1035
|
+
address?: string;
|
|
1036
|
+
create_time_second?: string;
|
|
1037
|
+
login_id?: string;
|
|
1038
|
+
platform?: string;
|
|
1039
|
+
status?: number;
|
|
1040
|
+
user_id?: string;
|
|
1041
|
+
username?: string;
|
|
1042
|
+
}
|
|
1043
|
+
/** */
|
|
1044
|
+
export interface ApiMarkAsReadRequest {
|
|
1045
|
+
category_id?: string;
|
|
1046
|
+
channel_id?: string;
|
|
1047
|
+
clan_id?: string;
|
|
1048
|
+
}
|
|
1049
|
+
/** */
|
|
1050
|
+
export interface ApiMessageMention {
|
|
1051
|
+
create_time_seconds?: number;
|
|
1052
|
+
id?: string;
|
|
1053
|
+
user_id?: string;
|
|
1054
|
+
username?: string;
|
|
1055
|
+
role_id?: string;
|
|
1056
|
+
rolename?: string;
|
|
1057
|
+
s?: number;
|
|
1058
|
+
e?: number;
|
|
1059
|
+
/** The channel this message belongs to. */
|
|
1060
|
+
channel_id?: string;
|
|
1061
|
+
mode?: number;
|
|
1062
|
+
channel_label?: string;
|
|
1063
|
+
/** The message that user react */
|
|
1064
|
+
message_id?: string;
|
|
1065
|
+
/** Message sender, usually a user ID. */
|
|
1066
|
+
sender_id?: string;
|
|
1067
|
+
}
|
|
1068
|
+
/** */
|
|
1069
|
+
export interface ApiLoginRequest {
|
|
1070
|
+
address?: string;
|
|
1071
|
+
platform?: string;
|
|
1072
|
+
}
|
|
1073
|
+
/** */
|
|
1074
|
+
export interface ApiMessageReaction {
|
|
1075
|
+
action?: boolean;
|
|
1076
|
+
emoji_id: string;
|
|
1077
|
+
emoji: string;
|
|
1078
|
+
id?: string;
|
|
1079
|
+
sender_id?: string;
|
|
1080
|
+
sender_name?: string;
|
|
1081
|
+
sender_avatar?: string;
|
|
1082
|
+
count: number;
|
|
1083
|
+
/** The channel this message belongs to. */
|
|
1084
|
+
channel_id: string;
|
|
1085
|
+
mode: number;
|
|
1086
|
+
is_public: boolean;
|
|
1087
|
+
channel_label?: string;
|
|
1088
|
+
/** The message that user react */
|
|
1089
|
+
message_id: string;
|
|
1090
|
+
topic_id?: string;
|
|
1091
|
+
emoji_recent_id?: string;
|
|
1092
|
+
}
|
|
1093
|
+
export interface ApiListChannelAppsResponse {
|
|
1094
|
+
channel_apps?: Array<ApiChannelAppResponse>;
|
|
1095
|
+
}
|
|
1096
|
+
/** */
|
|
1097
|
+
export interface ApiListStreamingChannelsResponse {
|
|
1098
|
+
streaming_channels?: Array<ApiStreamingChannelResponse>;
|
|
1099
|
+
}
|
|
1100
|
+
/** */
|
|
1101
|
+
export interface ApiMezonOauthClient {
|
|
1102
|
+
access_token_strategy?: string;
|
|
1103
|
+
allowed_cors_origins?: Array<string>;
|
|
1104
|
+
audience?: Array<string>;
|
|
1105
|
+
authorization_code_grant_access_token_lifespan?: string;
|
|
1106
|
+
authorization_code_grant_id_token_lifespan?: string;
|
|
1107
|
+
authorization_code_grant_refresh_token_lifespan?: string;
|
|
1108
|
+
backchannel_logout_session_required?: boolean;
|
|
1109
|
+
backchannel_logout_uri?: string;
|
|
1110
|
+
client_credentials_grant_access_token_lifespan?: string;
|
|
1111
|
+
client_id?: string;
|
|
1112
|
+
client_name?: string;
|
|
1113
|
+
client_secret?: string;
|
|
1114
|
+
client_secret_expires_at?: number;
|
|
1115
|
+
client_uri?: string;
|
|
1116
|
+
contacts?: Array<string>;
|
|
1117
|
+
frontchannel_logout_session_required?: boolean;
|
|
1118
|
+
frontchannel_logout_uri?: string;
|
|
1119
|
+
grant_types?: Array<string>;
|
|
1120
|
+
implicit_grant_access_token_lifespan?: string;
|
|
1121
|
+
implicit_grant_id_token_lifespan?: string;
|
|
1122
|
+
jwks?: Array<string>;
|
|
1123
|
+
jwks_uri?: string;
|
|
1124
|
+
jwt_bearer_grant_access_token_lifespan?: string;
|
|
1125
|
+
logo_uri?: string;
|
|
1126
|
+
owner?: string;
|
|
1127
|
+
policy_uri?: string;
|
|
1128
|
+
post_logout_redirect_uris?: Array<string>;
|
|
1129
|
+
redirect_uris?: Array<string>;
|
|
1130
|
+
refresh_token_grant_access_token_lifespan?: string;
|
|
1131
|
+
refresh_token_grant_id_token_lifespan?: string;
|
|
1132
|
+
refresh_token_grant_refresh_token_lifespan?: string;
|
|
1133
|
+
registration_access_token?: string;
|
|
1134
|
+
registration_client_uri?: string;
|
|
1135
|
+
request_object_signing_alg?: string;
|
|
1136
|
+
request_uris?: Array<string>;
|
|
1137
|
+
response_types?: Array<string>;
|
|
1138
|
+
scope?: string;
|
|
1139
|
+
sector_identifier_uri?: string;
|
|
1140
|
+
skip_consent?: boolean;
|
|
1141
|
+
skip_logout_consent?: boolean;
|
|
1142
|
+
subject_type?: string;
|
|
1143
|
+
token_endpoint_auth_method?: string;
|
|
1144
|
+
token_endpoint_auth_signing_alg?: string;
|
|
1145
|
+
tos_uri?: string;
|
|
1146
|
+
userinfo_signed_response_alg?: string;
|
|
1147
|
+
}
|
|
1148
|
+
/** */
|
|
1149
|
+
export interface ApiMezonOauthClientList {
|
|
1150
|
+
list_mezon_oauth_client?: Array<ApiMezonOauthClient>;
|
|
1151
|
+
}
|
|
1152
|
+
/** */
|
|
1153
|
+
export interface ApiMessageRef {
|
|
1154
|
+
message_id?: string;
|
|
1155
|
+
message_ref_id?: string;
|
|
1156
|
+
ref_type?: number;
|
|
1157
|
+
message_sender_id?: string;
|
|
1158
|
+
message_sender_username?: string;
|
|
1159
|
+
mesages_sender_avatar?: string;
|
|
1160
|
+
message_sender_clan_nick?: string;
|
|
1161
|
+
message_sender_display_name?: string;
|
|
1162
|
+
content?: string;
|
|
1163
|
+
has_attachment: boolean;
|
|
1164
|
+
/** The channel this message belongs to. */
|
|
1165
|
+
channel_id?: string;
|
|
1166
|
+
mode?: number;
|
|
1167
|
+
channel_label?: string;
|
|
1168
|
+
}
|
|
1169
|
+
/** A notification in the server. */
|
|
1170
|
+
export interface ApiNotification {
|
|
1171
|
+
avatar_url?: string;
|
|
1172
|
+
channel_id?: string;
|
|
1173
|
+
channel_type?: number;
|
|
1174
|
+
clan_id?: string;
|
|
1175
|
+
code?: number;
|
|
1176
|
+
content?: tsproto.DirectFcmProto;
|
|
1177
|
+
create_time_seconds?: number;
|
|
1178
|
+
id?: string;
|
|
1179
|
+
persistent?: boolean;
|
|
1180
|
+
sender_id?: string;
|
|
1181
|
+
subject?: string;
|
|
1182
|
+
category?: number;
|
|
1183
|
+
topic_id?: string;
|
|
1184
|
+
channel?: ApiChannelDescription;
|
|
1185
|
+
}
|
|
1186
|
+
/** */
|
|
1187
|
+
export interface ApiNotificationChannel {
|
|
1188
|
+
channel_id?: string;
|
|
1189
|
+
}
|
|
1190
|
+
/** */
|
|
1191
|
+
export interface ApiNotificationChannelCategorySetting {
|
|
1192
|
+
action?: number;
|
|
1193
|
+
channel_category_label?: string;
|
|
1194
|
+
channel_category_title?: string;
|
|
1195
|
+
id?: string;
|
|
1196
|
+
notification_setting_type?: number;
|
|
1197
|
+
}
|
|
1198
|
+
/** */
|
|
1199
|
+
export interface ApiNotificationChannelCategorySettingList {
|
|
1200
|
+
notification_channel_category_settings_list?: Array<ApiNotificationChannelCategorySetting>;
|
|
1201
|
+
}
|
|
1202
|
+
/** A collection of zero or more notifications. */
|
|
1203
|
+
export interface ApiNotificationList {
|
|
1204
|
+
cacheable_cursor?: string;
|
|
1205
|
+
notifications?: Array<ApiNotification>;
|
|
1206
|
+
}
|
|
1207
|
+
/** */
|
|
1208
|
+
export interface ApiNotificationSetting {
|
|
1209
|
+
id?: string;
|
|
1210
|
+
notification_setting_type?: number;
|
|
1211
|
+
}
|
|
1212
|
+
/** */
|
|
1213
|
+
export interface ApiNotificationUserChannel {
|
|
1214
|
+
active?: number;
|
|
1215
|
+
id?: string;
|
|
1216
|
+
notification_setting_type?: number;
|
|
1217
|
+
time_mute?: string;
|
|
1218
|
+
channel_id?: string;
|
|
1219
|
+
}
|
|
1220
|
+
/** */
|
|
1221
|
+
export interface ApiStreamHttpCallbackRequest {
|
|
1222
|
+
action?: number;
|
|
1223
|
+
app?: string;
|
|
1224
|
+
client_id?: string;
|
|
1225
|
+
ip?: string;
|
|
1226
|
+
page_url?: string;
|
|
1227
|
+
param?: string;
|
|
1228
|
+
server_id?: string;
|
|
1229
|
+
service_id?: string;
|
|
1230
|
+
stream?: string;
|
|
1231
|
+
stream_id?: string;
|
|
1232
|
+
stream_url?: string;
|
|
1233
|
+
tc_url?: string;
|
|
1234
|
+
vhost?: string;
|
|
1235
|
+
}
|
|
1236
|
+
/** */
|
|
1237
|
+
export interface ApiStreamHttpCallbackResponse {
|
|
1238
|
+
code?: number;
|
|
1239
|
+
msg?: string;
|
|
1240
|
+
}
|
|
1241
|
+
/** */
|
|
1242
|
+
export interface ApiPermission {
|
|
1243
|
+
active?: number;
|
|
1244
|
+
description?: string;
|
|
1245
|
+
id?: string;
|
|
1246
|
+
level?: number;
|
|
1247
|
+
scope?: number;
|
|
1248
|
+
slug?: string;
|
|
1249
|
+
title?: string;
|
|
1250
|
+
}
|
|
1251
|
+
/** A list of permission description, usually a result of a list operation. */
|
|
1252
|
+
export interface ApiPermissionList {
|
|
1253
|
+
max_level_permission?: number;
|
|
1254
|
+
permissions?: Array<ApiPermission>;
|
|
1255
|
+
}
|
|
1256
|
+
/** */
|
|
1257
|
+
export interface ApiPermissionRoleChannel {
|
|
1258
|
+
active?: boolean;
|
|
1259
|
+
permission_id?: string;
|
|
1260
|
+
}
|
|
1261
|
+
/** */
|
|
1262
|
+
export interface ApiPermissionRoleChannelListEventResponse {
|
|
1263
|
+
channel_id?: string;
|
|
1264
|
+
permission_role_channel?: Array<ApiPermissionRoleChannel>;
|
|
1265
|
+
role_id?: string;
|
|
1266
|
+
user_id?: string;
|
|
1267
|
+
}
|
|
1268
|
+
/** */
|
|
1269
|
+
export interface ApiPermissionUpdate {
|
|
1270
|
+
permission_id?: string;
|
|
1271
|
+
slug?: string;
|
|
1272
|
+
type?: number;
|
|
1273
|
+
}
|
|
1274
|
+
/** */
|
|
1275
|
+
export interface ApiPinMessage {
|
|
1276
|
+
avatar?: string;
|
|
1277
|
+
channel_id?: string;
|
|
1278
|
+
content?: string;
|
|
1279
|
+
create_time_seconds?: number;
|
|
1280
|
+
id?: string;
|
|
1281
|
+
message_id?: string;
|
|
1282
|
+
sender_id?: string;
|
|
1283
|
+
username?: string;
|
|
1284
|
+
attachment?: Uint8Array;
|
|
1285
|
+
}
|
|
1286
|
+
/** */
|
|
1287
|
+
export interface ApiPinMessageRequest {
|
|
1288
|
+
channel_id?: string;
|
|
1289
|
+
clan_id?: string;
|
|
1290
|
+
message_id?: string;
|
|
1291
|
+
}
|
|
1292
|
+
/** */
|
|
1293
|
+
export interface ApiPinMessagesList {
|
|
1294
|
+
pin_messages_list?: Array<ApiPinMessage>;
|
|
1295
|
+
}
|
|
1296
|
+
/** */
|
|
1297
|
+
export interface ApiPubKey {
|
|
1298
|
+
encr: Uint8Array;
|
|
1299
|
+
sign: Uint8Array;
|
|
1300
|
+
}
|
|
1301
|
+
/** */
|
|
1302
|
+
export interface ApiPushPubKeyRequest {
|
|
1303
|
+
PK?: ApiPubKey;
|
|
1304
|
+
}
|
|
1305
|
+
/** */
|
|
1306
|
+
export interface ApiRegistFcmDeviceTokenResponse {
|
|
1307
|
+
device_id?: string;
|
|
1308
|
+
platform?: string;
|
|
1309
|
+
token?: string;
|
|
1310
|
+
}
|
|
1311
|
+
/** */
|
|
1312
|
+
export interface ApiRegisterStreamingChannelRequest {
|
|
1313
|
+
channel_id?: string;
|
|
1314
|
+
clan_id?: string;
|
|
1315
|
+
}
|
|
1316
|
+
/** */
|
|
1317
|
+
export interface ApiRegisterStreamingChannelResponse {
|
|
1318
|
+
channel_id?: string;
|
|
1319
|
+
clan_id?: string;
|
|
1320
|
+
streaming_url?: string;
|
|
1321
|
+
}
|
|
1322
|
+
/** Storage objects to get. */
|
|
1323
|
+
export interface ApiReadStorageObjectId {
|
|
1324
|
+
collection?: string;
|
|
1325
|
+
key?: string;
|
|
1326
|
+
user_id?: string;
|
|
1327
|
+
}
|
|
1328
|
+
/** Batch get storage objects. */
|
|
1329
|
+
export interface ApiReadStorageObjectsRequest {
|
|
1330
|
+
object_ids?: Array<ApiReadStorageObjectId>;
|
|
1331
|
+
}
|
|
1332
|
+
/** */
|
|
1333
|
+
export interface ApiRegistrationEmailRequest {
|
|
1334
|
+
avatar_url?: string;
|
|
1335
|
+
display_name?: string;
|
|
1336
|
+
dob?: string;
|
|
1337
|
+
email?: string;
|
|
1338
|
+
password?: string;
|
|
1339
|
+
old_password?: string;
|
|
1340
|
+
username?: string;
|
|
1341
|
+
vars?: Record<string, string>;
|
|
1342
|
+
}
|
|
1343
|
+
/** */
|
|
1344
|
+
export interface ApiUpdateRoleOrderRequest {
|
|
1345
|
+
clan_id?: string;
|
|
1346
|
+
roles?: Array<ApiRoleOrderUpdate>;
|
|
1347
|
+
}
|
|
1348
|
+
/** */
|
|
1349
|
+
export interface ApiRoleOrderUpdate {
|
|
1350
|
+
order?: number;
|
|
1351
|
+
role_id?: string;
|
|
1352
|
+
}
|
|
1353
|
+
/** */
|
|
1354
|
+
export interface ApiRole {
|
|
1355
|
+
active?: number;
|
|
1356
|
+
allow_mention?: number;
|
|
1357
|
+
channel_ids?: Array<string>;
|
|
1358
|
+
clan_id?: string;
|
|
1359
|
+
color?: string;
|
|
1360
|
+
creator_id?: string;
|
|
1361
|
+
description?: string;
|
|
1362
|
+
display_online?: number;
|
|
1363
|
+
id?: string;
|
|
1364
|
+
max_level_permission?: number;
|
|
1365
|
+
permission_list?: ApiPermissionList;
|
|
1366
|
+
role_channel_active?: number;
|
|
1367
|
+
role_icon?: string;
|
|
1368
|
+
role_user_list?: ApiRoleUserList;
|
|
1369
|
+
slug?: string;
|
|
1370
|
+
title?: string;
|
|
1371
|
+
order_role?: number;
|
|
1372
|
+
}
|
|
1373
|
+
/** */
|
|
1374
|
+
export interface ApiIsBannedResponse {
|
|
1375
|
+
is_banned?: boolean;
|
|
1376
|
+
expired_ban_time?: number;
|
|
1377
|
+
}
|
|
1378
|
+
/** A list of role description, usually a result of a list operation. */
|
|
1379
|
+
export interface ApiRoleList {
|
|
1380
|
+
max_level_permission?: number;
|
|
1381
|
+
roles?: Array<ApiRole>;
|
|
1382
|
+
}
|
|
1383
|
+
/** */
|
|
1384
|
+
export interface ApiRoleListEventResponse {
|
|
1385
|
+
clan_id?: string;
|
|
1386
|
+
cursor?: string;
|
|
1387
|
+
limit?: number;
|
|
1388
|
+
roles?: ApiRoleList;
|
|
1389
|
+
state?: number;
|
|
1390
|
+
}
|
|
1391
|
+
/** */
|
|
1392
|
+
export interface ApiRoleUserList {
|
|
1393
|
+
cursor?: string;
|
|
1394
|
+
role_users?: Array<RoleUserListRoleUser>;
|
|
1395
|
+
}
|
|
1396
|
+
/** Execute an Lua function on the server. */
|
|
1397
|
+
export interface ApiRpc {
|
|
1398
|
+
http_key?: string;
|
|
1399
|
+
id?: string;
|
|
1400
|
+
payload?: string;
|
|
1401
|
+
}
|
|
1402
|
+
/** */
|
|
1403
|
+
export interface ApiSdTopic {
|
|
1404
|
+
channel_id?: string;
|
|
1405
|
+
clan_id?: string;
|
|
1406
|
+
create_time_seconds?: number;
|
|
1407
|
+
creator_id?: string;
|
|
1408
|
+
id?: string;
|
|
1409
|
+
last_sent_message?: ApiChannelMessageHeader;
|
|
1410
|
+
message_id?: string;
|
|
1411
|
+
status?: number;
|
|
1412
|
+
update_time?: string;
|
|
1413
|
+
message?: ChannelMessage;
|
|
1414
|
+
}
|
|
1415
|
+
/** */
|
|
1416
|
+
export interface ApiSdTopicList {
|
|
1417
|
+
count?: number;
|
|
1418
|
+
topics?: Array<ApiSdTopic>;
|
|
1419
|
+
}
|
|
1420
|
+
/** */
|
|
1421
|
+
export interface ApiSdTopicRequest {
|
|
1422
|
+
channel_id?: string;
|
|
1423
|
+
clan_id?: string;
|
|
1424
|
+
message_id?: string;
|
|
1425
|
+
}
|
|
1426
|
+
/** */
|
|
1427
|
+
export interface ApiSearchMessageDocument {
|
|
1428
|
+
attachments?: string;
|
|
1429
|
+
avatar_url?: string;
|
|
1430
|
+
channel_id?: string;
|
|
1431
|
+
channel_label?: string;
|
|
1432
|
+
channel_type?: number;
|
|
1433
|
+
clan_id?: string;
|
|
1434
|
+
clan_name?: string;
|
|
1435
|
+
content?: string;
|
|
1436
|
+
create_time_seconds?: number;
|
|
1437
|
+
display_name?: string;
|
|
1438
|
+
mentions?: string;
|
|
1439
|
+
message_id?: string;
|
|
1440
|
+
reactions?: string;
|
|
1441
|
+
references?: string;
|
|
1442
|
+
sender_id?: string;
|
|
1443
|
+
update_time?: string;
|
|
1444
|
+
username?: string;
|
|
1445
|
+
}
|
|
1446
|
+
/** */
|
|
1447
|
+
export interface ApiSearchMessageRequest {
|
|
1448
|
+
filters?: Array<ApiFilterParam>;
|
|
1449
|
+
from?: number;
|
|
1450
|
+
size?: number;
|
|
1451
|
+
sorts?: Array<ApiSortParam>;
|
|
1452
|
+
}
|
|
1453
|
+
/** */
|
|
1454
|
+
export interface ApiSearchMessageResponse {
|
|
1455
|
+
messages?: Array<ApiSearchMessageDocument>;
|
|
1456
|
+
total?: number;
|
|
1457
|
+
}
|
|
1458
|
+
/** A user's session used to authenticate messages. */
|
|
1459
|
+
export interface ApiSession {
|
|
1460
|
+
created?: boolean;
|
|
1461
|
+
refresh_token?: string;
|
|
1462
|
+
token?: string;
|
|
1463
|
+
is_remember?: boolean;
|
|
1464
|
+
api_url?: string;
|
|
1465
|
+
ws_url?: string;
|
|
1466
|
+
id_token?: string;
|
|
1467
|
+
}
|
|
1468
|
+
/** Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user. */
|
|
1469
|
+
export interface ApiSessionLogoutRequest {
|
|
1470
|
+
refresh_token?: string;
|
|
1471
|
+
token?: string;
|
|
1472
|
+
device_id?: string;
|
|
1473
|
+
platform?: string;
|
|
1474
|
+
}
|
|
1475
|
+
/** Authenticate against the server with a refresh token. */
|
|
1476
|
+
export interface ApiSessionRefreshRequest {
|
|
1477
|
+
is_remember?: boolean;
|
|
1478
|
+
token?: string;
|
|
1479
|
+
vars?: Record<string, string>;
|
|
1480
|
+
}
|
|
1481
|
+
/** */
|
|
1482
|
+
export interface ApiSetDefaultNotificationRequest {
|
|
1483
|
+
category_id?: string;
|
|
1484
|
+
clan_id?: string;
|
|
1485
|
+
notification_type?: number;
|
|
1486
|
+
}
|
|
1487
|
+
/** */
|
|
1488
|
+
export interface ApiSetMuteRequest {
|
|
1489
|
+
active?: number;
|
|
1490
|
+
id?: string;
|
|
1491
|
+
mute_time?: number;
|
|
1492
|
+
clan_id?: string;
|
|
1493
|
+
}
|
|
1494
|
+
/** */
|
|
1495
|
+
export interface ApiSetNotificationRequest {
|
|
1496
|
+
channel_category_id?: string;
|
|
1497
|
+
notification_type?: number;
|
|
1498
|
+
clan_id?: string;
|
|
1499
|
+
}
|
|
1500
|
+
/** */
|
|
1501
|
+
export interface ApiSortParam {
|
|
1502
|
+
field_name?: string;
|
|
1503
|
+
order?: string;
|
|
1504
|
+
}
|
|
1505
|
+
/** */
|
|
1506
|
+
export interface ApiStickerListedResponse {
|
|
1507
|
+
stickers?: Array<ApiClanSticker>;
|
|
1508
|
+
}
|
|
1509
|
+
/** */
|
|
1510
|
+
export interface ApiStreamingChannelResponse {
|
|
1511
|
+
channel_id?: string;
|
|
1512
|
+
clan_id?: string;
|
|
1513
|
+
is_streaming?: boolean;
|
|
1514
|
+
streaming_url?: string;
|
|
1515
|
+
}
|
|
1516
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
1517
|
+
export interface ApiStreamingChannelUser {
|
|
1518
|
+
channel_id?: string;
|
|
1519
|
+
id?: string;
|
|
1520
|
+
participant?: string;
|
|
1521
|
+
user_id?: string;
|
|
1522
|
+
}
|
|
1523
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
1524
|
+
export interface ApiStreamingChannelUserList {
|
|
1525
|
+
streaming_channel_users?: Array<ApiStreamingChannelUser>;
|
|
1526
|
+
}
|
|
1527
|
+
/** System message details. */
|
|
1528
|
+
export interface ApiSystemMessage {
|
|
1529
|
+
boost_message?: string;
|
|
1530
|
+
channel_id?: string;
|
|
1531
|
+
clan_id?: string;
|
|
1532
|
+
hide_audit_log?: boolean;
|
|
1533
|
+
id?: string;
|
|
1534
|
+
setup_tips?: string;
|
|
1535
|
+
welcome_random?: string;
|
|
1536
|
+
welcome_sticker?: string;
|
|
1537
|
+
}
|
|
1538
|
+
/** Request to get system message by clan and channel IDs. */
|
|
1539
|
+
export interface ApiSystemMessageRequest {
|
|
1540
|
+
boost_message?: string;
|
|
1541
|
+
channel_id?: string;
|
|
1542
|
+
clan_id?: string;
|
|
1543
|
+
hide_audit_log?: boolean;
|
|
1544
|
+
setup_tips?: string;
|
|
1545
|
+
welcome_random?: string;
|
|
1546
|
+
welcome_sticker?: string;
|
|
1547
|
+
}
|
|
1548
|
+
/** List of system message. */
|
|
1549
|
+
export interface ApiSystemMessagesList {
|
|
1550
|
+
system_messages_list?: Array<ApiSystemMessage>;
|
|
1551
|
+
}
|
|
1552
|
+
/** */
|
|
1553
|
+
export interface ApiTokenSentEvent {
|
|
1554
|
+
amount?: number;
|
|
1555
|
+
note?: string;
|
|
1556
|
+
receiver_id?: string;
|
|
1557
|
+
sender_id?: string;
|
|
1558
|
+
sender_name?: string;
|
|
1559
|
+
extra_attribute?: string;
|
|
1560
|
+
transaction_id?: string;
|
|
1561
|
+
}
|
|
1562
|
+
/** */
|
|
1563
|
+
export interface ApiTransactionDetail {
|
|
1564
|
+
amount?: number;
|
|
1565
|
+
create_time_seconds?: number;
|
|
1566
|
+
update_time?: string;
|
|
1567
|
+
receiver_id?: string;
|
|
1568
|
+
receiver_username?: string;
|
|
1569
|
+
sender_id?: string;
|
|
1570
|
+
sender_username?: string;
|
|
1571
|
+
metadata?: string;
|
|
1572
|
+
trans_id?: string;
|
|
1573
|
+
}
|
|
1574
|
+
/** Update a user's account details. */
|
|
1575
|
+
export interface ApiUpdateAccountRequest {
|
|
1576
|
+
about_me?: string;
|
|
1577
|
+
avatar_url?: string;
|
|
1578
|
+
display_name?: string;
|
|
1579
|
+
dob_seconds?: number;
|
|
1580
|
+
email?: string;
|
|
1581
|
+
encrypt_private_key?: string;
|
|
1582
|
+
lang_tag?: string;
|
|
1583
|
+
location?: string;
|
|
1584
|
+
logo?: string;
|
|
1585
|
+
splash_screen?: string;
|
|
1586
|
+
timezone?: string;
|
|
1587
|
+
}
|
|
1588
|
+
/** */
|
|
1589
|
+
export interface ApiUpdateCategoryDescRequest {
|
|
1590
|
+
category_id?: string;
|
|
1591
|
+
category_name?: string;
|
|
1592
|
+
clan_id: string;
|
|
1593
|
+
}
|
|
1594
|
+
/** */
|
|
1595
|
+
export interface ApiUpdateCategoryOrderRequest {
|
|
1596
|
+
categories?: Array<ApiCategoryOrderUpdate>;
|
|
1597
|
+
clan_id?: string;
|
|
1598
|
+
}
|
|
1599
|
+
/** */
|
|
1600
|
+
export interface ApiUpdateRoleChannelRequest {
|
|
1601
|
+
channel_id: string;
|
|
1602
|
+
max_permission_id: string;
|
|
1603
|
+
permission_update?: Array<ApiPermissionUpdate>;
|
|
1604
|
+
role_id?: string;
|
|
1605
|
+
role_label?: string;
|
|
1606
|
+
user_id?: string;
|
|
1607
|
+
}
|
|
1608
|
+
/** Fetch a batch of zero or more users from the server. */
|
|
1609
|
+
export interface ApiUpdateUsersRequest {
|
|
1610
|
+
avatar_url?: string;
|
|
1611
|
+
display_name?: string;
|
|
1612
|
+
}
|
|
1613
|
+
/** */
|
|
1614
|
+
export interface ApiUploadAttachment {
|
|
1615
|
+
filename?: string;
|
|
1616
|
+
url?: string;
|
|
1617
|
+
}
|
|
1618
|
+
/** */
|
|
1619
|
+
export interface ApiUploadAttachmentRequest {
|
|
1620
|
+
filename?: string;
|
|
1621
|
+
filetype?: string;
|
|
1622
|
+
height?: number;
|
|
1623
|
+
size?: number;
|
|
1624
|
+
width?: number;
|
|
1625
|
+
}
|
|
1626
|
+
/** A user in the server. */
|
|
1627
|
+
export interface ApiUser {
|
|
1628
|
+
about_me?: string;
|
|
1629
|
+
avatar_url?: string;
|
|
1630
|
+
dob_seconds?: number;
|
|
1631
|
+
create_time_seconds?: number;
|
|
1632
|
+
display_name?: string;
|
|
1633
|
+
edge_count?: number;
|
|
1634
|
+
id?: string;
|
|
1635
|
+
is_mobile?: boolean;
|
|
1636
|
+
join_time_seconds?: number;
|
|
1637
|
+
lang_tag?: string;
|
|
1638
|
+
location?: string;
|
|
1639
|
+
user_status?: string;
|
|
1640
|
+
status?: string;
|
|
1641
|
+
online?: boolean;
|
|
1642
|
+
timezone?: string;
|
|
1643
|
+
update_time?: string;
|
|
1644
|
+
username?: string;
|
|
1645
|
+
mezon_id?: string;
|
|
1646
|
+
list_nick_names?: Array<string>;
|
|
1647
|
+
phone_number?: string;
|
|
1648
|
+
}
|
|
1649
|
+
/** */
|
|
1650
|
+
export interface ApiUserActivity {
|
|
1651
|
+
activity_description?: string;
|
|
1652
|
+
activity_name?: string;
|
|
1653
|
+
activity_type?: number;
|
|
1654
|
+
application_id?: string;
|
|
1655
|
+
end_time_seconds?: number;
|
|
1656
|
+
start_time_seconds?: number;
|
|
1657
|
+
status?: number;
|
|
1658
|
+
user_id?: string;
|
|
1659
|
+
}
|
|
1660
|
+
/** */
|
|
1661
|
+
export interface ApiQuickMenuAccess {
|
|
1662
|
+
action_msg?: string;
|
|
1663
|
+
background?: string;
|
|
1664
|
+
bot_id?: string;
|
|
1665
|
+
channel_id?: string;
|
|
1666
|
+
clan_id?: string;
|
|
1667
|
+
id?: string;
|
|
1668
|
+
menu_name?: string;
|
|
1669
|
+
menu_type?: number;
|
|
1670
|
+
}
|
|
1671
|
+
/** */
|
|
1672
|
+
export interface ApiQuickMenuAccessList {
|
|
1673
|
+
list_menus?: Array<ApiQuickMenuAccess>;
|
|
1674
|
+
}
|
|
1675
|
+
/** */
|
|
1676
|
+
export interface ApiQuickMenuAccessRequest {
|
|
1677
|
+
action_msg?: string;
|
|
1678
|
+
background?: string;
|
|
1679
|
+
bot_id?: string;
|
|
1680
|
+
channel_id?: string;
|
|
1681
|
+
clan_id?: string;
|
|
1682
|
+
id?: string;
|
|
1683
|
+
menu_name?: string;
|
|
1684
|
+
menu_type?: number;
|
|
1685
|
+
}
|
|
1686
|
+
/** */
|
|
1687
|
+
export interface ApiUserPermissionInChannelListResponse {
|
|
1688
|
+
channel_id?: string;
|
|
1689
|
+
clan_id?: string;
|
|
1690
|
+
permissions?: ApiPermissionList;
|
|
1691
|
+
}
|
|
1692
|
+
/** */
|
|
1693
|
+
export interface ApiUserStatus {
|
|
1694
|
+
status?: string;
|
|
1695
|
+
user_id?: string;
|
|
1696
|
+
}
|
|
1697
|
+
/** */
|
|
1698
|
+
export interface ApiUserStatusUpdate {
|
|
1699
|
+
minutes?: number;
|
|
1700
|
+
status?: string;
|
|
1701
|
+
until_turn_on?: boolean;
|
|
1702
|
+
}
|
|
1703
|
+
/** A collection of zero or more users. */
|
|
1704
|
+
export interface ApiUsers {
|
|
1705
|
+
users?: Array<ApiUser>;
|
|
1706
|
+
}
|
|
1707
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
1708
|
+
export interface ApiVoiceChannelUser {
|
|
1709
|
+
id?: string;
|
|
1710
|
+
channel_id?: string;
|
|
1711
|
+
participant?: string;
|
|
1712
|
+
user_ids?: Array<string>;
|
|
1713
|
+
}
|
|
1714
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
1715
|
+
export interface ApiVoiceChannelUserList {
|
|
1716
|
+
voice_channel_users?: Array<ApiVoiceChannelUser>;
|
|
1717
|
+
}
|
|
1718
|
+
/** */
|
|
1719
|
+
export interface ApiWebhook {
|
|
1720
|
+
active?: number;
|
|
1721
|
+
avatar?: string;
|
|
1722
|
+
channel_id?: string;
|
|
1723
|
+
create_time_seconds?: number;
|
|
1724
|
+
creator_id?: string;
|
|
1725
|
+
id?: string;
|
|
1726
|
+
status?: number;
|
|
1727
|
+
update_time?: string;
|
|
1728
|
+
url?: string;
|
|
1729
|
+
webhook_name?: string;
|
|
1730
|
+
clan_id?: string;
|
|
1731
|
+
}
|
|
1732
|
+
/** */
|
|
1733
|
+
export interface ApiWebhookCreateRequest {
|
|
1734
|
+
avatar?: string;
|
|
1735
|
+
channel_id?: string;
|
|
1736
|
+
clan_id?: string;
|
|
1737
|
+
webhook_name?: string;
|
|
1738
|
+
}
|
|
1739
|
+
/** */
|
|
1740
|
+
export interface ApiWebhookGenerateResponse {
|
|
1741
|
+
avatar?: string;
|
|
1742
|
+
channel_id?: string;
|
|
1743
|
+
hook_name?: string;
|
|
1744
|
+
url?: string;
|
|
1745
|
+
}
|
|
1746
|
+
/** */
|
|
1747
|
+
export interface ApiWebhookListResponse {
|
|
1748
|
+
webhooks?: Array<ApiWebhook>;
|
|
1749
|
+
}
|
|
1750
|
+
/** A collection of zero or more notifications. */
|
|
1751
|
+
export interface ApiEmojiRecentList {
|
|
1752
|
+
emoji_recents?: Array<ApiEmojiRecent>;
|
|
1753
|
+
}
|
|
1754
|
+
/** Represents an event to be passed through the server to registered event handlers. */
|
|
1755
|
+
export interface MezonapiEvent {
|
|
1756
|
+
external?: boolean;
|
|
1757
|
+
name?: string;
|
|
1758
|
+
properties?: Record<string, string>;
|
|
1759
|
+
timestamp?: string;
|
|
1760
|
+
}
|
|
1761
|
+
/** */
|
|
1762
|
+
export interface MezonapiListAuditLog {
|
|
1763
|
+
date_log?: string;
|
|
1764
|
+
logs?: Array<ApiAuditLog>;
|
|
1765
|
+
total_count?: number;
|
|
1766
|
+
}
|
|
1767
|
+
/** */
|
|
1768
|
+
export interface ProtobufAny {
|
|
1769
|
+
type_url?: string;
|
|
1770
|
+
value?: string;
|
|
1771
|
+
}
|
|
1772
|
+
/** */
|
|
1773
|
+
export interface RpcStatus {
|
|
1774
|
+
code?: number;
|
|
1775
|
+
details?: Array<ProtobufAny>;
|
|
1776
|
+
message?: string;
|
|
1777
|
+
}
|
|
1778
|
+
/** */
|
|
1779
|
+
export interface ApiListOnboardingResponse {
|
|
1780
|
+
list_onboarding?: Array<ApiOnboardingItem>;
|
|
1781
|
+
}
|
|
1782
|
+
/** */
|
|
1783
|
+
export interface OnboardingAnswer {
|
|
1784
|
+
emoji?: string;
|
|
1785
|
+
description?: string;
|
|
1786
|
+
title?: string;
|
|
1787
|
+
image_url?: string;
|
|
1788
|
+
}
|
|
1789
|
+
/** */
|
|
1790
|
+
export interface ApiOnboardingContent {
|
|
1791
|
+
answers?: Array<OnboardingAnswer>;
|
|
1792
|
+
channel_id?: string;
|
|
1793
|
+
content?: string;
|
|
1794
|
+
guide_type?: number;
|
|
1795
|
+
task_type?: number;
|
|
1796
|
+
title?: string;
|
|
1797
|
+
image_url?: string;
|
|
1798
|
+
}
|
|
1799
|
+
/** */
|
|
1800
|
+
export interface MezonUpdateOnboardingBody {
|
|
1801
|
+
answers?: Array<OnboardingAnswer>;
|
|
1802
|
+
channel_id?: string;
|
|
1803
|
+
clan_id?: string;
|
|
1804
|
+
content?: string;
|
|
1805
|
+
task_type?: number;
|
|
1806
|
+
title?: string;
|
|
1807
|
+
image_url?: string;
|
|
1808
|
+
}
|
|
1809
|
+
/** */
|
|
1810
|
+
export interface ApiCreateOnboardingRequest {
|
|
1811
|
+
clan_id?: string;
|
|
1812
|
+
contents?: Array<ApiOnboardingContent>;
|
|
1813
|
+
}
|
|
1814
|
+
/** */
|
|
1815
|
+
export interface ApiOnboardingItem {
|
|
1816
|
+
answers?: Array<OnboardingAnswer>;
|
|
1817
|
+
channel_id?: string;
|
|
1818
|
+
clan_id?: string;
|
|
1819
|
+
content?: string;
|
|
1820
|
+
create_time_seconds?: number;
|
|
1821
|
+
guide_type?: number;
|
|
1822
|
+
id?: string;
|
|
1823
|
+
task_type?: number;
|
|
1824
|
+
title?: string;
|
|
1825
|
+
update_time?: string;
|
|
1826
|
+
image_url?: string;
|
|
1827
|
+
}
|
|
1828
|
+
/** */
|
|
1829
|
+
export interface MezonUpdateClanWebhookByIdBody {
|
|
1830
|
+
avatar?: string;
|
|
1831
|
+
clan_id?: string;
|
|
1832
|
+
reset_token?: boolean;
|
|
1833
|
+
webhook_name?: string;
|
|
1834
|
+
}
|
|
1835
|
+
/** */
|
|
1836
|
+
export interface ApiClanWebhook {
|
|
1837
|
+
active?: number;
|
|
1838
|
+
avatar?: string;
|
|
1839
|
+
clan_id?: string;
|
|
1840
|
+
create_time_seconds?: number;
|
|
1841
|
+
creator_id?: string;
|
|
1842
|
+
id?: string;
|
|
1843
|
+
update_time?: string;
|
|
1844
|
+
url?: string;
|
|
1845
|
+
webhook_name?: string;
|
|
1846
|
+
}
|
|
1847
|
+
/** */
|
|
1848
|
+
export interface ApiGenerateClanWebhookRequest {
|
|
1849
|
+
avatar?: string;
|
|
1850
|
+
clan_id?: string;
|
|
1851
|
+
webhook_name?: string;
|
|
1852
|
+
}
|
|
1853
|
+
/** */
|
|
1854
|
+
export interface ApiGenerateClanWebhookResponse {
|
|
1855
|
+
avatar?: string;
|
|
1856
|
+
clan_id?: string;
|
|
1857
|
+
url?: string;
|
|
1858
|
+
webhook_name?: string;
|
|
1859
|
+
}
|
|
1860
|
+
/** */
|
|
1861
|
+
export interface ApiListClanWebhookResponse {
|
|
1862
|
+
list_clan_webhooks?: Array<ApiClanWebhook>;
|
|
1863
|
+
}
|
|
1864
|
+
/** */
|
|
1865
|
+
export interface MezonUpdateOnboardingStepByClanIdBody {
|
|
1866
|
+
onboarding_step?: number;
|
|
1867
|
+
}
|
|
1868
|
+
/** */
|
|
1869
|
+
export interface ApiListOnboardingStepResponse {
|
|
1870
|
+
list_onboarding_step?: Array<ApiOnboardingSteps>;
|
|
1871
|
+
}
|
|
1872
|
+
/** */
|
|
1873
|
+
export interface ApiOnboardingSteps {
|
|
1874
|
+
clan_id?: string;
|
|
1875
|
+
id?: string;
|
|
1876
|
+
onboarding_step?: number;
|
|
1877
|
+
user_id?: string;
|
|
1878
|
+
}
|
|
1879
|
+
/** */
|
|
1880
|
+
export interface MezonapiCreateRoomChannelApps {
|
|
1881
|
+
channel_id?: string;
|
|
1882
|
+
room_name?: string;
|
|
1883
|
+
}
|
|
1884
|
+
/** */
|
|
1885
|
+
export interface ApiGenerateMeetTokenRequest {
|
|
1886
|
+
channel_id?: string;
|
|
1887
|
+
room_name?: string;
|
|
1888
|
+
}
|
|
1889
|
+
/** */
|
|
1890
|
+
export interface ApiGenerateMeetTokenResponse {
|
|
1891
|
+
token?: string;
|
|
1892
|
+
}
|
|
1893
|
+
/** */
|
|
1894
|
+
export interface ApiUnlockedItemRequest {
|
|
1895
|
+
item_id?: string;
|
|
1896
|
+
item_type?: number;
|
|
1897
|
+
}
|
|
1898
|
+
/** */
|
|
1899
|
+
export interface ApiUnlockedItemResponse {
|
|
1900
|
+
source?: string;
|
|
1901
|
+
}
|
|
1902
|
+
/** */
|
|
1903
|
+
export interface ApiMezonOauthClient {
|
|
1904
|
+
access_token_strategy?: string;
|
|
1905
|
+
allowed_cors_origins?: Array<string>;
|
|
1906
|
+
audience?: Array<string>;
|
|
1907
|
+
authorization_code_grant_access_token_lifespan?: string;
|
|
1908
|
+
authorization_code_grant_id_token_lifespan?: string;
|
|
1909
|
+
authorization_code_grant_refresh_token_lifespan?: string;
|
|
1910
|
+
backchannel_logout_session_required?: boolean;
|
|
1911
|
+
backchannel_logout_uri?: string;
|
|
1912
|
+
client_credentials_grant_access_token_lifespan?: string;
|
|
1913
|
+
client_id?: string;
|
|
1914
|
+
client_name?: string;
|
|
1915
|
+
client_secret?: string;
|
|
1916
|
+
client_secret_expires_at?: number;
|
|
1917
|
+
client_uri?: string;
|
|
1918
|
+
contacts?: Array<string>;
|
|
1919
|
+
frontchannel_logout_session_required?: boolean;
|
|
1920
|
+
frontchannel_logout_uri?: string;
|
|
1921
|
+
grant_types?: Array<string>;
|
|
1922
|
+
implicit_grant_access_token_lifespan?: string;
|
|
1923
|
+
implicit_grant_id_token_lifespan?: string;
|
|
1924
|
+
jwks?: Array<string>;
|
|
1925
|
+
jwks_uri?: string;
|
|
1926
|
+
jwt_bearer_grant_access_token_lifespan?: string;
|
|
1927
|
+
logo_uri?: string;
|
|
1928
|
+
owner?: string;
|
|
1929
|
+
policy_uri?: string;
|
|
1930
|
+
post_logout_redirect_uris?: Array<string>;
|
|
1931
|
+
redirect_uris?: Array<string>;
|
|
1932
|
+
refresh_token_grant_access_token_lifespan?: string;
|
|
1933
|
+
refresh_token_grant_id_token_lifespan?: string;
|
|
1934
|
+
refresh_token_grant_refresh_token_lifespan?: string;
|
|
1935
|
+
registration_access_token?: string;
|
|
1936
|
+
registration_client_uri?: string;
|
|
1937
|
+
request_object_signing_alg?: string;
|
|
1938
|
+
request_uris?: Array<string>;
|
|
1939
|
+
response_types?: Array<string>;
|
|
1940
|
+
scope?: string;
|
|
1941
|
+
sector_identifier_uri?: string;
|
|
1942
|
+
skip_consent?: boolean;
|
|
1943
|
+
skip_logout_consent?: boolean;
|
|
1944
|
+
subject_type?: string;
|
|
1945
|
+
token_endpoint_auth_method?: string;
|
|
1946
|
+
token_endpoint_auth_signing_alg?: string;
|
|
1947
|
+
tos_uri?: string;
|
|
1948
|
+
userinfo_signed_response_alg?: string;
|
|
1949
|
+
}
|
|
1950
|
+
/** */
|
|
1951
|
+
export interface ApiCreateHashChannelAppsResponse {
|
|
1952
|
+
web_app_data?: string;
|
|
1953
|
+
}
|
|
1954
|
+
/** */
|
|
1955
|
+
export interface ApiUserEventRequest {
|
|
1956
|
+
clan_id?: string;
|
|
1957
|
+
event_id?: string;
|
|
1958
|
+
}
|
|
1959
|
+
/** */
|
|
1960
|
+
export interface ApiClanDiscover {
|
|
1961
|
+
about?: string;
|
|
1962
|
+
banner?: string;
|
|
1963
|
+
clan_id?: string;
|
|
1964
|
+
clan_logo?: string;
|
|
1965
|
+
clan_name?: string;
|
|
1966
|
+
description?: string;
|
|
1967
|
+
invite_id?: string;
|
|
1968
|
+
online_members?: number;
|
|
1969
|
+
total_members?: number;
|
|
1970
|
+
verified?: boolean;
|
|
1971
|
+
short_url?: string;
|
|
1972
|
+
create_time_seconds?: number;
|
|
1973
|
+
}
|
|
1974
|
+
/** */
|
|
1975
|
+
export interface ApiListForSaleItemsRequest {
|
|
1976
|
+
page?: number;
|
|
1977
|
+
}
|
|
1978
|
+
/** */
|
|
1979
|
+
export interface ApiForSaleItem {
|
|
1980
|
+
preview_url?: string;
|
|
1981
|
+
type?: number;
|
|
1982
|
+
}
|
|
1983
|
+
/** */
|
|
1984
|
+
export interface ApiForSaleItemList {
|
|
1985
|
+
for_sale_items?: Array<ApiForSaleItem>;
|
|
1986
|
+
}
|
|
1987
|
+
/** */
|
|
1988
|
+
export interface ApiListClanDiscover {
|
|
1989
|
+
clan_discover?: Array<ApiClanDiscover>;
|
|
1990
|
+
page?: number;
|
|
1991
|
+
page_count?: number;
|
|
1992
|
+
}
|
|
1993
|
+
/** */
|
|
1994
|
+
export interface ApiListClanUnreadMsgIndicatorResponse {
|
|
1995
|
+
has_unread_message?: boolean;
|
|
1996
|
+
}
|
|
1997
|
+
/** */
|
|
1998
|
+
export interface ApiClanDiscoverRequest {
|
|
1999
|
+
clan_id?: string;
|
|
2000
|
+
item_per_page?: number;
|
|
2001
|
+
page_number?: number;
|
|
2002
|
+
}
|
|
2003
|
+
/** */
|
|
2004
|
+
export interface ApiIsFollowerRequest {
|
|
2005
|
+
follow_id?: string;
|
|
2006
|
+
}
|
|
2007
|
+
/** */
|
|
2008
|
+
export interface ApiLinkAccountConfirmRequest {
|
|
2009
|
+
otp_code?: string;
|
|
2010
|
+
req_id?: string;
|
|
2011
|
+
status?: number;
|
|
2012
|
+
}
|
|
2013
|
+
/** */
|
|
2014
|
+
export interface ApiIsFollowerResponse {
|
|
2015
|
+
is_follower?: boolean;
|
|
2016
|
+
follow_id?: string;
|
|
2017
|
+
}
|
|
2018
|
+
/** */
|
|
2019
|
+
export interface ApiTransferOwnershipRequest {
|
|
2020
|
+
clan_id?: string;
|
|
2021
|
+
new_owner_id?: string;
|
|
2022
|
+
}
|
|
2023
|
+
export interface ApiDirectFcmProto {
|
|
2024
|
+
title: string;
|
|
2025
|
+
link: string;
|
|
2026
|
+
content: string;
|
|
2027
|
+
channel_id: string;
|
|
2028
|
+
sender_id: string;
|
|
2029
|
+
avatar: string;
|
|
2030
|
+
clan_id: string;
|
|
2031
|
+
attachment_link: string;
|
|
2032
|
+
display_name: string;
|
|
2033
|
+
create_time_seconds: number;
|
|
2034
|
+
update_time_seconds: number;
|
|
2035
|
+
username: string;
|
|
2036
|
+
mention_ids: string[];
|
|
2037
|
+
position_s: number[];
|
|
2038
|
+
position_e: number[];
|
|
2039
|
+
attachment_type: string;
|
|
2040
|
+
has_more_attachment: boolean;
|
|
2041
|
+
is_mention_role: boolean[];
|
|
2042
|
+
message_id: string;
|
|
2043
|
+
}
|
|
2044
|
+
export declare class MezonApi {
|
|
2045
|
+
readonly serverKey: string;
|
|
2046
|
+
readonly timeoutMs: number;
|
|
2047
|
+
basePath: string;
|
|
2048
|
+
constructor(serverKey: string, timeoutMs: number, basePath: string);
|
|
2049
|
+
setBasePath(basePath: string): void;
|
|
2050
|
+
/** Delete the current user's account. */
|
|
2051
|
+
deleteAccount(bearerToken: string, options?: {}): Promise<any>;
|
|
2052
|
+
/** Fetch the current user's account. */
|
|
2053
|
+
getAccount(bearerToken: string, options?: {}): Promise<ApiAccount>;
|
|
2054
|
+
/** Update fields in the current user's account. */
|
|
2055
|
+
updateAccount(bearerToken: string, body: ApiUpdateAccountRequest, options?: {}): Promise<any>;
|
|
2056
|
+
checkLoginRequest(basicAuthUsername: string, basicAuthPassword: string, body: ApiConfirmLoginRequest, options?: {}): Promise<ApiSession>;
|
|
2057
|
+
/** */
|
|
2058
|
+
confirmLogin(bearerToken: string, basePath: string, body: ApiConfirmLoginRequest, options?: {}): Promise<any>;
|
|
2059
|
+
/** */
|
|
2060
|
+
createQRLogin(basicAuthUsername: string, basicAuthPassword: string, body: ApiLoginRequest, options?: {}): Promise<ApiLoginIDResponse>;
|
|
2061
|
+
/** Authenticate a user with an SMS against the server. */
|
|
2062
|
+
AuthenticateSMSOTPRequest(basicAuthUsername: string, basicAuthPassword: string, body: ApiAuthenticateSMSRequest, options?: {}): Promise<ApiLinkAccountConfirmRequest>;
|
|
2063
|
+
/** Authenticate a user with an email+password against the server. */
|
|
2064
|
+
AuthenticateEmailOTPRequest(basicAuthUsername: string, basicAuthPassword: string, body: ApiAuthenticateEmailRequest, options?: {}): Promise<ApiLinkAccountConfirmRequest>;
|
|
2065
|
+
/** Authenticate a user with an email+password against the server. */
|
|
2066
|
+
authenticateEmail(basicAuthUsername: string, basicAuthPassword: string, body: ApiAuthenticateEmailRequest, options?: {}): Promise<ApiSession>;
|
|
2067
|
+
/** Authenticate a user with Mezon against the server. */
|
|
2068
|
+
authenticateMezon(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountMezon, create?: boolean, username?: string, isRemember?: boolean, options?: {}): Promise<ApiSession>;
|
|
2069
|
+
/** Add an email+password to the social profiles on the current user's account. */
|
|
2070
|
+
linkEmail(bearerToken: string, body: ApiAccountEmail, options?: {}): Promise<ApiLinkAccountConfirmRequest>;
|
|
2071
|
+
/** Add a mezon ID to the social profiles on the current user's account. */
|
|
2072
|
+
linkSMS(bearerToken: string, body: ApiLinkAccountMezon, options?: {}): Promise<ApiLinkAccountConfirmRequest>;
|
|
2073
|
+
/** */
|
|
2074
|
+
confirmLinkMezonOTP(bearerToken: string, body: ApiLinkAccountConfirmRequest, options?: {}): Promise<ApiSession>;
|
|
2075
|
+
/** */
|
|
2076
|
+
confirmAuthenticateOTP(basicAuthUsername: string, basicAuthPassword: string, body: ApiLinkAccountConfirmRequest, options?: {}): Promise<ApiSession>;
|
|
2077
|
+
/** Authenticate a user with an email+password against the server. */
|
|
2078
|
+
registrationEmail(bearerToken: string, body: ApiRegistrationEmailRequest, options?: {}): Promise<ApiSession>;
|
|
2079
|
+
/** Refresh a user's session using a refresh token retrieved from a previous authentication request. */
|
|
2080
|
+
sessionRefresh(basicAuthUsername: string, basicAuthPassword: string, body: ApiSessionRefreshRequest, options?: {}): Promise<ApiSession>;
|
|
2081
|
+
/** Remove the email+password from the social profiles on the current user's account. */
|
|
2082
|
+
unlinkEmail(bearerToken: string, body: ApiAccountEmail, options?: {}): Promise<any>;
|
|
2083
|
+
/** List activity */
|
|
2084
|
+
listActivity(bearerToken: string, options?: {}): Promise<ApiListUserActivity>;
|
|
2085
|
+
/** Create user activity */
|
|
2086
|
+
createActiviy(bearerToken: string, body: ApiCreateActivityRequest, options?: {}): Promise<ApiUserActivity>;
|
|
2087
|
+
/** Add a new apps. */
|
|
2088
|
+
addApp(bearerToken: string, body: ApiAddAppRequest, options?: {}): Promise<ApiApp>;
|
|
2089
|
+
/** List (and optionally filter) accounts. */
|
|
2090
|
+
listApps(bearerToken: string, filter?: string, tombstones?: boolean, cursor?: string, options?: {}): Promise<ApiAppList>;
|
|
2091
|
+
/** Add an app to clan. */
|
|
2092
|
+
addAppToClan(bearerToken: string, appId: string, clanId: string, options?: {}): Promise<any>;
|
|
2093
|
+
/** Delete all information stored for an app. */
|
|
2094
|
+
deleteApp(bearerToken: string, id: string, options?: {}): Promise<any>;
|
|
2095
|
+
/** Get detailed app information. */
|
|
2096
|
+
getApp(bearerToken: string, id: string, options?: {}): Promise<ApiApp>;
|
|
2097
|
+
/** Update one or more fields on a app. */
|
|
2098
|
+
updateApp(bearerToken: string, id: string, body: MezonUpdateAppBody, options?: {}): Promise<ApiApp>;
|
|
2099
|
+
/** */
|
|
2100
|
+
listAuditLog(bearerToken: string, actionLog?: string, userId?: string, clanId?: string, dateLog?: string, options?: {}): Promise<MezonapiListAuditLog>;
|
|
2101
|
+
/** */
|
|
2102
|
+
updateCategoryOrder(bearerToken: string, body: ApiUpdateCategoryOrderRequest, options?: {}): Promise<any>;
|
|
2103
|
+
/** */
|
|
2104
|
+
listCategoryDescs(bearerToken: string, clanId: string, creatorId?: string, categoryName?: string, categoryId?: string, categoryOrder?: number, options?: {}): Promise<ApiCategoryDescList>;
|
|
2105
|
+
/** List channel apps. */
|
|
2106
|
+
listChannelApps(bearerToken: string, clanId?: string, options?: {}): Promise<ApiListChannelAppsResponse>;
|
|
2107
|
+
/** */
|
|
2108
|
+
getChannelCanvasList(bearerToken: string, channelId: string, clanId?: string, limit?: number, page?: number, options?: {}): Promise<ApiChannelCanvasListResponse>;
|
|
2109
|
+
/** */
|
|
2110
|
+
addChannelFavorite(bearerToken: string, body: ApiAddFavoriteChannelRequest, options?: {}): Promise<any>;
|
|
2111
|
+
/** */
|
|
2112
|
+
removeChannelFavorite(bearerToken: string, channelId: string, clanId?: string, options?: {}): Promise<any>;
|
|
2113
|
+
/** */
|
|
2114
|
+
getListFavoriteChannel(bearerToken: string, clanId: string, options?: {}): Promise<ApiListFavoriteChannelResponse>;
|
|
2115
|
+
/** List a channel's message history. */
|
|
2116
|
+
listChannelMessages(bearerToken: string, clanId: string, channelId: string, messageId?: string, direction?: number, limit?: number, topicId?: string, options?: {}): Promise<ApiChannelMessageList>;
|
|
2117
|
+
/** Add users to a channel. */
|
|
2118
|
+
addChannelUsers(bearerToken: string, channelId: string, userIds?: Array<string>, options?: {}): Promise<any>;
|
|
2119
|
+
/** List all attachment that are part of a channel. */
|
|
2120
|
+
listChannelAttachment(bearerToken: string, channelId: string, clanId?: string, fileType?: string, limit?: number, state?: number, before?: number, after?: number, around?: number, options?: {}): Promise<ApiChannelAttachmentList>;
|
|
2121
|
+
/** get channel encryption method */
|
|
2122
|
+
getChanEncryptionMethod(bearerToken: string, channelId: string, method?: string, options?: {}): Promise<ApiChanEncryptionMethod>;
|
|
2123
|
+
/** store channel encryption method */
|
|
2124
|
+
setChanEncryptionMethod(bearerToken: string, channelId: string, body: MezonSetChanEncryptionMethodBody, options?: {}): Promise<any>;
|
|
2125
|
+
/** Leave a channel the user is a member of. */
|
|
2126
|
+
leaveThread(bearerToken: string, clanId: string, channelId: string, options?: {}): Promise<any>;
|
|
2127
|
+
/** Kick a set of users from a channel. */
|
|
2128
|
+
removeChannelUsers(bearerToken: string, channelId: string, userIds?: Array<string>, options?: {}): Promise<any>;
|
|
2129
|
+
/** List all users that are part of a channel. */
|
|
2130
|
+
listChannelUsers(bearerToken: string, clanId: string, channelId: string, channelType?: number, limit?: number, state?: number, cursor?: string, options?: {}): Promise<ApiChannelUserList>;
|
|
2131
|
+
/** List user channels */
|
|
2132
|
+
listChannelDescs(bearerToken: string, limit?: number, state?: number, page?: number, clanId?: string, channelType?: number, isMobile?: boolean, options?: {}): Promise<ApiChannelDescList>;
|
|
2133
|
+
/** Create a new channel with the current user as the owner. */
|
|
2134
|
+
createChannelDesc(bearerToken: string, body: ApiCreateChannelDescRequest, options?: {}): Promise<ApiChannelDescription>;
|
|
2135
|
+
/** list user add channel by channel ids */
|
|
2136
|
+
listChannelUsersUC(bearerToken: string, channelId?: string, limit?: number, options?: {}): Promise<ApiAllUsersAddChannelResponse>;
|
|
2137
|
+
/** Delete a channel by ID. */
|
|
2138
|
+
deleteChannelDesc(bearerToken: string, clanId: string, channelId: string, options?: {}): Promise<any>;
|
|
2139
|
+
/** Update fields in a given channel. */
|
|
2140
|
+
updateChannelDesc(bearerToken: string, channelId: string, body: ApiUpdateChannelDescRequest, options?: {}): Promise<any>;
|
|
2141
|
+
/** List channel setting */
|
|
2142
|
+
listChannelSetting(bearerToken: string, clanId: string, parentId?: string, categoryId?: string, privateChannel?: number, active?: number, status?: number, type?: number, limit?: number, page?: number, channelLabel?: string, options?: {}): Promise<ApiChannelSettingListResponse>;
|
|
2143
|
+
/** List all users that are part of a channel. */
|
|
2144
|
+
listChannelVoiceUsers(bearerToken: string, clanId?: string, limit?: number, options?: {}): Promise<ApiVoiceChannelUserList>;
|
|
2145
|
+
/** List clans */
|
|
2146
|
+
listClanUnreadMsgIndicator(bearerToken: string, clanId: string, options?: {}): Promise<ApiListClanUnreadMsgIndicatorResponse>;
|
|
2147
|
+
/** List clans */
|
|
2148
|
+
listClanDescs(bearerToken: string, limit?: number, state?: number, cursor?: string, options?: {}): Promise<ApiClanDescList>;
|
|
2149
|
+
/** Create a clan */
|
|
2150
|
+
createClanDesc(bearerToken: string, body: ApiCreateClanDescRequest, options?: {}): Promise<ApiClanDesc>;
|
|
2151
|
+
/** Delete a clan desc by ID. */
|
|
2152
|
+
deleteClanDesc(bearerToken: string, clanDescId: string, options?: {}): Promise<any>;
|
|
2153
|
+
/** Update fields in a given clan. */
|
|
2154
|
+
updateClanDesc(bearerToken: string, clanId: string, body: {}, options?: {}): Promise<any>;
|
|
2155
|
+
/** Kick a set of users from a clan. */
|
|
2156
|
+
removeClanUsers(bearerToken: string, clanId: string, userIds?: Array<string>, options?: {}): Promise<any>;
|
|
2157
|
+
/** List banned user */
|
|
2158
|
+
listBannedUsers(bearerToken: string, clanId?: string, channelId?: string, options?: {}): Promise<ApiBannedUserList>;
|
|
2159
|
+
/** Ban a set of users from a channel. */
|
|
2160
|
+
unbanClanUsers(bearerToken: string, clanId: string, channelId?: string, userIds?: Array<string>, banTime?: number, options?: {}): Promise<any>;
|
|
2161
|
+
/** Ban a set of users from a channel. */
|
|
2162
|
+
banClanUsers(bearerToken: string, clanId: string, channelId?: string, userIds?: Array<string>, banTime?: number, options?: {}): Promise<any>;
|
|
2163
|
+
/** List all users that are part of a clan. */
|
|
2164
|
+
listClanUsers(bearerToken: string, clanId: string, options?: {}): Promise<ApiClanUserList>;
|
|
2165
|
+
/** */
|
|
2166
|
+
createCategoryDesc(bearerToken: string, body: ApiCreateCategoryDescRequest, options?: {}): Promise<ApiCategoryDesc>;
|
|
2167
|
+
/** */
|
|
2168
|
+
deleteCategoryDesc(bearerToken: string, categoryId: string, clanId: string, categoryLabel?: string, options?: {}): Promise<any>;
|
|
2169
|
+
/** regist fcm device token */
|
|
2170
|
+
registFCMDeviceToken(bearerToken: string, token?: string, deviceId?: string, platform?: string, voipToken?: string, options?: {}): Promise<ApiRegistFcmDeviceTokenResponse>;
|
|
2171
|
+
/** close direct message. */
|
|
2172
|
+
closeDirectMess(bearerToken: string, body: ApiDeleteChannelDescRequest, options?: {}): Promise<any>;
|
|
2173
|
+
/** open direct message. */
|
|
2174
|
+
openDirectMess(bearerToken: string, body: ApiDeleteChannelDescRequest, options?: {}): Promise<any>;
|
|
2175
|
+
/** Post clan Emoji /v2/emoji/create */
|
|
2176
|
+
createClanEmoji(bearerToken: string, body: ApiClanEmojiCreateRequest, options?: {}): Promise<any>;
|
|
2177
|
+
/** Delete a emoji by ID. */
|
|
2178
|
+
deleteClanEmojiById(bearerToken: string, id: string, clanId?: string, emojiLabel?: string, options?: {}): Promise<any>;
|
|
2179
|
+
/** Update ClanEmoj By id */
|
|
2180
|
+
updateClanEmojiById(bearerToken: string, id: string, body: MezonUpdateClanEmojiByIdBody, options?: {}): Promise<any>;
|
|
2181
|
+
/** get list emoji recent by user id */
|
|
2182
|
+
emojiRecentList(bearerToken: string, options?: {}): Promise<ApiEmojiRecentList>;
|
|
2183
|
+
/** get list emoji by user id */
|
|
2184
|
+
getListEmojisByUserId(bearerToken: string, options?: {}): Promise<ApiEmojiListedResponse>;
|
|
2185
|
+
/** Search message from elasticsearch service. */
|
|
2186
|
+
searchMessage(bearerToken: string, body: ApiSearchMessageRequest, options?: {}): Promise<ApiSearchMessageResponse>;
|
|
2187
|
+
/** Submit an event for processing in the server's registered runtime custom events handler. */
|
|
2188
|
+
event(bearerToken: string, body: ApiEvent, options?: {}): Promise<any>;
|
|
2189
|
+
/** List user events */
|
|
2190
|
+
listEvents(bearerToken: string, clanId?: string, options?: {}): Promise<ApiEventList>;
|
|
2191
|
+
/** Create a new event for clan. */
|
|
2192
|
+
createEvent(bearerToken: string, body: ApiCreateEventRequest, options?: {}): Promise<ApiEventManagement>;
|
|
2193
|
+
/** Update fields in a given event. */
|
|
2194
|
+
updateEventUser(bearerToken: string, body: ApiDeleteEventRequest, options?: {}): Promise<any>;
|
|
2195
|
+
/** Delete a event by ID. */
|
|
2196
|
+
deleteEvent(bearerToken: string, eventId: string, clanId?: string, creatorId?: string, eventLabel?: string, channelId?: string, options?: {}): Promise<any>;
|
|
2197
|
+
/** Update fields in a given event. */
|
|
2198
|
+
updateEvent(bearerToken: string, eventId: string, body: MezonUpdateEventBody, options?: {}): Promise<any>;
|
|
2199
|
+
/** Delete one or more users by ID or username. */
|
|
2200
|
+
deleteFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: {}): Promise<any>;
|
|
2201
|
+
/** List all friends for the current user. */
|
|
2202
|
+
listFriends(bearerToken: string, limit?: number, state?: number, cursor?: string, options?: {}): Promise<ApiFriendList>;
|
|
2203
|
+
/** Add friends by ID or username to a user's account. */
|
|
2204
|
+
addFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: {}): Promise<ApiAddFriendsResponse>;
|
|
2205
|
+
/** Block one or more users by ID or username. */
|
|
2206
|
+
blockFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: {}): Promise<any>;
|
|
2207
|
+
/** Block one or more users by ID or username. */
|
|
2208
|
+
unblockFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: {}): Promise<any>;
|
|
2209
|
+
/** List GetChannelCategoryNotiSettingsList */
|
|
2210
|
+
getChannelCategoryNotiSettingsList(bearerToken: string, clanId?: string, options?: {}): Promise<ApiNotificationChannelCategorySettingList>;
|
|
2211
|
+
/** */
|
|
2212
|
+
getUserProfileOnClan(bearerToken: string, clanId: string, options?: {}): Promise<ApiClanProfile>;
|
|
2213
|
+
/** List GetNotificationChannel */
|
|
2214
|
+
getNotificationCategory(bearerToken: string, categoryId?: string, options?: {}): Promise<ApiNotificationUserChannel>;
|
|
2215
|
+
/** List GetNotificationChannel */
|
|
2216
|
+
getNotificationChannel(bearerToken: string, channelId?: string, options?: {}): Promise<ApiNotificationUserChannel>;
|
|
2217
|
+
/** List GetNotificationClan */
|
|
2218
|
+
getNotificationClan(bearerToken: string, clanId?: string, options?: {}): Promise<ApiNotificationSetting>;
|
|
2219
|
+
/** List GetNotificationReactMessage */
|
|
2220
|
+
getNotificationReactMessage(bearerToken: string, channelId?: string, options?: {}): Promise<ApiNotifiReactMessage>;
|
|
2221
|
+
/** Give a coffee */
|
|
2222
|
+
giveMeACoffee(bearerToken: string, body: ApiGiveCoffeeEvent, options?: {}): Promise<any>;
|
|
2223
|
+
/** get key server */
|
|
2224
|
+
getKeyServer(bearerToken: string, options?: {}): Promise<ApiGetKeyServerResp>;
|
|
2225
|
+
/** Add users to a channel. */
|
|
2226
|
+
createLinkInviteUser(bearerToken: string, body: ApiLinkInviteUserRequest, options?: {}): Promise<ApiLinkInviteUser>;
|
|
2227
|
+
/** Add users to a channel. */
|
|
2228
|
+
inviteUser(bearerToken: string, inviteId: string, options?: {}): Promise<ApiInviteUserRes>;
|
|
2229
|
+
/** Add users to a channel. */
|
|
2230
|
+
getLinkInvite(basicAuthUsername: string, basicAuthPassword: string, inviteId: string, options?: {}): Promise<ApiInviteUserRes>;
|
|
2231
|
+
/** List HashtagDMList */
|
|
2232
|
+
listChannelByUserId(bearerToken: string, options?: {}): Promise<ApiChannelDescList>;
|
|
2233
|
+
/** Mark as read */
|
|
2234
|
+
markAsRead(bearerToken: string, body: ApiMarkAsReadRequest, options?: {}): Promise<any>;
|
|
2235
|
+
/** List mezon OAuth client */
|
|
2236
|
+
listMezonOauthClient(bearerToken: string, options?: {}): Promise<ApiMezonOauthClientList>;
|
|
2237
|
+
/** set mute notification user channel. */
|
|
2238
|
+
setMuteCategory(bearerToken: string, body: ApiSetMuteRequest, options?: {}): Promise<any>;
|
|
2239
|
+
/** set mute notification user channel. */
|
|
2240
|
+
setMuteChannel(bearerToken: string, body: ApiSetMuteRequest, options?: {}): Promise<any>;
|
|
2241
|
+
/** Delete one or more notifications for the current user. */
|
|
2242
|
+
deleteNotifications(bearerToken: string, ids?: Array<string>, category?: number, options?: {}): Promise<any>;
|
|
2243
|
+
/** Fetch list of notifications. */
|
|
2244
|
+
listNotifications(bearerToken: string, limit?: number, clanId?: string, notificationId?: string, category?: number, direction?: number, options?: {}): Promise<ApiNotificationList>;
|
|
2245
|
+
/** set notification user channel. */
|
|
2246
|
+
setNotificationChannelSetting(bearerToken: string, body: ApiSetNotificationRequest, options?: {}): Promise<any>;
|
|
2247
|
+
/** set notification user channel. */
|
|
2248
|
+
setNotificationClanSetting(bearerToken: string, body: ApiSetDefaultNotificationRequest, options?: {}): Promise<any>;
|
|
2249
|
+
/** set notification user channel. */
|
|
2250
|
+
setNotificationCategorySetting(bearerToken: string, body: ApiSetNotificationRequest, options?: {}): Promise<any>;
|
|
2251
|
+
/** */
|
|
2252
|
+
deleteNotificationCategorySetting(bearerToken: string, categoryId?: string, options?: {}): Promise<any>;
|
|
2253
|
+
/** */
|
|
2254
|
+
deleteNotificationChannel(bearerToken: string, channelId?: string, options?: {}): Promise<any>;
|
|
2255
|
+
/** */
|
|
2256
|
+
deleteNotiReactMessage(bearerToken: string, channelId?: string, options?: {}): Promise<any>;
|
|
2257
|
+
/** */
|
|
2258
|
+
setNotificationReactMessage(bearerToken: string, body: ApiNotificationChannel, options?: {}): Promise<any>;
|
|
2259
|
+
/** set permission role channel. */
|
|
2260
|
+
setRoleChannelPermission(bearerToken: string, body: ApiUpdateRoleChannelRequest, options?: {}): Promise<any>;
|
|
2261
|
+
/** Get permission list */
|
|
2262
|
+
getListPermission(bearerToken: string, options?: {}): Promise<ApiPermissionList>;
|
|
2263
|
+
/** GetPermissionByRoleIdChannelId */
|
|
2264
|
+
getPermissionByRoleIdChannelId(bearerToken: string, roleId?: string, channelId?: string, userId?: string, options?: {}): Promise<ApiPermissionRoleChannelListEventResponse>;
|
|
2265
|
+
/** */
|
|
2266
|
+
deletePinMessage(bearerToken: string, id?: string, messageId?: string, channelId?: string, clanId?: string, options?: {}): Promise<any>;
|
|
2267
|
+
/** */
|
|
2268
|
+
getPinMessagesList(bearerToken: string, messageId?: string, channelId?: string, clanId?: string, options?: {}): Promise<tsproto.PinMessagesList>;
|
|
2269
|
+
/** create message to inbox. */
|
|
2270
|
+
createMessage2Inbox(bearerToken: string, body: ApiMessage2InboxRequest, options?: {}): Promise<ApiChannelMessageHeader>;
|
|
2271
|
+
/** set notification user channel. */
|
|
2272
|
+
createPinMessage(bearerToken: string, body: ApiPinMessageRequest, options?: {}): Promise<ApiChannelMessageHeader>;
|
|
2273
|
+
/** get pubkey */
|
|
2274
|
+
getPubKeys(bearerToken: string, userIds?: Array<string>, options?: {}): Promise<ApiGetPubKeysResponse>;
|
|
2275
|
+
/** store pubkey for e2ee */
|
|
2276
|
+
pushPubKey(bearerToken: string, body: ApiPushPubKeyRequest, options?: {}): Promise<any>;
|
|
2277
|
+
/** */
|
|
2278
|
+
addRolesChannelDesc(bearerToken: string, body: ApiAddRoleChannelDescRequest, options?: {}): Promise<any>;
|
|
2279
|
+
/** update the category of a channel */
|
|
2280
|
+
changeChannelCategory(bearerToken: string, newCategoryId: string, body: MezonChangeChannelCategoryBody, options?: {}): Promise<any>;
|
|
2281
|
+
/** Update a role when Delete a role by ID. */
|
|
2282
|
+
deleteRoleChannelDesc(bearerToken: string, body: ApiDeleteRoleRequest, options?: {}): Promise<any>;
|
|
2283
|
+
/** ListRoles */
|
|
2284
|
+
listRoles(bearerToken: string, clanId?: string, limit?: number, state?: number, cursor?: string, options?: {}): Promise<ApiRoleListEventResponse>;
|
|
2285
|
+
/** Create a new role for clan. */
|
|
2286
|
+
createRole(bearerToken: string, body: ApiCreateRoleRequest, options?: {}): Promise<ApiRole>;
|
|
2287
|
+
/** Update a role when Delete a role by ID. */
|
|
2288
|
+
updateRoleDelete(bearerToken: string, roleId: string, body: MezonUpdateRoleDeleteBody, options?: {}): Promise<any>;
|
|
2289
|
+
/** Delete a role by ID. */
|
|
2290
|
+
deleteRole(bearerToken: string, roleId: string, channelId?: string, clanId?: string, roleLabel?: string, options?: {}): Promise<any>;
|
|
2291
|
+
/** Update fields in a given role. */
|
|
2292
|
+
updateRole(bearerToken: string, roleId: string, body: MezonUpdateRoleBody, options?: {}): Promise<any>;
|
|
2293
|
+
/** List role permissions */
|
|
2294
|
+
listRolePermissions(bearerToken: string, roleId: string, options?: {}): Promise<ApiPermissionList>;
|
|
2295
|
+
/** List role permissions */
|
|
2296
|
+
listRoleUsers(bearerToken: string, roleId: string, limit?: number, cursor?: string, options?: {}): Promise<ApiRoleUserList>;
|
|
2297
|
+
/** */
|
|
2298
|
+
getRoleOfUserInTheClan(bearerToken: string, clanId: string, channelId?: string, options?: {}): Promise<ApiRoleList>;
|
|
2299
|
+
/** */
|
|
2300
|
+
searchThread(bearerToken: string, clanId?: string, channelId?: string, label?: string, options?: {}): Promise<ApiChannelDescList>;
|
|
2301
|
+
/** UpdateWallets */
|
|
2302
|
+
sendToken(bearerToken: string, body: ApiTokenSentEvent, options?: {}): Promise<any>;
|
|
2303
|
+
/** Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user. */
|
|
2304
|
+
sessionLogout(bearerToken: string, body: ApiSessionLogoutRequest, options?: {}): Promise<any>;
|
|
2305
|
+
/** Add a new sticker */
|
|
2306
|
+
addClanSticker(bearerToken: string, body: ApiClanStickerAddRequest, options?: {}): Promise<any>;
|
|
2307
|
+
/** Delete a sticker by ID */
|
|
2308
|
+
deleteClanStickerById(bearerToken: string, id: string, clanId?: string, stickerLabel?: string, options?: {}): Promise<any>;
|
|
2309
|
+
/** Update a sticker by ID */
|
|
2310
|
+
updateClanStickerById(bearerToken: string, id: string, body: MezonUpdateClanStickerByIdBody, options?: {}): Promise<any>;
|
|
2311
|
+
/** get list sticker by user id */
|
|
2312
|
+
getListStickersByUserId(bearerToken: string, options?: {}): Promise<ApiStickerListedResponse>;
|
|
2313
|
+
/** Register streaming in channel ( for bot - get streaming key) */
|
|
2314
|
+
registerStreamingChannel(bearerToken: string, body: ApiRegisterStreamingChannelRequest, options?: {}): Promise<ApiRegisterStreamingChannelResponse>;
|
|
2315
|
+
/** List all users that are part of a channel. */
|
|
2316
|
+
listStreamingChannelUsers(bearerToken: string, clanId?: string, channelId?: string, channelType?: number, limit?: number, state?: number, cursor?: string, options?: {}): Promise<ApiStreamingChannelUserList>;
|
|
2317
|
+
/** Get the list of system messages. */
|
|
2318
|
+
getSystemMessagesList(bearerToken: string, options?: {}): Promise<ApiSystemMessagesList>;
|
|
2319
|
+
/** Create a system messages. */
|
|
2320
|
+
createSystemMessage(bearerToken: string, body: ApiSystemMessageRequest, options?: {}): Promise<any>;
|
|
2321
|
+
/** List Sd Topic */
|
|
2322
|
+
listSdTopic(bearerToken: string, clanId?: string, limit?: number, options?: {}): Promise<ApiSdTopicList>;
|
|
2323
|
+
/** Create Sd Topic */
|
|
2324
|
+
createSdTopic(bearerToken: string, body: ApiSdTopicRequest, options?: {}): Promise<ApiSdTopic>;
|
|
2325
|
+
/** Delete a specific system messages. */
|
|
2326
|
+
deleteSystemMessage(bearerToken: string, clanId: string, options?: {}): Promise<any>;
|
|
2327
|
+
/** Get details of a specific system messages. */
|
|
2328
|
+
getSystemMessageByClanId(bearerToken: string, clanId: string, options?: {}): Promise<ApiSystemMessage>;
|
|
2329
|
+
/** Update a system messages. */
|
|
2330
|
+
updateSystemMessage(bearerToken: string, clanId: string, body: MezonUpdateSystemMessageBody, options?: {}): Promise<any>;
|
|
2331
|
+
/** List user channels */
|
|
2332
|
+
listThreadDescs(bearerToken: string, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number, options?: {}): Promise<ApiChannelDescList>;
|
|
2333
|
+
/** Update fields in a given category. */
|
|
2334
|
+
updateCategory(bearerToken: string, clanId: string, body: MezonUpdateCategoryBody, options?: {}): Promise<any>;
|
|
2335
|
+
/** Update channel private. */
|
|
2336
|
+
updateChannelPrivate(bearerToken: string, body: ApiChangeChannelPrivateRequest, options?: {}): Promise<any>;
|
|
2337
|
+
/** */
|
|
2338
|
+
updateUserProfileByClan(bearerToken: string, clanId: string, body: MezonUpdateUserProfileByClanBody, options?: {}): Promise<any>;
|
|
2339
|
+
/** Upload attachment */
|
|
2340
|
+
uploadOauthFile(bearerToken: string, body: ApiUploadAttachmentRequest, options?: {}): Promise<ApiUploadAttachment>;
|
|
2341
|
+
/** Upload attachment */
|
|
2342
|
+
uploadAttachmentFile(bearerToken: string, body: ApiUploadAttachmentRequest, options?: {}): Promise<ApiUploadAttachment>;
|
|
2343
|
+
/** */
|
|
2344
|
+
updateUser(bearerToken: string, body: ApiUpdateUsersRequest, options?: {}): Promise<any>;
|
|
2345
|
+
/** ListUserClansByUserId */
|
|
2346
|
+
listUserClansByUserId(bearerToken: string, options?: {}): Promise<ApiAllUserClans>;
|
|
2347
|
+
/** ListUserPermissionInChannel */
|
|
2348
|
+
listUserPermissionInChannel(bearerToken: string, clanId?: string, channelId?: string, options?: {}): Promise<ApiUserPermissionInChannelListResponse>;
|
|
2349
|
+
/** Get user status */
|
|
2350
|
+
getUserStatus(bearerToken: string, options?: {}): Promise<ApiUserStatus>;
|
|
2351
|
+
/** Update user status */
|
|
2352
|
+
updateUserStatus(bearerToken: string, body: ApiUserStatusUpdate, options?: {}): Promise<any>;
|
|
2353
|
+
/** create webhook */
|
|
2354
|
+
generateWebhook(bearerToken: string, body: ApiWebhookCreateRequest, options?: {}): Promise<any>;
|
|
2355
|
+
/** update webhook name by id */
|
|
2356
|
+
updateWebhookById(bearerToken: string, id: string, body: MezonUpdateWebhookByIdBody, options?: {}): Promise<any>;
|
|
2357
|
+
/** list webhook belong to the channel */
|
|
2358
|
+
listWebhookByChannelId(bearerToken: string, channelId: string, clanId?: string, options?: {}): Promise<ApiWebhookListResponse>;
|
|
2359
|
+
/** disabled webhook */
|
|
2360
|
+
deleteWebhookById(bearerToken: string, id: string, body: MezonDeleteWebhookByIdBody, options?: {}): Promise<any>;
|
|
2361
|
+
buildFullUrl(basePath: string, fragment: string, queryParams: Map<string, any>): string;
|
|
2362
|
+
/** Channel canvas editor */
|
|
2363
|
+
editChannelCanvases(bearerToken: string, body: ApiEditChannelCanvasRequest, options?: {}): Promise<ApiEditChannelCanvasResponse>;
|
|
2364
|
+
/** */
|
|
2365
|
+
getChannelCanvasDetail(bearerToken: string, id: string, clanId?: string, channelId?: string, options?: {}): Promise<ApiChannelCanvasDetailResponse>;
|
|
2366
|
+
/** */
|
|
2367
|
+
deleteChannelCanvas(bearerToken: string, canvasId: string, clanId?: string, channelId?: string, options?: {}): Promise<any>;
|
|
2368
|
+
/** list onboarding. */
|
|
2369
|
+
listOnboarding(bearerToken: string, clanId?: string, guideType?: number, limit?: number, page?: number, options?: {}): Promise<ApiListOnboardingResponse>;
|
|
2370
|
+
/** create onboarding. */
|
|
2371
|
+
createOnboarding(bearerToken: string, body: ApiCreateOnboardingRequest, options?: {}): Promise<ApiListOnboardingResponse>;
|
|
2372
|
+
/** delete onboarding. */
|
|
2373
|
+
deleteOnboarding(bearerToken: string, id: string, clanId?: string, options?: {}): Promise<any>;
|
|
2374
|
+
/** get detailed onboarding information. */
|
|
2375
|
+
getOnboardingDetail(bearerToken: string, id: string, clanId?: string, options?: {}): Promise<ApiOnboardingItem>;
|
|
2376
|
+
/** update onboarding. */
|
|
2377
|
+
updateOnboarding(bearerToken: string, id: string, body: MezonUpdateOnboardingBody, options?: {}): Promise<any>;
|
|
2378
|
+
/** Generate clan webhook. */
|
|
2379
|
+
generateClanWebhook(bearerToken: string, body: ApiGenerateClanWebhookRequest, options?: {}): Promise<ApiGenerateClanWebhookResponse>;
|
|
2380
|
+
/** List clan webhook. */
|
|
2381
|
+
listClanWebhook(bearerToken: string, clanId: string, options?: {}): Promise<ApiListClanWebhookResponse>;
|
|
2382
|
+
/** Disabled clan webhook. */
|
|
2383
|
+
deleteClanWebhookById(bearerToken: string, id: string, clanId?: string, options?: {}): Promise<any>;
|
|
2384
|
+
/** Update clan webhook by id. */
|
|
2385
|
+
updateClanWebhookById(bearerToken: string, id: string, body: MezonUpdateClanWebhookByIdBody, options?: {}): Promise<any>;
|
|
2386
|
+
/** Sd Topic */
|
|
2387
|
+
getTopicDetail(bearerToken: string, topicId?: string, options?: {}): Promise<ApiSdTopic>;
|
|
2388
|
+
/** List onboarding step. */
|
|
2389
|
+
listOnboardingStep(bearerToken: string, clanId?: string, limit?: number, page?: number, options?: {}): Promise<ApiListOnboardingStepResponse>;
|
|
2390
|
+
/** Update onboarding step. */
|
|
2391
|
+
updateOnboardingStepByClanId(bearerToken: string, clanId: string, body: MezonUpdateOnboardingStepByClanIdBody, options?: {}): Promise<any>;
|
|
2392
|
+
/** create meeting room */
|
|
2393
|
+
createRoomChannelApps(bearerToken: string, body: MezonapiCreateRoomChannelApps, options?: {}): Promise<MezonapiCreateRoomChannelApps>;
|
|
2394
|
+
/** Generate Meet Token */
|
|
2395
|
+
generateMeetToken(bearerToken: string, body: ApiGenerateMeetTokenRequest, options?: {}): Promise<ApiGenerateMeetTokenResponse>;
|
|
2396
|
+
/** Create mezon OAuth client */
|
|
2397
|
+
getMezonOauthClient(bearerToken: string, clientId?: string, clientName?: string, options?: {}): Promise<ApiMezonOauthClient>;
|
|
2398
|
+
/** update mezon OAuth */
|
|
2399
|
+
updateMezonOauthClient(bearerToken: string, body: ApiMezonOauthClient, options?: {}): Promise<ApiMezonOauthClient>;
|
|
2400
|
+
/** */
|
|
2401
|
+
generateHashChannelApps(bearerToken: string, appId?: string, options?: {}): Promise<ApiCreateHashChannelAppsResponse>;
|
|
2402
|
+
/** Add user event */
|
|
2403
|
+
addUserEvent(bearerToken: string, body: ApiUserEventRequest, options?: {}): Promise<any>;
|
|
2404
|
+
/** Delete user event */
|
|
2405
|
+
deleteUserEvent(bearerToken: string, clanId?: string, eventId?: string, options?: {}): Promise<any>;
|
|
2406
|
+
/** */
|
|
2407
|
+
updateRoleOrder(bearerToken: string, body: ApiUpdateRoleOrderRequest, options?: {}): Promise<any>;
|
|
2408
|
+
/** Create external Mezon meet */
|
|
2409
|
+
createExternalMezonMeet(bearerToken: string, options?: {}): Promise<ApiGenerateMezonMeetResponse>;
|
|
2410
|
+
/** handler external mezon meet */
|
|
2411
|
+
generateMeetTokenExternal(bearerToken: string, basePath: string, token: string, displayName?: string, isGuest?: boolean, options?: {}): Promise<ApiGenerateMeetTokenExternalResponse>;
|
|
2412
|
+
/** mute participant in the room */
|
|
2413
|
+
muteParticipantMezonMeet(bearerToken: string, body: ApiMeetParticipantRequest, options?: {}): Promise<any>;
|
|
2414
|
+
/** Remove participant out the room */
|
|
2415
|
+
removeParticipantMezonMeet(bearerToken: string, body: ApiMeetParticipantRequest, options?: {}): Promise<any>;
|
|
2416
|
+
/** List channels detail */
|
|
2417
|
+
listChannelDetail(bearerToken: string, channelId: string, options?: {}): Promise<ApiChannelDescription>;
|
|
2418
|
+
/** List channel events */
|
|
2419
|
+
listChannelEvents(bearerToken: string, request: ApiListChannelEventsRequest, options?: {}): Promise<ApiListChannelEventsResponse>;
|
|
2420
|
+
/** */
|
|
2421
|
+
updateClanOrder(bearerToken: string, body: ApiUpdateClanOrderRequest, options?: {}): Promise<any>;
|
|
2422
|
+
/** Discover mezon clan. */
|
|
2423
|
+
clanDiscover(basicAuthUsername: string, basicAuthPassword: string, basePath: string, body: ApiClanDiscoverRequest, options?: {}): Promise<ApiListClanDiscover>;
|
|
2424
|
+
/** */
|
|
2425
|
+
deleteQuickMenuAccess(bearerToken: string, id?: string, clanId?: string, botId?: string, menuName?: string, background?: string, actionMsg?: string, options?: {}): Promise<any>;
|
|
2426
|
+
/** */
|
|
2427
|
+
listQuickMenuAccess(bearerToken: string, botId?: string, channelId?: string, menuType?: number, options?: {}): Promise<ApiQuickMenuAccessList>;
|
|
2428
|
+
/** */
|
|
2429
|
+
addQuickMenuAccess(bearerToken: string, body: ApiQuickMenuAccessRequest, options?: {}): Promise<any>;
|
|
2430
|
+
/** */
|
|
2431
|
+
updateQuickMenuAccess(bearerToken: string, body: ApiQuickMenuAccessRequest, options?: {}): Promise<any>;
|
|
2432
|
+
/** For sale items */
|
|
2433
|
+
listForSaleItems(bearerToken: string, page?: number, options?: {}): Promise<ApiForSaleItemList>;
|
|
2434
|
+
/** */
|
|
2435
|
+
isFollower(bearerToken: string, body: ApiIsFollowerRequest, options?: {}): Promise<ApiIsFollowerResponse>;
|
|
2436
|
+
/** */
|
|
2437
|
+
transferOwnership(bearerToken: string, body: ApiTransferOwnershipRequest, options?: {}): Promise<any>;
|
|
2438
|
+
/** Update username */
|
|
2439
|
+
updateUsername(bearerToken: string, body: ApiUpdateUsernameRequest, options?: {}): Promise<ApiSession>;
|
|
2440
|
+
/** Ban a set of users from a channel. */
|
|
2441
|
+
isBanned(bearerToken: string, channelId: string, options?: {}): Promise<ApiIsBannedResponse>;
|
|
2442
|
+
/** */
|
|
2443
|
+
reportMessageAbuse(bearerToken: string, messageId?: string, abuseType?: string, options?: {}): Promise<any>;
|
|
2444
|
+
/** */
|
|
2445
|
+
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>;
|
|
2446
|
+
/** */
|
|
2447
|
+
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>;
|
|
2448
|
+
/** */
|
|
2449
|
+
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>;
|
|
2450
|
+
/** */
|
|
2451
|
+
updateMezonVoiceState(bearerToken: string, clanId?: string, channelId?: string, displayName?: string, roomName?: string, state?: number, options?: {}): Promise<any>;
|
|
2452
|
+
/** */
|
|
2453
|
+
messageButtonClick(bearerToken: string, messageId?: string, channelId?: string, buttonId?: string, senderId?: string, userId?: string, extraData?: string, options?: {}): Promise<any>;
|
|
2454
|
+
/** */
|
|
2455
|
+
dropdownBoxSelected(bearerToken: string, messageId?: string, channelId?: string, selectboxId?: string, senderId?: string, userId?: string, values?: string[], options?: {}): Promise<any>;
|
|
2456
|
+
activeArchivedThread(bearerToken: string, clanId?: string, channelId?: string, options?: {}): Promise<any>;
|
|
2457
|
+
addAgentToChannel(bearerToken: string, roomName?: string, channelId?: string, options?: {}): Promise<any>;
|
|
2458
|
+
disconnectAgent(bearerToken: string, roomName?: string, channelId?: string, options?: {}): Promise<any>;
|
|
2459
|
+
}
|