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.
@@ -5987,7 +5987,7 @@ function createBaseUser() {
5987
5987
  lang_tag: "",
5988
5988
  location: "",
5989
5989
  timezone: "",
5990
- metadata: "",
5990
+ user_status: "",
5991
5991
  online: false,
5992
5992
  phone_number: "",
5993
5993
  edge_count: 0,
@@ -6024,8 +6024,8 @@ var User = {
6024
6024
  if (message.timezone !== "") {
6025
6025
  writer.uint32(58).string(message.timezone);
6026
6026
  }
6027
- if (message.metadata !== "") {
6028
- writer.uint32(66).string(message.metadata);
6027
+ if (message.user_status !== "") {
6028
+ writer.uint32(66).string(message.user_status);
6029
6029
  }
6030
6030
  if (message.online !== false) {
6031
6031
  writer.uint32(72).bool(message.online);
@@ -6115,7 +6115,7 @@ var User = {
6115
6115
  if (tag !== 66) {
6116
6116
  break;
6117
6117
  }
6118
- message.metadata = reader.string();
6118
+ message.user_status = reader.string();
6119
6119
  continue;
6120
6120
  case 9:
6121
6121
  if (tag !== 72) {
@@ -6200,7 +6200,7 @@ var User = {
6200
6200
  lang_tag: isSet3(object.lang_tag) ? globalThis.String(object.lang_tag) : "",
6201
6201
  location: isSet3(object.location) ? globalThis.String(object.location) : "",
6202
6202
  timezone: isSet3(object.timezone) ? globalThis.String(object.timezone) : "",
6203
- metadata: isSet3(object.metadata) ? globalThis.String(object.metadata) : "",
6203
+ user_status: isSet3(object.user_status) ? globalThis.String(object.user_status) : "",
6204
6204
  online: isSet3(object.online) ? globalThis.Boolean(object.online) : false,
6205
6205
  phone_number: isSet3(object.phone_number) ? globalThis.String(object.phone_number) : "",
6206
6206
  edge_count: isSet3(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
@@ -6238,8 +6238,8 @@ var User = {
6238
6238
  if (message.timezone !== "") {
6239
6239
  obj.timezone = message.timezone;
6240
6240
  }
6241
- if (message.metadata !== "") {
6242
- obj.metadata = message.metadata;
6241
+ if (message.user_status !== "") {
6242
+ obj.user_status = message.user_status;
6243
6243
  }
6244
6244
  if (message.online !== false) {
6245
6245
  obj.online = message.online;
@@ -6289,7 +6289,7 @@ var User = {
6289
6289
  message.lang_tag = (_e = object.lang_tag) != null ? _e : "";
6290
6290
  message.location = (_f = object.location) != null ? _f : "";
6291
6291
  message.timezone = (_g = object.timezone) != null ? _g : "";
6292
- message.metadata = (_h = object.metadata) != null ? _h : "";
6292
+ message.user_status = (_h = object.user_status) != null ? _h : "";
6293
6293
  message.online = (_i = object.online) != null ? _i : false;
6294
6294
  message.phone_number = (_j = object.phone_number) != null ? _j : "";
6295
6295
  message.edge_count = (_k = object.edge_count) != null ? _k : 0;
@@ -7084,28 +7084,27 @@ function createBaseChannelDescription() {
7084
7084
  creator_id: "",
7085
7085
  channel_label: "",
7086
7086
  channel_private: 0,
7087
- channel_avatar: [],
7088
- user_id: [],
7089
7087
  last_sent_message: void 0,
7090
7088
  last_seen_message: void 0,
7091
- is_online: [],
7092
7089
  meeting_code: "",
7093
7090
  count_mess_unread: 0,
7094
7091
  active: 0,
7095
7092
  last_pin_message: "",
7096
- usernames: [],
7097
7093
  creator_name: "",
7098
7094
  create_time_seconds: 0,
7099
7095
  update_time_seconds: 0,
7100
- metadata: [],
7101
- about_me: [],
7102
7096
  clan_name: "",
7103
7097
  app_id: "",
7104
7098
  is_mute: false,
7105
7099
  age_restricted: 0,
7106
- topic: "",
7100
+ channel_avatar: "",
7107
7101
  e2ee: 0,
7108
- display_names: []
7102
+ topic: "",
7103
+ user_ids: [],
7104
+ usernames: [],
7105
+ display_names: [],
7106
+ onlines: [],
7107
+ avatars: []
7109
7108
  };
7110
7109
  }
7111
7110
  var ChannelDescription = {
@@ -7137,73 +7136,70 @@ var ChannelDescription = {
7137
7136
  if (message.channel_private !== 0) {
7138
7137
  writer.uint32(72).int32(message.channel_private);
7139
7138
  }
7140
- for (const v of message.channel_avatar) {
7141
- writer.uint32(82).string(v);
7142
- }
7143
- for (const v of message.user_id) {
7144
- writer.uint32(90).string(v);
7145
- }
7146
7139
  if (message.last_sent_message !== void 0) {
7147
- ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(98).fork()).ldelim();
7140
+ ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(82).fork()).ldelim();
7148
7141
  }
7149
7142
  if (message.last_seen_message !== void 0) {
7150
- ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(106).fork()).ldelim();
7151
- }
7152
- writer.uint32(114).fork();
7153
- for (const v of message.is_online) {
7154
- writer.bool(v);
7143
+ ChannelMessageHeader.encode(message.last_seen_message, writer.uint32(90).fork()).ldelim();
7155
7144
  }
7156
- writer.ldelim();
7157
7145
  if (message.meeting_code !== "") {
7158
- writer.uint32(122).string(message.meeting_code);
7146
+ writer.uint32(98).string(message.meeting_code);
7159
7147
  }
7160
7148
  if (message.count_mess_unread !== 0) {
7161
- writer.uint32(128).int32(message.count_mess_unread);
7149
+ writer.uint32(104).int32(message.count_mess_unread);
7162
7150
  }
7163
7151
  if (message.active !== 0) {
7164
- writer.uint32(136).int32(message.active);
7152
+ writer.uint32(112).int32(message.active);
7165
7153
  }
7166
7154
  if (message.last_pin_message !== "") {
7167
- writer.uint32(146).string(message.last_pin_message);
7168
- }
7169
- for (const v of message.usernames) {
7170
- writer.uint32(154).string(v);
7155
+ writer.uint32(122).string(message.last_pin_message);
7171
7156
  }
7172
7157
  if (message.creator_name !== "") {
7173
- writer.uint32(162).string(message.creator_name);
7158
+ writer.uint32(130).string(message.creator_name);
7174
7159
  }
7175
7160
  if (message.create_time_seconds !== 0) {
7176
- writer.uint32(168).uint32(message.create_time_seconds);
7161
+ writer.uint32(136).uint32(message.create_time_seconds);
7177
7162
  }
7178
7163
  if (message.update_time_seconds !== 0) {
7179
- writer.uint32(176).uint32(message.update_time_seconds);
7180
- }
7181
- for (const v of message.metadata) {
7182
- writer.uint32(186).string(v);
7183
- }
7184
- for (const v of message.about_me) {
7185
- writer.uint32(194).string(v);
7164
+ writer.uint32(144).uint32(message.update_time_seconds);
7186
7165
  }
7187
7166
  if (message.clan_name !== "") {
7188
- writer.uint32(202).string(message.clan_name);
7167
+ writer.uint32(154).string(message.clan_name);
7189
7168
  }
7190
7169
  if (message.app_id !== "") {
7191
- writer.uint32(210).string(message.app_id);
7170
+ writer.uint32(162).string(message.app_id);
7192
7171
  }
7193
7172
  if (message.is_mute !== false) {
7194
- writer.uint32(216).bool(message.is_mute);
7173
+ writer.uint32(168).bool(message.is_mute);
7195
7174
  }
7196
7175
  if (message.age_restricted !== 0) {
7197
- writer.uint32(224).int32(message.age_restricted);
7176
+ writer.uint32(176).int32(message.age_restricted);
7198
7177
  }
7199
- if (message.topic !== "") {
7200
- writer.uint32(234).string(message.topic);
7178
+ if (message.channel_avatar !== "") {
7179
+ writer.uint32(186).string(message.channel_avatar);
7201
7180
  }
7202
7181
  if (message.e2ee !== 0) {
7203
- writer.uint32(240).int32(message.e2ee);
7182
+ writer.uint32(192).int32(message.e2ee);
7183
+ }
7184
+ if (message.topic !== "") {
7185
+ writer.uint32(202).string(message.topic);
7186
+ }
7187
+ for (const v of message.user_ids) {
7188
+ writer.uint32(210).string(v);
7189
+ }
7190
+ for (const v of message.usernames) {
7191
+ writer.uint32(218).string(v);
7204
7192
  }
7205
7193
  for (const v of message.display_names) {
7206
- writer.uint32(250).string(v);
7194
+ writer.uint32(226).string(v);
7195
+ }
7196
+ writer.uint32(234).fork();
7197
+ for (const v of message.onlines) {
7198
+ writer.bool(v);
7199
+ }
7200
+ writer.ldelim();
7201
+ for (const v of message.avatars) {
7202
+ writer.uint32(242).string(v);
7207
7203
  }
7208
7204
  return writer;
7209
7205
  },
@@ -7272,140 +7268,134 @@ var ChannelDescription = {
7272
7268
  if (tag !== 82) {
7273
7269
  break;
7274
7270
  }
7275
- message.channel_avatar.push(reader.string());
7271
+ message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
7276
7272
  continue;
7277
7273
  case 11:
7278
7274
  if (tag !== 90) {
7279
7275
  break;
7280
7276
  }
7281
- message.user_id.push(reader.string());
7277
+ message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
7282
7278
  continue;
7283
7279
  case 12:
7284
7280
  if (tag !== 98) {
7285
7281
  break;
7286
7282
  }
7287
- message.last_sent_message = ChannelMessageHeader.decode(reader, reader.uint32());
7283
+ message.meeting_code = reader.string();
7288
7284
  continue;
7289
7285
  case 13:
7290
- if (tag !== 106) {
7286
+ if (tag !== 104) {
7291
7287
  break;
7292
7288
  }
7293
- message.last_seen_message = ChannelMessageHeader.decode(reader, reader.uint32());
7289
+ message.count_mess_unread = reader.int32();
7294
7290
  continue;
7295
7291
  case 14:
7296
- if (tag === 112) {
7297
- message.is_online.push(reader.bool());
7298
- continue;
7299
- }
7300
- if (tag === 114) {
7301
- const end2 = reader.uint32() + reader.pos;
7302
- while (reader.pos < end2) {
7303
- message.is_online.push(reader.bool());
7304
- }
7305
- continue;
7292
+ if (tag !== 112) {
7293
+ break;
7306
7294
  }
7307
- break;
7295
+ message.active = reader.int32();
7296
+ continue;
7308
7297
  case 15:
7309
7298
  if (tag !== 122) {
7310
7299
  break;
7311
7300
  }
7312
- message.meeting_code = reader.string();
7301
+ message.last_pin_message = reader.string();
7313
7302
  continue;
7314
7303
  case 16:
7315
- if (tag !== 128) {
7304
+ if (tag !== 130) {
7316
7305
  break;
7317
7306
  }
7318
- message.count_mess_unread = reader.int32();
7307
+ message.creator_name = reader.string();
7319
7308
  continue;
7320
7309
  case 17:
7321
7310
  if (tag !== 136) {
7322
7311
  break;
7323
7312
  }
7324
- message.active = reader.int32();
7313
+ message.create_time_seconds = reader.uint32();
7325
7314
  continue;
7326
7315
  case 18:
7327
- if (tag !== 146) {
7316
+ if (tag !== 144) {
7328
7317
  break;
7329
7318
  }
7330
- message.last_pin_message = reader.string();
7319
+ message.update_time_seconds = reader.uint32();
7331
7320
  continue;
7332
7321
  case 19:
7333
7322
  if (tag !== 154) {
7334
7323
  break;
7335
7324
  }
7336
- message.usernames.push(reader.string());
7325
+ message.clan_name = reader.string();
7337
7326
  continue;
7338
7327
  case 20:
7339
7328
  if (tag !== 162) {
7340
7329
  break;
7341
7330
  }
7342
- message.creator_name = reader.string();
7331
+ message.app_id = reader.string();
7343
7332
  continue;
7344
7333
  case 21:
7345
7334
  if (tag !== 168) {
7346
7335
  break;
7347
7336
  }
7348
- message.create_time_seconds = reader.uint32();
7337
+ message.is_mute = reader.bool();
7349
7338
  continue;
7350
7339
  case 22:
7351
7340
  if (tag !== 176) {
7352
7341
  break;
7353
7342
  }
7354
- message.update_time_seconds = reader.uint32();
7343
+ message.age_restricted = reader.int32();
7355
7344
  continue;
7356
7345
  case 23:
7357
7346
  if (tag !== 186) {
7358
7347
  break;
7359
7348
  }
7360
- message.metadata.push(reader.string());
7349
+ message.channel_avatar = reader.string();
7361
7350
  continue;
7362
7351
  case 24:
7363
- if (tag !== 194) {
7352
+ if (tag !== 192) {
7364
7353
  break;
7365
7354
  }
7366
- message.about_me.push(reader.string());
7355
+ message.e2ee = reader.int32();
7367
7356
  continue;
7368
7357
  case 25:
7369
7358
  if (tag !== 202) {
7370
7359
  break;
7371
7360
  }
7372
- message.clan_name = reader.string();
7361
+ message.topic = reader.string();
7373
7362
  continue;
7374
7363
  case 26:
7375
7364
  if (tag !== 210) {
7376
7365
  break;
7377
7366
  }
7378
- message.app_id = reader.string();
7367
+ message.user_ids.push(reader.string());
7379
7368
  continue;
7380
7369
  case 27:
7381
- if (tag !== 216) {
7370
+ if (tag !== 218) {
7382
7371
  break;
7383
7372
  }
7384
- message.is_mute = reader.bool();
7373
+ message.usernames.push(reader.string());
7385
7374
  continue;
7386
7375
  case 28:
7387
- if (tag !== 224) {
7376
+ if (tag !== 226) {
7388
7377
  break;
7389
7378
  }
7390
- message.age_restricted = reader.int32();
7379
+ message.display_names.push(reader.string());
7391
7380
  continue;
7392
7381
  case 29:
7393
- if (tag !== 234) {
7394
- break;
7382
+ if (tag === 232) {
7383
+ message.onlines.push(reader.bool());
7384
+ continue;
7395
7385
  }
7396
- message.topic = reader.string();
7397
- continue;
7398
- case 30:
7399
- if (tag !== 240) {
7400
- break;
7386
+ if (tag === 234) {
7387
+ const end2 = reader.uint32() + reader.pos;
7388
+ while (reader.pos < end2) {
7389
+ message.onlines.push(reader.bool());
7390
+ }
7391
+ continue;
7401
7392
  }
7402
- message.e2ee = reader.int32();
7403
- continue;
7404
- case 31:
7405
- if (tag !== 250) {
7393
+ break;
7394
+ case 30:
7395
+ if (tag !== 242) {
7406
7396
  break;
7407
7397
  }
7408
- message.display_names.push(reader.string());
7398
+ message.avatars.push(reader.string());
7409
7399
  continue;
7410
7400
  }
7411
7401
  if ((tag & 7) === 4 || tag === 0) {
@@ -7426,32 +7416,31 @@ var ChannelDescription = {
7426
7416
  creator_id: isSet3(object.creator_id) ? globalThis.String(object.creator_id) : "",
7427
7417
  channel_label: isSet3(object.channel_label) ? globalThis.String(object.channel_label) : "",
7428
7418
  channel_private: isSet3(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
7429
- channel_avatar: globalThis.Array.isArray(object == null ? void 0 : object.channel_avatar) ? object.channel_avatar.map((e) => globalThis.String(e)) : [],
7430
- user_id: globalThis.Array.isArray(object == null ? void 0 : object.user_id) ? object.user_id.map((e) => globalThis.String(e)) : [],
7431
7419
  last_sent_message: isSet3(object.last_sent_message) ? ChannelMessageHeader.fromJSON(object.last_sent_message) : void 0,
7432
7420
  last_seen_message: isSet3(object.last_seen_message) ? ChannelMessageHeader.fromJSON(object.last_seen_message) : void 0,
7433
- is_online: globalThis.Array.isArray(object == null ? void 0 : object.is_online) ? object.is_online.map((e) => globalThis.Boolean(e)) : [],
7434
7421
  meeting_code: isSet3(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
7435
7422
  count_mess_unread: isSet3(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
7436
7423
  active: isSet3(object.active) ? globalThis.Number(object.active) : 0,
7437
7424
  last_pin_message: isSet3(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
7438
- usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
7439
7425
  creator_name: isSet3(object.creator_name) ? globalThis.String(object.creator_name) : "",
7440
7426
  create_time_seconds: isSet3(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
7441
7427
  update_time_seconds: isSet3(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
7442
- metadata: globalThis.Array.isArray(object == null ? void 0 : object.metadata) ? object.metadata.map((e) => globalThis.String(e)) : [],
7443
- about_me: globalThis.Array.isArray(object == null ? void 0 : object.about_me) ? object.about_me.map((e) => globalThis.String(e)) : [],
7444
7428
  clan_name: isSet3(object.clan_name) ? globalThis.String(object.clan_name) : "",
7445
7429
  app_id: isSet3(object.app_id) ? globalThis.String(object.app_id) : "",
7446
7430
  is_mute: isSet3(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
7447
7431
  age_restricted: isSet3(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
7448
- topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
7432
+ channel_avatar: isSet3(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
7449
7433
  e2ee: isSet3(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
7450
- display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : []
7434
+ topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
7435
+ user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
7436
+ usernames: globalThis.Array.isArray(object == null ? void 0 : object.usernames) ? object.usernames.map((e) => globalThis.String(e)) : [],
7437
+ display_names: globalThis.Array.isArray(object == null ? void 0 : object.display_names) ? object.display_names.map((e) => globalThis.String(e)) : [],
7438
+ onlines: globalThis.Array.isArray(object == null ? void 0 : object.onlines) ? object.onlines.map((e) => globalThis.Boolean(e)) : [],
7439
+ avatars: globalThis.Array.isArray(object == null ? void 0 : object.avatars) ? object.avatars.map((e) => globalThis.String(e)) : []
7451
7440
  };
7452
7441
  },
7453
7442
  toJSON(message) {
7454
- var _a, _b, _c, _d, _e, _f, _g;
7443
+ var _a, _b, _c, _d, _e;
7455
7444
  const obj = {};
7456
7445
  if (message.clan_id !== "") {
7457
7446
  obj.clan_id = message.clan_id;
@@ -7480,21 +7469,12 @@ var ChannelDescription = {
7480
7469
  if (message.channel_private !== 0) {
7481
7470
  obj.channel_private = Math.round(message.channel_private);
7482
7471
  }
7483
- if ((_a = message.channel_avatar) == null ? void 0 : _a.length) {
7484
- obj.channel_avatar = message.channel_avatar;
7485
- }
7486
- if ((_b = message.user_id) == null ? void 0 : _b.length) {
7487
- obj.user_id = message.user_id;
7488
- }
7489
7472
  if (message.last_sent_message !== void 0) {
7490
7473
  obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
7491
7474
  }
7492
7475
  if (message.last_seen_message !== void 0) {
7493
7476
  obj.last_seen_message = ChannelMessageHeader.toJSON(message.last_seen_message);
7494
7477
  }
7495
- if ((_c = message.is_online) == null ? void 0 : _c.length) {
7496
- obj.is_online = message.is_online;
7497
- }
7498
7478
  if (message.meeting_code !== "") {
7499
7479
  obj.meeting_code = message.meeting_code;
7500
7480
  }
@@ -7507,9 +7487,6 @@ var ChannelDescription = {
7507
7487
  if (message.last_pin_message !== "") {
7508
7488
  obj.last_pin_message = message.last_pin_message;
7509
7489
  }
7510
- if ((_d = message.usernames) == null ? void 0 : _d.length) {
7511
- obj.usernames = message.usernames;
7512
- }
7513
7490
  if (message.creator_name !== "") {
7514
7491
  obj.creator_name = message.creator_name;
7515
7492
  }
@@ -7519,12 +7496,6 @@ var ChannelDescription = {
7519
7496
  if (message.update_time_seconds !== 0) {
7520
7497
  obj.update_time_seconds = Math.round(message.update_time_seconds);
7521
7498
  }
7522
- if ((_e = message.metadata) == null ? void 0 : _e.length) {
7523
- obj.metadata = message.metadata;
7524
- }
7525
- if ((_f = message.about_me) == null ? void 0 : _f.length) {
7526
- obj.about_me = message.about_me;
7527
- }
7528
7499
  if (message.clan_name !== "") {
7529
7500
  obj.clan_name = message.clan_name;
7530
7501
  }
@@ -7537,22 +7508,37 @@ var ChannelDescription = {
7537
7508
  if (message.age_restricted !== 0) {
7538
7509
  obj.age_restricted = Math.round(message.age_restricted);
7539
7510
  }
7540
- if (message.topic !== "") {
7541
- obj.topic = message.topic;
7511
+ if (message.channel_avatar !== "") {
7512
+ obj.channel_avatar = message.channel_avatar;
7542
7513
  }
7543
7514
  if (message.e2ee !== 0) {
7544
7515
  obj.e2ee = Math.round(message.e2ee);
7545
7516
  }
7546
- if ((_g = message.display_names) == null ? void 0 : _g.length) {
7517
+ if (message.topic !== "") {
7518
+ obj.topic = message.topic;
7519
+ }
7520
+ if ((_a = message.user_ids) == null ? void 0 : _a.length) {
7521
+ obj.user_ids = message.user_ids;
7522
+ }
7523
+ if ((_b = message.usernames) == null ? void 0 : _b.length) {
7524
+ obj.usernames = message.usernames;
7525
+ }
7526
+ if ((_c = message.display_names) == null ? void 0 : _c.length) {
7547
7527
  obj.display_names = message.display_names;
7548
7528
  }
7529
+ if ((_d = message.onlines) == null ? void 0 : _d.length) {
7530
+ obj.onlines = message.onlines;
7531
+ }
7532
+ if ((_e = message.avatars) == null ? void 0 : _e.length) {
7533
+ obj.avatars = message.avatars;
7534
+ }
7549
7535
  return obj;
7550
7536
  },
7551
7537
  create(base) {
7552
7538
  return ChannelDescription.fromPartial(base != null ? base : {});
7553
7539
  },
7554
7540
  fromPartial(object) {
7555
- 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;
7541
+ 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;
7556
7542
  const message = createBaseChannelDescription();
7557
7543
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
7558
7544
  message.parent_id = (_b = object.parent_id) != null ? _b : "";
@@ -7563,28 +7549,27 @@ var ChannelDescription = {
7563
7549
  message.creator_id = (_g = object.creator_id) != null ? _g : "";
7564
7550
  message.channel_label = (_h = object.channel_label) != null ? _h : "";
7565
7551
  message.channel_private = (_i = object.channel_private) != null ? _i : 0;
7566
- message.channel_avatar = ((_j = object.channel_avatar) == null ? void 0 : _j.map((e) => e)) || [];
7567
- message.user_id = ((_k = object.user_id) == null ? void 0 : _k.map((e) => e)) || [];
7568
7552
  message.last_sent_message = object.last_sent_message !== void 0 && object.last_sent_message !== null ? ChannelMessageHeader.fromPartial(object.last_sent_message) : void 0;
7569
7553
  message.last_seen_message = object.last_seen_message !== void 0 && object.last_seen_message !== null ? ChannelMessageHeader.fromPartial(object.last_seen_message) : void 0;
7570
- message.is_online = ((_l = object.is_online) == null ? void 0 : _l.map((e) => e)) || [];
7571
- message.meeting_code = (_m = object.meeting_code) != null ? _m : "";
7572
- message.count_mess_unread = (_n = object.count_mess_unread) != null ? _n : 0;
7573
- message.active = (_o = object.active) != null ? _o : 0;
7574
- message.last_pin_message = (_p = object.last_pin_message) != null ? _p : "";
7575
- message.usernames = ((_q = object.usernames) == null ? void 0 : _q.map((e) => e)) || [];
7576
- message.creator_name = (_r = object.creator_name) != null ? _r : "";
7577
- message.create_time_seconds = (_s = object.create_time_seconds) != null ? _s : 0;
7578
- message.update_time_seconds = (_t = object.update_time_seconds) != null ? _t : 0;
7579
- message.metadata = ((_u = object.metadata) == null ? void 0 : _u.map((e) => e)) || [];
7580
- message.about_me = ((_v = object.about_me) == null ? void 0 : _v.map((e) => e)) || [];
7581
- message.clan_name = (_w = object.clan_name) != null ? _w : "";
7582
- message.app_id = (_x = object.app_id) != null ? _x : "";
7583
- message.is_mute = (_y = object.is_mute) != null ? _y : false;
7584
- message.age_restricted = (_z = object.age_restricted) != null ? _z : 0;
7585
- message.topic = (_A = object.topic) != null ? _A : "";
7586
- message.e2ee = (_B = object.e2ee) != null ? _B : 0;
7587
- message.display_names = ((_C = object.display_names) == null ? void 0 : _C.map((e) => e)) || [];
7554
+ message.meeting_code = (_j = object.meeting_code) != null ? _j : "";
7555
+ message.count_mess_unread = (_k = object.count_mess_unread) != null ? _k : 0;
7556
+ message.active = (_l = object.active) != null ? _l : 0;
7557
+ message.last_pin_message = (_m = object.last_pin_message) != null ? _m : "";
7558
+ message.creator_name = (_n = object.creator_name) != null ? _n : "";
7559
+ message.create_time_seconds = (_o = object.create_time_seconds) != null ? _o : 0;
7560
+ message.update_time_seconds = (_p = object.update_time_seconds) != null ? _p : 0;
7561
+ message.clan_name = (_q = object.clan_name) != null ? _q : "";
7562
+ message.app_id = (_r = object.app_id) != null ? _r : "";
7563
+ message.is_mute = (_s = object.is_mute) != null ? _s : false;
7564
+ message.age_restricted = (_t = object.age_restricted) != null ? _t : 0;
7565
+ message.channel_avatar = (_u = object.channel_avatar) != null ? _u : "";
7566
+ message.e2ee = (_v = object.e2ee) != null ? _v : 0;
7567
+ message.topic = (_w = object.topic) != null ? _w : "";
7568
+ message.user_ids = ((_x = object.user_ids) == null ? void 0 : _x.map((e) => e)) || [];
7569
+ message.usernames = ((_y = object.usernames) == null ? void 0 : _y.map((e) => e)) || [];
7570
+ message.display_names = ((_z = object.display_names) == null ? void 0 : _z.map((e) => e)) || [];
7571
+ message.onlines = ((_A = object.onlines) == null ? void 0 : _A.map((e) => e)) || [];
7572
+ message.avatars = ((_B = object.avatars) == null ? void 0 : _B.map((e) => e)) || [];
7588
7573
  return message;
7589
7574
  }
7590
7575
  };
@@ -14278,7 +14263,8 @@ function createBaseEnvelope() {
14278
14263
  quick_menu_event: void 0,
14279
14264
  un_block_friend: void 0,
14280
14265
  meet_participant_event: void 0,
14281
- transfer_ownership_event: void 0
14266
+ transfer_ownership_event: void 0,
14267
+ add_friend: void 0
14282
14268
  };
14283
14269
  }
14284
14270
  var Envelope = {
@@ -14544,6 +14530,9 @@ var Envelope = {
14544
14530
  if (message.transfer_ownership_event !== void 0) {
14545
14531
  TransferOwnershipEvent.encode(message.transfer_ownership_event, writer.uint32(698).fork()).ldelim();
14546
14532
  }
14533
+ if (message.add_friend !== void 0) {
14534
+ AddFriend.encode(message.add_friend, writer.uint32(706).fork()).ldelim();
14535
+ }
14547
14536
  return writer;
14548
14537
  },
14549
14538
  decode(input, length) {
@@ -15075,6 +15064,12 @@ var Envelope = {
15075
15064
  }
15076
15065
  message.transfer_ownership_event = TransferOwnershipEvent.decode(reader, reader.uint32());
15077
15066
  continue;
15067
+ case 88:
15068
+ if (tag !== 706) {
15069
+ break;
15070
+ }
15071
+ message.add_friend = AddFriend.decode(reader, reader.uint32());
15072
+ continue;
15078
15073
  }
15079
15074
  if ((tag & 7) === 4 || tag === 0) {
15080
15075
  break;
@@ -15171,7 +15166,8 @@ var Envelope = {
15171
15166
  quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
15172
15167
  un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0,
15173
15168
  meet_participant_event: isSet4(object.meet_participant_event) ? MeetParticipantEvent.fromJSON(object.meet_participant_event) : void 0,
15174
- transfer_ownership_event: isSet4(object.transfer_ownership_event) ? TransferOwnershipEvent.fromJSON(object.transfer_ownership_event) : void 0
15169
+ transfer_ownership_event: isSet4(object.transfer_ownership_event) ? TransferOwnershipEvent.fromJSON(object.transfer_ownership_event) : void 0,
15170
+ add_friend: isSet4(object.add_friend) ? AddFriend.fromJSON(object.add_friend) : void 0
15175
15171
  };
15176
15172
  },
15177
15173
  toJSON(message) {
@@ -15439,6 +15435,9 @@ var Envelope = {
15439
15435
  if (message.transfer_ownership_event !== void 0) {
15440
15436
  obj.transfer_ownership_event = TransferOwnershipEvent.toJSON(message.transfer_ownership_event);
15441
15437
  }
15438
+ if (message.add_friend !== void 0) {
15439
+ obj.add_friend = AddFriend.toJSON(message.add_friend);
15440
+ }
15442
15441
  return obj;
15443
15442
  },
15444
15443
  create(base) {
@@ -15534,6 +15533,7 @@ var Envelope = {
15534
15533
  message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
15535
15534
  message.meet_participant_event = object.meet_participant_event !== void 0 && object.meet_participant_event !== null ? MeetParticipantEvent.fromPartial(object.meet_participant_event) : void 0;
15536
15535
  message.transfer_ownership_event = object.transfer_ownership_event !== void 0 && object.transfer_ownership_event !== null ? TransferOwnershipEvent.fromPartial(object.transfer_ownership_event) : void 0;
15536
+ message.add_friend = object.add_friend !== void 0 && object.add_friend !== null ? AddFriend.fromPartial(object.add_friend) : void 0;
15537
15537
  return message;
15538
15538
  }
15539
15539
  };
@@ -17941,6 +17941,101 @@ var Notifications = {
17941
17941
  return message;
17942
17942
  }
17943
17943
  };
17944
+ function createBaseAddFriend() {
17945
+ return { user_id: "", username: "", display_name: "", avatar: "" };
17946
+ }
17947
+ var AddFriend = {
17948
+ encode(message, writer = import_minimal5.default.Writer.create()) {
17949
+ if (message.user_id !== "") {
17950
+ writer.uint32(10).string(message.user_id);
17951
+ }
17952
+ if (message.username !== "") {
17953
+ writer.uint32(18).string(message.username);
17954
+ }
17955
+ if (message.display_name !== "") {
17956
+ writer.uint32(26).string(message.display_name);
17957
+ }
17958
+ if (message.avatar !== "") {
17959
+ writer.uint32(34).string(message.avatar);
17960
+ }
17961
+ return writer;
17962
+ },
17963
+ decode(input, length) {
17964
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
17965
+ let end = length === void 0 ? reader.len : reader.pos + length;
17966
+ const message = createBaseAddFriend();
17967
+ while (reader.pos < end) {
17968
+ const tag = reader.uint32();
17969
+ switch (tag >>> 3) {
17970
+ case 1:
17971
+ if (tag !== 10) {
17972
+ break;
17973
+ }
17974
+ message.user_id = reader.string();
17975
+ continue;
17976
+ case 2:
17977
+ if (tag !== 18) {
17978
+ break;
17979
+ }
17980
+ message.username = reader.string();
17981
+ continue;
17982
+ case 3:
17983
+ if (tag !== 26) {
17984
+ break;
17985
+ }
17986
+ message.display_name = reader.string();
17987
+ continue;
17988
+ case 4:
17989
+ if (tag !== 34) {
17990
+ break;
17991
+ }
17992
+ message.avatar = reader.string();
17993
+ continue;
17994
+ }
17995
+ if ((tag & 7) === 4 || tag === 0) {
17996
+ break;
17997
+ }
17998
+ reader.skipType(tag & 7);
17999
+ }
18000
+ return message;
18001
+ },
18002
+ fromJSON(object) {
18003
+ return {
18004
+ user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
18005
+ username: isSet4(object.username) ? globalThis.String(object.username) : "",
18006
+ display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
18007
+ avatar: isSet4(object.avatar) ? globalThis.String(object.avatar) : ""
18008
+ };
18009
+ },
18010
+ toJSON(message) {
18011
+ const obj = {};
18012
+ if (message.user_id !== "") {
18013
+ obj.user_id = message.user_id;
18014
+ }
18015
+ if (message.username !== "") {
18016
+ obj.username = message.username;
18017
+ }
18018
+ if (message.display_name !== "") {
18019
+ obj.display_name = message.display_name;
18020
+ }
18021
+ if (message.avatar !== "") {
18022
+ obj.avatar = message.avatar;
18023
+ }
18024
+ return obj;
18025
+ },
18026
+ create(base) {
18027
+ return AddFriend.fromPartial(base != null ? base : {});
18028
+ },
18029
+ fromPartial(object) {
18030
+ var _a, _b, _c, _d;
18031
+ const message = createBaseAddFriend();
18032
+ message.user_id = (_a = object.user_id) != null ? _a : "";
18033
+ message.username = (_b = object.username) != null ? _b : "";
18034
+ message.display_name = (_c = object.display_name) != null ? _c : "";
18035
+ message.avatar = (_d = object.avatar) != null ? _d : "";
18036
+ return message;
18037
+ }
18038
+ };
17944
18039
  function createBaseRemoveFriend() {
17945
18040
  return { user_id: "" };
17946
18041
  }
@@ -22410,11 +22505,10 @@ function createBaseUserProfileRedis() {
22410
22505
  avatar: "",
22411
22506
  display_name: "",
22412
22507
  about_me: "",
22413
- custom_status: "",
22508
+ user_status: "",
22414
22509
  create_time_second: 0,
22415
22510
  fcm_tokens: [],
22416
22511
  online: false,
22417
- metadata: "",
22418
22512
  is_disabled: false,
22419
22513
  joined_clans: [],
22420
22514
  pubkey: "",
@@ -22442,8 +22536,8 @@ var UserProfileRedis = {
22442
22536
  if (message.about_me !== "") {
22443
22537
  writer.uint32(42).string(message.about_me);
22444
22538
  }
22445
- if (message.custom_status !== "") {
22446
- writer.uint32(50).string(message.custom_status);
22539
+ if (message.user_status !== "") {
22540
+ writer.uint32(50).string(message.user_status);
22447
22541
  }
22448
22542
  if (message.create_time_second !== 0) {
22449
22543
  writer.uint32(56).uint32(message.create_time_second);
@@ -22454,32 +22548,29 @@ var UserProfileRedis = {
22454
22548
  if (message.online !== false) {
22455
22549
  writer.uint32(72).bool(message.online);
22456
22550
  }
22457
- if (message.metadata !== "") {
22458
- writer.uint32(82).string(message.metadata);
22459
- }
22460
22551
  if (message.is_disabled !== false) {
22461
- writer.uint32(88).bool(message.is_disabled);
22552
+ writer.uint32(80).bool(message.is_disabled);
22462
22553
  }
22463
22554
  for (const v of message.joined_clans) {
22464
- writer.uint32(98).string(v);
22555
+ writer.uint32(90).string(v);
22465
22556
  }
22466
22557
  if (message.pubkey !== "") {
22467
- writer.uint32(106).string(message.pubkey);
22558
+ writer.uint32(98).string(message.pubkey);
22468
22559
  }
22469
22560
  if (message.mezon_id !== "") {
22470
- writer.uint32(114).string(message.mezon_id);
22561
+ writer.uint32(106).string(message.mezon_id);
22471
22562
  }
22472
22563
  if (message.app_token !== "") {
22473
- writer.uint32(122).string(message.app_token);
22564
+ writer.uint32(114).string(message.app_token);
22474
22565
  }
22475
22566
  if (message.app_url !== "") {
22476
- writer.uint32(130).string(message.app_url);
22567
+ writer.uint32(122).string(message.app_url);
22477
22568
  }
22478
22569
  if (message.is_bot !== false) {
22479
- writer.uint32(136).bool(message.is_bot);
22570
+ writer.uint32(128).bool(message.is_bot);
22480
22571
  }
22481
22572
  if (message.voip_token !== "") {
22482
- writer.uint32(146).string(message.voip_token);
22573
+ writer.uint32(138).string(message.voip_token);
22483
22574
  }
22484
22575
  return writer;
22485
22576
  },
@@ -22524,7 +22615,7 @@ var UserProfileRedis = {
22524
22615
  if (tag !== 50) {
22525
22616
  break;
22526
22617
  }
22527
- message.custom_status = reader.string();
22618
+ message.user_status = reader.string();
22528
22619
  continue;
22529
22620
  case 7:
22530
22621
  if (tag !== 56) {
@@ -22545,55 +22636,49 @@ var UserProfileRedis = {
22545
22636
  message.online = reader.bool();
22546
22637
  continue;
22547
22638
  case 10:
22548
- if (tag !== 82) {
22639
+ if (tag !== 80) {
22549
22640
  break;
22550
22641
  }
22551
- message.metadata = reader.string();
22642
+ message.is_disabled = reader.bool();
22552
22643
  continue;
22553
22644
  case 11:
22554
- if (tag !== 88) {
22645
+ if (tag !== 90) {
22555
22646
  break;
22556
22647
  }
22557
- message.is_disabled = reader.bool();
22648
+ message.joined_clans.push(reader.string());
22558
22649
  continue;
22559
22650
  case 12:
22560
22651
  if (tag !== 98) {
22561
22652
  break;
22562
22653
  }
22563
- message.joined_clans.push(reader.string());
22654
+ message.pubkey = reader.string();
22564
22655
  continue;
22565
22656
  case 13:
22566
22657
  if (tag !== 106) {
22567
22658
  break;
22568
22659
  }
22569
- message.pubkey = reader.string();
22660
+ message.mezon_id = reader.string();
22570
22661
  continue;
22571
22662
  case 14:
22572
22663
  if (tag !== 114) {
22573
22664
  break;
22574
22665
  }
22575
- message.mezon_id = reader.string();
22666
+ message.app_token = reader.string();
22576
22667
  continue;
22577
22668
  case 15:
22578
22669
  if (tag !== 122) {
22579
22670
  break;
22580
22671
  }
22581
- message.app_token = reader.string();
22582
- continue;
22583
- case 16:
22584
- if (tag !== 130) {
22585
- break;
22586
- }
22587
22672
  message.app_url = reader.string();
22588
22673
  continue;
22589
- case 17:
22590
- if (tag !== 136) {
22674
+ case 16:
22675
+ if (tag !== 128) {
22591
22676
  break;
22592
22677
  }
22593
22678
  message.is_bot = reader.bool();
22594
22679
  continue;
22595
- case 18:
22596
- if (tag !== 146) {
22680
+ case 17:
22681
+ if (tag !== 138) {
22597
22682
  break;
22598
22683
  }
22599
22684
  message.voip_token = reader.string();
@@ -22613,11 +22698,10 @@ var UserProfileRedis = {
22613
22698
  avatar: isSet4(object.avatar) ? globalThis.String(object.avatar) : "",
22614
22699
  display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
22615
22700
  about_me: isSet4(object.about_me) ? globalThis.String(object.about_me) : "",
22616
- custom_status: isSet4(object.custom_status) ? globalThis.String(object.custom_status) : "",
22701
+ user_status: isSet4(object.user_status) ? globalThis.String(object.user_status) : "",
22617
22702
  create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
22618
22703
  fcm_tokens: globalThis.Array.isArray(object == null ? void 0 : object.fcm_tokens) ? object.fcm_tokens.map((e) => FCMTokens.fromJSON(e)) : [],
22619
22704
  online: isSet4(object.online) ? globalThis.Boolean(object.online) : false,
22620
- metadata: isSet4(object.metadata) ? globalThis.String(object.metadata) : "",
22621
22705
  is_disabled: isSet4(object.is_disabled) ? globalThis.Boolean(object.is_disabled) : false,
22622
22706
  joined_clans: globalThis.Array.isArray(object == null ? void 0 : object.joined_clans) ? object.joined_clans.map((e) => globalThis.String(e)) : [],
22623
22707
  pubkey: isSet4(object.pubkey) ? globalThis.String(object.pubkey) : "",
@@ -22646,8 +22730,8 @@ var UserProfileRedis = {
22646
22730
  if (message.about_me !== "") {
22647
22731
  obj.about_me = message.about_me;
22648
22732
  }
22649
- if (message.custom_status !== "") {
22650
- obj.custom_status = message.custom_status;
22733
+ if (message.user_status !== "") {
22734
+ obj.user_status = message.user_status;
22651
22735
  }
22652
22736
  if (message.create_time_second !== 0) {
22653
22737
  obj.create_time_second = Math.round(message.create_time_second);
@@ -22658,9 +22742,6 @@ var UserProfileRedis = {
22658
22742
  if (message.online !== false) {
22659
22743
  obj.online = message.online;
22660
22744
  }
22661
- if (message.metadata !== "") {
22662
- obj.metadata = message.metadata;
22663
- }
22664
22745
  if (message.is_disabled !== false) {
22665
22746
  obj.is_disabled = message.is_disabled;
22666
22747
  }
@@ -22691,26 +22772,25 @@ var UserProfileRedis = {
22691
22772
  return UserProfileRedis.fromPartial(base != null ? base : {});
22692
22773
  },
22693
22774
  fromPartial(object) {
22694
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
22775
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
22695
22776
  const message = createBaseUserProfileRedis();
22696
22777
  message.user_id = (_a = object.user_id) != null ? _a : "";
22697
22778
  message.username = (_b = object.username) != null ? _b : "";
22698
22779
  message.avatar = (_c = object.avatar) != null ? _c : "";
22699
22780
  message.display_name = (_d = object.display_name) != null ? _d : "";
22700
22781
  message.about_me = (_e = object.about_me) != null ? _e : "";
22701
- message.custom_status = (_f = object.custom_status) != null ? _f : "";
22782
+ message.user_status = (_f = object.user_status) != null ? _f : "";
22702
22783
  message.create_time_second = (_g = object.create_time_second) != null ? _g : 0;
22703
22784
  message.fcm_tokens = ((_h = object.fcm_tokens) == null ? void 0 : _h.map((e) => FCMTokens.fromPartial(e))) || [];
22704
22785
  message.online = (_i = object.online) != null ? _i : false;
22705
- message.metadata = (_j = object.metadata) != null ? _j : "";
22706
- message.is_disabled = (_k = object.is_disabled) != null ? _k : false;
22707
- message.joined_clans = ((_l = object.joined_clans) == null ? void 0 : _l.map((e) => e)) || [];
22708
- message.pubkey = (_m = object.pubkey) != null ? _m : "";
22709
- message.mezon_id = (_n = object.mezon_id) != null ? _n : "";
22710
- message.app_token = (_o = object.app_token) != null ? _o : "";
22711
- message.app_url = (_p = object.app_url) != null ? _p : "";
22712
- message.is_bot = (_q = object.is_bot) != null ? _q : false;
22713
- message.voip_token = (_r = object.voip_token) != null ? _r : "";
22786
+ message.is_disabled = (_j = object.is_disabled) != null ? _j : false;
22787
+ message.joined_clans = ((_k = object.joined_clans) == null ? void 0 : _k.map((e) => e)) || [];
22788
+ message.pubkey = (_l = object.pubkey) != null ? _l : "";
22789
+ message.mezon_id = (_m = object.mezon_id) != null ? _m : "";
22790
+ message.app_token = (_n = object.app_token) != null ? _n : "";
22791
+ message.app_url = (_o = object.app_url) != null ? _o : "";
22792
+ message.is_bot = (_p = object.is_bot) != null ? _p : false;
22793
+ message.voip_token = (_q = object.voip_token) != null ? _q : "";
22714
22794
  return message;
22715
22795
  }
22716
22796
  };