@mobula_labs/types 0.1.4 → 0.1.5

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/dist/esm/index.js CHANGED
@@ -2783,16 +2783,9 @@ import { z as z44 } from "zod";
2783
2783
  var WalletHistoryParamsSchema = z44.object({
2784
2784
  wallet: z44.string().optional(),
2785
2785
  wallets: z44.string().optional(),
2786
- portfolio: z44.string().optional(),
2787
2786
  blockchains: z44.string().optional(),
2788
- asset: z44.string().optional(),
2789
- pnl: z44.string().optional(),
2790
- cache: z44.string().optional(),
2791
- stale: z44.string().optional(),
2792
- recheck_contract: z44.string().optional(),
2793
2787
  from: z44.string().optional(),
2794
2788
  to: z44.string().optional(),
2795
- portfolio_settings: z44.string().optional(),
2796
2789
  unlistedAssets: z44.string().optional(),
2797
2790
  period: z44.string().optional(),
2798
2791
  accuracy: z44.string().optional(),
@@ -2801,6 +2794,7 @@ var WalletHistoryParamsSchema = z44.object({
2801
2794
  filterSpam: z44.string().optional(),
2802
2795
  fetchUntrackedHistory: z44.string().optional(),
2803
2796
  fetchAllChains: z44.string().optional(),
2797
+ shouldFetchPriceChange: z44.string().optional(),
2804
2798
  backfillTransfers: z44.string().optional()
2805
2799
  });
2806
2800
  var WalletHistoryResponseSchema = z44.object({
@@ -2901,6 +2895,7 @@ var PortfolioResponseSchema = z47.object({
2901
2895
  price_change_24h: z47.number(),
2902
2896
  estimated_balance: z47.number(),
2903
2897
  price: z47.number(),
2898
+ liquidity: z47.number(),
2904
2899
  token_balance: z47.number(),
2905
2900
  allocation: z47.number(),
2906
2901
  asset: z47.object({
@@ -3009,6 +3004,7 @@ var MultiPortfolioResponseSchema = z47.object({
3009
3004
  price_change_24h: z47.number(),
3010
3005
  estimated_balance: z47.number(),
3011
3006
  price: z47.number(),
3007
+ liquidity: z47.number(),
3012
3008
  token_balance: z47.number(),
3013
3009
  allocation: z47.number(),
3014
3010
  asset: z47.object({
@@ -3930,38 +3926,19 @@ var MarketDetailsItemParams = z57.object({
3930
3926
  blockchain: z57.string().optional(),
3931
3927
  address: z57.string().optional(),
3932
3928
  baseToken: z57.string().optional(),
3933
- currencies: CurrenciesParamSchema,
3934
- stats: z57.union([z57.boolean(), z57.string()]).default(false).transform((val) => typeof val === "string" ? val === "true" : val),
3935
- force: z57.coerce.boolean().optional().default(false),
3936
- instanceTracking: z57.preprocess((val) => {
3937
- if (val === "true")
3938
- return true;
3939
- if (val === "false")
3940
- return false;
3941
- return val;
3942
- }, z57.boolean().optional())
3943
- }).transform(({ blockchain, address, baseToken, currencies, stats, force, instanceTracking }) => ({
3929
+ currencies: z57.string().optional()
3930
+ }).transform(({ blockchain, address, baseToken, currencies }) => ({
3944
3931
  blockchain,
3945
3932
  address,
3946
3933
  baseToken,
3947
- currencies,
3948
- stats,
3949
- force,
3950
- instanceTracking,
3934
+ currencies: CurrenciesParamSchema.parse(currencies),
3951
3935
  asset: address ? address : undefined
3952
3936
  }));
3953
3937
  var MarketDetailsParamsSchema = MarketDetailsItemParams;
3954
3938
  var MarketDetailsBatchParamsSchema = z57.union([
3955
3939
  z57.array(MarketDetailsItemParams),
3956
3940
  z57.object({
3957
- items: z57.array(MarketDetailsItemParams),
3958
- instanceTracking: z57.preprocess((val) => {
3959
- if (val === "true")
3960
- return true;
3961
- if (val === "false")
3962
- return false;
3963
- return val;
3964
- }, z57.boolean().optional())
3941
+ items: z57.array(MarketDetailsItemParams)
3965
3942
  })
3966
3943
  ]);
3967
3944
  var MarketDetailsResponseSchema = z57.object({
@@ -5731,4 +5708,4 @@ export {
5731
5708
  API_KEYS_QUERIES
5732
5709
  };
5733
5710
 
5734
- //# debugId=3106336EDE373F6264756E2164756E21
5711
+ //# debugId=1AE7677457CFDC5664756E2164756E21