vapi-network 0.7.0 → 0.9.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 +162 -84
- package/dist/cli.js +30751 -12251
- package/dist/cli.js.map +3 -3
- package/dist/client.d.ts +8 -1
- package/dist/index.js +33127 -14441
- package/dist/index.js.map +3 -3
- package/package.json +11 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AgentRouterUsage, type ChatRequest, type ChatResult, type Receipt, type RouterModel, type SecretStore, type VapiPaymentAccount } from "@vapi-network/core";
|
|
1
|
+
import { type AgentRouterUsage, type ChatRequest, type ChatResult, type DocsAskResponse, type DocsReadResponse, type DocsSearchResponse, type Receipt, 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 = {
|
|
@@ -53,6 +53,13 @@ export type VapiClient = {
|
|
|
53
53
|
onEvent?: RunAgentDeps["onEvent"];
|
|
54
54
|
}): Promise<RunAgentResult>;
|
|
55
55
|
};
|
|
56
|
+
docs: {
|
|
57
|
+
search(query: string, opts?: {
|
|
58
|
+
limit?: number;
|
|
59
|
+
}): Promise<DocsSearchResponse>;
|
|
60
|
+
read(pageUrlOrPath: string): Promise<DocsReadResponse>;
|
|
61
|
+
ask(question: string): Promise<DocsAskResponse>;
|
|
62
|
+
};
|
|
56
63
|
};
|
|
57
64
|
/** A wallet-bound SDK facade over vAPI Call, vAPI Router, and local agents. */
|
|
58
65
|
export declare function createVapiClient(options?: VapiClientOptions): Promise<VapiClient>;
|