mezon-js-protobuf 1.8.82 → 1.8.84

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
@@ -3750,6 +3750,8 @@ export interface DirectFcmProto {
3750
3750
  position_e: number[];
3751
3751
  attachment_type: string;
3752
3752
  has_more_attachment: boolean;
3753
+ is_mention_role: boolean[];
3754
+ message_id: string;
3753
3755
  }
3754
3756
 
3755
3757
  export interface MessageMentionList {
@@ -39059,6 +39061,8 @@ function createBaseDirectFcmProto(): DirectFcmProto {
39059
39061
  position_e: [],
39060
39062
  attachment_type: "",
39061
39063
  has_more_attachment: false,
39064
+ is_mention_role: [],
39065
+ message_id: "",
39062
39066
  };
39063
39067
  }
39064
39068
 
@@ -39119,6 +39123,14 @@ export const DirectFcmProto = {
39119
39123
  if (message.has_more_attachment !== false) {
39120
39124
  writer.uint32(136).bool(message.has_more_attachment);
39121
39125
  }
39126
+ writer.uint32(146).fork();
39127
+ for (const v of message.is_mention_role) {
39128
+ writer.bool(v);
39129
+ }
39130
+ writer.ldelim();
39131
+ if (message.message_id !== "") {
39132
+ writer.uint32(154).string(message.message_id);
39133
+ }
39122
39134
  return writer;
39123
39135
  },
39124
39136
 
@@ -39268,6 +39280,30 @@ export const DirectFcmProto = {
39268
39280
 
39269
39281
  message.has_more_attachment = reader.bool();
39270
39282
  continue;
39283
+ case 18:
39284
+ if (tag === 144) {
39285
+ message.is_mention_role.push(reader.bool());
39286
+
39287
+ continue;
39288
+ }
39289
+
39290
+ if (tag === 146) {
39291
+ const end2 = reader.uint32() + reader.pos;
39292
+ while (reader.pos < end2) {
39293
+ message.is_mention_role.push(reader.bool());
39294
+ }
39295
+
39296
+ continue;
39297
+ }
39298
+
39299
+ break;
39300
+ case 19:
39301
+ if (tag !== 154) {
39302
+ break;
39303
+ }
39304
+
39305
+ message.message_id = reader.string();
39306
+ continue;
39271
39307
  }
39272
39308
  if ((tag & 7) === 4 || tag === 0) {
39273
39309
  break;
@@ -39302,6 +39338,10 @@ export const DirectFcmProto = {
39302
39338
  : [],
39303
39339
  attachment_type: isSet(object.attachment_type) ? globalThis.String(object.attachment_type) : "",
39304
39340
  has_more_attachment: isSet(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false,
39341
+ is_mention_role: globalThis.Array.isArray(object?.is_mention_role)
39342
+ ? object.is_mention_role.map((e: any) => globalThis.Boolean(e))
39343
+ : [],
39344
+ message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
39305
39345
  };
39306
39346
  },
39307
39347
 
@@ -39358,6 +39398,12 @@ export const DirectFcmProto = {
39358
39398
  if (message.has_more_attachment !== false) {
39359
39399
  obj.has_more_attachment = message.has_more_attachment;
39360
39400
  }
39401
+ if (message.is_mention_role?.length) {
39402
+ obj.is_mention_role = message.is_mention_role;
39403
+ }
39404
+ if (message.message_id !== "") {
39405
+ obj.message_id = message.message_id;
39406
+ }
39361
39407
  return obj;
39362
39408
  },
39363
39409
 
@@ -39383,6 +39429,8 @@ export const DirectFcmProto = {
39383
39429
  message.position_e = object.position_e?.map((e) => e) || [];
39384
39430
  message.attachment_type = object.attachment_type ?? "";
39385
39431
  message.has_more_attachment = object.has_more_attachment ?? false;
39432
+ message.is_mention_role = object.is_mention_role?.map((e) => e) || [];
39433
+ message.message_id = object.message_id ?? "";
39386
39434
  return message;
39387
39435
  },
39388
39436
  };
@@ -3136,6 +3136,8 @@ export interface DirectFcmProto {
3136
3136
  position_e: number[];
3137
3137
  attachment_type: string;
3138
3138
  has_more_attachment: boolean;
3139
+ is_mention_role: boolean[];
3140
+ message_id: string;
3139
3141
  }
3140
3142
  export interface MessageMentionList {
3141
3143
  mentions: MessageMention[];
@@ -23262,6 +23264,8 @@ export declare const DirectFcmProto: {
23262
23264
  position_e?: number[] | undefined;
23263
23265
  attachment_type?: string | undefined;
23264
23266
  has_more_attachment?: boolean | undefined;
23267
+ is_mention_role?: boolean[] | undefined;
23268
+ message_id?: string | undefined;
23265
23269
  } & {
23266
23270
  title?: string | undefined;
23267
23271
  link?: string | undefined;
@@ -23280,7 +23284,9 @@ export declare const DirectFcmProto: {
23280
23284
  position_e?: (number[] & number[] & { [K_2 in Exclude<keyof I["position_e"], keyof number[]>]: never; }) | undefined;
23281
23285
  attachment_type?: string | undefined;
23282
23286
  has_more_attachment?: boolean | undefined;
23283
- } & { [K_3 in Exclude<keyof I, keyof DirectFcmProto>]: never; }>(base?: I | undefined): DirectFcmProto;
23287
+ is_mention_role?: (boolean[] & boolean[] & { [K_3 in Exclude<keyof I["is_mention_role"], keyof boolean[]>]: never; }) | undefined;
23288
+ message_id?: string | undefined;
23289
+ } & { [K_4 in Exclude<keyof I, keyof DirectFcmProto>]: never; }>(base?: I | undefined): DirectFcmProto;
23284
23290
  fromPartial<I_1 extends {
23285
23291
  title?: string | undefined;
23286
23292
  link?: string | undefined;
@@ -23299,6 +23305,8 @@ export declare const DirectFcmProto: {
23299
23305
  position_e?: number[] | undefined;
23300
23306
  attachment_type?: string | undefined;
23301
23307
  has_more_attachment?: boolean | undefined;
23308
+ is_mention_role?: boolean[] | undefined;
23309
+ message_id?: string | undefined;
23302
23310
  } & {
23303
23311
  title?: string | undefined;
23304
23312
  link?: string | undefined;
@@ -23312,12 +23320,14 @@ export declare const DirectFcmProto: {
23312
23320
  create_time_seconds?: number | undefined;
23313
23321
  update_time_seconds?: number | undefined;
23314
23322
  username?: string | undefined;
23315
- mention_ids?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["mention_ids"], keyof string[]>]: never; }) | undefined;
23316
- position_s?: (number[] & number[] & { [K_5 in Exclude<keyof I_1["position_s"], keyof number[]>]: never; }) | undefined;
23317
- position_e?: (number[] & number[] & { [K_6 in Exclude<keyof I_1["position_e"], keyof number[]>]: never; }) | undefined;
23323
+ mention_ids?: (string[] & string[] & { [K_5 in Exclude<keyof I_1["mention_ids"], keyof string[]>]: never; }) | undefined;
23324
+ position_s?: (number[] & number[] & { [K_6 in Exclude<keyof I_1["position_s"], keyof number[]>]: never; }) | undefined;
23325
+ position_e?: (number[] & number[] & { [K_7 in Exclude<keyof I_1["position_e"], keyof number[]>]: never; }) | undefined;
23318
23326
  attachment_type?: string | undefined;
23319
23327
  has_more_attachment?: boolean | undefined;
23320
- } & { [K_7 in Exclude<keyof I_1, keyof DirectFcmProto>]: never; }>(object: I_1): DirectFcmProto;
23328
+ is_mention_role?: (boolean[] & boolean[] & { [K_8 in Exclude<keyof I_1["is_mention_role"], keyof boolean[]>]: never; }) | undefined;
23329
+ message_id?: string | undefined;
23330
+ } & { [K_9 in Exclude<keyof I_1, keyof DirectFcmProto>]: never; }>(object: I_1): DirectFcmProto;
23321
23331
  };
23322
23332
  export declare const MessageMentionList: {
23323
23333
  encode(message: MessageMentionList, writer?: _m0.Writer): _m0.Writer;
@@ -14179,7 +14179,9 @@ function createBaseDirectFcmProto() {
14179
14179
  position_s: [],
14180
14180
  position_e: [],
14181
14181
  attachment_type: "",
14182
- has_more_attachment: false
14182
+ has_more_attachment: false,
14183
+ is_mention_role: [],
14184
+ message_id: ""
14183
14185
  };
14184
14186
  }
14185
14187
  var DirectFcmProto = {
@@ -14239,6 +14241,14 @@ var DirectFcmProto = {
14239
14241
  if (message.has_more_attachment !== false) {
14240
14242
  writer.uint32(136).bool(message.has_more_attachment);
14241
14243
  }
14244
+ writer.uint32(146).fork();
14245
+ for (const v of message.is_mention_role) {
14246
+ writer.bool(v);
14247
+ }
14248
+ writer.ldelim();
14249
+ if (message.message_id !== "") {
14250
+ writer.uint32(154).string(message.message_id);
14251
+ }
14242
14252
  return writer;
14243
14253
  },
14244
14254
  decode(input, length) {
@@ -14364,6 +14374,25 @@ var DirectFcmProto = {
14364
14374
  }
14365
14375
  message.has_more_attachment = reader.bool();
14366
14376
  continue;
14377
+ case 18:
14378
+ if (tag === 144) {
14379
+ message.is_mention_role.push(reader.bool());
14380
+ continue;
14381
+ }
14382
+ if (tag === 146) {
14383
+ const end2 = reader.uint32() + reader.pos;
14384
+ while (reader.pos < end2) {
14385
+ message.is_mention_role.push(reader.bool());
14386
+ }
14387
+ continue;
14388
+ }
14389
+ break;
14390
+ case 19:
14391
+ if (tag !== 154) {
14392
+ break;
14393
+ }
14394
+ message.message_id = reader.string();
14395
+ continue;
14367
14396
  }
14368
14397
  if ((tag & 7) === 4 || tag === 0) {
14369
14398
  break;
@@ -14390,11 +14419,13 @@ var DirectFcmProto = {
14390
14419
  position_s: globalThis.Array.isArray(object == null ? void 0 : object.position_s) ? object.position_s.map((e) => globalThis.Number(e)) : [],
14391
14420
  position_e: globalThis.Array.isArray(object == null ? void 0 : object.position_e) ? object.position_e.map((e) => globalThis.Number(e)) : [],
14392
14421
  attachment_type: isSet2(object.attachment_type) ? globalThis.String(object.attachment_type) : "",
14393
- has_more_attachment: isSet2(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false
14422
+ has_more_attachment: isSet2(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false,
14423
+ is_mention_role: globalThis.Array.isArray(object == null ? void 0 : object.is_mention_role) ? object.is_mention_role.map((e) => globalThis.Boolean(e)) : [],
14424
+ message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : ""
14394
14425
  };
14395
14426
  },
14396
14427
  toJSON(message) {
14397
- var _a, _b, _c;
14428
+ var _a, _b, _c, _d;
14398
14429
  const obj = {};
14399
14430
  if (message.title !== "") {
14400
14431
  obj.title = message.title;
@@ -14447,13 +14478,19 @@ var DirectFcmProto = {
14447
14478
  if (message.has_more_attachment !== false) {
14448
14479
  obj.has_more_attachment = message.has_more_attachment;
14449
14480
  }
14481
+ if ((_d = message.is_mention_role) == null ? void 0 : _d.length) {
14482
+ obj.is_mention_role = message.is_mention_role;
14483
+ }
14484
+ if (message.message_id !== "") {
14485
+ obj.message_id = message.message_id;
14486
+ }
14450
14487
  return obj;
14451
14488
  },
14452
14489
  create(base) {
14453
14490
  return DirectFcmProto.fromPartial(base != null ? base : {});
14454
14491
  },
14455
14492
  fromPartial(object) {
14456
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
14493
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
14457
14494
  const message = createBaseDirectFcmProto();
14458
14495
  message.title = (_a = object.title) != null ? _a : "";
14459
14496
  message.link = (_b = object.link) != null ? _b : "";
@@ -14472,6 +14509,8 @@ var DirectFcmProto = {
14472
14509
  message.position_e = ((_o = object.position_e) == null ? void 0 : _o.map((e) => e)) || [];
14473
14510
  message.attachment_type = (_p = object.attachment_type) != null ? _p : "";
14474
14511
  message.has_more_attachment = (_q = object.has_more_attachment) != null ? _q : false;
14512
+ message.is_mention_role = ((_r = object.is_mention_role) == null ? void 0 : _r.map((e) => e)) || [];
14513
+ message.message_id = (_s = object.message_id) != null ? _s : "";
14475
14514
  return message;
14476
14515
  }
14477
14516
  };
@@ -14161,7 +14161,9 @@ function createBaseDirectFcmProto() {
14161
14161
  position_s: [],
14162
14162
  position_e: [],
14163
14163
  attachment_type: "",
14164
- has_more_attachment: false
14164
+ has_more_attachment: false,
14165
+ is_mention_role: [],
14166
+ message_id: ""
14165
14167
  };
14166
14168
  }
14167
14169
  var DirectFcmProto = {
@@ -14221,6 +14223,14 @@ var DirectFcmProto = {
14221
14223
  if (message.has_more_attachment !== false) {
14222
14224
  writer.uint32(136).bool(message.has_more_attachment);
14223
14225
  }
14226
+ writer.uint32(146).fork();
14227
+ for (const v of message.is_mention_role) {
14228
+ writer.bool(v);
14229
+ }
14230
+ writer.ldelim();
14231
+ if (message.message_id !== "") {
14232
+ writer.uint32(154).string(message.message_id);
14233
+ }
14224
14234
  return writer;
14225
14235
  },
14226
14236
  decode(input, length) {
@@ -14346,6 +14356,25 @@ var DirectFcmProto = {
14346
14356
  }
14347
14357
  message.has_more_attachment = reader.bool();
14348
14358
  continue;
14359
+ case 18:
14360
+ if (tag === 144) {
14361
+ message.is_mention_role.push(reader.bool());
14362
+ continue;
14363
+ }
14364
+ if (tag === 146) {
14365
+ const end2 = reader.uint32() + reader.pos;
14366
+ while (reader.pos < end2) {
14367
+ message.is_mention_role.push(reader.bool());
14368
+ }
14369
+ continue;
14370
+ }
14371
+ break;
14372
+ case 19:
14373
+ if (tag !== 154) {
14374
+ break;
14375
+ }
14376
+ message.message_id = reader.string();
14377
+ continue;
14349
14378
  }
14350
14379
  if ((tag & 7) === 4 || tag === 0) {
14351
14380
  break;
@@ -14372,11 +14401,13 @@ var DirectFcmProto = {
14372
14401
  position_s: globalThis.Array.isArray(object == null ? void 0 : object.position_s) ? object.position_s.map((e) => globalThis.Number(e)) : [],
14373
14402
  position_e: globalThis.Array.isArray(object == null ? void 0 : object.position_e) ? object.position_e.map((e) => globalThis.Number(e)) : [],
14374
14403
  attachment_type: isSet2(object.attachment_type) ? globalThis.String(object.attachment_type) : "",
14375
- has_more_attachment: isSet2(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false
14404
+ has_more_attachment: isSet2(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false,
14405
+ is_mention_role: globalThis.Array.isArray(object == null ? void 0 : object.is_mention_role) ? object.is_mention_role.map((e) => globalThis.Boolean(e)) : [],
14406
+ message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : ""
14376
14407
  };
14377
14408
  },
14378
14409
  toJSON(message) {
14379
- var _a, _b, _c;
14410
+ var _a, _b, _c, _d;
14380
14411
  const obj = {};
14381
14412
  if (message.title !== "") {
14382
14413
  obj.title = message.title;
@@ -14429,13 +14460,19 @@ var DirectFcmProto = {
14429
14460
  if (message.has_more_attachment !== false) {
14430
14461
  obj.has_more_attachment = message.has_more_attachment;
14431
14462
  }
14463
+ if ((_d = message.is_mention_role) == null ? void 0 : _d.length) {
14464
+ obj.is_mention_role = message.is_mention_role;
14465
+ }
14466
+ if (message.message_id !== "") {
14467
+ obj.message_id = message.message_id;
14468
+ }
14432
14469
  return obj;
14433
14470
  },
14434
14471
  create(base) {
14435
14472
  return DirectFcmProto.fromPartial(base != null ? base : {});
14436
14473
  },
14437
14474
  fromPartial(object) {
14438
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
14475
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
14439
14476
  const message = createBaseDirectFcmProto();
14440
14477
  message.title = (_a = object.title) != null ? _a : "";
14441
14478
  message.link = (_b = object.link) != null ? _b : "";
@@ -14454,6 +14491,8 @@ var DirectFcmProto = {
14454
14491
  message.position_e = ((_o = object.position_e) == null ? void 0 : _o.map((e) => e)) || [];
14455
14492
  message.attachment_type = (_p = object.attachment_type) != null ? _p : "";
14456
14493
  message.has_more_attachment = (_q = object.has_more_attachment) != null ? _q : false;
14494
+ message.is_mention_role = ((_r = object.is_mention_role) == null ? void 0 : _r.map((e) => e)) || [];
14495
+ message.message_id = (_s = object.message_id) != null ? _s : "";
14457
14496
  return message;
14458
14497
  }
14459
14498
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.82",
3
+ "version": "1.8.84",
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",