mezon-js-protobuf 1.6.99 → 1.7.1

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.
@@ -362,8 +362,8 @@ export interface ChannelMessageUpdate {
362
362
  hide_editted: boolean;
363
363
  /** topic id */
364
364
  topic_id: string;
365
- /** topic id */
366
- mess_topic_id: string;
365
+ /** update message topic */
366
+ is_update_msg_topic: boolean;
367
367
  }
368
368
  /** Remove a message previously sent to a realtime channel. */
369
369
  export interface ChannelMessageRemove {
@@ -1143,7 +1143,7 @@ export declare const Envelope: {
1143
1143
  is_public?: boolean | undefined;
1144
1144
  hide_editted?: boolean | undefined;
1145
1145
  topic_id?: string | undefined;
1146
- mess_topic_id?: string | undefined;
1146
+ is_update_msg_topic?: boolean | undefined;
1147
1147
  } | undefined;
1148
1148
  channel_message_remove?: {
1149
1149
  clan_id?: string | undefined;
@@ -2183,7 +2183,7 @@ export declare const Envelope: {
2183
2183
  is_public?: boolean | undefined;
2184
2184
  hide_editted?: boolean | undefined;
2185
2185
  topic_id?: string | undefined;
2186
- mess_topic_id?: string | undefined;
2186
+ is_update_msg_topic?: boolean | undefined;
2187
2187
  } & {
2188
2188
  clan_id?: string | undefined;
2189
2189
  channel_id?: string | undefined;
@@ -2259,7 +2259,7 @@ export declare const Envelope: {
2259
2259
  is_public?: boolean | undefined;
2260
2260
  hide_editted?: boolean | undefined;
2261
2261
  topic_id?: string | undefined;
2262
- mess_topic_id?: string | undefined;
2262
+ is_update_msg_topic?: boolean | undefined;
2263
2263
  } & { [K_20 in Exclude<keyof I["channel_message_update"], keyof ChannelMessageUpdate>]: never; }) | undefined;
2264
2264
  channel_message_remove?: ({
2265
2265
  clan_id?: string | undefined;
@@ -4267,7 +4267,7 @@ export declare const Envelope: {
4267
4267
  is_public?: boolean | undefined;
4268
4268
  hide_editted?: boolean | undefined;
4269
4269
  topic_id?: string | undefined;
4270
- mess_topic_id?: string | undefined;
4270
+ is_update_msg_topic?: boolean | undefined;
4271
4271
  } | undefined;
4272
4272
  channel_message_remove?: {
4273
4273
  clan_id?: string | undefined;
@@ -5307,7 +5307,7 @@ export declare const Envelope: {
5307
5307
  is_public?: boolean | undefined;
5308
5308
  hide_editted?: boolean | undefined;
5309
5309
  topic_id?: string | undefined;
5310
- mess_topic_id?: string | undefined;
5310
+ is_update_msg_topic?: boolean | undefined;
5311
5311
  } & {
5312
5312
  clan_id?: string | undefined;
5313
5313
  channel_id?: string | undefined;
@@ -5383,7 +5383,7 @@ export declare const Envelope: {
5383
5383
  is_public?: boolean | undefined;
5384
5384
  hide_editted?: boolean | undefined;
5385
5385
  topic_id?: string | undefined;
5386
- mess_topic_id?: string | undefined;
5386
+ is_update_msg_topic?: boolean | undefined;
5387
5387
  } & { [K_174 in Exclude<keyof I_1["channel_message_update"], keyof ChannelMessageUpdate>]: never; }) | undefined;
5388
5388
  channel_message_remove?: ({
5389
5389
  clan_id?: string | undefined;
@@ -8376,7 +8376,7 @@ export declare const ChannelMessageUpdate: {
8376
8376
  is_public?: boolean | undefined;
8377
8377
  hide_editted?: boolean | undefined;
8378
8378
  topic_id?: string | undefined;
8379
- mess_topic_id?: string | undefined;
8379
+ is_update_msg_topic?: boolean | undefined;
8380
8380
  } & {
8381
8381
  clan_id?: string | undefined;
8382
8382
  channel_id?: string | undefined;
@@ -8452,7 +8452,7 @@ export declare const ChannelMessageUpdate: {
8452
8452
  is_public?: boolean | undefined;
8453
8453
  hide_editted?: boolean | undefined;
8454
8454
  topic_id?: string | undefined;
8455
- mess_topic_id?: string | undefined;
8455
+ is_update_msg_topic?: boolean | undefined;
8456
8456
  } & { [K_4 in Exclude<keyof I, keyof ChannelMessageUpdate>]: never; }>(base?: I | undefined): ChannelMessageUpdate;
8457
8457
  fromPartial<I_1 extends {
8458
8458
  clan_id?: string | undefined;
@@ -8481,7 +8481,7 @@ export declare const ChannelMessageUpdate: {
8481
8481
  is_public?: boolean | undefined;
8482
8482
  hide_editted?: boolean | undefined;
8483
8483
  topic_id?: string | undefined;
8484
- mess_topic_id?: string | undefined;
8484
+ is_update_msg_topic?: boolean | undefined;
8485
8485
  } & {
8486
8486
  clan_id?: string | undefined;
8487
8487
  channel_id?: string | undefined;
@@ -8557,7 +8557,7 @@ export declare const ChannelMessageUpdate: {
8557
8557
  is_public?: boolean | undefined;
8558
8558
  hide_editted?: boolean | undefined;
8559
8559
  topic_id?: string | undefined;
8560
- mess_topic_id?: string | undefined;
8560
+ is_update_msg_topic?: boolean | undefined;
8561
8561
  } & { [K_9 in Exclude<keyof I_1, keyof ChannelMessageUpdate>]: never; }>(object: I_1): ChannelMessageUpdate;
8562
8562
  };
8563
8563
  export declare const ChannelMessageRemove: {
@@ -8640,7 +8640,7 @@ function createBaseChannelMessageUpdate() {
8640
8640
  is_public: false,
8641
8641
  hide_editted: false,
8642
8642
  topic_id: "",
8643
- mess_topic_id: ""
8643
+ is_update_msg_topic: false
8644
8644
  };
8645
8645
  }
8646
8646
  var ChannelMessageUpdate = {
@@ -8675,8 +8675,8 @@ var ChannelMessageUpdate = {
8675
8675
  if (message.topic_id !== "") {
8676
8676
  writer.uint32(82).string(message.topic_id);
8677
8677
  }
8678
- if (message.mess_topic_id !== "") {
8679
- writer.uint32(90).string(message.mess_topic_id);
8678
+ if (message.is_update_msg_topic !== false) {
8679
+ writer.uint32(88).bool(message.is_update_msg_topic);
8680
8680
  }
8681
8681
  return writer;
8682
8682
  },
@@ -8748,10 +8748,10 @@ var ChannelMessageUpdate = {
8748
8748
  message.topic_id = reader.string();
8749
8749
  continue;
8750
8750
  case 11:
8751
- if (tag !== 90) {
8751
+ if (tag !== 88) {
8752
8752
  break;
8753
8753
  }
8754
- message.mess_topic_id = reader.string();
8754
+ message.is_update_msg_topic = reader.bool();
8755
8755
  continue;
8756
8756
  }
8757
8757
  if ((tag & 7) === 4 || tag === 0) {
@@ -8773,7 +8773,7 @@ var ChannelMessageUpdate = {
8773
8773
  is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
8774
8774
  hide_editted: isSet4(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
8775
8775
  topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : "",
8776
- mess_topic_id: isSet4(object.mess_topic_id) ? globalThis.String(object.mess_topic_id) : ""
8776
+ is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false
8777
8777
  };
8778
8778
  },
8779
8779
  toJSON(message) {
@@ -8809,8 +8809,8 @@ var ChannelMessageUpdate = {
8809
8809
  if (message.topic_id !== "") {
8810
8810
  obj.topic_id = message.topic_id;
8811
8811
  }
8812
- if (message.mess_topic_id !== "") {
8813
- obj.mess_topic_id = message.mess_topic_id;
8812
+ if (message.is_update_msg_topic !== false) {
8813
+ obj.is_update_msg_topic = message.is_update_msg_topic;
8814
8814
  }
8815
8815
  return obj;
8816
8816
  },
@@ -8830,7 +8830,7 @@ var ChannelMessageUpdate = {
8830
8830
  message.is_public = (_h = object.is_public) != null ? _h : false;
8831
8831
  message.hide_editted = (_i = object.hide_editted) != null ? _i : false;
8832
8832
  message.topic_id = (_j = object.topic_id) != null ? _j : "";
8833
- message.mess_topic_id = (_k = object.mess_topic_id) != null ? _k : "";
8833
+ message.is_update_msg_topic = (_k = object.is_update_msg_topic) != null ? _k : false;
8834
8834
  return message;
8835
8835
  }
8836
8836
  };
@@ -8627,7 +8627,7 @@ function createBaseChannelMessageUpdate() {
8627
8627
  is_public: false,
8628
8628
  hide_editted: false,
8629
8629
  topic_id: "",
8630
- mess_topic_id: ""
8630
+ is_update_msg_topic: false
8631
8631
  };
8632
8632
  }
8633
8633
  var ChannelMessageUpdate = {
@@ -8662,8 +8662,8 @@ var ChannelMessageUpdate = {
8662
8662
  if (message.topic_id !== "") {
8663
8663
  writer.uint32(82).string(message.topic_id);
8664
8664
  }
8665
- if (message.mess_topic_id !== "") {
8666
- writer.uint32(90).string(message.mess_topic_id);
8665
+ if (message.is_update_msg_topic !== false) {
8666
+ writer.uint32(88).bool(message.is_update_msg_topic);
8667
8667
  }
8668
8668
  return writer;
8669
8669
  },
@@ -8735,10 +8735,10 @@ var ChannelMessageUpdate = {
8735
8735
  message.topic_id = reader.string();
8736
8736
  continue;
8737
8737
  case 11:
8738
- if (tag !== 90) {
8738
+ if (tag !== 88) {
8739
8739
  break;
8740
8740
  }
8741
- message.mess_topic_id = reader.string();
8741
+ message.is_update_msg_topic = reader.bool();
8742
8742
  continue;
8743
8743
  }
8744
8744
  if ((tag & 7) === 4 || tag === 0) {
@@ -8760,7 +8760,7 @@ var ChannelMessageUpdate = {
8760
8760
  is_public: isSet4(object.is_public) ? globalThis.Boolean(object.is_public) : false,
8761
8761
  hide_editted: isSet4(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
8762
8762
  topic_id: isSet4(object.topic_id) ? globalThis.String(object.topic_id) : "",
8763
- mess_topic_id: isSet4(object.mess_topic_id) ? globalThis.String(object.mess_topic_id) : ""
8763
+ is_update_msg_topic: isSet4(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false
8764
8764
  };
8765
8765
  },
8766
8766
  toJSON(message) {
@@ -8796,8 +8796,8 @@ var ChannelMessageUpdate = {
8796
8796
  if (message.topic_id !== "") {
8797
8797
  obj.topic_id = message.topic_id;
8798
8798
  }
8799
- if (message.mess_topic_id !== "") {
8800
- obj.mess_topic_id = message.mess_topic_id;
8799
+ if (message.is_update_msg_topic !== false) {
8800
+ obj.is_update_msg_topic = message.is_update_msg_topic;
8801
8801
  }
8802
8802
  return obj;
8803
8803
  },
@@ -8817,7 +8817,7 @@ var ChannelMessageUpdate = {
8817
8817
  message.is_public = (_h = object.is_public) != null ? _h : false;
8818
8818
  message.hide_editted = (_i = object.hide_editted) != null ? _i : false;
8819
8819
  message.topic_id = (_j = object.topic_id) != null ? _j : "";
8820
- message.mess_topic_id = (_k = object.mess_topic_id) != null ? _k : "";
8820
+ message.is_update_msg_topic = (_k = object.is_update_msg_topic) != null ? _k : false;
8821
8821
  return message;
8822
8822
  }
8823
8823
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.99",
3
+ "version": "1.7.1",
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
@@ -556,8 +556,8 @@ export interface ChannelMessageUpdate {
556
556
  hide_editted: boolean;
557
557
  /** topic id */
558
558
  topic_id: string;
559
- /** topic id */
560
- mess_topic_id: string;
559
+ /** update message topic */
560
+ is_update_msg_topic: boolean;
561
561
  }
562
562
 
563
563
  /** Remove a message previously sent to a realtime channel. */
@@ -4775,7 +4775,7 @@ function createBaseChannelMessageUpdate(): ChannelMessageUpdate {
4775
4775
  is_public: false,
4776
4776
  hide_editted: false,
4777
4777
  topic_id: "",
4778
- mess_topic_id: "",
4778
+ is_update_msg_topic: false,
4779
4779
  };
4780
4780
  }
4781
4781
 
@@ -4811,8 +4811,8 @@ export const ChannelMessageUpdate = {
4811
4811
  if (message.topic_id !== "") {
4812
4812
  writer.uint32(82).string(message.topic_id);
4813
4813
  }
4814
- if (message.mess_topic_id !== "") {
4815
- writer.uint32(90).string(message.mess_topic_id);
4814
+ if (message.is_update_msg_topic !== false) {
4815
+ writer.uint32(88).bool(message.is_update_msg_topic);
4816
4816
  }
4817
4817
  return writer;
4818
4818
  },
@@ -4895,11 +4895,11 @@ export const ChannelMessageUpdate = {
4895
4895
  message.topic_id = reader.string();
4896
4896
  continue;
4897
4897
  case 11:
4898
- if (tag !== 90) {
4898
+ if (tag !== 88) {
4899
4899
  break;
4900
4900
  }
4901
4901
 
4902
- message.mess_topic_id = reader.string();
4902
+ message.is_update_msg_topic = reader.bool();
4903
4903
  continue;
4904
4904
  }
4905
4905
  if ((tag & 7) === 4 || tag === 0) {
@@ -4926,7 +4926,7 @@ export const ChannelMessageUpdate = {
4926
4926
  is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
4927
4927
  hide_editted: isSet(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
4928
4928
  topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
4929
- mess_topic_id: isSet(object.mess_topic_id) ? globalThis.String(object.mess_topic_id) : "",
4929
+ is_update_msg_topic: isSet(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
4930
4930
  };
4931
4931
  },
4932
4932
 
@@ -4962,8 +4962,8 @@ export const ChannelMessageUpdate = {
4962
4962
  if (message.topic_id !== "") {
4963
4963
  obj.topic_id = message.topic_id;
4964
4964
  }
4965
- if (message.mess_topic_id !== "") {
4966
- obj.mess_topic_id = message.mess_topic_id;
4965
+ if (message.is_update_msg_topic !== false) {
4966
+ obj.is_update_msg_topic = message.is_update_msg_topic;
4967
4967
  }
4968
4968
  return obj;
4969
4969
  },
@@ -4983,7 +4983,7 @@ export const ChannelMessageUpdate = {
4983
4983
  message.is_public = object.is_public ?? false;
4984
4984
  message.hide_editted = object.hide_editted ?? false;
4985
4985
  message.topic_id = object.topic_id ?? "";
4986
- message.mess_topic_id = object.mess_topic_id ?? "";
4986
+ message.is_update_msg_topic = object.is_update_msg_topic ?? false;
4987
4987
  return message;
4988
4988
  },
4989
4989
  };