mezon-js-protobuf 1.8.41 → 1.8.42

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
@@ -1598,6 +1598,8 @@ export interface ListChannelDescsRequest {
1598
1598
  clan_id: string;
1599
1599
  /** channel type */
1600
1600
  channel_type: number;
1601
+ /** is mobile */
1602
+ is_mobile: boolean;
1601
1603
  }
1602
1604
 
1603
1605
  /** List channel description detail */
@@ -2364,6 +2366,10 @@ export interface AllUsersAddChannelResponse {
2364
2366
  channel_id: string;
2365
2367
  user_ids: string[];
2366
2368
  limit: number | undefined;
2369
+ usernames: string[];
2370
+ display_names: string[];
2371
+ avatars: string[];
2372
+ onlines: boolean[];
2367
2373
  }
2368
2374
 
2369
2375
  export interface ClanEmojiCreateRequest {
@@ -14989,7 +14995,7 @@ export const ListThreadRequest = {
14989
14995
  };
14990
14996
 
14991
14997
  function createBaseListChannelDescsRequest(): ListChannelDescsRequest {
14992
- return { limit: undefined, state: undefined, cursor: "", clan_id: "", channel_type: 0 };
14998
+ return { limit: undefined, state: undefined, cursor: "", clan_id: "", channel_type: 0, is_mobile: false };
14993
14999
  }
14994
15000
 
14995
15001
  export const ListChannelDescsRequest = {
@@ -15009,6 +15015,9 @@ export const ListChannelDescsRequest = {
15009
15015
  if (message.channel_type !== 0) {
15010
15016
  writer.uint32(40).int32(message.channel_type);
15011
15017
  }
15018
+ if (message.is_mobile !== false) {
15019
+ writer.uint32(48).bool(message.is_mobile);
15020
+ }
15012
15021
  return writer;
15013
15022
  },
15014
15023
 
@@ -15054,6 +15063,13 @@ export const ListChannelDescsRequest = {
15054
15063
 
15055
15064
  message.channel_type = reader.int32();
15056
15065
  continue;
15066
+ case 6:
15067
+ if (tag !== 48) {
15068
+ break;
15069
+ }
15070
+
15071
+ message.is_mobile = reader.bool();
15072
+ continue;
15057
15073
  }
15058
15074
  if ((tag & 7) === 4 || tag === 0) {
15059
15075
  break;
@@ -15070,6 +15086,7 @@ export const ListChannelDescsRequest = {
15070
15086
  cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
15071
15087
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
15072
15088
  channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
15089
+ is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
15073
15090
  };
15074
15091
  },
15075
15092
 
@@ -15090,6 +15107,9 @@ export const ListChannelDescsRequest = {
15090
15107
  if (message.channel_type !== 0) {
15091
15108
  obj.channel_type = Math.round(message.channel_type);
15092
15109
  }
15110
+ if (message.is_mobile !== false) {
15111
+ obj.is_mobile = message.is_mobile;
15112
+ }
15093
15113
  return obj;
15094
15114
  },
15095
15115
 
@@ -15103,6 +15123,7 @@ export const ListChannelDescsRequest = {
15103
15123
  message.cursor = object.cursor ?? "";
15104
15124
  message.clan_id = object.clan_id ?? "";
15105
15125
  message.channel_type = object.channel_type ?? 0;
15126
+ message.is_mobile = object.is_mobile ?? false;
15106
15127
  return message;
15107
15128
  },
15108
15129
  };
@@ -22903,7 +22924,7 @@ export const AllUsersAddChannelRequest = {
22903
22924
  };
22904
22925
 
22905
22926
  function createBaseAllUsersAddChannelResponse(): AllUsersAddChannelResponse {
22906
- return { channel_id: "", user_ids: [], limit: undefined };
22927
+ return { channel_id: "", user_ids: [], limit: undefined, usernames: [], display_names: [], avatars: [], onlines: [] };
22907
22928
  }
22908
22929
 
22909
22930
  export const AllUsersAddChannelResponse = {
@@ -22917,6 +22938,20 @@ export const AllUsersAddChannelResponse = {
22917
22938
  if (message.limit !== undefined) {
22918
22939
  Int32Value.encode({ value: message.limit! }, writer.uint32(26).fork()).ldelim();
22919
22940
  }
22941
+ for (const v of message.usernames) {
22942
+ writer.uint32(34).string(v!);
22943
+ }
22944
+ for (const v of message.display_names) {
22945
+ writer.uint32(42).string(v!);
22946
+ }
22947
+ for (const v of message.avatars) {
22948
+ writer.uint32(50).string(v!);
22949
+ }
22950
+ writer.uint32(58).fork();
22951
+ for (const v of message.onlines) {
22952
+ writer.bool(v);
22953
+ }
22954
+ writer.ldelim();
22920
22955
  return writer;
22921
22956
  },
22922
22957
 
@@ -22948,6 +22983,44 @@ export const AllUsersAddChannelResponse = {
22948
22983
 
22949
22984
  message.limit = Int32Value.decode(reader, reader.uint32()).value;
22950
22985
  continue;
22986
+ case 4:
22987
+ if (tag !== 34) {
22988
+ break;
22989
+ }
22990
+
22991
+ message.usernames.push(reader.string());
22992
+ continue;
22993
+ case 5:
22994
+ if (tag !== 42) {
22995
+ break;
22996
+ }
22997
+
22998
+ message.display_names.push(reader.string());
22999
+ continue;
23000
+ case 6:
23001
+ if (tag !== 50) {
23002
+ break;
23003
+ }
23004
+
23005
+ message.avatars.push(reader.string());
23006
+ continue;
23007
+ case 7:
23008
+ if (tag === 56) {
23009
+ message.onlines.push(reader.bool());
23010
+
23011
+ continue;
23012
+ }
23013
+
23014
+ if (tag === 58) {
23015
+ const end2 = reader.uint32() + reader.pos;
23016
+ while (reader.pos < end2) {
23017
+ message.onlines.push(reader.bool());
23018
+ }
23019
+
23020
+ continue;
23021
+ }
23022
+
23023
+ break;
22951
23024
  }
22952
23025
  if ((tag & 7) === 4 || tag === 0) {
22953
23026
  break;
@@ -22962,6 +23035,14 @@ export const AllUsersAddChannelResponse = {
22962
23035
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
22963
23036
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
22964
23037
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
23038
+ usernames: globalThis.Array.isArray(object?.usernames)
23039
+ ? object.usernames.map((e: any) => globalThis.String(e))
23040
+ : [],
23041
+ display_names: globalThis.Array.isArray(object?.display_names)
23042
+ ? object.display_names.map((e: any) => globalThis.String(e))
23043
+ : [],
23044
+ avatars: globalThis.Array.isArray(object?.avatars) ? object.avatars.map((e: any) => globalThis.String(e)) : [],
23045
+ onlines: globalThis.Array.isArray(object?.onlines) ? object.onlines.map((e: any) => globalThis.Boolean(e)) : [],
22965
23046
  };
22966
23047
  },
22967
23048
 
@@ -22976,6 +23057,18 @@ export const AllUsersAddChannelResponse = {
22976
23057
  if (message.limit !== undefined) {
22977
23058
  obj.limit = message.limit;
22978
23059
  }
23060
+ if (message.usernames?.length) {
23061
+ obj.usernames = message.usernames;
23062
+ }
23063
+ if (message.display_names?.length) {
23064
+ obj.display_names = message.display_names;
23065
+ }
23066
+ if (message.avatars?.length) {
23067
+ obj.avatars = message.avatars;
23068
+ }
23069
+ if (message.onlines?.length) {
23070
+ obj.onlines = message.onlines;
23071
+ }
22979
23072
  return obj;
22980
23073
  },
22981
23074
 
@@ -22987,6 +23080,10 @@ export const AllUsersAddChannelResponse = {
22987
23080
  message.channel_id = object.channel_id ?? "";
22988
23081
  message.user_ids = object.user_ids?.map((e) => e) || [];
22989
23082
  message.limit = object.limit ?? undefined;
23083
+ message.usernames = object.usernames?.map((e) => e) || [];
23084
+ message.display_names = object.display_names?.map((e) => e) || [];
23085
+ message.avatars = object.avatars?.map((e) => e) || [];
23086
+ message.onlines = object.onlines?.map((e) => e) || [];
22990
23087
  return message;
22991
23088
  },
22992
23089
  };
@@ -1219,6 +1219,8 @@ export interface ListChannelDescsRequest {
1219
1219
  clan_id: string;
1220
1220
  /** channel type */
1221
1221
  channel_type: number;
1222
+ /** is mobile */
1223
+ is_mobile: boolean;
1222
1224
  }
1223
1225
  /** List channel description detail */
1224
1226
  export interface ListChannelDetailRequest {
@@ -1896,6 +1898,10 @@ export interface AllUsersAddChannelResponse {
1896
1898
  channel_id: string;
1897
1899
  user_ids: string[];
1898
1900
  limit: number | undefined;
1901
+ usernames: string[];
1902
+ display_names: string[];
1903
+ avatars: string[];
1904
+ onlines: boolean[];
1899
1905
  }
1900
1906
  export interface ClanEmojiCreateRequest {
1901
1907
  clan_id: string;
@@ -10824,12 +10830,14 @@ export declare const ListChannelDescsRequest: {
10824
10830
  cursor?: string | undefined;
10825
10831
  clan_id?: string | undefined;
10826
10832
  channel_type?: number | undefined;
10833
+ is_mobile?: boolean | undefined;
10827
10834
  } & {
10828
10835
  limit?: number | undefined;
10829
10836
  state?: number | undefined;
10830
10837
  cursor?: string | undefined;
10831
10838
  clan_id?: string | undefined;
10832
10839
  channel_type?: number | undefined;
10840
+ is_mobile?: boolean | undefined;
10833
10841
  } & { [K in Exclude<keyof I, keyof ListChannelDescsRequest>]: never; }>(base?: I | undefined): ListChannelDescsRequest;
10834
10842
  fromPartial<I_1 extends {
10835
10843
  limit?: number | undefined;
@@ -10837,12 +10845,14 @@ export declare const ListChannelDescsRequest: {
10837
10845
  cursor?: string | undefined;
10838
10846
  clan_id?: string | undefined;
10839
10847
  channel_type?: number | undefined;
10848
+ is_mobile?: boolean | undefined;
10840
10849
  } & {
10841
10850
  limit?: number | undefined;
10842
10851
  state?: number | undefined;
10843
10852
  cursor?: string | undefined;
10844
10853
  clan_id?: string | undefined;
10845
10854
  channel_type?: number | undefined;
10855
+ is_mobile?: boolean | undefined;
10846
10856
  } & { [K_1 in Exclude<keyof I_1, keyof ListChannelDescsRequest>]: never; }>(object: I_1): ListChannelDescsRequest;
10847
10857
  };
10848
10858
  export declare const ListChannelDetailRequest: {
@@ -15170,20 +15180,36 @@ export declare const AllUsersAddChannelResponse: {
15170
15180
  channel_id?: string | undefined;
15171
15181
  user_ids?: string[] | undefined;
15172
15182
  limit?: number | undefined;
15183
+ usernames?: string[] | undefined;
15184
+ display_names?: string[] | undefined;
15185
+ avatars?: string[] | undefined;
15186
+ onlines?: boolean[] | undefined;
15173
15187
  } & {
15174
15188
  channel_id?: string | undefined;
15175
15189
  user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
15176
15190
  limit?: number | undefined;
15177
- } & { [K_1 in Exclude<keyof I, keyof AllUsersAddChannelResponse>]: never; }>(base?: I | undefined): AllUsersAddChannelResponse;
15191
+ usernames?: (string[] & string[] & { [K_1 in Exclude<keyof I["usernames"], keyof string[]>]: never; }) | undefined;
15192
+ display_names?: (string[] & string[] & { [K_2 in Exclude<keyof I["display_names"], keyof string[]>]: never; }) | undefined;
15193
+ avatars?: (string[] & string[] & { [K_3 in Exclude<keyof I["avatars"], keyof string[]>]: never; }) | undefined;
15194
+ onlines?: (boolean[] & boolean[] & { [K_4 in Exclude<keyof I["onlines"], keyof boolean[]>]: never; }) | undefined;
15195
+ } & { [K_5 in Exclude<keyof I, keyof AllUsersAddChannelResponse>]: never; }>(base?: I | undefined): AllUsersAddChannelResponse;
15178
15196
  fromPartial<I_1 extends {
15179
15197
  channel_id?: string | undefined;
15180
15198
  user_ids?: string[] | undefined;
15181
15199
  limit?: number | undefined;
15200
+ usernames?: string[] | undefined;
15201
+ display_names?: string[] | undefined;
15202
+ avatars?: string[] | undefined;
15203
+ onlines?: boolean[] | undefined;
15182
15204
  } & {
15183
15205
  channel_id?: string | undefined;
15184
- user_ids?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
15206
+ user_ids?: (string[] & string[] & { [K_6 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
15185
15207
  limit?: number | undefined;
15186
- } & { [K_3 in Exclude<keyof I_1, keyof AllUsersAddChannelResponse>]: never; }>(object: I_1): AllUsersAddChannelResponse;
15208
+ usernames?: (string[] & string[] & { [K_7 in Exclude<keyof I_1["usernames"], keyof string[]>]: never; }) | undefined;
15209
+ display_names?: (string[] & string[] & { [K_8 in Exclude<keyof I_1["display_names"], keyof string[]>]: never; }) | undefined;
15210
+ avatars?: (string[] & string[] & { [K_9 in Exclude<keyof I_1["avatars"], keyof string[]>]: never; }) | undefined;
15211
+ onlines?: (boolean[] & boolean[] & { [K_10 in Exclude<keyof I_1["onlines"], keyof boolean[]>]: never; }) | undefined;
15212
+ } & { [K_11 in Exclude<keyof I_1, keyof AllUsersAddChannelResponse>]: never; }>(object: I_1): AllUsersAddChannelResponse;
15187
15213
  };
15188
15214
  export declare const ClanEmojiCreateRequest: {
15189
15215
  encode(message: ClanEmojiCreateRequest, writer?: _m0.Writer): _m0.Writer;