@owney/sdk 0.7.32-beta.12 → 0.7.32-beta.14

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.cts CHANGED
@@ -314,6 +314,17 @@ type ProviderSnapshotSample = {
314
314
  type RpcUrlsConfig = Partial<Record<(typeof SUPPORTED_CHAIN_IDS)[number], string>>;
315
315
  /** @deprecated Use RpcUrlsConfig. */
316
316
  type ZyfaiRpcUrlsConfig = RpcUrlsConfig;
317
+ /**
318
+ * Where an agent keeps its login session (for Zyfai: the JWT plus the flags
319
+ * it caches). The value is opaque JSON owned by the agent; the agent validates
320
+ * it on read. Default is the browser's localStorage; a server passes its own
321
+ * store (database, cache) so one login survives across requests and replicas.
322
+ */
323
+ interface AgentSessionStore {
324
+ read(agentId: string, address: string): Promise<unknown | null> | unknown | null;
325
+ write(agentId: string, address: string, session: unknown): Promise<void> | void;
326
+ clear(agentId: string, address: string): Promise<void> | void;
327
+ }
317
328
  interface OwneySDKConfig {
318
329
  apiKey: string;
319
330
  /**
@@ -324,6 +335,20 @@ interface OwneySDKConfig {
324
335
  * signatures, and transaction submission.
325
336
  */
326
337
  rpcUrls?: RpcUrlsConfig;
338
+ /**
339
+ * Optional persistence for agent authentication sessions. Zyfai keeps its
340
+ * sign-in here; Yieldseeker still keeps its own in the browser only.
341
+ *
342
+ * When omitted, browser integrations use the default localStorage store.
343
+ * On the server the default store is a no-op, so every `connect` signs in
344
+ * again unless a store is provided.
345
+ *
346
+ * Stored values may contain bearer tokens and must be treated as secrets.
347
+ * Server implementations should bind each store instance to a trusted
348
+ * application user/session, encrypt values, apply a TTL, and never use a
349
+ * caller-provided wallet address as the sole authorization boundary.
350
+ */
351
+ sessionStore?: AgentSessionStore;
327
352
  /**
328
353
  * Optional per-chain RPC overrides for Zyfai SDK network calls.
329
354
  * Example: { 8453: "https://...", 42161: "https://..." }
@@ -372,6 +397,14 @@ interface OwneySDKConfig {
372
397
  * pool customization is the source of truth.
373
398
  */
374
399
  userPoolCustomization?: boolean;
400
+ /**
401
+ * Protocols this app never lets users allocate to, by Zyfai protocol id or
402
+ * name (case-insensitive), e.g. `["superform"]`. On every wallet connect the
403
+ * SDK removes them from the user's protocol list and turns Zyfai's protocol
404
+ * auto-select off (auto-select would bypass the list). They are also left
405
+ * out of the pool catalogue and never added back by the protocol sync.
406
+ */
407
+ excludedProtocols?: string[];
375
408
  /**
376
409
  * Absolute URL of an ERC-7677 paymaster service. When set, deposits go out as
377
410
  * an EIP-5792 `wallet_sendCalls` with `capabilities.paymasterService`, so a
@@ -652,15 +685,13 @@ type AgentFundingLedgerAccess = {
652
685
  /**
653
686
  * What an agent did with a confirmed-deposit notice (`IAgent.depositConfirmed`).
654
687
  * `attempts` counts the provider calls made. `allocated` is set when the agent
655
- * checked whether the deposit was put to work; `allocatesAfter` (ISO) is when
656
- * the provider will act on it at the earliest, when it said so.
688
+ * checked whether the deposit was put to work.
657
689
  */
658
690
  type DepositNotice = {
659
691
  notified: true;
660
692
  attempts?: number;
661
693
  allocated?: boolean;
662
694
  reason?: string;
663
- allocatesAfter?: string;
664
695
  } | {
665
696
  notified: false;
666
697
  reason: string;
@@ -1647,7 +1678,11 @@ interface OwneyAllocationApy {
1647
1678
  apyByChainAndAsset: ApyByChainAndAsset;
1648
1679
  agentApy: Record<AgentId, AllocationAgentApy>;
1649
1680
  }
1650
- type HistoryAction = "Rebalance" | "Deposit" | "Top up" | "Withdraw" | "Earned";
1681
+ type HistoryAction = "Rebalance"
1682
+ /** Funds moving from the smart wallet into a pool (ROUT-758: was "Deposit"). */
1683
+ | "Allocate"
1684
+ /** Funds arriving from the user's wallet (ROUT-758: was "Top up"). */
1685
+ | "Deposit" | "Withdraw" | "Earned";
1651
1686
  interface HistoryTransaction {
1652
1687
  tokenAddress?: string;
1653
1688
  agentWallet?: string;
@@ -2029,6 +2064,7 @@ declare class OwneySDK {
2029
2064
  private yieldseekerApiBaseUrl?;
2030
2065
  private yieldseekerSiweOrigin?;
2031
2066
  private userPoolCustomization;
2067
+ private excludedProtocols;
2032
2068
  private routingApiBaseUrl?;
2033
2069
  private referralSource?;
2034
2070
  private readonly ledger;
@@ -2039,6 +2075,7 @@ declare class OwneySDK {
2039
2075
  private readonly zyfaiServerTasks;
2040
2076
  /** The caller opted in to the Fusion+ secret handoff (`fusionSecretHandoff: true`). */
2041
2077
  private readonly fusionSecretHandoff;
2078
+ private sessionStore?;
2042
2079
  private cachedSponsoredCallback;
2043
2080
  private cachedWethSponsoredCallback;
2044
2081
  private paymasterServiceUrl?;
@@ -3489,11 +3526,6 @@ declare class YieldseekerAgent implements IAgent {
3489
3526
  * after a failure that may pass; stops when the session ends. Never throws.
3490
3527
  */
3491
3528
  private rebalanceAfterPoolSave;
3492
- /**
3493
- * When Yieldseeker may move funds again after this agent wallet's last
3494
- * confirmed withdrawal, if that is still ahead; null when there was none in
3495
- * the last hour or the ledger cannot say.
3496
- */
3497
3529
  /**
3498
3530
  * A withdrawal from this agent wallet that has started but not finished,
3499
3531
  * within the last hour: released by this page, or listed on the ledger with
@@ -3501,7 +3533,6 @@ declare class YieldseekerAgent implements IAgent {
3501
3533
  * do not count, so a stuck record cannot hold deposits back for good.
3502
3534
  */
3503
3535
  private withdrawalUnderWay;
3504
- private withdrawalCooldownEnd;
3505
3536
  /**
3506
3537
  * The agent wallet's base-asset balance and the platform fee Yieldseeker has
3507
3538
  * not collected from it, read at one block for a balance read. Cached
@@ -3944,16 +3975,17 @@ type OwneySIWXConfig = {
3944
3975
  declare function createOwneySIWX(config: OwneySIWXConfig): SIWXConfig;
3945
3976
 
3946
3977
  /**
3947
- * Ask the wallet ITSELF to switch networks, over WalletConnect.
3978
+ * Align a supported WalletConnect session with `chainId`.
3948
3979
  *
3949
3980
  * WalletConnect's provider answers `wallet_switchEthereumChain` locally when
3950
3981
  * the chain was approved at connect time: it moves its own default chain and
3951
3982
  * reports success without telling the wallet. MetaMask mobile then stays on
3952
3983
  * its network, keeps reporting it, and every guard downstream fails with
3953
3984
  * CHAIN_MISMATCH — after a swap, with the user's funds already moved (ROUT-727).
3954
- * Sending the request through the session client reaches the wallet, which
3955
- * shows a real "switch network" prompt; the client also deep-links the wallet
3956
- * app open on mobile.
3985
+ * Sending the request through the session client reaches MetaMask, which shows
3986
+ * a real "switch network" prompt. Fireblocks instead uses the approved
3987
+ * multi-chain session's local default; its subsequent signature request is
3988
+ * explicitly scoped to that chain and needs no separate network prompt.
3957
3989
  *
3958
3990
  * Returns false when `provider` is not a WalletConnect session, so the caller
3959
3991
  * can fall back to an ordinary switch.
@@ -4091,4 +4123,4 @@ declare const YIELDSEEKER_WITHDRAW_SERVER_SUBMIT: 1;
4091
4123
  * Older builds do not export this. */
4092
4124
  declare const FUNDING_DEPOSIT_RECOVERY_REPORT: 1;
4093
4125
 
4094
- export { type AccountAgentApy, type AccountApyOptions, type AccountDailyEarnings, type ActivateAgentOptions, type AgentApy, type AgentApyDetails, type AgentBalance, AgentChainIncompatibleError, type AgentEarnings, type AgentFundingLedgerAccess, type AgentHistoryEntry, type AgentHistoryPosition, type AgentId, AgentNotFoundError, type AgentSupportedAsset, type AgentSupportedAssets, type AgentUserProfile, type AgentWithdrawResult, type AgentsApyOptions, type AllocationAgentApy, type AllocationApyOptions, type ApyByChainAndAsset, type ApyCoverage, type ApyHistoryPoint, type ApyIncentive, type Asset, type AssetDailyEarnings, type AssetReadMetadata, type AvailableAgent, type AvailableAgentsOptions, type AvailablePool, type ConnectionState, type DailyApyDays, type DailyEarningsOptions, type DailyEarningsPoint, type DepositAuthorizationReference, type DepositCallback, type DepositOptions, type DepositReplacementValidation, type DisconnectOptions, FUNDING_DEPOSIT_RECOVERY_REPORT, FUSION_SECRET_SERVER_PUBLISH, type FundingEvidence, type FundingOperationKind, type FundingOperationLeg, type FundingOperationRow, type FundingProgress, type FundingStage, type HistoryAction, type HistoryFilters, type HistoryOptions, type HistoryTransaction, type IAgent, InvalidHistoryCursorError, type LedgerLegReport, type LookbackDays, NotConnectedError, type OrgPoolPolicy, type OrgPoolSelection, type OwneyAccountApy, type OwneyAgentApy, type OwneyAgentHistory, type OwneyAllocationApy, type OwneyBalances, type OwneyDepositResult, type OwneyEarnings, OwneyError, type OwneyErrorCode, type OwneyMultiDepositResult, type OwneyPosition, OwneySDK, type OwneySDKConfig, type OwneySIWXConfig, type OwneySupportedChainId, type OwneySupportedChains, type OwneySupportedTokens, type OwneyToken, type OwneyUserProfile, type OwneyWithdrawAllLeg, type OwneyWithdrawAllResult, type OwneyWithdrawResult, type PendingDeposit, type PoolCatalogProtocol, type PoolSelectionStrategy, type ProviderSnapshotSample, type RebalanceLog, type ReservationAgent, type ReservationReleaseReason, type RpcUrlsConfig, SDK_VERSION, SPONSORED_DEPOSIT_SERVER_BROADCAST, type SavedPoolSelection, type SignInProgress, type SwapChainTokens, type SwapDirection, type SwapOrderStatus, type SwapQuote, type SwapQuoteParams, type SwapRail, type SwapStage, type SwapTokenInfo, type SwapTokenSearchResult, type UnsignedUserOperationEvidence, type UserPoolSelection, type UserPoolSelectionRequest, type WithdrawOptions, type WithdrawSwapRecord, type WithdrawSwapStatus, type WithdrawalCompletion, type WithdrawalCompletionContext, type WithdrawalPayoutCandidate, type WithdrawalPayoutScan, type WithdrawalReservationConflict, type WithdrawalReservationMode, type WithdrawalReservationOptions, type WithdrawalSwapRecovery, YIELDSEEKER_WITHDRAW_SERVER_SUBMIT, YieldseekerAgent, type YieldseekerWalletStatus, ZYFAI_REGISTRATION_NOT_SENT_CODES, ZYFAI_SERVER_TASKS, ZYFAI_WITHDRAWAL_NOT_SENT_CODES, ZYFAI_WITHDRAW_DISPATCH_CHECKPOINT, type ZyfaiDepositPlacement, type ZyfaiRpcUrlsConfig, type ZyfaiWithdrawalLifecycle, clearWithdrawSwap, createOwneySIWX, listPendingDeposits, listOrders as listPendingSwaps, listWithdrawSwaps, saveWithdrawSwap, setOwneyDebug, subscribeWithdrawSwaps, switchWalletConnectChain, updateWithdrawSwap };
4126
+ export { type AccountAgentApy, type AccountApyOptions, type AccountDailyEarnings, type ActivateAgentOptions, type AgentApy, type AgentApyDetails, type AgentBalance, AgentChainIncompatibleError, type AgentEarnings, type AgentFundingLedgerAccess, type AgentHistoryEntry, type AgentHistoryPosition, type AgentId, AgentNotFoundError, type AgentSessionStore, type AgentSupportedAsset, type AgentSupportedAssets, type AgentUserProfile, type AgentWithdrawResult, type AgentsApyOptions, type AllocationAgentApy, type AllocationApyOptions, type ApyByChainAndAsset, type ApyCoverage, type ApyHistoryPoint, type ApyIncentive, type Asset, type AssetDailyEarnings, type AssetReadMetadata, type AvailableAgent, type AvailableAgentsOptions, type AvailablePool, type ConnectionState, type DailyApyDays, type DailyEarningsOptions, type DailyEarningsPoint, type DepositAuthorizationReference, type DepositCallback, type DepositOptions, type DepositReplacementValidation, type DisconnectOptions, FUNDING_DEPOSIT_RECOVERY_REPORT, FUSION_SECRET_SERVER_PUBLISH, type FundingEvidence, type FundingOperationKind, type FundingOperationLeg, type FundingOperationRow, type FundingProgress, type FundingStage, type HistoryAction, type HistoryFilters, type HistoryOptions, type HistoryTransaction, type IAgent, InvalidHistoryCursorError, type LedgerLegReport, type LookbackDays, NotConnectedError, type OrgPoolPolicy, type OrgPoolSelection, type OwneyAccountApy, type OwneyAgentApy, type OwneyAgentHistory, type OwneyAllocationApy, type OwneyBalances, type OwneyDepositResult, type OwneyEarnings, OwneyError, type OwneyErrorCode, type OwneyMultiDepositResult, type OwneyPosition, OwneySDK, type OwneySDKConfig, type OwneySIWXConfig, type OwneySupportedChainId, type OwneySupportedChains, type OwneySupportedTokens, type OwneyToken, type OwneyUserProfile, type OwneyWithdrawAllLeg, type OwneyWithdrawAllResult, type OwneyWithdrawResult, type PendingDeposit, type PoolCatalogProtocol, type PoolSelectionStrategy, type ProviderSnapshotSample, type RebalanceLog, type ReservationAgent, type ReservationReleaseReason, type RpcUrlsConfig, SDK_VERSION, SPONSORED_DEPOSIT_SERVER_BROADCAST, type SavedPoolSelection, type SignInProgress, type SwapChainTokens, type SwapDirection, type SwapOrderStatus, type SwapQuote, type SwapQuoteParams, type SwapRail, type SwapStage, type SwapTokenInfo, type SwapTokenSearchResult, type UnsignedUserOperationEvidence, type UserPoolSelection, type UserPoolSelectionRequest, type WithdrawOptions, type WithdrawSwapRecord, type WithdrawSwapStatus, type WithdrawalCompletion, type WithdrawalCompletionContext, type WithdrawalPayoutCandidate, type WithdrawalPayoutScan, type WithdrawalReservationConflict, type WithdrawalReservationMode, type WithdrawalReservationOptions, type WithdrawalSwapRecovery, YIELDSEEKER_WITHDRAW_SERVER_SUBMIT, YieldseekerAgent, type YieldseekerWalletStatus, ZYFAI_REGISTRATION_NOT_SENT_CODES, ZYFAI_SERVER_TASKS, ZYFAI_WITHDRAWAL_NOT_SENT_CODES, ZYFAI_WITHDRAW_DISPATCH_CHECKPOINT, type ZyfaiDepositPlacement, type ZyfaiRpcUrlsConfig, type ZyfaiWithdrawalLifecycle, clearWithdrawSwap, createOwneySIWX, listPendingDeposits, listOrders as listPendingSwaps, listWithdrawSwaps, saveWithdrawSwap, setOwneyDebug, subscribeWithdrawSwaps, switchWalletConnectChain, updateWithdrawSwap };
package/dist/index.d.ts CHANGED
@@ -314,6 +314,17 @@ type ProviderSnapshotSample = {
314
314
  type RpcUrlsConfig = Partial<Record<(typeof SUPPORTED_CHAIN_IDS)[number], string>>;
315
315
  /** @deprecated Use RpcUrlsConfig. */
316
316
  type ZyfaiRpcUrlsConfig = RpcUrlsConfig;
317
+ /**
318
+ * Where an agent keeps its login session (for Zyfai: the JWT plus the flags
319
+ * it caches). The value is opaque JSON owned by the agent; the agent validates
320
+ * it on read. Default is the browser's localStorage; a server passes its own
321
+ * store (database, cache) so one login survives across requests and replicas.
322
+ */
323
+ interface AgentSessionStore {
324
+ read(agentId: string, address: string): Promise<unknown | null> | unknown | null;
325
+ write(agentId: string, address: string, session: unknown): Promise<void> | void;
326
+ clear(agentId: string, address: string): Promise<void> | void;
327
+ }
317
328
  interface OwneySDKConfig {
318
329
  apiKey: string;
319
330
  /**
@@ -324,6 +335,20 @@ interface OwneySDKConfig {
324
335
  * signatures, and transaction submission.
325
336
  */
326
337
  rpcUrls?: RpcUrlsConfig;
338
+ /**
339
+ * Optional persistence for agent authentication sessions. Zyfai keeps its
340
+ * sign-in here; Yieldseeker still keeps its own in the browser only.
341
+ *
342
+ * When omitted, browser integrations use the default localStorage store.
343
+ * On the server the default store is a no-op, so every `connect` signs in
344
+ * again unless a store is provided.
345
+ *
346
+ * Stored values may contain bearer tokens and must be treated as secrets.
347
+ * Server implementations should bind each store instance to a trusted
348
+ * application user/session, encrypt values, apply a TTL, and never use a
349
+ * caller-provided wallet address as the sole authorization boundary.
350
+ */
351
+ sessionStore?: AgentSessionStore;
327
352
  /**
328
353
  * Optional per-chain RPC overrides for Zyfai SDK network calls.
329
354
  * Example: { 8453: "https://...", 42161: "https://..." }
@@ -372,6 +397,14 @@ interface OwneySDKConfig {
372
397
  * pool customization is the source of truth.
373
398
  */
374
399
  userPoolCustomization?: boolean;
400
+ /**
401
+ * Protocols this app never lets users allocate to, by Zyfai protocol id or
402
+ * name (case-insensitive), e.g. `["superform"]`. On every wallet connect the
403
+ * SDK removes them from the user's protocol list and turns Zyfai's protocol
404
+ * auto-select off (auto-select would bypass the list). They are also left
405
+ * out of the pool catalogue and never added back by the protocol sync.
406
+ */
407
+ excludedProtocols?: string[];
375
408
  /**
376
409
  * Absolute URL of an ERC-7677 paymaster service. When set, deposits go out as
377
410
  * an EIP-5792 `wallet_sendCalls` with `capabilities.paymasterService`, so a
@@ -652,15 +685,13 @@ type AgentFundingLedgerAccess = {
652
685
  /**
653
686
  * What an agent did with a confirmed-deposit notice (`IAgent.depositConfirmed`).
654
687
  * `attempts` counts the provider calls made. `allocated` is set when the agent
655
- * checked whether the deposit was put to work; `allocatesAfter` (ISO) is when
656
- * the provider will act on it at the earliest, when it said so.
688
+ * checked whether the deposit was put to work.
657
689
  */
658
690
  type DepositNotice = {
659
691
  notified: true;
660
692
  attempts?: number;
661
693
  allocated?: boolean;
662
694
  reason?: string;
663
- allocatesAfter?: string;
664
695
  } | {
665
696
  notified: false;
666
697
  reason: string;
@@ -1647,7 +1678,11 @@ interface OwneyAllocationApy {
1647
1678
  apyByChainAndAsset: ApyByChainAndAsset;
1648
1679
  agentApy: Record<AgentId, AllocationAgentApy>;
1649
1680
  }
1650
- type HistoryAction = "Rebalance" | "Deposit" | "Top up" | "Withdraw" | "Earned";
1681
+ type HistoryAction = "Rebalance"
1682
+ /** Funds moving from the smart wallet into a pool (ROUT-758: was "Deposit"). */
1683
+ | "Allocate"
1684
+ /** Funds arriving from the user's wallet (ROUT-758: was "Top up"). */
1685
+ | "Deposit" | "Withdraw" | "Earned";
1651
1686
  interface HistoryTransaction {
1652
1687
  tokenAddress?: string;
1653
1688
  agentWallet?: string;
@@ -2029,6 +2064,7 @@ declare class OwneySDK {
2029
2064
  private yieldseekerApiBaseUrl?;
2030
2065
  private yieldseekerSiweOrigin?;
2031
2066
  private userPoolCustomization;
2067
+ private excludedProtocols;
2032
2068
  private routingApiBaseUrl?;
2033
2069
  private referralSource?;
2034
2070
  private readonly ledger;
@@ -2039,6 +2075,7 @@ declare class OwneySDK {
2039
2075
  private readonly zyfaiServerTasks;
2040
2076
  /** The caller opted in to the Fusion+ secret handoff (`fusionSecretHandoff: true`). */
2041
2077
  private readonly fusionSecretHandoff;
2078
+ private sessionStore?;
2042
2079
  private cachedSponsoredCallback;
2043
2080
  private cachedWethSponsoredCallback;
2044
2081
  private paymasterServiceUrl?;
@@ -3489,11 +3526,6 @@ declare class YieldseekerAgent implements IAgent {
3489
3526
  * after a failure that may pass; stops when the session ends. Never throws.
3490
3527
  */
3491
3528
  private rebalanceAfterPoolSave;
3492
- /**
3493
- * When Yieldseeker may move funds again after this agent wallet's last
3494
- * confirmed withdrawal, if that is still ahead; null when there was none in
3495
- * the last hour or the ledger cannot say.
3496
- */
3497
3529
  /**
3498
3530
  * A withdrawal from this agent wallet that has started but not finished,
3499
3531
  * within the last hour: released by this page, or listed on the ledger with
@@ -3501,7 +3533,6 @@ declare class YieldseekerAgent implements IAgent {
3501
3533
  * do not count, so a stuck record cannot hold deposits back for good.
3502
3534
  */
3503
3535
  private withdrawalUnderWay;
3504
- private withdrawalCooldownEnd;
3505
3536
  /**
3506
3537
  * The agent wallet's base-asset balance and the platform fee Yieldseeker has
3507
3538
  * not collected from it, read at one block for a balance read. Cached
@@ -3944,16 +3975,17 @@ type OwneySIWXConfig = {
3944
3975
  declare function createOwneySIWX(config: OwneySIWXConfig): SIWXConfig;
3945
3976
 
3946
3977
  /**
3947
- * Ask the wallet ITSELF to switch networks, over WalletConnect.
3978
+ * Align a supported WalletConnect session with `chainId`.
3948
3979
  *
3949
3980
  * WalletConnect's provider answers `wallet_switchEthereumChain` locally when
3950
3981
  * the chain was approved at connect time: it moves its own default chain and
3951
3982
  * reports success without telling the wallet. MetaMask mobile then stays on
3952
3983
  * its network, keeps reporting it, and every guard downstream fails with
3953
3984
  * CHAIN_MISMATCH — after a swap, with the user's funds already moved (ROUT-727).
3954
- * Sending the request through the session client reaches the wallet, which
3955
- * shows a real "switch network" prompt; the client also deep-links the wallet
3956
- * app open on mobile.
3985
+ * Sending the request through the session client reaches MetaMask, which shows
3986
+ * a real "switch network" prompt. Fireblocks instead uses the approved
3987
+ * multi-chain session's local default; its subsequent signature request is
3988
+ * explicitly scoped to that chain and needs no separate network prompt.
3957
3989
  *
3958
3990
  * Returns false when `provider` is not a WalletConnect session, so the caller
3959
3991
  * can fall back to an ordinary switch.
@@ -4091,4 +4123,4 @@ declare const YIELDSEEKER_WITHDRAW_SERVER_SUBMIT: 1;
4091
4123
  * Older builds do not export this. */
4092
4124
  declare const FUNDING_DEPOSIT_RECOVERY_REPORT: 1;
4093
4125
 
4094
- export { type AccountAgentApy, type AccountApyOptions, type AccountDailyEarnings, type ActivateAgentOptions, type AgentApy, type AgentApyDetails, type AgentBalance, AgentChainIncompatibleError, type AgentEarnings, type AgentFundingLedgerAccess, type AgentHistoryEntry, type AgentHistoryPosition, type AgentId, AgentNotFoundError, type AgentSupportedAsset, type AgentSupportedAssets, type AgentUserProfile, type AgentWithdrawResult, type AgentsApyOptions, type AllocationAgentApy, type AllocationApyOptions, type ApyByChainAndAsset, type ApyCoverage, type ApyHistoryPoint, type ApyIncentive, type Asset, type AssetDailyEarnings, type AssetReadMetadata, type AvailableAgent, type AvailableAgentsOptions, type AvailablePool, type ConnectionState, type DailyApyDays, type DailyEarningsOptions, type DailyEarningsPoint, type DepositAuthorizationReference, type DepositCallback, type DepositOptions, type DepositReplacementValidation, type DisconnectOptions, FUNDING_DEPOSIT_RECOVERY_REPORT, FUSION_SECRET_SERVER_PUBLISH, type FundingEvidence, type FundingOperationKind, type FundingOperationLeg, type FundingOperationRow, type FundingProgress, type FundingStage, type HistoryAction, type HistoryFilters, type HistoryOptions, type HistoryTransaction, type IAgent, InvalidHistoryCursorError, type LedgerLegReport, type LookbackDays, NotConnectedError, type OrgPoolPolicy, type OrgPoolSelection, type OwneyAccountApy, type OwneyAgentApy, type OwneyAgentHistory, type OwneyAllocationApy, type OwneyBalances, type OwneyDepositResult, type OwneyEarnings, OwneyError, type OwneyErrorCode, type OwneyMultiDepositResult, type OwneyPosition, OwneySDK, type OwneySDKConfig, type OwneySIWXConfig, type OwneySupportedChainId, type OwneySupportedChains, type OwneySupportedTokens, type OwneyToken, type OwneyUserProfile, type OwneyWithdrawAllLeg, type OwneyWithdrawAllResult, type OwneyWithdrawResult, type PendingDeposit, type PoolCatalogProtocol, type PoolSelectionStrategy, type ProviderSnapshotSample, type RebalanceLog, type ReservationAgent, type ReservationReleaseReason, type RpcUrlsConfig, SDK_VERSION, SPONSORED_DEPOSIT_SERVER_BROADCAST, type SavedPoolSelection, type SignInProgress, type SwapChainTokens, type SwapDirection, type SwapOrderStatus, type SwapQuote, type SwapQuoteParams, type SwapRail, type SwapStage, type SwapTokenInfo, type SwapTokenSearchResult, type UnsignedUserOperationEvidence, type UserPoolSelection, type UserPoolSelectionRequest, type WithdrawOptions, type WithdrawSwapRecord, type WithdrawSwapStatus, type WithdrawalCompletion, type WithdrawalCompletionContext, type WithdrawalPayoutCandidate, type WithdrawalPayoutScan, type WithdrawalReservationConflict, type WithdrawalReservationMode, type WithdrawalReservationOptions, type WithdrawalSwapRecovery, YIELDSEEKER_WITHDRAW_SERVER_SUBMIT, YieldseekerAgent, type YieldseekerWalletStatus, ZYFAI_REGISTRATION_NOT_SENT_CODES, ZYFAI_SERVER_TASKS, ZYFAI_WITHDRAWAL_NOT_SENT_CODES, ZYFAI_WITHDRAW_DISPATCH_CHECKPOINT, type ZyfaiDepositPlacement, type ZyfaiRpcUrlsConfig, type ZyfaiWithdrawalLifecycle, clearWithdrawSwap, createOwneySIWX, listPendingDeposits, listOrders as listPendingSwaps, listWithdrawSwaps, saveWithdrawSwap, setOwneyDebug, subscribeWithdrawSwaps, switchWalletConnectChain, updateWithdrawSwap };
4126
+ export { type AccountAgentApy, type AccountApyOptions, type AccountDailyEarnings, type ActivateAgentOptions, type AgentApy, type AgentApyDetails, type AgentBalance, AgentChainIncompatibleError, type AgentEarnings, type AgentFundingLedgerAccess, type AgentHistoryEntry, type AgentHistoryPosition, type AgentId, AgentNotFoundError, type AgentSessionStore, type AgentSupportedAsset, type AgentSupportedAssets, type AgentUserProfile, type AgentWithdrawResult, type AgentsApyOptions, type AllocationAgentApy, type AllocationApyOptions, type ApyByChainAndAsset, type ApyCoverage, type ApyHistoryPoint, type ApyIncentive, type Asset, type AssetDailyEarnings, type AssetReadMetadata, type AvailableAgent, type AvailableAgentsOptions, type AvailablePool, type ConnectionState, type DailyApyDays, type DailyEarningsOptions, type DailyEarningsPoint, type DepositAuthorizationReference, type DepositCallback, type DepositOptions, type DepositReplacementValidation, type DisconnectOptions, FUNDING_DEPOSIT_RECOVERY_REPORT, FUSION_SECRET_SERVER_PUBLISH, type FundingEvidence, type FundingOperationKind, type FundingOperationLeg, type FundingOperationRow, type FundingProgress, type FundingStage, type HistoryAction, type HistoryFilters, type HistoryOptions, type HistoryTransaction, type IAgent, InvalidHistoryCursorError, type LedgerLegReport, type LookbackDays, NotConnectedError, type OrgPoolPolicy, type OrgPoolSelection, type OwneyAccountApy, type OwneyAgentApy, type OwneyAgentHistory, type OwneyAllocationApy, type OwneyBalances, type OwneyDepositResult, type OwneyEarnings, OwneyError, type OwneyErrorCode, type OwneyMultiDepositResult, type OwneyPosition, OwneySDK, type OwneySDKConfig, type OwneySIWXConfig, type OwneySupportedChainId, type OwneySupportedChains, type OwneySupportedTokens, type OwneyToken, type OwneyUserProfile, type OwneyWithdrawAllLeg, type OwneyWithdrawAllResult, type OwneyWithdrawResult, type PendingDeposit, type PoolCatalogProtocol, type PoolSelectionStrategy, type ProviderSnapshotSample, type RebalanceLog, type ReservationAgent, type ReservationReleaseReason, type RpcUrlsConfig, SDK_VERSION, SPONSORED_DEPOSIT_SERVER_BROADCAST, type SavedPoolSelection, type SignInProgress, type SwapChainTokens, type SwapDirection, type SwapOrderStatus, type SwapQuote, type SwapQuoteParams, type SwapRail, type SwapStage, type SwapTokenInfo, type SwapTokenSearchResult, type UnsignedUserOperationEvidence, type UserPoolSelection, type UserPoolSelectionRequest, type WithdrawOptions, type WithdrawSwapRecord, type WithdrawSwapStatus, type WithdrawalCompletion, type WithdrawalCompletionContext, type WithdrawalPayoutCandidate, type WithdrawalPayoutScan, type WithdrawalReservationConflict, type WithdrawalReservationMode, type WithdrawalReservationOptions, type WithdrawalSwapRecovery, YIELDSEEKER_WITHDRAW_SERVER_SUBMIT, YieldseekerAgent, type YieldseekerWalletStatus, ZYFAI_REGISTRATION_NOT_SENT_CODES, ZYFAI_SERVER_TASKS, ZYFAI_WITHDRAWAL_NOT_SENT_CODES, ZYFAI_WITHDRAW_DISPATCH_CHECKPOINT, type ZyfaiDepositPlacement, type ZyfaiRpcUrlsConfig, type ZyfaiWithdrawalLifecycle, clearWithdrawSwap, createOwneySIWX, listPendingDeposits, listOrders as listPendingSwaps, listWithdrawSwaps, saveWithdrawSwap, setOwneyDebug, subscribeWithdrawSwaps, switchWalletConnectChain, updateWithdrawSwap };