mezon-js-protobuf 1.5.42 → 1.5.44

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.
package/api/api.ts CHANGED
@@ -648,6 +648,10 @@ export interface MessageReaction {
648
648
  message_sender_id: string;
649
649
  /** is public */
650
650
  is_public: boolean;
651
+ /** The parent id to sent to. */
652
+ parent_id: string;
653
+ /** is parent public */
654
+ is_parent_public: boolean;
651
655
  }
652
656
 
653
657
  /** Message attachment */
@@ -6055,6 +6059,8 @@ function createBaseMessageReaction(): MessageReaction {
6055
6059
  mode: 0,
6056
6060
  message_sender_id: "",
6057
6061
  is_public: false,
6062
+ parent_id: "",
6063
+ is_parent_public: false,
6058
6064
  };
6059
6065
  }
6060
6066
 
@@ -6102,6 +6108,12 @@ export const MessageReaction = {
6102
6108
  if (message.is_public === true) {
6103
6109
  writer.uint32(112).bool(message.is_public);
6104
6110
  }
6111
+ if (message.parent_id !== "") {
6112
+ writer.uint32(122).string(message.parent_id);
6113
+ }
6114
+ if (message.is_parent_public === true) {
6115
+ writer.uint32(128).bool(message.is_parent_public);
6116
+ }
6105
6117
  return writer;
6106
6118
  },
6107
6119
 
@@ -6154,6 +6166,12 @@ export const MessageReaction = {
6154
6166
  case 14:
6155
6167
  message.is_public = reader.bool();
6156
6168
  break;
6169
+ case 15:
6170
+ message.parent_id = reader.string();
6171
+ break;
6172
+ case 16:
6173
+ message.is_parent_public = reader.bool();
6174
+ break;
6157
6175
  default:
6158
6176
  reader.skipType(tag & 7);
6159
6177
  break;
@@ -6178,6 +6196,8 @@ export const MessageReaction = {
6178
6196
  mode: isSet(object.mode) ? Number(object.mode) : 0,
6179
6197
  message_sender_id: isSet(object.message_sender_id) ? String(object.message_sender_id) : "",
6180
6198
  is_public: isSet(object.is_public) ? Boolean(object.is_public) : false,
6199
+ parent_id: isSet(object.parent_id) ? String(object.parent_id) : "",
6200
+ is_parent_public: isSet(object.is_parent_public) ? Boolean(object.is_parent_public) : false,
6181
6201
  };
6182
6202
  },
6183
6203
 
@@ -6197,6 +6217,8 @@ export const MessageReaction = {
6197
6217
  message.mode !== undefined && (obj.mode = Math.round(message.mode));
6198
6218
  message.message_sender_id !== undefined && (obj.message_sender_id = message.message_sender_id);
6199
6219
  message.is_public !== undefined && (obj.is_public = message.is_public);
6220
+ message.parent_id !== undefined && (obj.parent_id = message.parent_id);
6221
+ message.is_parent_public !== undefined && (obj.is_parent_public = message.is_parent_public);
6200
6222
  return obj;
6201
6223
  },
6202
6224
 
@@ -6220,6 +6242,8 @@ export const MessageReaction = {
6220
6242
  message.mode = object.mode ?? 0;
6221
6243
  message.message_sender_id = object.message_sender_id ?? "";
6222
6244
  message.is_public = object.is_public ?? false;
6245
+ message.parent_id = object.parent_id ?? "";
6246
+ message.is_parent_public = object.is_parent_public ?? false;
6223
6247
  return message;
6224
6248
  },
6225
6249
  };
@@ -466,6 +466,10 @@ export interface MessageReaction {
466
466
  message_sender_id: string;
467
467
  /** is public */
468
468
  is_public: boolean;
469
+ /** The parent id to sent to. */
470
+ parent_id: string;
471
+ /** is parent public */
472
+ is_parent_public: boolean;
469
473
  }
470
474
  /** Message attachment */
471
475
  export interface MessageAttachment {
@@ -3851,6 +3855,8 @@ export declare const MessageReaction: {
3851
3855
  mode?: number | undefined;
3852
3856
  message_sender_id?: string | undefined;
3853
3857
  is_public?: boolean | undefined;
3858
+ parent_id?: string | undefined;
3859
+ is_parent_public?: boolean | undefined;
3854
3860
  } & {
3855
3861
  id?: string | undefined;
3856
3862
  emoji_id?: string | undefined;
@@ -3866,6 +3872,8 @@ export declare const MessageReaction: {
3866
3872
  mode?: number | undefined;
3867
3873
  message_sender_id?: string | undefined;
3868
3874
  is_public?: boolean | undefined;
3875
+ parent_id?: string | undefined;
3876
+ is_parent_public?: boolean | undefined;
3869
3877
  } & { [K in Exclude<keyof I, keyof MessageReaction>]: never; }>(base?: I | undefined): MessageReaction;
3870
3878
  fromPartial<I_1 extends {
3871
3879
  id?: string | undefined;
@@ -3882,6 +3890,8 @@ export declare const MessageReaction: {
3882
3890
  mode?: number | undefined;
3883
3891
  message_sender_id?: string | undefined;
3884
3892
  is_public?: boolean | undefined;
3893
+ parent_id?: string | undefined;
3894
+ is_parent_public?: boolean | undefined;
3885
3895
  } & {
3886
3896
  id?: string | undefined;
3887
3897
  emoji_id?: string | undefined;
@@ -3897,6 +3907,8 @@ export declare const MessageReaction: {
3897
3907
  mode?: number | undefined;
3898
3908
  message_sender_id?: string | undefined;
3899
3909
  is_public?: boolean | undefined;
3910
+ parent_id?: string | undefined;
3911
+ is_parent_public?: boolean | undefined;
3900
3912
  } & { [K_1 in Exclude<keyof I_1, keyof MessageReaction>]: never; }>(object: I_1): MessageReaction;
3901
3913
  };
3902
3914
  export declare const MessageAttachment: {