@vapi-network/core 0.10.0 → 0.12.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 +198 -177
- package/dist/call-contracts-wire.d.ts +30 -0
- package/dist/call-contracts-wire.d.ts.map +1 -1
- package/dist/discovery.d.ts +2 -0
- package/dist/discovery.d.ts.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +399 -21
- package/dist/index.js.map +3 -3
- package/dist/link-state.d.ts +21 -0
- package/dist/link-state.d.ts.map +1 -0
- package/dist/listing-fee.d.ts +4 -0
- package/dist/listing-fee.d.ts.map +1 -0
- package/dist/marketplace-contracts.d.ts +168 -2
- package/dist/marketplace-contracts.d.ts.map +1 -1
- package/dist/remote-account.d.ts +29 -0
- package/dist/remote-account.d.ts.map +1 -0
- package/dist/router-client.d.ts +3 -1
- package/dist/router-client.d.ts.map +1 -1
- package/dist/router-client.js +218 -18
- package/dist/router-client.js.map +3 -3
- package/dist/secret-store.d.ts.map +1 -1
- package/dist/spend-cap-exceeded.d.ts +36 -0
- package/dist/spend-cap-exceeded.d.ts.map +1 -0
- package/dist/spend-policy.d.ts +12 -1
- package/dist/spend-policy.d.ts.map +1 -1
- package/dist/support-report.d.ts +1 -1
- package/dist/tasks.js +7 -3
- package/dist/tasks.js.map +1 -1
- package/dist/vault-setup.d.ts +13 -0
- package/dist/vault-setup.d.ts.map +1 -0
- package/dist/wallet-store.d.ts +5 -0
- package/dist/wallet-store.d.ts.map +1 -1
- package/dist/x402-pay.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ the x402 protocol, the wallet store, spend policy, the network guard, discovery
|
|
|
5
5
|
merge, public documentation access and the append-only receipt ledger. Keys stay on the caller's machine.
|
|
6
6
|
This package proxies no payment and sends no telemetry.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Eight entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-network/core/backup`, `@vapi-network/core/cloud-backup`, `@vapi-network/core/api-key`, `@vapi-network/core/agent-link`, `@vapi-network/core/router-client` and `@vapi-network/core/tasks`.
|
|
9
9
|
|
|
10
10
|
- `@vapi-network/core`, everything an agent-driven surface may use: accounts,
|
|
11
11
|
balances, `WalletStore`, `SpendPolicy`, `resolvePassphrase`, receipts, stats
|
|
@@ -20,10 +20,23 @@ Seven entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-n
|
|
|
20
20
|
- The `@vapi-network/core/api-key` entry point stores and resolves the registry API key without placing it in parsed MCP configuration.
|
|
21
21
|
- The `@vapi-network/core/agent-link` entry point handles device linking and agent tokens for a wallet.
|
|
22
22
|
- The `@vapi-network/core/router-client` entry point lists router models, reads usage and buys router balance.
|
|
23
|
+
- The `@vapi-network/core/tasks` entry point provides the task SDK, manifests and local chain actions. Tasks is coming soon on production; these require a preview server.
|
|
23
24
|
|
|
24
25
|
## Exports
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
The tables show selected exports. [src/index.ts](https://github.com/vAPI-Network/vapi-network/blob/main/packages/core/src/index.ts) defines the full main entry point; the other entry points are listed above.
|
|
28
|
+
|
|
29
|
+
Discovery API hits expose optional health and alternatives, and inspected
|
|
30
|
+
endpoints expose optional response schemas and example requests.
|
|
31
|
+
`SpendCapExceededError` reports a payment stopped before signing with
|
|
32
|
+
`code`, `cap`, `amountUsd`, `limitUsd`, optional `spentUsd` and `wallet`,
|
|
33
|
+
`command` and `retryable` fields. Amounts are decimal USD strings; `command`
|
|
34
|
+
can be null when the SDK's `maxAtomic` must be raised.
|
|
35
|
+
|
|
36
|
+
### Selected runtime exports
|
|
37
|
+
|
|
38
|
+
`formatListingFee(fee: ListingFee): string` displays `No network fee` for zero
|
|
39
|
+
basis points, or the registry label and computed percentage for legacy fees.
|
|
27
40
|
|
|
28
41
|
| Name | What it is | Since |
|
|
29
42
|
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
|
|
@@ -73,16 +86,16 @@ Seven entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-n
|
|
|
73
86
|
| `createNetworkPublicClient` | function (network: string, configured: ConfiguredNetwork, options: NetworkTransportOptions = {}): PublicClient | 0.5.0 or earlier |
|
|
74
87
|
| `createPaymentId` | function (randomBytes: (bytes: Uint8Array<ArrayBuffer>) => void = fillRandomBytes): string | 0.5.0 or earlier |
|
|
75
88
|
| `createPublicFetch` | function (options: { allowPrivateNetwork: boolean; lookup?: LookupFn; }): typeof fetch | 0.5.0 or earlier |
|
|
76
|
-
| `askDocs` | function (question: string, options?: DocsRequestOptions): Promise<DocsAskResponse> |
|
|
89
|
+
| `askDocs` | function (question: string, options?: DocsRequestOptions): Promise<DocsAskResponse> | 0.9.0 |
|
|
77
90
|
| `createSIWxMessage` | function (challenge: SIWxChallenge, address: Address): string | 0.5.0 or earlier |
|
|
78
91
|
| `createSupportReport` | function (options: CreateSupportReportOptions): Promise<CreateSupportReportResult> | 0.5.0 or earlier |
|
|
79
92
|
| `decodePaymentRequiredHeader` | function (value: string): unknown | 0.5.0 or earlier |
|
|
80
93
|
| `DEFAULT_ARC_GAS_HEADROOM_ATOMIC` | constant DEFAULT_ARC_GAS_HEADROOM_ATOMIC: 50000n | 0.5.0 or earlier |
|
|
81
|
-
| `DEFAULT_DISCOVERY_URL` | constant DEFAULT_DISCOVERY_URL: "https
|
|
82
|
-
| `DEFAULT_DOCS_ORIGIN` | constant DEFAULT_DOCS_ORIGIN: "https://docs.vapinetwork.ai" |
|
|
83
|
-
| `DEFAULT_MARKETPLACE_DISCOVERY_URL` | constant DEFAULT_MARKETPLACE_DISCOVERY_URL: "https
|
|
84
|
-
| `DEFAULT_REGISTRY_FALLBACKS` |
|
|
85
|
-
| `DEFAULT_REGISTRY_URL` | constant DEFAULT_REGISTRY_URL: "https
|
|
94
|
+
| `DEFAULT_DISCOVERY_URL` | constant DEFAULT_DISCOVERY_URL: "https://api.vapinetwork.ai/api/call/services" | 0.5.0 or earlier |
|
|
95
|
+
| `DEFAULT_DOCS_ORIGIN` | constant DEFAULT_DOCS_ORIGIN: "https://docs.vapinetwork.ai" | 0.9.0 |
|
|
96
|
+
| `DEFAULT_MARKETPLACE_DISCOVERY_URL` | constant DEFAULT_MARKETPLACE_DISCOVERY_URL: "https://api.vapinetwork.ai/api/call/discovery" | 0.5.0 or earlier |
|
|
97
|
+
| `DEFAULT_REGISTRY_FALLBACKS` | Canonical discovery and service URLs; see `DEFAULT_DISCOVERY_URL` and `DEFAULT_MARKETPLACE_DISCOVERY_URL` | 0.5.0 or earlier |
|
|
98
|
+
| `DEFAULT_REGISTRY_URL` | constant DEFAULT_REGISTRY_URL: "https://api.vapinetwork.ai" | 0.5.0 or earlier |
|
|
86
99
|
| `DEFAULT_SPEND_CAPS` | constant DEFAULT_SPEND_CAPS: { readonly perCallAtomic: "100000"; readonly perDayAtomic: "1000000"; } | 0.5.0 or earlier |
|
|
87
100
|
| `DEFAULT_WALLET_NAME` | constant DEFAULT_WALLET_NAME: "main" | 0.5.0 or earlier |
|
|
88
101
|
| `deriveEvmPrivateKey` | function (seed: Uint8Array, path = EVM_DERIVATION_PATH): Hex | 0.5.0 or earlier |
|
|
@@ -91,7 +104,7 @@ Seven entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-n
|
|
|
91
104
|
| `discover` | function (sources: readonly Source[], query?: string, options: { searchesPath?: string; now?: Date; nowMs?: () => number; } & SourceSearchOptions = {}): Promise<{ listings: Listing[]; errors: ReadonlyArray<{ source: string; error: unknown }> }> | 0.5.0 or earlier |
|
|
92
105
|
| `DISCOVERY_CATEGORIES` | constant DISCOVERY_CATEGORIES: readonly ["ai", "data", "crypto", "compute", "search", "other"] | 0.5.0 or earlier |
|
|
93
106
|
| `DiscoveryCatalogError` | class DiscoveryCatalogError | 0.5.0 or earlier |
|
|
94
|
-
| `DocsError` | class DocsError with stable `invalid_input`, `host_not_allowed`, `not_found`, `timeout` and `bad_response` codes |
|
|
107
|
+
| `DocsError` | class DocsError with stable `invalid_input`, `host_not_allowed`, `not_found`, `timeout` and `bad_response` codes | 0.9.0 |
|
|
95
108
|
| `discoveryCategorySchema` | constant discoveryCategorySchema: ZodEnum<{ ai: "ai"; data: "data"; crypto: "crypto"; compute: "compute"; search: "search"; other: "other"; }> | 0.5.0 or earlier |
|
|
96
109
|
| `discoveryEndpointSchema` | constant discoveryEndpointSchema: ZodObject<{ name: ZodString; method: ZodString; url: ZodURL; price: ZodString; description: ZodString; operationId: ZodOptional<ZodString>; ... 5 more ...; payment: ZodOptional<...>; }, $loose> | 0.5.0 or earlier |
|
|
97
110
|
| `discoveryResponseSchema` | constant discoveryResponseSchema: ZodObject<{ services: ZodArray<ZodObject<{ verified: ZodBoolean; wrapped: ZodBoolean; price: ZodString; networks: ZodArray<ZodString>; endpoints: ZodArray<...>; ... 10 more ...; tier: ZodEnum<...>; }, $loose>>; }, $loose> | 0.5.0 or earlier |
|
|
@@ -144,6 +157,10 @@ Seven entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-n
|
|
|
144
157
|
| `listingFeeSchema` | constant listingFeeSchema: ZodObject<{ bps: ZodNumber; label: ZodString; }, $loose> | 0.5.0 or earlier |
|
|
145
158
|
| `listingGroupSchema` | constant listingGroupSchema: ZodEnum<{ partner: "partner"; vapi: "vapi"; added: "added"; external: "external"; }> | 0.5.0 or earlier |
|
|
146
159
|
| `listingIdentitySchema` | constant listingIdentitySchema: ZodObject<{ erc8004Id: ZodString; reputation: ZodCatch<ZodOptional<ZodObject<{ score: ZodNumber; count: ZodNumber; }, $loose>>>; }, $loose> | 0.5.0 or earlier |
|
|
160
|
+
| `LISTING_HEALTH_STATES` | constant: `healthy`, `degraded`, `outage`, `unknown` | 0.11.0 |
|
|
161
|
+
| `listingHealthStateSchema` | schema for `ListingHealthState` | 0.11.0 |
|
|
162
|
+
| `listingHealthSchema` | schema for registry health, uptime, latency and check counts | 0.11.0 |
|
|
163
|
+
| `marketplaceAlternativeSchema` | schema for an alternative `ref` with reason `cheaper` or `healthier` | 0.11.0 |
|
|
147
164
|
| `listingLivenessSchema` | constant listingLivenessSchema: ZodObject<{ uptime7d: ZodNumber; latencyP50Ms: ZodNullable<ZodNumber>; latencyP95Ms: ZodNullable<ZodNumber>; checks7d: ZodNumber; }, $loose> | 0.5.0 or earlier |
|
|
148
165
|
| `listingVerificationFieldSchema` | constant listingVerificationFieldSchema: ZodCatch<ZodDefault<ZodEnum<{ verified: "verified"; none: "none"; requested: "requested"; }>>> | 0.5.0 or earlier |
|
|
149
166
|
| `listingVerificationSchema` | constant listingVerificationSchema: ZodEnum<{ verified: "verified"; none: "none"; requested: "requested"; }> | 0.5.0 or earlier |
|
|
@@ -165,7 +182,7 @@ Seven entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-n
|
|
|
165
182
|
| `mergeListings` | function (groups: Iterable<readonly Listing[]>): Listing[] | 0.5.0 or earlier |
|
|
166
183
|
| `migrateLegacyRegistryConfig` | function (path = getVapiPaths().config): Promise<LegacyRegistryRewrite[]> | 0.5.0 or earlier |
|
|
167
184
|
| `migrateLegacyVapiHome` | function (options: MigrationOptions = {}): Promise<string[]> | 0.5.0 or earlier |
|
|
168
|
-
| `NETWORKS` |
|
|
185
|
+
| `NETWORKS` | Network definitions with chain identifiers, canonical USDC, gas tokens and RPC defaults; see the [network table](../../docs/configuration.md#networks-and-accounts) | 0.5.0 or earlier |
|
|
169
186
|
| `noPassphraseHint` | function (walletName: string): string | 0.5.0 or earlier |
|
|
170
187
|
| `normalizeResourceUrl` | function (value: string): string | 0.5.0 or earlier |
|
|
171
188
|
| `ONRAMP_FALLBACK_INSTRUCTIONS` | constant ONRAMP_FALLBACK_INSTRUCTIONS: "Send USDC on Base (eip155:8453) to this address; add a little ETH for gas if you plan to sweep." | 0.5.0 or earlier |
|
|
@@ -193,7 +210,7 @@ Seven entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-n
|
|
|
193
210
|
| `readKeystoreAddress` | function (path = getVapiPaths().keystore): Promise<string \| undefined> | 0.5.0 or earlier |
|
|
194
211
|
| `readKeystoreVersion` | function (path = getVapiPaths().keystore): Promise<number \| undefined> | 0.5.0 or earlier |
|
|
195
212
|
| `readReceipts` | function (path = getVapiPaths().receipts, options: { limit?: number; wallet?: string } = {}): Promise<Receipt[]> | 0.3.0 |
|
|
196
|
-
| `readDocs` | function (pageUrlOrPath: string, options?: DocsRequestOptions): Promise<DocsReadResponse> |
|
|
213
|
+
| `readDocs` | function (pageUrlOrPath: string, options?: DocsRequestOptions): Promise<DocsReadResponse> | 0.9.0 |
|
|
197
214
|
| `readSearchEvents` | function (path = getVapiPaths().searches): Promise<SearchEvent[]> | 0.5.0 or earlier |
|
|
198
215
|
| `readSolanaGasBalance` | function (args: { network: string; configured: ConfiguredNetwork; address: string; } & SolanaRpcOptions): Promise<bigint> | 0.5.0 or earlier |
|
|
199
216
|
| `readSolanaUsdcBalance` | function (args: { network: string; configured: ConfiguredNetwork; address: string; } & SolanaRpcOptions): Promise<bigint> | 0.5.0 or earlier |
|
|
@@ -212,7 +229,7 @@ Seven entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-n
|
|
|
212
229
|
| `rewriteLegacyRegistryUrls` | function (config: VapiConfig): { config: VapiConfig; changes: LegacyRegistryRewrite[]; } | 0.5.0 or earlier |
|
|
213
230
|
| `ROUTER_TOPUP_TIERS` | constant ROUTER_TOPUP_TIERS: readonly [1, 5, 20, 50] | 0.5.0 or earlier |
|
|
214
231
|
| `searchServicesResponseSchema` | constant searchServicesResponseSchema: ZodObject<{ services: ZodArray<ZodObject<{ verified: ZodBoolean; wrapped: ZodBoolean; price: ZodString; networks: ZodArray<ZodString>; endpoints: ZodArray<...>; ... 10 more ...; tier: ZodEnum<...>; }, $loose>>; }, $loose> | 0.5.0 or earlier |
|
|
215
|
-
| `searchDocs` | function (query: string, options?: DocsSearchOptions): Promise<DocsSearchResponse> |
|
|
232
|
+
| `searchDocs` | function (query: string, options?: DocsSearchOptions): Promise<DocsSearchResponse> | 0.9.0 |
|
|
216
233
|
| `SECRET_STORE_SERVICE` | constant SECRET_STORE_SERVICE: "vapi-network" | 0.5.0 or earlier |
|
|
217
234
|
| `secretsAllowed` | function (env: NodeJS.ProcessEnv, streams: SecretsStreams): SecretsDecision | 0.5.0 or earlier |
|
|
218
235
|
| `secretStore` | function (options: SecretStoreOptions = {}): SecretStore | 0.5.0 or earlier |
|
|
@@ -225,6 +242,7 @@ Seven entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-n
|
|
|
225
242
|
| `SOLANA_MAINNET_CAIP2` | constant SOLANA_MAINNET_CAIP2: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d" | 0.5.0 or earlier |
|
|
226
243
|
| `SOLANA_MAINNET_USDC` | constant SOLANA_MAINNET_USDC: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" | 0.5.0 or earlier |
|
|
227
244
|
| `SpendCapError` | class SpendCapError | 0.5.0 or earlier |
|
|
245
|
+
| `SpendCapExceededError` | class SpendCapExceededError; code `spend_cap_exceeded`, `retryable: false` | 0.11.0 |
|
|
228
246
|
| `spendCapsForWallet` | function (store: WalletStore, name: WalletName = DEFAULT_WALLET_NAME): Promise<SpendCaps> | 0.5.0 or earlier |
|
|
229
247
|
| `spendCapsSchema` | constant spendCapsSchema: ZodObject<{ perCallAtomic: ZodString; perDayAtomic: ZodString; }, $strip> | 0.5.0 or earlier |
|
|
230
248
|
| `SpendPolicy` | class SpendPolicy | 0.5.0 or earlier |
|
|
@@ -241,7 +259,7 @@ Seven entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-n
|
|
|
241
259
|
| `validatePrivateKey` | function (value: string): Hex | 0.5.0 or earlier |
|
|
242
260
|
| `validateRecoveryPhrase` | function (phrase: string): string | 0.5.0 or earlier |
|
|
243
261
|
| `VAPI_BUILDER_CODE` | constant VAPI_BUILDER_CODE: "vapi" | 0.5.0 or earlier |
|
|
244
|
-
| `VAPI_CLIENT_VERSION` | constant VAPI_CLIENT_VERSION: "0.
|
|
262
|
+
| `VAPI_CLIENT_VERSION` | constant VAPI_CLIENT_VERSION: "0.12.0" | 0.4.0 |
|
|
245
263
|
| `WALLET_NAME_PATTERN` | constant WALLET_NAME_PATTERN: RegExp | 0.5.0 or earlier |
|
|
246
264
|
| `walletEntrySchema` | constant walletEntrySchema: ZodObject<{ createdAt: ZodISODateTime; label: ZodOptional<ZodString>; spendCaps: ZodObject<{ perCallAtomic: ZodString; perDayAtomic: ZodString; }, $strip>; routerRefill: ZodOptional<...>; link: ZodOptional<...>; }, $strip> | 0.5.0 or earlier |
|
|
247
265
|
| `walletNameSchema` | constant walletNameSchema: ZodString | 0.5.0 or earlier |
|
|
@@ -253,171 +271,174 @@ Seven entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-n
|
|
|
253
271
|
| `X402Error` | class X402Error | 0.5.0 or earlier |
|
|
254
272
|
| `X402PaymentError` | class X402PaymentError | 0.5.0 or earlier |
|
|
255
273
|
|
|
256
|
-
###
|
|
274
|
+
### Selected types
|
|
257
275
|
|
|
258
|
-
| Name | What it is | Since
|
|
259
|
-
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
260
|
-
| `AccountBalance` | type AccountBalance = { atomic: string; formatted: string; } | 0.5.0 or earlier
|
|
261
|
-
| `AccountInfo` | type AccountInfo = { caip2: string; name: string; address: string; usdcBalance: AccountBalance \| null; gasTokenBalance?: GasTokenBalance \| null; depositUrl?: string; depositInstructions?: string; error?: string; } | 0.5.0 or earlier
|
|
262
|
-
| `AccountNetworkAdapter` | type AccountNetworkAdapter = ( context: AccountNetworkAdapterContext, ) => Promise<Omit<AccountInfo, "caip2">> | 0.5.0 or earlier
|
|
263
|
-
| `AccountNetworkAdapterContext` | type AccountNetworkAdapterContext = { caip2: string; configured: VapiConfig["networks"][string]; defaultAddress: string; allowPrivateNetwork?: boolean; fetchImpl?: typeof fetch; lookup?: LookupFn; } | 0.5.0 or earlier
|
|
264
|
-
| `Address` | type Address = ResolvedRegister['addressType'] | 0.5.0 or earlier
|
|
265
|
-
| `AgentCashConfig` | type AgentCashConfig = VapiConfig | 0.5.0 or earlier
|
|
266
|
-
| `AgentCashKeystore` | type AgentCashKeystore = VapiKeystore | 0.5.0 or earlier
|
|
267
|
-
| `AgentCashPaths` | type AgentCashPaths = VapiPaths | 0.5.0 or earlier
|
|
268
|
-
| `AgentLink` | type AgentLink = { apiBase: string; clientId: string; owner: `0x${string}`; label: string; scopes: string[]; linkedAt: string; routerBaseUrl?: string; } | 0.5.0 or earlier
|
|
269
|
-
| `AgentMarker` | type AgentMarker = (typeof AGENT_MARKER_VARIABLES)[number] | 0.5.0 or earlier
|
|
270
|
-
| `AgentProfile` | type AgentProfile = z.infer<typeof agentProfileSchema> | 0.5.0 or earlier
|
|
271
|
-
| `AgentProfileInput` | type AgentProfileInput = z.input<typeof agentProfileSchema> | 0.5.0 or earlier
|
|
272
|
-
| `AgentRouterUsage` | type AgentRouterUsage = { compute: { allowanceUsd: number; spentTodayUsd: number; remainingTodayUsd: number; resetsAt: string; ownerLimitUsd: number; ownerSpentUsd: number; }; balance: { purchasedUsd: number; spentUsd: number; remainingUsd: number } \| null; } | 0.5.0 or earlier
|
|
273
|
-
| `AgentTokens` | type AgentTokens = { accessToken: string; refreshToken: string; expiresAt: number; scopes: string[]; } | 0.5.0 or earlier
|
|
274
|
-
| `ApiMarketplaceHit` | type ApiMarketplaceHit = z.infer<typeof apiMarketplaceHitSchema> | 0.5.0 or earlier
|
|
275
|
-
| `AuditEntry` | type AuditEntry = AuditRecord & { time: string } | 0.5.0 or earlier
|
|
276
|
-
| `AuditEvent` | type AuditEvent = (typeof AUDIT_EVENTS)[number] | 0.5.0 or earlier
|
|
277
|
-
| `AuditOptions` | type AuditOptions = { now?: () => Date; } | 0.5.0 or earlier
|
|
278
|
-
| `AuditRecord` | type AuditRecord = { event: AuditEvent; wallet?: string; owner?: string; tty: boolean; agentMarker?: string; detail?: string; } | 0.5.0 or earlier
|
|
279
|
-
| `AuthorizationState` | type AuthorizationState = "settled" \| "expired" \| "pending" | 0.5.0 or earlier
|
|
280
|
-
| `CallableCategory` | type CallableCategory = z.infer<typeof callableCategorySchema> | 0.5.0 or earlier
|
|
281
|
-
| `CallTarget` | type CallTarget = DiscoveryEndpoint | 0.5.0 or earlier
|
|
282
|
-
| `CanonicalX402UsdcIdentity` | type CanonicalX402UsdcIdentity = Readonly<{ usdc: Address; eip712Domain: X402TokenDomain; }> | 0.5.0 or earlier
|
|
283
|
-
| `CanonicalX402UsdcNetwork` | type CanonicalX402UsdcNetwork = typeof BASE_MAINNET_CAIP2 \| typeof ARC_MAINNET_CAIP2 \| typeof ARC_TESTNET_CAIP2 | 0.5.0 or earlier
|
|
284
|
-
| `ChatMessage` | type ChatMessage = { role: "system" \| "user" \| "assistant" \| "tool"; content: string; name?: string; tool_call_id?: string; tool_calls?: Array<{ id: string; type: "function"; function: { name: string; arguments: string }; }>; } | 0.5.0 or earlier
|
|
285
|
-
| `ChatRequest` | type ChatRequest = { model: string; messages: ChatMessage[]; max_tokens?: number; temperature?: number; tools?: unknown[]; tool_choice?: unknown; } | 0.5.0 or earlier
|
|
286
|
-
| `ChatResult` | type ChatResult = { content: string \| null; toolCalls: Array<{ id: string; name: string; arguments: string }>; usage?: { prompt_tokens: number; completion_tokens: number; total_tokens: number }; model: string; keyUsed: "stake" \| "balance"; } | 0.5.0 or earlier
|
|
287
|
-
| `CompleteX402PaymentArgs` | type CompleteX402PaymentArgs = { challenge: X402PaymentAttempt; account: VapiPaymentAccount; caps: SpendCaps; config: VapiConfig; send(request: Request, quote: X402Quote): Promise<X402PaymentAttempt>; consumeResponse?: (response: Response) => Promise<T>; ... | 0.5.0 or earlier
|
|
288
|
-
| `CompleteX402PaymentResult` | type CompleteX402PaymentResult = { response: Response; request: Request; body: T \| undefined; quote: X402Quote; payer: string; paymentId?: string; settlement: unknown \| null; settlementOutcome: X402SettlementOutcome; } | 0.5.0 or earlier
|
|
289
|
-
| `ConfiguredNetwork` | type ConfiguredNetwork = { rpcUrl: string; usdc: string; } | 0.5.0 or earlier
|
|
290
|
-
| `CreatedWallet` | type CreatedWallet = ResolvedWallet & { account: VapiPaymentAccount; recoveryPhrase: string; } | 0.5.0 or earlier
|
|
291
|
-
| `CreateKeystoreOptions` | type CreateKeystoreOptions = { enableSolana?: boolean; phrase?: string; } | 0.5.0 or earlier
|
|
292
|
-
| `CreateSupportReportOptions` | type CreateSupportReportOptions = { message: string; includeAddresses?: boolean; send?: boolean; reportsDirectory?: string; receiptsPath?: string; clientVersion?: string; now?: Date; systemInfo?: SupportSystemInfo; registryUrl?: string; env?: NodeJS.Process... | 0.5.0 or earlier
|
|
293
|
-
| `CreateSupportReportResult` | type CreateSupportReportResult = { path: string; issueUrl: string; report: SupportReport; responseCode?: number; } | 0.5.0 or earlier
|
|
294
|
-
| `DefaultConfigOptions` | type DefaultConfigOptions = { networks?: readonly string[]; } | 0.5.0 or earlier
|
|
295
|
-
| `DeviceLinkStart` | type DeviceLinkStart = { clientId: string; deviceCode: string; userCode: string; verificationUri: string; verificationUriComplete: string; expiresIn: number; interval: number; } | 0.5.0 or earlier
|
|
296
|
-
| `DiscoverServicesResult` | type DiscoverServicesResult = SearchServicesResponse | 0.5.0 or earlier
|
|
297
|
-
| `DiscoveryCatalog` | type DiscoveryCatalog = { services: DiscoveryService[]; resolve(serviceId: string, endpointName?: string): CallTarget; resolveListing(serviceId: string, endpointName?: string): ResolvedListing; } | 0.5.0 or earlier
|
|
298
|
-
| `DiscoveryCatalogErrorCode` | type DiscoveryCatalogErrorCode = \| "no_endpoint" \| "ambiguous_default" \| "malformed_url" \| "blank_method" \| "invalid_endpoint_name" \| "duplicate_endpoint_name" \| "service_not_found" \| "endpoint_not_found" \| "invalid_discovery" | 0.5.0 or earlier
|
|
299
|
-
| `DiscoveryCategory` | type DiscoveryCategory = z.infer<typeof discoveryCategorySchema> | 0.5.0 or earlier
|
|
300
|
-
| `DiscoveryEndpoint` | type DiscoveryEndpoint = z.infer<typeof discoveryEndpointSchema> | 0.5.0 or earlier
|
|
301
|
-
| `DiscoveryService` | type DiscoveryService = ServiceSummary | 0.5.0 or earlier
|
|
302
|
-
| `DocsAskResponse` | type DocsAskResponse = { answer: string; sources: DocsSource[] } |
|
|
303
|
-
| `DocsErrorCode` | type DocsErrorCode = "invalid_input" \| "host_not_allowed" \| "not_found" \| "timeout" \| "bad_response" |
|
|
304
|
-
| `DocsReadResponse` | type DocsReadResponse = { url: string; markdown: string } |
|
|
305
|
-
| `DocsRequestOptions` | type DocsRequestOptions = { fetchImpl?: typeof fetch; env?: NodeJS.ProcessEnv; timeoutMs?: number } |
|
|
306
|
-
| `DocsSearchOptions` | type DocsSearchOptions = DocsRequestOptions & { limit?: number } |
|
|
307
|
-
| `DocsSearchResponse` | type DocsSearchResponse = { results: DocsSearchResult[] } |
|
|
308
|
-
| `DocsSearchResult` | type DocsSearchResult = { title: string; url: string; excerpt: string } |
|
|
309
|
-
| `DocsSource` | type DocsSource = { title: string; url: string } |
|
|
310
|
-
| `Eip3009Authorization` | type Eip3009Authorization = { from: Address; to: Address; value: string; validAfter: "0"; validBefore: string; nonce: Hex; } | 0.5.0 or earlier
|
|
311
|
-
| `EvmX402PaymentRequirements` | type EvmX402PaymentRequirements = { scheme: "exact"; network: `eip155:${number}`; asset: Address; amount: string; payTo: Address; maxTimeoutSeconds: number; extra: Record<string, unknown> & { name: string; version: string }; } | 0.5.0 or earlier
|
|
312
|
-
| `ExecutionMode` | type ExecutionMode = z.infer<typeof executionModeSchema> | 0.5.0 or earlier
|
|
313
|
-
| `FirstPartyProvenance` | type FirstPartyProvenance = z.infer<typeof firstPartyProvenanceSchema> | 0.5.0 or earlier
|
|
314
|
-
| `FundingPageOptions` | type FundingPageOptions = { amount?: number; } | 0.5.0 or earlier
|
|
315
|
-
| `GasTokenBalance` | type GasTokenBalance = AccountBalance & { symbol: string; } | 0.5.0 or earlier
|
|
316
|
-
| `Hex` | type Hex = `0x${string}` | 0.5.0 or earlier
|
|
317
|
-
| `ImportedWallet` | type ImportedWallet = ResolvedWallet & { account: VapiPaymentAccount; } | 0.5.0 or earlier
|
|
318
|
-
| `LatencyPercentiles` | type LatencyPercentiles = Readonly<{ p50Ms: number \| null; p95Ms: number \| null }> | 0.5.0 or earlier
|
|
319
|
-
| `LayoutMigration` | type LayoutMigration = { moved: boolean; from?: string; to?: string; } | 0.5.0 or earlier
|
|
320
|
-
| `LegacyRegistryRewrite` | type LegacyRegistryRewrite = { field: string; from: string; to: string; } | 0.5.0 or earlier
|
|
321
|
-
| `LegacyVapiKeystore` | type LegacyVapiKeystore = z.infer<typeof legacyKeystoreSchema> | 0.5.0 or earlier
|
|
322
|
-
| `LinkResult` | type LinkResult = { tokens: AgentTokens; owner: `0x${string}`; routerKey?: string; routerBaseUrl?: string; routerKeyError?: string; } | 0.5.0 or earlier
|
|
323
|
-
| `ListAccountsArgs` | type ListAccountsArgs = { address: string; solanaAddress?: string; config: VapiConfig; fetchImpl?: typeof fetch; lookup?: LookupFn; adapters?: Readonly<Record<string, AccountNetworkAdapter>>; } | 0.5.0 or earlier
|
|
324
|
-
| `Listing` | interface Listing | 0.4.0
|
|
325
|
-
| `ListingConformance` | type ListingConformance = z.infer<typeof listingConformanceSchema> | 0.5.0 or earlier
|
|
326
|
-
| `ListingFee` | type ListingFee = z.infer<typeof listingFeeSchema> | 0.5.0 or earlier
|
|
327
|
-
| `ListingGroup` | type ListingGroup = z.infer<typeof listingGroupSchema> | 0.5.0 or earlier
|
|
328
|
-
| `ListingIdentity` | type ListingIdentity = z.infer<typeof listingIdentitySchema> | 0.5.0 or earlier
|
|
329
|
-
| `
|
|
330
|
-
| `
|
|
331
|
-
| `
|
|
332
|
-
| `
|
|
333
|
-
| `
|
|
334
|
-
| `
|
|
335
|
-
| `
|
|
336
|
-
| `
|
|
337
|
-
| `
|
|
338
|
-
| `
|
|
339
|
-
| `
|
|
340
|
-
| `
|
|
341
|
-
| `
|
|
342
|
-
| `
|
|
343
|
-
| `
|
|
344
|
-
| `
|
|
345
|
-
| `
|
|
346
|
-
| `
|
|
347
|
-
| `
|
|
348
|
-
| `
|
|
349
|
-
| `
|
|
350
|
-
| `
|
|
351
|
-
| `
|
|
352
|
-
| `
|
|
353
|
-
| `
|
|
354
|
-
| `
|
|
355
|
-
| `
|
|
356
|
-
| `
|
|
357
|
-
| `
|
|
358
|
-
| `
|
|
359
|
-
| `
|
|
360
|
-
| `
|
|
361
|
-
| `
|
|
362
|
-
| `
|
|
363
|
-
| `
|
|
364
|
-
| `
|
|
365
|
-
| `
|
|
366
|
-
| `
|
|
367
|
-
| `
|
|
368
|
-
| `
|
|
369
|
-
| `
|
|
370
|
-
| `
|
|
371
|
-
| `
|
|
372
|
-
| `
|
|
373
|
-
| `
|
|
374
|
-
| `
|
|
375
|
-
| `
|
|
376
|
-
| `
|
|
377
|
-
| `
|
|
378
|
-
| `
|
|
379
|
-
| `
|
|
380
|
-
| `
|
|
381
|
-
| `
|
|
382
|
-
| `
|
|
383
|
-
| `
|
|
384
|
-
| `
|
|
385
|
-
| `
|
|
386
|
-
| `
|
|
387
|
-
| `
|
|
388
|
-
| `
|
|
389
|
-
| `
|
|
390
|
-
| `
|
|
391
|
-
| `
|
|
392
|
-
| `
|
|
393
|
-
| `
|
|
394
|
-
| `
|
|
395
|
-
| `
|
|
396
|
-
| `
|
|
397
|
-
| `
|
|
398
|
-
| `
|
|
399
|
-
| `
|
|
400
|
-
| `
|
|
401
|
-
| `
|
|
402
|
-
| `
|
|
403
|
-
| `
|
|
404
|
-
| `
|
|
405
|
-
| `
|
|
406
|
-
| `
|
|
407
|
-
| `
|
|
408
|
-
| `
|
|
409
|
-
| `
|
|
410
|
-
| `
|
|
411
|
-
| `
|
|
412
|
-
| `
|
|
413
|
-
| `
|
|
414
|
-
| `
|
|
415
|
-
| `
|
|
416
|
-
| `
|
|
417
|
-
| `
|
|
418
|
-
| `
|
|
419
|
-
| `
|
|
420
|
-
| `
|
|
276
|
+
| Name | What it is | Since |
|
|
277
|
+
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
|
|
278
|
+
| `AccountBalance` | type AccountBalance = { atomic: string; formatted: string; } | 0.5.0 or earlier |
|
|
279
|
+
| `AccountInfo` | type AccountInfo = { caip2: string; name: string; address: string; usdcBalance: AccountBalance \| null; gasTokenBalance?: GasTokenBalance \| null; depositUrl?: string; depositInstructions?: string; error?: string; } | 0.5.0 or earlier |
|
|
280
|
+
| `AccountNetworkAdapter` | type AccountNetworkAdapter = ( context: AccountNetworkAdapterContext, ) => Promise<Omit<AccountInfo, "caip2">> | 0.5.0 or earlier |
|
|
281
|
+
| `AccountNetworkAdapterContext` | type AccountNetworkAdapterContext = { caip2: string; configured: VapiConfig["networks"][string]; defaultAddress: string; allowPrivateNetwork?: boolean; fetchImpl?: typeof fetch; lookup?: LookupFn; } | 0.5.0 or earlier |
|
|
282
|
+
| `Address` | type Address = ResolvedRegister['addressType'] | 0.5.0 or earlier |
|
|
283
|
+
| `AgentCashConfig` | type AgentCashConfig = VapiConfig | 0.5.0 or earlier |
|
|
284
|
+
| `AgentCashKeystore` | type AgentCashKeystore = VapiKeystore | 0.5.0 or earlier |
|
|
285
|
+
| `AgentCashPaths` | type AgentCashPaths = VapiPaths | 0.5.0 or earlier |
|
|
286
|
+
| `AgentLink` | type AgentLink = { apiBase: string; clientId: string; owner: `0x${string}`; label: string; scopes: string[]; linkedAt: string; routerBaseUrl?: string; } | 0.5.0 or earlier |
|
|
287
|
+
| `AgentMarker` | type AgentMarker = (typeof AGENT_MARKER_VARIABLES)[number] | 0.5.0 or earlier |
|
|
288
|
+
| `AgentProfile` | type AgentProfile = z.infer<typeof agentProfileSchema> | 0.5.0 or earlier |
|
|
289
|
+
| `AgentProfileInput` | type AgentProfileInput = z.input<typeof agentProfileSchema> | 0.5.0 or earlier |
|
|
290
|
+
| `AgentRouterUsage` | type AgentRouterUsage = { compute: { allowanceUsd: number; spentTodayUsd: number; remainingTodayUsd: number; resetsAt: string; ownerLimitUsd: number; ownerSpentUsd: number; }; balance: { purchasedUsd: number; spentUsd: number; remainingUsd: number } \| null; } | 0.5.0 or earlier |
|
|
291
|
+
| `AgentTokens` | type AgentTokens = { accessToken: string; refreshToken: string; expiresAt: number; scopes: string[]; } | 0.5.0 or earlier |
|
|
292
|
+
| `ApiMarketplaceHit` | type ApiMarketplaceHit = z.infer<typeof apiMarketplaceHitSchema> | 0.5.0 or earlier |
|
|
293
|
+
| `AuditEntry` | type AuditEntry = AuditRecord & { time: string } | 0.5.0 or earlier |
|
|
294
|
+
| `AuditEvent` | type AuditEvent = (typeof AUDIT_EVENTS)[number] | 0.5.0 or earlier |
|
|
295
|
+
| `AuditOptions` | type AuditOptions = { now?: () => Date; } | 0.5.0 or earlier |
|
|
296
|
+
| `AuditRecord` | type AuditRecord = { event: AuditEvent; wallet?: string; owner?: string; tty: boolean; agentMarker?: string; detail?: string; } | 0.5.0 or earlier |
|
|
297
|
+
| `AuthorizationState` | type AuthorizationState = "settled" \| "expired" \| "pending" | 0.5.0 or earlier |
|
|
298
|
+
| `CallableCategory` | type CallableCategory = z.infer<typeof callableCategorySchema> | 0.5.0 or earlier |
|
|
299
|
+
| `CallTarget` | type CallTarget = DiscoveryEndpoint | 0.5.0 or earlier |
|
|
300
|
+
| `CanonicalX402UsdcIdentity` | type CanonicalX402UsdcIdentity = Readonly<{ usdc: Address; eip712Domain: X402TokenDomain; }> | 0.5.0 or earlier |
|
|
301
|
+
| `CanonicalX402UsdcNetwork` | type CanonicalX402UsdcNetwork = typeof BASE_MAINNET_CAIP2 \| typeof ARC_MAINNET_CAIP2 \| typeof ARC_TESTNET_CAIP2 | 0.5.0 or earlier |
|
|
302
|
+
| `ChatMessage` | type ChatMessage = { role: "system" \| "user" \| "assistant" \| "tool"; content: string; name?: string; tool_call_id?: string; tool_calls?: Array<{ id: string; type: "function"; function: { name: string; arguments: string }; }>; } | 0.5.0 or earlier |
|
|
303
|
+
| `ChatRequest` | type ChatRequest = { model: string; messages: ChatMessage[]; max_tokens?: number; temperature?: number; tools?: unknown[]; tool_choice?: unknown; } | 0.5.0 or earlier |
|
|
304
|
+
| `ChatResult` | type ChatResult = { content: string \| null; toolCalls: Array<{ id: string; name: string; arguments: string }>; usage?: { prompt_tokens: number; completion_tokens: number; total_tokens: number }; model: string; keyUsed: "stake" \| "balance"; } | 0.5.0 or earlier |
|
|
305
|
+
| `CompleteX402PaymentArgs` | type CompleteX402PaymentArgs = { challenge: X402PaymentAttempt; account: VapiPaymentAccount; caps: SpendCaps; config: VapiConfig; send(request: Request, quote: X402Quote): Promise<X402PaymentAttempt>; consumeResponse?: (response: Response) => Promise<T>; ... | 0.5.0 or earlier |
|
|
306
|
+
| `CompleteX402PaymentResult` | type CompleteX402PaymentResult = { response: Response; request: Request; body: T \| undefined; quote: X402Quote; payer: string; paymentId?: string; settlement: unknown \| null; settlementOutcome: X402SettlementOutcome; } | 0.5.0 or earlier |
|
|
307
|
+
| `ConfiguredNetwork` | type ConfiguredNetwork = { rpcUrl: string; usdc: string; } | 0.5.0 or earlier |
|
|
308
|
+
| `CreatedWallet` | type CreatedWallet = ResolvedWallet & { account: VapiPaymentAccount; recoveryPhrase: string; } | 0.5.0 or earlier |
|
|
309
|
+
| `CreateKeystoreOptions` | type CreateKeystoreOptions = { enableSolana?: boolean; phrase?: string; } | 0.5.0 or earlier |
|
|
310
|
+
| `CreateSupportReportOptions` | type CreateSupportReportOptions = { message: string; includeAddresses?: boolean; send?: boolean; reportsDirectory?: string; receiptsPath?: string; clientVersion?: string; now?: Date; systemInfo?: SupportSystemInfo; registryUrl?: string; env?: NodeJS.Process... | 0.5.0 or earlier |
|
|
311
|
+
| `CreateSupportReportResult` | type CreateSupportReportResult = { path: string; issueUrl: string; report: SupportReport; responseCode?: number; } | 0.5.0 or earlier |
|
|
312
|
+
| `DefaultConfigOptions` | type DefaultConfigOptions = { networks?: readonly string[]; } | 0.5.0 or earlier |
|
|
313
|
+
| `DeviceLinkStart` | type DeviceLinkStart = { clientId: string; deviceCode: string; userCode: string; verificationUri: string; verificationUriComplete: string; expiresIn: number; interval: number; } | 0.5.0 or earlier |
|
|
314
|
+
| `DiscoverServicesResult` | type DiscoverServicesResult = SearchServicesResponse | 0.5.0 or earlier |
|
|
315
|
+
| `DiscoveryCatalog` | type DiscoveryCatalog = { services: DiscoveryService[]; resolve(serviceId: string, endpointName?: string): CallTarget; resolveListing(serviceId: string, endpointName?: string): ResolvedListing; } | 0.5.0 or earlier |
|
|
316
|
+
| `DiscoveryCatalogErrorCode` | type DiscoveryCatalogErrorCode = \| "no_endpoint" \| "ambiguous_default" \| "malformed_url" \| "blank_method" \| "invalid_endpoint_name" \| "duplicate_endpoint_name" \| "service_not_found" \| "endpoint_not_found" \| "invalid_discovery" | 0.5.0 or earlier |
|
|
317
|
+
| `DiscoveryCategory` | type DiscoveryCategory = z.infer<typeof discoveryCategorySchema> | 0.5.0 or earlier |
|
|
318
|
+
| `DiscoveryEndpoint` | type DiscoveryEndpoint = z.infer<typeof discoveryEndpointSchema> | 0.5.0 or earlier |
|
|
319
|
+
| `DiscoveryService` | type DiscoveryService = ServiceSummary | 0.5.0 or earlier |
|
|
320
|
+
| `DocsAskResponse` | type DocsAskResponse = { answer: string; sources: DocsSource[] } | 0.9.0 |
|
|
321
|
+
| `DocsErrorCode` | type DocsErrorCode = "invalid_input" \| "host_not_allowed" \| "not_found" \| "timeout" \| "bad_response" | 0.9.0 |
|
|
322
|
+
| `DocsReadResponse` | type DocsReadResponse = { url: string; markdown: string } | 0.9.0 |
|
|
323
|
+
| `DocsRequestOptions` | type DocsRequestOptions = { fetchImpl?: typeof fetch; env?: NodeJS.ProcessEnv; timeoutMs?: number } | 0.9.0 |
|
|
324
|
+
| `DocsSearchOptions` | type DocsSearchOptions = DocsRequestOptions & { limit?: number } | 0.9.0 |
|
|
325
|
+
| `DocsSearchResponse` | type DocsSearchResponse = { results: DocsSearchResult[] } | 0.9.0 |
|
|
326
|
+
| `DocsSearchResult` | type DocsSearchResult = { title: string; url: string; excerpt: string } | 0.9.0 |
|
|
327
|
+
| `DocsSource` | type DocsSource = { title: string; url: string } | 0.9.0 |
|
|
328
|
+
| `Eip3009Authorization` | type Eip3009Authorization = { from: Address; to: Address; value: string; validAfter: "0"; validBefore: string; nonce: Hex; } | 0.5.0 or earlier |
|
|
329
|
+
| `EvmX402PaymentRequirements` | type EvmX402PaymentRequirements = { scheme: "exact"; network: `eip155:${number}`; asset: Address; amount: string; payTo: Address; maxTimeoutSeconds: number; extra: Record<string, unknown> & { name: string; version: string }; } | 0.5.0 or earlier |
|
|
330
|
+
| `ExecutionMode` | type ExecutionMode = z.infer<typeof executionModeSchema> | 0.5.0 or earlier |
|
|
331
|
+
| `FirstPartyProvenance` | type FirstPartyProvenance = z.infer<typeof firstPartyProvenanceSchema> | 0.5.0 or earlier |
|
|
332
|
+
| `FundingPageOptions` | type FundingPageOptions = { amount?: number; } | 0.5.0 or earlier |
|
|
333
|
+
| `GasTokenBalance` | type GasTokenBalance = AccountBalance & { symbol: string; } | 0.5.0 or earlier |
|
|
334
|
+
| `Hex` | type Hex = `0x${string}` | 0.5.0 or earlier |
|
|
335
|
+
| `ImportedWallet` | type ImportedWallet = ResolvedWallet & { account: VapiPaymentAccount; } | 0.5.0 or earlier |
|
|
336
|
+
| `LatencyPercentiles` | type LatencyPercentiles = Readonly<{ p50Ms: number \| null; p95Ms: number \| null }> | 0.5.0 or earlier |
|
|
337
|
+
| `LayoutMigration` | type LayoutMigration = { moved: boolean; from?: string; to?: string; } | 0.5.0 or earlier |
|
|
338
|
+
| `LegacyRegistryRewrite` | type LegacyRegistryRewrite = { field: string; from: string; to: string; } | 0.5.0 or earlier |
|
|
339
|
+
| `LegacyVapiKeystore` | type LegacyVapiKeystore = z.infer<typeof legacyKeystoreSchema> | 0.5.0 or earlier |
|
|
340
|
+
| `LinkResult` | type LinkResult = { tokens: AgentTokens; owner: `0x${string}`; routerKey?: string; routerBaseUrl?: string; routerKeyError?: string; } | 0.5.0 or earlier |
|
|
341
|
+
| `ListAccountsArgs` | type ListAccountsArgs = { address: string; solanaAddress?: string; config: VapiConfig; fetchImpl?: typeof fetch; lookup?: LookupFn; adapters?: Readonly<Record<string, AccountNetworkAdapter>>; } | 0.5.0 or earlier |
|
|
342
|
+
| `Listing` | interface Listing | 0.4.0 |
|
|
343
|
+
| `ListingConformance` | type ListingConformance = z.infer<typeof listingConformanceSchema> | 0.5.0 or earlier |
|
|
344
|
+
| `ListingFee` | type ListingFee = z.infer<typeof listingFeeSchema> | 0.5.0 or earlier |
|
|
345
|
+
| `ListingGroup` | type ListingGroup = z.infer<typeof listingGroupSchema> | 0.5.0 or earlier |
|
|
346
|
+
| `ListingIdentity` | type ListingIdentity = z.infer<typeof listingIdentitySchema> | 0.5.0 or earlier |
|
|
347
|
+
| `ListingHealth` | type inferred from `listingHealthSchema` | 0.11.0 |
|
|
348
|
+
| `ListingHealthState` | type inferred from `listingHealthStateSchema` | 0.11.0 |
|
|
349
|
+
| `MarketplaceAlternative` | type inferred from `marketplaceAlternativeSchema` | 0.11.0 |
|
|
350
|
+
| `ListingLiveness` | type ListingLiveness = z.infer<typeof listingLivenessSchema> | 0.5.0 or earlier |
|
|
351
|
+
| `ListingProvenance` | type ListingProvenance = Readonly<{ source: string; sourceUrl?: string; ref?: string; }> | 0.5.0 or earlier |
|
|
352
|
+
| `ListingVerification` | type ListingVerification = z.infer<typeof listingVerificationSchema> | 0.5.0 or earlier |
|
|
353
|
+
| `ListServicesResponse` | type ListServicesResponse = z.infer<typeof listServicesResponseSchema> | 0.5.0 or earlier |
|
|
354
|
+
| `LoadConfigOptions` | type LoadConfigOptions = { notice?: (message: string) => void; } | 0.5.0 or earlier |
|
|
355
|
+
| `LookupFn` | type LookupFn = (hostname: string) => Promise<string[]> | 0.5.0 or earlier |
|
|
356
|
+
| `MarketplaceBadge` | type MarketplaceBadge = z.infer<typeof marketplaceBadgeSchema> | 0.5.0 or earlier |
|
|
357
|
+
| `MarketplaceBadgeCode` | type MarketplaceBadgeCode = z.infer<typeof marketplaceBadgeCodeSchema> | 0.5.0 or earlier |
|
|
358
|
+
| `MarketplaceDiscoveryInput` | type MarketplaceDiscoveryInput = z.infer<typeof marketplaceDiscoveryInputSchema> | 0.5.0 or earlier |
|
|
359
|
+
| `MarketplaceDiscoveryPage` | type MarketplaceDiscoveryPage = z.infer<typeof marketplaceDiscoveryPageSchema> | 0.5.0 or earlier |
|
|
360
|
+
| `MarketplaceExecutionMethod` | type MarketplaceExecutionMethod = z.infer<typeof marketplaceExecutionMethodSchema> | 0.5.0 or earlier |
|
|
361
|
+
| `MarketplaceHit` | type MarketplaceHit = z.infer<typeof marketplaceHitSchema> | 0.5.0 or earlier |
|
|
362
|
+
| `MarketplaceKind` | type MarketplaceKind = z.infer<typeof marketplaceKindSchema> | 0.5.0 or earlier |
|
|
363
|
+
| `MarketplacePublicFact` | type MarketplacePublicFact = z.infer<typeof marketplacePublicFactSchema> | 0.5.0 or earlier |
|
|
364
|
+
| `MigrationOptions` | type MigrationOptions = { targetDirectory?: string; legacyDirectory?: string; notice?: (message: string) => void; } | 0.5.0 or earlier |
|
|
365
|
+
| `NetworkDefinition` | type NetworkDefinition = { family: "evm" \| "svm"; chainId?: number; name: string; usdc: string; gasToken: "ETH" \| "USDC" \| "SOL"; rpcEnv: string; publicRpcUrl?: string; explorerUrl?: string; } | 0.5.0 or earlier |
|
|
366
|
+
| `NetworkTransportOptions` | type NetworkTransportOptions = { allowPrivateNetwork?: boolean; fetch?: typeof fetch; lookup?: LookupFn; } | 0.5.0 or earlier |
|
|
367
|
+
| `OpenRequestMarketplaceHit` | type OpenRequestMarketplaceHit = z.infer<typeof openRequestMarketplaceHitSchema> | 0.5.0 or earlier |
|
|
368
|
+
| `PassphraseSource` | type PassphraseSource = "environment" \| "secret-store" \| "prompt" | 0.5.0 or earlier |
|
|
369
|
+
| `PaymentIntent` | type PaymentIntent = Readonly<{ amountAtomic: bigint; network: string; payTo: Address; resourceUrl?: string; }> | 0.5.0 or earlier |
|
|
370
|
+
| `PayRequestArgs` | type PayRequestArgs = { url: string; init: RequestInit; account: VapiPaymentAccount; wallet: WalletName; caps: SpendCaps; config: VapiConfig; fetchImpl: typeof fetch; paths?: { ledgerPath?: string; receiptsPath?: string }; maxAtomic?: bigint; preferNetworks... | 0.5.0 or earlier |
|
|
371
|
+
| `PayRequestResult` | type PayRequestResult = { response: Response; receipt: Receipt } | 0.5.0 or earlier |
|
|
372
|
+
| `Policy` | interface Policy | 0.5.0 or earlier |
|
|
373
|
+
| `Provenance` | type Provenance = z.infer<typeof provenanceSchema> | 0.5.0 or earlier |
|
|
374
|
+
| `Receipt` | interface Receipt | 0.5.0 or earlier |
|
|
375
|
+
| `ReceiptOutcome` | type ReceiptOutcome = NonNullable<Receipt["outcome"]> | 0.5.0 or earlier |
|
|
376
|
+
| `ReceiptSettlementCheck` | type ReceiptSettlementCheck = { network: string; token: string; authorizer: string; nonce: string; validBefore: string; chainTime: string; state: AuthorizationState; } | 0.5.0 or earlier |
|
|
377
|
+
| `ResolvedListing` | type ResolvedListing = { service: DiscoveryService; endpoint: CallTarget; } | 0.5.0 or earlier |
|
|
378
|
+
| `ResolvedPassphrase` | type ResolvedPassphrase = { passphrase: string; source: PassphraseSource; } | 0.5.0 or earlier |
|
|
379
|
+
| `ResolvedWallet` | type ResolvedWallet = { name: WalletName; path: string; entry: WalletEntry; } | 0.5.0 or earlier |
|
|
380
|
+
| `ResolvePassphraseOptions` | type ResolvePassphraseOptions = { env?: NodeJS.ProcessEnv \| undefined; store?: SecretStore \| undefined; prompt?: ((prompt: string, noTerminalHint?: string) => Promise<string>) \| undefined; interactive?: boolean \| undefined; confirm?: boolean \| undefined; } | 0.5.0 or earlier |
|
|
381
|
+
| `RouterModel` | type RouterModel = { id: string; [k: string]: unknown } | 0.5.0 or earlier |
|
|
382
|
+
| `RouterRefill` | type RouterRefill = { belowUsd: number; tierUsd: RouterTopupTier } | 0.5.0 or earlier |
|
|
383
|
+
| `RouterTopupTier` | type RouterTopupTier = (typeof ROUTER_TOPUP_TIERS)[number] | 0.5.0 or earlier |
|
|
384
|
+
| `SearchEvent` | interface SearchEvent | 0.5.0 or earlier |
|
|
385
|
+
| `SearchServicesResponse` | type SearchServicesResponse = z.infer<typeof searchServicesResponseSchema> | 0.5.0 or earlier |
|
|
386
|
+
| `SecretsDecision` | type SecretsDecision = { allowed: boolean; reason?: string; marker?: AgentMarker; } | 0.5.0 or earlier |
|
|
387
|
+
| `SecretsStreams` | type SecretsStreams = { stdinIsTTY: boolean; stdoutIsTTY: boolean; } | 0.5.0 or earlier |
|
|
388
|
+
| `SecretStore` | type SecretStore = { available: boolean; platform: NodeJS.Platform; description: string; get(name: string): Promise<string \| undefined>; has(name: string): Promise<boolean>; set(name: string, passphrase: string): Promise<void>; remove(name: string): Promise... | 0.5.0 or earlier |
|
|
389
|
+
| `SecretStoreOptions` | type SecretStoreOptions = { platform?: NodeJS.Platform \| undefined; run?: SecretStoreRunner \| undefined; } | 0.5.0 or earlier |
|
|
390
|
+
| `SecretStoreOutcome` | type SecretStoreOutcome = { code: number \| null; stdout: string; stderr: string; notFound?: boolean; } | 0.5.0 or earlier |
|
|
391
|
+
| `SecretStoreRunner` | type SecretStoreRunner = ( file: string, args: readonly string[], input?: string, ) => Promise<SecretStoreOutcome> | 0.5.0 or earlier |
|
|
392
|
+
| `ServiceOfferMarketplaceHit` | type ServiceOfferMarketplaceHit = z.infer<typeof serviceOfferMarketplaceHitSchema> | 0.5.0 or earlier |
|
|
393
|
+
| `ServiceStats` | interface ServiceStats | 0.5.0 or earlier |
|
|
394
|
+
| `ServiceSummary` | type ServiceSummary = z.infer<typeof serviceSummarySchema> | 0.5.0 or earlier |
|
|
395
|
+
| `ServiceTier` | type ServiceTier = z.infer<typeof serviceTierSchema> | 0.5.0 or earlier |
|
|
396
|
+
| `Signer` | interface Signer | 0.5.0 or earlier |
|
|
397
|
+
| `SIWxChallenge` | type SIWxChallenge = Readonly<{ info: SIWxExtensionInfo; chain: SIWxSupportedChain; }> | 0.5.0 or earlier |
|
|
398
|
+
| `SIWxExtensionInfo` | type SIWxExtensionInfo = Readonly<{ domain: string; uri: string; statement?: string; version: "1"; nonce: string; issuedAt: string; expirationTime?: string; notBefore?: string; requestId?: string; resources?: readonly string[]; }> | 0.5.0 or earlier |
|
|
399
|
+
| `SIWxPayload` | type SIWxPayload = SIWxExtensionInfo & Readonly<{ address: Address; chainId: `eip155:${number}`; type: SIWxSignatureType; signatureScheme?: SIWxSupportedChain["signatureScheme"]; signature: Hex; }> | 0.5.0 or earlier |
|
|
400
|
+
| `SIWxSignatureType` | type SIWxSignatureType = "eip191" | 0.5.0 or earlier |
|
|
401
|
+
| `SIWxSigner` | type SIWxSigner = Readonly<{ address: Address; signMessage(args: { message: string }): Promise<Hex>; }> | 0.5.0 or earlier |
|
|
402
|
+
| `SIWxSupportedChain` | type SIWxSupportedChain = Readonly<{ chainId: `eip155:${number}`; type: SIWxSignatureType; signatureScheme?: "eip191" \| "eip1271" \| "eip6492"; }> | 0.5.0 or earlier |
|
|
403
|
+
| `Source` | interface Source | 0.5.0 or earlier |
|
|
404
|
+
| `SourceSearchOptions` | type SourceSearchOptions = Readonly<{ includeUnverified?: boolean; includeOutage?: boolean; }> | 0.5.0 or earlier (`includeOutage` since 0.11.0) |
|
|
405
|
+
| `SpendCaps` | type SpendCaps = z.infer<typeof spendCapsSchema> | 0.5.0 or earlier |
|
|
406
|
+
| `SpendLedger` | type SpendLedger = z.infer<typeof ledgerSchema> | 0.5.0 or earlier |
|
|
407
|
+
| `SpendLedgerRow` | type SpendLedgerRow = SpendLedger & { wallet: WalletName } | 0.5.0 or earlier |
|
|
408
|
+
| `StatsRange` | type StatsRange = (typeof STATS_RANGES)[number] | 0.5.0 or earlier |
|
|
409
|
+
| `StatsReport` | interface StatsReport | 0.5.0 or earlier |
|
|
410
|
+
| `SupportReport` | type SupportReport = { message: string; clientVersion: string; os: { platform: string; release: string; arch: string; }; node: string; receiptIds: string[]; receiptAddresses?: Array<{ receiptId: string; payer?: string; payTo?: string; }>; } | 0.5.0 or earlier |
|
|
411
|
+
| `SupportSystemInfo` | type SupportSystemInfo = { platform: string; release: string; arch: string; node: string; } | 0.5.0 or earlier |
|
|
412
|
+
| `SvmX402PaymentRequirements` | type SvmX402PaymentRequirements = { scheme: "exact"; network: `solana:${string}`; asset: string; amount: string; payTo: string; maxTimeoutSeconds: number; extra: Record<string, unknown> & { feePayer: string }; } | 0.5.0 or earlier |
|
|
413
|
+
| `SweepResult` | type SweepResult = { network: string; amountAtomic: string; transaction: string; } | 0.5.0 or earlier |
|
|
414
|
+
| `TrashedWallet` | type TrashedWallet = { name: WalletName; removedAt: string; path: string; entry?: WalletEntry; } | 0.5.0 or earlier |
|
|
415
|
+
| `VapiConfig` | type VapiConfig = z.infer<typeof configSchema> | 0.5.0 or earlier |
|
|
416
|
+
| `VapiKeystore` | type VapiKeystore = z.infer<typeof keystoreSchema> | 0.5.0 or earlier |
|
|
417
|
+
| `VapiKeystoreV3` | type VapiKeystoreV3 = z.infer<typeof keystoreV3Schema> | 0.5.0 or earlier |
|
|
418
|
+
| `VapiPaths` | type VapiPaths = { directory: string; agentsDir: string; config: string; keystore: string; receipts: string; searches: string; ledger: string; updateCheck: string; } | 0.5.0 or earlier |
|
|
419
|
+
| `VapiPaymentAccount` | type VapiPaymentAccount = ReturnType<typeof privateKeyToAccount> & { readonly solana?: KeyPairSigner; } | 0.5.0 or earlier |
|
|
420
|
+
| `Wallet` | interface Wallet | 0.5.0 or earlier |
|
|
421
|
+
| `WalletBalanceReader` | type WalletBalanceReader = (address: string) => Promise<bigint> | 0.5.0 or earlier |
|
|
422
|
+
| `WalletEntry` | type WalletEntry = z.infer<typeof walletEntrySchema> | 0.5.0 or earlier |
|
|
423
|
+
| `WalletInfo` | type WalletInfo = ResolvedWallet & { address?: string; solanaAddress?: string; keystoreVersion?: number; isDefault: boolean; spendCaps: SpendCaps; label?: string; createdAt: string; } | 0.5.0 or earlier |
|
|
424
|
+
| `WalletName` | type WalletName = string | 0.5.0 or earlier |
|
|
425
|
+
| `WalletRegistry` | type WalletRegistry = z.infer<typeof walletRegistrySchema> | 0.5.0 or earlier |
|
|
426
|
+
| `WalletSelection` | type WalletSelection = { name?: string \| undefined; env?: NodeJS.ProcessEnv \| undefined; } | 0.5.0 or earlier |
|
|
427
|
+
| `WalletStoreOptions` | type WalletStoreOptions = { now?: () => Date; } | 0.5.0 or earlier |
|
|
428
|
+
| `X402CompatiblePaymentHeaders` | type X402CompatiblePaymentHeaders = X402PaymentHeaders & { "X-PAYMENT": string; } | 0.5.0 or earlier |
|
|
429
|
+
| `X402NetworkConfig` | type X402NetworkConfig = Readonly< Record< string, Readonly<{ usdc: string; rpcUrl?: string; enabled?: boolean; eip712Domain?: X402TokenDomain; }> > > | 0.5.0 or earlier |
|
|
430
|
+
| `X402PaymentAttempt` | type X402PaymentAttempt = { response: Response; request: Request; finish(): void; waitFor<T>(operation: Promise<T>, response: Response): Promise<T>; } | 0.5.0 or earlier |
|
|
431
|
+
| `X402PaymentHeaders` | type X402PaymentHeaders = { "PAYMENT-SIGNATURE": string; } | 0.5.0 or earlier |
|
|
432
|
+
| `X402PaymentPayload` | type X402PaymentPayload = { x402Version: 2; resource: X402Resource; accepted: X402PaymentRequirements; payload: { signature: Hex; authorization: Eip3009Authorization } \| { transaction: string }; extensions?: Record<string, unknown>; } | 0.5.0 or earlier |
|
|
433
|
+
| `X402PaymentRequirements` | type X402PaymentRequirements = EvmX402PaymentRequirements \| SvmX402PaymentRequirements | 0.5.0 or earlier |
|
|
434
|
+
| `X402PaymentTrace` | type X402PaymentTrace = { phases: { quoteMs?: number; signMs?: number; requestMs?: number; settleMs?: number; }; quote?: NonNullable<Receipt["quote"]>; payer?: string; paymentId?: string; authorization?: NonNullable<Receipt["authorization"]>; settlement?: N... | 0.5.0 or earlier |
|
|
435
|
+
| `X402PossibleSettlement` | type X402PossibleSettlement = { network: string; asset: string; amountAtomic: string; payTo: string; payer: string; paymentId?: string; authorizationNonce?: string; authorizationExpiresAt?: string; authorizationTransaction?: string; receipt: unknown \| null; } | 0.5.0 or earlier |
|
|
436
|
+
| `X402Quote` | type X402Quote = { x402Version: 2; amountAtomic: bigint; resource: X402Resource; accepted: X402PaymentRequirements; extensions?: Record<string, unknown>; rpcUrl?: string; } | 0.5.0 or earlier |
|
|
437
|
+
| `X402Resource` | type X402Resource = { url: string; description?: string; mimeType?: string; serviceName?: string; tags?: string[]; iconUrl?: string; } | 0.5.0 or earlier |
|
|
438
|
+
| `X402SettlementOutcome` | type X402SettlementOutcome = "succeeded" \| "rejected" \| "unknown" | 0.5.0 or earlier |
|
|
439
|
+
| `X402Signer` | type X402Signer = { address: Address; signTypedData(typedData: X402TypedData): Promise<Hex>; solana?: ConstructorParameters<typeof ExactSvmScheme>[0]; } | 0.5.0 or earlier |
|
|
440
|
+
| `X402TokenDomain` | type X402TokenDomain = Readonly<{ name: string; version: string; }> | 0.5.0 or earlier |
|
|
441
|
+
| `X402TypedData` | type X402TypedData = { domain: { name: string; version: string; chainId: number; verifyingContract: Address; }; types: typeof EIP3009_AUTHORIZATION_TYPES; primaryType: "TransferWithAuthorization"; message: { from: Address; to: Address; value: bigint; validA... | 0.5.0 or earlier |
|
|
421
442
|
|
|
422
443
|
### `@vapi-network/core/secrets`
|
|
423
444
|
|