mezon-js 2.13.78 → 2.13.80
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/client.ts +3279 -2482
- package/dist/client.d.ts +163 -349
- package/dist/gateway.api.d.ts +33 -0
- package/dist/index.d.ts +2 -4
- package/dist/{api.gen.d.ts → mezon-js/api.gen.d.ts} +1 -0
- package/dist/mezon-js/client.d.ts +347 -0
- package/dist/mezon-js/gateway.api.d.ts +33 -0
- package/dist/mezon-js/index.d.ts +23 -0
- package/dist/mezon-js/session.d.ts +61 -0
- package/dist/mezon-js/socket.d.ts +1212 -0
- package/dist/mezon-js/types/index.d.ts +2212 -0
- package/dist/mezon-js/utils.d.ts +6 -0
- package/dist/mezon-js/web_socket_adapter.d.ts +83 -0
- package/dist/mezon-js.cjs.js +9038 -21145
- package/dist/mezon-js.esm.mjs +9038 -21145
- package/dist/mezon-js.esm.mjs.map +1 -0
- package/dist/session.d.ts +11 -11
- package/dist/socket.d.ts +385 -386
- package/dist/types/index.d.ts +2212 -0
- package/dist/utils.d.ts +2 -0
- package/dist/webrpc/index.d.ts +3 -0
- package/gateway.api.ts +577 -0
- package/index.ts +2 -5
- package/package.json +3 -2
- package/rollup.config.js +64 -30
- package/session.ts +22 -22
- package/socket.ts +921 -846
- package/types/index.ts +3883 -0
- package/utils.ts +107 -47
- package/api/api.ts +0 -39185
- package/api.gen.ts +0 -11777
- package/google/protobuf/struct.ts +0 -554
- package/google/protobuf/timestamp.ts +0 -223
- package/google/protobuf/wrappers.ts +0 -670
- /package/dist/{api → mezon-js/api}/api.d.ts +0 -0
- /package/dist/{google → mezon-js/google}/protobuf/struct.d.ts +0 -0
- /package/dist/{google → mezon-js/google}/protobuf/timestamp.d.ts +0 -0
- /package/dist/{google → mezon-js/google}/protobuf/wrappers.d.ts +0 -0
|
@@ -0,0 +1,2212 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
/** A user's session used to authenticate messages. */
|
|
3
|
+
export interface Session {
|
|
4
|
+
/** True if the corresponding account was just created, false otherwise. */
|
|
5
|
+
created: boolean;
|
|
6
|
+
/** Authentication credentials. */
|
|
7
|
+
token: string;
|
|
8
|
+
/** Refresh token that can be used for session token renewal. */
|
|
9
|
+
refreshToken: string;
|
|
10
|
+
/** User id */
|
|
11
|
+
userId: string;
|
|
12
|
+
/** Whether to enable "Remember Me" for extended session duration. */
|
|
13
|
+
isRemember: boolean;
|
|
14
|
+
/** api url */
|
|
15
|
+
apiUrl: string;
|
|
16
|
+
/** id token for zklogin */
|
|
17
|
+
idToken: string;
|
|
18
|
+
}
|
|
19
|
+
/** A single user-role pair. */
|
|
20
|
+
export interface ChannelUserListChannelUser {
|
|
21
|
+
clanAvatar?: string;
|
|
22
|
+
clanId?: string;
|
|
23
|
+
clanNick?: string;
|
|
24
|
+
id?: string;
|
|
25
|
+
roleId?: Array<string>;
|
|
26
|
+
threadId?: string;
|
|
27
|
+
userId?: string;
|
|
28
|
+
addedBy?: string;
|
|
29
|
+
isBanned?: boolean;
|
|
30
|
+
expiredBanTime?: number;
|
|
31
|
+
}
|
|
32
|
+
/** */
|
|
33
|
+
export interface ApiBannedUser {
|
|
34
|
+
banTime?: number;
|
|
35
|
+
bannedId?: string;
|
|
36
|
+
bannerId?: string;
|
|
37
|
+
channelId?: string;
|
|
38
|
+
reason?: string;
|
|
39
|
+
}
|
|
40
|
+
/** */
|
|
41
|
+
export interface ApiBannedUserList {
|
|
42
|
+
bannedUsers?: Array<ApiBannedUser>;
|
|
43
|
+
}
|
|
44
|
+
/** A single user-role pair. */
|
|
45
|
+
export interface ClanUserListClanUser {
|
|
46
|
+
clanAvatar?: string;
|
|
47
|
+
clanId?: string;
|
|
48
|
+
clanNick?: string;
|
|
49
|
+
roleId?: Array<string>;
|
|
50
|
+
user?: ApiUser;
|
|
51
|
+
}
|
|
52
|
+
/** */
|
|
53
|
+
export interface GetPubKeysResponseUserPubKey {
|
|
54
|
+
PK?: ApiPubKey;
|
|
55
|
+
userId?: string;
|
|
56
|
+
}
|
|
57
|
+
/** */
|
|
58
|
+
export interface CountClanBadgeResponseBadge {
|
|
59
|
+
clanId?: string;
|
|
60
|
+
count?: number;
|
|
61
|
+
}
|
|
62
|
+
/** */
|
|
63
|
+
export interface MezonChangeChannelCategoryBody {
|
|
64
|
+
channelId?: string;
|
|
65
|
+
clanId?: string;
|
|
66
|
+
}
|
|
67
|
+
/** */
|
|
68
|
+
export interface MezonSetChanEncryptionMethodBody {
|
|
69
|
+
method?: string;
|
|
70
|
+
}
|
|
71
|
+
/** */
|
|
72
|
+
export interface MezonDeleteWebhookByIdBody {
|
|
73
|
+
channelId?: string;
|
|
74
|
+
clanId?: string;
|
|
75
|
+
}
|
|
76
|
+
/** Update app information. */
|
|
77
|
+
export interface MezonUpdateAppBody {
|
|
78
|
+
about?: string;
|
|
79
|
+
appUrl?: string;
|
|
80
|
+
applogo?: string;
|
|
81
|
+
appname?: string;
|
|
82
|
+
metadata?: string;
|
|
83
|
+
token?: string;
|
|
84
|
+
isShadow?: string;
|
|
85
|
+
}
|
|
86
|
+
/** */
|
|
87
|
+
export interface MezonUpdateCategoryBody {
|
|
88
|
+
categoryId?: string;
|
|
89
|
+
categoryName?: string;
|
|
90
|
+
}
|
|
91
|
+
/** */
|
|
92
|
+
export interface ApiAddAppRequest {
|
|
93
|
+
aboutMe?: string;
|
|
94
|
+
appLogo?: string;
|
|
95
|
+
appUrl?: string;
|
|
96
|
+
appname?: string;
|
|
97
|
+
creatorId?: string;
|
|
98
|
+
isShadow?: boolean;
|
|
99
|
+
role?: number;
|
|
100
|
+
token?: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* - USER_ROLE_ADMIN: All access
|
|
104
|
+
- USER_ROLE_DEVELOPER: Best for developers, also enables APIs and API explorer
|
|
105
|
+
- USER_ROLE_MAINTAINER: Best for users who regularly update player information.
|
|
106
|
+
- USER_ROLE_READONLY: Read-only role for those only need to view data
|
|
107
|
+
*/
|
|
108
|
+
export declare enum ApiAppRole {
|
|
109
|
+
USER_ROLE_UNKNOWN = 0,
|
|
110
|
+
USER_ROLE_ADMIN = 1,
|
|
111
|
+
USER_ROLE_DEVELOPER = 2,
|
|
112
|
+
USER_ROLE_MAINTAINER = 3,
|
|
113
|
+
USER_ROLE_READONLY = 4
|
|
114
|
+
}
|
|
115
|
+
/** Update fields in a given channel. */
|
|
116
|
+
export interface MezonUpdateChannelDescBody {
|
|
117
|
+
ageRestricted?: number;
|
|
118
|
+
appUrl?: string;
|
|
119
|
+
categoryId?: string;
|
|
120
|
+
channelLabel?: string;
|
|
121
|
+
e2ee?: number;
|
|
122
|
+
topic?: string;
|
|
123
|
+
}
|
|
124
|
+
/** */
|
|
125
|
+
export interface ApiLogedDevice {
|
|
126
|
+
deviceId?: string;
|
|
127
|
+
deviceName?: string;
|
|
128
|
+
ip?: string;
|
|
129
|
+
lastActive?: string;
|
|
130
|
+
loginAt?: string;
|
|
131
|
+
platform?: string;
|
|
132
|
+
status?: number;
|
|
133
|
+
location?: string;
|
|
134
|
+
isCurrent?: boolean;
|
|
135
|
+
}
|
|
136
|
+
/** */
|
|
137
|
+
export interface ApiLogedDeviceList {
|
|
138
|
+
devices?: Array<ApiLogedDevice>;
|
|
139
|
+
}
|
|
140
|
+
/** */
|
|
141
|
+
export interface MezonUpdateClanDescBody {
|
|
142
|
+
banner?: string;
|
|
143
|
+
clanName?: string;
|
|
144
|
+
creatorId?: string;
|
|
145
|
+
logo?: string;
|
|
146
|
+
status?: number;
|
|
147
|
+
isOnboarding?: boolean;
|
|
148
|
+
welcomeChannelId?: string;
|
|
149
|
+
onboardingBanner?: string;
|
|
150
|
+
isCommunity?: boolean;
|
|
151
|
+
communityBanner?: string;
|
|
152
|
+
description?: string;
|
|
153
|
+
about?: string;
|
|
154
|
+
shortUrl?: string;
|
|
155
|
+
preventAnonymous?: boolean;
|
|
156
|
+
}
|
|
157
|
+
/** */
|
|
158
|
+
export interface MezonUpdateClanDescProfileBody {
|
|
159
|
+
avatarUrl?: string;
|
|
160
|
+
nickName?: string;
|
|
161
|
+
profileBanner?: string;
|
|
162
|
+
profileTheme?: string;
|
|
163
|
+
}
|
|
164
|
+
/** */
|
|
165
|
+
export interface MezonUpdateClanEmojiByIdBody {
|
|
166
|
+
category?: string;
|
|
167
|
+
clanId?: string;
|
|
168
|
+
shortname?: string;
|
|
169
|
+
source?: string;
|
|
170
|
+
}
|
|
171
|
+
/** */
|
|
172
|
+
export interface MezonUpdateClanStickerByIdBody {
|
|
173
|
+
category?: string;
|
|
174
|
+
clanId?: string;
|
|
175
|
+
shortname?: string;
|
|
176
|
+
source?: string;
|
|
177
|
+
}
|
|
178
|
+
/** update a event within clan. */
|
|
179
|
+
export interface MezonUpdateEventBody {
|
|
180
|
+
eventId?: string;
|
|
181
|
+
address?: string;
|
|
182
|
+
channelId?: string;
|
|
183
|
+
channelVoiceId?: string;
|
|
184
|
+
clanId?: string;
|
|
185
|
+
creatorId?: string;
|
|
186
|
+
description?: string;
|
|
187
|
+
endTime?: string;
|
|
188
|
+
logo?: string;
|
|
189
|
+
startTime?: string;
|
|
190
|
+
title?: string;
|
|
191
|
+
channelIdOld?: string;
|
|
192
|
+
repeatType?: number;
|
|
193
|
+
}
|
|
194
|
+
/** Update fields in a given role. */
|
|
195
|
+
export interface MezonUpdateRoleBody {
|
|
196
|
+
activePermissionIds?: Array<string>;
|
|
197
|
+
addUserIds?: Array<string>;
|
|
198
|
+
allowMention?: number;
|
|
199
|
+
clanId?: string;
|
|
200
|
+
color?: string;
|
|
201
|
+
description?: string;
|
|
202
|
+
displayOnline?: number;
|
|
203
|
+
maxPermissionId: string;
|
|
204
|
+
removePermissionIds?: Array<string>;
|
|
205
|
+
removeUserIds?: Array<string>;
|
|
206
|
+
roleIcon?: string;
|
|
207
|
+
title?: string;
|
|
208
|
+
}
|
|
209
|
+
/** Delete a role the user has access to. */
|
|
210
|
+
export interface MezonUpdateRoleDeleteBody {
|
|
211
|
+
clanId?: string;
|
|
212
|
+
}
|
|
213
|
+
/** Request to get system message by clan and channel IDs. */
|
|
214
|
+
export interface MezonUpdateSystemMessageBody {
|
|
215
|
+
boostMessage?: string;
|
|
216
|
+
channelId?: string;
|
|
217
|
+
hideAuditLog?: string;
|
|
218
|
+
setupTips?: string;
|
|
219
|
+
welcomeRandom?: string;
|
|
220
|
+
welcomeSticker?: string;
|
|
221
|
+
}
|
|
222
|
+
/** */
|
|
223
|
+
export interface MezonUpdateUserProfileByClanBody {
|
|
224
|
+
avatar?: string;
|
|
225
|
+
nickName?: string;
|
|
226
|
+
}
|
|
227
|
+
/** */
|
|
228
|
+
export interface MezonUpdateWebhookByIdBody {
|
|
229
|
+
avatar?: string;
|
|
230
|
+
channelId?: string;
|
|
231
|
+
channelIdUpdate?: string;
|
|
232
|
+
clanId?: string;
|
|
233
|
+
webhookName?: string;
|
|
234
|
+
}
|
|
235
|
+
/** A single user-role pair. */
|
|
236
|
+
export interface RoleUserListRoleUser {
|
|
237
|
+
avatarUrl?: string;
|
|
238
|
+
displayName?: string;
|
|
239
|
+
id?: string;
|
|
240
|
+
langTag?: string;
|
|
241
|
+
location?: string;
|
|
242
|
+
online?: boolean;
|
|
243
|
+
username?: string;
|
|
244
|
+
}
|
|
245
|
+
/** */
|
|
246
|
+
export interface UpdateClanOrderRequestClanOrder {
|
|
247
|
+
clanId?: string;
|
|
248
|
+
order?: number;
|
|
249
|
+
}
|
|
250
|
+
/** */
|
|
251
|
+
export interface ApiUpdateClanOrderRequest {
|
|
252
|
+
clansOrder?: Array<UpdateClanOrderRequestClanOrder>;
|
|
253
|
+
}
|
|
254
|
+
/** A user with additional account details. Always the current user. */
|
|
255
|
+
export interface ApiAccount {
|
|
256
|
+
customId?: string;
|
|
257
|
+
disableTime?: string;
|
|
258
|
+
email?: string;
|
|
259
|
+
encryptPrivateKey?: string;
|
|
260
|
+
logo?: string;
|
|
261
|
+
splashScreen?: string;
|
|
262
|
+
user?: ApiUser;
|
|
263
|
+
verifyTime?: string;
|
|
264
|
+
wallet?: number;
|
|
265
|
+
passwordSetted?: boolean;
|
|
266
|
+
}
|
|
267
|
+
/** Send a app token to the server. Used with authenticate/link/unlink. */
|
|
268
|
+
export interface ApiAccountApp {
|
|
269
|
+
appid?: string;
|
|
270
|
+
appname?: string;
|
|
271
|
+
token?: string;
|
|
272
|
+
vars?: Record<string, string>;
|
|
273
|
+
}
|
|
274
|
+
export interface ApiAccountSMS {
|
|
275
|
+
phoneno: string;
|
|
276
|
+
vars?: Record<string, string>;
|
|
277
|
+
}
|
|
278
|
+
/** Send an email with password to the server. Used with authenticate/link/unlink. */
|
|
279
|
+
export interface ApiAccountEmail {
|
|
280
|
+
email?: string;
|
|
281
|
+
password?: string;
|
|
282
|
+
prevEmail?: string;
|
|
283
|
+
vars?: Record<string, string>;
|
|
284
|
+
}
|
|
285
|
+
/** Send a Mezon token to the server. Used with authenticate/link/unlink. */
|
|
286
|
+
export interface ApiAccountMezon {
|
|
287
|
+
token?: string;
|
|
288
|
+
vars?: Record<string, string>;
|
|
289
|
+
}
|
|
290
|
+
/** Send a Mezon token to the server. Used with authenticate/link/unlink. */
|
|
291
|
+
export interface ApiLinkAccountMezon {
|
|
292
|
+
phoneNumber?: string;
|
|
293
|
+
vars?: Record<string, string>;
|
|
294
|
+
}
|
|
295
|
+
/** */
|
|
296
|
+
export interface ApiAddFavoriteChannelRequest {
|
|
297
|
+
channelId?: string;
|
|
298
|
+
clanId?: string;
|
|
299
|
+
}
|
|
300
|
+
/** */
|
|
301
|
+
export interface ApiAddFavoriteChannelResponse {
|
|
302
|
+
channelId?: string;
|
|
303
|
+
}
|
|
304
|
+
/** Add a role for channel. */
|
|
305
|
+
export interface ApiAddRoleChannelDescRequest {
|
|
306
|
+
channelId?: string;
|
|
307
|
+
roleIds?: Array<string>;
|
|
308
|
+
}
|
|
309
|
+
/** */
|
|
310
|
+
export interface ApiAllUsersAddChannelResponse {
|
|
311
|
+
channelId?: string;
|
|
312
|
+
limit?: number;
|
|
313
|
+
userIds?: Array<string>;
|
|
314
|
+
usernames?: Array<string>;
|
|
315
|
+
displayNames?: Array<string>;
|
|
316
|
+
avatars?: Array<string>;
|
|
317
|
+
onlines?: Array<boolean>;
|
|
318
|
+
}
|
|
319
|
+
/** */
|
|
320
|
+
export interface ApiAllUserClans {
|
|
321
|
+
users?: Array<ApiUser>;
|
|
322
|
+
}
|
|
323
|
+
/** App information. */
|
|
324
|
+
export interface ApiApp {
|
|
325
|
+
about?: string;
|
|
326
|
+
appUrl?: string;
|
|
327
|
+
applogo?: string;
|
|
328
|
+
appname?: string;
|
|
329
|
+
creatorId?: string;
|
|
330
|
+
disableTime?: string;
|
|
331
|
+
createTime?: string;
|
|
332
|
+
id?: string;
|
|
333
|
+
isShadow?: boolean;
|
|
334
|
+
role?: number;
|
|
335
|
+
token?: string;
|
|
336
|
+
}
|
|
337
|
+
/** A list of apps. */
|
|
338
|
+
export interface ApiAppList {
|
|
339
|
+
apps?: Array<ApiApp>;
|
|
340
|
+
nextCursor?: string;
|
|
341
|
+
totalCount?: number;
|
|
342
|
+
}
|
|
343
|
+
/** */
|
|
344
|
+
export interface ApiAuditLog {
|
|
345
|
+
actionLog?: string;
|
|
346
|
+
channelId?: string;
|
|
347
|
+
channelLabel?: string;
|
|
348
|
+
clanId?: string;
|
|
349
|
+
details?: string;
|
|
350
|
+
entityId?: string;
|
|
351
|
+
entityName?: string;
|
|
352
|
+
id?: string;
|
|
353
|
+
timeLog?: string;
|
|
354
|
+
userId?: string;
|
|
355
|
+
}
|
|
356
|
+
/** Authenticate against the server with email+password. */
|
|
357
|
+
export interface ApiAuthenticateSMSRequest {
|
|
358
|
+
account?: ApiAccountSMS;
|
|
359
|
+
create?: boolean;
|
|
360
|
+
username?: string;
|
|
361
|
+
}
|
|
362
|
+
/** Authenticate against the server with email+password. */
|
|
363
|
+
export interface ApiAuthenticateEmailRequest {
|
|
364
|
+
account?: ApiAccountEmail;
|
|
365
|
+
create?: boolean;
|
|
366
|
+
username?: string;
|
|
367
|
+
}
|
|
368
|
+
/** */
|
|
369
|
+
export interface ApiCategoryDesc {
|
|
370
|
+
categoryId?: string;
|
|
371
|
+
categoryName?: string;
|
|
372
|
+
categoryOrder?: number;
|
|
373
|
+
clanId?: string;
|
|
374
|
+
creatorId?: string;
|
|
375
|
+
}
|
|
376
|
+
/** */
|
|
377
|
+
export interface ApiCategoryDescList {
|
|
378
|
+
categorydesc?: Array<ApiCategoryDesc>;
|
|
379
|
+
}
|
|
380
|
+
/** */
|
|
381
|
+
export interface ApiUpdateUsernameRequest {
|
|
382
|
+
username?: string;
|
|
383
|
+
}
|
|
384
|
+
/** */
|
|
385
|
+
export interface ApiCategoryOrderUpdate {
|
|
386
|
+
categoryId?: string;
|
|
387
|
+
order?: number;
|
|
388
|
+
}
|
|
389
|
+
/** */
|
|
390
|
+
export interface ApiChanEncryptionMethod {
|
|
391
|
+
channelId?: string;
|
|
392
|
+
method?: string;
|
|
393
|
+
}
|
|
394
|
+
export interface ApiListChannelAppsResponse {
|
|
395
|
+
channelApps?: Array<ApiChannelAppResponse>;
|
|
396
|
+
}
|
|
397
|
+
/** Update fields in a given channel. */
|
|
398
|
+
export interface ApiChangeChannelPrivateRequest {
|
|
399
|
+
clanId?: string;
|
|
400
|
+
channelId?: string;
|
|
401
|
+
channelPrivate?: number;
|
|
402
|
+
roleIds?: Array<string>;
|
|
403
|
+
userIds?: Array<string>;
|
|
404
|
+
}
|
|
405
|
+
/** */
|
|
406
|
+
export interface ApiChannelAppResponse {
|
|
407
|
+
appId?: string;
|
|
408
|
+
channelId?: string;
|
|
409
|
+
clanId?: string;
|
|
410
|
+
id?: string;
|
|
411
|
+
appUrl?: string;
|
|
412
|
+
appName?: string;
|
|
413
|
+
appLogo?: string;
|
|
414
|
+
}
|
|
415
|
+
/** */
|
|
416
|
+
export interface ApiChannelAttachment {
|
|
417
|
+
createTime?: string;
|
|
418
|
+
filename?: string;
|
|
419
|
+
filesize?: string;
|
|
420
|
+
filetype?: string;
|
|
421
|
+
id?: string;
|
|
422
|
+
uploader?: string;
|
|
423
|
+
url?: string;
|
|
424
|
+
messageId?: string;
|
|
425
|
+
width?: number;
|
|
426
|
+
height?: number;
|
|
427
|
+
}
|
|
428
|
+
/** */
|
|
429
|
+
export interface ApiChannelAttachmentList {
|
|
430
|
+
attachments?: Array<ApiChannelAttachment>;
|
|
431
|
+
}
|
|
432
|
+
/** */
|
|
433
|
+
export interface ApiChannelCanvasDetailResponse {
|
|
434
|
+
content?: string;
|
|
435
|
+
creatorId?: string;
|
|
436
|
+
editorId?: string;
|
|
437
|
+
id?: string;
|
|
438
|
+
isDefault?: boolean;
|
|
439
|
+
title?: string;
|
|
440
|
+
}
|
|
441
|
+
/** */
|
|
442
|
+
export interface ApiChannelCanvasItem {
|
|
443
|
+
content?: string;
|
|
444
|
+
creatorId?: string;
|
|
445
|
+
id?: string;
|
|
446
|
+
isDefault?: boolean;
|
|
447
|
+
title?: string;
|
|
448
|
+
updateTime?: string;
|
|
449
|
+
createTime?: string;
|
|
450
|
+
}
|
|
451
|
+
/** */
|
|
452
|
+
export interface ApiChannelCanvasListResponse {
|
|
453
|
+
channelCanvases?: Array<ApiChannelCanvasItem>;
|
|
454
|
+
channelId?: string;
|
|
455
|
+
clanId?: string;
|
|
456
|
+
count?: number;
|
|
457
|
+
}
|
|
458
|
+
/** */
|
|
459
|
+
export interface ApiEditChannelCanvasRequest {
|
|
460
|
+
channelId?: string;
|
|
461
|
+
clanId?: string;
|
|
462
|
+
content?: string;
|
|
463
|
+
id?: string;
|
|
464
|
+
isDefault?: boolean;
|
|
465
|
+
title?: string;
|
|
466
|
+
status?: number;
|
|
467
|
+
}
|
|
468
|
+
/** */
|
|
469
|
+
export interface ApiEditChannelCanvasResponse {
|
|
470
|
+
id?: string;
|
|
471
|
+
}
|
|
472
|
+
/** A list of channel description, usually a result of a list operation. */
|
|
473
|
+
export interface ApiChannelDescList {
|
|
474
|
+
cacheableCursor?: string;
|
|
475
|
+
channeldesc?: Array<ApiChannelDescription>;
|
|
476
|
+
nextCursor?: string;
|
|
477
|
+
page?: number;
|
|
478
|
+
prevCursor?: string;
|
|
479
|
+
}
|
|
480
|
+
/** */
|
|
481
|
+
export interface ApiAddChannelAppRequest {
|
|
482
|
+
appUrl?: string;
|
|
483
|
+
appname?: string;
|
|
484
|
+
creatorId?: string;
|
|
485
|
+
role?: number;
|
|
486
|
+
token?: string;
|
|
487
|
+
}
|
|
488
|
+
/** */
|
|
489
|
+
export interface ApiChannelDescription {
|
|
490
|
+
active?: number;
|
|
491
|
+
ageRestricted?: number;
|
|
492
|
+
categoryId?: string;
|
|
493
|
+
categoryName?: string;
|
|
494
|
+
channelId?: string;
|
|
495
|
+
channelLabel?: string;
|
|
496
|
+
channelPrivate?: number;
|
|
497
|
+
clanId?: string;
|
|
498
|
+
clanName?: string;
|
|
499
|
+
countMessUnread?: number;
|
|
500
|
+
createTimeSeconds?: number;
|
|
501
|
+
creatorId?: string;
|
|
502
|
+
creatorName?: string;
|
|
503
|
+
e2ee?: number;
|
|
504
|
+
isMute?: boolean;
|
|
505
|
+
lastPinMessage?: string;
|
|
506
|
+
lastSeenMessage?: ApiChannelMessageHeader;
|
|
507
|
+
lastSentMessage?: ApiChannelMessageHeader;
|
|
508
|
+
meetingCode?: string;
|
|
509
|
+
channelAvatar?: string;
|
|
510
|
+
parentId?: string;
|
|
511
|
+
type?: number;
|
|
512
|
+
updateTimeSeconds?: number;
|
|
513
|
+
appId?: string;
|
|
514
|
+
topic?: string;
|
|
515
|
+
userIds?: Array<string>;
|
|
516
|
+
usernames?: Array<string>;
|
|
517
|
+
displayNames?: Array<string>;
|
|
518
|
+
onlines?: Array<boolean>;
|
|
519
|
+
avatars?: Array<string>;
|
|
520
|
+
memberCount?: number;
|
|
521
|
+
}
|
|
522
|
+
/** A message sent on a channel. */
|
|
523
|
+
export interface ApiChannelMessage {
|
|
524
|
+
id: string;
|
|
525
|
+
attachments?: string;
|
|
526
|
+
avatar?: string;
|
|
527
|
+
categoryName?: string;
|
|
528
|
+
channelId: string;
|
|
529
|
+
channelLabel: string;
|
|
530
|
+
clanId?: string;
|
|
531
|
+
clanLogo?: string;
|
|
532
|
+
clanNick?: string;
|
|
533
|
+
clanAvatar?: string;
|
|
534
|
+
code: number;
|
|
535
|
+
content: string;
|
|
536
|
+
createTime?: string;
|
|
537
|
+
createTimeSeconds?: number;
|
|
538
|
+
displayName?: string;
|
|
539
|
+
mentions?: string;
|
|
540
|
+
messageId: string;
|
|
541
|
+
reactions?: string;
|
|
542
|
+
referencedMessage?: string;
|
|
543
|
+
references?: string;
|
|
544
|
+
senderId: string;
|
|
545
|
+
updateTime?: string;
|
|
546
|
+
updateTimeSeconds?: number;
|
|
547
|
+
username?: string;
|
|
548
|
+
mode?: number;
|
|
549
|
+
hideEditted?: boolean;
|
|
550
|
+
topicId?: string;
|
|
551
|
+
}
|
|
552
|
+
/** */
|
|
553
|
+
export interface ApiChannelMessageHeader {
|
|
554
|
+
attachment?: string;
|
|
555
|
+
content?: string;
|
|
556
|
+
id?: string;
|
|
557
|
+
mention?: string;
|
|
558
|
+
reaction?: string;
|
|
559
|
+
reference?: string;
|
|
560
|
+
repliers?: Array<string>;
|
|
561
|
+
senderId?: string;
|
|
562
|
+
timestampSeconds?: number;
|
|
563
|
+
}
|
|
564
|
+
/** A list of channel messages, usually a result of a list operation. */
|
|
565
|
+
export interface ApiChannelMessageList {
|
|
566
|
+
lastSeenMessage?: ApiChannelMessageHeader;
|
|
567
|
+
lastSentMessage?: ApiChannelMessageHeader;
|
|
568
|
+
messages?: Array<ApiChannelMessage>;
|
|
569
|
+
}
|
|
570
|
+
/** */
|
|
571
|
+
export interface ApiChannelSettingItem {
|
|
572
|
+
active?: number;
|
|
573
|
+
categoryId?: string;
|
|
574
|
+
channelLabel?: string;
|
|
575
|
+
channelPrivate?: number;
|
|
576
|
+
channelType?: number;
|
|
577
|
+
creatorId?: string;
|
|
578
|
+
id?: string;
|
|
579
|
+
lastSentMessage?: ApiChannelMessageHeader;
|
|
580
|
+
meetingCode?: string;
|
|
581
|
+
messageCount?: string;
|
|
582
|
+
parentId?: string;
|
|
583
|
+
userIds?: Array<string>;
|
|
584
|
+
}
|
|
585
|
+
/** */
|
|
586
|
+
export interface ApiChannelSettingListResponse {
|
|
587
|
+
channelCount?: number;
|
|
588
|
+
channelSettingList?: Array<ApiChannelSettingItem>;
|
|
589
|
+
clanId?: string;
|
|
590
|
+
threadCount?: number;
|
|
591
|
+
}
|
|
592
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
593
|
+
export interface ApiChannelUserList {
|
|
594
|
+
channelId?: string;
|
|
595
|
+
channelUsers?: Array<ChannelUserListChannelUser>;
|
|
596
|
+
cursor?: string;
|
|
597
|
+
}
|
|
598
|
+
/** */
|
|
599
|
+
export interface ApiCheckDuplicateClanNameResponse {
|
|
600
|
+
isDuplicate?: boolean;
|
|
601
|
+
}
|
|
602
|
+
/** */
|
|
603
|
+
export interface ApiClanDesc {
|
|
604
|
+
banner?: string;
|
|
605
|
+
clanId?: string;
|
|
606
|
+
clanName?: string;
|
|
607
|
+
creatorId?: string;
|
|
608
|
+
logo?: string;
|
|
609
|
+
status?: number;
|
|
610
|
+
badgeCount?: number;
|
|
611
|
+
isOnboarding?: boolean;
|
|
612
|
+
welcomeChannelId?: string;
|
|
613
|
+
onboardingBanner?: string;
|
|
614
|
+
isCommunity?: boolean;
|
|
615
|
+
communityBanner?: string;
|
|
616
|
+
description?: string;
|
|
617
|
+
about?: string;
|
|
618
|
+
shortUrl?: string;
|
|
619
|
+
preventAnonymous?: boolean;
|
|
620
|
+
hasUnreadMessage?: boolean;
|
|
621
|
+
}
|
|
622
|
+
/** */
|
|
623
|
+
export interface ApiClanDescList {
|
|
624
|
+
clandesc?: Array<ApiClanDesc>;
|
|
625
|
+
}
|
|
626
|
+
/** */
|
|
627
|
+
export interface ApiClanEmoji {
|
|
628
|
+
category?: string;
|
|
629
|
+
clanId?: string;
|
|
630
|
+
clanName?: string;
|
|
631
|
+
creatorId?: string;
|
|
632
|
+
id?: string;
|
|
633
|
+
logo?: string;
|
|
634
|
+
shortname?: string;
|
|
635
|
+
src?: string;
|
|
636
|
+
isForSale?: boolean;
|
|
637
|
+
}
|
|
638
|
+
/** */
|
|
639
|
+
export interface ApiClanEmojiCreateRequest {
|
|
640
|
+
category?: string;
|
|
641
|
+
clanId?: string;
|
|
642
|
+
id?: string;
|
|
643
|
+
shortname?: string;
|
|
644
|
+
source?: string;
|
|
645
|
+
isForSale?: boolean;
|
|
646
|
+
}
|
|
647
|
+
/** Get clan profile. */
|
|
648
|
+
export interface ApiClanProfile {
|
|
649
|
+
avatar?: string;
|
|
650
|
+
clanId?: string;
|
|
651
|
+
nickName?: string;
|
|
652
|
+
userId?: string;
|
|
653
|
+
about?: string;
|
|
654
|
+
}
|
|
655
|
+
/** */
|
|
656
|
+
export interface ApiClanSticker {
|
|
657
|
+
category?: string;
|
|
658
|
+
clanId?: string;
|
|
659
|
+
clanName?: string;
|
|
660
|
+
createTime?: string;
|
|
661
|
+
creatorId?: string;
|
|
662
|
+
id?: string;
|
|
663
|
+
logo?: string;
|
|
664
|
+
shortname?: string;
|
|
665
|
+
source?: string;
|
|
666
|
+
mediaType?: number;
|
|
667
|
+
isForSale?: boolean;
|
|
668
|
+
}
|
|
669
|
+
/** */
|
|
670
|
+
export interface ApiClanStickerAddRequest {
|
|
671
|
+
category?: string;
|
|
672
|
+
clanId?: string;
|
|
673
|
+
id?: string;
|
|
674
|
+
shortname?: string;
|
|
675
|
+
source?: string;
|
|
676
|
+
mediaType?: number;
|
|
677
|
+
isForSale?: boolean;
|
|
678
|
+
}
|
|
679
|
+
/** A list of users belonging to a clan, along with their role. */
|
|
680
|
+
export interface ApiClanUserList {
|
|
681
|
+
clanId?: string;
|
|
682
|
+
clanUsers?: Array<ClanUserListClanUser>;
|
|
683
|
+
cursor?: string;
|
|
684
|
+
}
|
|
685
|
+
/** */
|
|
686
|
+
export interface ApiConfirmLoginRequest {
|
|
687
|
+
isRemember?: boolean;
|
|
688
|
+
loginId?: string;
|
|
689
|
+
}
|
|
690
|
+
/** */
|
|
691
|
+
export interface ApiCreateActivityRequest {
|
|
692
|
+
activityDescription?: string;
|
|
693
|
+
activityName?: string;
|
|
694
|
+
activityType?: number;
|
|
695
|
+
applicationId?: string;
|
|
696
|
+
startTime?: string;
|
|
697
|
+
status?: number;
|
|
698
|
+
}
|
|
699
|
+
/** */
|
|
700
|
+
export interface ApiCreateCategoryDescRequest {
|
|
701
|
+
categoryName?: string;
|
|
702
|
+
clanId?: string;
|
|
703
|
+
}
|
|
704
|
+
/** Create a channel within clan. */
|
|
705
|
+
export interface ApiCreateChannelDescRequest {
|
|
706
|
+
appId?: string;
|
|
707
|
+
categoryId?: string;
|
|
708
|
+
channelId?: string;
|
|
709
|
+
channelLabel?: string;
|
|
710
|
+
channelPrivate?: number;
|
|
711
|
+
clanId?: string;
|
|
712
|
+
parentId?: string;
|
|
713
|
+
type?: number;
|
|
714
|
+
userIds?: Array<string>;
|
|
715
|
+
}
|
|
716
|
+
/** */
|
|
717
|
+
export interface ApiCreateClanDescRequest {
|
|
718
|
+
banner?: string;
|
|
719
|
+
clanName?: string;
|
|
720
|
+
creatorId?: string;
|
|
721
|
+
logo?: string;
|
|
722
|
+
}
|
|
723
|
+
/** Create a event within clan. */
|
|
724
|
+
export interface ApiCreateEventRequest {
|
|
725
|
+
address?: string;
|
|
726
|
+
channelVoiceId?: string;
|
|
727
|
+
clanId?: string;
|
|
728
|
+
description?: string;
|
|
729
|
+
endTime?: string;
|
|
730
|
+
logo?: string;
|
|
731
|
+
startTime?: string;
|
|
732
|
+
title?: string;
|
|
733
|
+
channelId?: string;
|
|
734
|
+
action?: number;
|
|
735
|
+
eventStatus?: number;
|
|
736
|
+
repeatType?: number;
|
|
737
|
+
creatorId?: number;
|
|
738
|
+
userId?: string;
|
|
739
|
+
isPrivate?: boolean;
|
|
740
|
+
meetRoom?: ApiGenerateMezonMeetResponse;
|
|
741
|
+
}
|
|
742
|
+
/** Create a event within clan. */
|
|
743
|
+
export interface ApiUpdateEventRequest {
|
|
744
|
+
address?: string;
|
|
745
|
+
channelId?: string;
|
|
746
|
+
eventId?: string;
|
|
747
|
+
description?: string;
|
|
748
|
+
endTime?: string;
|
|
749
|
+
logo?: string;
|
|
750
|
+
startTime?: string;
|
|
751
|
+
title?: string;
|
|
752
|
+
clanId?: string;
|
|
753
|
+
}
|
|
754
|
+
/** Create a role within clan. */
|
|
755
|
+
export interface ApiCreateRoleRequest {
|
|
756
|
+
activePermissionIds?: Array<string>;
|
|
757
|
+
addUserIds?: Array<string>;
|
|
758
|
+
allowMention?: number;
|
|
759
|
+
clanId?: string;
|
|
760
|
+
color?: string;
|
|
761
|
+
description?: string;
|
|
762
|
+
displayOnline?: number;
|
|
763
|
+
maxPermissionId: string;
|
|
764
|
+
roleIcon?: string;
|
|
765
|
+
title?: string;
|
|
766
|
+
orderRole?: number;
|
|
767
|
+
}
|
|
768
|
+
/** Delete a channel the user has access to. */
|
|
769
|
+
export interface ApiDeleteChannelDescRequest {
|
|
770
|
+
clanId?: string;
|
|
771
|
+
channelId?: string;
|
|
772
|
+
}
|
|
773
|
+
/** */
|
|
774
|
+
export interface ApiDeleteEventRequest {
|
|
775
|
+
channelId?: string;
|
|
776
|
+
clanId?: string;
|
|
777
|
+
creatorId?: string;
|
|
778
|
+
eventId?: string;
|
|
779
|
+
eventLabel?: string;
|
|
780
|
+
}
|
|
781
|
+
/** Delete a role the user has access to. */
|
|
782
|
+
export interface ApiDeleteRoleRequest {
|
|
783
|
+
channelId?: string;
|
|
784
|
+
clanId?: string;
|
|
785
|
+
roleId?: string;
|
|
786
|
+
roleLabel?: string;
|
|
787
|
+
}
|
|
788
|
+
/** Storage objects to delete. */
|
|
789
|
+
export interface ApiDeleteStorageObjectId {
|
|
790
|
+
collection?: string;
|
|
791
|
+
key?: string;
|
|
792
|
+
version?: string;
|
|
793
|
+
}
|
|
794
|
+
/** Batch delete storage objects. */
|
|
795
|
+
export interface ApiDeleteStorageObjectsRequest {
|
|
796
|
+
objectIds?: Array<ApiDeleteStorageObjectId>;
|
|
797
|
+
}
|
|
798
|
+
/** Represents an event to be passed through the server to registered event handlers. */
|
|
799
|
+
export interface ApiEvent {
|
|
800
|
+
external?: boolean;
|
|
801
|
+
name?: string;
|
|
802
|
+
properties?: Record<string, string>;
|
|
803
|
+
timestamp?: string;
|
|
804
|
+
}
|
|
805
|
+
/** */
|
|
806
|
+
export interface ApiRegisterStreamingChannelRequest {
|
|
807
|
+
channelId?: string;
|
|
808
|
+
clanId?: string;
|
|
809
|
+
}
|
|
810
|
+
/** */
|
|
811
|
+
export interface ApiRegisterStreamingChannelResponse {
|
|
812
|
+
channelId?: string;
|
|
813
|
+
clanId?: string;
|
|
814
|
+
streamingUrl?: string;
|
|
815
|
+
}
|
|
816
|
+
/** */
|
|
817
|
+
export interface ApiListStreamingChannelsResponse {
|
|
818
|
+
streamingChannels?: Array<ApiStreamingChannelResponse>;
|
|
819
|
+
}
|
|
820
|
+
export interface ApiEmojiListedResponse {
|
|
821
|
+
emojiList?: Array<ApiClanEmoji>;
|
|
822
|
+
}
|
|
823
|
+
/** */
|
|
824
|
+
export interface ApiEmojiRecent {
|
|
825
|
+
emojiRecentsId?: string;
|
|
826
|
+
emojiId?: string;
|
|
827
|
+
updateTime?: string;
|
|
828
|
+
}
|
|
829
|
+
export interface ApiAddFriendsResponse {
|
|
830
|
+
ids?: Array<string>;
|
|
831
|
+
usernames?: Array<string>;
|
|
832
|
+
}
|
|
833
|
+
/** */
|
|
834
|
+
export interface ApiEventList {
|
|
835
|
+
events?: Array<ApiEventManagement>;
|
|
836
|
+
}
|
|
837
|
+
/** */
|
|
838
|
+
export interface ApiEventManagement {
|
|
839
|
+
active?: number;
|
|
840
|
+
address?: string;
|
|
841
|
+
channelVoiceId?: string;
|
|
842
|
+
clanId?: string;
|
|
843
|
+
creatorId?: string;
|
|
844
|
+
description?: string;
|
|
845
|
+
endTime?: string;
|
|
846
|
+
id?: string;
|
|
847
|
+
logo?: string;
|
|
848
|
+
maxPermission?: number;
|
|
849
|
+
startEvent?: number;
|
|
850
|
+
startTime?: string;
|
|
851
|
+
title?: string;
|
|
852
|
+
userIds?: Array<string>;
|
|
853
|
+
createTime?: string;
|
|
854
|
+
channelId?: string;
|
|
855
|
+
eventStatus?: number;
|
|
856
|
+
repeatType?: number;
|
|
857
|
+
isPrivate?: boolean;
|
|
858
|
+
meetRoom?: ApiGenerateMezonMeetResponse;
|
|
859
|
+
}
|
|
860
|
+
/** */
|
|
861
|
+
export interface ApiListFavoriteChannelResponse {
|
|
862
|
+
channelIds?: Array<string>;
|
|
863
|
+
}
|
|
864
|
+
/** */
|
|
865
|
+
export interface ApiFilterParam {
|
|
866
|
+
fieldName?: string;
|
|
867
|
+
fieldValue?: string;
|
|
868
|
+
}
|
|
869
|
+
/** A friend of a user. */
|
|
870
|
+
export interface ApiFriend {
|
|
871
|
+
state?: number;
|
|
872
|
+
updateTime?: string;
|
|
873
|
+
user?: ApiUser;
|
|
874
|
+
sourceId?: string;
|
|
875
|
+
}
|
|
876
|
+
/** A collection of zero or more friends of the user. */
|
|
877
|
+
export interface ApiFriendList {
|
|
878
|
+
cursor?: string;
|
|
879
|
+
friends?: Array<ApiFriend>;
|
|
880
|
+
}
|
|
881
|
+
/** */
|
|
882
|
+
export interface ApiGetKeyServerResp {
|
|
883
|
+
url?: string;
|
|
884
|
+
}
|
|
885
|
+
/** */
|
|
886
|
+
export interface ApiGenerateMezonMeetResponse {
|
|
887
|
+
meetId?: string;
|
|
888
|
+
roomName?: string;
|
|
889
|
+
externalLink?: string;
|
|
890
|
+
creatorId?: string;
|
|
891
|
+
eventId?: string;
|
|
892
|
+
}
|
|
893
|
+
/** */
|
|
894
|
+
export interface ApiGenerateMeetTokenExternalResponse {
|
|
895
|
+
guestUserId?: string;
|
|
896
|
+
token?: string;
|
|
897
|
+
guestAccessToken?: string;
|
|
898
|
+
}
|
|
899
|
+
/** */
|
|
900
|
+
export interface ApiMeetParticipantRequest {
|
|
901
|
+
roomName?: string;
|
|
902
|
+
username?: string;
|
|
903
|
+
channelId?: string;
|
|
904
|
+
clanId?: string;
|
|
905
|
+
}
|
|
906
|
+
/** */
|
|
907
|
+
export interface ApiGetPubKeysResponse {
|
|
908
|
+
pubKeys?: Array<GetPubKeysResponseUserPubKey>;
|
|
909
|
+
}
|
|
910
|
+
/** */
|
|
911
|
+
export interface ApiGiveCoffeeEvent {
|
|
912
|
+
channelId?: string;
|
|
913
|
+
clanId?: string;
|
|
914
|
+
messageRefId?: string;
|
|
915
|
+
receiverId?: string;
|
|
916
|
+
senderId?: string;
|
|
917
|
+
tokenCount?: number;
|
|
918
|
+
}
|
|
919
|
+
/** */
|
|
920
|
+
export interface ApiHashtagDm {
|
|
921
|
+
channelId?: string;
|
|
922
|
+
channelLabel?: string;
|
|
923
|
+
channelPrivate?: number;
|
|
924
|
+
clanId?: string;
|
|
925
|
+
clanName?: string;
|
|
926
|
+
meetingCode?: string;
|
|
927
|
+
parentId?: string;
|
|
928
|
+
type?: number;
|
|
929
|
+
}
|
|
930
|
+
/** */
|
|
931
|
+
export interface ApiHashtagDmList {
|
|
932
|
+
hashtagDm?: Array<ApiHashtagDm>;
|
|
933
|
+
}
|
|
934
|
+
/** Add link invite users to. */
|
|
935
|
+
export interface ApiInviteUserRes {
|
|
936
|
+
channelDesc?: ApiChannelDescription;
|
|
937
|
+
channelId?: string;
|
|
938
|
+
channelLabel?: string;
|
|
939
|
+
clanId?: string;
|
|
940
|
+
clanName?: string;
|
|
941
|
+
userJoined?: boolean;
|
|
942
|
+
expiryTime?: string;
|
|
943
|
+
clanLogo: string;
|
|
944
|
+
memberCount: number;
|
|
945
|
+
}
|
|
946
|
+
/** Add link invite users to. */
|
|
947
|
+
export interface ApiLinkInviteUser {
|
|
948
|
+
channelId?: string;
|
|
949
|
+
clanId?: string;
|
|
950
|
+
createTime?: string;
|
|
951
|
+
creatorId?: string;
|
|
952
|
+
expiryTime?: string;
|
|
953
|
+
id?: string;
|
|
954
|
+
inviteLink?: string;
|
|
955
|
+
}
|
|
956
|
+
/** Add link invite users to. */
|
|
957
|
+
export interface ApiLinkInviteUserRequest {
|
|
958
|
+
channelId?: string;
|
|
959
|
+
clanId?: string;
|
|
960
|
+
expiryTime?: number;
|
|
961
|
+
}
|
|
962
|
+
export interface ApiNotifiReactMessage {
|
|
963
|
+
channelId?: string;
|
|
964
|
+
id?: string;
|
|
965
|
+
userId?: string;
|
|
966
|
+
}
|
|
967
|
+
/** */
|
|
968
|
+
export interface ApiMessage2InboxRequest {
|
|
969
|
+
attachments?: string;
|
|
970
|
+
avatar?: string;
|
|
971
|
+
channelId?: string;
|
|
972
|
+
clanId?: string;
|
|
973
|
+
content?: string;
|
|
974
|
+
mentions?: string;
|
|
975
|
+
messageId?: string;
|
|
976
|
+
reactions?: string;
|
|
977
|
+
references?: string;
|
|
978
|
+
}
|
|
979
|
+
/** */
|
|
980
|
+
export interface ApiMessageAttachment {
|
|
981
|
+
filename?: string;
|
|
982
|
+
filetype?: string;
|
|
983
|
+
height?: number;
|
|
984
|
+
size?: number;
|
|
985
|
+
url?: string;
|
|
986
|
+
width?: number;
|
|
987
|
+
thumbnail?: string;
|
|
988
|
+
channelId?: string;
|
|
989
|
+
mode?: number;
|
|
990
|
+
channelLabel?: string;
|
|
991
|
+
messageId?: string;
|
|
992
|
+
senderId?: string;
|
|
993
|
+
duration?: number;
|
|
994
|
+
}
|
|
995
|
+
/** */
|
|
996
|
+
export interface ApiMessageDeleted {
|
|
997
|
+
deletor?: string;
|
|
998
|
+
messageId?: string;
|
|
999
|
+
}
|
|
1000
|
+
/** */
|
|
1001
|
+
export interface ApiListUserActivity {
|
|
1002
|
+
activities?: Array<ApiUserActivity>;
|
|
1003
|
+
}
|
|
1004
|
+
/** */
|
|
1005
|
+
export interface ApiLoginIDResponse {
|
|
1006
|
+
address?: string;
|
|
1007
|
+
createTimeSecond?: string;
|
|
1008
|
+
loginId?: string;
|
|
1009
|
+
platform?: string;
|
|
1010
|
+
status?: number;
|
|
1011
|
+
userId?: string;
|
|
1012
|
+
username?: string;
|
|
1013
|
+
}
|
|
1014
|
+
/** */
|
|
1015
|
+
export interface ApiMarkAsReadRequest {
|
|
1016
|
+
categoryId?: string;
|
|
1017
|
+
channelId?: string;
|
|
1018
|
+
clanId?: string;
|
|
1019
|
+
}
|
|
1020
|
+
/** */
|
|
1021
|
+
export interface ApiMessageMention {
|
|
1022
|
+
createTime?: string;
|
|
1023
|
+
id?: string;
|
|
1024
|
+
userId?: string;
|
|
1025
|
+
username?: string;
|
|
1026
|
+
roleId?: string;
|
|
1027
|
+
rolename?: string;
|
|
1028
|
+
s?: number;
|
|
1029
|
+
e?: number;
|
|
1030
|
+
/** The channel this message belongs to. */
|
|
1031
|
+
channelId?: string;
|
|
1032
|
+
mode?: number;
|
|
1033
|
+
channelLabel?: string;
|
|
1034
|
+
/** The message that user react */
|
|
1035
|
+
messageId?: string;
|
|
1036
|
+
/** Message sender, usually a user ID. */
|
|
1037
|
+
senderId?: string;
|
|
1038
|
+
}
|
|
1039
|
+
/** */
|
|
1040
|
+
export interface ApiLoginRequest {
|
|
1041
|
+
address?: string;
|
|
1042
|
+
platform?: string;
|
|
1043
|
+
}
|
|
1044
|
+
/** */
|
|
1045
|
+
export interface ApiMessageReaction {
|
|
1046
|
+
action?: boolean;
|
|
1047
|
+
emojiId: string;
|
|
1048
|
+
emoji: string;
|
|
1049
|
+
id?: string;
|
|
1050
|
+
senderId?: string;
|
|
1051
|
+
senderName?: string;
|
|
1052
|
+
senderAvatar?: string;
|
|
1053
|
+
count: number;
|
|
1054
|
+
/** The channel this message belongs to. */
|
|
1055
|
+
channelId: string;
|
|
1056
|
+
mode: number;
|
|
1057
|
+
isPublic: boolean;
|
|
1058
|
+
channelLabel: string;
|
|
1059
|
+
/** The message that user react */
|
|
1060
|
+
messageId: string;
|
|
1061
|
+
topicId?: string;
|
|
1062
|
+
emojiRecentId?: string;
|
|
1063
|
+
}
|
|
1064
|
+
export interface ApiListChannelAppsResponse {
|
|
1065
|
+
channelApps?: Array<ApiChannelAppResponse>;
|
|
1066
|
+
}
|
|
1067
|
+
/** */
|
|
1068
|
+
export interface ApiListStreamingChannelsResponse {
|
|
1069
|
+
streamingChannels?: Array<ApiStreamingChannelResponse>;
|
|
1070
|
+
}
|
|
1071
|
+
/** */
|
|
1072
|
+
export interface ApiMezonOauthClient {
|
|
1073
|
+
accessTokenStrategy?: string;
|
|
1074
|
+
allowedCorsOrigins?: Array<string>;
|
|
1075
|
+
audience?: Array<string>;
|
|
1076
|
+
authorizationCodeGrantAccessTokenLifespan?: string;
|
|
1077
|
+
authorizationCodeGrantIdTokenLifespan?: string;
|
|
1078
|
+
authorizationCodeGrantRefreshTokenLifespan?: string;
|
|
1079
|
+
backchannelLogoutSessionRequired?: boolean;
|
|
1080
|
+
backchannelLogoutUri?: string;
|
|
1081
|
+
clientCredentialsGrantAccessTokenLifespan?: string;
|
|
1082
|
+
clientId?: string;
|
|
1083
|
+
clientName?: string;
|
|
1084
|
+
clientSecret?: string;
|
|
1085
|
+
clientSecretExpiresAt?: number;
|
|
1086
|
+
clientUri?: string;
|
|
1087
|
+
contacts?: Array<string>;
|
|
1088
|
+
createdAt?: string;
|
|
1089
|
+
frontchannelLogoutSessionRequired?: boolean;
|
|
1090
|
+
frontchannelLogoutUri?: string;
|
|
1091
|
+
grantTypes?: Array<string>;
|
|
1092
|
+
implicitGrantAccessTokenLifespan?: string;
|
|
1093
|
+
implicitGrantIdTokenLifespan?: string;
|
|
1094
|
+
jwks?: Array<string>;
|
|
1095
|
+
jwksUri?: string;
|
|
1096
|
+
jwtBearerGrantAccessTokenLifespan?: string;
|
|
1097
|
+
logoUri?: string;
|
|
1098
|
+
owner?: string;
|
|
1099
|
+
policyUri?: string;
|
|
1100
|
+
postLogoutRedirectUris?: Array<string>;
|
|
1101
|
+
redirectUris?: Array<string>;
|
|
1102
|
+
refreshTokenGrantAccessTokenLifespan?: string;
|
|
1103
|
+
refreshTokenGrantIdTokenLifespan?: string;
|
|
1104
|
+
refreshTokenGrantRefreshTokenLifespan?: string;
|
|
1105
|
+
registrationAccessToken?: string;
|
|
1106
|
+
registrationClientUri?: string;
|
|
1107
|
+
requestObjectSigningAlg?: string;
|
|
1108
|
+
requestUris?: Array<string>;
|
|
1109
|
+
responseTypes?: Array<string>;
|
|
1110
|
+
scope?: string;
|
|
1111
|
+
sectorIdentifierUri?: string;
|
|
1112
|
+
skipConsent?: boolean;
|
|
1113
|
+
skipLogoutConsent?: boolean;
|
|
1114
|
+
subjectType?: string;
|
|
1115
|
+
tokenEndpointAuthMethod?: string;
|
|
1116
|
+
tokenEndpointAuthSigningAlg?: string;
|
|
1117
|
+
tosUri?: string;
|
|
1118
|
+
updatedAt?: string;
|
|
1119
|
+
userinfoSignedResponseAlg?: string;
|
|
1120
|
+
}
|
|
1121
|
+
/** */
|
|
1122
|
+
export interface ApiMezonOauthClientList {
|
|
1123
|
+
listMezonOauthClient?: Array<ApiMezonOauthClient>;
|
|
1124
|
+
}
|
|
1125
|
+
/** */
|
|
1126
|
+
export interface ApiMessageRef {
|
|
1127
|
+
messageId?: string;
|
|
1128
|
+
messageRefId?: string;
|
|
1129
|
+
refType?: number;
|
|
1130
|
+
messageSenderId?: string;
|
|
1131
|
+
messageSenderUsername?: string;
|
|
1132
|
+
mesagesSenderAvatar?: string;
|
|
1133
|
+
messageSenderClanNick?: string;
|
|
1134
|
+
messageSenderDisplayName?: string;
|
|
1135
|
+
content?: string;
|
|
1136
|
+
hasAttachment: boolean;
|
|
1137
|
+
/** The channel this message belongs to. */
|
|
1138
|
+
channelId: string;
|
|
1139
|
+
mode: number;
|
|
1140
|
+
channelLabel: string;
|
|
1141
|
+
}
|
|
1142
|
+
/** A notification in the server. */
|
|
1143
|
+
export interface ApiNotification {
|
|
1144
|
+
avatarUrl?: string;
|
|
1145
|
+
channelId?: string;
|
|
1146
|
+
channelType?: number;
|
|
1147
|
+
clanId?: string;
|
|
1148
|
+
code?: number;
|
|
1149
|
+
content?: string;
|
|
1150
|
+
createTime?: string;
|
|
1151
|
+
id?: string;
|
|
1152
|
+
persistent?: boolean;
|
|
1153
|
+
senderId?: string;
|
|
1154
|
+
subject?: string;
|
|
1155
|
+
category?: number;
|
|
1156
|
+
topicId?: string;
|
|
1157
|
+
channel?: ApiChannelDescription;
|
|
1158
|
+
}
|
|
1159
|
+
/** */
|
|
1160
|
+
export interface ApiNotificationChannel {
|
|
1161
|
+
channelId?: string;
|
|
1162
|
+
}
|
|
1163
|
+
/** */
|
|
1164
|
+
export interface ApiNotificationChannelCategorySetting {
|
|
1165
|
+
action?: number;
|
|
1166
|
+
channelCategoryLabel?: string;
|
|
1167
|
+
channelCategoryTitle?: string;
|
|
1168
|
+
id?: string;
|
|
1169
|
+
notificationSettingType?: number;
|
|
1170
|
+
}
|
|
1171
|
+
/** */
|
|
1172
|
+
export interface ApiNotificationChannelCategorySettingList {
|
|
1173
|
+
notificationChannelCategorySettingsList?: Array<ApiNotificationChannelCategorySetting>;
|
|
1174
|
+
}
|
|
1175
|
+
/** A collection of zero or more notifications. */
|
|
1176
|
+
export interface ApiNotificationList {
|
|
1177
|
+
cacheableCursor?: string;
|
|
1178
|
+
notifications?: Array<ApiNotification>;
|
|
1179
|
+
}
|
|
1180
|
+
/** */
|
|
1181
|
+
export interface ApiNotificationSetting {
|
|
1182
|
+
id?: string;
|
|
1183
|
+
notificationSettingType?: number;
|
|
1184
|
+
}
|
|
1185
|
+
/** */
|
|
1186
|
+
export interface ApiNotificationUserChannel {
|
|
1187
|
+
active?: number;
|
|
1188
|
+
id?: string;
|
|
1189
|
+
notificationSettingType?: number;
|
|
1190
|
+
timeMute?: string;
|
|
1191
|
+
channelId?: string;
|
|
1192
|
+
}
|
|
1193
|
+
/** */
|
|
1194
|
+
export interface ApiStreamHttpCallbackRequest {
|
|
1195
|
+
action?: string;
|
|
1196
|
+
app?: string;
|
|
1197
|
+
clientId?: string;
|
|
1198
|
+
ip?: string;
|
|
1199
|
+
pageUrl?: string;
|
|
1200
|
+
param?: string;
|
|
1201
|
+
serverId?: string;
|
|
1202
|
+
serviceId?: string;
|
|
1203
|
+
stream?: string;
|
|
1204
|
+
streamId?: string;
|
|
1205
|
+
streamUrl?: string;
|
|
1206
|
+
tcUrl?: string;
|
|
1207
|
+
vhost?: string;
|
|
1208
|
+
}
|
|
1209
|
+
/** */
|
|
1210
|
+
export interface ApiStreamHttpCallbackResponse {
|
|
1211
|
+
code?: number;
|
|
1212
|
+
msg?: string;
|
|
1213
|
+
}
|
|
1214
|
+
/** */
|
|
1215
|
+
export interface ApiPermission {
|
|
1216
|
+
active?: number;
|
|
1217
|
+
description?: string;
|
|
1218
|
+
id?: string;
|
|
1219
|
+
level?: number;
|
|
1220
|
+
scope?: number;
|
|
1221
|
+
slug?: string;
|
|
1222
|
+
title?: string;
|
|
1223
|
+
}
|
|
1224
|
+
/** A list of permission description, usually a result of a list operation. */
|
|
1225
|
+
export interface ApiPermissionList {
|
|
1226
|
+
maxLevelPermission?: number;
|
|
1227
|
+
permissions?: Array<ApiPermission>;
|
|
1228
|
+
}
|
|
1229
|
+
/** */
|
|
1230
|
+
export interface ApiPermissionRoleChannel {
|
|
1231
|
+
active?: boolean;
|
|
1232
|
+
permissionId?: string;
|
|
1233
|
+
}
|
|
1234
|
+
/** */
|
|
1235
|
+
export interface ApiPermissionRoleChannelListEventResponse {
|
|
1236
|
+
channelId?: string;
|
|
1237
|
+
permissionRoleChannel?: Array<ApiPermissionRoleChannel>;
|
|
1238
|
+
roleId?: string;
|
|
1239
|
+
userId?: string;
|
|
1240
|
+
}
|
|
1241
|
+
/** */
|
|
1242
|
+
export interface ApiPermissionUpdate {
|
|
1243
|
+
permissionId?: string;
|
|
1244
|
+
slug?: string;
|
|
1245
|
+
type?: number;
|
|
1246
|
+
}
|
|
1247
|
+
/** */
|
|
1248
|
+
export interface ApiPinMessage {
|
|
1249
|
+
avatar?: string;
|
|
1250
|
+
channelId?: string;
|
|
1251
|
+
content?: string;
|
|
1252
|
+
createTime?: string;
|
|
1253
|
+
createTimeSeconds?: number;
|
|
1254
|
+
id?: string;
|
|
1255
|
+
messageId?: string;
|
|
1256
|
+
senderId?: string;
|
|
1257
|
+
username?: string;
|
|
1258
|
+
attachment?: string;
|
|
1259
|
+
}
|
|
1260
|
+
/** */
|
|
1261
|
+
export interface ApiPinMessageRequest {
|
|
1262
|
+
channelId?: string;
|
|
1263
|
+
clanId?: string;
|
|
1264
|
+
messageId?: string;
|
|
1265
|
+
}
|
|
1266
|
+
/** */
|
|
1267
|
+
export interface ApiPinMessagesList {
|
|
1268
|
+
pinMessagesList?: Array<ApiPinMessage>;
|
|
1269
|
+
}
|
|
1270
|
+
/** */
|
|
1271
|
+
export interface ApiPubKey {
|
|
1272
|
+
encr?: string;
|
|
1273
|
+
sign?: string;
|
|
1274
|
+
}
|
|
1275
|
+
/** */
|
|
1276
|
+
export interface ApiPushPubKeyRequest {
|
|
1277
|
+
PK?: ApiPubKey;
|
|
1278
|
+
}
|
|
1279
|
+
/** */
|
|
1280
|
+
export interface ApiRegistFcmDeviceTokenResponse {
|
|
1281
|
+
deviceId?: string;
|
|
1282
|
+
platform?: string;
|
|
1283
|
+
token?: string;
|
|
1284
|
+
}
|
|
1285
|
+
/** */
|
|
1286
|
+
export interface ApiRegisterStreamingChannelRequest {
|
|
1287
|
+
channelId?: string;
|
|
1288
|
+
clanId?: string;
|
|
1289
|
+
}
|
|
1290
|
+
/** */
|
|
1291
|
+
export interface ApiRegisterStreamingChannelResponse {
|
|
1292
|
+
channelId?: string;
|
|
1293
|
+
clanId?: string;
|
|
1294
|
+
streamingUrl?: string;
|
|
1295
|
+
}
|
|
1296
|
+
/** Storage objects to get. */
|
|
1297
|
+
export interface ApiReadStorageObjectId {
|
|
1298
|
+
collection?: string;
|
|
1299
|
+
key?: string;
|
|
1300
|
+
userId?: string;
|
|
1301
|
+
}
|
|
1302
|
+
/** Batch get storage objects. */
|
|
1303
|
+
export interface ApiReadStorageObjectsRequest {
|
|
1304
|
+
objectIds?: Array<ApiReadStorageObjectId>;
|
|
1305
|
+
}
|
|
1306
|
+
/** */
|
|
1307
|
+
export interface ApiRegistrationEmailRequest {
|
|
1308
|
+
avatarUrl?: string;
|
|
1309
|
+
displayName?: string;
|
|
1310
|
+
dob?: string;
|
|
1311
|
+
email?: string;
|
|
1312
|
+
password?: string;
|
|
1313
|
+
oldPassword?: string;
|
|
1314
|
+
username?: string;
|
|
1315
|
+
vars?: Record<string, string>;
|
|
1316
|
+
}
|
|
1317
|
+
/** */
|
|
1318
|
+
export interface ApiUpdateRoleOrderRequest {
|
|
1319
|
+
clanId?: string;
|
|
1320
|
+
roles?: Array<ApiRoleOrderUpdate>;
|
|
1321
|
+
}
|
|
1322
|
+
/** */
|
|
1323
|
+
export interface ApiRoleOrderUpdate {
|
|
1324
|
+
order?: number;
|
|
1325
|
+
roleId?: string;
|
|
1326
|
+
}
|
|
1327
|
+
/** */
|
|
1328
|
+
export interface ApiRole {
|
|
1329
|
+
active?: number;
|
|
1330
|
+
allowMention?: number;
|
|
1331
|
+
channelIds?: Array<string>;
|
|
1332
|
+
clanId?: string;
|
|
1333
|
+
color?: string;
|
|
1334
|
+
creatorId?: string;
|
|
1335
|
+
description?: string;
|
|
1336
|
+
displayOnline?: number;
|
|
1337
|
+
id?: string;
|
|
1338
|
+
maxLevelPermission?: number;
|
|
1339
|
+
permissionList?: ApiPermissionList;
|
|
1340
|
+
roleChannelActive?: number;
|
|
1341
|
+
roleIcon?: string;
|
|
1342
|
+
roleUserList?: ApiRoleUserList;
|
|
1343
|
+
slug?: string;
|
|
1344
|
+
title?: string;
|
|
1345
|
+
orderRole?: number;
|
|
1346
|
+
}
|
|
1347
|
+
/** */
|
|
1348
|
+
export interface ApiIsBannedResponse {
|
|
1349
|
+
isBanned?: boolean;
|
|
1350
|
+
expiredBanTime?: number;
|
|
1351
|
+
}
|
|
1352
|
+
/** A list of role description, usually a result of a list operation. */
|
|
1353
|
+
export interface ApiRoleList {
|
|
1354
|
+
maxLevelPermission?: number;
|
|
1355
|
+
roles?: Array<ApiRole>;
|
|
1356
|
+
}
|
|
1357
|
+
/** */
|
|
1358
|
+
export interface ApiRoleListEventResponse {
|
|
1359
|
+
clanId?: string;
|
|
1360
|
+
cursor?: string;
|
|
1361
|
+
limit?: number;
|
|
1362
|
+
roles?: ApiRoleList;
|
|
1363
|
+
state?: string;
|
|
1364
|
+
}
|
|
1365
|
+
/** */
|
|
1366
|
+
export interface ApiRoleUserList {
|
|
1367
|
+
cursor?: string;
|
|
1368
|
+
roleUsers?: Array<RoleUserListRoleUser>;
|
|
1369
|
+
}
|
|
1370
|
+
/** Execute an Lua function on the server. */
|
|
1371
|
+
export interface ApiRpc {
|
|
1372
|
+
httpKey?: string;
|
|
1373
|
+
id?: string;
|
|
1374
|
+
payload?: string;
|
|
1375
|
+
}
|
|
1376
|
+
/** */
|
|
1377
|
+
export interface ApiSdTopic {
|
|
1378
|
+
channelId?: string;
|
|
1379
|
+
clanId?: string;
|
|
1380
|
+
createTime?: string;
|
|
1381
|
+
creatorId?: string;
|
|
1382
|
+
id?: string;
|
|
1383
|
+
lastSentMessage?: ApiChannelMessageHeader;
|
|
1384
|
+
messageId?: string;
|
|
1385
|
+
status?: number;
|
|
1386
|
+
updateTime?: string;
|
|
1387
|
+
message?: ApiChannelMessage;
|
|
1388
|
+
}
|
|
1389
|
+
/** */
|
|
1390
|
+
export interface ApiSdTopicList {
|
|
1391
|
+
count?: number;
|
|
1392
|
+
topics?: Array<ApiSdTopic>;
|
|
1393
|
+
}
|
|
1394
|
+
/** */
|
|
1395
|
+
export interface ApiSdTopicRequest {
|
|
1396
|
+
channelId?: string;
|
|
1397
|
+
clanId?: string;
|
|
1398
|
+
messageId?: string;
|
|
1399
|
+
}
|
|
1400
|
+
/** */
|
|
1401
|
+
export interface ApiSearchMessageDocument {
|
|
1402
|
+
attachments?: Array<ApiMessageAttachment>;
|
|
1403
|
+
avatarUrl?: string;
|
|
1404
|
+
channelId?: string;
|
|
1405
|
+
channelLabel?: string;
|
|
1406
|
+
channelType?: number;
|
|
1407
|
+
clanId?: string;
|
|
1408
|
+
clanName?: string;
|
|
1409
|
+
content?: string;
|
|
1410
|
+
createTime?: string;
|
|
1411
|
+
displayName?: string;
|
|
1412
|
+
mentions?: string;
|
|
1413
|
+
messageId?: string;
|
|
1414
|
+
reactions?: string;
|
|
1415
|
+
references?: string;
|
|
1416
|
+
senderId?: string;
|
|
1417
|
+
updateTime?: string;
|
|
1418
|
+
username?: string;
|
|
1419
|
+
}
|
|
1420
|
+
/** */
|
|
1421
|
+
export interface ApiSearchMessageRequest {
|
|
1422
|
+
filters?: Array<ApiFilterParam>;
|
|
1423
|
+
from?: number;
|
|
1424
|
+
size?: number;
|
|
1425
|
+
sorts?: Array<ApiSortParam>;
|
|
1426
|
+
}
|
|
1427
|
+
/** */
|
|
1428
|
+
export interface ApiSearchMessageResponse {
|
|
1429
|
+
messages?: Array<ApiSearchMessageDocument>;
|
|
1430
|
+
total?: number;
|
|
1431
|
+
}
|
|
1432
|
+
/** A user's session used to authenticate messages. */
|
|
1433
|
+
export interface ApiSession {
|
|
1434
|
+
created?: boolean;
|
|
1435
|
+
refreshToken?: string;
|
|
1436
|
+
token?: string;
|
|
1437
|
+
isRemember?: boolean;
|
|
1438
|
+
apiUrl?: string;
|
|
1439
|
+
idToken?: string;
|
|
1440
|
+
}
|
|
1441
|
+
/** Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user. */
|
|
1442
|
+
export interface ApiSessionLogoutRequest {
|
|
1443
|
+
refreshToken?: string;
|
|
1444
|
+
token?: string;
|
|
1445
|
+
deviceId?: string;
|
|
1446
|
+
platform?: string;
|
|
1447
|
+
}
|
|
1448
|
+
/** Authenticate against the server with a refresh token. */
|
|
1449
|
+
export interface ApiSessionRefreshRequest {
|
|
1450
|
+
isRemember?: boolean;
|
|
1451
|
+
token?: string;
|
|
1452
|
+
vars?: Record<string, string>;
|
|
1453
|
+
}
|
|
1454
|
+
/** */
|
|
1455
|
+
export interface ApiSetDefaultNotificationRequest {
|
|
1456
|
+
categoryId?: string;
|
|
1457
|
+
clanId?: string;
|
|
1458
|
+
notificationType?: number;
|
|
1459
|
+
}
|
|
1460
|
+
/** */
|
|
1461
|
+
export interface ApiSetMuteRequest {
|
|
1462
|
+
active?: number;
|
|
1463
|
+
id?: string;
|
|
1464
|
+
muteTime?: number;
|
|
1465
|
+
clanId?: string;
|
|
1466
|
+
}
|
|
1467
|
+
/** */
|
|
1468
|
+
export interface ApiSetNotificationRequest {
|
|
1469
|
+
channelCategoryId?: string;
|
|
1470
|
+
notificationType?: number;
|
|
1471
|
+
clanId?: string;
|
|
1472
|
+
}
|
|
1473
|
+
/** */
|
|
1474
|
+
export interface ApiSortParam {
|
|
1475
|
+
fieldName?: string;
|
|
1476
|
+
order?: string;
|
|
1477
|
+
}
|
|
1478
|
+
/** */
|
|
1479
|
+
export interface ApiStickerListedResponse {
|
|
1480
|
+
stickers?: Array<ApiClanSticker>;
|
|
1481
|
+
}
|
|
1482
|
+
/** */
|
|
1483
|
+
export interface ApiStreamingChannelResponse {
|
|
1484
|
+
channelId?: string;
|
|
1485
|
+
clanId?: string;
|
|
1486
|
+
isStreaming?: boolean;
|
|
1487
|
+
streamingUrl?: string;
|
|
1488
|
+
}
|
|
1489
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
1490
|
+
export interface ApiStreamingChannelUser {
|
|
1491
|
+
channelId?: string;
|
|
1492
|
+
id?: string;
|
|
1493
|
+
participant?: string;
|
|
1494
|
+
userId?: string;
|
|
1495
|
+
}
|
|
1496
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
1497
|
+
export interface ApiStreamingChannelUserList {
|
|
1498
|
+
streamingChannelUsers?: Array<ApiStreamingChannelUser>;
|
|
1499
|
+
}
|
|
1500
|
+
/** System message details. */
|
|
1501
|
+
export interface ApiSystemMessage {
|
|
1502
|
+
boostMessage?: string;
|
|
1503
|
+
channelId?: string;
|
|
1504
|
+
clanId?: string;
|
|
1505
|
+
hideAuditLog?: string;
|
|
1506
|
+
id?: string;
|
|
1507
|
+
setupTips?: string;
|
|
1508
|
+
welcomeRandom?: string;
|
|
1509
|
+
welcomeSticker?: string;
|
|
1510
|
+
}
|
|
1511
|
+
/** Request to get system message by clan and channel IDs. */
|
|
1512
|
+
export interface ApiSystemMessageRequest {
|
|
1513
|
+
boostMessage?: string;
|
|
1514
|
+
channelId?: string;
|
|
1515
|
+
clanId?: string;
|
|
1516
|
+
hideAuditLog?: string;
|
|
1517
|
+
setupTips?: string;
|
|
1518
|
+
welcomeRandom?: string;
|
|
1519
|
+
welcomeSticker?: string;
|
|
1520
|
+
}
|
|
1521
|
+
/** List of system message. */
|
|
1522
|
+
export interface ApiSystemMessagesList {
|
|
1523
|
+
systemMessagesList?: Array<ApiSystemMessage>;
|
|
1524
|
+
}
|
|
1525
|
+
/** */
|
|
1526
|
+
export interface ApiTokenSentEvent {
|
|
1527
|
+
amount?: number;
|
|
1528
|
+
note?: string;
|
|
1529
|
+
receiverId?: string;
|
|
1530
|
+
senderId?: string;
|
|
1531
|
+
senderName?: string;
|
|
1532
|
+
extraAttribute?: string;
|
|
1533
|
+
transactionId?: string;
|
|
1534
|
+
}
|
|
1535
|
+
/** */
|
|
1536
|
+
export interface ApiTransactionDetail {
|
|
1537
|
+
amount?: number;
|
|
1538
|
+
createTime?: string;
|
|
1539
|
+
updateTime?: string;
|
|
1540
|
+
receiverId?: string;
|
|
1541
|
+
receiverUsername?: string;
|
|
1542
|
+
senderId?: string;
|
|
1543
|
+
senderUsername?: string;
|
|
1544
|
+
metadata?: string;
|
|
1545
|
+
transId?: string;
|
|
1546
|
+
}
|
|
1547
|
+
/** Update a user's account details. */
|
|
1548
|
+
export interface ApiUpdateAccountRequest {
|
|
1549
|
+
aboutMe?: string;
|
|
1550
|
+
avatarUrl?: string;
|
|
1551
|
+
displayName?: string;
|
|
1552
|
+
dob?: string;
|
|
1553
|
+
email?: string;
|
|
1554
|
+
encryptPrivateKey?: string;
|
|
1555
|
+
langTag?: string;
|
|
1556
|
+
location?: string;
|
|
1557
|
+
logo?: string;
|
|
1558
|
+
splashScreen?: string;
|
|
1559
|
+
timezone?: string;
|
|
1560
|
+
}
|
|
1561
|
+
/** */
|
|
1562
|
+
export interface ApiUpdateCategoryDescRequest {
|
|
1563
|
+
categoryId?: string;
|
|
1564
|
+
categoryName?: string;
|
|
1565
|
+
ClanId: string;
|
|
1566
|
+
}
|
|
1567
|
+
/** */
|
|
1568
|
+
export interface ApiUpdateCategoryOrderRequest {
|
|
1569
|
+
categories?: Array<ApiCategoryOrderUpdate>;
|
|
1570
|
+
clanId?: string;
|
|
1571
|
+
}
|
|
1572
|
+
/** */
|
|
1573
|
+
export interface ApiUpdateRoleChannelRequest {
|
|
1574
|
+
channelId: string;
|
|
1575
|
+
maxPermissionId: string;
|
|
1576
|
+
permissionUpdate?: Array<ApiPermissionUpdate>;
|
|
1577
|
+
roleId?: string;
|
|
1578
|
+
roleLabel?: string;
|
|
1579
|
+
userId?: string;
|
|
1580
|
+
}
|
|
1581
|
+
/** Fetch a batch of zero or more users from the server. */
|
|
1582
|
+
export interface ApiUpdateUsersRequest {
|
|
1583
|
+
avatarUrl?: string;
|
|
1584
|
+
displayName?: string;
|
|
1585
|
+
}
|
|
1586
|
+
/** */
|
|
1587
|
+
export interface ApiUploadAttachment {
|
|
1588
|
+
filename?: string;
|
|
1589
|
+
url?: string;
|
|
1590
|
+
}
|
|
1591
|
+
/** */
|
|
1592
|
+
export interface ApiUploadAttachmentRequest {
|
|
1593
|
+
filename?: string;
|
|
1594
|
+
filetype?: string;
|
|
1595
|
+
height?: number;
|
|
1596
|
+
size?: number;
|
|
1597
|
+
width?: number;
|
|
1598
|
+
}
|
|
1599
|
+
/** A user in the server. */
|
|
1600
|
+
export interface ApiUser {
|
|
1601
|
+
aboutMe?: string;
|
|
1602
|
+
avatarUrl?: string;
|
|
1603
|
+
dob?: string;
|
|
1604
|
+
createTime?: string;
|
|
1605
|
+
displayName?: string;
|
|
1606
|
+
edgeCount?: number;
|
|
1607
|
+
id?: string;
|
|
1608
|
+
isMobile?: boolean;
|
|
1609
|
+
joinTime?: string;
|
|
1610
|
+
langTag?: string;
|
|
1611
|
+
location?: string;
|
|
1612
|
+
userStatus?: string;
|
|
1613
|
+
status?: string;
|
|
1614
|
+
online?: boolean;
|
|
1615
|
+
timezone?: string;
|
|
1616
|
+
updateTime?: string;
|
|
1617
|
+
username?: string;
|
|
1618
|
+
mezonId?: string;
|
|
1619
|
+
listNickNames?: Array<string>;
|
|
1620
|
+
phoneNumber?: string;
|
|
1621
|
+
}
|
|
1622
|
+
/** */
|
|
1623
|
+
export interface ApiUserActivity {
|
|
1624
|
+
activityDescription?: string;
|
|
1625
|
+
activityName?: string;
|
|
1626
|
+
activityType?: number;
|
|
1627
|
+
applicationId?: string;
|
|
1628
|
+
endTime?: string;
|
|
1629
|
+
startTime?: string;
|
|
1630
|
+
status?: number;
|
|
1631
|
+
userId?: string;
|
|
1632
|
+
}
|
|
1633
|
+
/** */
|
|
1634
|
+
export interface ApiQuickMenuAccess {
|
|
1635
|
+
actionMsg?: string;
|
|
1636
|
+
background?: string;
|
|
1637
|
+
botId?: string;
|
|
1638
|
+
channelId?: string;
|
|
1639
|
+
clanId?: string;
|
|
1640
|
+
id?: string;
|
|
1641
|
+
menuName?: string;
|
|
1642
|
+
menuType?: number;
|
|
1643
|
+
}
|
|
1644
|
+
/** */
|
|
1645
|
+
export interface ApiQuickMenuAccessList {
|
|
1646
|
+
listMenus?: Array<ApiQuickMenuAccess>;
|
|
1647
|
+
}
|
|
1648
|
+
/** */
|
|
1649
|
+
export interface ApiQuickMenuAccessRequest {
|
|
1650
|
+
actionMsg?: string;
|
|
1651
|
+
background?: string;
|
|
1652
|
+
botId?: string;
|
|
1653
|
+
channelId?: string;
|
|
1654
|
+
clanId?: string;
|
|
1655
|
+
id?: string;
|
|
1656
|
+
menuName?: string;
|
|
1657
|
+
menuType?: number;
|
|
1658
|
+
}
|
|
1659
|
+
/** */
|
|
1660
|
+
export interface ApiUserPermissionInChannelListResponse {
|
|
1661
|
+
channelId?: string;
|
|
1662
|
+
clanId?: string;
|
|
1663
|
+
permissions?: ApiPermissionList;
|
|
1664
|
+
}
|
|
1665
|
+
/** */
|
|
1666
|
+
export interface ApiUserStatus {
|
|
1667
|
+
status?: string;
|
|
1668
|
+
userId?: string;
|
|
1669
|
+
}
|
|
1670
|
+
/** */
|
|
1671
|
+
export interface ApiUserStatusUpdate {
|
|
1672
|
+
minutes?: number;
|
|
1673
|
+
status?: string;
|
|
1674
|
+
untilTurnOn?: boolean;
|
|
1675
|
+
}
|
|
1676
|
+
/** A collection of zero or more users. */
|
|
1677
|
+
export interface ApiUsers {
|
|
1678
|
+
users?: Array<ApiUser>;
|
|
1679
|
+
}
|
|
1680
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
1681
|
+
export interface ApiVoiceChannelUser {
|
|
1682
|
+
id?: string;
|
|
1683
|
+
channelId?: string;
|
|
1684
|
+
participant?: string;
|
|
1685
|
+
userId?: string;
|
|
1686
|
+
}
|
|
1687
|
+
/** A list of users belonging to a channel, along with their role. */
|
|
1688
|
+
export interface ApiVoiceChannelUserList {
|
|
1689
|
+
voiceChannelUsers?: Array<ApiVoiceChannelUser>;
|
|
1690
|
+
}
|
|
1691
|
+
/** */
|
|
1692
|
+
export interface ApiWebhook {
|
|
1693
|
+
active?: number;
|
|
1694
|
+
avatar?: string;
|
|
1695
|
+
channelId?: string;
|
|
1696
|
+
createTime?: string;
|
|
1697
|
+
creatorId?: string;
|
|
1698
|
+
id?: string;
|
|
1699
|
+
status?: number;
|
|
1700
|
+
updateTime?: string;
|
|
1701
|
+
url?: string;
|
|
1702
|
+
webhookName?: string;
|
|
1703
|
+
clanId?: string;
|
|
1704
|
+
}
|
|
1705
|
+
/** */
|
|
1706
|
+
export interface ApiWebhookCreateRequest {
|
|
1707
|
+
avatar?: string;
|
|
1708
|
+
channelId?: string;
|
|
1709
|
+
clanId?: string;
|
|
1710
|
+
webhookName?: string;
|
|
1711
|
+
}
|
|
1712
|
+
/** */
|
|
1713
|
+
export interface ApiWebhookGenerateResponse {
|
|
1714
|
+
avatar?: string;
|
|
1715
|
+
channelId?: string;
|
|
1716
|
+
hookName?: string;
|
|
1717
|
+
url?: string;
|
|
1718
|
+
}
|
|
1719
|
+
/** */
|
|
1720
|
+
export interface ApiWebhookListResponse {
|
|
1721
|
+
webhooks?: Array<ApiWebhook>;
|
|
1722
|
+
}
|
|
1723
|
+
/** A collection of zero or more notifications. */
|
|
1724
|
+
export interface ApiEmojiRecentList {
|
|
1725
|
+
emojiRecents?: Array<ApiEmojiRecent>;
|
|
1726
|
+
}
|
|
1727
|
+
/** Represents an event to be passed through the server to registered event handlers. */
|
|
1728
|
+
export interface MezonapiEvent {
|
|
1729
|
+
external?: boolean;
|
|
1730
|
+
name?: string;
|
|
1731
|
+
properties?: Record<string, string>;
|
|
1732
|
+
timestamp?: string;
|
|
1733
|
+
}
|
|
1734
|
+
/** */
|
|
1735
|
+
export interface MezonapiListAuditLog {
|
|
1736
|
+
dateLog?: string;
|
|
1737
|
+
logs?: Array<ApiAuditLog>;
|
|
1738
|
+
totalCount?: number;
|
|
1739
|
+
}
|
|
1740
|
+
/** */
|
|
1741
|
+
export interface ProtobufAny {
|
|
1742
|
+
typeUrl?: string;
|
|
1743
|
+
value?: string;
|
|
1744
|
+
}
|
|
1745
|
+
/** */
|
|
1746
|
+
export interface RpcStatus {
|
|
1747
|
+
code?: number;
|
|
1748
|
+
details?: Array<ProtobufAny>;
|
|
1749
|
+
message?: string;
|
|
1750
|
+
}
|
|
1751
|
+
/** */
|
|
1752
|
+
export interface ApiListOnboardingResponse {
|
|
1753
|
+
listOnboarding?: Array<ApiOnboardingItem>;
|
|
1754
|
+
}
|
|
1755
|
+
/** */
|
|
1756
|
+
export interface OnboardingAnswer {
|
|
1757
|
+
emoji?: string;
|
|
1758
|
+
description?: string;
|
|
1759
|
+
title?: string;
|
|
1760
|
+
imageUrl?: string;
|
|
1761
|
+
}
|
|
1762
|
+
/** */
|
|
1763
|
+
export interface ApiOnboardingContent {
|
|
1764
|
+
answers?: Array<OnboardingAnswer>;
|
|
1765
|
+
channelId?: string;
|
|
1766
|
+
content?: string;
|
|
1767
|
+
guideType?: number;
|
|
1768
|
+
taskType?: number;
|
|
1769
|
+
title?: string;
|
|
1770
|
+
imageUrl?: string;
|
|
1771
|
+
}
|
|
1772
|
+
/** */
|
|
1773
|
+
export interface MezonUpdateOnboardingBody {
|
|
1774
|
+
answers?: Array<OnboardingAnswer>;
|
|
1775
|
+
channelId?: string;
|
|
1776
|
+
clanId?: string;
|
|
1777
|
+
content?: string;
|
|
1778
|
+
taskType?: number;
|
|
1779
|
+
title?: string;
|
|
1780
|
+
imageUrl?: string;
|
|
1781
|
+
}
|
|
1782
|
+
/** */
|
|
1783
|
+
export interface ApiCreateOnboardingRequest {
|
|
1784
|
+
clanId?: string;
|
|
1785
|
+
contents?: Array<ApiOnboardingContent>;
|
|
1786
|
+
}
|
|
1787
|
+
/** */
|
|
1788
|
+
export interface ApiOnboardingItem {
|
|
1789
|
+
answers?: Array<OnboardingAnswer>;
|
|
1790
|
+
channelId?: string;
|
|
1791
|
+
clanId?: string;
|
|
1792
|
+
content?: string;
|
|
1793
|
+
createTime?: string;
|
|
1794
|
+
guideType?: number;
|
|
1795
|
+
id?: string;
|
|
1796
|
+
taskType?: number;
|
|
1797
|
+
title?: string;
|
|
1798
|
+
updateTime?: string;
|
|
1799
|
+
imageUrl?: string;
|
|
1800
|
+
}
|
|
1801
|
+
/** */
|
|
1802
|
+
export interface MezonUpdateClanWebhookByIdBody {
|
|
1803
|
+
avatar?: string;
|
|
1804
|
+
clanId?: string;
|
|
1805
|
+
resetToken?: boolean;
|
|
1806
|
+
webhookName?: string;
|
|
1807
|
+
}
|
|
1808
|
+
/** */
|
|
1809
|
+
export interface ApiClanWebhook {
|
|
1810
|
+
active?: number;
|
|
1811
|
+
avatar?: string;
|
|
1812
|
+
clanId?: string;
|
|
1813
|
+
createTime?: string;
|
|
1814
|
+
creatorId?: string;
|
|
1815
|
+
id?: string;
|
|
1816
|
+
updateTime?: string;
|
|
1817
|
+
url?: string;
|
|
1818
|
+
webhookName?: string;
|
|
1819
|
+
}
|
|
1820
|
+
/** */
|
|
1821
|
+
export interface ApiGenerateClanWebhookRequest {
|
|
1822
|
+
avatar?: string;
|
|
1823
|
+
clanId?: string;
|
|
1824
|
+
webhookName?: string;
|
|
1825
|
+
}
|
|
1826
|
+
/** */
|
|
1827
|
+
export interface ApiGenerateClanWebhookResponse {
|
|
1828
|
+
avatar?: string;
|
|
1829
|
+
clanId?: string;
|
|
1830
|
+
url?: string;
|
|
1831
|
+
webhookName?: string;
|
|
1832
|
+
}
|
|
1833
|
+
/** */
|
|
1834
|
+
export interface ApiListClanWebhookResponse {
|
|
1835
|
+
listClanWebhooks?: Array<ApiClanWebhook>;
|
|
1836
|
+
}
|
|
1837
|
+
/** */
|
|
1838
|
+
export interface MezonUpdateOnboardingStepByClanIdBody {
|
|
1839
|
+
onboardingStep?: number;
|
|
1840
|
+
}
|
|
1841
|
+
/** */
|
|
1842
|
+
export interface ApiListOnboardingStepResponse {
|
|
1843
|
+
listOnboardingStep?: Array<ApiOnboardingSteps>;
|
|
1844
|
+
}
|
|
1845
|
+
/** */
|
|
1846
|
+
export interface ApiOnboardingSteps {
|
|
1847
|
+
clanId?: string;
|
|
1848
|
+
id?: string;
|
|
1849
|
+
onboardingStep?: number;
|
|
1850
|
+
userId?: string;
|
|
1851
|
+
}
|
|
1852
|
+
/** */
|
|
1853
|
+
export interface MezonapiCreateRoomChannelApps {
|
|
1854
|
+
channelId?: string;
|
|
1855
|
+
roomName?: string;
|
|
1856
|
+
}
|
|
1857
|
+
/** */
|
|
1858
|
+
export interface ApiGenerateMeetTokenRequest {
|
|
1859
|
+
channelId?: string;
|
|
1860
|
+
roomName?: string;
|
|
1861
|
+
}
|
|
1862
|
+
/** */
|
|
1863
|
+
export interface ApiGenerateMeetTokenResponse {
|
|
1864
|
+
token?: string;
|
|
1865
|
+
}
|
|
1866
|
+
/** */
|
|
1867
|
+
export interface ApiUnlockedItemRequest {
|
|
1868
|
+
itemId?: string;
|
|
1869
|
+
itemType?: number;
|
|
1870
|
+
}
|
|
1871
|
+
/** */
|
|
1872
|
+
export interface ApiUnlockedItemResponse {
|
|
1873
|
+
source?: string;
|
|
1874
|
+
}
|
|
1875
|
+
/** */
|
|
1876
|
+
export interface ApiMezonOauthClient {
|
|
1877
|
+
accessTokenStrategy?: string;
|
|
1878
|
+
allowedCorsOrigins?: Array<string>;
|
|
1879
|
+
audience?: Array<string>;
|
|
1880
|
+
authorizationCodeGrantAccessTokenLifespan?: string;
|
|
1881
|
+
authorizationCodeGrantIdTokenLifespan?: string;
|
|
1882
|
+
authorizationCodeGrantRefreshTokenLifespan?: string;
|
|
1883
|
+
backchannelLogoutSessionRequired?: boolean;
|
|
1884
|
+
backchannelLogoutUri?: string;
|
|
1885
|
+
clientCredentialsGrantAccessTokenLifespan?: string;
|
|
1886
|
+
clientId?: string;
|
|
1887
|
+
clientName?: string;
|
|
1888
|
+
clientSecret?: string;
|
|
1889
|
+
clientSecretExpiresAt?: number;
|
|
1890
|
+
clientUri?: string;
|
|
1891
|
+
contacts?: Array<string>;
|
|
1892
|
+
createdAt?: string;
|
|
1893
|
+
frontchannelLogoutSessionRequired?: boolean;
|
|
1894
|
+
frontchannelLogoutUri?: string;
|
|
1895
|
+
grantTypes?: Array<string>;
|
|
1896
|
+
implicitGrantAccessTokenLifespan?: string;
|
|
1897
|
+
implicitGrantIdTokenLifespan?: string;
|
|
1898
|
+
jwks?: Array<string>;
|
|
1899
|
+
jwksUri?: string;
|
|
1900
|
+
jwtBearerGrantAccessTokenLifespan?: string;
|
|
1901
|
+
logoUri?: string;
|
|
1902
|
+
owner?: string;
|
|
1903
|
+
policyUri?: string;
|
|
1904
|
+
postLogoutRedirectUris?: Array<string>;
|
|
1905
|
+
redirectUris?: Array<string>;
|
|
1906
|
+
refreshTokenGrantAccessTokenLifespan?: string;
|
|
1907
|
+
refreshTokenGrantIdTokenLifespan?: string;
|
|
1908
|
+
refreshTokenGrantRefreshTokenLifespan?: string;
|
|
1909
|
+
registrationAccessToken?: string;
|
|
1910
|
+
registrationClientUri?: string;
|
|
1911
|
+
requestObjectSigningAlg?: string;
|
|
1912
|
+
requestUris?: Array<string>;
|
|
1913
|
+
responseTypes?: Array<string>;
|
|
1914
|
+
scope?: string;
|
|
1915
|
+
sectorIdentifierUri?: string;
|
|
1916
|
+
skipConsent?: boolean;
|
|
1917
|
+
skipLogoutConsent?: boolean;
|
|
1918
|
+
subjectType?: string;
|
|
1919
|
+
tokenEndpointAuthMethod?: string;
|
|
1920
|
+
tokenEndpointAuthSigningAlg?: string;
|
|
1921
|
+
tosUri?: string;
|
|
1922
|
+
updatedAt?: string;
|
|
1923
|
+
userinfoSignedResponseAlg?: string;
|
|
1924
|
+
}
|
|
1925
|
+
/** */
|
|
1926
|
+
export interface ApiCreateHashChannelAppsResponse {
|
|
1927
|
+
webAppData?: string;
|
|
1928
|
+
}
|
|
1929
|
+
/** */
|
|
1930
|
+
export interface ApiUserEventRequest {
|
|
1931
|
+
clanId?: string;
|
|
1932
|
+
eventId?: string;
|
|
1933
|
+
}
|
|
1934
|
+
/** */
|
|
1935
|
+
export interface ApiClanDiscover {
|
|
1936
|
+
about?: string;
|
|
1937
|
+
banner?: string;
|
|
1938
|
+
clanId?: string;
|
|
1939
|
+
clanLogo?: string;
|
|
1940
|
+
clanName?: string;
|
|
1941
|
+
description?: string;
|
|
1942
|
+
inviteId?: string;
|
|
1943
|
+
onlineMembers?: number;
|
|
1944
|
+
totalMembers?: number;
|
|
1945
|
+
verified?: boolean;
|
|
1946
|
+
shortUrl?: string;
|
|
1947
|
+
createTime?: string;
|
|
1948
|
+
}
|
|
1949
|
+
/** */
|
|
1950
|
+
export interface ApiListForSaleItemsRequest {
|
|
1951
|
+
page?: number;
|
|
1952
|
+
}
|
|
1953
|
+
/** */
|
|
1954
|
+
export interface ApiForSaleItem {
|
|
1955
|
+
previewUrl?: string;
|
|
1956
|
+
type?: number;
|
|
1957
|
+
}
|
|
1958
|
+
/** */
|
|
1959
|
+
export interface ApiForSaleItemList {
|
|
1960
|
+
forSaleItems?: Array<ApiForSaleItem>;
|
|
1961
|
+
}
|
|
1962
|
+
/** */
|
|
1963
|
+
export interface ApiListClanDiscover {
|
|
1964
|
+
clanDiscover?: Array<ApiClanDiscover>;
|
|
1965
|
+
page?: number;
|
|
1966
|
+
pageCount?: number;
|
|
1967
|
+
}
|
|
1968
|
+
/** */
|
|
1969
|
+
export interface ApiListClanUnreadMsgIndicatorResponse {
|
|
1970
|
+
hasUnreadMessage?: boolean;
|
|
1971
|
+
}
|
|
1972
|
+
/** */
|
|
1973
|
+
export interface ApiClanDiscoverRequest {
|
|
1974
|
+
clanId?: string;
|
|
1975
|
+
itemPerPage?: number;
|
|
1976
|
+
pageNumber?: number;
|
|
1977
|
+
}
|
|
1978
|
+
/** */
|
|
1979
|
+
export interface ApiIsFollowerRequest {
|
|
1980
|
+
followId?: string;
|
|
1981
|
+
}
|
|
1982
|
+
/** */
|
|
1983
|
+
export interface ApiLinkAccountConfirmRequest {
|
|
1984
|
+
otpCode?: string;
|
|
1985
|
+
reqId?: string;
|
|
1986
|
+
status?: number;
|
|
1987
|
+
}
|
|
1988
|
+
/** */
|
|
1989
|
+
export interface ApiIsFollowerResponse {
|
|
1990
|
+
isFollower?: boolean;
|
|
1991
|
+
followId?: string;
|
|
1992
|
+
}
|
|
1993
|
+
/** */
|
|
1994
|
+
export interface ApiTransferOwnershipRequest {
|
|
1995
|
+
clanId?: string;
|
|
1996
|
+
newOwnerId?: string;
|
|
1997
|
+
}
|
|
1998
|
+
/** */
|
|
1999
|
+
export interface ApiTransferOwnershipRequest {
|
|
2000
|
+
clanId?: string;
|
|
2001
|
+
newOwnerId?: string;
|
|
2002
|
+
}
|
|
2003
|
+
/** A message sent on a channel. */
|
|
2004
|
+
export interface ChannelMessage {
|
|
2005
|
+
id: string;
|
|
2006
|
+
avatar?: string;
|
|
2007
|
+
channelId: string;
|
|
2008
|
+
channelLabel: string;
|
|
2009
|
+
clanId?: string;
|
|
2010
|
+
code: number;
|
|
2011
|
+
content: string;
|
|
2012
|
+
createTime: string;
|
|
2013
|
+
reactions?: Array<ApiMessageReaction>;
|
|
2014
|
+
mentions?: Array<ApiMessageMention>;
|
|
2015
|
+
attachments?: Array<ApiMessageAttachment>;
|
|
2016
|
+
references?: Array<ApiMessageRef>;
|
|
2017
|
+
referencedMessage?: string[];
|
|
2018
|
+
persistent?: boolean;
|
|
2019
|
+
senderId: string;
|
|
2020
|
+
updateTime?: string;
|
|
2021
|
+
clanLogo?: string;
|
|
2022
|
+
categoryName?: string;
|
|
2023
|
+
username?: string;
|
|
2024
|
+
clanNick?: string;
|
|
2025
|
+
clanAvatar?: string;
|
|
2026
|
+
displayName?: string;
|
|
2027
|
+
createTimeSeconds?: number;
|
|
2028
|
+
updateTimeSeconds?: number;
|
|
2029
|
+
mode?: number;
|
|
2030
|
+
messageId?: string;
|
|
2031
|
+
hideEditted?: boolean;
|
|
2032
|
+
isPublic?: boolean;
|
|
2033
|
+
topicId?: string;
|
|
2034
|
+
}
|
|
2035
|
+
/** A list of channel messages, usually a result of a list operation. */
|
|
2036
|
+
export interface ChannelMessageList {
|
|
2037
|
+
/** Cacheable cursor to list newer messages. Durable and designed to be stored, unlike next/prev cursors. */
|
|
2038
|
+
cacheableCursor?: string;
|
|
2039
|
+
/**last seen message from user on channel */
|
|
2040
|
+
lastSeenMessage?: ApiChannelMessageHeader;
|
|
2041
|
+
/**last sent message from channel */
|
|
2042
|
+
lastSentMessage?: ApiChannelMessageHeader;
|
|
2043
|
+
/** A list of messages. */
|
|
2044
|
+
messages?: Array<ChannelMessage>;
|
|
2045
|
+
/** The cursor to send when retireving the next page, if any. */
|
|
2046
|
+
nextCursor?: string;
|
|
2047
|
+
/** The cursor to send when retrieving the previous page, if any. */
|
|
2048
|
+
prevCursor?: string;
|
|
2049
|
+
}
|
|
2050
|
+
/** A collection of zero or more users. */
|
|
2051
|
+
export interface Users {
|
|
2052
|
+
/** The User objects. */
|
|
2053
|
+
users?: Array<ApiUser>;
|
|
2054
|
+
}
|
|
2055
|
+
/** A collection of zero or more friends of the user. */
|
|
2056
|
+
export interface Friends {
|
|
2057
|
+
/** The Friend objects. */
|
|
2058
|
+
friends?: Array<ApiFriend>;
|
|
2059
|
+
/** Cursor for the next page of results, if any. */
|
|
2060
|
+
cursor?: string;
|
|
2061
|
+
}
|
|
2062
|
+
/** A notification in the server. */
|
|
2063
|
+
export interface Notification {
|
|
2064
|
+
/** Category code for this notification. */
|
|
2065
|
+
code?: number;
|
|
2066
|
+
/** Content of the notification in JSON. */
|
|
2067
|
+
content?: {};
|
|
2068
|
+
/** The UNIX time when the notification was created. */
|
|
2069
|
+
createTime?: string;
|
|
2070
|
+
/** ID of the Notification. */
|
|
2071
|
+
id?: string;
|
|
2072
|
+
/** True if this notification was persisted to the database. */
|
|
2073
|
+
persistent?: boolean;
|
|
2074
|
+
/** ID of the sender, if a user. Otherwise 'null'. */
|
|
2075
|
+
senderId?: string;
|
|
2076
|
+
/** Subject of the notification. */
|
|
2077
|
+
subject?: string;
|
|
2078
|
+
}
|
|
2079
|
+
/** A collection of zero or more notifications. */
|
|
2080
|
+
export interface NotificationList {
|
|
2081
|
+
/** Use this cursor to paginate notifications. Cache this to catch up to new notifications. */
|
|
2082
|
+
cacheableCursor?: string;
|
|
2083
|
+
/** Collection of notifications. */
|
|
2084
|
+
notifications?: Array<Notification>;
|
|
2085
|
+
}
|
|
2086
|
+
/** Update fields in a given channel. */
|
|
2087
|
+
export interface ApiUpdateChannelDescRequest {
|
|
2088
|
+
/** The ID of the channel to update. */
|
|
2089
|
+
channelId: string;
|
|
2090
|
+
/** The channel lable */
|
|
2091
|
+
channelLabel: string | undefined;
|
|
2092
|
+
/** The category of channel */
|
|
2093
|
+
categoryId: string | undefined;
|
|
2094
|
+
/** The app url of channel */
|
|
2095
|
+
appId: string | undefined;
|
|
2096
|
+
e2ee?: number;
|
|
2097
|
+
topic?: string;
|
|
2098
|
+
ageRestricted?: number;
|
|
2099
|
+
channelAvatar?: string;
|
|
2100
|
+
}
|
|
2101
|
+
/** Add users to a channel. */
|
|
2102
|
+
export interface ApiAddChannelUsersRequest {
|
|
2103
|
+
/** The channel to add users to. */
|
|
2104
|
+
channelId: string;
|
|
2105
|
+
/** The users to add. */
|
|
2106
|
+
userIds: string[];
|
|
2107
|
+
}
|
|
2108
|
+
/** Kick a set of users from a channel. */
|
|
2109
|
+
export interface ApiKickChannelUsersRequest {
|
|
2110
|
+
/** The channel ID to kick from. */
|
|
2111
|
+
channelId: string;
|
|
2112
|
+
/** The users to kick. */
|
|
2113
|
+
userIds: string[];
|
|
2114
|
+
}
|
|
2115
|
+
/** Leave a channel. */
|
|
2116
|
+
export interface ApiLeaveChannelRequest {
|
|
2117
|
+
/** The channel ID to leave. */
|
|
2118
|
+
channelId: string;
|
|
2119
|
+
}
|
|
2120
|
+
/** Update Clan profile information */
|
|
2121
|
+
export interface ApiUpdateClanDescProfileRequest {
|
|
2122
|
+
/** Clan id */
|
|
2123
|
+
clanId: string;
|
|
2124
|
+
/** Clan nick name */
|
|
2125
|
+
nickName: string;
|
|
2126
|
+
/** Clan profile banner */
|
|
2127
|
+
profileBanner: string;
|
|
2128
|
+
/** Clan profile theme */
|
|
2129
|
+
profileTheme: string;
|
|
2130
|
+
/** Clan profile avatar */
|
|
2131
|
+
avatarUrl: string;
|
|
2132
|
+
}
|
|
2133
|
+
export interface ApiUpdateClanProfileRequest {
|
|
2134
|
+
/** Clan id*/
|
|
2135
|
+
clanId: string;
|
|
2136
|
+
/** Clan nick name */
|
|
2137
|
+
nickName: string;
|
|
2138
|
+
/** Clan profile avatar */
|
|
2139
|
+
avatar: string;
|
|
2140
|
+
}
|
|
2141
|
+
/** Update fields in a given role. */
|
|
2142
|
+
export interface ApiUpdateRoleRequest {
|
|
2143
|
+
/** The ID of the role to update. */
|
|
2144
|
+
roleId: string;
|
|
2145
|
+
/** The users to add. */
|
|
2146
|
+
addUserIds: string[];
|
|
2147
|
+
/** The permissions to add. */
|
|
2148
|
+
activePermissionIds: string[];
|
|
2149
|
+
/** The users to remove. */
|
|
2150
|
+
removeUserIds: string[];
|
|
2151
|
+
/** The permissions to remove. */
|
|
2152
|
+
removePermissionIds: string[];
|
|
2153
|
+
clanId: string;
|
|
2154
|
+
maxPermissionId: string;
|
|
2155
|
+
title?: string | undefined;
|
|
2156
|
+
color?: string | undefined;
|
|
2157
|
+
roleIcon?: string | undefined;
|
|
2158
|
+
description?: string | undefined;
|
|
2159
|
+
displayOnline?: number | undefined;
|
|
2160
|
+
allowMention?: number | undefined;
|
|
2161
|
+
}
|
|
2162
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
2163
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
2164
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
2165
|
+
} : Partial<T>;
|
|
2166
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
2167
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
2168
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
2169
|
+
} & {
|
|
2170
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
2171
|
+
};
|
|
2172
|
+
export declare const Session: {
|
|
2173
|
+
encode(message: Session, writer?: _m0.Writer): _m0.Writer;
|
|
2174
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Session;
|
|
2175
|
+
fromJSON(object: any): Session;
|
|
2176
|
+
toJSON(message: Session): unknown;
|
|
2177
|
+
create<I extends {
|
|
2178
|
+
created?: boolean | undefined;
|
|
2179
|
+
token?: string | undefined;
|
|
2180
|
+
refreshToken?: string | undefined;
|
|
2181
|
+
userId?: string | undefined;
|
|
2182
|
+
isRemember?: boolean | undefined;
|
|
2183
|
+
apiUrl?: string | undefined;
|
|
2184
|
+
idToken?: string | undefined;
|
|
2185
|
+
} & {
|
|
2186
|
+
created?: boolean | undefined;
|
|
2187
|
+
token?: string | undefined;
|
|
2188
|
+
refreshToken?: string | undefined;
|
|
2189
|
+
userId?: string | undefined;
|
|
2190
|
+
isRemember?: boolean | undefined;
|
|
2191
|
+
apiUrl?: string | undefined;
|
|
2192
|
+
idToken?: string | undefined;
|
|
2193
|
+
} & { [K in Exclude<keyof I, keyof Session>]: never; }>(base?: I | undefined): Session;
|
|
2194
|
+
fromPartial<I_1 extends {
|
|
2195
|
+
created?: boolean | undefined;
|
|
2196
|
+
token?: string | undefined;
|
|
2197
|
+
refreshToken?: string | undefined;
|
|
2198
|
+
userId?: string | undefined;
|
|
2199
|
+
isRemember?: boolean | undefined;
|
|
2200
|
+
apiUrl?: string | undefined;
|
|
2201
|
+
idToken?: string | undefined;
|
|
2202
|
+
} & {
|
|
2203
|
+
created?: boolean | undefined;
|
|
2204
|
+
token?: string | undefined;
|
|
2205
|
+
refreshToken?: string | undefined;
|
|
2206
|
+
userId?: string | undefined;
|
|
2207
|
+
isRemember?: boolean | undefined;
|
|
2208
|
+
apiUrl?: string | undefined;
|
|
2209
|
+
idToken?: string | undefined;
|
|
2210
|
+
} & { [K_1 in Exclude<keyof I_1, keyof Session>]: never; }>(object: I_1): Session;
|
|
2211
|
+
};
|
|
2212
|
+
export {};
|