mezon-js-protobuf 1.6.47 → 1.6.49

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,8 +933,12 @@ 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;
940
+ /** is talk */
941
+ isTalk: boolean;
938
942
  }
939
943
  export interface ListActivity {
940
944
  acts: UserActivity[];
@@ -1644,7 +1648,9 @@ export declare const Envelope: {
1644
1648
  clan_id?: string | undefined;
1645
1649
  } | undefined;
1646
1650
  talk_ptt_channel?: {
1651
+ user_id?: string | undefined;
1647
1652
  channel_id?: string | undefined;
1653
+ isTalk?: boolean | undefined;
1648
1654
  } | undefined;
1649
1655
  list_activity?: {
1650
1656
  acts?: {
@@ -3534,10 +3540,14 @@ export declare const Envelope: {
3534
3540
  clan_id?: string | undefined;
3535
3541
  } & { [K_118 in Exclude<keyof I["join_ptt_channel"], keyof JoinPTTChannel>]: never; }) | undefined;
3536
3542
  talk_ptt_channel?: ({
3543
+ user_id?: string | undefined;
3537
3544
  channel_id?: string | undefined;
3545
+ isTalk?: boolean | undefined;
3538
3546
  } & {
3547
+ user_id?: string | undefined;
3539
3548
  channel_id?: string | undefined;
3540
- } & { [K_119 in Exclude<keyof I["talk_ptt_channel"], "channel_id">]: never; }) | undefined;
3549
+ isTalk?: boolean | undefined;
3550
+ } & { [K_119 in Exclude<keyof I["talk_ptt_channel"], keyof TalkPTTChannel>]: never; }) | undefined;
3541
3551
  list_activity?: ({
3542
3552
  acts?: {
3543
3553
  user_id?: string | undefined;
@@ -4312,7 +4322,9 @@ export declare const Envelope: {
4312
4322
  clan_id?: string | undefined;
4313
4323
  } | undefined;
4314
4324
  talk_ptt_channel?: {
4325
+ user_id?: string | undefined;
4315
4326
  channel_id?: string | undefined;
4327
+ isTalk?: boolean | undefined;
4316
4328
  } | undefined;
4317
4329
  list_activity?: {
4318
4330
  acts?: {
@@ -6202,10 +6214,14 @@ export declare const Envelope: {
6202
6214
  clan_id?: string | undefined;
6203
6215
  } & { [K_248 in Exclude<keyof I_1["join_ptt_channel"], keyof JoinPTTChannel>]: never; }) | undefined;
6204
6216
  talk_ptt_channel?: ({
6217
+ user_id?: string | undefined;
6205
6218
  channel_id?: string | undefined;
6219
+ isTalk?: boolean | undefined;
6206
6220
  } & {
6221
+ user_id?: string | undefined;
6207
6222
  channel_id?: string | undefined;
6208
- } & { [K_249 in Exclude<keyof I_1["talk_ptt_channel"], "channel_id">]: never; }) | undefined;
6223
+ isTalk?: boolean | undefined;
6224
+ } & { [K_249 in Exclude<keyof I_1["talk_ptt_channel"], keyof TalkPTTChannel>]: never; }) | undefined;
6209
6225
  list_activity?: ({
6210
6226
  acts?: {
6211
6227
  user_id?: string | undefined;
@@ -10523,15 +10539,23 @@ export declare const TalkPTTChannel: {
10523
10539
  fromJSON(object: any): TalkPTTChannel;
10524
10540
  toJSON(message: TalkPTTChannel): unknown;
10525
10541
  create<I extends {
10542
+ user_id?: string | undefined;
10526
10543
  channel_id?: string | undefined;
10544
+ isTalk?: boolean | undefined;
10527
10545
  } & {
10546
+ user_id?: string | undefined;
10528
10547
  channel_id?: string | undefined;
10529
- } & { [K in Exclude<keyof I, "channel_id">]: never; }>(base?: I | undefined): TalkPTTChannel;
10548
+ isTalk?: boolean | undefined;
10549
+ } & { [K in Exclude<keyof I, keyof TalkPTTChannel>]: never; }>(base?: I | undefined): TalkPTTChannel;
10530
10550
  fromPartial<I_1 extends {
10551
+ user_id?: string | undefined;
10531
10552
  channel_id?: string | undefined;
10553
+ isTalk?: boolean | undefined;
10532
10554
  } & {
10555
+ user_id?: string | undefined;
10533
10556
  channel_id?: string | undefined;
10534
- } & { [K_1 in Exclude<keyof I_1, "channel_id">]: never; }>(object: I_1): TalkPTTChannel;
10557
+ isTalk?: boolean | undefined;
10558
+ } & { [K_1 in Exclude<keyof I_1, keyof TalkPTTChannel>]: never; }>(object: I_1): TalkPTTChannel;
10535
10559
  };
10536
10560
  export declare const ListActivity: {
10537
10561
  encode(message: ListActivity, writer?: _m0.Writer): _m0.Writer;
@@ -12915,12 +12915,18 @@ var JoinPTTChannel = {
12915
12915
  }
12916
12916
  };
12917
12917
  function createBaseTalkPTTChannel() {
12918
- return { channel_id: "" };
12918
+ return { user_id: "", channel_id: "", isTalk: false };
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);
12927
+ }
12928
+ if (message.isTalk !== false) {
12929
+ writer.uint32(24).bool(message.isTalk);
12924
12930
  }
12925
12931
  return writer;
12926
12932
  },
@@ -12935,8 +12941,20 @@ var TalkPTTChannel = {
12935
12941
  if (tag !== 10) {
12936
12942
  break;
12937
12943
  }
12944
+ message.user_id = reader.string();
12945
+ continue;
12946
+ case 2:
12947
+ if (tag !== 18) {
12948
+ break;
12949
+ }
12938
12950
  message.channel_id = reader.string();
12939
12951
  continue;
12952
+ case 3:
12953
+ if (tag !== 24) {
12954
+ break;
12955
+ }
12956
+ message.isTalk = reader.bool();
12957
+ continue;
12940
12958
  }
12941
12959
  if ((tag & 7) === 4 || tag === 0) {
12942
12960
  break;
@@ -12946,22 +12964,34 @@ var TalkPTTChannel = {
12946
12964
  return message;
12947
12965
  },
12948
12966
  fromJSON(object) {
12949
- return { channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "" };
12967
+ return {
12968
+ user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
12969
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
12970
+ isTalk: isSet4(object.isTalk) ? globalThis.Boolean(object.isTalk) : false
12971
+ };
12950
12972
  },
12951
12973
  toJSON(message) {
12952
12974
  const obj = {};
12975
+ if (message.user_id !== "") {
12976
+ obj.user_id = message.user_id;
12977
+ }
12953
12978
  if (message.channel_id !== "") {
12954
12979
  obj.channel_id = message.channel_id;
12955
12980
  }
12981
+ if (message.isTalk !== false) {
12982
+ obj.isTalk = message.isTalk;
12983
+ }
12956
12984
  return obj;
12957
12985
  },
12958
12986
  create(base) {
12959
12987
  return TalkPTTChannel.fromPartial(base != null ? base : {});
12960
12988
  },
12961
12989
  fromPartial(object) {
12962
- var _a;
12990
+ var _a, _b, _c;
12963
12991
  const message = createBaseTalkPTTChannel();
12964
- message.channel_id = (_a = object.channel_id) != null ? _a : "";
12992
+ message.user_id = (_a = object.user_id) != null ? _a : "";
12993
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
12994
+ message.isTalk = (_c = object.isTalk) != null ? _c : false;
12965
12995
  return message;
12966
12996
  }
12967
12997
  };
@@ -12902,12 +12902,18 @@ var JoinPTTChannel = {
12902
12902
  }
12903
12903
  };
12904
12904
  function createBaseTalkPTTChannel() {
12905
- return { channel_id: "" };
12905
+ return { user_id: "", channel_id: "", isTalk: false };
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);
12914
+ }
12915
+ if (message.isTalk !== false) {
12916
+ writer.uint32(24).bool(message.isTalk);
12911
12917
  }
12912
12918
  return writer;
12913
12919
  },
@@ -12922,8 +12928,20 @@ var TalkPTTChannel = {
12922
12928
  if (tag !== 10) {
12923
12929
  break;
12924
12930
  }
12931
+ message.user_id = reader.string();
12932
+ continue;
12933
+ case 2:
12934
+ if (tag !== 18) {
12935
+ break;
12936
+ }
12925
12937
  message.channel_id = reader.string();
12926
12938
  continue;
12939
+ case 3:
12940
+ if (tag !== 24) {
12941
+ break;
12942
+ }
12943
+ message.isTalk = reader.bool();
12944
+ continue;
12927
12945
  }
12928
12946
  if ((tag & 7) === 4 || tag === 0) {
12929
12947
  break;
@@ -12933,22 +12951,34 @@ var TalkPTTChannel = {
12933
12951
  return message;
12934
12952
  },
12935
12953
  fromJSON(object) {
12936
- return { channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "" };
12954
+ return {
12955
+ user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
12956
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
12957
+ isTalk: isSet4(object.isTalk) ? globalThis.Boolean(object.isTalk) : false
12958
+ };
12937
12959
  },
12938
12960
  toJSON(message) {
12939
12961
  const obj = {};
12962
+ if (message.user_id !== "") {
12963
+ obj.user_id = message.user_id;
12964
+ }
12940
12965
  if (message.channel_id !== "") {
12941
12966
  obj.channel_id = message.channel_id;
12942
12967
  }
12968
+ if (message.isTalk !== false) {
12969
+ obj.isTalk = message.isTalk;
12970
+ }
12943
12971
  return obj;
12944
12972
  },
12945
12973
  create(base) {
12946
12974
  return TalkPTTChannel.fromPartial(base != null ? base : {});
12947
12975
  },
12948
12976
  fromPartial(object) {
12949
- var _a;
12977
+ var _a, _b, _c;
12950
12978
  const message = createBaseTalkPTTChannel();
12951
- 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 : "";
12981
+ message.isTalk = (_c = object.isTalk) != null ? _c : false;
12952
12982
  return message;
12953
12983
  }
12954
12984
  };
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.49",
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,8 +1240,12 @@ 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;
1247
+ /** is talk */
1248
+ isTalk: boolean;
1245
1249
  }
1246
1250
 
1247
1251
  export interface ListActivity {
@@ -10523,13 +10527,19 @@ export const JoinPTTChannel = {
10523
10527
  };
10524
10528
 
10525
10529
  function createBaseTalkPTTChannel(): TalkPTTChannel {
10526
- return { channel_id: "" };
10530
+ return { user_id: "", channel_id: "", isTalk: false };
10527
10531
  }
10528
10532
 
10529
10533
  export const TalkPTTChannel = {
10530
10534
  encode(message: TalkPTTChannel, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
10535
+ if (message.user_id !== "") {
10536
+ writer.uint32(10).string(message.user_id);
10537
+ }
10531
10538
  if (message.channel_id !== "") {
10532
- writer.uint32(10).string(message.channel_id);
10539
+ writer.uint32(18).string(message.channel_id);
10540
+ }
10541
+ if (message.isTalk !== false) {
10542
+ writer.uint32(24).bool(message.isTalk);
10533
10543
  }
10534
10544
  return writer;
10535
10545
  },
@@ -10546,8 +10556,22 @@ export const TalkPTTChannel = {
10546
10556
  break;
10547
10557
  }
10548
10558
 
10559
+ message.user_id = reader.string();
10560
+ continue;
10561
+ case 2:
10562
+ if (tag !== 18) {
10563
+ break;
10564
+ }
10565
+
10549
10566
  message.channel_id = reader.string();
10550
10567
  continue;
10568
+ case 3:
10569
+ if (tag !== 24) {
10570
+ break;
10571
+ }
10572
+
10573
+ message.isTalk = reader.bool();
10574
+ continue;
10551
10575
  }
10552
10576
  if ((tag & 7) === 4 || tag === 0) {
10553
10577
  break;
@@ -10558,14 +10582,24 @@ export const TalkPTTChannel = {
10558
10582
  },
10559
10583
 
10560
10584
  fromJSON(object: any): TalkPTTChannel {
10561
- return { channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "" };
10585
+ return {
10586
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
10587
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
10588
+ isTalk: isSet(object.isTalk) ? globalThis.Boolean(object.isTalk) : false,
10589
+ };
10562
10590
  },
10563
10591
 
10564
10592
  toJSON(message: TalkPTTChannel): unknown {
10565
10593
  const obj: any = {};
10594
+ if (message.user_id !== "") {
10595
+ obj.user_id = message.user_id;
10596
+ }
10566
10597
  if (message.channel_id !== "") {
10567
10598
  obj.channel_id = message.channel_id;
10568
10599
  }
10600
+ if (message.isTalk !== false) {
10601
+ obj.isTalk = message.isTalk;
10602
+ }
10569
10603
  return obj;
10570
10604
  },
10571
10605
 
@@ -10574,7 +10608,9 @@ export const TalkPTTChannel = {
10574
10608
  },
10575
10609
  fromPartial<I extends Exact<DeepPartial<TalkPTTChannel>, I>>(object: I): TalkPTTChannel {
10576
10610
  const message = createBaseTalkPTTChannel();
10611
+ message.user_id = object.user_id ?? "";
10577
10612
  message.channel_id = object.channel_id ?? "";
10613
+ message.isTalk = object.isTalk ?? false;
10578
10614
  return message;
10579
10615
  },
10580
10616
  };