vapi-network 0.14.0 → 0.15.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 +128 -377
- package/SKILL.md +1 -1
- package/dist/cli.js +50800 -48975
- package/dist/cli.js.map +3 -3
- package/dist/client.d.ts +3 -6
- package/dist/index.js +48766 -46944
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type AgentRouterUsage, type ChatRequest, type ChatResult, type DocsAskResponse, type DocsReadResponse, type DocsSearchResponse, type
|
|
1
|
+
import { type AgentRouterUsage, type ChatRequest, type ChatResult, type DocsAskResponse, type DocsReadResponse, type DocsSearchResponse, type RouterPurchaseResult, type RouterModel, type SecretStore, type VapiPaymentAccount } from "@vapi-network/core";
|
|
2
2
|
import { type RouterTopupTier } from "@vapi-network/core/router-client";
|
|
3
3
|
import { type CallToolInput, type CallToolResult, type InspectToolResult, type RunAgentDeps, type RunAgentResult } from "@vapi-network/mcp";
|
|
4
4
|
export type VapiClientOptions = {
|
|
5
5
|
/** Account name. Defaults to VAPI_WALLET, then the vault default. Pass a viem/VapiPaymentAccount object instead to sign with an injected server account. */
|
|
6
6
|
account?: string | VapiPaymentAccount;
|
|
7
|
-
/** @deprecated Use `account
|
|
7
|
+
/** @deprecated Use `account`; removed in the next major release. */
|
|
8
8
|
wallet?: string;
|
|
9
9
|
/** Local state directory. Defaults to VAPI_HOME or ~/.vapi. */
|
|
10
10
|
home?: string;
|
|
@@ -33,10 +33,7 @@ export type VapiClient = {
|
|
|
33
33
|
router: {
|
|
34
34
|
models(): Promise<RouterModel[]>;
|
|
35
35
|
usage(): Promise<AgentRouterUsage>;
|
|
36
|
-
buy(usd: RouterTopupTier): Promise<
|
|
37
|
-
receipt: Receipt;
|
|
38
|
-
balance: AgentRouterUsage["balance"];
|
|
39
|
-
}>;
|
|
36
|
+
buy(usd: RouterTopupTier): Promise<RouterPurchaseResult>;
|
|
40
37
|
chat(req: ChatRequest): Promise<ChatResult>;
|
|
41
38
|
/**
|
|
42
39
|
* Base URL and key for any OpenAI-compatible framework. The key stays in
|