mezon-js-protobuf 1.7.40 → 1.7.41

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.
@@ -4267,7 +4267,7 @@ function createBaseChannelDescription() {
4267
4267
  metadata: [],
4268
4268
  about_me: [],
4269
4269
  clan_name: "",
4270
- app_url: "",
4270
+ app_id: "",
4271
4271
  is_mute: false,
4272
4272
  age_restricted: 0,
4273
4273
  topic: "",
@@ -4354,8 +4354,8 @@ var ChannelDescription = {
4354
4354
  if (message.clan_name !== "") {
4355
4355
  writer.uint32(202).string(message.clan_name);
4356
4356
  }
4357
- if (message.app_url !== "") {
4358
- writer.uint32(210).string(message.app_url);
4357
+ if (message.app_id !== "") {
4358
+ writer.uint32(210).string(message.app_id);
4359
4359
  }
4360
4360
  if (message.is_mute !== false) {
4361
4361
  writer.uint32(216).bool(message.is_mute);
@@ -4542,7 +4542,7 @@ var ChannelDescription = {
4542
4542
  if (tag !== 210) {
4543
4543
  break;
4544
4544
  }
4545
- message.app_url = reader.string();
4545
+ message.app_id = reader.string();
4546
4546
  continue;
4547
4547
  case 27:
4548
4548
  if (tag !== 216) {
@@ -4609,7 +4609,7 @@ var ChannelDescription = {
4609
4609
  metadata: globalThis.Array.isArray(object == null ? void 0 : object.metadata) ? object.metadata.map((e) => globalThis.String(e)) : [],
4610
4610
  about_me: globalThis.Array.isArray(object == null ? void 0 : object.about_me) ? object.about_me.map((e) => globalThis.String(e)) : [],
4611
4611
  clan_name: isSet3(object.clan_name) ? globalThis.String(object.clan_name) : "",
4612
- app_url: isSet3(object.app_url) ? globalThis.String(object.app_url) : "",
4612
+ app_id: isSet3(object.app_id) ? globalThis.String(object.app_id) : "",
4613
4613
  is_mute: isSet3(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
4614
4614
  age_restricted: isSet3(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
4615
4615
  topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
@@ -4695,8 +4695,8 @@ var ChannelDescription = {
4695
4695
  if (message.clan_name !== "") {
4696
4696
  obj.clan_name = message.clan_name;
4697
4697
  }
4698
- if (message.app_url !== "") {
4699
- obj.app_url = message.app_url;
4698
+ if (message.app_id !== "") {
4699
+ obj.app_id = message.app_id;
4700
4700
  }
4701
4701
  if (message.is_mute !== false) {
4702
4702
  obj.is_mute = message.is_mute;
@@ -4746,7 +4746,7 @@ var ChannelDescription = {
4746
4746
  message.metadata = ((_u = object.metadata) == null ? void 0 : _u.map((e) => e)) || [];
4747
4747
  message.about_me = ((_v = object.about_me) == null ? void 0 : _v.map((e) => e)) || [];
4748
4748
  message.clan_name = (_w = object.clan_name) != null ? _w : "";
4749
- message.app_url = (_x = object.app_url) != null ? _x : "";
4749
+ message.app_id = (_x = object.app_id) != null ? _x : "";
4750
4750
  message.is_mute = (_y = object.is_mute) != null ? _y : false;
4751
4751
  message.age_restricted = (_z = object.age_restricted) != null ? _z : 0;
4752
4752
  message.topic = (_A = object.topic) != null ? _A : "";
@@ -11493,7 +11493,7 @@ function createBaseChannelCreatedEvent() {
11493
11493
  channel_private: 0,
11494
11494
  channel_type: void 0,
11495
11495
  status: 0,
11496
- app_url: "",
11496
+ app_id: "",
11497
11497
  clan_name: ""
11498
11498
  };
11499
11499
  }
@@ -11526,8 +11526,8 @@ var ChannelCreatedEvent = {
11526
11526
  if (message.status !== 0) {
11527
11527
  writer.uint32(72).int32(message.status);
11528
11528
  }
11529
- if (message.app_url !== "") {
11530
- writer.uint32(82).string(message.app_url);
11529
+ if (message.app_id !== "") {
11530
+ writer.uint32(82).string(message.app_id);
11531
11531
  }
11532
11532
  if (message.clan_name !== "") {
11533
11533
  writer.uint32(90).string(message.clan_name);
@@ -11599,7 +11599,7 @@ var ChannelCreatedEvent = {
11599
11599
  if (tag !== 82) {
11600
11600
  break;
11601
11601
  }
11602
- message.app_url = reader.string();
11602
+ message.app_id = reader.string();
11603
11603
  continue;
11604
11604
  case 11:
11605
11605
  if (tag !== 90) {
@@ -11626,7 +11626,7 @@ var ChannelCreatedEvent = {
11626
11626
  channel_private: isSet4(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
11627
11627
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
11628
11628
  status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
11629
- app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
11629
+ app_id: isSet4(object.app_id) ? globalThis.String(object.app_id) : "",
11630
11630
  clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : ""
11631
11631
  };
11632
11632
  },
@@ -11659,8 +11659,8 @@ var ChannelCreatedEvent = {
11659
11659
  if (message.status !== 0) {
11660
11660
  obj.status = Math.round(message.status);
11661
11661
  }
11662
- if (message.app_url !== "") {
11663
- obj.app_url = message.app_url;
11662
+ if (message.app_id !== "") {
11663
+ obj.app_id = message.app_id;
11664
11664
  }
11665
11665
  if (message.clan_name !== "") {
11666
11666
  obj.clan_name = message.clan_name;
@@ -11682,7 +11682,7 @@ var ChannelCreatedEvent = {
11682
11682
  message.channel_private = (_g = object.channel_private) != null ? _g : 0;
11683
11683
  message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
11684
11684
  message.status = (_i = object.status) != null ? _i : 0;
11685
- message.app_url = (_j = object.app_url) != null ? _j : "";
11685
+ message.app_id = (_j = object.app_id) != null ? _j : "";
11686
11686
  message.clan_name = (_k = object.clan_name) != null ? _k : "";
11687
11687
  return message;
11688
11688
  }
@@ -12439,7 +12439,7 @@ function createBaseChannelUpdatedEvent() {
12439
12439
  meeting_code: "",
12440
12440
  is_error: false,
12441
12441
  channel_private: false,
12442
- app_url: "",
12442
+ app_id: "",
12443
12443
  e2ee: 0,
12444
12444
  topic: "",
12445
12445
  age_restricted: 0,
@@ -12481,8 +12481,8 @@ var ChannelUpdatedEvent = {
12481
12481
  if (message.channel_private !== false) {
12482
12482
  writer.uint32(88).bool(message.channel_private);
12483
12483
  }
12484
- if (message.app_url !== "") {
12485
- writer.uint32(98).string(message.app_url);
12484
+ if (message.app_id !== "") {
12485
+ writer.uint32(98).string(message.app_id);
12486
12486
  }
12487
12487
  if (message.e2ee !== 0) {
12488
12488
  writer.uint32(104).int32(message.e2ee);
@@ -12575,7 +12575,7 @@ var ChannelUpdatedEvent = {
12575
12575
  if (tag !== 98) {
12576
12576
  break;
12577
12577
  }
12578
- message.app_url = reader.string();
12578
+ message.app_id = reader.string();
12579
12579
  continue;
12580
12580
  case 13:
12581
12581
  if (tag !== 104) {
@@ -12622,7 +12622,7 @@ var ChannelUpdatedEvent = {
12622
12622
  meeting_code: isSet4(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
12623
12623
  is_error: isSet4(object.is_error) ? globalThis.Boolean(object.is_error) : false,
12624
12624
  channel_private: isSet4(object.channel_private) ? globalThis.Boolean(object.channel_private) : false,
12625
- app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
12625
+ app_id: isSet4(object.app_id) ? globalThis.String(object.app_id) : "",
12626
12626
  e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
12627
12627
  topic: isSet4(object.topic) ? globalThis.String(object.topic) : "",
12628
12628
  age_restricted: isSet4(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
@@ -12664,8 +12664,8 @@ var ChannelUpdatedEvent = {
12664
12664
  if (message.channel_private !== false) {
12665
12665
  obj.channel_private = message.channel_private;
12666
12666
  }
12667
- if (message.app_url !== "") {
12668
- obj.app_url = message.app_url;
12667
+ if (message.app_id !== "") {
12668
+ obj.app_id = message.app_id;
12669
12669
  }
12670
12670
  if (message.e2ee !== 0) {
12671
12671
  obj.e2ee = Math.round(message.e2ee);
@@ -12698,7 +12698,7 @@ var ChannelUpdatedEvent = {
12698
12698
  message.meeting_code = (_i = object.meeting_code) != null ? _i : "";
12699
12699
  message.is_error = (_j = object.is_error) != null ? _j : false;
12700
12700
  message.channel_private = (_k = object.channel_private) != null ? _k : false;
12701
- message.app_url = (_l = object.app_url) != null ? _l : "";
12701
+ message.app_id = (_l = object.app_id) != null ? _l : "";
12702
12702
  message.e2ee = (_m = object.e2ee) != null ? _m : 0;
12703
12703
  message.topic = (_n = object.topic) != null ? _n : "";
12704
12704
  message.age_restricted = (_o = object.age_restricted) != null ? _o : 0;
@@ -14077,7 +14077,8 @@ function createBaseUserProfileRedis() {
14077
14077
  joined_clans: [],
14078
14078
  pubkey: "",
14079
14079
  mezon_id: "",
14080
- app_token: ""
14080
+ app_token: "",
14081
+ app_url: ""
14081
14082
  };
14082
14083
  }
14083
14084
  var UserProfileRedis = {
@@ -14127,6 +14128,9 @@ var UserProfileRedis = {
14127
14128
  if (message.app_token !== "") {
14128
14129
  writer.uint32(122).string(message.app_token);
14129
14130
  }
14131
+ if (message.app_url !== "") {
14132
+ writer.uint32(130).string(message.app_url);
14133
+ }
14130
14134
  return writer;
14131
14135
  },
14132
14136
  decode(input, length) {
@@ -14226,6 +14230,12 @@ var UserProfileRedis = {
14226
14230
  }
14227
14231
  message.app_token = reader.string();
14228
14232
  continue;
14233
+ case 16:
14234
+ if (tag !== 130) {
14235
+ break;
14236
+ }
14237
+ message.app_url = reader.string();
14238
+ continue;
14229
14239
  }
14230
14240
  if ((tag & 7) === 4 || tag === 0) {
14231
14241
  break;
@@ -14250,7 +14260,8 @@ var UserProfileRedis = {
14250
14260
  joined_clans: globalThis.Array.isArray(object == null ? void 0 : object.joined_clans) ? object.joined_clans.map((e) => globalThis.String(e)) : [],
14251
14261
  pubkey: isSet4(object.pubkey) ? globalThis.String(object.pubkey) : "",
14252
14262
  mezon_id: isSet4(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
14253
- app_token: isSet4(object.app_token) ? globalThis.String(object.app_token) : ""
14263
+ app_token: isSet4(object.app_token) ? globalThis.String(object.app_token) : "",
14264
+ app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : ""
14254
14265
  };
14255
14266
  },
14256
14267
  toJSON(message) {
@@ -14301,13 +14312,16 @@ var UserProfileRedis = {
14301
14312
  if (message.app_token !== "") {
14302
14313
  obj.app_token = message.app_token;
14303
14314
  }
14315
+ if (message.app_url !== "") {
14316
+ obj.app_url = message.app_url;
14317
+ }
14304
14318
  return obj;
14305
14319
  },
14306
14320
  create(base) {
14307
14321
  return UserProfileRedis.fromPartial(base != null ? base : {});
14308
14322
  },
14309
14323
  fromPartial(object) {
14310
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
14324
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
14311
14325
  const message = createBaseUserProfileRedis();
14312
14326
  message.user_id = (_a = object.user_id) != null ? _a : "";
14313
14327
  message.username = (_b = object.username) != null ? _b : "";
@@ -14324,6 +14338,7 @@ var UserProfileRedis = {
14324
14338
  message.pubkey = (_m = object.pubkey) != null ? _m : "";
14325
14339
  message.mezon_id = (_n = object.mezon_id) != null ? _n : "";
14326
14340
  message.app_token = (_o = object.app_token) != null ? _o : "";
14341
+ message.app_url = (_p = object.app_url) != null ? _p : "";
14327
14342
  return message;
14328
14343
  }
14329
14344
  };
@@ -4254,7 +4254,7 @@ function createBaseChannelDescription() {
4254
4254
  metadata: [],
4255
4255
  about_me: [],
4256
4256
  clan_name: "",
4257
- app_url: "",
4257
+ app_id: "",
4258
4258
  is_mute: false,
4259
4259
  age_restricted: 0,
4260
4260
  topic: "",
@@ -4341,8 +4341,8 @@ var ChannelDescription = {
4341
4341
  if (message.clan_name !== "") {
4342
4342
  writer.uint32(202).string(message.clan_name);
4343
4343
  }
4344
- if (message.app_url !== "") {
4345
- writer.uint32(210).string(message.app_url);
4344
+ if (message.app_id !== "") {
4345
+ writer.uint32(210).string(message.app_id);
4346
4346
  }
4347
4347
  if (message.is_mute !== false) {
4348
4348
  writer.uint32(216).bool(message.is_mute);
@@ -4529,7 +4529,7 @@ var ChannelDescription = {
4529
4529
  if (tag !== 210) {
4530
4530
  break;
4531
4531
  }
4532
- message.app_url = reader.string();
4532
+ message.app_id = reader.string();
4533
4533
  continue;
4534
4534
  case 27:
4535
4535
  if (tag !== 216) {
@@ -4596,7 +4596,7 @@ var ChannelDescription = {
4596
4596
  metadata: globalThis.Array.isArray(object == null ? void 0 : object.metadata) ? object.metadata.map((e) => globalThis.String(e)) : [],
4597
4597
  about_me: globalThis.Array.isArray(object == null ? void 0 : object.about_me) ? object.about_me.map((e) => globalThis.String(e)) : [],
4598
4598
  clan_name: isSet3(object.clan_name) ? globalThis.String(object.clan_name) : "",
4599
- app_url: isSet3(object.app_url) ? globalThis.String(object.app_url) : "",
4599
+ app_id: isSet3(object.app_id) ? globalThis.String(object.app_id) : "",
4600
4600
  is_mute: isSet3(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
4601
4601
  age_restricted: isSet3(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
4602
4602
  topic: isSet3(object.topic) ? globalThis.String(object.topic) : "",
@@ -4682,8 +4682,8 @@ var ChannelDescription = {
4682
4682
  if (message.clan_name !== "") {
4683
4683
  obj.clan_name = message.clan_name;
4684
4684
  }
4685
- if (message.app_url !== "") {
4686
- obj.app_url = message.app_url;
4685
+ if (message.app_id !== "") {
4686
+ obj.app_id = message.app_id;
4687
4687
  }
4688
4688
  if (message.is_mute !== false) {
4689
4689
  obj.is_mute = message.is_mute;
@@ -4733,7 +4733,7 @@ var ChannelDescription = {
4733
4733
  message.metadata = ((_u = object.metadata) == null ? void 0 : _u.map((e) => e)) || [];
4734
4734
  message.about_me = ((_v = object.about_me) == null ? void 0 : _v.map((e) => e)) || [];
4735
4735
  message.clan_name = (_w = object.clan_name) != null ? _w : "";
4736
- message.app_url = (_x = object.app_url) != null ? _x : "";
4736
+ message.app_id = (_x = object.app_id) != null ? _x : "";
4737
4737
  message.is_mute = (_y = object.is_mute) != null ? _y : false;
4738
4738
  message.age_restricted = (_z = object.age_restricted) != null ? _z : 0;
4739
4739
  message.topic = (_A = object.topic) != null ? _A : "";
@@ -11480,7 +11480,7 @@ function createBaseChannelCreatedEvent() {
11480
11480
  channel_private: 0,
11481
11481
  channel_type: void 0,
11482
11482
  status: 0,
11483
- app_url: "",
11483
+ app_id: "",
11484
11484
  clan_name: ""
11485
11485
  };
11486
11486
  }
@@ -11513,8 +11513,8 @@ var ChannelCreatedEvent = {
11513
11513
  if (message.status !== 0) {
11514
11514
  writer.uint32(72).int32(message.status);
11515
11515
  }
11516
- if (message.app_url !== "") {
11517
- writer.uint32(82).string(message.app_url);
11516
+ if (message.app_id !== "") {
11517
+ writer.uint32(82).string(message.app_id);
11518
11518
  }
11519
11519
  if (message.clan_name !== "") {
11520
11520
  writer.uint32(90).string(message.clan_name);
@@ -11586,7 +11586,7 @@ var ChannelCreatedEvent = {
11586
11586
  if (tag !== 82) {
11587
11587
  break;
11588
11588
  }
11589
- message.app_url = reader.string();
11589
+ message.app_id = reader.string();
11590
11590
  continue;
11591
11591
  case 11:
11592
11592
  if (tag !== 90) {
@@ -11613,7 +11613,7 @@ var ChannelCreatedEvent = {
11613
11613
  channel_private: isSet4(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
11614
11614
  channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
11615
11615
  status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
11616
- app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
11616
+ app_id: isSet4(object.app_id) ? globalThis.String(object.app_id) : "",
11617
11617
  clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : ""
11618
11618
  };
11619
11619
  },
@@ -11646,8 +11646,8 @@ var ChannelCreatedEvent = {
11646
11646
  if (message.status !== 0) {
11647
11647
  obj.status = Math.round(message.status);
11648
11648
  }
11649
- if (message.app_url !== "") {
11650
- obj.app_url = message.app_url;
11649
+ if (message.app_id !== "") {
11650
+ obj.app_id = message.app_id;
11651
11651
  }
11652
11652
  if (message.clan_name !== "") {
11653
11653
  obj.clan_name = message.clan_name;
@@ -11669,7 +11669,7 @@ var ChannelCreatedEvent = {
11669
11669
  message.channel_private = (_g = object.channel_private) != null ? _g : 0;
11670
11670
  message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
11671
11671
  message.status = (_i = object.status) != null ? _i : 0;
11672
- message.app_url = (_j = object.app_url) != null ? _j : "";
11672
+ message.app_id = (_j = object.app_id) != null ? _j : "";
11673
11673
  message.clan_name = (_k = object.clan_name) != null ? _k : "";
11674
11674
  return message;
11675
11675
  }
@@ -12426,7 +12426,7 @@ function createBaseChannelUpdatedEvent() {
12426
12426
  meeting_code: "",
12427
12427
  is_error: false,
12428
12428
  channel_private: false,
12429
- app_url: "",
12429
+ app_id: "",
12430
12430
  e2ee: 0,
12431
12431
  topic: "",
12432
12432
  age_restricted: 0,
@@ -12468,8 +12468,8 @@ var ChannelUpdatedEvent = {
12468
12468
  if (message.channel_private !== false) {
12469
12469
  writer.uint32(88).bool(message.channel_private);
12470
12470
  }
12471
- if (message.app_url !== "") {
12472
- writer.uint32(98).string(message.app_url);
12471
+ if (message.app_id !== "") {
12472
+ writer.uint32(98).string(message.app_id);
12473
12473
  }
12474
12474
  if (message.e2ee !== 0) {
12475
12475
  writer.uint32(104).int32(message.e2ee);
@@ -12562,7 +12562,7 @@ var ChannelUpdatedEvent = {
12562
12562
  if (tag !== 98) {
12563
12563
  break;
12564
12564
  }
12565
- message.app_url = reader.string();
12565
+ message.app_id = reader.string();
12566
12566
  continue;
12567
12567
  case 13:
12568
12568
  if (tag !== 104) {
@@ -12609,7 +12609,7 @@ var ChannelUpdatedEvent = {
12609
12609
  meeting_code: isSet4(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
12610
12610
  is_error: isSet4(object.is_error) ? globalThis.Boolean(object.is_error) : false,
12611
12611
  channel_private: isSet4(object.channel_private) ? globalThis.Boolean(object.channel_private) : false,
12612
- app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
12612
+ app_id: isSet4(object.app_id) ? globalThis.String(object.app_id) : "",
12613
12613
  e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
12614
12614
  topic: isSet4(object.topic) ? globalThis.String(object.topic) : "",
12615
12615
  age_restricted: isSet4(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
@@ -12651,8 +12651,8 @@ var ChannelUpdatedEvent = {
12651
12651
  if (message.channel_private !== false) {
12652
12652
  obj.channel_private = message.channel_private;
12653
12653
  }
12654
- if (message.app_url !== "") {
12655
- obj.app_url = message.app_url;
12654
+ if (message.app_id !== "") {
12655
+ obj.app_id = message.app_id;
12656
12656
  }
12657
12657
  if (message.e2ee !== 0) {
12658
12658
  obj.e2ee = Math.round(message.e2ee);
@@ -12685,7 +12685,7 @@ var ChannelUpdatedEvent = {
12685
12685
  message.meeting_code = (_i = object.meeting_code) != null ? _i : "";
12686
12686
  message.is_error = (_j = object.is_error) != null ? _j : false;
12687
12687
  message.channel_private = (_k = object.channel_private) != null ? _k : false;
12688
- message.app_url = (_l = object.app_url) != null ? _l : "";
12688
+ message.app_id = (_l = object.app_id) != null ? _l : "";
12689
12689
  message.e2ee = (_m = object.e2ee) != null ? _m : 0;
12690
12690
  message.topic = (_n = object.topic) != null ? _n : "";
12691
12691
  message.age_restricted = (_o = object.age_restricted) != null ? _o : 0;
@@ -14064,7 +14064,8 @@ function createBaseUserProfileRedis() {
14064
14064
  joined_clans: [],
14065
14065
  pubkey: "",
14066
14066
  mezon_id: "",
14067
- app_token: ""
14067
+ app_token: "",
14068
+ app_url: ""
14068
14069
  };
14069
14070
  }
14070
14071
  var UserProfileRedis = {
@@ -14114,6 +14115,9 @@ var UserProfileRedis = {
14114
14115
  if (message.app_token !== "") {
14115
14116
  writer.uint32(122).string(message.app_token);
14116
14117
  }
14118
+ if (message.app_url !== "") {
14119
+ writer.uint32(130).string(message.app_url);
14120
+ }
14117
14121
  return writer;
14118
14122
  },
14119
14123
  decode(input, length) {
@@ -14213,6 +14217,12 @@ var UserProfileRedis = {
14213
14217
  }
14214
14218
  message.app_token = reader.string();
14215
14219
  continue;
14220
+ case 16:
14221
+ if (tag !== 130) {
14222
+ break;
14223
+ }
14224
+ message.app_url = reader.string();
14225
+ continue;
14216
14226
  }
14217
14227
  if ((tag & 7) === 4 || tag === 0) {
14218
14228
  break;
@@ -14237,7 +14247,8 @@ var UserProfileRedis = {
14237
14247
  joined_clans: globalThis.Array.isArray(object == null ? void 0 : object.joined_clans) ? object.joined_clans.map((e) => globalThis.String(e)) : [],
14238
14248
  pubkey: isSet4(object.pubkey) ? globalThis.String(object.pubkey) : "",
14239
14249
  mezon_id: isSet4(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
14240
- app_token: isSet4(object.app_token) ? globalThis.String(object.app_token) : ""
14250
+ app_token: isSet4(object.app_token) ? globalThis.String(object.app_token) : "",
14251
+ app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : ""
14241
14252
  };
14242
14253
  },
14243
14254
  toJSON(message) {
@@ -14288,13 +14299,16 @@ var UserProfileRedis = {
14288
14299
  if (message.app_token !== "") {
14289
14300
  obj.app_token = message.app_token;
14290
14301
  }
14302
+ if (message.app_url !== "") {
14303
+ obj.app_url = message.app_url;
14304
+ }
14291
14305
  return obj;
14292
14306
  },
14293
14307
  create(base) {
14294
14308
  return UserProfileRedis.fromPartial(base != null ? base : {});
14295
14309
  },
14296
14310
  fromPartial(object) {
14297
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
14311
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
14298
14312
  const message = createBaseUserProfileRedis();
14299
14313
  message.user_id = (_a = object.user_id) != null ? _a : "";
14300
14314
  message.username = (_b = object.username) != null ? _b : "";
@@ -14311,6 +14325,7 @@ var UserProfileRedis = {
14311
14325
  message.pubkey = (_m = object.pubkey) != null ? _m : "";
14312
14326
  message.mezon_id = (_n = object.mezon_id) != null ? _n : "";
14313
14327
  message.app_token = (_o = object.app_token) != null ? _o : "";
14328
+ message.app_url = (_p = object.app_url) != null ? _p : "";
14314
14329
  return message;
14315
14330
  }
14316
14331
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.7.40",
3
+ "version": "1.7.41",
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",
package/rtapi/realtime.ts CHANGED
@@ -946,8 +946,8 @@ export interface ChannelCreatedEvent {
946
946
  | undefined;
947
947
  /** status */
948
948
  status: number;
949
- /** app url */
950
- app_url: string;
949
+ /** app id */
950
+ app_id: string;
951
951
  /** clan_name */
952
952
  clan_name: string;
953
953
  }
@@ -1056,7 +1056,7 @@ export interface ChannelUpdatedEvent {
1056
1056
  /** channel private */
1057
1057
  channel_private: boolean;
1058
1058
  /** app url */
1059
- app_url: string;
1059
+ app_id: string;
1060
1060
  /** e2ee */
1061
1061
  e2ee: number;
1062
1062
  /** topic */
@@ -1279,6 +1279,8 @@ export interface UserProfileRedis {
1279
1279
  mezon_id: string;
1280
1280
  /** app token */
1281
1281
  app_token: string;
1282
+ /** app url */
1283
+ app_url: string;
1282
1284
  }
1283
1285
 
1284
1286
  export interface FCMTokens {
@@ -7639,7 +7641,7 @@ function createBaseChannelCreatedEvent(): ChannelCreatedEvent {
7639
7641
  channel_private: 0,
7640
7642
  channel_type: undefined,
7641
7643
  status: 0,
7642
- app_url: "",
7644
+ app_id: "",
7643
7645
  clan_name: "",
7644
7646
  };
7645
7647
  }
@@ -7673,8 +7675,8 @@ export const ChannelCreatedEvent = {
7673
7675
  if (message.status !== 0) {
7674
7676
  writer.uint32(72).int32(message.status);
7675
7677
  }
7676
- if (message.app_url !== "") {
7677
- writer.uint32(82).string(message.app_url);
7678
+ if (message.app_id !== "") {
7679
+ writer.uint32(82).string(message.app_id);
7678
7680
  }
7679
7681
  if (message.clan_name !== "") {
7680
7682
  writer.uint32(90).string(message.clan_name);
@@ -7757,7 +7759,7 @@ export const ChannelCreatedEvent = {
7757
7759
  break;
7758
7760
  }
7759
7761
 
7760
- message.app_url = reader.string();
7762
+ message.app_id = reader.string();
7761
7763
  continue;
7762
7764
  case 11:
7763
7765
  if (tag !== 90) {
@@ -7786,7 +7788,7 @@ export const ChannelCreatedEvent = {
7786
7788
  channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
7787
7789
  channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
7788
7790
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
7789
- app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
7791
+ app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
7790
7792
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
7791
7793
  };
7792
7794
  },
@@ -7820,8 +7822,8 @@ export const ChannelCreatedEvent = {
7820
7822
  if (message.status !== 0) {
7821
7823
  obj.status = Math.round(message.status);
7822
7824
  }
7823
- if (message.app_url !== "") {
7824
- obj.app_url = message.app_url;
7825
+ if (message.app_id !== "") {
7826
+ obj.app_id = message.app_id;
7825
7827
  }
7826
7828
  if (message.clan_name !== "") {
7827
7829
  obj.clan_name = message.clan_name;
@@ -7843,7 +7845,7 @@ export const ChannelCreatedEvent = {
7843
7845
  message.channel_private = object.channel_private ?? 0;
7844
7846
  message.channel_type = object.channel_type ?? undefined;
7845
7847
  message.status = object.status ?? 0;
7846
- message.app_url = object.app_url ?? "";
7848
+ message.app_id = object.app_id ?? "";
7847
7849
  message.clan_name = object.clan_name ?? "";
7848
7850
  return message;
7849
7851
  },
@@ -8675,7 +8677,7 @@ function createBaseChannelUpdatedEvent(): ChannelUpdatedEvent {
8675
8677
  meeting_code: "",
8676
8678
  is_error: false,
8677
8679
  channel_private: false,
8678
- app_url: "",
8680
+ app_id: "",
8679
8681
  e2ee: 0,
8680
8682
  topic: "",
8681
8683
  age_restricted: 0,
@@ -8718,8 +8720,8 @@ export const ChannelUpdatedEvent = {
8718
8720
  if (message.channel_private !== false) {
8719
8721
  writer.uint32(88).bool(message.channel_private);
8720
8722
  }
8721
- if (message.app_url !== "") {
8722
- writer.uint32(98).string(message.app_url);
8723
+ if (message.app_id !== "") {
8724
+ writer.uint32(98).string(message.app_id);
8723
8725
  }
8724
8726
  if (message.e2ee !== 0) {
8725
8727
  writer.uint32(104).int32(message.e2ee);
@@ -8825,7 +8827,7 @@ export const ChannelUpdatedEvent = {
8825
8827
  break;
8826
8828
  }
8827
8829
 
8828
- message.app_url = reader.string();
8830
+ message.app_id = reader.string();
8829
8831
  continue;
8830
8832
  case 13:
8831
8833
  if (tag !== 104) {
@@ -8877,7 +8879,7 @@ export const ChannelUpdatedEvent = {
8877
8879
  meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
8878
8880
  is_error: isSet(object.is_error) ? globalThis.Boolean(object.is_error) : false,
8879
8881
  channel_private: isSet(object.channel_private) ? globalThis.Boolean(object.channel_private) : false,
8880
- app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
8882
+ app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
8881
8883
  e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
8882
8884
  topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
8883
8885
  age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
@@ -8920,8 +8922,8 @@ export const ChannelUpdatedEvent = {
8920
8922
  if (message.channel_private !== false) {
8921
8923
  obj.channel_private = message.channel_private;
8922
8924
  }
8923
- if (message.app_url !== "") {
8924
- obj.app_url = message.app_url;
8925
+ if (message.app_id !== "") {
8926
+ obj.app_id = message.app_id;
8925
8927
  }
8926
8928
  if (message.e2ee !== 0) {
8927
8929
  obj.e2ee = Math.round(message.e2ee);
@@ -8954,7 +8956,7 @@ export const ChannelUpdatedEvent = {
8954
8956
  message.meeting_code = object.meeting_code ?? "";
8955
8957
  message.is_error = object.is_error ?? false;
8956
8958
  message.channel_private = object.channel_private ?? false;
8957
- message.app_url = object.app_url ?? "";
8959
+ message.app_id = object.app_id ?? "";
8958
8960
  message.e2ee = object.e2ee ?? 0;
8959
8961
  message.topic = object.topic ?? "";
8960
8962
  message.age_restricted = object.age_restricted ?? 0;
@@ -10463,6 +10465,7 @@ function createBaseUserProfileRedis(): UserProfileRedis {
10463
10465
  pubkey: "",
10464
10466
  mezon_id: "",
10465
10467
  app_token: "",
10468
+ app_url: "",
10466
10469
  };
10467
10470
  }
10468
10471
 
@@ -10513,6 +10516,9 @@ export const UserProfileRedis = {
10513
10516
  if (message.app_token !== "") {
10514
10517
  writer.uint32(122).string(message.app_token);
10515
10518
  }
10519
+ if (message.app_url !== "") {
10520
+ writer.uint32(130).string(message.app_url);
10521
+ }
10516
10522
  return writer;
10517
10523
  },
10518
10524
 
@@ -10628,6 +10634,13 @@ export const UserProfileRedis = {
10628
10634
 
10629
10635
  message.app_token = reader.string();
10630
10636
  continue;
10637
+ case 16:
10638
+ if (tag !== 130) {
10639
+ break;
10640
+ }
10641
+
10642
+ message.app_url = reader.string();
10643
+ continue;
10631
10644
  }
10632
10645
  if ((tag & 7) === 4 || tag === 0) {
10633
10646
  break;
@@ -10658,6 +10671,7 @@ export const UserProfileRedis = {
10658
10671
  pubkey: isSet(object.pubkey) ? globalThis.String(object.pubkey) : "",
10659
10672
  mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
10660
10673
  app_token: isSet(object.app_token) ? globalThis.String(object.app_token) : "",
10674
+ app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
10661
10675
  };
10662
10676
  },
10663
10677
 
@@ -10708,6 +10722,9 @@ export const UserProfileRedis = {
10708
10722
  if (message.app_token !== "") {
10709
10723
  obj.app_token = message.app_token;
10710
10724
  }
10725
+ if (message.app_url !== "") {
10726
+ obj.app_url = message.app_url;
10727
+ }
10711
10728
  return obj;
10712
10729
  },
10713
10730
 
@@ -10731,6 +10748,7 @@ export const UserProfileRedis = {
10731
10748
  message.pubkey = object.pubkey ?? "";
10732
10749
  message.mezon_id = object.mezon_id ?? "";
10733
10750
  message.app_token = object.app_token ?? "";
10751
+ message.app_url = object.app_url ?? "";
10734
10752
  return message;
10735
10753
  },
10736
10754
  };