mezon-js-protobuf 1.8.41 → 1.8.43

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
@@ -1207,6 +1207,8 @@ export interface ClanDesc {
1207
1207
  short_url: string;
1208
1208
  /** prevent anonymous */
1209
1209
  prevent_anonymous: boolean;
1210
+ /** has unread message */
1211
+ has_unread_message: boolean;
1210
1212
  }
1211
1213
 
1212
1214
  /** Clan information */
@@ -1598,6 +1600,8 @@ export interface ListChannelDescsRequest {
1598
1600
  clan_id: string;
1599
1601
  /** channel type */
1600
1602
  channel_type: number;
1603
+ /** is mobile */
1604
+ is_mobile: boolean;
1601
1605
  }
1602
1606
 
1603
1607
  /** List channel description detail */
@@ -2364,6 +2368,10 @@ export interface AllUsersAddChannelResponse {
2364
2368
  channel_id: string;
2365
2369
  user_ids: string[];
2366
2370
  limit: number | undefined;
2371
+ usernames: string[];
2372
+ display_names: string[];
2373
+ avatars: string[];
2374
+ onlines: boolean[];
2367
2375
  }
2368
2376
 
2369
2377
  export interface ClanEmojiCreateRequest {
@@ -11416,6 +11424,7 @@ function createBaseClanDesc(): ClanDesc {
11416
11424
  about: "",
11417
11425
  short_url: "",
11418
11426
  prevent_anonymous: false,
11427
+ has_unread_message: false,
11419
11428
  };
11420
11429
  }
11421
11430
 
@@ -11472,6 +11481,9 @@ export const ClanDesc = {
11472
11481
  if (message.prevent_anonymous !== false) {
11473
11482
  writer.uint32(136).bool(message.prevent_anonymous);
11474
11483
  }
11484
+ if (message.has_unread_message !== false) {
11485
+ writer.uint32(144).bool(message.has_unread_message);
11486
+ }
11475
11487
  return writer;
11476
11488
  },
11477
11489
 
@@ -11601,6 +11613,13 @@ export const ClanDesc = {
11601
11613
 
11602
11614
  message.prevent_anonymous = reader.bool();
11603
11615
  continue;
11616
+ case 18:
11617
+ if (tag !== 144) {
11618
+ break;
11619
+ }
11620
+
11621
+ message.has_unread_message = reader.bool();
11622
+ continue;
11604
11623
  }
11605
11624
  if ((tag & 7) === 4 || tag === 0) {
11606
11625
  break;
@@ -11629,6 +11648,7 @@ export const ClanDesc = {
11629
11648
  about: isSet(object.about) ? globalThis.String(object.about) : "",
11630
11649
  short_url: isSet(object.short_url) ? globalThis.String(object.short_url) : "",
11631
11650
  prevent_anonymous: isSet(object.prevent_anonymous) ? globalThis.Boolean(object.prevent_anonymous) : false,
11651
+ has_unread_message: isSet(object.has_unread_message) ? globalThis.Boolean(object.has_unread_message) : false,
11632
11652
  };
11633
11653
  },
11634
11654
 
@@ -11685,6 +11705,9 @@ export const ClanDesc = {
11685
11705
  if (message.prevent_anonymous !== false) {
11686
11706
  obj.prevent_anonymous = message.prevent_anonymous;
11687
11707
  }
11708
+ if (message.has_unread_message !== false) {
11709
+ obj.has_unread_message = message.has_unread_message;
11710
+ }
11688
11711
  return obj;
11689
11712
  },
11690
11713
 
@@ -11710,6 +11733,7 @@ export const ClanDesc = {
11710
11733
  message.about = object.about ?? "";
11711
11734
  message.short_url = object.short_url ?? "";
11712
11735
  message.prevent_anonymous = object.prevent_anonymous ?? false;
11736
+ message.has_unread_message = object.has_unread_message ?? false;
11713
11737
  return message;
11714
11738
  },
11715
11739
  };
@@ -14989,7 +15013,7 @@ export const ListThreadRequest = {
14989
15013
  };
14990
15014
 
14991
15015
  function createBaseListChannelDescsRequest(): ListChannelDescsRequest {
14992
- return { limit: undefined, state: undefined, cursor: "", clan_id: "", channel_type: 0 };
15016
+ return { limit: undefined, state: undefined, cursor: "", clan_id: "", channel_type: 0, is_mobile: false };
14993
15017
  }
14994
15018
 
14995
15019
  export const ListChannelDescsRequest = {
@@ -15009,6 +15033,9 @@ export const ListChannelDescsRequest = {
15009
15033
  if (message.channel_type !== 0) {
15010
15034
  writer.uint32(40).int32(message.channel_type);
15011
15035
  }
15036
+ if (message.is_mobile !== false) {
15037
+ writer.uint32(48).bool(message.is_mobile);
15038
+ }
15012
15039
  return writer;
15013
15040
  },
15014
15041
 
@@ -15054,6 +15081,13 @@ export const ListChannelDescsRequest = {
15054
15081
 
15055
15082
  message.channel_type = reader.int32();
15056
15083
  continue;
15084
+ case 6:
15085
+ if (tag !== 48) {
15086
+ break;
15087
+ }
15088
+
15089
+ message.is_mobile = reader.bool();
15090
+ continue;
15057
15091
  }
15058
15092
  if ((tag & 7) === 4 || tag === 0) {
15059
15093
  break;
@@ -15070,6 +15104,7 @@ export const ListChannelDescsRequest = {
15070
15104
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
15071
15105
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
15072
15106
  channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
15107
+ is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
15073
15108
  };
15074
15109
  },
15075
15110
 
@@ -15090,6 +15125,9 @@ export const ListChannelDescsRequest = {
15090
15125
  if (message.channel_type !== 0) {
15091
15126
  obj.channel_type = Math.round(message.channel_type);
15092
15127
  }
15128
+ if (message.is_mobile !== false) {
15129
+ obj.is_mobile = message.is_mobile;
15130
+ }
15093
15131
  return obj;
15094
15132
  },
15095
15133
 
@@ -15103,6 +15141,7 @@ export const ListChannelDescsRequest = {
15103
15141
  message.cursor = object.cursor ?? "";
15104
15142
  message.clan_id = object.clan_id ?? "";
15105
15143
  message.channel_type = object.channel_type ?? 0;
15144
+ message.is_mobile = object.is_mobile ?? false;
15106
15145
  return message;
15107
15146
  },
15108
15147
  };
@@ -22903,7 +22942,7 @@ export const AllUsersAddChannelRequest = {
22903
22942
  };
22904
22943
 
22905
22944
  function createBaseAllUsersAddChannelResponse(): AllUsersAddChannelResponse {
22906
- return { channel_id: "", user_ids: [], limit: undefined };
22945
+ return { channel_id: "", user_ids: [], limit: undefined, usernames: [], display_names: [], avatars: [], onlines: [] };
22907
22946
  }
22908
22947
 
22909
22948
  export const AllUsersAddChannelResponse = {
@@ -22917,6 +22956,20 @@ export const AllUsersAddChannelResponse = {
22917
22956
  if (message.limit !== undefined) {
22918
22957
  Int32Value.encode({ value: message.limit! }, writer.uint32(26).fork()).ldelim();
22919
22958
  }
22959
+ for (const v of message.usernames) {
22960
+ writer.uint32(34).string(v!);
22961
+ }
22962
+ for (const v of message.display_names) {
22963
+ writer.uint32(42).string(v!);
22964
+ }
22965
+ for (const v of message.avatars) {
22966
+ writer.uint32(50).string(v!);
22967
+ }
22968
+ writer.uint32(58).fork();
22969
+ for (const v of message.onlines) {
22970
+ writer.bool(v);
22971
+ }
22972
+ writer.ldelim();
22920
22973
  return writer;
22921
22974
  },
22922
22975
 
@@ -22948,6 +23001,44 @@ export const AllUsersAddChannelResponse = {
22948
23001
 
22949
23002
  message.limit = Int32Value.decode(reader, reader.uint32()).value;
22950
23003
  continue;
23004
+ case 4:
23005
+ if (tag !== 34) {
23006
+ break;
23007
+ }
23008
+
23009
+ message.usernames.push(reader.string());
23010
+ continue;
23011
+ case 5:
23012
+ if (tag !== 42) {
23013
+ break;
23014
+ }
23015
+
23016
+ message.display_names.push(reader.string());
23017
+ continue;
23018
+ case 6:
23019
+ if (tag !== 50) {
23020
+ break;
23021
+ }
23022
+
23023
+ message.avatars.push(reader.string());
23024
+ continue;
23025
+ case 7:
23026
+ if (tag === 56) {
23027
+ message.onlines.push(reader.bool());
23028
+
23029
+ continue;
23030
+ }
23031
+
23032
+ if (tag === 58) {
23033
+ const end2 = reader.uint32() + reader.pos;
23034
+ while (reader.pos < end2) {
23035
+ message.onlines.push(reader.bool());
23036
+ }
23037
+
23038
+ continue;
23039
+ }
23040
+
23041
+ break;
22951
23042
  }
22952
23043
  if ((tag & 7) === 4 || tag === 0) {
22953
23044
  break;
@@ -22962,6 +23053,14 @@ export const AllUsersAddChannelResponse = {
22962
23053
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
22963
23054
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
22964
23055
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
23056
+ usernames: globalThis.Array.isArray(object?.usernames)
23057
+ ? object.usernames.map((e: any) => globalThis.String(e))
23058
+ : [],
23059
+ display_names: globalThis.Array.isArray(object?.display_names)
23060
+ ? object.display_names.map((e: any) => globalThis.String(e))
23061
+ : [],
23062
+ avatars: globalThis.Array.isArray(object?.avatars) ? object.avatars.map((e: any) => globalThis.String(e)) : [],
23063
+ onlines: globalThis.Array.isArray(object?.onlines) ? object.onlines.map((e: any) => globalThis.Boolean(e)) : [],
22965
23064
  };
22966
23065
  },
22967
23066
 
@@ -22976,6 +23075,18 @@ export const AllUsersAddChannelResponse = {
22976
23075
  if (message.limit !== undefined) {
22977
23076
  obj.limit = message.limit;
22978
23077
  }
23078
+ if (message.usernames?.length) {
23079
+ obj.usernames = message.usernames;
23080
+ }
23081
+ if (message.display_names?.length) {
23082
+ obj.display_names = message.display_names;
23083
+ }
23084
+ if (message.avatars?.length) {
23085
+ obj.avatars = message.avatars;
23086
+ }
23087
+ if (message.onlines?.length) {
23088
+ obj.onlines = message.onlines;
23089
+ }
22979
23090
  return obj;
22980
23091
  },
22981
23092
 
@@ -22987,6 +23098,10 @@ export const AllUsersAddChannelResponse = {
22987
23098
  message.channel_id = object.channel_id ?? "";
22988
23099
  message.user_ids = object.user_ids?.map((e) => e) || [];
22989
23100
  message.limit = object.limit ?? undefined;
23101
+ message.usernames = object.usernames?.map((e) => e) || [];
23102
+ message.display_names = object.display_names?.map((e) => e) || [];
23103
+ message.avatars = object.avatars?.map((e) => e) || [];
23104
+ message.onlines = object.onlines?.map((e) => e) || [];
22990
23105
  return message;
22991
23106
  },
22992
23107
  };
@@ -895,6 +895,8 @@ export interface ClanDesc {
895
895
  short_url: string;
896
896
  /** prevent anonymous */
897
897
  prevent_anonymous: boolean;
898
+ /** has unread message */
899
+ has_unread_message: boolean;
898
900
  }
899
901
  /** Clan information */
900
902
  export interface CreateClanDescRequest {
@@ -1219,6 +1221,8 @@ export interface ListChannelDescsRequest {
1219
1221
  clan_id: string;
1220
1222
  /** channel type */
1221
1223
  channel_type: number;
1224
+ /** is mobile */
1225
+ is_mobile: boolean;
1222
1226
  }
1223
1227
  /** List channel description detail */
1224
1228
  export interface ListChannelDetailRequest {
@@ -1896,6 +1900,10 @@ export interface AllUsersAddChannelResponse {
1896
1900
  channel_id: string;
1897
1901
  user_ids: string[];
1898
1902
  limit: number | undefined;
1903
+ usernames: string[];
1904
+ display_names: string[];
1905
+ avatars: string[];
1906
+ onlines: boolean[];
1899
1907
  }
1900
1908
  export interface ClanEmojiCreateRequest {
1901
1909
  clan_id: string;
@@ -8542,6 +8550,7 @@ export declare const ClanDesc: {
8542
8550
  about?: string | undefined;
8543
8551
  short_url?: string | undefined;
8544
8552
  prevent_anonymous?: boolean | undefined;
8553
+ has_unread_message?: boolean | undefined;
8545
8554
  } & {
8546
8555
  creator_id?: string | undefined;
8547
8556
  clan_name?: string | undefined;
@@ -8560,6 +8569,7 @@ export declare const ClanDesc: {
8560
8569
  about?: string | undefined;
8561
8570
  short_url?: string | undefined;
8562
8571
  prevent_anonymous?: boolean | undefined;
8572
+ has_unread_message?: boolean | undefined;
8563
8573
  } & { [K in Exclude<keyof I, keyof ClanDesc>]: never; }>(base?: I | undefined): ClanDesc;
8564
8574
  fromPartial<I_1 extends {
8565
8575
  creator_id?: string | undefined;
@@ -8579,6 +8589,7 @@ export declare const ClanDesc: {
8579
8589
  about?: string | undefined;
8580
8590
  short_url?: string | undefined;
8581
8591
  prevent_anonymous?: boolean | undefined;
8592
+ has_unread_message?: boolean | undefined;
8582
8593
  } & {
8583
8594
  creator_id?: string | undefined;
8584
8595
  clan_name?: string | undefined;
@@ -8597,6 +8608,7 @@ export declare const ClanDesc: {
8597
8608
  about?: string | undefined;
8598
8609
  short_url?: string | undefined;
8599
8610
  prevent_anonymous?: boolean | undefined;
8611
+ has_unread_message?: boolean | undefined;
8600
8612
  } & { [K_1 in Exclude<keyof I_1, keyof ClanDesc>]: never; }>(object: I_1): ClanDesc;
8601
8613
  };
8602
8614
  export declare const CreateClanDescRequest: {
@@ -8755,6 +8767,7 @@ export declare const ClanDescList: {
8755
8767
  about?: string | undefined;
8756
8768
  short_url?: string | undefined;
8757
8769
  prevent_anonymous?: boolean | undefined;
8770
+ has_unread_message?: boolean | undefined;
8758
8771
  }[] | undefined;
8759
8772
  } & {
8760
8773
  clandesc?: ({
@@ -8775,6 +8788,7 @@ export declare const ClanDescList: {
8775
8788
  about?: string | undefined;
8776
8789
  short_url?: string | undefined;
8777
8790
  prevent_anonymous?: boolean | undefined;
8791
+ has_unread_message?: boolean | undefined;
8778
8792
  }[] & ({
8779
8793
  creator_id?: string | undefined;
8780
8794
  clan_name?: string | undefined;
@@ -8793,6 +8807,7 @@ export declare const ClanDescList: {
8793
8807
  about?: string | undefined;
8794
8808
  short_url?: string | undefined;
8795
8809
  prevent_anonymous?: boolean | undefined;
8810
+ has_unread_message?: boolean | undefined;
8796
8811
  } & {
8797
8812
  creator_id?: string | undefined;
8798
8813
  clan_name?: string | undefined;
@@ -8811,6 +8826,7 @@ export declare const ClanDescList: {
8811
8826
  about?: string | undefined;
8812
8827
  short_url?: string | undefined;
8813
8828
  prevent_anonymous?: boolean | undefined;
8829
+ has_unread_message?: boolean | undefined;
8814
8830
  } & { [K in Exclude<keyof I["clandesc"][number], keyof ClanDesc>]: never; })[] & { [K_1 in Exclude<keyof I["clandesc"], keyof {
8815
8831
  creator_id?: string | undefined;
8816
8832
  clan_name?: string | undefined;
@@ -8829,6 +8845,7 @@ export declare const ClanDescList: {
8829
8845
  about?: string | undefined;
8830
8846
  short_url?: string | undefined;
8831
8847
  prevent_anonymous?: boolean | undefined;
8848
+ has_unread_message?: boolean | undefined;
8832
8849
  }[]>]: never; }) | undefined;
8833
8850
  } & { [K_2 in Exclude<keyof I, "clandesc">]: never; }>(base?: I | undefined): ClanDescList;
8834
8851
  fromPartial<I_1 extends {
@@ -8850,6 +8867,7 @@ export declare const ClanDescList: {
8850
8867
  about?: string | undefined;
8851
8868
  short_url?: string | undefined;
8852
8869
  prevent_anonymous?: boolean | undefined;
8870
+ has_unread_message?: boolean | undefined;
8853
8871
  }[] | undefined;
8854
8872
  } & {
8855
8873
  clandesc?: ({
@@ -8870,6 +8888,7 @@ export declare const ClanDescList: {
8870
8888
  about?: string | undefined;
8871
8889
  short_url?: string | undefined;
8872
8890
  prevent_anonymous?: boolean | undefined;
8891
+ has_unread_message?: boolean | undefined;
8873
8892
  }[] & ({
8874
8893
  creator_id?: string | undefined;
8875
8894
  clan_name?: string | undefined;
@@ -8888,6 +8907,7 @@ export declare const ClanDescList: {
8888
8907
  about?: string | undefined;
8889
8908
  short_url?: string | undefined;
8890
8909
  prevent_anonymous?: boolean | undefined;
8910
+ has_unread_message?: boolean | undefined;
8891
8911
  } & {
8892
8912
  creator_id?: string | undefined;
8893
8913
  clan_name?: string | undefined;
@@ -8906,6 +8926,7 @@ export declare const ClanDescList: {
8906
8926
  about?: string | undefined;
8907
8927
  short_url?: string | undefined;
8908
8928
  prevent_anonymous?: boolean | undefined;
8929
+ has_unread_message?: boolean | undefined;
8909
8930
  } & { [K_3 in Exclude<keyof I_1["clandesc"][number], keyof ClanDesc>]: never; })[] & { [K_4 in Exclude<keyof I_1["clandesc"], keyof {
8910
8931
  creator_id?: string | undefined;
8911
8932
  clan_name?: string | undefined;
@@ -8924,6 +8945,7 @@ export declare const ClanDescList: {
8924
8945
  about?: string | undefined;
8925
8946
  short_url?: string | undefined;
8926
8947
  prevent_anonymous?: boolean | undefined;
8948
+ has_unread_message?: boolean | undefined;
8927
8949
  }[]>]: never; }) | undefined;
8928
8950
  } & { [K_5 in Exclude<keyof I_1, "clandesc">]: never; }>(object: I_1): ClanDescList;
8929
8951
  };
@@ -10824,12 +10846,14 @@ export declare const ListChannelDescsRequest: {
10824
10846
  cursor?: string | undefined;
10825
10847
  clan_id?: string | undefined;
10826
10848
  channel_type?: number | undefined;
10849
+ is_mobile?: boolean | undefined;
10827
10850
  } & {
10828
10851
  limit?: number | undefined;
10829
10852
  state?: number | undefined;
10830
10853
  cursor?: string | undefined;
10831
10854
  clan_id?: string | undefined;
10832
10855
  channel_type?: number | undefined;
10856
+ is_mobile?: boolean | undefined;
10833
10857
  } & { [K in Exclude<keyof I, keyof ListChannelDescsRequest>]: never; }>(base?: I | undefined): ListChannelDescsRequest;
10834
10858
  fromPartial<I_1 extends {
10835
10859
  limit?: number | undefined;
@@ -10837,12 +10861,14 @@ export declare const ListChannelDescsRequest: {
10837
10861
  cursor?: string | undefined;
10838
10862
  clan_id?: string | undefined;
10839
10863
  channel_type?: number | undefined;
10864
+ is_mobile?: boolean | undefined;
10840
10865
  } & {
10841
10866
  limit?: number | undefined;
10842
10867
  state?: number | undefined;
10843
10868
  cursor?: string | undefined;
10844
10869
  clan_id?: string | undefined;
10845
10870
  channel_type?: number | undefined;
10871
+ is_mobile?: boolean | undefined;
10846
10872
  } & { [K_1 in Exclude<keyof I_1, keyof ListChannelDescsRequest>]: never; }>(object: I_1): ListChannelDescsRequest;
10847
10873
  };
10848
10874
  export declare const ListChannelDetailRequest: {
@@ -15170,20 +15196,36 @@ export declare const AllUsersAddChannelResponse: {
15170
15196
  channel_id?: string | undefined;
15171
15197
  user_ids?: string[] | undefined;
15172
15198
  limit?: number | undefined;
15199
+ usernames?: string[] | undefined;
15200
+ display_names?: string[] | undefined;
15201
+ avatars?: string[] | undefined;
15202
+ onlines?: boolean[] | undefined;
15173
15203
  } & {
15174
15204
  channel_id?: string | undefined;
15175
15205
  user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
15176
15206
  limit?: number | undefined;
15177
- } & { [K_1 in Exclude<keyof I, keyof AllUsersAddChannelResponse>]: never; }>(base?: I | undefined): AllUsersAddChannelResponse;
15207
+ usernames?: (string[] & string[] & { [K_1 in Exclude<keyof I["usernames"], keyof string[]>]: never; }) | undefined;
15208
+ display_names?: (string[] & string[] & { [K_2 in Exclude<keyof I["display_names"], keyof string[]>]: never; }) | undefined;
15209
+ avatars?: (string[] & string[] & { [K_3 in Exclude<keyof I["avatars"], keyof string[]>]: never; }) | undefined;
15210
+ onlines?: (boolean[] & boolean[] & { [K_4 in Exclude<keyof I["onlines"], keyof boolean[]>]: never; }) | undefined;
15211
+ } & { [K_5 in Exclude<keyof I, keyof AllUsersAddChannelResponse>]: never; }>(base?: I | undefined): AllUsersAddChannelResponse;
15178
15212
  fromPartial<I_1 extends {
15179
15213
  channel_id?: string | undefined;
15180
15214
  user_ids?: string[] | undefined;
15181
15215
  limit?: number | undefined;
15216
+ usernames?: string[] | undefined;
15217
+ display_names?: string[] | undefined;
15218
+ avatars?: string[] | undefined;
15219
+ onlines?: boolean[] | undefined;
15182
15220
  } & {
15183
15221
  channel_id?: string | undefined;
15184
- user_ids?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
15222
+ user_ids?: (string[] & string[] & { [K_6 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
15185
15223
  limit?: number | undefined;
15186
- } & { [K_3 in Exclude<keyof I_1, keyof AllUsersAddChannelResponse>]: never; }>(object: I_1): AllUsersAddChannelResponse;
15224
+ usernames?: (string[] & string[] & { [K_7 in Exclude<keyof I_1["usernames"], keyof string[]>]: never; }) | undefined;
15225
+ display_names?: (string[] & string[] & { [K_8 in Exclude<keyof I_1["display_names"], keyof string[]>]: never; }) | undefined;
15226
+ avatars?: (string[] & string[] & { [K_9 in Exclude<keyof I_1["avatars"], keyof string[]>]: never; }) | undefined;
15227
+ onlines?: (boolean[] & boolean[] & { [K_10 in Exclude<keyof I_1["onlines"], keyof boolean[]>]: never; }) | undefined;
15228
+ } & { [K_11 in Exclude<keyof I_1, keyof AllUsersAddChannelResponse>]: never; }>(object: I_1): AllUsersAddChannelResponse;
15187
15229
  };
15188
15230
  export declare const ClanEmojiCreateRequest: {
15189
15231
  encode(message: ClanEmojiCreateRequest, writer?: _m0.Writer): _m0.Writer;