mezon-js-protobuf 1.8.11 → 1.8.13

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.
package/api/api.ts CHANGED
@@ -2453,6 +2453,8 @@ export interface ClanEmoji {
2453
2453
  logo: string;
2454
2454
  /** clan name */
2455
2455
  clan_name: string;
2456
+ /** is for sale */
2457
+ is_for_sale: boolean;
2456
2458
  }
2457
2459
 
2458
2460
  export interface EmojiListedResponse {
@@ -2474,6 +2476,8 @@ export interface ClanSticker {
2474
2476
  logo: string;
2475
2477
  clan_name: string;
2476
2478
  media_type: number;
2479
+ /** is for sale */
2480
+ is_for_sale: boolean;
2477
2481
  }
2478
2482
 
2479
2483
  export interface AllUsersAddChannelRequest {
@@ -3320,6 +3324,10 @@ export interface UnlockItemRequest {
3320
3324
  item_type: number;
3321
3325
  }
3322
3326
 
3327
+ export interface UnlockedItemResponse {
3328
+ source: string;
3329
+ }
3330
+
3323
3331
  export interface ListOnboardingRequest {
3324
3332
  /** clan id */
3325
3333
  clan_id: string;
@@ -22720,7 +22728,17 @@ export const RegistrationEmailRequest_VarsEntry = {
22720
22728
  };
22721
22729
 
22722
22730
  function createBaseClanEmoji(): ClanEmoji {
22723
- return { id: "", src: "", shortname: "", category: "", creator_id: "", clan_id: "", logo: "", clan_name: "" };
22731
+ return {
22732
+ id: "",
22733
+ src: "",
22734
+ shortname: "",
22735
+ category: "",
22736
+ creator_id: "",
22737
+ clan_id: "",
22738
+ logo: "",
22739
+ clan_name: "",
22740
+ is_for_sale: false,
22741
+ };
22724
22742
  }
22725
22743
 
22726
22744
  export const ClanEmoji = {
@@ -22749,6 +22767,9 @@ export const ClanEmoji = {
22749
22767
  if (message.clan_name !== "") {
22750
22768
  writer.uint32(66).string(message.clan_name);
22751
22769
  }
22770
+ if (message.is_for_sale !== false) {
22771
+ writer.uint32(72).bool(message.is_for_sale);
22772
+ }
22752
22773
  return writer;
22753
22774
  },
22754
22775
 
@@ -22815,6 +22836,13 @@ export const ClanEmoji = {
22815
22836
 
22816
22837
  message.clan_name = reader.string();
22817
22838
  continue;
22839
+ case 9:
22840
+ if (tag !== 72) {
22841
+ break;
22842
+ }
22843
+
22844
+ message.is_for_sale = reader.bool();
22845
+ continue;
22818
22846
  }
22819
22847
  if ((tag & 7) === 4 || tag === 0) {
22820
22848
  break;
@@ -22834,6 +22862,7 @@ export const ClanEmoji = {
22834
22862
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
22835
22863
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
22836
22864
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
22865
+ is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
22837
22866
  };
22838
22867
  },
22839
22868
 
@@ -22863,6 +22892,9 @@ export const ClanEmoji = {
22863
22892
  if (message.clan_name !== "") {
22864
22893
  obj.clan_name = message.clan_name;
22865
22894
  }
22895
+ if (message.is_for_sale !== false) {
22896
+ obj.is_for_sale = message.is_for_sale;
22897
+ }
22866
22898
  return obj;
22867
22899
  },
22868
22900
 
@@ -22879,6 +22911,7 @@ export const ClanEmoji = {
22879
22911
  message.clan_id = object.clan_id ?? "";
22880
22912
  message.logo = object.logo ?? "";
22881
22913
  message.clan_name = object.clan_name ?? "";
22914
+ message.is_for_sale = object.is_for_sale ?? false;
22882
22915
  return message;
22883
22916
  },
22884
22917
  };
@@ -23017,6 +23050,7 @@ function createBaseClanSticker(): ClanSticker {
23017
23050
  logo: "",
23018
23051
  clan_name: "",
23019
23052
  media_type: 0,
23053
+ is_for_sale: false,
23020
23054
  };
23021
23055
  }
23022
23056
 
@@ -23052,6 +23086,9 @@ export const ClanSticker = {
23052
23086
  if (message.media_type !== 0) {
23053
23087
  writer.uint32(80).int32(message.media_type);
23054
23088
  }
23089
+ if (message.is_for_sale !== false) {
23090
+ writer.uint32(88).bool(message.is_for_sale);
23091
+ }
23055
23092
  return writer;
23056
23093
  },
23057
23094
 
@@ -23132,6 +23169,13 @@ export const ClanSticker = {
23132
23169
 
23133
23170
  message.media_type = reader.int32();
23134
23171
  continue;
23172
+ case 11:
23173
+ if (tag !== 88) {
23174
+ break;
23175
+ }
23176
+
23177
+ message.is_for_sale = reader.bool();
23178
+ continue;
23135
23179
  }
23136
23180
  if ((tag & 7) === 4 || tag === 0) {
23137
23181
  break;
@@ -23153,6 +23197,7 @@ export const ClanSticker = {
23153
23197
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
23154
23198
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
23155
23199
  media_type: isSet(object.media_type) ? globalThis.Number(object.media_type) : 0,
23200
+ is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
23156
23201
  };
23157
23202
  },
23158
23203
 
@@ -23188,6 +23233,9 @@ export const ClanSticker = {
23188
23233
  if (message.media_type !== 0) {
23189
23234
  obj.media_type = Math.round(message.media_type);
23190
23235
  }
23236
+ if (message.is_for_sale !== false) {
23237
+ obj.is_for_sale = message.is_for_sale;
23238
+ }
23191
23239
  return obj;
23192
23240
  },
23193
23241
 
@@ -23206,6 +23254,7 @@ export const ClanSticker = {
23206
23254
  message.logo = object.logo ?? "";
23207
23255
  message.clan_name = object.clan_name ?? "";
23208
23256
  message.media_type = object.media_type ?? 0;
23257
+ message.is_for_sale = object.is_for_sale ?? false;
23209
23258
  return message;
23210
23259
  },
23211
23260
  };
@@ -32144,6 +32193,63 @@ export const UnlockItemRequest = {
32144
32193
  },
32145
32194
  };
32146
32195
 
32196
+ function createBaseUnlockedItemResponse(): UnlockedItemResponse {
32197
+ return { source: "" };
32198
+ }
32199
+
32200
+ export const UnlockedItemResponse = {
32201
+ encode(message: UnlockedItemResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
32202
+ if (message.source !== "") {
32203
+ writer.uint32(10).string(message.source);
32204
+ }
32205
+ return writer;
32206
+ },
32207
+
32208
+ decode(input: _m0.Reader | Uint8Array, length?: number): UnlockedItemResponse {
32209
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
32210
+ let end = length === undefined ? reader.len : reader.pos + length;
32211
+ const message = createBaseUnlockedItemResponse();
32212
+ while (reader.pos < end) {
32213
+ const tag = reader.uint32();
32214
+ switch (tag >>> 3) {
32215
+ case 1:
32216
+ if (tag !== 10) {
32217
+ break;
32218
+ }
32219
+
32220
+ message.source = reader.string();
32221
+ continue;
32222
+ }
32223
+ if ((tag & 7) === 4 || tag === 0) {
32224
+ break;
32225
+ }
32226
+ reader.skipType(tag & 7);
32227
+ }
32228
+ return message;
32229
+ },
32230
+
32231
+ fromJSON(object: any): UnlockedItemResponse {
32232
+ return { source: isSet(object.source) ? globalThis.String(object.source) : "" };
32233
+ },
32234
+
32235
+ toJSON(message: UnlockedItemResponse): unknown {
32236
+ const obj: any = {};
32237
+ if (message.source !== "") {
32238
+ obj.source = message.source;
32239
+ }
32240
+ return obj;
32241
+ },
32242
+
32243
+ create<I extends Exact<DeepPartial<UnlockedItemResponse>, I>>(base?: I): UnlockedItemResponse {
32244
+ return UnlockedItemResponse.fromPartial(base ?? ({} as any));
32245
+ },
32246
+ fromPartial<I extends Exact<DeepPartial<UnlockedItemResponse>, I>>(object: I): UnlockedItemResponse {
32247
+ const message = createBaseUnlockedItemResponse();
32248
+ message.source = object.source ?? "";
32249
+ return message;
32250
+ },
32251
+ };
32252
+
32147
32253
  function createBaseListOnboardingRequest(): ListOnboardingRequest {
32148
32254
  return { clan_id: "", guide_type: undefined, limit: undefined, page: undefined };
32149
32255
  }
@@ -1919,6 +1919,8 @@ export interface ClanEmoji {
1919
1919
  logo: string;
1920
1920
  /** clan name */
1921
1921
  clan_name: string;
1922
+ /** is for sale */
1923
+ is_for_sale: boolean;
1922
1924
  }
1923
1925
  export interface EmojiListedResponse {
1924
1926
  emoji_list: ClanEmoji[];
@@ -1937,6 +1939,8 @@ export interface ClanSticker {
1937
1939
  logo: string;
1938
1940
  clan_name: string;
1939
1941
  media_type: number;
1942
+ /** is for sale */
1943
+ is_for_sale: boolean;
1940
1944
  }
1941
1945
  export interface AllUsersAddChannelRequest {
1942
1946
  channel_id: string;
@@ -2663,6 +2667,9 @@ export interface UnlockItemRequest {
2663
2667
  /** item type */
2664
2668
  item_type: number;
2665
2669
  }
2670
+ export interface UnlockedItemResponse {
2671
+ source: string;
2672
+ }
2666
2673
  export interface ListOnboardingRequest {
2667
2674
  /** clan id */
2668
2675
  clan_id: string;
@@ -15786,6 +15793,7 @@ export declare const ClanEmoji: {
15786
15793
  clan_id?: string | undefined;
15787
15794
  logo?: string | undefined;
15788
15795
  clan_name?: string | undefined;
15796
+ is_for_sale?: boolean | undefined;
15789
15797
  } & {
15790
15798
  id?: string | undefined;
15791
15799
  src?: string | undefined;
@@ -15795,6 +15803,7 @@ export declare const ClanEmoji: {
15795
15803
  clan_id?: string | undefined;
15796
15804
  logo?: string | undefined;
15797
15805
  clan_name?: string | undefined;
15806
+ is_for_sale?: boolean | undefined;
15798
15807
  } & { [K in Exclude<keyof I, keyof ClanEmoji>]: never; }>(base?: I | undefined): ClanEmoji;
15799
15808
  fromPartial<I_1 extends {
15800
15809
  id?: string | undefined;
@@ -15805,6 +15814,7 @@ export declare const ClanEmoji: {
15805
15814
  clan_id?: string | undefined;
15806
15815
  logo?: string | undefined;
15807
15816
  clan_name?: string | undefined;
15817
+ is_for_sale?: boolean | undefined;
15808
15818
  } & {
15809
15819
  id?: string | undefined;
15810
15820
  src?: string | undefined;
@@ -15814,6 +15824,7 @@ export declare const ClanEmoji: {
15814
15824
  clan_id?: string | undefined;
15815
15825
  logo?: string | undefined;
15816
15826
  clan_name?: string | undefined;
15827
+ is_for_sale?: boolean | undefined;
15817
15828
  } & { [K_1 in Exclude<keyof I_1, keyof ClanEmoji>]: never; }>(object: I_1): ClanEmoji;
15818
15829
  };
15819
15830
  export declare const EmojiListedResponse: {
@@ -15831,6 +15842,7 @@ export declare const EmojiListedResponse: {
15831
15842
  clan_id?: string | undefined;
15832
15843
  logo?: string | undefined;
15833
15844
  clan_name?: string | undefined;
15845
+ is_for_sale?: boolean | undefined;
15834
15846
  }[] | undefined;
15835
15847
  } & {
15836
15848
  emoji_list?: ({
@@ -15842,6 +15854,7 @@ export declare const EmojiListedResponse: {
15842
15854
  clan_id?: string | undefined;
15843
15855
  logo?: string | undefined;
15844
15856
  clan_name?: string | undefined;
15857
+ is_for_sale?: boolean | undefined;
15845
15858
  }[] & ({
15846
15859
  id?: string | undefined;
15847
15860
  src?: string | undefined;
@@ -15851,6 +15864,7 @@ export declare const EmojiListedResponse: {
15851
15864
  clan_id?: string | undefined;
15852
15865
  logo?: string | undefined;
15853
15866
  clan_name?: string | undefined;
15867
+ is_for_sale?: boolean | undefined;
15854
15868
  } & {
15855
15869
  id?: string | undefined;
15856
15870
  src?: string | undefined;
@@ -15860,6 +15874,7 @@ export declare const EmojiListedResponse: {
15860
15874
  clan_id?: string | undefined;
15861
15875
  logo?: string | undefined;
15862
15876
  clan_name?: string | undefined;
15877
+ is_for_sale?: boolean | undefined;
15863
15878
  } & { [K in Exclude<keyof I["emoji_list"][number], keyof ClanEmoji>]: never; })[] & { [K_1 in Exclude<keyof I["emoji_list"], keyof {
15864
15879
  id?: string | undefined;
15865
15880
  src?: string | undefined;
@@ -15869,6 +15884,7 @@ export declare const EmojiListedResponse: {
15869
15884
  clan_id?: string | undefined;
15870
15885
  logo?: string | undefined;
15871
15886
  clan_name?: string | undefined;
15887
+ is_for_sale?: boolean | undefined;
15872
15888
  }[]>]: never; }) | undefined;
15873
15889
  } & { [K_2 in Exclude<keyof I, "emoji_list">]: never; }>(base?: I | undefined): EmojiListedResponse;
15874
15890
  fromPartial<I_1 extends {
@@ -15881,6 +15897,7 @@ export declare const EmojiListedResponse: {
15881
15897
  clan_id?: string | undefined;
15882
15898
  logo?: string | undefined;
15883
15899
  clan_name?: string | undefined;
15900
+ is_for_sale?: boolean | undefined;
15884
15901
  }[] | undefined;
15885
15902
  } & {
15886
15903
  emoji_list?: ({
@@ -15892,6 +15909,7 @@ export declare const EmojiListedResponse: {
15892
15909
  clan_id?: string | undefined;
15893
15910
  logo?: string | undefined;
15894
15911
  clan_name?: string | undefined;
15912
+ is_for_sale?: boolean | undefined;
15895
15913
  }[] & ({
15896
15914
  id?: string | undefined;
15897
15915
  src?: string | undefined;
@@ -15901,6 +15919,7 @@ export declare const EmojiListedResponse: {
15901
15919
  clan_id?: string | undefined;
15902
15920
  logo?: string | undefined;
15903
15921
  clan_name?: string | undefined;
15922
+ is_for_sale?: boolean | undefined;
15904
15923
  } & {
15905
15924
  id?: string | undefined;
15906
15925
  src?: string | undefined;
@@ -15910,6 +15929,7 @@ export declare const EmojiListedResponse: {
15910
15929
  clan_id?: string | undefined;
15911
15930
  logo?: string | undefined;
15912
15931
  clan_name?: string | undefined;
15932
+ is_for_sale?: boolean | undefined;
15913
15933
  } & { [K_3 in Exclude<keyof I_1["emoji_list"][number], keyof ClanEmoji>]: never; })[] & { [K_4 in Exclude<keyof I_1["emoji_list"], keyof {
15914
15934
  id?: string | undefined;
15915
15935
  src?: string | undefined;
@@ -15919,6 +15939,7 @@ export declare const EmojiListedResponse: {
15919
15939
  clan_id?: string | undefined;
15920
15940
  logo?: string | undefined;
15921
15941
  clan_name?: string | undefined;
15942
+ is_for_sale?: boolean | undefined;
15922
15943
  }[]>]: never; }) | undefined;
15923
15944
  } & { [K_5 in Exclude<keyof I_1, "emoji_list">]: never; }>(object: I_1): EmojiListedResponse;
15924
15945
  };
@@ -15939,6 +15960,7 @@ export declare const StickerListedResponse: {
15939
15960
  logo?: string | undefined;
15940
15961
  clan_name?: string | undefined;
15941
15962
  media_type?: number | undefined;
15963
+ is_for_sale?: boolean | undefined;
15942
15964
  }[] | undefined;
15943
15965
  } & {
15944
15966
  stickers?: ({
@@ -15952,6 +15974,7 @@ export declare const StickerListedResponse: {
15952
15974
  logo?: string | undefined;
15953
15975
  clan_name?: string | undefined;
15954
15976
  media_type?: number | undefined;
15977
+ is_for_sale?: boolean | undefined;
15955
15978
  }[] & ({
15956
15979
  id?: string | undefined;
15957
15980
  source?: string | undefined;
@@ -15963,6 +15986,7 @@ export declare const StickerListedResponse: {
15963
15986
  logo?: string | undefined;
15964
15987
  clan_name?: string | undefined;
15965
15988
  media_type?: number | undefined;
15989
+ is_for_sale?: boolean | undefined;
15966
15990
  } & {
15967
15991
  id?: string | undefined;
15968
15992
  source?: string | undefined;
@@ -15974,6 +15998,7 @@ export declare const StickerListedResponse: {
15974
15998
  logo?: string | undefined;
15975
15999
  clan_name?: string | undefined;
15976
16000
  media_type?: number | undefined;
16001
+ is_for_sale?: boolean | undefined;
15977
16002
  } & { [K in Exclude<keyof I["stickers"][number], keyof ClanSticker>]: never; })[] & { [K_1 in Exclude<keyof I["stickers"], keyof {
15978
16003
  id?: string | undefined;
15979
16004
  source?: string | undefined;
@@ -15985,6 +16010,7 @@ export declare const StickerListedResponse: {
15985
16010
  logo?: string | undefined;
15986
16011
  clan_name?: string | undefined;
15987
16012
  media_type?: number | undefined;
16013
+ is_for_sale?: boolean | undefined;
15988
16014
  }[]>]: never; }) | undefined;
15989
16015
  } & { [K_2 in Exclude<keyof I, "stickers">]: never; }>(base?: I | undefined): StickerListedResponse;
15990
16016
  fromPartial<I_1 extends {
@@ -15999,6 +16025,7 @@ export declare const StickerListedResponse: {
15999
16025
  logo?: string | undefined;
16000
16026
  clan_name?: string | undefined;
16001
16027
  media_type?: number | undefined;
16028
+ is_for_sale?: boolean | undefined;
16002
16029
  }[] | undefined;
16003
16030
  } & {
16004
16031
  stickers?: ({
@@ -16012,6 +16039,7 @@ export declare const StickerListedResponse: {
16012
16039
  logo?: string | undefined;
16013
16040
  clan_name?: string | undefined;
16014
16041
  media_type?: number | undefined;
16042
+ is_for_sale?: boolean | undefined;
16015
16043
  }[] & ({
16016
16044
  id?: string | undefined;
16017
16045
  source?: string | undefined;
@@ -16023,6 +16051,7 @@ export declare const StickerListedResponse: {
16023
16051
  logo?: string | undefined;
16024
16052
  clan_name?: string | undefined;
16025
16053
  media_type?: number | undefined;
16054
+ is_for_sale?: boolean | undefined;
16026
16055
  } & {
16027
16056
  id?: string | undefined;
16028
16057
  source?: string | undefined;
@@ -16034,6 +16063,7 @@ export declare const StickerListedResponse: {
16034
16063
  logo?: string | undefined;
16035
16064
  clan_name?: string | undefined;
16036
16065
  media_type?: number | undefined;
16066
+ is_for_sale?: boolean | undefined;
16037
16067
  } & { [K_3 in Exclude<keyof I_1["stickers"][number], keyof ClanSticker>]: never; })[] & { [K_4 in Exclude<keyof I_1["stickers"], keyof {
16038
16068
  id?: string | undefined;
16039
16069
  source?: string | undefined;
@@ -16045,6 +16075,7 @@ export declare const StickerListedResponse: {
16045
16075
  logo?: string | undefined;
16046
16076
  clan_name?: string | undefined;
16047
16077
  media_type?: number | undefined;
16078
+ is_for_sale?: boolean | undefined;
16048
16079
  }[]>]: never; }) | undefined;
16049
16080
  } & { [K_5 in Exclude<keyof I_1, "stickers">]: never; }>(object: I_1): StickerListedResponse;
16050
16081
  };
@@ -16064,6 +16095,7 @@ export declare const ClanSticker: {
16064
16095
  logo?: string | undefined;
16065
16096
  clan_name?: string | undefined;
16066
16097
  media_type?: number | undefined;
16098
+ is_for_sale?: boolean | undefined;
16067
16099
  } & {
16068
16100
  id?: string | undefined;
16069
16101
  source?: string | undefined;
@@ -16075,6 +16107,7 @@ export declare const ClanSticker: {
16075
16107
  logo?: string | undefined;
16076
16108
  clan_name?: string | undefined;
16077
16109
  media_type?: number | undefined;
16110
+ is_for_sale?: boolean | undefined;
16078
16111
  } & { [K in Exclude<keyof I, keyof ClanSticker>]: never; }>(base?: I | undefined): ClanSticker;
16079
16112
  fromPartial<I_1 extends {
16080
16113
  id?: string | undefined;
@@ -16087,6 +16120,7 @@ export declare const ClanSticker: {
16087
16120
  logo?: string | undefined;
16088
16121
  clan_name?: string | undefined;
16089
16122
  media_type?: number | undefined;
16123
+ is_for_sale?: boolean | undefined;
16090
16124
  } & {
16091
16125
  id?: string | undefined;
16092
16126
  source?: string | undefined;
@@ -16098,6 +16132,7 @@ export declare const ClanSticker: {
16098
16132
  logo?: string | undefined;
16099
16133
  clan_name?: string | undefined;
16100
16134
  media_type?: number | undefined;
16135
+ is_for_sale?: boolean | undefined;
16101
16136
  } & { [K_1 in Exclude<keyof I_1, keyof ClanSticker>]: never; }>(object: I_1): ClanSticker;
16102
16137
  };
16103
16138
  export declare const AllUsersAddChannelRequest: {
@@ -20610,6 +20645,22 @@ export declare const UnlockItemRequest: {
20610
20645
  item_type?: number | undefined;
20611
20646
  } & { [K_1 in Exclude<keyof I_1, keyof UnlockItemRequest>]: never; }>(object: I_1): UnlockItemRequest;
20612
20647
  };
20648
+ export declare const UnlockedItemResponse: {
20649
+ encode(message: UnlockedItemResponse, writer?: _m0.Writer): _m0.Writer;
20650
+ decode(input: _m0.Reader | Uint8Array, length?: number): UnlockedItemResponse;
20651
+ fromJSON(object: any): UnlockedItemResponse;
20652
+ toJSON(message: UnlockedItemResponse): unknown;
20653
+ create<I extends {
20654
+ source?: string | undefined;
20655
+ } & {
20656
+ source?: string | undefined;
20657
+ } & { [K in Exclude<keyof I, "source">]: never; }>(base?: I | undefined): UnlockedItemResponse;
20658
+ fromPartial<I_1 extends {
20659
+ source?: string | undefined;
20660
+ } & {
20661
+ source?: string | undefined;
20662
+ } & { [K_1 in Exclude<keyof I_1, "source">]: never; }>(object: I_1): UnlockedItemResponse;
20663
+ };
20613
20664
  export declare const ListOnboardingRequest: {
20614
20665
  encode(message: ListOnboardingRequest, writer?: _m0.Writer): _m0.Writer;
20615
20666
  decode(input: _m0.Reader | Uint8Array, length?: number): ListOnboardingRequest;
@@ -364,6 +364,8 @@ export interface VoiceReactionSend {
364
364
  channel_id: string;
365
365
  /** sender id */
366
366
  sender_id: string;
367
+ /** type */
368
+ media_type: number;
367
369
  }
368
370
  export interface MarkAsRead {
369
371
  /** channel id */
@@ -807,6 +809,8 @@ export interface ChannelUpdatedEvent {
807
809
  age_restricted: number;
808
810
  /** */
809
811
  active: number;
812
+ /** count message unread */
813
+ count_mess_unread: number;
810
814
  }
811
815
  /** Stop receiving status updates for some set of users. */
812
816
  export interface StatusUnfollow {
@@ -1591,6 +1595,7 @@ export declare const Envelope: {
1591
1595
  topic?: string | undefined;
1592
1596
  age_restricted?: number | undefined;
1593
1597
  active?: number | undefined;
1598
+ count_mess_unread?: number | undefined;
1594
1599
  } | undefined;
1595
1600
  last_pin_message_event?: {
1596
1601
  clan_id?: string | undefined;
@@ -2190,6 +2195,7 @@ export declare const Envelope: {
2190
2195
  emojis?: string[] | undefined;
2191
2196
  channel_id?: string | undefined;
2192
2197
  sender_id?: string | undefined;
2198
+ media_type?: number | undefined;
2193
2199
  } | undefined;
2194
2200
  mark_as_read?: {
2195
2201
  channel_id?: string | undefined;
@@ -3684,6 +3690,7 @@ export declare const Envelope: {
3684
3690
  topic?: string | undefined;
3685
3691
  age_restricted?: number | undefined;
3686
3692
  active?: number | undefined;
3693
+ count_mess_unread?: number | undefined;
3687
3694
  } & {
3688
3695
  clan_id?: string | undefined;
3689
3696
  category_id?: string | undefined;
@@ -3701,6 +3708,7 @@ export declare const Envelope: {
3701
3708
  topic?: string | undefined;
3702
3709
  age_restricted?: number | undefined;
3703
3710
  active?: number | undefined;
3711
+ count_mess_unread?: number | undefined;
3704
3712
  } & { [K_79 in Exclude<keyof I["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
3705
3713
  last_pin_message_event?: ({
3706
3714
  clan_id?: string | undefined;
@@ -5425,10 +5433,12 @@ export declare const Envelope: {
5425
5433
  emojis?: string[] | undefined;
5426
5434
  channel_id?: string | undefined;
5427
5435
  sender_id?: string | undefined;
5436
+ media_type?: number | undefined;
5428
5437
  } & {
5429
5438
  emojis?: (string[] & string[] & { [K_191 in Exclude<keyof I["voice_reaction_send"]["emojis"], keyof string[]>]: never; }) | undefined;
5430
5439
  channel_id?: string | undefined;
5431
5440
  sender_id?: string | undefined;
5441
+ media_type?: number | undefined;
5432
5442
  } & { [K_192 in Exclude<keyof I["voice_reaction_send"], keyof VoiceReactionSend>]: never; }) | undefined;
5433
5443
  mark_as_read?: ({
5434
5444
  channel_id?: string | undefined;
@@ -5895,6 +5905,7 @@ export declare const Envelope: {
5895
5905
  topic?: string | undefined;
5896
5906
  age_restricted?: number | undefined;
5897
5907
  active?: number | undefined;
5908
+ count_mess_unread?: number | undefined;
5898
5909
  } | undefined;
5899
5910
  last_pin_message_event?: {
5900
5911
  clan_id?: string | undefined;
@@ -6494,6 +6505,7 @@ export declare const Envelope: {
6494
6505
  emojis?: string[] | undefined;
6495
6506
  channel_id?: string | undefined;
6496
6507
  sender_id?: string | undefined;
6508
+ media_type?: number | undefined;
6497
6509
  } | undefined;
6498
6510
  mark_as_read?: {
6499
6511
  channel_id?: string | undefined;
@@ -7988,6 +8000,7 @@ export declare const Envelope: {
7988
8000
  topic?: string | undefined;
7989
8001
  age_restricted?: number | undefined;
7990
8002
  active?: number | undefined;
8003
+ count_mess_unread?: number | undefined;
7991
8004
  } & {
7992
8005
  clan_id?: string | undefined;
7993
8006
  category_id?: string | undefined;
@@ -8005,6 +8018,7 @@ export declare const Envelope: {
8005
8018
  topic?: string | undefined;
8006
8019
  age_restricted?: number | undefined;
8007
8020
  active?: number | undefined;
8021
+ count_mess_unread?: number | undefined;
8008
8022
  } & { [K_274 in Exclude<keyof I_1["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
8009
8023
  last_pin_message_event?: ({
8010
8024
  clan_id?: string | undefined;
@@ -9729,10 +9743,12 @@ export declare const Envelope: {
9729
9743
  emojis?: string[] | undefined;
9730
9744
  channel_id?: string | undefined;
9731
9745
  sender_id?: string | undefined;
9746
+ media_type?: number | undefined;
9732
9747
  } & {
9733
9748
  emojis?: (string[] & string[] & { [K_386 in Exclude<keyof I_1["voice_reaction_send"]["emojis"], keyof string[]>]: never; }) | undefined;
9734
9749
  channel_id?: string | undefined;
9735
9750
  sender_id?: string | undefined;
9751
+ media_type?: number | undefined;
9736
9752
  } & { [K_387 in Exclude<keyof I_1["voice_reaction_send"], keyof VoiceReactionSend>]: never; }) | undefined;
9737
9753
  mark_as_read?: ({
9738
9754
  channel_id?: string | undefined;
@@ -11052,19 +11068,23 @@ export declare const VoiceReactionSend: {
11052
11068
  emojis?: string[] | undefined;
11053
11069
  channel_id?: string | undefined;
11054
11070
  sender_id?: string | undefined;
11071
+ media_type?: number | undefined;
11055
11072
  } & {
11056
11073
  emojis?: (string[] & string[] & { [K in Exclude<keyof I["emojis"], keyof string[]>]: never; }) | undefined;
11057
11074
  channel_id?: string | undefined;
11058
11075
  sender_id?: string | undefined;
11076
+ media_type?: number | undefined;
11059
11077
  } & { [K_1 in Exclude<keyof I, keyof VoiceReactionSend>]: never; }>(base?: I | undefined): VoiceReactionSend;
11060
11078
  fromPartial<I_1 extends {
11061
11079
  emojis?: string[] | undefined;
11062
11080
  channel_id?: string | undefined;
11063
11081
  sender_id?: string | undefined;
11082
+ media_type?: number | undefined;
11064
11083
  } & {
11065
11084
  emojis?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["emojis"], keyof string[]>]: never; }) | undefined;
11066
11085
  channel_id?: string | undefined;
11067
11086
  sender_id?: string | undefined;
11087
+ media_type?: number | undefined;
11068
11088
  } & { [K_3 in Exclude<keyof I_1, keyof VoiceReactionSend>]: never; }>(object: I_1): VoiceReactionSend;
11069
11089
  };
11070
11090
  export declare const MarkAsRead: {
@@ -14153,6 +14173,7 @@ export declare const ChannelUpdatedEvent: {
14153
14173
  topic?: string | undefined;
14154
14174
  age_restricted?: number | undefined;
14155
14175
  active?: number | undefined;
14176
+ count_mess_unread?: number | undefined;
14156
14177
  } & {
14157
14178
  clan_id?: string | undefined;
14158
14179
  category_id?: string | undefined;
@@ -14170,6 +14191,7 @@ export declare const ChannelUpdatedEvent: {
14170
14191
  topic?: string | undefined;
14171
14192
  age_restricted?: number | undefined;
14172
14193
  active?: number | undefined;
14194
+ count_mess_unread?: number | undefined;
14173
14195
  } & { [K in Exclude<keyof I, keyof ChannelUpdatedEvent>]: never; }>(base?: I | undefined): ChannelUpdatedEvent;
14174
14196
  fromPartial<I_1 extends {
14175
14197
  clan_id?: string | undefined;
@@ -14188,6 +14210,7 @@ export declare const ChannelUpdatedEvent: {
14188
14210
  topic?: string | undefined;
14189
14211
  age_restricted?: number | undefined;
14190
14212
  active?: number | undefined;
14213
+ count_mess_unread?: number | undefined;
14191
14214
  } & {
14192
14215
  clan_id?: string | undefined;
14193
14216
  category_id?: string | undefined;
@@ -14205,6 +14228,7 @@ export declare const ChannelUpdatedEvent: {
14205
14228
  topic?: string | undefined;
14206
14229
  age_restricted?: number | undefined;
14207
14230
  active?: number | undefined;
14231
+ count_mess_unread?: number | undefined;
14208
14232
  } & { [K_1 in Exclude<keyof I_1, keyof ChannelUpdatedEvent>]: never; }>(object: I_1): ChannelUpdatedEvent;
14209
14233
  };
14210
14234
  export declare const StatusUnfollow: {
@@ -9168,7 +9168,7 @@ var EphemeralMessageSend = {
9168
9168
  }
9169
9169
  };
9170
9170
  function createBaseVoiceReactionSend() {
9171
- return { emojis: [], channel_id: "", sender_id: "" };
9171
+ return { emojis: [], channel_id: "", sender_id: "", media_type: 0 };
9172
9172
  }
9173
9173
  var VoiceReactionSend = {
9174
9174
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -9181,6 +9181,9 @@ var VoiceReactionSend = {
9181
9181
  if (message.sender_id !== "") {
9182
9182
  writer.uint32(26).string(message.sender_id);
9183
9183
  }
9184
+ if (message.media_type !== 0) {
9185
+ writer.uint32(32).int32(message.media_type);
9186
+ }
9184
9187
  return writer;
9185
9188
  },
9186
9189
  decode(input, length) {
@@ -9208,6 +9211,12 @@ var VoiceReactionSend = {
9208
9211
  }
9209
9212
  message.sender_id = reader.string();
9210
9213
  continue;
9214
+ case 4:
9215
+ if (tag !== 32) {
9216
+ break;
9217
+ }
9218
+ message.media_type = reader.int32();
9219
+ continue;
9211
9220
  }
9212
9221
  if ((tag & 7) === 4 || tag === 0) {
9213
9222
  break;
@@ -9220,7 +9229,8 @@ var VoiceReactionSend = {
9220
9229
  return {
9221
9230
  emojis: globalThis.Array.isArray(object == null ? void 0 : object.emojis) ? object.emojis.map((e) => globalThis.String(e)) : [],
9222
9231
  channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
9223
- sender_id: isSet4(object.sender_id) ? globalThis.String(object.sender_id) : ""
9232
+ sender_id: isSet4(object.sender_id) ? globalThis.String(object.sender_id) : "",
9233
+ media_type: isSet4(object.media_type) ? globalThis.Number(object.media_type) : 0
9224
9234
  };
9225
9235
  },
9226
9236
  toJSON(message) {
@@ -9235,17 +9245,21 @@ var VoiceReactionSend = {
9235
9245
  if (message.sender_id !== "") {
9236
9246
  obj.sender_id = message.sender_id;
9237
9247
  }
9248
+ if (message.media_type !== 0) {
9249
+ obj.media_type = Math.round(message.media_type);
9250
+ }
9238
9251
  return obj;
9239
9252
  },
9240
9253
  create(base) {
9241
9254
  return VoiceReactionSend.fromPartial(base != null ? base : {});
9242
9255
  },
9243
9256
  fromPartial(object) {
9244
- var _a, _b, _c;
9257
+ var _a, _b, _c, _d;
9245
9258
  const message = createBaseVoiceReactionSend();
9246
9259
  message.emojis = ((_a = object.emojis) == null ? void 0 : _a.map((e) => e)) || [];
9247
9260
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
9248
9261
  message.sender_id = (_c = object.sender_id) != null ? _c : "";
9262
+ message.media_type = (_d = object.media_type) != null ? _d : 0;
9249
9263
  return message;
9250
9264
  }
9251
9265
  };
@@ -12834,7 +12848,8 @@ function createBaseChannelUpdatedEvent() {
12834
12848
  e2ee: 0,
12835
12849
  topic: "",
12836
12850
  age_restricted: 0,
12837
- active: 0
12851
+ active: 0,
12852
+ count_mess_unread: 0
12838
12853
  };
12839
12854
  }
12840
12855
  var ChannelUpdatedEvent = {
@@ -12887,6 +12902,9 @@ var ChannelUpdatedEvent = {
12887
12902
  if (message.active !== 0) {
12888
12903
  writer.uint32(128).int32(message.active);
12889
12904
  }
12905
+ if (message.count_mess_unread !== 0) {
12906
+ writer.uint32(136).int32(message.count_mess_unread);
12907
+ }
12890
12908
  return writer;
12891
12909
  },
12892
12910
  decode(input, length) {
@@ -12992,6 +13010,12 @@ var ChannelUpdatedEvent = {
12992
13010
  }
12993
13011
  message.active = reader.int32();
12994
13012
  continue;
13013
+ case 17:
13014
+ if (tag !== 136) {
13015
+ break;
13016
+ }
13017
+ message.count_mess_unread = reader.int32();
13018
+ continue;
12995
13019
  }
12996
13020
  if ((tag & 7) === 4 || tag === 0) {
12997
13021
  break;
@@ -13017,7 +13041,8 @@ var ChannelUpdatedEvent = {
13017
13041
  e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
13018
13042
  topic: isSet4(object.topic) ? globalThis.String(object.topic) : "",
13019
13043
  age_restricted: isSet4(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
13020
- active: isSet4(object.active) ? globalThis.Number(object.active) : 0
13044
+ active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
13045
+ count_mess_unread: isSet4(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0
13021
13046
  };
13022
13047
  },
13023
13048
  toJSON(message) {
@@ -13070,13 +13095,16 @@ var ChannelUpdatedEvent = {
13070
13095
  if (message.active !== 0) {
13071
13096
  obj.active = Math.round(message.active);
13072
13097
  }
13098
+ if (message.count_mess_unread !== 0) {
13099
+ obj.count_mess_unread = Math.round(message.count_mess_unread);
13100
+ }
13073
13101
  return obj;
13074
13102
  },
13075
13103
  create(base) {
13076
13104
  return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
13077
13105
  },
13078
13106
  fromPartial(object) {
13079
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
13107
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
13080
13108
  const message = createBaseChannelUpdatedEvent();
13081
13109
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
13082
13110
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -13094,6 +13122,7 @@ var ChannelUpdatedEvent = {
13094
13122
  message.topic = (_n = object.topic) != null ? _n : "";
13095
13123
  message.age_restricted = (_o = object.age_restricted) != null ? _o : 0;
13096
13124
  message.active = (_p = object.active) != null ? _p : 0;
13125
+ message.count_mess_unread = (_q = object.count_mess_unread) != null ? _q : 0;
13097
13126
  return message;
13098
13127
  }
13099
13128
  };
@@ -9155,7 +9155,7 @@ var EphemeralMessageSend = {
9155
9155
  }
9156
9156
  };
9157
9157
  function createBaseVoiceReactionSend() {
9158
- return { emojis: [], channel_id: "", sender_id: "" };
9158
+ return { emojis: [], channel_id: "", sender_id: "", media_type: 0 };
9159
9159
  }
9160
9160
  var VoiceReactionSend = {
9161
9161
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -9168,6 +9168,9 @@ var VoiceReactionSend = {
9168
9168
  if (message.sender_id !== "") {
9169
9169
  writer.uint32(26).string(message.sender_id);
9170
9170
  }
9171
+ if (message.media_type !== 0) {
9172
+ writer.uint32(32).int32(message.media_type);
9173
+ }
9171
9174
  return writer;
9172
9175
  },
9173
9176
  decode(input, length) {
@@ -9195,6 +9198,12 @@ var VoiceReactionSend = {
9195
9198
  }
9196
9199
  message.sender_id = reader.string();
9197
9200
  continue;
9201
+ case 4:
9202
+ if (tag !== 32) {
9203
+ break;
9204
+ }
9205
+ message.media_type = reader.int32();
9206
+ continue;
9198
9207
  }
9199
9208
  if ((tag & 7) === 4 || tag === 0) {
9200
9209
  break;
@@ -9207,7 +9216,8 @@ var VoiceReactionSend = {
9207
9216
  return {
9208
9217
  emojis: globalThis.Array.isArray(object == null ? void 0 : object.emojis) ? object.emojis.map((e) => globalThis.String(e)) : [],
9209
9218
  channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
9210
- sender_id: isSet4(object.sender_id) ? globalThis.String(object.sender_id) : ""
9219
+ sender_id: isSet4(object.sender_id) ? globalThis.String(object.sender_id) : "",
9220
+ media_type: isSet4(object.media_type) ? globalThis.Number(object.media_type) : 0
9211
9221
  };
9212
9222
  },
9213
9223
  toJSON(message) {
@@ -9222,17 +9232,21 @@ var VoiceReactionSend = {
9222
9232
  if (message.sender_id !== "") {
9223
9233
  obj.sender_id = message.sender_id;
9224
9234
  }
9235
+ if (message.media_type !== 0) {
9236
+ obj.media_type = Math.round(message.media_type);
9237
+ }
9225
9238
  return obj;
9226
9239
  },
9227
9240
  create(base) {
9228
9241
  return VoiceReactionSend.fromPartial(base != null ? base : {});
9229
9242
  },
9230
9243
  fromPartial(object) {
9231
- var _a, _b, _c;
9244
+ var _a, _b, _c, _d;
9232
9245
  const message = createBaseVoiceReactionSend();
9233
9246
  message.emojis = ((_a = object.emojis) == null ? void 0 : _a.map((e) => e)) || [];
9234
9247
  message.channel_id = (_b = object.channel_id) != null ? _b : "";
9235
9248
  message.sender_id = (_c = object.sender_id) != null ? _c : "";
9249
+ message.media_type = (_d = object.media_type) != null ? _d : 0;
9236
9250
  return message;
9237
9251
  }
9238
9252
  };
@@ -12821,7 +12835,8 @@ function createBaseChannelUpdatedEvent() {
12821
12835
  e2ee: 0,
12822
12836
  topic: "",
12823
12837
  age_restricted: 0,
12824
- active: 0
12838
+ active: 0,
12839
+ count_mess_unread: 0
12825
12840
  };
12826
12841
  }
12827
12842
  var ChannelUpdatedEvent = {
@@ -12874,6 +12889,9 @@ var ChannelUpdatedEvent = {
12874
12889
  if (message.active !== 0) {
12875
12890
  writer.uint32(128).int32(message.active);
12876
12891
  }
12892
+ if (message.count_mess_unread !== 0) {
12893
+ writer.uint32(136).int32(message.count_mess_unread);
12894
+ }
12877
12895
  return writer;
12878
12896
  },
12879
12897
  decode(input, length) {
@@ -12979,6 +12997,12 @@ var ChannelUpdatedEvent = {
12979
12997
  }
12980
12998
  message.active = reader.int32();
12981
12999
  continue;
13000
+ case 17:
13001
+ if (tag !== 136) {
13002
+ break;
13003
+ }
13004
+ message.count_mess_unread = reader.int32();
13005
+ continue;
12982
13006
  }
12983
13007
  if ((tag & 7) === 4 || tag === 0) {
12984
13008
  break;
@@ -13004,7 +13028,8 @@ var ChannelUpdatedEvent = {
13004
13028
  e2ee: isSet4(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
13005
13029
  topic: isSet4(object.topic) ? globalThis.String(object.topic) : "",
13006
13030
  age_restricted: isSet4(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
13007
- active: isSet4(object.active) ? globalThis.Number(object.active) : 0
13031
+ active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
13032
+ count_mess_unread: isSet4(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0
13008
13033
  };
13009
13034
  },
13010
13035
  toJSON(message) {
@@ -13057,13 +13082,16 @@ var ChannelUpdatedEvent = {
13057
13082
  if (message.active !== 0) {
13058
13083
  obj.active = Math.round(message.active);
13059
13084
  }
13085
+ if (message.count_mess_unread !== 0) {
13086
+ obj.count_mess_unread = Math.round(message.count_mess_unread);
13087
+ }
13060
13088
  return obj;
13061
13089
  },
13062
13090
  create(base) {
13063
13091
  return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
13064
13092
  },
13065
13093
  fromPartial(object) {
13066
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
13094
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
13067
13095
  const message = createBaseChannelUpdatedEvent();
13068
13096
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
13069
13097
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -13081,6 +13109,7 @@ var ChannelUpdatedEvent = {
13081
13109
  message.topic = (_n = object.topic) != null ? _n : "";
13082
13110
  message.age_restricted = (_o = object.age_restricted) != null ? _o : 0;
13083
13111
  message.active = (_p = object.active) != null ? _p : 0;
13112
+ message.count_mess_unread = (_q = object.count_mess_unread) != null ? _q : 0;
13084
13113
  return message;
13085
13114
  }
13086
13115
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.11",
3
+ "version": "1.8.13",
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
@@ -584,6 +584,8 @@ export interface VoiceReactionSend {
584
584
  channel_id: string;
585
585
  /** sender id */
586
586
  sender_id: string;
587
+ /** type */
588
+ media_type: number;
587
589
  }
588
590
 
589
591
  export interface MarkAsRead {
@@ -1120,6 +1122,8 @@ export interface ChannelUpdatedEvent {
1120
1122
  age_restricted: number;
1121
1123
  /** */
1122
1124
  active: number;
1125
+ /** count message unread */
1126
+ count_mess_unread: number;
1123
1127
  }
1124
1128
 
1125
1129
  /** Stop receiving status updates for some set of users. */
@@ -5165,7 +5169,7 @@ export const EphemeralMessageSend = {
5165
5169
  };
5166
5170
 
5167
5171
  function createBaseVoiceReactionSend(): VoiceReactionSend {
5168
- return { emojis: [], channel_id: "", sender_id: "" };
5172
+ return { emojis: [], channel_id: "", sender_id: "", media_type: 0 };
5169
5173
  }
5170
5174
 
5171
5175
  export const VoiceReactionSend = {
@@ -5179,6 +5183,9 @@ export const VoiceReactionSend = {
5179
5183
  if (message.sender_id !== "") {
5180
5184
  writer.uint32(26).string(message.sender_id);
5181
5185
  }
5186
+ if (message.media_type !== 0) {
5187
+ writer.uint32(32).int32(message.media_type);
5188
+ }
5182
5189
  return writer;
5183
5190
  },
5184
5191
 
@@ -5210,6 +5217,13 @@ export const VoiceReactionSend = {
5210
5217
 
5211
5218
  message.sender_id = reader.string();
5212
5219
  continue;
5220
+ case 4:
5221
+ if (tag !== 32) {
5222
+ break;
5223
+ }
5224
+
5225
+ message.media_type = reader.int32();
5226
+ continue;
5213
5227
  }
5214
5228
  if ((tag & 7) === 4 || tag === 0) {
5215
5229
  break;
@@ -5224,6 +5238,7 @@ export const VoiceReactionSend = {
5224
5238
  emojis: globalThis.Array.isArray(object?.emojis) ? object.emojis.map((e: any) => globalThis.String(e)) : [],
5225
5239
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
5226
5240
  sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
5241
+ media_type: isSet(object.media_type) ? globalThis.Number(object.media_type) : 0,
5227
5242
  };
5228
5243
  },
5229
5244
 
@@ -5238,6 +5253,9 @@ export const VoiceReactionSend = {
5238
5253
  if (message.sender_id !== "") {
5239
5254
  obj.sender_id = message.sender_id;
5240
5255
  }
5256
+ if (message.media_type !== 0) {
5257
+ obj.media_type = Math.round(message.media_type);
5258
+ }
5241
5259
  return obj;
5242
5260
  },
5243
5261
 
@@ -5249,6 +5267,7 @@ export const VoiceReactionSend = {
5249
5267
  message.emojis = object.emojis?.map((e) => e) || [];
5250
5268
  message.channel_id = object.channel_id ?? "";
5251
5269
  message.sender_id = object.sender_id ?? "";
5270
+ message.media_type = object.media_type ?? 0;
5252
5271
  return message;
5253
5272
  },
5254
5273
  };
@@ -9183,6 +9202,7 @@ function createBaseChannelUpdatedEvent(): ChannelUpdatedEvent {
9183
9202
  topic: "",
9184
9203
  age_restricted: 0,
9185
9204
  active: 0,
9205
+ count_mess_unread: 0,
9186
9206
  };
9187
9207
  }
9188
9208
 
@@ -9236,6 +9256,9 @@ export const ChannelUpdatedEvent = {
9236
9256
  if (message.active !== 0) {
9237
9257
  writer.uint32(128).int32(message.active);
9238
9258
  }
9259
+ if (message.count_mess_unread !== 0) {
9260
+ writer.uint32(136).int32(message.count_mess_unread);
9261
+ }
9239
9262
  return writer;
9240
9263
  },
9241
9264
 
@@ -9358,6 +9381,13 @@ export const ChannelUpdatedEvent = {
9358
9381
 
9359
9382
  message.active = reader.int32();
9360
9383
  continue;
9384
+ case 17:
9385
+ if (tag !== 136) {
9386
+ break;
9387
+ }
9388
+
9389
+ message.count_mess_unread = reader.int32();
9390
+ continue;
9361
9391
  }
9362
9392
  if ((tag & 7) === 4 || tag === 0) {
9363
9393
  break;
@@ -9385,6 +9415,7 @@ export const ChannelUpdatedEvent = {
9385
9415
  topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
9386
9416
  age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
9387
9417
  active: isSet(object.active) ? globalThis.Number(object.active) : 0,
9418
+ count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
9388
9419
  };
9389
9420
  },
9390
9421
 
@@ -9438,6 +9469,9 @@ export const ChannelUpdatedEvent = {
9438
9469
  if (message.active !== 0) {
9439
9470
  obj.active = Math.round(message.active);
9440
9471
  }
9472
+ if (message.count_mess_unread !== 0) {
9473
+ obj.count_mess_unread = Math.round(message.count_mess_unread);
9474
+ }
9441
9475
  return obj;
9442
9476
  },
9443
9477
 
@@ -9462,6 +9496,7 @@ export const ChannelUpdatedEvent = {
9462
9496
  message.topic = object.topic ?? "";
9463
9497
  message.age_restricted = object.age_restricted ?? 0;
9464
9498
  message.active = object.active ?? 0;
9499
+ message.count_mess_unread = object.count_mess_unread ?? 0;
9465
9500
  return message;
9466
9501
  },
9467
9502
  };