mezon-js-protobuf 1.7.11 → 1.7.13

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.
@@ -6555,7 +6555,8 @@ function createBaseEnvelope() {
6555
6555
  user_status_event: void 0,
6556
6556
  remove_friend: void 0,
6557
6557
  webhook_event: void 0,
6558
- noti_user_channel: void 0
6558
+ noti_user_channel: void 0,
6559
+ join_channel_app_data: void 0
6559
6560
  };
6560
6561
  }
6561
6562
  var Envelope = {
@@ -6776,6 +6777,9 @@ var Envelope = {
6776
6777
  if (message.noti_user_channel !== void 0) {
6777
6778
  NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
6778
6779
  }
6780
+ if (message.join_channel_app_data !== void 0) {
6781
+ JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(586).fork()).ldelim();
6782
+ }
6779
6783
  return writer;
6780
6784
  },
6781
6785
  decode(input, length) {
@@ -7217,6 +7221,12 @@ var Envelope = {
7217
7221
  }
7218
7222
  message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
7219
7223
  continue;
7224
+ case 73:
7225
+ if (tag !== 586) {
7226
+ break;
7227
+ }
7228
+ message.join_channel_app_data = JoinChannelAppData.decode(reader, reader.uint32());
7229
+ continue;
7220
7230
  }
7221
7231
  if ((tag & 7) === 4 || tag === 0) {
7222
7232
  break;
@@ -7298,7 +7308,8 @@ var Envelope = {
7298
7308
  user_status_event: isSet4(object.user_status_event) ? UserStatusEvent.fromJSON(object.user_status_event) : void 0,
7299
7309
  remove_friend: isSet4(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : void 0,
7300
7310
  webhook_event: isSet4(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : void 0,
7301
- noti_user_channel: isSet4(object.noti_user_channel) ? NotificationUserChannel.fromJSON(object.noti_user_channel) : void 0
7311
+ noti_user_channel: isSet4(object.noti_user_channel) ? NotificationUserChannel.fromJSON(object.noti_user_channel) : void 0,
7312
+ join_channel_app_data: isSet4(object.join_channel_app_data) ? JoinChannelAppData.fromJSON(object.join_channel_app_data) : void 0
7302
7313
  };
7303
7314
  },
7304
7315
  toJSON(message) {
@@ -7519,6 +7530,9 @@ var Envelope = {
7519
7530
  if (message.noti_user_channel !== void 0) {
7520
7531
  obj.noti_user_channel = NotificationUserChannel.toJSON(message.noti_user_channel);
7521
7532
  }
7533
+ if (message.join_channel_app_data !== void 0) {
7534
+ obj.join_channel_app_data = JoinChannelAppData.toJSON(message.join_channel_app_data);
7535
+ }
7522
7536
  return obj;
7523
7537
  },
7524
7538
  create(base) {
@@ -7599,6 +7613,7 @@ var Envelope = {
7599
7613
  message.remove_friend = object.remove_friend !== void 0 && object.remove_friend !== null ? RemoveFriend.fromPartial(object.remove_friend) : void 0;
7600
7614
  message.webhook_event = object.webhook_event !== void 0 && object.webhook_event !== null ? Webhook.fromPartial(object.webhook_event) : void 0;
7601
7615
  message.noti_user_channel = object.noti_user_channel !== void 0 && object.noti_user_channel !== null ? NotificationUserChannel.fromPartial(object.noti_user_channel) : void 0;
7616
+ message.join_channel_app_data = object.join_channel_app_data !== void 0 && object.join_channel_app_data !== null ? JoinChannelAppData.fromPartial(object.join_channel_app_data) : void 0;
7602
7617
  return message;
7603
7618
  }
7604
7619
  };
@@ -14835,6 +14850,87 @@ var UserStatusEvent = {
14835
14850
  return message;
14836
14851
  }
14837
14852
  };
14853
+ function createBaseJoinChannelAppData() {
14854
+ return { user_id: "", username: "", hash: "" };
14855
+ }
14856
+ var JoinChannelAppData = {
14857
+ encode(message, writer = import_minimal5.default.Writer.create()) {
14858
+ if (message.user_id !== "") {
14859
+ writer.uint32(10).string(message.user_id);
14860
+ }
14861
+ if (message.username !== "") {
14862
+ writer.uint32(18).string(message.username);
14863
+ }
14864
+ if (message.hash !== "") {
14865
+ writer.uint32(26).string(message.hash);
14866
+ }
14867
+ return writer;
14868
+ },
14869
+ decode(input, length) {
14870
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
14871
+ let end = length === void 0 ? reader.len : reader.pos + length;
14872
+ const message = createBaseJoinChannelAppData();
14873
+ while (reader.pos < end) {
14874
+ const tag = reader.uint32();
14875
+ switch (tag >>> 3) {
14876
+ case 1:
14877
+ if (tag !== 10) {
14878
+ break;
14879
+ }
14880
+ message.user_id = reader.string();
14881
+ continue;
14882
+ case 2:
14883
+ if (tag !== 18) {
14884
+ break;
14885
+ }
14886
+ message.username = reader.string();
14887
+ continue;
14888
+ case 3:
14889
+ if (tag !== 26) {
14890
+ break;
14891
+ }
14892
+ message.hash = reader.string();
14893
+ continue;
14894
+ }
14895
+ if ((tag & 7) === 4 || tag === 0) {
14896
+ break;
14897
+ }
14898
+ reader.skipType(tag & 7);
14899
+ }
14900
+ return message;
14901
+ },
14902
+ fromJSON(object) {
14903
+ return {
14904
+ user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
14905
+ username: isSet4(object.username) ? globalThis.String(object.username) : "",
14906
+ hash: isSet4(object.hash) ? globalThis.String(object.hash) : ""
14907
+ };
14908
+ },
14909
+ toJSON(message) {
14910
+ const obj = {};
14911
+ if (message.user_id !== "") {
14912
+ obj.user_id = message.user_id;
14913
+ }
14914
+ if (message.username !== "") {
14915
+ obj.username = message.username;
14916
+ }
14917
+ if (message.hash !== "") {
14918
+ obj.hash = message.hash;
14919
+ }
14920
+ return obj;
14921
+ },
14922
+ create(base) {
14923
+ return JoinChannelAppData.fromPartial(base != null ? base : {});
14924
+ },
14925
+ fromPartial(object) {
14926
+ var _a, _b, _c;
14927
+ const message = createBaseJoinChannelAppData();
14928
+ message.user_id = (_a = object.user_id) != null ? _a : "";
14929
+ message.username = (_b = object.username) != null ? _b : "";
14930
+ message.hash = (_c = object.hash) != null ? _c : "";
14931
+ return message;
14932
+ }
14933
+ };
14838
14934
  function toTimestamp2(date) {
14839
14935
  const seconds = Math.trunc(date.getTime() / 1e3);
14840
14936
  const nanos = date.getTime() % 1e3 * 1e6;
@@ -6542,7 +6542,8 @@ function createBaseEnvelope() {
6542
6542
  user_status_event: void 0,
6543
6543
  remove_friend: void 0,
6544
6544
  webhook_event: void 0,
6545
- noti_user_channel: void 0
6545
+ noti_user_channel: void 0,
6546
+ join_channel_app_data: void 0
6546
6547
  };
6547
6548
  }
6548
6549
  var Envelope = {
@@ -6763,6 +6764,9 @@ var Envelope = {
6763
6764
  if (message.noti_user_channel !== void 0) {
6764
6765
  NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
6765
6766
  }
6767
+ if (message.join_channel_app_data !== void 0) {
6768
+ JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(586).fork()).ldelim();
6769
+ }
6766
6770
  return writer;
6767
6771
  },
6768
6772
  decode(input, length) {
@@ -7204,6 +7208,12 @@ var Envelope = {
7204
7208
  }
7205
7209
  message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
7206
7210
  continue;
7211
+ case 73:
7212
+ if (tag !== 586) {
7213
+ break;
7214
+ }
7215
+ message.join_channel_app_data = JoinChannelAppData.decode(reader, reader.uint32());
7216
+ continue;
7207
7217
  }
7208
7218
  if ((tag & 7) === 4 || tag === 0) {
7209
7219
  break;
@@ -7285,7 +7295,8 @@ var Envelope = {
7285
7295
  user_status_event: isSet4(object.user_status_event) ? UserStatusEvent.fromJSON(object.user_status_event) : void 0,
7286
7296
  remove_friend: isSet4(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : void 0,
7287
7297
  webhook_event: isSet4(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : void 0,
7288
- noti_user_channel: isSet4(object.noti_user_channel) ? NotificationUserChannel.fromJSON(object.noti_user_channel) : void 0
7298
+ noti_user_channel: isSet4(object.noti_user_channel) ? NotificationUserChannel.fromJSON(object.noti_user_channel) : void 0,
7299
+ join_channel_app_data: isSet4(object.join_channel_app_data) ? JoinChannelAppData.fromJSON(object.join_channel_app_data) : void 0
7289
7300
  };
7290
7301
  },
7291
7302
  toJSON(message) {
@@ -7506,6 +7517,9 @@ var Envelope = {
7506
7517
  if (message.noti_user_channel !== void 0) {
7507
7518
  obj.noti_user_channel = NotificationUserChannel.toJSON(message.noti_user_channel);
7508
7519
  }
7520
+ if (message.join_channel_app_data !== void 0) {
7521
+ obj.join_channel_app_data = JoinChannelAppData.toJSON(message.join_channel_app_data);
7522
+ }
7509
7523
  return obj;
7510
7524
  },
7511
7525
  create(base) {
@@ -7586,6 +7600,7 @@ var Envelope = {
7586
7600
  message.remove_friend = object.remove_friend !== void 0 && object.remove_friend !== null ? RemoveFriend.fromPartial(object.remove_friend) : void 0;
7587
7601
  message.webhook_event = object.webhook_event !== void 0 && object.webhook_event !== null ? Webhook.fromPartial(object.webhook_event) : void 0;
7588
7602
  message.noti_user_channel = object.noti_user_channel !== void 0 && object.noti_user_channel !== null ? NotificationUserChannel.fromPartial(object.noti_user_channel) : void 0;
7603
+ message.join_channel_app_data = object.join_channel_app_data !== void 0 && object.join_channel_app_data !== null ? JoinChannelAppData.fromPartial(object.join_channel_app_data) : void 0;
7589
7604
  return message;
7590
7605
  }
7591
7606
  };
@@ -14822,6 +14837,87 @@ var UserStatusEvent = {
14822
14837
  return message;
14823
14838
  }
14824
14839
  };
14840
+ function createBaseJoinChannelAppData() {
14841
+ return { user_id: "", username: "", hash: "" };
14842
+ }
14843
+ var JoinChannelAppData = {
14844
+ encode(message, writer = import_minimal5.default.Writer.create()) {
14845
+ if (message.user_id !== "") {
14846
+ writer.uint32(10).string(message.user_id);
14847
+ }
14848
+ if (message.username !== "") {
14849
+ writer.uint32(18).string(message.username);
14850
+ }
14851
+ if (message.hash !== "") {
14852
+ writer.uint32(26).string(message.hash);
14853
+ }
14854
+ return writer;
14855
+ },
14856
+ decode(input, length) {
14857
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
14858
+ let end = length === void 0 ? reader.len : reader.pos + length;
14859
+ const message = createBaseJoinChannelAppData();
14860
+ while (reader.pos < end) {
14861
+ const tag = reader.uint32();
14862
+ switch (tag >>> 3) {
14863
+ case 1:
14864
+ if (tag !== 10) {
14865
+ break;
14866
+ }
14867
+ message.user_id = reader.string();
14868
+ continue;
14869
+ case 2:
14870
+ if (tag !== 18) {
14871
+ break;
14872
+ }
14873
+ message.username = reader.string();
14874
+ continue;
14875
+ case 3:
14876
+ if (tag !== 26) {
14877
+ break;
14878
+ }
14879
+ message.hash = reader.string();
14880
+ continue;
14881
+ }
14882
+ if ((tag & 7) === 4 || tag === 0) {
14883
+ break;
14884
+ }
14885
+ reader.skipType(tag & 7);
14886
+ }
14887
+ return message;
14888
+ },
14889
+ fromJSON(object) {
14890
+ return {
14891
+ user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
14892
+ username: isSet4(object.username) ? globalThis.String(object.username) : "",
14893
+ hash: isSet4(object.hash) ? globalThis.String(object.hash) : ""
14894
+ };
14895
+ },
14896
+ toJSON(message) {
14897
+ const obj = {};
14898
+ if (message.user_id !== "") {
14899
+ obj.user_id = message.user_id;
14900
+ }
14901
+ if (message.username !== "") {
14902
+ obj.username = message.username;
14903
+ }
14904
+ if (message.hash !== "") {
14905
+ obj.hash = message.hash;
14906
+ }
14907
+ return obj;
14908
+ },
14909
+ create(base) {
14910
+ return JoinChannelAppData.fromPartial(base != null ? base : {});
14911
+ },
14912
+ fromPartial(object) {
14913
+ var _a, _b, _c;
14914
+ const message = createBaseJoinChannelAppData();
14915
+ message.user_id = (_a = object.user_id) != null ? _a : "";
14916
+ message.username = (_b = object.username) != null ? _b : "";
14917
+ message.hash = (_c = object.hash) != null ? _c : "";
14918
+ return message;
14919
+ }
14920
+ };
14825
14921
  function toTimestamp2(date) {
14826
14922
  const seconds = Math.trunc(date.getTime() / 1e3);
14827
14923
  const nanos = date.getTime() % 1e3 * 1e6;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.7.11",
3
+ "version": "1.7.13",
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.1
4
- // protoc v5.27.2
3
+ // protoc-gen-ts_proto v1.181.2
4
+ // protoc v3.20.3
5
5
  // source: rtapi/realtime.proto
6
6
 
7
7
  /* eslint-disable */
@@ -314,6 +314,7 @@ export interface Envelope {
314
314
  | undefined;
315
315
  /** */
316
316
  noti_user_channel?: NotificationUserChannel | undefined;
317
+ join_channel_app_data?: JoinChannelAppData | undefined;
317
318
  }
318
319
 
319
320
  export interface FollowEvent {
@@ -1325,6 +1326,12 @@ export interface UserStatusEvent {
1325
1326
  custom_status: string;
1326
1327
  }
1327
1328
 
1329
+ export interface JoinChannelAppData {
1330
+ user_id: string;
1331
+ username: string;
1332
+ hash: string;
1333
+ }
1334
+
1328
1335
  function createBaseEnvelope(): Envelope {
1329
1336
  return {
1330
1337
  cid: "",
@@ -1399,6 +1406,7 @@ function createBaseEnvelope(): Envelope {
1399
1406
  remove_friend: undefined,
1400
1407
  webhook_event: undefined,
1401
1408
  noti_user_channel: undefined,
1409
+ join_channel_app_data: undefined,
1402
1410
  };
1403
1411
  }
1404
1412
 
@@ -1620,6 +1628,9 @@ export const Envelope = {
1620
1628
  if (message.noti_user_channel !== undefined) {
1621
1629
  NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
1622
1630
  }
1631
+ if (message.join_channel_app_data !== undefined) {
1632
+ JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(586).fork()).ldelim();
1633
+ }
1623
1634
  return writer;
1624
1635
  },
1625
1636
 
@@ -2134,6 +2145,13 @@ export const Envelope = {
2134
2145
 
2135
2146
  message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
2136
2147
  continue;
2148
+ case 73:
2149
+ if (tag !== 586) {
2150
+ break;
2151
+ }
2152
+
2153
+ message.join_channel_app_data = JoinChannelAppData.decode(reader, reader.uint32());
2154
+ continue;
2137
2155
  }
2138
2156
  if ((tag & 7) === 4 || tag === 0) {
2139
2157
  break;
@@ -2311,6 +2329,9 @@ export const Envelope = {
2311
2329
  noti_user_channel: isSet(object.noti_user_channel)
2312
2330
  ? NotificationUserChannel.fromJSON(object.noti_user_channel)
2313
2331
  : undefined,
2332
+ join_channel_app_data: isSet(object.join_channel_app_data)
2333
+ ? JoinChannelAppData.fromJSON(object.join_channel_app_data)
2334
+ : undefined,
2314
2335
  };
2315
2336
  },
2316
2337
 
@@ -2532,6 +2553,9 @@ export const Envelope = {
2532
2553
  if (message.noti_user_channel !== undefined) {
2533
2554
  obj.noti_user_channel = NotificationUserChannel.toJSON(message.noti_user_channel);
2534
2555
  }
2556
+ if (message.join_channel_app_data !== undefined) {
2557
+ obj.join_channel_app_data = JoinChannelAppData.toJSON(message.join_channel_app_data);
2558
+ }
2535
2559
  return obj;
2536
2560
  },
2537
2561
 
@@ -2770,6 +2794,10 @@ export const Envelope = {
2770
2794
  message.noti_user_channel = (object.noti_user_channel !== undefined && object.noti_user_channel !== null)
2771
2795
  ? NotificationUserChannel.fromPartial(object.noti_user_channel)
2772
2796
  : undefined;
2797
+ message.join_channel_app_data =
2798
+ (object.join_channel_app_data !== undefined && object.join_channel_app_data !== null)
2799
+ ? JoinChannelAppData.fromPartial(object.join_channel_app_data)
2800
+ : undefined;
2773
2801
  return message;
2774
2802
  },
2775
2803
  };
@@ -11554,6 +11582,95 @@ export const UserStatusEvent = {
11554
11582
  },
11555
11583
  };
11556
11584
 
11585
+ function createBaseJoinChannelAppData(): JoinChannelAppData {
11586
+ return { user_id: "", username: "", hash: "" };
11587
+ }
11588
+
11589
+ export const JoinChannelAppData = {
11590
+ encode(message: JoinChannelAppData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
11591
+ if (message.user_id !== "") {
11592
+ writer.uint32(10).string(message.user_id);
11593
+ }
11594
+ if (message.username !== "") {
11595
+ writer.uint32(18).string(message.username);
11596
+ }
11597
+ if (message.hash !== "") {
11598
+ writer.uint32(26).string(message.hash);
11599
+ }
11600
+ return writer;
11601
+ },
11602
+
11603
+ decode(input: _m0.Reader | Uint8Array, length?: number): JoinChannelAppData {
11604
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
11605
+ let end = length === undefined ? reader.len : reader.pos + length;
11606
+ const message = createBaseJoinChannelAppData();
11607
+ while (reader.pos < end) {
11608
+ const tag = reader.uint32();
11609
+ switch (tag >>> 3) {
11610
+ case 1:
11611
+ if (tag !== 10) {
11612
+ break;
11613
+ }
11614
+
11615
+ message.user_id = reader.string();
11616
+ continue;
11617
+ case 2:
11618
+ if (tag !== 18) {
11619
+ break;
11620
+ }
11621
+
11622
+ message.username = reader.string();
11623
+ continue;
11624
+ case 3:
11625
+ if (tag !== 26) {
11626
+ break;
11627
+ }
11628
+
11629
+ message.hash = reader.string();
11630
+ continue;
11631
+ }
11632
+ if ((tag & 7) === 4 || tag === 0) {
11633
+ break;
11634
+ }
11635
+ reader.skipType(tag & 7);
11636
+ }
11637
+ return message;
11638
+ },
11639
+
11640
+ fromJSON(object: any): JoinChannelAppData {
11641
+ return {
11642
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
11643
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
11644
+ hash: isSet(object.hash) ? globalThis.String(object.hash) : "",
11645
+ };
11646
+ },
11647
+
11648
+ toJSON(message: JoinChannelAppData): unknown {
11649
+ const obj: any = {};
11650
+ if (message.user_id !== "") {
11651
+ obj.user_id = message.user_id;
11652
+ }
11653
+ if (message.username !== "") {
11654
+ obj.username = message.username;
11655
+ }
11656
+ if (message.hash !== "") {
11657
+ obj.hash = message.hash;
11658
+ }
11659
+ return obj;
11660
+ },
11661
+
11662
+ create<I extends Exact<DeepPartial<JoinChannelAppData>, I>>(base?: I): JoinChannelAppData {
11663
+ return JoinChannelAppData.fromPartial(base ?? ({} as any));
11664
+ },
11665
+ fromPartial<I extends Exact<DeepPartial<JoinChannelAppData>, I>>(object: I): JoinChannelAppData {
11666
+ const message = createBaseJoinChannelAppData();
11667
+ message.user_id = object.user_id ?? "";
11668
+ message.username = object.username ?? "";
11669
+ message.hash = object.hash ?? "";
11670
+ return message;
11671
+ },
11672
+ };
11673
+
11557
11674
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
11558
11675
 
11559
11676
  export type DeepPartial<T> = T extends Builtin ? T