mezon-js-protobuf 1.8.7 → 1.8.8

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
@@ -2473,6 +2473,7 @@ export interface ClanSticker {
2473
2473
  clan_id: string;
2474
2474
  logo: string;
2475
2475
  clan_name: string;
2476
+ media_type: number;
2476
2477
  }
2477
2478
 
2478
2479
  export interface AllUsersAddChannelRequest {
@@ -2593,6 +2594,8 @@ export interface ClanStickerAddRequest {
2593
2594
  clan_id: number;
2594
2595
  /** UNIQUE include type number */
2595
2596
  id: string;
2597
+ /** media type for image or audio */
2598
+ media_type: number;
2596
2599
  }
2597
2600
 
2598
2601
  export interface ClanStickerListByClanIdRequest {
@@ -3576,8 +3579,15 @@ export interface WalletLedgerList {
3576
3579
  }
3577
3580
 
3578
3581
  export interface WalletLedgerListReq {
3579
- limit: number | undefined;
3580
- cursor: string;
3582
+ limit:
3583
+ | number
3584
+ | undefined;
3585
+ /**
3586
+ * filter = 0 for all
3587
+ * filter = 1 for sent
3588
+ * filter = 2 for recieve
3589
+ */
3590
+ filter: number;
3581
3591
  transaction_id: string;
3582
3592
  page: number | undefined;
3583
3593
  }
@@ -22959,6 +22969,7 @@ function createBaseClanSticker(): ClanSticker {
22959
22969
  clan_id: "",
22960
22970
  logo: "",
22961
22971
  clan_name: "",
22972
+ media_type: 0,
22962
22973
  };
22963
22974
  }
22964
22975
 
@@ -22991,6 +23002,9 @@ export const ClanSticker = {
22991
23002
  if (message.clan_name !== "") {
22992
23003
  writer.uint32(74).string(message.clan_name);
22993
23004
  }
23005
+ if (message.media_type !== 0) {
23006
+ writer.uint32(80).int32(message.media_type);
23007
+ }
22994
23008
  return writer;
22995
23009
  },
22996
23010
 
@@ -23064,6 +23078,13 @@ export const ClanSticker = {
23064
23078
 
23065
23079
  message.clan_name = reader.string();
23066
23080
  continue;
23081
+ case 10:
23082
+ if (tag !== 80) {
23083
+ break;
23084
+ }
23085
+
23086
+ message.media_type = reader.int32();
23087
+ continue;
23067
23088
  }
23068
23089
  if ((tag & 7) === 4 || tag === 0) {
23069
23090
  break;
@@ -23084,6 +23105,7 @@ export const ClanSticker = {
23084
23105
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
23085
23106
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
23086
23107
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
23108
+ media_type: isSet(object.media_type) ? globalThis.Number(object.media_type) : 0,
23087
23109
  };
23088
23110
  },
23089
23111
 
@@ -23116,6 +23138,9 @@ export const ClanSticker = {
23116
23138
  if (message.clan_name !== "") {
23117
23139
  obj.clan_name = message.clan_name;
23118
23140
  }
23141
+ if (message.media_type !== 0) {
23142
+ obj.media_type = Math.round(message.media_type);
23143
+ }
23119
23144
  return obj;
23120
23145
  },
23121
23146
 
@@ -23133,6 +23158,7 @@ export const ClanSticker = {
23133
23158
  message.clan_id = object.clan_id ?? "";
23134
23159
  message.logo = object.logo ?? "";
23135
23160
  message.clan_name = object.clan_name ?? "";
23161
+ message.media_type = object.media_type ?? 0;
23136
23162
  return message;
23137
23163
  },
23138
23164
  };
@@ -24688,7 +24714,7 @@ export const CheckDuplicateClanNameResponse = {
24688
24714
  };
24689
24715
 
24690
24716
  function createBaseClanStickerAddRequest(): ClanStickerAddRequest {
24691
- return { source: "", shortname: "", category: "", clan_id: 0, id: "" };
24717
+ return { source: "", shortname: "", category: "", clan_id: 0, id: "", media_type: 0 };
24692
24718
  }
24693
24719
 
24694
24720
  export const ClanStickerAddRequest = {
@@ -24708,6 +24734,9 @@ export const ClanStickerAddRequest = {
24708
24734
  if (message.id !== "") {
24709
24735
  writer.uint32(42).string(message.id);
24710
24736
  }
24737
+ if (message.media_type !== 0) {
24738
+ writer.uint32(48).int32(message.media_type);
24739
+ }
24711
24740
  return writer;
24712
24741
  },
24713
24742
 
@@ -24753,6 +24782,13 @@ export const ClanStickerAddRequest = {
24753
24782
 
24754
24783
  message.id = reader.string();
24755
24784
  continue;
24785
+ case 6:
24786
+ if (tag !== 48) {
24787
+ break;
24788
+ }
24789
+
24790
+ message.media_type = reader.int32();
24791
+ continue;
24756
24792
  }
24757
24793
  if ((tag & 7) === 4 || tag === 0) {
24758
24794
  break;
@@ -24769,6 +24805,7 @@ export const ClanStickerAddRequest = {
24769
24805
  category: isSet(object.category) ? globalThis.String(object.category) : "",
24770
24806
  clan_id: isSet(object.clan_id) ? globalThis.Number(object.clan_id) : 0,
24771
24807
  id: isSet(object.id) ? globalThis.String(object.id) : "",
24808
+ media_type: isSet(object.media_type) ? globalThis.Number(object.media_type) : 0,
24772
24809
  };
24773
24810
  },
24774
24811
 
@@ -24789,6 +24826,9 @@ export const ClanStickerAddRequest = {
24789
24826
  if (message.id !== "") {
24790
24827
  obj.id = message.id;
24791
24828
  }
24829
+ if (message.media_type !== 0) {
24830
+ obj.media_type = Math.round(message.media_type);
24831
+ }
24792
24832
  return obj;
24793
24833
  },
24794
24834
 
@@ -24802,6 +24842,7 @@ export const ClanStickerAddRequest = {
24802
24842
  message.category = object.category ?? "";
24803
24843
  message.clan_id = object.clan_id ?? 0;
24804
24844
  message.id = object.id ?? "";
24845
+ message.media_type = object.media_type ?? 0;
24805
24846
  return message;
24806
24847
  },
24807
24848
  };
@@ -34524,7 +34565,7 @@ export const WalletLedgerList = {
34524
34565
  };
34525
34566
 
34526
34567
  function createBaseWalletLedgerListReq(): WalletLedgerListReq {
34527
- return { limit: undefined, cursor: "", transaction_id: "", page: undefined };
34568
+ return { limit: undefined, filter: 0, transaction_id: "", page: undefined };
34528
34569
  }
34529
34570
 
34530
34571
  export const WalletLedgerListReq = {
@@ -34532,8 +34573,8 @@ export const WalletLedgerListReq = {
34532
34573
  if (message.limit !== undefined) {
34533
34574
  Int32Value.encode({ value: message.limit! }, writer.uint32(10).fork()).ldelim();
34534
34575
  }
34535
- if (message.cursor !== "") {
34536
- writer.uint32(18).string(message.cursor);
34576
+ if (message.filter !== 0) {
34577
+ writer.uint32(16).int32(message.filter);
34537
34578
  }
34538
34579
  if (message.transaction_id !== "") {
34539
34580
  writer.uint32(26).string(message.transaction_id);
@@ -34559,11 +34600,11 @@ export const WalletLedgerListReq = {
34559
34600
  message.limit = Int32Value.decode(reader, reader.uint32()).value;
34560
34601
  continue;
34561
34602
  case 2:
34562
- if (tag !== 18) {
34603
+ if (tag !== 16) {
34563
34604
  break;
34564
34605
  }
34565
34606
 
34566
- message.cursor = reader.string();
34607
+ message.filter = reader.int32();
34567
34608
  continue;
34568
34609
  case 3:
34569
34610
  if (tag !== 26) {
@@ -34591,7 +34632,7 @@ export const WalletLedgerListReq = {
34591
34632
  fromJSON(object: any): WalletLedgerListReq {
34592
34633
  return {
34593
34634
  limit: isSet(object.limit) ? Number(object.limit) : undefined,
34594
- cursor: isSet(object.cursor) ? globalThis.String(object.cursor) : "",
34635
+ filter: isSet(object.filter) ? globalThis.Number(object.filter) : 0,
34595
34636
  transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
34596
34637
  page: isSet(object.page) ? Number(object.page) : undefined,
34597
34638
  };
@@ -34602,8 +34643,8 @@ export const WalletLedgerListReq = {
34602
34643
  if (message.limit !== undefined) {
34603
34644
  obj.limit = message.limit;
34604
34645
  }
34605
- if (message.cursor !== "") {
34606
- obj.cursor = message.cursor;
34646
+ if (message.filter !== 0) {
34647
+ obj.filter = Math.round(message.filter);
34607
34648
  }
34608
34649
  if (message.transaction_id !== "") {
34609
34650
  obj.transaction_id = message.transaction_id;
@@ -34620,7 +34661,7 @@ export const WalletLedgerListReq = {
34620
34661
  fromPartial<I extends Exact<DeepPartial<WalletLedgerListReq>, I>>(object: I): WalletLedgerListReq {
34621
34662
  const message = createBaseWalletLedgerListReq();
34622
34663
  message.limit = object.limit ?? undefined;
34623
- message.cursor = object.cursor ?? "";
34664
+ message.filter = object.filter ?? 0;
34624
34665
  message.transaction_id = object.transaction_id ?? "";
34625
34666
  message.page = object.page ?? undefined;
34626
34667
  return message;
@@ -1936,6 +1936,7 @@ export interface ClanSticker {
1936
1936
  clan_id: string;
1937
1937
  logo: string;
1938
1938
  clan_name: string;
1939
+ media_type: number;
1939
1940
  }
1940
1941
  export interface AllUsersAddChannelRequest {
1941
1942
  channel_id: string;
@@ -2040,6 +2041,8 @@ export interface ClanStickerAddRequest {
2040
2041
  clan_id: number;
2041
2042
  /** UNIQUE include type number */
2042
2043
  id: string;
2044
+ /** media type for image or audio */
2045
+ media_type: number;
2043
2046
  }
2044
2047
  export interface ClanStickerListByClanIdRequest {
2045
2048
  clan_id: string;
@@ -2881,7 +2884,12 @@ export interface WalletLedgerList {
2881
2884
  }
2882
2885
  export interface WalletLedgerListReq {
2883
2886
  limit: number | undefined;
2884
- cursor: string;
2887
+ /**
2888
+ * filter = 0 for all
2889
+ * filter = 1 for sent
2890
+ * filter = 2 for recieve
2891
+ */
2892
+ filter: number;
2885
2893
  transaction_id: string;
2886
2894
  page: number | undefined;
2887
2895
  }
@@ -15890,6 +15898,7 @@ export declare const StickerListedResponse: {
15890
15898
  clan_id?: string | undefined;
15891
15899
  logo?: string | undefined;
15892
15900
  clan_name?: string | undefined;
15901
+ media_type?: number | undefined;
15893
15902
  }[] | undefined;
15894
15903
  } & {
15895
15904
  stickers?: ({
@@ -15902,6 +15911,7 @@ export declare const StickerListedResponse: {
15902
15911
  clan_id?: string | undefined;
15903
15912
  logo?: string | undefined;
15904
15913
  clan_name?: string | undefined;
15914
+ media_type?: number | undefined;
15905
15915
  }[] & ({
15906
15916
  id?: string | undefined;
15907
15917
  source?: string | undefined;
@@ -15912,6 +15922,7 @@ export declare const StickerListedResponse: {
15912
15922
  clan_id?: string | undefined;
15913
15923
  logo?: string | undefined;
15914
15924
  clan_name?: string | undefined;
15925
+ media_type?: number | undefined;
15915
15926
  } & {
15916
15927
  id?: string | undefined;
15917
15928
  source?: string | undefined;
@@ -15922,6 +15933,7 @@ export declare const StickerListedResponse: {
15922
15933
  clan_id?: string | undefined;
15923
15934
  logo?: string | undefined;
15924
15935
  clan_name?: string | undefined;
15936
+ media_type?: number | undefined;
15925
15937
  } & { [K in Exclude<keyof I["stickers"][number], keyof ClanSticker>]: never; })[] & { [K_1 in Exclude<keyof I["stickers"], keyof {
15926
15938
  id?: string | undefined;
15927
15939
  source?: string | undefined;
@@ -15932,6 +15944,7 @@ export declare const StickerListedResponse: {
15932
15944
  clan_id?: string | undefined;
15933
15945
  logo?: string | undefined;
15934
15946
  clan_name?: string | undefined;
15947
+ media_type?: number | undefined;
15935
15948
  }[]>]: never; }) | undefined;
15936
15949
  } & { [K_2 in Exclude<keyof I, "stickers">]: never; }>(base?: I | undefined): StickerListedResponse;
15937
15950
  fromPartial<I_1 extends {
@@ -15945,6 +15958,7 @@ export declare const StickerListedResponse: {
15945
15958
  clan_id?: string | undefined;
15946
15959
  logo?: string | undefined;
15947
15960
  clan_name?: string | undefined;
15961
+ media_type?: number | undefined;
15948
15962
  }[] | undefined;
15949
15963
  } & {
15950
15964
  stickers?: ({
@@ -15957,6 +15971,7 @@ export declare const StickerListedResponse: {
15957
15971
  clan_id?: string | undefined;
15958
15972
  logo?: string | undefined;
15959
15973
  clan_name?: string | undefined;
15974
+ media_type?: number | undefined;
15960
15975
  }[] & ({
15961
15976
  id?: string | undefined;
15962
15977
  source?: string | undefined;
@@ -15967,6 +15982,7 @@ export declare const StickerListedResponse: {
15967
15982
  clan_id?: string | undefined;
15968
15983
  logo?: string | undefined;
15969
15984
  clan_name?: string | undefined;
15985
+ media_type?: number | undefined;
15970
15986
  } & {
15971
15987
  id?: string | undefined;
15972
15988
  source?: string | undefined;
@@ -15977,6 +15993,7 @@ export declare const StickerListedResponse: {
15977
15993
  clan_id?: string | undefined;
15978
15994
  logo?: string | undefined;
15979
15995
  clan_name?: string | undefined;
15996
+ media_type?: number | undefined;
15980
15997
  } & { [K_3 in Exclude<keyof I_1["stickers"][number], keyof ClanSticker>]: never; })[] & { [K_4 in Exclude<keyof I_1["stickers"], keyof {
15981
15998
  id?: string | undefined;
15982
15999
  source?: string | undefined;
@@ -15987,6 +16004,7 @@ export declare const StickerListedResponse: {
15987
16004
  clan_id?: string | undefined;
15988
16005
  logo?: string | undefined;
15989
16006
  clan_name?: string | undefined;
16007
+ media_type?: number | undefined;
15990
16008
  }[]>]: never; }) | undefined;
15991
16009
  } & { [K_5 in Exclude<keyof I_1, "stickers">]: never; }>(object: I_1): StickerListedResponse;
15992
16010
  };
@@ -16005,6 +16023,7 @@ export declare const ClanSticker: {
16005
16023
  clan_id?: string | undefined;
16006
16024
  logo?: string | undefined;
16007
16025
  clan_name?: string | undefined;
16026
+ media_type?: number | undefined;
16008
16027
  } & {
16009
16028
  id?: string | undefined;
16010
16029
  source?: string | undefined;
@@ -16015,6 +16034,7 @@ export declare const ClanSticker: {
16015
16034
  clan_id?: string | undefined;
16016
16035
  logo?: string | undefined;
16017
16036
  clan_name?: string | undefined;
16037
+ media_type?: number | undefined;
16018
16038
  } & { [K in Exclude<keyof I, keyof ClanSticker>]: never; }>(base?: I | undefined): ClanSticker;
16019
16039
  fromPartial<I_1 extends {
16020
16040
  id?: string | undefined;
@@ -16026,6 +16046,7 @@ export declare const ClanSticker: {
16026
16046
  clan_id?: string | undefined;
16027
16047
  logo?: string | undefined;
16028
16048
  clan_name?: string | undefined;
16049
+ media_type?: number | undefined;
16029
16050
  } & {
16030
16051
  id?: string | undefined;
16031
16052
  source?: string | undefined;
@@ -16036,6 +16057,7 @@ export declare const ClanSticker: {
16036
16057
  clan_id?: string | undefined;
16037
16058
  logo?: string | undefined;
16038
16059
  clan_name?: string | undefined;
16060
+ media_type?: number | undefined;
16039
16061
  } & { [K_1 in Exclude<keyof I_1, keyof ClanSticker>]: never; }>(object: I_1): ClanSticker;
16040
16062
  };
16041
16063
  export declare const AllUsersAddChannelRequest: {
@@ -16587,12 +16609,14 @@ export declare const ClanStickerAddRequest: {
16587
16609
  category?: string | undefined;
16588
16610
  clan_id?: number | undefined;
16589
16611
  id?: string | undefined;
16612
+ media_type?: number | undefined;
16590
16613
  } & {
16591
16614
  source?: string | undefined;
16592
16615
  shortname?: string | undefined;
16593
16616
  category?: string | undefined;
16594
16617
  clan_id?: number | undefined;
16595
16618
  id?: string | undefined;
16619
+ media_type?: number | undefined;
16596
16620
  } & { [K in Exclude<keyof I, keyof ClanStickerAddRequest>]: never; }>(base?: I | undefined): ClanStickerAddRequest;
16597
16621
  fromPartial<I_1 extends {
16598
16622
  source?: string | undefined;
@@ -16600,12 +16624,14 @@ export declare const ClanStickerAddRequest: {
16600
16624
  category?: string | undefined;
16601
16625
  clan_id?: number | undefined;
16602
16626
  id?: string | undefined;
16627
+ media_type?: number | undefined;
16603
16628
  } & {
16604
16629
  source?: string | undefined;
16605
16630
  shortname?: string | undefined;
16606
16631
  category?: string | undefined;
16607
16632
  clan_id?: number | undefined;
16608
16633
  id?: string | undefined;
16634
+ media_type?: number | undefined;
16609
16635
  } & { [K_1 in Exclude<keyof I_1, keyof ClanStickerAddRequest>]: never; }>(object: I_1): ClanStickerAddRequest;
16610
16636
  };
16611
16637
  export declare const ClanStickerListByClanIdRequest: {
@@ -22117,23 +22143,23 @@ export declare const WalletLedgerListReq: {
22117
22143
  toJSON(message: WalletLedgerListReq): unknown;
22118
22144
  create<I extends {
22119
22145
  limit?: number | undefined;
22120
- cursor?: string | undefined;
22146
+ filter?: number | undefined;
22121
22147
  transaction_id?: string | undefined;
22122
22148
  page?: number | undefined;
22123
22149
  } & {
22124
22150
  limit?: number | undefined;
22125
- cursor?: string | undefined;
22151
+ filter?: number | undefined;
22126
22152
  transaction_id?: string | undefined;
22127
22153
  page?: number | undefined;
22128
22154
  } & { [K in Exclude<keyof I, keyof WalletLedgerListReq>]: never; }>(base?: I | undefined): WalletLedgerListReq;
22129
22155
  fromPartial<I_1 extends {
22130
22156
  limit?: number | undefined;
22131
- cursor?: string | undefined;
22157
+ filter?: number | undefined;
22132
22158
  transaction_id?: string | undefined;
22133
22159
  page?: number | undefined;
22134
22160
  } & {
22135
22161
  limit?: number | undefined;
22136
- cursor?: string | undefined;
22162
+ filter?: number | undefined;
22137
22163
  transaction_id?: string | undefined;
22138
22164
  page?: number | undefined;
22139
22165
  } & { [K_1 in Exclude<keyof I_1, keyof WalletLedgerListReq>]: never; }>(object: I_1): WalletLedgerListReq;