mezon-js-protobuf 1.7.8 → 1.7.11

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.
@@ -820,7 +820,7 @@ export interface UserChannelRemoved {
820
820
  user_ids: string[];
821
821
  /** the channel type */
822
822
  channel_type: number;
823
- /** the clan id */
823
+ /** the clan_id */
824
824
  clan_id: string;
825
825
  }
826
826
  /** */
@@ -832,12 +832,20 @@ export interface UserClanRemoved {
832
832
  }
833
833
  /** clan updated event */
834
834
  export interface ClanUpdatedEvent {
835
- /** the clan id */
835
+ /** clan id */
836
836
  clan_id: string;
837
- /** the clan name */
837
+ /** clan name */
838
838
  clan_name: string;
839
- /** the clan logo */
840
- clan_logo: string;
839
+ /** logo */
840
+ logo: string;
841
+ /** banner */
842
+ banner: string;
843
+ /** status */
844
+ status: number;
845
+ /** is onboarding */
846
+ is_onboarding: boolean;
847
+ /** welcome channel id */
848
+ welcome_channel_id: string;
841
849
  }
842
850
  /** clan profile updated event */
843
851
  export interface ClanProfileUpdatedEvent {
@@ -1567,7 +1575,11 @@ export declare const Envelope: {
1567
1575
  clan_updated_event?: {
1568
1576
  clan_id?: string | undefined;
1569
1577
  clan_name?: string | undefined;
1570
- clan_logo?: string | undefined;
1578
+ logo?: string | undefined;
1579
+ banner?: string | undefined;
1580
+ status?: number | undefined;
1581
+ is_onboarding?: boolean | undefined;
1582
+ welcome_channel_id?: string | undefined;
1571
1583
  } | undefined;
1572
1584
  clan_profile_updated_event?: {
1573
1585
  user_id?: string | undefined;
@@ -3746,11 +3758,19 @@ export declare const Envelope: {
3746
3758
  clan_updated_event?: ({
3747
3759
  clan_id?: string | undefined;
3748
3760
  clan_name?: string | undefined;
3749
- clan_logo?: string | undefined;
3761
+ logo?: string | undefined;
3762
+ banner?: string | undefined;
3763
+ status?: number | undefined;
3764
+ is_onboarding?: boolean | undefined;
3765
+ welcome_channel_id?: string | undefined;
3750
3766
  } & {
3751
3767
  clan_id?: string | undefined;
3752
3768
  clan_name?: string | undefined;
3753
- clan_logo?: string | undefined;
3769
+ logo?: string | undefined;
3770
+ banner?: string | undefined;
3771
+ status?: number | undefined;
3772
+ is_onboarding?: boolean | undefined;
3773
+ welcome_channel_id?: string | undefined;
3754
3774
  } & { [K_106 in Exclude<keyof I["clan_updated_event"], keyof ClanUpdatedEvent>]: never; }) | undefined;
3755
3775
  clan_profile_updated_event?: ({
3756
3776
  user_id?: string | undefined;
@@ -5108,7 +5128,11 @@ export declare const Envelope: {
5108
5128
  clan_updated_event?: {
5109
5129
  clan_id?: string | undefined;
5110
5130
  clan_name?: string | undefined;
5111
- clan_logo?: string | undefined;
5131
+ logo?: string | undefined;
5132
+ banner?: string | undefined;
5133
+ status?: number | undefined;
5134
+ is_onboarding?: boolean | undefined;
5135
+ welcome_channel_id?: string | undefined;
5112
5136
  } | undefined;
5113
5137
  clan_profile_updated_event?: {
5114
5138
  user_id?: string | undefined;
@@ -7287,11 +7311,19 @@ export declare const Envelope: {
7287
7311
  clan_updated_event?: ({
7288
7312
  clan_id?: string | undefined;
7289
7313
  clan_name?: string | undefined;
7290
- clan_logo?: string | undefined;
7314
+ logo?: string | undefined;
7315
+ banner?: string | undefined;
7316
+ status?: number | undefined;
7317
+ is_onboarding?: boolean | undefined;
7318
+ welcome_channel_id?: string | undefined;
7291
7319
  } & {
7292
7320
  clan_id?: string | undefined;
7293
7321
  clan_name?: string | undefined;
7294
- clan_logo?: string | undefined;
7322
+ logo?: string | undefined;
7323
+ banner?: string | undefined;
7324
+ status?: number | undefined;
7325
+ is_onboarding?: boolean | undefined;
7326
+ welcome_channel_id?: string | undefined;
7295
7327
  } & { [K_275 in Exclude<keyof I_1["clan_updated_event"], keyof ClanUpdatedEvent>]: never; }) | undefined;
7296
7328
  clan_profile_updated_event?: ({
7297
7329
  user_id?: string | undefined;
@@ -13058,20 +13090,36 @@ export declare const ClanUpdatedEvent: {
13058
13090
  create<I extends {
13059
13091
  clan_id?: string | undefined;
13060
13092
  clan_name?: string | undefined;
13061
- clan_logo?: string | undefined;
13093
+ logo?: string | undefined;
13094
+ banner?: string | undefined;
13095
+ status?: number | undefined;
13096
+ is_onboarding?: boolean | undefined;
13097
+ welcome_channel_id?: string | undefined;
13062
13098
  } & {
13063
13099
  clan_id?: string | undefined;
13064
13100
  clan_name?: string | undefined;
13065
- clan_logo?: string | undefined;
13101
+ logo?: string | undefined;
13102
+ banner?: string | undefined;
13103
+ status?: number | undefined;
13104
+ is_onboarding?: boolean | undefined;
13105
+ welcome_channel_id?: string | undefined;
13066
13106
  } & { [K in Exclude<keyof I, keyof ClanUpdatedEvent>]: never; }>(base?: I | undefined): ClanUpdatedEvent;
13067
13107
  fromPartial<I_1 extends {
13068
13108
  clan_id?: string | undefined;
13069
13109
  clan_name?: string | undefined;
13070
- clan_logo?: string | undefined;
13110
+ logo?: string | undefined;
13111
+ banner?: string | undefined;
13112
+ status?: number | undefined;
13113
+ is_onboarding?: boolean | undefined;
13114
+ welcome_channel_id?: string | undefined;
13071
13115
  } & {
13072
13116
  clan_id?: string | undefined;
13073
13117
  clan_name?: string | undefined;
13074
- clan_logo?: string | undefined;
13118
+ logo?: string | undefined;
13119
+ banner?: string | undefined;
13120
+ status?: number | undefined;
13121
+ is_onboarding?: boolean | undefined;
13122
+ welcome_channel_id?: string | undefined;
13075
13123
  } & { [K_1 in Exclude<keyof I_1, keyof ClanUpdatedEvent>]: never; }>(object: I_1): ClanUpdatedEvent;
13076
13124
  };
13077
13125
  export declare const ClanProfileUpdatedEvent: {
@@ -13029,7 +13029,7 @@ var UserClanRemoved = {
13029
13029
  }
13030
13030
  };
13031
13031
  function createBaseClanUpdatedEvent() {
13032
- return { clan_id: "", clan_name: "", clan_logo: "" };
13032
+ return { clan_id: "", clan_name: "", logo: "", banner: "", status: 0, is_onboarding: false, welcome_channel_id: "" };
13033
13033
  }
13034
13034
  var ClanUpdatedEvent = {
13035
13035
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -13039,8 +13039,20 @@ var ClanUpdatedEvent = {
13039
13039
  if (message.clan_name !== "") {
13040
13040
  writer.uint32(18).string(message.clan_name);
13041
13041
  }
13042
- if (message.clan_logo !== "") {
13043
- writer.uint32(26).string(message.clan_logo);
13042
+ if (message.logo !== "") {
13043
+ writer.uint32(26).string(message.logo);
13044
+ }
13045
+ if (message.banner !== "") {
13046
+ writer.uint32(34).string(message.banner);
13047
+ }
13048
+ if (message.status !== 0) {
13049
+ writer.uint32(40).int32(message.status);
13050
+ }
13051
+ if (message.is_onboarding !== false) {
13052
+ writer.uint32(48).bool(message.is_onboarding);
13053
+ }
13054
+ if (message.welcome_channel_id !== "") {
13055
+ writer.uint32(58).string(message.welcome_channel_id);
13044
13056
  }
13045
13057
  return writer;
13046
13058
  },
@@ -13067,7 +13079,31 @@ var ClanUpdatedEvent = {
13067
13079
  if (tag !== 26) {
13068
13080
  break;
13069
13081
  }
13070
- message.clan_logo = reader.string();
13082
+ message.logo = reader.string();
13083
+ continue;
13084
+ case 4:
13085
+ if (tag !== 34) {
13086
+ break;
13087
+ }
13088
+ message.banner = reader.string();
13089
+ continue;
13090
+ case 5:
13091
+ if (tag !== 40) {
13092
+ break;
13093
+ }
13094
+ message.status = reader.int32();
13095
+ continue;
13096
+ case 6:
13097
+ if (tag !== 48) {
13098
+ break;
13099
+ }
13100
+ message.is_onboarding = reader.bool();
13101
+ continue;
13102
+ case 7:
13103
+ if (tag !== 58) {
13104
+ break;
13105
+ }
13106
+ message.welcome_channel_id = reader.string();
13071
13107
  continue;
13072
13108
  }
13073
13109
  if ((tag & 7) === 4 || tag === 0) {
@@ -13081,7 +13117,11 @@ var ClanUpdatedEvent = {
13081
13117
  return {
13082
13118
  clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
13083
13119
  clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : "",
13084
- clan_logo: isSet4(object.clan_logo) ? globalThis.String(object.clan_logo) : ""
13120
+ logo: isSet4(object.logo) ? globalThis.String(object.logo) : "",
13121
+ banner: isSet4(object.banner) ? globalThis.String(object.banner) : "",
13122
+ status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
13123
+ is_onboarding: isSet4(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
13124
+ welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : ""
13085
13125
  };
13086
13126
  },
13087
13127
  toJSON(message) {
@@ -13092,8 +13132,20 @@ var ClanUpdatedEvent = {
13092
13132
  if (message.clan_name !== "") {
13093
13133
  obj.clan_name = message.clan_name;
13094
13134
  }
13095
- if (message.clan_logo !== "") {
13096
- obj.clan_logo = message.clan_logo;
13135
+ if (message.logo !== "") {
13136
+ obj.logo = message.logo;
13137
+ }
13138
+ if (message.banner !== "") {
13139
+ obj.banner = message.banner;
13140
+ }
13141
+ if (message.status !== 0) {
13142
+ obj.status = Math.round(message.status);
13143
+ }
13144
+ if (message.is_onboarding !== false) {
13145
+ obj.is_onboarding = message.is_onboarding;
13146
+ }
13147
+ if (message.welcome_channel_id !== "") {
13148
+ obj.welcome_channel_id = message.welcome_channel_id;
13097
13149
  }
13098
13150
  return obj;
13099
13151
  },
@@ -13101,11 +13153,15 @@ var ClanUpdatedEvent = {
13101
13153
  return ClanUpdatedEvent.fromPartial(base != null ? base : {});
13102
13154
  },
13103
13155
  fromPartial(object) {
13104
- var _a, _b, _c;
13156
+ var _a, _b, _c, _d, _e, _f, _g;
13105
13157
  const message = createBaseClanUpdatedEvent();
13106
13158
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
13107
13159
  message.clan_name = (_b = object.clan_name) != null ? _b : "";
13108
- message.clan_logo = (_c = object.clan_logo) != null ? _c : "";
13160
+ message.logo = (_c = object.logo) != null ? _c : "";
13161
+ message.banner = (_d = object.banner) != null ? _d : "";
13162
+ message.status = (_e = object.status) != null ? _e : 0;
13163
+ message.is_onboarding = (_f = object.is_onboarding) != null ? _f : false;
13164
+ message.welcome_channel_id = (_g = object.welcome_channel_id) != null ? _g : "";
13109
13165
  return message;
13110
13166
  }
13111
13167
  };
@@ -13016,7 +13016,7 @@ var UserClanRemoved = {
13016
13016
  }
13017
13017
  };
13018
13018
  function createBaseClanUpdatedEvent() {
13019
- return { clan_id: "", clan_name: "", clan_logo: "" };
13019
+ return { clan_id: "", clan_name: "", logo: "", banner: "", status: 0, is_onboarding: false, welcome_channel_id: "" };
13020
13020
  }
13021
13021
  var ClanUpdatedEvent = {
13022
13022
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -13026,8 +13026,20 @@ var ClanUpdatedEvent = {
13026
13026
  if (message.clan_name !== "") {
13027
13027
  writer.uint32(18).string(message.clan_name);
13028
13028
  }
13029
- if (message.clan_logo !== "") {
13030
- writer.uint32(26).string(message.clan_logo);
13029
+ if (message.logo !== "") {
13030
+ writer.uint32(26).string(message.logo);
13031
+ }
13032
+ if (message.banner !== "") {
13033
+ writer.uint32(34).string(message.banner);
13034
+ }
13035
+ if (message.status !== 0) {
13036
+ writer.uint32(40).int32(message.status);
13037
+ }
13038
+ if (message.is_onboarding !== false) {
13039
+ writer.uint32(48).bool(message.is_onboarding);
13040
+ }
13041
+ if (message.welcome_channel_id !== "") {
13042
+ writer.uint32(58).string(message.welcome_channel_id);
13031
13043
  }
13032
13044
  return writer;
13033
13045
  },
@@ -13054,7 +13066,31 @@ var ClanUpdatedEvent = {
13054
13066
  if (tag !== 26) {
13055
13067
  break;
13056
13068
  }
13057
- message.clan_logo = reader.string();
13069
+ message.logo = reader.string();
13070
+ continue;
13071
+ case 4:
13072
+ if (tag !== 34) {
13073
+ break;
13074
+ }
13075
+ message.banner = reader.string();
13076
+ continue;
13077
+ case 5:
13078
+ if (tag !== 40) {
13079
+ break;
13080
+ }
13081
+ message.status = reader.int32();
13082
+ continue;
13083
+ case 6:
13084
+ if (tag !== 48) {
13085
+ break;
13086
+ }
13087
+ message.is_onboarding = reader.bool();
13088
+ continue;
13089
+ case 7:
13090
+ if (tag !== 58) {
13091
+ break;
13092
+ }
13093
+ message.welcome_channel_id = reader.string();
13058
13094
  continue;
13059
13095
  }
13060
13096
  if ((tag & 7) === 4 || tag === 0) {
@@ -13068,7 +13104,11 @@ var ClanUpdatedEvent = {
13068
13104
  return {
13069
13105
  clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
13070
13106
  clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : "",
13071
- clan_logo: isSet4(object.clan_logo) ? globalThis.String(object.clan_logo) : ""
13107
+ logo: isSet4(object.logo) ? globalThis.String(object.logo) : "",
13108
+ banner: isSet4(object.banner) ? globalThis.String(object.banner) : "",
13109
+ status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
13110
+ is_onboarding: isSet4(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
13111
+ welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : ""
13072
13112
  };
13073
13113
  },
13074
13114
  toJSON(message) {
@@ -13079,8 +13119,20 @@ var ClanUpdatedEvent = {
13079
13119
  if (message.clan_name !== "") {
13080
13120
  obj.clan_name = message.clan_name;
13081
13121
  }
13082
- if (message.clan_logo !== "") {
13083
- obj.clan_logo = message.clan_logo;
13122
+ if (message.logo !== "") {
13123
+ obj.logo = message.logo;
13124
+ }
13125
+ if (message.banner !== "") {
13126
+ obj.banner = message.banner;
13127
+ }
13128
+ if (message.status !== 0) {
13129
+ obj.status = Math.round(message.status);
13130
+ }
13131
+ if (message.is_onboarding !== false) {
13132
+ obj.is_onboarding = message.is_onboarding;
13133
+ }
13134
+ if (message.welcome_channel_id !== "") {
13135
+ obj.welcome_channel_id = message.welcome_channel_id;
13084
13136
  }
13085
13137
  return obj;
13086
13138
  },
@@ -13088,11 +13140,15 @@ var ClanUpdatedEvent = {
13088
13140
  return ClanUpdatedEvent.fromPartial(base != null ? base : {});
13089
13141
  },
13090
13142
  fromPartial(object) {
13091
- var _a, _b, _c;
13143
+ var _a, _b, _c, _d, _e, _f, _g;
13092
13144
  const message = createBaseClanUpdatedEvent();
13093
13145
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
13094
13146
  message.clan_name = (_b = object.clan_name) != null ? _b : "";
13095
- message.clan_logo = (_c = object.clan_logo) != null ? _c : "";
13147
+ message.logo = (_c = object.logo) != null ? _c : "";
13148
+ message.banner = (_d = object.banner) != null ? _d : "";
13149
+ message.status = (_e = object.status) != null ? _e : 0;
13150
+ message.is_onboarding = (_f = object.is_onboarding) != null ? _f : false;
13151
+ message.welcome_channel_id = (_g = object.welcome_channel_id) != null ? _g : "";
13096
13152
  return message;
13097
13153
  }
13098
13154
  };