mezon-js-protobuf 1.6.47 → 1.6.48

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.
@@ -933,6 +933,8 @@ export interface JoinPTTChannel {
933
933
  clan_id: string;
934
934
  }
935
935
  export interface TalkPTTChannel {
936
+ /** user id */
937
+ user_id: string;
936
938
  /** channel id */
937
939
  channel_id: string;
938
940
  }
@@ -1644,6 +1646,7 @@ export declare const Envelope: {
1644
1646
  clan_id?: string | undefined;
1645
1647
  } | undefined;
1646
1648
  talk_ptt_channel?: {
1649
+ user_id?: string | undefined;
1647
1650
  channel_id?: string | undefined;
1648
1651
  } | undefined;
1649
1652
  list_activity?: {
@@ -3534,10 +3537,12 @@ export declare const Envelope: {
3534
3537
  clan_id?: string | undefined;
3535
3538
  } & { [K_118 in Exclude<keyof I["join_ptt_channel"], keyof JoinPTTChannel>]: never; }) | undefined;
3536
3539
  talk_ptt_channel?: ({
3540
+ user_id?: string | undefined;
3537
3541
  channel_id?: string | undefined;
3538
3542
  } & {
3543
+ user_id?: string | undefined;
3539
3544
  channel_id?: string | undefined;
3540
- } & { [K_119 in Exclude<keyof I["talk_ptt_channel"], "channel_id">]: never; }) | undefined;
3545
+ } & { [K_119 in Exclude<keyof I["talk_ptt_channel"], keyof TalkPTTChannel>]: never; }) | undefined;
3541
3546
  list_activity?: ({
3542
3547
  acts?: {
3543
3548
  user_id?: string | undefined;
@@ -4312,6 +4317,7 @@ export declare const Envelope: {
4312
4317
  clan_id?: string | undefined;
4313
4318
  } | undefined;
4314
4319
  talk_ptt_channel?: {
4320
+ user_id?: string | undefined;
4315
4321
  channel_id?: string | undefined;
4316
4322
  } | undefined;
4317
4323
  list_activity?: {
@@ -6202,10 +6208,12 @@ export declare const Envelope: {
6202
6208
  clan_id?: string | undefined;
6203
6209
  } & { [K_248 in Exclude<keyof I_1["join_ptt_channel"], keyof JoinPTTChannel>]: never; }) | undefined;
6204
6210
  talk_ptt_channel?: ({
6211
+ user_id?: string | undefined;
6205
6212
  channel_id?: string | undefined;
6206
6213
  } & {
6214
+ user_id?: string | undefined;
6207
6215
  channel_id?: string | undefined;
6208
- } & { [K_249 in Exclude<keyof I_1["talk_ptt_channel"], "channel_id">]: never; }) | undefined;
6216
+ } & { [K_249 in Exclude<keyof I_1["talk_ptt_channel"], keyof TalkPTTChannel>]: never; }) | undefined;
6209
6217
  list_activity?: ({
6210
6218
  acts?: {
6211
6219
  user_id?: string | undefined;
@@ -10523,15 +10531,19 @@ export declare const TalkPTTChannel: {
10523
10531
  fromJSON(object: any): TalkPTTChannel;
10524
10532
  toJSON(message: TalkPTTChannel): unknown;
10525
10533
  create<I extends {
10534
+ user_id?: string | undefined;
10526
10535
  channel_id?: string | undefined;
10527
10536
  } & {
10537
+ user_id?: string | undefined;
10528
10538
  channel_id?: string | undefined;
10529
- } & { [K in Exclude<keyof I, "channel_id">]: never; }>(base?: I | undefined): TalkPTTChannel;
10539
+ } & { [K in Exclude<keyof I, keyof TalkPTTChannel>]: never; }>(base?: I | undefined): TalkPTTChannel;
10530
10540
  fromPartial<I_1 extends {
10541
+ user_id?: string | undefined;
10531
10542
  channel_id?: string | undefined;
10532
10543
  } & {
10544
+ user_id?: string | undefined;
10533
10545
  channel_id?: string | undefined;
10534
- } & { [K_1 in Exclude<keyof I_1, "channel_id">]: never; }>(object: I_1): TalkPTTChannel;
10546
+ } & { [K_1 in Exclude<keyof I_1, keyof TalkPTTChannel>]: never; }>(object: I_1): TalkPTTChannel;
10535
10547
  };
10536
10548
  export declare const ListActivity: {
10537
10549
  encode(message: ListActivity, writer?: _m0.Writer): _m0.Writer;
@@ -12915,12 +12915,15 @@ var JoinPTTChannel = {
12915
12915
  }
12916
12916
  };
12917
12917
  function createBaseTalkPTTChannel() {
12918
- return { channel_id: "" };
12918
+ return { user_id: "", channel_id: "" };
12919
12919
  }
12920
12920
  var TalkPTTChannel = {
12921
12921
  encode(message, writer = import_minimal5.default.Writer.create()) {
12922
+ if (message.user_id !== "") {
12923
+ writer.uint32(10).string(message.user_id);
12924
+ }
12922
12925
  if (message.channel_id !== "") {
12923
- writer.uint32(10).string(message.channel_id);
12926
+ writer.uint32(18).string(message.channel_id);
12924
12927
  }
12925
12928
  return writer;
12926
12929
  },
@@ -12935,6 +12938,12 @@ var TalkPTTChannel = {
12935
12938
  if (tag !== 10) {
12936
12939
  break;
12937
12940
  }
12941
+ message.user_id = reader.string();
12942
+ continue;
12943
+ case 2:
12944
+ if (tag !== 18) {
12945
+ break;
12946
+ }
12938
12947
  message.channel_id = reader.string();
12939
12948
  continue;
12940
12949
  }
@@ -12946,10 +12955,16 @@ var TalkPTTChannel = {
12946
12955
  return message;
12947
12956
  },
12948
12957
  fromJSON(object) {
12949
- return { channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "" };
12958
+ return {
12959
+ user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
12960
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
12961
+ };
12950
12962
  },
12951
12963
  toJSON(message) {
12952
12964
  const obj = {};
12965
+ if (message.user_id !== "") {
12966
+ obj.user_id = message.user_id;
12967
+ }
12953
12968
  if (message.channel_id !== "") {
12954
12969
  obj.channel_id = message.channel_id;
12955
12970
  }
@@ -12959,9 +12974,10 @@ var TalkPTTChannel = {
12959
12974
  return TalkPTTChannel.fromPartial(base != null ? base : {});
12960
12975
  },
12961
12976
  fromPartial(object) {
12962
- var _a;
12977
+ var _a, _b;
12963
12978
  const message = createBaseTalkPTTChannel();
12964
- message.channel_id = (_a = object.channel_id) != null ? _a : "";
12979
+ message.user_id = (_a = object.user_id) != null ? _a : "";
12980
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
12965
12981
  return message;
12966
12982
  }
12967
12983
  };
@@ -12902,12 +12902,15 @@ var JoinPTTChannel = {
12902
12902
  }
12903
12903
  };
12904
12904
  function createBaseTalkPTTChannel() {
12905
- return { channel_id: "" };
12905
+ return { user_id: "", channel_id: "" };
12906
12906
  }
12907
12907
  var TalkPTTChannel = {
12908
12908
  encode(message, writer = import_minimal5.default.Writer.create()) {
12909
+ if (message.user_id !== "") {
12910
+ writer.uint32(10).string(message.user_id);
12911
+ }
12909
12912
  if (message.channel_id !== "") {
12910
- writer.uint32(10).string(message.channel_id);
12913
+ writer.uint32(18).string(message.channel_id);
12911
12914
  }
12912
12915
  return writer;
12913
12916
  },
@@ -12922,6 +12925,12 @@ var TalkPTTChannel = {
12922
12925
  if (tag !== 10) {
12923
12926
  break;
12924
12927
  }
12928
+ message.user_id = reader.string();
12929
+ continue;
12930
+ case 2:
12931
+ if (tag !== 18) {
12932
+ break;
12933
+ }
12925
12934
  message.channel_id = reader.string();
12926
12935
  continue;
12927
12936
  }
@@ -12933,10 +12942,16 @@ var TalkPTTChannel = {
12933
12942
  return message;
12934
12943
  },
12935
12944
  fromJSON(object) {
12936
- return { channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "" };
12945
+ return {
12946
+ user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
12947
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
12948
+ };
12937
12949
  },
12938
12950
  toJSON(message) {
12939
12951
  const obj = {};
12952
+ if (message.user_id !== "") {
12953
+ obj.user_id = message.user_id;
12954
+ }
12940
12955
  if (message.channel_id !== "") {
12941
12956
  obj.channel_id = message.channel_id;
12942
12957
  }
@@ -12946,9 +12961,10 @@ var TalkPTTChannel = {
12946
12961
  return TalkPTTChannel.fromPartial(base != null ? base : {});
12947
12962
  },
12948
12963
  fromPartial(object) {
12949
- var _a;
12964
+ var _a, _b;
12950
12965
  const message = createBaseTalkPTTChannel();
12951
- message.channel_id = (_a = object.channel_id) != null ? _a : "";
12966
+ message.user_id = (_a = object.user_id) != null ? _a : "";
12967
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
12952
12968
  return message;
12953
12969
  }
12954
12970
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.47",
3
+ "version": "1.6.48",
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
@@ -1240,6 +1240,8 @@ export interface JoinPTTChannel {
1240
1240
  }
1241
1241
 
1242
1242
  export interface TalkPTTChannel {
1243
+ /** user id */
1244
+ user_id: string;
1243
1245
  /** channel id */
1244
1246
  channel_id: string;
1245
1247
  }
@@ -10523,13 +10525,16 @@ export const JoinPTTChannel = {
10523
10525
  };
10524
10526
 
10525
10527
  function createBaseTalkPTTChannel(): TalkPTTChannel {
10526
- return { channel_id: "" };
10528
+ return { user_id: "", channel_id: "" };
10527
10529
  }
10528
10530
 
10529
10531
  export const TalkPTTChannel = {
10530
10532
  encode(message: TalkPTTChannel, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
10533
+ if (message.user_id !== "") {
10534
+ writer.uint32(10).string(message.user_id);
10535
+ }
10531
10536
  if (message.channel_id !== "") {
10532
- writer.uint32(10).string(message.channel_id);
10537
+ writer.uint32(18).string(message.channel_id);
10533
10538
  }
10534
10539
  return writer;
10535
10540
  },
@@ -10546,6 +10551,13 @@ export const TalkPTTChannel = {
10546
10551
  break;
10547
10552
  }
10548
10553
 
10554
+ message.user_id = reader.string();
10555
+ continue;
10556
+ case 2:
10557
+ if (tag !== 18) {
10558
+ break;
10559
+ }
10560
+
10549
10561
  message.channel_id = reader.string();
10550
10562
  continue;
10551
10563
  }
@@ -10558,11 +10570,17 @@ export const TalkPTTChannel = {
10558
10570
  },
10559
10571
 
10560
10572
  fromJSON(object: any): TalkPTTChannel {
10561
- return { channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "" };
10573
+ return {
10574
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
10575
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
10576
+ };
10562
10577
  },
10563
10578
 
10564
10579
  toJSON(message: TalkPTTChannel): unknown {
10565
10580
  const obj: any = {};
10581
+ if (message.user_id !== "") {
10582
+ obj.user_id = message.user_id;
10583
+ }
10566
10584
  if (message.channel_id !== "") {
10567
10585
  obj.channel_id = message.channel_id;
10568
10586
  }
@@ -10574,6 +10592,7 @@ export const TalkPTTChannel = {
10574
10592
  },
10575
10593
  fromPartial<I extends Exact<DeepPartial<TalkPTTChannel>, I>>(object: I): TalkPTTChannel {
10576
10594
  const message = createBaseTalkPTTChannel();
10595
+ message.user_id = object.user_id ?? "";
10577
10596
  message.channel_id = object.channel_id ?? "";
10578
10597
  return message;
10579
10598
  },