/** * This file was auto-generated by Fern from our API Definition. */ declare const AmplifyEnvironment: { readonly Production: "https://api.paxoslabs.com"; }; type AmplifyEnvironment = typeof AmplifyEnvironment.Production; /** * The raw response from the fetch call excluding the body. */ type RawResponse = Omit<{ [K in keyof Response as Response[K] extends Function ? never : K]: Response[K]; }, "ok" | "body" | "bodyUsed">; /** * Creates a `RawResponse` from a standard `Response` object. */ interface WithRawResponse { readonly data: T; readonly rawResponse: RawResponse; } type Supplier = T | Promise | (() => T | Promise); declare const Supplier: { get: (supplier: Supplier) => Promise; }; /** * A promise that returns the parsed response and lets you retrieve the raw response too. */ declare class HttpResponsePromise extends Promise { private innerPromise; private unwrappedPromise; private constructor(); /** * Creates an `HttpResponsePromise` from a function that returns a promise. * * @param fn - A function that returns a promise resolving to a `WithRawResponse` object. * @param args - Arguments to pass to the function. * @returns An `HttpResponsePromise` instance. */ static fromFunction Promise>, T>(fn: F, ...args: Parameters): HttpResponsePromise; /** * Creates a function that returns an `HttpResponsePromise` from a function that returns a promise. * * @param fn - A function that returns a promise resolving to a `WithRawResponse` object. * @returns A function that returns an `HttpResponsePromise` instance. */ static interceptFunction Promise>, T = Awaited>["data"]>(fn: F): (...args: Parameters) => HttpResponsePromise; /** * Creates an `HttpResponsePromise` from an existing promise. * * @param promise - A promise resolving to a `WithRawResponse` object. * @returns An `HttpResponsePromise` instance. */ static fromPromise(promise: Promise>): HttpResponsePromise; /** * Creates an `HttpResponsePromise` from an executor function. * * @param executor - A function that takes resolve and reject callbacks to create a promise. * @returns An `HttpResponsePromise` instance. */ static fromExecutor(executor: (resolve: (value: WithRawResponse) => void, reject: (reason?: unknown) => void) => void): HttpResponsePromise; /** * Creates an `HttpResponsePromise` from a resolved result. * * @param result - A `WithRawResponse` object to resolve immediately. * @returns An `HttpResponsePromise` instance. */ static fromResult(result: WithRawResponse): HttpResponsePromise; private unwrap; /** @inheritdoc */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike) | null): Promise; /** @inheritdoc */ catch(onrejected?: ((reason: unknown) => TResult | PromiseLike) | null): Promise; /** @inheritdoc */ finally(onfinally?: (() => void) | null): Promise; /** * Retrieves the data and raw response. * * @returns A promise resolving to a `WithRawResponse` object. */ withRawResponse(): Promise>; } type Schema = BaseSchema & SchemaUtils; interface BaseSchema { parse: (raw: unknown, opts?: SchemaOptions) => MaybeValid; json: (parsed: unknown, opts?: SchemaOptions) => MaybeValid; getType: () => SchemaType | SchemaType; } declare const SchemaType: { readonly BIGINT: "bigint"; readonly DATE: "date"; readonly ENUM: "enum"; readonly LIST: "list"; readonly STRING_LITERAL: "stringLiteral"; readonly BOOLEAN_LITERAL: "booleanLiteral"; readonly OBJECT: "object"; readonly ANY: "any"; readonly BOOLEAN: "boolean"; readonly NUMBER: "number"; readonly STRING: "string"; readonly UNKNOWN: "unknown"; readonly RECORD: "record"; readonly SET: "set"; readonly UNION: "union"; readonly UNDISCRIMINATED_UNION: "undiscriminatedUnion"; readonly NULLABLE: "nullable"; readonly OPTIONAL: "optional"; readonly OPTIONAL_NULLABLE: "optionalNullable"; }; type SchemaType = (typeof SchemaType)[keyof typeof SchemaType]; type MaybeValid = Valid | Invalid; interface Valid { ok: true; value: T; } interface Invalid { ok: false; errors: ValidationError[]; } interface ValidationError { path: string[]; message: string; } interface SchemaOptions { /** * how to handle unrecognized keys in objects * * @default "fail" */ unrecognizedObjectKeys?: "fail" | "passthrough" | "strip"; /** * whether to fail when an unrecognized discriminant value is * encountered in a union * * @default false */ allowUnrecognizedUnionMembers?: boolean; /** * whether to fail when an unrecognized enum value is encountered * * @default false */ allowUnrecognizedEnumValues?: boolean; /** * whether to allow data that doesn't conform to the schema. * invalid data is passed through without transformation. * * when this is enabled, .parse() and .json() will always * return `ok: true`. `.parseOrThrow()` and `.jsonOrThrow()` * will never fail. * * @default false */ skipValidation?: boolean; /** * each validation failure contains a "path" property, which is * the breadcrumbs to the offending node in the JSON. you can supply * a prefix that is prepended to all the errors' paths. this can be * helpful for zurg's internal debug logging. */ breadcrumbsPrefix?: string[]; /** * whether to send 'null' for optional properties explicitly set to 'undefined'. */ omitUndefined?: boolean; } type ObjectLikeSchema = Schema & BaseSchema & ObjectLikeUtils; interface ObjectLikeUtils { withParsedProperties: >(properties: { [K in keyof T]: T[K] | ((parsed: Parsed) => T[K]); }) => ObjectLikeSchema; } interface SchemaUtils { nullable: () => Schema; optional: () => Schema; optionalNullable: () => Schema; transform: (transformer: SchemaTransformer) => Schema; parseOrThrow: (raw: unknown, opts?: SchemaOptions) => Parsed; jsonOrThrow: (raw: unknown, opts?: SchemaOptions) => Raw; } interface SchemaTransformer { transform: (parsed: Parsed) => Transformed; untransform: (transformed: any) => Parsed; } type ObjectSchema = BaseObjectSchema & ObjectLikeUtils & ObjectUtils & SchemaUtils; interface BaseObjectSchema extends BaseSchema { _getRawProperties: () => (keyof Raw)[]; _getParsedProperties: () => (keyof Parsed)[]; } interface ObjectUtils { extend: (schemas: ObjectSchema) => ObjectSchema; passthrough: () => ObjectSchema; } /** * This file was auto-generated by Fern from our API Definition. */ type GetApysVaultsRequestOrderByTimestamp$1 = "asc" | "desc"; declare const GetApysVaultsRequestOrderByTimestamp$1: { readonly Asc: "asc"; readonly Desc: "desc"; }; /** * This file was auto-generated by Fern from our API Definition. */ type GetTvlsVaultsRequestOrderByTimestamp$1 = "asc" | "desc"; declare const GetTvlsVaultsRequestOrderByTimestamp$1: { readonly Asc: "asc"; readonly Desc: "desc"; }; /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * pageSize: 25, * filter: "withdrawable=true AND chainId=1 AND assetAddress=0xabcdef1234567890abcdef1234567890abcdef12" * } */ interface ListAssetsVaultsRequest { /** * Maximum items per page. Default: 25. Min: 1, max: 100. */ pageSize?: number; /** * Opaque token for the next page. Omit for the first page. */ pageToken?: string; /** * Filter string. Flags: withdrawable, depositable, vaultAddress, assetAddress, chainId. Optional. */ filter?: string; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * pageSize: 25, * startTime: "2026-01-01T00:00:00Z", * endTime: "2026-01-21T00:00:00Z", * interval: "86400s", * lookback: "604800s", * filter: "vaultAddress=0x1234567890abcdef1234567890abcdef12345678" * } */ interface GetApysVaultsRequest { /** * Maximum items per page. Default: 25. Min: 1, max: 100. */ pageSize?: number; /** * Opaque token for the next page. Omit for the first page. */ pageToken?: string; /** * Start of time range (RFC 3339 UTC). Optional; used with endTime. Takes precedence over lookback if set. */ startTime?: string; /** * End of time range (RFC 3339 UTC). Optional; used with startTime. Clamped to now if in the future. */ endTime?: string; /** * Duration between data points (e.g. 86400s). Default: 86400s (1 day). */ interval?: string; /** * Duration from now backward (e.g. 604800s for 7 days). Default when no startTime/endTime: 2592000s (30 days). */ lookback?: string; /** * Order by timestamp. Allowed: asc, desc. Default: asc. */ orderByTimestamp?: GetApysVaultsRequestOrderByTimestamp$1; /** * Filter string. Flags: vaultAddress. Optional. */ filter?: string; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * pageSize: 25, * startTime: "2026-01-01T00:00:00Z", * endTime: "2026-01-21T00:00:00Z", * interval: "86400s", * lookback: "604800s", * includeCurrent: false, * aggregate: false, * filter: "chainId=1 AND vaultAddress=0x1234567890abcdef1234567890abcdef12345678" * } */ interface GetTvlsVaultsRequest { /** * Maximum items per page. Default: 25. Min: 1, max: 100. */ pageSize?: number; /** * Opaque token for the next page. Omit for the first page. */ pageToken?: string; /** * Start of time range (RFC 3339 UTC). Optional; used with endTime. Takes precedence over lookback if set. */ startTime?: string; /** * End of time range (RFC 3339 UTC). Optional; used with startTime. Clamped to now if in the future. */ endTime?: string; /** * Duration between data points (e.g. 86400s). Default: 86400s (1 day). */ interval?: string; /** * Duration from now backward (e.g. 604800s for 7 days). Default when no startTime/endTime: 2592000s (30 days). */ lookback?: string; /** * Deprecated: current on-chain TVL is now always included. Accepted for backward compatibility but has no effect. */ includeCurrent?: boolean; /** * Order by timestamp. Allowed: asc, desc. Default: asc. */ orderByTimestamp?: GetTvlsVaultsRequestOrderByTimestamp$1; /** * When true, TVL is summed across all chains for each vault and returned with chainId=0. Default: false. */ aggregate?: boolean; /** * Filter string. Flags: chainId, vaultAddress. Optional. */ filter?: string; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * pageSize: 25, * filter: "chainId=1 AND vaultAddress=0x1234567890abcdef1234567890abcdef12345678" * } */ interface ListCompositionsVaultsRequest { /** * Maximum items per page. Default: 25. Min: 1, max: 100. */ pageSize?: number; /** * Opaque token for the next page. Omit for the first page. */ pageToken?: string; /** * Filter string. Flags: chainId, vaultAddress. Optional. */ filter?: string; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * pageSize: 25, * filter: "chainId=1 AND vaultAddress=0x1234567890abcdef1234567890abcdef12345678" * } */ interface GetLiquidityShortfallsVaultsRequest { /** * Maximum items per page. Default: 25. Min: 1, max: 100. */ pageSize?: number; /** * Opaque token for the next page. Omit for the first page. */ pageToken?: string; /** * Filter string. Flags: vaultAddress, chainId, assetAddress. Optional. */ filter?: string; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * pageSize: 25, * filter: "chainId=1 AND inDeprecation=false" * } */ interface ListVaultsRequest { /** * Maximum items per page. Default: 25. Min: 1, max: 100. */ pageSize?: number; /** * Opaque token for the next page. */ pageToken?: string; /** * Filter string. Flags: chainId, inDeprecation, requiresKyt. Example: chainId=1 AND inDeprecation=false */ filter?: string; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * pageSize: 25, * filter: "vaultAddress=0xbbbb000000000000000000000000000000000001 AND chainId=84532" * } */ interface GetSupplyCapsVaultsRequest { /** * Maximum items per page. Default: 25. Min: 1, max: 100. */ pageSize?: number; /** * Opaque token for the next page. Omit for the first page. */ pageToken?: string; /** * Filter string. Optional flags: vaultAddress (hex), chainId (number). Example: vaultAddress=0xbbbb000000000000000000000000000000000001 AND chainId=84532 */ filter?: string; } type index_d$e_GetApysVaultsRequest = GetApysVaultsRequest; type index_d$e_GetLiquidityShortfallsVaultsRequest = GetLiquidityShortfallsVaultsRequest; type index_d$e_GetSupplyCapsVaultsRequest = GetSupplyCapsVaultsRequest; type index_d$e_GetTvlsVaultsRequest = GetTvlsVaultsRequest; type index_d$e_ListAssetsVaultsRequest = ListAssetsVaultsRequest; type index_d$e_ListCompositionsVaultsRequest = ListCompositionsVaultsRequest; type index_d$e_ListVaultsRequest = ListVaultsRequest; declare namespace index_d$e { export { type index_d$e_GetApysVaultsRequest as GetApysVaultsRequest, GetApysVaultsRequestOrderByTimestamp$1 as GetApysVaultsRequestOrderByTimestamp, type index_d$e_GetLiquidityShortfallsVaultsRequest as GetLiquidityShortfallsVaultsRequest, type index_d$e_GetSupplyCapsVaultsRequest as GetSupplyCapsVaultsRequest, type index_d$e_GetTvlsVaultsRequest as GetTvlsVaultsRequest, GetTvlsVaultsRequestOrderByTimestamp$1 as GetTvlsVaultsRequestOrderByTimestamp, type index_d$e_ListAssetsVaultsRequest as ListAssetsVaultsRequest, type index_d$e_ListCompositionsVaultsRequest as ListCompositionsVaultsRequest, type index_d$e_ListVaultsRequest as ListVaultsRequest }; } /** * This file was auto-generated by Fern from our API Definition. */ type GetVolumesWithdrawRequestOrderByTimestamp$1 = "asc" | "desc"; declare const GetVolumesWithdrawRequestOrderByTimestamp$1: { readonly Asc: "asc"; readonly Desc: "desc"; }; /** * This file was auto-generated by Fern from our API Definition. */ type PrepareWithdrawRequestResponseFormat$1 = "encoded" | "full" | "structured"; declare const PrepareWithdrawRequestResponseFormat$1: { readonly Encoded: "encoded"; readonly Full: "full"; readonly Structured: "structured"; }; /** * This file was auto-generated by Fern from our API Definition. */ type CancelWithdrawRequestResponseFormat$1 = "encoded" | "full" | "structured"; declare const CancelWithdrawRequestResponseFormat$1: { readonly Encoded: "encoded"; readonly Full: "full"; readonly Structured: "structured"; }; /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * pageSize: 25, * filter: "status=PENDING AND chainId=1 AND wantAssetAddress=0x1234567890abcdef1234567890abcdef12345678 AND vaultAddress=0x1234567890abcdef1234567890abcdef12345678 AND userAddress=0x1234567890abcdef1234567890abcdef12345678 AND isMarkedForRefund=false" * } */ interface ListRequestsWithdrawRequest { /** * Maximum items per page. Default: 25. Min: 1, max: 100. */ pageSize?: number; /** * Opaque token for the next page. Omit for the first page. */ pageToken?: string; /** * Filter string. Flags: status (PENDING|COMPLETE|PENDING_REFUND|REFUNDED), chainId, wantAssetAddress, vaultAddress, userAddress, receiverAddress, refundReceiverAddress, orderIndex, isSubmittedViaSignature, isForceProcessed, isMarkedForRefund, isMarkedForRefundByUser, didOrderFailTransfer. Optional. */ filter?: string; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * pageSize: 25, * startTime: "2026-01-01T00:00:00Z", * endTime: "2026-01-21T00:00:00Z", * vaultAddress: "0x1234567890abcdef1234567890abcdef12345678", * interval: "86400s", * filter: "chainId=1 AND wantAssetAddress=0xabcdef1234567890abcdef1234567890abcdef12" * } */ interface GetVolumesWithdrawRequest { /** * Maximum items per page. Default: 25. Min: 1, max: 100. */ pageSize?: number; /** * Opaque token for the next page. Omit for the first page. */ pageToken?: string; /** * Start of time range (RFC 3339 UTC). Required. */ startTime: string; /** * End of time range (RFC 3339 UTC). Required. */ endTime: string; /** * Vault address to filter by (hex address). Required. */ vaultAddress: string; /** * Duration between data points (e.g. 86400s). Optional. */ interval?: string; /** * Order by timestamp. Allowed: asc, desc. Default: asc. */ orderByTimestamp?: GetVolumesWithdrawRequestOrderByTimestamp$1; /** * Filter string. Flags: chainId, wantAssetAddress. Optional. */ filter?: string; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * vaultAddress: "0xbbbb000000000000000000000000000000000001", * wantAsset: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", * shareAmount: "1000000000000000000", * userAddress: "0x1234567890abcdef1234567890abcdef12345678", * intendedDepositor: "0x1234567890abcdef1234567890abcdef12345678", * receiver: "0x1234567890abcdef1234567890abcdef12345678", * refundReceiver: "0x1234567890abcdef1234567890abcdef12345678", * chainId: 1 * } */ interface PrepareWithdrawRequest { /** * BoringVault contract address (0x + 40 hex chars) */ vaultAddress: string; /** * ERC-20 token address to receive upon withdrawal */ wantAsset: string; /** * Vault share amount to redeem, in share token base units (decimal string) */ shareAmount: string; /** * User wallet address — submits the withdrawal order. Also used as the default `intendedDepositor`, `receiver`, and `refundReceiver` when those optional params are omitted. */ userAddress: string; /** * Address treated as the depositor of record for the withdrawn shares (on-chain `SubmitOrderParams.intendedDepositor`). Defaults to `userAddress` when omitted. */ intendedDepositor?: string; /** * Address that receives the withdrawn `wantAsset` on settlement (on-chain `SubmitOrderParams.receiver`). Defaults to `userAddress` when omitted. */ receiver?: string; /** * Address that receives refunded shares if the order is cancelled (on-chain `SubmitOrderParams.refundReceiver`). Defaults to `userAddress` when omitted. */ refundReceiver?: string; /** * EVM chain ID */ chainId: number; /** * Controls response fields. "encoded" (default): ABI-encoded calldata only. "full": calldata + ABI fragment, function name, args. "structured": ABI fragment, function name, args only. */ responseFormat?: PrepareWithdrawRequestResponseFormat$1; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * vaultAddress: "0xbbbb000000000000000000000000000000000001", * orderIndex: "42", * chainId: 1 * } */ interface CancelWithdrawRequest { /** * BoringVault contract address (0x + 40 hex chars) */ vaultAddress: string; /** * Index of the withdrawal order to cancel, in WithdrawQueue order-index units (decimal string). To retrieve a specific order index, call `GET /v2/amplify/withdrawalRequests` filtered by `userAddress` and `vaultAddress` — each returned item includes its `orderIndex`. */ orderIndex: string; /** * EVM chain ID */ chainId: number; /** * Controls response fields. "encoded" (default): ABI-encoded calldata only. "full": calldata + ABI fragment, function name, args. "structured": ABI fragment, function name, args only. */ responseFormat?: CancelWithdrawRequestResponseFormat$1; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * offerAmount: "1000000000000000000", * wantAsset: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", * vaultAddress: "0xbbbb000000000000000000000000000000000001", * chainId: 1 * } */ interface CalculateFeeWithdrawRequest { /** * Share amount to withdraw (base units decimal string) */ offerAmount: string; /** * ERC-20 token address the user wants to receive */ wantAsset: string; /** * BoringVault contract address (0x + 40 hex chars) */ vaultAddress: string; /** * EVM chain ID */ chainId: number; } type index_d$d_CalculateFeeWithdrawRequest = CalculateFeeWithdrawRequest; type index_d$d_CancelWithdrawRequest = CancelWithdrawRequest; type index_d$d_GetVolumesWithdrawRequest = GetVolumesWithdrawRequest; type index_d$d_ListRequestsWithdrawRequest = ListRequestsWithdrawRequest; type index_d$d_PrepareWithdrawRequest = PrepareWithdrawRequest; declare namespace index_d$d { export { type index_d$d_CalculateFeeWithdrawRequest as CalculateFeeWithdrawRequest, type index_d$d_CancelWithdrawRequest as CancelWithdrawRequest, CancelWithdrawRequestResponseFormat$1 as CancelWithdrawRequestResponseFormat, type index_d$d_GetVolumesWithdrawRequest as GetVolumesWithdrawRequest, GetVolumesWithdrawRequestOrderByTimestamp$1 as GetVolumesWithdrawRequestOrderByTimestamp, type index_d$d_ListRequestsWithdrawRequest as ListRequestsWithdrawRequest, type index_d$d_PrepareWithdrawRequest as PrepareWithdrawRequest, PrepareWithdrawRequestResponseFormat$1 as PrepareWithdrawRequestResponseFormat }; } /** * This file was auto-generated by Fern from our API Definition. */ type PrepareDepositRequestResponseFormat$1 = "encoded" | "full" | "structured"; declare const PrepareDepositRequestResponseFormat$1: { readonly Encoded: "encoded"; readonly Full: "full"; readonly Structured: "structured"; }; /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * vaultAddress: "0xbbbb000000000000000000000000000000000001", * depositAsset: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", * depositAmount: "1000000", * userAddress: "0x1234567890abcdef1234567890abcdef12345678", * to: "0x1234567890abcdef1234567890abcdef12345678", * chainId: 1, * permitSignature: "0xabc...", * permitDeadline: 9999999999 * } */ interface PrepareDepositRequest { /** * BoringVault contract address (0x + 40 hex chars) */ vaultAddress: string; /** * ERC-20 token address to deposit */ depositAsset: string; /** * Amount to deposit in token base units (decimal string) */ depositAmount: string; /** * User wallet address — signs and submits the deposit transaction. Also used as the default share recipient when `to` is omitted. */ userAddress: string; /** * Destination address that receives the vault shares. Defaults to `userAddress` when omitted. Must match the on-chain `to` argument on `DistributorCodeDepositor.deposit()`. */ to?: string; /** * EVM chain ID */ chainId: number; /** * EIP-2612 permit signature (65-byte hex, from the authorize step). Required when permitDeadline is provided. */ permitSignature?: string; /** * Permit deadline as Unix timestamp. Required when permitSignature is provided. */ permitDeadline?: number; /** * Controls response fields. "encoded" (default): ABI-encoded calldata only. "full": calldata + ABI fragment, function name, args. "structured": ABI fragment, function name, args only. */ responseFormat?: PrepareDepositRequestResponseFormat$1; } type index_d$c_PrepareDepositRequest = PrepareDepositRequest; declare namespace index_d$c { export { type index_d$c_PrepareDepositRequest as PrepareDepositRequest, PrepareDepositRequestResponseFormat$1 as PrepareDepositRequestResponseFormat }; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * pageSize: 25, * userAddress: "0xdEADdE9539A00Bbd9A8494f45EB38aEe89d7C001", * filter: "vaultAddress=0xbbbb000000000000000000000000000000000001 AND chainId=84532" * } */ interface GetPositionsUsersRequest { /** * Maximum items per page. Default: 25. Min: 1, max: 100. */ pageSize?: number; /** * Opaque token for the next page. Omit for the first page. */ pageToken?: string; /** * User wallet address (hex address). Required. */ userAddress: string; /** * Filter string. Optional flags: vaultAddress (hex), chainId (number). Example: vaultAddress=0xbbbb000000000000000000000000000000000001 AND chainId=84532 */ filter?: string; } type index_d$b_GetPositionsUsersRequest = GetPositionsUsersRequest; declare namespace index_d$b { export type { index_d$b_GetPositionsUsersRequest as GetPositionsUsersRequest }; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * userDestinationAddress: "0x0000000000000000000000000000000000000123", * vaultAddress: "0x1234567890abcdef1234567890abcdef12345678", * inputToken: "0xf08a50178dfcde18524640ea6618a1f965821715", * chainId: 1 * } */ interface SmartDepositAddressRequestDto$1 { /** Address of end user who we are depositing funds on behalf of */ userDestinationAddress: string; /** Vault contract address */ vaultAddress: string; /** Underlying token address to deposit into the vault */ inputToken: string; /** Chain ID where the vault exists */ chainId: number; } declare namespace index_d$a { export type { SmartDepositAddressRequestDto$1 as SmartDepositAddressRequestDto }; } type index_d$9_CalculateFeeWithdrawRequest = CalculateFeeWithdrawRequest; type index_d$9_CancelWithdrawRequest = CancelWithdrawRequest; type index_d$9_GetApysVaultsRequest = GetApysVaultsRequest; type index_d$9_GetLiquidityShortfallsVaultsRequest = GetLiquidityShortfallsVaultsRequest; type index_d$9_GetPositionsUsersRequest = GetPositionsUsersRequest; type index_d$9_GetSupplyCapsVaultsRequest = GetSupplyCapsVaultsRequest; type index_d$9_GetTvlsVaultsRequest = GetTvlsVaultsRequest; type index_d$9_GetVolumesWithdrawRequest = GetVolumesWithdrawRequest; type index_d$9_ListAssetsVaultsRequest = ListAssetsVaultsRequest; type index_d$9_ListCompositionsVaultsRequest = ListCompositionsVaultsRequest; type index_d$9_ListRequestsWithdrawRequest = ListRequestsWithdrawRequest; type index_d$9_ListVaultsRequest = ListVaultsRequest; type index_d$9_PrepareDepositRequest = PrepareDepositRequest; type index_d$9_PrepareWithdrawRequest = PrepareWithdrawRequest; declare namespace index_d$9 { export { type index_d$9_CalculateFeeWithdrawRequest as CalculateFeeWithdrawRequest, type index_d$9_CancelWithdrawRequest as CancelWithdrawRequest, CancelWithdrawRequestResponseFormat$1 as CancelWithdrawRequestResponseFormat, type index_d$9_GetApysVaultsRequest as GetApysVaultsRequest, GetApysVaultsRequestOrderByTimestamp$1 as GetApysVaultsRequestOrderByTimestamp, type index_d$9_GetLiquidityShortfallsVaultsRequest as GetLiquidityShortfallsVaultsRequest, type index_d$9_GetPositionsUsersRequest as GetPositionsUsersRequest, type index_d$9_GetSupplyCapsVaultsRequest as GetSupplyCapsVaultsRequest, type index_d$9_GetTvlsVaultsRequest as GetTvlsVaultsRequest, GetTvlsVaultsRequestOrderByTimestamp$1 as GetTvlsVaultsRequestOrderByTimestamp, type index_d$9_GetVolumesWithdrawRequest as GetVolumesWithdrawRequest, GetVolumesWithdrawRequestOrderByTimestamp$1 as GetVolumesWithdrawRequestOrderByTimestamp, type index_d$9_ListAssetsVaultsRequest as ListAssetsVaultsRequest, type index_d$9_ListCompositionsVaultsRequest as ListCompositionsVaultsRequest, type index_d$9_ListRequestsWithdrawRequest as ListRequestsWithdrawRequest, type index_d$9_ListVaultsRequest as ListVaultsRequest, type index_d$9_PrepareDepositRequest as PrepareDepositRequest, PrepareDepositRequestResponseFormat$1 as PrepareDepositRequestResponseFormat, type index_d$9_PrepareWithdrawRequest as PrepareWithdrawRequest, PrepareWithdrawRequestResponseFormat$1 as PrepareWithdrawRequestResponseFormat, type SmartDepositAddressRequestDto$1 as SmartDepositAddressRequestDto, index_d$c as deposit, index_d$a as smartDeposits, index_d$b as users, index_d$e as vaults, index_d$d as withdraw }; } /** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * vaultAddress: "0x...", * tokenAddress: "0x...", * amount: "1000000000000000000", * userAddress: "0x...", * chainId: 1 * } */ interface DetectAuthorizationRequest { /** * BoringVault contract address (0x + 40 hex chars) */ vaultAddress: string; /** * ERC-20 token address */ tokenAddress: string; /** * Deposit amount in token base units (decimal string) */ amount: string; /** * User wallet address */ userAddress: string; /** * EVM chain ID */ chainId: number; } type index_d$8_DetectAuthorizationRequest = DetectAuthorizationRequest; declare namespace index_d$8 { export type { index_d$8_DetectAuthorizationRequest as DetectAuthorizationRequest }; } type index_d$7_DetectAuthorizationRequest = DetectAuthorizationRequest; declare namespace index_d$7 { export { type index_d$7_DetectAuthorizationRequest as DetectAuthorizationRequest, index_d$8 as authorization }; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultAssetDto$1 { /** Vault contract address */ vaultAddress: string; /** Chain ID where the vault exists */ chainId: number; /** Asset contract address */ assetAddress: string; /** Whether the asset can be deposited */ depositable: boolean; /** Whether the asset can be withdrawn */ withdrawable: boolean; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultAssetsResponseDto$1 { /** List of vault assets */ vaultAssets: VaultAssetDto$1[]; /** Token for the next page. null when there are no more results. Always present. */ nextPageToken: string | null; /** Address metadata map keyed by lowercase token/address. Missing metadata is represented as null. */ tokenMetadata: Record; } /** * This file was auto-generated by Fern from our API Definition. */ interface FieldViolationDto$1 { /** The field that caused the violation */ field: string; /** Description of the violation */ description: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface ErrorDetailDto$1 { /** Type URL identifying the error detail schema */ type: string; /** Field-level violations for validation errors */ fieldViolations?: FieldViolationDto$1[]; } /** * This file was auto-generated by Fern from our API Definition. */ /** * Error status enum value */ type ErrorObjectDtoStatus$1 = "UNKNOWN" | "INVALID_ARGUMENT" | "NOT_FOUND" | "PERMISSION_DENIED" | "UNAUTHENTICATED" | "RESOURCE_EXHAUSTED" | "INTERNAL" | "METHOD_NOT_ALLOWED"; declare const ErrorObjectDtoStatus$1: { readonly Unknown: "UNKNOWN"; readonly InvalidArgument: "INVALID_ARGUMENT"; readonly NotFound: "NOT_FOUND"; readonly PermissionDenied: "PERMISSION_DENIED"; readonly Unauthenticated: "UNAUTHENTICATED"; readonly ResourceExhausted: "RESOURCE_EXHAUSTED"; readonly Internal: "INTERNAL"; readonly MethodNotAllowed: "METHOD_NOT_ALLOWED"; }; /** * This file was auto-generated by Fern from our API Definition. */ interface ErrorObjectDto$1 { /** HTTP status code */ code: number; /** Human-readable error message */ message: string; /** Error status enum value */ status: ErrorObjectDtoStatus$1; /** Additional error details */ details?: ErrorDetailDto$1[]; } /** * This file was auto-generated by Fern from our API Definition. */ interface ErrorResponseDto$1 { /** Error object containing details */ error: ErrorObjectDto$1; } /** * This file was auto-generated by Fern from our API Definition. */ /** * Current state of the withdrawal request */ type WithdrawalRequestDtoStatus$1 = "PENDING" | "PENDING_REFUND" | "COMPLETE" | "REFUNDED"; declare const WithdrawalRequestDtoStatus$1: { readonly Pending: "PENDING"; readonly PendingRefund: "PENDING_REFUND"; readonly Complete: "COMPLETE"; readonly Refunded: "REFUNDED"; }; /** * This file was auto-generated by Fern from our API Definition. */ interface WithdrawalRequestDto$1 { /** Unique withdrawal request identifier */ id: string; /** Vault contract address */ vaultAddress: string; /** Chain ID where the request was made */ chainId: number; /** Desired asset address for withdrawal */ wantAssetAddress: string; /** Current state of the withdrawal request */ status: WithdrawalRequestDtoStatus$1; /** Timestamp when the request was created (RFC 3339 UTC) */ createdAt: string; /** Transaction Hash when the request was created */ createdTxHash: string; /** Transaction Hash when the request was last updated */ updatedTxHash: string; /** Address of the user who made the request */ userAddress: string; /** Address of the receiver of the assets */ receiverAddress: string; /** Address of the receiver of the refund */ refundReceiverAddress: string; /** Amount of the vault shares to withdraw */ orderAmount: string; /** Index of the withdrawal request in the queue */ orderIndex: string; /** Whether the request was submitted using a signature flow */ isSubmittedViaSignature: boolean; /** Whether this request was force-processed during the settlement cycle */ isForceProcessed: boolean; /** Whether this request is currently marked for refund */ isMarkedForRefund: boolean; /** Whether the mark-for-refund action was initiated by the user when applicable */ isMarkedForRefundByUser: boolean; /** Whether order transfer failed during processing and shares were refunded */ didOrderFailTransfer: boolean; } /** * This file was auto-generated by Fern from our API Definition. */ interface WithdrawalRequestsResponseDto$1 { /** List of withdrawal requests */ withdrawalRequests: WithdrawalRequestDto$1[]; /** Token for the next page. null when there are no more results. Always present. */ nextPageToken: string | null; /** Address metadata map keyed by lowercase token/address. Missing metadata is represented as null. */ tokenMetadata: Record; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultApyDto$1 { /** Vault contract address */ vaultAddress: string; /** Timestamp for this data point (RFC 3339 UTC) */ timestamp: string; /** Time interval for this data point */ interval: string; /** Annual percentage yield in percent (e.g. 4.25 for 4.25%) */ apy: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultApysResponseDto$1 { /** List of vault APY data points */ vaultApys: VaultApyDto$1[]; /** Token for the next page. null when there are no more results. Always present. */ nextPageToken: string | null; /** Address metadata map keyed by lowercase token/address. Missing metadata is represented as null. */ tokenMetadata: Record; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultTvlDto$1 { /** Vault contract address */ vaultAddress: string; /** Chain ID where the vault exists. 0 indicates an aggregated value across all chains (returned when aggregate=true). */ chainId: number; /** Timestamp for this data point (RFC 3339 UTC) */ timestamp: string; /** Time interval for this data point */ interval: string; /** Total value locked as decimal string */ tvl: string; /** Asset denomination for TVL value */ tvlAsset: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultTvlsResponseDto$1 { /** List of vault TVL data points */ vaultTvls: VaultTvlDto$1[]; /** Token for the next page. null when there are no more results. Always present. */ nextPageToken: string | null; /** Address metadata map keyed by lowercase token/address. Missing metadata is represented as null. */ tokenMetadata: Record; } /** * This file was auto-generated by Fern from our API Definition. */ /** * Instrument type identity for the position reference */ type VaultCompositionPositionRefDtoType$1 = "ERC20" | "NATIVE" | "ERC4626_VAULT" | "ERC721" | "ERC1155" | "UNI_V2_PAIR" | "UNI_V3_POSITION" | "CURVE_POOL" | "BALANCER_POOL" | "AAVE_V3_RESERVE" | "COMPOUND_V2_CTOKEN" | "COMPOUND_V3_MARKET" | "MORPHO_V1_MARKET" | "MORPHO_V1_VAULT" | "MORPHO_V2_MARKET" | "MORPHO_V2_VAULT"; declare const VaultCompositionPositionRefDtoType$1: { readonly Erc20: "ERC20"; readonly Native: "NATIVE"; readonly Erc4626Vault: "ERC4626_VAULT"; readonly Erc721: "ERC721"; readonly Erc1155: "ERC1155"; readonly UniV2Pair: "UNI_V2_PAIR"; readonly UniV3Position: "UNI_V3_POSITION"; readonly CurvePool: "CURVE_POOL"; readonly BalancerPool: "BALANCER_POOL"; readonly AaveV3Reserve: "AAVE_V3_RESERVE"; readonly CompoundV2Ctoken: "COMPOUND_V2_CTOKEN"; readonly CompoundV3Market: "COMPOUND_V3_MARKET"; readonly MorphoV1Market: "MORPHO_V1_MARKET"; readonly MorphoV1Vault: "MORPHO_V1_VAULT"; readonly MorphoV2Market: "MORPHO_V2_MARKET"; readonly MorphoV2Vault: "MORPHO_V2_VAULT"; }; /** * This file was auto-generated by Fern from our API Definition. */ interface VaultCompositionPositionRefDto$1 { /** Instrument type identity for the position reference */ type: VaultCompositionPositionRefDtoType$1; /** Instrument identifier (e.g., token address, market ID, pool ID, token ID) */ id: string; } /** * This file was auto-generated by Fern from our API Definition. */ /** * Stable machine-readable exposure/leg type for the position */ type VaultCompositionComponentDtoPositionKind$1 = "SPOT" | "SUPPLY" | "COLLATERAL" | "DEBT" | "STAKED" | "PENDING"; declare const VaultCompositionComponentDtoPositionKind$1: { readonly Spot: "SPOT"; readonly Supply: "SUPPLY"; readonly Collateral: "COLLATERAL"; readonly Debt: "DEBT"; readonly Staked: "STAKED"; readonly Pending: "PENDING"; }; /** * This file was auto-generated by Fern from our API Definition. */ /** * Stable machine-readable instrument type. Mirrors positionRef.type. */ type VaultCompositionComponentDtoInstrumentType$1 = "ERC20" | "NATIVE" | "ERC4626_VAULT" | "ERC721" | "ERC1155" | "UNI_V2_PAIR" | "UNI_V3_POSITION" | "CURVE_POOL" | "BALANCER_POOL" | "AAVE_V3_RESERVE" | "COMPOUND_V2_CTOKEN" | "COMPOUND_V3_MARKET" | "MORPHO_V1_MARKET" | "MORPHO_V1_VAULT" | "MORPHO_V2_MARKET" | "MORPHO_V2_VAULT"; declare const VaultCompositionComponentDtoInstrumentType$1: { readonly Erc20: "ERC20"; readonly Native: "NATIVE"; readonly Erc4626Vault: "ERC4626_VAULT"; readonly Erc721: "ERC721"; readonly Erc1155: "ERC1155"; readonly UniV2Pair: "UNI_V2_PAIR"; readonly UniV3Position: "UNI_V3_POSITION"; readonly CurvePool: "CURVE_POOL"; readonly BalancerPool: "BALANCER_POOL"; readonly AaveV3Reserve: "AAVE_V3_RESERVE"; readonly CompoundV2Ctoken: "COMPOUND_V2_CTOKEN"; readonly CompoundV3Market: "COMPOUND_V3_MARKET"; readonly MorphoV1Market: "MORPHO_V1_MARKET"; readonly MorphoV1Vault: "MORPHO_V1_VAULT"; readonly MorphoV2Market: "MORPHO_V2_MARKET"; readonly MorphoV2Vault: "MORPHO_V2_VAULT"; }; /** * This file was auto-generated by Fern from our API Definition. */ interface VaultCompositionComponentDto$1 { /** Asset contract address */ assetAddress: string; /** Amount of the asset as decimal string */ amount: string; /** Value of the asset as decimal string */ value: string; /** Asset denomination for value */ valueAsset: string; /** Weight of this component in the vault (0-1 decimal) */ weight: string; /** Stable machine-readable exposure/leg type for the position */ positionKind: VaultCompositionComponentDtoPositionKind$1; /** Stable machine-readable instrument type. Mirrors positionRef.type. */ instrumentType: VaultCompositionComponentDtoInstrumentType$1; /** Stable instrument reference for this component */ positionRef: VaultCompositionPositionRefDto$1; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultCompositionDto$1 { /** Vault contract address */ vaultAddress: string; /** Chain ID where the vault exists */ chainId: number; /** Timestamp for this snapshot (RFC 3339 UTC) */ timestamp: string; /** Components that make up the vault */ components: VaultCompositionComponentDto$1[]; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultCompositionsResponseDto$1 { /** List of vault compositions */ vaultCompositions: VaultCompositionDto$1[]; /** Token for the next page. null when there are no more results. Always present. */ nextPageToken: string | null; /** Address metadata map keyed by lowercase token/address. Missing metadata is represented as null. */ tokenMetadata: Record; } /** * This file was auto-generated by Fern from our API Definition. */ interface WithdrawalVolumeDto$1 { /** Vault contract address */ vaultAddress: string; /** Chain ID where the vault exists */ chainId: number; /** Start time for this data point (RFC 3339 UTC) */ startTime: string; /** End time for this data point (RFC 3339 UTC) */ endTime: string; /** Time interval for this data point */ interval: string; /** Total withdrawal volume as decimal string in USD */ volumeUsd: string; /** Total withdrawal volume as decimal string in withdrawal asset */ volumeAsset: string; /** Address of the asset that was withdrawn */ wantAssetAddress: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface WithdrawalVolumesResponseDto$1 { /** List of withdrawal volume data points */ withdrawalVolumes: WithdrawalVolumeDto$1[]; /** Token for the next page. null when there are no more results. Always present. */ nextPageToken: string | null; /** Address metadata map keyed by lowercase token/address. Missing metadata is represented as null. */ tokenMetadata: Record; } /** * This file was auto-generated by Fern from our API Definition. */ interface LiquidityShortfallDto$1 { /** Vault contract address */ vaultAddress: string; /** Chain ID where the shortfall exists */ chainId: number; /** Asset contract address with the shortfall */ assetAddress: string; /** Shortfall amount as decimal string */ shortfallAmount: string; /** Total withdrawal demand amount as decimal string */ withdrawDemand: string; /** Timestamp of when this shortfall was calculated (RFC 3339 UTC) */ asOfTime: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface LiquidityShortfallsResponseDto$1 { /** List of liquidity shortfalls */ liquidityShortfalls: LiquidityShortfallDto$1[]; /** Token for the next page. null when there are no more results. Always present. */ nextPageToken: string | null; /** Address metadata map keyed by lowercase token/address. Missing metadata is represented as null. */ tokenMetadata: Record; } /** * This file was auto-generated by Fern from our API Definition. */ interface TokenAmountWithCapDto$1 { /** Raw amount in base units (as a decimal string). */ raw: string; /** Human-readable formatted amount. */ formatted: string; /** Token decimals used for formatting. */ decimals: number; /** Whether the vault has a finite deposit cap. False means the cap is set to maxUint256 (effectively uncapped). */ hasCap: boolean; } /** * This file was auto-generated by Fern from our API Definition. */ interface TokenAmountDto$1 { /** Raw amount in base units (as a decimal string). */ raw: string; /** Human-readable formatted amount. */ formatted: string; /** Token decimals used for formatting. */ decimals: number; } /** * This file was auto-generated by Fern from our API Definition. */ interface FeeDto$1 { /** Fee in basis points (integer). 25 = 0.25%. */ bps: number; /** Human-readable percentage (4 decimals). Example: "0.2500" = 0.25%. */ percentage: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface WithdrawalSlAsDto$1 { /** Expected delay before a withdrawal is processed. */ expectedDelay: string; /** Buffer window before an order expires. Must be greater than expectedDelay. */ expiryBuffer: string; /** Internal SLA for the withdraw queue to process an order. */ internalWithdrawalQueueDelaySla: string; /** External SLA for the withdraw queue to process an order. */ externalWithdrawalQueueDelaySla: string; /** Internal SLA for the accountant rate to update. */ internalAccountantRateUpdateDelaySla: string; /** External SLA for the accountant rate to update. */ externalAccountantRateUpdateSla: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultAssetConfigDto$1 { /** Asset contract address. */ assetAddress: string; /** Whether the asset can be deposited. */ depositable: boolean; /** Whether the asset can be withdrawn. */ withdrawable: boolean; /** Deposit fee for this asset. */ depositFees: FeeDto$1; /** Withdraw fee for this asset. */ withdrawFees: FeeDto$1; /** Withdrawal SLAs configured for this (vault, asset) pair. */ withdrawalSlAs?: WithdrawalSlAsDto$1 | null; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultDeploymentDto$1 { /** Chain ID */ chainId: number; /** BoringVault contract address (the ERC-20 share token). */ boringVaultAddress: string; /** DistributorCodeDepositor contract address — spender for deposit approvals. */ depositorAddress: string; /** WithdrawQueue contract address — spender for share approvals on withdrawal. */ withdrawQueueAddress: string; /** Whether the vault requires KYT attestations on deposit. */ requiresKyt: boolean; /** Base (primary deposit) asset address. Null when unset. */ baseTokenAddress?: string | null; /** Accountant contract address — tracks vault share rate. */ accountantAddress?: string | null; /** Teller contract address. */ tellerAddress?: string | null; /** Deposit fee module contract address. */ depositFeeAddress?: string | null; /** Withdraw fee module contract address. */ withdrawFeeAddress?: string | null; /** Whether the vault is marked in deprecation. */ inDeprecation: boolean; /** Deposit supply cap. */ depositSupplyCap?: TokenAmountWithCapDto$1 | null; /** Minimum withdrawal order size, denominated in share tokens. */ minimumWithdrawalOrderSize?: TokenAmountDto$1 | null; /** Per-asset configuration for this deployment: depositable/withdrawable flags, fees, and withdrawal SLAs. */ assets: VaultAssetConfigDto$1[]; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultDto$1 { /** Human-readable vault name. */ name: string; /** Chain deployments for this vault name. */ deployments: VaultDeploymentDto$1[]; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultsResponseDto$1 { /** List of vaults, keyed by vault name. */ vaults: VaultDto$1[]; /** Token for the next page. null when no more results. */ nextPageToken: string | null; } /** * This file was auto-generated by Fern from our API Definition. */ interface PreparedTransactionDto$1 { /** Contract address to call */ to: string; /** ABI-encoded calldata (hex string). Present when responseFormat is "encoded" (default) or "full". */ data?: string; /** ETH value to send with the transaction (decimal string). Usually "0" for ERC-20 deposits. */ value: string; /** ABI fragment for the called function. Present when responseFormat is "full" or "structured". */ abi?: string[]; /** Solidity function name. Present when responseFormat is "full" or "structured". */ functionName?: string; /** Positional arguments matching the ABI inputs. BigInt values are serialized as decimal strings. Present when responseFormat is "full" or "structured". */ args?: string[]; } /** * This file was auto-generated by Fern from our API Definition. */ interface PrepareDepositResponseDto$1 { transaction: PreparedTransactionDto$1; } /** * This file was auto-generated by Fern from our API Definition. */ interface PrepareWithdrawResponseDto$1 { transaction: PreparedTransactionDto$1; } /** * This file was auto-generated by Fern from our API Definition. */ interface PrepareCancelWithdrawResponseDto$1 { transaction: PreparedTransactionDto$1; } /** * This file was auto-generated by Fern from our API Definition. */ interface CalculateWithdrawalFeeResponseDto$1 { /** Fee amount charged for the given offer and want asset. */ feeAmount: string; /** Offer fee percentage in bps. */ offerFeePercentage: FeeDto$1; /** Flat fee charged on every withdrawal for the given offer and want asset. Denominated in the want asset. */ flatFee: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface SupplyCapEntryDto$1 { /** BoringVault contract address (lowercased). */ vaultAddress: string; /** EVM chain ID. */ chainId: number; /** Total deposited value denominated in the vault base asset (computed as totalSupply * shareToBaseRate). Comparable to `supplyCap`. */ totalSupplyInBase: string; /** Deposit supply cap denominated in the vault base asset, or null when the vault is uncapped. */ supplyCap: string | null; /** Percentage of supply cap currently filled, formatted with four decimals (e.g. "20.7587"). Null when the vault is uncapped. */ percentageFilled: string | null; } /** * This file was auto-generated by Fern from our API Definition. */ interface SupplyCapsResponseDto$1 { /** One entry per chain deployment. */ supplyCaps: SupplyCapEntryDto$1[]; /** Token for the next page. null when there are no more results. Always present. */ nextPageToken: string | null; } /** * This file was auto-generated by Fern from our API Definition. */ interface UserPositionEntryDto$1 { /** BoringVault contract address (lowercased). */ vaultAddress: string; /** EVM chain ID. */ chainId: number; /** User share token balance (decimal string in share token units). */ shareBalance: string; /** Position value in the vault base asset (decimal string in base asset units). */ positionValueInBase: string; /** Vault base asset contract address (lowercased). */ baseAssetAddress: string; /** Exchange rate of one share to the base asset, decimal string at the accountant-contract precision. */ exchangeRateToBase: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface UserPositionsResponseDto$1 { /** One entry per chain deployment. */ userPositions: UserPositionEntryDto$1[]; /** Token for the next page. null when there are no more results. Always present. */ nextPageToken: string | null; /** Address metadata map keyed by lowercase token/address. Missing metadata is represented as null. */ tokenMetadata: Record; } /** * This file was auto-generated by Fern from our API Definition. */ interface SmartDepositAddressResponseDto$1 { /** The smart deposit address for the given user */ smartDepositAddress: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface KytRequestDto$1 { /** Destination address for funds */ to: string; /** User wallet address to evaluate */ from: string; /** Chain name */ chain: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface KytAttestationDto$1 { /** Unique identifier for the attestation */ uuid: string; /** Unix timestamp when the attestation expires */ expiration: number; /** Address of the attester */ attester: string; /** Attestation signature */ signature: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface KytResponseDto$1 { /** KYT compliance attestation */ attestation: KytAttestationDto$1; } /** * This file was auto-generated by Fern from our API Definition. */ interface AddressBookEntryDto$1 { /** Unique identifier for the address book entry */ id: string; /** Chain ID where the address exists */ chainId: number; /** Contract or wallet address */ address: string; /** Human-readable name for the address */ name: string; /** Timestamp when the entry was created (RFC 3339 UTC) */ createdAt: string; /** Timestamp when the entry was last updated (RFC 3339 UTC) */ updatedAt: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface AddressBookEntriesResponseDto$1 { /** List of address book entries */ addressBookEntries: AddressBookEntryDto$1[]; /** Token for the next page. null when there are no more results. Always present. */ nextPageToken: Record | null; } /** * This file was auto-generated by Fern from our API Definition. */ interface PermitDomainDto$1 { name: string; version: string; chainId: number; verifyingContract: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface PermitValueDto$1 { owner: string; spender: string; value: string; nonce: string; deadline: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface PermitTypedDataResponseDto$1 { domain: PermitDomainDto$1; /** EIP-712 types */ types: Record; value: PermitValueDto$1; deadline: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface ApprovalTransactionDto$1 { /** ABI-encoded approve() calldata */ encoded: string; } /** * This file was auto-generated by Fern from our API Definition. */ type AuthorizationResponseDtoMethod$1 = "permit" | "approval" | "already_approved"; declare const AuthorizationResponseDtoMethod$1: { readonly Permit: "permit"; readonly Approval: "approval"; readonly AlreadyApproved: "already_approved"; }; /** * This file was auto-generated by Fern from our API Definition. */ interface AuthorizationResponseDto$1 { method: AuthorizationResponseDtoMethod$1; /** Present when method=permit */ permitData?: PermitTypedDataResponseDto$1; /** Present when method=approval */ approvalTransaction?: ApprovalTransactionDto$1; } /** * This file was auto-generated by Fern from our API Definition. */ interface VaultRewardDto$1 { /** Paxos claim id that produced this reward. */ id: string; /** On-chain transaction hash of the rewards distribution to the distribution address. */ txHash: string; /** Token decimals (e.g. 6 for USDG). */ decimals: number; /** Timestamp of the rewards distribution snapshot. RFC 3339 UTC. */ createdAt: string; /** Chain on which the reward was distributed. */ chainId: number; /** Vault USDG balance at the time of the distribution, in token base units. Omitted when the snapshot balance is unavailable. */ usdgBalanceBase?: string; /** Net yield in USDG for this distribution (gross yield minus fees). Decimal string. */ realizedYield: string; /** Cumulative net yield in USDG up to and including this distribution. Decimal string. */ cumulativeYield: string; /** Realized APY at this distribution. Percent (e.g. "4.27" = 4.27%). Decimal string. */ realizedApy: string; } /** * This file was auto-generated by Fern from our API Definition. */ interface ListVaultRewardsResponseDto$1 { /** Time-series list of vault rewards, net of fees. */ vaultRewards: VaultRewardDto$1[]; /** Opaque cursor for the next page. Omitted when there are no further results. */ nextPageToken?: string; } /** * This file was auto-generated by Fern from our API Definition. */ declare class AmplifyError extends Error { readonly statusCode?: number; readonly body?: unknown; readonly rawResponse?: RawResponse; constructor({ message, statusCode, body, rawResponse, }: { message?: string; statusCode?: number; body?: unknown; rawResponse?: RawResponse; }); } /** * This file was auto-generated by Fern from our API Definition. */ declare class AmplifyTimeoutError extends Error { constructor(message: string); } /** * This file was auto-generated by Fern from our API Definition. */ declare class BadRequestError extends AmplifyError { constructor(body: ErrorResponseDto$1, rawResponse?: RawResponse); } /** * This file was auto-generated by Fern from our API Definition. */ declare class NotFoundError extends AmplifyError { constructor(body?: unknown, rawResponse?: RawResponse); } /** * This file was auto-generated by Fern from our API Definition. */ declare class ServiceUnavailableError extends AmplifyError { constructor(body: ErrorResponseDto$1, rawResponse?: RawResponse); } /** * This file was auto-generated by Fern from our API Definition. */ declare class ForbiddenError extends AmplifyError { constructor(body: ErrorResponseDto$1, rawResponse?: RawResponse); } type index_d$6_BadRequestError = BadRequestError; declare const index_d$6_BadRequestError: typeof BadRequestError; type index_d$6_ForbiddenError = ForbiddenError; declare const index_d$6_ForbiddenError: typeof ForbiddenError; type index_d$6_NotFoundError = NotFoundError; declare const index_d$6_NotFoundError: typeof NotFoundError; type index_d$6_ServiceUnavailableError = ServiceUnavailableError; declare const index_d$6_ServiceUnavailableError: typeof ServiceUnavailableError; declare namespace index_d$6 { export { type AddressBookEntriesResponseDto$1 as AddressBookEntriesResponseDto, type AddressBookEntryDto$1 as AddressBookEntryDto, type ApprovalTransactionDto$1 as ApprovalTransactionDto, type AuthorizationResponseDto$1 as AuthorizationResponseDto, AuthorizationResponseDtoMethod$1 as AuthorizationResponseDtoMethod, index_d$6_BadRequestError as BadRequestError, type CalculateWithdrawalFeeResponseDto$1 as CalculateWithdrawalFeeResponseDto, type ErrorDetailDto$1 as ErrorDetailDto, type ErrorObjectDto$1 as ErrorObjectDto, ErrorObjectDtoStatus$1 as ErrorObjectDtoStatus, type ErrorResponseDto$1 as ErrorResponseDto, type FeeDto$1 as FeeDto, type FieldViolationDto$1 as FieldViolationDto, index_d$6_ForbiddenError as ForbiddenError, type KytAttestationDto$1 as KytAttestationDto, type KytRequestDto$1 as KytRequestDto, type KytResponseDto$1 as KytResponseDto, type LiquidityShortfallDto$1 as LiquidityShortfallDto, type LiquidityShortfallsResponseDto$1 as LiquidityShortfallsResponseDto, type ListVaultRewardsResponseDto$1 as ListVaultRewardsResponseDto, index_d$6_NotFoundError as NotFoundError, type PermitDomainDto$1 as PermitDomainDto, type PermitTypedDataResponseDto$1 as PermitTypedDataResponseDto, type PermitValueDto$1 as PermitValueDto, type PrepareCancelWithdrawResponseDto$1 as PrepareCancelWithdrawResponseDto, type PrepareDepositResponseDto$1 as PrepareDepositResponseDto, type PrepareWithdrawResponseDto$1 as PrepareWithdrawResponseDto, type PreparedTransactionDto$1 as PreparedTransactionDto, index_d$6_ServiceUnavailableError as ServiceUnavailableError, type SmartDepositAddressResponseDto$1 as SmartDepositAddressResponseDto, type SupplyCapEntryDto$1 as SupplyCapEntryDto, type SupplyCapsResponseDto$1 as SupplyCapsResponseDto, type TokenAmountDto$1 as TokenAmountDto, type TokenAmountWithCapDto$1 as TokenAmountWithCapDto, type UserPositionEntryDto$1 as UserPositionEntryDto, type UserPositionsResponseDto$1 as UserPositionsResponseDto, type VaultApyDto$1 as VaultApyDto, type VaultApysResponseDto$1 as VaultApysResponseDto, type VaultAssetConfigDto$1 as VaultAssetConfigDto, type VaultAssetDto$1 as VaultAssetDto, type VaultAssetsResponseDto$1 as VaultAssetsResponseDto, type VaultCompositionComponentDto$1 as VaultCompositionComponentDto, VaultCompositionComponentDtoInstrumentType$1 as VaultCompositionComponentDtoInstrumentType, VaultCompositionComponentDtoPositionKind$1 as VaultCompositionComponentDtoPositionKind, type VaultCompositionDto$1 as VaultCompositionDto, type VaultCompositionPositionRefDto$1 as VaultCompositionPositionRefDto, VaultCompositionPositionRefDtoType$1 as VaultCompositionPositionRefDtoType, type VaultCompositionsResponseDto$1 as VaultCompositionsResponseDto, type VaultDeploymentDto$1 as VaultDeploymentDto, type VaultDto$1 as VaultDto, type VaultRewardDto$1 as VaultRewardDto, type VaultTvlDto$1 as VaultTvlDto, type VaultTvlsResponseDto$1 as VaultTvlsResponseDto, type VaultsResponseDto$1 as VaultsResponseDto, type WithdrawalRequestDto$1 as WithdrawalRequestDto, WithdrawalRequestDtoStatus$1 as WithdrawalRequestDtoStatus, type WithdrawalRequestsResponseDto$1 as WithdrawalRequestsResponseDto, type WithdrawalSlAsDto$1 as WithdrawalSlAsDto, type WithdrawalVolumeDto$1 as WithdrawalVolumeDto, type WithdrawalVolumesResponseDto$1 as WithdrawalVolumesResponseDto, index_d$9 as amplify, index_d$7 as core }; } /** * This file was auto-generated by Fern from our API Definition. */ declare namespace Vaults { interface Options { environment?: Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: Supplier; apiKey: Supplier; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional headers to include in the request. */ headers?: Record; } } declare class Vaults { protected readonly _options: Vaults.Options; constructor(_options: Vaults.Options); /** * Returns depositable and withdrawable assets for vaults. Filter by vault address, chain ID, or asset capabilities. Defaults: pageSize=25 (max 100); omit pageToken for the first page. * * @param {Amplify.amplify.ListAssetsVaultsRequest} request * @param {Vaults.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * * @example * await client.amplify.vaults.listAssets({ * pageSize: 25, * filter: "withdrawable=true AND chainId=1 AND assetAddress=0xabcdef1234567890abcdef1234567890abcdef12" * }) */ listAssets(request?: ListAssetsVaultsRequest, requestOptions?: Vaults.RequestOptions): HttpResponsePromise; private __listAssets; /** * Returns historical and current APY data for vaults. APY is returned in percent (e.g. 4.25 for 4.25%). Time range: provide startTime+endTime, or lookback from now; if all omitted, lookback defaults to 30 days (2592000s). startTime/endTime take precedence over lookback when both are set. Defaults: interval=86400s (1 day); orderByTimestamp=asc; pageSize=25 (max 100); omit pageToken for the first page. * * @param {Amplify.amplify.GetApysVaultsRequest} request * @param {Vaults.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * * @example * await client.amplify.vaults.getApys({ * pageSize: 25, * startTime: "2026-01-01T00:00:00Z", * endTime: "2026-01-21T00:00:00Z", * interval: "86400s", * lookback: "604800s", * filter: "vaultAddress=0x1234567890abcdef1234567890abcdef12345678" * }) */ getApys(request?: GetApysVaultsRequest, requestOptions?: Vaults.RequestOptions): HttpResponsePromise; private __getApys; /** * Returns historical and current TVL data for vaults. Time range: provide startTime+endTime, or lookback from now; if all omitted, lookback defaults to 30 days (2592000s). startTime/endTime take precedence over lookback when both are set. Defaults: interval=86400s (1 day); orderByTimestamp=asc; pageSize=25 (max 100); omit pageToken for the first page. * * @param {Amplify.amplify.GetTvlsVaultsRequest} request * @param {Vaults.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * * @example * await client.amplify.vaults.getTvls({ * pageSize: 25, * startTime: "2026-01-01T00:00:00Z", * endTime: "2026-01-21T00:00:00Z", * interval: "86400s", * lookback: "604800s", * includeCurrent: false, * aggregate: false, * filter: "chainId=1 AND vaultAddress=0x1234567890abcdef1234567890abcdef12345678" * }) */ getTvls(request?: GetTvlsVaultsRequest, requestOptions?: Vaults.RequestOptions): HttpResponsePromise; private __getTvls; /** * Returns current asset composition for vaults, including component weights and values. Defaults: pageSize=25 (max 100); omit pageToken for the first page. * * @param {Amplify.amplify.ListCompositionsVaultsRequest} request * @param {Vaults.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * * @example * await client.amplify.vaults.listCompositions({ * pageSize: 25, * filter: "chainId=1 AND vaultAddress=0x1234567890abcdef1234567890abcdef12345678" * }) */ listCompositions(request?: ListCompositionsVaultsRequest, requestOptions?: Vaults.RequestOptions): HttpResponsePromise; private __listCompositions; /** * Returns current liquidity shortfalls, indicating assets where demand exceeds available liquidity. Defaults: pageSize=25 (max 100); omit pageToken for the first page. * * @param {Amplify.amplify.GetLiquidityShortfallsVaultsRequest} request * @param {Vaults.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * * @example * await client.amplify.vaults.getLiquidityShortfalls({ * pageSize: 25, * filter: "chainId=1 AND vaultAddress=0x1234567890abcdef1234567890abcdef12345678" * }) */ getLiquidityShortfalls(request?: GetLiquidityShortfallsVaultsRequest, requestOptions?: Vaults.RequestOptions): HttpResponsePromise; private __getLiquidityShortfalls; /** * Returns aggregated vault configuration grouped by vault name: chain deployments (contract addresses, KYT flag, deposit supply cap, minimum withdrawal order size, in-deprecation flag) with nested per-asset config (depositable/withdrawable flags, deposit/withdraw fees, withdrawal SLAs). * * @param {Amplify.amplify.ListVaultsRequest} request * @param {Vaults.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * * @example * await client.amplify.vaults.list({ * pageSize: 25, * filter: "chainId=1 AND inDeprecation=false" * }) */ list(request?: ListVaultsRequest, requestOptions?: Vaults.RequestOptions): HttpResponsePromise; private __list; /** * Returns up-to-the-block totalSupplyInBase, supplyCap, and percentageFilled per chain each vault is deployed on. totalSupplyInBase and supplyCap are both denominated in the vault base asset, so they are directly comparable. The filter parameter is optional; narrow with the vaultAddress and/or chainId flags, or omit it to return every live vault deployment. Defaults: pageSize=25 (max 100); omit pageToken for the first page. * * @param {Amplify.amplify.GetSupplyCapsVaultsRequest} request * @param {Vaults.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * @throws {@link Amplify.ServiceUnavailableError} * * @example * await client.amplify.vaults.getSupplyCaps({ * pageSize: 25, * filter: "vaultAddress=0xbbbb000000000000000000000000000000000001 AND chainId=84532" * }) */ getSupplyCaps(request?: GetSupplyCapsVaultsRequest, requestOptions?: Vaults.RequestOptions): HttpResponsePromise; private __getSupplyCaps; protected _getCustomAuthorizationHeaders(): Promise<{ "x-api-key": string; }>; } /** * This file was auto-generated by Fern from our API Definition. */ declare namespace Withdraw { interface Options { environment?: Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: Supplier; apiKey: Supplier; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional headers to include in the request. */ headers?: Record; } } declare class Withdraw { protected readonly _options: Withdraw.Options; constructor(_options: Withdraw.Options); /** * Returns withdrawal requests filtered by status, chain, asset, participants, and queue-processing metadata. Defaults: pageSize=25 (max 100); omit pageToken for the first page. * * @param {Amplify.amplify.ListRequestsWithdrawRequest} request * @param {Withdraw.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * * @example * await client.amplify.withdraw.listRequests({ * pageSize: 25, * filter: "status=PENDING AND chainId=1 AND wantAssetAddress=0x1234567890abcdef1234567890abcdef12345678 AND vaultAddress=0x1234567890abcdef1234567890abcdef12345678 AND userAddress=0x1234567890abcdef1234567890abcdef12345678 AND isMarkedForRefund=false" * }) */ listRequests(request?: ListRequestsWithdrawRequest, requestOptions?: Withdraw.RequestOptions): HttpResponsePromise; private __listRequests; /** * Returns historical withdrawal volume aggregated by time interval. startTime, endTime, and vaultAddress are required. Optionally filter by chainId and wantAssetAddress using the filter parameter. Defaults: orderByTimestamp=asc; pageSize=25 (max 100); omit pageToken for the first page. interval is optional. * * @param {Amplify.amplify.GetVolumesWithdrawRequest} request * @param {Withdraw.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * * @example * await client.amplify.withdraw.getVolumes({ * pageSize: 25, * startTime: "2026-01-01T00:00:00Z", * endTime: "2026-01-21T00:00:00Z", * vaultAddress: "0x1234567890abcdef1234567890abcdef12345678", * interval: "86400s", * filter: "chainId=1 AND wantAssetAddress=0xabcdef1234567890abcdef1234567890abcdef12" * }) */ getVolumes(request: GetVolumesWithdrawRequest, requestOptions?: Withdraw.RequestOptions): HttpResponsePromise; private __getVolumes; /** * Returns ABI-encoded calldata for submitting a vault withdrawal order. Identify the vault by its BoringVault contract address. The caller must have pre-approved the WithdrawQueue to spend vault shares. * * @param {Amplify.amplify.PrepareWithdrawRequest} request * @param {Withdraw.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * @throws {@link Amplify.NotFoundError} * * @example * await client.amplify.withdraw.prepare({ * vaultAddress: "0xbbbb000000000000000000000000000000000001", * wantAsset: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", * shareAmount: "1000000000000000000", * userAddress: "0x1234567890abcdef1234567890abcdef12345678", * intendedDepositor: "0x1234567890abcdef1234567890abcdef12345678", * receiver: "0x1234567890abcdef1234567890abcdef12345678", * refundReceiver: "0x1234567890abcdef1234567890abcdef12345678", * chainId: 1 * }) */ prepare(request: PrepareWithdrawRequest, requestOptions?: Withdraw.RequestOptions): HttpResponsePromise; private __prepare; /** * Returns ABI-encoded calldata for cancelling a pending vault withdrawal order on the WithdrawQueue contract. Identify the vault by its BoringVault contract address and the order by its index in the WithdrawQueue. Only the original order owner can successfully submit this transaction — ownership is enforced on-chain via msg.sender. * * To retrieve the required `orderIndex` parameter, call `GET /v2/amplify/withdrawalRequests` filtered by `userAddress` and `vaultAddress`; each returned item includes its `orderIndex`. * * @param {Amplify.amplify.CancelWithdrawRequest} request * @param {Withdraw.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * @throws {@link Amplify.NotFoundError} * * @example * await client.amplify.withdraw.cancel({ * vaultAddress: "0xbbbb000000000000000000000000000000000001", * orderIndex: "42", * chainId: 1 * }) */ cancel(request: CancelWithdrawRequest, requestOptions?: Withdraw.RequestOptions): HttpResponsePromise; private __cancel; /** * Calculates the withdrawal fee the user would be charged for a given offer amount and want asset. * * @param {Amplify.amplify.CalculateFeeWithdrawRequest} request * @param {Withdraw.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * @throws {@link Amplify.NotFoundError} * @throws {@link Amplify.ServiceUnavailableError} * * @example * await client.amplify.withdraw.calculateFee({ * offerAmount: "1000000000000000000", * wantAsset: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", * vaultAddress: "0xbbbb000000000000000000000000000000000001", * chainId: 1 * }) */ calculateFee(request: CalculateFeeWithdrawRequest, requestOptions?: Withdraw.RequestOptions): HttpResponsePromise; private __calculateFee; protected _getCustomAuthorizationHeaders(): Promise<{ "x-api-key": string; }>; } /** * This file was auto-generated by Fern from our API Definition. */ declare namespace Deposit { interface Options { environment?: Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: Supplier; apiKey: Supplier; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional headers to include in the request. */ headers?: Record; } } declare class Deposit { protected readonly _options: Deposit.Options; constructor(_options: Deposit.Options); /** * Returns ABI-encoded calldata for a vault deposit. Identify the vault by its BoringVault contract address. Provide a permit signature from the authorize step (GET /v2/core/authorization) to use the gas-free permit path; omit to use a standard approve+deposit flow. Note: permit signatures are bound to a specific spender, amount, nonce, and deadline, so replay is bounded — but because they are passed as query params they may appear in access logs, browser history, and proxy/CDN caches. Callers should use short `permitDeadline` values to minimize the exposure window. * * @param {Amplify.amplify.PrepareDepositRequest} request * @param {Deposit.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * @throws {@link Amplify.NotFoundError} * @throws {@link Amplify.ServiceUnavailableError} * * @example * await client.amplify.deposit.prepare({ * vaultAddress: "0xbbbb000000000000000000000000000000000001", * depositAsset: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", * depositAmount: "1000000", * userAddress: "0x1234567890abcdef1234567890abcdef12345678", * to: "0x1234567890abcdef1234567890abcdef12345678", * chainId: 1, * permitSignature: "0xabc...", * permitDeadline: 9999999999 * }) */ prepare(request: PrepareDepositRequest, requestOptions?: Deposit.RequestOptions): HttpResponsePromise; private __prepare; protected _getCustomAuthorizationHeaders(): Promise<{ "x-api-key": string; }>; } /** * This file was auto-generated by Fern from our API Definition. */ declare namespace Users { interface Options { environment?: Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: Supplier; apiKey: Supplier; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional headers to include in the request. */ headers?: Record; } } declare class Users { protected readonly _options: Users.Options; constructor(_options: Users.Options); /** * Returns a user's share balance and current position value (in the vault base asset) per chain each vault is deployed on. userAddress is required as a top-level query param. filter is optional; narrow with the vaultAddress and/or chainId flags, or omit it to return the user's position in every live vault deployment. Defaults: pageSize=25 (max 100); omit pageToken for the first page. * * @param {Amplify.amplify.GetPositionsUsersRequest} request * @param {Users.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * @throws {@link Amplify.ServiceUnavailableError} * * @example * await client.amplify.users.getPositions({ * pageSize: 25, * userAddress: "0xdEADdE9539A00Bbd9A8494f45EB38aEe89d7C001", * filter: "vaultAddress=0xbbbb000000000000000000000000000000000001 AND chainId=84532" * }) */ getPositions(request: GetPositionsUsersRequest, requestOptions?: Users.RequestOptions): HttpResponsePromise; private __getPositions; protected _getCustomAuthorizationHeaders(): Promise<{ "x-api-key": string; }>; } /** * This file was auto-generated by Fern from our API Definition. */ declare namespace SmartDeposits { interface Options { environment?: Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: Supplier; apiKey: Supplier; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional headers to include in the request. */ headers?: Record; } } declare class SmartDeposits { protected readonly _options: SmartDeposits.Options; constructor(_options: SmartDeposits.Options); /** * Returns the smart deposit address for a given user, vault, input token, and chain. * * @param {Amplify.amplify.SmartDepositAddressRequestDto} request * @param {SmartDeposits.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * @throws {@link Amplify.ForbiddenError} * * @example * await client.amplify.smartDeposits.getAddress({ * userDestinationAddress: "0x0000000000000000000000000000000000000123", * vaultAddress: "0x1234567890abcdef1234567890abcdef12345678", * inputToken: "0xf08a50178dfcde18524640ea6618a1f965821715", * chainId: 1 * }) */ getAddress(request: SmartDepositAddressRequestDto$1, requestOptions?: SmartDeposits.RequestOptions): HttpResponsePromise; private __getAddress; protected _getCustomAuthorizationHeaders(): Promise<{ "x-api-key": string; }>; } /** * This file was auto-generated by Fern from our API Definition. */ declare namespace AmplifyService { interface Options { environment?: Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: Supplier; apiKey: Supplier; } } declare class AmplifyService { protected readonly _options: AmplifyService.Options; protected _vaults: Vaults | undefined; protected _withdraw: Withdraw | undefined; protected _deposit: Deposit | undefined; protected _users: Users | undefined; protected _smartDeposits: SmartDeposits | undefined; constructor(_options: AmplifyService.Options); get vaults(): Vaults; get withdraw(): Withdraw; get deposit(): Deposit; get users(): Users; get smartDeposits(): SmartDeposits; } /** * This file was auto-generated by Fern from our API Definition. */ declare namespace Authorization { interface Options { environment?: Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: Supplier; apiKey: Supplier; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional headers to include in the request. */ headers?: Record; } } declare class Authorization { protected readonly _options: Authorization.Options; constructor(_options: Authorization.Options); /** * @param {Amplify.core.DetectAuthorizationRequest} request * @param {Authorization.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Amplify.BadRequestError} * @throws {@link Amplify.NotFoundError} * @throws {@link Amplify.ServiceUnavailableError} * * @example * await client.core.authorization.detect({ * vaultAddress: "0x...", * tokenAddress: "0x...", * amount: "1000000000000000000", * userAddress: "0x...", * chainId: 1 * }) */ detect(request: DetectAuthorizationRequest, requestOptions?: Authorization.RequestOptions): HttpResponsePromise; private __detect; protected _getCustomAuthorizationHeaders(): Promise<{ "x-api-key": string; }>; } /** * This file was auto-generated by Fern from our API Definition. */ declare namespace Core { interface Options { environment?: Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: Supplier; apiKey: Supplier; } } declare class Core { protected readonly _options: Core.Options; protected _authorization: Authorization | undefined; constructor(_options: Core.Options); get authorization(): Authorization; } /** * This file was auto-generated by Fern from our API Definition. */ declare namespace AmplifyClient { interface Options { environment?: Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: Supplier; apiKey: Supplier; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional headers to include in the request. */ headers?: Record; } } declare class AmplifyClient { protected readonly _options: AmplifyClient.Options; protected _amplify: AmplifyService | undefined; protected _core: Core | undefined; constructor(_options: AmplifyClient.Options); get amplify(): AmplifyService; get core(): Core; } /** * This file was auto-generated by Fern from our API Definition. */ declare const GetApysVaultsRequestOrderByTimestamp: Schema; declare namespace GetApysVaultsRequestOrderByTimestamp { type Raw = "asc" | "desc"; } /** * This file was auto-generated by Fern from our API Definition. */ declare const GetTvlsVaultsRequestOrderByTimestamp: Schema; declare namespace GetTvlsVaultsRequestOrderByTimestamp { type Raw = "asc" | "desc"; } declare const index_d$5_GetApysVaultsRequestOrderByTimestamp: typeof GetApysVaultsRequestOrderByTimestamp; declare const index_d$5_GetTvlsVaultsRequestOrderByTimestamp: typeof GetTvlsVaultsRequestOrderByTimestamp; declare namespace index_d$5 { export { index_d$5_GetApysVaultsRequestOrderByTimestamp as GetApysVaultsRequestOrderByTimestamp, index_d$5_GetTvlsVaultsRequestOrderByTimestamp as GetTvlsVaultsRequestOrderByTimestamp }; } /** * This file was auto-generated by Fern from our API Definition. */ declare const GetVolumesWithdrawRequestOrderByTimestamp: Schema; declare namespace GetVolumesWithdrawRequestOrderByTimestamp { type Raw = "asc" | "desc"; } /** * This file was auto-generated by Fern from our API Definition. */ declare const PrepareWithdrawRequestResponseFormat: Schema; declare namespace PrepareWithdrawRequestResponseFormat { type Raw = "encoded" | "full" | "structured"; } /** * This file was auto-generated by Fern from our API Definition. */ declare const CancelWithdrawRequestResponseFormat: Schema; declare namespace CancelWithdrawRequestResponseFormat { type Raw = "encoded" | "full" | "structured"; } declare const index_d$4_CancelWithdrawRequestResponseFormat: typeof CancelWithdrawRequestResponseFormat; declare const index_d$4_GetVolumesWithdrawRequestOrderByTimestamp: typeof GetVolumesWithdrawRequestOrderByTimestamp; declare const index_d$4_PrepareWithdrawRequestResponseFormat: typeof PrepareWithdrawRequestResponseFormat; declare namespace index_d$4 { export { index_d$4_CancelWithdrawRequestResponseFormat as CancelWithdrawRequestResponseFormat, index_d$4_GetVolumesWithdrawRequestOrderByTimestamp as GetVolumesWithdrawRequestOrderByTimestamp, index_d$4_PrepareWithdrawRequestResponseFormat as PrepareWithdrawRequestResponseFormat }; } /** * This file was auto-generated by Fern from our API Definition. */ declare const PrepareDepositRequestResponseFormat: Schema; declare namespace PrepareDepositRequestResponseFormat { type Raw = "encoded" | "full" | "structured"; } declare const index_d$3_PrepareDepositRequestResponseFormat: typeof PrepareDepositRequestResponseFormat; declare namespace index_d$3 { export { index_d$3_PrepareDepositRequestResponseFormat as PrepareDepositRequestResponseFormat }; } /** * This file was auto-generated by Fern from our API Definition. */ declare const SmartDepositAddressRequestDto: Schema; declare namespace SmartDepositAddressRequestDto { interface Raw { userDestinationAddress: string; vaultAddress: string; inputToken: string; chainId: number; } } declare const index_d$2_SmartDepositAddressRequestDto: typeof SmartDepositAddressRequestDto; declare namespace index_d$2 { export { index_d$2_SmartDepositAddressRequestDto as SmartDepositAddressRequestDto }; } declare const index_d$1_CancelWithdrawRequestResponseFormat: typeof CancelWithdrawRequestResponseFormat; declare const index_d$1_GetApysVaultsRequestOrderByTimestamp: typeof GetApysVaultsRequestOrderByTimestamp; declare const index_d$1_GetTvlsVaultsRequestOrderByTimestamp: typeof GetTvlsVaultsRequestOrderByTimestamp; declare const index_d$1_GetVolumesWithdrawRequestOrderByTimestamp: typeof GetVolumesWithdrawRequestOrderByTimestamp; declare const index_d$1_PrepareDepositRequestResponseFormat: typeof PrepareDepositRequestResponseFormat; declare const index_d$1_PrepareWithdrawRequestResponseFormat: typeof PrepareWithdrawRequestResponseFormat; declare const index_d$1_SmartDepositAddressRequestDto: typeof SmartDepositAddressRequestDto; declare namespace index_d$1 { export { index_d$1_CancelWithdrawRequestResponseFormat as CancelWithdrawRequestResponseFormat, index_d$1_GetApysVaultsRequestOrderByTimestamp as GetApysVaultsRequestOrderByTimestamp, index_d$1_GetTvlsVaultsRequestOrderByTimestamp as GetTvlsVaultsRequestOrderByTimestamp, index_d$1_GetVolumesWithdrawRequestOrderByTimestamp as GetVolumesWithdrawRequestOrderByTimestamp, index_d$1_PrepareDepositRequestResponseFormat as PrepareDepositRequestResponseFormat, index_d$1_PrepareWithdrawRequestResponseFormat as PrepareWithdrawRequestResponseFormat, index_d$1_SmartDepositAddressRequestDto as SmartDepositAddressRequestDto, index_d$3 as deposit, index_d$2 as smartDeposits, index_d$5 as vaults, index_d$4 as withdraw }; } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultAssetDto: ObjectSchema; declare namespace VaultAssetDto { interface Raw { vaultAddress: string; chainId: number; assetAddress: string; depositable: boolean; withdrawable: boolean; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultAssetsResponseDto: ObjectSchema; declare namespace VaultAssetsResponseDto { interface Raw { vaultAssets: VaultAssetDto.Raw[]; nextPageToken: string | null; tokenMetadata: Record; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const FieldViolationDto: ObjectSchema; declare namespace FieldViolationDto { interface Raw { field: string; description: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const ErrorDetailDto: ObjectSchema; declare namespace ErrorDetailDto { interface Raw { "@type": string; fieldViolations?: FieldViolationDto.Raw[] | null; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const ErrorObjectDtoStatus: Schema; declare namespace ErrorObjectDtoStatus { type Raw = "UNKNOWN" | "INVALID_ARGUMENT" | "NOT_FOUND" | "PERMISSION_DENIED" | "UNAUTHENTICATED" | "RESOURCE_EXHAUSTED" | "INTERNAL" | "METHOD_NOT_ALLOWED"; } /** * This file was auto-generated by Fern from our API Definition. */ declare const ErrorObjectDto: ObjectSchema; declare namespace ErrorObjectDto { interface Raw { code: number; message: string; status: ErrorObjectDtoStatus.Raw; details?: ErrorDetailDto.Raw[] | null; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const ErrorResponseDto: ObjectSchema; declare namespace ErrorResponseDto { interface Raw { error: ErrorObjectDto.Raw; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const WithdrawalRequestDtoStatus: Schema; declare namespace WithdrawalRequestDtoStatus { type Raw = "PENDING" | "PENDING_REFUND" | "COMPLETE" | "REFUNDED"; } /** * This file was auto-generated by Fern from our API Definition. */ declare const WithdrawalRequestDto: ObjectSchema; declare namespace WithdrawalRequestDto { interface Raw { id: string; vaultAddress: string; chainId: number; wantAssetAddress: string; status: WithdrawalRequestDtoStatus.Raw; createdAt: string; createdTxHash: string; updatedTxHash: string; userAddress: string; receiverAddress: string; refundReceiverAddress: string; orderAmount: string; orderIndex: string; isSubmittedViaSignature: boolean; isForceProcessed: boolean; isMarkedForRefund: boolean; isMarkedForRefundByUser: boolean; didOrderFailTransfer: boolean; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const WithdrawalRequestsResponseDto: ObjectSchema; declare namespace WithdrawalRequestsResponseDto { interface Raw { withdrawalRequests: WithdrawalRequestDto.Raw[]; nextPageToken: string | null; tokenMetadata: Record; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultApyDto: ObjectSchema; declare namespace VaultApyDto { interface Raw { vaultAddress: string; timestamp: string; interval: string; apy: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultApysResponseDto: ObjectSchema; declare namespace VaultApysResponseDto { interface Raw { vaultApys: VaultApyDto.Raw[]; nextPageToken: string | null; tokenMetadata: Record; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultTvlDto: ObjectSchema; declare namespace VaultTvlDto { interface Raw { vaultAddress: string; chainId: number; timestamp: string; interval: string; tvl: string; tvlAsset: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultTvlsResponseDto: ObjectSchema; declare namespace VaultTvlsResponseDto { interface Raw { vaultTvls: VaultTvlDto.Raw[]; nextPageToken: string | null; tokenMetadata: Record; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultCompositionPositionRefDtoType: Schema; declare namespace VaultCompositionPositionRefDtoType { type Raw = "ERC20" | "NATIVE" | "ERC4626_VAULT" | "ERC721" | "ERC1155" | "UNI_V2_PAIR" | "UNI_V3_POSITION" | "CURVE_POOL" | "BALANCER_POOL" | "AAVE_V3_RESERVE" | "COMPOUND_V2_CTOKEN" | "COMPOUND_V3_MARKET" | "MORPHO_V1_MARKET" | "MORPHO_V1_VAULT" | "MORPHO_V2_MARKET" | "MORPHO_V2_VAULT"; } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultCompositionPositionRefDto: ObjectSchema; declare namespace VaultCompositionPositionRefDto { interface Raw { type: VaultCompositionPositionRefDtoType.Raw; id: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultCompositionComponentDtoPositionKind: Schema; declare namespace VaultCompositionComponentDtoPositionKind { type Raw = "SPOT" | "SUPPLY" | "COLLATERAL" | "DEBT" | "STAKED" | "PENDING"; } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultCompositionComponentDtoInstrumentType: Schema; declare namespace VaultCompositionComponentDtoInstrumentType { type Raw = "ERC20" | "NATIVE" | "ERC4626_VAULT" | "ERC721" | "ERC1155" | "UNI_V2_PAIR" | "UNI_V3_POSITION" | "CURVE_POOL" | "BALANCER_POOL" | "AAVE_V3_RESERVE" | "COMPOUND_V2_CTOKEN" | "COMPOUND_V3_MARKET" | "MORPHO_V1_MARKET" | "MORPHO_V1_VAULT" | "MORPHO_V2_MARKET" | "MORPHO_V2_VAULT"; } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultCompositionComponentDto: ObjectSchema; declare namespace VaultCompositionComponentDto { interface Raw { assetAddress: string; amount: string; value: string; valueAsset: string; weight: string; positionKind: VaultCompositionComponentDtoPositionKind.Raw; instrumentType: VaultCompositionComponentDtoInstrumentType.Raw; positionRef: VaultCompositionPositionRefDto.Raw; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultCompositionDto: ObjectSchema; declare namespace VaultCompositionDto { interface Raw { vaultAddress: string; chainId: number; timestamp: string; components: VaultCompositionComponentDto.Raw[]; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultCompositionsResponseDto: ObjectSchema; declare namespace VaultCompositionsResponseDto { interface Raw { vaultCompositions: VaultCompositionDto.Raw[]; nextPageToken: string | null; tokenMetadata: Record; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const WithdrawalVolumeDto: ObjectSchema; declare namespace WithdrawalVolumeDto { interface Raw { vaultAddress: string; chainId: number; startTime: string; endTime: string; interval: string; volumeUsd: string; volumeAsset: string; wantAssetAddress: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const WithdrawalVolumesResponseDto: ObjectSchema; declare namespace WithdrawalVolumesResponseDto { interface Raw { withdrawalVolumes: WithdrawalVolumeDto.Raw[]; nextPageToken: string | null; tokenMetadata: Record; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const LiquidityShortfallDto: ObjectSchema; declare namespace LiquidityShortfallDto { interface Raw { vaultAddress: string; chainId: number; assetAddress: string; shortfallAmount: string; withdrawDemand: string; asOfTime: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const LiquidityShortfallsResponseDto: ObjectSchema; declare namespace LiquidityShortfallsResponseDto { interface Raw { liquidityShortfalls: LiquidityShortfallDto.Raw[]; nextPageToken: string | null; tokenMetadata: Record; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const TokenAmountWithCapDto: ObjectSchema; declare namespace TokenAmountWithCapDto { interface Raw { raw: string; formatted: string; decimals: number; hasCap: boolean; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const TokenAmountDto: ObjectSchema; declare namespace TokenAmountDto { interface Raw { raw: string; formatted: string; decimals: number; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const FeeDto: ObjectSchema; declare namespace FeeDto { interface Raw { bps: number; percentage: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const WithdrawalSlAsDto: ObjectSchema; declare namespace WithdrawalSlAsDto { interface Raw { expectedDelay: string; expiryBuffer: string; internalWithdrawalQueueDelaySLA: string; externalWithdrawalQueueDelaySLA: string; internalAccountantRateUpdateDelaySLA: string; externalAccountantRateUpdateSLA: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultAssetConfigDto: ObjectSchema; declare namespace VaultAssetConfigDto { interface Raw { assetAddress: string; depositable: boolean; withdrawable: boolean; depositFees: FeeDto.Raw; withdrawFees: FeeDto.Raw; withdrawalSLAs?: (WithdrawalSlAsDto.Raw | null) | null; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultDeploymentDto: ObjectSchema; declare namespace VaultDeploymentDto { interface Raw { chainId: number; boringVaultAddress: string; depositorAddress: string; withdrawQueueAddress: string; requiresKyt: boolean; baseTokenAddress?: (string | null) | null; accountantAddress?: (string | null) | null; tellerAddress?: (string | null) | null; depositFeeAddress?: (string | null) | null; withdrawFeeAddress?: (string | null) | null; inDeprecation: boolean; depositSupplyCap?: (TokenAmountWithCapDto.Raw | null) | null; minimumWithdrawalOrderSize?: (TokenAmountDto.Raw | null) | null; assets: VaultAssetConfigDto.Raw[]; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultDto: ObjectSchema; declare namespace VaultDto { interface Raw { name: string; deployments: VaultDeploymentDto.Raw[]; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultsResponseDto: ObjectSchema; declare namespace VaultsResponseDto { interface Raw { vaults: VaultDto.Raw[]; nextPageToken: string | null; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const PreparedTransactionDto: ObjectSchema; declare namespace PreparedTransactionDto { interface Raw { to: string; data?: string | null; value: string; abi?: string[] | null; functionName?: string | null; args?: string[] | null; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const PrepareDepositResponseDto: ObjectSchema; declare namespace PrepareDepositResponseDto { interface Raw { transaction: PreparedTransactionDto.Raw; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const PrepareWithdrawResponseDto: ObjectSchema; declare namespace PrepareWithdrawResponseDto { interface Raw { transaction: PreparedTransactionDto.Raw; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const PrepareCancelWithdrawResponseDto: ObjectSchema; declare namespace PrepareCancelWithdrawResponseDto { interface Raw { transaction: PreparedTransactionDto.Raw; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const CalculateWithdrawalFeeResponseDto: ObjectSchema; declare namespace CalculateWithdrawalFeeResponseDto { interface Raw { feeAmount: string; offerFeePercentage: FeeDto.Raw; flatFee: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const SupplyCapEntryDto: ObjectSchema; declare namespace SupplyCapEntryDto { interface Raw { vaultAddress: string; chainId: number; totalSupplyInBase: string; supplyCap: string | null; percentageFilled: string | null; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const SupplyCapsResponseDto: ObjectSchema; declare namespace SupplyCapsResponseDto { interface Raw { supplyCaps: SupplyCapEntryDto.Raw[]; nextPageToken: string | null; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const UserPositionEntryDto: ObjectSchema; declare namespace UserPositionEntryDto { interface Raw { vaultAddress: string; chainId: number; shareBalance: string; positionValueInBase: string; baseAssetAddress: string; exchangeRateToBase: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const UserPositionsResponseDto: ObjectSchema; declare namespace UserPositionsResponseDto { interface Raw { userPositions: UserPositionEntryDto.Raw[]; nextPageToken: string | null; tokenMetadata: Record; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const SmartDepositAddressResponseDto: ObjectSchema; declare namespace SmartDepositAddressResponseDto { interface Raw { smartDepositAddress: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const KytRequestDto: ObjectSchema; declare namespace KytRequestDto { interface Raw { to: string; from: string; chain: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const KytAttestationDto: ObjectSchema; declare namespace KytAttestationDto { interface Raw { uuid: string; expiration: number; attester: string; signature: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const KytResponseDto: ObjectSchema; declare namespace KytResponseDto { interface Raw { attestation: KytAttestationDto.Raw; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const AddressBookEntryDto: ObjectSchema; declare namespace AddressBookEntryDto { interface Raw { id: string; chainId: number; address: string; name: string; createdAt: string; updatedAt: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const AddressBookEntriesResponseDto: ObjectSchema; declare namespace AddressBookEntriesResponseDto { interface Raw { addressBookEntries: AddressBookEntryDto.Raw[]; nextPageToken: Record | null; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const PermitDomainDto: ObjectSchema; declare namespace PermitDomainDto { interface Raw { name: string; version: string; chainId: number; verifyingContract: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const PermitValueDto: ObjectSchema; declare namespace PermitValueDto { interface Raw { owner: string; spender: string; value: string; nonce: string; deadline: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const PermitTypedDataResponseDto: ObjectSchema; declare namespace PermitTypedDataResponseDto { interface Raw { domain: PermitDomainDto.Raw; types: Record; value: PermitValueDto.Raw; deadline: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const ApprovalTransactionDto: ObjectSchema; declare namespace ApprovalTransactionDto { interface Raw { encoded: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const AuthorizationResponseDtoMethod: Schema; declare namespace AuthorizationResponseDtoMethod { type Raw = "permit" | "approval" | "already_approved"; } /** * This file was auto-generated by Fern from our API Definition. */ declare const AuthorizationResponseDto: ObjectSchema; declare namespace AuthorizationResponseDto { interface Raw { method: AuthorizationResponseDtoMethod.Raw; permitData?: PermitTypedDataResponseDto.Raw | null; approvalTransaction?: ApprovalTransactionDto.Raw | null; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const VaultRewardDto: ObjectSchema; declare namespace VaultRewardDto { interface Raw { id: string; txHash: string; decimals: number; createdAt: string; chainId: number; usdgBalanceBase?: string | null; realizedYield: string; cumulativeYield: string; realizedApy: string; } } /** * This file was auto-generated by Fern from our API Definition. */ declare const ListVaultRewardsResponseDto: ObjectSchema; declare namespace ListVaultRewardsResponseDto { interface Raw { vaultRewards: VaultRewardDto.Raw[]; nextPageToken?: string | null; } } declare const index_d_AddressBookEntriesResponseDto: typeof AddressBookEntriesResponseDto; declare const index_d_AddressBookEntryDto: typeof AddressBookEntryDto; declare const index_d_ApprovalTransactionDto: typeof ApprovalTransactionDto; declare const index_d_AuthorizationResponseDto: typeof AuthorizationResponseDto; declare const index_d_AuthorizationResponseDtoMethod: typeof AuthorizationResponseDtoMethod; declare const index_d_CalculateWithdrawalFeeResponseDto: typeof CalculateWithdrawalFeeResponseDto; declare const index_d_ErrorDetailDto: typeof ErrorDetailDto; declare const index_d_ErrorObjectDto: typeof ErrorObjectDto; declare const index_d_ErrorObjectDtoStatus: typeof ErrorObjectDtoStatus; declare const index_d_ErrorResponseDto: typeof ErrorResponseDto; declare const index_d_FeeDto: typeof FeeDto; declare const index_d_FieldViolationDto: typeof FieldViolationDto; declare const index_d_KytAttestationDto: typeof KytAttestationDto; declare const index_d_KytRequestDto: typeof KytRequestDto; declare const index_d_KytResponseDto: typeof KytResponseDto; declare const index_d_LiquidityShortfallDto: typeof LiquidityShortfallDto; declare const index_d_LiquidityShortfallsResponseDto: typeof LiquidityShortfallsResponseDto; declare const index_d_ListVaultRewardsResponseDto: typeof ListVaultRewardsResponseDto; declare const index_d_PermitDomainDto: typeof PermitDomainDto; declare const index_d_PermitTypedDataResponseDto: typeof PermitTypedDataResponseDto; declare const index_d_PermitValueDto: typeof PermitValueDto; declare const index_d_PrepareCancelWithdrawResponseDto: typeof PrepareCancelWithdrawResponseDto; declare const index_d_PrepareDepositResponseDto: typeof PrepareDepositResponseDto; declare const index_d_PrepareWithdrawResponseDto: typeof PrepareWithdrawResponseDto; declare const index_d_PreparedTransactionDto: typeof PreparedTransactionDto; declare const index_d_SmartDepositAddressResponseDto: typeof SmartDepositAddressResponseDto; declare const index_d_SupplyCapEntryDto: typeof SupplyCapEntryDto; declare const index_d_SupplyCapsResponseDto: typeof SupplyCapsResponseDto; declare const index_d_TokenAmountDto: typeof TokenAmountDto; declare const index_d_TokenAmountWithCapDto: typeof TokenAmountWithCapDto; declare const index_d_UserPositionEntryDto: typeof UserPositionEntryDto; declare const index_d_UserPositionsResponseDto: typeof UserPositionsResponseDto; declare const index_d_VaultApyDto: typeof VaultApyDto; declare const index_d_VaultApysResponseDto: typeof VaultApysResponseDto; declare const index_d_VaultAssetConfigDto: typeof VaultAssetConfigDto; declare const index_d_VaultAssetDto: typeof VaultAssetDto; declare const index_d_VaultAssetsResponseDto: typeof VaultAssetsResponseDto; declare const index_d_VaultCompositionComponentDto: typeof VaultCompositionComponentDto; declare const index_d_VaultCompositionComponentDtoInstrumentType: typeof VaultCompositionComponentDtoInstrumentType; declare const index_d_VaultCompositionComponentDtoPositionKind: typeof VaultCompositionComponentDtoPositionKind; declare const index_d_VaultCompositionDto: typeof VaultCompositionDto; declare const index_d_VaultCompositionPositionRefDto: typeof VaultCompositionPositionRefDto; declare const index_d_VaultCompositionPositionRefDtoType: typeof VaultCompositionPositionRefDtoType; declare const index_d_VaultCompositionsResponseDto: typeof VaultCompositionsResponseDto; declare const index_d_VaultDeploymentDto: typeof VaultDeploymentDto; declare const index_d_VaultDto: typeof VaultDto; declare const index_d_VaultRewardDto: typeof VaultRewardDto; declare const index_d_VaultTvlDto: typeof VaultTvlDto; declare const index_d_VaultTvlsResponseDto: typeof VaultTvlsResponseDto; declare const index_d_VaultsResponseDto: typeof VaultsResponseDto; declare const index_d_WithdrawalRequestDto: typeof WithdrawalRequestDto; declare const index_d_WithdrawalRequestDtoStatus: typeof WithdrawalRequestDtoStatus; declare const index_d_WithdrawalRequestsResponseDto: typeof WithdrawalRequestsResponseDto; declare const index_d_WithdrawalSlAsDto: typeof WithdrawalSlAsDto; declare const index_d_WithdrawalVolumeDto: typeof WithdrawalVolumeDto; declare const index_d_WithdrawalVolumesResponseDto: typeof WithdrawalVolumesResponseDto; declare namespace index_d { export { index_d_AddressBookEntriesResponseDto as AddressBookEntriesResponseDto, index_d_AddressBookEntryDto as AddressBookEntryDto, index_d_ApprovalTransactionDto as ApprovalTransactionDto, index_d_AuthorizationResponseDto as AuthorizationResponseDto, index_d_AuthorizationResponseDtoMethod as AuthorizationResponseDtoMethod, index_d_CalculateWithdrawalFeeResponseDto as CalculateWithdrawalFeeResponseDto, index_d_ErrorDetailDto as ErrorDetailDto, index_d_ErrorObjectDto as ErrorObjectDto, index_d_ErrorObjectDtoStatus as ErrorObjectDtoStatus, index_d_ErrorResponseDto as ErrorResponseDto, index_d_FeeDto as FeeDto, index_d_FieldViolationDto as FieldViolationDto, index_d_KytAttestationDto as KytAttestationDto, index_d_KytRequestDto as KytRequestDto, index_d_KytResponseDto as KytResponseDto, index_d_LiquidityShortfallDto as LiquidityShortfallDto, index_d_LiquidityShortfallsResponseDto as LiquidityShortfallsResponseDto, index_d_ListVaultRewardsResponseDto as ListVaultRewardsResponseDto, index_d_PermitDomainDto as PermitDomainDto, index_d_PermitTypedDataResponseDto as PermitTypedDataResponseDto, index_d_PermitValueDto as PermitValueDto, index_d_PrepareCancelWithdrawResponseDto as PrepareCancelWithdrawResponseDto, index_d_PrepareDepositResponseDto as PrepareDepositResponseDto, index_d_PrepareWithdrawResponseDto as PrepareWithdrawResponseDto, index_d_PreparedTransactionDto as PreparedTransactionDto, index_d_SmartDepositAddressResponseDto as SmartDepositAddressResponseDto, index_d_SupplyCapEntryDto as SupplyCapEntryDto, index_d_SupplyCapsResponseDto as SupplyCapsResponseDto, index_d_TokenAmountDto as TokenAmountDto, index_d_TokenAmountWithCapDto as TokenAmountWithCapDto, index_d_UserPositionEntryDto as UserPositionEntryDto, index_d_UserPositionsResponseDto as UserPositionsResponseDto, index_d_VaultApyDto as VaultApyDto, index_d_VaultApysResponseDto as VaultApysResponseDto, index_d_VaultAssetConfigDto as VaultAssetConfigDto, index_d_VaultAssetDto as VaultAssetDto, index_d_VaultAssetsResponseDto as VaultAssetsResponseDto, index_d_VaultCompositionComponentDto as VaultCompositionComponentDto, index_d_VaultCompositionComponentDtoInstrumentType as VaultCompositionComponentDtoInstrumentType, index_d_VaultCompositionComponentDtoPositionKind as VaultCompositionComponentDtoPositionKind, index_d_VaultCompositionDto as VaultCompositionDto, index_d_VaultCompositionPositionRefDto as VaultCompositionPositionRefDto, index_d_VaultCompositionPositionRefDtoType as VaultCompositionPositionRefDtoType, index_d_VaultCompositionsResponseDto as VaultCompositionsResponseDto, index_d_VaultDeploymentDto as VaultDeploymentDto, index_d_VaultDto as VaultDto, index_d_VaultRewardDto as VaultRewardDto, index_d_VaultTvlDto as VaultTvlDto, index_d_VaultTvlsResponseDto as VaultTvlsResponseDto, index_d_VaultsResponseDto as VaultsResponseDto, index_d_WithdrawalRequestDto as WithdrawalRequestDto, index_d_WithdrawalRequestDtoStatus as WithdrawalRequestDtoStatus, index_d_WithdrawalRequestsResponseDto as WithdrawalRequestsResponseDto, index_d_WithdrawalSlAsDto as WithdrawalSlAsDto, index_d_WithdrawalVolumeDto as WithdrawalVolumeDto, index_d_WithdrawalVolumesResponseDto as WithdrawalVolumesResponseDto, index_d$1 as amplify }; } export { index_d$6 as Amplify, AmplifyClient, AmplifyError, AmplifyTimeoutError, index_d as serialization };