mezon-js-protobuf 1.7.23 → 1.7.25

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.
@@ -13266,7 +13266,16 @@ var UserClanRemoved = {
13266
13266
  }
13267
13267
  };
13268
13268
  function createBaseClanUpdatedEvent() {
13269
- return { clan_id: "", clan_name: "", logo: "", banner: "", status: 0, is_onboarding: false, welcome_channel_id: "" };
13269
+ return {
13270
+ clan_id: "",
13271
+ clan_name: "",
13272
+ logo: "",
13273
+ banner: "",
13274
+ status: 0,
13275
+ is_onboarding: false,
13276
+ welcome_channel_id: "",
13277
+ onboarding_banner: ""
13278
+ };
13270
13279
  }
13271
13280
  var ClanUpdatedEvent = {
13272
13281
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -13291,6 +13300,9 @@ var ClanUpdatedEvent = {
13291
13300
  if (message.welcome_channel_id !== "") {
13292
13301
  writer.uint32(58).string(message.welcome_channel_id);
13293
13302
  }
13303
+ if (message.onboarding_banner !== "") {
13304
+ writer.uint32(66).string(message.onboarding_banner);
13305
+ }
13294
13306
  return writer;
13295
13307
  },
13296
13308
  decode(input, length) {
@@ -13342,6 +13354,12 @@ var ClanUpdatedEvent = {
13342
13354
  }
13343
13355
  message.welcome_channel_id = reader.string();
13344
13356
  continue;
13357
+ case 8:
13358
+ if (tag !== 66) {
13359
+ break;
13360
+ }
13361
+ message.onboarding_banner = reader.string();
13362
+ continue;
13345
13363
  }
13346
13364
  if ((tag & 7) === 4 || tag === 0) {
13347
13365
  break;
@@ -13358,7 +13376,8 @@ var ClanUpdatedEvent = {
13358
13376
  banner: isSet4(object.banner) ? globalThis.String(object.banner) : "",
13359
13377
  status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
13360
13378
  is_onboarding: isSet4(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
13361
- welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : ""
13379
+ welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
13380
+ onboarding_banner: isSet4(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : ""
13362
13381
  };
13363
13382
  },
13364
13383
  toJSON(message) {
@@ -13384,13 +13403,16 @@ var ClanUpdatedEvent = {
13384
13403
  if (message.welcome_channel_id !== "") {
13385
13404
  obj.welcome_channel_id = message.welcome_channel_id;
13386
13405
  }
13406
+ if (message.onboarding_banner !== "") {
13407
+ obj.onboarding_banner = message.onboarding_banner;
13408
+ }
13387
13409
  return obj;
13388
13410
  },
13389
13411
  create(base) {
13390
13412
  return ClanUpdatedEvent.fromPartial(base != null ? base : {});
13391
13413
  },
13392
13414
  fromPartial(object) {
13393
- var _a, _b, _c, _d, _e, _f, _g;
13415
+ var _a, _b, _c, _d, _e, _f, _g, _h;
13394
13416
  const message = createBaseClanUpdatedEvent();
13395
13417
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
13396
13418
  message.clan_name = (_b = object.clan_name) != null ? _b : "";
@@ -13399,6 +13421,7 @@ var ClanUpdatedEvent = {
13399
13421
  message.status = (_e = object.status) != null ? _e : 0;
13400
13422
  message.is_onboarding = (_f = object.is_onboarding) != null ? _f : false;
13401
13423
  message.welcome_channel_id = (_g = object.welcome_channel_id) != null ? _g : "";
13424
+ message.onboarding_banner = (_h = object.onboarding_banner) != null ? _h : "";
13402
13425
  return message;
13403
13426
  }
13404
13427
  };
@@ -13655,7 +13678,8 @@ function createBaseUserProfileRedis() {
13655
13678
  online: false,
13656
13679
  metadata: "",
13657
13680
  is_disabled: false,
13658
- joined_clans: []
13681
+ joined_clans: [],
13682
+ pubkey: ""
13659
13683
  };
13660
13684
  }
13661
13685
  var UserProfileRedis = {
@@ -13696,6 +13720,9 @@ var UserProfileRedis = {
13696
13720
  for (const v of message.joined_clans) {
13697
13721
  writer.uint32(98).string(v);
13698
13722
  }
13723
+ if (message.pubkey !== "") {
13724
+ writer.uint32(106).string(message.pubkey);
13725
+ }
13699
13726
  return writer;
13700
13727
  },
13701
13728
  decode(input, length) {
@@ -13777,6 +13804,12 @@ var UserProfileRedis = {
13777
13804
  }
13778
13805
  message.joined_clans.push(reader.string());
13779
13806
  continue;
13807
+ case 13:
13808
+ if (tag !== 106) {
13809
+ break;
13810
+ }
13811
+ message.pubkey = reader.string();
13812
+ continue;
13780
13813
  }
13781
13814
  if ((tag & 7) === 4 || tag === 0) {
13782
13815
  break;
@@ -13798,7 +13831,8 @@ var UserProfileRedis = {
13798
13831
  online: isSet4(object.online) ? globalThis.Boolean(object.online) : false,
13799
13832
  metadata: isSet4(object.metadata) ? globalThis.String(object.metadata) : "",
13800
13833
  is_disabled: isSet4(object.is_disabled) ? globalThis.Boolean(object.is_disabled) : false,
13801
- joined_clans: globalThis.Array.isArray(object == null ? void 0 : object.joined_clans) ? object.joined_clans.map((e) => globalThis.String(e)) : []
13834
+ joined_clans: globalThis.Array.isArray(object == null ? void 0 : object.joined_clans) ? object.joined_clans.map((e) => globalThis.String(e)) : [],
13835
+ pubkey: isSet4(object.pubkey) ? globalThis.String(object.pubkey) : ""
13802
13836
  };
13803
13837
  },
13804
13838
  toJSON(message) {
@@ -13840,13 +13874,16 @@ var UserProfileRedis = {
13840
13874
  if ((_b = message.joined_clans) == null ? void 0 : _b.length) {
13841
13875
  obj.joined_clans = message.joined_clans;
13842
13876
  }
13877
+ if (message.pubkey !== "") {
13878
+ obj.pubkey = message.pubkey;
13879
+ }
13843
13880
  return obj;
13844
13881
  },
13845
13882
  create(base) {
13846
13883
  return UserProfileRedis.fromPartial(base != null ? base : {});
13847
13884
  },
13848
13885
  fromPartial(object) {
13849
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
13886
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
13850
13887
  const message = createBaseUserProfileRedis();
13851
13888
  message.user_id = (_a = object.user_id) != null ? _a : "";
13852
13889
  message.username = (_b = object.username) != null ? _b : "";
@@ -13860,6 +13897,7 @@ var UserProfileRedis = {
13860
13897
  message.metadata = (_j = object.metadata) != null ? _j : "";
13861
13898
  message.is_disabled = (_k = object.is_disabled) != null ? _k : false;
13862
13899
  message.joined_clans = ((_l = object.joined_clans) == null ? void 0 : _l.map((e) => e)) || [];
13900
+ message.pubkey = (_m = object.pubkey) != null ? _m : "";
13863
13901
  return message;
13864
13902
  }
13865
13903
  };