mezon-js-protobuf 1.8.53 → 1.8.55

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.
@@ -126,6 +126,12 @@ export interface SessionLogoutRequest {
126
126
  /** platform */
127
127
  platform: string;
128
128
  }
129
+ export interface IsBannedResponse {
130
+ is_banned: boolean;
131
+ }
132
+ export interface IsBannedRequest {
133
+ channel_id: string;
134
+ }
129
135
  /** Ban users from a group. */
130
136
  export interface BanGroupUsersRequest {
131
137
  /** The group to ban users from. */
@@ -1354,15 +1360,17 @@ export interface BannedUser {
1354
1360
  /** The banned user. */
1355
1361
  banned_id: string;
1356
1362
  /** The avatar */
1357
- banned_avatar: string;
1358
- /** The name */
1359
- banned_name: string;
1363
+ banner_id: string;
1360
1364
  /** ban time */
1361
1365
  ban_time: number;
1362
1366
  /** The reason */
1363
1367
  reason: string;
1364
1368
  }
1365
- export interface bannedUserList {
1369
+ export interface BannedUserListRequest {
1370
+ clan_id: string;
1371
+ channel_id: string;
1372
+ }
1373
+ export interface BannedUserList {
1366
1374
  banned_users: BannedUser[];
1367
1375
  }
1368
1376
  /** Leave a channel. */
@@ -1523,8 +1531,6 @@ export interface SetNotificationRequest {
1523
1531
  channel_category_id: string;
1524
1532
  /** notification_type */
1525
1533
  notification_type: number;
1526
- /** time mute channel category */
1527
- time_mute: Date | undefined;
1528
1534
  /** */
1529
1535
  clan_id: string;
1530
1536
  }
@@ -1535,11 +1541,12 @@ export interface PinMessageRequest {
1535
1541
  clan_id: string;
1536
1542
  }
1537
1543
  /** set notification */
1538
- export interface SetMuteNotificationRequest {
1544
+ export interface SetMuteRequest {
1539
1545
  /** channel_id and category_id */
1540
1546
  id: string;
1541
- notification_type: number;
1547
+ mute_time: number;
1542
1548
  active: number;
1549
+ clan_id: string;
1543
1550
  }
1544
1551
  export interface HashtagDmListRequest {
1545
1552
  /** user Id */
@@ -1594,12 +1601,8 @@ export interface SetDefaultNotificationRequest {
1594
1601
  export interface RoleList {
1595
1602
  /** A list of role. */
1596
1603
  roles: Role[];
1597
- /** The cursor to send when retrieving the next page, if any. */
1598
- next_cursor: string;
1599
- /** The cursor to send when retrieving the previous page, if any. */
1600
- prev_cursor: string;
1601
- /** Cacheable cursor to list newer role description. Durable and designed to be stored, unlike next/prev cursors. */
1602
- cacheable_cursor: string;
1604
+ /** level permission max */
1605
+ max_level_permission: number;
1603
1606
  }
1604
1607
  export interface EventList {
1605
1608
  /** A list of event. */
@@ -3469,6 +3472,38 @@ export declare const SessionLogoutRequest: {
3469
3472
  platform?: string | undefined;
3470
3473
  } & { [K_1 in Exclude<keyof I_1, keyof SessionLogoutRequest>]: never; }>(object: I_1): SessionLogoutRequest;
3471
3474
  };
3475
+ export declare const IsBannedResponse: {
3476
+ encode(message: IsBannedResponse, writer?: _m0.Writer): _m0.Writer;
3477
+ decode(input: _m0.Reader | Uint8Array, length?: number): IsBannedResponse;
3478
+ fromJSON(object: any): IsBannedResponse;
3479
+ toJSON(message: IsBannedResponse): unknown;
3480
+ create<I extends {
3481
+ is_banned?: boolean | undefined;
3482
+ } & {
3483
+ is_banned?: boolean | undefined;
3484
+ } & { [K in Exclude<keyof I, "is_banned">]: never; }>(base?: I | undefined): IsBannedResponse;
3485
+ fromPartial<I_1 extends {
3486
+ is_banned?: boolean | undefined;
3487
+ } & {
3488
+ is_banned?: boolean | undefined;
3489
+ } & { [K_1 in Exclude<keyof I_1, "is_banned">]: never; }>(object: I_1): IsBannedResponse;
3490
+ };
3491
+ export declare const IsBannedRequest: {
3492
+ encode(message: IsBannedRequest, writer?: _m0.Writer): _m0.Writer;
3493
+ decode(input: _m0.Reader | Uint8Array, length?: number): IsBannedRequest;
3494
+ fromJSON(object: any): IsBannedRequest;
3495
+ toJSON(message: IsBannedRequest): unknown;
3496
+ create<I extends {
3497
+ channel_id?: string | undefined;
3498
+ } & {
3499
+ channel_id?: string | undefined;
3500
+ } & { [K in Exclude<keyof I, "channel_id">]: never; }>(base?: I | undefined): IsBannedRequest;
3501
+ fromPartial<I_1 extends {
3502
+ channel_id?: string | undefined;
3503
+ } & {
3504
+ channel_id?: string | undefined;
3505
+ } & { [K_1 in Exclude<keyof I_1, "channel_id">]: never; }>(object: I_1): IsBannedRequest;
3506
+ };
3472
3507
  export declare const BanGroupUsersRequest: {
3473
3508
  encode(message: BanGroupUsersRequest, writer?: _m0.Writer): _m0.Writer;
3474
3509
  decode(input: _m0.Reader | Uint8Array, length?: number): BanGroupUsersRequest;
@@ -11235,45 +11270,60 @@ export declare const BannedUser: {
11235
11270
  create<I extends {
11236
11271
  channel_id?: string | undefined;
11237
11272
  banned_id?: string | undefined;
11238
- banned_avatar?: string | undefined;
11239
- banned_name?: string | undefined;
11273
+ banner_id?: string | undefined;
11240
11274
  ban_time?: number | undefined;
11241
11275
  reason?: string | undefined;
11242
11276
  } & {
11243
11277
  channel_id?: string | undefined;
11244
11278
  banned_id?: string | undefined;
11245
- banned_avatar?: string | undefined;
11246
- banned_name?: string | undefined;
11279
+ banner_id?: string | undefined;
11247
11280
  ban_time?: number | undefined;
11248
11281
  reason?: string | undefined;
11249
11282
  } & { [K in Exclude<keyof I, keyof BannedUser>]: never; }>(base?: I | undefined): BannedUser;
11250
11283
  fromPartial<I_1 extends {
11251
11284
  channel_id?: string | undefined;
11252
11285
  banned_id?: string | undefined;
11253
- banned_avatar?: string | undefined;
11254
- banned_name?: string | undefined;
11286
+ banner_id?: string | undefined;
11255
11287
  ban_time?: number | undefined;
11256
11288
  reason?: string | undefined;
11257
11289
  } & {
11258
11290
  channel_id?: string | undefined;
11259
11291
  banned_id?: string | undefined;
11260
- banned_avatar?: string | undefined;
11261
- banned_name?: string | undefined;
11292
+ banner_id?: string | undefined;
11262
11293
  ban_time?: number | undefined;
11263
11294
  reason?: string | undefined;
11264
11295
  } & { [K_1 in Exclude<keyof I_1, keyof BannedUser>]: never; }>(object: I_1): BannedUser;
11265
11296
  };
11266
- export declare const bannedUserList: {
11267
- encode(message: bannedUserList, writer?: _m0.Writer): _m0.Writer;
11268
- decode(input: _m0.Reader | Uint8Array, length?: number): bannedUserList;
11269
- fromJSON(object: any): bannedUserList;
11270
- toJSON(message: bannedUserList): unknown;
11297
+ export declare const BannedUserListRequest: {
11298
+ encode(message: BannedUserListRequest, writer?: _m0.Writer): _m0.Writer;
11299
+ decode(input: _m0.Reader | Uint8Array, length?: number): BannedUserListRequest;
11300
+ fromJSON(object: any): BannedUserListRequest;
11301
+ toJSON(message: BannedUserListRequest): unknown;
11302
+ create<I extends {
11303
+ clan_id?: string | undefined;
11304
+ channel_id?: string | undefined;
11305
+ } & {
11306
+ clan_id?: string | undefined;
11307
+ channel_id?: string | undefined;
11308
+ } & { [K in Exclude<keyof I, keyof BannedUserListRequest>]: never; }>(base?: I | undefined): BannedUserListRequest;
11309
+ fromPartial<I_1 extends {
11310
+ clan_id?: string | undefined;
11311
+ channel_id?: string | undefined;
11312
+ } & {
11313
+ clan_id?: string | undefined;
11314
+ channel_id?: string | undefined;
11315
+ } & { [K_1 in Exclude<keyof I_1, keyof BannedUserListRequest>]: never; }>(object: I_1): BannedUserListRequest;
11316
+ };
11317
+ export declare const BannedUserList: {
11318
+ encode(message: BannedUserList, writer?: _m0.Writer): _m0.Writer;
11319
+ decode(input: _m0.Reader | Uint8Array, length?: number): BannedUserList;
11320
+ fromJSON(object: any): BannedUserList;
11321
+ toJSON(message: BannedUserList): unknown;
11271
11322
  create<I extends {
11272
11323
  banned_users?: {
11273
11324
  channel_id?: string | undefined;
11274
11325
  banned_id?: string | undefined;
11275
- banned_avatar?: string | undefined;
11276
- banned_name?: string | undefined;
11326
+ banner_id?: string | undefined;
11277
11327
  ban_time?: number | undefined;
11278
11328
  reason?: string | undefined;
11279
11329
  }[] | undefined;
@@ -11281,39 +11331,34 @@ export declare const bannedUserList: {
11281
11331
  banned_users?: ({
11282
11332
  channel_id?: string | undefined;
11283
11333
  banned_id?: string | undefined;
11284
- banned_avatar?: string | undefined;
11285
- banned_name?: string | undefined;
11334
+ banner_id?: string | undefined;
11286
11335
  ban_time?: number | undefined;
11287
11336
  reason?: string | undefined;
11288
11337
  }[] & ({
11289
11338
  channel_id?: string | undefined;
11290
11339
  banned_id?: string | undefined;
11291
- banned_avatar?: string | undefined;
11292
- banned_name?: string | undefined;
11340
+ banner_id?: string | undefined;
11293
11341
  ban_time?: number | undefined;
11294
11342
  reason?: string | undefined;
11295
11343
  } & {
11296
11344
  channel_id?: string | undefined;
11297
11345
  banned_id?: string | undefined;
11298
- banned_avatar?: string | undefined;
11299
- banned_name?: string | undefined;
11346
+ banner_id?: string | undefined;
11300
11347
  ban_time?: number | undefined;
11301
11348
  reason?: string | undefined;
11302
11349
  } & { [K in Exclude<keyof I["banned_users"][number], keyof BannedUser>]: never; })[] & { [K_1 in Exclude<keyof I["banned_users"], keyof {
11303
11350
  channel_id?: string | undefined;
11304
11351
  banned_id?: string | undefined;
11305
- banned_avatar?: string | undefined;
11306
- banned_name?: string | undefined;
11352
+ banner_id?: string | undefined;
11307
11353
  ban_time?: number | undefined;
11308
11354
  reason?: string | undefined;
11309
11355
  }[]>]: never; }) | undefined;
11310
- } & { [K_2 in Exclude<keyof I, "banned_users">]: never; }>(base?: I | undefined): bannedUserList;
11356
+ } & { [K_2 in Exclude<keyof I, "banned_users">]: never; }>(base?: I | undefined): BannedUserList;
11311
11357
  fromPartial<I_1 extends {
11312
11358
  banned_users?: {
11313
11359
  channel_id?: string | undefined;
11314
11360
  banned_id?: string | undefined;
11315
- banned_avatar?: string | undefined;
11316
- banned_name?: string | undefined;
11361
+ banner_id?: string | undefined;
11317
11362
  ban_time?: number | undefined;
11318
11363
  reason?: string | undefined;
11319
11364
  }[] | undefined;
@@ -11321,33 +11366,29 @@ export declare const bannedUserList: {
11321
11366
  banned_users?: ({
11322
11367
  channel_id?: string | undefined;
11323
11368
  banned_id?: string | undefined;
11324
- banned_avatar?: string | undefined;
11325
- banned_name?: string | undefined;
11369
+ banner_id?: string | undefined;
11326
11370
  ban_time?: number | undefined;
11327
11371
  reason?: string | undefined;
11328
11372
  }[] & ({
11329
11373
  channel_id?: string | undefined;
11330
11374
  banned_id?: string | undefined;
11331
- banned_avatar?: string | undefined;
11332
- banned_name?: string | undefined;
11375
+ banner_id?: string | undefined;
11333
11376
  ban_time?: number | undefined;
11334
11377
  reason?: string | undefined;
11335
11378
  } & {
11336
11379
  channel_id?: string | undefined;
11337
11380
  banned_id?: string | undefined;
11338
- banned_avatar?: string | undefined;
11339
- banned_name?: string | undefined;
11381
+ banner_id?: string | undefined;
11340
11382
  ban_time?: number | undefined;
11341
11383
  reason?: string | undefined;
11342
11384
  } & { [K_3 in Exclude<keyof I_1["banned_users"][number], keyof BannedUser>]: never; })[] & { [K_4 in Exclude<keyof I_1["banned_users"], keyof {
11343
11385
  channel_id?: string | undefined;
11344
11386
  banned_id?: string | undefined;
11345
- banned_avatar?: string | undefined;
11346
- banned_name?: string | undefined;
11387
+ banner_id?: string | undefined;
11347
11388
  ban_time?: number | undefined;
11348
11389
  reason?: string | undefined;
11349
11390
  }[]>]: never; }) | undefined;
11350
- } & { [K_5 in Exclude<keyof I_1, "banned_users">]: never; }>(object: I_1): bannedUserList;
11391
+ } & { [K_5 in Exclude<keyof I_1, "banned_users">]: never; }>(object: I_1): BannedUserList;
11351
11392
  };
11352
11393
  export declare const LeaveThreadRequest: {
11353
11394
  encode(message: LeaveThreadRequest, writer?: _m0.Writer): _m0.Writer;
@@ -12245,23 +12286,19 @@ export declare const SetNotificationRequest: {
12245
12286
  create<I extends {
12246
12287
  channel_category_id?: string | undefined;
12247
12288
  notification_type?: number | undefined;
12248
- time_mute?: Date | undefined;
12249
12289
  clan_id?: string | undefined;
12250
12290
  } & {
12251
12291
  channel_category_id?: string | undefined;
12252
12292
  notification_type?: number | undefined;
12253
- time_mute?: Date | undefined;
12254
12293
  clan_id?: string | undefined;
12255
12294
  } & { [K in Exclude<keyof I, keyof SetNotificationRequest>]: never; }>(base?: I | undefined): SetNotificationRequest;
12256
12295
  fromPartial<I_1 extends {
12257
12296
  channel_category_id?: string | undefined;
12258
12297
  notification_type?: number | undefined;
12259
- time_mute?: Date | undefined;
12260
12298
  clan_id?: string | undefined;
12261
12299
  } & {
12262
12300
  channel_category_id?: string | undefined;
12263
12301
  notification_type?: number | undefined;
12264
- time_mute?: Date | undefined;
12265
12302
  clan_id?: string | undefined;
12266
12303
  } & { [K_1 in Exclude<keyof I_1, keyof SetNotificationRequest>]: never; }>(object: I_1): SetNotificationRequest;
12267
12304
  };
@@ -12289,29 +12326,33 @@ export declare const PinMessageRequest: {
12289
12326
  clan_id?: string | undefined;
12290
12327
  } & { [K_1 in Exclude<keyof I_1, keyof PinMessageRequest>]: never; }>(object: I_1): PinMessageRequest;
12291
12328
  };
12292
- export declare const SetMuteNotificationRequest: {
12293
- encode(message: SetMuteNotificationRequest, writer?: _m0.Writer): _m0.Writer;
12294
- decode(input: _m0.Reader | Uint8Array, length?: number): SetMuteNotificationRequest;
12295
- fromJSON(object: any): SetMuteNotificationRequest;
12296
- toJSON(message: SetMuteNotificationRequest): unknown;
12329
+ export declare const SetMuteRequest: {
12330
+ encode(message: SetMuteRequest, writer?: _m0.Writer): _m0.Writer;
12331
+ decode(input: _m0.Reader | Uint8Array, length?: number): SetMuteRequest;
12332
+ fromJSON(object: any): SetMuteRequest;
12333
+ toJSON(message: SetMuteRequest): unknown;
12297
12334
  create<I extends {
12298
12335
  id?: string | undefined;
12299
- notification_type?: number | undefined;
12336
+ mute_time?: number | undefined;
12300
12337
  active?: number | undefined;
12338
+ clan_id?: string | undefined;
12301
12339
  } & {
12302
12340
  id?: string | undefined;
12303
- notification_type?: number | undefined;
12341
+ mute_time?: number | undefined;
12304
12342
  active?: number | undefined;
12305
- } & { [K in Exclude<keyof I, keyof SetMuteNotificationRequest>]: never; }>(base?: I | undefined): SetMuteNotificationRequest;
12343
+ clan_id?: string | undefined;
12344
+ } & { [K in Exclude<keyof I, keyof SetMuteRequest>]: never; }>(base?: I | undefined): SetMuteRequest;
12306
12345
  fromPartial<I_1 extends {
12307
12346
  id?: string | undefined;
12308
- notification_type?: number | undefined;
12347
+ mute_time?: number | undefined;
12309
12348
  active?: number | undefined;
12349
+ clan_id?: string | undefined;
12310
12350
  } & {
12311
12351
  id?: string | undefined;
12312
- notification_type?: number | undefined;
12352
+ mute_time?: number | undefined;
12313
12353
  active?: number | undefined;
12314
- } & { [K_1 in Exclude<keyof I_1, keyof SetMuteNotificationRequest>]: never; }>(object: I_1): SetMuteNotificationRequest;
12354
+ clan_id?: string | undefined;
12355
+ } & { [K_1 in Exclude<keyof I_1, keyof SetMuteRequest>]: never; }>(object: I_1): SetMuteRequest;
12315
12356
  };
12316
12357
  export declare const HashtagDmListRequest: {
12317
12358
  encode(message: HashtagDmListRequest, writer?: _m0.Writer): _m0.Writer;
@@ -12662,9 +12703,7 @@ export declare const RoleList: {
12662
12703
  max_level_permission?: number | undefined;
12663
12704
  order_role?: number | undefined;
12664
12705
  }[] | undefined;
12665
- next_cursor?: string | undefined;
12666
- prev_cursor?: string | undefined;
12667
- cacheable_cursor?: string | undefined;
12706
+ max_level_permission?: number | undefined;
12668
12707
  } & {
12669
12708
  roles?: ({
12670
12709
  id?: string | undefined;
@@ -12897,9 +12936,7 @@ export declare const RoleList: {
12897
12936
  max_level_permission?: number | undefined;
12898
12937
  order_role?: number | undefined;
12899
12938
  }[]>]: never; }) | undefined;
12900
- next_cursor?: string | undefined;
12901
- prev_cursor?: string | undefined;
12902
- cacheable_cursor?: string | undefined;
12939
+ max_level_permission?: number | undefined;
12903
12940
  } & { [K_9 in Exclude<keyof I, keyof RoleList>]: never; }>(base?: I | undefined): RoleList;
12904
12941
  fromPartial<I_1 extends {
12905
12942
  roles?: {
@@ -12943,9 +12980,7 @@ export declare const RoleList: {
12943
12980
  max_level_permission?: number | undefined;
12944
12981
  order_role?: number | undefined;
12945
12982
  }[] | undefined;
12946
- next_cursor?: string | undefined;
12947
- prev_cursor?: string | undefined;
12948
- cacheable_cursor?: string | undefined;
12983
+ max_level_permission?: number | undefined;
12949
12984
  } & {
12950
12985
  roles?: ({
12951
12986
  id?: string | undefined;
@@ -13178,9 +13213,7 @@ export declare const RoleList: {
13178
13213
  max_level_permission?: number | undefined;
13179
13214
  order_role?: number | undefined;
13180
13215
  }[]>]: never; }) | undefined;
13181
- next_cursor?: string | undefined;
13182
- prev_cursor?: string | undefined;
13183
- cacheable_cursor?: string | undefined;
13216
+ max_level_permission?: number | undefined;
13184
13217
  } & { [K_19 in Exclude<keyof I_1, keyof RoleList>]: never; }>(object: I_1): RoleList;
13185
13218
  };
13186
13219
  export declare const EventList: {
@@ -17405,9 +17438,7 @@ export declare const RoleListEventResponse: {
17405
17438
  max_level_permission?: number | undefined;
17406
17439
  order_role?: number | undefined;
17407
17440
  }[] | undefined;
17408
- next_cursor?: string | undefined;
17409
- prev_cursor?: string | undefined;
17410
- cacheable_cursor?: string | undefined;
17441
+ max_level_permission?: number | undefined;
17411
17442
  } | undefined;
17412
17443
  } & {
17413
17444
  limit?: number | undefined;
@@ -17456,9 +17487,7 @@ export declare const RoleListEventResponse: {
17456
17487
  max_level_permission?: number | undefined;
17457
17488
  order_role?: number | undefined;
17458
17489
  }[] | undefined;
17459
- next_cursor?: string | undefined;
17460
- prev_cursor?: string | undefined;
17461
- cacheable_cursor?: string | undefined;
17490
+ max_level_permission?: number | undefined;
17462
17491
  } & {
17463
17492
  roles?: ({
17464
17493
  id?: string | undefined;
@@ -17691,9 +17720,7 @@ export declare const RoleListEventResponse: {
17691
17720
  max_level_permission?: number | undefined;
17692
17721
  order_role?: number | undefined;
17693
17722
  }[]>]: never; }) | undefined;
17694
- next_cursor?: string | undefined;
17695
- prev_cursor?: string | undefined;
17696
- cacheable_cursor?: string | undefined;
17723
+ max_level_permission?: number | undefined;
17697
17724
  } & { [K_9 in Exclude<keyof I["roles"], keyof RoleList>]: never; }) | undefined;
17698
17725
  } & { [K_10 in Exclude<keyof I, keyof RoleListEventResponse>]: never; }>(base?: I | undefined): RoleListEventResponse;
17699
17726
  fromPartial<I_1 extends {
@@ -17743,9 +17770,7 @@ export declare const RoleListEventResponse: {
17743
17770
  max_level_permission?: number | undefined;
17744
17771
  order_role?: number | undefined;
17745
17772
  }[] | undefined;
17746
- next_cursor?: string | undefined;
17747
- prev_cursor?: string | undefined;
17748
- cacheable_cursor?: string | undefined;
17773
+ max_level_permission?: number | undefined;
17749
17774
  } | undefined;
17750
17775
  } & {
17751
17776
  limit?: number | undefined;
@@ -17794,9 +17819,7 @@ export declare const RoleListEventResponse: {
17794
17819
  max_level_permission?: number | undefined;
17795
17820
  order_role?: number | undefined;
17796
17821
  }[] | undefined;
17797
- next_cursor?: string | undefined;
17798
- prev_cursor?: string | undefined;
17799
- cacheable_cursor?: string | undefined;
17822
+ max_level_permission?: number | undefined;
17800
17823
  } & {
17801
17824
  roles?: ({
17802
17825
  id?: string | undefined;
@@ -18029,9 +18052,7 @@ export declare const RoleListEventResponse: {
18029
18052
  max_level_permission?: number | undefined;
18030
18053
  order_role?: number | undefined;
18031
18054
  }[]>]: never; }) | undefined;
18032
- next_cursor?: string | undefined;
18033
- prev_cursor?: string | undefined;
18034
- cacheable_cursor?: string | undefined;
18055
+ max_level_permission?: number | undefined;
18035
18056
  } & { [K_20 in Exclude<keyof I_1["roles"], keyof RoleList>]: never; }) | undefined;
18036
18057
  } & { [K_21 in Exclude<keyof I_1, keyof RoleListEventResponse>]: never; }>(object: I_1): RoleListEventResponse;
18037
18058
  };