@owney/sdk 0.7.32-beta.13 → 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
@@ -1645,7 +1678,11 @@ interface OwneyAllocationApy {
1645
1678
  apyByChainAndAsset: ApyByChainAndAsset;
1646
1679
  agentApy: Record<AgentId, AllocationAgentApy>;
1647
1680
  }
1648
- 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";
1649
1686
  interface HistoryTransaction {
1650
1687
  tokenAddress?: string;
1651
1688
  agentWallet?: string;
@@ -2027,6 +2064,7 @@ declare class OwneySDK {
2027
2064
  private yieldseekerApiBaseUrl?;
2028
2065
  private yieldseekerSiweOrigin?;
2029
2066
  private userPoolCustomization;
2067
+ private excludedProtocols;
2030
2068
  private routingApiBaseUrl?;
2031
2069
  private referralSource?;
2032
2070
  private readonly ledger;
@@ -2037,6 +2075,7 @@ declare class OwneySDK {
2037
2075
  private readonly zyfaiServerTasks;
2038
2076
  /** The caller opted in to the Fusion+ secret handoff (`fusionSecretHandoff: true`). */
2039
2077
  private readonly fusionSecretHandoff;
2078
+ private sessionStore?;
2040
2079
  private cachedSponsoredCallback;
2041
2080
  private cachedWethSponsoredCallback;
2042
2081
  private paymasterServiceUrl?;
@@ -3936,16 +3975,17 @@ type OwneySIWXConfig = {
3936
3975
  declare function createOwneySIWX(config: OwneySIWXConfig): SIWXConfig;
3937
3976
 
3938
3977
  /**
3939
- * Ask the wallet ITSELF to switch networks, over WalletConnect.
3978
+ * Align a supported WalletConnect session with `chainId`.
3940
3979
  *
3941
3980
  * WalletConnect's provider answers `wallet_switchEthereumChain` locally when
3942
3981
  * the chain was approved at connect time: it moves its own default chain and
3943
3982
  * reports success without telling the wallet. MetaMask mobile then stays on
3944
3983
  * its network, keeps reporting it, and every guard downstream fails with
3945
3984
  * CHAIN_MISMATCH — after a swap, with the user's funds already moved (ROUT-727).
3946
- * Sending the request through the session client reaches the wallet, which
3947
- * shows a real "switch network" prompt; the client also deep-links the wallet
3948
- * 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.
3949
3989
  *
3950
3990
  * Returns false when `provider` is not a WalletConnect session, so the caller
3951
3991
  * can fall back to an ordinary switch.
@@ -4083,4 +4123,4 @@ declare const YIELDSEEKER_WITHDRAW_SERVER_SUBMIT: 1;
4083
4123
  * Older builds do not export this. */
4084
4124
  declare const FUNDING_DEPOSIT_RECOVERY_REPORT: 1;
4085
4125
 
4086
- 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
@@ -1645,7 +1678,11 @@ interface OwneyAllocationApy {
1645
1678
  apyByChainAndAsset: ApyByChainAndAsset;
1646
1679
  agentApy: Record<AgentId, AllocationAgentApy>;
1647
1680
  }
1648
- 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";
1649
1686
  interface HistoryTransaction {
1650
1687
  tokenAddress?: string;
1651
1688
  agentWallet?: string;
@@ -2027,6 +2064,7 @@ declare class OwneySDK {
2027
2064
  private yieldseekerApiBaseUrl?;
2028
2065
  private yieldseekerSiweOrigin?;
2029
2066
  private userPoolCustomization;
2067
+ private excludedProtocols;
2030
2068
  private routingApiBaseUrl?;
2031
2069
  private referralSource?;
2032
2070
  private readonly ledger;
@@ -2037,6 +2075,7 @@ declare class OwneySDK {
2037
2075
  private readonly zyfaiServerTasks;
2038
2076
  /** The caller opted in to the Fusion+ secret handoff (`fusionSecretHandoff: true`). */
2039
2077
  private readonly fusionSecretHandoff;
2078
+ private sessionStore?;
2040
2079
  private cachedSponsoredCallback;
2041
2080
  private cachedWethSponsoredCallback;
2042
2081
  private paymasterServiceUrl?;
@@ -3936,16 +3975,17 @@ type OwneySIWXConfig = {
3936
3975
  declare function createOwneySIWX(config: OwneySIWXConfig): SIWXConfig;
3937
3976
 
3938
3977
  /**
3939
- * Ask the wallet ITSELF to switch networks, over WalletConnect.
3978
+ * Align a supported WalletConnect session with `chainId`.
3940
3979
  *
3941
3980
  * WalletConnect's provider answers `wallet_switchEthereumChain` locally when
3942
3981
  * the chain was approved at connect time: it moves its own default chain and
3943
3982
  * reports success without telling the wallet. MetaMask mobile then stays on
3944
3983
  * its network, keeps reporting it, and every guard downstream fails with
3945
3984
  * CHAIN_MISMATCH — after a swap, with the user's funds already moved (ROUT-727).
3946
- * Sending the request through the session client reaches the wallet, which
3947
- * shows a real "switch network" prompt; the client also deep-links the wallet
3948
- * 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.
3949
3989
  *
3950
3990
  * Returns false when `provider` is not a WalletConnect session, so the caller
3951
3991
  * can fall back to an ordinary switch.
@@ -4083,4 +4123,4 @@ declare const YIELDSEEKER_WITHDRAW_SERVER_SUBMIT: 1;
4083
4123
  * Older builds do not export this. */
4084
4124
  declare const FUNDING_DEPOSIT_RECOVERY_REPORT: 1;
4085
4125
 
4086
- 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 };