mezon-js-protobuf 1.4.41 → 1.4.44

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.
@@ -437,6 +437,8 @@ export interface ChannelCreatedEvent {
437
437
  channel_id: string;
438
438
  /** channel label */
439
439
  channel_label: string;
440
+ /** channel private */
441
+ channel_private: number;
440
442
  /** channel type */
441
443
  channel_type: number | undefined;
442
444
  /** status */
@@ -818,6 +820,7 @@ export declare const Envelope: {
818
820
  parrent_id?: string | undefined;
819
821
  channel_id?: string | undefined;
820
822
  channel_label?: string | undefined;
823
+ channel_private?: number | undefined;
821
824
  channel_type?: number | undefined;
822
825
  status?: number | undefined;
823
826
  } | undefined;
@@ -1629,6 +1632,7 @@ export declare const Envelope: {
1629
1632
  parrent_id?: string | undefined;
1630
1633
  channel_id?: string | undefined;
1631
1634
  channel_label?: string | undefined;
1635
+ channel_private?: number | undefined;
1632
1636
  channel_type?: number | undefined;
1633
1637
  status?: number | undefined;
1634
1638
  } & {
@@ -1638,6 +1642,7 @@ export declare const Envelope: {
1638
1642
  parrent_id?: string | undefined;
1639
1643
  channel_id?: string | undefined;
1640
1644
  channel_label?: string | undefined;
1645
+ channel_private?: number | undefined;
1641
1646
  channel_type?: number | undefined;
1642
1647
  status?: number | undefined;
1643
1648
  } & { [K_61 in Exclude<keyof I["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
@@ -1961,6 +1966,7 @@ export declare const Envelope: {
1961
1966
  parrent_id?: string | undefined;
1962
1967
  channel_id?: string | undefined;
1963
1968
  channel_label?: string | undefined;
1969
+ channel_private?: number | undefined;
1964
1970
  channel_type?: number | undefined;
1965
1971
  status?: number | undefined;
1966
1972
  } | undefined;
@@ -2772,6 +2778,7 @@ export declare const Envelope: {
2772
2778
  parrent_id?: string | undefined;
2773
2779
  channel_id?: string | undefined;
2774
2780
  channel_label?: string | undefined;
2781
+ channel_private?: number | undefined;
2775
2782
  channel_type?: number | undefined;
2776
2783
  status?: number | undefined;
2777
2784
  } & {
@@ -2781,6 +2788,7 @@ export declare const Envelope: {
2781
2788
  parrent_id?: string | undefined;
2782
2789
  channel_id?: string | undefined;
2783
2790
  channel_label?: string | undefined;
2791
+ channel_private?: number | undefined;
2784
2792
  channel_type?: number | undefined;
2785
2793
  status?: number | undefined;
2786
2794
  } & { [K_126 in Exclude<keyof I_1["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
@@ -4360,6 +4368,7 @@ export declare const ChannelCreatedEvent: {
4360
4368
  parrent_id?: string | undefined;
4361
4369
  channel_id?: string | undefined;
4362
4370
  channel_label?: string | undefined;
4371
+ channel_private?: number | undefined;
4363
4372
  channel_type?: number | undefined;
4364
4373
  status?: number | undefined;
4365
4374
  } & {
@@ -4369,6 +4378,7 @@ export declare const ChannelCreatedEvent: {
4369
4378
  parrent_id?: string | undefined;
4370
4379
  channel_id?: string | undefined;
4371
4380
  channel_label?: string | undefined;
4381
+ channel_private?: number | undefined;
4372
4382
  channel_type?: number | undefined;
4373
4383
  status?: number | undefined;
4374
4384
  } & { [K in Exclude<keyof I, keyof ChannelCreatedEvent>]: never; }>(base?: I | undefined): ChannelCreatedEvent;
@@ -4379,6 +4389,7 @@ export declare const ChannelCreatedEvent: {
4379
4389
  parrent_id?: string | undefined;
4380
4390
  channel_id?: string | undefined;
4381
4391
  channel_label?: string | undefined;
4392
+ channel_private?: number | undefined;
4382
4393
  channel_type?: number | undefined;
4383
4394
  status?: number | undefined;
4384
4395
  } & {
@@ -4388,6 +4399,7 @@ export declare const ChannelCreatedEvent: {
4388
4399
  parrent_id?: string | undefined;
4389
4400
  channel_id?: string | undefined;
4390
4401
  channel_label?: string | undefined;
4402
+ channel_private?: number | undefined;
4391
4403
  channel_type?: number | undefined;
4392
4404
  status?: number | undefined;
4393
4405
  } & { [K_1 in Exclude<keyof I_1, keyof ChannelCreatedEvent>]: never; }>(object: I_1): ChannelCreatedEvent;
@@ -5464,6 +5464,7 @@ function createBaseChannelCreatedEvent() {
5464
5464
  parrent_id: "",
5465
5465
  channel_id: "",
5466
5466
  channel_label: "",
5467
+ channel_private: 0,
5467
5468
  channel_type: void 0,
5468
5469
  status: 0
5469
5470
  };
@@ -5488,11 +5489,14 @@ var ChannelCreatedEvent = {
5488
5489
  if (message.channel_label !== "") {
5489
5490
  writer.uint32(50).string(message.channel_label);
5490
5491
  }
5492
+ if (message.channel_private !== 0) {
5493
+ writer.uint32(56).int32(message.channel_private);
5494
+ }
5491
5495
  if (message.channel_type !== void 0) {
5492
- Int32Value.encode({ value: message.channel_type }, writer.uint32(58).fork()).ldelim();
5496
+ Int32Value.encode({ value: message.channel_type }, writer.uint32(66).fork()).ldelim();
5493
5497
  }
5494
5498
  if (message.status !== 0) {
5495
- writer.uint32(64).int32(message.status);
5499
+ writer.uint32(72).int32(message.status);
5496
5500
  }
5497
5501
  return writer;
5498
5502
  },
@@ -5522,9 +5526,12 @@ var ChannelCreatedEvent = {
5522
5526
  message.channel_label = reader.string();
5523
5527
  break;
5524
5528
  case 7:
5525
- message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
5529
+ message.channel_private = reader.int32();
5526
5530
  break;
5527
5531
  case 8:
5532
+ message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
5533
+ break;
5534
+ case 9:
5528
5535
  message.status = reader.int32();
5529
5536
  break;
5530
5537
  default:
@@ -5542,6 +5549,7 @@ var ChannelCreatedEvent = {
5542
5549
  parrent_id: isSet4(object.parrent_id) ? String(object.parrent_id) : "",
5543
5550
  channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
5544
5551
  channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
5552
+ channel_private: isSet4(object.channel_private) ? Number(object.channel_private) : 0,
5545
5553
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
5546
5554
  status: isSet4(object.status) ? Number(object.status) : 0
5547
5555
  };
@@ -5554,6 +5562,7 @@ var ChannelCreatedEvent = {
5554
5562
  message.parrent_id !== void 0 && (obj.parrent_id = message.parrent_id);
5555
5563
  message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
5556
5564
  message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
5565
+ message.channel_private !== void 0 && (obj.channel_private = Math.round(message.channel_private));
5557
5566
  message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
5558
5567
  message.status !== void 0 && (obj.status = Math.round(message.status));
5559
5568
  return obj;
@@ -5562,7 +5571,7 @@ var ChannelCreatedEvent = {
5562
5571
  return ChannelCreatedEvent.fromPartial(base != null ? base : {});
5563
5572
  },
5564
5573
  fromPartial(object) {
5565
- var _a, _b, _c, _d, _e, _f, _g, _h;
5574
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
5566
5575
  const message = createBaseChannelCreatedEvent();
5567
5576
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
5568
5577
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -5570,8 +5579,9 @@ var ChannelCreatedEvent = {
5570
5579
  message.parrent_id = (_d = object.parrent_id) != null ? _d : "";
5571
5580
  message.channel_id = (_e = object.channel_id) != null ? _e : "";
5572
5581
  message.channel_label = (_f = object.channel_label) != null ? _f : "";
5573
- message.channel_type = (_g = object.channel_type) != null ? _g : void 0;
5574
- message.status = (_h = object.status) != null ? _h : 0;
5582
+ message.channel_private = (_g = object.channel_private) != null ? _g : 0;
5583
+ message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
5584
+ message.status = (_i = object.status) != null ? _i : 0;
5575
5585
  return message;
5576
5586
  }
5577
5587
  };
@@ -5451,6 +5451,7 @@ function createBaseChannelCreatedEvent() {
5451
5451
  parrent_id: "",
5452
5452
  channel_id: "",
5453
5453
  channel_label: "",
5454
+ channel_private: 0,
5454
5455
  channel_type: void 0,
5455
5456
  status: 0
5456
5457
  };
@@ -5475,11 +5476,14 @@ var ChannelCreatedEvent = {
5475
5476
  if (message.channel_label !== "") {
5476
5477
  writer.uint32(50).string(message.channel_label);
5477
5478
  }
5479
+ if (message.channel_private !== 0) {
5480
+ writer.uint32(56).int32(message.channel_private);
5481
+ }
5478
5482
  if (message.channel_type !== void 0) {
5479
- Int32Value.encode({ value: message.channel_type }, writer.uint32(58).fork()).ldelim();
5483
+ Int32Value.encode({ value: message.channel_type }, writer.uint32(66).fork()).ldelim();
5480
5484
  }
5481
5485
  if (message.status !== 0) {
5482
- writer.uint32(64).int32(message.status);
5486
+ writer.uint32(72).int32(message.status);
5483
5487
  }
5484
5488
  return writer;
5485
5489
  },
@@ -5509,9 +5513,12 @@ var ChannelCreatedEvent = {
5509
5513
  message.channel_label = reader.string();
5510
5514
  break;
5511
5515
  case 7:
5512
- message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
5516
+ message.channel_private = reader.int32();
5513
5517
  break;
5514
5518
  case 8:
5519
+ message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
5520
+ break;
5521
+ case 9:
5515
5522
  message.status = reader.int32();
5516
5523
  break;
5517
5524
  default:
@@ -5529,6 +5536,7 @@ var ChannelCreatedEvent = {
5529
5536
  parrent_id: isSet4(object.parrent_id) ? String(object.parrent_id) : "",
5530
5537
  channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
5531
5538
  channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
5539
+ channel_private: isSet4(object.channel_private) ? Number(object.channel_private) : 0,
5532
5540
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
5533
5541
  status: isSet4(object.status) ? Number(object.status) : 0
5534
5542
  };
@@ -5541,6 +5549,7 @@ var ChannelCreatedEvent = {
5541
5549
  message.parrent_id !== void 0 && (obj.parrent_id = message.parrent_id);
5542
5550
  message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
5543
5551
  message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
5552
+ message.channel_private !== void 0 && (obj.channel_private = Math.round(message.channel_private));
5544
5553
  message.channel_type !== void 0 && (obj.channel_type = message.channel_type);
5545
5554
  message.status !== void 0 && (obj.status = Math.round(message.status));
5546
5555
  return obj;
@@ -5549,7 +5558,7 @@ var ChannelCreatedEvent = {
5549
5558
  return ChannelCreatedEvent.fromPartial(base != null ? base : {});
5550
5559
  },
5551
5560
  fromPartial(object) {
5552
- var _a, _b, _c, _d, _e, _f, _g, _h;
5561
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
5553
5562
  const message = createBaseChannelCreatedEvent();
5554
5563
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
5555
5564
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -5557,8 +5566,9 @@ var ChannelCreatedEvent = {
5557
5566
  message.parrent_id = (_d = object.parrent_id) != null ? _d : "";
5558
5567
  message.channel_id = (_e = object.channel_id) != null ? _e : "";
5559
5568
  message.channel_label = (_f = object.channel_label) != null ? _f : "";
5560
- message.channel_type = (_g = object.channel_type) != null ? _g : void 0;
5561
- message.status = (_h = object.status) != null ? _h : 0;
5569
+ message.channel_private = (_g = object.channel_private) != null ? _g : 0;
5570
+ message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
5571
+ message.status = (_i = object.status) != null ? _i : 0;
5562
5572
  return message;
5563
5573
  }
5564
5574
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.4.41",
3
+ "version": "1.4.44",
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
@@ -604,6 +604,8 @@ export interface ChannelCreatedEvent {
604
604
  channel_id: string;
605
605
  /** channel label */
606
606
  channel_label: string;
607
+ /** channel private */
608
+ channel_private: number;
607
609
  /** channel type */
608
610
  channel_type:
609
611
  | number
@@ -3739,6 +3741,7 @@ function createBaseChannelCreatedEvent(): ChannelCreatedEvent {
3739
3741
  parrent_id: "",
3740
3742
  channel_id: "",
3741
3743
  channel_label: "",
3744
+ channel_private: 0,
3742
3745
  channel_type: undefined,
3743
3746
  status: 0,
3744
3747
  };
@@ -3764,11 +3767,14 @@ export const ChannelCreatedEvent = {
3764
3767
  if (message.channel_label !== "") {
3765
3768
  writer.uint32(50).string(message.channel_label);
3766
3769
  }
3770
+ if (message.channel_private !== 0) {
3771
+ writer.uint32(56).int32(message.channel_private);
3772
+ }
3767
3773
  if (message.channel_type !== undefined) {
3768
- Int32Value.encode({ value: message.channel_type! }, writer.uint32(58).fork()).ldelim();
3774
+ Int32Value.encode({ value: message.channel_type! }, writer.uint32(66).fork()).ldelim();
3769
3775
  }
3770
3776
  if (message.status !== 0) {
3771
- writer.uint32(64).int32(message.status);
3777
+ writer.uint32(72).int32(message.status);
3772
3778
  }
3773
3779
  return writer;
3774
3780
  },
@@ -3799,9 +3805,12 @@ export const ChannelCreatedEvent = {
3799
3805
  message.channel_label = reader.string();
3800
3806
  break;
3801
3807
  case 7:
3802
- message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
3808
+ message.channel_private = reader.int32();
3803
3809
  break;
3804
3810
  case 8:
3811
+ message.channel_type = Int32Value.decode(reader, reader.uint32()).value;
3812
+ break;
3813
+ case 9:
3805
3814
  message.status = reader.int32();
3806
3815
  break;
3807
3816
  default:
@@ -3820,6 +3829,7 @@ export const ChannelCreatedEvent = {
3820
3829
  parrent_id: isSet(object.parrent_id) ? String(object.parrent_id) : "",
3821
3830
  channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
3822
3831
  channel_label: isSet(object.channel_label) ? String(object.channel_label) : "",
3832
+ channel_private: isSet(object.channel_private) ? Number(object.channel_private) : 0,
3823
3833
  channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
3824
3834
  status: isSet(object.status) ? Number(object.status) : 0,
3825
3835
  };
@@ -3833,6 +3843,7 @@ export const ChannelCreatedEvent = {
3833
3843
  message.parrent_id !== undefined && (obj.parrent_id = message.parrent_id);
3834
3844
  message.channel_id !== undefined && (obj.channel_id = message.channel_id);
3835
3845
  message.channel_label !== undefined && (obj.channel_label = message.channel_label);
3846
+ message.channel_private !== undefined && (obj.channel_private = Math.round(message.channel_private));
3836
3847
  message.channel_type !== undefined && (obj.channel_type = message.channel_type);
3837
3848
  message.status !== undefined && (obj.status = Math.round(message.status));
3838
3849
  return obj;
@@ -3850,6 +3861,7 @@ export const ChannelCreatedEvent = {
3850
3861
  message.parrent_id = object.parrent_id ?? "";
3851
3862
  message.channel_id = object.channel_id ?? "";
3852
3863
  message.channel_label = object.channel_label ?? "";
3864
+ message.channel_private = object.channel_private ?? 0;
3853
3865
  message.channel_type = object.channel_type ?? undefined;
3854
3866
  message.status = object.status ?? 0;
3855
3867
  return message;