@vapi-network/mcp 0.5.0 → 0.8.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 +59 -5
- package/dist/actions/accounts.d.ts +53 -0
- package/dist/actions/call-read.d.ts +28 -0
- package/dist/actions/call.d.ts +458 -0
- package/dist/actions/context.d.ts +90 -0
- package/dist/actions/define.d.ts +16 -0
- package/dist/actions/policy.d.ts +17 -0
- package/dist/actions/register.d.ts +915 -0
- package/dist/actions/swarm-agent.d.ts +178 -0
- package/dist/actions/swarm.d.ts +1586 -0
- package/dist/agent/deps.d.ts +12 -1
- package/dist/agent/run.d.ts +78 -2
- package/dist/agent/runtime.d.ts +154 -0
- package/dist/agent/swarm-run.d.ts +94 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.js +14465 -4453
- package/dist/index.js.map +3 -3
- package/dist/server.d.ts +19 -6
- package/dist/tools/accounts.d.ts +145 -0
- package/dist/tools/auth.d.ts +2 -0
- package/dist/tools/call.d.ts +8 -1
- package/dist/tools/siblings.d.ts +70 -0
- package/dist/tools/status.d.ts +116 -0
- package/dist/wallet-session.d.ts +21 -25
- package/package.json +1 -1
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { DetachedRunSummary } from "../agent/runtime.js";
|
|
3
|
+
import type { SwarmRunActionInput, SwarmRunActionResult, SwarmRunsInput, SwarmRunsResult } from "./context.js";
|
|
4
|
+
export type { SwarmRunInput, SwarmRunResult } from "../agent/swarm-run.js";
|
|
5
|
+
export type { SwarmRunActionInput, SwarmRunActionResult, SwarmRunsInput, SwarmRunsResult, } from "./context.js";
|
|
6
|
+
export declare const swarmRunInputSchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
task: z.ZodString;
|
|
9
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
lead: "lead";
|
|
11
|
+
each: "each";
|
|
12
|
+
}>>;
|
|
13
|
+
lead: z.ZodOptional<z.ZodString>;
|
|
14
|
+
budgetUsd: z.ZodOptional<z.ZodString>;
|
|
15
|
+
drawUsd: z.ZodOptional<z.ZodString>;
|
|
16
|
+
detach: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export declare const attachedSwarmRunOutputSchema: z.ZodObject<{
|
|
19
|
+
runId: z.ZodString;
|
|
20
|
+
mode: z.ZodEnum<{
|
|
21
|
+
lead: "lead";
|
|
22
|
+
each: "each";
|
|
23
|
+
}>;
|
|
24
|
+
members: z.ZodArray<z.ZodObject<{
|
|
25
|
+
member: z.ZodString;
|
|
26
|
+
role: z.ZodString;
|
|
27
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
28
|
+
parentRunId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
30
|
+
stoppedBecause: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
reason: z.ZodString;
|
|
32
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
spentUsd: z.ZodNullable<z.ZodNumber>;
|
|
35
|
+
budgetUsd: z.ZodNumber;
|
|
36
|
+
status: z.ZodEnum<{
|
|
37
|
+
error: "error";
|
|
38
|
+
stopped: "stopped";
|
|
39
|
+
finished: "finished";
|
|
40
|
+
skipped: "skipped";
|
|
41
|
+
}>;
|
|
42
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
drawUsedUsd: z.ZodNumber;
|
|
45
|
+
drawLimitUsd: z.ZodNumber;
|
|
46
|
+
net: z.ZodArray<z.ZodObject<{
|
|
47
|
+
member: z.ZodString;
|
|
48
|
+
balanceUsd: z.ZodString;
|
|
49
|
+
allocatedInUsd: z.ZodString;
|
|
50
|
+
sweptOutUsd: z.ZodString;
|
|
51
|
+
netUsd: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
netError: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export declare const detachedRunSummarySchema: z.ZodType<DetachedRunSummary>;
|
|
56
|
+
export declare const detachedSwarmRunOutputSchema: z.ZodObject<{
|
|
57
|
+
detached: z.ZodLiteral<true>;
|
|
58
|
+
runId: z.ZodString;
|
|
59
|
+
mode: z.ZodEnum<{
|
|
60
|
+
lead: "lead";
|
|
61
|
+
each: "each";
|
|
62
|
+
}>;
|
|
63
|
+
kind: z.ZodEnum<{
|
|
64
|
+
local: "local";
|
|
65
|
+
railway: "railway";
|
|
66
|
+
}>;
|
|
67
|
+
runs: z.ZodArray<z.ZodType<DetachedRunSummary, unknown, z.core.$ZodTypeInternals<DetachedRunSummary, unknown>>>;
|
|
68
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
69
|
+
member: z.ZodString;
|
|
70
|
+
role: z.ZodString;
|
|
71
|
+
reason: z.ZodString;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export declare const swarmRunOutputSchema: z.ZodType<SwarmRunActionResult>;
|
|
75
|
+
export declare const swarmRunsInputSchema: z.ZodObject<{
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export declare const swarmRunsOutputSchema: z.ZodType<SwarmRunsResult>;
|
|
79
|
+
export declare const swarmAllocateInputSchema: z.ZodObject<{
|
|
80
|
+
amountUsd: z.ZodString;
|
|
81
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
82
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export declare const swarmAllocateOutputSchema: z.ZodObject<{
|
|
85
|
+
status: z.ZodEnum<{
|
|
86
|
+
sent: "sent";
|
|
87
|
+
incomplete: "incomplete";
|
|
88
|
+
blocked: "blocked";
|
|
89
|
+
resumed: "resumed";
|
|
90
|
+
}>;
|
|
91
|
+
movementId: z.ZodNullable<z.ZodString>;
|
|
92
|
+
sentUsd: z.ZodString;
|
|
93
|
+
blocked: z.ZodArray<z.ZodObject<{
|
|
94
|
+
to: z.ZodString;
|
|
95
|
+
amountUsd: z.ZodString;
|
|
96
|
+
reason: z.ZodString;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export declare const swarmDelegateInputSchema: z.ZodObject<{
|
|
100
|
+
member: z.ZodString;
|
|
101
|
+
task: z.ZodString;
|
|
102
|
+
budgetUsd: z.ZodString;
|
|
103
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export declare const swarmDelegateOutputSchema: z.ZodObject<{
|
|
106
|
+
member: z.ZodString;
|
|
107
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
108
|
+
answer: z.ZodNullable<z.ZodString>;
|
|
109
|
+
stoppedBecause: z.ZodNullable<z.ZodObject<{
|
|
110
|
+
reason: z.ZodString;
|
|
111
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
spentUsd: z.ZodNullable<z.ZodNumber>;
|
|
114
|
+
budgetUsd: z.ZodNumber;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export type SwarmAllocateResult = z.infer<typeof swarmAllocateOutputSchema>;
|
|
117
|
+
export type SwarmDelegateResult = z.infer<typeof swarmDelegateOutputSchema>;
|
|
118
|
+
export declare const swarmRun: import("./define.js").Action<SwarmRunActionInput, SwarmRunActionResult>;
|
|
119
|
+
export declare const swarmRuns: import("./define.js").Action<SwarmRunsInput, SwarmRunsResult>;
|
|
120
|
+
export declare const swarmAllocate: import("./define.js").Action<{
|
|
121
|
+
amountUsd: string;
|
|
122
|
+
reason?: string | undefined;
|
|
123
|
+
requestId?: string | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
status: "sent" | "incomplete" | "blocked" | "resumed";
|
|
126
|
+
movementId: string | null;
|
|
127
|
+
sentUsd: string;
|
|
128
|
+
blocked: {
|
|
129
|
+
to: string;
|
|
130
|
+
amountUsd: string;
|
|
131
|
+
reason: string;
|
|
132
|
+
}[];
|
|
133
|
+
}>;
|
|
134
|
+
export declare const swarmDelegate: import("./define.js").Action<{
|
|
135
|
+
member: string;
|
|
136
|
+
task: string;
|
|
137
|
+
budgetUsd: string;
|
|
138
|
+
requestId?: string | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
member: string;
|
|
141
|
+
runId: string | null;
|
|
142
|
+
answer: string | null;
|
|
143
|
+
stoppedBecause: {
|
|
144
|
+
reason: string;
|
|
145
|
+
detail?: string | undefined;
|
|
146
|
+
} | null;
|
|
147
|
+
spentUsd: number | null;
|
|
148
|
+
budgetUsd: number;
|
|
149
|
+
}>;
|
|
150
|
+
export declare const swarmAgentActions: readonly [import("./define.js").Action<SwarmRunActionInput, SwarmRunActionResult>, import("./define.js").Action<{
|
|
151
|
+
amountUsd: string;
|
|
152
|
+
reason?: string | undefined;
|
|
153
|
+
requestId?: string | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
status: "sent" | "incomplete" | "blocked" | "resumed";
|
|
156
|
+
movementId: string | null;
|
|
157
|
+
sentUsd: string;
|
|
158
|
+
blocked: {
|
|
159
|
+
to: string;
|
|
160
|
+
amountUsd: string;
|
|
161
|
+
reason: string;
|
|
162
|
+
}[];
|
|
163
|
+
}>, import("./define.js").Action<{
|
|
164
|
+
member: string;
|
|
165
|
+
task: string;
|
|
166
|
+
budgetUsd: string;
|
|
167
|
+
requestId?: string | undefined;
|
|
168
|
+
}, {
|
|
169
|
+
member: string;
|
|
170
|
+
runId: string | null;
|
|
171
|
+
answer: string | null;
|
|
172
|
+
stoppedBecause: {
|
|
173
|
+
reason: string;
|
|
174
|
+
detail?: string | undefined;
|
|
175
|
+
} | null;
|
|
176
|
+
spentUsd: number | null;
|
|
177
|
+
budgetUsd: number;
|
|
178
|
+
}>, import("./define.js").Action<SwarmRunsInput, SwarmRunsResult>];
|