@argent/x-shared 1.41.2 → 1.41.4

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("url-join"),a=require("../../../errors/swap.cjs"),p=require("../../../utils/url/urlWithQuery.cjs"),l=require("../models/quote.model.cjs"),S=require("../utils/totalFee.cjs"),d=require("../models/trade.model.cjs"),i=require("../models/order.model.cjs");class y{constructor(e,r){if(this.httpService=e,!r)throw new a.SwapError({code:"NO_SWAP_URL"});this.swapQuoteUrl=u(r,"/quote"),this.swapOrderUrl=u(r,"/order")}async getSwapQuoteForPay(e,r,o,n,t="USD"){const s=p.urlWithQuery(this.swapQuoteUrl,{accountAddress:n,currency:t,chain:"starknet",sellToken:e,buyToken:r,sellAmount:o});try{const c=await this.httpService.get(s);return await l.SwapQuoteResponseSchema.parseAsync(c)}catch(c){throw console.error(c),new a.SwapError({code:"INVALID_QUOTE_RESPONSE"})}}async getSwapTradeFromQuote(e,r,o){if(!r||!o)throw new a.SwapError({code:"INVALID_SWAP_TOKENS"});const{totalFee:n,totalFeeInCurrency:t,totalFeePercentage:s}=S.calculateTotalFee(e);return d.TradeSchema.parse({payToken:r,receiveToken:o,payAmount:e.sellAmount,receiveAmount:e.buyAmount,payAmountInCurrency:e.sellAmountInCurrency,receiveAmountInCurrency:e.buyAmountInCurrency,totalFee:n,totalFeeInCurrency:t,totalFeePercentage:s,expiresAt:e.expiresAt,expiresIn:e.expiresIn,route:e.routes[0],data:e.data})}async getSwapOrderFromTrade(e,r,o){const n=i.SwapOrderRequestSchema.parse({chain:"starknet",sellToken:r.payToken.address,buyToken:r.receiveToken.address,sellAmount:r.payAmount,buyAmount:r.receiveAmount,accountAddress:e,slippage:o/1e4,data:r.data});try{const t=await this.httpService.post(this.swapOrderUrl,{body:JSON.stringify(n),headers:{"Content-Type":"application/json"}});return await i.SwapOrderResponseSchema.parseAsync(t)}catch(t){throw console.error(t),new a.SwapError({code:"INVALID_SWAP_ORDER_RESPONSE"})}}}exports.SharedSwapService=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("url-join"),a=require("../../../errors/swap.cjs"),p=require("../models/quote.model.cjs"),l=require("../utils/totalFee.cjs"),S=require("../models/trade.model.cjs"),i=require("../models/order.model.cjs"),d=require("../../../utils/url/urlWithQuery.cjs");class y{constructor(e,r){if(this.httpService=e,!r)throw new a.SwapError({code:"NO_SWAP_URL"});this.swapQuoteUrl=u(r,"/quote"),this.swapOrderUrl=u(r,"/order")}async getSwapQuoteForPay(e,r,o,n,t="USD"){const s=d.urlWithQuery(this.swapQuoteUrl,{accountAddress:n,currency:t,chain:"starknet",sellToken:e,buyToken:r,sellAmount:o});try{const c=await this.httpService.get(s);return await p.SwapQuoteResponseSchema.parseAsync(c)}catch(c){throw console.error(c),new a.SwapError({code:"INVALID_QUOTE_RESPONSE"})}}async getSwapTradeFromQuote(e,r,o){if(!r||!o)throw new a.SwapError({code:"INVALID_SWAP_TOKENS"});const{totalFee:n,totalFeeInCurrency:t,totalFeePercentage:s}=l.calculateTotalFee(e);return S.TradeSchema.parse({payToken:r,receiveToken:o,payAmount:e.sellAmount,receiveAmount:e.buyAmount,payAmountInCurrency:e.sellAmountInCurrency,receiveAmountInCurrency:e.buyAmountInCurrency,totalFee:n,totalFeeInCurrency:t,totalFeePercentage:s,expiresAt:e.expiresAt,expiresIn:e.expiresIn,route:e.routes[0],data:e.data})}async getSwapOrderFromTrade(e,r,o){const n=i.SwapOrderRequestSchema.parse({chain:"starknet",sellToken:r.payToken.address,buyToken:r.receiveToken.address,sellAmount:r.payAmount,buyAmount:r.receiveAmount,accountAddress:e,slippage:o/1e4,data:r.data});try{const t=await this.httpService.post(this.swapOrderUrl,{body:JSON.stringify(n),headers:{"Content-Type":"application/json"}});return await i.SwapOrderResponseSchema.parseAsync(t)}catch(t){throw console.error(t),new a.SwapError({code:"INVALID_SWAP_ORDER_RESPONSE"})}}}exports.SharedSwapService=y;
@@ -1,10 +1,10 @@
1
1
  import p from "url-join";
2
2
  import { SwapError as a } from "../../../errors/swap.js";
3
- import { urlWithQuery as i } from "../../../utils/url/urlWithQuery.js";
4
- import { SwapQuoteResponseSchema as u } from "../models/quote.model.js";
5
- import { calculateTotalFee as m } from "../utils/totalFee.js";
6
- import { TradeSchema as l } from "../models/trade.model.js";
7
- import { SwapOrderRequestSchema as S, SwapOrderResponseSchema as y } from "../models/order.model.js";
3
+ import { SwapQuoteResponseSchema as i } from "../models/quote.model.js";
4
+ import { calculateTotalFee as u } from "../utils/totalFee.js";
5
+ import { TradeSchema as m } from "../models/trade.model.js";
6
+ import { SwapOrderRequestSchema as l, SwapOrderResponseSchema as S } from "../models/order.model.js";
7
+ import { urlWithQuery as y } from "../../../utils/url/urlWithQuery.js";
8
8
  class _ {
9
9
  constructor(e, r) {
10
10
  if (this.httpService = e, !r)
@@ -12,7 +12,7 @@ class _ {
12
12
  this.swapQuoteUrl = p(r, "/quote"), this.swapOrderUrl = p(r, "/order");
13
13
  }
14
14
  async getSwapQuoteForPay(e, r, o, n, t = "USD") {
15
- const s = i(this.swapQuoteUrl, {
15
+ const s = y(this.swapQuoteUrl, {
16
16
  accountAddress: n,
17
17
  currency: t,
18
18
  chain: "starknet",
@@ -22,7 +22,7 @@ class _ {
22
22
  });
23
23
  try {
24
24
  const c = await this.httpService.get(s);
25
- return await u.parseAsync(c);
25
+ return await i.parseAsync(c);
26
26
  } catch (c) {
27
27
  throw console.error(c), new a({ code: "INVALID_QUOTE_RESPONSE" });
28
28
  }
@@ -30,8 +30,8 @@ class _ {
30
30
  async getSwapTradeFromQuote(e, r, o) {
31
31
  if (!r || !o)
32
32
  throw new a({ code: "INVALID_SWAP_TOKENS" });
33
- const { totalFee: n, totalFeeInCurrency: t, totalFeePercentage: s } = m(e);
34
- return l.parse({
33
+ const { totalFee: n, totalFeeInCurrency: t, totalFeePercentage: s } = u(e);
34
+ return m.parse({
35
35
  payToken: r,
36
36
  receiveToken: o,
37
37
  payAmount: e.sellAmount,
@@ -48,7 +48,7 @@ class _ {
48
48
  });
49
49
  }
50
50
  async getSwapOrderFromTrade(e, r, o) {
51
- const n = S.parse({
51
+ const n = l.parse({
52
52
  chain: "starknet",
53
53
  sellToken: r.payToken.address,
54
54
  buyToken: r.receiveToken.address,
@@ -65,7 +65,7 @@ class _ {
65
65
  "Content-Type": "application/json"
66
66
  }
67
67
  });
68
- return await y.parseAsync(t);
68
+ return await S.parseAsync(t);
69
69
  } catch (t) {
70
70
  throw console.error(t), new a({ code: "INVALID_SWAP_ORDER_RESPONSE" });
71
71
  }
@@ -28,6 +28,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
28
28
  fetchDefiDecomposition(address: Address, application: "mobile" | "webwallet" | "argentx"): Promise<{
29
29
  dappId: string;
30
30
  products: import('zod').objectOutputType<{
31
+ productId: import('zod').ZodString;
31
32
  name: import('zod').ZodString;
32
33
  manageUrl: import('zod').ZodString;
33
34
  type: import('zod').ZodUnion<[import('zod').ZodLiteral<"concentratedLiquidityPosition">, import('zod').ZodLiteral<"collateralizedDebtPosition">, import('zod').ZodLiteral<"delegatedTokens">, import('zod').ZodLiteral<"strkDelegatedStaking">, import('zod').ZodLiteral<"staking">]>;
@@ -261,6 +262,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
261
262
  apy: string;
262
263
  }>;
263
264
  investmentId: import('zod').ZodOptional<import('zod').ZodString>;
265
+ totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
264
266
  }>, "strip", import('zod').ZodTypeAny, {
265
267
  data: {
266
268
  apy: string;
@@ -1,11 +1,11 @@
1
1
  import { default as retry } from 'async-retry';
2
2
  import { ArgentBackendNetworkId } from '../../backend';
3
3
  import { Address } from '../../chains/starknet/address';
4
- import { ApiDefiDecompositionSchema, ApiTokenInfo } from './types/backend.model';
4
+ import { ApiDefiDecomposition, ApiTokenInfo } from './types/backend.model';
5
5
  import { WebBaseTokenWithBalance } from './types/webToken.model';
6
6
  export type SelectorFn<T> = (value: T) => boolean;
7
7
  export interface ITokenServiceDefiDecomposition {
8
- fetchDefiDecomposition: (address: Address, application: "mobile" | "webwallet" | "argentx") => Promise<ApiDefiDecompositionSchema[]>;
8
+ fetchDefiDecomposition: (address: Address, application: "mobile" | "webwallet" | "argentx") => Promise<ApiDefiDecomposition[]>;
9
9
  }
10
10
  /**
11
11
  * ITokenService interface provides methods for managing tokens, including storage methods, fetch methods, and get methods.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),a=require("../../../chains/starknet/address.cjs"),h=require("./defiPositionType.model.cjs"),b=require("../../../utils/schemas.cjs"),u=e.z.object({status:e.z.literal("initialising")}).or(e.z.object({status:e.z.literal("initialised"),balances:e.z.array(e.z.object({tokenAddress:a.addressSchemaArgentBackend,tokenBalance:e.z.string()}))})),t=e.z.object({id:e.z.number(),address:a.addressSchema,brandColor:e.z.string().optional(),name:e.z.string(),symbol:e.z.string(),decimals:e.z.number(),iconUrl:e.z.string().optional(),sendable:e.z.boolean(),popular:e.z.boolean(),refundable:e.z.boolean(),listed:e.z.boolean(),tradable:e.z.boolean(),category:e.z.union([e.z.literal("tokens"),e.z.literal("currencies"),e.z.literal("savings")]),pricingId:e.z.number().optional(),dappId:e.z.string().optional(),marketData:e.z.object({marketCap:e.z.number(),marketCap24hChange:e.z.number(),dailyVolume:e.z.number(),rank:e.z.number()}).optional(),tags:e.z.array(e.z.string()).optional()}),k=e.z.object({tokens:e.z.array(t)}),D=t,d=e.z.object({pricingId:e.z.number(),ethValue:e.z.string(),ccyValue:e.z.string(),ethDayChange:e.z.string(),ccyDayChange:e.z.string()}),y=e.z.object({prices:e.z.array(d)}),o=e.z.object({tokenAddress:a.addressSchemaArgentBackend,principal:e.z.string(),accruedFees:e.z.string(),minPrice:e.z.string(),maxPrice:e.z.string(),currentPrice:e.z.string()}),i=e.z.object({id:e.z.string(),tokenAddress:a.addressSchema.optional(),totalBalances:e.z.record(e.z.string())}),n=i.extend({tokenId:e.z.string(),data:e.z.object({poolFeePercentage:e.z.string(),tickSpacingPercentage:e.z.string().optional(),token0:o,token1:o})}),P=e.z.array(n),s=i.extend({data:e.z.object({apy:e.z.string()}),investmentId:e.z.string().optional()}),f=e.z.array(s),r=i.extend({data:e.z.object({apy:e.z.string().optional(),group:e.z.number().optional(),collateral:e.z.boolean(),debt:e.z.boolean(),lending:e.z.boolean()})}),j=e.z.array(r),c=e.z.object({data:e.z.object({delegatingTo:a.addressSchema}),totalBalances:e.z.record(e.z.string())}),T=e.z.array(c),p=i.extend({data:e.z.object({stakerInfo:e.z.object({name:e.z.string().optional(),iconUrl:e.z.string().optional(),address:a.addressSchema}),accruedReward:e.z.string(),pendingWithdrawal:e.z.object({amount:e.z.string(),withdrawableAfter:e.z.number()}).optional(),apy:e.z.string().optional()})}),A=e.z.array(p),z=n.or(r).or(c).or(s).or(p),l=e.z.array(z),m=b.createSchemaWithWarnings({name:e.z.string(),manageUrl:e.z.string(),type:h.defiPositionTypeSchema,groups:e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional()})).optional(),positions:l}),g=e.z.object({dappId:e.z.string(),products:e.z.array(m)}),C=e.z.object({dapps:e.z.array(g)}),S=e.z.object({name:e.z.string().optional(),tokenAddress:a.addressSchema,amount:e.z.string().optional(),claimUrl:e.z.string().optional(),claimStart:e.z.number(),claimEnd:e.z.number().optional()}),I=e.z.object({accountAddress:a.addressSchema,chain:e.z.string(),airdrops:e.z.array(S)});exports.apiAccountTokenBalancesSchema=u;exports.apiAirdropSchema=S;exports.apiCollateralizedDebtPositionSchema=r;exports.apiCollateralizedDebtPositionsSchema=j;exports.apiConcentratedLiquidityPositionSchema=n;exports.apiConcentratedLiquidityPositionsSchema=P;exports.apiDefiDecompositionProduct=m;exports.apiDefiDecompositionProducts=l;exports.apiDefiDecompositionSchema=g;exports.apiDefiDecompositionToken=o;exports.apiDefiPositionSchema=z;exports.apiDefiPositionsSchema=C;exports.apiDelegatedTokensArraySchema=T;exports.apiDelegatedTokensSchema=c;exports.apiPriceDataResponseSchema=y;exports.apiPriceDetailsSchema=d;exports.apiStakingPositionSchema=s;exports.apiStakingPositionsSchema=f;exports.apiStrkDelegatedStakingPositionsSchema=A;exports.apiStrkDelegatedStakingSchema=p;exports.apiTokenInfoResponseSchema=D;exports.apiTokenInfoSchema=t;exports.apiTokensInfoResponseSchema=k;exports.apiUnclaimedRewardsSchema=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),a=require("../../../chains/starknet/address.cjs"),h=require("./defiPositionType.model.cjs"),b=require("../../../utils/schemas.cjs"),u=e.z.object({status:e.z.literal("initialising")}).or(e.z.object({status:e.z.literal("initialised"),balances:e.z.array(e.z.object({tokenAddress:a.addressSchemaArgentBackend,tokenBalance:e.z.string()}))})),o=e.z.object({id:e.z.number(),address:a.addressSchema,brandColor:e.z.string().optional(),name:e.z.string(),symbol:e.z.string(),decimals:e.z.number(),iconUrl:e.z.string().optional(),sendable:e.z.boolean(),popular:e.z.boolean(),refundable:e.z.boolean(),listed:e.z.boolean(),tradable:e.z.boolean(),category:e.z.union([e.z.literal("tokens"),e.z.literal("currencies"),e.z.literal("savings")]),pricingId:e.z.number().optional(),dappId:e.z.string().optional(),marketData:e.z.object({marketCap:e.z.number(),marketCap24hChange:e.z.number(),dailyVolume:e.z.number(),rank:e.z.number()}).optional(),tags:e.z.array(e.z.string()).optional()}),k=e.z.object({tokens:e.z.array(o)}),D=o,d=e.z.object({pricingId:e.z.number(),ethValue:e.z.string(),ccyValue:e.z.string(),ethDayChange:e.z.string(),ccyDayChange:e.z.string()}),y=e.z.object({prices:e.z.array(d)}),t=e.z.object({tokenAddress:a.addressSchemaArgentBackend,principal:e.z.string(),accruedFees:e.z.string(),minPrice:e.z.string(),maxPrice:e.z.string(),currentPrice:e.z.string()}),i=e.z.object({id:e.z.string(),tokenAddress:a.addressSchema.optional(),totalBalances:e.z.record(e.z.string())}),n=i.extend({tokenId:e.z.string(),data:e.z.object({poolFeePercentage:e.z.string(),tickSpacingPercentage:e.z.string().optional(),token0:t,token1:t})}),P=e.z.array(n),s=i.extend({data:e.z.object({apy:e.z.string()}),investmentId:e.z.string().optional(),totalBalances:e.z.record(e.z.string())}),f=e.z.array(s),r=i.extend({data:e.z.object({apy:e.z.string().optional(),group:e.z.number().optional(),collateral:e.z.boolean(),debt:e.z.boolean(),lending:e.z.boolean()})}),j=e.z.array(r),c=e.z.object({data:e.z.object({delegatingTo:a.addressSchema}),totalBalances:e.z.record(e.z.string())}),T=e.z.array(c),p=i.extend({data:e.z.object({stakerInfo:e.z.object({name:e.z.string().optional(),iconUrl:e.z.string().optional(),address:a.addressSchema}),accruedReward:e.z.string(),pendingWithdrawal:e.z.object({amount:e.z.string(),withdrawableAfter:e.z.number()}).optional(),apy:e.z.string().optional()})}),A=e.z.array(p),z=n.or(r).or(c).or(s).or(p),l=e.z.array(z),m=b.createSchemaWithWarnings({productId:e.z.string(),name:e.z.string(),manageUrl:e.z.string(),type:h.defiPositionTypeSchema,groups:e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional()})).optional(),positions:l}),g=e.z.object({dappId:e.z.string(),products:e.z.array(m)}),C=e.z.object({dapps:e.z.array(g)}),S=e.z.object({name:e.z.string().optional(),tokenAddress:a.addressSchema,amount:e.z.string().optional(),claimUrl:e.z.string().optional(),claimStart:e.z.number(),claimEnd:e.z.number().optional()}),I=e.z.object({accountAddress:a.addressSchema,chain:e.z.string(),airdrops:e.z.array(S)});exports.apiAccountTokenBalancesSchema=u;exports.apiAirdropSchema=S;exports.apiCollateralizedDebtPositionSchema=r;exports.apiCollateralizedDebtPositionsSchema=j;exports.apiConcentratedLiquidityPositionSchema=n;exports.apiConcentratedLiquidityPositionsSchema=P;exports.apiDefiDecompositionProduct=m;exports.apiDefiDecompositionProducts=l;exports.apiDefiDecompositionSchema=g;exports.apiDefiDecompositionToken=t;exports.apiDefiPositionSchema=z;exports.apiDefiPositionsSchema=C;exports.apiDelegatedTokensArraySchema=T;exports.apiDelegatedTokensSchema=c;exports.apiPriceDataResponseSchema=y;exports.apiPriceDetailsSchema=d;exports.apiStakingPositionSchema=s;exports.apiStakingPositionsSchema=f;exports.apiStrkDelegatedStakingPositionsSchema=A;exports.apiStrkDelegatedStakingSchema=p;exports.apiTokenInfoResponseSchema=D;exports.apiTokenInfoSchema=o;exports.apiTokensInfoResponseSchema=k;exports.apiUnclaimedRewardsSchema=I;
@@ -706,6 +706,7 @@ export declare const apiStakingPositionSchema: z.ZodObject<z.objectUtil.extendSh
706
706
  apy: string;
707
707
  }>;
708
708
  investmentId: z.ZodOptional<z.ZodString>;
709
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
709
710
  }>, "strip", z.ZodTypeAny, {
710
711
  data: {
711
712
  apy: string;
@@ -736,6 +737,7 @@ export declare const apiStakingPositionsSchema: z.ZodArray<z.ZodObject<z.objectU
736
737
  apy: string;
737
738
  }>;
738
739
  investmentId: z.ZodOptional<z.ZodString>;
740
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
739
741
  }>, "strip", z.ZodTypeAny, {
740
742
  data: {
741
743
  apy: string;
@@ -1289,6 +1291,7 @@ export declare const apiDefiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[
1289
1291
  apy: string;
1290
1292
  }>;
1291
1293
  investmentId: z.ZodOptional<z.ZodString>;
1294
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
1292
1295
  }>, "strip", z.ZodTypeAny, {
1293
1296
  data: {
1294
1297
  apy: string;
@@ -1617,6 +1620,7 @@ export declare const apiDefiDecompositionProducts: z.ZodArray<z.ZodUnion<[z.ZodU
1617
1620
  apy: string;
1618
1621
  }>;
1619
1622
  investmentId: z.ZodOptional<z.ZodString>;
1623
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
1620
1624
  }>, "strip", z.ZodTypeAny, {
1621
1625
  data: {
1622
1626
  apy: string;
@@ -1725,6 +1729,7 @@ export declare const apiDefiDecompositionProducts: z.ZodArray<z.ZodUnion<[z.ZodU
1725
1729
  tokenAddress?: string | undefined;
1726
1730
  }>]>, "many">;
1727
1731
  export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
1732
+ productId: z.ZodString;
1728
1733
  name: z.ZodString;
1729
1734
  manageUrl: z.ZodString;
1730
1735
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -1958,6 +1963,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
1958
1963
  apy: string;
1959
1964
  }>;
1960
1965
  investmentId: z.ZodOptional<z.ZodString>;
1966
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
1961
1967
  }>, "strip", z.ZodTypeAny, {
1962
1968
  data: {
1963
1969
  apy: string;
@@ -2066,6 +2072,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
2066
2072
  tokenAddress?: string | undefined;
2067
2073
  }>]>, "many">;
2068
2074
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2075
+ productId: z.ZodString;
2069
2076
  name: z.ZodString;
2070
2077
  manageUrl: z.ZodString;
2071
2078
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -2299,6 +2306,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
2299
2306
  apy: string;
2300
2307
  }>;
2301
2308
  investmentId: z.ZodOptional<z.ZodString>;
2309
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
2302
2310
  }>, "strip", z.ZodTypeAny, {
2303
2311
  data: {
2304
2312
  apy: string;
@@ -2407,6 +2415,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
2407
2415
  tokenAddress?: string | undefined;
2408
2416
  }>]>, "many">;
2409
2417
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2418
+ productId: z.ZodString;
2410
2419
  name: z.ZodString;
2411
2420
  manageUrl: z.ZodString;
2412
2421
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -2640,6 +2649,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
2640
2649
  apy: string;
2641
2650
  }>;
2642
2651
  investmentId: z.ZodOptional<z.ZodString>;
2652
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
2643
2653
  }>, "strip", z.ZodTypeAny, {
2644
2654
  data: {
2645
2655
  apy: string;
@@ -2748,6 +2758,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
2748
2758
  tokenAddress?: string | undefined;
2749
2759
  }>]>, "many">;
2750
2760
  }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
2761
+ productId: z.ZodString;
2751
2762
  name: z.ZodString;
2752
2763
  manageUrl: z.ZodString;
2753
2764
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -2981,6 +2992,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
2981
2992
  apy: string;
2982
2993
  }>;
2983
2994
  investmentId: z.ZodOptional<z.ZodString>;
2995
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
2984
2996
  }>, "strip", z.ZodTypeAny, {
2985
2997
  data: {
2986
2998
  apy: string;
@@ -3089,6 +3101,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
3089
3101
  tokenAddress?: string | undefined;
3090
3102
  }>]>, "many">;
3091
3103
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3104
+ productId: z.ZodString;
3092
3105
  name: z.ZodString;
3093
3106
  manageUrl: z.ZodString;
3094
3107
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -3322,6 +3335,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
3322
3335
  apy: string;
3323
3336
  }>;
3324
3337
  investmentId: z.ZodOptional<z.ZodString>;
3338
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
3325
3339
  }>, "strip", z.ZodTypeAny, {
3326
3340
  data: {
3327
3341
  apy: string;
@@ -3431,6 +3445,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
3431
3445
  }>]>, "many">;
3432
3446
  }, z.ZodTypeAny, "passthrough">> & {
3433
3447
  extend: <E extends z.ZodRawShape>(extension: E) => z.ZodEffects<z.ZodObject<{
3448
+ productId: z.ZodString;
3434
3449
  name: z.ZodString;
3435
3450
  manageUrl: z.ZodString;
3436
3451
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -3664,6 +3679,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
3664
3679
  apy: string;
3665
3680
  }>;
3666
3681
  investmentId: z.ZodOptional<z.ZodString>;
3682
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
3667
3683
  }>, "strip", z.ZodTypeAny, {
3668
3684
  data: {
3669
3685
  apy: string;
@@ -3772,6 +3788,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
3772
3788
  tokenAddress?: string | undefined;
3773
3789
  }>]>, "many">;
3774
3790
  } & E, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3791
+ productId: z.ZodString;
3775
3792
  name: z.ZodString;
3776
3793
  manageUrl: z.ZodString;
3777
3794
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -4005,6 +4022,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
4005
4022
  apy: string;
4006
4023
  }>;
4007
4024
  investmentId: z.ZodOptional<z.ZodString>;
4025
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
4008
4026
  }>, "strip", z.ZodTypeAny, {
4009
4027
  data: {
4010
4028
  apy: string;
@@ -4113,6 +4131,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
4113
4131
  tokenAddress?: string | undefined;
4114
4132
  }>]>, "many">;
4115
4133
  } & E, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4134
+ productId: z.ZodString;
4116
4135
  name: z.ZodString;
4117
4136
  manageUrl: z.ZodString;
4118
4137
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -4346,6 +4365,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
4346
4365
  apy: string;
4347
4366
  }>;
4348
4367
  investmentId: z.ZodOptional<z.ZodString>;
4368
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
4349
4369
  }>, "strip", z.ZodTypeAny, {
4350
4370
  data: {
4351
4371
  apy: string;
@@ -4454,6 +4474,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
4454
4474
  tokenAddress?: string | undefined;
4455
4475
  }>]>, "many">;
4456
4476
  } & E, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
4477
+ productId: z.ZodString;
4457
4478
  name: z.ZodString;
4458
4479
  manageUrl: z.ZodString;
4459
4480
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -4687,6 +4708,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
4687
4708
  apy: string;
4688
4709
  }>;
4689
4710
  investmentId: z.ZodOptional<z.ZodString>;
4711
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
4690
4712
  }>, "strip", z.ZodTypeAny, {
4691
4713
  data: {
4692
4714
  apy: string;
@@ -4795,6 +4817,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
4795
4817
  tokenAddress?: string | undefined;
4796
4818
  }>]>, "many">;
4797
4819
  } & E, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4820
+ productId: z.ZodString;
4798
4821
  name: z.ZodString;
4799
4822
  manageUrl: z.ZodString;
4800
4823
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -5028,6 +5051,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
5028
5051
  apy: string;
5029
5052
  }>;
5030
5053
  investmentId: z.ZodOptional<z.ZodString>;
5054
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
5031
5055
  }>, "strip", z.ZodTypeAny, {
5032
5056
  data: {
5033
5057
  apy: string;
@@ -5140,6 +5164,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
5140
5164
  export declare const apiDefiDecompositionSchema: z.ZodObject<{
5141
5165
  dappId: z.ZodString;
5142
5166
  products: z.ZodArray<z.ZodEffects<z.ZodObject<{
5167
+ productId: z.ZodString;
5143
5168
  name: z.ZodString;
5144
5169
  manageUrl: z.ZodString;
5145
5170
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -5373,6 +5398,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
5373
5398
  apy: string;
5374
5399
  }>;
5375
5400
  investmentId: z.ZodOptional<z.ZodString>;
5401
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
5376
5402
  }>, "strip", z.ZodTypeAny, {
5377
5403
  data: {
5378
5404
  apy: string;
@@ -5481,6 +5507,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
5481
5507
  tokenAddress?: string | undefined;
5482
5508
  }>]>, "many">;
5483
5509
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5510
+ productId: z.ZodString;
5484
5511
  name: z.ZodString;
5485
5512
  manageUrl: z.ZodString;
5486
5513
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -5714,6 +5741,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
5714
5741
  apy: string;
5715
5742
  }>;
5716
5743
  investmentId: z.ZodOptional<z.ZodString>;
5744
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
5717
5745
  }>, "strip", z.ZodTypeAny, {
5718
5746
  data: {
5719
5747
  apy: string;
@@ -5822,6 +5850,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
5822
5850
  tokenAddress?: string | undefined;
5823
5851
  }>]>, "many">;
5824
5852
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5853
+ productId: z.ZodString;
5825
5854
  name: z.ZodString;
5826
5855
  manageUrl: z.ZodString;
5827
5856
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -6055,6 +6084,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
6055
6084
  apy: string;
6056
6085
  }>;
6057
6086
  investmentId: z.ZodOptional<z.ZodString>;
6087
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
6058
6088
  }>, "strip", z.ZodTypeAny, {
6059
6089
  data: {
6060
6090
  apy: string;
@@ -6163,6 +6193,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
6163
6193
  tokenAddress?: string | undefined;
6164
6194
  }>]>, "many">;
6165
6195
  }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
6196
+ productId: z.ZodString;
6166
6197
  name: z.ZodString;
6167
6198
  manageUrl: z.ZodString;
6168
6199
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -6396,6 +6427,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
6396
6427
  apy: string;
6397
6428
  }>;
6398
6429
  investmentId: z.ZodOptional<z.ZodString>;
6430
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
6399
6431
  }>, "strip", z.ZodTypeAny, {
6400
6432
  data: {
6401
6433
  apy: string;
@@ -6504,6 +6536,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
6504
6536
  tokenAddress?: string | undefined;
6505
6537
  }>]>, "many">;
6506
6538
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6539
+ productId: z.ZodString;
6507
6540
  name: z.ZodString;
6508
6541
  manageUrl: z.ZodString;
6509
6542
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -6737,6 +6770,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
6737
6770
  apy: string;
6738
6771
  }>;
6739
6772
  investmentId: z.ZodOptional<z.ZodString>;
6773
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
6740
6774
  }>, "strip", z.ZodTypeAny, {
6741
6775
  data: {
6742
6776
  apy: string;
@@ -6846,6 +6880,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
6846
6880
  }>]>, "many">;
6847
6881
  }, z.ZodTypeAny, "passthrough">> & {
6848
6882
  extend: <E extends z.ZodRawShape>(extension: E) => z.ZodEffects<z.ZodObject<{
6883
+ productId: z.ZodString;
6849
6884
  name: z.ZodString;
6850
6885
  manageUrl: z.ZodString;
6851
6886
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -7079,6 +7114,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
7079
7114
  apy: string;
7080
7115
  }>;
7081
7116
  investmentId: z.ZodOptional<z.ZodString>;
7117
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
7082
7118
  }>, "strip", z.ZodTypeAny, {
7083
7119
  data: {
7084
7120
  apy: string;
@@ -7187,6 +7223,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
7187
7223
  tokenAddress?: string | undefined;
7188
7224
  }>]>, "many">;
7189
7225
  } & E, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7226
+ productId: z.ZodString;
7190
7227
  name: z.ZodString;
7191
7228
  manageUrl: z.ZodString;
7192
7229
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -7420,6 +7457,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
7420
7457
  apy: string;
7421
7458
  }>;
7422
7459
  investmentId: z.ZodOptional<z.ZodString>;
7460
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
7423
7461
  }>, "strip", z.ZodTypeAny, {
7424
7462
  data: {
7425
7463
  apy: string;
@@ -7528,6 +7566,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
7528
7566
  tokenAddress?: string | undefined;
7529
7567
  }>]>, "many">;
7530
7568
  } & E, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7569
+ productId: z.ZodString;
7531
7570
  name: z.ZodString;
7532
7571
  manageUrl: z.ZodString;
7533
7572
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -7761,6 +7800,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
7761
7800
  apy: string;
7762
7801
  }>;
7763
7802
  investmentId: z.ZodOptional<z.ZodString>;
7803
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
7764
7804
  }>, "strip", z.ZodTypeAny, {
7765
7805
  data: {
7766
7806
  apy: string;
@@ -7869,6 +7909,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
7869
7909
  tokenAddress?: string | undefined;
7870
7910
  }>]>, "many">;
7871
7911
  } & E, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
7912
+ productId: z.ZodString;
7872
7913
  name: z.ZodString;
7873
7914
  manageUrl: z.ZodString;
7874
7915
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -8102,6 +8143,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
8102
8143
  apy: string;
8103
8144
  }>;
8104
8145
  investmentId: z.ZodOptional<z.ZodString>;
8146
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
8105
8147
  }>, "strip", z.ZodTypeAny, {
8106
8148
  data: {
8107
8149
  apy: string;
@@ -8210,6 +8252,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
8210
8252
  tokenAddress?: string | undefined;
8211
8253
  }>]>, "many">;
8212
8254
  } & E, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8255
+ productId: z.ZodString;
8213
8256
  name: z.ZodString;
8214
8257
  manageUrl: z.ZodString;
8215
8258
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -8443,6 +8486,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
8443
8486
  apy: string;
8444
8487
  }>;
8445
8488
  investmentId: z.ZodOptional<z.ZodString>;
8489
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
8446
8490
  }>, "strip", z.ZodTypeAny, {
8447
8491
  data: {
8448
8492
  apy: string;
@@ -8555,6 +8599,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
8555
8599
  }, "strip", z.ZodTypeAny, {
8556
8600
  dappId: string;
8557
8601
  products: z.objectOutputType<{
8602
+ productId: z.ZodString;
8558
8603
  name: z.ZodString;
8559
8604
  manageUrl: z.ZodString;
8560
8605
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -8788,6 +8833,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
8788
8833
  apy: string;
8789
8834
  }>;
8790
8835
  investmentId: z.ZodOptional<z.ZodString>;
8836
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
8791
8837
  }>, "strip", z.ZodTypeAny, {
8792
8838
  data: {
8793
8839
  apy: string;
@@ -8899,6 +8945,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
8899
8945
  }, {
8900
8946
  dappId: string;
8901
8947
  products: z.objectInputType<{
8948
+ productId: z.ZodString;
8902
8949
  name: z.ZodString;
8903
8950
  manageUrl: z.ZodString;
8904
8951
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -9132,6 +9179,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
9132
9179
  apy: string;
9133
9180
  }>;
9134
9181
  investmentId: z.ZodOptional<z.ZodString>;
9182
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
9135
9183
  }>, "strip", z.ZodTypeAny, {
9136
9184
  data: {
9137
9185
  apy: string;
@@ -9245,6 +9293,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
9245
9293
  dapps: z.ZodArray<z.ZodObject<{
9246
9294
  dappId: z.ZodString;
9247
9295
  products: z.ZodArray<z.ZodEffects<z.ZodObject<{
9296
+ productId: z.ZodString;
9248
9297
  name: z.ZodString;
9249
9298
  manageUrl: z.ZodString;
9250
9299
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -9478,6 +9527,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
9478
9527
  apy: string;
9479
9528
  }>;
9480
9529
  investmentId: z.ZodOptional<z.ZodString>;
9530
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
9481
9531
  }>, "strip", z.ZodTypeAny, {
9482
9532
  data: {
9483
9533
  apy: string;
@@ -9586,6 +9636,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
9586
9636
  tokenAddress?: string | undefined;
9587
9637
  }>]>, "many">;
9588
9638
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9639
+ productId: z.ZodString;
9589
9640
  name: z.ZodString;
9590
9641
  manageUrl: z.ZodString;
9591
9642
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -9819,6 +9870,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
9819
9870
  apy: string;
9820
9871
  }>;
9821
9872
  investmentId: z.ZodOptional<z.ZodString>;
9873
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
9822
9874
  }>, "strip", z.ZodTypeAny, {
9823
9875
  data: {
9824
9876
  apy: string;
@@ -9927,6 +9979,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
9927
9979
  tokenAddress?: string | undefined;
9928
9980
  }>]>, "many">;
9929
9981
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9982
+ productId: z.ZodString;
9930
9983
  name: z.ZodString;
9931
9984
  manageUrl: z.ZodString;
9932
9985
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -10160,6 +10213,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
10160
10213
  apy: string;
10161
10214
  }>;
10162
10215
  investmentId: z.ZodOptional<z.ZodString>;
10216
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
10163
10217
  }>, "strip", z.ZodTypeAny, {
10164
10218
  data: {
10165
10219
  apy: string;
@@ -10268,6 +10322,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
10268
10322
  tokenAddress?: string | undefined;
10269
10323
  }>]>, "many">;
10270
10324
  }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
10325
+ productId: z.ZodString;
10271
10326
  name: z.ZodString;
10272
10327
  manageUrl: z.ZodString;
10273
10328
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -10501,6 +10556,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
10501
10556
  apy: string;
10502
10557
  }>;
10503
10558
  investmentId: z.ZodOptional<z.ZodString>;
10559
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
10504
10560
  }>, "strip", z.ZodTypeAny, {
10505
10561
  data: {
10506
10562
  apy: string;
@@ -10609,6 +10665,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
10609
10665
  tokenAddress?: string | undefined;
10610
10666
  }>]>, "many">;
10611
10667
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10668
+ productId: z.ZodString;
10612
10669
  name: z.ZodString;
10613
10670
  manageUrl: z.ZodString;
10614
10671
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -10842,6 +10899,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
10842
10899
  apy: string;
10843
10900
  }>;
10844
10901
  investmentId: z.ZodOptional<z.ZodString>;
10902
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
10845
10903
  }>, "strip", z.ZodTypeAny, {
10846
10904
  data: {
10847
10905
  apy: string;
@@ -10951,6 +11009,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
10951
11009
  }>]>, "many">;
10952
11010
  }, z.ZodTypeAny, "passthrough">> & {
10953
11011
  extend: <E extends z.ZodRawShape>(extension: E) => z.ZodEffects<z.ZodObject<{
11012
+ productId: z.ZodString;
10954
11013
  name: z.ZodString;
10955
11014
  manageUrl: z.ZodString;
10956
11015
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -11184,6 +11243,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
11184
11243
  apy: string;
11185
11244
  }>;
11186
11245
  investmentId: z.ZodOptional<z.ZodString>;
11246
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
11187
11247
  }>, "strip", z.ZodTypeAny, {
11188
11248
  data: {
11189
11249
  apy: string;
@@ -11292,6 +11352,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
11292
11352
  tokenAddress?: string | undefined;
11293
11353
  }>]>, "many">;
11294
11354
  } & E, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11355
+ productId: z.ZodString;
11295
11356
  name: z.ZodString;
11296
11357
  manageUrl: z.ZodString;
11297
11358
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -11525,6 +11586,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
11525
11586
  apy: string;
11526
11587
  }>;
11527
11588
  investmentId: z.ZodOptional<z.ZodString>;
11589
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
11528
11590
  }>, "strip", z.ZodTypeAny, {
11529
11591
  data: {
11530
11592
  apy: string;
@@ -11633,6 +11695,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
11633
11695
  tokenAddress?: string | undefined;
11634
11696
  }>]>, "many">;
11635
11697
  } & E, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11698
+ productId: z.ZodString;
11636
11699
  name: z.ZodString;
11637
11700
  manageUrl: z.ZodString;
11638
11701
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -11866,6 +11929,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
11866
11929
  apy: string;
11867
11930
  }>;
11868
11931
  investmentId: z.ZodOptional<z.ZodString>;
11932
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
11869
11933
  }>, "strip", z.ZodTypeAny, {
11870
11934
  data: {
11871
11935
  apy: string;
@@ -11974,6 +12038,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
11974
12038
  tokenAddress?: string | undefined;
11975
12039
  }>]>, "many">;
11976
12040
  } & E, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
12041
+ productId: z.ZodString;
11977
12042
  name: z.ZodString;
11978
12043
  manageUrl: z.ZodString;
11979
12044
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -12207,6 +12272,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
12207
12272
  apy: string;
12208
12273
  }>;
12209
12274
  investmentId: z.ZodOptional<z.ZodString>;
12275
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
12210
12276
  }>, "strip", z.ZodTypeAny, {
12211
12277
  data: {
12212
12278
  apy: string;
@@ -12315,6 +12381,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
12315
12381
  tokenAddress?: string | undefined;
12316
12382
  }>]>, "many">;
12317
12383
  } & E, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12384
+ productId: z.ZodString;
12318
12385
  name: z.ZodString;
12319
12386
  manageUrl: z.ZodString;
12320
12387
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -12548,6 +12615,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
12548
12615
  apy: string;
12549
12616
  }>;
12550
12617
  investmentId: z.ZodOptional<z.ZodString>;
12618
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
12551
12619
  }>, "strip", z.ZodTypeAny, {
12552
12620
  data: {
12553
12621
  apy: string;
@@ -12660,6 +12728,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
12660
12728
  }, "strip", z.ZodTypeAny, {
12661
12729
  dappId: string;
12662
12730
  products: z.objectOutputType<{
12731
+ productId: z.ZodString;
12663
12732
  name: z.ZodString;
12664
12733
  manageUrl: z.ZodString;
12665
12734
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -12893,6 +12962,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
12893
12962
  apy: string;
12894
12963
  }>;
12895
12964
  investmentId: z.ZodOptional<z.ZodString>;
12965
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
12896
12966
  }>, "strip", z.ZodTypeAny, {
12897
12967
  data: {
12898
12968
  apy: string;
@@ -13004,6 +13074,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
13004
13074
  }, {
13005
13075
  dappId: string;
13006
13076
  products: z.objectInputType<{
13077
+ productId: z.ZodString;
13007
13078
  name: z.ZodString;
13008
13079
  manageUrl: z.ZodString;
13009
13080
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -13237,6 +13308,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
13237
13308
  apy: string;
13238
13309
  }>;
13239
13310
  investmentId: z.ZodOptional<z.ZodString>;
13311
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
13240
13312
  }>, "strip", z.ZodTypeAny, {
13241
13313
  data: {
13242
13314
  apy: string;
@@ -13350,6 +13422,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
13350
13422
  dapps: {
13351
13423
  dappId: string;
13352
13424
  products: z.objectOutputType<{
13425
+ productId: z.ZodString;
13353
13426
  name: z.ZodString;
13354
13427
  manageUrl: z.ZodString;
13355
13428
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -13583,6 +13656,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
13583
13656
  apy: string;
13584
13657
  }>;
13585
13658
  investmentId: z.ZodOptional<z.ZodString>;
13659
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
13586
13660
  }>, "strip", z.ZodTypeAny, {
13587
13661
  data: {
13588
13662
  apy: string;
@@ -13696,6 +13770,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
13696
13770
  dapps: {
13697
13771
  dappId: string;
13698
13772
  products: z.objectInputType<{
13773
+ productId: z.ZodString;
13699
13774
  name: z.ZodString;
13700
13775
  manageUrl: z.ZodString;
13701
13776
  type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
@@ -13929,6 +14004,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
13929
14004
  apy: string;
13930
14005
  }>;
13931
14006
  investmentId: z.ZodOptional<z.ZodString>;
14007
+ totalBalances: z.ZodRecord<z.ZodString, z.ZodString>;
13932
14008
  }>, "strip", z.ZodTypeAny, {
13933
14009
  data: {
13934
14010
  apy: string;
@@ -14041,8 +14117,8 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
14041
14117
  }>;
14042
14118
  export type ApiDefiDecompositionProduct = z.infer<typeof apiDefiDecompositionProduct>;
14043
14119
  export type ApiDefiDecompositionProducts = z.infer<typeof apiDefiDecompositionProducts>;
14044
- export type ApiDefiDecompositionSchema = z.infer<typeof apiDefiDecompositionSchema>;
14045
- export type ApiDefiPositionsSchema = z.infer<typeof apiDefiPositionsSchema>;
14120
+ export type ApiDefiDecomposition = z.infer<typeof apiDefiDecompositionSchema>;
14121
+ export type ApiDefiPositions = z.infer<typeof apiDefiPositionsSchema>;
14046
14122
  export declare const apiAirdropSchema: z.ZodObject<{
14047
14123
  name: z.ZodOptional<z.ZodString>;
14048
14124
  tokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
@@ -1,5 +1,5 @@
1
1
  import { z as a } from "zod";
2
- import { addressSchemaArgentBackend as n, addressSchema as e } from "../../../chains/starknet/address.js";
2
+ import { addressSchemaArgentBackend as n, addressSchema as t } from "../../../chains/starknet/address.js";
3
3
  import { defiPositionTypeSchema as d } from "./defiPositionType.model.js";
4
4
  import { createSchemaWithWarnings as m } from "../../../utils/schemas.js";
5
5
  const f = a.object({
@@ -12,7 +12,7 @@ const f = a.object({
12
12
  }))
13
13
  })), i = a.object({
14
14
  id: a.number(),
15
- address: e,
15
+ address: t,
16
16
  brandColor: a.string().optional(),
17
17
  name: a.string(),
18
18
  symbol: a.string(),
@@ -37,15 +37,15 @@ const f = a.object({
37
37
  rank: a.number()
38
38
  }).optional(),
39
39
  tags: a.array(a.string()).optional()
40
- }), A = a.object({
40
+ }), I = a.object({
41
41
  tokens: a.array(i)
42
- }), C = i, g = a.object({
42
+ }), A = i, g = a.object({
43
43
  pricingId: a.number(),
44
44
  ethValue: a.string(),
45
45
  ccyValue: a.string(),
46
46
  ethDayChange: a.string(),
47
47
  ccyDayChange: a.string()
48
- }), I = a.object({
48
+ }), C = a.object({
49
49
  prices: a.array(g)
50
50
  }), o = a.object({
51
51
  tokenAddress: n,
@@ -54,11 +54,11 @@ const f = a.object({
54
54
  minPrice: a.string(),
55
55
  maxPrice: a.string(),
56
56
  currentPrice: a.string()
57
- }), t = a.object({
57
+ }), e = a.object({
58
58
  id: a.string(),
59
- tokenAddress: e.optional(),
59
+ tokenAddress: t.optional(),
60
60
  totalBalances: a.record(a.string())
61
- }), r = t.extend({
61
+ }), r = e.extend({
62
62
  tokenId: a.string(),
63
63
  data: a.object({
64
64
  poolFeePercentage: a.string(),
@@ -66,12 +66,13 @@ const f = a.object({
66
66
  token0: o,
67
67
  token1: o
68
68
  })
69
- }), T = a.array(r), s = t.extend({
69
+ }), T = a.array(r), s = e.extend({
70
70
  data: a.object({
71
71
  apy: a.string()
72
72
  }),
73
- investmentId: a.string().optional()
74
- }), x = a.array(s), c = t.extend({
73
+ investmentId: a.string().optional(),
74
+ totalBalances: a.record(a.string())
75
+ }), B = a.array(s), c = e.extend({
75
76
  data: a.object({
76
77
  apy: a.string().optional(),
77
78
  group: a.number().optional(),
@@ -79,17 +80,17 @@ const f = a.object({
79
80
  debt: a.boolean(),
80
81
  lending: a.boolean()
81
82
  })
82
- }), B = a.array(c), l = a.object({
83
+ }), x = a.array(c), l = a.object({
83
84
  data: a.object({
84
- delegatingTo: e
85
+ delegatingTo: t
85
86
  }),
86
87
  totalBalances: a.record(a.string())
87
- }), R = a.array(l), p = t.extend({
88
+ }), R = a.array(l), p = e.extend({
88
89
  data: a.object({
89
90
  stakerInfo: a.object({
90
91
  name: a.string().optional(),
91
92
  iconUrl: a.string().optional(),
92
- address: e
93
+ address: t
93
94
  }),
94
95
  accruedReward: a.string(),
95
96
  pendingWithdrawal: a.object({
@@ -99,6 +100,7 @@ const f = a.object({
99
100
  apy: a.string().optional()
100
101
  })
101
102
  }), w = a.array(p), b = r.or(c).or(l).or(s).or(p), h = a.array(b), u = m({
103
+ productId: a.string(),
102
104
  name: a.string(),
103
105
  manageUrl: a.string(),
104
106
  type: d,
@@ -114,13 +116,13 @@ const f = a.object({
114
116
  dapps: a.array(S)
115
117
  }), k = a.object({
116
118
  name: a.string().optional(),
117
- tokenAddress: e,
119
+ tokenAddress: t,
118
120
  amount: a.string().optional(),
119
121
  claimUrl: a.string().optional(),
120
122
  claimStart: a.number(),
121
123
  claimEnd: a.number().optional()
122
124
  }), z = a.object({
123
- accountAddress: e,
125
+ accountAddress: t,
124
126
  chain: a.string(),
125
127
  airdrops: a.array(k)
126
128
  });
@@ -128,7 +130,7 @@ export {
128
130
  f as apiAccountTokenBalancesSchema,
129
131
  k as apiAirdropSchema,
130
132
  c as apiCollateralizedDebtPositionSchema,
131
- B as apiCollateralizedDebtPositionsSchema,
133
+ x as apiCollateralizedDebtPositionsSchema,
132
134
  r as apiConcentratedLiquidityPositionSchema,
133
135
  T as apiConcentratedLiquidityPositionsSchema,
134
136
  u as apiDefiDecompositionProduct,
@@ -139,14 +141,14 @@ export {
139
141
  U as apiDefiPositionsSchema,
140
142
  R as apiDelegatedTokensArraySchema,
141
143
  l as apiDelegatedTokensSchema,
142
- I as apiPriceDataResponseSchema,
144
+ C as apiPriceDataResponseSchema,
143
145
  g as apiPriceDetailsSchema,
144
146
  s as apiStakingPositionSchema,
145
- x as apiStakingPositionsSchema,
147
+ B as apiStakingPositionsSchema,
146
148
  w as apiStrkDelegatedStakingPositionsSchema,
147
149
  p as apiStrkDelegatedStakingSchema,
148
- C as apiTokenInfoResponseSchema,
150
+ A as apiTokenInfoResponseSchema,
149
151
  i as apiTokenInfoSchema,
150
- A as apiTokensInfoResponseSchema,
152
+ I as apiTokensInfoResponseSchema,
151
153
  z as apiUnclaimedRewardsSchema
152
154
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argent/x-shared",
3
- "version": "1.41.2",
3
+ "version": "1.41.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/argentlabs/x-shared.git"