@zyfai/sdk 0.2.55 → 0.2.57

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/index.d.ts CHANGED
@@ -5,7 +5,12 @@ import { Chain, PublicClient, Address as Address$1 } from 'viem';
5
5
  */
6
6
  type Address = `0x${string}`;
7
7
  type Hex = `0x${string}`;
8
- type Strategy = "conservative" | "aggressive";
8
+ /**
9
+ * Public strategy names.
10
+ * `yieldmaxxing` unlocks protocols with asynchronous (delayed) withdrawals —
11
+ * see `PortfolioDetailed.pendingAsyncWithdrawals`.
12
+ */
13
+ type Strategy = "conservative" | "aggressive" | "yieldmaxxing";
9
14
  /** Public asset symbols supported by the SDK */
10
15
  type SupportedAsset = "USDC" | "WETH" | "EURC";
11
16
  interface RpcUrlsConfig {
@@ -17,6 +22,10 @@ interface SDKConfig {
17
22
  apiKey: string;
18
23
  rpcUrls?: RpcUrlsConfig;
19
24
  referralSource?: string;
25
+ /** @internal Local integration tests only — not part of the public SDK contract. */
26
+ executionApiUrl?: string;
27
+ /** @internal Local integration tests only — not part of the public SDK contract. */
28
+ dataApiUrl?: string;
20
29
  }
21
30
  interface DeploySafeResponse {
22
31
  success: boolean;
@@ -121,6 +130,7 @@ interface staleBalances {
121
130
  tokenSymbol: string;
122
131
  balance: string;
123
132
  isPending: boolean;
133
+ updatedAt?: string;
124
134
  }
125
135
  interface Portfolio {
126
136
  user?: string;
@@ -128,6 +138,9 @@ interface Portfolio {
128
138
  chains?: number[];
129
139
  strategy?: string;
130
140
  smartWallet?: Address;
141
+ hasBalance?: boolean;
142
+ predeployed?: boolean;
143
+ ownershipTransferred?: boolean;
131
144
  positions?: PositionSlot[];
132
145
  hasActiveSessionKey?: boolean;
133
146
  newSessionKeyAvailable?: boolean;
@@ -148,11 +161,87 @@ interface PortfolioAssetBalance {
148
161
  }
149
162
  type PortfolioByAssetType = Record<string, PortfolioAssetBalance>;
150
163
  type PortfolioByChain = Record<string, PortfolioByAssetType>;
164
+ /**
165
+ * Lifecycle of an asynchronous (delayed) withdrawal.
166
+ * - `REQUESTED`: redemption asked, protocol has not released the funds yet
167
+ * - `CLAIMABLE`: protocol released the funds, claim transaction is queued
168
+ * - `CLAIMED`: funds are back in the Safe (or forwarded to the EOA)
169
+ * - `FAILED`: not claimable past `estimatedClaimAt`; the position is restored
170
+ * and the request is retried on the next cycle
171
+ */
172
+ type AsyncWithdrawalStatus = "REQUESTED" | "CLAIMABLE" | "CLAIMED" | "FAILED";
173
+ /**
174
+ * A redemption in flight on a protocol with a delayed withdrawal
175
+ * (Ipor, Superform). Funds are neither in `positions` nor in the Safe
176
+ * balance while the request is `REQUESTED` or `CLAIMABLE`.
177
+ */
178
+ interface AsyncWithdrawal {
179
+ id: string;
180
+ status: AsyncWithdrawalStatus;
181
+ chainId: number;
182
+ /** Pool / vault identifier, e.g. "NVDAC". */
183
+ pool: string;
184
+ /**
185
+ * Redeemed amount in the token's least units, hex-encoded like every other
186
+ * balance in the payload (e.g. `"0x98967f"`). Read it with `BigInt`, then
187
+ * apply `token.decimals`.
188
+ */
189
+ amount: string;
190
+ token?: {
191
+ id?: string;
192
+ name?: string;
193
+ symbol?: string;
194
+ decimals?: number;
195
+ address?: string;
196
+ chainId?: number;
197
+ icon?: string;
198
+ };
199
+ protocol?: {
200
+ id?: string;
201
+ name?: string;
202
+ imageUrl?: string;
203
+ icon?: string;
204
+ metadata?: {
205
+ /** Nominal redemption delay advertised by the protocol, in days. */
206
+ asyncWithdrawalDays?: number;
207
+ };
208
+ };
209
+ /**
210
+ * `"user_eoa"` when the user initiated the withdrawal (claimed funds go to
211
+ * the EOA); absent when the rebalancer did (funds get redeployed).
212
+ */
213
+ withdrawalTarget?: string | null;
214
+ /** ISO timestamp when the protocol is expected to allow claiming. */
215
+ estimatedClaimAt?: string | null;
216
+ /** ISO timestamp of the successful claim (`CLAIMED` only). */
217
+ claimedAt?: string | null;
218
+ requestTxHash?: string | null;
219
+ claimTxHash?: string | null;
220
+ /** Failed claim attempts so far — the cron retries until `estimatedClaimAt`. */
221
+ retryCount?: number;
222
+ /** User-facing copy when the protocol temporarily refuses claims. */
223
+ statusMessage?: string | null;
224
+ createdAt?: string;
225
+ updatedAt?: string;
226
+ }
151
227
  interface PortfolioDetailed {
152
228
  hasBalance?: boolean;
153
- staleBalances?: string[];
229
+ /** Idle Safe balances above the rebalance threshold, across all chains. */
230
+ staleBalances?: staleBalances[];
154
231
  hasActiveSessionKey?: boolean;
155
232
  positions?: PositionSlot[];
233
+ /**
234
+ * Redemptions in flight: `REQUESTED` and `CLAIMABLE`, plus `CLAIMED` from
235
+ * the last 24 hours. Only the first two hold funds that are missing from
236
+ * `portfolioByAssetType` — see the total-balance note on `getPortfolio`.
237
+ */
238
+ pendingAsyncWithdrawals?: AsyncWithdrawal[];
239
+ /**
240
+ * Per-token copy explaining a temporary protocol pause (e.g. tokenized
241
+ * stocks over the weekend), keyed by token symbol.
242
+ */
243
+ pauseMessageByToken?: Record<string, string>;
244
+ /** Positions + idle Safe balances, summed per asset type. */
156
245
  portfolioByAssetType?: PortfolioByAssetType;
157
246
  portfolioByChain?: PortfolioByChain;
158
247
  }
@@ -381,13 +470,13 @@ interface Opportunity {
381
470
  tvl?: number;
382
471
  asset?: string;
383
472
  risk?: string;
384
- strategyType: "conservative" | "aggressive";
473
+ strategyType: Strategy;
385
474
  status?: string;
386
475
  }
387
476
  interface OpportunitiesResponse {
388
477
  success: boolean;
389
478
  chainId?: number;
390
- strategyType: "conservative" | "aggressive";
479
+ strategyType: Strategy;
391
480
  data: Opportunity[];
392
481
  }
393
482
  interface ApyPosition {
@@ -481,7 +570,7 @@ interface SimulateBestPositionsParams {
481
570
  amount: number;
482
571
  token: string;
483
572
  networks: number | number[];
484
- strategy: "conservative" | "aggressive";
573
+ strategy: Strategy;
485
574
  minSplit?: number;
486
575
  protocols?: string[];
487
576
  pools?: string[];
@@ -764,6 +853,7 @@ declare class ZyfaiSDK {
764
853
  * Predeployed wallets no longer require deploySafe / createSessionKey.
765
854
  */
766
855
  private warnDeprecatedOnboardingMethod;
856
+ private readonly executionApiUrl;
767
857
  constructor(config: SDKConfig | string);
768
858
  /**
769
859
  * Authenticate user with SIWE (Sign-In with Ethereum) & JWT token
@@ -974,7 +1064,7 @@ declare class ZyfaiSDK {
974
1064
  *
975
1065
  * @param userAddress - User's EOA address (the connected EOA, not the smart wallet address)
976
1066
  * @param chainId - Target chain ID
977
- * @param strategy - Optional strategy selection: "conservative" (default) or "aggressive"
1067
+ * @param strategy - Optional strategy selection: "conservative" (default), "aggressive" or "yieldmaxxing"
978
1068
  * @param createSessionKey - If true, automatically creates a session key after deployment (default: false)
979
1069
  * @returns Deployment response with Safe address and transaction hash
980
1070
  *
@@ -1039,9 +1129,10 @@ declare class ZyfaiSDK {
1039
1129
  private updateUserProtocolsForAsset;
1040
1130
  /**
1041
1131
  * Drop protocols that have no pools on any of the selected chains for the
1042
- * requested asset. Uses the /customization/pools endpoint with
1043
- * `degen_strategy` as the master strategy so the response includes both
1044
- * safe and degen pools — mirrors the front-end behavior.
1132
+ * requested asset. The /customization/pools endpoint filters server-side on
1133
+ * the strategy, and each tier is a superset of the previous one, so the
1134
+ * caller's strategy must be passed through — asking for `degen_strategy`
1135
+ * returns an empty pool set for async-only assets.
1045
1136
  * @internal
1046
1137
  */
1047
1138
  private filterProtocolIdsWithPools;
@@ -1065,7 +1156,11 @@ declare class ZyfaiSDK {
1065
1156
  * protocol selection for USDC, WETH, and EURC across all supported chains
1066
1157
  * (EURC on Mainnet/Base only) before the transfer and log_deposit.
1067
1158
  * Pass `strategy` to select protocols for that first-deposit setup
1068
- * (same role as the former `deploySafe` strategy argument).
1159
+ * (same role as the former `deploySafe` strategy argument). On every later
1160
+ * deposit the argument is ignored without error, since re-running the patch
1161
+ * would overwrite a protocol selection the user may have customised. To
1162
+ * change the strategy of an existing account, call
1163
+ * `updateUserProfile({ asset, strategy })`.
1069
1164
  *
1070
1165
  * Minimum portfolio balance enforced (Safe balance + deposit amount):
1071
1166
  * - Stablecoins: `MIN_PORTFOLIO_BALANCE` (Mainnet 10,000 USDC/EURC; Base/Arbitrum 100)
@@ -1077,7 +1172,8 @@ declare class ZyfaiSDK {
1077
1172
  * @param asset - Asset symbol: "USDC", "WETH", or "EURC".
1078
1173
  * EURC is supported on Ethereum Mainnet and Base only.
1079
1174
  * @param strategy - Optional strategy for first-deposit protocol patching:
1080
- * "conservative" (default) or "aggressive"
1175
+ * "conservative" (default), "aggressive" or "yieldmaxxing". Ignored on
1176
+ * later deposits — use `updateUserProfile` to change an existing account.
1081
1177
  * @returns Deposit response with transaction hash
1082
1178
  *
1083
1179
  * @example
@@ -1092,6 +1188,9 @@ declare class ZyfaiSDK {
1092
1188
  *
1093
1189
  * // First deposit with aggressive strategy
1094
1190
  * await sdk.depositFunds(userAddress, 8453, "10000000000", "USDC", "aggressive");
1191
+ *
1192
+ * // Changing the strategy of an account that has already deposited
1193
+ * await sdk.updateUserProfile({ asset: "USDC", strategy: "yieldmaxxing" });
1095
1194
  * ```
1096
1195
  */
1097
1196
  /**
@@ -1126,6 +1225,10 @@ declare class ZyfaiSDK {
1126
1225
  * wallet stays reserved (no ownership rotation), and yield/agent tracking does
1127
1226
  * not start.
1128
1227
  *
1228
+ * Requires `connectAccount()` on the same SDK instance first (SIWE user JWT).
1229
+ * The SDK API key alone is not enough — `log_deposit` returns 401 without a
1230
+ * Bearer token.
1231
+ *
1129
1232
  * Use this method when you execute the deposit transaction yourself and need to
1130
1233
  * register it with the Zyfai backend.
1131
1234
  *
@@ -1167,6 +1270,25 @@ declare class ZyfaiSDK {
1167
1270
  * Note: The withdrawal is processed asynchronously, so txHash may not be immediately available
1168
1271
  * Funds are always withdrawn to the Safe owner's address (userAddress)
1169
1272
  *
1273
+ * **Delayed withdrawals.** Positions held under the `"yieldmaxxing"`
1274
+ * strategy sit in protocols that cannot be exited on demand. For those the
1275
+ * backend transfers the immediately available portion, then queues a
1276
+ * redemption for the rest and forwards the funds to the EOA once the
1277
+ * protocol releases them — about a day on Ipor, three on Superform. No
1278
+ * further call is needed, but the returned `txHash` only covers the
1279
+ * immediate portion. Track the remainder through
1280
+ * `getPortfolio().portfolio.pendingAsyncWithdrawals`, whose entries carry a
1281
+ * `status` and an `estimatedClaimAt`.
1282
+ *
1283
+ * When every source is an async pool nothing settles on-chain at that point,
1284
+ * so `txHash` is `undefined` on a successful call.
1285
+ *
1286
+ * Once requested, that amount can no longer be withdrawn: it is gone from
1287
+ * both the position snapshot and the Safe balance, so a second call silently
1288
+ * returns only what is left. Validate user-entered amounts against
1289
+ * `portfolioByAssetType`, not against the total that includes in-flight
1290
+ * funds — see `getPortfolio`.
1291
+ *
1170
1292
  * @param userAddress - User's address (owner of the Safe)
1171
1293
  * @param chainId - Target chain ID
1172
1294
  * @param amount - Optional: Amount in least decimal units to withdraw (partial withdrawal). If not specified, withdraws all funds
@@ -1231,6 +1353,29 @@ declare class ZyfaiSDK {
1231
1353
  * Note: portfolio balances are live; earnings used for the fee may be from
1232
1354
  * a snapshot, so net values can differ slightly from a fully live calc.
1233
1355
  *
1356
+ * **Total balance.** `portfolioByAssetType` sums deployed positions and idle
1357
+ * Safe balances, and nothing else. Under the `"yieldmaxxing"` strategy a
1358
+ * redemption in flight has already left its position and has not landed in
1359
+ * the Safe yet, so its funds appear in no balance field at all. That makes
1360
+ * two distinct numbers:
1361
+ *
1362
+ * ```
1363
+ * total = portfolioByAssetType[assetType].balance
1364
+ * + sum(pendingAsyncWithdrawals where REQUESTED or CLAIMABLE)
1365
+ *
1366
+ * requestable = portfolioByAssetType[assetType].balance
1367
+ * ```
1368
+ *
1369
+ * An in-flight amount is no longer withdrawable: `withdrawFunds` only reaches
1370
+ * the current positions and idle balances, so calling it again neither speeds
1371
+ * those funds up nor errors. They reach the EOA on their own. Cap any
1372
+ * user-entered withdrawal amount at `requestable`, never at `total`.
1373
+ *
1374
+ * Do not add `staleBalances` on top — those are the same idle balances
1375
+ * `portfolioByAssetType` already counts, exposed as a per-chain view.
1376
+ * Do not add `CLAIMED` withdrawals either (the array keeps them for 24
1377
+ * hours); their funds are back in the Safe and already counted.
1378
+ *
1234
1379
  * @param userAddress - User's EOA address
1235
1380
  * @returns Portfolio with optional fee-adjusted balance fields
1236
1381
  *
@@ -1238,6 +1383,11 @@ declare class ZyfaiSDK {
1238
1383
  * ```typescript
1239
1384
  * const { portfolio } = await sdk.getPortfolio(userAddress);
1240
1385
  * console.log(portfolio.portfolioByAssetType?.usdc?.balanceWithFee);
1386
+ *
1387
+ * // Funds still locked in an async redemption
1388
+ * const inFlight = (portfolio.pendingAsyncWithdrawals ?? []).filter(
1389
+ * (w) => w.status === "REQUESTED" || w.status === "CLAIMABLE"
1390
+ * );
1241
1391
  * ```
1242
1392
  */
1243
1393
  getPortfolio(userAddress: string): Promise<PortfolioDetailedResponse>;
@@ -1273,7 +1423,7 @@ declare class ZyfaiSDK {
1273
1423
  *
1274
1424
  * @param crossChain - Whether to get cross-chain APY (true = omni account, false = simple account)
1275
1425
  * @param days - Time period: 7, 14, or 30
1276
- * @param strategy - Strategy type: "conservative" (default) or "aggressive"
1426
+ * @param strategy - Strategy type: "conservative" (default), "aggressive" or "yieldmaxxing"
1277
1427
  * @param chainId - Optional chain ID filter
1278
1428
  * @param tokenSymbol - Optional token symbol filter (e.g. "USDC", "WETH", "WBTC")
1279
1429
  * @returns APY per strategy for a specific chain
@@ -1450,6 +1600,24 @@ declare class ZyfaiSDK {
1450
1600
  * ```
1451
1601
  */
1452
1602
  getAggressiveOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
1603
+ /**
1604
+ * Get yieldmaxxing opportunities — pools reachable only with the
1605
+ * `"yieldmaxxing"` strategy, including protocols whose withdrawals are
1606
+ * asynchronous (Ipor, Superform). Exiting these pools takes about a day
1607
+ * on Ipor and three on Superform; track the redemption through
1608
+ * `getPortfolio().portfolio.pendingAsyncWithdrawals`.
1609
+ *
1610
+ * @param chainId - Optional chain ID filter
1611
+ * @param asset - Optional asset filter (e.g. "USDC", "WETH")
1612
+ * @returns List of yieldmaxxing opportunities
1613
+ *
1614
+ * @example
1615
+ * ```typescript
1616
+ * const opportunities = await sdk.getAsyncOpportunities(8453);
1617
+ * opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
1618
+ * ```
1619
+ */
1620
+ getAsyncOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>;
1453
1621
  /**
1454
1622
  * Get active conservative opportunities (status = "live") with risk and utilization data
1455
1623
  * Returns pool info, liquidity depth (true if > 1M), utilization rate, stability metrics, avg APY, and collateral
@@ -1606,7 +1774,7 @@ declare class ZyfaiSDK {
1606
1774
  * Returns the list of pools available for a given protocol, optionally filtered by strategy.
1607
1775
  *
1608
1776
  * @param protocolId - The protocol UUID
1609
- * @param strategy - Optional strategy filter ("conservative" or "aggressive")
1777
+ * @param strategy - Optional strategy filter ("conservative", "aggressive" or "yieldmaxxing")
1610
1778
  * @returns List of available pool names
1611
1779
  *
1612
1780
  * @example
@@ -1622,7 +1790,7 @@ declare class ZyfaiSDK {
1622
1790
  * );
1623
1791
  * ```
1624
1792
  */
1625
- getAvailablePools(protocolId: string, strategy?: "conservative" | "aggressive"): Promise<GetPoolsResponse>;
1793
+ getAvailablePools(protocolId: string, strategy?: Strategy): Promise<GetPoolsResponse>;
1626
1794
  /**
1627
1795
  * Simulate the best yield positions for a given amount, splitting it across
1628
1796
  * the top-ranked pools (up to minSplit positions) for the requested chains/strategy.
@@ -1858,6 +2026,50 @@ declare function createBankrProvider(config: BankrProviderConfig): {
1858
2026
  };
1859
2027
  type BankrProvider = ReturnType<typeof createBankrProvider>;
1860
2028
 
2029
+ /**
2030
+ * API Endpoints Configuration
2031
+ *
2032
+ * Base URLs are grouped by environment. Default exports always target production;
2033
+ * use the maps or named constants for staging/local stacks (integration tests,
2034
+ * examples, internal tooling).
2035
+ */
2036
+
2037
+ type BackendEnvironment = "production" | "staging" | "local";
2038
+ /** Execution API (zyfai-api) origin — no `/api/v1` suffix. */
2039
+ declare const EXECUTION_API_BASE_URLS: {
2040
+ readonly production: "https://api.zyf.ai";
2041
+ readonly staging: "https://staging-api.zyf.ai";
2042
+ readonly local: "http://localhost:3000";
2043
+ };
2044
+ /** Data API (zyfai-defi-api) origin — no `/api/v2` suffix. */
2045
+ declare const DATA_API_BASE_URLS: {
2046
+ readonly production: "https://defiapi.zyf.ai";
2047
+ readonly staging: "https://staging-defiapi.zyf.ai";
2048
+ /** Both backends default to port 3000 locally; run one at a time or override PORT. */
2049
+ readonly local: "http://localhost:3000";
2050
+ };
2051
+ /** Defi-api WebSocket URL (includes `/ws/events` path). */
2052
+ declare const WS_URLS: {
2053
+ readonly production: "wss://defiapi.zyf.ai/ws/events";
2054
+ readonly staging: "wss://staging-defiapi.zyf.ai/ws/events";
2055
+ readonly local: "ws://localhost:3000/ws/events";
2056
+ };
2057
+ /** Production execution API — default for the public SDK. */
2058
+ declare const API_ENDPOINT: "https://api.zyf.ai";
2059
+ /** Production data API — default for the public SDK. */
2060
+ declare const DATA_API_ENDPOINT: "https://defiapi.zyf.ai";
2061
+ /** Production defi-api WebSocket — default for the public SDK. */
2062
+ declare const WS_ENDPOINT: "wss://defiapi.zyf.ai/ws/events";
2063
+ declare const STAGING_EXECUTION_API_BASE_URL: "https://staging-api.zyf.ai";
2064
+ declare const STAGING_DATA_API_BASE_URL: "https://staging-defiapi.zyf.ai";
2065
+ declare const STAGING_WS_URL: "wss://staging-defiapi.zyf.ai/ws/events";
2066
+ declare const LOCAL_EXECUTION_API_BASE_URL: "http://localhost:3000";
2067
+ declare const LOCAL_DATA_API_BASE_URL: "http://localhost:3000";
2068
+ declare const LOCAL_WS_URL: "ws://localhost:3000/ws/events";
2069
+ declare function getExecutionApiBaseUrl(environment?: BackendEnvironment): string;
2070
+ declare function getDataApiBaseUrl(environment?: BackendEnvironment): string;
2071
+ declare function getWsUrl(environment?: BackendEnvironment): string;
2072
+
1861
2073
  declare const VAULT_ADDRESS: "0xD580071c47d4a667858B5FafAb85BC9C609beC5D";
1862
2074
 
1863
2075
  /**
@@ -1904,4 +2116,4 @@ declare const ERC7579_LAUNCHPAD_ADDRESS: Address$1;
1904
2116
  */
1905
2117
  declare const POOL_MODULE_ADDRESSES: readonly Address$1[];
1906
2118
 
1907
- export { ALLOWED_HISTORY_DAYS, type APYPerStrategy, type APYPerStrategyResponse, type ActionData, type ActiveWallet, type ActiveWalletsResponse, type AddWalletToSdkResponse, type Address, type AllocationDetail, type AllowedHistoryDays, type ApyPosition, type BankrProvider, type BankrProviderConfig, type BestOpportunityDetails, type BestOpportunityResponse, type ChainConfig, type ChainPortfolio, type ChainTokenEarnings, type CustomizationConfig, type CustomizeBatchRequest, type CustomizeBatchResponse, DEFAULT_TOKEN_ADDRESSES, type DailyApyEntry, type DailyApyHistoryPeriod, type DailyApyHistoryResponse, type DailyEarning, type DailyEarningsResponse, type DebankPortfolioResponse, type DepegEvent, type DeploySafeResponse, type DepositResponse, ERC7579_LAUNCHPAD_ADDRESS, type ERC7739Context, type ERC7739Data, type ExcludedPool, type FirstTopupResponse, type GetPoolsResponse, type GetSelectedPoolsResponse, type Hex, type HistoryEntry, type HistoryFeeData, type HistoryPosition, type HistoryRebalanceLog, type HistoryResponse, INTENT_EXECUTOR, INTENT_SMART_SESSIONS, type LiquidityDropEvent, type LogDepositResponse, type NewCollateralDetectedEvent, OWNABLE_VALIDATOR, type OnchainEarnings, type OnchainEarningsResponse, type OpportunitiesResponse, type Opportunity, type OpportunityPosition, POOL_MODULE_ADDRESSES, PROXY_EXECUTOR, type PolicyData, type Pool, type Portfolio, type PortfolioAssetBalance, type PortfolioByAssetType, type PortfolioByChain, type PortfolioDetailed, type PortfolioDetailedResponse, type PortfolioResponse, type PortfolioToken, type PositionSlot, type Protocol, type ProtocolsResponse, type RebalanceFrequencyResponse, type RegisterAgentResponse, SAFE_7579_ADDRESS, type SDKConfig, SMART_SESSIONS_FALLBACK, SMART_SESSIONS_VALIDATOR, type SdkKeyTVLResponse, type Session, type SessionKeyResponse, type SimulateBestPositionsParams, type SimulateBestPositionsResponse, type SimulateCalldataItem, type SimulatedPosition, type SmartWalletByEOAResponse, type SmartWalletResponse, type Strategy, type SupportedAsset, type SupportedChainId, type TVLResponse, type TokenApy, type TokenEarnings, type UpdateUserProfileRequest, type UpdateUserProfileResponse, type UserPosition, VAULT_ADDRESS, type VaultAsset, type VaultClaimResponse, type VaultDepositResponse, type VaultSharesResponse, type VaultWithdrawResponse, type VaultWithdrawStatusResponse, type VolumeResponse, type WalletTVL, type WithdrawResponse, type ZyfaiEventFilters, type ZyfaiEventHandlers, ZyfaiSDK, createBankrProvider, getChainConfig, getDefaultTokenAddress, getSupportedChainIds, isSupportedChain };
2119
+ export { ALLOWED_HISTORY_DAYS, API_ENDPOINT, type APYPerStrategy, type APYPerStrategyResponse, type ActionData, type ActiveWallet, type ActiveWalletsResponse, type AddWalletToSdkResponse, type Address, type AllocationDetail, type AllowedHistoryDays, type ApyPosition, type AsyncWithdrawal, type AsyncWithdrawalStatus, type BackendEnvironment, type BankrProvider, type BankrProviderConfig, type BestOpportunityDetails, type BestOpportunityResponse, type ChainConfig, type ChainPortfolio, type ChainTokenEarnings, type CustomizationConfig, type CustomizeBatchRequest, type CustomizeBatchResponse, DATA_API_BASE_URLS, DATA_API_ENDPOINT, DEFAULT_TOKEN_ADDRESSES, type DailyApyEntry, type DailyApyHistoryPeriod, type DailyApyHistoryResponse, type DailyEarning, type DailyEarningsResponse, type DebankPortfolioResponse, type DepegEvent, type DeploySafeResponse, type DepositResponse, ERC7579_LAUNCHPAD_ADDRESS, type ERC7739Context, type ERC7739Data, EXECUTION_API_BASE_URLS, type ExcludedPool, type FirstTopupResponse, type GetPoolsResponse, type GetSelectedPoolsResponse, type Hex, type HistoryEntry, type HistoryFeeData, type HistoryPosition, type HistoryRebalanceLog, type HistoryResponse, INTENT_EXECUTOR, INTENT_SMART_SESSIONS, LOCAL_DATA_API_BASE_URL, LOCAL_EXECUTION_API_BASE_URL, LOCAL_WS_URL, type LiquidityDropEvent, type LogDepositResponse, type NewCollateralDetectedEvent, OWNABLE_VALIDATOR, type OnchainEarnings, type OnchainEarningsResponse, type OpportunitiesResponse, type Opportunity, type OpportunityPosition, POOL_MODULE_ADDRESSES, PROXY_EXECUTOR, type PolicyData, type Pool, type Portfolio, type PortfolioAssetBalance, type PortfolioByAssetType, type PortfolioByChain, type PortfolioDetailed, type PortfolioDetailedResponse, type PortfolioResponse, type PortfolioToken, type PositionSlot, type Protocol, type ProtocolsResponse, type RebalanceFrequencyResponse, type RegisterAgentResponse, SAFE_7579_ADDRESS, type SDKConfig, SMART_SESSIONS_FALLBACK, SMART_SESSIONS_VALIDATOR, STAGING_DATA_API_BASE_URL, STAGING_EXECUTION_API_BASE_URL, STAGING_WS_URL, type SdkKeyTVLResponse, type Session, type SessionKeyResponse, type SimulateBestPositionsParams, type SimulateBestPositionsResponse, type SimulateCalldataItem, type SimulatedPosition, type SmartWalletByEOAResponse, type SmartWalletResponse, type Strategy, type SupportedAsset, type SupportedChainId, type TVLResponse, type TokenApy, type TokenEarnings, type UpdateUserProfileRequest, type UpdateUserProfileResponse, type UserPosition, VAULT_ADDRESS, type VaultAsset, type VaultClaimResponse, type VaultDepositResponse, type VaultSharesResponse, type VaultWithdrawResponse, type VaultWithdrawStatusResponse, type VolumeResponse, WS_ENDPOINT, WS_URLS, type WalletTVL, type WithdrawResponse, type ZyfaiEventFilters, type ZyfaiEventHandlers, ZyfaiSDK, createBankrProvider, getChainConfig, getDataApiBaseUrl, getDefaultTokenAddress, getExecutionApiBaseUrl, getSupportedChainIds, getWsUrl, isSupportedChain, type staleBalances };