mezon-js-protobuf 1.8.55 → 1.8.56

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/api/api.ts CHANGED
@@ -261,6 +261,7 @@ export interface SessionLogoutRequest {
261
261
 
262
262
  export interface IsBannedResponse {
263
263
  is_banned: boolean;
264
+ expired_ban_time: number;
264
265
  }
265
266
 
266
267
  export interface IsBannedRequest {
@@ -664,6 +665,8 @@ export interface ChannelUserList_ChannelUser {
664
665
  added_by: string;
665
666
  /** is banned */
666
667
  is_banned: boolean;
668
+ /** expired time */
669
+ expired_ban_time: number;
667
670
  }
668
671
 
669
672
  /** A list of users belonging to a channel, along with their role. */
@@ -1244,7 +1247,9 @@ export interface UpdateClanDescRequest {
1244
1247
  /** Clan name */
1245
1248
  clan_name: string;
1246
1249
  /** Clan logo */
1247
- logo: string;
1250
+ logo:
1251
+ | string
1252
+ | undefined;
1248
1253
  /** Clan banner */
1249
1254
  banner:
1250
1255
  | string
@@ -1270,9 +1275,13 @@ export interface UpdateClanDescRequest {
1270
1275
  | string
1271
1276
  | undefined;
1272
1277
  /** string description */
1273
- description: string;
1278
+ description:
1279
+ | string
1280
+ | undefined;
1274
1281
  /** About */
1275
- about: string;
1282
+ about:
1283
+ | string
1284
+ | undefined;
1276
1285
  /** Short url for community */
1277
1286
  short_url:
1278
1287
  | string
@@ -4642,7 +4651,7 @@ export const SessionLogoutRequest = {
4642
4651
  };
4643
4652
 
4644
4653
  function createBaseIsBannedResponse(): IsBannedResponse {
4645
- return { is_banned: false };
4654
+ return { is_banned: false, expired_ban_time: 0 };
4646
4655
  }
4647
4656
 
4648
4657
  export const IsBannedResponse = {
@@ -4650,6 +4659,9 @@ export const IsBannedResponse = {
4650
4659
  if (message.is_banned !== false) {
4651
4660
  writer.uint32(8).bool(message.is_banned);
4652
4661
  }
4662
+ if (message.expired_ban_time !== 0) {
4663
+ writer.uint32(16).int32(message.expired_ban_time);
4664
+ }
4653
4665
  return writer;
4654
4666
  },
4655
4667
 
@@ -4667,6 +4679,13 @@ export const IsBannedResponse = {
4667
4679
 
4668
4680
  message.is_banned = reader.bool();
4669
4681
  continue;
4682
+ case 2:
4683
+ if (tag !== 16) {
4684
+ break;
4685
+ }
4686
+
4687
+ message.expired_ban_time = reader.int32();
4688
+ continue;
4670
4689
  }
4671
4690
  if ((tag & 7) === 4 || tag === 0) {
4672
4691
  break;
@@ -4677,7 +4696,10 @@ export const IsBannedResponse = {
4677
4696
  },
4678
4697
 
4679
4698
  fromJSON(object: any): IsBannedResponse {
4680
- return { is_banned: isSet(object.is_banned) ? globalThis.Boolean(object.is_banned) : false };
4699
+ return {
4700
+ is_banned: isSet(object.is_banned) ? globalThis.Boolean(object.is_banned) : false,
4701
+ expired_ban_time: isSet(object.expired_ban_time) ? globalThis.Number(object.expired_ban_time) : 0,
4702
+ };
4681
4703
  },
4682
4704
 
4683
4705
  toJSON(message: IsBannedResponse): unknown {
@@ -4685,6 +4707,9 @@ export const IsBannedResponse = {
4685
4707
  if (message.is_banned !== false) {
4686
4708
  obj.is_banned = message.is_banned;
4687
4709
  }
4710
+ if (message.expired_ban_time !== 0) {
4711
+ obj.expired_ban_time = Math.round(message.expired_ban_time);
4712
+ }
4688
4713
  return obj;
4689
4714
  },
4690
4715
 
@@ -4694,6 +4719,7 @@ export const IsBannedResponse = {
4694
4719
  fromPartial<I extends Exact<DeepPartial<IsBannedResponse>, I>>(object: I): IsBannedResponse {
4695
4720
  const message = createBaseIsBannedResponse();
4696
4721
  message.is_banned = object.is_banned ?? false;
4722
+ message.expired_ban_time = object.expired_ban_time ?? 0;
4697
4723
  return message;
4698
4724
  },
4699
4725
  };
@@ -7498,6 +7524,7 @@ function createBaseChannelUserList_ChannelUser(): ChannelUserList_ChannelUser {
7498
7524
  clan_id: "",
7499
7525
  added_by: "",
7500
7526
  is_banned: false,
7527
+ expired_ban_time: 0,
7501
7528
  };
7502
7529
  }
7503
7530
 
@@ -7530,6 +7557,9 @@ export const ChannelUserList_ChannelUser = {
7530
7557
  if (message.is_banned !== false) {
7531
7558
  writer.uint32(72).bool(message.is_banned);
7532
7559
  }
7560
+ if (message.expired_ban_time !== 0) {
7561
+ writer.uint32(80).int32(message.expired_ban_time);
7562
+ }
7533
7563
  return writer;
7534
7564
  },
7535
7565
 
@@ -7603,6 +7633,13 @@ export const ChannelUserList_ChannelUser = {
7603
7633
 
7604
7634
  message.is_banned = reader.bool();
7605
7635
  continue;
7636
+ case 10:
7637
+ if (tag !== 80) {
7638
+ break;
7639
+ }
7640
+
7641
+ message.expired_ban_time = reader.int32();
7642
+ continue;
7606
7643
  }
7607
7644
  if ((tag & 7) === 4 || tag === 0) {
7608
7645
  break;
@@ -7623,6 +7660,7 @@ export const ChannelUserList_ChannelUser = {
7623
7660
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
7624
7661
  added_by: isSet(object.added_by) ? globalThis.String(object.added_by) : "",
7625
7662
  is_banned: isSet(object.is_banned) ? globalThis.Boolean(object.is_banned) : false,
7663
+ expired_ban_time: isSet(object.expired_ban_time) ? globalThis.Number(object.expired_ban_time) : 0,
7626
7664
  };
7627
7665
  },
7628
7666
 
@@ -7655,6 +7693,9 @@ export const ChannelUserList_ChannelUser = {
7655
7693
  if (message.is_banned !== false) {
7656
7694
  obj.is_banned = message.is_banned;
7657
7695
  }
7696
+ if (message.expired_ban_time !== 0) {
7697
+ obj.expired_ban_time = Math.round(message.expired_ban_time);
7698
+ }
7658
7699
  return obj;
7659
7700
  },
7660
7701
 
@@ -7672,6 +7713,7 @@ export const ChannelUserList_ChannelUser = {
7672
7713
  message.clan_id = object.clan_id ?? "";
7673
7714
  message.added_by = object.added_by ?? "";
7674
7715
  message.is_banned = object.is_banned ?? false;
7716
+ message.expired_ban_time = object.expired_ban_time ?? 0;
7675
7717
  return message;
7676
7718
  },
7677
7719
  };
@@ -12079,7 +12121,7 @@ function createBaseUpdateClanDescRequest(): UpdateClanDescRequest {
12079
12121
  return {
12080
12122
  clan_id: "",
12081
12123
  clan_name: "",
12082
- logo: "",
12124
+ logo: undefined,
12083
12125
  banner: undefined,
12084
12126
  status: 0,
12085
12127
  is_onboarding: undefined,
@@ -12087,8 +12129,8 @@ function createBaseUpdateClanDescRequest(): UpdateClanDescRequest {
12087
12129
  onboarding_banner: undefined,
12088
12130
  is_community: undefined,
12089
12131
  community_banner: undefined,
12090
- description: "",
12091
- about: "",
12132
+ description: undefined,
12133
+ about: undefined,
12092
12134
  short_url: undefined,
12093
12135
  prevent_anonymous: false,
12094
12136
  };
@@ -12102,8 +12144,8 @@ export const UpdateClanDescRequest = {
12102
12144
  if (message.clan_name !== "") {
12103
12145
  writer.uint32(18).string(message.clan_name);
12104
12146
  }
12105
- if (message.logo !== "") {
12106
- writer.uint32(26).string(message.logo);
12147
+ if (message.logo !== undefined) {
12148
+ StringValue.encode({ value: message.logo! }, writer.uint32(26).fork()).ldelim();
12107
12149
  }
12108
12150
  if (message.banner !== undefined) {
12109
12151
  StringValue.encode({ value: message.banner! }, writer.uint32(34).fork()).ldelim();
@@ -12126,11 +12168,11 @@ export const UpdateClanDescRequest = {
12126
12168
  if (message.community_banner !== undefined) {
12127
12169
  StringValue.encode({ value: message.community_banner! }, writer.uint32(82).fork()).ldelim();
12128
12170
  }
12129
- if (message.description !== "") {
12130
- writer.uint32(90).string(message.description);
12171
+ if (message.description !== undefined) {
12172
+ StringValue.encode({ value: message.description! }, writer.uint32(90).fork()).ldelim();
12131
12173
  }
12132
- if (message.about !== "") {
12133
- writer.uint32(98).string(message.about);
12174
+ if (message.about !== undefined) {
12175
+ StringValue.encode({ value: message.about! }, writer.uint32(98).fork()).ldelim();
12134
12176
  }
12135
12177
  if (message.short_url !== undefined) {
12136
12178
  StringValue.encode({ value: message.short_url! }, writer.uint32(106).fork()).ldelim();
@@ -12167,7 +12209,7 @@ export const UpdateClanDescRequest = {
12167
12209
  break;
12168
12210
  }
12169
12211
 
12170
- message.logo = reader.string();
12212
+ message.logo = StringValue.decode(reader, reader.uint32()).value;
12171
12213
  continue;
12172
12214
  case 4:
12173
12215
  if (tag !== 34) {
@@ -12223,14 +12265,14 @@ export const UpdateClanDescRequest = {
12223
12265
  break;
12224
12266
  }
12225
12267
 
12226
- message.description = reader.string();
12268
+ message.description = StringValue.decode(reader, reader.uint32()).value;
12227
12269
  continue;
12228
12270
  case 12:
12229
12271
  if (tag !== 98) {
12230
12272
  break;
12231
12273
  }
12232
12274
 
12233
- message.about = reader.string();
12275
+ message.about = StringValue.decode(reader, reader.uint32()).value;
12234
12276
  continue;
12235
12277
  case 13:
12236
12278
  if (tag !== 106) {
@@ -12259,7 +12301,7 @@ export const UpdateClanDescRequest = {
12259
12301
  return {
12260
12302
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
12261
12303
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
12262
- logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
12304
+ logo: isSet(object.logo) ? String(object.logo) : undefined,
12263
12305
  banner: isSet(object.banner) ? String(object.banner) : undefined,
12264
12306
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
12265
12307
  is_onboarding: isSet(object.is_onboarding) ? Boolean(object.is_onboarding) : undefined,
@@ -12267,8 +12309,8 @@ export const UpdateClanDescRequest = {
12267
12309
  onboarding_banner: isSet(object.onboarding_banner) ? String(object.onboarding_banner) : undefined,
12268
12310
  is_community: isSet(object.is_community) ? Boolean(object.is_community) : undefined,
12269
12311
  community_banner: isSet(object.community_banner) ? String(object.community_banner) : undefined,
12270
- description: isSet(object.description) ? globalThis.String(object.description) : "",
12271
- about: isSet(object.about) ? globalThis.String(object.about) : "",
12312
+ description: isSet(object.description) ? String(object.description) : undefined,
12313
+ about: isSet(object.about) ? String(object.about) : undefined,
12272
12314
  short_url: isSet(object.short_url) ? String(object.short_url) : undefined,
12273
12315
  prevent_anonymous: isSet(object.prevent_anonymous) ? globalThis.Boolean(object.prevent_anonymous) : false,
12274
12316
  };
@@ -12282,7 +12324,7 @@ export const UpdateClanDescRequest = {
12282
12324
  if (message.clan_name !== "") {
12283
12325
  obj.clan_name = message.clan_name;
12284
12326
  }
12285
- if (message.logo !== "") {
12327
+ if (message.logo !== undefined) {
12286
12328
  obj.logo = message.logo;
12287
12329
  }
12288
12330
  if (message.banner !== undefined) {
@@ -12306,10 +12348,10 @@ export const UpdateClanDescRequest = {
12306
12348
  if (message.community_banner !== undefined) {
12307
12349
  obj.community_banner = message.community_banner;
12308
12350
  }
12309
- if (message.description !== "") {
12351
+ if (message.description !== undefined) {
12310
12352
  obj.description = message.description;
12311
12353
  }
12312
- if (message.about !== "") {
12354
+ if (message.about !== undefined) {
12313
12355
  obj.about = message.about;
12314
12356
  }
12315
12357
  if (message.short_url !== undefined) {
@@ -12328,7 +12370,7 @@ export const UpdateClanDescRequest = {
12328
12370
  const message = createBaseUpdateClanDescRequest();
12329
12371
  message.clan_id = object.clan_id ?? "";
12330
12372
  message.clan_name = object.clan_name ?? "";
12331
- message.logo = object.logo ?? "";
12373
+ message.logo = object.logo ?? undefined;
12332
12374
  message.banner = object.banner ?? undefined;
12333
12375
  message.status = object.status ?? 0;
12334
12376
  message.is_onboarding = object.is_onboarding ?? undefined;
@@ -12336,8 +12378,8 @@ export const UpdateClanDescRequest = {
12336
12378
  message.onboarding_banner = object.onboarding_banner ?? undefined;
12337
12379
  message.is_community = object.is_community ?? undefined;
12338
12380
  message.community_banner = object.community_banner ?? undefined;
12339
- message.description = object.description ?? "";
12340
- message.about = object.about ?? "";
12381
+ message.description = object.description ?? undefined;
12382
+ message.about = object.about ?? undefined;
12341
12383
  message.short_url = object.short_url ?? undefined;
12342
12384
  message.prevent_anonymous = object.prevent_anonymous ?? false;
12343
12385
  return message;
@@ -128,6 +128,7 @@ export interface SessionLogoutRequest {
128
128
  }
129
129
  export interface IsBannedResponse {
130
130
  is_banned: boolean;
131
+ expired_ban_time: number;
131
132
  }
132
133
  export interface IsBannedRequest {
133
134
  channel_id: string;
@@ -457,6 +458,8 @@ export interface ChannelUserList_ChannelUser {
457
458
  added_by: string;
458
459
  /** is banned */
459
460
  is_banned: boolean;
461
+ /** expired time */
462
+ expired_ban_time: number;
460
463
  }
461
464
  /** A list of users belonging to a channel, along with their role. */
462
465
  export interface VoiceChannelUser {
@@ -928,7 +931,7 @@ export interface UpdateClanDescRequest {
928
931
  /** Clan name */
929
932
  clan_name: string;
930
933
  /** Clan logo */
931
- logo: string;
934
+ logo: string | undefined;
932
935
  /** Clan banner */
933
936
  banner: string | undefined;
934
937
  /** Clan status */
@@ -944,9 +947,9 @@ export interface UpdateClanDescRequest {
944
947
  /** Community banner. */
945
948
  community_banner: string | undefined;
946
949
  /** string description */
947
- description: string;
950
+ description: string | undefined;
948
951
  /** About */
949
- about: string;
952
+ about: string | undefined;
950
953
  /** Short url for community */
951
954
  short_url: string | undefined;
952
955
  /** Prevent anonymous */
@@ -3479,14 +3482,18 @@ export declare const IsBannedResponse: {
3479
3482
  toJSON(message: IsBannedResponse): unknown;
3480
3483
  create<I extends {
3481
3484
  is_banned?: boolean | undefined;
3485
+ expired_ban_time?: number | undefined;
3482
3486
  } & {
3483
3487
  is_banned?: boolean | undefined;
3484
- } & { [K in Exclude<keyof I, "is_banned">]: never; }>(base?: I | undefined): IsBannedResponse;
3488
+ expired_ban_time?: number | undefined;
3489
+ } & { [K in Exclude<keyof I, keyof IsBannedResponse>]: never; }>(base?: I | undefined): IsBannedResponse;
3485
3490
  fromPartial<I_1 extends {
3486
3491
  is_banned?: boolean | undefined;
3492
+ expired_ban_time?: number | undefined;
3487
3493
  } & {
3488
3494
  is_banned?: boolean | undefined;
3489
- } & { [K_1 in Exclude<keyof I_1, "is_banned">]: never; }>(object: I_1): IsBannedResponse;
3495
+ expired_ban_time?: number | undefined;
3496
+ } & { [K_1 in Exclude<keyof I_1, keyof IsBannedResponse>]: never; }>(object: I_1): IsBannedResponse;
3490
3497
  };
3491
3498
  export declare const IsBannedRequest: {
3492
3499
  encode(message: IsBannedRequest, writer?: _m0.Writer): _m0.Writer;
@@ -5392,6 +5399,7 @@ export declare const ChannelUserList: {
5392
5399
  clan_id?: string | undefined;
5393
5400
  added_by?: string | undefined;
5394
5401
  is_banned?: boolean | undefined;
5402
+ expired_ban_time?: number | undefined;
5395
5403
  }[] | undefined;
5396
5404
  cursor?: string | undefined;
5397
5405
  channel_id?: string | undefined;
@@ -5406,6 +5414,7 @@ export declare const ChannelUserList: {
5406
5414
  clan_id?: string | undefined;
5407
5415
  added_by?: string | undefined;
5408
5416
  is_banned?: boolean | undefined;
5417
+ expired_ban_time?: number | undefined;
5409
5418
  }[] & ({
5410
5419
  user_id?: string | undefined;
5411
5420
  role_id?: string[] | undefined;
@@ -5416,6 +5425,7 @@ export declare const ChannelUserList: {
5416
5425
  clan_id?: string | undefined;
5417
5426
  added_by?: string | undefined;
5418
5427
  is_banned?: boolean | undefined;
5428
+ expired_ban_time?: number | undefined;
5419
5429
  } & {
5420
5430
  user_id?: string | undefined;
5421
5431
  role_id?: (string[] & string[] & { [K in Exclude<keyof I["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -5426,6 +5436,7 @@ export declare const ChannelUserList: {
5426
5436
  clan_id?: string | undefined;
5427
5437
  added_by?: string | undefined;
5428
5438
  is_banned?: boolean | undefined;
5439
+ expired_ban_time?: number | undefined;
5429
5440
  } & { [K_1 in Exclude<keyof I["channel_users"][number], keyof ChannelUserList_ChannelUser>]: never; })[] & { [K_2 in Exclude<keyof I["channel_users"], keyof {
5430
5441
  user_id?: string | undefined;
5431
5442
  role_id?: string[] | undefined;
@@ -5436,6 +5447,7 @@ export declare const ChannelUserList: {
5436
5447
  clan_id?: string | undefined;
5437
5448
  added_by?: string | undefined;
5438
5449
  is_banned?: boolean | undefined;
5450
+ expired_ban_time?: number | undefined;
5439
5451
  }[]>]: never; }) | undefined;
5440
5452
  cursor?: string | undefined;
5441
5453
  channel_id?: string | undefined;
@@ -5451,6 +5463,7 @@ export declare const ChannelUserList: {
5451
5463
  clan_id?: string | undefined;
5452
5464
  added_by?: string | undefined;
5453
5465
  is_banned?: boolean | undefined;
5466
+ expired_ban_time?: number | undefined;
5454
5467
  }[] | undefined;
5455
5468
  cursor?: string | undefined;
5456
5469
  channel_id?: string | undefined;
@@ -5465,6 +5478,7 @@ export declare const ChannelUserList: {
5465
5478
  clan_id?: string | undefined;
5466
5479
  added_by?: string | undefined;
5467
5480
  is_banned?: boolean | undefined;
5481
+ expired_ban_time?: number | undefined;
5468
5482
  }[] & ({
5469
5483
  user_id?: string | undefined;
5470
5484
  role_id?: string[] | undefined;
@@ -5475,6 +5489,7 @@ export declare const ChannelUserList: {
5475
5489
  clan_id?: string | undefined;
5476
5490
  added_by?: string | undefined;
5477
5491
  is_banned?: boolean | undefined;
5492
+ expired_ban_time?: number | undefined;
5478
5493
  } & {
5479
5494
  user_id?: string | undefined;
5480
5495
  role_id?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -5485,6 +5500,7 @@ export declare const ChannelUserList: {
5485
5500
  clan_id?: string | undefined;
5486
5501
  added_by?: string | undefined;
5487
5502
  is_banned?: boolean | undefined;
5503
+ expired_ban_time?: number | undefined;
5488
5504
  } & { [K_5 in Exclude<keyof I_1["channel_users"][number], keyof ChannelUserList_ChannelUser>]: never; })[] & { [K_6 in Exclude<keyof I_1["channel_users"], keyof {
5489
5505
  user_id?: string | undefined;
5490
5506
  role_id?: string[] | undefined;
@@ -5495,6 +5511,7 @@ export declare const ChannelUserList: {
5495
5511
  clan_id?: string | undefined;
5496
5512
  added_by?: string | undefined;
5497
5513
  is_banned?: boolean | undefined;
5514
+ expired_ban_time?: number | undefined;
5498
5515
  }[]>]: never; }) | undefined;
5499
5516
  cursor?: string | undefined;
5500
5517
  channel_id?: string | undefined;
@@ -5515,6 +5532,7 @@ export declare const ChannelUserList_ChannelUser: {
5515
5532
  clan_id?: string | undefined;
5516
5533
  added_by?: string | undefined;
5517
5534
  is_banned?: boolean | undefined;
5535
+ expired_ban_time?: number | undefined;
5518
5536
  } & {
5519
5537
  user_id?: string | undefined;
5520
5538
  role_id?: (string[] & string[] & { [K in Exclude<keyof I["role_id"], keyof string[]>]: never; }) | undefined;
@@ -5525,6 +5543,7 @@ export declare const ChannelUserList_ChannelUser: {
5525
5543
  clan_id?: string | undefined;
5526
5544
  added_by?: string | undefined;
5527
5545
  is_banned?: boolean | undefined;
5546
+ expired_ban_time?: number | undefined;
5528
5547
  } & { [K_1 in Exclude<keyof I, keyof ChannelUserList_ChannelUser>]: never; }>(base?: I | undefined): ChannelUserList_ChannelUser;
5529
5548
  fromPartial<I_1 extends {
5530
5549
  user_id?: string | undefined;
@@ -5536,6 +5555,7 @@ export declare const ChannelUserList_ChannelUser: {
5536
5555
  clan_id?: string | undefined;
5537
5556
  added_by?: string | undefined;
5538
5557
  is_banned?: boolean | undefined;
5558
+ expired_ban_time?: number | undefined;
5539
5559
  } & {
5540
5560
  user_id?: string | undefined;
5541
5561
  role_id?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["role_id"], keyof string[]>]: never; }) | undefined;
@@ -5546,6 +5566,7 @@ export declare const ChannelUserList_ChannelUser: {
5546
5566
  clan_id?: string | undefined;
5547
5567
  added_by?: string | undefined;
5548
5568
  is_banned?: boolean | undefined;
5569
+ expired_ban_time?: number | undefined;
5549
5570
  } & { [K_3 in Exclude<keyof I_1, keyof ChannelUserList_ChannelUser>]: never; }>(object: I_1): ChannelUserList_ChannelUser;
5550
5571
  };
5551
5572
  export declare const VoiceChannelUser: {
@@ -2640,6 +2640,7 @@ export declare const Envelope: {
2640
2640
  clan_id?: string | undefined;
2641
2641
  added_by?: string | undefined;
2642
2642
  is_banned?: boolean | undefined;
2643
+ expired_ban_time?: number | undefined;
2643
2644
  }[] | undefined;
2644
2645
  cursor?: string | undefined;
2645
2646
  channel_id?: string | undefined;
@@ -6829,6 +6830,7 @@ export declare const Envelope: {
6829
6830
  clan_id?: string | undefined;
6830
6831
  added_by?: string | undefined;
6831
6832
  is_banned?: boolean | undefined;
6833
+ expired_ban_time?: number | undefined;
6832
6834
  }[] | undefined;
6833
6835
  cursor?: string | undefined;
6834
6836
  channel_id?: string | undefined;
@@ -8302,6 +8304,7 @@ export declare const Envelope: {
8302
8304
  clan_id?: string | undefined;
8303
8305
  added_by?: string | undefined;
8304
8306
  is_banned?: boolean | undefined;
8307
+ expired_ban_time?: number | undefined;
8305
8308
  }[] | undefined;
8306
8309
  cursor?: string | undefined;
8307
8310
  channel_id?: string | undefined;
@@ -8316,6 +8319,7 @@ export declare const Envelope: {
8316
8319
  clan_id?: string | undefined;
8317
8320
  added_by?: string | undefined;
8318
8321
  is_banned?: boolean | undefined;
8322
+ expired_ban_time?: number | undefined;
8319
8323
  }[] & ({
8320
8324
  user_id?: string | undefined;
8321
8325
  role_id?: string[] | undefined;
@@ -8326,6 +8330,7 @@ export declare const Envelope: {
8326
8330
  clan_id?: string | undefined;
8327
8331
  added_by?: string | undefined;
8328
8332
  is_banned?: boolean | undefined;
8333
+ expired_ban_time?: number | undefined;
8329
8334
  } & {
8330
8335
  user_id?: string | undefined;
8331
8336
  role_id?: (string[] & string[] & { [K_240 in Exclude<keyof I["list_data_socket"]["channel_user_list"]["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -8336,6 +8341,7 @@ export declare const Envelope: {
8336
8341
  clan_id?: string | undefined;
8337
8342
  added_by?: string | undefined;
8338
8343
  is_banned?: boolean | undefined;
8344
+ expired_ban_time?: number | undefined;
8339
8345
  } & { [K_241 in Exclude<keyof I["list_data_socket"]["channel_user_list"]["channel_users"][number], keyof import("../api/api").ChannelUserList_ChannelUser>]: never; })[] & { [K_242 in Exclude<keyof I["list_data_socket"]["channel_user_list"]["channel_users"], keyof {
8340
8346
  user_id?: string | undefined;
8341
8347
  role_id?: string[] | undefined;
@@ -8346,6 +8352,7 @@ export declare const Envelope: {
8346
8352
  clan_id?: string | undefined;
8347
8353
  added_by?: string | undefined;
8348
8354
  is_banned?: boolean | undefined;
8355
+ expired_ban_time?: number | undefined;
8349
8356
  }[]>]: never; }) | undefined;
8350
8357
  cursor?: string | undefined;
8351
8358
  channel_id?: string | undefined;
@@ -12570,6 +12577,7 @@ export declare const Envelope: {
12570
12577
  clan_id?: string | undefined;
12571
12578
  added_by?: string | undefined;
12572
12579
  is_banned?: boolean | undefined;
12580
+ expired_ban_time?: number | undefined;
12573
12581
  }[] | undefined;
12574
12582
  cursor?: string | undefined;
12575
12583
  channel_id?: string | undefined;
@@ -16759,6 +16767,7 @@ export declare const Envelope: {
16759
16767
  clan_id?: string | undefined;
16760
16768
  added_by?: string | undefined;
16761
16769
  is_banned?: boolean | undefined;
16770
+ expired_ban_time?: number | undefined;
16762
16771
  }[] | undefined;
16763
16772
  cursor?: string | undefined;
16764
16773
  channel_id?: string | undefined;
@@ -18232,6 +18241,7 @@ export declare const Envelope: {
18232
18241
  clan_id?: string | undefined;
18233
18242
  added_by?: string | undefined;
18234
18243
  is_banned?: boolean | undefined;
18244
+ expired_ban_time?: number | undefined;
18235
18245
  }[] | undefined;
18236
18246
  cursor?: string | undefined;
18237
18247
  channel_id?: string | undefined;
@@ -18246,6 +18256,7 @@ export declare const Envelope: {
18246
18256
  clan_id?: string | undefined;
18247
18257
  added_by?: string | undefined;
18248
18258
  is_banned?: boolean | undefined;
18259
+ expired_ban_time?: number | undefined;
18249
18260
  }[] & ({
18250
18261
  user_id?: string | undefined;
18251
18262
  role_id?: string[] | undefined;
@@ -18256,6 +18267,7 @@ export declare const Envelope: {
18256
18267
  clan_id?: string | undefined;
18257
18268
  added_by?: string | undefined;
18258
18269
  is_banned?: boolean | undefined;
18270
+ expired_ban_time?: number | undefined;
18259
18271
  } & {
18260
18272
  user_id?: string | undefined;
18261
18273
  role_id?: (string[] & string[] & { [K_635 in Exclude<keyof I_1["list_data_socket"]["channel_user_list"]["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -18266,6 +18278,7 @@ export declare const Envelope: {
18266
18278
  clan_id?: string | undefined;
18267
18279
  added_by?: string | undefined;
18268
18280
  is_banned?: boolean | undefined;
18281
+ expired_ban_time?: number | undefined;
18269
18282
  } & { [K_636 in Exclude<keyof I_1["list_data_socket"]["channel_user_list"]["channel_users"][number], keyof import("../api/api").ChannelUserList_ChannelUser>]: never; })[] & { [K_637 in Exclude<keyof I_1["list_data_socket"]["channel_user_list"]["channel_users"], keyof {
18270
18283
  user_id?: string | undefined;
18271
18284
  role_id?: string[] | undefined;
@@ -18276,6 +18289,7 @@ export declare const Envelope: {
18276
18289
  clan_id?: string | undefined;
18277
18290
  added_by?: string | undefined;
18278
18291
  is_banned?: boolean | undefined;
18292
+ expired_ban_time?: number | undefined;
18279
18293
  }[]>]: never; }) | undefined;
18280
18294
  cursor?: string | undefined;
18281
18295
  channel_id?: string | undefined;
@@ -28949,6 +28963,7 @@ export declare const ListDataSocket: {
28949
28963
  clan_id?: string | undefined;
28950
28964
  added_by?: string | undefined;
28951
28965
  is_banned?: boolean | undefined;
28966
+ expired_ban_time?: number | undefined;
28952
28967
  }[] | undefined;
28953
28968
  cursor?: string | undefined;
28954
28969
  channel_id?: string | undefined;
@@ -30422,6 +30437,7 @@ export declare const ListDataSocket: {
30422
30437
  clan_id?: string | undefined;
30423
30438
  added_by?: string | undefined;
30424
30439
  is_banned?: boolean | undefined;
30440
+ expired_ban_time?: number | undefined;
30425
30441
  }[] | undefined;
30426
30442
  cursor?: string | undefined;
30427
30443
  channel_id?: string | undefined;
@@ -30436,6 +30452,7 @@ export declare const ListDataSocket: {
30436
30452
  clan_id?: string | undefined;
30437
30453
  added_by?: string | undefined;
30438
30454
  is_banned?: boolean | undefined;
30455
+ expired_ban_time?: number | undefined;
30439
30456
  }[] & ({
30440
30457
  user_id?: string | undefined;
30441
30458
  role_id?: string[] | undefined;
@@ -30446,6 +30463,7 @@ export declare const ListDataSocket: {
30446
30463
  clan_id?: string | undefined;
30447
30464
  added_by?: string | undefined;
30448
30465
  is_banned?: boolean | undefined;
30466
+ expired_ban_time?: number | undefined;
30449
30467
  } & {
30450
30468
  user_id?: string | undefined;
30451
30469
  role_id?: (string[] & string[] & { [K_48 in Exclude<keyof I["channel_user_list"]["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -30456,6 +30474,7 @@ export declare const ListDataSocket: {
30456
30474
  clan_id?: string | undefined;
30457
30475
  added_by?: string | undefined;
30458
30476
  is_banned?: boolean | undefined;
30477
+ expired_ban_time?: number | undefined;
30459
30478
  } & { [K_49 in Exclude<keyof I["channel_user_list"]["channel_users"][number], keyof import("../api/api").ChannelUserList_ChannelUser>]: never; })[] & { [K_50 in Exclude<keyof I["channel_user_list"]["channel_users"], keyof {
30460
30479
  user_id?: string | undefined;
30461
30480
  role_id?: string[] | undefined;
@@ -30466,6 +30485,7 @@ export declare const ListDataSocket: {
30466
30485
  clan_id?: string | undefined;
30467
30486
  added_by?: string | undefined;
30468
30487
  is_banned?: boolean | undefined;
30488
+ expired_ban_time?: number | undefined;
30469
30489
  }[]>]: never; }) | undefined;
30470
30490
  cursor?: string | undefined;
30471
30491
  channel_id?: string | undefined;
@@ -33338,6 +33358,7 @@ export declare const ListDataSocket: {
33338
33358
  clan_id?: string | undefined;
33339
33359
  added_by?: string | undefined;
33340
33360
  is_banned?: boolean | undefined;
33361
+ expired_ban_time?: number | undefined;
33341
33362
  }[] | undefined;
33342
33363
  cursor?: string | undefined;
33343
33364
  channel_id?: string | undefined;
@@ -34811,6 +34832,7 @@ export declare const ListDataSocket: {
34811
34832
  clan_id?: string | undefined;
34812
34833
  added_by?: string | undefined;
34813
34834
  is_banned?: boolean | undefined;
34835
+ expired_ban_time?: number | undefined;
34814
34836
  }[] | undefined;
34815
34837
  cursor?: string | undefined;
34816
34838
  channel_id?: string | undefined;
@@ -34825,6 +34847,7 @@ export declare const ListDataSocket: {
34825
34847
  clan_id?: string | undefined;
34826
34848
  added_by?: string | undefined;
34827
34849
  is_banned?: boolean | undefined;
34850
+ expired_ban_time?: number | undefined;
34828
34851
  }[] & ({
34829
34852
  user_id?: string | undefined;
34830
34853
  role_id?: string[] | undefined;
@@ -34835,6 +34858,7 @@ export declare const ListDataSocket: {
34835
34858
  clan_id?: string | undefined;
34836
34859
  added_by?: string | undefined;
34837
34860
  is_banned?: boolean | undefined;
34861
+ expired_ban_time?: number | undefined;
34838
34862
  } & {
34839
34863
  user_id?: string | undefined;
34840
34864
  role_id?: (string[] & string[] & { [K_236 in Exclude<keyof I_1["channel_user_list"]["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -34845,6 +34869,7 @@ export declare const ListDataSocket: {
34845
34869
  clan_id?: string | undefined;
34846
34870
  added_by?: string | undefined;
34847
34871
  is_banned?: boolean | undefined;
34872
+ expired_ban_time?: number | undefined;
34848
34873
  } & { [K_237 in Exclude<keyof I_1["channel_user_list"]["channel_users"][number], keyof import("../api/api").ChannelUserList_ChannelUser>]: never; })[] & { [K_238 in Exclude<keyof I_1["channel_user_list"]["channel_users"], keyof {
34849
34874
  user_id?: string | undefined;
34850
34875
  role_id?: string[] | undefined;
@@ -34855,6 +34880,7 @@ export declare const ListDataSocket: {
34855
34880
  clan_id?: string | undefined;
34856
34881
  added_by?: string | undefined;
34857
34882
  is_banned?: boolean | undefined;
34883
+ expired_ban_time?: number | undefined;
34858
34884
  }[]>]: never; }) | undefined;
34859
34885
  cursor?: string | undefined;
34860
34886
  channel_id?: string | undefined;
@@ -4070,7 +4070,8 @@ function createBaseChannelUserList_ChannelUser() {
4070
4070
  clan_avatar: "",
4071
4071
  clan_id: "",
4072
4072
  added_by: "",
4073
- is_banned: false
4073
+ is_banned: false,
4074
+ expired_ban_time: 0
4074
4075
  };
4075
4076
  }
4076
4077
  var ChannelUserList_ChannelUser = {
@@ -4102,6 +4103,9 @@ var ChannelUserList_ChannelUser = {
4102
4103
  if (message.is_banned !== false) {
4103
4104
  writer.uint32(72).bool(message.is_banned);
4104
4105
  }
4106
+ if (message.expired_ban_time !== 0) {
4107
+ writer.uint32(80).int32(message.expired_ban_time);
4108
+ }
4105
4109
  return writer;
4106
4110
  },
4107
4111
  decode(input, length) {
@@ -4165,6 +4169,12 @@ var ChannelUserList_ChannelUser = {
4165
4169
  }
4166
4170
  message.is_banned = reader.bool();
4167
4171
  continue;
4172
+ case 10:
4173
+ if (tag !== 80) {
4174
+ break;
4175
+ }
4176
+ message.expired_ban_time = reader.int32();
4177
+ continue;
4168
4178
  }
4169
4179
  if ((tag & 7) === 4 || tag === 0) {
4170
4180
  break;
@@ -4183,7 +4193,8 @@ var ChannelUserList_ChannelUser = {
4183
4193
  clan_avatar: isSet3(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
4184
4194
  clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
4185
4195
  added_by: isSet3(object.added_by) ? globalThis.String(object.added_by) : "",
4186
- is_banned: isSet3(object.is_banned) ? globalThis.Boolean(object.is_banned) : false
4196
+ is_banned: isSet3(object.is_banned) ? globalThis.Boolean(object.is_banned) : false,
4197
+ expired_ban_time: isSet3(object.expired_ban_time) ? globalThis.Number(object.expired_ban_time) : 0
4187
4198
  };
4188
4199
  },
4189
4200
  toJSON(message) {
@@ -4216,13 +4227,16 @@ var ChannelUserList_ChannelUser = {
4216
4227
  if (message.is_banned !== false) {
4217
4228
  obj.is_banned = message.is_banned;
4218
4229
  }
4230
+ if (message.expired_ban_time !== 0) {
4231
+ obj.expired_ban_time = Math.round(message.expired_ban_time);
4232
+ }
4219
4233
  return obj;
4220
4234
  },
4221
4235
  create(base) {
4222
4236
  return ChannelUserList_ChannelUser.fromPartial(base != null ? base : {});
4223
4237
  },
4224
4238
  fromPartial(object) {
4225
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
4239
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
4226
4240
  const message = createBaseChannelUserList_ChannelUser();
4227
4241
  message.user_id = (_a = object.user_id) != null ? _a : "";
4228
4242
  message.role_id = ((_b = object.role_id) == null ? void 0 : _b.map((e) => e)) || [];
@@ -4233,6 +4247,7 @@ var ChannelUserList_ChannelUser = {
4233
4247
  message.clan_id = (_g = object.clan_id) != null ? _g : "";
4234
4248
  message.added_by = (_h = object.added_by) != null ? _h : "";
4235
4249
  message.is_banned = (_i = object.is_banned) != null ? _i : false;
4250
+ message.expired_ban_time = (_j = object.expired_ban_time) != null ? _j : 0;
4236
4251
  return message;
4237
4252
  }
4238
4253
  };
@@ -4057,7 +4057,8 @@ function createBaseChannelUserList_ChannelUser() {
4057
4057
  clan_avatar: "",
4058
4058
  clan_id: "",
4059
4059
  added_by: "",
4060
- is_banned: false
4060
+ is_banned: false,
4061
+ expired_ban_time: 0
4061
4062
  };
4062
4063
  }
4063
4064
  var ChannelUserList_ChannelUser = {
@@ -4089,6 +4090,9 @@ var ChannelUserList_ChannelUser = {
4089
4090
  if (message.is_banned !== false) {
4090
4091
  writer.uint32(72).bool(message.is_banned);
4091
4092
  }
4093
+ if (message.expired_ban_time !== 0) {
4094
+ writer.uint32(80).int32(message.expired_ban_time);
4095
+ }
4092
4096
  return writer;
4093
4097
  },
4094
4098
  decode(input, length) {
@@ -4152,6 +4156,12 @@ var ChannelUserList_ChannelUser = {
4152
4156
  }
4153
4157
  message.is_banned = reader.bool();
4154
4158
  continue;
4159
+ case 10:
4160
+ if (tag !== 80) {
4161
+ break;
4162
+ }
4163
+ message.expired_ban_time = reader.int32();
4164
+ continue;
4155
4165
  }
4156
4166
  if ((tag & 7) === 4 || tag === 0) {
4157
4167
  break;
@@ -4170,7 +4180,8 @@ var ChannelUserList_ChannelUser = {
4170
4180
  clan_avatar: isSet3(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
4171
4181
  clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
4172
4182
  added_by: isSet3(object.added_by) ? globalThis.String(object.added_by) : "",
4173
- is_banned: isSet3(object.is_banned) ? globalThis.Boolean(object.is_banned) : false
4183
+ is_banned: isSet3(object.is_banned) ? globalThis.Boolean(object.is_banned) : false,
4184
+ expired_ban_time: isSet3(object.expired_ban_time) ? globalThis.Number(object.expired_ban_time) : 0
4174
4185
  };
4175
4186
  },
4176
4187
  toJSON(message) {
@@ -4203,13 +4214,16 @@ var ChannelUserList_ChannelUser = {
4203
4214
  if (message.is_banned !== false) {
4204
4215
  obj.is_banned = message.is_banned;
4205
4216
  }
4217
+ if (message.expired_ban_time !== 0) {
4218
+ obj.expired_ban_time = Math.round(message.expired_ban_time);
4219
+ }
4206
4220
  return obj;
4207
4221
  },
4208
4222
  create(base) {
4209
4223
  return ChannelUserList_ChannelUser.fromPartial(base != null ? base : {});
4210
4224
  },
4211
4225
  fromPartial(object) {
4212
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
4226
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
4213
4227
  const message = createBaseChannelUserList_ChannelUser();
4214
4228
  message.user_id = (_a = object.user_id) != null ? _a : "";
4215
4229
  message.role_id = ((_b = object.role_id) == null ? void 0 : _b.map((e) => e)) || [];
@@ -4220,6 +4234,7 @@ var ChannelUserList_ChannelUser = {
4220
4234
  message.clan_id = (_g = object.clan_id) != null ? _g : "";
4221
4235
  message.added_by = (_h = object.added_by) != null ? _h : "";
4222
4236
  message.is_banned = (_i = object.is_banned) != null ? _i : false;
4237
+ message.expired_ban_time = (_j = object.expired_ban_time) != null ? _j : 0;
4223
4238
  return message;
4224
4239
  }
4225
4240
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.55",
3
+ "version": "1.8.56",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",