mezon-js-protobuf 1.8.82 → 1.8.83

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,7 @@ export interface DirectFcmProto {
3750
3750
  position_e: number[];
3751
3751
  attachment_type: string;
3752
3752
  has_more_attachment: boolean;
3753
+ is_mention_role: boolean[];
3753
3754
  }
3754
3755
 
3755
3756
  export interface MessageMentionList {
@@ -39059,6 +39060,7 @@ function createBaseDirectFcmProto(): DirectFcmProto {
39059
39060
  position_e: [],
39060
39061
  attachment_type: "",
39061
39062
  has_more_attachment: false,
39063
+ is_mention_role: [],
39062
39064
  };
39063
39065
  }
39064
39066
 
@@ -39119,6 +39121,11 @@ export const DirectFcmProto = {
39119
39121
  if (message.has_more_attachment !== false) {
39120
39122
  writer.uint32(136).bool(message.has_more_attachment);
39121
39123
  }
39124
+ writer.uint32(146).fork();
39125
+ for (const v of message.is_mention_role) {
39126
+ writer.bool(v);
39127
+ }
39128
+ writer.ldelim();
39122
39129
  return writer;
39123
39130
  },
39124
39131
 
@@ -39268,6 +39275,23 @@ export const DirectFcmProto = {
39268
39275
 
39269
39276
  message.has_more_attachment = reader.bool();
39270
39277
  continue;
39278
+ case 18:
39279
+ if (tag === 144) {
39280
+ message.is_mention_role.push(reader.bool());
39281
+
39282
+ continue;
39283
+ }
39284
+
39285
+ if (tag === 146) {
39286
+ const end2 = reader.uint32() + reader.pos;
39287
+ while (reader.pos < end2) {
39288
+ message.is_mention_role.push(reader.bool());
39289
+ }
39290
+
39291
+ continue;
39292
+ }
39293
+
39294
+ break;
39271
39295
  }
39272
39296
  if ((tag & 7) === 4 || tag === 0) {
39273
39297
  break;
@@ -39302,6 +39326,9 @@ export const DirectFcmProto = {
39302
39326
  : [],
39303
39327
  attachment_type: isSet(object.attachment_type) ? globalThis.String(object.attachment_type) : "",
39304
39328
  has_more_attachment: isSet(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false,
39329
+ is_mention_role: globalThis.Array.isArray(object?.is_mention_role)
39330
+ ? object.is_mention_role.map((e: any) => globalThis.Boolean(e))
39331
+ : [],
39305
39332
  };
39306
39333
  },
39307
39334
 
@@ -39358,6 +39385,9 @@ export const DirectFcmProto = {
39358
39385
  if (message.has_more_attachment !== false) {
39359
39386
  obj.has_more_attachment = message.has_more_attachment;
39360
39387
  }
39388
+ if (message.is_mention_role?.length) {
39389
+ obj.is_mention_role = message.is_mention_role;
39390
+ }
39361
39391
  return obj;
39362
39392
  },
39363
39393
 
@@ -39383,6 +39413,7 @@ export const DirectFcmProto = {
39383
39413
  message.position_e = object.position_e?.map((e) => e) || [];
39384
39414
  message.attachment_type = object.attachment_type ?? "";
39385
39415
  message.has_more_attachment = object.has_more_attachment ?? false;
39416
+ message.is_mention_role = object.is_mention_role?.map((e) => e) || [];
39386
39417
  return message;
39387
39418
  },
39388
39419
  };
@@ -3136,6 +3136,7 @@ export interface DirectFcmProto {
3136
3136
  position_e: number[];
3137
3137
  attachment_type: string;
3138
3138
  has_more_attachment: boolean;
3139
+ is_mention_role: boolean[];
3139
3140
  }
3140
3141
  export interface MessageMentionList {
3141
3142
  mentions: MessageMention[];
@@ -23262,6 +23263,7 @@ export declare const DirectFcmProto: {
23262
23263
  position_e?: number[] | undefined;
23263
23264
  attachment_type?: string | undefined;
23264
23265
  has_more_attachment?: boolean | undefined;
23266
+ is_mention_role?: boolean[] | undefined;
23265
23267
  } & {
23266
23268
  title?: string | undefined;
23267
23269
  link?: string | undefined;
@@ -23280,7 +23282,8 @@ export declare const DirectFcmProto: {
23280
23282
  position_e?: (number[] & number[] & { [K_2 in Exclude<keyof I["position_e"], keyof number[]>]: never; }) | undefined;
23281
23283
  attachment_type?: string | undefined;
23282
23284
  has_more_attachment?: boolean | undefined;
23283
- } & { [K_3 in Exclude<keyof I, keyof DirectFcmProto>]: never; }>(base?: I | undefined): DirectFcmProto;
23285
+ is_mention_role?: (boolean[] & boolean[] & { [K_3 in Exclude<keyof I["is_mention_role"], keyof boolean[]>]: never; }) | undefined;
23286
+ } & { [K_4 in Exclude<keyof I, keyof DirectFcmProto>]: never; }>(base?: I | undefined): DirectFcmProto;
23284
23287
  fromPartial<I_1 extends {
23285
23288
  title?: string | undefined;
23286
23289
  link?: string | undefined;
@@ -23299,6 +23302,7 @@ export declare const DirectFcmProto: {
23299
23302
  position_e?: number[] | undefined;
23300
23303
  attachment_type?: string | undefined;
23301
23304
  has_more_attachment?: boolean | undefined;
23305
+ is_mention_role?: boolean[] | undefined;
23302
23306
  } & {
23303
23307
  title?: string | undefined;
23304
23308
  link?: string | undefined;
@@ -23312,12 +23316,13 @@ export declare const DirectFcmProto: {
23312
23316
  create_time_seconds?: number | undefined;
23313
23317
  update_time_seconds?: number | undefined;
23314
23318
  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;
23319
+ mention_ids?: (string[] & string[] & { [K_5 in Exclude<keyof I_1["mention_ids"], keyof string[]>]: never; }) | undefined;
23320
+ position_s?: (number[] & number[] & { [K_6 in Exclude<keyof I_1["position_s"], keyof number[]>]: never; }) | undefined;
23321
+ position_e?: (number[] & number[] & { [K_7 in Exclude<keyof I_1["position_e"], keyof number[]>]: never; }) | undefined;
23318
23322
  attachment_type?: string | undefined;
23319
23323
  has_more_attachment?: boolean | undefined;
23320
- } & { [K_7 in Exclude<keyof I_1, keyof DirectFcmProto>]: never; }>(object: I_1): DirectFcmProto;
23324
+ is_mention_role?: (boolean[] & boolean[] & { [K_8 in Exclude<keyof I_1["is_mention_role"], keyof boolean[]>]: never; }) | undefined;
23325
+ } & { [K_9 in Exclude<keyof I_1, keyof DirectFcmProto>]: never; }>(object: I_1): DirectFcmProto;
23321
23326
  };
23322
23327
  export declare const MessageMentionList: {
23323
23328
  encode(message: MessageMentionList, writer?: _m0.Writer): _m0.Writer;
@@ -14179,7 +14179,8 @@ 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: []
14183
14184
  };
14184
14185
  }
14185
14186
  var DirectFcmProto = {
@@ -14239,6 +14240,11 @@ var DirectFcmProto = {
14239
14240
  if (message.has_more_attachment !== false) {
14240
14241
  writer.uint32(136).bool(message.has_more_attachment);
14241
14242
  }
14243
+ writer.uint32(146).fork();
14244
+ for (const v of message.is_mention_role) {
14245
+ writer.bool(v);
14246
+ }
14247
+ writer.ldelim();
14242
14248
  return writer;
14243
14249
  },
14244
14250
  decode(input, length) {
@@ -14364,6 +14370,19 @@ var DirectFcmProto = {
14364
14370
  }
14365
14371
  message.has_more_attachment = reader.bool();
14366
14372
  continue;
14373
+ case 18:
14374
+ if (tag === 144) {
14375
+ message.is_mention_role.push(reader.bool());
14376
+ continue;
14377
+ }
14378
+ if (tag === 146) {
14379
+ const end2 = reader.uint32() + reader.pos;
14380
+ while (reader.pos < end2) {
14381
+ message.is_mention_role.push(reader.bool());
14382
+ }
14383
+ continue;
14384
+ }
14385
+ break;
14367
14386
  }
14368
14387
  if ((tag & 7) === 4 || tag === 0) {
14369
14388
  break;
@@ -14390,11 +14409,12 @@ var DirectFcmProto = {
14390
14409
  position_s: globalThis.Array.isArray(object == null ? void 0 : object.position_s) ? object.position_s.map((e) => globalThis.Number(e)) : [],
14391
14410
  position_e: globalThis.Array.isArray(object == null ? void 0 : object.position_e) ? object.position_e.map((e) => globalThis.Number(e)) : [],
14392
14411
  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
14412
+ has_more_attachment: isSet2(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false,
14413
+ is_mention_role: globalThis.Array.isArray(object == null ? void 0 : object.is_mention_role) ? object.is_mention_role.map((e) => globalThis.Boolean(e)) : []
14394
14414
  };
14395
14415
  },
14396
14416
  toJSON(message) {
14397
- var _a, _b, _c;
14417
+ var _a, _b, _c, _d;
14398
14418
  const obj = {};
14399
14419
  if (message.title !== "") {
14400
14420
  obj.title = message.title;
@@ -14447,13 +14467,16 @@ var DirectFcmProto = {
14447
14467
  if (message.has_more_attachment !== false) {
14448
14468
  obj.has_more_attachment = message.has_more_attachment;
14449
14469
  }
14470
+ if ((_d = message.is_mention_role) == null ? void 0 : _d.length) {
14471
+ obj.is_mention_role = message.is_mention_role;
14472
+ }
14450
14473
  return obj;
14451
14474
  },
14452
14475
  create(base) {
14453
14476
  return DirectFcmProto.fromPartial(base != null ? base : {});
14454
14477
  },
14455
14478
  fromPartial(object) {
14456
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
14479
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
14457
14480
  const message = createBaseDirectFcmProto();
14458
14481
  message.title = (_a = object.title) != null ? _a : "";
14459
14482
  message.link = (_b = object.link) != null ? _b : "";
@@ -14472,6 +14495,7 @@ var DirectFcmProto = {
14472
14495
  message.position_e = ((_o = object.position_e) == null ? void 0 : _o.map((e) => e)) || [];
14473
14496
  message.attachment_type = (_p = object.attachment_type) != null ? _p : "";
14474
14497
  message.has_more_attachment = (_q = object.has_more_attachment) != null ? _q : false;
14498
+ message.is_mention_role = ((_r = object.is_mention_role) == null ? void 0 : _r.map((e) => e)) || [];
14475
14499
  return message;
14476
14500
  }
14477
14501
  };
@@ -14161,7 +14161,8 @@ 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: []
14165
14166
  };
14166
14167
  }
14167
14168
  var DirectFcmProto = {
@@ -14221,6 +14222,11 @@ var DirectFcmProto = {
14221
14222
  if (message.has_more_attachment !== false) {
14222
14223
  writer.uint32(136).bool(message.has_more_attachment);
14223
14224
  }
14225
+ writer.uint32(146).fork();
14226
+ for (const v of message.is_mention_role) {
14227
+ writer.bool(v);
14228
+ }
14229
+ writer.ldelim();
14224
14230
  return writer;
14225
14231
  },
14226
14232
  decode(input, length) {
@@ -14346,6 +14352,19 @@ var DirectFcmProto = {
14346
14352
  }
14347
14353
  message.has_more_attachment = reader.bool();
14348
14354
  continue;
14355
+ case 18:
14356
+ if (tag === 144) {
14357
+ message.is_mention_role.push(reader.bool());
14358
+ continue;
14359
+ }
14360
+ if (tag === 146) {
14361
+ const end2 = reader.uint32() + reader.pos;
14362
+ while (reader.pos < end2) {
14363
+ message.is_mention_role.push(reader.bool());
14364
+ }
14365
+ continue;
14366
+ }
14367
+ break;
14349
14368
  }
14350
14369
  if ((tag & 7) === 4 || tag === 0) {
14351
14370
  break;
@@ -14372,11 +14391,12 @@ var DirectFcmProto = {
14372
14391
  position_s: globalThis.Array.isArray(object == null ? void 0 : object.position_s) ? object.position_s.map((e) => globalThis.Number(e)) : [],
14373
14392
  position_e: globalThis.Array.isArray(object == null ? void 0 : object.position_e) ? object.position_e.map((e) => globalThis.Number(e)) : [],
14374
14393
  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
14394
+ has_more_attachment: isSet2(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false,
14395
+ is_mention_role: globalThis.Array.isArray(object == null ? void 0 : object.is_mention_role) ? object.is_mention_role.map((e) => globalThis.Boolean(e)) : []
14376
14396
  };
14377
14397
  },
14378
14398
  toJSON(message) {
14379
- var _a, _b, _c;
14399
+ var _a, _b, _c, _d;
14380
14400
  const obj = {};
14381
14401
  if (message.title !== "") {
14382
14402
  obj.title = message.title;
@@ -14429,13 +14449,16 @@ var DirectFcmProto = {
14429
14449
  if (message.has_more_attachment !== false) {
14430
14450
  obj.has_more_attachment = message.has_more_attachment;
14431
14451
  }
14452
+ if ((_d = message.is_mention_role) == null ? void 0 : _d.length) {
14453
+ obj.is_mention_role = message.is_mention_role;
14454
+ }
14432
14455
  return obj;
14433
14456
  },
14434
14457
  create(base) {
14435
14458
  return DirectFcmProto.fromPartial(base != null ? base : {});
14436
14459
  },
14437
14460
  fromPartial(object) {
14438
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
14461
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
14439
14462
  const message = createBaseDirectFcmProto();
14440
14463
  message.title = (_a = object.title) != null ? _a : "";
14441
14464
  message.link = (_b = object.link) != null ? _b : "";
@@ -14454,6 +14477,7 @@ var DirectFcmProto = {
14454
14477
  message.position_e = ((_o = object.position_e) == null ? void 0 : _o.map((e) => e)) || [];
14455
14478
  message.attachment_type = (_p = object.attachment_type) != null ? _p : "";
14456
14479
  message.has_more_attachment = (_q = object.has_more_attachment) != null ? _q : false;
14480
+ message.is_mention_role = ((_r = object.is_mention_role) == null ? void 0 : _r.map((e) => e)) || [];
14457
14481
  return message;
14458
14482
  }
14459
14483
  };
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.83",
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",