@vapi-network/core 0.9.0 → 0.9.4

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.
Files changed (53) hide show
  1. package/README.md +2 -2
  2. package/dist/api-key.js +2 -1
  3. package/dist/api-key.js.map +1 -1
  4. package/dist/backup.js +2 -1
  5. package/dist/backup.js.map +1 -1
  6. package/dist/call-contracts-wire.d.ts +176 -110
  7. package/dist/call-contracts-wire.d.ts.map +1 -1
  8. package/dist/call-contracts.d.ts +7 -1
  9. package/dist/call-contracts.d.ts.map +1 -1
  10. package/dist/cloud-backup.js +2 -1
  11. package/dist/cloud-backup.js.map +1 -1
  12. package/dist/config.d.ts +1 -0
  13. package/dist/config.d.ts.map +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +1138 -973
  17. package/dist/index.js.map +3 -3
  18. package/dist/marketplace-contracts.d.ts +126 -86
  19. package/dist/marketplace-contracts.d.ts.map +1 -1
  20. package/dist/router-client.d.ts +2 -2
  21. package/dist/router-client.d.ts.map +1 -1
  22. package/dist/router-client.js +84 -20
  23. package/dist/router-client.js.map +2 -2
  24. package/dist/searches.d.ts +1 -0
  25. package/dist/searches.d.ts.map +1 -1
  26. package/dist/secrets.js +2 -1
  27. package/dist/secrets.js.map +1 -1
  28. package/dist/support-report.d.ts +1 -1
  29. package/dist/tasks/chain-error.d.ts.map +1 -1
  30. package/dist/tasks/chain-port.d.ts +2 -0
  31. package/dist/tasks/chain-port.d.ts.map +1 -1
  32. package/dist/tasks/chain.d.ts.map +1 -1
  33. package/dist/tasks/client.d.ts.map +1 -1
  34. package/dist/tasks/index.d.ts +1 -0
  35. package/dist/tasks/index.d.ts.map +1 -1
  36. package/dist/tasks/operation-support.d.ts.map +1 -1
  37. package/dist/tasks/operations.d.ts +56 -1
  38. package/dist/tasks/operations.d.ts.map +1 -1
  39. package/dist/tasks/types.d.ts +5 -5
  40. package/dist/tasks/types.d.ts.map +1 -1
  41. package/dist/tasks/wait.d.ts +18 -0
  42. package/dist/tasks/wait.d.ts.map +1 -0
  43. package/dist/tasks.js +249 -46
  44. package/dist/tasks.js.map +3 -3
  45. package/dist/vault-key.d.ts +4 -0
  46. package/dist/vault-key.d.ts.map +1 -1
  47. package/dist/wallet-store.d.ts +2 -0
  48. package/dist/wallet-store.d.ts.map +1 -1
  49. package/dist/x402-networks.d.ts +1 -0
  50. package/dist/x402-networks.d.ts.map +1 -1
  51. package/dist/x402-pay.d.ts +2 -2
  52. package/dist/x402-pay.d.ts.map +1 -1
  53. package/package.json +1 -1
package/README.md CHANGED
@@ -284,7 +284,7 @@ Seven entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-n
284
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
285
  | `ChatRequest` | type ChatRequest = { model: string; messages: ChatMessage[]; max_tokens?: number; temperature?: number; tools?: unknown[]; tool_choice?: unknown; } | 0.5.0 or earlier |
286
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): Promise<X402PaymentAttempt>; consumeResponse?: (response: Response) => Promise<T>; fetchImpl?: typeof f... | 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
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
289
  | `ConfiguredNetwork` | type ConfiguredNetwork = { rpcUrl: string; usdc: string; } | 0.5.0 or earlier |
290
290
  | `CreatedWallet` | type CreatedWallet = ResolvedWallet & { account: VapiPaymentAccount; recoveryPhrase: string; } | 0.5.0 or earlier |
@@ -394,7 +394,7 @@ Seven entry points: `@vapi-network/core`, `@vapi-network/core/secrets`, `@vapi-n
394
394
  | `VapiConfig` | type VapiConfig = z.infer<typeof configSchema> | 0.5.0 or earlier |
395
395
  | `VapiKeystore` | type VapiKeystore = z.infer<typeof keystoreSchema> | 0.5.0 or earlier |
396
396
  | `VapiKeystoreV3` | type VapiKeystoreV3 = z.infer<typeof keystoreV3Schema> | 0.5.0 or earlier |
397
- | `VapiPaths` | type VapiPaths = { directory: string; agentsDir: string; config: string; keystore: string; receipts: string; searches: string; ledger: string; } | 0.5.0 or earlier |
397
+ | `VapiPaths` | type VapiPaths = { directory: string; agentsDir: string; config: string; keystore: string; receipts: string; searches: string; ledger: string; updateCheck: string; } | 0.5.0 or earlier |
398
398
  | `VapiPaymentAccount` | type VapiPaymentAccount = ReturnType<typeof privateKeyToAccount> & { readonly solana?: KeyPairSigner; } | 0.5.0 or earlier |
399
399
  | `Wallet` | interface Wallet | 0.5.0 or earlier |
400
400
  | `WalletBalanceReader` | type WalletBalanceReader = (address: string) => Promise<bigint> | 0.5.0 or earlier |
package/dist/api-key.js CHANGED
@@ -19898,7 +19898,8 @@ function getVapiPaths(directory = process.env.VAPI_HOME?.trim() || join(homedir(
19898
19898
  keystore: join(directory, "keystore.json"),
19899
19899
  receipts: join(directory, "receipts.jsonl"),
19900
19900
  searches: join(directory, "searches.jsonl"),
19901
- ledger: join(directory, "spend-ledger.json")
19901
+ ledger: join(directory, "spend-ledger.json"),
19902
+ updateCheck: join(directory, "update-check.json")
19902
19903
  };
19903
19904
  }
19904
19905
  function getDefaultConfig(source = process.env, options = {}) {