mezon-js-protobuf 1.8.35 → 1.8.37

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.
@@ -5974,7 +5974,7 @@ function createBaseUser() {
5974
5974
  lang_tag: "",
5975
5975
  location: "",
5976
5976
  timezone: "",
5977
- metadata: "",
5977
+ user_status: "",
5978
5978
  online: false,
5979
5979
  phone_number: "",
5980
5980
  edge_count: 0,
@@ -6011,8 +6011,8 @@ var User = {
6011
6011
  if (message.timezone !== "") {
6012
6012
  writer.uint32(58).string(message.timezone);
6013
6013
  }
6014
- if (message.metadata !== "") {
6015
- writer.uint32(66).string(message.metadata);
6014
+ if (message.user_status !== "") {
6015
+ writer.uint32(66).string(message.user_status);
6016
6016
  }
6017
6017
  if (message.online !== false) {
6018
6018
  writer.uint32(72).bool(message.online);
@@ -6102,7 +6102,7 @@ var User = {
6102
6102
  if (tag !== 66) {
6103
6103
  break;
6104
6104
  }
6105
- message.metadata = reader.string();
6105
+ message.user_status = reader.string();
6106
6106
  continue;
6107
6107
  case 9:
6108
6108
  if (tag !== 72) {
@@ -6187,7 +6187,7 @@ var User = {
6187
6187
  lang_tag: isSet3(object.lang_tag) ? globalThis.String(object.lang_tag) : "",
6188
6188
  location: isSet3(object.location) ? globalThis.String(object.location) : "",
6189
6189
  timezone: isSet3(object.timezone) ? globalThis.String(object.timezone) : "",
6190
- metadata: isSet3(object.metadata) ? globalThis.String(object.metadata) : "",
6190
+ user_status: isSet3(object.user_status) ? globalThis.String(object.user_status) : "",
6191
6191
  online: isSet3(object.online) ? globalThis.Boolean(object.online) : false,
6192
6192
  phone_number: isSet3(object.phone_number) ? globalThis.String(object.phone_number) : "",
6193
6193
  edge_count: isSet3(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
@@ -6225,8 +6225,8 @@ var User = {
6225
6225
  if (message.timezone !== "") {
6226
6226
  obj.timezone = message.timezone;
6227
6227
  }
6228
- if (message.metadata !== "") {
6229
- obj.metadata = message.metadata;
6228
+ if (message.user_status !== "") {
6229
+ obj.user_status = message.user_status;
6230
6230
  }
6231
6231
  if (message.online !== false) {
6232
6232
  obj.online = message.online;
@@ -6276,7 +6276,7 @@ var User = {
6276
6276
  message.lang_tag = (_e = object.lang_tag) != null ? _e : "";
6277
6277
  message.location = (_f = object.location) != null ? _f : "";
6278
6278
  message.timezone = (_g = object.timezone) != null ? _g : "";
6279
- message.metadata = (_h = object.metadata) != null ? _h : "";
6279
+ message.user_status = (_h = object.user_status) != null ? _h : "";
6280
6280
  message.online = (_i = object.online) != null ? _i : false;
6281
6281
  message.phone_number = (_j = object.phone_number) != null ? _j : "";
6282
6282
  message.edge_count = (_k = object.edge_count) != null ? _k : 0;
@@ -7071,28 +7071,27 @@ function createBaseChannelDescription() {
7071
7071
  creator_id: "",
7072
7072
  channel_label: "",
7073
7073
  channel_private: 0,
7074
- channel_avatar: [],
7075
- user_id: [],
7076
7074
  last_sent_message: void 0,
7077
7075
  last_seen_message: void 0,
7078
- is_online: [],
7079
7076
  meeting_code: "",
7080
7077
  count_mess_unread: 0,
7081
7078
  active: 0,
7082
7079
  last_pin_message: "",
7083
- usernames: [],
7084
7080
  creator_name: "",
7085
7081
  create_time_seconds: 0,
7086
7082
  update_time_seconds: 0,
7087
- metadata: [],
7088
- about_me: [],
7089
7083
  clan_name: "",
7090
7084
  app_id: "",
7091
7085
  is_mute: false,
7092
7086
  age_restricted: 0,
7093
- topic: "",
7087
+ channel_avatar: "",
7094
7088
  e2ee: 0,
7095
- display_names: []
7089
+ topic: "",
7090
+ user_ids: [],
7091
+ usernames: [],
7092
+ display_names: [],
7093
+ onlines: [],
7094
+ avatars: []
7096
7095
  };
7097
7096
  }
7098
7097
  var ChannelDescription = {
@@ -7124,73 +7123,70 @@ var ChannelDescription = {
7124
7123
  if (message.channel_private !== 0) {
7125
7124
  writer.uint32(72).int32(message.channel_private);
7126
7125
  }
7127
- for (const v of message.channel_avatar) {
7128
- writer.uint32(82).string(v);
7129
- }
7130
- for (const v of message.user_id) {
7131
- writer.uint32(90).string(v);
7132
- }
7133
7126
  if (message.last_sent_message !== void 0) {
7134
- ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(98).fork()).ldelim();
7127
+ ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(82).fork()).ldelim();
7135
7128
  }
7136
7129
  if (message.last_seen_message !== void 0) {
7137
- ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(106).fork()).ldelim();
7138
- }
7139
- writer.uint32(114).fork();
7140
- for (const v of message.is_online) {
7141
- writer.bool(v);
7130
+ ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(90).fork()).ldelim();
7142
7131
  }
7143
- writer.ldelim();
7144
7132
  if (message.meeting_code !== "") {
7145
- writer.uint32(122).string(message.meeting_code);
7133
+ writer.uint32(98).string(message.meeting_code);
7146
7134
  }
7147
7135
  if (message.count_mess_unread !== 0) {
7148
- writer.uint32(128).int32(message.count_mess_unread);
7136
+ writer.uint32(104).int32(message.count_mess_unread);
7149
7137
  }
7150
7138
  if (message.active !== 0) {
7151
- writer.uint32(136).int32(message.active);
7139
+ writer.uint32(112).int32(message.active);
7152
7140
  }
7153
7141
  if (message.last_pin_message !== "") {
7154
- writer.uint32(146).string(message.last_pin_message);
7155
- }
7156
- for (const v of message.usernames) {
7157
- writer.uint32(154).string(v);
7142
+ writer.uint32(122).string(message.last_pin_message);
7158
7143
  }
7159
7144
  if (message.creator_name !== "") {
7160
- writer.uint32(162).string(message.creator_name);
7145
+ writer.uint32(130).string(message.creator_name);
7161
7146
  }
7162
7147
  if (message.create_time_seconds !== 0) {
7163
- writer.uint32(168).uint32(message.create_time_seconds);
7148
+ writer.uint32(136).uint32(message.create_time_seconds);
7164
7149
  }
7165
7150
  if (message.update_time_seconds !== 0) {
7166
- writer.uint32(176).uint32(message.update_time_seconds);
7167
- }
7168
- for (const v of message.metadata) {
7169
- writer.uint32(186).string(v);
7170
- }
7171
- for (const v of message.about_me) {
7172
- writer.uint32(194).string(v);
7151
+ writer.uint32(144).uint32(message.update_time_seconds);
7173
7152
  }
7174
7153
  if (message.clan_name !== "") {
7175
- writer.uint32(202).string(message.clan_name);
7154
+ writer.uint32(154).string(message.clan_name);
7176
7155
  }
7177
7156
  if (message.app_id !== "") {
7178
- writer.uint32(210).string(message.app_id);
7157
+ writer.uint32(162).string(message.app_id);
7179
7158
  }
7180
7159
  if (message.is_mute !== false) {
7181
- writer.uint32(216).bool(message.is_mute);
7160
+ writer.uint32(168).bool(message.is_mute);
7182
7161
  }
7183
7162
  if (message.age_restricted !== 0) {
7184
- writer.uint32(224).int32(message.age_restricted);
7163
+ writer.uint32(176).int32(message.age_restricted);
7185
7164
  }
7186
- if (message.topic !== "") {
7187
- writer.uint32(234).string(message.topic);
7165
+ if (message.channel_avatar !== "") {
7166
+ writer.uint32(186).string(message.channel_avatar);
7188
7167
  }
7189
7168
  if (message.e2ee !== 0) {
7190
- writer.uint32(240).int32(message.e2ee);
7169
+ writer.uint32(192).int32(message.e2ee);
7170
+ }
7171
+ if (message.topic !== "") {
7172
+ writer.uint32(202).string(message.topic);
7173
+ }
7174
+ for (const v of message.user_ids) {
7175
+ writer.uint32(210).string(v);
7176
+ }
7177
+ for (const v of message.usernames) {
7178
+ writer.uint32(218).string(v);
7191
7179
  }
7192
7180
  for (const v of message.display_names) {
7193
- writer.uint32(250).string(v);
7181
+ writer.uint32(226).string(v);
7182
+ }
7183
+ writer.uint32(234).fork();
7184
+ for (const v of message.onlines) {
7185
+ writer.bool(v);
7186
+ }
7187
+ writer.ldelim();
7188
+ for (const v of message.avatars) {
7189
+ writer.uint32(242).string(v);
7194
7190
  }
7195
7191
  return writer;
7196
7192
  },
@@ -7259,140 +7255,134 @@ var ChannelDescription = {
7259
7255
  if (tag !== 82) {
7260
7256
  break;
7261
7257
  }
7262
- message.channel_avatar.push(reader.string());
7258
+ message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
7263
7259
  continue;
7264
7260
  case 11:
7265
7261
  if (tag !== 90) {
7266
7262
  break;
7267
7263
  }
7268
- message.user_id.push(reader.string());
7264
+ message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
7269
7265
  continue;
7270
7266
  case 12:
7271
7267
  if (tag !== 98) {
7272
7268
  break;
7273
7269
  }
7274
- message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
7270
+ message.meeting_code = reader.string();
7275
7271
  continue;
7276
7272
  case 13:
7277
- if (tag !== 106) {
7273
+ if (tag !== 104) {
7278
7274
  break;
7279
7275
  }
7280
- message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
7276
+ message.count_mess_unread = reader.int32();
7281
7277
  continue;
7282
7278
  case 14:
7283
- if (tag === 112) {
7284
- message.is_online.push(reader.bool());
7285
- continue;
7286
- }
7287
- if (tag === 114) {
7288
- const end2 = reader.uint32() + reader.pos;
7289
- while (reader.pos < end2) {
7290
- message.is_online.push(reader.bool());
7291
- }
7292
- continue;
7279
+ if (tag !== 112) {
7280
+ break;
7293
7281
  }
7294
- break;
7282
+ message.active = reader.int32();
7283
+ continue;
7295
7284
  case 15:
7296
7285
  if (tag !== 122) {
7297
7286
  break;
7298
7287
  }
7299
- message.meeting_code = reader.string();
7288
+ message.last_pin_message = reader.string();
7300
7289
  continue;
7301
7290
  case 16:
7302
- if (tag !== 128) {
7291
+ if (tag !== 130) {
7303
7292
  break;
7304
7293
  }
7305
- message.count_mess_unread = reader.int32();
7294
+ message.creator_name = reader.string();
7306
7295
  continue;
7307
7296
  case 17:
7308
7297
  if (tag !== 136) {
7309
7298
  break;
7310
7299
  }
7311
- message.active = reader.int32();
7300
+ message.create_time_seconds = reader.uint32();
7312
7301
  continue;
7313
7302
  case 18:
7314
- if (tag !== 146) {
7303
+ if (tag !== 144) {
7315
7304
  break;
7316
7305
  }
7317
- message.last_pin_message = reader.string();
7306
+ message.update_time_seconds = reader.uint32();
7318
7307
  continue;
7319
7308
  case 19:
7320
7309
  if (tag !== 154) {
7321
7310
  break;
7322
7311
  }
7323
- message.usernames.push(reader.string());
7312
+ message.clan_name = reader.string();
7324
7313
  continue;
7325
7314
  case 20:
7326
7315
  if (tag !== 162) {
7327
7316
  break;
7328
7317
  }
7329
- message.creator_name = reader.string();
7318
+ message.app_id = reader.string();
7330
7319
  continue;
7331
7320
  case 21:
7332
7321
  if (tag !== 168) {
7333
7322
  break;
7334
7323
  }
7335
- message.create_time_seconds = reader.uint32();
7324
+ message.is_mute = reader.bool();
7336
7325
  continue;
7337
7326
  case 22:
7338
7327
  if (tag !== 176) {
7339
7328
  break;
7340
7329
  }
7341
- message.update_time_seconds = reader.uint32();
7330
+ message.age_restricted = reader.int32();
7342
7331
  continue;
7343
7332
  case 23:
7344
7333
  if (tag !== 186) {
7345
7334
  break;
7346
7335
  }
7347
- message.metadata.push(reader.string());
7336
+ message.channel_avatar = reader.string();
7348
7337
  continue;
7349
7338
  case 24:
7350
- if (tag !== 194) {
7339
+ if (tag !== 192) {
7351
7340
  break;
7352
7341
  }
7353
- message.about_me.push(reader.string());
7342
+ message.e2ee = reader.int32();
7354
7343
  continue;
7355
7344
  case 25:
7356
7345
  if (tag !== 202) {
7357
7346
  break;
7358
7347
  }
7359
- message.clan_name = reader.string();
7348
+ message.topic = reader.string();
7360
7349
  continue;
7361
7350
  case 26:
7362
7351
  if (tag !== 210) {
7363
7352
  break;
7364
7353
  }
7365
- message.app_id = reader.string();
7354
+ message.user_ids.push(reader.string());
7366
7355
  continue;
7367
7356
  case 27:
7368
- if (tag !== 216) {
7357
+ if (tag !== 218) {
7369
7358
  break;
7370
7359
  }
7371
- message.is_mute = reader.bool();
7360
+ message.usernames.push(reader.string());
7372
7361
  continue;
7373
7362
  case 28:
7374
- if (tag !== 224) {
7363
+ if (tag !== 226) {
7375
7364
  break;
7376
7365
  }
7377
- message.age_restricted = reader.int32();
7366
+ message.display_names.push(reader.string());
7378
7367
  continue;
7379
7368
  case 29:
7380
- if (tag !== 234) {
7381
- break;
7369
+ if (tag === 232) {
7370
+ message.onlines.push(reader.bool());
7371
+ continue;
7382
7372
  }
7383
- message.topic = reader.string();
7384
- continue;
7385
- case 30:
7386
- if (tag !== 240) {
7387
- break;
7373
+ if (tag === 234) {
7374
+ const end2 = reader.uint32() + reader.pos;
7375
+ while (reader.pos < end2) {
7376
+ message.onlines.push(reader.bool());
7377
+ }
7378
+ continue;
7388
7379
  }
7389
- message.e2ee = reader.int32();
7390
- continue;
7391
- case 31:
7392
- if (tag !== 250) {
7380
+ break;
7381
+ case 30:
7382
+ if (tag !== 242) {
7393
7383
  break;
7394
7384
  }
7395
- message.display_names.push(reader.string());
7385
+ message.avatars.push(reader.string());
7396
7386
  continue;
7397
7387
  }
7398
7388
  if ((tag & 7) === 4 || tag === 0) {
@@ -7413,32 +7403,31 @@ var ChannelDescription = {
7413
7403
  creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : "",
7414
7404
  channel_label: isSet3(object.channel_label) ? globalThis.String(object.channel_label) : "",
7415
7405
  channel_private: isSet3(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
7416
- channel_avatar: globalThis.Array.isArray(object == null ? void 0 : object.channel_avatar) ? object.channel_avatar.map((e) => globalThis.String(e)) : [],
7417
- user_id: globalThis.Array.isArray(object == null ? void 0 : object.user_id) ? object.user_id.map((e) => globalThis.String(e)) : [],
7418
7406
  last_sent_message: isSet3(object.last_sent_message) ? ChannelMessageHeader.fromJSON(object.last_sent_message) : void 0,
7419
7407
  last_seen_message: isSet3(object.last_seen_message) ? ChannelMessageHeader.fromJSON(object.last_seen_message) : void 0,
7420
- is_online: globalThis.Array.isArray(object == null ? void 0 : object.is_online) ? object.is_online.map((e) => globalThis.Boolean(e)) : [],
7421
7408
  meeting_code: isSet3(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
7422
7409
  count_mess_unread: isSet3(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
7423
7410
  active: isSet3(object.active) ? globalThis.Number(object.active) : 0,
7424
7411
  last_pin_message: isSet3(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
7425
- usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
7426
7412
  creator_name: isSet3(object.creator_name) ? globalThis.String(object.creator_name) : "",
7427
7413
  create_time_seconds: isSet3(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
7428
7414
  update_time_seconds: isSet3(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
7429
- metadata: globalThis.Array.isArray(object == null ? void 0 : object.metadata) ? object.metadata.map((e) => globalThis.String(e)) : [],
7430
- about_me: globalThis.Array.isArray(object == null ? void 0 : object.about_me) ? object.about_me.map((e) => globalThis.String(e)) : [],
7431
7415
  clan_name: isSet3(object.clan_name) ? globalThis.String(object.clan_name) : "",
7432
7416
  app_id: isSet3(object.app_id) ? globalThis.String(object.app_id) : "",
7433
7417
  is_mute: isSet3(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
7434
7418
  age_restricted: isSet3(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
7435
- topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
7419
+ channel_avatar: isSet3(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
7436
7420
  e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
7437
- display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : []
7421
+ topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
7422
+ user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
7423
+ usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
7424
+ display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : [],
7425
+ onlines: globalThis.Array.isArray(object == null ? void 0 : object.onlines) ? object.onlines.map((e) => globalThis.Boolean(e)) : [],
7426
+ avatars: globalThis.Array.isArray(object == null ? void 0 : object.avatars) ? object.avatars.map((e) => globalThis.String(e)) : []
7438
7427
  };
7439
7428
  },
7440
7429
  toJSON(message) {
7441
- var _a, _b, _c, _d, _e, _f, _g;
7430
+ var _a, _b, _c, _d, _e;
7442
7431
  const obj = {};
7443
7432
  if (message.clan_id !== "") {
7444
7433
  obj.clan_id = message.clan_id;
@@ -7467,21 +7456,12 @@ var ChannelDescription = {
7467
7456
  if (message.channel_private !== 0) {
7468
7457
  obj.channel_private = Math.round(message.channel_private);
7469
7458
  }
7470
- if ((_a = message.channel_avatar) == null ? void 0 : _a.length) {
7471
- obj.channel_avatar = message.channel_avatar;
7472
- }
7473
- if ((_b = message.user_id) == null ? void 0 : _b.length) {
7474
- obj.user_id = message.user_id;
7475
- }
7476
7459
  if (message.last_sent_message !== void 0) {
7477
7460
  obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
7478
7461
  }
7479
7462
  if (message.last_seen_message !== void 0) {
7480
7463
  obj.last_seen_message = ChannelMessageHeader.toJSON(message.last_seen_message);
7481
7464
  }
7482
- if ((_c = message.is_online) == null ? void 0 : _c.length) {
7483
- obj.is_online = message.is_online;
7484
- }
7485
7465
  if (message.meeting_code !== "") {
7486
7466
  obj.meeting_code = message.meeting_code;
7487
7467
  }
@@ -7494,9 +7474,6 @@ var ChannelDescription = {
7494
7474
  if (message.last_pin_message !== "") {
7495
7475
  obj.last_pin_message = message.last_pin_message;
7496
7476
  }
7497
- if ((_d = message.usernames) == null ? void 0 : _d.length) {
7498
- obj.usernames = message.usernames;
7499
- }
7500
7477
  if (message.creator_name !== "") {
7501
7478
  obj.creator_name = message.creator_name;
7502
7479
  }
@@ -7506,12 +7483,6 @@ var ChannelDescription = {
7506
7483
  if (message.update_time_seconds !== 0) {
7507
7484
  obj.update_time_seconds = Math.round(message.update_time_seconds);
7508
7485
  }
7509
- if ((_e = message.metadata) == null ? void 0 : _e.length) {
7510
- obj.metadata = message.metadata;
7511
- }
7512
- if ((_f = message.about_me) == null ? void 0 : _f.length) {
7513
- obj.about_me = message.about_me;
7514
- }
7515
7486
  if (message.clan_name !== "") {
7516
7487
  obj.clan_name = message.clan_name;
7517
7488
  }
@@ -7524,22 +7495,37 @@ var ChannelDescription = {
7524
7495
  if (message.age_restricted !== 0) {
7525
7496
  obj.age_restricted = Math.round(message.age_restricted);
7526
7497
  }
7527
- if (message.topic !== "") {
7528
- obj.topic = message.topic;
7498
+ if (message.channel_avatar !== "") {
7499
+ obj.channel_avatar = message.channel_avatar;
7529
7500
  }
7530
7501
  if (message.e2ee !== 0) {
7531
7502
  obj.e2ee = Math.round(message.e2ee);
7532
7503
  }
7533
- if ((_g = message.display_names) == null ? void 0 : _g.length) {
7504
+ if (message.topic !== "") {
7505
+ obj.topic = message.topic;
7506
+ }
7507
+ if ((_a = message.user_ids) == null ? void 0 : _a.length) {
7508
+ obj.user_ids = message.user_ids;
7509
+ }
7510
+ if ((_b = message.usernames) == null ? void 0 : _b.length) {
7511
+ obj.usernames = message.usernames;
7512
+ }
7513
+ if ((_c = message.display_names) == null ? void 0 : _c.length) {
7534
7514
  obj.display_names = message.display_names;
7535
7515
  }
7516
+ if ((_d = message.onlines) == null ? void 0 : _d.length) {
7517
+ obj.onlines = message.onlines;
7518
+ }
7519
+ if ((_e = message.avatars) == null ? void 0 : _e.length) {
7520
+ obj.avatars = message.avatars;
7521
+ }
7536
7522
  return obj;
7537
7523
  },
7538
7524
  create(base) {
7539
7525
  return ChannelDescription.fromPartial(base != null ? base : {});
7540
7526
  },
7541
7527
  fromPartial(object) {
7542
- 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;
7528
+ 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;
7543
7529
  const message = createBaseChannelDescription();
7544
7530
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
7545
7531
  message.parent_id = (_b = object.parent_id) != null ? _b : "";
@@ -7550,28 +7536,27 @@ var ChannelDescription = {
7550
7536
  message.creator_id = (_g = object.creator_id) != null ? _g : "";
7551
7537
  message.channel_label = (_h = object.channel_label) != null ? _h : "";
7552
7538
  message.channel_private = (_i = object.channel_private) != null ? _i : 0;
7553
- message.channel_avatar = ((_j = object.channel_avatar) == null ? void 0 : _j.map((e) => e)) || [];
7554
- message.user_id = ((_k = object.user_id) == null ? void 0 : _k.map((e) => e)) || [];
7555
7539
  message.last_sent_message = object.last_sent_message !== void 0 && object.last_sent_message !== null ? ChannelMessageHeader.fromPartial(object.last_sent_message) : void 0;
7556
7540
  message.last_seen_message = object.last_seen_message !== void 0 && object.last_seen_message !== null ? ChannelMessageHeader.fromPartial(object.last_seen_message) : void 0;
7557
- message.is_online = ((_l = object.is_online) == null ? void 0 : _l.map((e) => e)) || [];
7558
- message.meeting_code = (_m = object.meeting_code) != null ? _m : "";
7559
- message.count_mess_unread = (_n = object.count_mess_unread) != null ? _n : 0;
7560
- message.active = (_o = object.active) != null ? _o : 0;
7561
- message.last_pin_message = (_p = object.last_pin_message) != null ? _p : "";
7562
- message.usernames = ((_q = object.usernames) == null ? void 0 : _q.map((e) => e)) || [];
7563
- message.creator_name = (_r = object.creator_name) != null ? _r : "";
7564
- message.create_time_seconds = (_s = object.create_time_seconds) != null ? _s : 0;
7565
- message.update_time_seconds = (_t = object.update_time_seconds) != null ? _t : 0;
7566
- message.metadata = ((_u = object.metadata) == null ? void 0 : _u.map((e) => e)) || [];
7567
- message.about_me = ((_v = object.about_me) == null ? void 0 : _v.map((e) => e)) || [];
7568
- message.clan_name = (_w = object.clan_name) != null ? _w : "";
7569
- message.app_id = (_x = object.app_id) != null ? _x : "";
7570
- message.is_mute = (_y = object.is_mute) != null ? _y : false;
7571
- message.age_restricted = (_z = object.age_restricted) != null ? _z : 0;
7572
- message.topic = (_A = object.topic) != null ? _A : "";
7573
- message.e2ee = (_B = object.e2ee) != null ? _B : 0;
7574
- message.display_names = ((_C = object.display_names) == null ? void 0 : _C.map((e) => e)) || [];
7541
+ message.meeting_code = (_j = object.meeting_code) != null ? _j : "";
7542
+ message.count_mess_unread = (_k = object.count_mess_unread) != null ? _k : 0;
7543
+ message.active = (_l = object.active) != null ? _l : 0;
7544
+ message.last_pin_message = (_m = object.last_pin_message) != null ? _m : "";
7545
+ message.creator_name = (_n = object.creator_name) != null ? _n : "";
7546
+ message.create_time_seconds = (_o = object.create_time_seconds) != null ? _o : 0;
7547
+ message.update_time_seconds = (_p = object.update_time_seconds) != null ? _p : 0;
7548
+ message.clan_name = (_q = object.clan_name) != null ? _q : "";
7549
+ message.app_id = (_r = object.app_id) != null ? _r : "";
7550
+ message.is_mute = (_s = object.is_mute) != null ? _s : false;
7551
+ message.age_restricted = (_t = object.age_restricted) != null ? _t : 0;
7552
+ message.channel_avatar = (_u = object.channel_avatar) != null ? _u : "";
7553
+ message.e2ee = (_v = object.e2ee) != null ? _v : 0;
7554
+ message.topic = (_w = object.topic) != null ? _w : "";
7555
+ message.user_ids = ((_x = object.user_ids) == null ? void 0 : _x.map((e) => e)) || [];
7556
+ message.usernames = ((_y = object.usernames) == null ? void 0 : _y.map((e) => e)) || [];
7557
+ message.display_names = ((_z = object.display_names) == null ? void 0 : _z.map((e) => e)) || [];
7558
+ message.onlines = ((_A = object.onlines) == null ? void 0 : _A.map((e) => e)) || [];
7559
+ message.avatars = ((_B = object.avatars) == null ? void 0 : _B.map((e) => e)) || [];
7575
7560
  return message;
7576
7561
  }
7577
7562
  };
@@ -14265,7 +14250,8 @@ function createBaseEnvelope() {
14265
14250
  quick_menu_event: void 0,
14266
14251
  un_block_friend: void 0,
14267
14252
  meet_participant_event: void 0,
14268
- transfer_ownership_event: void 0
14253
+ transfer_ownership_event: void 0,
14254
+ add_friend: void 0
14269
14255
  };
14270
14256
  }
14271
14257
  var Envelope = {
@@ -14531,6 +14517,9 @@ var Envelope = {
14531
14517
  if (message.transfer_ownership_event !== void 0) {
14532
14518
  TransferOwnershipEvent.encode(message.transfer_ownership_event, writer.uint32(698).fork()).ldelim();
14533
14519
  }
14520
+ if (message.add_friend !== void 0) {
14521
+ AddFriend.encode(message.add_friend, writer.uint32(706).fork()).ldelim();
14522
+ }
14534
14523
  return writer;
14535
14524
  },
14536
14525
  decode(input, length) {
@@ -15062,6 +15051,12 @@ var Envelope = {
15062
15051
  }
15063
15052
  message.transfer_ownership_event = TransferOwnershipEvent.decode(reader, reader.uint32());
15064
15053
  continue;
15054
+ case 88:
15055
+ if (tag !== 706) {
15056
+ break;
15057
+ }
15058
+ message.add_friend = AddFriend.decode(reader, reader.uint32());
15059
+ continue;
15065
15060
  }
15066
15061
  if ((tag & 7) === 4 || tag === 0) {
15067
15062
  break;
@@ -15158,7 +15153,8 @@ var Envelope = {
15158
15153
  quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
15159
15154
  un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0,
15160
15155
  meet_participant_event: isSet4(object.meet_participant_event) ? MeetParticipantEvent.fromJSON(object.meet_participant_event) : void 0,
15161
- transfer_ownership_event: isSet4(object.transfer_ownership_event) ? TransferOwnershipEvent.fromJSON(object.transfer_ownership_event) : void 0
15156
+ transfer_ownership_event: isSet4(object.transfer_ownership_event) ? TransferOwnershipEvent.fromJSON(object.transfer_ownership_event) : void 0,
15157
+ add_friend: isSet4(object.add_friend) ? AddFriend.fromJSON(object.add_friend) : void 0
15162
15158
  };
15163
15159
  },
15164
15160
  toJSON(message) {
@@ -15426,6 +15422,9 @@ var Envelope = {
15426
15422
  if (message.transfer_ownership_event !== void 0) {
15427
15423
  obj.transfer_ownership_event = TransferOwnershipEvent.toJSON(message.transfer_ownership_event);
15428
15424
  }
15425
+ if (message.add_friend !== void 0) {
15426
+ obj.add_friend = AddFriend.toJSON(message.add_friend);
15427
+ }
15429
15428
  return obj;
15430
15429
  },
15431
15430
  create(base) {
@@ -15521,6 +15520,7 @@ var Envelope = {
15521
15520
  message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
15522
15521
  message.meet_participant_event = object.meet_participant_event !== void 0 && object.meet_participant_event !== null ? MeetParticipantEvent.fromPartial(object.meet_participant_event) : void 0;
15523
15522
  message.transfer_ownership_event = object.transfer_ownership_event !== void 0 && object.transfer_ownership_event !== null ? TransferOwnershipEvent.fromPartial(object.transfer_ownership_event) : void 0;
15523
+ message.add_friend = object.add_friend !== void 0 && object.add_friend !== null ? AddFriend.fromPartial(object.add_friend) : void 0;
15524
15524
  return message;
15525
15525
  }
15526
15526
  };
@@ -17928,6 +17928,101 @@ var Notifications = {
17928
17928
  return message;
17929
17929
  }
17930
17930
  };
17931
+ function createBaseAddFriend() {
17932
+ return { user_id: "", username: "", display_name: "", avatar: "" };
17933
+ }
17934
+ var AddFriend = {
17935
+ encode(message, writer = import_minimal5.default.Writer.create()) {
17936
+ if (message.user_id !== "") {
17937
+ writer.uint32(10).string(message.user_id);
17938
+ }
17939
+ if (message.username !== "") {
17940
+ writer.uint32(18).string(message.username);
17941
+ }
17942
+ if (message.display_name !== "") {
17943
+ writer.uint32(26).string(message.display_name);
17944
+ }
17945
+ if (message.avatar !== "") {
17946
+ writer.uint32(34).string(message.avatar);
17947
+ }
17948
+ return writer;
17949
+ },
17950
+ decode(input, length) {
17951
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
17952
+ let end = length === void 0 ? reader.len : reader.pos + length;
17953
+ const message = createBaseAddFriend();
17954
+ while (reader.pos < end) {
17955
+ const tag = reader.uint32();
17956
+ switch (tag >>> 3) {
17957
+ case 1:
17958
+ if (tag !== 10) {
17959
+ break;
17960
+ }
17961
+ message.user_id = reader.string();
17962
+ continue;
17963
+ case 2:
17964
+ if (tag !== 18) {
17965
+ break;
17966
+ }
17967
+ message.username = reader.string();
17968
+ continue;
17969
+ case 3:
17970
+ if (tag !== 26) {
17971
+ break;
17972
+ }
17973
+ message.display_name = reader.string();
17974
+ continue;
17975
+ case 4:
17976
+ if (tag !== 34) {
17977
+ break;
17978
+ }
17979
+ message.avatar = reader.string();
17980
+ continue;
17981
+ }
17982
+ if ((tag & 7) === 4 || tag === 0) {
17983
+ break;
17984
+ }
17985
+ reader.skipType(tag & 7);
17986
+ }
17987
+ return message;
17988
+ },
17989
+ fromJSON(object) {
17990
+ return {
17991
+ user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
17992
+ username: isSet4(object.username) ? globalThis.String(object.username) : "",
17993
+ display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
17994
+ avatar: isSet4(object.avatar) ? globalThis.String(object.avatar) : ""
17995
+ };
17996
+ },
17997
+ toJSON(message) {
17998
+ const obj = {};
17999
+ if (message.user_id !== "") {
18000
+ obj.user_id = message.user_id;
18001
+ }
18002
+ if (message.username !== "") {
18003
+ obj.username = message.username;
18004
+ }
18005
+ if (message.display_name !== "") {
18006
+ obj.display_name = message.display_name;
18007
+ }
18008
+ if (message.avatar !== "") {
18009
+ obj.avatar = message.avatar;
18010
+ }
18011
+ return obj;
18012
+ },
18013
+ create(base) {
18014
+ return AddFriend.fromPartial(base != null ? base : {});
18015
+ },
18016
+ fromPartial(object) {
18017
+ var _a, _b, _c, _d;
18018
+ const message = createBaseAddFriend();
18019
+ message.user_id = (_a = object.user_id) != null ? _a : "";
18020
+ message.username = (_b = object.username) != null ? _b : "";
18021
+ message.display_name = (_c = object.display_name) != null ? _c : "";
18022
+ message.avatar = (_d = object.avatar) != null ? _d : "";
18023
+ return message;
18024
+ }
18025
+ };
17931
18026
  function createBaseRemoveFriend() {
17932
18027
  return { user_id: "" };
17933
18028
  }
@@ -22397,11 +22492,10 @@ function createBaseUserProfileRedis() {
22397
22492
  avatar: "",
22398
22493
  display_name: "",
22399
22494
  about_me: "",
22400
- custom_status: "",
22495
+ user_status: "",
22401
22496
  create_time_second: 0,
22402
22497
  fcm_tokens: [],
22403
22498
  online: false,
22404
- metadata: "",
22405
22499
  is_disabled: false,
22406
22500
  joined_clans: [],
22407
22501
  pubkey: "",
@@ -22429,8 +22523,8 @@ var UserProfileRedis = {
22429
22523
  if (message.about_me !== "") {
22430
22524
  writer.uint32(42).string(message.about_me);
22431
22525
  }
22432
- if (message.custom_status !== "") {
22433
- writer.uint32(50).string(message.custom_status);
22526
+ if (message.user_status !== "") {
22527
+ writer.uint32(50).string(message.user_status);
22434
22528
  }
22435
22529
  if (message.create_time_second !== 0) {
22436
22530
  writer.uint32(56).uint32(message.create_time_second);
@@ -22441,32 +22535,29 @@ var UserProfileRedis = {
22441
22535
  if (message.online !== false) {
22442
22536
  writer.uint32(72).bool(message.online);
22443
22537
  }
22444
- if (message.metadata !== "") {
22445
- writer.uint32(82).string(message.metadata);
22446
- }
22447
22538
  if (message.is_disabled !== false) {
22448
- writer.uint32(88).bool(message.is_disabled);
22539
+ writer.uint32(80).bool(message.is_disabled);
22449
22540
  }
22450
22541
  for (const v of message.joined_clans) {
22451
- writer.uint32(98).string(v);
22542
+ writer.uint32(90).string(v);
22452
22543
  }
22453
22544
  if (message.pubkey !== "") {
22454
- writer.uint32(106).string(message.pubkey);
22545
+ writer.uint32(98).string(message.pubkey);
22455
22546
  }
22456
22547
  if (message.mezon_id !== "") {
22457
- writer.uint32(114).string(message.mezon_id);
22548
+ writer.uint32(106).string(message.mezon_id);
22458
22549
  }
22459
22550
  if (message.app_token !== "") {
22460
- writer.uint32(122).string(message.app_token);
22551
+ writer.uint32(114).string(message.app_token);
22461
22552
  }
22462
22553
  if (message.app_url !== "") {
22463
- writer.uint32(130).string(message.app_url);
22554
+ writer.uint32(122).string(message.app_url);
22464
22555
  }
22465
22556
  if (message.is_bot !== false) {
22466
- writer.uint32(136).bool(message.is_bot);
22557
+ writer.uint32(128).bool(message.is_bot);
22467
22558
  }
22468
22559
  if (message.voip_token !== "") {
22469
- writer.uint32(146).string(message.voip_token);
22560
+ writer.uint32(138).string(message.voip_token);
22470
22561
  }
22471
22562
  return writer;
22472
22563
  },
@@ -22511,7 +22602,7 @@ var UserProfileRedis = {
22511
22602
  if (tag !== 50) {
22512
22603
  break;
22513
22604
  }
22514
- message.custom_status = reader.string();
22605
+ message.user_status = reader.string();
22515
22606
  continue;
22516
22607
  case 7:
22517
22608
  if (tag !== 56) {
@@ -22532,55 +22623,49 @@ var UserProfileRedis = {
22532
22623
  message.online = reader.bool();
22533
22624
  continue;
22534
22625
  case 10:
22535
- if (tag !== 82) {
22626
+ if (tag !== 80) {
22536
22627
  break;
22537
22628
  }
22538
- message.metadata = reader.string();
22629
+ message.is_disabled = reader.bool();
22539
22630
  continue;
22540
22631
  case 11:
22541
- if (tag !== 88) {
22632
+ if (tag !== 90) {
22542
22633
  break;
22543
22634
  }
22544
- message.is_disabled = reader.bool();
22635
+ message.joined_clans.push(reader.string());
22545
22636
  continue;
22546
22637
  case 12:
22547
22638
  if (tag !== 98) {
22548
22639
  break;
22549
22640
  }
22550
- message.joined_clans.push(reader.string());
22641
+ message.pubkey = reader.string();
22551
22642
  continue;
22552
22643
  case 13:
22553
22644
  if (tag !== 106) {
22554
22645
  break;
22555
22646
  }
22556
- message.pubkey = reader.string();
22647
+ message.mezon_id = reader.string();
22557
22648
  continue;
22558
22649
  case 14:
22559
22650
  if (tag !== 114) {
22560
22651
  break;
22561
22652
  }
22562
- message.mezon_id = reader.string();
22653
+ message.app_token = reader.string();
22563
22654
  continue;
22564
22655
  case 15:
22565
22656
  if (tag !== 122) {
22566
22657
  break;
22567
22658
  }
22568
- message.app_token = reader.string();
22569
- continue;
22570
- case 16:
22571
- if (tag !== 130) {
22572
- break;
22573
- }
22574
22659
  message.app_url = reader.string();
22575
22660
  continue;
22576
- case 17:
22577
- if (tag !== 136) {
22661
+ case 16:
22662
+ if (tag !== 128) {
22578
22663
  break;
22579
22664
  }
22580
22665
  message.is_bot = reader.bool();
22581
22666
  continue;
22582
- case 18:
22583
- if (tag !== 146) {
22667
+ case 17:
22668
+ if (tag !== 138) {
22584
22669
  break;
22585
22670
  }
22586
22671
  message.voip_token = reader.string();
@@ -22600,11 +22685,10 @@ var UserProfileRedis = {
22600
22685
  avatar: isSet4(object.avatar) ? globalThis.String(object.avatar) : "",
22601
22686
  display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
22602
22687
  about_me: isSet4(object.about_me) ? globalThis.String(object.about_me) : "",
22603
- custom_status: isSet4(object.custom_status) ? globalThis.String(object.custom_status) : "",
22688
+ user_status: isSet4(object.user_status) ? globalThis.String(object.user_status) : "",
22604
22689
  create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
22605
22690
  fcm_tokens: globalThis.Array.isArray(object == null ? void 0 : object.fcm_tokens) ? object.fcm_tokens.map((e) => FCMTokens.fromJSON(e)) : [],
22606
22691
  online: isSet4(object.online) ? globalThis.Boolean(object.online) : false,
22607
- metadata: isSet4(object.metadata) ? globalThis.String(object.metadata) : "",
22608
22692
  is_disabled: isSet4(object.is_disabled) ? globalThis.Boolean(object.is_disabled) : false,
22609
22693
  joined_clans: globalThis.Array.isArray(object == null ? void 0 : object.joined_clans) ? object.joined_clans.map((e) => globalThis.String(e)) : [],
22610
22694
  pubkey: isSet4(object.pubkey) ? globalThis.String(object.pubkey) : "",
@@ -22633,8 +22717,8 @@ var UserProfileRedis = {
22633
22717
  if (message.about_me !== "") {
22634
22718
  obj.about_me = message.about_me;
22635
22719
  }
22636
- if (message.custom_status !== "") {
22637
- obj.custom_status = message.custom_status;
22720
+ if (message.user_status !== "") {
22721
+ obj.user_status = message.user_status;
22638
22722
  }
22639
22723
  if (message.create_time_second !== 0) {
22640
22724
  obj.create_time_second = Math.round(message.create_time_second);
@@ -22645,9 +22729,6 @@ var UserProfileRedis = {
22645
22729
  if (message.online !== false) {
22646
22730
  obj.online = message.online;
22647
22731
  }
22648
- if (message.metadata !== "") {
22649
- obj.metadata = message.metadata;
22650
- }
22651
22732
  if (message.is_disabled !== false) {
22652
22733
  obj.is_disabled = message.is_disabled;
22653
22734
  }
@@ -22678,26 +22759,25 @@ var UserProfileRedis = {
22678
22759
  return UserProfileRedis.fromPartial(base != null ? base : {});
22679
22760
  },
22680
22761
  fromPartial(object) {
22681
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
22762
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
22682
22763
  const message = createBaseUserProfileRedis();
22683
22764
  message.user_id = (_a = object.user_id) != null ? _a : "";
22684
22765
  message.username = (_b = object.username) != null ? _b : "";
22685
22766
  message.avatar = (_c = object.avatar) != null ? _c : "";
22686
22767
  message.display_name = (_d = object.display_name) != null ? _d : "";
22687
22768
  message.about_me = (_e = object.about_me) != null ? _e : "";
22688
- message.custom_status = (_f = object.custom_status) != null ? _f : "";
22769
+ message.user_status = (_f = object.user_status) != null ? _f : "";
22689
22770
  message.create_time_second = (_g = object.create_time_second) != null ? _g : 0;
22690
22771
  message.fcm_tokens = ((_h = object.fcm_tokens) == null ? void 0 : _h.map((e) => FCMTokens.fromPartial(e))) || [];
22691
22772
  message.online = (_i = object.online) != null ? _i : false;
22692
- message.metadata = (_j = object.metadata) != null ? _j : "";
22693
- message.is_disabled = (_k = object.is_disabled) != null ? _k : false;
22694
- message.joined_clans = ((_l = object.joined_clans) == null ? void 0 : _l.map((e) => e)) || [];
22695
- message.pubkey = (_m = object.pubkey) != null ? _m : "";
22696
- message.mezon_id = (_n = object.mezon_id) != null ? _n : "";
22697
- message.app_token = (_o = object.app_token) != null ? _o : "";
22698
- message.app_url = (_p = object.app_url) != null ? _p : "";
22699
- message.is_bot = (_q = object.is_bot) != null ? _q : false;
22700
- message.voip_token = (_r = object.voip_token) != null ? _r : "";
22773
+ message.is_disabled = (_j = object.is_disabled) != null ? _j : false;
22774
+ message.joined_clans = ((_k = object.joined_clans) == null ? void 0 : _k.map((e) => e)) || [];
22775
+ message.pubkey = (_l = object.pubkey) != null ? _l : "";
22776
+ message.mezon_id = (_m = object.mezon_id) != null ? _m : "";
22777
+ message.app_token = (_n = object.app_token) != null ? _n : "";
22778
+ message.app_url = (_o = object.app_url) != null ? _o : "";
22779
+ message.is_bot = (_p = object.is_bot) != null ? _p : false;
22780
+ message.voip_token = (_q = object.voip_token) != null ? _q : "";
22701
22781
  return message;
22702
22782
  }
22703
22783
  };