@vapi-network/mcp 0.8.0 → 0.9.2
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 +24 -21
- package/dist/actions/call.d.ts +3 -3
- package/dist/actions/register.d.ts +5 -3
- package/dist/agent/guards.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +9370 -2367
- package/dist/index.js.map +3 -3
- package/dist/server.d.ts +11 -4
- package/dist/tools/call.d.ts +12 -2
- package/dist/tools/docs.d.ts +36 -0
- package/dist/tools/tasks.d.ts +383 -0
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -5,12 +5,13 @@ import { callService, type CallToolInput, type CallToolResult } from "./tools/ca
|
|
|
5
5
|
import { type AccountsToolOverrides } from "./tools/accounts.js";
|
|
6
6
|
import { type AuthAgentLinkOverrides } from "./tools/auth.js";
|
|
7
7
|
import { type RouterCoreOverrides } from "./tools/router.js";
|
|
8
|
+
import { type TasksOverrides } from "./tools/tasks.js";
|
|
8
9
|
import { type StatusCoreOverrides } from "./tools/status.js";
|
|
9
10
|
export { callService, type CallToolInput, type CallToolResult };
|
|
10
11
|
export type VapiServerOptions = {
|
|
11
12
|
/** The account opened before stdio was connected. */
|
|
12
|
-
account
|
|
13
|
-
config
|
|
13
|
+
account?: VapiPaymentAccount;
|
|
14
|
+
config?: VapiConfig;
|
|
14
15
|
fetchImpl?: typeof fetch;
|
|
15
16
|
ledgerPath?: string;
|
|
16
17
|
receiptsPath?: string;
|
|
@@ -29,6 +30,8 @@ export type VapiServerOptions = {
|
|
|
29
30
|
agentLink?: AuthAgentLinkOverrides | undefined;
|
|
30
31
|
/** Core Router functions overridden by deterministic tests. */
|
|
31
32
|
router?: RouterCoreOverrides | undefined;
|
|
33
|
+
/** Task transport, chain adapter and clocks overridden by deterministic tests. */
|
|
34
|
+
tasks?: TasksOverrides | undefined;
|
|
32
35
|
/** Status probes and clock overridden by deterministic tests. */
|
|
33
36
|
status?: StatusCoreOverrides | undefined;
|
|
34
37
|
/** Account-link functions, device identity and clock overridden by deterministic tests. */
|
|
@@ -59,7 +62,6 @@ type ListedTool = {
|
|
|
59
62
|
inputSchema: unknown;
|
|
60
63
|
outputSchema?: unknown;
|
|
61
64
|
};
|
|
62
|
-
/** Minimal MCP server implementation for stdio and deterministic in-memory tests. */
|
|
63
65
|
export declare class VapiMcpServer {
|
|
64
66
|
#private;
|
|
65
67
|
constructor(onClose?: () => void);
|
|
@@ -74,7 +76,7 @@ export declare class VapiMcpServer {
|
|
|
74
76
|
connectStdio(): void;
|
|
75
77
|
close(): Promise<void>;
|
|
76
78
|
}
|
|
77
|
-
export declare function createVapiServer(options
|
|
79
|
+
export declare function createVapiServer(options?: VapiServerOptions): VapiMcpServer;
|
|
78
80
|
export declare function startStdioServer(options: VapiServerOptions): Promise<VapiMcpServer>;
|
|
79
81
|
export declare function loadServerConfig(): Promise<{
|
|
80
82
|
discoveryUrl: string;
|
|
@@ -98,5 +100,10 @@ export declare function loadServerConfig(): Promise<{
|
|
|
98
100
|
marketplaceDiscoveryUrl: string;
|
|
99
101
|
}[] | undefined;
|
|
100
102
|
allowPrivateNetwork?: boolean | undefined;
|
|
103
|
+
tasksEscrowDurationOverrides?: Record<string, {
|
|
104
|
+
workDurationSeconds?: number | undefined;
|
|
105
|
+
reviewWindowSeconds?: number | undefined;
|
|
106
|
+
}> | undefined;
|
|
107
|
+
tasksEscrowFactoryOverrides?: Record<string, string> | undefined;
|
|
101
108
|
device?: string | undefined;
|
|
102
109
|
}>;
|
package/dist/tools/call.d.ts
CHANGED
|
@@ -31,16 +31,26 @@ export type ConfirmedSettlement = {
|
|
|
31
31
|
receipt: unknown;
|
|
32
32
|
};
|
|
33
33
|
export declare class VapiCallError extends Error {
|
|
34
|
-
readonly code: "invalid_request" | "payment_rejected" | "receipt_write_failed" | "response_unreadable" | "settlement_unknown";
|
|
34
|
+
readonly code: "invalid_request" | "unsupported_network" | "payment_rejected" | "receipt_write_failed" | "response_unreadable" | "settlement_unknown";
|
|
35
35
|
readonly possibleSettlement?: PossibleSettlement | undefined;
|
|
36
36
|
readonly name = "VapiCallError";
|
|
37
37
|
readonly paymentRejection?: PaymentRejection;
|
|
38
38
|
readonly confirmedSettlement?: ConfirmedSettlement;
|
|
39
|
-
constructor(code: "invalid_request" | "payment_rejected" | "receipt_write_failed" | "response_unreadable" | "settlement_unknown", message: string, possibleSettlement?: PossibleSettlement | undefined, options?: ErrorOptions & {
|
|
39
|
+
constructor(code: "invalid_request" | "unsupported_network" | "payment_rejected" | "receipt_write_failed" | "response_unreadable" | "settlement_unknown", message: string, possibleSettlement?: PossibleSettlement | undefined, options?: ErrorOptions & {
|
|
40
40
|
paymentRejection?: PaymentRejection;
|
|
41
41
|
confirmedSettlement?: ConfirmedSettlement;
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* The Solana network a listing pays on: its endpoint's payment network, or —
|
|
46
|
+
* when the endpoint carries none, as for mirrored rows resolved through the
|
|
47
|
+
* services API — the service's declared networks when every one is Solana.
|
|
48
|
+
*/
|
|
49
|
+
export declare function listingPaymentNetwork(endpointNetwork: string | undefined, serviceNetworks: readonly string[] | undefined): string | undefined;
|
|
50
|
+
/** Refuse listing payments before any request, reservation, or signing. */
|
|
51
|
+
export declare function assertSupportedListingNetwork(network: string | undefined): void;
|
|
52
|
+
/** A selector cannot make a service payable when all its endpoints use Solana. */
|
|
53
|
+
export declare function assertSupportedListingResolution(error: unknown): void;
|
|
44
54
|
export type CallToolResult = {
|
|
45
55
|
status: number;
|
|
46
56
|
body: unknown;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type DocsReadResponse, type DocsSearchResponse } from "@vapi-network/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export declare const docsSearchTool: {
|
|
4
|
+
description: string;
|
|
5
|
+
inputSchema: {
|
|
6
|
+
query: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
outputSchema: z.ZodObject<{
|
|
9
|
+
results: z.ZodArray<z.ZodObject<{
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
url: z.ZodString;
|
|
12
|
+
excerpt: z.ZodString;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
};
|
|
16
|
+
export declare const docsReadTool: {
|
|
17
|
+
description: string;
|
|
18
|
+
inputSchema: {
|
|
19
|
+
url: z.ZodString;
|
|
20
|
+
};
|
|
21
|
+
outputSchema: z.ZodObject<{
|
|
22
|
+
url: z.ZodString;
|
|
23
|
+
markdown: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
};
|
|
26
|
+
export declare function createDocsTools(options: {
|
|
27
|
+
fetchImpl?: typeof fetch;
|
|
28
|
+
env?: NodeJS.ProcessEnv;
|
|
29
|
+
}): {
|
|
30
|
+
search(input: {
|
|
31
|
+
query: string;
|
|
32
|
+
}): Promise<DocsSearchResponse>;
|
|
33
|
+
read(input: {
|
|
34
|
+
url: string;
|
|
35
|
+
}): Promise<DocsReadResponse>;
|
|
36
|
+
};
|
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { type SecretStore, type WalletStore } from "@vapi-network/core";
|
|
2
|
+
import { type TasksChain, type TasksClient, type TasksClientOptions } from "@vapi-network/core/tasks";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import type { WalletSession } from "../wallet-session.js";
|
|
5
|
+
export declare const tasksSearchTool: {
|
|
6
|
+
description: string;
|
|
7
|
+
inputSchema: {
|
|
8
|
+
open: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
minUsd: z.ZodOptional<z.ZodString>;
|
|
10
|
+
tab: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
paid: "paid";
|
|
12
|
+
trending: "trending";
|
|
13
|
+
new: "new";
|
|
14
|
+
closing: "closing";
|
|
15
|
+
}>>;
|
|
16
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
};
|
|
18
|
+
strictInput: true;
|
|
19
|
+
};
|
|
20
|
+
export declare const tasksShowTool: {
|
|
21
|
+
description: string;
|
|
22
|
+
inputSchema: {
|
|
23
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
24
|
+
id: z.ZodUUID;
|
|
25
|
+
};
|
|
26
|
+
strictInput: true;
|
|
27
|
+
};
|
|
28
|
+
export declare const tasksPostTool: {
|
|
29
|
+
description: string;
|
|
30
|
+
inputSchema: {
|
|
31
|
+
title: z.ZodString;
|
|
32
|
+
brief: z.ZodString;
|
|
33
|
+
amountUsd: z.ZodString;
|
|
34
|
+
deadline: z.ZodString;
|
|
35
|
+
intake: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
proposals: "proposals";
|
|
37
|
+
submissions: "submissions";
|
|
38
|
+
}>>;
|
|
39
|
+
maxAwards: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
webhookUrl: z.ZodOptional<z.ZodURL>;
|
|
41
|
+
vendor: z.ZodOptional<z.ZodString>;
|
|
42
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
43
|
+
};
|
|
44
|
+
strictInput: true;
|
|
45
|
+
};
|
|
46
|
+
export declare const tasksProposeTool: {
|
|
47
|
+
description: string;
|
|
48
|
+
inputSchema: {
|
|
49
|
+
priceUsd: z.ZodString;
|
|
50
|
+
duration: z.ZodString;
|
|
51
|
+
note: z.ZodString;
|
|
52
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
53
|
+
id: z.ZodUUID;
|
|
54
|
+
};
|
|
55
|
+
strictInput: true;
|
|
56
|
+
};
|
|
57
|
+
export declare const tasksSubmitTool: {
|
|
58
|
+
description: string;
|
|
59
|
+
inputSchema: {
|
|
60
|
+
proofUrls: z.ZodArray<z.ZodURL>;
|
|
61
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
63
|
+
id: z.ZodUUID;
|
|
64
|
+
};
|
|
65
|
+
strictInput: true;
|
|
66
|
+
};
|
|
67
|
+
export declare const tasksAwardTool: {
|
|
68
|
+
description: string;
|
|
69
|
+
inputSchema: {
|
|
70
|
+
proposalId: z.ZodUUID;
|
|
71
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
72
|
+
id: z.ZodUUID;
|
|
73
|
+
};
|
|
74
|
+
strictInput: true;
|
|
75
|
+
};
|
|
76
|
+
export declare const tasksSignTool: {
|
|
77
|
+
description: string;
|
|
78
|
+
inputSchema: {
|
|
79
|
+
wait: z.ZodDefault<z.ZodBoolean>;
|
|
80
|
+
counterparty: z.ZodOptional<z.ZodString>;
|
|
81
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
82
|
+
id: z.ZodUUID;
|
|
83
|
+
};
|
|
84
|
+
strictInput: true;
|
|
85
|
+
};
|
|
86
|
+
export declare const tasksFundTool: {
|
|
87
|
+
description: string;
|
|
88
|
+
inputSchema: {
|
|
89
|
+
wait: z.ZodDefault<z.ZodBoolean>;
|
|
90
|
+
counterparty: z.ZodOptional<z.ZodString>;
|
|
91
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
92
|
+
id: z.ZodUUID;
|
|
93
|
+
};
|
|
94
|
+
strictInput: true;
|
|
95
|
+
};
|
|
96
|
+
export declare const tasksDeliverTool: {
|
|
97
|
+
description: string;
|
|
98
|
+
inputSchema: {
|
|
99
|
+
wait: z.ZodDefault<z.ZodBoolean>;
|
|
100
|
+
files: z.ZodArray<z.ZodString>;
|
|
101
|
+
note: z.ZodString;
|
|
102
|
+
counterparty: z.ZodOptional<z.ZodString>;
|
|
103
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
104
|
+
id: z.ZodUUID;
|
|
105
|
+
};
|
|
106
|
+
strictInput: true;
|
|
107
|
+
};
|
|
108
|
+
export declare const tasksReleaseTool: {
|
|
109
|
+
description: string;
|
|
110
|
+
inputSchema: {
|
|
111
|
+
wait: z.ZodDefault<z.ZodBoolean>;
|
|
112
|
+
counterparty: z.ZodOptional<z.ZodString>;
|
|
113
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
114
|
+
id: z.ZodUUID;
|
|
115
|
+
};
|
|
116
|
+
strictInput: true;
|
|
117
|
+
};
|
|
118
|
+
export declare const tasksRefundTool: {
|
|
119
|
+
description: string;
|
|
120
|
+
inputSchema: {
|
|
121
|
+
counterparty: z.ZodOptional<z.ZodString>;
|
|
122
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
123
|
+
id: z.ZodUUID;
|
|
124
|
+
};
|
|
125
|
+
strictInput: true;
|
|
126
|
+
};
|
|
127
|
+
export declare const tasksDisputeTool: {
|
|
128
|
+
description: string;
|
|
129
|
+
inputSchema: {
|
|
130
|
+
evidenceHash: z.ZodString;
|
|
131
|
+
counterparty: z.ZodOptional<z.ZodString>;
|
|
132
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
133
|
+
id: z.ZodUUID;
|
|
134
|
+
};
|
|
135
|
+
strictInput: true;
|
|
136
|
+
};
|
|
137
|
+
export declare const tasksCounterEvidenceTool: {
|
|
138
|
+
description: string;
|
|
139
|
+
inputSchema: {
|
|
140
|
+
evidenceHash: z.ZodString;
|
|
141
|
+
counterparty: z.ZodOptional<z.ZodString>;
|
|
142
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
143
|
+
id: z.ZodUUID;
|
|
144
|
+
};
|
|
145
|
+
strictInput: true;
|
|
146
|
+
};
|
|
147
|
+
export declare const tasksResolveUnmatchedTool: {
|
|
148
|
+
description: string;
|
|
149
|
+
inputSchema: {
|
|
150
|
+
counterparty: z.ZodOptional<z.ZodString>;
|
|
151
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
152
|
+
id: z.ZodUUID;
|
|
153
|
+
};
|
|
154
|
+
strictInput: true;
|
|
155
|
+
};
|
|
156
|
+
export declare const tasksMessageTool: {
|
|
157
|
+
description: string;
|
|
158
|
+
inputSchema: {
|
|
159
|
+
text: z.ZodString;
|
|
160
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
161
|
+
id: z.ZodUUID;
|
|
162
|
+
};
|
|
163
|
+
strictInput: true;
|
|
164
|
+
};
|
|
165
|
+
export declare const tasksThreadTool: {
|
|
166
|
+
description: string;
|
|
167
|
+
inputSchema: {
|
|
168
|
+
after: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
170
|
+
id: z.ZodUUID;
|
|
171
|
+
};
|
|
172
|
+
strictInput: true;
|
|
173
|
+
};
|
|
174
|
+
export declare const tasksWatchTool: {
|
|
175
|
+
description: string;
|
|
176
|
+
inputSchema: {
|
|
177
|
+
after: z.ZodDefault<z.ZodNumber>;
|
|
178
|
+
until: z.ZodOptional<z.ZodEnum<{
|
|
179
|
+
paid: "paid";
|
|
180
|
+
cancelled: "cancelled";
|
|
181
|
+
open: "open";
|
|
182
|
+
awarded: "awarded";
|
|
183
|
+
funded: "funded";
|
|
184
|
+
delivered: "delivered";
|
|
185
|
+
released: "released";
|
|
186
|
+
refunded: "refunded";
|
|
187
|
+
disputed: "disputed";
|
|
188
|
+
expired: "expired";
|
|
189
|
+
closed: "closed";
|
|
190
|
+
completed: "completed";
|
|
191
|
+
}>>;
|
|
192
|
+
waitSeconds: z.ZodDefault<z.ZodNumber>;
|
|
193
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
194
|
+
id: z.ZodUUID;
|
|
195
|
+
};
|
|
196
|
+
strictInput: true;
|
|
197
|
+
};
|
|
198
|
+
export declare const tasksStatusTool: {
|
|
199
|
+
description: string;
|
|
200
|
+
inputSchema: {
|
|
201
|
+
wallet: z.ZodOptional<z.ZodString>;
|
|
202
|
+
id: z.ZodUUID;
|
|
203
|
+
};
|
|
204
|
+
strictInput: true;
|
|
205
|
+
};
|
|
206
|
+
export type TasksOverrides = {
|
|
207
|
+
client?: TasksClient | ((options: TasksClientOptions) => TasksClient);
|
|
208
|
+
chain?: TasksChain;
|
|
209
|
+
randomUUID?: () => string;
|
|
210
|
+
now?: () => Date;
|
|
211
|
+
sleep?: (ms: number) => Promise<void>;
|
|
212
|
+
};
|
|
213
|
+
type TasksToolsOptions = TasksOverrides & {
|
|
214
|
+
session: WalletSession;
|
|
215
|
+
secrets: SecretStore;
|
|
216
|
+
wallets?: WalletStore | undefined;
|
|
217
|
+
fetchImpl: typeof fetch;
|
|
218
|
+
apiBase: string;
|
|
219
|
+
ledgerPath?: string | undefined;
|
|
220
|
+
};
|
|
221
|
+
type Input<T extends {
|
|
222
|
+
inputSchema: z.ZodRawShape;
|
|
223
|
+
}> = z.infer<z.ZodObject<T["inputSchema"]>>;
|
|
224
|
+
export declare function createTasksTools(options: TasksToolsOptions): {
|
|
225
|
+
search(input: Input<typeof tasksSearchTool>): Promise<{
|
|
226
|
+
structuredContent: {};
|
|
227
|
+
content: {
|
|
228
|
+
type: "text";
|
|
229
|
+
text: string;
|
|
230
|
+
}[];
|
|
231
|
+
isError?: true | undefined;
|
|
232
|
+
}>;
|
|
233
|
+
show(input: Input<typeof tasksShowTool>): Promise<{
|
|
234
|
+
structuredContent: {};
|
|
235
|
+
content: {
|
|
236
|
+
type: "text";
|
|
237
|
+
text: string;
|
|
238
|
+
}[];
|
|
239
|
+
isError?: true | undefined;
|
|
240
|
+
}>;
|
|
241
|
+
post(input: Input<typeof tasksPostTool>): Promise<{
|
|
242
|
+
structuredContent: {};
|
|
243
|
+
content: {
|
|
244
|
+
type: "text";
|
|
245
|
+
text: string;
|
|
246
|
+
}[];
|
|
247
|
+
isError?: true | undefined;
|
|
248
|
+
}>;
|
|
249
|
+
propose(input: Input<typeof tasksProposeTool>): Promise<{
|
|
250
|
+
structuredContent: {};
|
|
251
|
+
content: {
|
|
252
|
+
type: "text";
|
|
253
|
+
text: string;
|
|
254
|
+
}[];
|
|
255
|
+
isError?: true | undefined;
|
|
256
|
+
}>;
|
|
257
|
+
submit(input: Input<typeof tasksSubmitTool>): Promise<{
|
|
258
|
+
structuredContent: {};
|
|
259
|
+
content: {
|
|
260
|
+
type: "text";
|
|
261
|
+
text: string;
|
|
262
|
+
}[];
|
|
263
|
+
isError?: true | undefined;
|
|
264
|
+
}>;
|
|
265
|
+
award(input: Input<typeof tasksAwardTool>): Promise<{
|
|
266
|
+
structuredContent: {};
|
|
267
|
+
content: {
|
|
268
|
+
type: "text";
|
|
269
|
+
text: string;
|
|
270
|
+
}[];
|
|
271
|
+
isError?: true | undefined;
|
|
272
|
+
}>;
|
|
273
|
+
sign(input: Input<typeof tasksSignTool>): Promise<{
|
|
274
|
+
structuredContent: {};
|
|
275
|
+
content: {
|
|
276
|
+
type: "text";
|
|
277
|
+
text: string;
|
|
278
|
+
}[];
|
|
279
|
+
isError?: true | undefined;
|
|
280
|
+
} | {
|
|
281
|
+
isError: true;
|
|
282
|
+
content: {
|
|
283
|
+
type: "text";
|
|
284
|
+
text: string;
|
|
285
|
+
}[];
|
|
286
|
+
}>;
|
|
287
|
+
fund(input: Input<typeof tasksFundTool>): Promise<{
|
|
288
|
+
structuredContent: {};
|
|
289
|
+
content: {
|
|
290
|
+
type: "text";
|
|
291
|
+
text: string;
|
|
292
|
+
}[];
|
|
293
|
+
isError?: true | undefined;
|
|
294
|
+
}>;
|
|
295
|
+
deliver(input: Input<typeof tasksDeliverTool>): Promise<{
|
|
296
|
+
structuredContent: {};
|
|
297
|
+
content: {
|
|
298
|
+
type: "text";
|
|
299
|
+
text: string;
|
|
300
|
+
}[];
|
|
301
|
+
isError?: true | undefined;
|
|
302
|
+
}>;
|
|
303
|
+
release(input: Input<typeof tasksReleaseTool>): Promise<{
|
|
304
|
+
structuredContent: {};
|
|
305
|
+
content: {
|
|
306
|
+
type: "text";
|
|
307
|
+
text: string;
|
|
308
|
+
}[];
|
|
309
|
+
isError?: true | undefined;
|
|
310
|
+
}>;
|
|
311
|
+
refund(input: Input<typeof tasksRefundTool>): Promise<{
|
|
312
|
+
structuredContent: {};
|
|
313
|
+
content: {
|
|
314
|
+
type: "text";
|
|
315
|
+
text: string;
|
|
316
|
+
}[];
|
|
317
|
+
isError?: true | undefined;
|
|
318
|
+
}>;
|
|
319
|
+
dispute(input: Input<typeof tasksDisputeTool>): Promise<{
|
|
320
|
+
structuredContent: {};
|
|
321
|
+
content: {
|
|
322
|
+
type: "text";
|
|
323
|
+
text: string;
|
|
324
|
+
}[];
|
|
325
|
+
isError?: true | undefined;
|
|
326
|
+
}>;
|
|
327
|
+
counterEvidence(input: Input<typeof tasksCounterEvidenceTool>): Promise<{
|
|
328
|
+
structuredContent: {};
|
|
329
|
+
content: {
|
|
330
|
+
type: "text";
|
|
331
|
+
text: string;
|
|
332
|
+
}[];
|
|
333
|
+
isError?: true | undefined;
|
|
334
|
+
}>;
|
|
335
|
+
resolveUnmatched(input: Input<typeof tasksResolveUnmatchedTool>): Promise<{
|
|
336
|
+
structuredContent: {};
|
|
337
|
+
content: {
|
|
338
|
+
type: "text";
|
|
339
|
+
text: string;
|
|
340
|
+
}[];
|
|
341
|
+
isError?: true | undefined;
|
|
342
|
+
}>;
|
|
343
|
+
message(input: Input<typeof tasksMessageTool>): Promise<{
|
|
344
|
+
structuredContent: {};
|
|
345
|
+
content: {
|
|
346
|
+
type: "text";
|
|
347
|
+
text: string;
|
|
348
|
+
}[];
|
|
349
|
+
isError?: true | undefined;
|
|
350
|
+
}>;
|
|
351
|
+
thread(input: Input<typeof tasksThreadTool>): Promise<{
|
|
352
|
+
structuredContent: {};
|
|
353
|
+
content: {
|
|
354
|
+
type: "text";
|
|
355
|
+
text: string;
|
|
356
|
+
}[];
|
|
357
|
+
isError?: true | undefined;
|
|
358
|
+
}>;
|
|
359
|
+
watch(input: Input<typeof tasksWatchTool>): Promise<{
|
|
360
|
+
structuredContent: {};
|
|
361
|
+
content: {
|
|
362
|
+
type: "text";
|
|
363
|
+
text: string;
|
|
364
|
+
}[];
|
|
365
|
+
isError?: true | undefined;
|
|
366
|
+
}>;
|
|
367
|
+
status(input: Input<typeof tasksStatusTool>): Promise<{
|
|
368
|
+
structuredContent: {};
|
|
369
|
+
content: {
|
|
370
|
+
type: "text";
|
|
371
|
+
text: string;
|
|
372
|
+
}[];
|
|
373
|
+
isError?: true | undefined;
|
|
374
|
+
}>;
|
|
375
|
+
};
|
|
376
|
+
export declare function tasksErrorResult(error: unknown, extra?: Record<string, unknown>): {
|
|
377
|
+
isError: true;
|
|
378
|
+
content: {
|
|
379
|
+
type: "text";
|
|
380
|
+
text: string;
|
|
381
|
+
}[];
|
|
382
|
+
};
|
|
383
|
+
export {};
|