mezon-js-protobuf 1.5.44 → 1.5.46

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.
@@ -290,6 +290,8 @@ export interface ChannelJoin {
290
290
  parent_id: string;
291
291
  /** parent public */
292
292
  is_parent_public: boolean;
293
+ /** is public */
294
+ is_public: boolean;
293
295
  }
294
296
  /** Leave a realtime channel. */
295
297
  export interface ChannelLeave {
@@ -594,6 +596,8 @@ export interface ChannelCreatedEvent {
594
596
  channel_type: number | undefined;
595
597
  /** status */
596
598
  status: number;
599
+ /** is parent public */
600
+ is_parent_public: boolean;
597
601
  }
598
602
  export interface ChannelDeletedEvent {
599
603
  /** clan id */
@@ -716,6 +720,10 @@ export interface UserChannelAdded {
716
720
  channel_type: number;
717
721
  /** is public */
718
722
  is_public: boolean;
723
+ /** the parent_id */
724
+ parent_id: string;
725
+ /** parent public */
726
+ is_parent_public: boolean;
719
727
  }
720
728
  /** */
721
729
  export interface UserChannelRemoved {
@@ -892,6 +900,7 @@ export declare const Envelope: {
892
900
  channel_type?: number | undefined;
893
901
  parent_id?: string | undefined;
894
902
  is_parent_public?: boolean | undefined;
903
+ is_public?: boolean | undefined;
895
904
  } | undefined;
896
905
  channel_leave?: {
897
906
  clan_id?: string | undefined;
@@ -1210,6 +1219,7 @@ export declare const Envelope: {
1210
1219
  channel_private?: number | undefined;
1211
1220
  channel_type?: number | undefined;
1212
1221
  status?: number | undefined;
1222
+ is_parent_public?: boolean | undefined;
1213
1223
  } | undefined;
1214
1224
  channel_deleted_event?: {
1215
1225
  clan_id?: string | undefined;
@@ -1259,6 +1269,8 @@ export declare const Envelope: {
1259
1269
  clan_id?: string | undefined;
1260
1270
  channel_type?: number | undefined;
1261
1271
  is_public?: boolean | undefined;
1272
+ parent_id?: string | undefined;
1273
+ is_parent_public?: boolean | undefined;
1262
1274
  } | undefined;
1263
1275
  user_channel_removed_event?: {
1264
1276
  channel_id?: string | undefined;
@@ -1592,12 +1604,14 @@ export declare const Envelope: {
1592
1604
  channel_type?: number | undefined;
1593
1605
  parent_id?: string | undefined;
1594
1606
  is_parent_public?: boolean | undefined;
1607
+ is_public?: boolean | undefined;
1595
1608
  } & {
1596
1609
  clan_id?: string | undefined;
1597
1610
  channel_id?: string | undefined;
1598
1611
  channel_type?: number | undefined;
1599
1612
  parent_id?: string | undefined;
1600
1613
  is_parent_public?: boolean | undefined;
1614
+ is_public?: boolean | undefined;
1601
1615
  } & { [K_5 in Exclude<keyof I["channel_join"], keyof ChannelJoin>]: never; }) | undefined;
1602
1616
  channel_leave?: ({
1603
1617
  clan_id?: string | undefined;
@@ -2506,6 +2520,7 @@ export declare const Envelope: {
2506
2520
  channel_private?: number | undefined;
2507
2521
  channel_type?: number | undefined;
2508
2522
  status?: number | undefined;
2523
+ is_parent_public?: boolean | undefined;
2509
2524
  } & {
2510
2525
  clan_id?: string | undefined;
2511
2526
  category_id?: string | undefined;
@@ -2516,6 +2531,7 @@ export declare const Envelope: {
2516
2531
  channel_private?: number | undefined;
2517
2532
  channel_type?: number | undefined;
2518
2533
  status?: number | undefined;
2534
+ is_parent_public?: boolean | undefined;
2519
2535
  } & { [K_65 in Exclude<keyof I["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
2520
2536
  channel_deleted_event?: ({
2521
2537
  clan_id?: string | undefined;
@@ -2598,6 +2614,8 @@ export declare const Envelope: {
2598
2614
  clan_id?: string | undefined;
2599
2615
  channel_type?: number | undefined;
2600
2616
  is_public?: boolean | undefined;
2617
+ parent_id?: string | undefined;
2618
+ is_parent_public?: boolean | undefined;
2601
2619
  } & {
2602
2620
  channel_id?: string | undefined;
2603
2621
  users?: ({
@@ -2621,6 +2639,8 @@ export declare const Envelope: {
2621
2639
  clan_id?: string | undefined;
2622
2640
  channel_type?: number | undefined;
2623
2641
  is_public?: boolean | undefined;
2642
+ parent_id?: string | undefined;
2643
+ is_parent_public?: boolean | undefined;
2624
2644
  } & { [K_72 in Exclude<keyof I["user_channel_added_event"], keyof UserChannelAdded>]: never; }) | undefined;
2625
2645
  user_channel_removed_event?: ({
2626
2646
  channel_id?: string | undefined;
@@ -3650,6 +3670,7 @@ export declare const Envelope: {
3650
3670
  channel_type?: number | undefined;
3651
3671
  parent_id?: string | undefined;
3652
3672
  is_parent_public?: boolean | undefined;
3673
+ is_public?: boolean | undefined;
3653
3674
  } | undefined;
3654
3675
  channel_leave?: {
3655
3676
  clan_id?: string | undefined;
@@ -3968,6 +3989,7 @@ export declare const Envelope: {
3968
3989
  channel_private?: number | undefined;
3969
3990
  channel_type?: number | undefined;
3970
3991
  status?: number | undefined;
3992
+ is_parent_public?: boolean | undefined;
3971
3993
  } | undefined;
3972
3994
  channel_deleted_event?: {
3973
3995
  clan_id?: string | undefined;
@@ -4017,6 +4039,8 @@ export declare const Envelope: {
4017
4039
  clan_id?: string | undefined;
4018
4040
  channel_type?: number | undefined;
4019
4041
  is_public?: boolean | undefined;
4042
+ parent_id?: string | undefined;
4043
+ is_parent_public?: boolean | undefined;
4020
4044
  } | undefined;
4021
4045
  user_channel_removed_event?: {
4022
4046
  channel_id?: string | undefined;
@@ -4350,12 +4374,14 @@ export declare const Envelope: {
4350
4374
  channel_type?: number | undefined;
4351
4375
  parent_id?: string | undefined;
4352
4376
  is_parent_public?: boolean | undefined;
4377
+ is_public?: boolean | undefined;
4353
4378
  } & {
4354
4379
  clan_id?: string | undefined;
4355
4380
  channel_id?: string | undefined;
4356
4381
  channel_type?: number | undefined;
4357
4382
  parent_id?: string | undefined;
4358
4383
  is_parent_public?: boolean | undefined;
4384
+ is_public?: boolean | undefined;
4359
4385
  } & { [K_139 in Exclude<keyof I_1["channel_join"], keyof ChannelJoin>]: never; }) | undefined;
4360
4386
  channel_leave?: ({
4361
4387
  clan_id?: string | undefined;
@@ -5264,6 +5290,7 @@ export declare const Envelope: {
5264
5290
  channel_private?: number | undefined;
5265
5291
  channel_type?: number | undefined;
5266
5292
  status?: number | undefined;
5293
+ is_parent_public?: boolean | undefined;
5267
5294
  } & {
5268
5295
  clan_id?: string | undefined;
5269
5296
  category_id?: string | undefined;
@@ -5274,6 +5301,7 @@ export declare const Envelope: {
5274
5301
  channel_private?: number | undefined;
5275
5302
  channel_type?: number | undefined;
5276
5303
  status?: number | undefined;
5304
+ is_parent_public?: boolean | undefined;
5277
5305
  } & { [K_199 in Exclude<keyof I_1["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
5278
5306
  channel_deleted_event?: ({
5279
5307
  clan_id?: string | undefined;
@@ -5356,6 +5384,8 @@ export declare const Envelope: {
5356
5384
  clan_id?: string | undefined;
5357
5385
  channel_type?: number | undefined;
5358
5386
  is_public?: boolean | undefined;
5387
+ parent_id?: string | undefined;
5388
+ is_parent_public?: boolean | undefined;
5359
5389
  } & {
5360
5390
  channel_id?: string | undefined;
5361
5391
  users?: ({
@@ -5379,6 +5409,8 @@ export declare const Envelope: {
5379
5409
  clan_id?: string | undefined;
5380
5410
  channel_type?: number | undefined;
5381
5411
  is_public?: boolean | undefined;
5412
+ parent_id?: string | undefined;
5413
+ is_parent_public?: boolean | undefined;
5382
5414
  } & { [K_206 in Exclude<keyof I_1["user_channel_added_event"], keyof UserChannelAdded>]: never; }) | undefined;
5383
5415
  user_channel_removed_event?: ({
5384
5416
  channel_id?: string | undefined;
@@ -8443,12 +8475,14 @@ export declare const ChannelJoin: {
8443
8475
  channel_type?: number | undefined;
8444
8476
  parent_id?: string | undefined;
8445
8477
  is_parent_public?: boolean | undefined;
8478
+ is_public?: boolean | undefined;
8446
8479
  } & {
8447
8480
  clan_id?: string | undefined;
8448
8481
  channel_id?: string | undefined;
8449
8482
  channel_type?: number | undefined;
8450
8483
  parent_id?: string | undefined;
8451
8484
  is_parent_public?: boolean | undefined;
8485
+ is_public?: boolean | undefined;
8452
8486
  } & { [K in Exclude<keyof I, keyof ChannelJoin>]: never; }>(base?: I | undefined): ChannelJoin;
8453
8487
  fromPartial<I_1 extends {
8454
8488
  clan_id?: string | undefined;
@@ -8456,12 +8490,14 @@ export declare const ChannelJoin: {
8456
8490
  channel_type?: number | undefined;
8457
8491
  parent_id?: string | undefined;
8458
8492
  is_parent_public?: boolean | undefined;
8493
+ is_public?: boolean | undefined;
8459
8494
  } & {
8460
8495
  clan_id?: string | undefined;
8461
8496
  channel_id?: string | undefined;
8462
8497
  channel_type?: number | undefined;
8463
8498
  parent_id?: string | undefined;
8464
8499
  is_parent_public?: boolean | undefined;
8500
+ is_public?: boolean | undefined;
8465
8501
  } & { [K_1 in Exclude<keyof I_1, keyof ChannelJoin>]: never; }>(object: I_1): ChannelJoin;
8466
8502
  };
8467
8503
  export declare const ChannelLeave: {
@@ -9985,6 +10021,7 @@ export declare const ChannelCreatedEvent: {
9985
10021
  channel_private?: number | undefined;
9986
10022
  channel_type?: number | undefined;
9987
10023
  status?: number | undefined;
10024
+ is_parent_public?: boolean | undefined;
9988
10025
  } & {
9989
10026
  clan_id?: string | undefined;
9990
10027
  category_id?: string | undefined;
@@ -9995,6 +10032,7 @@ export declare const ChannelCreatedEvent: {
9995
10032
  channel_private?: number | undefined;
9996
10033
  channel_type?: number | undefined;
9997
10034
  status?: number | undefined;
10035
+ is_parent_public?: boolean | undefined;
9998
10036
  } & { [K in Exclude<keyof I, keyof ChannelCreatedEvent>]: never; }>(base?: I | undefined): ChannelCreatedEvent;
9999
10037
  fromPartial<I_1 extends {
10000
10038
  clan_id?: string | undefined;
@@ -10006,6 +10044,7 @@ export declare const ChannelCreatedEvent: {
10006
10044
  channel_private?: number | undefined;
10007
10045
  channel_type?: number | undefined;
10008
10046
  status?: number | undefined;
10047
+ is_parent_public?: boolean | undefined;
10009
10048
  } & {
10010
10049
  clan_id?: string | undefined;
10011
10050
  category_id?: string | undefined;
@@ -10016,6 +10055,7 @@ export declare const ChannelCreatedEvent: {
10016
10055
  channel_private?: number | undefined;
10017
10056
  channel_type?: number | undefined;
10018
10057
  status?: number | undefined;
10058
+ is_parent_public?: boolean | undefined;
10019
10059
  } & { [K_1 in Exclude<keyof I_1, keyof ChannelCreatedEvent>]: never; }>(object: I_1): ChannelCreatedEvent;
10020
10060
  };
10021
10061
  export declare const ChannelDeletedEvent: {
@@ -10530,6 +10570,8 @@ export declare const UserChannelAdded: {
10530
10570
  clan_id?: string | undefined;
10531
10571
  channel_type?: number | undefined;
10532
10572
  is_public?: boolean | undefined;
10573
+ parent_id?: string | undefined;
10574
+ is_parent_public?: boolean | undefined;
10533
10575
  } & {
10534
10576
  channel_id?: string | undefined;
10535
10577
  users?: ({
@@ -10553,6 +10595,8 @@ export declare const UserChannelAdded: {
10553
10595
  clan_id?: string | undefined;
10554
10596
  channel_type?: number | undefined;
10555
10597
  is_public?: boolean | undefined;
10598
+ parent_id?: string | undefined;
10599
+ is_parent_public?: boolean | undefined;
10556
10600
  } & { [K_2 in Exclude<keyof I, keyof UserChannelAdded>]: never; }>(base?: I | undefined): UserChannelAdded;
10557
10601
  fromPartial<I_1 extends {
10558
10602
  channel_id?: string | undefined;
@@ -10565,6 +10609,8 @@ export declare const UserChannelAdded: {
10565
10609
  clan_id?: string | undefined;
10566
10610
  channel_type?: number | undefined;
10567
10611
  is_public?: boolean | undefined;
10612
+ parent_id?: string | undefined;
10613
+ is_parent_public?: boolean | undefined;
10568
10614
  } & {
10569
10615
  channel_id?: string | undefined;
10570
10616
  users?: ({
@@ -10588,6 +10634,8 @@ export declare const UserChannelAdded: {
10588
10634
  clan_id?: string | undefined;
10589
10635
  channel_type?: number | undefined;
10590
10636
  is_public?: boolean | undefined;
10637
+ parent_id?: string | undefined;
10638
+ is_parent_public?: boolean | undefined;
10591
10639
  } & { [K_5 in Exclude<keyof I_1, keyof UserChannelAdded>]: never; }>(object: I_1): UserChannelAdded;
10592
10640
  };
10593
10641
  export declare const UserChannelRemoved: {
@@ -6631,7 +6631,7 @@ var ClanJoin = {
6631
6631
  }
6632
6632
  };
6633
6633
  function createBaseChannelJoin() {
6634
- return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false };
6634
+ return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false, is_public: false };
6635
6635
  }
6636
6636
  var ChannelJoin = {
6637
6637
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -6650,6 +6650,9 @@ var ChannelJoin = {
6650
6650
  if (message.is_parent_public === true) {
6651
6651
  writer.uint32(40).bool(message.is_parent_public);
6652
6652
  }
6653
+ if (message.is_public === true) {
6654
+ writer.uint32(48).bool(message.is_public);
6655
+ }
6653
6656
  return writer;
6654
6657
  },
6655
6658
  decode(input, length) {
@@ -6674,6 +6677,9 @@ var ChannelJoin = {
6674
6677
  case 5:
6675
6678
  message.is_parent_public = reader.bool();
6676
6679
  break;
6680
+ case 6:
6681
+ message.is_public = reader.bool();
6682
+ break;
6677
6683
  default:
6678
6684
  reader.skipType(tag & 7);
6679
6685
  break;
@@ -6687,7 +6693,8 @@ var ChannelJoin = {
6687
6693
  channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
6688
6694
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
6689
6695
  parent_id: isSet4(object.parent_id) ? String(object.parent_id) : "",
6690
- is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
6696
+ is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
6697
+ is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false
6691
6698
  };
6692
6699
  },
6693
6700
  toJSON(message) {
@@ -6697,19 +6704,21 @@ var ChannelJoin = {
6697
6704
  message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
6698
6705
  message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
6699
6706
  message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
6707
+ message.is_public !== void 0 && (obj.is_public = message.is_public);
6700
6708
  return obj;
6701
6709
  },
6702
6710
  create(base) {
6703
6711
  return ChannelJoin.fromPartial(base != null ? base : {});
6704
6712
  },
6705
6713
  fromPartial(object) {
6706
- var _a, _b, _c, _d, _e;
6714
+ var _a, _b, _c, _d, _e, _f;
6707
6715
  const message = createBaseChannelJoin();
6708
6716
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
6709
6717
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
6710
6718
  message.channel_type = (_c = object.channel_type) != null ? _c : 0;
6711
6719
  message.parent_id = (_d = object.parent_id) != null ? _d : "";
6712
6720
  message.is_parent_public = (_e = object.is_parent_public) != null ? _e : false;
6721
+ message.is_public = (_f = object.is_public) != null ? _f : false;
6713
6722
  return message;
6714
6723
  }
6715
6724
  };
@@ -8554,7 +8563,8 @@ function createBaseChannelCreatedEvent() {
8554
8563
  channel_label: "",
8555
8564
  channel_private: 0,
8556
8565
  channel_type: void 0,
8557
- status: 0
8566
+ status: 0,
8567
+ is_parent_public: false
8558
8568
  };
8559
8569
  }
8560
8570
  var ChannelCreatedEvent = {
@@ -8586,6 +8596,9 @@ var ChannelCreatedEvent = {
8586
8596
  if (message.status !== 0) {
8587
8597
  writer.uint32(72).int32(message.status);
8588
8598
  }
8599
+ if (message.is_parent_public === true) {
8600
+ writer.uint32(80).bool(message.is_parent_public);
8601
+ }
8589
8602
  return writer;
8590
8603
  },
8591
8604
  decode(input, length) {
@@ -8622,6 +8635,9 @@ var ChannelCreatedEvent = {
8622
8635
  case 9:
8623
8636
  message.status = reader.int32();
8624
8637
  break;
8638
+ case 10:
8639
+ message.is_parent_public = reader.bool();
8640
+ break;
8625
8641
  default:
8626
8642
  reader.skipType(tag & 7);
8627
8643
  break;
@@ -8639,7 +8655,8 @@ var ChannelCreatedEvent = {
8639
8655
  channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
8640
8656
  channel_private: isSet4(object.channel_private) ? Number(object.channel_private) : 0,
8641
8657
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
8642
- status: isSet4(object.status) ? Number(object.status) : 0
8658
+ status: isSet4(object.status) ? Number(object.status) : 0,
8659
+ is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
8643
8660
  };
8644
8661
  },
8645
8662
  toJSON(message) {
@@ -8653,13 +8670,14 @@ var ChannelCreatedEvent = {
8653
8670
  message.channel_private !== void 0 && (obj.channel_private = Math.round(message.channel_private));
8654
8671
  message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
8655
8672
  message.status !== void 0 && (obj.status = Math.round(message.status));
8673
+ message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
8656
8674
  return obj;
8657
8675
  },
8658
8676
  create(base) {
8659
8677
  return ChannelCreatedEvent.fromPartial(base != null ? base : {});
8660
8678
  },
8661
8679
  fromPartial(object) {
8662
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
8680
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8663
8681
  const message = createBaseChannelCreatedEvent();
8664
8682
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
8665
8683
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -8670,6 +8688,7 @@ var ChannelCreatedEvent = {
8670
8688
  message.channel_private = (_g = object.channel_private) != null ? _g : 0;
8671
8689
  message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
8672
8690
  message.status = (_i = object.status) != null ? _i : 0;
8691
+ message.is_parent_public = (_j = object.is_parent_public) != null ? _j : false;
8673
8692
  return message;
8674
8693
  }
8675
8694
  };
@@ -9433,7 +9452,16 @@ var AddUsers = {
9433
9452
  }
9434
9453
  };
9435
9454
  function createBaseUserChannelAdded() {
9436
- return { channel_id: "", users: [], status: "", clan_id: "", channel_type: 0, is_public: false };
9455
+ return {
9456
+ channel_id: "",
9457
+ users: [],
9458
+ status: "",
9459
+ clan_id: "",
9460
+ channel_type: 0,
9461
+ is_public: false,
9462
+ parent_id: "",
9463
+ is_parent_public: false
9464
+ };
9437
9465
  }
9438
9466
  var UserChannelAdded = {
9439
9467
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -9455,6 +9483,12 @@ var UserChannelAdded = {
9455
9483
  if (message.is_public === true) {
9456
9484
  writer.uint32(48).bool(message.is_public);
9457
9485
  }
9486
+ if (message.parent_id !== "") {
9487
+ writer.uint32(58).string(message.parent_id);
9488
+ }
9489
+ if (message.is_parent_public === true) {
9490
+ writer.uint32(64).bool(message.is_parent_public);
9491
+ }
9458
9492
  return writer;
9459
9493
  },
9460
9494
  decode(input, length) {
@@ -9482,6 +9516,12 @@ var UserChannelAdded = {
9482
9516
  case 6:
9483
9517
  message.is_public = reader.bool();
9484
9518
  break;
9519
+ case 7:
9520
+ message.parent_id = reader.string();
9521
+ break;
9522
+ case 8:
9523
+ message.is_parent_public = reader.bool();
9524
+ break;
9485
9525
  default:
9486
9526
  reader.skipType(tag & 7);
9487
9527
  break;
@@ -9496,7 +9536,9 @@ var UserChannelAdded = {
9496
9536
  status: isSet4(object.status) ? String(object.status) : "",
9497
9537
  clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
9498
9538
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
9499
- is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false
9539
+ is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false,
9540
+ parent_id: isSet4(object.parent_id) ? String(object.parent_id) : "",
9541
+ is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
9500
9542
  };
9501
9543
  },
9502
9544
  toJSON(message) {
@@ -9511,13 +9553,15 @@ var UserChannelAdded = {
9511
9553
  message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
9512
9554
  message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
9513
9555
  message.is_public !== void 0 && (obj.is_public = message.is_public);
9556
+ message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
9557
+ message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
9514
9558
  return obj;
9515
9559
  },
9516
9560
  create(base) {
9517
9561
  return UserChannelAdded.fromPartial(base != null ? base : {});
9518
9562
  },
9519
9563
  fromPartial(object) {
9520
- var _a, _b, _c, _d, _e, _f;
9564
+ var _a, _b, _c, _d, _e, _f, _g, _h;
9521
9565
  const message = createBaseUserChannelAdded();
9522
9566
  message.channel_id = (_a = object.channel_id) != null ? _a : "";
9523
9567
  message.users = ((_b = object.users) == null ? void 0 : _b.map((e) => AddUsers.fromPartial(e))) || [];
@@ -9525,6 +9569,8 @@ var UserChannelAdded = {
9525
9569
  message.clan_id = (_d = object.clan_id) != null ? _d : "";
9526
9570
  message.channel_type = (_e = object.channel_type) != null ? _e : 0;
9527
9571
  message.is_public = (_f = object.is_public) != null ? _f : false;
9572
+ message.parent_id = (_g = object.parent_id) != null ? _g : "";
9573
+ message.is_parent_public = (_h = object.is_parent_public) != null ? _h : false;
9528
9574
  return message;
9529
9575
  }
9530
9576
  };
@@ -6618,7 +6618,7 @@ var ClanJoin = {
6618
6618
  }
6619
6619
  };
6620
6620
  function createBaseChannelJoin() {
6621
- return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false };
6621
+ return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false, is_public: false };
6622
6622
  }
6623
6623
  var ChannelJoin = {
6624
6624
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -6637,6 +6637,9 @@ var ChannelJoin = {
6637
6637
  if (message.is_parent_public === true) {
6638
6638
  writer.uint32(40).bool(message.is_parent_public);
6639
6639
  }
6640
+ if (message.is_public === true) {
6641
+ writer.uint32(48).bool(message.is_public);
6642
+ }
6640
6643
  return writer;
6641
6644
  },
6642
6645
  decode(input, length) {
@@ -6661,6 +6664,9 @@ var ChannelJoin = {
6661
6664
  case 5:
6662
6665
  message.is_parent_public = reader.bool();
6663
6666
  break;
6667
+ case 6:
6668
+ message.is_public = reader.bool();
6669
+ break;
6664
6670
  default:
6665
6671
  reader.skipType(tag & 7);
6666
6672
  break;
@@ -6674,7 +6680,8 @@ var ChannelJoin = {
6674
6680
  channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
6675
6681
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
6676
6682
  parent_id: isSet4(object.parent_id) ? String(object.parent_id) : "",
6677
- is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
6683
+ is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
6684
+ is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false
6678
6685
  };
6679
6686
  },
6680
6687
  toJSON(message) {
@@ -6684,19 +6691,21 @@ var ChannelJoin = {
6684
6691
  message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
6685
6692
  message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
6686
6693
  message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
6694
+ message.is_public !== void 0 && (obj.is_public = message.is_public);
6687
6695
  return obj;
6688
6696
  },
6689
6697
  create(base) {
6690
6698
  return ChannelJoin.fromPartial(base != null ? base : {});
6691
6699
  },
6692
6700
  fromPartial(object) {
6693
- var _a, _b, _c, _d, _e;
6701
+ var _a, _b, _c, _d, _e, _f;
6694
6702
  const message = createBaseChannelJoin();
6695
6703
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
6696
6704
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
6697
6705
  message.channel_type = (_c = object.channel_type) != null ? _c : 0;
6698
6706
  message.parent_id = (_d = object.parent_id) != null ? _d : "";
6699
6707
  message.is_parent_public = (_e = object.is_parent_public) != null ? _e : false;
6708
+ message.is_public = (_f = object.is_public) != null ? _f : false;
6700
6709
  return message;
6701
6710
  }
6702
6711
  };
@@ -8541,7 +8550,8 @@ function createBaseChannelCreatedEvent() {
8541
8550
  channel_label: "",
8542
8551
  channel_private: 0,
8543
8552
  channel_type: void 0,
8544
- status: 0
8553
+ status: 0,
8554
+ is_parent_public: false
8545
8555
  };
8546
8556
  }
8547
8557
  var ChannelCreatedEvent = {
@@ -8573,6 +8583,9 @@ var ChannelCreatedEvent = {
8573
8583
  if (message.status !== 0) {
8574
8584
  writer.uint32(72).int32(message.status);
8575
8585
  }
8586
+ if (message.is_parent_public === true) {
8587
+ writer.uint32(80).bool(message.is_parent_public);
8588
+ }
8576
8589
  return writer;
8577
8590
  },
8578
8591
  decode(input, length) {
@@ -8609,6 +8622,9 @@ var ChannelCreatedEvent = {
8609
8622
  case 9:
8610
8623
  message.status = reader.int32();
8611
8624
  break;
8625
+ case 10:
8626
+ message.is_parent_public = reader.bool();
8627
+ break;
8612
8628
  default:
8613
8629
  reader.skipType(tag & 7);
8614
8630
  break;
@@ -8626,7 +8642,8 @@ var ChannelCreatedEvent = {
8626
8642
  channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
8627
8643
  channel_private: isSet4(object.channel_private) ? Number(object.channel_private) : 0,
8628
8644
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
8629
- status: isSet4(object.status) ? Number(object.status) : 0
8645
+ status: isSet4(object.status) ? Number(object.status) : 0,
8646
+ is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
8630
8647
  };
8631
8648
  },
8632
8649
  toJSON(message) {
@@ -8640,13 +8657,14 @@ var ChannelCreatedEvent = {
8640
8657
  message.channel_private !== void 0 && (obj.channel_private = Math.round(message.channel_private));
8641
8658
  message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
8642
8659
  message.status !== void 0 && (obj.status = Math.round(message.status));
8660
+ message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
8643
8661
  return obj;
8644
8662
  },
8645
8663
  create(base) {
8646
8664
  return ChannelCreatedEvent.fromPartial(base != null ? base : {});
8647
8665
  },
8648
8666
  fromPartial(object) {
8649
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
8667
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8650
8668
  const message = createBaseChannelCreatedEvent();
8651
8669
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
8652
8670
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -8657,6 +8675,7 @@ var ChannelCreatedEvent = {
8657
8675
  message.channel_private = (_g = object.channel_private) != null ? _g : 0;
8658
8676
  message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
8659
8677
  message.status = (_i = object.status) != null ? _i : 0;
8678
+ message.is_parent_public = (_j = object.is_parent_public) != null ? _j : false;
8660
8679
  return message;
8661
8680
  }
8662
8681
  };
@@ -9420,7 +9439,16 @@ var AddUsers = {
9420
9439
  }
9421
9440
  };
9422
9441
  function createBaseUserChannelAdded() {
9423
- return { channel_id: "", users: [], status: "", clan_id: "", channel_type: 0, is_public: false };
9442
+ return {
9443
+ channel_id: "",
9444
+ users: [],
9445
+ status: "",
9446
+ clan_id: "",
9447
+ channel_type: 0,
9448
+ is_public: false,
9449
+ parent_id: "",
9450
+ is_parent_public: false
9451
+ };
9424
9452
  }
9425
9453
  var UserChannelAdded = {
9426
9454
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -9442,6 +9470,12 @@ var UserChannelAdded = {
9442
9470
  if (message.is_public === true) {
9443
9471
  writer.uint32(48).bool(message.is_public);
9444
9472
  }
9473
+ if (message.parent_id !== "") {
9474
+ writer.uint32(58).string(message.parent_id);
9475
+ }
9476
+ if (message.is_parent_public === true) {
9477
+ writer.uint32(64).bool(message.is_parent_public);
9478
+ }
9445
9479
  return writer;
9446
9480
  },
9447
9481
  decode(input, length) {
@@ -9469,6 +9503,12 @@ var UserChannelAdded = {
9469
9503
  case 6:
9470
9504
  message.is_public = reader.bool();
9471
9505
  break;
9506
+ case 7:
9507
+ message.parent_id = reader.string();
9508
+ break;
9509
+ case 8:
9510
+ message.is_parent_public = reader.bool();
9511
+ break;
9472
9512
  default:
9473
9513
  reader.skipType(tag & 7);
9474
9514
  break;
@@ -9483,7 +9523,9 @@ var UserChannelAdded = {
9483
9523
  status: isSet4(object.status) ? String(object.status) : "",
9484
9524
  clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
9485
9525
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
9486
- is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false
9526
+ is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false,
9527
+ parent_id: isSet4(object.parent_id) ? String(object.parent_id) : "",
9528
+ is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
9487
9529
  };
9488
9530
  },
9489
9531
  toJSON(message) {
@@ -9498,13 +9540,15 @@ var UserChannelAdded = {
9498
9540
  message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
9499
9541
  message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
9500
9542
  message.is_public !== void 0 && (obj.is_public = message.is_public);
9543
+ message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
9544
+ message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
9501
9545
  return obj;
9502
9546
  },
9503
9547
  create(base) {
9504
9548
  return UserChannelAdded.fromPartial(base != null ? base : {});
9505
9549
  },
9506
9550
  fromPartial(object) {
9507
- var _a, _b, _c, _d, _e, _f;
9551
+ var _a, _b, _c, _d, _e, _f, _g, _h;
9508
9552
  const message = createBaseUserChannelAdded();
9509
9553
  message.channel_id = (_a = object.channel_id) != null ? _a : "";
9510
9554
  message.users = ((_b = object.users) == null ? void 0 : _b.map((e) => AddUsers.fromPartial(e))) || [];
@@ -9512,6 +9556,8 @@ var UserChannelAdded = {
9512
9556
  message.clan_id = (_d = object.clan_id) != null ? _d : "";
9513
9557
  message.channel_type = (_e = object.channel_type) != null ? _e : 0;
9514
9558
  message.is_public = (_f = object.is_public) != null ? _f : false;
9559
+ message.parent_id = (_g = object.parent_id) != null ? _g : "";
9560
+ message.is_parent_public = (_h = object.is_parent_public) != null ? _h : false;
9515
9561
  return message;
9516
9562
  }
9517
9563
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.5.44",
3
+ "version": "1.5.46",
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",
package/rtapi/realtime.ts CHANGED
@@ -445,6 +445,8 @@ export interface ChannelJoin {
445
445
  parent_id: string;
446
446
  /** parent public */
447
447
  is_parent_public: boolean;
448
+ /** is public */
449
+ is_public: boolean;
448
450
  }
449
451
 
450
452
  /** Leave a realtime channel. */
@@ -835,6 +837,8 @@ export interface ChannelCreatedEvent {
835
837
  | undefined;
836
838
  /** status */
837
839
  status: number;
840
+ /** is parent public */
841
+ is_parent_public: boolean;
838
842
  }
839
843
 
840
844
  export interface ChannelDeletedEvent {
@@ -976,6 +980,10 @@ export interface UserChannelAdded {
976
980
  channel_type: number;
977
981
  /** is public */
978
982
  is_public: boolean;
983
+ /** the parent_id */
984
+ parent_id: string;
985
+ /** parent public */
986
+ is_parent_public: boolean;
979
987
  }
980
988
 
981
989
  /** */
@@ -3500,7 +3508,7 @@ export const ClanJoin = {
3500
3508
  };
3501
3509
 
3502
3510
  function createBaseChannelJoin(): ChannelJoin {
3503
- return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false };
3511
+ return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false, is_public: false };
3504
3512
  }
3505
3513
 
3506
3514
  export const ChannelJoin = {
@@ -3520,6 +3528,9 @@ export const ChannelJoin = {
3520
3528
  if (message.is_parent_public === true) {
3521
3529
  writer.uint32(40).bool(message.is_parent_public);
3522
3530
  }
3531
+ if (message.is_public === true) {
3532
+ writer.uint32(48).bool(message.is_public);
3533
+ }
3523
3534
  return writer;
3524
3535
  },
3525
3536
 
@@ -3545,6 +3556,9 @@ export const ChannelJoin = {
3545
3556
  case 5:
3546
3557
  message.is_parent_public = reader.bool();
3547
3558
  break;
3559
+ case 6:
3560
+ message.is_public = reader.bool();
3561
+ break;
3548
3562
  default:
3549
3563
  reader.skipType(tag & 7);
3550
3564
  break;
@@ -3560,6 +3574,7 @@ export const ChannelJoin = {
3560
3574
  channel_type: isSet(object.channel_type) ? Number(object.channel_type) : 0,
3561
3575
  parent_id: isSet(object.parent_id) ? String(object.parent_id) : "",
3562
3576
  is_parent_public: isSet(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
3577
+ is_public: isSet(object.is_public) ? Boolean(object.is_public) : false,
3563
3578
  };
3564
3579
  },
3565
3580
 
@@ -3570,6 +3585,7 @@ export const ChannelJoin = {
3570
3585
  message.channel_type !== undefined && (obj.channel_type = Math.round(message.channel_type));
3571
3586
  message.parent_id !== undefined && (obj.parent_id = message.parent_id);
3572
3587
  message.is_parent_public !== undefined && (obj.is_parent_public = message.is_parent_public);
3588
+ message.is_public !== undefined && (obj.is_public = message.is_public);
3573
3589
  return obj;
3574
3590
  },
3575
3591
 
@@ -3584,6 +3600,7 @@ export const ChannelJoin = {
3584
3600
  message.channel_type = object.channel_type ?? 0;
3585
3601
  message.parent_id = object.parent_id ?? "";
3586
3602
  message.is_parent_public = object.is_parent_public ?? false;
3603
+ message.is_public = object.is_public ?? false;
3587
3604
  return message;
3588
3605
  },
3589
3606
  };
@@ -5566,6 +5583,7 @@ function createBaseChannelCreatedEvent(): ChannelCreatedEvent {
5566
5583
  channel_private: 0,
5567
5584
  channel_type: undefined,
5568
5585
  status: 0,
5586
+ is_parent_public: false,
5569
5587
  };
5570
5588
  }
5571
5589
 
@@ -5598,6 +5616,9 @@ export const ChannelCreatedEvent = {
5598
5616
  if (message.status !== 0) {
5599
5617
  writer.uint32(72).int32(message.status);
5600
5618
  }
5619
+ if (message.is_parent_public === true) {
5620
+ writer.uint32(80).bool(message.is_parent_public);
5621
+ }
5601
5622
  return writer;
5602
5623
  },
5603
5624
 
@@ -5635,6 +5656,9 @@ export const ChannelCreatedEvent = {
5635
5656
  case 9:
5636
5657
  message.status = reader.int32();
5637
5658
  break;
5659
+ case 10:
5660
+ message.is_parent_public = reader.bool();
5661
+ break;
5638
5662
  default:
5639
5663
  reader.skipType(tag & 7);
5640
5664
  break;
@@ -5654,6 +5678,7 @@ export const ChannelCreatedEvent = {
5654
5678
  channel_private: isSet(object.channel_private) ? Number(object.channel_private) : 0,
5655
5679
  channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
5656
5680
  status: isSet(object.status) ? Number(object.status) : 0,
5681
+ is_parent_public: isSet(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
5657
5682
  };
5658
5683
  },
5659
5684
 
@@ -5668,6 +5693,7 @@ export const ChannelCreatedEvent = {
5668
5693
  message.channel_private !== undefined && (obj.channel_private = Math.round(message.channel_private));
5669
5694
  message.channel_type !== undefined && (obj.channel_type = message.channel_type);
5670
5695
  message.status !== undefined && (obj.status = Math.round(message.status));
5696
+ message.is_parent_public !== undefined && (obj.is_parent_public = message.is_parent_public);
5671
5697
  return obj;
5672
5698
  },
5673
5699
 
@@ -5686,6 +5712,7 @@ export const ChannelCreatedEvent = {
5686
5712
  message.channel_private = object.channel_private ?? 0;
5687
5713
  message.channel_type = object.channel_type ?? undefined;
5688
5714
  message.status = object.status ?? 0;
5715
+ message.is_parent_public = object.is_parent_public ?? false;
5689
5716
  return message;
5690
5717
  },
5691
5718
  };
@@ -6516,7 +6543,16 @@ export const AddUsers = {
6516
6543
  };
6517
6544
 
6518
6545
  function createBaseUserChannelAdded(): UserChannelAdded {
6519
- return { channel_id: "", users: [], status: "", clan_id: "", channel_type: 0, is_public: false };
6546
+ return {
6547
+ channel_id: "",
6548
+ users: [],
6549
+ status: "",
6550
+ clan_id: "",
6551
+ channel_type: 0,
6552
+ is_public: false,
6553
+ parent_id: "",
6554
+ is_parent_public: false,
6555
+ };
6520
6556
  }
6521
6557
 
6522
6558
  export const UserChannelAdded = {
@@ -6539,6 +6575,12 @@ export const UserChannelAdded = {
6539
6575
  if (message.is_public === true) {
6540
6576
  writer.uint32(48).bool(message.is_public);
6541
6577
  }
6578
+ if (message.parent_id !== "") {
6579
+ writer.uint32(58).string(message.parent_id);
6580
+ }
6581
+ if (message.is_parent_public === true) {
6582
+ writer.uint32(64).bool(message.is_parent_public);
6583
+ }
6542
6584
  return writer;
6543
6585
  },
6544
6586
 
@@ -6567,6 +6609,12 @@ export const UserChannelAdded = {
6567
6609
  case 6:
6568
6610
  message.is_public = reader.bool();
6569
6611
  break;
6612
+ case 7:
6613
+ message.parent_id = reader.string();
6614
+ break;
6615
+ case 8:
6616
+ message.is_parent_public = reader.bool();
6617
+ break;
6570
6618
  default:
6571
6619
  reader.skipType(tag & 7);
6572
6620
  break;
@@ -6583,6 +6631,8 @@ export const UserChannelAdded = {
6583
6631
  clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
6584
6632
  channel_type: isSet(object.channel_type) ? Number(object.channel_type) : 0,
6585
6633
  is_public: isSet(object.is_public) ? Boolean(object.is_public) : false,
6634
+ parent_id: isSet(object.parent_id) ? String(object.parent_id) : "",
6635
+ is_parent_public: isSet(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
6586
6636
  };
6587
6637
  },
6588
6638
 
@@ -6598,6 +6648,8 @@ export const UserChannelAdded = {
6598
6648
  message.clan_id !== undefined && (obj.clan_id = message.clan_id);
6599
6649
  message.channel_type !== undefined && (obj.channel_type = Math.round(message.channel_type));
6600
6650
  message.is_public !== undefined && (obj.is_public = message.is_public);
6651
+ message.parent_id !== undefined && (obj.parent_id = message.parent_id);
6652
+ message.is_parent_public !== undefined && (obj.is_parent_public = message.is_parent_public);
6601
6653
  return obj;
6602
6654
  },
6603
6655
 
@@ -6613,6 +6665,8 @@ export const UserChannelAdded = {
6613
6665
  message.clan_id = object.clan_id ?? "";
6614
6666
  message.channel_type = object.channel_type ?? 0;
6615
6667
  message.is_public = object.is_public ?? false;
6668
+ message.parent_id = object.parent_id ?? "";
6669
+ message.is_parent_public = object.is_parent_public ?? false;
6616
6670
  return message;
6617
6671
  },
6618
6672
  };