mezon-js-protobuf 1.6.32 → 1.6.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/api.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v1.181.2
4
- // protoc v5.28.3
3
+ // protoc-gen-ts_proto v1.181.1
4
+ // protoc v5.27.2
5
5
  // source: api/api.proto
6
6
 
7
7
  /* eslint-disable */
@@ -678,6 +678,10 @@ export interface ChannelUpdatedEvent {
678
678
  app_url: string;
679
679
  /** e2ee */
680
680
  e2ee: number;
681
+ /** topic */
682
+ topic: string;
683
+ /** */
684
+ age_restricted: number;
681
685
  }
682
686
  /** Stop receiving status updates for some set of users. */
683
687
  export interface StatusUnfollow {
@@ -1326,6 +1330,8 @@ export declare const Envelope: {
1326
1330
  channel_private?: boolean | undefined;
1327
1331
  app_url?: string | undefined;
1328
1332
  e2ee?: number | undefined;
1333
+ topic?: string | undefined;
1334
+ age_restricted?: number | undefined;
1329
1335
  } | undefined;
1330
1336
  last_pin_message_event?: {
1331
1337
  clan_id?: string | undefined;
@@ -2731,6 +2737,8 @@ export declare const Envelope: {
2731
2737
  channel_private?: boolean | undefined;
2732
2738
  app_url?: string | undefined;
2733
2739
  e2ee?: number | undefined;
2740
+ topic?: string | undefined;
2741
+ age_restricted?: number | undefined;
2734
2742
  } & {
2735
2743
  clan_id?: string | undefined;
2736
2744
  category_id?: string | undefined;
@@ -2745,6 +2753,8 @@ export declare const Envelope: {
2745
2753
  channel_private?: boolean | undefined;
2746
2754
  app_url?: string | undefined;
2747
2755
  e2ee?: number | undefined;
2756
+ topic?: string | undefined;
2757
+ age_restricted?: number | undefined;
2748
2758
  } & { [K_67 in Exclude<keyof I["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
2749
2759
  last_pin_message_event?: ({
2750
2760
  clan_id?: string | undefined;
@@ -3931,6 +3941,8 @@ export declare const Envelope: {
3931
3941
  channel_private?: boolean | undefined;
3932
3942
  app_url?: string | undefined;
3933
3943
  e2ee?: number | undefined;
3944
+ topic?: string | undefined;
3945
+ age_restricted?: number | undefined;
3934
3946
  } | undefined;
3935
3947
  last_pin_message_event?: {
3936
3948
  clan_id?: string | undefined;
@@ -5336,6 +5348,8 @@ export declare const Envelope: {
5336
5348
  channel_private?: boolean | undefined;
5337
5349
  app_url?: string | undefined;
5338
5350
  e2ee?: number | undefined;
5351
+ topic?: string | undefined;
5352
+ age_restricted?: number | undefined;
5339
5353
  } & {
5340
5354
  clan_id?: string | undefined;
5341
5355
  category_id?: string | undefined;
@@ -5350,6 +5364,8 @@ export declare const Envelope: {
5350
5364
  channel_private?: boolean | undefined;
5351
5365
  app_url?: string | undefined;
5352
5366
  e2ee?: number | undefined;
5367
+ topic?: string | undefined;
5368
+ age_restricted?: number | undefined;
5353
5369
  } & { [K_194 in Exclude<keyof I_1["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
5354
5370
  last_pin_message_event?: ({
5355
5371
  clan_id?: string | undefined;
@@ -9090,6 +9106,8 @@ export declare const ChannelUpdatedEvent: {
9090
9106
  channel_private?: boolean | undefined;
9091
9107
  app_url?: string | undefined;
9092
9108
  e2ee?: number | undefined;
9109
+ topic?: string | undefined;
9110
+ age_restricted?: number | undefined;
9093
9111
  } & {
9094
9112
  clan_id?: string | undefined;
9095
9113
  category_id?: string | undefined;
@@ -9104,6 +9122,8 @@ export declare const ChannelUpdatedEvent: {
9104
9122
  channel_private?: boolean | undefined;
9105
9123
  app_url?: string | undefined;
9106
9124
  e2ee?: number | undefined;
9125
+ topic?: string | undefined;
9126
+ age_restricted?: number | undefined;
9107
9127
  } & { [K in Exclude<keyof I, keyof ChannelUpdatedEvent>]: never; }>(base?: I | undefined): ChannelUpdatedEvent;
9108
9128
  fromPartial<I_1 extends {
9109
9129
  clan_id?: string | undefined;
@@ -9119,6 +9139,8 @@ export declare const ChannelUpdatedEvent: {
9119
9139
  channel_private?: boolean | undefined;
9120
9140
  app_url?: string | undefined;
9121
9141
  e2ee?: number | undefined;
9142
+ topic?: string | undefined;
9143
+ age_restricted?: number | undefined;
9122
9144
  } & {
9123
9145
  clan_id?: string | undefined;
9124
9146
  category_id?: string | undefined;
@@ -9133,6 +9155,8 @@ export declare const ChannelUpdatedEvent: {
9133
9155
  channel_private?: boolean | undefined;
9134
9156
  app_url?: string | undefined;
9135
9157
  e2ee?: number | undefined;
9158
+ topic?: string | undefined;
9159
+ age_restricted?: number | undefined;
9136
9160
  } & { [K_1 in Exclude<keyof I_1, keyof ChannelUpdatedEvent>]: never; }>(object: I_1): ChannelUpdatedEvent;
9137
9161
  };
9138
9162
  export declare const StatusUnfollow: {
@@ -10367,7 +10367,9 @@ function createBaseChannelUpdatedEvent() {
10367
10367
  is_error: false,
10368
10368
  channel_private: false,
10369
10369
  app_url: "",
10370
- e2ee: 0
10370
+ e2ee: 0,
10371
+ topic: "",
10372
+ age_restricted: 0
10371
10373
  };
10372
10374
  }
10373
10375
  var ChannelUpdatedEvent = {
@@ -10411,6 +10413,12 @@ var ChannelUpdatedEvent = {
10411
10413
  if (message.e2ee !== 0) {
10412
10414
  writer.uint32(104).int32(message.e2ee);
10413
10415
  }
10416
+ if (message.topic !== "") {
10417
+ writer.uint32(114).string(message.topic);
10418
+ }
10419
+ if (message.age_restricted !== 0) {
10420
+ writer.uint32(120).int32(message.age_restricted);
10421
+ }
10414
10422
  return writer;
10415
10423
  },
10416
10424
  decode(input, length) {
@@ -10498,6 +10506,18 @@ var ChannelUpdatedEvent = {
10498
10506
  }
10499
10507
  message.e2ee = reader.int32();
10500
10508
  continue;
10509
+ case 14:
10510
+ if (tag !== 114) {
10511
+ break;
10512
+ }
10513
+ message.topic = reader.string();
10514
+ continue;
10515
+ case 15:
10516
+ if (tag !== 120) {
10517
+ break;
10518
+ }
10519
+ message.age_restricted = reader.int32();
10520
+ continue;
10501
10521
  }
10502
10522
  if ((tag & 7) === 4 || tag === 0) {
10503
10523
  break;
@@ -10520,7 +10540,9 @@ var ChannelUpdatedEvent = {
10520
10540
  is_error: isSet4(object.is_error) ? globalThis.Boolean(object.is_error) : false,
10521
10541
  channel_private: isSet4(object.channel_private) ? globalThis.Boolean(object.channel_private) : false,
10522
10542
  app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
10523
- e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0
10543
+ e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
10544
+ topic: isSet4(object.topic) ? globalThis.String(object.topic) : "",
10545
+ age_restricted: isSet4(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0
10524
10546
  };
10525
10547
  },
10526
10548
  toJSON(message) {
@@ -10564,13 +10586,19 @@ var ChannelUpdatedEvent = {
10564
10586
  if (message.e2ee !== 0) {
10565
10587
  obj.e2ee = Math.round(message.e2ee);
10566
10588
  }
10589
+ if (message.topic !== "") {
10590
+ obj.topic = message.topic;
10591
+ }
10592
+ if (message.age_restricted !== 0) {
10593
+ obj.age_restricted = Math.round(message.age_restricted);
10594
+ }
10567
10595
  return obj;
10568
10596
  },
10569
10597
  create(base) {
10570
10598
  return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
10571
10599
  },
10572
10600
  fromPartial(object) {
10573
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10601
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
10574
10602
  const message = createBaseChannelUpdatedEvent();
10575
10603
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
10576
10604
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -10585,6 +10613,8 @@ var ChannelUpdatedEvent = {
10585
10613
  message.channel_private = (_k = object.channel_private) != null ? _k : false;
10586
10614
  message.app_url = (_l = object.app_url) != null ? _l : "";
10587
10615
  message.e2ee = (_m = object.e2ee) != null ? _m : 0;
10616
+ message.topic = (_n = object.topic) != null ? _n : "";
10617
+ message.age_restricted = (_o = object.age_restricted) != null ? _o : 0;
10588
10618
  return message;
10589
10619
  }
10590
10620
  };
@@ -10354,7 +10354,9 @@ function createBaseChannelUpdatedEvent() {
10354
10354
  is_error: false,
10355
10355
  channel_private: false,
10356
10356
  app_url: "",
10357
- e2ee: 0
10357
+ e2ee: 0,
10358
+ topic: "",
10359
+ age_restricted: 0
10358
10360
  };
10359
10361
  }
10360
10362
  var ChannelUpdatedEvent = {
@@ -10398,6 +10400,12 @@ var ChannelUpdatedEvent = {
10398
10400
  if (message.e2ee !== 0) {
10399
10401
  writer.uint32(104).int32(message.e2ee);
10400
10402
  }
10403
+ if (message.topic !== "") {
10404
+ writer.uint32(114).string(message.topic);
10405
+ }
10406
+ if (message.age_restricted !== 0) {
10407
+ writer.uint32(120).int32(message.age_restricted);
10408
+ }
10401
10409
  return writer;
10402
10410
  },
10403
10411
  decode(input, length) {
@@ -10485,6 +10493,18 @@ var ChannelUpdatedEvent = {
10485
10493
  }
10486
10494
  message.e2ee = reader.int32();
10487
10495
  continue;
10496
+ case 14:
10497
+ if (tag !== 114) {
10498
+ break;
10499
+ }
10500
+ message.topic = reader.string();
10501
+ continue;
10502
+ case 15:
10503
+ if (tag !== 120) {
10504
+ break;
10505
+ }
10506
+ message.age_restricted = reader.int32();
10507
+ continue;
10488
10508
  }
10489
10509
  if ((tag & 7) === 4 || tag === 0) {
10490
10510
  break;
@@ -10507,7 +10527,9 @@ var ChannelUpdatedEvent = {
10507
10527
  is_error: isSet4(object.is_error) ? globalThis.Boolean(object.is_error) : false,
10508
10528
  channel_private: isSet4(object.channel_private) ? globalThis.Boolean(object.channel_private) : false,
10509
10529
  app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
10510
- e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0
10530
+ e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
10531
+ topic: isSet4(object.topic) ? globalThis.String(object.topic) : "",
10532
+ age_restricted: isSet4(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0
10511
10533
  };
10512
10534
  },
10513
10535
  toJSON(message) {
@@ -10551,13 +10573,19 @@ var ChannelUpdatedEvent = {
10551
10573
  if (message.e2ee !== 0) {
10552
10574
  obj.e2ee = Math.round(message.e2ee);
10553
10575
  }
10576
+ if (message.topic !== "") {
10577
+ obj.topic = message.topic;
10578
+ }
10579
+ if (message.age_restricted !== 0) {
10580
+ obj.age_restricted = Math.round(message.age_restricted);
10581
+ }
10554
10582
  return obj;
10555
10583
  },
10556
10584
  create(base) {
10557
10585
  return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
10558
10586
  },
10559
10587
  fromPartial(object) {
10560
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
10588
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
10561
10589
  const message = createBaseChannelUpdatedEvent();
10562
10590
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
10563
10591
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -10572,6 +10600,8 @@ var ChannelUpdatedEvent = {
10572
10600
  message.channel_private = (_k = object.channel_private) != null ? _k : false;
10573
10601
  message.app_url = (_l = object.app_url) != null ? _l : "";
10574
10602
  message.e2ee = (_m = object.e2ee) != null ? _m : 0;
10603
+ message.topic = (_n = object.topic) != null ? _n : "";
10604
+ message.age_restricted = (_o = object.age_restricted) != null ? _o : 0;
10575
10605
  return message;
10576
10606
  }
10577
10607
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.32",
3
+ "version": "1.6.33",
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
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v1.181.2
4
- // protoc v5.28.3
3
+ // protoc-gen-ts_proto v1.181.1
4
+ // protoc v5.27.2
5
5
  // source: rtapi/realtime.proto
6
6
 
7
7
  /* eslint-disable */
@@ -947,6 +947,10 @@ export interface ChannelUpdatedEvent {
947
947
  app_url: string;
948
948
  /** e2ee */
949
949
  e2ee: number;
950
+ /** topic */
951
+ topic: string;
952
+ /** */
953
+ age_restricted: number;
950
954
  }
951
955
 
952
956
  /** Stop receiving status updates for some set of users. */
@@ -7557,6 +7561,8 @@ function createBaseChannelUpdatedEvent(): ChannelUpdatedEvent {
7557
7561
  channel_private: false,
7558
7562
  app_url: "",
7559
7563
  e2ee: 0,
7564
+ topic: "",
7565
+ age_restricted: 0,
7560
7566
  };
7561
7567
  }
7562
7568
 
@@ -7601,6 +7607,12 @@ export const ChannelUpdatedEvent = {
7601
7607
  if (message.e2ee !== 0) {
7602
7608
  writer.uint32(104).int32(message.e2ee);
7603
7609
  }
7610
+ if (message.topic !== "") {
7611
+ writer.uint32(114).string(message.topic);
7612
+ }
7613
+ if (message.age_restricted !== 0) {
7614
+ writer.uint32(120).int32(message.age_restricted);
7615
+ }
7604
7616
  return writer;
7605
7617
  },
7606
7618
 
@@ -7702,6 +7714,20 @@ export const ChannelUpdatedEvent = {
7702
7714
 
7703
7715
  message.e2ee = reader.int32();
7704
7716
  continue;
7717
+ case 14:
7718
+ if (tag !== 114) {
7719
+ break;
7720
+ }
7721
+
7722
+ message.topic = reader.string();
7723
+ continue;
7724
+ case 15:
7725
+ if (tag !== 120) {
7726
+ break;
7727
+ }
7728
+
7729
+ message.age_restricted = reader.int32();
7730
+ continue;
7705
7731
  }
7706
7732
  if ((tag & 7) === 4 || tag === 0) {
7707
7733
  break;
@@ -7726,6 +7752,8 @@ export const ChannelUpdatedEvent = {
7726
7752
  channel_private: isSet(object.channel_private) ? globalThis.Boolean(object.channel_private) : false,
7727
7753
  app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
7728
7754
  e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
7755
+ topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
7756
+ age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
7729
7757
  };
7730
7758
  },
7731
7759
 
@@ -7770,6 +7798,12 @@ export const ChannelUpdatedEvent = {
7770
7798
  if (message.e2ee !== 0) {
7771
7799
  obj.e2ee = Math.round(message.e2ee);
7772
7800
  }
7801
+ if (message.topic !== "") {
7802
+ obj.topic = message.topic;
7803
+ }
7804
+ if (message.age_restricted !== 0) {
7805
+ obj.age_restricted = Math.round(message.age_restricted);
7806
+ }
7773
7807
  return obj;
7774
7808
  },
7775
7809
 
@@ -7791,6 +7825,8 @@ export const ChannelUpdatedEvent = {
7791
7825
  message.channel_private = object.channel_private ?? false;
7792
7826
  message.app_url = object.app_url ?? "";
7793
7827
  message.e2ee = object.e2ee ?? 0;
7828
+ message.topic = object.topic ?? "";
7829
+ message.age_restricted = object.age_restricted ?? 0;
7794
7830
  return message;
7795
7831
  },
7796
7832
  };