mezon-js-protobuf 1.8.40 → 1.8.42

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.
@@ -7119,7 +7119,8 @@ function createBaseChannelDescription() {
7119
7119
  is_mute: false,
7120
7120
  age_restricted: 0,
7121
7121
  topic: "",
7122
- e2ee: 0
7122
+ e2ee: 0,
7123
+ member_count: 0
7123
7124
  };
7124
7125
  }
7125
7126
  var ChannelDescription = {
@@ -7216,6 +7217,9 @@ var ChannelDescription = {
7216
7217
  if (message.e2ee !== 0) {
7217
7218
  writer.uint32(240).int32(message.e2ee);
7218
7219
  }
7220
+ if (message.member_count !== 0) {
7221
+ writer.uint32(248).int32(message.member_count);
7222
+ }
7219
7223
  return writer;
7220
7224
  },
7221
7225
  decode(input, length) {
@@ -7412,6 +7416,12 @@ var ChannelDescription = {
7412
7416
  }
7413
7417
  message.e2ee = reader.int32();
7414
7418
  continue;
7419
+ case 31:
7420
+ if (tag !== 248) {
7421
+ break;
7422
+ }
7423
+ message.member_count = reader.int32();
7424
+ continue;
7415
7425
  }
7416
7426
  if ((tag & 7) === 4 || tag === 0) {
7417
7427
  break;
@@ -7451,7 +7461,8 @@ var ChannelDescription = {
7451
7461
  is_mute: isSet3(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
7452
7462
  age_restricted: isSet3(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
7453
7463
  topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
7454
- e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0
7464
+ e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
7465
+ member_count: isSet3(object.member_count) ? globalThis.Number(object.member_count) : 0
7455
7466
  };
7456
7467
  },
7457
7468
  toJSON(message) {
@@ -7547,13 +7558,16 @@ var ChannelDescription = {
7547
7558
  if (message.e2ee !== 0) {
7548
7559
  obj.e2ee = Math.round(message.e2ee);
7549
7560
  }
7561
+ if (message.member_count !== 0) {
7562
+ obj.member_count = Math.round(message.member_count);
7563
+ }
7550
7564
  return obj;
7551
7565
  },
7552
7566
  create(base) {
7553
7567
  return ChannelDescription.fromPartial(base != null ? base : {});
7554
7568
  },
7555
7569
  fromPartial(object) {
7556
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
7570
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C;
7557
7571
  const message = createBaseChannelDescription();
7558
7572
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
7559
7573
  message.parent_id = (_b = object.parent_id) != null ? _b : "";
@@ -7585,6 +7599,7 @@ var ChannelDescription = {
7585
7599
  message.age_restricted = (_z = object.age_restricted) != null ? _z : 0;
7586
7600
  message.topic = (_A = object.topic) != null ? _A : "";
7587
7601
  message.e2ee = (_B = object.e2ee) != null ? _B : 0;
7602
+ message.member_count = (_C = object.member_count) != null ? _C : 0;
7588
7603
  return message;
7589
7604
  }
7590
7605
  };
@@ -7822,7 +7837,7 @@ var ListThreadRequest = {
7822
7837
  }
7823
7838
  };
7824
7839
  function createBaseListChannelDescsRequest() {
7825
- return { limit: void 0, state: void 0, cursor: "", clan_id: "", channel_type: 0 };
7840
+ return { limit: void 0, state: void 0, cursor: "", clan_id: "", channel_type: 0, is_mobile: false };
7826
7841
  }
7827
7842
  var ListChannelDescsRequest = {
7828
7843
  encode(message, writer = import_minimal4.default.Writer.create()) {
@@ -7841,6 +7856,9 @@ var ListChannelDescsRequest = {
7841
7856
  if (message.channel_type !== 0) {
7842
7857
  writer.uint32(40).int32(message.channel_type);
7843
7858
  }
7859
+ if (message.is_mobile !== false) {
7860
+ writer.uint32(48).bool(message.is_mobile);
7861
+ }
7844
7862
  return writer;
7845
7863
  },
7846
7864
  decode(input, length) {
@@ -7880,6 +7898,12 @@ var ListChannelDescsRequest = {
7880
7898
  }
7881
7899
  message.channel_type = reader.int32();
7882
7900
  continue;
7901
+ case 6:
7902
+ if (tag !== 48) {
7903
+ break;
7904
+ }
7905
+ message.is_mobile = reader.bool();
7906
+ continue;
7883
7907
  }
7884
7908
  if ((tag & 7) === 4 || tag === 0) {
7885
7909
  break;
@@ -7894,7 +7918,8 @@ var ListChannelDescsRequest = {
7894
7918
  state: isSet3(object.state) ? Number(object.state) : void 0,
7895
7919
  cursor: isSet3(object.cursor) ? globalThis.String(object.cursor) : "",
7896
7920
  clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
7897
- channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0
7921
+ channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
7922
+ is_mobile: isSet3(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false
7898
7923
  };
7899
7924
  },
7900
7925
  toJSON(message) {
@@ -7914,19 +7939,23 @@ var ListChannelDescsRequest = {
7914
7939
  if (message.channel_type !== 0) {
7915
7940
  obj.channel_type = Math.round(message.channel_type);
7916
7941
  }
7942
+ if (message.is_mobile !== false) {
7943
+ obj.is_mobile = message.is_mobile;
7944
+ }
7917
7945
  return obj;
7918
7946
  },
7919
7947
  create(base) {
7920
7948
  return ListChannelDescsRequest.fromPartial(base != null ? base : {});
7921
7949
  },
7922
7950
  fromPartial(object) {
7923
- var _a, _b, _c, _d, _e;
7951
+ var _a, _b, _c, _d, _e, _f;
7924
7952
  const message = createBaseListChannelDescsRequest();
7925
7953
  message.limit = (_a = object.limit) != null ? _a : void 0;
7926
7954
  message.state = (_b = object.state) != null ? _b : void 0;
7927
7955
  message.cursor = (_c = object.cursor) != null ? _c : "";
7928
7956
  message.clan_id = (_d = object.clan_id) != null ? _d : "";
7929
7957
  message.channel_type = (_e = object.channel_type) != null ? _e : 0;
7958
+ message.is_mobile = (_f = object.is_mobile) != null ? _f : false;
7930
7959
  return message;
7931
7960
  }
7932
7961
  };
@@ -11223,7 +11252,7 @@ var AllUsersAddChannelRequest = {
11223
11252
  }
11224
11253
  };
11225
11254
  function createBaseAllUsersAddChannelResponse() {
11226
- return { channel_id: "", user_ids: [], limit: void 0 };
11255
+ return { channel_id: "", user_ids: [], limit: void 0, usernames: [], display_names: [], avatars: [], onlines: [] };
11227
11256
  }
11228
11257
  var AllUsersAddChannelResponse = {
11229
11258
  encode(message, writer = import_minimal4.default.Writer.create()) {
@@ -11236,6 +11265,20 @@ var AllUsersAddChannelResponse = {
11236
11265
  if (message.limit !== void 0) {
11237
11266
  Int32Value.encode({ value: message.limit }, writer.uint32(26).fork()).ldelim();
11238
11267
  }
11268
+ for (const v of message.usernames) {
11269
+ writer.uint32(34).string(v);
11270
+ }
11271
+ for (const v of message.display_names) {
11272
+ writer.uint32(42).string(v);
11273
+ }
11274
+ for (const v of message.avatars) {
11275
+ writer.uint32(50).string(v);
11276
+ }
11277
+ writer.uint32(58).fork();
11278
+ for (const v of message.onlines) {
11279
+ writer.bool(v);
11280
+ }
11281
+ writer.ldelim();
11239
11282
  return writer;
11240
11283
  },
11241
11284
  decode(input, length) {
@@ -11263,6 +11306,37 @@ var AllUsersAddChannelResponse = {
11263
11306
  }
11264
11307
  message.limit = Int32Value.decode(reader, reader.uint32()).value;
11265
11308
  continue;
11309
+ case 4:
11310
+ if (tag !== 34) {
11311
+ break;
11312
+ }
11313
+ message.usernames.push(reader.string());
11314
+ continue;
11315
+ case 5:
11316
+ if (tag !== 42) {
11317
+ break;
11318
+ }
11319
+ message.display_names.push(reader.string());
11320
+ continue;
11321
+ case 6:
11322
+ if (tag !== 50) {
11323
+ break;
11324
+ }
11325
+ message.avatars.push(reader.string());
11326
+ continue;
11327
+ case 7:
11328
+ if (tag === 56) {
11329
+ message.onlines.push(reader.bool());
11330
+ continue;
11331
+ }
11332
+ if (tag === 58) {
11333
+ const end2 = reader.uint32() + reader.pos;
11334
+ while (reader.pos < end2) {
11335
+ message.onlines.push(reader.bool());
11336
+ }
11337
+ continue;
11338
+ }
11339
+ break;
11266
11340
  }
11267
11341
  if ((tag & 7) === 4 || tag === 0) {
11268
11342
  break;
@@ -11275,11 +11349,15 @@ var AllUsersAddChannelResponse = {
11275
11349
  return {
11276
11350
  channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
11277
11351
  user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
11278
- limit: isSet3(object.limit) ? Number(object.limit) : void 0
11352
+ limit: isSet3(object.limit) ? Number(object.limit) : void 0,
11353
+ usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
11354
+ display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : [],
11355
+ avatars: globalThis.Array.isArray(object == null ? void 0 : object.avatars) ? object.avatars.map((e) => globalThis.String(e)) : [],
11356
+ onlines: globalThis.Array.isArray(object == null ? void 0 : object.onlines) ? object.onlines.map((e) => globalThis.Boolean(e)) : []
11279
11357
  };
11280
11358
  },
11281
11359
  toJSON(message) {
11282
- var _a;
11360
+ var _a, _b, _c, _d, _e;
11283
11361
  const obj = {};
11284
11362
  if (message.channel_id !== "") {
11285
11363
  obj.channel_id = message.channel_id;
@@ -11290,17 +11368,33 @@ var AllUsersAddChannelResponse = {
11290
11368
  if (message.limit !== void 0) {
11291
11369
  obj.limit = message.limit;
11292
11370
  }
11371
+ if ((_b = message.usernames) == null ? void 0 : _b.length) {
11372
+ obj.usernames = message.usernames;
11373
+ }
11374
+ if ((_c = message.display_names) == null ? void 0 : _c.length) {
11375
+ obj.display_names = message.display_names;
11376
+ }
11377
+ if ((_d = message.avatars) == null ? void 0 : _d.length) {
11378
+ obj.avatars = message.avatars;
11379
+ }
11380
+ if ((_e = message.onlines) == null ? void 0 : _e.length) {
11381
+ obj.onlines = message.onlines;
11382
+ }
11293
11383
  return obj;
11294
11384
  },
11295
11385
  create(base) {
11296
11386
  return AllUsersAddChannelResponse.fromPartial(base != null ? base : {});
11297
11387
  },
11298
11388
  fromPartial(object) {
11299
- var _a, _b, _c;
11389
+ var _a, _b, _c, _d, _e, _f, _g;
11300
11390
  const message = createBaseAllUsersAddChannelResponse();
11301
11391
  message.channel_id = (_a = object.channel_id) != null ? _a : "";
11302
11392
  message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
11303
11393
  message.limit = (_c = object.limit) != null ? _c : void 0;
11394
+ message.usernames = ((_d = object.usernames) == null ? void 0 : _d.map((e) => e)) || [];
11395
+ message.display_names = ((_e = object.display_names) == null ? void 0 : _e.map((e) => e)) || [];
11396
+ message.avatars = ((_f = object.avatars) == null ? void 0 : _f.map((e) => e)) || [];
11397
+ message.onlines = ((_g = object.onlines) == null ? void 0 : _g.map((e) => e)) || [];
11304
11398
  return message;
11305
11399
  }
11306
11400
  };
@@ -7106,7 +7106,8 @@ function createBaseChannelDescription() {
7106
7106
  is_mute: false,
7107
7107
  age_restricted: 0,
7108
7108
  topic: "",
7109
- e2ee: 0
7109
+ e2ee: 0,
7110
+ member_count: 0
7110
7111
  };
7111
7112
  }
7112
7113
  var ChannelDescription = {
@@ -7203,6 +7204,9 @@ var ChannelDescription = {
7203
7204
  if (message.e2ee !== 0) {
7204
7205
  writer.uint32(240).int32(message.e2ee);
7205
7206
  }
7207
+ if (message.member_count !== 0) {
7208
+ writer.uint32(248).int32(message.member_count);
7209
+ }
7206
7210
  return writer;
7207
7211
  },
7208
7212
  decode(input, length) {
@@ -7399,6 +7403,12 @@ var ChannelDescription = {
7399
7403
  }
7400
7404
  message.e2ee = reader.int32();
7401
7405
  continue;
7406
+ case 31:
7407
+ if (tag !== 248) {
7408
+ break;
7409
+ }
7410
+ message.member_count = reader.int32();
7411
+ continue;
7402
7412
  }
7403
7413
  if ((tag & 7) === 4 || tag === 0) {
7404
7414
  break;
@@ -7438,7 +7448,8 @@ var ChannelDescription = {
7438
7448
  is_mute: isSet3(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
7439
7449
  age_restricted: isSet3(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
7440
7450
  topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
7441
- e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0
7451
+ e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
7452
+ member_count: isSet3(object.member_count) ? globalThis.Number(object.member_count) : 0
7442
7453
  };
7443
7454
  },
7444
7455
  toJSON(message) {
@@ -7534,13 +7545,16 @@ var ChannelDescription = {
7534
7545
  if (message.e2ee !== 0) {
7535
7546
  obj.e2ee = Math.round(message.e2ee);
7536
7547
  }
7548
+ if (message.member_count !== 0) {
7549
+ obj.member_count = Math.round(message.member_count);
7550
+ }
7537
7551
  return obj;
7538
7552
  },
7539
7553
  create(base) {
7540
7554
  return ChannelDescription.fromPartial(base != null ? base : {});
7541
7555
  },
7542
7556
  fromPartial(object) {
7543
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
7557
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C;
7544
7558
  const message = createBaseChannelDescription();
7545
7559
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
7546
7560
  message.parent_id = (_b = object.parent_id) != null ? _b : "";
@@ -7572,6 +7586,7 @@ var ChannelDescription = {
7572
7586
  message.age_restricted = (_z = object.age_restricted) != null ? _z : 0;
7573
7587
  message.topic = (_A = object.topic) != null ? _A : "";
7574
7588
  message.e2ee = (_B = object.e2ee) != null ? _B : 0;
7589
+ message.member_count = (_C = object.member_count) != null ? _C : 0;
7575
7590
  return message;
7576
7591
  }
7577
7592
  };
@@ -7809,7 +7824,7 @@ var ListThreadRequest = {
7809
7824
  }
7810
7825
  };
7811
7826
  function createBaseListChannelDescsRequest() {
7812
- return { limit: void 0, state: void 0, cursor: "", clan_id: "", channel_type: 0 };
7827
+ return { limit: void 0, state: void 0, cursor: "", clan_id: "", channel_type: 0, is_mobile: false };
7813
7828
  }
7814
7829
  var ListChannelDescsRequest = {
7815
7830
  encode(message, writer = import_minimal4.default.Writer.create()) {
@@ -7828,6 +7843,9 @@ var ListChannelDescsRequest = {
7828
7843
  if (message.channel_type !== 0) {
7829
7844
  writer.uint32(40).int32(message.channel_type);
7830
7845
  }
7846
+ if (message.is_mobile !== false) {
7847
+ writer.uint32(48).bool(message.is_mobile);
7848
+ }
7831
7849
  return writer;
7832
7850
  },
7833
7851
  decode(input, length) {
@@ -7867,6 +7885,12 @@ var ListChannelDescsRequest = {
7867
7885
  }
7868
7886
  message.channel_type = reader.int32();
7869
7887
  continue;
7888
+ case 6:
7889
+ if (tag !== 48) {
7890
+ break;
7891
+ }
7892
+ message.is_mobile = reader.bool();
7893
+ continue;
7870
7894
  }
7871
7895
  if ((tag & 7) === 4 || tag === 0) {
7872
7896
  break;
@@ -7881,7 +7905,8 @@ var ListChannelDescsRequest = {
7881
7905
  state: isSet3(object.state) ? Number(object.state) : void 0,
7882
7906
  cursor: isSet3(object.cursor) ? globalThis.String(object.cursor) : "",
7883
7907
  clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
7884
- channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0
7908
+ channel_type: isSet3(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
7909
+ is_mobile: isSet3(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false
7885
7910
  };
7886
7911
  },
7887
7912
  toJSON(message) {
@@ -7901,19 +7926,23 @@ var ListChannelDescsRequest = {
7901
7926
  if (message.channel_type !== 0) {
7902
7927
  obj.channel_type = Math.round(message.channel_type);
7903
7928
  }
7929
+ if (message.is_mobile !== false) {
7930
+ obj.is_mobile = message.is_mobile;
7931
+ }
7904
7932
  return obj;
7905
7933
  },
7906
7934
  create(base) {
7907
7935
  return ListChannelDescsRequest.fromPartial(base != null ? base : {});
7908
7936
  },
7909
7937
  fromPartial(object) {
7910
- var _a, _b, _c, _d, _e;
7938
+ var _a, _b, _c, _d, _e, _f;
7911
7939
  const message = createBaseListChannelDescsRequest();
7912
7940
  message.limit = (_a = object.limit) != null ? _a : void 0;
7913
7941
  message.state = (_b = object.state) != null ? _b : void 0;
7914
7942
  message.cursor = (_c = object.cursor) != null ? _c : "";
7915
7943
  message.clan_id = (_d = object.clan_id) != null ? _d : "";
7916
7944
  message.channel_type = (_e = object.channel_type) != null ? _e : 0;
7945
+ message.is_mobile = (_f = object.is_mobile) != null ? _f : false;
7917
7946
  return message;
7918
7947
  }
7919
7948
  };
@@ -11210,7 +11239,7 @@ var AllUsersAddChannelRequest = {
11210
11239
  }
11211
11240
  };
11212
11241
  function createBaseAllUsersAddChannelResponse() {
11213
- return { channel_id: "", user_ids: [], limit: void 0 };
11242
+ return { channel_id: "", user_ids: [], limit: void 0, usernames: [], display_names: [], avatars: [], onlines: [] };
11214
11243
  }
11215
11244
  var AllUsersAddChannelResponse = {
11216
11245
  encode(message, writer = import_minimal4.default.Writer.create()) {
@@ -11223,6 +11252,20 @@ var AllUsersAddChannelResponse = {
11223
11252
  if (message.limit !== void 0) {
11224
11253
  Int32Value.encode({ value: message.limit }, writer.uint32(26).fork()).ldelim();
11225
11254
  }
11255
+ for (const v of message.usernames) {
11256
+ writer.uint32(34).string(v);
11257
+ }
11258
+ for (const v of message.display_names) {
11259
+ writer.uint32(42).string(v);
11260
+ }
11261
+ for (const v of message.avatars) {
11262
+ writer.uint32(50).string(v);
11263
+ }
11264
+ writer.uint32(58).fork();
11265
+ for (const v of message.onlines) {
11266
+ writer.bool(v);
11267
+ }
11268
+ writer.ldelim();
11226
11269
  return writer;
11227
11270
  },
11228
11271
  decode(input, length) {
@@ -11250,6 +11293,37 @@ var AllUsersAddChannelResponse = {
11250
11293
  }
11251
11294
  message.limit = Int32Value.decode(reader, reader.uint32()).value;
11252
11295
  continue;
11296
+ case 4:
11297
+ if (tag !== 34) {
11298
+ break;
11299
+ }
11300
+ message.usernames.push(reader.string());
11301
+ continue;
11302
+ case 5:
11303
+ if (tag !== 42) {
11304
+ break;
11305
+ }
11306
+ message.display_names.push(reader.string());
11307
+ continue;
11308
+ case 6:
11309
+ if (tag !== 50) {
11310
+ break;
11311
+ }
11312
+ message.avatars.push(reader.string());
11313
+ continue;
11314
+ case 7:
11315
+ if (tag === 56) {
11316
+ message.onlines.push(reader.bool());
11317
+ continue;
11318
+ }
11319
+ if (tag === 58) {
11320
+ const end2 = reader.uint32() + reader.pos;
11321
+ while (reader.pos < end2) {
11322
+ message.onlines.push(reader.bool());
11323
+ }
11324
+ continue;
11325
+ }
11326
+ break;
11253
11327
  }
11254
11328
  if ((tag & 7) === 4 || tag === 0) {
11255
11329
  break;
@@ -11262,11 +11336,15 @@ var AllUsersAddChannelResponse = {
11262
11336
  return {
11263
11337
  channel_id: isSet3(object.channel_id) ? globalThis.String(object.channel_id) : "",
11264
11338
  user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
11265
- limit: isSet3(object.limit) ? Number(object.limit) : void 0
11339
+ limit: isSet3(object.limit) ? Number(object.limit) : void 0,
11340
+ usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
11341
+ display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : [],
11342
+ avatars: globalThis.Array.isArray(object == null ? void 0 : object.avatars) ? object.avatars.map((e) => globalThis.String(e)) : [],
11343
+ onlines: globalThis.Array.isArray(object == null ? void 0 : object.onlines) ? object.onlines.map((e) => globalThis.Boolean(e)) : []
11266
11344
  };
11267
11345
  },
11268
11346
  toJSON(message) {
11269
- var _a;
11347
+ var _a, _b, _c, _d, _e;
11270
11348
  const obj = {};
11271
11349
  if (message.channel_id !== "") {
11272
11350
  obj.channel_id = message.channel_id;
@@ -11277,17 +11355,33 @@ var AllUsersAddChannelResponse = {
11277
11355
  if (message.limit !== void 0) {
11278
11356
  obj.limit = message.limit;
11279
11357
  }
11358
+ if ((_b = message.usernames) == null ? void 0 : _b.length) {
11359
+ obj.usernames = message.usernames;
11360
+ }
11361
+ if ((_c = message.display_names) == null ? void 0 : _c.length) {
11362
+ obj.display_names = message.display_names;
11363
+ }
11364
+ if ((_d = message.avatars) == null ? void 0 : _d.length) {
11365
+ obj.avatars = message.avatars;
11366
+ }
11367
+ if ((_e = message.onlines) == null ? void 0 : _e.length) {
11368
+ obj.onlines = message.onlines;
11369
+ }
11280
11370
  return obj;
11281
11371
  },
11282
11372
  create(base) {
11283
11373
  return AllUsersAddChannelResponse.fromPartial(base != null ? base : {});
11284
11374
  },
11285
11375
  fromPartial(object) {
11286
- var _a, _b, _c;
11376
+ var _a, _b, _c, _d, _e, _f, _g;
11287
11377
  const message = createBaseAllUsersAddChannelResponse();
11288
11378
  message.channel_id = (_a = object.channel_id) != null ? _a : "";
11289
11379
  message.user_ids = ((_b = object.user_ids) == null ? void 0 : _b.map((e) => e)) || [];
11290
11380
  message.limit = (_c = object.limit) != null ? _c : void 0;
11381
+ message.usernames = ((_d = object.usernames) == null ? void 0 : _d.map((e) => e)) || [];
11382
+ message.display_names = ((_e = object.display_names) == null ? void 0 : _e.map((e) => e)) || [];
11383
+ message.avatars = ((_f = object.avatars) == null ? void 0 : _f.map((e) => e)) || [];
11384
+ message.onlines = ((_g = object.onlines) == null ? void 0 : _g.map((e) => e)) || [];
11291
11385
  return message;
11292
11386
  }
11293
11387
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.40",
3
+ "version": "1.8.42",
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",