mezon-js-protobuf 1.5.43 → 1.5.45

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.
@@ -286,6 +286,10 @@ export interface ChannelJoin {
286
286
  channel_id: string;
287
287
  /** channel type */
288
288
  channel_type: number;
289
+ /** the parent_id */
290
+ parent_id: string;
291
+ /** parent public */
292
+ is_parent_public: boolean;
289
293
  }
290
294
  /** Leave a realtime channel. */
291
295
  export interface ChannelLeave {
@@ -590,6 +594,8 @@ export interface ChannelCreatedEvent {
590
594
  channel_type: number | undefined;
591
595
  /** status */
592
596
  status: number;
597
+ /** is parent public */
598
+ is_parent_public: boolean;
593
599
  }
594
600
  export interface ChannelDeletedEvent {
595
601
  /** clan id */
@@ -712,6 +718,10 @@ export interface UserChannelAdded {
712
718
  channel_type: number;
713
719
  /** is public */
714
720
  is_public: boolean;
721
+ /** the parent_id */
722
+ parent_id: string;
723
+ /** parent public */
724
+ is_parent_public: boolean;
715
725
  }
716
726
  /** */
717
727
  export interface UserChannelRemoved {
@@ -886,6 +896,8 @@ export declare const Envelope: {
886
896
  clan_id?: string | undefined;
887
897
  channel_id?: string | undefined;
888
898
  channel_type?: number | undefined;
899
+ parent_id?: string | undefined;
900
+ is_parent_public?: boolean | undefined;
889
901
  } | undefined;
890
902
  channel_leave?: {
891
903
  clan_id?: string | undefined;
@@ -1204,6 +1216,7 @@ export declare const Envelope: {
1204
1216
  channel_private?: number | undefined;
1205
1217
  channel_type?: number | undefined;
1206
1218
  status?: number | undefined;
1219
+ is_parent_public?: boolean | undefined;
1207
1220
  } | undefined;
1208
1221
  channel_deleted_event?: {
1209
1222
  clan_id?: string | undefined;
@@ -1253,6 +1266,8 @@ export declare const Envelope: {
1253
1266
  clan_id?: string | undefined;
1254
1267
  channel_type?: number | undefined;
1255
1268
  is_public?: boolean | undefined;
1269
+ parent_id?: string | undefined;
1270
+ is_parent_public?: boolean | undefined;
1256
1271
  } | undefined;
1257
1272
  user_channel_removed_event?: {
1258
1273
  channel_id?: string | undefined;
@@ -1584,10 +1599,14 @@ export declare const Envelope: {
1584
1599
  clan_id?: string | undefined;
1585
1600
  channel_id?: string | undefined;
1586
1601
  channel_type?: number | undefined;
1602
+ parent_id?: string | undefined;
1603
+ is_parent_public?: boolean | undefined;
1587
1604
  } & {
1588
1605
  clan_id?: string | undefined;
1589
1606
  channel_id?: string | undefined;
1590
1607
  channel_type?: number | undefined;
1608
+ parent_id?: string | undefined;
1609
+ is_parent_public?: boolean | undefined;
1591
1610
  } & { [K_5 in Exclude<keyof I["channel_join"], keyof ChannelJoin>]: never; }) | undefined;
1592
1611
  channel_leave?: ({
1593
1612
  clan_id?: string | undefined;
@@ -2496,6 +2515,7 @@ export declare const Envelope: {
2496
2515
  channel_private?: number | undefined;
2497
2516
  channel_type?: number | undefined;
2498
2517
  status?: number | undefined;
2518
+ is_parent_public?: boolean | undefined;
2499
2519
  } & {
2500
2520
  clan_id?: string | undefined;
2501
2521
  category_id?: string | undefined;
@@ -2506,6 +2526,7 @@ export declare const Envelope: {
2506
2526
  channel_private?: number | undefined;
2507
2527
  channel_type?: number | undefined;
2508
2528
  status?: number | undefined;
2529
+ is_parent_public?: boolean | undefined;
2509
2530
  } & { [K_65 in Exclude<keyof I["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
2510
2531
  channel_deleted_event?: ({
2511
2532
  clan_id?: string | undefined;
@@ -2588,6 +2609,8 @@ export declare const Envelope: {
2588
2609
  clan_id?: string | undefined;
2589
2610
  channel_type?: number | undefined;
2590
2611
  is_public?: boolean | undefined;
2612
+ parent_id?: string | undefined;
2613
+ is_parent_public?: boolean | undefined;
2591
2614
  } & {
2592
2615
  channel_id?: string | undefined;
2593
2616
  users?: ({
@@ -2611,6 +2634,8 @@ export declare const Envelope: {
2611
2634
  clan_id?: string | undefined;
2612
2635
  channel_type?: number | undefined;
2613
2636
  is_public?: boolean | undefined;
2637
+ parent_id?: string | undefined;
2638
+ is_parent_public?: boolean | undefined;
2614
2639
  } & { [K_72 in Exclude<keyof I["user_channel_added_event"], keyof UserChannelAdded>]: never; }) | undefined;
2615
2640
  user_channel_removed_event?: ({
2616
2641
  channel_id?: string | undefined;
@@ -3638,6 +3663,8 @@ export declare const Envelope: {
3638
3663
  clan_id?: string | undefined;
3639
3664
  channel_id?: string | undefined;
3640
3665
  channel_type?: number | undefined;
3666
+ parent_id?: string | undefined;
3667
+ is_parent_public?: boolean | undefined;
3641
3668
  } | undefined;
3642
3669
  channel_leave?: {
3643
3670
  clan_id?: string | undefined;
@@ -3956,6 +3983,7 @@ export declare const Envelope: {
3956
3983
  channel_private?: number | undefined;
3957
3984
  channel_type?: number | undefined;
3958
3985
  status?: number | undefined;
3986
+ is_parent_public?: boolean | undefined;
3959
3987
  } | undefined;
3960
3988
  channel_deleted_event?: {
3961
3989
  clan_id?: string | undefined;
@@ -4005,6 +4033,8 @@ export declare const Envelope: {
4005
4033
  clan_id?: string | undefined;
4006
4034
  channel_type?: number | undefined;
4007
4035
  is_public?: boolean | undefined;
4036
+ parent_id?: string | undefined;
4037
+ is_parent_public?: boolean | undefined;
4008
4038
  } | undefined;
4009
4039
  user_channel_removed_event?: {
4010
4040
  channel_id?: string | undefined;
@@ -4336,10 +4366,14 @@ export declare const Envelope: {
4336
4366
  clan_id?: string | undefined;
4337
4367
  channel_id?: string | undefined;
4338
4368
  channel_type?: number | undefined;
4369
+ parent_id?: string | undefined;
4370
+ is_parent_public?: boolean | undefined;
4339
4371
  } & {
4340
4372
  clan_id?: string | undefined;
4341
4373
  channel_id?: string | undefined;
4342
4374
  channel_type?: number | undefined;
4375
+ parent_id?: string | undefined;
4376
+ is_parent_public?: boolean | undefined;
4343
4377
  } & { [K_139 in Exclude<keyof I_1["channel_join"], keyof ChannelJoin>]: never; }) | undefined;
4344
4378
  channel_leave?: ({
4345
4379
  clan_id?: string | undefined;
@@ -5248,6 +5282,7 @@ export declare const Envelope: {
5248
5282
  channel_private?: number | undefined;
5249
5283
  channel_type?: number | undefined;
5250
5284
  status?: number | undefined;
5285
+ is_parent_public?: boolean | undefined;
5251
5286
  } & {
5252
5287
  clan_id?: string | undefined;
5253
5288
  category_id?: string | undefined;
@@ -5258,6 +5293,7 @@ export declare const Envelope: {
5258
5293
  channel_private?: number | undefined;
5259
5294
  channel_type?: number | undefined;
5260
5295
  status?: number | undefined;
5296
+ is_parent_public?: boolean | undefined;
5261
5297
  } & { [K_199 in Exclude<keyof I_1["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
5262
5298
  channel_deleted_event?: ({
5263
5299
  clan_id?: string | undefined;
@@ -5340,6 +5376,8 @@ export declare const Envelope: {
5340
5376
  clan_id?: string | undefined;
5341
5377
  channel_type?: number | undefined;
5342
5378
  is_public?: boolean | undefined;
5379
+ parent_id?: string | undefined;
5380
+ is_parent_public?: boolean | undefined;
5343
5381
  } & {
5344
5382
  channel_id?: string | undefined;
5345
5383
  users?: ({
@@ -5363,6 +5401,8 @@ export declare const Envelope: {
5363
5401
  clan_id?: string | undefined;
5364
5402
  channel_type?: number | undefined;
5365
5403
  is_public?: boolean | undefined;
5404
+ parent_id?: string | undefined;
5405
+ is_parent_public?: boolean | undefined;
5366
5406
  } & { [K_206 in Exclude<keyof I_1["user_channel_added_event"], keyof UserChannelAdded>]: never; }) | undefined;
5367
5407
  user_channel_removed_event?: ({
5368
5408
  channel_id?: string | undefined;
@@ -8425,19 +8465,27 @@ export declare const ChannelJoin: {
8425
8465
  clan_id?: string | undefined;
8426
8466
  channel_id?: string | undefined;
8427
8467
  channel_type?: number | undefined;
8468
+ parent_id?: string | undefined;
8469
+ is_parent_public?: boolean | undefined;
8428
8470
  } & {
8429
8471
  clan_id?: string | undefined;
8430
8472
  channel_id?: string | undefined;
8431
8473
  channel_type?: number | undefined;
8474
+ parent_id?: string | undefined;
8475
+ is_parent_public?: boolean | undefined;
8432
8476
  } & { [K in Exclude<keyof I, keyof ChannelJoin>]: never; }>(base?: I | undefined): ChannelJoin;
8433
8477
  fromPartial<I_1 extends {
8434
8478
  clan_id?: string | undefined;
8435
8479
  channel_id?: string | undefined;
8436
8480
  channel_type?: number | undefined;
8481
+ parent_id?: string | undefined;
8482
+ is_parent_public?: boolean | undefined;
8437
8483
  } & {
8438
8484
  clan_id?: string | undefined;
8439
8485
  channel_id?: string | undefined;
8440
8486
  channel_type?: number | undefined;
8487
+ parent_id?: string | undefined;
8488
+ is_parent_public?: boolean | undefined;
8441
8489
  } & { [K_1 in Exclude<keyof I_1, keyof ChannelJoin>]: never; }>(object: I_1): ChannelJoin;
8442
8490
  };
8443
8491
  export declare const ChannelLeave: {
@@ -9961,6 +10009,7 @@ export declare const ChannelCreatedEvent: {
9961
10009
  channel_private?: number | undefined;
9962
10010
  channel_type?: number | undefined;
9963
10011
  status?: number | undefined;
10012
+ is_parent_public?: boolean | undefined;
9964
10013
  } & {
9965
10014
  clan_id?: string | undefined;
9966
10015
  category_id?: string | undefined;
@@ -9971,6 +10020,7 @@ export declare const ChannelCreatedEvent: {
9971
10020
  channel_private?: number | undefined;
9972
10021
  channel_type?: number | undefined;
9973
10022
  status?: number | undefined;
10023
+ is_parent_public?: boolean | undefined;
9974
10024
  } & { [K in Exclude<keyof I, keyof ChannelCreatedEvent>]: never; }>(base?: I | undefined): ChannelCreatedEvent;
9975
10025
  fromPartial<I_1 extends {
9976
10026
  clan_id?: string | undefined;
@@ -9982,6 +10032,7 @@ export declare const ChannelCreatedEvent: {
9982
10032
  channel_private?: number | undefined;
9983
10033
  channel_type?: number | undefined;
9984
10034
  status?: number | undefined;
10035
+ is_parent_public?: boolean | undefined;
9985
10036
  } & {
9986
10037
  clan_id?: string | undefined;
9987
10038
  category_id?: string | undefined;
@@ -9992,6 +10043,7 @@ export declare const ChannelCreatedEvent: {
9992
10043
  channel_private?: number | undefined;
9993
10044
  channel_type?: number | undefined;
9994
10045
  status?: number | undefined;
10046
+ is_parent_public?: boolean | undefined;
9995
10047
  } & { [K_1 in Exclude<keyof I_1, keyof ChannelCreatedEvent>]: never; }>(object: I_1): ChannelCreatedEvent;
9996
10048
  };
9997
10049
  export declare const ChannelDeletedEvent: {
@@ -10506,6 +10558,8 @@ export declare const UserChannelAdded: {
10506
10558
  clan_id?: string | undefined;
10507
10559
  channel_type?: number | undefined;
10508
10560
  is_public?: boolean | undefined;
10561
+ parent_id?: string | undefined;
10562
+ is_parent_public?: boolean | undefined;
10509
10563
  } & {
10510
10564
  channel_id?: string | undefined;
10511
10565
  users?: ({
@@ -10529,6 +10583,8 @@ export declare const UserChannelAdded: {
10529
10583
  clan_id?: string | undefined;
10530
10584
  channel_type?: number | undefined;
10531
10585
  is_public?: boolean | undefined;
10586
+ parent_id?: string | undefined;
10587
+ is_parent_public?: boolean | undefined;
10532
10588
  } & { [K_2 in Exclude<keyof I, keyof UserChannelAdded>]: never; }>(base?: I | undefined): UserChannelAdded;
10533
10589
  fromPartial<I_1 extends {
10534
10590
  channel_id?: string | undefined;
@@ -10541,6 +10597,8 @@ export declare const UserChannelAdded: {
10541
10597
  clan_id?: string | undefined;
10542
10598
  channel_type?: number | undefined;
10543
10599
  is_public?: boolean | undefined;
10600
+ parent_id?: string | undefined;
10601
+ is_parent_public?: boolean | undefined;
10544
10602
  } & {
10545
10603
  channel_id?: string | undefined;
10546
10604
  users?: ({
@@ -10564,6 +10622,8 @@ export declare const UserChannelAdded: {
10564
10622
  clan_id?: string | undefined;
10565
10623
  channel_type?: number | undefined;
10566
10624
  is_public?: boolean | undefined;
10625
+ parent_id?: string | undefined;
10626
+ is_parent_public?: boolean | undefined;
10567
10627
  } & { [K_5 in Exclude<keyof I_1, keyof UserChannelAdded>]: never; }>(object: I_1): UserChannelAdded;
10568
10628
  };
10569
10629
  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 };
6634
+ return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false };
6635
6635
  }
6636
6636
  var ChannelJoin = {
6637
6637
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -6644,6 +6644,12 @@ var ChannelJoin = {
6644
6644
  if (message.channel_type !== 0) {
6645
6645
  writer.uint32(24).int32(message.channel_type);
6646
6646
  }
6647
+ if (message.parent_id !== "") {
6648
+ writer.uint32(34).string(message.parent_id);
6649
+ }
6650
+ if (message.is_parent_public === true) {
6651
+ writer.uint32(40).bool(message.is_parent_public);
6652
+ }
6647
6653
  return writer;
6648
6654
  },
6649
6655
  decode(input, length) {
@@ -6662,6 +6668,12 @@ var ChannelJoin = {
6662
6668
  case 3:
6663
6669
  message.channel_type = reader.int32();
6664
6670
  break;
6671
+ case 4:
6672
+ message.parent_id = reader.string();
6673
+ break;
6674
+ case 5:
6675
+ message.is_parent_public = reader.bool();
6676
+ break;
6665
6677
  default:
6666
6678
  reader.skipType(tag & 7);
6667
6679
  break;
@@ -6673,7 +6685,9 @@ var ChannelJoin = {
6673
6685
  return {
6674
6686
  clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
6675
6687
  channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
6676
- channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0
6688
+ channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
6689
+ 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
6677
6691
  };
6678
6692
  },
6679
6693
  toJSON(message) {
@@ -6681,17 +6695,21 @@ var ChannelJoin = {
6681
6695
  message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
6682
6696
  message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
6683
6697
  message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
6698
+ message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
6699
+ message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
6684
6700
  return obj;
6685
6701
  },
6686
6702
  create(base) {
6687
6703
  return ChannelJoin.fromPartial(base != null ? base : {});
6688
6704
  },
6689
6705
  fromPartial(object) {
6690
- var _a, _b, _c;
6706
+ var _a, _b, _c, _d, _e;
6691
6707
  const message = createBaseChannelJoin();
6692
6708
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
6693
6709
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
6694
6710
  message.channel_type = (_c = object.channel_type) != null ? _c : 0;
6711
+ message.parent_id = (_d = object.parent_id) != null ? _d : "";
6712
+ message.is_parent_public = (_e = object.is_parent_public) != null ? _e : false;
6695
6713
  return message;
6696
6714
  }
6697
6715
  };
@@ -8536,7 +8554,8 @@ function createBaseChannelCreatedEvent() {
8536
8554
  channel_label: "",
8537
8555
  channel_private: 0,
8538
8556
  channel_type: void 0,
8539
- status: 0
8557
+ status: 0,
8558
+ is_parent_public: false
8540
8559
  };
8541
8560
  }
8542
8561
  var ChannelCreatedEvent = {
@@ -8568,6 +8587,9 @@ var ChannelCreatedEvent = {
8568
8587
  if (message.status !== 0) {
8569
8588
  writer.uint32(72).int32(message.status);
8570
8589
  }
8590
+ if (message.is_parent_public === true) {
8591
+ writer.uint32(80).bool(message.is_parent_public);
8592
+ }
8571
8593
  return writer;
8572
8594
  },
8573
8595
  decode(input, length) {
@@ -8604,6 +8626,9 @@ var ChannelCreatedEvent = {
8604
8626
  case 9:
8605
8627
  message.status = reader.int32();
8606
8628
  break;
8629
+ case 10:
8630
+ message.is_parent_public = reader.bool();
8631
+ break;
8607
8632
  default:
8608
8633
  reader.skipType(tag & 7);
8609
8634
  break;
@@ -8621,7 +8646,8 @@ var ChannelCreatedEvent = {
8621
8646
  channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
8622
8647
  channel_private: isSet4(object.channel_private) ? Number(object.channel_private) : 0,
8623
8648
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
8624
- status: isSet4(object.status) ? Number(object.status) : 0
8649
+ status: isSet4(object.status) ? Number(object.status) : 0,
8650
+ is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
8625
8651
  };
8626
8652
  },
8627
8653
  toJSON(message) {
@@ -8635,13 +8661,14 @@ var ChannelCreatedEvent = {
8635
8661
  message.channel_private !== void 0 && (obj.channel_private = Math.round(message.channel_private));
8636
8662
  message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
8637
8663
  message.status !== void 0 && (obj.status = Math.round(message.status));
8664
+ message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
8638
8665
  return obj;
8639
8666
  },
8640
8667
  create(base) {
8641
8668
  return ChannelCreatedEvent.fromPartial(base != null ? base : {});
8642
8669
  },
8643
8670
  fromPartial(object) {
8644
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
8671
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8645
8672
  const message = createBaseChannelCreatedEvent();
8646
8673
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
8647
8674
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -8652,6 +8679,7 @@ var ChannelCreatedEvent = {
8652
8679
  message.channel_private = (_g = object.channel_private) != null ? _g : 0;
8653
8680
  message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
8654
8681
  message.status = (_i = object.status) != null ? _i : 0;
8682
+ message.is_parent_public = (_j = object.is_parent_public) != null ? _j : false;
8655
8683
  return message;
8656
8684
  }
8657
8685
  };
@@ -9415,7 +9443,16 @@ var AddUsers = {
9415
9443
  }
9416
9444
  };
9417
9445
  function createBaseUserChannelAdded() {
9418
- return { channel_id: "", users: [], status: "", clan_id: "", channel_type: 0, is_public: false };
9446
+ return {
9447
+ channel_id: "",
9448
+ users: [],
9449
+ status: "",
9450
+ clan_id: "",
9451
+ channel_type: 0,
9452
+ is_public: false,
9453
+ parent_id: "",
9454
+ is_parent_public: false
9455
+ };
9419
9456
  }
9420
9457
  var UserChannelAdded = {
9421
9458
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -9437,6 +9474,12 @@ var UserChannelAdded = {
9437
9474
  if (message.is_public === true) {
9438
9475
  writer.uint32(48).bool(message.is_public);
9439
9476
  }
9477
+ if (message.parent_id !== "") {
9478
+ writer.uint32(58).string(message.parent_id);
9479
+ }
9480
+ if (message.is_parent_public === true) {
9481
+ writer.uint32(64).bool(message.is_parent_public);
9482
+ }
9440
9483
  return writer;
9441
9484
  },
9442
9485
  decode(input, length) {
@@ -9464,6 +9507,12 @@ var UserChannelAdded = {
9464
9507
  case 6:
9465
9508
  message.is_public = reader.bool();
9466
9509
  break;
9510
+ case 7:
9511
+ message.parent_id = reader.string();
9512
+ break;
9513
+ case 8:
9514
+ message.is_parent_public = reader.bool();
9515
+ break;
9467
9516
  default:
9468
9517
  reader.skipType(tag & 7);
9469
9518
  break;
@@ -9478,7 +9527,9 @@ var UserChannelAdded = {
9478
9527
  status: isSet4(object.status) ? String(object.status) : "",
9479
9528
  clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
9480
9529
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
9481
- is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false
9530
+ is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false,
9531
+ parent_id: isSet4(object.parent_id) ? String(object.parent_id) : "",
9532
+ is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
9482
9533
  };
9483
9534
  },
9484
9535
  toJSON(message) {
@@ -9493,13 +9544,15 @@ var UserChannelAdded = {
9493
9544
  message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
9494
9545
  message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
9495
9546
  message.is_public !== void 0 && (obj.is_public = message.is_public);
9547
+ message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
9548
+ message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
9496
9549
  return obj;
9497
9550
  },
9498
9551
  create(base) {
9499
9552
  return UserChannelAdded.fromPartial(base != null ? base : {});
9500
9553
  },
9501
9554
  fromPartial(object) {
9502
- var _a, _b, _c, _d, _e, _f;
9555
+ var _a, _b, _c, _d, _e, _f, _g, _h;
9503
9556
  const message = createBaseUserChannelAdded();
9504
9557
  message.channel_id = (_a = object.channel_id) != null ? _a : "";
9505
9558
  message.users = ((_b = object.users) == null ? void 0 : _b.map((e) => AddUsers.fromPartial(e))) || [];
@@ -9507,6 +9560,8 @@ var UserChannelAdded = {
9507
9560
  message.clan_id = (_d = object.clan_id) != null ? _d : "";
9508
9561
  message.channel_type = (_e = object.channel_type) != null ? _e : 0;
9509
9562
  message.is_public = (_f = object.is_public) != null ? _f : false;
9563
+ message.parent_id = (_g = object.parent_id) != null ? _g : "";
9564
+ message.is_parent_public = (_h = object.is_parent_public) != null ? _h : false;
9510
9565
  return message;
9511
9566
  }
9512
9567
  };
@@ -6618,7 +6618,7 @@ var ClanJoin = {
6618
6618
  }
6619
6619
  };
6620
6620
  function createBaseChannelJoin() {
6621
- return { clan_id: "", channel_id: "", channel_type: 0 };
6621
+ return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false };
6622
6622
  }
6623
6623
  var ChannelJoin = {
6624
6624
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -6631,6 +6631,12 @@ var ChannelJoin = {
6631
6631
  if (message.channel_type !== 0) {
6632
6632
  writer.uint32(24).int32(message.channel_type);
6633
6633
  }
6634
+ if (message.parent_id !== "") {
6635
+ writer.uint32(34).string(message.parent_id);
6636
+ }
6637
+ if (message.is_parent_public === true) {
6638
+ writer.uint32(40).bool(message.is_parent_public);
6639
+ }
6634
6640
  return writer;
6635
6641
  },
6636
6642
  decode(input, length) {
@@ -6649,6 +6655,12 @@ var ChannelJoin = {
6649
6655
  case 3:
6650
6656
  message.channel_type = reader.int32();
6651
6657
  break;
6658
+ case 4:
6659
+ message.parent_id = reader.string();
6660
+ break;
6661
+ case 5:
6662
+ message.is_parent_public = reader.bool();
6663
+ break;
6652
6664
  default:
6653
6665
  reader.skipType(tag & 7);
6654
6666
  break;
@@ -6660,7 +6672,9 @@ var ChannelJoin = {
6660
6672
  return {
6661
6673
  clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
6662
6674
  channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
6663
- channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0
6675
+ channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
6676
+ 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
6664
6678
  };
6665
6679
  },
6666
6680
  toJSON(message) {
@@ -6668,17 +6682,21 @@ var ChannelJoin = {
6668
6682
  message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
6669
6683
  message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
6670
6684
  message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
6685
+ message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
6686
+ message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
6671
6687
  return obj;
6672
6688
  },
6673
6689
  create(base) {
6674
6690
  return ChannelJoin.fromPartial(base != null ? base : {});
6675
6691
  },
6676
6692
  fromPartial(object) {
6677
- var _a, _b, _c;
6693
+ var _a, _b, _c, _d, _e;
6678
6694
  const message = createBaseChannelJoin();
6679
6695
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
6680
6696
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
6681
6697
  message.channel_type = (_c = object.channel_type) != null ? _c : 0;
6698
+ message.parent_id = (_d = object.parent_id) != null ? _d : "";
6699
+ message.is_parent_public = (_e = object.is_parent_public) != null ? _e : false;
6682
6700
  return message;
6683
6701
  }
6684
6702
  };
@@ -8523,7 +8541,8 @@ function createBaseChannelCreatedEvent() {
8523
8541
  channel_label: "",
8524
8542
  channel_private: 0,
8525
8543
  channel_type: void 0,
8526
- status: 0
8544
+ status: 0,
8545
+ is_parent_public: false
8527
8546
  };
8528
8547
  }
8529
8548
  var ChannelCreatedEvent = {
@@ -8555,6 +8574,9 @@ var ChannelCreatedEvent = {
8555
8574
  if (message.status !== 0) {
8556
8575
  writer.uint32(72).int32(message.status);
8557
8576
  }
8577
+ if (message.is_parent_public === true) {
8578
+ writer.uint32(80).bool(message.is_parent_public);
8579
+ }
8558
8580
  return writer;
8559
8581
  },
8560
8582
  decode(input, length) {
@@ -8591,6 +8613,9 @@ var ChannelCreatedEvent = {
8591
8613
  case 9:
8592
8614
  message.status = reader.int32();
8593
8615
  break;
8616
+ case 10:
8617
+ message.is_parent_public = reader.bool();
8618
+ break;
8594
8619
  default:
8595
8620
  reader.skipType(tag & 7);
8596
8621
  break;
@@ -8608,7 +8633,8 @@ var ChannelCreatedEvent = {
8608
8633
  channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
8609
8634
  channel_private: isSet4(object.channel_private) ? Number(object.channel_private) : 0,
8610
8635
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
8611
- status: isSet4(object.status) ? Number(object.status) : 0
8636
+ status: isSet4(object.status) ? Number(object.status) : 0,
8637
+ is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
8612
8638
  };
8613
8639
  },
8614
8640
  toJSON(message) {
@@ -8622,13 +8648,14 @@ var ChannelCreatedEvent = {
8622
8648
  message.channel_private !== void 0 && (obj.channel_private = Math.round(message.channel_private));
8623
8649
  message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
8624
8650
  message.status !== void 0 && (obj.status = Math.round(message.status));
8651
+ message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
8625
8652
  return obj;
8626
8653
  },
8627
8654
  create(base) {
8628
8655
  return ChannelCreatedEvent.fromPartial(base != null ? base : {});
8629
8656
  },
8630
8657
  fromPartial(object) {
8631
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
8658
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
8632
8659
  const message = createBaseChannelCreatedEvent();
8633
8660
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
8634
8661
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -8639,6 +8666,7 @@ var ChannelCreatedEvent = {
8639
8666
  message.channel_private = (_g = object.channel_private) != null ? _g : 0;
8640
8667
  message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
8641
8668
  message.status = (_i = object.status) != null ? _i : 0;
8669
+ message.is_parent_public = (_j = object.is_parent_public) != null ? _j : false;
8642
8670
  return message;
8643
8671
  }
8644
8672
  };
@@ -9402,7 +9430,16 @@ var AddUsers = {
9402
9430
  }
9403
9431
  };
9404
9432
  function createBaseUserChannelAdded() {
9405
- return { channel_id: "", users: [], status: "", clan_id: "", channel_type: 0, is_public: false };
9433
+ return {
9434
+ channel_id: "",
9435
+ users: [],
9436
+ status: "",
9437
+ clan_id: "",
9438
+ channel_type: 0,
9439
+ is_public: false,
9440
+ parent_id: "",
9441
+ is_parent_public: false
9442
+ };
9406
9443
  }
9407
9444
  var UserChannelAdded = {
9408
9445
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -9424,6 +9461,12 @@ var UserChannelAdded = {
9424
9461
  if (message.is_public === true) {
9425
9462
  writer.uint32(48).bool(message.is_public);
9426
9463
  }
9464
+ if (message.parent_id !== "") {
9465
+ writer.uint32(58).string(message.parent_id);
9466
+ }
9467
+ if (message.is_parent_public === true) {
9468
+ writer.uint32(64).bool(message.is_parent_public);
9469
+ }
9427
9470
  return writer;
9428
9471
  },
9429
9472
  decode(input, length) {
@@ -9451,6 +9494,12 @@ var UserChannelAdded = {
9451
9494
  case 6:
9452
9495
  message.is_public = reader.bool();
9453
9496
  break;
9497
+ case 7:
9498
+ message.parent_id = reader.string();
9499
+ break;
9500
+ case 8:
9501
+ message.is_parent_public = reader.bool();
9502
+ break;
9454
9503
  default:
9455
9504
  reader.skipType(tag & 7);
9456
9505
  break;
@@ -9465,7 +9514,9 @@ var UserChannelAdded = {
9465
9514
  status: isSet4(object.status) ? String(object.status) : "",
9466
9515
  clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
9467
9516
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : 0,
9468
- is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false
9517
+ is_public: isSet4(object.is_public) ? Boolean(object.is_public) : false,
9518
+ parent_id: isSet4(object.parent_id) ? String(object.parent_id) : "",
9519
+ is_parent_public: isSet4(object.is_parent_public) ? Boolean(object.is_parent_public) : false
9469
9520
  };
9470
9521
  },
9471
9522
  toJSON(message) {
@@ -9480,13 +9531,15 @@ var UserChannelAdded = {
9480
9531
  message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
9481
9532
  message.channel_type !== void 0 && (obj.channel_type = Math.round(message.channel_type));
9482
9533
  message.is_public !== void 0 && (obj.is_public = message.is_public);
9534
+ message.parent_id !== void 0 && (obj.parent_id = message.parent_id);
9535
+ message.is_parent_public !== void 0 && (obj.is_parent_public = message.is_parent_public);
9483
9536
  return obj;
9484
9537
  },
9485
9538
  create(base) {
9486
9539
  return UserChannelAdded.fromPartial(base != null ? base : {});
9487
9540
  },
9488
9541
  fromPartial(object) {
9489
- var _a, _b, _c, _d, _e, _f;
9542
+ var _a, _b, _c, _d, _e, _f, _g, _h;
9490
9543
  const message = createBaseUserChannelAdded();
9491
9544
  message.channel_id = (_a = object.channel_id) != null ? _a : "";
9492
9545
  message.users = ((_b = object.users) == null ? void 0 : _b.map((e) => AddUsers.fromPartial(e))) || [];
@@ -9494,6 +9547,8 @@ var UserChannelAdded = {
9494
9547
  message.clan_id = (_d = object.clan_id) != null ? _d : "";
9495
9548
  message.channel_type = (_e = object.channel_type) != null ? _e : 0;
9496
9549
  message.is_public = (_f = object.is_public) != null ? _f : false;
9550
+ message.parent_id = (_g = object.parent_id) != null ? _g : "";
9551
+ message.is_parent_public = (_h = object.is_parent_public) != null ? _h : false;
9497
9552
  return message;
9498
9553
  }
9499
9554
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.5.43",
3
+ "version": "1.5.45",
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
@@ -441,6 +441,10 @@ export interface ChannelJoin {
441
441
  channel_id: string;
442
442
  /** channel type */
443
443
  channel_type: number;
444
+ /** the parent_id */
445
+ parent_id: string;
446
+ /** parent public */
447
+ is_parent_public: boolean;
444
448
  }
445
449
 
446
450
  /** Leave a realtime channel. */
@@ -831,6 +835,8 @@ export interface ChannelCreatedEvent {
831
835
  | undefined;
832
836
  /** status */
833
837
  status: number;
838
+ /** is parent public */
839
+ is_parent_public: boolean;
834
840
  }
835
841
 
836
842
  export interface ChannelDeletedEvent {
@@ -972,6 +978,10 @@ export interface UserChannelAdded {
972
978
  channel_type: number;
973
979
  /** is public */
974
980
  is_public: boolean;
981
+ /** the parent_id */
982
+ parent_id: string;
983
+ /** parent public */
984
+ is_parent_public: boolean;
975
985
  }
976
986
 
977
987
  /** */
@@ -3496,7 +3506,7 @@ export const ClanJoin = {
3496
3506
  };
3497
3507
 
3498
3508
  function createBaseChannelJoin(): ChannelJoin {
3499
- return { clan_id: "", channel_id: "", channel_type: 0 };
3509
+ return { clan_id: "", channel_id: "", channel_type: 0, parent_id: "", is_parent_public: false };
3500
3510
  }
3501
3511
 
3502
3512
  export const ChannelJoin = {
@@ -3510,6 +3520,12 @@ export const ChannelJoin = {
3510
3520
  if (message.channel_type !== 0) {
3511
3521
  writer.uint32(24).int32(message.channel_type);
3512
3522
  }
3523
+ if (message.parent_id !== "") {
3524
+ writer.uint32(34).string(message.parent_id);
3525
+ }
3526
+ if (message.is_parent_public === true) {
3527
+ writer.uint32(40).bool(message.is_parent_public);
3528
+ }
3513
3529
  return writer;
3514
3530
  },
3515
3531
 
@@ -3529,6 +3545,12 @@ export const ChannelJoin = {
3529
3545
  case 3:
3530
3546
  message.channel_type = reader.int32();
3531
3547
  break;
3548
+ case 4:
3549
+ message.parent_id = reader.string();
3550
+ break;
3551
+ case 5:
3552
+ message.is_parent_public = reader.bool();
3553
+ break;
3532
3554
  default:
3533
3555
  reader.skipType(tag & 7);
3534
3556
  break;
@@ -3542,6 +3564,8 @@ export const ChannelJoin = {
3542
3564
  clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
3543
3565
  channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
3544
3566
  channel_type: isSet(object.channel_type) ? Number(object.channel_type) : 0,
3567
+ parent_id: isSet(object.parent_id) ? String(object.parent_id) : "",
3568
+ is_parent_public: isSet(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
3545
3569
  };
3546
3570
  },
3547
3571
 
@@ -3550,6 +3574,8 @@ export const ChannelJoin = {
3550
3574
  message.clan_id !== undefined && (obj.clan_id = message.clan_id);
3551
3575
  message.channel_id !== undefined && (obj.channel_id = message.channel_id);
3552
3576
  message.channel_type !== undefined && (obj.channel_type = Math.round(message.channel_type));
3577
+ message.parent_id !== undefined && (obj.parent_id = message.parent_id);
3578
+ message.is_parent_public !== undefined && (obj.is_parent_public = message.is_parent_public);
3553
3579
  return obj;
3554
3580
  },
3555
3581
 
@@ -3562,6 +3588,8 @@ export const ChannelJoin = {
3562
3588
  message.clan_id = object.clan_id ?? "";
3563
3589
  message.channel_id = object.channel_id ?? "";
3564
3590
  message.channel_type = object.channel_type ?? 0;
3591
+ message.parent_id = object.parent_id ?? "";
3592
+ message.is_parent_public = object.is_parent_public ?? false;
3565
3593
  return message;
3566
3594
  },
3567
3595
  };
@@ -5544,6 +5572,7 @@ function createBaseChannelCreatedEvent(): ChannelCreatedEvent {
5544
5572
  channel_private: 0,
5545
5573
  channel_type: undefined,
5546
5574
  status: 0,
5575
+ is_parent_public: false,
5547
5576
  };
5548
5577
  }
5549
5578
 
@@ -5576,6 +5605,9 @@ export const ChannelCreatedEvent = {
5576
5605
  if (message.status !== 0) {
5577
5606
  writer.uint32(72).int32(message.status);
5578
5607
  }
5608
+ if (message.is_parent_public === true) {
5609
+ writer.uint32(80).bool(message.is_parent_public);
5610
+ }
5579
5611
  return writer;
5580
5612
  },
5581
5613
 
@@ -5613,6 +5645,9 @@ export const ChannelCreatedEvent = {
5613
5645
  case 9:
5614
5646
  message.status = reader.int32();
5615
5647
  break;
5648
+ case 10:
5649
+ message.is_parent_public = reader.bool();
5650
+ break;
5616
5651
  default:
5617
5652
  reader.skipType(tag & 7);
5618
5653
  break;
@@ -5632,6 +5667,7 @@ export const ChannelCreatedEvent = {
5632
5667
  channel_private: isSet(object.channel_private) ? Number(object.channel_private) : 0,
5633
5668
  channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
5634
5669
  status: isSet(object.status) ? Number(object.status) : 0,
5670
+ is_parent_public: isSet(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
5635
5671
  };
5636
5672
  },
5637
5673
 
@@ -5646,6 +5682,7 @@ export const ChannelCreatedEvent = {
5646
5682
  message.channel_private !== undefined && (obj.channel_private = Math.round(message.channel_private));
5647
5683
  message.channel_type !== undefined && (obj.channel_type = message.channel_type);
5648
5684
  message.status !== undefined && (obj.status = Math.round(message.status));
5685
+ message.is_parent_public !== undefined && (obj.is_parent_public = message.is_parent_public);
5649
5686
  return obj;
5650
5687
  },
5651
5688
 
@@ -5664,6 +5701,7 @@ export const ChannelCreatedEvent = {
5664
5701
  message.channel_private = object.channel_private ?? 0;
5665
5702
  message.channel_type = object.channel_type ?? undefined;
5666
5703
  message.status = object.status ?? 0;
5704
+ message.is_parent_public = object.is_parent_public ?? false;
5667
5705
  return message;
5668
5706
  },
5669
5707
  };
@@ -6494,7 +6532,16 @@ export const AddUsers = {
6494
6532
  };
6495
6533
 
6496
6534
  function createBaseUserChannelAdded(): UserChannelAdded {
6497
- return { channel_id: "", users: [], status: "", clan_id: "", channel_type: 0, is_public: false };
6535
+ return {
6536
+ channel_id: "",
6537
+ users: [],
6538
+ status: "",
6539
+ clan_id: "",
6540
+ channel_type: 0,
6541
+ is_public: false,
6542
+ parent_id: "",
6543
+ is_parent_public: false,
6544
+ };
6498
6545
  }
6499
6546
 
6500
6547
  export const UserChannelAdded = {
@@ -6517,6 +6564,12 @@ export const UserChannelAdded = {
6517
6564
  if (message.is_public === true) {
6518
6565
  writer.uint32(48).bool(message.is_public);
6519
6566
  }
6567
+ if (message.parent_id !== "") {
6568
+ writer.uint32(58).string(message.parent_id);
6569
+ }
6570
+ if (message.is_parent_public === true) {
6571
+ writer.uint32(64).bool(message.is_parent_public);
6572
+ }
6520
6573
  return writer;
6521
6574
  },
6522
6575
 
@@ -6545,6 +6598,12 @@ export const UserChannelAdded = {
6545
6598
  case 6:
6546
6599
  message.is_public = reader.bool();
6547
6600
  break;
6601
+ case 7:
6602
+ message.parent_id = reader.string();
6603
+ break;
6604
+ case 8:
6605
+ message.is_parent_public = reader.bool();
6606
+ break;
6548
6607
  default:
6549
6608
  reader.skipType(tag & 7);
6550
6609
  break;
@@ -6561,6 +6620,8 @@ export const UserChannelAdded = {
6561
6620
  clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
6562
6621
  channel_type: isSet(object.channel_type) ? Number(object.channel_type) : 0,
6563
6622
  is_public: isSet(object.is_public) ? Boolean(object.is_public) : false,
6623
+ parent_id: isSet(object.parent_id) ? String(object.parent_id) : "",
6624
+ is_parent_public: isSet(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
6564
6625
  };
6565
6626
  },
6566
6627
 
@@ -6576,6 +6637,8 @@ export const UserChannelAdded = {
6576
6637
  message.clan_id !== undefined && (obj.clan_id = message.clan_id);
6577
6638
  message.channel_type !== undefined && (obj.channel_type = Math.round(message.channel_type));
6578
6639
  message.is_public !== undefined && (obj.is_public = message.is_public);
6640
+ message.parent_id !== undefined && (obj.parent_id = message.parent_id);
6641
+ message.is_parent_public !== undefined && (obj.is_parent_public = message.is_parent_public);
6579
6642
  return obj;
6580
6643
  },
6581
6644
 
@@ -6591,6 +6654,8 @@ export const UserChannelAdded = {
6591
6654
  message.clan_id = object.clan_id ?? "";
6592
6655
  message.channel_type = object.channel_type ?? 0;
6593
6656
  message.is_public = object.is_public ?? false;
6657
+ message.parent_id = object.parent_id ?? "";
6658
+ message.is_parent_public = object.is_parent_public ?? false;
6594
6659
  return message;
6595
6660
  },
6596
6661
  };