mezon-js-protobuf 1.5.76 → 1.5.78

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
@@ -2004,6 +2004,7 @@ export interface EventManagement {
2004
2004
  end_time: Date | undefined;
2005
2005
  user_ids: string[];
2006
2006
  create_time: Date | undefined;
2007
+ max_permission: number;
2007
2008
  }
2008
2009
 
2009
2010
  /** Permission record */
@@ -2517,6 +2518,55 @@ export interface RegistrationEmailRequest_VarsEntry {
2517
2518
  value: string;
2518
2519
  }
2519
2520
 
2521
+ export interface ClanEmoji {
2522
+ id: string;
2523
+ /** src url */
2524
+ src: string;
2525
+ /** shortname */
2526
+ shortname: string;
2527
+ /** category */
2528
+ category: string;
2529
+ /** creator id */
2530
+ creator_id: string;
2531
+ /** clan_id */
2532
+ clan_id: string;
2533
+ /** clan logo */
2534
+ logo: string;
2535
+ /** clan name */
2536
+ clan_name: string;
2537
+ }
2538
+
2539
+ export interface EmojiListedResponse {
2540
+ emoji_list: ClanEmoji[];
2541
+ }
2542
+
2543
+ export interface StickerListedResponse {
2544
+ stickers: ClanSticker[];
2545
+ }
2546
+
2547
+ export interface ClanSticker {
2548
+ id: string;
2549
+ source: string;
2550
+ shortname: string;
2551
+ category: string;
2552
+ creator_id: string;
2553
+ create_time: Date | undefined;
2554
+ clan_id: string;
2555
+ logo: string;
2556
+ clan_name: string;
2557
+ }
2558
+
2559
+ export interface AllUsersAddChannelRequest {
2560
+ channel_id: string;
2561
+ limit: number | undefined;
2562
+ }
2563
+
2564
+ export interface AllUsersAddChannelResponse {
2565
+ channel_id: string;
2566
+ user_ids: string[];
2567
+ limit: number | undefined;
2568
+ }
2569
+
2520
2570
  export interface ClanEmojiCreateRequest {
2521
2571
  clan_id: string;
2522
2572
  source: string;
@@ -2943,6 +2993,34 @@ export interface ChannelAppResponse {
2943
2993
  url: string;
2944
2994
  }
2945
2995
 
2996
+ export interface AllUserClans {
2997
+ users: User[];
2998
+ }
2999
+
3000
+ export interface RoleListEventRequest {
3001
+ /** clan id */
3002
+ clan_id: string;
3003
+ /** limit */
3004
+ limit: string;
3005
+ /** state */
3006
+ state: string;
3007
+ /** cursor */
3008
+ cursor: string;
3009
+ }
3010
+
3011
+ export interface RoleListEventResponse {
3012
+ /** limit */
3013
+ limit: string;
3014
+ /** state */
3015
+ state: string;
3016
+ /** cursor */
3017
+ cursor: string;
3018
+ /** clan_id */
3019
+ clanId: string;
3020
+ /** list of roles */
3021
+ roles: RoleList | undefined;
3022
+ }
3023
+
2946
3024
  function createBaseAccount(): Account {
2947
3025
  return {
2948
3026
  user: undefined,
@@ -17304,6 +17382,7 @@ function createBaseEventManagement(): EventManagement {
17304
17382
  end_time: undefined,
17305
17383
  user_ids: [],
17306
17384
  create_time: undefined,
17385
+ max_permission: 0,
17307
17386
  };
17308
17387
  }
17309
17388
 
@@ -17351,6 +17430,9 @@ export const EventManagement = {
17351
17430
  if (message.create_time !== undefined) {
17352
17431
  Timestamp.encode(toTimestamp(message.create_time), writer.uint32(114).fork()).ldelim();
17353
17432
  }
17433
+ if (message.max_permission !== 0) {
17434
+ writer.uint32(120).int32(message.max_permission);
17435
+ }
17354
17436
  return writer;
17355
17437
  },
17356
17438
 
@@ -17459,6 +17541,13 @@ export const EventManagement = {
17459
17541
 
17460
17542
  message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
17461
17543
  continue;
17544
+ case 15:
17545
+ if (tag !== 120) {
17546
+ break;
17547
+ }
17548
+
17549
+ message.max_permission = reader.int32();
17550
+ continue;
17462
17551
  }
17463
17552
  if ((tag & 7) === 4 || tag === 0) {
17464
17553
  break;
@@ -17484,6 +17573,7 @@ export const EventManagement = {
17484
17573
  end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
17485
17574
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
17486
17575
  create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
17576
+ max_permission: isSet(object.max_permission) ? globalThis.Number(object.max_permission) : 0,
17487
17577
  };
17488
17578
  },
17489
17579
 
@@ -17531,6 +17621,9 @@ export const EventManagement = {
17531
17621
  if (message.create_time !== undefined) {
17532
17622
  obj.create_time = message.create_time.toISOString();
17533
17623
  }
17624
+ if (message.max_permission !== 0) {
17625
+ obj.max_permission = Math.round(message.max_permission);
17626
+ }
17534
17627
  return obj;
17535
17628
  },
17536
17629
 
@@ -17553,6 +17646,7 @@ export const EventManagement = {
17553
17646
  message.end_time = object.end_time ?? undefined;
17554
17647
  message.user_ids = object.user_ids?.map((e) => e) || [];
17555
17648
  message.create_time = object.create_time ?? undefined;
17649
+ message.max_permission = object.max_permission ?? 0;
17556
17650
  return message;
17557
17651
  },
17558
17652
  };
@@ -22706,17 +22800,17 @@ export const RegistrationEmailRequest_VarsEntry = {
22706
22800
  },
22707
22801
  };
22708
22802
 
22709
- function createBaseClanEmojiCreateRequest(): ClanEmojiCreateRequest {
22710
- return { clan_id: "", source: "", shortname: "", category: "", id: "" };
22803
+ function createBaseClanEmoji(): ClanEmoji {
22804
+ return { id: "", src: "", shortname: "", category: "", creator_id: "", clan_id: "", logo: "", clan_name: "" };
22711
22805
  }
22712
22806
 
22713
- export const ClanEmojiCreateRequest = {
22714
- encode(message: ClanEmojiCreateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22715
- if (message.clan_id !== "") {
22716
- writer.uint32(10).string(message.clan_id);
22807
+ export const ClanEmoji = {
22808
+ encode(message: ClanEmoji, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22809
+ if (message.id !== "") {
22810
+ writer.uint32(10).string(message.id);
22717
22811
  }
22718
- if (message.source !== "") {
22719
- writer.uint32(18).string(message.source);
22812
+ if (message.src !== "") {
22813
+ writer.uint32(18).string(message.src);
22720
22814
  }
22721
22815
  if (message.shortname !== "") {
22722
22816
  writer.uint32(26).string(message.shortname);
@@ -22724,16 +22818,25 @@ export const ClanEmojiCreateRequest = {
22724
22818
  if (message.category !== "") {
22725
22819
  writer.uint32(34).string(message.category);
22726
22820
  }
22727
- if (message.id !== "") {
22728
- writer.uint32(42).string(message.id);
22821
+ if (message.creator_id !== "") {
22822
+ writer.uint32(42).string(message.creator_id);
22823
+ }
22824
+ if (message.clan_id !== "") {
22825
+ writer.uint32(50).string(message.clan_id);
22826
+ }
22827
+ if (message.logo !== "") {
22828
+ writer.uint32(58).string(message.logo);
22829
+ }
22830
+ if (message.clan_name !== "") {
22831
+ writer.uint32(66).string(message.clan_name);
22729
22832
  }
22730
22833
  return writer;
22731
22834
  },
22732
22835
 
22733
- decode(input: _m0.Reader | Uint8Array, length?: number): ClanEmojiCreateRequest {
22836
+ decode(input: _m0.Reader | Uint8Array, length?: number): ClanEmoji {
22734
22837
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
22735
22838
  let end = length === undefined ? reader.len : reader.pos + length;
22736
- const message = createBaseClanEmojiCreateRequest();
22839
+ const message = createBaseClanEmoji();
22737
22840
  while (reader.pos < end) {
22738
22841
  const tag = reader.uint32();
22739
22842
  switch (tag >>> 3) {
@@ -22742,14 +22845,14 @@ export const ClanEmojiCreateRequest = {
22742
22845
  break;
22743
22846
  }
22744
22847
 
22745
- message.clan_id = reader.string();
22848
+ message.id = reader.string();
22746
22849
  continue;
22747
22850
  case 2:
22748
22851
  if (tag !== 18) {
22749
22852
  break;
22750
22853
  }
22751
22854
 
22752
- message.source = reader.string();
22855
+ message.src = reader.string();
22753
22856
  continue;
22754
22857
  case 3:
22755
22858
  if (tag !== 26) {
@@ -22770,7 +22873,28 @@ export const ClanEmojiCreateRequest = {
22770
22873
  break;
22771
22874
  }
22772
22875
 
22773
- message.id = reader.string();
22876
+ message.creator_id = reader.string();
22877
+ continue;
22878
+ case 6:
22879
+ if (tag !== 50) {
22880
+ break;
22881
+ }
22882
+
22883
+ message.clan_id = reader.string();
22884
+ continue;
22885
+ case 7:
22886
+ if (tag !== 58) {
22887
+ break;
22888
+ }
22889
+
22890
+ message.logo = reader.string();
22891
+ continue;
22892
+ case 8:
22893
+ if (tag !== 66) {
22894
+ break;
22895
+ }
22896
+
22897
+ message.clan_name = reader.string();
22774
22898
  continue;
22775
22899
  }
22776
22900
  if ((tag & 7) === 4 || tag === 0) {
@@ -22781,23 +22905,26 @@ export const ClanEmojiCreateRequest = {
22781
22905
  return message;
22782
22906
  },
22783
22907
 
22784
- fromJSON(object: any): ClanEmojiCreateRequest {
22908
+ fromJSON(object: any): ClanEmoji {
22785
22909
  return {
22786
- clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
22787
- source: isSet(object.source) ? globalThis.String(object.source) : "",
22910
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
22911
+ src: isSet(object.src) ? globalThis.String(object.src) : "",
22788
22912
  shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
22789
22913
  category: isSet(object.category) ? globalThis.String(object.category) : "",
22790
- id: isSet(object.id) ? globalThis.String(object.id) : "",
22914
+ creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
22915
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
22916
+ logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
22917
+ clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
22791
22918
  };
22792
22919
  },
22793
22920
 
22794
- toJSON(message: ClanEmojiCreateRequest): unknown {
22921
+ toJSON(message: ClanEmoji): unknown {
22795
22922
  const obj: any = {};
22796
- if (message.clan_id !== "") {
22797
- obj.clan_id = message.clan_id;
22923
+ if (message.id !== "") {
22924
+ obj.id = message.id;
22798
22925
  }
22799
- if (message.source !== "") {
22800
- obj.source = message.source;
22926
+ if (message.src !== "") {
22927
+ obj.src = message.src;
22801
22928
  }
22802
22929
  if (message.shortname !== "") {
22803
22930
  obj.shortname = message.shortname;
@@ -22805,42 +22932,54 @@ export const ClanEmojiCreateRequest = {
22805
22932
  if (message.category !== "") {
22806
22933
  obj.category = message.category;
22807
22934
  }
22808
- if (message.id !== "") {
22809
- obj.id = message.id;
22935
+ if (message.creator_id !== "") {
22936
+ obj.creator_id = message.creator_id;
22937
+ }
22938
+ if (message.clan_id !== "") {
22939
+ obj.clan_id = message.clan_id;
22940
+ }
22941
+ if (message.logo !== "") {
22942
+ obj.logo = message.logo;
22943
+ }
22944
+ if (message.clan_name !== "") {
22945
+ obj.clan_name = message.clan_name;
22810
22946
  }
22811
22947
  return obj;
22812
22948
  },
22813
22949
 
22814
- create<I extends Exact<DeepPartial<ClanEmojiCreateRequest>, I>>(base?: I): ClanEmojiCreateRequest {
22815
- return ClanEmojiCreateRequest.fromPartial(base ?? ({} as any));
22950
+ create<I extends Exact<DeepPartial<ClanEmoji>, I>>(base?: I): ClanEmoji {
22951
+ return ClanEmoji.fromPartial(base ?? ({} as any));
22816
22952
  },
22817
- fromPartial<I extends Exact<DeepPartial<ClanEmojiCreateRequest>, I>>(object: I): ClanEmojiCreateRequest {
22818
- const message = createBaseClanEmojiCreateRequest();
22819
- message.clan_id = object.clan_id ?? "";
22820
- message.source = object.source ?? "";
22953
+ fromPartial<I extends Exact<DeepPartial<ClanEmoji>, I>>(object: I): ClanEmoji {
22954
+ const message = createBaseClanEmoji();
22955
+ message.id = object.id ?? "";
22956
+ message.src = object.src ?? "";
22821
22957
  message.shortname = object.shortname ?? "";
22822
22958
  message.category = object.category ?? "";
22823
- message.id = object.id ?? "";
22959
+ message.creator_id = object.creator_id ?? "";
22960
+ message.clan_id = object.clan_id ?? "";
22961
+ message.logo = object.logo ?? "";
22962
+ message.clan_name = object.clan_name ?? "";
22824
22963
  return message;
22825
22964
  },
22826
22965
  };
22827
22966
 
22828
- function createBaseClanEmojiGetByClanIdRequest(): ClanEmojiGetByClanIdRequest {
22829
- return { clan_id: "" };
22967
+ function createBaseEmojiListedResponse(): EmojiListedResponse {
22968
+ return { emoji_list: [] };
22830
22969
  }
22831
22970
 
22832
- export const ClanEmojiGetByClanIdRequest = {
22833
- encode(message: ClanEmojiGetByClanIdRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22834
- if (message.clan_id !== "") {
22835
- writer.uint32(10).string(message.clan_id);
22971
+ export const EmojiListedResponse = {
22972
+ encode(message: EmojiListedResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22973
+ for (const v of message.emoji_list) {
22974
+ ClanEmoji.encode(v!, writer.uint32(10).fork()).ldelim();
22836
22975
  }
22837
22976
  return writer;
22838
22977
  },
22839
22978
 
22840
- decode(input: _m0.Reader | Uint8Array, length?: number): ClanEmojiGetByClanIdRequest {
22979
+ decode(input: _m0.Reader | Uint8Array, length?: number): EmojiListedResponse {
22841
22980
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
22842
22981
  let end = length === undefined ? reader.len : reader.pos + length;
22843
- const message = createBaseClanEmojiGetByClanIdRequest();
22982
+ const message = createBaseEmojiListedResponse();
22844
22983
  while (reader.pos < end) {
22845
22984
  const tag = reader.uint32();
22846
22985
  switch (tag >>> 3) {
@@ -22849,7 +22988,7 @@ export const ClanEmojiGetByClanIdRequest = {
22849
22988
  break;
22850
22989
  }
22851
22990
 
22852
- message.clan_id = reader.string();
22991
+ message.emoji_list.push(ClanEmoji.decode(reader, reader.uint32()));
22853
22992
  continue;
22854
22993
  }
22855
22994
  if ((tag & 7) === 4 || tag === 0) {
@@ -22860,47 +22999,48 @@ export const ClanEmojiGetByClanIdRequest = {
22860
22999
  return message;
22861
23000
  },
22862
23001
 
22863
- fromJSON(object: any): ClanEmojiGetByClanIdRequest {
22864
- return { clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "" };
23002
+ fromJSON(object: any): EmojiListedResponse {
23003
+ return {
23004
+ emoji_list: globalThis.Array.isArray(object?.emoji_list)
23005
+ ? object.emoji_list.map((e: any) => ClanEmoji.fromJSON(e))
23006
+ : [],
23007
+ };
22865
23008
  },
22866
23009
 
22867
- toJSON(message: ClanEmojiGetByClanIdRequest): unknown {
23010
+ toJSON(message: EmojiListedResponse): unknown {
22868
23011
  const obj: any = {};
22869
- if (message.clan_id !== "") {
22870
- obj.clan_id = message.clan_id;
23012
+ if (message.emoji_list?.length) {
23013
+ obj.emoji_list = message.emoji_list.map((e) => ClanEmoji.toJSON(e));
22871
23014
  }
22872
23015
  return obj;
22873
23016
  },
22874
23017
 
22875
- create<I extends Exact<DeepPartial<ClanEmojiGetByClanIdRequest>, I>>(base?: I): ClanEmojiGetByClanIdRequest {
22876
- return ClanEmojiGetByClanIdRequest.fromPartial(base ?? ({} as any));
23018
+ create<I extends Exact<DeepPartial<EmojiListedResponse>, I>>(base?: I): EmojiListedResponse {
23019
+ return EmojiListedResponse.fromPartial(base ?? ({} as any));
22877
23020
  },
22878
- fromPartial<I extends Exact<DeepPartial<ClanEmojiGetByClanIdRequest>, I>>(object: I): ClanEmojiGetByClanIdRequest {
22879
- const message = createBaseClanEmojiGetByClanIdRequest();
22880
- message.clan_id = object.clan_id ?? "";
23021
+ fromPartial<I extends Exact<DeepPartial<EmojiListedResponse>, I>>(object: I): EmojiListedResponse {
23022
+ const message = createBaseEmojiListedResponse();
23023
+ message.emoji_list = object.emoji_list?.map((e) => ClanEmoji.fromPartial(e)) || [];
22881
23024
  return message;
22882
23025
  },
22883
23026
  };
22884
23027
 
22885
- function createBaseClanEmojiDeleteRequest(): ClanEmojiDeleteRequest {
22886
- return { id: "", clan_id: "" };
23028
+ function createBaseStickerListedResponse(): StickerListedResponse {
23029
+ return { stickers: [] };
22887
23030
  }
22888
23031
 
22889
- export const ClanEmojiDeleteRequest = {
22890
- encode(message: ClanEmojiDeleteRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22891
- if (message.id !== "") {
22892
- writer.uint32(10).string(message.id);
22893
- }
22894
- if (message.clan_id !== "") {
22895
- writer.uint32(18).string(message.clan_id);
23032
+ export const StickerListedResponse = {
23033
+ encode(message: StickerListedResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
23034
+ for (const v of message.stickers) {
23035
+ ClanSticker.encode(v!, writer.uint32(10).fork()).ldelim();
22896
23036
  }
22897
23037
  return writer;
22898
23038
  },
22899
23039
 
22900
- decode(input: _m0.Reader | Uint8Array, length?: number): ClanEmojiDeleteRequest {
23040
+ decode(input: _m0.Reader | Uint8Array, length?: number): StickerListedResponse {
22901
23041
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
22902
23042
  let end = length === undefined ? reader.len : reader.pos + length;
22903
- const message = createBaseClanEmojiDeleteRequest();
23043
+ const message = createBaseStickerListedResponse();
22904
23044
  while (reader.pos < end) {
22905
23045
  const tag = reader.uint32();
22906
23046
  switch (tag >>> 3) {
@@ -22909,14 +23049,7 @@ export const ClanEmojiDeleteRequest = {
22909
23049
  break;
22910
23050
  }
22911
23051
 
22912
- message.id = reader.string();
22913
- continue;
22914
- case 2:
22915
- if (tag !== 18) {
22916
- break;
22917
- }
22918
-
22919
- message.clan_id = reader.string();
23052
+ message.stickers.push(ClanSticker.decode(reader, reader.uint32()));
22920
23053
  continue;
22921
23054
  }
22922
23055
  if ((tag & 7) === 4 || tag === 0) {
@@ -22927,57 +23060,82 @@ export const ClanEmojiDeleteRequest = {
22927
23060
  return message;
22928
23061
  },
22929
23062
 
22930
- fromJSON(object: any): ClanEmojiDeleteRequest {
23063
+ fromJSON(object: any): StickerListedResponse {
22931
23064
  return {
22932
- id: isSet(object.id) ? globalThis.String(object.id) : "",
22933
- clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
23065
+ stickers: globalThis.Array.isArray(object?.stickers)
23066
+ ? object.stickers.map((e: any) => ClanSticker.fromJSON(e))
23067
+ : [],
22934
23068
  };
22935
23069
  },
22936
23070
 
22937
- toJSON(message: ClanEmojiDeleteRequest): unknown {
23071
+ toJSON(message: StickerListedResponse): unknown {
22938
23072
  const obj: any = {};
22939
- if (message.id !== "") {
22940
- obj.id = message.id;
22941
- }
22942
- if (message.clan_id !== "") {
22943
- obj.clan_id = message.clan_id;
23073
+ if (message.stickers?.length) {
23074
+ obj.stickers = message.stickers.map((e) => ClanSticker.toJSON(e));
22944
23075
  }
22945
23076
  return obj;
22946
23077
  },
22947
23078
 
22948
- create<I extends Exact<DeepPartial<ClanEmojiDeleteRequest>, I>>(base?: I): ClanEmojiDeleteRequest {
22949
- return ClanEmojiDeleteRequest.fromPartial(base ?? ({} as any));
23079
+ create<I extends Exact<DeepPartial<StickerListedResponse>, I>>(base?: I): StickerListedResponse {
23080
+ return StickerListedResponse.fromPartial(base ?? ({} as any));
22950
23081
  },
22951
- fromPartial<I extends Exact<DeepPartial<ClanEmojiDeleteRequest>, I>>(object: I): ClanEmojiDeleteRequest {
22952
- const message = createBaseClanEmojiDeleteRequest();
22953
- message.id = object.id ?? "";
22954
- message.clan_id = object.clan_id ?? "";
23082
+ fromPartial<I extends Exact<DeepPartial<StickerListedResponse>, I>>(object: I): StickerListedResponse {
23083
+ const message = createBaseStickerListedResponse();
23084
+ message.stickers = object.stickers?.map((e) => ClanSticker.fromPartial(e)) || [];
22955
23085
  return message;
22956
23086
  },
22957
23087
  };
22958
23088
 
22959
- function createBaseClanEmojiUpdateRequest(): ClanEmojiUpdateRequest {
22960
- return { id: "", shortname: "", clan_id: "" };
23089
+ function createBaseClanSticker(): ClanSticker {
23090
+ return {
23091
+ id: "",
23092
+ source: "",
23093
+ shortname: "",
23094
+ category: "",
23095
+ creator_id: "",
23096
+ create_time: undefined,
23097
+ clan_id: "",
23098
+ logo: "",
23099
+ clan_name: "",
23100
+ };
22961
23101
  }
22962
23102
 
22963
- export const ClanEmojiUpdateRequest = {
22964
- encode(message: ClanEmojiUpdateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
23103
+ export const ClanSticker = {
23104
+ encode(message: ClanSticker, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22965
23105
  if (message.id !== "") {
22966
23106
  writer.uint32(10).string(message.id);
22967
23107
  }
23108
+ if (message.source !== "") {
23109
+ writer.uint32(18).string(message.source);
23110
+ }
22968
23111
  if (message.shortname !== "") {
22969
- writer.uint32(18).string(message.shortname);
23112
+ writer.uint32(26).string(message.shortname);
23113
+ }
23114
+ if (message.category !== "") {
23115
+ writer.uint32(34).string(message.category);
23116
+ }
23117
+ if (message.creator_id !== "") {
23118
+ writer.uint32(42).string(message.creator_id);
23119
+ }
23120
+ if (message.create_time !== undefined) {
23121
+ Timestamp.encode(toTimestamp(message.create_time), writer.uint32(50).fork()).ldelim();
22970
23122
  }
22971
23123
  if (message.clan_id !== "") {
22972
- writer.uint32(26).string(message.clan_id);
23124
+ writer.uint32(58).string(message.clan_id);
23125
+ }
23126
+ if (message.logo !== "") {
23127
+ writer.uint32(66).string(message.logo);
23128
+ }
23129
+ if (message.clan_name !== "") {
23130
+ writer.uint32(74).string(message.clan_name);
22973
23131
  }
22974
23132
  return writer;
22975
23133
  },
22976
23134
 
22977
- decode(input: _m0.Reader | Uint8Array, length?: number): ClanEmojiUpdateRequest {
23135
+ decode(input: _m0.Reader | Uint8Array, length?: number): ClanSticker {
22978
23136
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
22979
23137
  let end = length === undefined ? reader.len : reader.pos + length;
22980
- const message = createBaseClanEmojiUpdateRequest();
23138
+ const message = createBaseClanSticker();
22981
23139
  while (reader.pos < end) {
22982
23140
  const tag = reader.uint32();
22983
23141
  switch (tag >>> 3) {
@@ -22993,29 +23151,603 @@ export const ClanEmojiUpdateRequest = {
22993
23151
  break;
22994
23152
  }
22995
23153
 
22996
- message.shortname = reader.string();
23154
+ message.source = reader.string();
22997
23155
  continue;
22998
23156
  case 3:
22999
23157
  if (tag !== 26) {
23000
23158
  break;
23001
23159
  }
23002
23160
 
23003
- message.clan_id = reader.string();
23161
+ message.shortname = reader.string();
23004
23162
  continue;
23005
- }
23006
- if ((tag & 7) === 4 || tag === 0) {
23007
- break;
23008
- }
23009
- reader.skipType(tag & 7);
23010
- }
23011
- return message;
23012
- },
23163
+ case 4:
23164
+ if (tag !== 34) {
23165
+ break;
23166
+ }
23013
23167
 
23014
- fromJSON(object: any): ClanEmojiUpdateRequest {
23015
- return {
23016
- id: isSet(object.id) ? globalThis.String(object.id) : "",
23017
- shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
23018
- clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
23168
+ message.category = reader.string();
23169
+ continue;
23170
+ case 5:
23171
+ if (tag !== 42) {
23172
+ break;
23173
+ }
23174
+
23175
+ message.creator_id = reader.string();
23176
+ continue;
23177
+ case 6:
23178
+ if (tag !== 50) {
23179
+ break;
23180
+ }
23181
+
23182
+ message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
23183
+ continue;
23184
+ case 7:
23185
+ if (tag !== 58) {
23186
+ break;
23187
+ }
23188
+
23189
+ message.clan_id = reader.string();
23190
+ continue;
23191
+ case 8:
23192
+ if (tag !== 66) {
23193
+ break;
23194
+ }
23195
+
23196
+ message.logo = reader.string();
23197
+ continue;
23198
+ case 9:
23199
+ if (tag !== 74) {
23200
+ break;
23201
+ }
23202
+
23203
+ message.clan_name = reader.string();
23204
+ continue;
23205
+ }
23206
+ if ((tag & 7) === 4 || tag === 0) {
23207
+ break;
23208
+ }
23209
+ reader.skipType(tag & 7);
23210
+ }
23211
+ return message;
23212
+ },
23213
+
23214
+ fromJSON(object: any): ClanSticker {
23215
+ return {
23216
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
23217
+ source: isSet(object.source) ? globalThis.String(object.source) : "",
23218
+ shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
23219
+ category: isSet(object.category) ? globalThis.String(object.category) : "",
23220
+ creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
23221
+ create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
23222
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
23223
+ logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
23224
+ clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
23225
+ };
23226
+ },
23227
+
23228
+ toJSON(message: ClanSticker): unknown {
23229
+ const obj: any = {};
23230
+ if (message.id !== "") {
23231
+ obj.id = message.id;
23232
+ }
23233
+ if (message.source !== "") {
23234
+ obj.source = message.source;
23235
+ }
23236
+ if (message.shortname !== "") {
23237
+ obj.shortname = message.shortname;
23238
+ }
23239
+ if (message.category !== "") {
23240
+ obj.category = message.category;
23241
+ }
23242
+ if (message.creator_id !== "") {
23243
+ obj.creator_id = message.creator_id;
23244
+ }
23245
+ if (message.create_time !== undefined) {
23246
+ obj.create_time = message.create_time.toISOString();
23247
+ }
23248
+ if (message.clan_id !== "") {
23249
+ obj.clan_id = message.clan_id;
23250
+ }
23251
+ if (message.logo !== "") {
23252
+ obj.logo = message.logo;
23253
+ }
23254
+ if (message.clan_name !== "") {
23255
+ obj.clan_name = message.clan_name;
23256
+ }
23257
+ return obj;
23258
+ },
23259
+
23260
+ create<I extends Exact<DeepPartial<ClanSticker>, I>>(base?: I): ClanSticker {
23261
+ return ClanSticker.fromPartial(base ?? ({} as any));
23262
+ },
23263
+ fromPartial<I extends Exact<DeepPartial<ClanSticker>, I>>(object: I): ClanSticker {
23264
+ const message = createBaseClanSticker();
23265
+ message.id = object.id ?? "";
23266
+ message.source = object.source ?? "";
23267
+ message.shortname = object.shortname ?? "";
23268
+ message.category = object.category ?? "";
23269
+ message.creator_id = object.creator_id ?? "";
23270
+ message.create_time = object.create_time ?? undefined;
23271
+ message.clan_id = object.clan_id ?? "";
23272
+ message.logo = object.logo ?? "";
23273
+ message.clan_name = object.clan_name ?? "";
23274
+ return message;
23275
+ },
23276
+ };
23277
+
23278
+ function createBaseAllUsersAddChannelRequest(): AllUsersAddChannelRequest {
23279
+ return { channel_id: "", limit: undefined };
23280
+ }
23281
+
23282
+ export const AllUsersAddChannelRequest = {
23283
+ encode(message: AllUsersAddChannelRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
23284
+ if (message.channel_id !== "") {
23285
+ writer.uint32(10).string(message.channel_id);
23286
+ }
23287
+ if (message.limit !== undefined) {
23288
+ Int32Value.encode({ value: message.limit! }, writer.uint32(18).fork()).ldelim();
23289
+ }
23290
+ return writer;
23291
+ },
23292
+
23293
+ decode(input: _m0.Reader | Uint8Array, length?: number): AllUsersAddChannelRequest {
23294
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
23295
+ let end = length === undefined ? reader.len : reader.pos + length;
23296
+ const message = createBaseAllUsersAddChannelRequest();
23297
+ while (reader.pos < end) {
23298
+ const tag = reader.uint32();
23299
+ switch (tag >>> 3) {
23300
+ case 1:
23301
+ if (tag !== 10) {
23302
+ break;
23303
+ }
23304
+
23305
+ message.channel_id = reader.string();
23306
+ continue;
23307
+ case 2:
23308
+ if (tag !== 18) {
23309
+ break;
23310
+ }
23311
+
23312
+ message.limit = Int32Value.decode(reader, reader.uint32()).value;
23313
+ continue;
23314
+ }
23315
+ if ((tag & 7) === 4 || tag === 0) {
23316
+ break;
23317
+ }
23318
+ reader.skipType(tag & 7);
23319
+ }
23320
+ return message;
23321
+ },
23322
+
23323
+ fromJSON(object: any): AllUsersAddChannelRequest {
23324
+ return {
23325
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
23326
+ limit: isSet(object.limit) ? Number(object.limit) : undefined,
23327
+ };
23328
+ },
23329
+
23330
+ toJSON(message: AllUsersAddChannelRequest): unknown {
23331
+ const obj: any = {};
23332
+ if (message.channel_id !== "") {
23333
+ obj.channel_id = message.channel_id;
23334
+ }
23335
+ if (message.limit !== undefined) {
23336
+ obj.limit = message.limit;
23337
+ }
23338
+ return obj;
23339
+ },
23340
+
23341
+ create<I extends Exact<DeepPartial<AllUsersAddChannelRequest>, I>>(base?: I): AllUsersAddChannelRequest {
23342
+ return AllUsersAddChannelRequest.fromPartial(base ?? ({} as any));
23343
+ },
23344
+ fromPartial<I extends Exact<DeepPartial<AllUsersAddChannelRequest>, I>>(object: I): AllUsersAddChannelRequest {
23345
+ const message = createBaseAllUsersAddChannelRequest();
23346
+ message.channel_id = object.channel_id ?? "";
23347
+ message.limit = object.limit ?? undefined;
23348
+ return message;
23349
+ },
23350
+ };
23351
+
23352
+ function createBaseAllUsersAddChannelResponse(): AllUsersAddChannelResponse {
23353
+ return { channel_id: "", user_ids: [], limit: undefined };
23354
+ }
23355
+
23356
+ export const AllUsersAddChannelResponse = {
23357
+ encode(message: AllUsersAddChannelResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
23358
+ if (message.channel_id !== "") {
23359
+ writer.uint32(10).string(message.channel_id);
23360
+ }
23361
+ for (const v of message.user_ids) {
23362
+ writer.uint32(18).string(v!);
23363
+ }
23364
+ if (message.limit !== undefined) {
23365
+ Int32Value.encode({ value: message.limit! }, writer.uint32(26).fork()).ldelim();
23366
+ }
23367
+ return writer;
23368
+ },
23369
+
23370
+ decode(input: _m0.Reader | Uint8Array, length?: number): AllUsersAddChannelResponse {
23371
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
23372
+ let end = length === undefined ? reader.len : reader.pos + length;
23373
+ const message = createBaseAllUsersAddChannelResponse();
23374
+ while (reader.pos < end) {
23375
+ const tag = reader.uint32();
23376
+ switch (tag >>> 3) {
23377
+ case 1:
23378
+ if (tag !== 10) {
23379
+ break;
23380
+ }
23381
+
23382
+ message.channel_id = reader.string();
23383
+ continue;
23384
+ case 2:
23385
+ if (tag !== 18) {
23386
+ break;
23387
+ }
23388
+
23389
+ message.user_ids.push(reader.string());
23390
+ continue;
23391
+ case 3:
23392
+ if (tag !== 26) {
23393
+ break;
23394
+ }
23395
+
23396
+ message.limit = Int32Value.decode(reader, reader.uint32()).value;
23397
+ continue;
23398
+ }
23399
+ if ((tag & 7) === 4 || tag === 0) {
23400
+ break;
23401
+ }
23402
+ reader.skipType(tag & 7);
23403
+ }
23404
+ return message;
23405
+ },
23406
+
23407
+ fromJSON(object: any): AllUsersAddChannelResponse {
23408
+ return {
23409
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
23410
+ user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
23411
+ limit: isSet(object.limit) ? Number(object.limit) : undefined,
23412
+ };
23413
+ },
23414
+
23415
+ toJSON(message: AllUsersAddChannelResponse): unknown {
23416
+ const obj: any = {};
23417
+ if (message.channel_id !== "") {
23418
+ obj.channel_id = message.channel_id;
23419
+ }
23420
+ if (message.user_ids?.length) {
23421
+ obj.user_ids = message.user_ids;
23422
+ }
23423
+ if (message.limit !== undefined) {
23424
+ obj.limit = message.limit;
23425
+ }
23426
+ return obj;
23427
+ },
23428
+
23429
+ create<I extends Exact<DeepPartial<AllUsersAddChannelResponse>, I>>(base?: I): AllUsersAddChannelResponse {
23430
+ return AllUsersAddChannelResponse.fromPartial(base ?? ({} as any));
23431
+ },
23432
+ fromPartial<I extends Exact<DeepPartial<AllUsersAddChannelResponse>, I>>(object: I): AllUsersAddChannelResponse {
23433
+ const message = createBaseAllUsersAddChannelResponse();
23434
+ message.channel_id = object.channel_id ?? "";
23435
+ message.user_ids = object.user_ids?.map((e) => e) || [];
23436
+ message.limit = object.limit ?? undefined;
23437
+ return message;
23438
+ },
23439
+ };
23440
+
23441
+ function createBaseClanEmojiCreateRequest(): ClanEmojiCreateRequest {
23442
+ return { clan_id: "", source: "", shortname: "", category: "", id: "" };
23443
+ }
23444
+
23445
+ export const ClanEmojiCreateRequest = {
23446
+ encode(message: ClanEmojiCreateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
23447
+ if (message.clan_id !== "") {
23448
+ writer.uint32(10).string(message.clan_id);
23449
+ }
23450
+ if (message.source !== "") {
23451
+ writer.uint32(18).string(message.source);
23452
+ }
23453
+ if (message.shortname !== "") {
23454
+ writer.uint32(26).string(message.shortname);
23455
+ }
23456
+ if (message.category !== "") {
23457
+ writer.uint32(34).string(message.category);
23458
+ }
23459
+ if (message.id !== "") {
23460
+ writer.uint32(42).string(message.id);
23461
+ }
23462
+ return writer;
23463
+ },
23464
+
23465
+ decode(input: _m0.Reader | Uint8Array, length?: number): ClanEmojiCreateRequest {
23466
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
23467
+ let end = length === undefined ? reader.len : reader.pos + length;
23468
+ const message = createBaseClanEmojiCreateRequest();
23469
+ while (reader.pos < end) {
23470
+ const tag = reader.uint32();
23471
+ switch (tag >>> 3) {
23472
+ case 1:
23473
+ if (tag !== 10) {
23474
+ break;
23475
+ }
23476
+
23477
+ message.clan_id = reader.string();
23478
+ continue;
23479
+ case 2:
23480
+ if (tag !== 18) {
23481
+ break;
23482
+ }
23483
+
23484
+ message.source = reader.string();
23485
+ continue;
23486
+ case 3:
23487
+ if (tag !== 26) {
23488
+ break;
23489
+ }
23490
+
23491
+ message.shortname = reader.string();
23492
+ continue;
23493
+ case 4:
23494
+ if (tag !== 34) {
23495
+ break;
23496
+ }
23497
+
23498
+ message.category = reader.string();
23499
+ continue;
23500
+ case 5:
23501
+ if (tag !== 42) {
23502
+ break;
23503
+ }
23504
+
23505
+ message.id = reader.string();
23506
+ continue;
23507
+ }
23508
+ if ((tag & 7) === 4 || tag === 0) {
23509
+ break;
23510
+ }
23511
+ reader.skipType(tag & 7);
23512
+ }
23513
+ return message;
23514
+ },
23515
+
23516
+ fromJSON(object: any): ClanEmojiCreateRequest {
23517
+ return {
23518
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
23519
+ source: isSet(object.source) ? globalThis.String(object.source) : "",
23520
+ shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
23521
+ category: isSet(object.category) ? globalThis.String(object.category) : "",
23522
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
23523
+ };
23524
+ },
23525
+
23526
+ toJSON(message: ClanEmojiCreateRequest): unknown {
23527
+ const obj: any = {};
23528
+ if (message.clan_id !== "") {
23529
+ obj.clan_id = message.clan_id;
23530
+ }
23531
+ if (message.source !== "") {
23532
+ obj.source = message.source;
23533
+ }
23534
+ if (message.shortname !== "") {
23535
+ obj.shortname = message.shortname;
23536
+ }
23537
+ if (message.category !== "") {
23538
+ obj.category = message.category;
23539
+ }
23540
+ if (message.id !== "") {
23541
+ obj.id = message.id;
23542
+ }
23543
+ return obj;
23544
+ },
23545
+
23546
+ create<I extends Exact<DeepPartial<ClanEmojiCreateRequest>, I>>(base?: I): ClanEmojiCreateRequest {
23547
+ return ClanEmojiCreateRequest.fromPartial(base ?? ({} as any));
23548
+ },
23549
+ fromPartial<I extends Exact<DeepPartial<ClanEmojiCreateRequest>, I>>(object: I): ClanEmojiCreateRequest {
23550
+ const message = createBaseClanEmojiCreateRequest();
23551
+ message.clan_id = object.clan_id ?? "";
23552
+ message.source = object.source ?? "";
23553
+ message.shortname = object.shortname ?? "";
23554
+ message.category = object.category ?? "";
23555
+ message.id = object.id ?? "";
23556
+ return message;
23557
+ },
23558
+ };
23559
+
23560
+ function createBaseClanEmojiGetByClanIdRequest(): ClanEmojiGetByClanIdRequest {
23561
+ return { clan_id: "" };
23562
+ }
23563
+
23564
+ export const ClanEmojiGetByClanIdRequest = {
23565
+ encode(message: ClanEmojiGetByClanIdRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
23566
+ if (message.clan_id !== "") {
23567
+ writer.uint32(10).string(message.clan_id);
23568
+ }
23569
+ return writer;
23570
+ },
23571
+
23572
+ decode(input: _m0.Reader | Uint8Array, length?: number): ClanEmojiGetByClanIdRequest {
23573
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
23574
+ let end = length === undefined ? reader.len : reader.pos + length;
23575
+ const message = createBaseClanEmojiGetByClanIdRequest();
23576
+ while (reader.pos < end) {
23577
+ const tag = reader.uint32();
23578
+ switch (tag >>> 3) {
23579
+ case 1:
23580
+ if (tag !== 10) {
23581
+ break;
23582
+ }
23583
+
23584
+ message.clan_id = reader.string();
23585
+ continue;
23586
+ }
23587
+ if ((tag & 7) === 4 || tag === 0) {
23588
+ break;
23589
+ }
23590
+ reader.skipType(tag & 7);
23591
+ }
23592
+ return message;
23593
+ },
23594
+
23595
+ fromJSON(object: any): ClanEmojiGetByClanIdRequest {
23596
+ return { clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "" };
23597
+ },
23598
+
23599
+ toJSON(message: ClanEmojiGetByClanIdRequest): unknown {
23600
+ const obj: any = {};
23601
+ if (message.clan_id !== "") {
23602
+ obj.clan_id = message.clan_id;
23603
+ }
23604
+ return obj;
23605
+ },
23606
+
23607
+ create<I extends Exact<DeepPartial<ClanEmojiGetByClanIdRequest>, I>>(base?: I): ClanEmojiGetByClanIdRequest {
23608
+ return ClanEmojiGetByClanIdRequest.fromPartial(base ?? ({} as any));
23609
+ },
23610
+ fromPartial<I extends Exact<DeepPartial<ClanEmojiGetByClanIdRequest>, I>>(object: I): ClanEmojiGetByClanIdRequest {
23611
+ const message = createBaseClanEmojiGetByClanIdRequest();
23612
+ message.clan_id = object.clan_id ?? "";
23613
+ return message;
23614
+ },
23615
+ };
23616
+
23617
+ function createBaseClanEmojiDeleteRequest(): ClanEmojiDeleteRequest {
23618
+ return { id: "", clan_id: "" };
23619
+ }
23620
+
23621
+ export const ClanEmojiDeleteRequest = {
23622
+ encode(message: ClanEmojiDeleteRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
23623
+ if (message.id !== "") {
23624
+ writer.uint32(10).string(message.id);
23625
+ }
23626
+ if (message.clan_id !== "") {
23627
+ writer.uint32(18).string(message.clan_id);
23628
+ }
23629
+ return writer;
23630
+ },
23631
+
23632
+ decode(input: _m0.Reader | Uint8Array, length?: number): ClanEmojiDeleteRequest {
23633
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
23634
+ let end = length === undefined ? reader.len : reader.pos + length;
23635
+ const message = createBaseClanEmojiDeleteRequest();
23636
+ while (reader.pos < end) {
23637
+ const tag = reader.uint32();
23638
+ switch (tag >>> 3) {
23639
+ case 1:
23640
+ if (tag !== 10) {
23641
+ break;
23642
+ }
23643
+
23644
+ message.id = reader.string();
23645
+ continue;
23646
+ case 2:
23647
+ if (tag !== 18) {
23648
+ break;
23649
+ }
23650
+
23651
+ message.clan_id = reader.string();
23652
+ continue;
23653
+ }
23654
+ if ((tag & 7) === 4 || tag === 0) {
23655
+ break;
23656
+ }
23657
+ reader.skipType(tag & 7);
23658
+ }
23659
+ return message;
23660
+ },
23661
+
23662
+ fromJSON(object: any): ClanEmojiDeleteRequest {
23663
+ return {
23664
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
23665
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
23666
+ };
23667
+ },
23668
+
23669
+ toJSON(message: ClanEmojiDeleteRequest): unknown {
23670
+ const obj: any = {};
23671
+ if (message.id !== "") {
23672
+ obj.id = message.id;
23673
+ }
23674
+ if (message.clan_id !== "") {
23675
+ obj.clan_id = message.clan_id;
23676
+ }
23677
+ return obj;
23678
+ },
23679
+
23680
+ create<I extends Exact<DeepPartial<ClanEmojiDeleteRequest>, I>>(base?: I): ClanEmojiDeleteRequest {
23681
+ return ClanEmojiDeleteRequest.fromPartial(base ?? ({} as any));
23682
+ },
23683
+ fromPartial<I extends Exact<DeepPartial<ClanEmojiDeleteRequest>, I>>(object: I): ClanEmojiDeleteRequest {
23684
+ const message = createBaseClanEmojiDeleteRequest();
23685
+ message.id = object.id ?? "";
23686
+ message.clan_id = object.clan_id ?? "";
23687
+ return message;
23688
+ },
23689
+ };
23690
+
23691
+ function createBaseClanEmojiUpdateRequest(): ClanEmojiUpdateRequest {
23692
+ return { id: "", shortname: "", clan_id: "" };
23693
+ }
23694
+
23695
+ export const ClanEmojiUpdateRequest = {
23696
+ encode(message: ClanEmojiUpdateRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
23697
+ if (message.id !== "") {
23698
+ writer.uint32(10).string(message.id);
23699
+ }
23700
+ if (message.shortname !== "") {
23701
+ writer.uint32(18).string(message.shortname);
23702
+ }
23703
+ if (message.clan_id !== "") {
23704
+ writer.uint32(26).string(message.clan_id);
23705
+ }
23706
+ return writer;
23707
+ },
23708
+
23709
+ decode(input: _m0.Reader | Uint8Array, length?: number): ClanEmojiUpdateRequest {
23710
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
23711
+ let end = length === undefined ? reader.len : reader.pos + length;
23712
+ const message = createBaseClanEmojiUpdateRequest();
23713
+ while (reader.pos < end) {
23714
+ const tag = reader.uint32();
23715
+ switch (tag >>> 3) {
23716
+ case 1:
23717
+ if (tag !== 10) {
23718
+ break;
23719
+ }
23720
+
23721
+ message.id = reader.string();
23722
+ continue;
23723
+ case 2:
23724
+ if (tag !== 18) {
23725
+ break;
23726
+ }
23727
+
23728
+ message.shortname = reader.string();
23729
+ continue;
23730
+ case 3:
23731
+ if (tag !== 26) {
23732
+ break;
23733
+ }
23734
+
23735
+ message.clan_id = reader.string();
23736
+ continue;
23737
+ }
23738
+ if ((tag & 7) === 4 || tag === 0) {
23739
+ break;
23740
+ }
23741
+ reader.skipType(tag & 7);
23742
+ }
23743
+ return message;
23744
+ },
23745
+
23746
+ fromJSON(object: any): ClanEmojiUpdateRequest {
23747
+ return {
23748
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
23749
+ shortname: isSet(object.shortname) ? globalThis.String(object.shortname) : "",
23750
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
23019
23751
  };
23020
23752
  },
23021
23753
 
@@ -27409,6 +28141,288 @@ export const ChannelAppResponse = {
27409
28141
  },
27410
28142
  };
27411
28143
 
28144
+ function createBaseAllUserClans(): AllUserClans {
28145
+ return { users: [] };
28146
+ }
28147
+
28148
+ export const AllUserClans = {
28149
+ encode(message: AllUserClans, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
28150
+ for (const v of message.users) {
28151
+ User.encode(v!, writer.uint32(10).fork()).ldelim();
28152
+ }
28153
+ return writer;
28154
+ },
28155
+
28156
+ decode(input: _m0.Reader | Uint8Array, length?: number): AllUserClans {
28157
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
28158
+ let end = length === undefined ? reader.len : reader.pos + length;
28159
+ const message = createBaseAllUserClans();
28160
+ while (reader.pos < end) {
28161
+ const tag = reader.uint32();
28162
+ switch (tag >>> 3) {
28163
+ case 1:
28164
+ if (tag !== 10) {
28165
+ break;
28166
+ }
28167
+
28168
+ message.users.push(User.decode(reader, reader.uint32()));
28169
+ continue;
28170
+ }
28171
+ if ((tag & 7) === 4 || tag === 0) {
28172
+ break;
28173
+ }
28174
+ reader.skipType(tag & 7);
28175
+ }
28176
+ return message;
28177
+ },
28178
+
28179
+ fromJSON(object: any): AllUserClans {
28180
+ return { users: globalThis.Array.isArray(object?.users) ? object.users.map((e: any) => User.fromJSON(e)) : [] };
28181
+ },
28182
+
28183
+ toJSON(message: AllUserClans): unknown {
28184
+ const obj: any = {};
28185
+ if (message.users?.length) {
28186
+ obj.users = message.users.map((e) => User.toJSON(e));
28187
+ }
28188
+ return obj;
28189
+ },
28190
+
28191
+ create<I extends Exact<DeepPartial<AllUserClans>, I>>(base?: I): AllUserClans {
28192
+ return AllUserClans.fromPartial(base ?? ({} as any));
28193
+ },
28194
+ fromPartial<I extends Exact<DeepPartial<AllUserClans>, I>>(object: I): AllUserClans {
28195
+ const message = createBaseAllUserClans();
28196
+ message.users = object.users?.map((e) => User.fromPartial(e)) || [];
28197
+ return message;
28198
+ },
28199
+ };
28200
+
28201
+ function createBaseRoleListEventRequest(): RoleListEventRequest {
28202
+ return { clan_id: "", limit: "", state: "", cursor: "" };
28203
+ }
28204
+
28205
+ export const RoleListEventRequest = {
28206
+ encode(message: RoleListEventRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
28207
+ if (message.clan_id !== "") {
28208
+ writer.uint32(10).string(message.clan_id);
28209
+ }
28210
+ if (message.limit !== "") {
28211
+ writer.uint32(18).string(message.limit);
28212
+ }
28213
+ if (message.state !== "") {
28214
+ writer.uint32(26).string(message.state);
28215
+ }
28216
+ if (message.cursor !== "") {
28217
+ writer.uint32(34).string(message.cursor);
28218
+ }
28219
+ return writer;
28220
+ },
28221
+
28222
+ decode(input: _m0.Reader | Uint8Array, length?: number): RoleListEventRequest {
28223
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
28224
+ let end = length === undefined ? reader.len : reader.pos + length;
28225
+ const message = createBaseRoleListEventRequest();
28226
+ while (reader.pos < end) {
28227
+ const tag = reader.uint32();
28228
+ switch (tag >>> 3) {
28229
+ case 1:
28230
+ if (tag !== 10) {
28231
+ break;
28232
+ }
28233
+
28234
+ message.clan_id = reader.string();
28235
+ continue;
28236
+ case 2:
28237
+ if (tag !== 18) {
28238
+ break;
28239
+ }
28240
+
28241
+ message.limit = reader.string();
28242
+ continue;
28243
+ case 3:
28244
+ if (tag !== 26) {
28245
+ break;
28246
+ }
28247
+
28248
+ message.state = reader.string();
28249
+ continue;
28250
+ case 4:
28251
+ if (tag !== 34) {
28252
+ break;
28253
+ }
28254
+
28255
+ message.cursor = reader.string();
28256
+ continue;
28257
+ }
28258
+ if ((tag & 7) === 4 || tag === 0) {
28259
+ break;
28260
+ }
28261
+ reader.skipType(tag & 7);
28262
+ }
28263
+ return message;
28264
+ },
28265
+
28266
+ fromJSON(object: any): RoleListEventRequest {
28267
+ return {
28268
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
28269
+ limit: isSet(object.limit) ? globalThis.String(object.limit) : "",
28270
+ state: isSet(object.state) ? globalThis.String(object.state) : "",
28271
+ cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
28272
+ };
28273
+ },
28274
+
28275
+ toJSON(message: RoleListEventRequest): unknown {
28276
+ const obj: any = {};
28277
+ if (message.clan_id !== "") {
28278
+ obj.clan_id = message.clan_id;
28279
+ }
28280
+ if (message.limit !== "") {
28281
+ obj.limit = message.limit;
28282
+ }
28283
+ if (message.state !== "") {
28284
+ obj.state = message.state;
28285
+ }
28286
+ if (message.cursor !== "") {
28287
+ obj.cursor = message.cursor;
28288
+ }
28289
+ return obj;
28290
+ },
28291
+
28292
+ create<I extends Exact<DeepPartial<RoleListEventRequest>, I>>(base?: I): RoleListEventRequest {
28293
+ return RoleListEventRequest.fromPartial(base ?? ({} as any));
28294
+ },
28295
+ fromPartial<I extends Exact<DeepPartial<RoleListEventRequest>, I>>(object: I): RoleListEventRequest {
28296
+ const message = createBaseRoleListEventRequest();
28297
+ message.clan_id = object.clan_id ?? "";
28298
+ message.limit = object.limit ?? "";
28299
+ message.state = object.state ?? "";
28300
+ message.cursor = object.cursor ?? "";
28301
+ return message;
28302
+ },
28303
+ };
28304
+
28305
+ function createBaseRoleListEventResponse(): RoleListEventResponse {
28306
+ return { limit: "", state: "", cursor: "", clanId: "", roles: undefined };
28307
+ }
28308
+
28309
+ export const RoleListEventResponse = {
28310
+ encode(message: RoleListEventResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
28311
+ if (message.limit !== "") {
28312
+ writer.uint32(10).string(message.limit);
28313
+ }
28314
+ if (message.state !== "") {
28315
+ writer.uint32(18).string(message.state);
28316
+ }
28317
+ if (message.cursor !== "") {
28318
+ writer.uint32(26).string(message.cursor);
28319
+ }
28320
+ if (message.clanId !== "") {
28321
+ writer.uint32(34).string(message.clanId);
28322
+ }
28323
+ if (message.roles !== undefined) {
28324
+ RoleList.encode(message.roles, writer.uint32(42).fork()).ldelim();
28325
+ }
28326
+ return writer;
28327
+ },
28328
+
28329
+ decode(input: _m0.Reader | Uint8Array, length?: number): RoleListEventResponse {
28330
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
28331
+ let end = length === undefined ? reader.len : reader.pos + length;
28332
+ const message = createBaseRoleListEventResponse();
28333
+ while (reader.pos < end) {
28334
+ const tag = reader.uint32();
28335
+ switch (tag >>> 3) {
28336
+ case 1:
28337
+ if (tag !== 10) {
28338
+ break;
28339
+ }
28340
+
28341
+ message.limit = reader.string();
28342
+ continue;
28343
+ case 2:
28344
+ if (tag !== 18) {
28345
+ break;
28346
+ }
28347
+
28348
+ message.state = reader.string();
28349
+ continue;
28350
+ case 3:
28351
+ if (tag !== 26) {
28352
+ break;
28353
+ }
28354
+
28355
+ message.cursor = reader.string();
28356
+ continue;
28357
+ case 4:
28358
+ if (tag !== 34) {
28359
+ break;
28360
+ }
28361
+
28362
+ message.clanId = reader.string();
28363
+ continue;
28364
+ case 5:
28365
+ if (tag !== 42) {
28366
+ break;
28367
+ }
28368
+
28369
+ message.roles = RoleList.decode(reader, reader.uint32());
28370
+ continue;
28371
+ }
28372
+ if ((tag & 7) === 4 || tag === 0) {
28373
+ break;
28374
+ }
28375
+ reader.skipType(tag & 7);
28376
+ }
28377
+ return message;
28378
+ },
28379
+
28380
+ fromJSON(object: any): RoleListEventResponse {
28381
+ return {
28382
+ limit: isSet(object.limit) ? globalThis.String(object.limit) : "",
28383
+ state: isSet(object.state) ? globalThis.String(object.state) : "",
28384
+ cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
28385
+ clanId: isSet(object.clanId) ? globalThis.String(object.clanId) : "",
28386
+ roles: isSet(object.roles) ? RoleList.fromJSON(object.roles) : undefined,
28387
+ };
28388
+ },
28389
+
28390
+ toJSON(message: RoleListEventResponse): unknown {
28391
+ const obj: any = {};
28392
+ if (message.limit !== "") {
28393
+ obj.limit = message.limit;
28394
+ }
28395
+ if (message.state !== "") {
28396
+ obj.state = message.state;
28397
+ }
28398
+ if (message.cursor !== "") {
28399
+ obj.cursor = message.cursor;
28400
+ }
28401
+ if (message.clanId !== "") {
28402
+ obj.clanId = message.clanId;
28403
+ }
28404
+ if (message.roles !== undefined) {
28405
+ obj.roles = RoleList.toJSON(message.roles);
28406
+ }
28407
+ return obj;
28408
+ },
28409
+
28410
+ create<I extends Exact<DeepPartial<RoleListEventResponse>, I>>(base?: I): RoleListEventResponse {
28411
+ return RoleListEventResponse.fromPartial(base ?? ({} as any));
28412
+ },
28413
+ fromPartial<I extends Exact<DeepPartial<RoleListEventResponse>, I>>(object: I): RoleListEventResponse {
28414
+ const message = createBaseRoleListEventResponse();
28415
+ message.limit = object.limit ?? "";
28416
+ message.state = object.state ?? "";
28417
+ message.cursor = object.cursor ?? "";
28418
+ message.clanId = object.clanId ?? "";
28419
+ message.roles = (object.roles !== undefined && object.roles !== null)
28420
+ ? RoleList.fromPartial(object.roles)
28421
+ : undefined;
28422
+ return message;
28423
+ },
28424
+ };
28425
+
27412
28426
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
27413
28427
 
27414
28428
  export type DeepPartial<T> = T extends Builtin ? T