tapimo 0.23.1 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/dist/Schema.d.ts +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,10 +7,6 @@ clients that need a high-level surface for exploring the Tempo chain.
|
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
9
9
|
|
|
10
|
-
Call the hosted Tempo API directly, or through the typed client below.
|
|
11
|
-
|
|
12
|
-
### Hosted
|
|
13
|
-
|
|
14
10
|
Call the hosted Tempo API directly at `https://api.tempo.xyz`:
|
|
15
11
|
|
|
16
12
|
```sh
|
|
@@ -33,6 +29,12 @@ both forms return the same response shapes. The `/pairs`, `/events`, and
|
|
|
33
29
|
|
|
34
30
|
## Typed Client
|
|
35
31
|
|
|
32
|
+
Install the package:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
pnpm i tapimo
|
|
36
|
+
```
|
|
37
|
+
|
|
36
38
|
Use the typed client for endpoint autocomplete and API-key/header configuration:
|
|
37
39
|
|
|
38
40
|
```ts twoslash
|
package/dist/Schema.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type Schema = {
|
|
|
15
15
|
"/v1/earn/rewards/eligibility": { $post: { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "payload_too_large"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 413; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "body_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "reward_eligibility_limit_reached"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 409; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { association: { chainId: number; firstRegisteredAt: string; id: string; latestRegisteredAt: string; registrationOrder: string; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; created: boolean; }; outputFormat: "json"; status: 200; }; $get: { input: { query: { chainId: string | string[]; vaultAddress: string | string[]; cursor?: string | string[]; limit?: string | string[]; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { query: { chainId: string | string[]; vaultAddress: string | string[]; cursor?: string | string[]; limit?: string | string[]; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { query: { chainId: string | string[]; vaultAddress: string | string[]; cursor?: string | string[]; limit?: string | string[]; }; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { query: { chainId: string | string[]; vaultAddress: string | string[]; cursor?: string | string[]; limit?: string | string[]; }; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { query: { chainId: string | string[]; vaultAddress: string | string[]; cursor?: string | string[]; limit?: string | string[]; }; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { query: { chainId: string | string[]; vaultAddress: string | string[]; cursor?: string | string[]; limit?: string | string[]; }; }; output: { chainId: number; data: `0x${string}`[]; nextCursor: string | null; vaultAddress: `0x${string}`; }; outputFormat: "json"; status: 200; }; } & { $post: { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "payload_too_large"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 413; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "body_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { error: { code: "reward_eligibility_limit_reached"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 409; } | { input: { json: { chainId: unknown; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; }; output: { association: { chainId: number; firstRegisteredAt: string; id: string; latestRegisteredAt: string; registrationOrder: string; vaultAddress: `0x${string}`; walletAddress: `0x${string}`; transactionHash?: `0x${string}` | undefined; }; created: boolean; }; outputFormat: "json"; status: 200; }; $get: { input: { query: { chainId: string | string[]; vaultAddress: string | string[]; cursor?: string | string[]; limit?: string | string[]; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { query: { chainId: string | string[]; vaultAddress: string | string[]; cursor?: string | string[]; limit?: string | string[]; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { query: { chainId: string | string[]; vaultAddress: string | string[]; cursor?: string | string[]; limit?: string | string[]; }; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { query: { chainId: string | string[]; vaultAddress: string | string[]; cursor?: string | string[]; limit?: string | string[]; }; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { query: { chainId: string | string[]; vaultAddress: string | string[]; cursor?: string | string[]; limit?: string | string[]; }; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { query: { chainId: string | string[]; vaultAddress: string | string[]; cursor?: string | string[]; limit?: string | string[]; }; }; output: { chainId: number; data: `0x${string}`[]; nextCursor: string | null; vaultAddress: `0x${string}`; }; outputFormat: "json"; status: 200; }; };
|
|
16
16
|
"/v1/earn/addresses/:address/positions": { $get: { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: null; outputFormat: "body"; status: 402; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "positions_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { data: { assetAmount: { amount: string; currency: string; decimals: number; formatted: string; }; assetToken: { symbol: string; currency: string; decimals: number; address: `0x${string}`; id: string; name: string; verified: boolean; logoUri?: string | undefined; }; chainId: number; id: `0x${string}`; shareAmount: { amount: string; currency: string; decimals: number; formatted: string; }; shareToken: { symbol: string; currency: string; decimals: number; address: `0x${string}`; id: string; name: string; verified: boolean; logoUri?: string | undefined; }; valueToken: { symbol: string; currency: string; decimals: number; address: `0x${string}`; id: string; name: string; verified: boolean; logoUri?: string | undefined; }; vaultAddress: `0x${string}`; verified: boolean; lifetimeCashFlows?: { status: "complete"; totalDeposited: string; totalWithdrawn: string; } | { status: "incomplete_history"; } | undefined; valuation?: { amount: string; currency: string; } | null | undefined; }[]; nextCursor: string | null; meta?: { valuation?: { asOf: string; basis: "nominal"; source: string; } | undefined; } | undefined; }; outputFormat: "json"; status: 200; }; } & { $get: { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: null; outputFormat: "body"; status: 402; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { error: { code: "positions_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; }; } & { query?: { chainId?: string | string[]; cursor?: string | string[]; include?: string | string[]; limit?: string | string[]; 'valuation.currency'?: string | string[]; verified?: string | string[]; } | undefined; }; output: { data: { assetAmount: { amount: string; currency: string; decimals: number; formatted: string; }; assetToken: { symbol: string; currency: string; decimals: number; address: `0x${string}`; id: string; name: string; verified: boolean; logoUri?: string | undefined; }; chainId: number; id: `0x${string}`; shareAmount: { amount: string; currency: string; decimals: number; formatted: string; }; shareToken: { symbol: string; currency: string; decimals: number; address: `0x${string}`; id: string; name: string; verified: boolean; logoUri?: string | undefined; }; valueToken: { symbol: string; currency: string; decimals: number; address: `0x${string}`; id: string; name: string; verified: boolean; logoUri?: string | undefined; }; vaultAddress: `0x${string}`; verified: boolean; lifetimeCashFlows?: { status: "complete"; totalDeposited: string; totalWithdrawn: string; } | { status: "incomplete_history"; } | undefined; valuation?: { amount: string; currency: string; } | null | undefined; }[]; nextCursor: string | null; meta?: { valuation?: { asOf: string; basis: "nominal"; source: string; } | undefined; } | undefined; }; outputFormat: "json"; status: 200; }; };
|
|
17
17
|
"/v1/earn/vaults/:vaultId/share-prices": { $get: { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: null; outputFormat: "body"; status: 402; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "vault_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "earn_vault_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { data: { sharePrice: { amount: string; currency: string; decimals: number; formatted: string; }; timestamp: string; }[]; }; outputFormat: "json"; status: 200; }; } & { $get: { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: null; outputFormat: "body"; status: 402; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "vault_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { error: { code: "earn_vault_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { vaultId: `0x${string}`; }; } & { query: { from: string | string[]; to: string | string[]; chainId?: string | string[]; interval?: string | string[]; }; }; output: { data: { sharePrice: { amount: string; currency: string; decimals: number; formatted: string; }; timestamp: string; }[]; }; outputFormat: "json"; status: 200; }; };
|
|
18
|
-
"/v1/earn/vaults/:vaultId/positions/:address": { $get: { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: null; outputFormat: "body"; status: 402; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "earn_vault_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "position_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { account: `0x${string}`; assetAllowance: string; assetBalance: string; assetToken: `0x${string}`; chainId: number; id: `0x${string}`; shareAllowance: string; shareBalance: string; shareToken: `0x${string}`; value: string; valueToken: `0x${string}`; privateAssetBalance?: string | undefined; privateAssetToken?: `0x${string}` | undefined; apy?: { breakdown: { assetAmount: { baseUnits: string; decimals: number; formatted: string; }; net: string; type: "base" | "boost"; }[]; net: string; } | undefined; asOf?: string | undefined; block?: { number: number; timestamp: string; } | undefined; rewards?: { cumulativeEntitlement: string; cumulativePaid: string; pending: string; deferral?: string | undefined; proof?: { cumulativeAmount: string; distributorAddress: `0x${string}`; proof: `0x${string}`[]; rootVersion: string; statementHash: `0x${string}`; } | undefined; } | undefined; }; outputFormat: "json"; status: 200; }; } & { $get: { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: null; outputFormat: "body"; status: 402; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "earn_vault_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "position_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { account: `0x${string}`; assetAllowance: string; assetBalance: string; assetToken: `0x${string}`; chainId: number; id: `0x${string}`; shareAllowance: string; shareBalance: string; shareToken: `0x${string}`; value: string; valueToken: `0x${string}`; privateAssetBalance?: string | undefined; privateAssetToken?: `0x${string}` | undefined; apy?: { breakdown: { assetAmount: { baseUnits: string; decimals: number; formatted: string; }; net: string; type: "base" | "boost"; }[]; net: string; } | undefined; asOf?: string | undefined; block?: { number: number; timestamp: string; } | undefined; rewards?: { cumulativeEntitlement: string; cumulativePaid: string; pending: string; deferral?: string | undefined; proof?: { cumulativeAmount: string; distributorAddress: `0x${string}`; proof: `0x${string}`[]; rootVersion: string; statementHash: `0x${string}`; } | undefined; } | undefined; }; outputFormat: "json"; status: 200; }; };
|
|
18
|
+
"/v1/earn/vaults/:vaultId/positions/:address": { $get: { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: null; outputFormat: "body"; status: 402; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "earn_vault_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "position_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { account: `0x${string}`; assetAllowance: string; assetBalance: string; assetToken: `0x${string}`; chainId: number; id: `0x${string}`; shareAllowance: string; shareBalance: string; shareToken: `0x${string}`; value: string; valueToken: `0x${string}`; privateAssetBalance?: string | undefined; privateAssetToken?: `0x${string}` | undefined; apy?: { breakdown: { assetAmount: { baseUnits: string; decimals: number; formatted: string; }; net: string; type: "base" | "boost"; }[]; net: string; } | undefined; asOf?: string | undefined; block?: { number: number; timestamp: string; } | undefined; rewards?: { cumulativeEntitlement: string; cumulativePaid: string; pending: string; deferral?: string | undefined; proof?: { cumulativeAmount: string; distributorAddress: `0x${string}`; proof: `0x${string}`[]; rootVersion: string; statementHash: `0x${string}`; index?: number | undefined; } | undefined; } | undefined; }; outputFormat: "json"; status: 200; }; } & { $get: { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: null; outputFormat: "body"; status: 402; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "earn_vault_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { error: { code: "position_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { asOf?: string | string[]; chainId?: string | string[]; include?: string | string[]; } | undefined; }; output: { account: `0x${string}`; assetAllowance: string; assetBalance: string; assetToken: `0x${string}`; chainId: number; id: `0x${string}`; shareAllowance: string; shareBalance: string; shareToken: `0x${string}`; value: string; valueToken: `0x${string}`; privateAssetBalance?: string | undefined; privateAssetToken?: `0x${string}` | undefined; apy?: { breakdown: { assetAmount: { baseUnits: string; decimals: number; formatted: string; }; net: string; type: "base" | "boost"; }[]; net: string; } | undefined; asOf?: string | undefined; block?: { number: number; timestamp: string; } | undefined; rewards?: { cumulativeEntitlement: string; cumulativePaid: string; pending: string; deferral?: string | undefined; proof?: { cumulativeAmount: string; distributorAddress: `0x${string}`; proof: `0x${string}`[]; rootVersion: string; statementHash: `0x${string}`; index?: number | undefined; } | undefined; } | undefined; }; outputFormat: "json"; status: 200; }; };
|
|
19
19
|
"/v1/earn/vaults/:vaultId/earnings/:address": { $get: { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: null; outputFormat: "body"; status: 402; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "earn_vault_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "earnings_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; lifetimeEarnings: string; totalDeposited: string; totalWithdrawn: string; period: "lifetime"; status: "complete"; } | { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; activeEarnings: string; period: "active"; status: "complete"; } | { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; end: string; period: "custom" | "7d" | "30d"; start: string; status: "complete"; windowEarnings: string; } | { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; period: "lifetime" | "active"; status: "incomplete_cost_basis"; } | { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; end: string; period: "custom" | "7d" | "30d"; start: string; status: "incomplete_cost_basis"; } | { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; end: string; period: "custom" | "7d" | "30d"; start: string; status: "pending_redemption"; } | { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; period: "lifetime"; status: "pending_redemption"; totalDeposited: string; totalWithdrawn: string; }; outputFormat: "json"; status: 200; }; } & { $get: { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: null; outputFormat: "body"; status: 402; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "earn_vault_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { error: { code: "earnings_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { address: `0x${string}`; vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; end?: string | string[]; period?: string | string[]; start?: string | string[]; } | undefined; }; output: { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; lifetimeEarnings: string; totalDeposited: string; totalWithdrawn: string; period: "lifetime"; status: "complete"; } | { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; activeEarnings: string; period: "active"; status: "complete"; } | { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; end: string; period: "custom" | "7d" | "30d"; start: string; status: "complete"; windowEarnings: string; } | { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; period: "lifetime" | "active"; status: "incomplete_cost_basis"; } | { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; end: string; period: "custom" | "7d" | "30d"; start: string; status: "incomplete_cost_basis"; } | { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; end: string; period: "custom" | "7d" | "30d"; start: string; status: "pending_redemption"; } | { account: `0x${string}`; assetToken: `0x${string}`; currentValue: string; id: `0x${string}`; period: "lifetime"; status: "pending_redemption"; totalDeposited: string; totalWithdrawn: string; }; outputFormat: "json"; status: 200; }; };
|
|
20
20
|
"/v1/earn/vaults/:vaultId": { $get: { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: null; outputFormat: "body"; status: 402; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "vault_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "earn_vault_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { assetToken: { symbol: string; currency: string; decimals: number; address: `0x${string}`; id: string; name: string; verified: boolean; logoUri?: string | undefined; }; engine: { address: `0x${string}`; type: "erc4626" | "veda" | null; venue: `0x${string}` | null; }; id: `0x${string}`; instantLiquidity: string | null; label: string; sharePrice: { amount: string; currency: string; decimals: number; formatted: string; } | null; shareToken: { symbol: string; currency: string; decimals: number; address: `0x${string}`; id: string; name: string; verified: boolean; logoUri?: string | undefined; }; state: { depositsPaused: boolean; engineShares: string; feesActive: boolean; isAccountingAligned: boolean; openRedeemRequestCount: number; totalAssets: string; totalEarnShares: string; }; vaultAddress: `0x${string}`; verified: boolean; access?: { status: "open" | "allowlisted"; } | undefined; apy?: { asOf: string; methodology: "share-price-growth-annualized:v1"; net: string; vault: string; window: "1h" | "1d" | "7d" | "30d"; rewards?: { apr: string | null; asset: { address: `0x${string}`; chainId: number; decimals: number; }; campaignId: string; endsAt: number; startsAt: number; targetTotalApr: string; calculatedThrough?: number | undefined; }[] | undefined; } | null | undefined; capabilities?: { asyncRedeem: boolean; boundedRedeem: boolean; deposit: boolean; exactWithdraw: boolean; inKindDeposit: boolean; privateRouting: boolean; redeem: boolean; routerSwaps: boolean; } | undefined; instantLiquidityValue?: { amount: string; currency: string; decimals: number; formatted: string; } | null | undefined; tvl?: { amount: string; currency: string; decimals: number; formatted: string; } | null | undefined; zone?: { chainId: number; inputTokens: `0x${string}`[]; name: string; outputTokens: `0x${string}`[]; } | null | undefined; zones?: { chainId: number; deploymentBlock: number; earnRouter: `0x${string}`; inputTokens: `0x${string}`[]; name: string; outputTokens: `0x${string}`[]; }[] | undefined; meta?: { valuation?: { asOf: string; basis: "nominal"; source: string; } | undefined; } | undefined; }; outputFormat: "json"; status: 200; }; } & { $get: { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: null; outputFormat: "body"; status: 402; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "vault_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { error: { code: "earn_vault_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { vaultId: `0x${string}`; }; } & { query?: { chainId?: string | string[]; include?: string | string[]; 'apy.window'?: string | string[]; } | undefined; }; output: { assetToken: { symbol: string; currency: string; decimals: number; address: `0x${string}`; id: string; name: string; verified: boolean; logoUri?: string | undefined; }; engine: { address: `0x${string}`; type: "erc4626" | "veda" | null; venue: `0x${string}` | null; }; id: `0x${string}`; instantLiquidity: string | null; label: string; sharePrice: { amount: string; currency: string; decimals: number; formatted: string; } | null; shareToken: { symbol: string; currency: string; decimals: number; address: `0x${string}`; id: string; name: string; verified: boolean; logoUri?: string | undefined; }; state: { depositsPaused: boolean; engineShares: string; feesActive: boolean; isAccountingAligned: boolean; openRedeemRequestCount: number; totalAssets: string; totalEarnShares: string; }; vaultAddress: `0x${string}`; verified: boolean; access?: { status: "open" | "allowlisted"; } | undefined; apy?: { asOf: string; methodology: "share-price-growth-annualized:v1"; net: string; vault: string; window: "1h" | "1d" | "7d" | "30d"; rewards?: { apr: string | null; asset: { address: `0x${string}`; chainId: number; decimals: number; }; campaignId: string; endsAt: number; startsAt: number; targetTotalApr: string; calculatedThrough?: number | undefined; }[] | undefined; } | null | undefined; capabilities?: { asyncRedeem: boolean; boundedRedeem: boolean; deposit: boolean; exactWithdraw: boolean; inKindDeposit: boolean; privateRouting: boolean; redeem: boolean; routerSwaps: boolean; } | undefined; instantLiquidityValue?: { amount: string; currency: string; decimals: number; formatted: string; } | null | undefined; tvl?: { amount: string; currency: string; decimals: number; formatted: string; } | null | undefined; zone?: { chainId: number; inputTokens: `0x${string}`[]; name: string; outputTokens: `0x${string}`[]; } | null | undefined; zones?: { chainId: number; deploymentBlock: number; earnRouter: `0x${string}`; inputTokens: `0x${string}`[]; name: string; outputTokens: `0x${string}`[]; }[] | undefined; meta?: { valuation?: { asOf: string; basis: "nominal"; source: string; } | undefined; } | undefined; }; outputFormat: "json"; status: 200; }; };
|
|
21
21
|
"/v1/earn/transactions/:senderTag": { $get: { input: { param: { senderTag: `0x${string}`; }; } & { query: { actionId: string | string[]; chainId: string | string[]; }; }; output: { error: { code: "chain_id_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { senderTag: `0x${string}`; }; } & { query: { actionId: string | string[]; chainId: string | string[]; }; }; output: { error: { code: "chain_id_unsupported"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { senderTag: `0x${string}`; }; } & { query: { actionId: string | string[]; chainId: string | string[]; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { senderTag: `0x${string}`; }; } & { query: { actionId: string | string[]; chainId: string | string[]; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { senderTag: `0x${string}`; }; } & { query: { actionId: string | string[]; chainId: string | string[]; }; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { senderTag: `0x${string}`; }; } & { query: { actionId: string | string[]; chainId: string | string[]; }; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { senderTag: `0x${string}`; }; } & { query: { actionId: string | string[]; chainId: string | string[]; }; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { senderTag: `0x${string}`; }; } & { query: { actionId: string | string[]; chainId: string | string[]; }; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { senderTag: `0x${string}`; }; } & { query: { actionId: string | string[]; chainId: string | string[]; }; }; output: { error: { code: "sender_tag_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { senderTag: `0x${string}`; }; } & { query: { actionId: string | string[]; chainId: string | string[]; }; }; output: { id: `0x${string}`; l1Execution: { chainId: number; input: { amount: string; assetAddress: `0x${string}`; } | null; operation: "withdraw" | "deposit" | null; output: { amount: string; assetAddress: `0x${string}`; } | null; refund: { chainId: number; status: "pending"; } | null; status: "pending" | "succeeded" | "failed"; transactionHash: `0x${string}` | null; vaultAddress: `0x${string}` | null; }; zoneDeposit: { chainId: number; depositHash: `0x${string}` | null; refund: { recipient: `0x${string}`; status: "pending"; transactionHash: null; } | null; status: "pending" | "completed" | "failed" | "unavailable"; }; }; outputFormat: "json"; status: 200; }; };
|
|
@@ -118,8 +118,8 @@ export type Schema = {
|
|
|
118
118
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods": { $get: { input: { param: { orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "param_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "organization_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "billing_unconfigured"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 501; } | { input: { param: { orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { data: { createdAt: string; default: boolean; id: string; provider: "stripe"; type: string; card?: { brand: string; expMonth: number; expYear: number; last4: string; } | undefined; }[]; }; outputFormat: "json"; status: 200; }; };
|
|
119
119
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods/:methodId{pm_[A-Za-z0-9_-]+}": { $delete: { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "query_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "param_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "organization_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { enabledSources: ("tempo" | "stripe")[]; status: "active" | "none" | "canceled" | "past_due"; spend?: { amount: string; currency: "usd"; period: "month"; } | undefined; spendCeiling?: { amount: string; currency: "usd"; period: "month"; } | undefined; spendLimit?: { amount: string; currency: "usd"; period: "month"; } | undefined; sponsorshipExempt?: true | undefined; txFeeLimit?: { amount: string; currency: "usd"; } | undefined; updatedAt?: string | undefined; }; outputFormat: "json"; status: 200; } | { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "billing_unconfigured"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 501; } | { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "billing_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { methodId: string; orgId: string; }; } & { query?: { environment?: string | string[]; } | undefined; }; output: { error: { code: "payment_method_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; }; };
|
|
120
120
|
"/stripe/webhook": { $post: { input: {}; output: { error: { code: "payload_too_large"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 413; } | { input: {}; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: {}; output: { error: { code: "billing_unconfigured"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 501; } | { input: {}; output: { error: { code: "signature_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: {}; output: { received: true; }; outputFormat: "json"; status: 200; }; };
|
|
121
|
-
"/v1/cli/authorizations": { $post: { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; }; }; output: { error: { code: "payload_too_large"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 413; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; }; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; }; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; }; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; }; }; output: { error: { code: "body_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; }; }; output: { error: { code: "cli_auth_not_enabled"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; }; }; output: { code: string; expiresAt: string; interval: number; verificationUrl: string; }; outputFormat: "json"; status: 200; }; };
|
|
122
|
-
"/v1/cli/authorizations/:code{[A-Za-z -]+}": { $get: { input: { param: { code: string; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { code: string; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { code: string; }; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { code: string; }; }; output: { error: { code: "param_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { code: string; }; }; output: { error: { code: "forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { code: string; }; }; output: { error: { code: "cli_auth_not_enabled"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { code: string; }; }; output: { error: { code: "cli_authorization_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { code: string; }; }; output: { client: { device?: string | undefined; name?: string | undefined; }; code: string; createdAt: string; expiresAt: string; scopes: string[]; status: "pending" | "denied" | "approved"; ip?: string | undefined; }; outputFormat: "json"; status: 200; }; };
|
|
121
|
+
"/v1/cli/authorizations": { $post: { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; scopes?: string[] | undefined; }; }; output: { error: { code: "payload_too_large"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 413; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; scopes?: string[] | undefined; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; scopes?: string[] | undefined; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; scopes?: string[] | undefined; }; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; scopes?: string[] | undefined; }; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; scopes?: string[] | undefined; }; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; scopes?: string[] | undefined; }; }; output: { error: { code: "body_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; scopes?: string[] | undefined; }; }; output: { error: { code: "cli_auth_not_enabled"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { json: { codeChallenge: string; device?: string | undefined; name?: string | undefined; scopes?: string[] | undefined; }; }; output: { code: string; expiresAt: string; interval: number; verificationUrl: string; }; outputFormat: "json"; status: 200; }; };
|
|
122
|
+
"/v1/cli/authorizations/:code{[A-Za-z -]+}": { $get: { input: { param: { code: string; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { code: string; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { code: string; }; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { code: string; }; }; output: { error: { code: "param_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { code: string; }; }; output: { error: { code: "forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { code: string; }; }; output: { error: { code: "cli_auth_not_enabled"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { code: string; }; }; output: { error: { code: "cli_authorization_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { code: string; }; }; output: { client: { device?: string | undefined; name?: string | undefined; }; code: string; createdAt: string; expiresAt: string; scopes: string[]; status: "pending" | "denied" | "approved"; ip?: string | undefined; requested?: string[] | undefined; }; outputFormat: "json"; status: 200; }; };
|
|
123
123
|
"/v1/cli/authorizations/:code{[A-Za-z -]+}/approve": { $post: { input: { param: { code: string; }; } & { json: { scopes?: string[] | undefined; }; }; output: { error: { code: "payload_too_large"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 413; } | { input: { param: { code: string; }; } & { json: { scopes?: string[] | undefined; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { code: string; }; } & { json: { scopes?: string[] | undefined; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { code: string; }; } & { json: { scopes?: string[] | undefined; }; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { code: string; }; } & { json: { scopes?: string[] | undefined; }; }; output: { error: { code: "body_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { code: string; }; } & { json: { scopes?: string[] | undefined; }; }; output: { error: { code: "param_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { code: string; }; } & { json: { scopes?: string[] | undefined; }; }; output: { error: { code: "forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { code: string; }; } & { json: { scopes?: string[] | undefined; }; }; output: { error: { code: "cli_auth_not_enabled"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { code: string; }; } & { json: { scopes?: string[] | undefined; }; }; output: { error: { code: "cli_authorization_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { code: string; }; } & { json: { scopes?: string[] | undefined; }; }; output: { error: { code: "cli_authorization_decided"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 409; } | { input: { param: { code: string; }; } & { json: { scopes?: string[] | undefined; }; }; output: { code: string; status: "denied" | "approved"; }; outputFormat: "json"; status: 200; }; };
|
|
124
124
|
"/v1/cli/authorizations/:code{[A-Za-z -]+}/deny": { $post: { input: { param: { code: string; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { code: string; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { code: string; }; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { code: string; }; }; output: { error: { code: "param_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { code: string; }; }; output: { error: { code: "forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { code: string; }; }; output: { error: { code: "cli_auth_not_enabled"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { code: string; }; }; output: { error: { code: "cli_authorization_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { code: string; }; }; output: { error: { code: "cli_authorization_decided"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 409; } | { input: { param: { code: string; }; }; output: { code: string; status: "denied" | "approved"; }; outputFormat: "json"; status: 200; }; };
|
|
125
125
|
"/v1/cli/authorizations/:code{[A-Za-z -]+}/token": { $post: { input: { param: { code: string; }; } & { json: { codeVerifier: string; }; }; output: { error: { code: "payload_too_large"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 413; } | { input: { param: { code: string; }; } & { json: { codeVerifier: string; }; }; output: { error: { code: "api_key_malformed"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { code: string; }; } & { json: { codeVerifier: string; }; }; output: { error: { code: "api_key_missing" | "api_key_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 401; } | { input: { param: { code: string; }; } & { json: { codeVerifier: string; }; }; output: { error: { code: "api_key_forbidden" | "api_key_ip_forbidden"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 403; } | { input: { param: { code: string; }; } & { json: { codeVerifier: string; }; }; output: { error: { code: "rate_limit_exceeded" | "payment_required"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 429; } | { input: { param: { code: string; }; } & { json: { codeVerifier: string; }; }; output: { error: { code: "upstream_error"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 502; } | { input: { param: { code: string; }; } & { json: { codeVerifier: string; }; }; output: { error: { code: "body_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { code: string; }; } & { json: { codeVerifier: string; }; }; output: { error: { code: "param_invalid"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 400; } | { input: { param: { code: string; }; } & { json: { codeVerifier: string; }; }; output: { error: { code: "cli_auth_not_enabled"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { code: string; }; } & { json: { codeVerifier: string; }; }; output: { error: { code: "cli_authorization_not_found"; details?: readonly { message: string; path?: readonly (string | number)[] | undefined; }[] | undefined; message: string; }; requestId: string; }; outputFormat: "json"; status: 404; } | { input: { param: { code: string; }; } & { json: { codeVerifier: string; }; }; output: { status: "pending"; } | { status: "denied"; } | { expiresAt: string; scopes: string[]; status: "approved"; token: string; }; outputFormat: "json"; status: 200; }; };
|