mezon-js 2.13.68 → 2.13.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api/api.d.ts CHANGED
@@ -46,32 +46,32 @@ export declare function operatorToJSON(object: Operator): string;
46
46
  /** A user with additional account details. Always the current user. */
47
47
  export interface Account {
48
48
  /** The user object. */
49
- user?: User | undefined;
49
+ user: User | undefined;
50
50
  /** The email address of the user. */
51
- email?: string | undefined;
51
+ email: string;
52
52
  /** The qr code in the user's account. */
53
- qr_code?: string | undefined;
53
+ qr_code: string;
54
54
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's email was verified. */
55
- verify_time?: Date | undefined;
55
+ verify_time: Date | undefined;
56
56
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's account was disabled/banned. */
57
- disable_time?: Date | undefined;
57
+ disable_time: Date | undefined;
58
58
  /** Logo url */
59
- logo?: string | undefined;
59
+ logo: string;
60
60
  /** Splash screen url */
61
- splash_screen?: string | undefined;
61
+ splash_screen: string;
62
62
  /** E2ee encrypt private key */
63
- encrypt_private_key?: string | undefined;
63
+ encrypt_private_key: string;
64
64
  /** password is setted */
65
- password_setted?: boolean | undefined;
65
+ password_setted: boolean;
66
66
  }
67
67
  /** Obtain a new authentication token using a refresh token. */
68
68
  export interface AccountRefresh {
69
69
  /** Refresh token. */
70
- token?: string | undefined;
70
+ token: string;
71
71
  /** Extra information that will be bundled in the session token. */
72
- vars?: {
72
+ vars: {
73
73
  [key: string]: string;
74
- } | undefined;
74
+ };
75
75
  }
76
76
  export interface AccountRefresh_VarsEntry {
77
77
  key: string;
@@ -80,34 +80,34 @@ export interface AccountRefresh_VarsEntry {
80
80
  /** Add one or more friends to the current user. */
81
81
  export interface AddFriendsRequest {
82
82
  /** The account id of a user. */
83
- ids?: string[] | undefined;
83
+ ids: string[];
84
84
  /** The account username of a user. */
85
- usernames?: string[] | undefined;
85
+ usernames: string[];
86
86
  }
87
87
  /** Add one or more friends to the current user. */
88
88
  export interface AddFriendsResponse {
89
89
  /** The account id of a user. */
90
- ids?: string[] | undefined;
90
+ ids: string[];
91
91
  /** The account username of a user. */
92
- usernames?: string[] | undefined;
92
+ usernames: string[];
93
93
  }
94
94
  /** Add users to a group. */
95
95
  export interface AddGroupUsersRequest {
96
96
  /** The group to add users to. */
97
- group_id?: string | undefined;
97
+ group_id: string;
98
98
  /** The users to add. */
99
- user_ids?: string[] | undefined;
99
+ user_ids: string[];
100
100
  }
101
101
  /** Authenticate against the server with a refresh token. */
102
102
  export interface SessionRefreshRequest {
103
103
  /** Refresh token. */
104
- token?: string | undefined;
104
+ token: string;
105
105
  /** Extra information that will be bundled in the session token. */
106
- vars?: {
106
+ vars: {
107
107
  [key: string]: string;
108
- } | undefined;
108
+ };
109
109
  /** Whether to enable "Remember Me" for extended session duration. */
110
- is_remember?: boolean | undefined;
110
+ is_remember: boolean | undefined;
111
111
  }
112
112
  export interface SessionRefreshRequest_VarsEntry {
113
113
  key: string;
@@ -116,277 +116,277 @@ export interface SessionRefreshRequest_VarsEntry {
116
116
  /** Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user. */
117
117
  export interface SessionLogoutRequest {
118
118
  /** Session token to log out. */
119
- token?: string | undefined;
119
+ token: string;
120
120
  /** Refresh token to invalidate. */
121
- refresh_token?: string | undefined;
121
+ refresh_token: string;
122
122
  /** Device Id */
123
- device_id?: string | undefined;
123
+ device_id: string;
124
124
  /** FCM token from firebase */
125
- fcm_token?: string | undefined;
125
+ fcm_token: string;
126
126
  /** platform */
127
- platform?: string | undefined;
127
+ platform: string;
128
128
  }
129
129
  export interface IsBannedResponse {
130
- is_banned?: boolean | undefined;
131
- expired_ban_time?: number | undefined;
130
+ is_banned: boolean;
131
+ expired_ban_time: number;
132
132
  }
133
133
  export interface IsBannedRequest {
134
- channel_id?: string | undefined;
134
+ channel_id: string;
135
135
  }
136
136
  /** Ban users from a group. */
137
137
  export interface BanGroupUsersRequest {
138
138
  /** The group to ban users from. */
139
- group_id?: string | undefined;
139
+ group_id: string;
140
140
  /** The users to ban. */
141
- user_ids?: string[] | undefined;
141
+ user_ids: string[];
142
142
  }
143
143
  /** Block one or more friends for the current user. */
144
144
  export interface BlockFriendsRequest {
145
145
  /** The account id of a user. */
146
- ids?: string[] | undefined;
146
+ ids: string[];
147
147
  /** The account username of a user. */
148
- usernames?: string[] | undefined;
148
+ usernames: string[];
149
149
  }
150
150
  /** A message sent on a channel. */
151
151
  export interface ChannelMessage {
152
152
  /** The clan this message belong to. */
153
- clan_id?: string | undefined;
153
+ clan_id: string;
154
154
  /** The channel this message belongs to. */
155
- channel_id?: string | undefined;
155
+ channel_id: string;
156
156
  /** The unique ID of this message. */
157
- message_id?: string | undefined;
157
+ message_id: string;
158
158
  /** The code representing a message type or category. */
159
- code?: number | undefined;
159
+ code: number | undefined;
160
160
  /** Message sender, usually a user ID. */
161
- sender_id?: string | undefined;
161
+ sender_id: string;
162
162
  /** The username of the message sender, if any. */
163
- username?: string | undefined;
163
+ username: string;
164
164
  /** The avatar of user who send message */
165
- avatar?: string | undefined;
165
+ avatar: string;
166
166
  /** The content payload. */
167
- content?: string | undefined;
167
+ content: string;
168
168
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
169
- create_time?: Date | undefined;
169
+ create_time: Date | undefined;
170
170
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated. */
171
- update_time?: Date | undefined;
171
+ update_time: Date | undefined;
172
172
  /** The name of the chat room, or an empty string if this message was not sent through a chat room. */
173
- channel_label?: string | undefined;
173
+ channel_label: string;
174
174
  /** The clan logo */
175
- clan_logo?: string | undefined;
175
+ clan_logo: string;
176
176
  /** The category name */
177
- category_name?: string | undefined;
177
+ category_name: string;
178
178
  /** The clan nick name */
179
- display_name?: string | undefined;
179
+ display_name: string;
180
180
  /** The clan nick name */
181
- clan_nick?: string | undefined;
181
+ clan_nick: string;
182
182
  /** The clan avatar */
183
- clan_avatar?: string | undefined;
183
+ clan_avatar: string;
184
184
  /** Emoji reaction */
185
- reactions?: string | undefined;
185
+ reactions: string;
186
186
  /** Message mention */
187
- mentions?: string | undefined;
187
+ mentions: string;
188
188
  /** Message attachment */
189
- attachments?: string | undefined;
189
+ attachments: string;
190
190
  /** Message reference */
191
- references?: string | undefined;
191
+ references: string;
192
192
  /** referenced message */
193
- referenced_message?: string | undefined;
193
+ referenced_message: string;
194
194
  /** create time in ms */
195
- create_time_seconds?: number | undefined;
195
+ create_time_seconds: number;
196
196
  /** update time in ms */
197
- update_time_seconds?: number | undefined;
197
+ update_time_seconds: number;
198
198
  /** channel mode */
199
- mode?: number | undefined;
199
+ mode: number;
200
200
  /** hide editted */
201
- hide_editted?: boolean | undefined;
201
+ hide_editted: boolean;
202
202
  /** is public */
203
- is_public?: boolean | undefined;
203
+ is_public: boolean;
204
204
  /** topic */
205
- topic_id?: string | undefined;
205
+ topic_id: string;
206
206
  }
207
207
  /** Mention to message */
208
208
  export interface MessageMention {
209
209
  /** Mention id */
210
- id?: string | undefined;
210
+ id: string;
211
211
  /** mention user id */
212
- user_id?: string | undefined;
212
+ user_id: string;
213
213
  /** mention username */
214
- username?: string | undefined;
214
+ username: string;
215
215
  /** role id */
216
- role_id?: string | undefined;
216
+ role_id: string;
217
217
  /** role name */
218
- rolename?: string | undefined;
218
+ rolename: string;
219
219
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
220
- create_time?: Date | undefined;
220
+ create_time: Date | undefined;
221
221
  /** start position from text */
222
- s?: number | undefined;
222
+ s: number;
223
223
  /** end position from text */
224
- e?: number | undefined;
224
+ e: number;
225
225
  }
226
226
  /** Mention to message */
227
227
  export interface NotificationInfo {
228
228
  /** username */
229
- username?: string | undefined;
229
+ username: string;
230
230
  /** avatar */
231
- avatar?: string | undefined;
231
+ avatar: string;
232
232
  /** clan nick name */
233
- clan_nick?: string | undefined;
233
+ clan_nick: string;
234
234
  /** clan avatar */
235
- clan_avatar?: string | undefined;
235
+ clan_avatar: string;
236
236
  /** display name */
237
- display_name?: string | undefined;
237
+ display_name: string;
238
238
  /** channel label */
239
- channel_label?: string | undefined;
239
+ channel_label: string;
240
240
  /** channel type */
241
- channel_type?: number | undefined;
241
+ channel_type: number;
242
242
  /** category name */
243
- category_name?: string | undefined;
243
+ category_name: string;
244
244
  /** clan name */
245
- clan_name?: string | undefined;
245
+ clan_name: string;
246
246
  /** clan logo */
247
- clan_logo?: string | undefined;
247
+ clan_logo: string;
248
248
  /** */
249
- channel?: ChannelDescription | undefined;
249
+ channel: ChannelDescription | undefined;
250
250
  }
251
251
  /** Emoji reaction by user */
252
252
  export interface MessageReaction {
253
253
  /** Reaction id */
254
- id?: string | undefined;
254
+ id: string;
255
255
  /** An emoji id */
256
- emoji_id?: string | undefined;
256
+ emoji_id: string;
257
257
  /** An emoji shortname */
258
- emoji?: string | undefined;
258
+ emoji: string;
259
259
  /** User react to message */
260
- sender_id?: string | undefined;
260
+ sender_id: string;
261
261
  /** Sender name */
262
- sender_name?: string | undefined;
262
+ sender_name: string;
263
263
  /** avatar */
264
- sender_avatar?: string | undefined;
264
+ sender_avatar: string;
265
265
  /** Action reaction delete or add */
266
- action?: boolean | undefined;
266
+ action: boolean;
267
267
  /** count of emoji */
268
- count?: number | undefined;
268
+ count: number;
269
269
  /** channel id */
270
- channel_id?: string | undefined;
270
+ channel_id: string;
271
271
  /** message id */
272
- message_id?: string | undefined;
272
+ message_id: string;
273
273
  /** clan id */
274
- clan_id?: string | undefined;
274
+ clan_id: string;
275
275
  /** mode */
276
- mode?: number | undefined;
276
+ mode: number;
277
277
  /** message sender id */
278
- message_sender_id?: string | undefined;
278
+ message_sender_id: string;
279
279
  /** is public */
280
- is_public?: boolean | undefined;
280
+ is_public: boolean;
281
281
  /** topic id */
282
- topic_id?: string | undefined;
282
+ topic_id: string;
283
283
  /** emoji_recent_id */
284
- emoji_recent_id?: string | undefined;
284
+ emoji_recent_id: string;
285
285
  }
286
286
  /** Message attachment */
287
287
  export interface MessageAttachment {
288
288
  /** Attachment file name */
289
- filename?: string | undefined;
289
+ filename: string;
290
290
  /** Attachment file size */
291
- size?: number | undefined;
291
+ size: number;
292
292
  /** Attachment url */
293
- url?: string | undefined;
293
+ url: string;
294
294
  /** Attachment file type */
295
- filetype?: string | undefined;
295
+ filetype: string;
296
296
  /** Attachment width */
297
- width?: number | undefined;
297
+ width: number;
298
298
  /** Attachment width */
299
- height?: number | undefined;
299
+ height: number;
300
300
  /** thumbnail */
301
- thumbnail?: string | undefined;
301
+ thumbnail: string;
302
302
  /** duration for video */
303
- duration?: number | undefined;
303
+ duration: number;
304
304
  }
305
305
  /** Message reference */
306
306
  export interface MessageRef {
307
307
  /** A message source */
308
- message_id?: string | undefined;
308
+ message_id: string;
309
309
  /** A message reference to */
310
- message_ref_id?: string | undefined;
310
+ message_ref_id: string;
311
311
  /** content reference */
312
- content?: string | undefined;
312
+ content: string;
313
313
  /** has attachment */
314
- has_attachment?: boolean | undefined;
314
+ has_attachment: boolean;
315
315
  /** Reference type. 0: reply */
316
- ref_type?: number | undefined;
316
+ ref_type: number;
317
317
  /** original message sender */
318
- message_sender_id?: string | undefined;
318
+ message_sender_id: string;
319
319
  /** original message sendre username */
320
- message_sender_username?: string | undefined;
320
+ message_sender_username: string;
321
321
  /** original message sender avatar */
322
- mesages_sender_avatar?: string | undefined;
322
+ mesages_sender_avatar: string;
323
323
  /** original sender clan nick name */
324
- message_sender_clan_nick?: string | undefined;
324
+ message_sender_clan_nick: string;
325
325
  /** original sender display name */
326
- message_sender_display_name?: string | undefined;
326
+ message_sender_display_name: string;
327
327
  }
328
328
  /** Message reference */
329
329
  export interface MessageDeleted {
330
330
  /** A deleted message source */
331
- message_id?: string | undefined;
331
+ message_id: string;
332
332
  /** Who delete it */
333
- deletor?: string | undefined;
333
+ deletor: string;
334
334
  }
335
335
  /** A list of channel messages, usually a result of a list operation. */
336
336
  export interface ChannelMessageList {
337
337
  /** A list of messages. */
338
- messages?: ChannelMessage[] | undefined;
338
+ messages: ChannelMessage[];
339
339
  /** last seen message id by user */
340
- last_seen_message?: ChannelMessageHeader | undefined;
340
+ last_seen_message: ChannelMessageHeader | undefined;
341
341
  /** last sent message id */
342
- last_sent_message?: ChannelMessageHeader | undefined;
342
+ last_sent_message: ChannelMessageHeader | undefined;
343
343
  }
344
344
  /** Create a group with the current user as owner. */
345
345
  export interface CreateGroupRequest {
346
346
  /** A unique name for the group. */
347
- name?: string | undefined;
347
+ name: string;
348
348
  /** A description for the group. */
349
- description?: string | undefined;
349
+ description: string;
350
350
  /** The language expected to be a tag which follows the BCP-47 spec. */
351
- lang_tag?: string | undefined;
351
+ lang_tag: string;
352
352
  /** A URL for an avatar image. */
353
- avatar_url?: string | undefined;
353
+ avatar_url: string;
354
354
  /** Mark a group as open or not where only admins can accept members. */
355
- open?: boolean | undefined;
355
+ open: boolean;
356
356
  /** Maximum number of group members. */
357
- max_count?: number | undefined;
357
+ max_count: number;
358
358
  }
359
359
  /** Delete one or more friends for the current user. */
360
360
  export interface DeleteFriendsRequest {
361
361
  /** The account id of a user. */
362
- ids?: string[] | undefined;
362
+ ids: string[];
363
363
  /** The account username of a user. */
364
- usernames?: string[] | undefined;
364
+ usernames: string[];
365
365
  }
366
366
  /** Delete a group the user has access to. */
367
367
  export interface DeleteGroupRequest {
368
368
  /** The id of a group. */
369
- group_id?: string | undefined;
369
+ group_id: string;
370
370
  }
371
371
  /** Delete one or more notifications for the current user. */
372
372
  export interface DeleteNotificationsRequest {
373
373
  /** The id of notifications. */
374
- ids?: string[] | undefined;
374
+ ids: string[];
375
375
  /** The category of notifications. */
376
- category?: number | undefined;
376
+ category: number;
377
377
  }
378
378
  /** Represents an event to be passed through the server to registered event handlers. */
379
379
  export interface Event {
380
380
  /** An event name, type, category, or identifier. */
381
- name?: string | undefined;
381
+ name: string;
382
382
  /** Arbitrary event property values. */
383
- properties?: {
383
+ properties: {
384
384
  [key: string]: string;
385
- } | undefined;
385
+ };
386
386
  /** The time when the event was triggered. */
387
- timestamp?: Date | undefined;
387
+ timestamp: Date | undefined;
388
388
  /** True if the event came directly from a client call, false otherwise. */
389
- external?: boolean | undefined;
389
+ external: boolean;
390
390
  }
391
391
  export interface Event_PropertiesEntry {
392
392
  key: string;
@@ -395,13 +395,13 @@ export interface Event_PropertiesEntry {
395
395
  /** A friend of a user. */
396
396
  export interface Friend {
397
397
  /** The user object. */
398
- user?: User | undefined;
398
+ user: User | undefined;
399
399
  /** The friend status. */
400
- state?: number | undefined;
400
+ state: number | undefined;
401
401
  /** Time of the latest relationship update. */
402
- update_time?: Date | undefined;
402
+ update_time: Date | undefined;
403
403
  /** source id */
404
- source_id?: string | undefined;
404
+ source_id: string;
405
405
  }
406
406
  /** The friendship status. */
407
407
  export declare enum Friend_State {
@@ -420,2620 +420,2620 @@ export declare function friend_StateToJSON(object: Friend_State): string;
420
420
  /** A collection of zero or more friends of the user. */
421
421
  export interface FriendList {
422
422
  /** The Friend objects. */
423
- friends?: Friend[] | undefined;
423
+ friends: Friend[];
424
424
  /** Cursor for the next page of results, if any. */
425
- cursor?: string | undefined;
425
+ cursor: string;
426
426
  }
427
427
  /** Fetch a batch of zero or more users from the server. */
428
428
  export interface UpdateUsersRequest {
429
429
  /** The account username of a user. */
430
- display_name?: string | undefined;
430
+ display_name: string;
431
431
  /** The avarar_url of a user. */
432
- avatar_url?: string | undefined;
432
+ avatar_url: string;
433
433
  }
434
434
  /** A list of users belonging to a channel, along with their role. */
435
435
  export interface ChannelUserList {
436
436
  /** User-role pairs for a channel. */
437
- channel_users?: ChannelUserList_ChannelUser[] | undefined;
437
+ channel_users: ChannelUserList_ChannelUser[];
438
438
  /** Cursor for the next page of results, if any. */
439
- cursor?: string | undefined;
439
+ cursor: string;
440
440
  /** channel id */
441
- channel_id?: string | undefined;
441
+ channel_id: string;
442
442
  }
443
443
  /** A single user-role pair. */
444
444
  export interface ChannelUserList_ChannelUser {
445
445
  /** User. */
446
- user_id?: string | undefined;
446
+ user_id: string;
447
447
  /** Their relationship to the role. */
448
- role_id?: string[] | undefined;
448
+ role_id: string[];
449
449
  /** Id */
450
- id?: string | undefined;
450
+ id: string;
451
451
  /** thread id */
452
- thread_id?: string | undefined;
452
+ thread_id: string;
453
453
  /** clan nick name */
454
- clan_nick?: string | undefined;
454
+ clan_nick: string;
455
455
  /** clan avatar */
456
- clan_avatar?: string | undefined;
456
+ clan_avatar: string;
457
457
  /** clan Id */
458
- clan_id?: string | undefined;
458
+ clan_id: string;
459
459
  /** added by */
460
- added_by?: string | undefined;
460
+ added_by: string;
461
461
  /** is banned */
462
- is_banned?: boolean | undefined;
462
+ is_banned: boolean;
463
463
  /** expired time */
464
- expired_ban_time?: number | undefined;
464
+ expired_ban_time: number;
465
465
  }
466
466
  /** A list of users belonging to a channel, along with their role. */
467
467
  export interface VoiceChannelUser {
468
468
  /** voice user join id */
469
- id?: string | undefined;
469
+ id: string;
470
470
  /** User for a channel. */
471
- user_id?: string | undefined;
471
+ user_id: string;
472
472
  /** channel id */
473
- channel_id?: string | undefined;
473
+ channel_id: string;
474
474
  /** participant */
475
- participant?: string | undefined;
475
+ participant: string;
476
476
  }
477
477
  /** A list of users belonging to a channel, along with their role. */
478
478
  export interface VoiceChannelUserList {
479
479
  /** list of voice channel user */
480
- voice_channel_users?: VoiceChannelUser[] | undefined;
480
+ voice_channel_users: VoiceChannelUser[];
481
481
  }
482
482
  /** channel attachment */
483
483
  export interface ChannelAttachment {
484
484
  /** url attachment */
485
- id?: string | undefined;
485
+ id: string;
486
486
  /** file name */
487
- filename?: string | undefined;
487
+ filename: string;
488
488
  /** filetype */
489
- filetype?: string | undefined;
489
+ filetype: string;
490
490
  /** size */
491
- filesize?: string | undefined;
491
+ filesize: string;
492
492
  /** url */
493
- url?: string | undefined;
493
+ url: string;
494
494
  /** uploader */
495
- uploader?: string | undefined;
495
+ uploader: string;
496
496
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created. */
497
- create_time?: Date | undefined;
497
+ create_time: Date | undefined;
498
498
  /** message id. */
499
- message_id?: string | undefined;
499
+ message_id: string;
500
500
  /** width */
501
- width?: number | undefined;
501
+ width: number;
502
502
  /** height */
503
- height?: number | undefined;
503
+ height: number;
504
504
  }
505
505
  /** channel attachment list */
506
506
  export interface ChannelAttachmentList {
507
507
  /** list attachment */
508
- attachments?: ChannelAttachment[] | undefined;
508
+ attachments: ChannelAttachment[];
509
509
  }
510
510
  /** A list of users belonging to a clan, along with their role. */
511
511
  export interface ClanUserList {
512
512
  /** User-role pairs for a clan. */
513
- clan_users?: ClanUserList_ClanUser[] | undefined;
513
+ clan_users: ClanUserList_ClanUser[];
514
514
  /** Cursor for the next page of results, if any. */
515
- cursor?: string | undefined;
515
+ cursor: string;
516
516
  /** clan id */
517
- clan_id?: string | undefined;
517
+ clan_id: string;
518
518
  }
519
519
  /** A single user-role pair. */
520
520
  export interface ClanUserList_ClanUser {
521
521
  /** User. */
522
- user?: User | undefined;
522
+ user: User | undefined;
523
523
  /** Their relationship to the role. */
524
- role_id?: string[] | undefined;
524
+ role_id: string[];
525
525
  /** from the `nick_name` field in the `clan_desc_profile` table. */
526
- clan_nick?: string | undefined;
526
+ clan_nick: string;
527
527
  /** from the `avatar_url` field in the `clan_desc_profile` table. */
528
- clan_avatar?: string | undefined;
528
+ clan_avatar: string;
529
529
  /** */
530
- clan_id?: string | undefined;
530
+ clan_id: string;
531
531
  }
532
532
  export interface RegistFcmDeviceTokenRequest {
533
533
  /** The token */
534
- token?: string | undefined;
534
+ token: string;
535
535
  /** */
536
- device_id?: string | undefined;
536
+ device_id: string;
537
537
  /** */
538
- platform?: string | undefined;
538
+ platform: string;
539
539
  /** voip token for IOS */
540
- voip_token?: string | undefined;
540
+ voip_token: string;
541
541
  }
542
542
  export interface RegistFcmDeviceTokenResponse {
543
543
  /** The token */
544
- token?: string | undefined;
544
+ token: string;
545
545
  /** */
546
- device_id?: string | undefined;
546
+ device_id: string;
547
547
  /** */
548
- platform?: string | undefined;
548
+ platform: string;
549
549
  }
550
550
  /** List a channel's message history. */
551
551
  export interface ListChannelMessagesRequest {
552
552
  /** the clan id */
553
- clan_id?: string | undefined;
553
+ clan_id: string;
554
554
  /** The channel ID to list from. */
555
- channel_id?: string | undefined;
555
+ channel_id: string;
556
556
  /** The current message ID. */
557
- message_id?: string | undefined;
557
+ message_id: string;
558
558
  /** Max number of records to return. Between 1 and 100. */
559
- limit?: number | undefined;
559
+ limit: number | undefined;
560
560
  /** True if listing should be older messages to newer, false if reverse. */
561
- direction?: number | undefined;
561
+ direction: number | undefined;
562
562
  /** */
563
- topic_id?: string | undefined;
563
+ topic_id: string;
564
564
  }
565
565
  /** List friends for a user. */
566
566
  export interface ListFriendsRequest {
567
567
  /** Max number of records to return. Between 1 and 100. */
568
- limit?: number | undefined;
568
+ limit: number | undefined;
569
569
  /** The friend state to list. */
570
- state?: number | undefined;
570
+ state: number | undefined;
571
571
  /** An optional next page cursor. */
572
- cursor?: string | undefined;
572
+ cursor: string;
573
573
  }
574
574
  /** List groups based on given filters. */
575
575
  export interface ListGroupsRequest {
576
576
  /** List groups that contain this value in their names. */
577
- name?: string | undefined;
577
+ name: string;
578
578
  /** Optional pagination cursor. */
579
- cursor?: string | undefined;
579
+ cursor: string;
580
580
  /** Max number of groups to return. Between 1 and 100. */
581
- limit?: number | undefined;
581
+ limit: number | undefined;
582
582
  /** Language tag filter */
583
- lang_tag?: string | undefined;
583
+ lang_tag: string;
584
584
  /** Number of group members */
585
- members?: number | undefined;
585
+ members: number | undefined;
586
586
  /** Optional Open/Closed filter. */
587
- open?: boolean | undefined;
587
+ open: boolean | undefined;
588
588
  }
589
589
  /** List all users that are part of a group. */
590
590
  export interface ListGroupUsersRequest {
591
591
  /** The group ID to list from. */
592
- group_id?: string | undefined;
592
+ group_id: string;
593
593
  /** Max number of records to return. Between 1 and 100. */
594
- limit?: number | undefined;
594
+ limit: number | undefined;
595
595
  /** The group user state to list. */
596
- state?: number | undefined;
596
+ state: number | undefined;
597
597
  /** An optional next page cursor. */
598
- cursor?: string | undefined;
598
+ cursor: string;
599
599
  }
600
600
  /** List all users that are part of a channel. */
601
601
  export interface ListChannelUsersRequest {
602
602
  /** The clan id */
603
- clan_id?: string | undefined;
603
+ clan_id: string;
604
604
  /** The channel ID to list from. */
605
- channel_id?: string | undefined;
605
+ channel_id: string;
606
606
  /** The channel type */
607
- channel_type?: number | undefined;
607
+ channel_type: number;
608
608
  /** Max number of records to return. Between 1 and 100. */
609
- limit?: number | undefined;
609
+ limit: number | undefined;
610
610
  /** The group user state to list. */
611
- state?: number | undefined;
611
+ state: number | undefined;
612
612
  /** An optional next page cursor. */
613
- cursor?: string | undefined;
613
+ cursor: string;
614
614
  }
615
615
  /** List all attachments that are part of a channel. */
616
616
  export interface ListChannelAttachmentRequest {
617
617
  /** The clan id */
618
- clan_id?: string | undefined;
618
+ clan_id: string;
619
619
  /** The channel ID to list from. */
620
- channel_id?: string | undefined;
620
+ channel_id: string;
621
621
  /** The channel type */
622
- file_type?: string | undefined;
622
+ file_type: string;
623
623
  /** Max number of records to return. Between 1 and 100. */
624
- limit?: number | undefined;
624
+ limit: number | undefined;
625
625
  /** The group user state to list. */
626
- state?: number | undefined;
626
+ state: number | undefined;
627
627
  /** An optional previous id for page. */
628
- before?: number | undefined;
628
+ before: number;
629
629
  /** An optional next id for page. */
630
- after?: number | undefined;
630
+ after: number;
631
631
  /** An optional around id for page. */
632
- around?: number | undefined;
632
+ around: number;
633
633
  }
634
634
  /** List all users that are part of a clan. */
635
635
  export interface ListClanUsersRequest {
636
636
  /** The clan ID to list from. */
637
- clan_id?: string | undefined;
637
+ clan_id: string;
638
638
  }
639
639
  /** Get a list of unexpired notifications. */
640
640
  export interface ListNotificationsRequest {
641
641
  /** The number of notifications to get. Between 1 and 100. */
642
- limit?: number | undefined;
642
+ limit: number | undefined;
643
643
  /** The clan id */
644
- clan_id?: string | undefined;
644
+ clan_id: string;
645
645
  /** The current notification Id. */
646
- notification_id?: string | undefined;
646
+ notification_id: string;
647
647
  /** The category (1: mentions, 2: mesages, 3: for you). */
648
- category?: number | undefined;
648
+ category: number;
649
649
  /** True if listing should be older notifications to newer, false if reverse. */
650
- direction?: number | undefined;
650
+ direction: number | undefined;
651
651
  }
652
652
  /** List the groups a user is part of, and their relationship to each. */
653
653
  export interface ListUserGroupsRequest {
654
654
  /** ID of the user. */
655
- user_id?: string | undefined;
655
+ user_id: string;
656
656
  /** Max number of records to return. Between 1 and 100. */
657
- limit?: number | undefined;
657
+ limit: number | undefined;
658
658
  /** The user group state to list. */
659
- state?: number | undefined;
659
+ state: number | undefined;
660
660
  /** An optional next page cursor. */
661
- cursor?: string | undefined;
661
+ cursor: string;
662
662
  }
663
663
  /** A notification in the server. */
664
664
  export interface Notification {
665
665
  /** ID of the Notification. */
666
- id?: string | undefined;
666
+ id: string;
667
667
  /** Subject of the notification. */
668
- subject?: string | undefined;
668
+ subject: string;
669
669
  /** Content of the notification in JSON. */
670
- content?: string | undefined;
670
+ content: string;
671
671
  /** Category code for this notification. */
672
- code?: number | undefined;
672
+ code: number;
673
673
  /** ID of the sender, if a user. Otherwise 'null'. */
674
- sender_id?: string | undefined;
674
+ sender_id: string;
675
675
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the notification was created. */
676
- create_time?: Date | undefined;
676
+ create_time: Date | undefined;
677
677
  /** True if this notification was persisted to the database. */
678
- persistent?: boolean | undefined;
678
+ persistent: boolean;
679
679
  /** ID of clan */
680
- clan_id?: string | undefined;
680
+ clan_id: string;
681
681
  /** ID of channel */
682
- channel_id?: string | undefined;
682
+ channel_id: string;
683
683
  /** mode of */
684
- channel_type?: number | undefined;
684
+ channel_type: number;
685
685
  /** */
686
- avatar_url?: string | undefined;
686
+ avatar_url: string;
687
687
  /** */
688
- channel?: ChannelDescription | undefined;
688
+ channel: ChannelDescription | undefined;
689
689
  /** */
690
- topic_id?: string | undefined;
690
+ topic_id: string;
691
691
  /** category. */
692
- category?: number | undefined;
692
+ category: number;
693
693
  }
694
694
  /** */
695
695
  export interface EmojiRecent {
696
696
  /** ID of the emoji. */
697
- emoji_recents_id?: string | undefined;
697
+ emoji_recents_id: string;
698
698
  /** */
699
- emoji_id?: string | undefined;
699
+ emoji_id: string;
700
700
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the emoji was created. */
701
- update_time?: Date | undefined;
701
+ update_time: Date | undefined;
702
702
  }
703
703
  /** A collection of zero or more notifications. */
704
704
  export interface EmojiRecentList {
705
705
  /** Collection of emojiRecents. */
706
- emoji_recents?: EmojiRecent[] | undefined;
706
+ emoji_recents: EmojiRecent[];
707
707
  }
708
708
  /** A collection of zero or more notifications. */
709
709
  export interface NotificationList {
710
710
  /** Collection of notifications. */
711
- notifications?: Notification[] | undefined;
711
+ notifications: Notification[];
712
712
  /** Use this cursor to paginate notifications. Cache this to catch up to new notifications. */
713
- cacheable_cursor?: string | undefined;
713
+ cacheable_cursor: string;
714
714
  }
715
715
  /** Promote a set of users in a group to the next role up. */
716
716
  export interface PromoteGroupUsersRequest {
717
717
  /** The group ID to promote in. */
718
- group_id?: string | undefined;
718
+ group_id: string;
719
719
  /** The users to promote. */
720
- user_ids?: string[] | undefined;
720
+ user_ids: string[];
721
721
  }
722
722
  /** Demote a set of users in a group to the next role down. */
723
723
  export interface DemoteGroupUsersRequest {
724
724
  /** The group ID to demote in. */
725
- group_id?: string | undefined;
725
+ group_id: string;
726
726
  /** The users to demote. */
727
- user_ids?: string[] | undefined;
727
+ user_ids: string[];
728
728
  }
729
729
  /** Execute an Lua function on the server. */
730
730
  export interface Rpc {
731
731
  /** The identifier of the function. */
732
- id?: string | undefined;
732
+ id: string;
733
733
  /** The payload of the function which must be a JSON object. */
734
- payload?: string | undefined;
734
+ payload: string;
735
735
  /** The authentication key used when executed as a non-client HTTP request. */
736
- http_key?: string | undefined;
736
+ http_key: string;
737
737
  }
738
738
  /** A user's session used to authenticate messages. */
739
739
  export interface Session {
740
740
  /** True if the corresponding account was just created, false otherwise. */
741
- created?: boolean | undefined;
741
+ created: boolean;
742
742
  /** Authentication credentials. */
743
- token?: string | undefined;
743
+ token: string;
744
744
  /** Refresh token that can be used for session token renewal. */
745
- refresh_token?: string | undefined;
745
+ refresh_token: string;
746
746
  /** User id */
747
- user_id?: string | undefined;
747
+ user_id: string;
748
748
  /** Whether to enable "Remember Me" for extended session duration. */
749
- is_remember?: boolean | undefined;
749
+ is_remember: boolean;
750
750
  }
751
751
  /** Update username */
752
752
  export interface UpdateUsernameRequest {
753
- username?: string | undefined;
753
+ username: string;
754
754
  }
755
755
  /** Update a user's account details. */
756
756
  export interface UpdateAccountRequest {
757
757
  /** The display name of the user. */
758
- display_name?: string | undefined;
758
+ display_name: string | undefined;
759
759
  /** A URL for an avatar image. */
760
- avatar_url?: string | undefined;
760
+ avatar_url: string | undefined;
761
761
  /** The language expected to be a tag which follows the BCP-47 spec. */
762
- lang_tag?: string | undefined;
762
+ lang_tag: string | undefined;
763
763
  /** The location set by the user. */
764
- location?: string | undefined;
764
+ location: string | undefined;
765
765
  /** The timezone set by the user. */
766
- timezone?: string | undefined;
766
+ timezone: string | undefined;
767
767
  /** update about me */
768
- about_me?: string | undefined;
768
+ about_me: string | undefined;
769
769
  /** date of birth */
770
- dob?: Date | undefined;
770
+ dob: Date | undefined;
771
771
  /** logo url */
772
- logo?: string | undefined;
772
+ logo: string | undefined;
773
773
  /** splash screen */
774
- splash_screen?: string | undefined;
774
+ splash_screen: string | undefined;
775
775
  /** e2ee encrypt private key */
776
- encrypt_private_key?: string | undefined;
776
+ encrypt_private_key: string;
777
777
  /** The email of the user's account. */
778
- email?: string | undefined;
778
+ email: string | undefined;
779
779
  }
780
780
  /** Update fields in a given group. */
781
781
  export interface UpdateGroupRequest {
782
782
  /** The ID of the group to update. */
783
- group_id?: string | undefined;
783
+ group_id: string;
784
784
  /** Name. */
785
- name?: string | undefined;
785
+ name: string | undefined;
786
786
  /** Description string. */
787
- description?: string | undefined;
787
+ description: string | undefined;
788
788
  /** Lang tag. */
789
- lang_tag?: string | undefined;
789
+ lang_tag: string | undefined;
790
790
  /** Avatar URL. */
791
- avatar_url?: string | undefined;
791
+ avatar_url: string | undefined;
792
792
  /** Open is true if anyone should be allowed to join, or false if joins must be approved by a group admin. */
793
- open?: boolean | undefined;
793
+ open: boolean | undefined;
794
794
  }
795
795
  export interface UpdateCategoryDescRequest {
796
796
  /** The ID of the group to update. */
797
- category_id?: string | undefined;
798
- category_name?: string | undefined;
799
- clan_id?: string | undefined;
797
+ category_id: string;
798
+ category_name: string;
799
+ clan_id: string;
800
800
  }
801
801
  /** A user in the server. */
802
802
  export interface User {
803
803
  /** The id of the user's account. */
804
- id?: string | undefined;
804
+ id: string;
805
805
  /** The username of the user's account. */
806
- username?: string | undefined;
806
+ username: string;
807
807
  /** The display name of the user. */
808
- display_name?: string | undefined;
808
+ display_name: string;
809
809
  /** A URL for an avatar image. */
810
- avatar_url?: string | undefined;
810
+ avatar_url: string;
811
811
  /** The language expected to be a tag which follows the BCP-47 spec. */
812
- lang_tag?: string | undefined;
812
+ lang_tag: string;
813
813
  /** The location set by the user. */
814
- location?: string | undefined;
814
+ location: string;
815
815
  /** The timezone set by the user. */
816
- timezone?: string | undefined;
816
+ timezone: string;
817
817
  /** custom status */
818
- user_status?: string | undefined;
818
+ user_status: string;
819
819
  /** Indicates whether the user is currently online. */
820
- online?: boolean | undefined;
820
+ online: boolean;
821
821
  /** The phone number */
822
- phone_number?: string | undefined;
822
+ phone_number: string;
823
823
  /** Number of related edges to this user. */
824
- edge_count?: number | undefined;
824
+ edge_count: number;
825
825
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created. */
826
- create_time?: Date | undefined;
826
+ create_time: Date | undefined;
827
827
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was last updated. */
828
- update_time?: Date | undefined;
828
+ update_time: Date | undefined;
829
829
  /** About me */
830
- about_me?: string | undefined;
830
+ about_me: string;
831
831
  /** Join time */
832
- join_time?: Date | undefined;
832
+ join_time: Date | undefined;
833
833
  /** Platform */
834
- is_mobile?: boolean | undefined;
834
+ is_mobile: boolean;
835
835
  /** dob */
836
- dob?: Date | undefined;
836
+ dob: Date | undefined;
837
837
  /** Mezone id */
838
- mezon_id?: string | undefined;
838
+ mezon_id: string;
839
839
  /** list clan nick name */
840
- list_nick_names?: string[] | undefined;
840
+ list_nick_names: string[];
841
841
  /** online, offline, invisible, idle, do not disturb */
842
- status?: string | undefined;
842
+ status: string;
843
843
  }
844
844
  /** A collection of zero or more users. */
845
845
  export interface Users {
846
846
  /** The User objects. */
847
- users?: User[] | undefined;
847
+ users: User[];
848
848
  }
849
849
  /** Clan profile information */
850
850
  export interface ClanDescProfile {
851
851
  /** Clan id */
852
- clan_id?: string | undefined;
852
+ clan_id: string;
853
853
  /** Clan creator */
854
- creator_id?: string | undefined;
854
+ creator_id: string;
855
855
  /** Clan nick name */
856
- nick_name?: string | undefined;
856
+ nick_name: string;
857
857
  /** Clan profile banner */
858
- profile_banner?: string | undefined;
858
+ profile_banner: string;
859
859
  /** Clan profile theme */
860
- profile_theme?: string | undefined;
860
+ profile_theme: string;
861
861
  /** Clan profile avatar */
862
- avatar_url?: string | undefined;
862
+ avatar_url: string;
863
863
  }
864
864
  /** Update Clan profile information */
865
865
  export interface UpdateClanDescProfileRequest {
866
866
  /** Clan id */
867
- clan_id?: string | undefined;
867
+ clan_id: string;
868
868
  /** Clan nick name */
869
- nick_name?: string | undefined;
869
+ nick_name: string;
870
870
  /** Clan profile banner */
871
- profile_banner?: string | undefined;
871
+ profile_banner: string;
872
872
  /** Clan profile theme */
873
- profile_theme?: string | undefined;
873
+ profile_theme: string;
874
874
  /** Clan profile avatar */
875
- avatar_url?: string | undefined;
875
+ avatar_url: string;
876
876
  }
877
877
  /** Clan profile information */
878
878
  export interface ClanDescProfileRequest {
879
879
  /** Clan id */
880
- clan_id?: string | undefined;
880
+ clan_id: string;
881
881
  }
882
882
  /** Clan information */
883
883
  export interface ClanDesc {
884
884
  /** Clan creator */
885
- creator_id?: string | undefined;
885
+ creator_id: string;
886
886
  /** Clan name */
887
- clan_name?: string | undefined;
887
+ clan_name: string;
888
888
  /** Clan logo */
889
- logo?: string | undefined;
889
+ logo: string;
890
890
  /** Clan banner */
891
- banner?: string | undefined;
891
+ banner: string;
892
892
  /** Clan id */
893
- clan_id?: string | undefined;
893
+ clan_id: string;
894
894
  /** Clan status */
895
- status?: number | undefined;
895
+ status: number;
896
896
  /** Badge count */
897
- badge_count?: number | undefined;
897
+ badge_count: number;
898
898
  /** Is onboarding. */
899
- is_onboarding?: boolean | undefined;
899
+ is_onboarding: boolean;
900
900
  /** Welcome channel id. */
901
- welcome_channel_id?: string | undefined;
901
+ welcome_channel_id: string;
902
902
  /** Onboarding_banner. */
903
- onboarding_banner?: string | undefined;
903
+ onboarding_banner: string;
904
904
  /** clan order */
905
- clan_order?: number | undefined;
905
+ clan_order: number;
906
906
  /** is community */
907
- is_community?: boolean | undefined;
907
+ is_community: boolean;
908
908
  /** community banner */
909
- community_banner?: string | undefined;
909
+ community_banner: string;
910
910
  /** description */
911
- description?: string | undefined;
911
+ description: string;
912
912
  /** about */
913
- about?: string | undefined;
913
+ about: string;
914
914
  /** short_url */
915
- short_url?: string | undefined;
915
+ short_url: string;
916
916
  /** prevent anonymous */
917
- prevent_anonymous?: boolean | undefined;
917
+ prevent_anonymous: boolean;
918
918
  /** has unread message */
919
- has_unread_message?: boolean | undefined;
919
+ has_unread_message: boolean;
920
920
  }
921
921
  /** Clan information */
922
922
  export interface CreateClanDescRequest {
923
923
  /** Clan name */
924
- clan_name?: string | undefined;
924
+ clan_name: string;
925
925
  /** Clan logo */
926
- logo?: string | undefined;
926
+ logo: string;
927
927
  /** Clan banner */
928
- banner?: string | undefined;
928
+ banner: string;
929
929
  }
930
930
  /** Update Clan information */
931
931
  export interface UpdateClanDescRequest {
932
- clan_id?: string | undefined;
932
+ clan_id: string;
933
933
  /** Clan name */
934
- clan_name?: string | undefined;
934
+ clan_name: string;
935
935
  /** Clan logo */
936
- logo?: string | undefined;
936
+ logo: string | undefined;
937
937
  /** Clan banner */
938
- banner?: string | undefined;
938
+ banner: string | undefined;
939
939
  /** Clan status */
940
- status?: number | undefined;
940
+ status: number;
941
941
  /** Is onboarding. */
942
- is_onboarding?: boolean | undefined;
942
+ is_onboarding: boolean | undefined;
943
943
  /** Welcome channel id. */
944
- welcome_channel_id?: string | undefined;
944
+ welcome_channel_id: string;
945
945
  /** Onboarding_banner. */
946
- onboarding_banner?: string | undefined;
946
+ onboarding_banner: string | undefined;
947
947
  /** Enable community. */
948
- is_community?: boolean | undefined;
948
+ is_community: boolean | undefined;
949
949
  /** Community banner. */
950
- community_banner?: string | undefined;
950
+ community_banner: string | undefined;
951
951
  /** string description */
952
- description?: string | undefined;
952
+ description: string | undefined;
953
953
  /** About */
954
- about?: string | undefined;
954
+ about: string | undefined;
955
955
  /** Short url for community */
956
- short_url?: string | undefined;
956
+ short_url: string | undefined;
957
957
  /** Prevent anonymous */
958
- prevent_anonymous?: boolean | undefined;
958
+ prevent_anonymous: boolean;
959
959
  }
960
960
  /** Delete a clan the user has access to. */
961
961
  export interface DeleteClanDescRequest {
962
962
  /** The id of a group. */
963
- clan_desc_id?: string | undefined;
963
+ clan_desc_id: string;
964
964
  }
965
965
  /** List (and optionally filter) channels. */
966
966
  export interface ListClanDescRequest {
967
967
  /** Max number of records to return. Between 1 and 100. */
968
- limit?: number | undefined;
968
+ limit: number | undefined;
969
969
  /** The friend state to list. */
970
- state?: number | undefined;
970
+ state: number | undefined;
971
971
  /** Cursor to start from */
972
- cursor?: string | undefined;
972
+ cursor: string;
973
973
  }
974
974
  export interface ListClanUnreadMsgIndicatorRequest {
975
- clan_id?: string | undefined;
975
+ clan_id: string;
976
976
  }
977
977
  export interface ListClanUnreadMsgIndicatorResponse {
978
- has_unread_message?: boolean | undefined;
978
+ has_unread_message: boolean;
979
979
  }
980
980
  /** A list of clan */
981
981
  export interface ClanDescList {
982
982
  /** A list of channel. */
983
- clandesc?: ClanDesc[] | undefined;
983
+ clandesc: ClanDesc[];
984
984
  }
985
985
  /** Add link invite users to. */
986
986
  export interface LinkInviteUserRequest {
987
987
  /** id clan to add link to . */
988
- clan_id?: string | undefined;
988
+ clan_id: string;
989
989
  /** id channel to add link to. */
990
- channel_id?: string | undefined;
990
+ channel_id: string;
991
991
  /** expiry time */
992
- expiry_time?: number | undefined;
992
+ expiry_time: number;
993
993
  }
994
994
  /** Add link invite users to. */
995
995
  export interface InviteUserRequest {
996
996
  /** id clan to add link to . */
997
- invite_id?: string | undefined;
997
+ invite_id: string;
998
998
  }
999
999
  /** Add link invite users to. */
1000
1000
  export interface InviteUserRes {
1001
1001
  /** id clan to add link to . */
1002
- clan_id?: string | undefined;
1002
+ clan_id: string;
1003
1003
  /** id channel to add link to. */
1004
- channel_id?: string | undefined;
1004
+ channel_id: string;
1005
1005
  /** clan name */
1006
- clan_name?: string | undefined;
1006
+ clan_name: string;
1007
1007
  /** channel name */
1008
- channel_label?: string | undefined;
1008
+ channel_label: string;
1009
1009
  /** check user exist */
1010
- user_joined?: boolean | undefined;
1010
+ user_joined: boolean;
1011
1011
  /** expiry_time */
1012
- expiry_time?: Date | undefined;
1012
+ expiry_time: Date | undefined;
1013
1013
  /** */
1014
- channel_desc?: ChannelDescription | undefined;
1015
- clan_logo?: string | undefined;
1016
- member_count?: number | undefined;
1014
+ channel_desc: ChannelDescription | undefined;
1015
+ clan_logo: string;
1016
+ member_count: number;
1017
1017
  }
1018
1018
  /** Add link invite users to. */
1019
1019
  export interface JoinClanChannelRequest {
1020
1020
  /** id clan to add link to . */
1021
- clan_id?: string | undefined;
1021
+ clan_id: string;
1022
1022
  /** id channel to add link to. */
1023
- channel_id?: string | undefined;
1023
+ channel_id: string;
1024
1024
  }
1025
1025
  /** Add link invite users to. */
1026
1026
  export interface LinkInviteUser {
1027
1027
  /** id clan */
1028
- clan_id?: string | undefined;
1028
+ clan_id: string;
1029
1029
  /** The user to add. */
1030
- creator_id?: string | undefined;
1030
+ creator_id: string;
1031
1031
  /** is clan invite */
1032
- channel_id?: string | undefined;
1032
+ channel_id: string;
1033
1033
  /** link invite */
1034
- invite_link?: string | undefined;
1034
+ invite_link: string;
1035
1035
  /** create time */
1036
- create_time?: Date | undefined;
1036
+ create_time: Date | undefined;
1037
1037
  /** expiry time */
1038
- expiry_time?: Date | undefined;
1039
- id?: string | undefined;
1038
+ expiry_time: Date | undefined;
1039
+ id: string;
1040
1040
  }
1041
1041
  /** Get clan profile. */
1042
1042
  export interface ClanProfile {
1043
1043
  /** id user to find user */
1044
- user_id?: string | undefined;
1044
+ user_id: string;
1045
1045
  /** name user */
1046
- nick_name?: string | undefined;
1046
+ nick_name: string;
1047
1047
  /** id avatar */
1048
- avatar?: string | undefined;
1048
+ avatar: string;
1049
1049
  /** id clan */
1050
- clan_id?: string | undefined;
1050
+ clan_id: string;
1051
1051
  /** about clan */
1052
- about?: string | undefined;
1052
+ about: string;
1053
1053
  }
1054
1054
  /** information user by clan requset */
1055
1055
  export interface ClanProfileRequest {
1056
1056
  /** id clanc */
1057
- clan_id?: string | undefined;
1057
+ clan_id: string;
1058
1058
  }
1059
1059
  /** update nickname user by clan requset */
1060
1060
  export interface UpdateClanProfileRequest {
1061
1061
  /** id clanc */
1062
- clan_id?: string | undefined;
1062
+ clan_id: string;
1063
1063
  /** nick_name new */
1064
- nick_name?: string | undefined;
1064
+ nick_name: string | undefined;
1065
1065
  /** avatar */
1066
- avatar?: string | undefined;
1066
+ avatar: string | undefined;
1067
1067
  }
1068
1068
  /** Update Clan Order Request */
1069
1069
  export interface UpdateClanOrderRequest {
1070
- clans_order?: UpdateClanOrderRequest_ClanOrder[] | undefined;
1070
+ clans_order: UpdateClanOrderRequest_ClanOrder[];
1071
1071
  }
1072
1072
  export interface UpdateClanOrderRequest_ClanOrder {
1073
- order?: number | undefined;
1074
- clan_id?: string | undefined;
1073
+ order: number;
1074
+ clan_id: string;
1075
1075
  }
1076
1076
  /** Category to group the channel */
1077
1077
  export interface CategoryDesc {
1078
1078
  /** Category creator */
1079
- creator_id?: string | undefined;
1079
+ creator_id: string;
1080
1080
  /** the Clan that category belong to */
1081
- clan_id?: string | undefined;
1081
+ clan_id: string;
1082
1082
  /** Category name */
1083
- category_name?: string | undefined;
1084
- category_id?: string | undefined;
1085
- category_order?: number | undefined;
1083
+ category_name: string;
1084
+ category_id: string;
1085
+ category_order: number;
1086
1086
  }
1087
1087
  export interface UpdateCategoryOrderRequest {
1088
- clan_id?: string | undefined;
1089
- categories?: CategoryOrderUpdate[] | undefined;
1088
+ clan_id: string;
1089
+ categories: CategoryOrderUpdate[];
1090
1090
  }
1091
1091
  export interface UpdateRoleOrderRequest {
1092
- clan_id?: string | undefined;
1093
- roles?: RoleOrderUpdate[] | undefined;
1092
+ clan_id: string;
1093
+ roles: RoleOrderUpdate[];
1094
1094
  }
1095
1095
  export interface RoleOrderUpdate {
1096
- role_id?: string | undefined;
1097
- order?: number | undefined;
1096
+ role_id: string;
1097
+ order: number;
1098
1098
  }
1099
1099
  export interface CategoryOrderUpdate {
1100
- category_id?: string | undefined;
1101
- order?: number | undefined;
1100
+ category_id: string;
1101
+ order: number;
1102
1102
  }
1103
1103
  export interface CreateCategoryDescRequest {
1104
- category_name?: string | undefined;
1105
- clan_id?: string | undefined;
1104
+ category_name: string;
1105
+ clan_id: string;
1106
1106
  }
1107
1107
  export interface DeleteCategoryDescRequest {
1108
- category_id?: string | undefined;
1109
- clan_id?: string | undefined;
1110
- category_label?: string | undefined;
1108
+ category_id: string;
1109
+ clan_id: string;
1110
+ category_label: string;
1111
1111
  }
1112
1112
  /** A list of clan */
1113
1113
  export interface CategoryDescList {
1114
1114
  /** A list of channel. */
1115
- categorydesc?: CategoryDesc[] | undefined;
1115
+ categorydesc: CategoryDesc[];
1116
1116
  }
1117
1117
  /** List (and optionally filter) channels. */
1118
1118
  export interface ListCategoryDescsRequest {
1119
1119
  /** Max number of records to return. Between 1 and 100. */
1120
- limit?: number | undefined;
1120
+ limit: number | undefined;
1121
1121
  /** The friend state to list. */
1122
- state?: number | undefined;
1122
+ state: number | undefined;
1123
1123
  /** Cursor to start from */
1124
- cursor?: string | undefined;
1124
+ cursor: string;
1125
1125
  }
1126
1126
  export interface ChannelMessageHeader {
1127
1127
  /** the message id */
1128
- id?: string | undefined;
1128
+ id: string;
1129
1129
  /** the time stamp */
1130
- timestamp_seconds?: number | undefined;
1130
+ timestamp_seconds: number;
1131
1131
  /** the sender id */
1132
- sender_id?: string | undefined;
1132
+ sender_id: string;
1133
1133
  /** the content */
1134
- content?: string | undefined;
1134
+ content: string;
1135
1135
  /** the attachment */
1136
- attachment?: string | undefined;
1136
+ attachment: string;
1137
1137
  /** the reference */
1138
- reference?: string | undefined;
1138
+ reference: string;
1139
1139
  /** the mention */
1140
- mention?: string | undefined;
1140
+ mention: string;
1141
1141
  /** the reactions */
1142
- reaction?: string | undefined;
1142
+ reaction: string;
1143
1143
  }
1144
1144
  /** Channel description record */
1145
1145
  export interface ChannelDescription {
1146
1146
  /** The clan of this channel */
1147
- clan_id?: string | undefined;
1147
+ clan_id: string;
1148
1148
  /** The parent channel this message belongs to. */
1149
- parent_id?: string | undefined;
1149
+ parent_id: string;
1150
1150
  /** The channel this message belongs to. */
1151
- channel_id?: string | undefined;
1151
+ channel_id: string;
1152
1152
  /** The category of channel */
1153
- category_id?: string | undefined;
1153
+ category_id: string;
1154
1154
  /** The category name */
1155
- category_name?: string | undefined;
1155
+ category_name: string;
1156
1156
  /** The channel type. */
1157
- type?: number | undefined;
1157
+ type: number | undefined;
1158
1158
  /** creator ID. */
1159
- creator_id?: string | undefined;
1159
+ creator_id: string;
1160
1160
  /** The channel lable */
1161
- channel_label?: string | undefined;
1161
+ channel_label: string;
1162
1162
  /** The channel private */
1163
- channel_private?: number | undefined;
1163
+ channel_private: number;
1164
1164
  /** DM avatars */
1165
- avatars?: string[] | undefined;
1165
+ avatars: string[];
1166
1166
  /** List DM user ids */
1167
- user_ids?: string[] | undefined;
1167
+ user_ids: string[];
1168
1168
  /** last message id */
1169
- last_sent_message?: ChannelMessageHeader | undefined;
1169
+ last_sent_message: ChannelMessageHeader | undefined;
1170
1170
  /** last seen message id */
1171
- last_seen_message?: ChannelMessageHeader | undefined;
1171
+ last_seen_message: ChannelMessageHeader | undefined;
1172
1172
  /** DM status */
1173
- onlines?: boolean[] | undefined;
1173
+ onlines: boolean[];
1174
1174
  /** meeting code */
1175
- meeting_code?: string | undefined;
1175
+ meeting_code: string;
1176
1176
  /** count message unread */
1177
- count_mess_unread?: number | undefined;
1177
+ count_mess_unread: number;
1178
1178
  /** active channel */
1179
- active?: number | undefined;
1179
+ active: number;
1180
1180
  /** last pin message */
1181
- last_pin_message?: string | undefined;
1181
+ last_pin_message: string;
1182
1182
  /** List DM usernames */
1183
- usernames?: string[] | undefined;
1183
+ usernames: string[];
1184
1184
  /** creator name */
1185
- creator_name?: string | undefined;
1185
+ creator_name: string;
1186
1186
  /** create time ms */
1187
- create_time_seconds?: number | undefined;
1187
+ create_time_seconds: number;
1188
1188
  /** update time ms */
1189
- update_time_seconds?: number | undefined;
1189
+ update_time_seconds: number;
1190
1190
  /** List DM diplay names */
1191
- display_names?: string[] | undefined;
1191
+ display_names: string[];
1192
1192
  /** channel avatar */
1193
- channel_avatar?: string | undefined;
1193
+ channel_avatar: string;
1194
1194
  /** clan_name */
1195
- clan_name?: string | undefined;
1195
+ clan_name: string;
1196
1196
  /** app id */
1197
- app_id?: string | undefined;
1197
+ app_id: string;
1198
1198
  /** channel all message */
1199
- is_mute?: boolean | undefined;
1199
+ is_mute: boolean;
1200
1200
  /** age restricted */
1201
- age_restricted?: number | undefined;
1201
+ age_restricted: number;
1202
1202
  /** channel description topic */
1203
- topic?: string | undefined;
1203
+ topic: string;
1204
1204
  /** e2ee */
1205
- e2ee?: number | undefined;
1205
+ e2ee: number;
1206
1206
  /** channel member count */
1207
- member_count?: number | undefined;
1207
+ member_count: number;
1208
1208
  }
1209
1209
  /** A list of channel description, usually a result of a list operation. */
1210
1210
  export interface ChannelDescList {
1211
1211
  /** A list of channel. */
1212
- channeldesc?: ChannelDescription[] | undefined;
1212
+ channeldesc: ChannelDescription[];
1213
1213
  /** Page thread */
1214
- page?: number | undefined;
1214
+ page: number;
1215
1215
  }
1216
1216
  export interface ListThreadRequest {
1217
1217
  /** Max number of records to return. Between 1 and 100. */
1218
- limit?: number | undefined;
1218
+ limit: number | undefined;
1219
1219
  /** The channel state to list. */
1220
- state?: number | undefined;
1220
+ state: number | undefined;
1221
1221
  /** The clan of this channel */
1222
- clan_id?: string | undefined;
1222
+ clan_id: string;
1223
1223
  /** channel id */
1224
- channel_id?: string | undefined;
1224
+ channel_id: string;
1225
1225
  /** thread id */
1226
- thread_id?: string | undefined;
1226
+ thread_id: string;
1227
1227
  /** Number of page */
1228
- page?: number | undefined;
1228
+ page: number | undefined;
1229
1229
  }
1230
1230
  /** List (and optionally filter) channels. */
1231
1231
  export interface ListChannelDescsRequest {
1232
1232
  /** Max number of records to return. Between 1 and 100. */
1233
- limit?: number | undefined;
1233
+ limit: number | undefined;
1234
1234
  /** The channel state to list. */
1235
- state?: number | undefined;
1235
+ state: number | undefined;
1236
1236
  /** Cursor to start from */
1237
- cursor?: string | undefined;
1237
+ cursor: string;
1238
1238
  /** The clan of this channel */
1239
- clan_id?: string | undefined;
1239
+ clan_id: string;
1240
1240
  /** channel type */
1241
- channel_type?: number | undefined;
1241
+ channel_type: number;
1242
1242
  /** is mobile */
1243
- is_mobile?: boolean | undefined;
1243
+ is_mobile: boolean;
1244
1244
  }
1245
1245
  /** List channel description detail */
1246
1246
  export interface ListChannelDetailRequest {
1247
1247
  /** channel id */
1248
- channel_id?: string | undefined;
1248
+ channel_id: string;
1249
1249
  }
1250
1250
  /** Add a role for channel. */
1251
1251
  export interface AddRoleChannelDescRequest {
1252
1252
  /** This is the role that needs to be added to the channel */
1253
- role_ids?: string[] | undefined;
1253
+ role_ids: string[];
1254
1254
  /** This is a channel that needs more roles */
1255
- channel_id?: string | undefined;
1255
+ channel_id: string;
1256
1256
  }
1257
1257
  /** Create a channel within clan. */
1258
1258
  export interface CreateChannelDescRequest {
1259
1259
  /** The clan of this channel */
1260
- clan_id?: string | undefined;
1260
+ clan_id: string;
1261
1261
  /** The parent channel this message belongs to. */
1262
- parent_id?: string | undefined;
1262
+ parent_id: string;
1263
1263
  /** The channel this message belongs to. */
1264
- channel_id?: string | undefined;
1264
+ channel_id: string;
1265
1265
  /** The category of channel */
1266
- category_id?: string | undefined;
1266
+ category_id: string;
1267
1267
  /** The channel type. */
1268
- type?: number | undefined;
1268
+ type: number | undefined;
1269
1269
  /** The channel lable */
1270
- channel_label?: string | undefined;
1270
+ channel_label: string;
1271
1271
  /** The channel private */
1272
- channel_private?: number | undefined;
1272
+ channel_private: number;
1273
1273
  /** The users to add. */
1274
- user_ids?: string[] | undefined;
1274
+ user_ids: string[];
1275
1275
  /** app url for channel type app */
1276
- app_id?: string | undefined;
1276
+ app_id: string;
1277
1277
  }
1278
1278
  /** Delete a channel the user has access to. */
1279
1279
  export interface DeleteChannelDescRequest {
1280
1280
  /** The clan id */
1281
- clan_id?: string | undefined;
1281
+ clan_id: string;
1282
1282
  /** The id of a channel. */
1283
- channel_id?: string | undefined;
1283
+ channel_id: string;
1284
1284
  }
1285
1285
  /** Update fields in a given channel. */
1286
1286
  export interface UpdateChannelDescRequest {
1287
1287
  /** The clan ID */
1288
- clan_id?: string | undefined;
1288
+ clan_id: string;
1289
1289
  /** The ID of the channel to update. */
1290
- channel_id?: string | undefined;
1290
+ channel_id: string;
1291
1291
  /** The channel lable */
1292
- channel_label?: string | undefined;
1292
+ channel_label: string | undefined;
1293
1293
  /** The category of channel */
1294
- category_id?: string | undefined;
1294
+ category_id: string | undefined;
1295
1295
  /** app url for channel type app */
1296
- app_id?: string | undefined;
1296
+ app_id: string;
1297
1297
  /** topic */
1298
- topic?: string | undefined;
1298
+ topic: string;
1299
1299
  /** */
1300
- age_restricted?: number | undefined;
1300
+ age_restricted: number;
1301
1301
  /** */
1302
- e2ee?: number | undefined;
1302
+ e2ee: number;
1303
1303
  /** channel avatar */
1304
- channel_avatar?: string | undefined;
1304
+ channel_avatar: string | undefined;
1305
1305
  }
1306
1306
  /** Update fields in a given channel. */
1307
1307
  export interface ChangeChannelPrivateRequest {
1308
1308
  /** The clan ID */
1309
- clan_id?: string | undefined;
1309
+ clan_id: string;
1310
1310
  /** The ID of the channel to update. */
1311
- channel_id?: string | undefined;
1311
+ channel_id: string;
1312
1312
  /** The channel private */
1313
- channel_private?: number | undefined;
1313
+ channel_private: number;
1314
1314
  /** The users to add. */
1315
- user_ids?: string[] | undefined;
1315
+ user_ids: string[];
1316
1316
  /** This is the role that needs to be added to the channel */
1317
- role_ids?: string[] | undefined;
1317
+ role_ids: string[];
1318
1318
  }
1319
1319
  /** Add users to a channel. */
1320
1320
  export interface AddChannelUsersRequest {
1321
1321
  /** The channel to add users to. */
1322
- channel_id?: string | undefined;
1322
+ channel_id: string;
1323
1323
  /** The users to add. */
1324
- user_ids?: string[] | undefined;
1324
+ user_ids: string[];
1325
1325
  }
1326
1326
  /** Kick a set of users from a channel. */
1327
1327
  export interface RemoveChannelUsersRequest {
1328
1328
  /** The channel ID to kick from. */
1329
- channel_id?: string | undefined;
1329
+ channel_id: string;
1330
1330
  /** The users to kick. */
1331
- user_ids?: string[] | undefined;
1331
+ user_ids: string[];
1332
1332
  }
1333
1333
  /** Kick a set of users from a clan. */
1334
1334
  export interface RemoveClanUsersRequest {
1335
1335
  /** The clan ID to kick from. */
1336
- clan_id?: string | undefined;
1336
+ clan_id: string;
1337
1337
  /** The users to kick. */
1338
- user_ids?: string[] | undefined;
1338
+ user_ids: string[];
1339
1339
  }
1340
1340
  /** Ban a set of users from a channel. */
1341
1341
  export interface BanClanUsersRequest {
1342
1342
  /** The clan ID to kick from. */
1343
- clan_id?: string | undefined;
1343
+ clan_id: string;
1344
1344
  /** The channel ID to ban */
1345
- channel_id?: string | undefined;
1345
+ channel_id: string;
1346
1346
  /** The users to kick. */
1347
- user_ids?: string[] | undefined;
1347
+ user_ids: string[];
1348
1348
  /** ban time */
1349
- ban_time?: number | undefined;
1349
+ ban_time: number;
1350
1350
  /** The reason */
1351
- reason?: string | undefined;
1351
+ reason: string;
1352
1352
  }
1353
1353
  /** list banned user */
1354
1354
  export interface BannedUser {
1355
1355
  /** The channel ID to ban */
1356
- channel_id?: string | undefined;
1356
+ channel_id: string;
1357
1357
  /** The banned user. */
1358
- banned_id?: string | undefined;
1358
+ banned_id: string;
1359
1359
  /** The avatar */
1360
- banner_id?: string | undefined;
1360
+ banner_id: string;
1361
1361
  /** ban time */
1362
- ban_time?: number | undefined;
1362
+ ban_time: number;
1363
1363
  /** The reason */
1364
- reason?: string | undefined;
1364
+ reason: string;
1365
1365
  }
1366
1366
  export interface BannedUserListRequest {
1367
- clan_id?: string | undefined;
1368
- channel_id?: string | undefined;
1367
+ clan_id: string;
1368
+ channel_id: string;
1369
1369
  }
1370
1370
  export interface BannedUserList {
1371
- banned_users?: BannedUser[] | undefined;
1371
+ banned_users: BannedUser[];
1372
1372
  }
1373
1373
  /** Leave a channel. */
1374
1374
  export interface LeaveThreadRequest {
1375
- clan_id?: string | undefined;
1375
+ clan_id: string;
1376
1376
  /** The channel ID to leave. */
1377
- channel_id?: string | undefined;
1377
+ channel_id: string;
1378
1378
  }
1379
1379
  /** Role record */
1380
1380
  export interface Role {
1381
1381
  /** Role id */
1382
- id?: string | undefined;
1383
- title?: string | undefined;
1384
- color?: string | undefined;
1385
- role_icon?: string | undefined;
1386
- slug?: string | undefined;
1387
- description?: string | undefined;
1388
- creator_id?: string | undefined;
1389
- clan_id?: string | undefined;
1390
- active?: number | undefined;
1391
- display_online?: number | undefined;
1392
- allow_mention?: number | undefined;
1393
- role_user_list?: RoleUserList | undefined;
1394
- permission_list?: PermissionList | undefined;
1395
- role_channel_active?: number | undefined;
1396
- channel_ids?: string[] | undefined;
1397
- max_level_permission?: number | undefined;
1398
- order_role?: number | undefined;
1382
+ id: string;
1383
+ title: string;
1384
+ color: string;
1385
+ role_icon: string;
1386
+ slug: string;
1387
+ description: string;
1388
+ creator_id: string;
1389
+ clan_id: string;
1390
+ active: number;
1391
+ display_online: number;
1392
+ allow_mention: number;
1393
+ role_user_list: RoleUserList | undefined;
1394
+ permission_list: PermissionList | undefined;
1395
+ role_channel_active: number;
1396
+ channel_ids: string[];
1397
+ max_level_permission: number;
1398
+ order_role: number;
1399
1399
  }
1400
1400
  /** Event clan */
1401
1401
  export interface EventManagement {
1402
- id?: string | undefined;
1403
- title?: string | undefined;
1404
- logo?: string | undefined;
1405
- description?: string | undefined;
1406
- active?: number | undefined;
1407
- start_event?: number | undefined;
1408
- creator_id?: string | undefined;
1409
- clan_id?: string | undefined;
1410
- channel_voice_id?: string | undefined;
1411
- address?: string | undefined;
1412
- start_time?: Date | undefined;
1413
- end_time?: Date | undefined;
1414
- user_ids?: string[] | undefined;
1415
- create_time?: Date | undefined;
1416
- max_permission?: number | undefined;
1417
- channel_id?: string | undefined;
1418
- event_status?: number | undefined;
1419
- repeat_type?: number | undefined;
1420
- is_private?: boolean | undefined;
1421
- meet_room?: GenerateMezonMeetResponse | undefined;
1402
+ id: string;
1403
+ title: string;
1404
+ logo: string;
1405
+ description: string;
1406
+ active: number;
1407
+ start_event: number;
1408
+ creator_id: string;
1409
+ clan_id: string;
1410
+ channel_voice_id: string;
1411
+ address: string;
1412
+ start_time: Date | undefined;
1413
+ end_time: Date | undefined;
1414
+ user_ids: string[];
1415
+ create_time: Date | undefined;
1416
+ max_permission: number;
1417
+ channel_id: string;
1418
+ event_status: number;
1419
+ repeat_type: number;
1420
+ is_private: boolean;
1421
+ meet_room: GenerateMezonMeetResponse | undefined;
1422
1422
  }
1423
1423
  /** Permission record */
1424
1424
  export interface Permission {
1425
1425
  /** Permission id */
1426
- id?: string | undefined;
1427
- title?: string | undefined;
1428
- slug?: string | undefined;
1429
- description?: string | undefined;
1430
- active?: number | undefined;
1431
- scope?: number | undefined;
1432
- level?: number | undefined;
1426
+ id: string;
1427
+ title: string;
1428
+ slug: string;
1429
+ description: string;
1430
+ active: number;
1431
+ scope: number;
1432
+ level: number;
1433
1433
  }
1434
1434
  /** Notification setting record */
1435
1435
  export interface NotificationSetting {
1436
1436
  /** Notification id */
1437
- id?: string | undefined;
1437
+ id: string;
1438
1438
  /** Notification title */
1439
- notification_setting_type?: number | undefined;
1439
+ notification_setting_type: number;
1440
1440
  }
1441
1441
  /** */
1442
1442
  export interface DeletePinMessage {
1443
1443
  /** */
1444
- id?: string | undefined;
1444
+ id: string;
1445
1445
  /** */
1446
- message_id?: string | undefined;
1446
+ message_id: string;
1447
1447
  /** */
1448
- channel_id?: string | undefined;
1448
+ channel_id: string;
1449
1449
  /** */
1450
- clan_id?: string | undefined;
1450
+ clan_id: string;
1451
1451
  }
1452
1452
  /** */
1453
1453
  export interface PinMessage {
1454
1454
  /** */
1455
- id?: string | undefined;
1455
+ id: string;
1456
1456
  /** */
1457
- message_id?: string | undefined;
1457
+ message_id: string;
1458
1458
  /** */
1459
- channel_id?: string | undefined;
1459
+ channel_id: string;
1460
1460
  /** */
1461
- sender_id?: string | undefined;
1461
+ sender_id: string;
1462
1462
  /** */
1463
- content?: string | undefined;
1463
+ content: string;
1464
1464
  /** */
1465
- username?: string | undefined;
1465
+ username: string;
1466
1466
  /** */
1467
- avatar?: string | undefined;
1467
+ avatar: string;
1468
1468
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
1469
- create_time?: Date | undefined;
1469
+ create_time: Date | undefined;
1470
1470
  /** create time in ms */
1471
- create_time_seconds?: number | undefined;
1471
+ create_time_seconds: number;
1472
1472
  /** attachment */
1473
- attachment?: string | undefined;
1473
+ attachment: string;
1474
1474
  }
1475
1475
  export interface PinMessagesList {
1476
- pin_messages_list?: PinMessage[] | undefined;
1476
+ pin_messages_list: PinMessage[];
1477
1477
  }
1478
1478
  /** Notification channel */
1479
1479
  export interface NotificationUserChannel {
1480
1480
  /** Notification id */
1481
- id?: string | undefined;
1481
+ id: string;
1482
1482
  /** */
1483
- notification_setting_type?: number | undefined;
1483
+ notification_setting_type: number;
1484
1484
  /** */
1485
- time_mute?: Date | undefined;
1485
+ time_mute: Date | undefined;
1486
1486
  /** */
1487
- active?: number | undefined;
1487
+ active: number;
1488
1488
  /** */
1489
- channel_id?: string | undefined;
1489
+ channel_id: string;
1490
1490
  }
1491
1491
  /** Notification channel */
1492
1492
  export interface NotifiReactMessage {
1493
1493
  /** Notification id */
1494
- id?: string | undefined;
1494
+ id: string;
1495
1495
  /** */
1496
- user_id?: string | undefined;
1496
+ user_id: string;
1497
1497
  /** */
1498
- channel_id?: string | undefined;
1498
+ channel_id: string;
1499
1499
  }
1500
1500
  /** */
1501
1501
  export interface DefaultNotificationClan {
1502
1502
  /** */
1503
- clan_id?: string | undefined;
1503
+ clan_id: string;
1504
1504
  }
1505
1505
  /** */
1506
1506
  export interface DefaultNotificationCategory {
1507
1507
  /** */
1508
- category_id?: string | undefined;
1508
+ category_id: string;
1509
1509
  }
1510
1510
  /** */
1511
1511
  export interface NotificationChannel {
1512
1512
  /** */
1513
- channel_id?: string | undefined;
1513
+ channel_id: string;
1514
1514
  }
1515
1515
  /** */
1516
1516
  export interface NotificationClan {
1517
1517
  /** */
1518
- clan_id?: string | undefined;
1518
+ clan_id: string;
1519
1519
  }
1520
1520
  /** */
1521
1521
  export interface NotificationSettingList {
1522
1522
  /** A list of notification setting. */
1523
- notification_setting?: NotificationSetting[] | undefined;
1523
+ notification_setting: NotificationSetting[];
1524
1524
  }
1525
1525
  /** set notification */
1526
1526
  export interface SetNotificationRequest {
1527
1527
  /** channelId or categoryId */
1528
- channel_category_id?: string | undefined;
1528
+ channel_category_id: string;
1529
1529
  /** notification_type */
1530
- notification_type?: number | undefined;
1530
+ notification_type: number;
1531
1531
  /** */
1532
- clan_id?: string | undefined;
1532
+ clan_id: string;
1533
1533
  }
1534
1534
  /** */
1535
1535
  export interface PinMessageRequest {
1536
- message_id?: string | undefined;
1537
- channel_id?: string | undefined;
1538
- clan_id?: string | undefined;
1536
+ message_id: string;
1537
+ channel_id: string;
1538
+ clan_id: string;
1539
1539
  }
1540
1540
  /** set notification */
1541
1541
  export interface SetMuteRequest {
1542
1542
  /** channel_id and category_id */
1543
- id?: string | undefined;
1544
- mute_time?: number | undefined;
1545
- active?: number | undefined;
1546
- clan_id?: string | undefined;
1543
+ id: string;
1544
+ mute_time: number;
1545
+ active: number;
1546
+ clan_id: string;
1547
1547
  }
1548
1548
  export interface HashtagDmListRequest {
1549
1549
  /** user Id */
1550
- user_id?: string[] | undefined;
1550
+ user_id: string[];
1551
1551
  /** Max number of records to return. Between 1 and 100. */
1552
- limit?: number | undefined;
1552
+ limit: number | undefined;
1553
1553
  }
1554
1554
  export interface HashtagDmList {
1555
- hashtag_dm?: HashtagDm[] | undefined;
1555
+ hashtag_dm: HashtagDm[];
1556
1556
  }
1557
1557
  /** hashtagDM */
1558
1558
  export interface HashtagDm {
1559
1559
  /** The channel id. */
1560
- channel_id?: string | undefined;
1560
+ channel_id: string;
1561
1561
  /** The channel lable */
1562
- channel_label?: string | undefined;
1562
+ channel_label: string;
1563
1563
  /** The clan of this channel */
1564
- clan_id?: string | undefined;
1564
+ clan_id: string;
1565
1565
  /** The clan name */
1566
- clan_name?: string | undefined;
1566
+ clan_name: string;
1567
1567
  /** */
1568
- meeting_code?: string | undefined;
1568
+ meeting_code: string;
1569
1569
  /** */
1570
- type?: number | undefined;
1570
+ type: number;
1571
1571
  /** */
1572
- channel_private?: number | undefined;
1572
+ channel_private: number;
1573
1573
  /** */
1574
- parent_id?: string | undefined;
1574
+ parent_id: string;
1575
1575
  }
1576
1576
  export interface NotificationChannelCategorySettingList {
1577
- notification_channel_category_settings_list?: NotificationChannelCategorySetting[] | undefined;
1577
+ notification_channel_category_settings_list: NotificationChannelCategorySetting[];
1578
1578
  }
1579
1579
  export interface NotificationChannelCategorySetting {
1580
1580
  /** Notification id */
1581
- id?: string | undefined;
1581
+ id: string;
1582
1582
  /** */
1583
- channel_category_label?: string | undefined;
1583
+ channel_category_label: string;
1584
1584
  /** Notification title */
1585
- notification_setting_type?: number | undefined;
1585
+ notification_setting_type: number;
1586
1586
  /** */
1587
- channel_category_title?: string | undefined;
1587
+ channel_category_title: string;
1588
1588
  /** */
1589
- action?: number | undefined;
1589
+ action: number;
1590
1590
  }
1591
1591
  /** set default notification */
1592
1592
  export interface SetDefaultNotificationRequest {
1593
- clan_id?: string | undefined;
1594
- notification_type?: number | undefined;
1595
- category_id?: string | undefined;
1593
+ clan_id: string;
1594
+ notification_type: number;
1595
+ category_id: string;
1596
1596
  }
1597
1597
  /** A list of role description, usually a result of a list operation. */
1598
1598
  export interface RoleList {
1599
1599
  /** A list of role. */
1600
- roles?: Role[] | undefined;
1600
+ roles: Role[];
1601
1601
  /** level permission max */
1602
- max_level_permission?: number | undefined;
1602
+ max_level_permission: number;
1603
1603
  }
1604
1604
  export interface EventList {
1605
1605
  /** A list of event. */
1606
- events?: EventManagement[] | undefined;
1606
+ events: EventManagement[];
1607
1607
  }
1608
1608
  /** A list of permission description, usually a result of a list operation. */
1609
1609
  export interface PermissionList {
1610
1610
  /** A list of permission. */
1611
- permissions?: Permission[] | undefined;
1611
+ permissions: Permission[];
1612
1612
  /** level permission max */
1613
- max_level_permission?: number | undefined;
1613
+ max_level_permission: number;
1614
1614
  }
1615
1615
  /** List (and optionally filter) permissions. */
1616
1616
  export interface ListPermissionsRequest {
1617
- role_id?: string | undefined;
1617
+ role_id: string;
1618
1618
  }
1619
1619
  /** List (and optionally filter) role-users. */
1620
1620
  export interface ListRoleUsersRequest {
1621
- role_id?: string | undefined;
1621
+ role_id: string;
1622
1622
  /** Max number of records to return. Between 1 and 100. */
1623
- limit?: number | undefined;
1623
+ limit: number | undefined;
1624
1624
  /** An optional next page cursor. */
1625
- cursor?: string | undefined;
1625
+ cursor: string;
1626
1626
  }
1627
1627
  /** List Permission Of User In The Clan. */
1628
1628
  export interface ListPermissionOfUsersRequest {
1629
1629
  /** clan_id. */
1630
- clan_id?: string | undefined;
1630
+ clan_id: string;
1631
1631
  /** channel_id */
1632
- channel_id?: string | undefined;
1632
+ channel_id: string;
1633
1633
  }
1634
1634
  export interface RoleUserList {
1635
1635
  /** role_users pairs for a clan. */
1636
- role_users?: RoleUserList_RoleUser[] | undefined;
1636
+ role_users: RoleUserList_RoleUser[];
1637
1637
  /** Cursor for the next page of results, if any. */
1638
- cursor?: string | undefined;
1638
+ cursor: string;
1639
1639
  }
1640
1640
  /** A single user-role pair. */
1641
1641
  export interface RoleUserList_RoleUser {
1642
1642
  /** The id of the user's account. */
1643
- id?: string | undefined;
1643
+ id: string;
1644
1644
  /** The username of the user's account. */
1645
- username?: string | undefined;
1645
+ username: string;
1646
1646
  /** The display name of the user. */
1647
- display_name?: string | undefined;
1647
+ display_name: string;
1648
1648
  /** A URL for an avatar image. */
1649
- avatar_url?: string | undefined;
1649
+ avatar_url: string;
1650
1650
  /** The language expected to be a tag which follows the BCP-47 spec. */
1651
- lang_tag?: string | undefined;
1651
+ lang_tag: string;
1652
1652
  /** The location set by the user. */
1653
- location?: string | undefined;
1653
+ location: string;
1654
1654
  /** The timezone set by the user. */
1655
- online?: boolean | undefined;
1655
+ online: boolean;
1656
1656
  }
1657
1657
  export interface UserEventRequest {
1658
1658
  /** The ID of the clan to be updated. */
1659
- clan_id?: string | undefined;
1659
+ clan_id: string;
1660
1660
  /** The ID of the event to be updated. */
1661
- event_id?: string | undefined;
1661
+ event_id: string;
1662
1662
  }
1663
1663
  export interface ListEventsRequest {
1664
1664
  /** The clan of this event */
1665
- clan_id?: string | undefined;
1665
+ clan_id: string;
1666
1666
  }
1667
1667
  /** Create a role within clan. */
1668
1668
  export interface CreateRoleRequest {
1669
- title?: string | undefined;
1670
- color?: string | undefined;
1671
- role_icon?: string | undefined;
1672
- description?: string | undefined;
1673
- clan_id?: string | undefined;
1674
- display_online?: number | undefined;
1675
- allow_mention?: number | undefined;
1669
+ title: string;
1670
+ color: string;
1671
+ role_icon: string;
1672
+ description: string;
1673
+ clan_id: string;
1674
+ display_online: number;
1675
+ allow_mention: number;
1676
1676
  /** id of permission which has max level permission */
1677
- max_permission_id?: string | undefined;
1677
+ max_permission_id: string;
1678
1678
  /** The users to add. */
1679
- add_user_ids?: string[] | undefined;
1679
+ add_user_ids: string[];
1680
1680
  /** The permissions to add. */
1681
- active_permission_ids?: string[] | undefined;
1681
+ active_permission_ids: string[];
1682
1682
  /** order role */
1683
- order_role?: number | undefined;
1683
+ order_role: number;
1684
1684
  }
1685
1685
  /** Create a event within clan. */
1686
1686
  export interface CreateEventRequest {
1687
- title?: string | undefined;
1688
- logo?: string | undefined;
1689
- description?: string | undefined;
1690
- clan_id?: string | undefined;
1691
- channel_voice_id?: string | undefined;
1692
- address?: string | undefined;
1693
- start_time?: Date | undefined;
1694
- end_time?: Date | undefined;
1695
- event_id?: string | undefined;
1696
- event_status?: number | undefined;
1697
- channel_id?: string | undefined;
1698
- action?: number | undefined;
1699
- repeat_type?: number | undefined;
1700
- creator_id?: string | undefined;
1701
- user_id?: string | undefined;
1702
- is_private?: boolean | undefined;
1703
- meet_room?: GenerateMezonMeetResponse | undefined;
1687
+ title: string;
1688
+ logo: string;
1689
+ description: string;
1690
+ clan_id: string;
1691
+ channel_voice_id: string;
1692
+ address: string;
1693
+ start_time: Date | undefined;
1694
+ end_time: Date | undefined;
1695
+ event_id: string;
1696
+ event_status: number;
1697
+ channel_id: string;
1698
+ action: number;
1699
+ repeat_type: number;
1700
+ creator_id: string;
1701
+ user_id: string;
1702
+ is_private: boolean | undefined;
1703
+ meet_room: GenerateMezonMeetResponse | undefined;
1704
1704
  }
1705
1705
  /** update a event within clan. */
1706
1706
  export interface UpdateEventRequest {
1707
- title?: string | undefined;
1708
- logo?: string | undefined;
1709
- description?: string | undefined;
1710
- event_id?: string | undefined;
1711
- channel_id?: string | undefined;
1712
- address?: string | undefined;
1713
- start_time?: Date | undefined;
1714
- end_time?: Date | undefined;
1715
- clan_id?: string | undefined;
1716
- creator_id?: string | undefined;
1717
- channel_voice_id?: string | undefined;
1718
- channel_id_old?: string | undefined;
1719
- repeat_type?: number | undefined;
1707
+ title: string;
1708
+ logo: string;
1709
+ description: string;
1710
+ event_id: string;
1711
+ channel_id: string;
1712
+ address: string;
1713
+ start_time: Date | undefined;
1714
+ end_time: Date | undefined;
1715
+ clan_id: string;
1716
+ creator_id: string;
1717
+ channel_voice_id: string;
1718
+ channel_id_old: string;
1719
+ repeat_type: number;
1720
1720
  }
1721
1721
  /** Delete a role the user has access to. */
1722
1722
  export interface DeleteRoleRequest {
1723
1723
  /** The id of a role. */
1724
- role_id?: string | undefined;
1724
+ role_id: string;
1725
1725
  /** The id of a channel */
1726
- channel_id?: string | undefined;
1726
+ channel_id: string;
1727
1727
  /** clan_id */
1728
- clan_id?: string | undefined;
1728
+ clan_id: string;
1729
1729
  /** role label */
1730
- role_label?: string | undefined;
1730
+ role_label: string;
1731
1731
  }
1732
1732
  export interface DeleteEventRequest {
1733
1733
  /** The id of a event. */
1734
- event_id?: string | undefined;
1734
+ event_id: string;
1735
1735
  /** clan id */
1736
- clan_id?: string | undefined;
1736
+ clan_id: string;
1737
1737
  /** creator id */
1738
- creator_id?: string | undefined;
1738
+ creator_id: string;
1739
1739
  /** event label */
1740
- event_label?: string | undefined;
1740
+ event_label: string;
1741
1741
  /** channel id */
1742
- channel_id?: string | undefined;
1742
+ channel_id: string;
1743
1743
  }
1744
1744
  /** Update fields in a given role. */
1745
1745
  export interface UpdateRoleRequest {
1746
1746
  /** The ID of the role to update. */
1747
- role_id?: string | undefined;
1748
- title?: string | undefined;
1749
- color?: string | undefined;
1750
- role_icon?: string | undefined;
1751
- description?: string | undefined;
1752
- display_online?: number | undefined;
1753
- allow_mention?: number | undefined;
1747
+ role_id: string;
1748
+ title: string | undefined;
1749
+ color: string | undefined;
1750
+ role_icon: string | undefined;
1751
+ description: string | undefined;
1752
+ display_online: number | undefined;
1753
+ allow_mention: number | undefined;
1754
1754
  /** The users to add. */
1755
- add_user_ids?: string[] | undefined;
1755
+ add_user_ids: string[];
1756
1756
  /** The permissions to add. */
1757
- active_permission_ids?: string[] | undefined;
1757
+ active_permission_ids: string[];
1758
1758
  /** The users to remove. */
1759
- remove_user_ids?: string[] | undefined;
1759
+ remove_user_ids: string[];
1760
1760
  /** The permissions to remove. */
1761
- remove_permission_ids?: string[] | undefined;
1761
+ remove_permission_ids: string[];
1762
1762
  /** the clan id */
1763
- clan_id?: string | undefined;
1763
+ clan_id: string;
1764
1764
  /** id of permission which has max level permission */
1765
- max_permission_id?: string | undefined;
1765
+ max_permission_id: string;
1766
1766
  }
1767
1767
  export interface UpdateRoleChannelRequest {
1768
1768
  /** The ID of the role to update. */
1769
- role_id?: string | undefined;
1769
+ role_id: string;
1770
1770
  /** The permissions to add. */
1771
- permission_update?: PermissionUpdate[] | undefined;
1771
+ permission_update: PermissionUpdate[];
1772
1772
  /** id of permission which has max level permission */
1773
- max_permission_id?: string | undefined;
1773
+ max_permission_id: string;
1774
1774
  /** The channel_id */
1775
- channel_id?: string | undefined;
1775
+ channel_id: string;
1776
1776
  /** The ID of the role to update. */
1777
- user_id?: string | undefined;
1777
+ user_id: string;
1778
1778
  /** Role label */
1779
- role_label?: string | undefined;
1779
+ role_label: string;
1780
1780
  }
1781
1781
  export interface PermissionUpdate {
1782
1782
  /** permission_id */
1783
- permission_id?: string | undefined;
1783
+ permission_id: string;
1784
1784
  /** permission slug */
1785
- slug?: string | undefined;
1785
+ slug: string;
1786
1786
  /** type set permission */
1787
- type?: number | undefined;
1787
+ type: number;
1788
1788
  }
1789
1789
  export interface UploadAttachmentRequest {
1790
1790
  /** The name of file that need to upload */
1791
- filename?: string | undefined;
1791
+ filename: string;
1792
1792
  /** The type of file that need to upload */
1793
- filetype?: string | undefined;
1793
+ filetype: string;
1794
1794
  /** The size of file that need to upload */
1795
- size?: number | undefined;
1795
+ size: number;
1796
1796
  /** width */
1797
- width?: number | undefined;
1797
+ width: number;
1798
1798
  /** Height */
1799
- height?: number | undefined;
1799
+ height: number;
1800
1800
  }
1801
1801
  export interface ListMessageMentionRequest {
1802
1802
  /** Max number of records to return. Between 1 and 100. */
1803
- limit?: number | undefined;
1803
+ limit: number | undefined;
1804
1804
  /** True if listing should be older messages to newer, false if reverse. */
1805
- forward?: boolean | undefined;
1805
+ forward: boolean | undefined;
1806
1806
  /** A pagination cursor, if any. */
1807
- cursor?: string | undefined;
1807
+ cursor: string;
1808
1808
  }
1809
1809
  export interface UploadAttachment {
1810
1810
  /** The name of file that need to upload */
1811
- filename?: string | undefined;
1811
+ filename: string;
1812
1812
  /** The url */
1813
- url?: string | undefined;
1813
+ url: string;
1814
1814
  }
1815
1815
  export interface SearchMessageRequest {
1816
- filters?: FilterParam[] | undefined;
1816
+ filters: FilterParam[];
1817
1817
  /** Offset value */
1818
- from?: number | undefined;
1818
+ from: number | undefined;
1819
1819
  /** Page size */
1820
- size?: number | undefined;
1820
+ size: number | undefined;
1821
1821
  /** Sort information */
1822
- sorts?: SortParam[] | undefined;
1822
+ sorts: SortParam[];
1823
1823
  }
1824
1824
  export interface SortParam {
1825
1825
  /** Field name to sort by */
1826
- field_name?: string | undefined;
1826
+ field_name: string;
1827
1827
  /** Sort order */
1828
- order?: string | undefined;
1828
+ order: string;
1829
1829
  }
1830
1830
  export interface FilterParam {
1831
1831
  /** Field name to filter by */
1832
- field_name?: string | undefined;
1832
+ field_name: string;
1833
1833
  /** Filter value */
1834
- field_value?: string | undefined;
1834
+ field_value: string;
1835
1835
  }
1836
1836
  export interface SearchMessageDocument {
1837
1837
  /** The message ID. */
1838
- message_id?: string | undefined;
1838
+ message_id: string;
1839
1839
  /** The channel ID. */
1840
- channel_id?: string | undefined;
1840
+ channel_id: string;
1841
1841
  /** The clan ID. */
1842
- clan_id?: string | undefined;
1842
+ clan_id: string;
1843
1843
  /** The user ID of sender. */
1844
- sender_id?: string | undefined;
1844
+ sender_id: string;
1845
1845
  /** Message content */
1846
- content?: string | undefined;
1846
+ content: string;
1847
1847
  /** Mention users */
1848
- mentions?: string | undefined;
1848
+ mentions: string;
1849
1849
  /** Reactions */
1850
- reactions?: string | undefined;
1850
+ reactions: string;
1851
1851
  /** Attachment */
1852
- attachments?: MessageAttachment[] | undefined;
1852
+ attachments: MessageAttachment[];
1853
1853
  /** Reference users */
1854
- references?: string | undefined;
1854
+ references: string;
1855
1855
  /** Message create time */
1856
- create_time?: string | undefined;
1856
+ create_time: string;
1857
1857
  /** Message update time */
1858
- update_time?: string | undefined;
1858
+ update_time: string;
1859
1859
  /** Channel name */
1860
- channel_label?: string | undefined;
1860
+ channel_label: string;
1861
1861
  /** Channel type */
1862
- channel_type?: number | undefined;
1862
+ channel_type: number;
1863
1863
  /** Clan name */
1864
- clan_name?: string | undefined;
1864
+ clan_name: string;
1865
1865
  /** Sender's username */
1866
- username?: string | undefined;
1866
+ username: string;
1867
1867
  /** Sender's display name */
1868
- display_name?: string | undefined;
1868
+ display_name: string;
1869
1869
  /** Sender's avatar URL */
1870
- avatar_url?: string | undefined;
1870
+ avatar_url: string;
1871
1871
  }
1872
1872
  export interface SearchMessageResponse {
1873
1873
  /** List of paged messages. */
1874
- messages?: SearchMessageDocument[] | undefined;
1874
+ messages: SearchMessageDocument[];
1875
1875
  /** The total number of messages. */
1876
- total?: number | undefined;
1876
+ total: number;
1877
1877
  }
1878
1878
  export interface RegistrationEmailRequest {
1879
1879
  /** A valid RFC-5322 email address. */
1880
- email?: string | undefined;
1880
+ email: string;
1881
1881
  /** A password for the user account. */
1882
- password?: string | undefined;
1882
+ password: string;
1883
1883
  /** A old password for the user account. */
1884
- old_password?: string | undefined;
1884
+ old_password: string;
1885
1885
  /** Set the username on the account at register. Must be unique. */
1886
- username?: string | undefined;
1886
+ username: string;
1887
1887
  /** Display name */
1888
- display_name?: string | undefined;
1888
+ display_name: string;
1889
1889
  /** Avatar url */
1890
- avatar_url?: string | undefined;
1890
+ avatar_url: string;
1891
1891
  /** DOB */
1892
- dob?: string | undefined;
1892
+ dob: string;
1893
1893
  /** Extra information that will be bundled in the session token. */
1894
- vars?: {
1894
+ vars: {
1895
1895
  [key: string]: string;
1896
- } | undefined;
1896
+ };
1897
1897
  }
1898
1898
  export interface RegistrationEmailRequest_VarsEntry {
1899
1899
  key: string;
1900
1900
  value: string;
1901
1901
  }
1902
1902
  export interface ClanEmoji {
1903
- id?: string | undefined;
1903
+ id: string;
1904
1904
  /** src url */
1905
- src?: string | undefined;
1905
+ src: string;
1906
1906
  /** shortname */
1907
- shortname?: string | undefined;
1907
+ shortname: string;
1908
1908
  /** category */
1909
- category?: string | undefined;
1909
+ category: string;
1910
1910
  /** creator id */
1911
- creator_id?: string | undefined;
1911
+ creator_id: string;
1912
1912
  /** clan_id */
1913
- clan_id?: string | undefined;
1913
+ clan_id: string;
1914
1914
  /** clan logo */
1915
- logo?: string | undefined;
1915
+ logo: string;
1916
1916
  /** clan name */
1917
- clan_name?: string | undefined;
1917
+ clan_name: string;
1918
1918
  /** is for sale */
1919
- is_for_sale?: boolean | undefined;
1919
+ is_for_sale: boolean;
1920
1920
  }
1921
1921
  export interface EmojiListedResponse {
1922
- emoji_list?: ClanEmoji[] | undefined;
1922
+ emoji_list: ClanEmoji[];
1923
1923
  }
1924
1924
  export interface StickerListedResponse {
1925
- stickers?: ClanSticker[] | undefined;
1925
+ stickers: ClanSticker[];
1926
1926
  }
1927
1927
  export interface ClanSticker {
1928
- id?: string | undefined;
1929
- source?: string | undefined;
1930
- shortname?: string | undefined;
1931
- category?: string | undefined;
1932
- creator_id?: string | undefined;
1933
- create_time?: Date | undefined;
1934
- clan_id?: string | undefined;
1935
- logo?: string | undefined;
1936
- clan_name?: string | undefined;
1937
- media_type?: number | undefined;
1928
+ id: string;
1929
+ source: string;
1930
+ shortname: string;
1931
+ category: string;
1932
+ creator_id: string;
1933
+ create_time: Date | undefined;
1934
+ clan_id: string;
1935
+ logo: string;
1936
+ clan_name: string;
1937
+ media_type: number;
1938
1938
  /** is for sale */
1939
- is_for_sale?: boolean | undefined;
1939
+ is_for_sale: boolean;
1940
1940
  }
1941
1941
  export interface AllUsersAddChannelRequest {
1942
- channel_id?: string | undefined;
1943
- limit?: number | undefined;
1942
+ channel_id: string;
1943
+ limit: number | undefined;
1944
1944
  }
1945
1945
  export interface AllUsersAddChannelResponse {
1946
- channel_id?: string | undefined;
1947
- user_ids?: string[] | undefined;
1948
- limit?: number | undefined;
1949
- usernames?: string[] | undefined;
1950
- display_names?: string[] | undefined;
1951
- avatars?: string[] | undefined;
1952
- onlines?: boolean[] | undefined;
1946
+ channel_id: string;
1947
+ user_ids: string[];
1948
+ limit: number | undefined;
1949
+ usernames: string[];
1950
+ display_names: string[];
1951
+ avatars: string[];
1952
+ onlines: boolean[];
1953
1953
  }
1954
1954
  export interface ClanEmojiCreateRequest {
1955
- clan_id?: string | undefined;
1956
- source?: string | undefined;
1957
- shortname?: string | undefined;
1958
- category?: string | undefined;
1959
- id?: string | undefined;
1960
- is_for_sale?: boolean | undefined;
1955
+ clan_id: string;
1956
+ source: string;
1957
+ shortname: string;
1958
+ category: string;
1959
+ id: string;
1960
+ is_for_sale: boolean;
1961
1961
  }
1962
1962
  export interface ClanEmojiGetByClanIdRequest {
1963
- clan_id?: string | undefined;
1963
+ clan_id: string;
1964
1964
  }
1965
1965
  export interface ClanEmojiDeleteRequest {
1966
- id?: string | undefined;
1967
- clan_id?: string | undefined;
1968
- emoji_label?: string | undefined;
1966
+ id: string;
1967
+ clan_id: string;
1968
+ emoji_label: string;
1969
1969
  }
1970
1970
  export interface ClanEmojiUpdateRequest {
1971
- id?: string | undefined;
1972
- shortname?: string | undefined;
1973
- clan_id?: string | undefined;
1971
+ id: string;
1972
+ shortname: string;
1973
+ clan_id: string;
1974
1974
  }
1975
1975
  export interface Webhook {
1976
- id?: string | undefined;
1977
- webhook_name?: string | undefined;
1978
- channel_id?: string | undefined;
1979
- active?: number | undefined;
1976
+ id: string;
1977
+ webhook_name: string;
1978
+ channel_id: string;
1979
+ active: number;
1980
1980
  /** URL of the webhook, which is automatically generated and different from the avatar */
1981
- url?: string | undefined;
1982
- creator_id?: string | undefined;
1983
- create_time?: string | undefined;
1984
- update_time?: string | undefined;
1985
- avatar?: string | undefined;
1986
- status?: number | undefined;
1987
- clan_id?: string | undefined;
1981
+ url: string;
1982
+ creator_id: string;
1983
+ create_time: string;
1984
+ update_time: string;
1985
+ avatar: string;
1986
+ status: number;
1987
+ clan_id: string;
1988
1988
  }
1989
1989
  export interface WebhookCreateRequest {
1990
- webhook_name?: string | undefined;
1991
- channel_id?: string | undefined;
1992
- avatar?: string | undefined;
1993
- clan_id?: string | undefined;
1990
+ webhook_name: string;
1991
+ channel_id: string;
1992
+ avatar: string;
1993
+ clan_id: string;
1994
1994
  }
1995
1995
  export interface WebhookListRequestById {
1996
- id?: string | undefined;
1996
+ id: string;
1997
1997
  }
1998
1998
  export interface WebhookUpdateRequestById {
1999
1999
  /** webhook Id */
2000
- id?: string | undefined;
2000
+ id: string;
2001
2001
  /** webhook name */
2002
- webhook_name?: string | undefined;
2002
+ webhook_name: string;
2003
2003
  /** change channel_id of webhook */
2004
- channel_id_update?: string | undefined;
2004
+ channel_id_update: string;
2005
2005
  /** webhook avatar */
2006
- avatar?: string | undefined;
2006
+ avatar: string;
2007
2007
  /** channel id */
2008
- channel_id?: string | undefined;
2008
+ channel_id: string;
2009
2009
  /** clan id */
2010
- clan_id?: string | undefined;
2010
+ clan_id: string;
2011
2011
  }
2012
2012
  export interface WebhookDeleteRequestById {
2013
- id?: string | undefined;
2014
- clan_id?: string | undefined;
2015
- channel_id?: string | undefined;
2013
+ id: string;
2014
+ clan_id: string;
2015
+ channel_id: string;
2016
2016
  }
2017
2017
  export interface WebhookListRequest {
2018
- channel_id?: string | undefined;
2019
- clan_id?: string | undefined;
2018
+ channel_id: string;
2019
+ clan_id: string;
2020
2020
  }
2021
2021
  export interface WebhookListResponse {
2022
- webhooks?: Webhook[] | undefined;
2022
+ webhooks: Webhook[];
2023
2023
  }
2024
2024
  export interface WebhookGenerateResponse {
2025
- url?: string | undefined;
2026
- hook_name?: string | undefined;
2027
- channel_id?: string | undefined;
2028
- avatar?: string | undefined;
2025
+ url: string;
2026
+ hook_name: string;
2027
+ channel_id: string;
2028
+ avatar: string;
2029
2029
  }
2030
2030
  export interface WebhookHandlerRequest {
2031
- body?: {
2031
+ body: {
2032
2032
  [key: string]: any;
2033
2033
  } | undefined;
2034
- channel_id?: string | undefined;
2035
- token?: string | undefined;
2034
+ channel_id: string;
2035
+ token: string;
2036
2036
  }
2037
2037
  export interface CheckDuplicateClanNameRequest {
2038
- clan_name?: string | undefined;
2038
+ clan_name: string;
2039
2039
  }
2040
2040
  export interface CheckDuplicateClanNameResponse {
2041
- is_duplicate?: boolean | undefined;
2041
+ is_duplicate: boolean;
2042
2042
  }
2043
2043
  export interface ClanStickerAddRequest {
2044
- source?: string | undefined;
2045
- shortname?: string | undefined;
2046
- category?: string | undefined;
2047
- clan_id?: string | undefined;
2044
+ source: string;
2045
+ shortname: string;
2046
+ category: string;
2047
+ clan_id: string;
2048
2048
  /** UNIQUE include type number */
2049
- id?: string | undefined;
2049
+ id: string;
2050
2050
  /** media type for image or audio */
2051
- media_type?: number | undefined;
2051
+ media_type: number;
2052
2052
  /** is for sale */
2053
- is_for_sale?: boolean | undefined;
2053
+ is_for_sale: boolean;
2054
2054
  }
2055
2055
  export interface ClanStickerListByClanIdRequest {
2056
- clan_id?: string | undefined;
2056
+ clan_id: string;
2057
2057
  }
2058
2058
  export interface ClanStickerUpdateByIdRequest {
2059
- id?: string | undefined;
2060
- source?: string | undefined;
2061
- shortname?: string | undefined;
2062
- category?: string | undefined;
2063
- clan_id?: string | undefined;
2059
+ id: string;
2060
+ source: string;
2061
+ shortname: string;
2062
+ category: string;
2063
+ clan_id: string;
2064
2064
  }
2065
2065
  export interface ClanStickerDeleteRequest {
2066
- id?: string | undefined;
2067
- clan_id?: string | undefined;
2068
- sticker_label?: string | undefined;
2066
+ id: string;
2067
+ clan_id: string;
2068
+ sticker_label: string;
2069
2069
  }
2070
2070
  export interface ChangeChannelCategoryRequest {
2071
- clan_id?: string | undefined;
2072
- channel_id?: string | undefined;
2073
- new_category_id?: string | undefined;
2071
+ clan_id: string;
2072
+ channel_id: string;
2073
+ new_category_id: string;
2074
2074
  }
2075
2075
  /** App information. */
2076
2076
  export interface App {
2077
2077
  /** app id */
2078
- id?: string | undefined;
2078
+ id: string;
2079
2079
  /** appname */
2080
- appname?: string | undefined;
2080
+ appname: string;
2081
2081
  /** creator_id */
2082
- creator_id?: string | undefined;
2082
+ creator_id: string;
2083
2083
  /** logo */
2084
- applogo?: string | undefined;
2084
+ applogo: string;
2085
2085
  /** status online */
2086
- is_shadow?: boolean | undefined;
2086
+ is_shadow: boolean;
2087
2087
  /** The UNIX time when the app was disabled. */
2088
- disable_time?: Date | undefined;
2088
+ disable_time: Date | undefined;
2089
2089
  /** string token */
2090
- token?: string | undefined;
2090
+ token: string;
2091
2091
  /** role */
2092
- role?: number | undefined;
2092
+ role: number;
2093
2093
  /** about */
2094
- about?: string | undefined;
2094
+ about: string;
2095
2095
  /** app url */
2096
- app_url?: string | undefined;
2096
+ app_url: string;
2097
2097
  }
2098
2098
  /** Delete a app. */
2099
2099
  export interface AppDeleteRequest {
2100
2100
  /** The unique identifier of the app. */
2101
- id?: string | undefined;
2101
+ id: string;
2102
2102
  /** Record the app deletion - used for GDPR compliance. */
2103
- record_deletion?: boolean | undefined;
2103
+ record_deletion: boolean | undefined;
2104
2104
  }
2105
2105
  /** A list of apps. */
2106
2106
  export interface AppList {
2107
2107
  /** A list of apps. */
2108
- apps?: App[] | undefined;
2108
+ apps: App[];
2109
2109
  /** Approximate total number of apps. */
2110
- total_count?: number | undefined;
2110
+ total_count: number;
2111
2111
  /** Next cursor. */
2112
- next_cursor?: string | undefined;
2112
+ next_cursor: string;
2113
2113
  }
2114
2114
  /** Add a new app */
2115
2115
  export interface AddAppRequest {
2116
2116
  /** The appname. */
2117
- appname?: string | undefined;
2117
+ appname: string;
2118
2118
  /** The password. */
2119
- token?: string | undefined;
2119
+ token: string;
2120
2120
  /** Creator of the app. */
2121
- creator_id?: string | undefined;
2121
+ creator_id: string;
2122
2122
  /** Role of this app. */
2123
- role?: number | undefined;
2123
+ role: number;
2124
2124
  /** Is shadow. */
2125
- is_shadow?: boolean | undefined;
2125
+ is_shadow: boolean;
2126
2126
  /** App url. */
2127
- app_url?: string | undefined;
2127
+ app_url: string;
2128
2128
  /** app logo */
2129
- app_logo?: string | undefined;
2129
+ app_logo: string;
2130
2130
  /** about me */
2131
- about_me?: string | undefined;
2131
+ about_me: string;
2132
2132
  }
2133
2133
  /** List (and optionally filter) users. */
2134
2134
  export interface ListAppsRequest {
2135
2135
  /** User ID or username filter. */
2136
- filter?: string | undefined;
2136
+ filter: string;
2137
2137
  /** Search only recorded deletes. */
2138
- tombstones?: boolean | undefined;
2138
+ tombstones: boolean;
2139
2139
  /** Cursor to start from */
2140
- cursor?: string | undefined;
2140
+ cursor: string;
2141
2141
  }
2142
2142
  /** Update app information. */
2143
2143
  export interface UpdateAppRequest {
2144
2144
  /** User ID to update. */
2145
- id?: string | undefined;
2145
+ id: string;
2146
2146
  /** Username. */
2147
- appname?: string | undefined;
2147
+ appname: string | undefined;
2148
2148
  /** Metadata. */
2149
- metadata?: string | undefined;
2149
+ metadata: string | undefined;
2150
2150
  /** Avatar URL. */
2151
- applogo?: string | undefined;
2151
+ applogo: string | undefined;
2152
2152
  /** Token. */
2153
- token?: string | undefined;
2153
+ token: string | undefined;
2154
2154
  /** about the app. */
2155
- about?: string | undefined;
2155
+ about: string;
2156
2156
  /** App url. */
2157
- app_url?: string | undefined;
2157
+ app_url: string;
2158
2158
  /** need update or not */
2159
- is_shadow?: string | undefined;
2159
+ is_shadow: string;
2160
2160
  }
2161
2161
  /** The identifier for an app. */
2162
2162
  export interface AppId {
2163
2163
  /** The unique identifier of the app. */
2164
- id?: string | undefined;
2164
+ id: string;
2165
2165
  }
2166
2166
  /** The identifier for an app. */
2167
2167
  export interface AppClan {
2168
2168
  /** The unique identifier of the app. */
2169
- app_id?: string | undefined;
2170
- clan_id?: string | undefined;
2169
+ app_id: string;
2170
+ clan_id: string;
2171
2171
  }
2172
2172
  /** Delete channel messages by timestamp or/and ids. */
2173
2173
  export interface DeleteChannelMessagesRequest {
2174
2174
  /** Timestamp before which messages will be deleted. */
2175
- before?: Date | undefined;
2175
+ before: Date | undefined;
2176
2176
  /** IDs of the messages to delete. */
2177
- ids?: string[] | undefined;
2177
+ ids: string[];
2178
2178
  }
2179
2179
  export interface DeleteChannelMessagesResponse {
2180
2180
  /** Total number of messages deleted. */
2181
- total?: number | undefined;
2181
+ total: number;
2182
2182
  }
2183
2183
  /** System message details. */
2184
2184
  export interface SystemMessage {
2185
2185
  /** ID */
2186
- id?: string | undefined;
2186
+ id: string;
2187
2187
  /** Clan ID */
2188
- clan_id?: string | undefined;
2188
+ clan_id: string;
2189
2189
  /** Channel ID */
2190
- channel_id?: string | undefined;
2190
+ channel_id: string;
2191
2191
  /** Welcome random */
2192
- welcome_random?: string | undefined;
2192
+ welcome_random: string;
2193
2193
  /** Welcome sticker */
2194
- welcome_sticker?: string | undefined;
2194
+ welcome_sticker: string;
2195
2195
  /** Boost message */
2196
- boost_message?: string | undefined;
2196
+ boost_message: string;
2197
2197
  /** Setup tips */
2198
- setup_tips?: string | undefined;
2198
+ setup_tips: string;
2199
2199
  /** Hide audit log */
2200
- hide_audit_log?: string | undefined;
2200
+ hide_audit_log: string;
2201
2201
  }
2202
2202
  /** List of system message. */
2203
2203
  export interface SystemMessagesList {
2204
- system_messages_list?: SystemMessage[] | undefined;
2204
+ system_messages_list: SystemMessage[];
2205
2205
  }
2206
2206
  /** Request to get system message by clan and channel IDs. */
2207
2207
  export interface SystemMessageRequest {
2208
2208
  /** Clan ID */
2209
- clan_id?: string | undefined;
2209
+ clan_id: string;
2210
2210
  /** Channel ID */
2211
- channel_id?: string | undefined;
2211
+ channel_id: string;
2212
2212
  /** Welcome random */
2213
- welcome_random?: string | undefined;
2213
+ welcome_random: string;
2214
2214
  /** Welcome sticker */
2215
- welcome_sticker?: string | undefined;
2215
+ welcome_sticker: string;
2216
2216
  /** Boost message */
2217
- boost_message?: string | undefined;
2217
+ boost_message: string;
2218
2218
  /** Setup tips */
2219
- setup_tips?: string | undefined;
2219
+ setup_tips: string;
2220
2220
  /** Hide audit log */
2221
- hide_audit_log?: string | undefined;
2221
+ hide_audit_log: string;
2222
2222
  }
2223
2223
  /** Request to delete a system message by clan ID. */
2224
2224
  export interface DeleteSystemMessage {
2225
2225
  /** Clan ID */
2226
- clan_id?: string | undefined;
2226
+ clan_id: string;
2227
2227
  }
2228
2228
  /** Request to get system message by clan ID. */
2229
2229
  export interface GetSystemMessage {
2230
2230
  /** Clan ID */
2231
- clan_id?: string | undefined;
2231
+ clan_id: string;
2232
2232
  }
2233
2233
  export interface DeleteCategoryOrderRequest {
2234
- clan_id?: string | undefined;
2234
+ clan_id: string;
2235
2235
  }
2236
2236
  export interface StreamHttpCallbackRequest {
2237
2237
  /** id */
2238
- id?: string | undefined;
2238
+ id: string;
2239
2239
  /** client_id */
2240
- client_id?: string | undefined;
2240
+ client_id: string;
2241
2241
  /** clan_id */
2242
- clan_id?: string | undefined;
2242
+ clan_id: string;
2243
2243
  /** channel_id */
2244
- channel_id?: string | undefined;
2244
+ channel_id: string;
2245
2245
  /** user_id */
2246
- user_id?: string | undefined;
2246
+ user_id: string;
2247
2247
  /** action */
2248
- action?: number | undefined;
2248
+ action: number;
2249
2249
  /** is_publisher */
2250
- is_publisher?: boolean | undefined;
2250
+ is_publisher: boolean;
2251
2251
  /** token */
2252
- token?: string | undefined;
2252
+ token: string;
2253
2253
  }
2254
2254
  export interface StreamHttpCallbackResponse {
2255
- code?: number | undefined;
2256
- msg?: string | undefined;
2255
+ code: number | undefined;
2256
+ msg: string;
2257
2257
  }
2258
2258
  /** A list of users belonging to a channel, along with their role. */
2259
2259
  export interface StreamingChannelUser {
2260
2260
  /** user join id */
2261
- id?: string | undefined;
2261
+ id: string;
2262
2262
  /** user for a channel. */
2263
- user_id?: string | undefined;
2263
+ user_id: string;
2264
2264
  /** channel id */
2265
- channel_id?: string | undefined;
2265
+ channel_id: string;
2266
2266
  /** participant */
2267
- participant?: string | undefined;
2267
+ participant: string;
2268
2268
  }
2269
2269
  /** A list of users belonging to a channel, along with their role. */
2270
2270
  export interface StreamingChannelUserList {
2271
2271
  /** list of voice channel user */
2272
- streaming_channel_users?: StreamingChannelUser[] | undefined;
2272
+ streaming_channel_users: StreamingChannelUser[];
2273
2273
  }
2274
2274
  export interface RegisterStreamingChannelRequest {
2275
2275
  /** clan id */
2276
- clan_id?: string | undefined;
2276
+ clan_id: string;
2277
2277
  /** channel id */
2278
- channel_id?: string | undefined;
2278
+ channel_id: string;
2279
2279
  }
2280
2280
  export interface RegisterStreamingChannelResponse {
2281
2281
  /** clan id */
2282
- clan_id?: string | undefined;
2282
+ clan_id: string;
2283
2283
  /** channel id */
2284
- channel_id?: string | undefined;
2284
+ channel_id: string;
2285
2285
  /** streaming url */
2286
- streaming_url?: string | undefined;
2286
+ streaming_url: string;
2287
2287
  }
2288
2288
  export interface GiveCoffeeEvent {
2289
2289
  /** sender id */
2290
- sender_id?: string | undefined;
2290
+ sender_id: string;
2291
2291
  /** receiver id */
2292
- receiver_id?: string | undefined;
2292
+ receiver_id: string;
2293
2293
  /** token count */
2294
- token_count?: number | undefined;
2294
+ token_count: number;
2295
2295
  /** message_ref */
2296
- message_ref_id?: string | undefined;
2296
+ message_ref_id: string;
2297
2297
  /** chanel id */
2298
- channel_id?: string | undefined;
2298
+ channel_id: string;
2299
2299
  /** clan id */
2300
- clan_id?: string | undefined;
2300
+ clan_id: string;
2301
2301
  }
2302
2302
  export interface ListChannelAppsRequest {
2303
2303
  /** clan id */
2304
- clan_id?: string | undefined;
2304
+ clan_id: string;
2305
2305
  }
2306
2306
  export interface ListChannelAppsResponse {
2307
2307
  /** list of channel apps */
2308
- channel_apps?: ChannelAppResponse[] | undefined;
2308
+ channel_apps: ChannelAppResponse[];
2309
2309
  }
2310
2310
  export interface ChannelAppResponse {
2311
2311
  /** id */
2312
- id?: string | undefined;
2312
+ id: string;
2313
2313
  /** clan id */
2314
- clan_id?: string | undefined;
2314
+ clan_id: string;
2315
2315
  /** channel id */
2316
- channel_id?: string | undefined;
2316
+ channel_id: string;
2317
2317
  /** app id */
2318
- app_id?: string | undefined;
2318
+ app_id: string;
2319
2319
  /** app url */
2320
- app_url?: string | undefined;
2320
+ app_url: string;
2321
2321
  /** app name */
2322
- app_name?: string | undefined;
2322
+ app_name: string;
2323
2323
  /** app logo */
2324
- app_logo?: string | undefined;
2324
+ app_logo: string;
2325
2325
  }
2326
2326
  export interface AllUserClans {
2327
- users?: User[] | undefined;
2327
+ users: User[];
2328
2328
  }
2329
2329
  export interface RoleListEventRequest {
2330
2330
  /** clan id */
2331
- clan_id?: string | undefined;
2331
+ clan_id: string;
2332
2332
  /** limit */
2333
- limit?: number | undefined;
2333
+ limit: number;
2334
2334
  /** state */
2335
- state?: number | undefined;
2335
+ state: number;
2336
2336
  /** cursor */
2337
- cursor?: string | undefined;
2337
+ cursor: string;
2338
2338
  }
2339
2339
  export interface RoleListEventResponse {
2340
2340
  /** limit */
2341
- limit?: number | undefined;
2341
+ limit: number;
2342
2342
  /** state */
2343
- state?: number | undefined;
2343
+ state: number;
2344
2344
  /** cursor */
2345
- cursor?: string | undefined;
2345
+ cursor: string;
2346
2346
  /** clan_id */
2347
- clanId?: string | undefined;
2347
+ clanId: string;
2348
2348
  /** list of roles */
2349
- roles?: RoleList | undefined;
2349
+ roles: RoleList | undefined;
2350
2350
  }
2351
2351
  export interface UserPermissionInChannelListRequest {
2352
2352
  /** clan id */
2353
- clan_id?: string | undefined;
2353
+ clan_id: string;
2354
2354
  /** channel id */
2355
- channel_id?: string | undefined;
2355
+ channel_id: string;
2356
2356
  }
2357
2357
  export interface UserPermissionInChannelListResponse {
2358
2358
  /** clan id */
2359
- clan_id?: string | undefined;
2359
+ clan_id: string;
2360
2360
  /** channel id */
2361
- channel_id?: string | undefined;
2361
+ channel_id: string;
2362
2362
  /** A list of permission. */
2363
- permissions?: PermissionList | undefined;
2363
+ permissions: PermissionList | undefined;
2364
2364
  }
2365
2365
  /** Permission role channel */
2366
2366
  export interface PermissionRoleChannel {
2367
2367
  /** permission id */
2368
- permission_id?: string | undefined;
2368
+ permission_id: string;
2369
2369
  /** active */
2370
- active?: boolean | undefined;
2370
+ active: boolean;
2371
2371
  }
2372
2372
  export interface PermissionRoleChannelListEventRequest {
2373
2373
  /** role id */
2374
- role_id?: string | undefined;
2374
+ role_id: string;
2375
2375
  /** channel id */
2376
- channel_id?: string | undefined;
2376
+ channel_id: string;
2377
2377
  /** user id */
2378
- user_id?: string | undefined;
2378
+ user_id: string;
2379
2379
  }
2380
2380
  /** List of permission role channel */
2381
2381
  export interface PermissionRoleChannelListEventResponse {
2382
2382
  /** role id */
2383
- role_id?: string | undefined;
2383
+ role_id: string;
2384
2384
  /** channel id */
2385
- channel_id?: string | undefined;
2385
+ channel_id: string;
2386
2386
  /** user id */
2387
- user_id?: string | undefined;
2387
+ user_id: string;
2388
2388
  /** list of permission role channel */
2389
- permission_role_channel?: PermissionRoleChannel[] | undefined;
2389
+ permission_role_channel: PermissionRoleChannel[];
2390
2390
  }
2391
2391
  export interface ChannelSettingListRequest {
2392
2392
  /** clan id */
2393
- clan_id?: string | undefined;
2393
+ clan_id: string;
2394
2394
  /** parent id of thread */
2395
- parent_id?: string | undefined;
2395
+ parent_id: string;
2396
2396
  /** category id */
2397
- category_id?: string | undefined;
2397
+ category_id: string;
2398
2398
  /** is private channel */
2399
- privateChannel?: number | undefined;
2399
+ privateChannel: number | undefined;
2400
2400
  /** is active */
2401
- active?: number | undefined;
2401
+ active: number | undefined;
2402
2402
  /** status */
2403
- status?: number | undefined;
2403
+ status: number | undefined;
2404
2404
  /** type */
2405
- type?: number | undefined;
2405
+ type: number | undefined;
2406
2406
  /** limit */
2407
- limit?: number | undefined;
2407
+ limit: number | undefined;
2408
2408
  /** page */
2409
- page?: number | undefined;
2409
+ page: number | undefined;
2410
2410
  /** channel label */
2411
- channel_label?: string | undefined;
2411
+ channel_label: string;
2412
2412
  }
2413
2413
  export interface ChannelSettingItem {
2414
2414
  /** channel id */
2415
- id?: string | undefined;
2415
+ id: string;
2416
2416
  /** creator id */
2417
- creator_id?: string | undefined;
2417
+ creator_id: string;
2418
2418
  /** parentId */
2419
- parent_id?: string | undefined;
2419
+ parent_id: string;
2420
2420
  /** label of channel */
2421
- channel_label?: string | undefined;
2421
+ channel_label: string;
2422
2422
  /** category id */
2423
- category_id?: string | undefined;
2423
+ category_id: string;
2424
2424
  /** meeting code */
2425
- meeting_code?: string | undefined;
2425
+ meeting_code: string;
2426
2426
  /** channel private */
2427
- channel_private?: number | undefined;
2427
+ channel_private: number;
2428
2428
  /** channel type */
2429
- channel_type?: number | undefined;
2429
+ channel_type: number;
2430
2430
  /** is active */
2431
- active?: number | undefined;
2431
+ active: number;
2432
2432
  /** list user in channel */
2433
- user_ids?: string[] | undefined;
2433
+ user_ids: string[];
2434
2434
  /** message count */
2435
- message_count?: number | undefined;
2435
+ message_count: number;
2436
2436
  /** last sent message */
2437
- last_sent_message?: ChannelMessageHeader | undefined;
2437
+ last_sent_message: ChannelMessageHeader | undefined;
2438
2438
  }
2439
2439
  export interface ChannelSettingListResponse {
2440
2440
  /** clan id */
2441
- clan_id?: string | undefined;
2441
+ clan_id: string;
2442
2442
  /** channel count */
2443
- channel_count?: number | undefined;
2443
+ channel_count: number;
2444
2444
  /** thread count */
2445
- thread_count?: number | undefined;
2445
+ thread_count: number;
2446
2446
  /** channel setting list */
2447
- channel_setting_list?: ChannelSettingItem[] | undefined;
2447
+ channel_setting_list: ChannelSettingItem[];
2448
2448
  }
2449
2449
  export interface MarkAsReadRequest {
2450
2450
  /** channel id */
2451
- channel_id?: string | undefined;
2451
+ channel_id: string;
2452
2452
  /** category_id */
2453
- category_id?: string | undefined;
2453
+ category_id: string;
2454
2454
  /** clan id */
2455
- clan_id?: string | undefined;
2455
+ clan_id: string;
2456
2456
  }
2457
2457
  export interface EditChannelCanvasRequest {
2458
2458
  /** id */
2459
- id?: string | undefined;
2459
+ id: string | undefined;
2460
2460
  /** channel id */
2461
- channel_id?: string | undefined;
2461
+ channel_id: string;
2462
2462
  /** clan id */
2463
- clan_id?: string | undefined;
2463
+ clan_id: string;
2464
2464
  /** title */
2465
- title?: string | undefined;
2465
+ title: string;
2466
2466
  /** content */
2467
- content?: string | undefined;
2467
+ content: string;
2468
2468
  /** is default */
2469
- is_default?: boolean | undefined;
2469
+ is_default: boolean;
2470
2470
  /** status */
2471
- status?: number | undefined;
2471
+ status: number;
2472
2472
  }
2473
2473
  export interface EditChannelCanvasResponse {
2474
2474
  /** id */
2475
- id?: string | undefined;
2475
+ id: string;
2476
2476
  }
2477
2477
  export interface DeleteChannelCanvasRequest {
2478
2478
  /** clan id */
2479
- clan_id?: string | undefined;
2479
+ clan_id: string;
2480
2480
  /** channel id */
2481
- channel_id?: string | undefined;
2481
+ channel_id: string;
2482
2482
  /** canvas id */
2483
- canvas_id?: string | undefined;
2483
+ canvas_id: string;
2484
2484
  }
2485
2485
  export interface ChannelCanvasListRequest {
2486
2486
  /** clan id */
2487
- clan_id?: string | undefined;
2487
+ clan_id: string;
2488
2488
  /** channel id */
2489
- channel_id?: string | undefined;
2489
+ channel_id: string;
2490
2490
  /** limit */
2491
- limit?: number | undefined;
2491
+ limit: number | undefined;
2492
2492
  /** page */
2493
- page?: number | undefined;
2493
+ page: number | undefined;
2494
2494
  /** */
2495
- cursor?: string | undefined;
2495
+ cursor: string;
2496
2496
  }
2497
2497
  export interface ChannelCanvasItem {
2498
2498
  /** id */
2499
- id?: string | undefined;
2499
+ id: string;
2500
2500
  /** title */
2501
- title?: string | undefined;
2501
+ title: string;
2502
2502
  /** is default */
2503
- is_default?: boolean | undefined;
2503
+ is_default: boolean;
2504
2504
  /** content */
2505
- content?: string | undefined;
2505
+ content: string;
2506
2506
  /** creator */
2507
- creator_id?: string | undefined;
2507
+ creator_id: string;
2508
2508
  /** */
2509
- update_time?: Date | undefined;
2510
- create_time?: Date | undefined;
2509
+ update_time: Date | undefined;
2510
+ create_time: Date | undefined;
2511
2511
  }
2512
2512
  export interface ChannelCanvasListResponse {
2513
2513
  /** clan id */
2514
- clan_id?: string | undefined;
2514
+ clan_id: string;
2515
2515
  /** channel id */
2516
- channel_id?: string | undefined;
2516
+ channel_id: string;
2517
2517
  /** channel doc item */
2518
- channel_canvases?: ChannelCanvasItem[] | undefined;
2518
+ channel_canvases: ChannelCanvasItem[];
2519
2519
  /** */
2520
- count?: number | undefined;
2520
+ count: number;
2521
2521
  }
2522
2522
  export interface ChannelCanvasDetailRequest {
2523
2523
  /** id */
2524
- id?: string | undefined;
2524
+ id: string;
2525
2525
  /** clan id */
2526
- clan_id?: string | undefined;
2526
+ clan_id: string;
2527
2527
  /** channel id */
2528
- channel_id?: string | undefined;
2528
+ channel_id: string;
2529
2529
  }
2530
2530
  export interface ChannelCanvasDetailResponse {
2531
2531
  /** id */
2532
- id?: string | undefined;
2532
+ id: string;
2533
2533
  /** title */
2534
- title?: string | undefined;
2534
+ title: string;
2535
2535
  /** content */
2536
- content?: string | undefined;
2536
+ content: string;
2537
2537
  /** creator */
2538
- creator_id?: string | undefined;
2538
+ creator_id: string;
2539
2539
  /** editor */
2540
- editor_id?: string | undefined;
2540
+ editor_id: string;
2541
2541
  /** is default */
2542
- is_default?: boolean | undefined;
2542
+ is_default: boolean;
2543
2543
  }
2544
2544
  export interface AddFavoriteChannelRequest {
2545
- channel_id?: string | undefined;
2546
- clan_id?: string | undefined;
2545
+ channel_id: string;
2546
+ clan_id: string;
2547
2547
  }
2548
2548
  export interface RemoveFavoriteChannelRequest {
2549
- clan_id?: string | undefined;
2550
- channel_id?: string | undefined;
2549
+ clan_id: string;
2550
+ channel_id: string;
2551
2551
  }
2552
2552
  export interface AddFavoriteChannelResponse {
2553
- channel_id?: string | undefined;
2553
+ channel_id: string;
2554
2554
  }
2555
2555
  export interface ListFavoriteChannelRequest {
2556
- clan_id?: string | undefined;
2556
+ clan_id: string;
2557
2557
  }
2558
2558
  export interface ListFavoriteChannelResponse {
2559
- channel_ids?: string[] | undefined;
2559
+ channel_ids: string[];
2560
2560
  }
2561
2561
  export interface UserActivity {
2562
- user_id?: string | undefined;
2563
- activity_name?: string | undefined;
2564
- activity_type?: number | undefined;
2565
- activity_description?: string | undefined;
2566
- start_time?: Date | undefined;
2567
- end_time?: Date | undefined;
2568
- application_id?: string | undefined;
2569
- status?: number | undefined;
2562
+ user_id: string;
2563
+ activity_name: string;
2564
+ activity_type: number;
2565
+ activity_description: string;
2566
+ start_time: Date | undefined;
2567
+ end_time: Date | undefined;
2568
+ application_id: string;
2569
+ status: number;
2570
2570
  }
2571
2571
  export interface ListUserActivity {
2572
- activities?: UserActivity[] | undefined;
2572
+ activities: UserActivity[];
2573
2573
  }
2574
2574
  export interface CreateActivityRequest {
2575
- activity_name?: string | undefined;
2576
- activity_type?: number | undefined;
2577
- activity_description?: string | undefined;
2578
- start_time?: Date | undefined;
2579
- application_id?: string | undefined;
2580
- status?: number | undefined;
2575
+ activity_name: string;
2576
+ activity_type: number;
2577
+ activity_description: string;
2578
+ start_time: Date | undefined;
2579
+ application_id: string;
2580
+ status: number;
2581
2581
  }
2582
2582
  export interface LoginIDResponse {
2583
2583
  /** loginId */
2584
- login_id?: string | undefined;
2584
+ login_id: string;
2585
2585
  /** status login */
2586
- status?: number | undefined;
2586
+ status: number;
2587
2587
  /** create time */
2588
- create_time_second?: number | undefined;
2588
+ create_time_second: number;
2589
2589
  /** platform */
2590
- platform?: string | undefined;
2590
+ platform: string;
2591
2591
  /** user_id */
2592
- user_id?: number | undefined;
2592
+ user_id: number;
2593
2593
  /** username */
2594
- username?: string | undefined;
2594
+ username: string;
2595
2595
  /** address */
2596
- address?: string | undefined;
2596
+ address: string;
2597
2597
  }
2598
2598
  export interface LoginRequest {
2599
2599
  /** platform */
2600
- platform?: string | undefined;
2600
+ platform: string;
2601
2601
  /** address */
2602
- address?: string | undefined;
2602
+ address: string;
2603
2603
  }
2604
2604
  export interface ConfirmLoginRequest {
2605
2605
  /** loginId */
2606
- login_id?: string | undefined;
2606
+ login_id: string;
2607
2607
  /** Whether to enable "Remember Me" for extended session duration. */
2608
- is_remember?: boolean | undefined;
2608
+ is_remember: boolean | undefined;
2609
2609
  }
2610
2610
  export interface PubKey {
2611
- encr?: Uint8Array | undefined;
2612
- sign?: Uint8Array | undefined;
2611
+ encr: Uint8Array;
2612
+ sign: Uint8Array;
2613
2613
  }
2614
2614
  export interface PushPubKeyRequest {
2615
- PK?: PubKey | undefined;
2615
+ PK: PubKey | undefined;
2616
2616
  }
2617
2617
  export interface GetPubKeysRequest {
2618
- user_ids?: string[] | undefined;
2618
+ user_ids: string[];
2619
2619
  }
2620
2620
  export interface GetPubKeysResponse {
2621
- pub_keys?: GetPubKeysResponse_UserPubKey[] | undefined;
2621
+ pub_keys: GetPubKeysResponse_UserPubKey[];
2622
2622
  }
2623
2623
  export interface GetPubKeysResponse_UserPubKey {
2624
- user_id?: string | undefined;
2625
- PK?: PubKey | undefined;
2624
+ user_id: string;
2625
+ PK: PubKey | undefined;
2626
2626
  }
2627
2627
  export interface ChanEncryptionMethod {
2628
- method?: string | undefined;
2629
- channel_id?: string | undefined;
2628
+ method: string;
2629
+ channel_id: string;
2630
2630
  }
2631
2631
  export interface GetKeyServerResp {
2632
- url?: string | undefined;
2632
+ url: string;
2633
2633
  }
2634
2634
  export interface AuditLog {
2635
- id?: string | undefined;
2636
- user_id?: string | undefined;
2637
- clan_id?: string | undefined;
2638
- action_log?: string | undefined;
2639
- entity_name?: string | undefined;
2640
- entity_id?: string | undefined;
2641
- details?: string | undefined;
2642
- time_log?: Date | undefined;
2643
- channel_id?: string | undefined;
2644
- channel_label?: string | undefined;
2635
+ id: string;
2636
+ user_id: string;
2637
+ clan_id: string;
2638
+ action_log: string;
2639
+ entity_name: string;
2640
+ entity_id: string;
2641
+ details: string;
2642
+ time_log: Date | undefined;
2643
+ channel_id: string;
2644
+ channel_label: string;
2645
2645
  }
2646
2646
  export interface ListAuditLog {
2647
- total_count?: number | undefined;
2648
- date_log?: string | undefined;
2649
- logs?: AuditLog[] | undefined;
2647
+ total_count: number;
2648
+ date_log: string;
2649
+ logs: AuditLog[];
2650
2650
  }
2651
2651
  export interface ListAuditLogRequest {
2652
- action_log?: string | undefined;
2653
- user_id?: string | undefined;
2654
- clan_id?: string | undefined;
2655
- date_log?: string | undefined;
2652
+ action_log: string;
2653
+ user_id: string;
2654
+ clan_id: string;
2655
+ date_log: string;
2656
2656
  }
2657
2657
  export interface TokenSentEvent {
2658
2658
  /** sender id */
2659
- sender_id?: string | undefined;
2659
+ sender_id: string;
2660
2660
  /** sender name */
2661
- sender_name?: string | undefined;
2661
+ sender_name: string;
2662
2662
  /** receiver */
2663
- receiver_id?: string | undefined;
2663
+ receiver_id: string;
2664
2664
  /** amount of token */
2665
- amount?: number | undefined;
2665
+ amount: number;
2666
2666
  /** note */
2667
- note?: string | undefined;
2667
+ note: string;
2668
2668
  /** extra attribute */
2669
- extra_attribute?: string | undefined;
2669
+ extra_attribute: string;
2670
2670
  /** transaction id */
2671
- transaction_id?: string | undefined;
2671
+ transaction_id: string;
2672
2672
  }
2673
2673
  export interface UnlockItemRequest {
2674
2674
  /** item id */
2675
- item_id?: string | undefined;
2675
+ item_id: string;
2676
2676
  /** item type */
2677
- item_type?: number | undefined;
2677
+ item_type: number;
2678
2678
  }
2679
2679
  export interface UnlockedItemResponse {
2680
- source?: string | undefined;
2680
+ source: string;
2681
2681
  }
2682
2682
  export interface ListOnboardingRequest {
2683
2683
  /** clan id */
2684
- clan_id?: string | undefined;
2684
+ clan_id: string;
2685
2685
  /** guide_type: 0 = greeting, 1 = rule, 2 = task, 3 = question */
2686
- guide_type?: number | undefined;
2686
+ guide_type: number | undefined;
2687
2687
  /** limit */
2688
- limit?: number | undefined;
2688
+ limit: number | undefined;
2689
2689
  /** page */
2690
- page?: number | undefined;
2690
+ page: number | undefined;
2691
2691
  }
2692
2692
  export interface ListOnboardingResponse {
2693
- list_onboarding?: OnboardingItem[] | undefined;
2693
+ list_onboarding: OnboardingItem[];
2694
2694
  }
2695
2695
  export interface OnboardingItem {
2696
2696
  /** id */
2697
- id?: string | undefined;
2697
+ id: string;
2698
2698
  /** clan id */
2699
- clan_id?: string | undefined;
2699
+ clan_id: string;
2700
2700
  /** guide_type: 0 = greeting, 1 = rule, 2 = task, 3 = question */
2701
- guide_type?: number | undefined;
2701
+ guide_type: number;
2702
2702
  /** task type */
2703
- task_type?: number | undefined;
2703
+ task_type: number;
2704
2704
  /** channel id */
2705
- channel_id?: string | undefined;
2705
+ channel_id: string;
2706
2706
  /** title */
2707
- title?: string | undefined;
2707
+ title: string;
2708
2708
  /** content */
2709
- content?: string | undefined;
2709
+ content: string;
2710
2710
  /** image */
2711
- image_url?: string | undefined;
2711
+ image_url: string;
2712
2712
  /** answers */
2713
- answers?: OnboardingAnswer[] | undefined;
2713
+ answers: OnboardingAnswer[];
2714
2714
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
2715
- create_time?: Date | undefined;
2715
+ create_time: Date | undefined;
2716
2716
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated. */
2717
- update_time?: Date | undefined;
2717
+ update_time: Date | undefined;
2718
2718
  }
2719
2719
  export interface OnboardingAnswer {
2720
2720
  /** title */
2721
- title?: string | undefined;
2721
+ title: string;
2722
2722
  /** description */
2723
- description?: string | undefined;
2723
+ description: string;
2724
2724
  /** emoji */
2725
- emoji?: string | undefined;
2725
+ emoji: string;
2726
2726
  /** image */
2727
- image_url?: string | undefined;
2727
+ image_url: string;
2728
2728
  }
2729
2729
  export interface OnboardingContent {
2730
2730
  /** guide type */
2731
- guide_type?: number | undefined;
2731
+ guide_type: number;
2732
2732
  /** task type */
2733
- task_type?: number | undefined;
2733
+ task_type: number;
2734
2734
  /** channel id */
2735
- channel_id?: string | undefined;
2735
+ channel_id: string;
2736
2736
  /** title */
2737
- title?: string | undefined;
2737
+ title: string;
2738
2738
  /** content */
2739
- content?: string | undefined;
2739
+ content: string;
2740
2740
  /** image */
2741
- image_url?: string | undefined;
2741
+ image_url: string;
2742
2742
  /** answers */
2743
- answers?: OnboardingAnswer[] | undefined;
2743
+ answers: OnboardingAnswer[];
2744
2744
  }
2745
2745
  export interface CreateOnboardingRequest {
2746
2746
  /** clan id */
2747
- clan_id?: string | undefined;
2747
+ clan_id: string;
2748
2748
  /** contents */
2749
- contents?: OnboardingContent[] | undefined;
2749
+ contents: OnboardingContent[];
2750
2750
  }
2751
2751
  export interface UpdateOnboardingRequest {
2752
2752
  /** id */
2753
- id?: string | undefined;
2753
+ id: string;
2754
2754
  /** clan id */
2755
- clan_id?: string | undefined;
2755
+ clan_id: string;
2756
2756
  /** task type */
2757
- task_type?: number | undefined;
2757
+ task_type: number | undefined;
2758
2758
  /** channel id */
2759
- channel_id?: string | undefined;
2759
+ channel_id: string;
2760
2760
  /** title */
2761
- title?: string | undefined;
2761
+ title: string;
2762
2762
  /** content */
2763
- content?: string | undefined;
2763
+ content: string;
2764
2764
  /** image */
2765
- image_url?: string | undefined;
2765
+ image_url: string;
2766
2766
  /** answers */
2767
- answers?: OnboardingAnswer[] | undefined;
2767
+ answers: OnboardingAnswer[];
2768
2768
  }
2769
2769
  export interface OnboardingRequest {
2770
2770
  /** id */
2771
- id?: string | undefined;
2771
+ id: string;
2772
2772
  /** clan id */
2773
- clan_id?: string | undefined;
2773
+ clan_id: string;
2774
2774
  }
2775
2775
  export interface ClanWebhook {
2776
2776
  /** id. */
2777
- id?: string | undefined;
2777
+ id: string;
2778
2778
  /** webhook name. */
2779
- webhook_name?: string | undefined;
2779
+ webhook_name: string;
2780
2780
  /** clan id. */
2781
- clan_id?: string | undefined;
2781
+ clan_id: string;
2782
2782
  /** active. */
2783
- active?: number | undefined;
2783
+ active: number;
2784
2784
  /** URL of the webhook, which is automatically generated and different from the avatar. */
2785
- url?: string | undefined;
2785
+ url: string;
2786
2786
  /** creator id. */
2787
- creator_id?: string | undefined;
2787
+ creator_id: string;
2788
2788
  /** avatar */
2789
- avatar?: string | undefined;
2789
+ avatar: string;
2790
2790
  /** create time. */
2791
- create_time?: string | undefined;
2791
+ create_time: string;
2792
2792
  /** update time. */
2793
- update_time?: string | undefined;
2793
+ update_time: string;
2794
2794
  }
2795
2795
  export interface GenerateClanWebhookRequest {
2796
2796
  /** clan id. */
2797
- clan_id?: string | undefined;
2797
+ clan_id: string;
2798
2798
  /** webhook name. */
2799
- webhook_name?: string | undefined;
2799
+ webhook_name: string;
2800
2800
  /** avatar. */
2801
- avatar?: string | undefined;
2801
+ avatar: string;
2802
2802
  }
2803
2803
  export interface GenerateClanWebhookResponse {
2804
2804
  /** clan id. */
2805
- clan_id?: string | undefined;
2805
+ clan_id: string;
2806
2806
  /** url. */
2807
- url?: string | undefined;
2807
+ url: string;
2808
2808
  /** webhook name. */
2809
- webhook_name?: string | undefined;
2809
+ webhook_name: string;
2810
2810
  /** avatar. */
2811
- avatar?: string | undefined;
2811
+ avatar: string;
2812
2812
  }
2813
2813
  export interface ClanWebhookRequest {
2814
2814
  /** id. */
2815
- id?: string | undefined;
2815
+ id: string;
2816
2816
  /** clan id. */
2817
- clan_id?: string | undefined;
2817
+ clan_id: string;
2818
2818
  }
2819
2819
  export interface UpdateClanWebhookRequest {
2820
2820
  /** webhook id. */
2821
- id?: string | undefined;
2821
+ id: string;
2822
2822
  /** clan id. */
2823
- clan_id?: string | undefined;
2823
+ clan_id: string;
2824
2824
  /** webhook name. */
2825
- webhook_name?: string | undefined;
2825
+ webhook_name: string;
2826
2826
  /** avatar. */
2827
- avatar?: string | undefined;
2827
+ avatar: string;
2828
2828
  /** reset token. */
2829
- reset_token?: boolean | undefined;
2829
+ reset_token: boolean;
2830
2830
  }
2831
2831
  export interface ListClanWebhookRequest {
2832
2832
  /** clan_id. */
2833
- clan_id?: string | undefined;
2833
+ clan_id: string;
2834
2834
  }
2835
2835
  export interface ListClanWebhookResponse {
2836
2836
  /** list clan webhook. */
2837
- list_clan_webhooks?: ClanWebhook[] | undefined;
2837
+ list_clan_webhooks: ClanWebhook[];
2838
2838
  }
2839
2839
  export interface ClanWebhookHandlerBody {
2840
2840
  /** content */
2841
- content?: string | undefined;
2841
+ content: string;
2842
2842
  /** list clan webhook. */
2843
- attachments?: MessageAttachment[] | undefined;
2843
+ attachments: MessageAttachment[];
2844
2844
  }
2845
2845
  export interface ClanWebhookHandlerRequest {
2846
2846
  /** body. */
2847
- body?: ClanWebhookHandlerBody | undefined;
2847
+ body: ClanWebhookHandlerBody | undefined;
2848
2848
  /** token. */
2849
- token?: string | undefined;
2849
+ token: string;
2850
2850
  /** username. */
2851
- username?: string | undefined;
2851
+ username: string;
2852
2852
  }
2853
2853
  export interface UserStatus {
2854
- user_id?: string | undefined;
2855
- status?: string | undefined;
2854
+ user_id: string;
2855
+ status: string;
2856
2856
  }
2857
2857
  export interface UserStatusUpdate {
2858
- status?: string | undefined;
2859
- minutes?: number | undefined;
2860
- until_turn_on?: boolean | undefined;
2858
+ status: string;
2859
+ minutes: number;
2860
+ until_turn_on: boolean;
2861
2861
  }
2862
2862
  export interface OnboardingSteps {
2863
2863
  /** id. */
2864
- id?: string | undefined;
2864
+ id: string;
2865
2865
  /** user id. */
2866
- user_id?: string | undefined;
2866
+ user_id: string;
2867
2867
  /** clan id. */
2868
- clan_id?: string | undefined;
2868
+ clan_id: string;
2869
2869
  /** onboarding step. */
2870
- onboarding_step?: number | undefined;
2870
+ onboarding_step: number;
2871
2871
  }
2872
2872
  export interface ListOnboardingStepResponse {
2873
2873
  /** list onboarding steps. */
2874
- list_onboarding_step?: OnboardingSteps[] | undefined;
2874
+ list_onboarding_step: OnboardingSteps[];
2875
2875
  }
2876
2876
  export interface ListOnboardingStepRequest {
2877
2877
  /** clan id. */
2878
- clan_id?: string | undefined;
2878
+ clan_id: string;
2879
2879
  /** limit */
2880
- limit?: number | undefined;
2880
+ limit: number | undefined;
2881
2881
  /** page */
2882
- page?: number | undefined;
2882
+ page: number | undefined;
2883
2883
  }
2884
2884
  export interface UpdateOnboardingStepRequest {
2885
2885
  /** clan id. */
2886
- clan_id?: string | undefined;
2886
+ clan_id: string;
2887
2887
  /** onboarding step. */
2888
- onboarding_step?: number | undefined;
2888
+ onboarding_step: number | undefined;
2889
2889
  }
2890
2890
  export interface SdTopic {
2891
- id?: string | undefined;
2892
- creator_id?: string | undefined;
2893
- message_id?: string | undefined;
2894
- clan_id?: string | undefined;
2895
- channel_id?: string | undefined;
2896
- status?: number | undefined;
2897
- create_time?: Date | undefined;
2898
- update_time?: Date | undefined;
2899
- message?: ChannelMessage | undefined;
2900
- last_sent_message?: ChannelMessageHeader | undefined;
2891
+ id: string;
2892
+ creator_id: string;
2893
+ message_id: string;
2894
+ clan_id: string;
2895
+ channel_id: string;
2896
+ status: number;
2897
+ create_time: Date | undefined;
2898
+ update_time: Date | undefined;
2899
+ message: ChannelMessage | undefined;
2900
+ last_sent_message: ChannelMessageHeader | undefined;
2901
2901
  }
2902
2902
  export interface SdTopicRequest {
2903
- message_id?: string | undefined;
2904
- clan_id?: string | undefined;
2905
- channel_id?: string | undefined;
2903
+ message_id: string;
2904
+ clan_id: string;
2905
+ channel_id: string;
2906
2906
  }
2907
2907
  export interface SdTopicList {
2908
- count?: number | undefined;
2909
- topics?: SdTopic[] | undefined;
2908
+ count: number;
2909
+ topics: SdTopic[];
2910
2910
  }
2911
2911
  export interface ListSdTopicRequest {
2912
- clan_id?: string | undefined;
2913
- limit?: number | undefined;
2912
+ clan_id: string;
2913
+ limit: number;
2914
2914
  }
2915
2915
  export interface SdTopicDetailRequest {
2916
- topic_id?: string | undefined;
2916
+ topic_id: string;
2917
2917
  }
2918
2918
  export interface DeleteSdTopicRequest {
2919
- channel_id?: string | undefined;
2920
- id?: string | undefined;
2921
- clan_id?: string | undefined;
2919
+ channel_id: string;
2920
+ id: string;
2921
+ clan_id: string;
2922
2922
  }
2923
2923
  export interface GenerateMeetTokenRequest {
2924
- channel_id?: string | undefined;
2925
- room_name?: string | undefined;
2924
+ channel_id: string;
2925
+ room_name: string;
2926
2926
  }
2927
2927
  export interface MeetParticipantRequest {
2928
- username?: string | undefined;
2929
- room_name?: string | undefined;
2930
- channel_id?: string | undefined;
2931
- clan_id?: string | undefined;
2928
+ username: string;
2929
+ room_name: string;
2930
+ channel_id: string;
2931
+ clan_id: string;
2932
2932
  }
2933
2933
  export interface GenerateMeetTokenResponse {
2934
- token?: string | undefined;
2934
+ token: string;
2935
2935
  }
2936
2936
  export interface GenerateMezonMeetResponse {
2937
- meet_id?: string | undefined;
2938
- room_name?: string | undefined;
2939
- external_link?: string | undefined;
2940
- creator_id?: string | undefined;
2941
- event_id?: string | undefined;
2937
+ meet_id: string;
2938
+ room_name: string;
2939
+ external_link: string;
2940
+ creator_id: string;
2941
+ event_id: string;
2942
2942
  }
2943
2943
  export interface CreateRoomChannelApps {
2944
- channel_id?: string | undefined;
2945
- room_name?: string | undefined;
2944
+ channel_id: string;
2945
+ room_name: string;
2946
2946
  }
2947
2947
  export interface MezonOauthClient {
2948
- access_token_strategy?: string | undefined;
2949
- allowed_cors_origins?: string[] | undefined;
2950
- audience?: string[] | undefined;
2951
- authorization_code_grant_access_token_lifespan?: string | undefined;
2952
- authorization_code_grant_id_token_lifespan?: string | undefined;
2953
- authorization_code_grant_refresh_token_lifespan?: string | undefined;
2954
- backchannel_logout_session_required?: boolean | undefined;
2955
- backchannel_logout_uri?: string | undefined;
2956
- client_credentials_grant_access_token_lifespan?: string | undefined;
2957
- client_id?: string | undefined;
2958
- client_name?: string | undefined;
2959
- client_secret?: string | undefined;
2960
- client_secret_expires_at?: number | undefined;
2961
- client_uri?: string | undefined;
2962
- contacts?: string[] | undefined;
2963
- created_at?: Date | undefined;
2964
- frontchannel_logout_session_required?: boolean | undefined;
2965
- frontchannel_logout_uri?: string | undefined;
2966
- grant_types?: string[] | undefined;
2967
- implicit_grant_access_token_lifespan?: string | undefined;
2968
- implicit_grant_id_token_lifespan?: string | undefined;
2969
- jwks?: string[] | undefined;
2970
- jwks_uri?: string | undefined;
2971
- jwt_bearer_grant_access_token_lifespan?: string | undefined;
2972
- logo_uri?: string | undefined;
2973
- owner?: string | undefined;
2974
- policy_uri?: string | undefined;
2975
- post_logout_redirect_uris?: string[] | undefined;
2976
- redirect_uris?: string[] | undefined;
2977
- refresh_token_grant_access_token_lifespan?: string | undefined;
2978
- refresh_token_grant_id_token_lifespan?: string | undefined;
2979
- refresh_token_grant_refresh_token_lifespan?: string | undefined;
2980
- registration_access_token?: string | undefined;
2981
- registration_client_uri?: string | undefined;
2982
- request_object_signing_alg?: string | undefined;
2983
- request_uris?: string[] | undefined;
2984
- response_types?: string[] | undefined;
2985
- scope?: string | undefined;
2986
- sector_identifier_uri?: string | undefined;
2987
- skip_consent?: boolean | undefined;
2988
- skip_logout_consent?: boolean | undefined;
2989
- subject_type?: string | undefined;
2990
- token_endpoint_auth_method?: string | undefined;
2991
- token_endpoint_auth_signing_alg?: string | undefined;
2992
- tos_uri?: string | undefined;
2993
- updated_at?: Date | undefined;
2994
- userinfo_signed_response_alg?: string | undefined;
2948
+ access_token_strategy: string;
2949
+ allowed_cors_origins: string[];
2950
+ audience: string[];
2951
+ authorization_code_grant_access_token_lifespan: string;
2952
+ authorization_code_grant_id_token_lifespan: string;
2953
+ authorization_code_grant_refresh_token_lifespan: string;
2954
+ backchannel_logout_session_required: boolean;
2955
+ backchannel_logout_uri: string;
2956
+ client_credentials_grant_access_token_lifespan: string;
2957
+ client_id: string;
2958
+ client_name: string;
2959
+ client_secret: string;
2960
+ client_secret_expires_at: number;
2961
+ client_uri: string;
2962
+ contacts: string[];
2963
+ created_at: Date | undefined;
2964
+ frontchannel_logout_session_required: boolean;
2965
+ frontchannel_logout_uri: string;
2966
+ grant_types: string[];
2967
+ implicit_grant_access_token_lifespan: string;
2968
+ implicit_grant_id_token_lifespan: string;
2969
+ jwks: string[];
2970
+ jwks_uri: string;
2971
+ jwt_bearer_grant_access_token_lifespan: string;
2972
+ logo_uri: string;
2973
+ owner: string;
2974
+ policy_uri: string;
2975
+ post_logout_redirect_uris: string[];
2976
+ redirect_uris: string[];
2977
+ refresh_token_grant_access_token_lifespan: string;
2978
+ refresh_token_grant_id_token_lifespan: string;
2979
+ refresh_token_grant_refresh_token_lifespan: string;
2980
+ registration_access_token: string;
2981
+ registration_client_uri: string;
2982
+ request_object_signing_alg: string;
2983
+ request_uris: string[];
2984
+ response_types: string[];
2985
+ scope: string;
2986
+ sector_identifier_uri: string;
2987
+ skip_consent: boolean;
2988
+ skip_logout_consent: boolean;
2989
+ subject_type: string;
2990
+ token_endpoint_auth_method: string;
2991
+ token_endpoint_auth_signing_alg: string;
2992
+ tos_uri: string;
2993
+ updated_at: Date | undefined;
2994
+ userinfo_signed_response_alg: string;
2995
2995
  }
2996
2996
  export interface MezonOauthClientList {
2997
- list_mezon_oauth_client?: MezonOauthClient[] | undefined;
2997
+ list_mezon_oauth_client: MezonOauthClient[];
2998
2998
  }
2999
2999
  export interface GetMezonOauthClientRequest {
3000
- client_id?: string | undefined;
3001
- client_name?: string | undefined;
3000
+ client_id: string;
3001
+ client_name: string;
3002
3002
  }
3003
3003
  export interface SearchThreadRequest {
3004
- clan_id?: string | undefined;
3005
- channel_id?: string | undefined;
3006
- label?: string | undefined;
3004
+ clan_id: string;
3005
+ channel_id: string;
3006
+ label: string;
3007
3007
  }
3008
3008
  export interface GenerateHashChannelAppsRequest {
3009
- app_id?: string | undefined;
3009
+ app_id: string;
3010
3010
  }
3011
3011
  export interface GenerateHashChannelAppsResponse {
3012
- web_app_data?: string | undefined;
3012
+ web_app_data: string;
3013
3013
  }
3014
3014
  export interface Message2InboxRequest {
3015
- message_id?: string | undefined;
3016
- channel_id?: string | undefined;
3017
- clan_id?: string | undefined;
3018
- avatar?: string | undefined;
3019
- content?: string | undefined;
3020
- mentions?: string | undefined;
3021
- attachments?: string | undefined;
3022
- reactions?: string | undefined;
3023
- references?: string | undefined;
3015
+ message_id: string;
3016
+ channel_id: string;
3017
+ clan_id: string;
3018
+ avatar: string;
3019
+ content: string;
3020
+ mentions: string;
3021
+ attachments: string;
3022
+ reactions: string;
3023
+ references: string;
3024
3024
  }
3025
3025
  /** Send an email with password to the server. Used with authenticate/link/unlink. */
3026
3026
  export interface AccountEmail {
3027
3027
  /** A valid RFC-5322 email address. */
3028
- email?: string | undefined;
3028
+ email: string;
3029
3029
  /** A password for the user account. */
3030
- password?: string | undefined;
3030
+ password: string;
3031
3031
  /** Prev email */
3032
- prev_email?: string | undefined;
3032
+ prev_email: string;
3033
3033
  /** Extra information that will be bundled in the session token. */
3034
- vars?: {
3034
+ vars: {
3035
3035
  [key: string]: string;
3036
- } | undefined;
3036
+ };
3037
3037
  }
3038
3038
  export interface AccountEmail_VarsEntry {
3039
3039
  key: string;
@@ -3042,11 +3042,11 @@ export interface AccountEmail_VarsEntry {
3042
3042
  /** Send a Mezon token to the server. Used with authenticate/link/unlink. */
3043
3043
  export interface AccountMezon {
3044
3044
  /** The phone number. */
3045
- phone_number?: string | undefined;
3045
+ phone_number: string;
3046
3046
  /** Extra information that will be bundled in the session token. */
3047
- vars?: {
3047
+ vars: {
3048
3048
  [key: string]: string;
3049
- } | undefined;
3049
+ };
3050
3050
  }
3051
3051
  export interface AccountMezon_VarsEntry {
3052
3052
  key: string;
@@ -3054,57 +3054,57 @@ export interface AccountMezon_VarsEntry {
3054
3054
  }
3055
3055
  export interface LinkAccountConfirmRequest {
3056
3056
  /** The request id */
3057
- req_id?: string | undefined;
3057
+ req_id: string;
3058
3058
  /** Status */
3059
- status?: number | undefined;
3059
+ status: number;
3060
3060
  /** The confirm code */
3061
- otp_code?: string | undefined;
3061
+ otp_code: string;
3062
3062
  }
3063
3063
  export interface QuickMenuAccess {
3064
- id?: string | undefined;
3065
- bot_id?: string | undefined;
3066
- clan_id?: string | undefined;
3067
- channel_id?: string | undefined;
3068
- menu_name?: string | undefined;
3069
- background?: string | undefined;
3070
- action_msg?: string | undefined;
3071
- menu_type?: number | undefined;
3064
+ id: string;
3065
+ bot_id: string;
3066
+ clan_id: string;
3067
+ channel_id: string;
3068
+ menu_name: string;
3069
+ background: string;
3070
+ action_msg: string;
3071
+ menu_type: number;
3072
3072
  }
3073
3073
  export interface ListQuickMenuAccessRequest {
3074
- bot_id?: string | undefined;
3075
- channel_id?: string | undefined;
3076
- menu_type?: number | undefined;
3074
+ bot_id: string;
3075
+ channel_id: string;
3076
+ menu_type: number;
3077
3077
  }
3078
3078
  export interface QuickMenuAccessList {
3079
- list_menus?: QuickMenuAccess[] | undefined;
3079
+ list_menus: QuickMenuAccess[];
3080
3080
  }
3081
3081
  export interface ListForSaleItemsRequest {
3082
- page?: number | undefined;
3082
+ page: number;
3083
3083
  }
3084
3084
  export interface ForSaleItem {
3085
- type?: number | undefined;
3086
- preview_url?: string | undefined;
3085
+ type: number;
3086
+ preview_url: string;
3087
3087
  }
3088
3088
  export interface ForSaleItemList {
3089
- for_sale_items?: ForSaleItem[] | undefined;
3089
+ for_sale_items: ForSaleItem[];
3090
3090
  }
3091
3091
  export interface IsFollowerRequest {
3092
- follow_id?: string | undefined;
3092
+ follow_id: string;
3093
3093
  }
3094
3094
  export interface IsFollowerResponse {
3095
- follow_id?: string | undefined;
3096
- is_follower?: boolean | undefined;
3095
+ follow_id: string;
3096
+ is_follower: boolean;
3097
3097
  }
3098
3098
  export interface TransferOwnershipRequest {
3099
- clan_id?: string | undefined;
3100
- new_owner_id?: string | undefined;
3099
+ clan_id: string;
3100
+ new_owner_id: string;
3101
3101
  }
3102
3102
  export interface UserIds {
3103
- user_ids?: string[] | undefined;
3103
+ user_ids: string[];
3104
3104
  }
3105
3105
  export interface ReportMessageAbuseReqest {
3106
- message_id?: string | undefined;
3107
- abuse_type?: string | undefined;
3106
+ message_id: string;
3107
+ abuse_type: string;
3108
3108
  }
3109
3109
  export declare const Account: {
3110
3110
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
@@ -23747,13 +23747,7 @@ export declare const ReportMessageAbuseReqest: {
23747
23747
  } & { [K_1 in Exclude<keyof I_1, keyof ReportMessageAbuseReqest>]: never; }>(object: I_1): ReportMessageAbuseReqest;
23748
23748
  };
23749
23749
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
23750
- 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 {
23751
- $case: string;
23752
- } ? {
23753
- [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
23754
- } & {
23755
- $case: T["$case"];
23756
- } : T extends {} ? {
23750
+ 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 {} ? {
23757
23751
  [K in keyof T]?: DeepPartial<T[K]>;
23758
23752
  } : Partial<T>;
23759
23753
  type KeysOfUnion<T> = T extends T ? keyof T : never;