@owney/sdk 0.7.16-beta.7 → 0.7.17-beta.0

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
@@ -21,16 +21,6 @@ interface OwneySDKConfig {
21
21
  * for apps that don't use the AppKit SIWX modal.
22
22
  */
23
23
  referralSource?: string;
24
- /**
25
- * Optional override for the SurfLiquid API base URL (defaults to the
26
- * SurfLiquid SDK's production URL). SurfLiquid auth is an httpOnly
27
- * SameSite=None cookie set by api.surfliquid.com — a THIRD-PARTY cookie from
28
- * the embedding app's origin, which WebKit (all iOS browsers) discards, so
29
- * every authenticated SurfLiquid call 401s on iOS. Point this at a
30
- * same-origin reverse proxy (e.g. "/api/surf") so the session cookie becomes
31
- * first-party. Relative paths resolve against the page origin.
32
- */
33
- surfliquidApiBaseUrl?: string;
34
24
  /**
35
25
  * Turn on the SDK's debug logging (default false). Traces the decisions that
36
26
  * are otherwise invisible — notably how the organization's agent policy is
@@ -64,7 +54,7 @@ type OwneySupportedChainId = (typeof SUPPORTED_CHAIN_IDS)[number];
64
54
  type OwneySupportedChains = (typeof SUPPORTED_CHAINS)[number];
65
55
  type OwneySupportedTokens = (typeof SUPPORTED_TOKENS)[number];
66
56
 
67
- type AgentId = "zyfai" | "surfliquid";
57
+ type AgentId = "zyfai";
68
58
  type Asset = string;
69
59
  type AgentSupportedAsset = {
70
60
  readonly symbol: string;
@@ -75,6 +65,18 @@ type AgentSupportedAssets = {
75
65
  readonly chain?: string;
76
66
  readonly assets: readonly AgentSupportedAsset[];
77
67
  };
68
+ type AvailableAgent = {
69
+ id: AgentId;
70
+ isEnabled: boolean;
71
+ supportedChainIds: readonly number[];
72
+ supportedAssets: readonly AgentSupportedAssets[];
73
+ };
74
+ type AvailableAgentsOptions = {
75
+ chainId?: number;
76
+ asset?: Asset;
77
+ /** Disabled agents are omitted by default because they cannot accept funds. */
78
+ includeDisabled?: boolean;
79
+ };
78
80
  type DailyApyDays = "7D" | "14D" | "30D";
79
81
  type HistoryFilters = {
80
82
  fromDate?: string;
@@ -180,12 +182,6 @@ interface OwneyDepositResult {
180
182
  }
181
183
  interface OwneyMultiDepositResult {
182
184
  agentResults: Record<string, OwneyDepositResult>;
183
- /**
184
- * Per-agent failure messages for agents that errored during a diversified
185
- * deposit. Present only when at least one (but not all) agents failed —
186
- * the deposit is partial, not total. Omitted when every agent succeeded.
187
- */
188
- agentErrors?: Record<string, string>;
189
185
  }
190
186
  interface AgentWithdrawResult {
191
187
  txHash?: string;
@@ -457,11 +453,13 @@ declare class OwneySDK {
457
453
  private zyfaiRpcUrls?;
458
454
  private routingApiBaseUrl?;
459
455
  private referralSource?;
460
- private surfliquidApiBaseUrl?;
461
456
  private cachedSponsoredCallback;
462
457
  private cachedWethSponsoredCallback;
463
458
  private paymasterServiceUrl?;
464
459
  private cachedSponsoredCallsCallbacks;
460
+ private readonly agentReads;
461
+ private readonly activationChecks;
462
+ private readAgent;
465
463
  private initializingAgentsPromise;
466
464
  constructor(config: OwneySDKConfig);
467
465
  /**
@@ -528,6 +526,11 @@ declare class OwneySDK {
528
526
  private applyOrgPolicyTo;
529
527
  private ensureAgentsInitialized;
530
528
  private createAgent;
529
+ /**
530
+ * Discover the agents actually returned by routing for this organization.
531
+ * Consumers should use this instead of hardcoding a global agent roster.
532
+ */
533
+ getAvailableAgents(options?: AvailableAgentsOptions): Promise<AvailableAgent[]>;
531
534
  /**
532
535
  * Activate the user's smart wallet for the specified agents, or all chain-compatible agents if omitted.
533
536
  * Deploys the Safe contract and creates a session key if not already set up.
@@ -559,7 +562,7 @@ declare class OwneySDK {
559
562
  */
560
563
  private activateAgentsInTurn;
561
564
  /**
562
- * Deposit funds into a specific agent, or split equally across all agents if agentId is omitted.
565
+ * Deposit into a specific agent, or distribute across all eligible agents.
563
566
  * Validates that the asset is supported and amount meets minimums for the target agent(s).
564
567
  * @param options - Deposit parameters
565
568
  * @param options.amount - Amount to deposit in smallest unit (e.g. "100000000" for 100 USDC)
@@ -567,7 +570,8 @@ declare class OwneySDK {
567
570
  * @param options.depositCallback - Callback that performs the token transfer and returns a tx hash.
568
571
  * When agentId is omitted, this callback is invoked once per eligible agent with that agent's
569
572
  * split amount and smart wallet address — expect multiple wallet prompts.
570
- * @param options.agentId - Optional. Target agent. Omit to split equally across all agents.
573
+ * @param options.agentId - Optional explicit target. Otherwise split equally,
574
+ * or fund remaining agents when a recovery deposit cannot meet every minimum.
571
575
  * @returns {OwneyDepositResult} for a single agent, or {OwneyMultiDepositResult} with per-agent results
572
576
  */
573
577
  deposit(options: DepositOptions): Promise<OwneyDepositResult | OwneyMultiDepositResult>;
@@ -609,17 +613,6 @@ declare class OwneySDK {
609
613
  private hasExistingBalance;
610
614
  private validateAssetSupport;
611
615
  private getEligibleAgents;
612
- /**
613
- * Agent ids the routing API provisioned for this org that support the given
614
- * chain + asset, ordered by preference ({@link AGENT_ELIGIBILITY_ORDER},
615
- * surfliquid first). Returns `[]` when the org has no compatible agent — never
616
- * throws on an empty org. Loads agent keys on first call (apiKey only, no
617
- * wallet), so the UI can resolve which agent to use before the user connects.
618
- *
619
- * This is the source of truth for agent availability: an agent appears here
620
- * iff the routing API returned its key. No per-app feature flags.
621
- */
622
- getEligibleAgentIds(chainId: number, asset: string): Promise<AgentId[]>;
623
616
  /**
624
617
  * Withdraw funds from a specific agent, or all agents that support the active chain+asset if agentId is omitted.
625
618
  * Validates that the asset is supported by the target agent(s) on the active chain.
@@ -720,7 +713,7 @@ declare class OwneySDK {
720
713
  getAllocationApy({ agentId, }?: AllocationApyOptions): Promise<OwneyAllocationApy>;
721
714
  }
722
715
 
723
- type OwneyErrorCode = "NOT_CONNECTED" | "NO_ACTIVE_CHAIN" | "WALLET_NO_ACCOUNTS" | "WALLET_ADDRESS_REQUIRED" | "WALLET_NOT_DEPLOYED" | "AGENT_NOT_FOUND" | "AGENT_CHAIN_INCOMPATIBLE" | "AGENT_EMPTY_LIST" | "AGENT_DISABLED" | "CHAIN_UNSUPPORTED" | "CHAIN_NO_COMPATIBLE_AGENTS" | "CHAIN_MISMATCH" | "ASSET_UNSUPPORTED" | "ASSET_NO_COMPATIBLE_AGENTS" | "DEPOSIT_AMOUNT_BELOW_MINIMUM" | "DEPOSIT_CALLBACK_REQUIRED" | "DEPOSIT_CALLBACK_INVALID" | "DEPOSIT_NO_PERMITTED_TOKENS" | "DEPOSIT_ALL_FAILED" | "DEPOSIT_INSUFFICIENT_BALANCE" | "WITHDRAW_NO_PERMITTED_TOKENS" | "WITHDRAW_INSUFFICIENT_BALANCE" | "WITHDRAW_ALL_FAILED" | "WITHDRAW_PARTIAL_FAILURE" | "WITHDRAW_FAILED" | "API_ROUTING_ERROR" | "API_ROUTING_FAILED" | "API_NO_AGENTS" | "SPONSOR_REQUEST_FAILED" | "PERMIT2_APPROVAL_REQUIRED" | "SPONSORED_CALLS_UNSUPPORTED" | "SPONSORED_CALLS_NO_ID" | "SPONSORED_CALLS_NO_RECEIPT" | "BALANCE_ALL_FAILED" | "ALLOCATION_ALL_FAILED" | "VALIDATION_INVALID_DAYS";
716
+ type OwneyErrorCode = "NOT_CONNECTED" | "NO_ACTIVE_CHAIN" | "WALLET_NO_ACCOUNTS" | "WALLET_ADDRESS_REQUIRED" | "WALLET_NOT_DEPLOYED" | "AGENT_NOT_FOUND" | "AGENT_CHAIN_INCOMPATIBLE" | "AGENT_EMPTY_LIST" | "AGENT_DISABLED" | "CHAIN_UNSUPPORTED" | "CHAIN_NO_COMPATIBLE_AGENTS" | "CHAIN_MISMATCH" | "ASSET_UNSUPPORTED" | "ASSET_NO_COMPATIBLE_AGENTS" | "DEPOSIT_BALANCE_UNAVAILABLE" | "DEPOSIT_PARTIAL_FAILURE" | "DEPOSIT_AMOUNT_BELOW_MINIMUM" | "DEPOSIT_CALLBACK_REQUIRED" | "DEPOSIT_CALLBACK_INVALID" | "DEPOSIT_NO_PERMITTED_TOKENS" | "DEPOSIT_INSUFFICIENT_BALANCE" | "WITHDRAW_NO_PERMITTED_TOKENS" | "WITHDRAW_INSUFFICIENT_BALANCE" | "WITHDRAW_ALL_FAILED" | "WITHDRAW_PARTIAL_FAILURE" | "WITHDRAW_FAILED" | "AGENT_RATE_LIMITED" | "API_ROUTING_ERROR" | "API_ROUTING_FAILED" | "API_NO_AGENTS" | "SPONSOR_REQUEST_FAILED" | "PERMIT2_APPROVAL_REQUIRED" | "SPONSORED_CALLS_UNSUPPORTED" | "SPONSORED_CALLS_NO_ID" | "SPONSORED_CALLS_NO_RECEIPT" | "BALANCE_ALL_FAILED" | "ALLOCATION_ALL_FAILED" | "VALIDATION_INVALID_DAYS";
724
717
  declare class OwneyError extends Error {
725
718
  readonly code: OwneyErrorCode;
726
719
  readonly details?: Record<string, unknown>;
@@ -786,4 +779,4 @@ type OwneySIWXConfig = {
786
779
  */
787
780
  declare function createOwneySIWX(config: OwneySIWXConfig): SIWXConfig;
788
781
 
789
- export { type AccountAgentApy, type AccountApyOptions, type AgentApy, type AgentApyDetails, type AgentBalance, AgentChainIncompatibleError, type AgentEarnings, type AgentHistoryEntry, type AgentHistoryPosition, type AgentId, AgentNotFoundError, type AgentSupportedAsset, type AgentSupportedAssets, type AgentUserProfile, type AgentWithdrawResult, type AgentsApyOptions, type AllocationAgentApy, type AllocationApyOptions, type ApyByChainAndAsset, type ApyHistoryPoint, type Asset, type ConnectionState, type DailyApyDays, type DepositCallback, type DepositOptions, type HistoryAction, type HistoryFilters, type HistoryOptions, type HistoryTransaction, type IAgent, InvalidHistoryCursorError, NotConnectedError, 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 OwneyWithdrawResult, type RebalanceLog, type WithdrawOptions, createOwneySIWX, setOwneyDebug };
782
+ export { type AccountAgentApy, type AccountApyOptions, type AgentApy, type AgentApyDetails, type AgentBalance, AgentChainIncompatibleError, type AgentEarnings, type AgentHistoryEntry, type AgentHistoryPosition, type AgentId, AgentNotFoundError, type AgentSupportedAsset, type AgentSupportedAssets, type AgentUserProfile, type AgentWithdrawResult, type AgentsApyOptions, type AllocationAgentApy, type AllocationApyOptions, type ApyByChainAndAsset, type ApyHistoryPoint, type Asset, type AvailableAgent, type AvailableAgentsOptions, type ConnectionState, type DailyApyDays, type DepositCallback, type DepositOptions, type HistoryAction, type HistoryFilters, type HistoryOptions, type HistoryTransaction, type IAgent, InvalidHistoryCursorError, NotConnectedError, 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 OwneyWithdrawResult, type RebalanceLog, type WithdrawOptions, createOwneySIWX, setOwneyDebug };
package/dist/index.d.ts CHANGED
@@ -21,16 +21,6 @@ interface OwneySDKConfig {
21
21
  * for apps that don't use the AppKit SIWX modal.
22
22
  */
23
23
  referralSource?: string;
24
- /**
25
- * Optional override for the SurfLiquid API base URL (defaults to the
26
- * SurfLiquid SDK's production URL). SurfLiquid auth is an httpOnly
27
- * SameSite=None cookie set by api.surfliquid.com — a THIRD-PARTY cookie from
28
- * the embedding app's origin, which WebKit (all iOS browsers) discards, so
29
- * every authenticated SurfLiquid call 401s on iOS. Point this at a
30
- * same-origin reverse proxy (e.g. "/api/surf") so the session cookie becomes
31
- * first-party. Relative paths resolve against the page origin.
32
- */
33
- surfliquidApiBaseUrl?: string;
34
24
  /**
35
25
  * Turn on the SDK's debug logging (default false). Traces the decisions that
36
26
  * are otherwise invisible — notably how the organization's agent policy is
@@ -64,7 +54,7 @@ type OwneySupportedChainId = (typeof SUPPORTED_CHAIN_IDS)[number];
64
54
  type OwneySupportedChains = (typeof SUPPORTED_CHAINS)[number];
65
55
  type OwneySupportedTokens = (typeof SUPPORTED_TOKENS)[number];
66
56
 
67
- type AgentId = "zyfai" | "surfliquid";
57
+ type AgentId = "zyfai";
68
58
  type Asset = string;
69
59
  type AgentSupportedAsset = {
70
60
  readonly symbol: string;
@@ -75,6 +65,18 @@ type AgentSupportedAssets = {
75
65
  readonly chain?: string;
76
66
  readonly assets: readonly AgentSupportedAsset[];
77
67
  };
68
+ type AvailableAgent = {
69
+ id: AgentId;
70
+ isEnabled: boolean;
71
+ supportedChainIds: readonly number[];
72
+ supportedAssets: readonly AgentSupportedAssets[];
73
+ };
74
+ type AvailableAgentsOptions = {
75
+ chainId?: number;
76
+ asset?: Asset;
77
+ /** Disabled agents are omitted by default because they cannot accept funds. */
78
+ includeDisabled?: boolean;
79
+ };
78
80
  type DailyApyDays = "7D" | "14D" | "30D";
79
81
  type HistoryFilters = {
80
82
  fromDate?: string;
@@ -180,12 +182,6 @@ interface OwneyDepositResult {
180
182
  }
181
183
  interface OwneyMultiDepositResult {
182
184
  agentResults: Record<string, OwneyDepositResult>;
183
- /**
184
- * Per-agent failure messages for agents that errored during a diversified
185
- * deposit. Present only when at least one (but not all) agents failed —
186
- * the deposit is partial, not total. Omitted when every agent succeeded.
187
- */
188
- agentErrors?: Record<string, string>;
189
185
  }
190
186
  interface AgentWithdrawResult {
191
187
  txHash?: string;
@@ -457,11 +453,13 @@ declare class OwneySDK {
457
453
  private zyfaiRpcUrls?;
458
454
  private routingApiBaseUrl?;
459
455
  private referralSource?;
460
- private surfliquidApiBaseUrl?;
461
456
  private cachedSponsoredCallback;
462
457
  private cachedWethSponsoredCallback;
463
458
  private paymasterServiceUrl?;
464
459
  private cachedSponsoredCallsCallbacks;
460
+ private readonly agentReads;
461
+ private readonly activationChecks;
462
+ private readAgent;
465
463
  private initializingAgentsPromise;
466
464
  constructor(config: OwneySDKConfig);
467
465
  /**
@@ -528,6 +526,11 @@ declare class OwneySDK {
528
526
  private applyOrgPolicyTo;
529
527
  private ensureAgentsInitialized;
530
528
  private createAgent;
529
+ /**
530
+ * Discover the agents actually returned by routing for this organization.
531
+ * Consumers should use this instead of hardcoding a global agent roster.
532
+ */
533
+ getAvailableAgents(options?: AvailableAgentsOptions): Promise<AvailableAgent[]>;
531
534
  /**
532
535
  * Activate the user's smart wallet for the specified agents, or all chain-compatible agents if omitted.
533
536
  * Deploys the Safe contract and creates a session key if not already set up.
@@ -559,7 +562,7 @@ declare class OwneySDK {
559
562
  */
560
563
  private activateAgentsInTurn;
561
564
  /**
562
- * Deposit funds into a specific agent, or split equally across all agents if agentId is omitted.
565
+ * Deposit into a specific agent, or distribute across all eligible agents.
563
566
  * Validates that the asset is supported and amount meets minimums for the target agent(s).
564
567
  * @param options - Deposit parameters
565
568
  * @param options.amount - Amount to deposit in smallest unit (e.g. "100000000" for 100 USDC)
@@ -567,7 +570,8 @@ declare class OwneySDK {
567
570
  * @param options.depositCallback - Callback that performs the token transfer and returns a tx hash.
568
571
  * When agentId is omitted, this callback is invoked once per eligible agent with that agent's
569
572
  * split amount and smart wallet address — expect multiple wallet prompts.
570
- * @param options.agentId - Optional. Target agent. Omit to split equally across all agents.
573
+ * @param options.agentId - Optional explicit target. Otherwise split equally,
574
+ * or fund remaining agents when a recovery deposit cannot meet every minimum.
571
575
  * @returns {OwneyDepositResult} for a single agent, or {OwneyMultiDepositResult} with per-agent results
572
576
  */
573
577
  deposit(options: DepositOptions): Promise<OwneyDepositResult | OwneyMultiDepositResult>;
@@ -609,17 +613,6 @@ declare class OwneySDK {
609
613
  private hasExistingBalance;
610
614
  private validateAssetSupport;
611
615
  private getEligibleAgents;
612
- /**
613
- * Agent ids the routing API provisioned for this org that support the given
614
- * chain + asset, ordered by preference ({@link AGENT_ELIGIBILITY_ORDER},
615
- * surfliquid first). Returns `[]` when the org has no compatible agent — never
616
- * throws on an empty org. Loads agent keys on first call (apiKey only, no
617
- * wallet), so the UI can resolve which agent to use before the user connects.
618
- *
619
- * This is the source of truth for agent availability: an agent appears here
620
- * iff the routing API returned its key. No per-app feature flags.
621
- */
622
- getEligibleAgentIds(chainId: number, asset: string): Promise<AgentId[]>;
623
616
  /**
624
617
  * Withdraw funds from a specific agent, or all agents that support the active chain+asset if agentId is omitted.
625
618
  * Validates that the asset is supported by the target agent(s) on the active chain.
@@ -720,7 +713,7 @@ declare class OwneySDK {
720
713
  getAllocationApy({ agentId, }?: AllocationApyOptions): Promise<OwneyAllocationApy>;
721
714
  }
722
715
 
723
- type OwneyErrorCode = "NOT_CONNECTED" | "NO_ACTIVE_CHAIN" | "WALLET_NO_ACCOUNTS" | "WALLET_ADDRESS_REQUIRED" | "WALLET_NOT_DEPLOYED" | "AGENT_NOT_FOUND" | "AGENT_CHAIN_INCOMPATIBLE" | "AGENT_EMPTY_LIST" | "AGENT_DISABLED" | "CHAIN_UNSUPPORTED" | "CHAIN_NO_COMPATIBLE_AGENTS" | "CHAIN_MISMATCH" | "ASSET_UNSUPPORTED" | "ASSET_NO_COMPATIBLE_AGENTS" | "DEPOSIT_AMOUNT_BELOW_MINIMUM" | "DEPOSIT_CALLBACK_REQUIRED" | "DEPOSIT_CALLBACK_INVALID" | "DEPOSIT_NO_PERMITTED_TOKENS" | "DEPOSIT_ALL_FAILED" | "DEPOSIT_INSUFFICIENT_BALANCE" | "WITHDRAW_NO_PERMITTED_TOKENS" | "WITHDRAW_INSUFFICIENT_BALANCE" | "WITHDRAW_ALL_FAILED" | "WITHDRAW_PARTIAL_FAILURE" | "WITHDRAW_FAILED" | "API_ROUTING_ERROR" | "API_ROUTING_FAILED" | "API_NO_AGENTS" | "SPONSOR_REQUEST_FAILED" | "PERMIT2_APPROVAL_REQUIRED" | "SPONSORED_CALLS_UNSUPPORTED" | "SPONSORED_CALLS_NO_ID" | "SPONSORED_CALLS_NO_RECEIPT" | "BALANCE_ALL_FAILED" | "ALLOCATION_ALL_FAILED" | "VALIDATION_INVALID_DAYS";
716
+ type OwneyErrorCode = "NOT_CONNECTED" | "NO_ACTIVE_CHAIN" | "WALLET_NO_ACCOUNTS" | "WALLET_ADDRESS_REQUIRED" | "WALLET_NOT_DEPLOYED" | "AGENT_NOT_FOUND" | "AGENT_CHAIN_INCOMPATIBLE" | "AGENT_EMPTY_LIST" | "AGENT_DISABLED" | "CHAIN_UNSUPPORTED" | "CHAIN_NO_COMPATIBLE_AGENTS" | "CHAIN_MISMATCH" | "ASSET_UNSUPPORTED" | "ASSET_NO_COMPATIBLE_AGENTS" | "DEPOSIT_BALANCE_UNAVAILABLE" | "DEPOSIT_PARTIAL_FAILURE" | "DEPOSIT_AMOUNT_BELOW_MINIMUM" | "DEPOSIT_CALLBACK_REQUIRED" | "DEPOSIT_CALLBACK_INVALID" | "DEPOSIT_NO_PERMITTED_TOKENS" | "DEPOSIT_INSUFFICIENT_BALANCE" | "WITHDRAW_NO_PERMITTED_TOKENS" | "WITHDRAW_INSUFFICIENT_BALANCE" | "WITHDRAW_ALL_FAILED" | "WITHDRAW_PARTIAL_FAILURE" | "WITHDRAW_FAILED" | "AGENT_RATE_LIMITED" | "API_ROUTING_ERROR" | "API_ROUTING_FAILED" | "API_NO_AGENTS" | "SPONSOR_REQUEST_FAILED" | "PERMIT2_APPROVAL_REQUIRED" | "SPONSORED_CALLS_UNSUPPORTED" | "SPONSORED_CALLS_NO_ID" | "SPONSORED_CALLS_NO_RECEIPT" | "BALANCE_ALL_FAILED" | "ALLOCATION_ALL_FAILED" | "VALIDATION_INVALID_DAYS";
724
717
  declare class OwneyError extends Error {
725
718
  readonly code: OwneyErrorCode;
726
719
  readonly details?: Record<string, unknown>;
@@ -786,4 +779,4 @@ type OwneySIWXConfig = {
786
779
  */
787
780
  declare function createOwneySIWX(config: OwneySIWXConfig): SIWXConfig;
788
781
 
789
- export { type AccountAgentApy, type AccountApyOptions, type AgentApy, type AgentApyDetails, type AgentBalance, AgentChainIncompatibleError, type AgentEarnings, type AgentHistoryEntry, type AgentHistoryPosition, type AgentId, AgentNotFoundError, type AgentSupportedAsset, type AgentSupportedAssets, type AgentUserProfile, type AgentWithdrawResult, type AgentsApyOptions, type AllocationAgentApy, type AllocationApyOptions, type ApyByChainAndAsset, type ApyHistoryPoint, type Asset, type ConnectionState, type DailyApyDays, type DepositCallback, type DepositOptions, type HistoryAction, type HistoryFilters, type HistoryOptions, type HistoryTransaction, type IAgent, InvalidHistoryCursorError, NotConnectedError, 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 OwneyWithdrawResult, type RebalanceLog, type WithdrawOptions, createOwneySIWX, setOwneyDebug };
782
+ export { type AccountAgentApy, type AccountApyOptions, type AgentApy, type AgentApyDetails, type AgentBalance, AgentChainIncompatibleError, type AgentEarnings, type AgentHistoryEntry, type AgentHistoryPosition, type AgentId, AgentNotFoundError, type AgentSupportedAsset, type AgentSupportedAssets, type AgentUserProfile, type AgentWithdrawResult, type AgentsApyOptions, type AllocationAgentApy, type AllocationApyOptions, type ApyByChainAndAsset, type ApyHistoryPoint, type Asset, type AvailableAgent, type AvailableAgentsOptions, type ConnectionState, type DailyApyDays, type DepositCallback, type DepositOptions, type HistoryAction, type HistoryFilters, type HistoryOptions, type HistoryTransaction, type IAgent, InvalidHistoryCursorError, NotConnectedError, 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 OwneyWithdrawResult, type RebalanceLog, type WithdrawOptions, createOwneySIWX, setOwneyDebug };