mezon-js 2.8.36 → 2.8.38
Sign up to get free protection for your applications and to get access to all the features.
- package/api.gen.ts +59 -187
- package/client.ts +13 -103
- package/dist/api.gen.d.ts +17 -22
- package/dist/client.d.ts +3 -58
- package/dist/mezon-js.cjs.js +13 -151
- package/dist/mezon-js.esm.mjs +13 -151
- package/dist/socket.d.ts +2 -2
- package/package.json +1 -1
- package/socket.ts +5 -3
- package/dist/api1.gen.d.ts +0 -1157
package/dist/api1.gen.d.ts
DELETED
@@ -1,1157 +0,0 @@
|
|
1
|
-
/** A single user-role pair. */
|
2
|
-
export interface ChannelUserListChannelUser {
|
3
|
-
clan_avatar?: string;
|
4
|
-
clan_id?: string;
|
5
|
-
clan_nick?: string;
|
6
|
-
id?: string;
|
7
|
-
role_id?: Array<string>;
|
8
|
-
thread_id?: string;
|
9
|
-
user?: ApiUser;
|
10
|
-
}
|
11
|
-
/** A single user-role pair. */
|
12
|
-
export interface ClanUserListClanUser {
|
13
|
-
clan_avatar?: string;
|
14
|
-
clan_id?: string;
|
15
|
-
clan_nick?: string;
|
16
|
-
role_id?: string;
|
17
|
-
user?: ApiUser;
|
18
|
-
}
|
19
|
-
/** */
|
20
|
-
export interface MezonChangeChannelCategoryBody {
|
21
|
-
channel_id?: string;
|
22
|
-
}
|
23
|
-
/** */
|
24
|
-
export interface MezonDeleteWebhookByIdBody {
|
25
|
-
}
|
26
|
-
/** Update fields in a given channel. */
|
27
|
-
export interface MezonUpdateChannelDescBody {
|
28
|
-
category_id?: string;
|
29
|
-
channel_label?: string;
|
30
|
-
}
|
31
|
-
/** */
|
32
|
-
export interface MezonUpdateClanDescBody {
|
33
|
-
banner?: string;
|
34
|
-
clan_name?: string;
|
35
|
-
creator_id?: string;
|
36
|
-
logo?: string;
|
37
|
-
status?: number;
|
38
|
-
}
|
39
|
-
/** */
|
40
|
-
export interface MezonUpdateClanDescProfileBody {
|
41
|
-
avatar_url?: string;
|
42
|
-
nick_name?: string;
|
43
|
-
profile_banner?: string;
|
44
|
-
profile_theme?: string;
|
45
|
-
}
|
46
|
-
/** */
|
47
|
-
export interface MezonUpdateClanEmojiByIdBody {
|
48
|
-
category?: string;
|
49
|
-
shortname?: string;
|
50
|
-
source?: string;
|
51
|
-
}
|
52
|
-
/** */
|
53
|
-
export interface MezonUpdateClanStickerByIdBody {
|
54
|
-
category?: string;
|
55
|
-
shortname?: string;
|
56
|
-
source?: string;
|
57
|
-
}
|
58
|
-
/** update a event within clan. */
|
59
|
-
export interface MezonUpdateEventBody {
|
60
|
-
address?: string;
|
61
|
-
channel_id?: string;
|
62
|
-
description?: string;
|
63
|
-
end_time?: string;
|
64
|
-
logo?: string;
|
65
|
-
start_time?: string;
|
66
|
-
title?: string;
|
67
|
-
}
|
68
|
-
/** Update fields in a given role. */
|
69
|
-
export interface MezonUpdateRoleBody {
|
70
|
-
active_permission_ids?: Array<string>;
|
71
|
-
add_user_ids?: Array<string>;
|
72
|
-
allow_mention?: number;
|
73
|
-
color?: string;
|
74
|
-
description?: string;
|
75
|
-
display_online?: number;
|
76
|
-
remove_permission_ids?: Array<string>;
|
77
|
-
remove_user_ids?: Array<string>;
|
78
|
-
role_icon?: string;
|
79
|
-
title?: string;
|
80
|
-
}
|
81
|
-
/** Delete a role the user has access to. */
|
82
|
-
export interface MezonUpdateRoleDeleteBody {
|
83
|
-
channel_id?: string;
|
84
|
-
}
|
85
|
-
/** */
|
86
|
-
export interface MezonUpdateUserProfileByClanBody {
|
87
|
-
avatar?: string;
|
88
|
-
nick_name?: string;
|
89
|
-
}
|
90
|
-
/** */
|
91
|
-
export interface MezonUpdateWebhookByIdBody {
|
92
|
-
avatar?: string;
|
93
|
-
channel_id?: string;
|
94
|
-
webhook_name?: string;
|
95
|
-
}
|
96
|
-
/** A single user-role pair. */
|
97
|
-
export interface RoleUserListRoleUser {
|
98
|
-
avatar_url?: string;
|
99
|
-
display_name?: string;
|
100
|
-
id?: string;
|
101
|
-
lang_tag?: string;
|
102
|
-
location?: string;
|
103
|
-
online?: boolean;
|
104
|
-
username?: string;
|
105
|
-
}
|
106
|
-
/** A user with additional account details. Always the current user. */
|
107
|
-
export interface ApiAccount {
|
108
|
-
custom_id?: string;
|
109
|
-
devices?: Array<ApiAccountDevice>;
|
110
|
-
disable_time?: string;
|
111
|
-
email?: string;
|
112
|
-
user?: ApiUser;
|
113
|
-
verify_time?: string;
|
114
|
-
wallet?: string;
|
115
|
-
}
|
116
|
-
/** Send a Apple Sign In token to the server. Used with authenticate/link/unlink. */
|
117
|
-
export interface ApiAccountApple {
|
118
|
-
token?: string;
|
119
|
-
vars?: Record<string, string>;
|
120
|
-
}
|
121
|
-
/** Send a custom ID to the server. Used with authenticate/link/unlink. */
|
122
|
-
export interface ApiAccountCustom {
|
123
|
-
id?: string;
|
124
|
-
vars?: Record<string, string>;
|
125
|
-
}
|
126
|
-
/** Send a device to the server. Used with authenticate/link/unlink and user. */
|
127
|
-
export interface ApiAccountDevice {
|
128
|
-
id?: string;
|
129
|
-
vars?: Record<string, string>;
|
130
|
-
}
|
131
|
-
/** Send an email with password to the server. Used with authenticate/link/unlink. */
|
132
|
-
export interface ApiAccountEmail {
|
133
|
-
email?: string;
|
134
|
-
password?: string;
|
135
|
-
vars?: Record<string, string>;
|
136
|
-
}
|
137
|
-
/** Send a Facebook token to the server. Used with authenticate/link/unlink. */
|
138
|
-
export interface ApiAccountFacebook {
|
139
|
-
token?: string;
|
140
|
-
vars?: Record<string, string>;
|
141
|
-
}
|
142
|
-
/** Send a Facebook Instant Game token to the server. Used with authenticate/link/unlink. */
|
143
|
-
export interface ApiAccountFacebookInstantGame {
|
144
|
-
signed_player_info?: string;
|
145
|
-
vars?: Record<string, string>;
|
146
|
-
}
|
147
|
-
/** Send Apple's Game Center account credentials to the server. Used with authenticate/link/unlink.
|
148
|
-
|
149
|
-
https://developer.apple.com/documentation/gamekit/gklocalplayer/1515407-generateidentityverificationsign */
|
150
|
-
export interface ApiAccountGameCenter {
|
151
|
-
bundle_id?: string;
|
152
|
-
player_id?: string;
|
153
|
-
public_key_url?: string;
|
154
|
-
salt?: string;
|
155
|
-
signature?: string;
|
156
|
-
timestamp_seconds?: string;
|
157
|
-
vars?: Record<string, string>;
|
158
|
-
}
|
159
|
-
/** Send a Google token to the server. Used with authenticate/link/unlink. */
|
160
|
-
export interface ApiAccountGoogle {
|
161
|
-
token?: string;
|
162
|
-
vars?: Record<string, string>;
|
163
|
-
}
|
164
|
-
/** Send a Steam token to the server. Used with authenticate/link/unlink. */
|
165
|
-
export interface ApiAccountSteam {
|
166
|
-
token?: string;
|
167
|
-
vars?: Record<string, string>;
|
168
|
-
}
|
169
|
-
/** Add a role for channel. */
|
170
|
-
export interface ApiAddRoleChannelDescRequest {
|
171
|
-
channel_id?: string;
|
172
|
-
role_ids?: Array<string>;
|
173
|
-
}
|
174
|
-
/** */
|
175
|
-
export interface ApiCategoryDesc {
|
176
|
-
category_id?: string;
|
177
|
-
category_name?: string;
|
178
|
-
clan_id?: string;
|
179
|
-
creator_id?: string;
|
180
|
-
}
|
181
|
-
/** */
|
182
|
-
export interface ApiCategoryDescList {
|
183
|
-
categorydesc?: Array<ApiCategoryDesc>;
|
184
|
-
}
|
185
|
-
/** Update fields in a given channel. */
|
186
|
-
export interface ApiChangeChannelPrivateRequest {
|
187
|
-
channel_id?: string;
|
188
|
-
channel_private?: number;
|
189
|
-
role_ids?: Array<string>;
|
190
|
-
user_ids?: Array<string>;
|
191
|
-
}
|
192
|
-
/** */
|
193
|
-
export interface ApiChannelAttachment {
|
194
|
-
create_time?: string;
|
195
|
-
filename?: string;
|
196
|
-
filesize?: string;
|
197
|
-
filetype?: string;
|
198
|
-
id?: string;
|
199
|
-
uploader?: string;
|
200
|
-
url?: string;
|
201
|
-
}
|
202
|
-
/** */
|
203
|
-
export interface ApiChannelAttachmentList {
|
204
|
-
attachments?: Array<ApiChannelAttachment>;
|
205
|
-
}
|
206
|
-
/** A list of channel description, usually a result of a list operation. */
|
207
|
-
export interface ApiChannelDescList {
|
208
|
-
cacheable_cursor?: string;
|
209
|
-
channeldesc?: Array<ApiChannelDescription>;
|
210
|
-
next_cursor?: string;
|
211
|
-
prev_cursor?: string;
|
212
|
-
}
|
213
|
-
/** */
|
214
|
-
export interface ApiChannelDescription {
|
215
|
-
active?: number;
|
216
|
-
category_id?: string;
|
217
|
-
category_name?: string;
|
218
|
-
channel_avatar?: Array<string>;
|
219
|
-
channel_id?: string;
|
220
|
-
channel_label?: string;
|
221
|
-
channel_private?: number;
|
222
|
-
clan_id?: string;
|
223
|
-
count_mess_unread?: number;
|
224
|
-
create_time_ms?: number;
|
225
|
-
creator_id?: string;
|
226
|
-
creator_name?: string;
|
227
|
-
last_pin_message?: string;
|
228
|
-
last_seen_message?: ApiChannelMessageHeader;
|
229
|
-
last_sent_message?: ApiChannelMessageHeader;
|
230
|
-
meeting_code?: string;
|
231
|
-
parrent_id?: string;
|
232
|
-
status?: number;
|
233
|
-
type?: number;
|
234
|
-
update_time_ms?: number;
|
235
|
-
user_id?: Array<string>;
|
236
|
-
usernames?: string;
|
237
|
-
}
|
238
|
-
/** A message sent on a channel. */
|
239
|
-
export interface ApiChannelMessage {
|
240
|
-
attachments?: string;
|
241
|
-
avatar?: string;
|
242
|
-
category_name?: string;
|
243
|
-
channel_id?: string;
|
244
|
-
channel_label?: string;
|
245
|
-
clan_avatar?: string;
|
246
|
-
clan_id?: string;
|
247
|
-
clan_logo?: string;
|
248
|
-
clan_nick?: string;
|
249
|
-
code?: number;
|
250
|
-
content?: string;
|
251
|
-
create_time?: string;
|
252
|
-
create_time_ms?: number;
|
253
|
-
display_name?: string;
|
254
|
-
mentions?: string;
|
255
|
-
message_id?: string;
|
256
|
-
reactions?: string;
|
257
|
-
referenced_message?: string;
|
258
|
-
references?: string;
|
259
|
-
sender_id?: string;
|
260
|
-
update_time?: string;
|
261
|
-
update_time_ms?: number;
|
262
|
-
username?: string;
|
263
|
-
}
|
264
|
-
/** */
|
265
|
-
export interface ApiChannelMessageHeader {
|
266
|
-
attachment?: string;
|
267
|
-
content?: string;
|
268
|
-
id?: string;
|
269
|
-
mention?: string;
|
270
|
-
reaction?: string;
|
271
|
-
referece?: string;
|
272
|
-
sender_id?: string;
|
273
|
-
timestamp?: string;
|
274
|
-
}
|
275
|
-
/** A list of channel messages, usually a result of a list operation. */
|
276
|
-
export interface ApiChannelMessageList {
|
277
|
-
last_seen_message?: ApiChannelMessageHeader;
|
278
|
-
last_sent_message?: ApiChannelMessageHeader;
|
279
|
-
messages?: Array<ApiChannelMessage>;
|
280
|
-
}
|
281
|
-
/** A list of users belonging to a channel, along with their role. */
|
282
|
-
export interface ApiChannelUserList {
|
283
|
-
channel_id?: string;
|
284
|
-
channel_users?: Array<ChannelUserListChannelUser>;
|
285
|
-
cursor?: string;
|
286
|
-
}
|
287
|
-
/** */
|
288
|
-
export interface ApiCheckDuplicateClanNameResponse {
|
289
|
-
is_duplicate?: boolean;
|
290
|
-
}
|
291
|
-
/** */
|
292
|
-
export interface ApiClanDesc {
|
293
|
-
banner?: string;
|
294
|
-
clan_id?: string;
|
295
|
-
clan_name?: string;
|
296
|
-
creator_id?: string;
|
297
|
-
logo?: string;
|
298
|
-
status?: number;
|
299
|
-
}
|
300
|
-
/** */
|
301
|
-
export interface ApiClanDescList {
|
302
|
-
clandesc?: Array<ApiClanDesc>;
|
303
|
-
}
|
304
|
-
/** */
|
305
|
-
export interface ApiClanDescProfile {
|
306
|
-
avatar_url?: string;
|
307
|
-
clan_id?: string;
|
308
|
-
creator_id?: string;
|
309
|
-
nick_name?: string;
|
310
|
-
profile_banner?: string;
|
311
|
-
profile_theme?: string;
|
312
|
-
}
|
313
|
-
/** */
|
314
|
-
export interface ApiClanEmojiCreateRequest {
|
315
|
-
category?: string;
|
316
|
-
clan_id?: string;
|
317
|
-
id?: string;
|
318
|
-
shortname?: string;
|
319
|
-
source?: string;
|
320
|
-
}
|
321
|
-
/** Get clan profile. */
|
322
|
-
export interface ApiClanProfile {
|
323
|
-
avartar?: string;
|
324
|
-
clan_id?: string;
|
325
|
-
nick_name?: string;
|
326
|
-
user_id?: string;
|
327
|
-
}
|
328
|
-
/** */
|
329
|
-
export interface ApiClanStickerAddRequest {
|
330
|
-
category?: string;
|
331
|
-
clan_id?: string;
|
332
|
-
id?: string;
|
333
|
-
shortname?: string;
|
334
|
-
source?: string;
|
335
|
-
}
|
336
|
-
/** A list of users belonging to a clan, along with their role. */
|
337
|
-
export interface ApiClanUserList {
|
338
|
-
clan_id?: string;
|
339
|
-
clan_users?: Array<ClanUserListClanUser>;
|
340
|
-
cursor?: string;
|
341
|
-
}
|
342
|
-
/** */
|
343
|
-
export interface ApiCreateCategoryDescRequest {
|
344
|
-
category_name?: string;
|
345
|
-
clan_id?: string;
|
346
|
-
}
|
347
|
-
/** Create a channel within clan. */
|
348
|
-
export interface ApiCreateChannelDescRequest {
|
349
|
-
category_id?: string;
|
350
|
-
channel_id?: string;
|
351
|
-
channel_label?: string;
|
352
|
-
channel_private?: number;
|
353
|
-
clan_id?: string;
|
354
|
-
parrent_id?: string;
|
355
|
-
type?: number;
|
356
|
-
user_ids?: Array<string>;
|
357
|
-
}
|
358
|
-
/** */
|
359
|
-
export interface ApiCreateClanDescRequest {
|
360
|
-
banner?: string;
|
361
|
-
clan_name?: string;
|
362
|
-
creator_id?: string;
|
363
|
-
logo?: string;
|
364
|
-
}
|
365
|
-
/** Create a event within clan. */
|
366
|
-
export interface ApiCreateEventRequest {
|
367
|
-
address?: string;
|
368
|
-
channel_id?: string;
|
369
|
-
clan_id?: string;
|
370
|
-
description?: string;
|
371
|
-
end_time?: string;
|
372
|
-
logo?: string;
|
373
|
-
start_time?: string;
|
374
|
-
title?: string;
|
375
|
-
}
|
376
|
-
/** Create a role within clan. */
|
377
|
-
export interface ApiCreateRoleRequest {
|
378
|
-
active_permission_ids?: Array<string>;
|
379
|
-
add_user_ids?: Array<string>;
|
380
|
-
allow_mention?: number;
|
381
|
-
clan_id?: string;
|
382
|
-
color?: string;
|
383
|
-
description?: string;
|
384
|
-
display_online?: number;
|
385
|
-
role_icon?: string;
|
386
|
-
title?: string;
|
387
|
-
}
|
388
|
-
/** Delete a channel the user has access to. */
|
389
|
-
export interface ApiDeleteChannelDescRequest {
|
390
|
-
channel_id?: string;
|
391
|
-
}
|
392
|
-
/** */
|
393
|
-
export interface ApiDeleteEventRequest {
|
394
|
-
event_id?: string;
|
395
|
-
}
|
396
|
-
/** Delete a role the user has access to. */
|
397
|
-
export interface ApiDeleteRoleRequest {
|
398
|
-
channel_id?: string;
|
399
|
-
role_id?: string;
|
400
|
-
}
|
401
|
-
/** Storage objects to delete. */
|
402
|
-
export interface ApiDeleteStorageObjectId {
|
403
|
-
collection?: string;
|
404
|
-
key?: string;
|
405
|
-
version?: string;
|
406
|
-
}
|
407
|
-
/** Batch delete storage objects. */
|
408
|
-
export interface ApiDeleteStorageObjectsRequest {
|
409
|
-
object_ids?: Array<ApiDeleteStorageObjectId>;
|
410
|
-
}
|
411
|
-
/** */
|
412
|
-
export interface ApiEventList {
|
413
|
-
events?: Array<ApiEventManagement>;
|
414
|
-
}
|
415
|
-
/** */
|
416
|
-
export interface ApiEventManagement {
|
417
|
-
active?: number;
|
418
|
-
address?: string;
|
419
|
-
channel_id?: string;
|
420
|
-
clan_id?: string;
|
421
|
-
create_time?: string;
|
422
|
-
creator_id?: string;
|
423
|
-
description?: string;
|
424
|
-
end_time?: string;
|
425
|
-
id?: string;
|
426
|
-
logo?: string;
|
427
|
-
start_event?: number;
|
428
|
-
start_time?: string;
|
429
|
-
title?: string;
|
430
|
-
user_ids?: Array<string>;
|
431
|
-
}
|
432
|
-
/** */
|
433
|
-
export interface ApiFilterParam {
|
434
|
-
field_name?: string;
|
435
|
-
field_value?: string;
|
436
|
-
}
|
437
|
-
/** A friend of a user. */
|
438
|
-
export interface ApiFriend {
|
439
|
-
state?: number;
|
440
|
-
update_time?: string;
|
441
|
-
user?: ApiUser;
|
442
|
-
}
|
443
|
-
/** A collection of zero or more friends of the user. */
|
444
|
-
export interface ApiFriendList {
|
445
|
-
cursor?: string;
|
446
|
-
friends?: Array<ApiFriend>;
|
447
|
-
}
|
448
|
-
/** */
|
449
|
-
export interface ApiHashtagDmVoice {
|
450
|
-
channel_id?: string;
|
451
|
-
channel_label?: string;
|
452
|
-
channel_private?: number;
|
453
|
-
clan_id?: string;
|
454
|
-
clan_name?: string;
|
455
|
-
meeting_code?: string;
|
456
|
-
type?: number;
|
457
|
-
}
|
458
|
-
/** */
|
459
|
-
export interface ApiHashtagDmVoiceList {
|
460
|
-
hashtage_voice?: Array<ApiHashtagDmVoice>;
|
461
|
-
}
|
462
|
-
/** Add link invite users to. */
|
463
|
-
export interface ApiInviteUserRes {
|
464
|
-
channel_id?: string;
|
465
|
-
channel_label?: string;
|
466
|
-
clan_id?: string;
|
467
|
-
clan_name?: string;
|
468
|
-
expiry_time?: string;
|
469
|
-
user_joined?: boolean;
|
470
|
-
}
|
471
|
-
/** Add link invite users to. */
|
472
|
-
export interface ApiLinkInviteUser {
|
473
|
-
channel_id?: string;
|
474
|
-
clan_id?: string;
|
475
|
-
create_time?: string;
|
476
|
-
creator_id?: string;
|
477
|
-
expiry_time?: string;
|
478
|
-
id?: string;
|
479
|
-
invite_link?: string;
|
480
|
-
}
|
481
|
-
/** Add link invite users to. */
|
482
|
-
export interface ApiLinkInviteUserRequest {
|
483
|
-
channel_id?: string;
|
484
|
-
clan_id?: string;
|
485
|
-
expiry_time?: number;
|
486
|
-
}
|
487
|
-
/** Link Steam to the current user's account. */
|
488
|
-
export interface ApiLinkSteamRequest {
|
489
|
-
account?: ApiAccountSteam;
|
490
|
-
sync?: boolean;
|
491
|
-
}
|
492
|
-
/** */
|
493
|
-
export interface ApiNotifiReactMessage {
|
494
|
-
channel_id?: string;
|
495
|
-
id?: string;
|
496
|
-
user_id?: string;
|
497
|
-
}
|
498
|
-
/** A notification in the server. */
|
499
|
-
export interface ApiNotification {
|
500
|
-
avatar_url?: string;
|
501
|
-
channel_id?: string;
|
502
|
-
channel_type?: number;
|
503
|
-
clan_id?: string;
|
504
|
-
code?: number;
|
505
|
-
content?: string;
|
506
|
-
create_time?: string;
|
507
|
-
id?: string;
|
508
|
-
persistent?: boolean;
|
509
|
-
sender_id?: string;
|
510
|
-
subject?: string;
|
511
|
-
}
|
512
|
-
/** */
|
513
|
-
export interface ApiNotificationChannel {
|
514
|
-
channel_id?: string;
|
515
|
-
}
|
516
|
-
/** */
|
517
|
-
export interface ApiNotificationChannelCategoySetting {
|
518
|
-
channel_category_label?: string;
|
519
|
-
channel_category_title?: string;
|
520
|
-
id?: string;
|
521
|
-
notification_setting_type?: number;
|
522
|
-
}
|
523
|
-
/** */
|
524
|
-
export interface ApiNotificationChannelCategoySettingsList {
|
525
|
-
noti_channel_categoy_setting?: Array<ApiNotificationChannelCategoySetting>;
|
526
|
-
}
|
527
|
-
/** A collection of zero or more notifications. */
|
528
|
-
export interface ApiNotificationList {
|
529
|
-
cacheable_cursor?: string;
|
530
|
-
notifications?: Array<ApiNotification>;
|
531
|
-
}
|
532
|
-
/** */
|
533
|
-
export interface ApiNotificationSetting {
|
534
|
-
id?: string;
|
535
|
-
notification_setting_type?: number;
|
536
|
-
}
|
537
|
-
/** */
|
538
|
-
export interface ApiNotificationUserChannel {
|
539
|
-
active?: number;
|
540
|
-
id?: string;
|
541
|
-
notification_setting_type?: number;
|
542
|
-
time_mute?: string;
|
543
|
-
}
|
544
|
-
/** */
|
545
|
-
export interface ApiPermission {
|
546
|
-
active?: number;
|
547
|
-
description?: string;
|
548
|
-
id?: string;
|
549
|
-
scope?: number;
|
550
|
-
slug?: string;
|
551
|
-
title?: string;
|
552
|
-
}
|
553
|
-
/** A list of permission description, usually a result of a list operation. */
|
554
|
-
export interface ApiPermissionList {
|
555
|
-
permissions?: Array<ApiPermission>;
|
556
|
-
}
|
557
|
-
/** */
|
558
|
-
export interface ApiPermissionRoleChannel {
|
559
|
-
active?: boolean;
|
560
|
-
permission_id?: string;
|
561
|
-
}
|
562
|
-
/** A list of permission role channel. */
|
563
|
-
export interface ApiPermissionRoleChannelList {
|
564
|
-
permission_role_channel?: Array<ApiPermissionRoleChannel>;
|
565
|
-
}
|
566
|
-
/** */
|
567
|
-
export interface ApiPermissionUpdate {
|
568
|
-
permission_id?: string;
|
569
|
-
type?: number;
|
570
|
-
}
|
571
|
-
/** */
|
572
|
-
export interface ApiPinMessage {
|
573
|
-
avatar?: string;
|
574
|
-
channel_id?: string;
|
575
|
-
content?: string;
|
576
|
-
id?: string;
|
577
|
-
message_id?: string;
|
578
|
-
sender_id?: string;
|
579
|
-
username?: string;
|
580
|
-
}
|
581
|
-
/** */
|
582
|
-
export interface ApiPinMessageRequest {
|
583
|
-
channel_id?: string;
|
584
|
-
message_id?: string;
|
585
|
-
}
|
586
|
-
/** */
|
587
|
-
export interface ApiPinMessagesList {
|
588
|
-
pin_messages_list?: Array<ApiPinMessage>;
|
589
|
-
}
|
590
|
-
/** Storage objects to get. */
|
591
|
-
export interface ApiReadStorageObjectId {
|
592
|
-
collection?: string;
|
593
|
-
key?: string;
|
594
|
-
user_id?: string;
|
595
|
-
}
|
596
|
-
/** Batch get storage objects. */
|
597
|
-
export interface ApiReadStorageObjectsRequest {
|
598
|
-
object_ids?: Array<ApiReadStorageObjectId>;
|
599
|
-
}
|
600
|
-
/** */
|
601
|
-
export interface ApiRegistrationEmailRequest {
|
602
|
-
avatar_url?: string;
|
603
|
-
display_name?: string;
|
604
|
-
dob?: string;
|
605
|
-
email?: string;
|
606
|
-
password?: string;
|
607
|
-
username?: string;
|
608
|
-
vars?: Record<string, string>;
|
609
|
-
}
|
610
|
-
/** */
|
611
|
-
export interface ApiRole {
|
612
|
-
active?: number;
|
613
|
-
allow_mention?: number;
|
614
|
-
channel_ids?: Array<string>;
|
615
|
-
clan_id?: string;
|
616
|
-
color?: string;
|
617
|
-
creator_id?: string;
|
618
|
-
description?: string;
|
619
|
-
display_online?: number;
|
620
|
-
id?: string;
|
621
|
-
permission_list?: ApiPermissionList;
|
622
|
-
role_channel_active?: number;
|
623
|
-
role_icon?: string;
|
624
|
-
role_user_list?: ApiRoleUserList;
|
625
|
-
slug?: string;
|
626
|
-
title?: string;
|
627
|
-
}
|
628
|
-
/** A list of role description, usually a result of a list operation. */
|
629
|
-
export interface ApiRoleList {
|
630
|
-
cacheable_cursor?: string;
|
631
|
-
next_cursor?: string;
|
632
|
-
prev_cursor?: string;
|
633
|
-
roles?: Array<ApiRole>;
|
634
|
-
}
|
635
|
-
/** */
|
636
|
-
export interface ApiRoleUserList {
|
637
|
-
cursor?: string;
|
638
|
-
role_users?: Array<RoleUserListRoleUser>;
|
639
|
-
}
|
640
|
-
/** Execute an Lua function on the server. */
|
641
|
-
export interface ApiRpc {
|
642
|
-
http_key?: string;
|
643
|
-
id?: string;
|
644
|
-
payload?: string;
|
645
|
-
}
|
646
|
-
/** */
|
647
|
-
export interface ApiSearchMessageDocument {
|
648
|
-
attachment?: string;
|
649
|
-
avatar_url?: string;
|
650
|
-
channel_id?: string;
|
651
|
-
channel_label?: string;
|
652
|
-
channel_type?: number;
|
653
|
-
clan_id?: string;
|
654
|
-
clan_name?: string;
|
655
|
-
content?: string;
|
656
|
-
create_time?: string;
|
657
|
-
display_name?: string;
|
658
|
-
mention?: string;
|
659
|
-
message_id?: string;
|
660
|
-
reaction?: string;
|
661
|
-
reference?: string;
|
662
|
-
sender_id?: string;
|
663
|
-
update_time?: string;
|
664
|
-
username?: string;
|
665
|
-
}
|
666
|
-
/** */
|
667
|
-
export interface ApiSearchMessageRequest {
|
668
|
-
filters?: Array<ApiFilterParam>;
|
669
|
-
from?: number;
|
670
|
-
size?: number;
|
671
|
-
sorts?: Array<ApiSortParam>;
|
672
|
-
}
|
673
|
-
/** */
|
674
|
-
export interface ApiSearchMessageResponse {
|
675
|
-
messages?: Array<ApiSearchMessageDocument>;
|
676
|
-
total?: number;
|
677
|
-
}
|
678
|
-
/** A user's session used to authenticate messages. */
|
679
|
-
export interface ApiSession {
|
680
|
-
created?: boolean;
|
681
|
-
refresh_token?: string;
|
682
|
-
token?: string;
|
683
|
-
}
|
684
|
-
/** Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user. */
|
685
|
-
export interface ApiSessionLogoutRequest {
|
686
|
-
refresh_token?: string;
|
687
|
-
token?: string;
|
688
|
-
}
|
689
|
-
/** Authenticate against the server with a refresh token. */
|
690
|
-
export interface ApiSessionRefreshRequest {
|
691
|
-
token?: string;
|
692
|
-
vars?: Record<string, string>;
|
693
|
-
}
|
694
|
-
/** */
|
695
|
-
export interface ApiSetDefaultNotificationRequest {
|
696
|
-
category_id?: string;
|
697
|
-
clan_id?: string;
|
698
|
-
notification_type?: number;
|
699
|
-
}
|
700
|
-
/** */
|
701
|
-
export interface ApiSetMuteNotificationRequest {
|
702
|
-
active?: number;
|
703
|
-
channel_id?: string;
|
704
|
-
notification_type?: number;
|
705
|
-
}
|
706
|
-
/** */
|
707
|
-
export interface ApiSetNotificationRequest {
|
708
|
-
channel_category_id?: string;
|
709
|
-
notification_type?: number;
|
710
|
-
time_mute?: string;
|
711
|
-
}
|
712
|
-
/** */
|
713
|
-
export interface ApiSortParam {
|
714
|
-
field_name?: string;
|
715
|
-
order?: string;
|
716
|
-
}
|
717
|
-
/** An object within the storage engine. */
|
718
|
-
export interface ApiStorageObject {
|
719
|
-
collection?: string;
|
720
|
-
create_time?: string;
|
721
|
-
key?: string;
|
722
|
-
permission_read?: number;
|
723
|
-
permission_write?: number;
|
724
|
-
update_time?: string;
|
725
|
-
user_id?: string;
|
726
|
-
value?: string;
|
727
|
-
version?: string;
|
728
|
-
}
|
729
|
-
/** A storage acknowledgement. */
|
730
|
-
export interface ApiStorageObjectAck {
|
731
|
-
collection?: string;
|
732
|
-
create_time?: string;
|
733
|
-
key?: string;
|
734
|
-
update_time?: string;
|
735
|
-
user_id?: string;
|
736
|
-
version?: string;
|
737
|
-
}
|
738
|
-
/** Batch of acknowledgements for the storage object write. */
|
739
|
-
export interface ApiStorageObjectAcks {
|
740
|
-
acks?: Array<ApiStorageObjectAck>;
|
741
|
-
}
|
742
|
-
/** List of storage objects. */
|
743
|
-
export interface ApiStorageObjectList {
|
744
|
-
cursor?: string;
|
745
|
-
objects?: Array<ApiStorageObject>;
|
746
|
-
}
|
747
|
-
/** Batch of storage objects. */
|
748
|
-
export interface ApiStorageObjects {
|
749
|
-
objects?: Array<ApiStorageObject>;
|
750
|
-
}
|
751
|
-
/** Update a user's account details. */
|
752
|
-
export interface ApiUpdateAccountRequest {
|
753
|
-
about_me?: string;
|
754
|
-
avatar_url?: string;
|
755
|
-
display_name?: string;
|
756
|
-
lang_tag?: string;
|
757
|
-
location?: string;
|
758
|
-
timezone?: string;
|
759
|
-
username?: string;
|
760
|
-
}
|
761
|
-
/** */
|
762
|
-
export interface ApiUpdateCategoryDescRequest {
|
763
|
-
category_id?: string;
|
764
|
-
category_name?: string;
|
765
|
-
}
|
766
|
-
/** */
|
767
|
-
export interface ApiUpdateRoleChannelRequest {
|
768
|
-
channel_id?: string;
|
769
|
-
permission_update?: Array<ApiPermissionUpdate>;
|
770
|
-
role_id?: string;
|
771
|
-
}
|
772
|
-
/** Fetch a batch of zero or more users from the server. */
|
773
|
-
export interface ApiUpdateUsersRequest {
|
774
|
-
avatar_url?: string;
|
775
|
-
display_name?: string;
|
776
|
-
}
|
777
|
-
/** */
|
778
|
-
export interface ApiUploadAttachment {
|
779
|
-
filename?: string;
|
780
|
-
url?: string;
|
781
|
-
}
|
782
|
-
/** */
|
783
|
-
export interface ApiUploadAttachmentRequest {
|
784
|
-
filename?: string;
|
785
|
-
filetype?: string;
|
786
|
-
height?: number;
|
787
|
-
size?: number;
|
788
|
-
width?: number;
|
789
|
-
}
|
790
|
-
/** A user in the server. */
|
791
|
-
export interface ApiUser {
|
792
|
-
about_me?: string;
|
793
|
-
apple_id?: string;
|
794
|
-
avatar_url?: string;
|
795
|
-
create_time?: string;
|
796
|
-
display_name?: string;
|
797
|
-
edge_count?: number;
|
798
|
-
facebook_id?: string;
|
799
|
-
gamecenter_id?: string;
|
800
|
-
google_id?: string;
|
801
|
-
id?: string;
|
802
|
-
join_time?: string;
|
803
|
-
lang_tag?: string;
|
804
|
-
location?: string;
|
805
|
-
metadata?: string;
|
806
|
-
online?: boolean;
|
807
|
-
steam_id?: string;
|
808
|
-
timezone?: string;
|
809
|
-
update_time?: string;
|
810
|
-
username?: string;
|
811
|
-
}
|
812
|
-
/** A collection of zero or more users. */
|
813
|
-
export interface ApiUsers {
|
814
|
-
users?: Array<ApiUser>;
|
815
|
-
}
|
816
|
-
/** A list of users belonging to a channel, along with their role. */
|
817
|
-
export interface ApiVoiceChannelUser {
|
818
|
-
channel_id?: string;
|
819
|
-
id?: string;
|
820
|
-
participant?: string;
|
821
|
-
user_id?: string;
|
822
|
-
}
|
823
|
-
/** A list of users belonging to a channel, along with their role. */
|
824
|
-
export interface ApiVoiceChannelUserList {
|
825
|
-
voice_channel_users?: Array<ApiVoiceChannelUser>;
|
826
|
-
}
|
827
|
-
/** */
|
828
|
-
export interface ApiWebhook {
|
829
|
-
active?: number;
|
830
|
-
avatar?: string;
|
831
|
-
channel_id?: string;
|
832
|
-
create_time?: string;
|
833
|
-
creator_id?: string;
|
834
|
-
id?: string;
|
835
|
-
update_time?: string;
|
836
|
-
url?: string;
|
837
|
-
webhook_name?: string;
|
838
|
-
}
|
839
|
-
/** */
|
840
|
-
export interface ApiWebhookCreateRequest {
|
841
|
-
avatar?: string;
|
842
|
-
channel_id?: string;
|
843
|
-
webhook_name?: string;
|
844
|
-
}
|
845
|
-
/** */
|
846
|
-
export interface ApiWebhookGenerateResponse {
|
847
|
-
avatar?: string;
|
848
|
-
channel_id?: string;
|
849
|
-
hook_name?: string;
|
850
|
-
url?: string;
|
851
|
-
}
|
852
|
-
/** */
|
853
|
-
export interface ApiWebhookListResponse {
|
854
|
-
webhooks?: Array<ApiWebhook>;
|
855
|
-
}
|
856
|
-
/** The object to store. */
|
857
|
-
export interface ApiWriteStorageObject {
|
858
|
-
collection?: string;
|
859
|
-
key?: string;
|
860
|
-
permission_read?: number;
|
861
|
-
permission_write?: number;
|
862
|
-
value?: string;
|
863
|
-
version?: string;
|
864
|
-
}
|
865
|
-
/** Write objects to the storage engine. */
|
866
|
-
export interface ApiWriteStorageObjectsRequest {
|
867
|
-
objects?: Array<ApiWriteStorageObject>;
|
868
|
-
}
|
869
|
-
/** Represents an event to be passed through the server to registered event handlers. */
|
870
|
-
export interface MezonapiEvent {
|
871
|
-
external?: boolean;
|
872
|
-
name?: string;
|
873
|
-
properties?: Record<string, string>;
|
874
|
-
timestamp?: string;
|
875
|
-
}
|
876
|
-
/** */
|
877
|
-
export interface ProtobufAny {
|
878
|
-
}
|
879
|
-
/** */
|
880
|
-
export interface RpcStatus {
|
881
|
-
code?: number;
|
882
|
-
details?: Array<ProtobufAny>;
|
883
|
-
message?: string;
|
884
|
-
}
|
885
|
-
export declare class MezonApi {
|
886
|
-
readonly serverKey: string;
|
887
|
-
readonly basePath: string;
|
888
|
-
readonly timeoutMs: number;
|
889
|
-
constructor(serverKey: string, basePath: string, timeoutMs: number);
|
890
|
-
/** A healthcheck which load balancers can use to check the service. */
|
891
|
-
healthcheck(bearerToken: string, options?: any): Promise<any>;
|
892
|
-
/** Delete the current user's account. */
|
893
|
-
deleteAccount(bearerToken: string, options?: any): Promise<any>;
|
894
|
-
/** Fetch the current user's account. */
|
895
|
-
getAccount(bearerToken: string, options?: any): Promise<ApiAccount>;
|
896
|
-
/** Update fields in the current user's account. */
|
897
|
-
updateAccount(bearerToken: string, body: ApiUpdateAccountRequest, options?: any): Promise<any>;
|
898
|
-
/** Authenticate a user with an Apple ID against the server. */
|
899
|
-
authenticateApple(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountApple, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
|
900
|
-
/** Authenticate a user with a custom id against the server. */
|
901
|
-
authenticateCustom(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountCustom, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
|
902
|
-
/** Authenticate a user with a device id against the server. */
|
903
|
-
authenticateDevice(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountDevice, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
|
904
|
-
/** Authenticate a user with an email+password against the server. */
|
905
|
-
authenticateEmail(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountEmail, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
|
906
|
-
/** Authenticate a user with a Facebook OAuth token against the server. */
|
907
|
-
authenticateFacebook(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountFacebook, create?: boolean, username?: string, sync?: boolean, options?: any): Promise<ApiSession>;
|
908
|
-
/** Authenticate a user with a Facebook Instant Game token against the server. */
|
909
|
-
authenticateFacebookInstantGame(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountFacebookInstantGame, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
|
910
|
-
/** Authenticate a user with Apple's GameCenter against the server. */
|
911
|
-
authenticateGameCenter(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountGameCenter, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
|
912
|
-
/** Authenticate a user with Google against the server. */
|
913
|
-
authenticateGoogle(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountGoogle, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
|
914
|
-
/** Authenticate a user with Steam against the server. */
|
915
|
-
authenticateSteam(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountSteam, create?: boolean, username?: string, sync?: boolean, options?: any): Promise<ApiSession>;
|
916
|
-
/** Add an Apple ID to the social profiles on the current user's account. */
|
917
|
-
linkApple(bearerToken: string, body: ApiAccountApple, options?: any): Promise<any>;
|
918
|
-
/** Add a custom ID to the social profiles on the current user's account. */
|
919
|
-
linkCustom(bearerToken: string, body: ApiAccountCustom, options?: any): Promise<any>;
|
920
|
-
/** Add a device ID to the social profiles on the current user's account. */
|
921
|
-
linkDevice(bearerToken: string, body: ApiAccountDevice, options?: any): Promise<any>;
|
922
|
-
/** Add an email+password to the social profiles on the current user's account. */
|
923
|
-
linkEmail(bearerToken: string, body: ApiAccountEmail, options?: any): Promise<any>;
|
924
|
-
/** Add Facebook to the social profiles on the current user's account. */
|
925
|
-
linkFacebook(bearerToken: string, account: ApiAccountFacebook, sync?: boolean, options?: any): Promise<any>;
|
926
|
-
/** Add Facebook Instant Game to the social profiles on the current user's account. */
|
927
|
-
linkFacebookInstantGame(bearerToken: string, body: ApiAccountFacebookInstantGame, options?: any): Promise<any>;
|
928
|
-
/** Add Apple's GameCenter to the social profiles on the current user's account. */
|
929
|
-
linkGameCenter(bearerToken: string, body: ApiAccountGameCenter, options?: any): Promise<any>;
|
930
|
-
/** Add Google to the social profiles on the current user's account. */
|
931
|
-
linkGoogle(bearerToken: string, body: ApiAccountGoogle, options?: any): Promise<any>;
|
932
|
-
/** Add Steam to the social profiles on the current user's account. */
|
933
|
-
linkSteam(bearerToken: string, body: ApiLinkSteamRequest, options?: any): Promise<any>;
|
934
|
-
/** Authenticate a user with an email+password against the server. */
|
935
|
-
registrationEmail(bearerToken: string, body: ApiRegistrationEmailRequest, options?: any): Promise<ApiSession>;
|
936
|
-
/** Refresh a user's session using a refresh token retrieved from a previous authentication request. */
|
937
|
-
sessionRefresh(basicAuthUsername: string, basicAuthPassword: string, body: ApiSessionRefreshRequest, options?: any): Promise<ApiSession>;
|
938
|
-
/** Remove the Apple ID from the social profiles on the current user's account. */
|
939
|
-
unlinkApple(bearerToken: string, body: ApiAccountApple, options?: any): Promise<any>;
|
940
|
-
/** Remove the custom ID from the social profiles on the current user's account. */
|
941
|
-
unlinkCustom(bearerToken: string, body: ApiAccountCustom, options?: any): Promise<any>;
|
942
|
-
/** Remove the device ID from the social profiles on the current user's account. */
|
943
|
-
unlinkDevice(bearerToken: string, body: ApiAccountDevice, options?: any): Promise<any>;
|
944
|
-
/** Remove the email+password from the social profiles on the current user's account. */
|
945
|
-
unlinkEmail(bearerToken: string, body: ApiAccountEmail, options?: any): Promise<any>;
|
946
|
-
/** Remove Facebook from the social profiles on the current user's account. */
|
947
|
-
unlinkFacebook(bearerToken: string, body: ApiAccountFacebook, options?: any): Promise<any>;
|
948
|
-
/** Remove Facebook Instant Game profile from the social profiles on the current user's account. */
|
949
|
-
unlinkFacebookInstantGame(bearerToken: string, body: ApiAccountFacebookInstantGame, options?: any): Promise<any>;
|
950
|
-
/** Remove Apple's GameCenter from the social profiles on the current user's account. */
|
951
|
-
unlinkGameCenter(bearerToken: string, body: ApiAccountGameCenter, options?: any): Promise<any>;
|
952
|
-
/** Remove Google from the social profiles on the current user's account. */
|
953
|
-
unlinkGoogle(bearerToken: string, body: ApiAccountGoogle, options?: any): Promise<any>;
|
954
|
-
/** Remove Steam from the social profiles on the current user's account. */
|
955
|
-
unlinkSteam(bearerToken: string, body: ApiAccountSteam, options?: any): Promise<any>;
|
956
|
-
/** */
|
957
|
-
listCategoryDescs(bearerToken: string, clanId: string, creatorId?: string, categoryName?: string, categoryId?: string, options?: any): Promise<ApiCategoryDescList>;
|
958
|
-
/** List a channel's message history. */
|
959
|
-
listChannelMessages(bearerToken: string, channelId: string, messageId?: string, limit?: number, direction?: number, options?: any): Promise<ApiChannelMessageList>;
|
960
|
-
/** Add users to a channel. */
|
961
|
-
addChannelUsers(bearerToken: string, channelId: string, userIds?: Array<string>, options?: any): Promise<any>;
|
962
|
-
/** List all attachment that are part of a channel. */
|
963
|
-
listChannelAttachment(bearerToken: string, channelId: string, clanId?: string, fileType?: string, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiChannelAttachmentList>;
|
964
|
-
/** Leave a channel the user is a member of. */
|
965
|
-
leaveChannel(bearerToken: string, channelId: string, options?: any): Promise<any>;
|
966
|
-
/** Kick a set of users from a channel. */
|
967
|
-
removeChannelUsers(bearerToken: string, channelId: string, userIds?: Array<string>, options?: any): Promise<any>;
|
968
|
-
/** List all users that are part of a channel. */
|
969
|
-
listChannelUsers(bearerToken: string, channelId: string, clanId?: string, channelType?: number, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiChannelUserList>;
|
970
|
-
/** List user channels */
|
971
|
-
listChannelDescs(bearerToken: string, limit?: number, state?: number, cursor?: string, clanId?: string, channelType?: number, options?: any): Promise<ApiChannelDescList>;
|
972
|
-
/** Create a new channel with the current user as the owner. */
|
973
|
-
createChannelDesc(bearerToken: string, body: ApiCreateChannelDescRequest, options?: any): Promise<ApiChannelDescription>;
|
974
|
-
/** Delete a channel by ID. */
|
975
|
-
deleteChannelDesc(bearerToken: string, channelId: string, options?: any): Promise<any>;
|
976
|
-
/** Update fields in a given channel. */
|
977
|
-
updateChannelDesc(bearerToken: string, channelId: string, body: MezonUpdateChannelDescBody, options?: any): Promise<any>;
|
978
|
-
/** List all users that are part of a channel. */
|
979
|
-
listChannelVoiceUsers(bearerToken: string, clanId?: string, channelId?: string, channelType?: number, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiVoiceChannelUserList>;
|
980
|
-
/** List clans */
|
981
|
-
listClanDescs(bearerToken: string, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiClanDescList>;
|
982
|
-
/** Create a clan */
|
983
|
-
createClanDesc(bearerToken: string, body: ApiCreateClanDescRequest, options?: any): Promise<ApiClanDesc>;
|
984
|
-
/** Delete a clan desc by ID. */
|
985
|
-
deleteClanDesc(bearerToken: string, clanDescId: string, options?: any): Promise<any>;
|
986
|
-
/** Update fields in a given clan. */
|
987
|
-
updateClanDesc(bearerToken: string, clanId: string, body: MezonUpdateClanDescBody, options?: any): Promise<any>;
|
988
|
-
/** Kick a set of users from a clan. */
|
989
|
-
removeClanUsers(bearerToken: string, clanId: string, userIds?: Array<string>, options?: any): Promise<any>;
|
990
|
-
/** List all users that are part of a clan. */
|
991
|
-
listClanUsers(bearerToken: string, clanId: string, options?: any): Promise<ApiClanUserList>;
|
992
|
-
/** check duplicate clan name */
|
993
|
-
checkDuplicateClanName(bearerToken: string, clanName: string, options?: any): Promise<ApiCheckDuplicateClanNameResponse>;
|
994
|
-
/** Get a clan desc profile */
|
995
|
-
getClanDescProfile(bearerToken: string, clanId: string, options?: any): Promise<ApiClanDescProfile>;
|
996
|
-
/** Update fields in a given clan profile. */
|
997
|
-
updateClanDescProfile(bearerToken: string, clanId: string, body: MezonUpdateClanDescProfileBody, options?: any): Promise<any>;
|
998
|
-
/** */
|
999
|
-
createCategoryDesc(bearerToken: string, body: ApiCreateCategoryDescRequest, options?: any): Promise<ApiCategoryDesc>;
|
1000
|
-
/** */
|
1001
|
-
deleteCategoryDesc(bearerToken: string, creatorId: string, options?: any): Promise<any>;
|
1002
|
-
/** regist fcm device token */
|
1003
|
-
registFCMDeviceToken(bearerToken: string, token?: string, deviceId?: string, platform?: string, options?: any): Promise<any>;
|
1004
|
-
/** close direct message. */
|
1005
|
-
closeDirectMess(bearerToken: string, body: ApiDeleteChannelDescRequest, options?: any): Promise<any>;
|
1006
|
-
/** open direct message. */
|
1007
|
-
openDirectMess(bearerToken: string, body: ApiDeleteChannelDescRequest, options?: any): Promise<any>;
|
1008
|
-
/** Post clan Emoji /v2/emoji/create */
|
1009
|
-
createClanEmoji(bearerToken: string, body: ApiClanEmojiCreateRequest, options?: any): Promise<any>;
|
1010
|
-
/** Delete a emoji by ID. */
|
1011
|
-
deleteByIdClanEmoji(bearerToken: string, id: string, clanId?: string, options?: any): Promise<any>;
|
1012
|
-
/** Update ClanEmoj By id */
|
1013
|
-
updateClanEmojiById(bearerToken: string, id: string, body: MezonUpdateClanEmojiByIdBody, options?: any): Promise<any>;
|
1014
|
-
/** Search message from elasticsearch service. */
|
1015
|
-
searchMessage(bearerToken: string, body: ApiSearchMessageRequest, options?: any): Promise<ApiSearchMessageResponse>;
|
1016
|
-
/** Submit an event for processing in the server's registered runtime custom events handler. */
|
1017
|
-
event(bearerToken: string, body: MezonapiEvent, options?: any): Promise<any>;
|
1018
|
-
/** List user events */
|
1019
|
-
listEvents(bearerToken: string, clanId?: string, options?: any): Promise<ApiEventList>;
|
1020
|
-
/** Create a new event for clan. */
|
1021
|
-
createEvent(bearerToken: string, body: ApiCreateEventRequest, options?: any): Promise<ApiEventManagement>;
|
1022
|
-
/** Update fields in a given event. */
|
1023
|
-
updateEventUser(bearerToken: string, body: ApiDeleteEventRequest, options?: any): Promise<any>;
|
1024
|
-
/** Delete a event by ID. */
|
1025
|
-
deleteEvent(bearerToken: string, eventId: string, options?: any): Promise<any>;
|
1026
|
-
/** Update fields in a given event. */
|
1027
|
-
updateEvent(bearerToken: string, eventId: string, body: MezonUpdateEventBody, options?: any): Promise<any>;
|
1028
|
-
/** Delete one or more users by ID or username. */
|
1029
|
-
deleteFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: any): Promise<any>;
|
1030
|
-
/** List all friends for the current user. */
|
1031
|
-
listFriends(bearerToken: string, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiFriendList>;
|
1032
|
-
/** Add friends by ID or username to a user's account. */
|
1033
|
-
addFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: any): Promise<any>;
|
1034
|
-
/** Block one or more users by ID or username. */
|
1035
|
-
blockFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: any): Promise<any>;
|
1036
|
-
/** Import Facebook friends and add them to a user's account. */
|
1037
|
-
importFacebookFriends(bearerToken: string, account: ApiAccountFacebook, reset?: boolean, options?: any): Promise<any>;
|
1038
|
-
/** Import Steam friends and add them to a user's account. */
|
1039
|
-
importSteamFriends(bearerToken: string, account: ApiAccountSteam, reset?: boolean, options?: any): Promise<any>;
|
1040
|
-
/** */
|
1041
|
-
getUserProfileOnClan(bearerToken: string, clanId: string, options?: any): Promise<ApiClanProfile>;
|
1042
|
-
/** List channelvoices */
|
1043
|
-
hashtagDMVoiceList(bearerToken: string, userId?: Array<string>, limit?: number, options?: any): Promise<ApiHashtagDmVoiceList>;
|
1044
|
-
/** Add users to a channel. */
|
1045
|
-
createLinkInviteUser(bearerToken: string, body: ApiLinkInviteUserRequest, options?: any): Promise<ApiLinkInviteUser>;
|
1046
|
-
/** Add users to a channel. */
|
1047
|
-
getLinkInvite(bearerToken: string, inviteId: string, options?: any): Promise<ApiInviteUserRes>;
|
1048
|
-
/** Add users to a channel. */
|
1049
|
-
inviteUser(bearerToken: string, inviteId: string, options?: any): Promise<ApiInviteUserRes>;
|
1050
|
-
/** set mute notification user channel. */
|
1051
|
-
setMuteNotificationChannel(bearerToken: string, body: ApiSetMuteNotificationRequest, options?: any): Promise<any>;
|
1052
|
-
/** Delete one or more notifications for the current user. */
|
1053
|
-
deleteNotifications(bearerToken: string, ids?: Array<string>, options?: any): Promise<any>;
|
1054
|
-
/** Fetch list of notifications. */
|
1055
|
-
listNotifications(bearerToken: string, limit?: number, clanId?: string, cacheableCursor?: string, options?: any): Promise<ApiNotificationList>;
|
1056
|
-
/** notification selected */
|
1057
|
-
getNotificationChannelSetting(bearerToken: string, channelId?: string, options?: any): Promise<ApiNotificationUserChannel>;
|
1058
|
-
/** set notification user channel. */
|
1059
|
-
setNotificationChannelSetting(bearerToken: string, body: ApiSetNotificationRequest, options?: any): Promise<any>;
|
1060
|
-
/** set notification user channel. */
|
1061
|
-
setNotificationClanSetting(bearerToken: string, body: ApiSetDefaultNotificationRequest, options?: any): Promise<any>;
|
1062
|
-
/** set notification user channel. */
|
1063
|
-
setNotificationCategorySetting(bearerToken: string, body: ApiSetNotificationRequest, options?: any): Promise<any>;
|
1064
|
-
/** */
|
1065
|
-
deleteNotificationCategorySetting(bearerToken: string, categoryId?: string, options?: any): Promise<any>;
|
1066
|
-
/** notification selected */
|
1067
|
-
getNotificationCategorySetting(bearerToken: string, categoryId?: string, options?: any): Promise<ApiNotificationUserChannel>;
|
1068
|
-
/** */
|
1069
|
-
deleteNotificationChannel(bearerToken: string, channelId?: string, options?: any): Promise<any>;
|
1070
|
-
/** notification selected */
|
1071
|
-
getNotificationClanSetting(bearerToken: string, clanId?: string, options?: any): Promise<ApiNotificationSetting>;
|
1072
|
-
/** notification category, channel selected */
|
1073
|
-
getChannelCategoryNotiSettingsList(bearerToken: string, clanId?: string, options?: any): Promise<ApiNotificationChannelCategoySettingsList>;
|
1074
|
-
/** */
|
1075
|
-
deleteNotiReactMessage(bearerToken: string, channelId?: string, options?: any): Promise<any>;
|
1076
|
-
/** */
|
1077
|
-
getNotificationReactMessage(bearerToken: string, channelId?: string, options?: any): Promise<ApiNotifiReactMessage>;
|
1078
|
-
/** */
|
1079
|
-
setNotificationReactMessage(bearerToken: string, body: ApiNotificationChannel, options?: any): Promise<any>;
|
1080
|
-
/** List permission role channel */
|
1081
|
-
getListPermissionRoleChannel(bearerToken: string, roleId?: string, channelId?: string, options?: any): Promise<ApiPermissionRoleChannelList>;
|
1082
|
-
/** set permission role channel. */
|
1083
|
-
setRoleChannelPermission(bearerToken: string, body: ApiUpdateRoleChannelRequest, options?: any): Promise<any>;
|
1084
|
-
/** Get permission list */
|
1085
|
-
getListPermission(bearerToken: string, options?: any): Promise<ApiPermissionList>;
|
1086
|
-
/** */
|
1087
|
-
getPermissionOfUserInTheClan(bearerToken: string, clanId: string, options?: any): Promise<ApiPermissionList>;
|
1088
|
-
/** */
|
1089
|
-
deletePinMessage(bearerToken: string, messageId?: string, options?: any): Promise<any>;
|
1090
|
-
/** */
|
1091
|
-
getPinMessagesList(bearerToken: string, channelId?: string, options?: any): Promise<ApiPinMessagesList>;
|
1092
|
-
/** set notification user channel. */
|
1093
|
-
createPinMessage(bearerToken: string, body: ApiPinMessageRequest, options?: any): Promise<any>;
|
1094
|
-
/** */
|
1095
|
-
addRolesChannelDesc(bearerToken: string, body: ApiAddRoleChannelDescRequest, options?: any): Promise<any>;
|
1096
|
-
/** update the category of a channel */
|
1097
|
-
changeChannelCategory(bearerToken: string, newCategoryId: string, body: MezonChangeChannelCategoryBody, options?: any): Promise<any>;
|
1098
|
-
/** Update a role when Delete a role by ID. */
|
1099
|
-
deleteRoleChannelDesc(bearerToken: string, body: ApiDeleteRoleRequest, options?: any): Promise<any>;
|
1100
|
-
/** List user roles */
|
1101
|
-
listRoles(bearerToken: string, limit?: number, state?: number, cursor?: string, clanId?: string, options?: any): Promise<ApiRoleList>;
|
1102
|
-
/** Create a new role for clan. */
|
1103
|
-
createRole(bearerToken: string, body: ApiCreateRoleRequest, options?: any): Promise<ApiRole>;
|
1104
|
-
/** Update a role when Delete a role by ID. */
|
1105
|
-
updateRoleDelete(bearerToken: string, roleId: string, body: MezonUpdateRoleDeleteBody, options?: any): Promise<any>;
|
1106
|
-
/** Delete a role by ID. */
|
1107
|
-
deleteRole(bearerToken: string, roleId: string, channelId?: string, options?: any): Promise<any>;
|
1108
|
-
/** Update fields in a given role. */
|
1109
|
-
updateRole(bearerToken: string, roleId: string, body: MezonUpdateRoleBody, options?: any): Promise<any>;
|
1110
|
-
/** List role permissions */
|
1111
|
-
listRolePermissions(bearerToken: string, roleId: string, options?: any): Promise<ApiPermissionList>;
|
1112
|
-
/** List role permissions */
|
1113
|
-
listRoleUsers(bearerToken: string, roleId: string, limit?: number, cursor?: string, options?: any): Promise<ApiRoleUserList>;
|
1114
|
-
/** Execute a Lua function on the server. */
|
1115
|
-
rpcFunc2(bearerToken: string, basicAuthUsername: string, basicAuthPassword: string, id: string, payload?: string, httpKey?: string, options?: any): Promise<ApiRpc>;
|
1116
|
-
/** Execute a Lua function on the server. */
|
1117
|
-
rpcFunc(bearerToken: string, basicAuthUsername: string, basicAuthPassword: string, id: string, payload: string, httpKey?: string, options?: any): Promise<ApiRpc>;
|
1118
|
-
/** Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user. */
|
1119
|
-
sessionLogout(bearerToken: string, body: ApiSessionLogoutRequest, options?: any): Promise<any>;
|
1120
|
-
/** Add a new sticker */
|
1121
|
-
addClanSticker(bearerToken: string, body: ApiClanStickerAddRequest, options?: any): Promise<any>;
|
1122
|
-
/** Delete a sticker by ID */
|
1123
|
-
deleteClanStickerById(bearerToken: string, id: string, clanId?: string, options?: any): Promise<any>;
|
1124
|
-
/** Update a sticker by ID */
|
1125
|
-
updateClanStickerById(bearerToken: string, id: string, body: MezonUpdateClanStickerByIdBody, options?: any): Promise<any>;
|
1126
|
-
/** Get storage objects. */
|
1127
|
-
readStorageObjects(bearerToken: string, body: ApiReadStorageObjectsRequest, options?: any): Promise<ApiStorageObjects>;
|
1128
|
-
/** Write objects into the storage engine. */
|
1129
|
-
writeStorageObjects(bearerToken: string, body: ApiWriteStorageObjectsRequest, options?: any): Promise<ApiStorageObjectAcks>;
|
1130
|
-
/** Delete one or more objects by ID or username. */
|
1131
|
-
deleteStorageObjects(bearerToken: string, body: ApiDeleteStorageObjectsRequest, options?: any): Promise<any>;
|
1132
|
-
/** List publicly readable storage objects in a given collection. */
|
1133
|
-
listStorageObjects(bearerToken: string, collection: string, userId?: string, limit?: number, cursor?: string, options?: any): Promise<ApiStorageObjectList>;
|
1134
|
-
/** List publicly readable storage objects in a given collection. */
|
1135
|
-
listStorageObjects2(bearerToken: string, collection: string, userId: string, limit?: number, cursor?: string, options?: any): Promise<ApiStorageObjectList>;
|
1136
|
-
/** Update fields in a given category. */
|
1137
|
-
updateCategory(bearerToken: string, body: ApiUpdateCategoryDescRequest, options?: any): Promise<any>;
|
1138
|
-
/** Update channel private. */
|
1139
|
-
updateChannelPrivate(bearerToken: string, body: ApiChangeChannelPrivateRequest, options?: any): Promise<any>;
|
1140
|
-
/** */
|
1141
|
-
updateUserProfileByClan(bearerToken: string, clanId: string, body: MezonUpdateUserProfileByClanBody, options?: any): Promise<any>;
|
1142
|
-
/** Upload attachment */
|
1143
|
-
uploadAttachmentFile(bearerToken: string, body: ApiUploadAttachmentRequest, options?: any): Promise<ApiUploadAttachment>;
|
1144
|
-
/** Fetch zero or more users by ID and/or username. */
|
1145
|
-
getUsers(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, facebookIds?: Array<string>, options?: any): Promise<ApiUsers>;
|
1146
|
-
/** */
|
1147
|
-
updateUser(bearerToken: string, body: ApiUpdateUsersRequest, options?: any): Promise<any>;
|
1148
|
-
/** create webhook */
|
1149
|
-
generateWebhook(bearerToken: string, body: ApiWebhookCreateRequest, options?: any): Promise<ApiWebhookGenerateResponse>;
|
1150
|
-
/** update webhook name by id */
|
1151
|
-
updateWebhookById(bearerToken: string, id: string, body: MezonUpdateWebhookByIdBody, options?: any): Promise<any>;
|
1152
|
-
/** list webhook belong to the channel */
|
1153
|
-
listWebhookByChannelId(bearerToken: string, channelId: string, clanId?: string, options?: any): Promise<ApiWebhookListResponse>;
|
1154
|
-
/** disabled webhook */
|
1155
|
-
deleteWebhookById(bearerToken: string, id: string, body: MezonDeleteWebhookByIdBody, options?: any): Promise<any>;
|
1156
|
-
buildFullUrl(basePath: string, fragment: string, queryParams: Map<string, any>): string;
|
1157
|
-
}
|