mezon-js-protobuf 1.6.48 → 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.
@@ -937,6 +937,8 @@ export interface TalkPTTChannel {
937
937
  user_id: string;
938
938
  /** channel id */
939
939
  channel_id: string;
940
+ /** is talk */
941
+ isTalk: boolean;
940
942
  }
941
943
  export interface ListActivity {
942
944
  acts: UserActivity[];
@@ -1648,6 +1650,7 @@ export declare const Envelope: {
1648
1650
  talk_ptt_channel?: {
1649
1651
  user_id?: string | undefined;
1650
1652
  channel_id?: string | undefined;
1653
+ isTalk?: boolean | undefined;
1651
1654
  } | undefined;
1652
1655
  list_activity?: {
1653
1656
  acts?: {
@@ -3539,9 +3542,11 @@ export declare const Envelope: {
3539
3542
  talk_ptt_channel?: ({
3540
3543
  user_id?: string | undefined;
3541
3544
  channel_id?: string | undefined;
3545
+ isTalk?: boolean | undefined;
3542
3546
  } & {
3543
3547
  user_id?: string | undefined;
3544
3548
  channel_id?: string | undefined;
3549
+ isTalk?: boolean | undefined;
3545
3550
  } & { [K_119 in Exclude<keyof I["talk_ptt_channel"], keyof TalkPTTChannel>]: never; }) | undefined;
3546
3551
  list_activity?: ({
3547
3552
  acts?: {
@@ -4319,6 +4324,7 @@ export declare const Envelope: {
4319
4324
  talk_ptt_channel?: {
4320
4325
  user_id?: string | undefined;
4321
4326
  channel_id?: string | undefined;
4327
+ isTalk?: boolean | undefined;
4322
4328
  } | undefined;
4323
4329
  list_activity?: {
4324
4330
  acts?: {
@@ -6210,9 +6216,11 @@ export declare const Envelope: {
6210
6216
  talk_ptt_channel?: ({
6211
6217
  user_id?: string | undefined;
6212
6218
  channel_id?: string | undefined;
6219
+ isTalk?: boolean | undefined;
6213
6220
  } & {
6214
6221
  user_id?: string | undefined;
6215
6222
  channel_id?: string | undefined;
6223
+ isTalk?: boolean | undefined;
6216
6224
  } & { [K_249 in Exclude<keyof I_1["talk_ptt_channel"], keyof TalkPTTChannel>]: never; }) | undefined;
6217
6225
  list_activity?: ({
6218
6226
  acts?: {
@@ -10533,16 +10541,20 @@ export declare const TalkPTTChannel: {
10533
10541
  create<I extends {
10534
10542
  user_id?: string | undefined;
10535
10543
  channel_id?: string | undefined;
10544
+ isTalk?: boolean | undefined;
10536
10545
  } & {
10537
10546
  user_id?: string | undefined;
10538
10547
  channel_id?: string | undefined;
10548
+ isTalk?: boolean | undefined;
10539
10549
  } & { [K in Exclude<keyof I, keyof TalkPTTChannel>]: never; }>(base?: I | undefined): TalkPTTChannel;
10540
10550
  fromPartial<I_1 extends {
10541
10551
  user_id?: string | undefined;
10542
10552
  channel_id?: string | undefined;
10553
+ isTalk?: boolean | undefined;
10543
10554
  } & {
10544
10555
  user_id?: string | undefined;
10545
10556
  channel_id?: string | undefined;
10557
+ isTalk?: boolean | undefined;
10546
10558
  } & { [K_1 in Exclude<keyof I_1, keyof TalkPTTChannel>]: never; }>(object: I_1): TalkPTTChannel;
10547
10559
  };
10548
10560
  export declare const ListActivity: {
@@ -12915,7 +12915,7 @@ var JoinPTTChannel = {
12915
12915
  }
12916
12916
  };
12917
12917
  function createBaseTalkPTTChannel() {
12918
- return { user_id: "", 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()) {
@@ -12925,6 +12925,9 @@ var TalkPTTChannel = {
12925
12925
  if (message.channel_id !== "") {
12926
12926
  writer.uint32(18).string(message.channel_id);
12927
12927
  }
12928
+ if (message.isTalk !== false) {
12929
+ writer.uint32(24).bool(message.isTalk);
12930
+ }
12928
12931
  return writer;
12929
12932
  },
12930
12933
  decode(input, length) {
@@ -12946,6 +12949,12 @@ var TalkPTTChannel = {
12946
12949
  }
12947
12950
  message.channel_id = reader.string();
12948
12951
  continue;
12952
+ case 3:
12953
+ if (tag !== 24) {
12954
+ break;
12955
+ }
12956
+ message.isTalk = reader.bool();
12957
+ continue;
12949
12958
  }
12950
12959
  if ((tag & 7) === 4 || tag === 0) {
12951
12960
  break;
@@ -12957,7 +12966,8 @@ var TalkPTTChannel = {
12957
12966
  fromJSON(object) {
12958
12967
  return {
12959
12968
  user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
12960
- channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
12969
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
12970
+ isTalk: isSet4(object.isTalk) ? globalThis.Boolean(object.isTalk) : false
12961
12971
  };
12962
12972
  },
12963
12973
  toJSON(message) {
@@ -12968,16 +12978,20 @@ var TalkPTTChannel = {
12968
12978
  if (message.channel_id !== "") {
12969
12979
  obj.channel_id = message.channel_id;
12970
12980
  }
12981
+ if (message.isTalk !== false) {
12982
+ obj.isTalk = message.isTalk;
12983
+ }
12971
12984
  return obj;
12972
12985
  },
12973
12986
  create(base) {
12974
12987
  return TalkPTTChannel.fromPartial(base != null ? base : {});
12975
12988
  },
12976
12989
  fromPartial(object) {
12977
- var _a, _b;
12990
+ var _a, _b, _c;
12978
12991
  const message = createBaseTalkPTTChannel();
12979
12992
  message.user_id = (_a = object.user_id) != null ? _a : "";
12980
12993
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
12994
+ message.isTalk = (_c = object.isTalk) != null ? _c : false;
12981
12995
  return message;
12982
12996
  }
12983
12997
  };
@@ -12902,7 +12902,7 @@ var JoinPTTChannel = {
12902
12902
  }
12903
12903
  };
12904
12904
  function createBaseTalkPTTChannel() {
12905
- return { user_id: "", 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()) {
@@ -12912,6 +12912,9 @@ var TalkPTTChannel = {
12912
12912
  if (message.channel_id !== "") {
12913
12913
  writer.uint32(18).string(message.channel_id);
12914
12914
  }
12915
+ if (message.isTalk !== false) {
12916
+ writer.uint32(24).bool(message.isTalk);
12917
+ }
12915
12918
  return writer;
12916
12919
  },
12917
12920
  decode(input, length) {
@@ -12933,6 +12936,12 @@ var TalkPTTChannel = {
12933
12936
  }
12934
12937
  message.channel_id = reader.string();
12935
12938
  continue;
12939
+ case 3:
12940
+ if (tag !== 24) {
12941
+ break;
12942
+ }
12943
+ message.isTalk = reader.bool();
12944
+ continue;
12936
12945
  }
12937
12946
  if ((tag & 7) === 4 || tag === 0) {
12938
12947
  break;
@@ -12944,7 +12953,8 @@ var TalkPTTChannel = {
12944
12953
  fromJSON(object) {
12945
12954
  return {
12946
12955
  user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
12947
- channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
12956
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
12957
+ isTalk: isSet4(object.isTalk) ? globalThis.Boolean(object.isTalk) : false
12948
12958
  };
12949
12959
  },
12950
12960
  toJSON(message) {
@@ -12955,16 +12965,20 @@ var TalkPTTChannel = {
12955
12965
  if (message.channel_id !== "") {
12956
12966
  obj.channel_id = message.channel_id;
12957
12967
  }
12968
+ if (message.isTalk !== false) {
12969
+ obj.isTalk = message.isTalk;
12970
+ }
12958
12971
  return obj;
12959
12972
  },
12960
12973
  create(base) {
12961
12974
  return TalkPTTChannel.fromPartial(base != null ? base : {});
12962
12975
  },
12963
12976
  fromPartial(object) {
12964
- var _a, _b;
12977
+ var _a, _b, _c;
12965
12978
  const message = createBaseTalkPTTChannel();
12966
12979
  message.user_id = (_a = object.user_id) != null ? _a : "";
12967
12980
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
12981
+ message.isTalk = (_c = object.isTalk) != null ? _c : false;
12968
12982
  return message;
12969
12983
  }
12970
12984
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.48",
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
@@ -1244,6 +1244,8 @@ export interface TalkPTTChannel {
1244
1244
  user_id: string;
1245
1245
  /** channel id */
1246
1246
  channel_id: string;
1247
+ /** is talk */
1248
+ isTalk: boolean;
1247
1249
  }
1248
1250
 
1249
1251
  export interface ListActivity {
@@ -10525,7 +10527,7 @@ export const JoinPTTChannel = {
10525
10527
  };
10526
10528
 
10527
10529
  function createBaseTalkPTTChannel(): TalkPTTChannel {
10528
- return { user_id: "", channel_id: "" };
10530
+ return { user_id: "", channel_id: "", isTalk: false };
10529
10531
  }
10530
10532
 
10531
10533
  export const TalkPTTChannel = {
@@ -10536,6 +10538,9 @@ export const TalkPTTChannel = {
10536
10538
  if (message.channel_id !== "") {
10537
10539
  writer.uint32(18).string(message.channel_id);
10538
10540
  }
10541
+ if (message.isTalk !== false) {
10542
+ writer.uint32(24).bool(message.isTalk);
10543
+ }
10539
10544
  return writer;
10540
10545
  },
10541
10546
 
@@ -10560,6 +10565,13 @@ export const TalkPTTChannel = {
10560
10565
 
10561
10566
  message.channel_id = reader.string();
10562
10567
  continue;
10568
+ case 3:
10569
+ if (tag !== 24) {
10570
+ break;
10571
+ }
10572
+
10573
+ message.isTalk = reader.bool();
10574
+ continue;
10563
10575
  }
10564
10576
  if ((tag & 7) === 4 || tag === 0) {
10565
10577
  break;
@@ -10573,6 +10585,7 @@ export const TalkPTTChannel = {
10573
10585
  return {
10574
10586
  user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
10575
10587
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
10588
+ isTalk: isSet(object.isTalk) ? globalThis.Boolean(object.isTalk) : false,
10576
10589
  };
10577
10590
  },
10578
10591
 
@@ -10584,6 +10597,9 @@ export const TalkPTTChannel = {
10584
10597
  if (message.channel_id !== "") {
10585
10598
  obj.channel_id = message.channel_id;
10586
10599
  }
10600
+ if (message.isTalk !== false) {
10601
+ obj.isTalk = message.isTalk;
10602
+ }
10587
10603
  return obj;
10588
10604
  },
10589
10605
 
@@ -10594,6 +10610,7 @@ export const TalkPTTChannel = {
10594
10610
  const message = createBaseTalkPTTChannel();
10595
10611
  message.user_id = object.user_id ?? "";
10596
10612
  message.channel_id = object.channel_id ?? "";
10613
+ message.isTalk = object.isTalk ?? false;
10597
10614
  return message;
10598
10615
  },
10599
10616
  };