@o-zakstam/voltagent-convex 1.1.1 → 1.1.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/dist/client/index.d.cts +55 -397
- package/dist/client/index.d.ts +55 -397
- package/package.json +1 -1
package/dist/client/index.d.cts
CHANGED
|
@@ -1,286 +1,54 @@
|
|
|
1
1
|
import * as convex_server from 'convex/server';
|
|
2
|
-
import {
|
|
2
|
+
import { ApiFromModules } from 'convex/server';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* VoltAgent Convex Component API Types
|
|
6
6
|
*
|
|
7
7
|
* These types define the structure of the VoltAgent component's API,
|
|
8
8
|
* allowing type-safe access to component functions.
|
|
9
|
+
*
|
|
10
|
+
* Note: Types are simplified to avoid "excessively deep" TypeScript errors
|
|
11
|
+
* when combined with other Convex components.
|
|
9
12
|
*/
|
|
10
|
-
|
|
13
|
+
type AnyFunctionReference = any;
|
|
11
14
|
/**
|
|
12
15
|
* The VoltAgent Component API type.
|
|
13
16
|
* This matches the structure of `components.voltagent` after installing the component.
|
|
17
|
+
*
|
|
18
|
+
* Types are intentionally simplified to prevent TypeScript depth issues
|
|
19
|
+
* when multiple Convex components are used together.
|
|
14
20
|
*/
|
|
15
21
|
type VoltAgentComponent = {
|
|
16
22
|
conversations: {
|
|
17
|
-
create:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
_id: string;
|
|
25
|
-
id: string;
|
|
26
|
-
resourceId: string;
|
|
27
|
-
userId: string;
|
|
28
|
-
title: string;
|
|
29
|
-
metadata: Record<string, unknown>;
|
|
30
|
-
createdAt: string;
|
|
31
|
-
updatedAt: string;
|
|
32
|
-
}>;
|
|
33
|
-
get: FunctionReference<"query", "internal", {
|
|
34
|
-
id: string;
|
|
35
|
-
}, {
|
|
36
|
-
id: string;
|
|
37
|
-
resourceId: string;
|
|
38
|
-
userId: string;
|
|
39
|
-
title: string;
|
|
40
|
-
metadata: Record<string, unknown>;
|
|
41
|
-
createdAt: string;
|
|
42
|
-
updatedAt: string;
|
|
43
|
-
} | null>;
|
|
44
|
-
getByResourceId: FunctionReference<"query", "internal", {
|
|
45
|
-
resourceId: string;
|
|
46
|
-
}, Array<{
|
|
47
|
-
id: string;
|
|
48
|
-
resourceId: string;
|
|
49
|
-
userId: string;
|
|
50
|
-
title: string;
|
|
51
|
-
metadata: Record<string, unknown>;
|
|
52
|
-
createdAt: string;
|
|
53
|
-
updatedAt: string;
|
|
54
|
-
}>>;
|
|
55
|
-
getByUserId: FunctionReference<"query", "internal", {
|
|
56
|
-
userId: string;
|
|
57
|
-
limit?: number;
|
|
58
|
-
offset?: number;
|
|
59
|
-
orderBy?: string;
|
|
60
|
-
orderDirection?: string;
|
|
61
|
-
}, Array<{
|
|
62
|
-
id: string;
|
|
63
|
-
resourceId: string;
|
|
64
|
-
userId: string;
|
|
65
|
-
title: string;
|
|
66
|
-
metadata: Record<string, unknown>;
|
|
67
|
-
createdAt: string;
|
|
68
|
-
updatedAt: string;
|
|
69
|
-
}>>;
|
|
70
|
-
queryConversations: FunctionReference<"query", "internal", {
|
|
71
|
-
userId?: string;
|
|
72
|
-
resourceId?: string;
|
|
73
|
-
limit?: number;
|
|
74
|
-
offset?: number;
|
|
75
|
-
orderBy?: string;
|
|
76
|
-
orderDirection?: string;
|
|
77
|
-
}, Array<{
|
|
78
|
-
id: string;
|
|
79
|
-
resourceId: string;
|
|
80
|
-
userId: string;
|
|
81
|
-
title: string;
|
|
82
|
-
metadata: Record<string, unknown>;
|
|
83
|
-
createdAt: string;
|
|
84
|
-
updatedAt: string;
|
|
85
|
-
}>>;
|
|
86
|
-
update: FunctionReference<"mutation", "internal", {
|
|
87
|
-
id: string;
|
|
88
|
-
title?: string;
|
|
89
|
-
resourceId?: string;
|
|
90
|
-
metadata?: unknown;
|
|
91
|
-
}, {
|
|
92
|
-
id: string;
|
|
93
|
-
resourceId: string;
|
|
94
|
-
userId: string;
|
|
95
|
-
title: string;
|
|
96
|
-
metadata: Record<string, unknown>;
|
|
97
|
-
createdAt: string;
|
|
98
|
-
updatedAt: string;
|
|
99
|
-
}>;
|
|
100
|
-
remove: FunctionReference<"mutation", "internal", {
|
|
101
|
-
id: string;
|
|
102
|
-
}, null>;
|
|
23
|
+
create: AnyFunctionReference;
|
|
24
|
+
get: AnyFunctionReference;
|
|
25
|
+
getByResourceId: AnyFunctionReference;
|
|
26
|
+
getByUserId: AnyFunctionReference;
|
|
27
|
+
queryConversations: AnyFunctionReference;
|
|
28
|
+
update: AnyFunctionReference;
|
|
29
|
+
remove: AnyFunctionReference;
|
|
103
30
|
};
|
|
104
31
|
messages: {
|
|
105
|
-
add:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
role: string;
|
|
110
|
-
parts: unknown;
|
|
111
|
-
metadata?: unknown;
|
|
112
|
-
}, {
|
|
113
|
-
id: string;
|
|
114
|
-
}>;
|
|
115
|
-
addMany: FunctionReference<"mutation", "internal", {
|
|
116
|
-
messages: Array<{
|
|
117
|
-
id: string;
|
|
118
|
-
conversationId: string;
|
|
119
|
-
userId: string;
|
|
120
|
-
role: string;
|
|
121
|
-
parts: unknown;
|
|
122
|
-
metadata?: unknown;
|
|
123
|
-
}>;
|
|
124
|
-
}, {
|
|
125
|
-
count: number;
|
|
126
|
-
}>;
|
|
127
|
-
get: FunctionReference<"query", "internal", {
|
|
128
|
-
userId: string;
|
|
129
|
-
conversationId: string;
|
|
130
|
-
limit?: number;
|
|
131
|
-
before?: string;
|
|
132
|
-
after?: string;
|
|
133
|
-
roles?: string[];
|
|
134
|
-
}, Array<{
|
|
135
|
-
id: string;
|
|
136
|
-
role: string;
|
|
137
|
-
parts: unknown[];
|
|
138
|
-
metadata?: Record<string, unknown>;
|
|
139
|
-
}>>;
|
|
140
|
-
clear: FunctionReference<"mutation", "internal", {
|
|
141
|
-
userId: string;
|
|
142
|
-
conversationId?: string;
|
|
143
|
-
}, {
|
|
144
|
-
count: number;
|
|
145
|
-
}>;
|
|
32
|
+
add: AnyFunctionReference;
|
|
33
|
+
addMany: AnyFunctionReference;
|
|
34
|
+
get: AnyFunctionReference;
|
|
35
|
+
clear: AnyFunctionReference;
|
|
146
36
|
};
|
|
147
37
|
steps: {
|
|
148
|
-
save:
|
|
149
|
-
|
|
150
|
-
id: string;
|
|
151
|
-
conversationId: string;
|
|
152
|
-
userId: string;
|
|
153
|
-
agentId: string;
|
|
154
|
-
agentName?: string;
|
|
155
|
-
operationId?: string;
|
|
156
|
-
stepIndex: number;
|
|
157
|
-
type: string;
|
|
158
|
-
role: string;
|
|
159
|
-
content?: string;
|
|
160
|
-
arguments?: unknown;
|
|
161
|
-
result?: unknown;
|
|
162
|
-
usage?: unknown;
|
|
163
|
-
subAgentId?: string;
|
|
164
|
-
subAgentName?: string;
|
|
165
|
-
createdAt?: string;
|
|
166
|
-
}>;
|
|
167
|
-
}, {
|
|
168
|
-
count: number;
|
|
169
|
-
}>;
|
|
170
|
-
get: FunctionReference<"query", "internal", {
|
|
171
|
-
userId: string;
|
|
172
|
-
conversationId: string;
|
|
173
|
-
limit?: number;
|
|
174
|
-
operationId?: string;
|
|
175
|
-
}, Array<{
|
|
176
|
-
id: string;
|
|
177
|
-
conversationId: string;
|
|
178
|
-
userId: string;
|
|
179
|
-
agentId: string;
|
|
180
|
-
agentName?: string;
|
|
181
|
-
operationId?: string;
|
|
182
|
-
stepIndex: number;
|
|
183
|
-
type: string;
|
|
184
|
-
role: string;
|
|
185
|
-
content?: string;
|
|
186
|
-
arguments?: unknown;
|
|
187
|
-
result?: unknown;
|
|
188
|
-
usage?: unknown;
|
|
189
|
-
subAgentId?: string;
|
|
190
|
-
subAgentName?: string;
|
|
191
|
-
createdAt?: string;
|
|
192
|
-
}>>;
|
|
38
|
+
save: AnyFunctionReference;
|
|
39
|
+
get: AnyFunctionReference;
|
|
193
40
|
};
|
|
194
41
|
workingMemory: {
|
|
195
|
-
get:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
scope: string;
|
|
199
|
-
}, string | null>;
|
|
200
|
-
set: FunctionReference<"mutation", "internal", {
|
|
201
|
-
conversationId?: string;
|
|
202
|
-
userId?: string;
|
|
203
|
-
content: string;
|
|
204
|
-
scope: string;
|
|
205
|
-
}, null>;
|
|
206
|
-
remove: FunctionReference<"mutation", "internal", {
|
|
207
|
-
conversationId?: string;
|
|
208
|
-
userId?: string;
|
|
209
|
-
scope: string;
|
|
210
|
-
}, null>;
|
|
42
|
+
get: AnyFunctionReference;
|
|
43
|
+
set: AnyFunctionReference;
|
|
44
|
+
remove: AnyFunctionReference;
|
|
211
45
|
};
|
|
212
46
|
workflows: {
|
|
213
|
-
get:
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
workflowName: string;
|
|
219
|
-
status: string;
|
|
220
|
-
input?: unknown;
|
|
221
|
-
context?: unknown;
|
|
222
|
-
suspension?: unknown;
|
|
223
|
-
events?: unknown[];
|
|
224
|
-
output?: unknown;
|
|
225
|
-
cancellation?: unknown;
|
|
226
|
-
userId?: string;
|
|
227
|
-
conversationId?: string;
|
|
228
|
-
metadata?: Record<string, unknown>;
|
|
229
|
-
createdAt: string;
|
|
230
|
-
updatedAt: string;
|
|
231
|
-
} | null>;
|
|
232
|
-
queryRuns: FunctionReference<"query", "internal", {
|
|
233
|
-
workflowId?: string;
|
|
234
|
-
status?: string;
|
|
235
|
-
from?: string;
|
|
236
|
-
to?: string;
|
|
237
|
-
limit?: number;
|
|
238
|
-
offset?: number;
|
|
239
|
-
}, Array<{
|
|
240
|
-
id: string;
|
|
241
|
-
workflowId: string;
|
|
242
|
-
workflowName: string;
|
|
243
|
-
status: string;
|
|
244
|
-
createdAt: string;
|
|
245
|
-
updatedAt: string;
|
|
246
|
-
}>>;
|
|
247
|
-
set: FunctionReference<"mutation", "internal", {
|
|
248
|
-
executionId: string;
|
|
249
|
-
workflowId: string;
|
|
250
|
-
workflowName: string;
|
|
251
|
-
status: string;
|
|
252
|
-
input?: unknown;
|
|
253
|
-
context?: unknown;
|
|
254
|
-
suspension?: unknown;
|
|
255
|
-
events?: unknown;
|
|
256
|
-
output?: unknown;
|
|
257
|
-
cancellation?: unknown;
|
|
258
|
-
userId?: string;
|
|
259
|
-
conversationId?: string;
|
|
260
|
-
metadata?: unknown;
|
|
261
|
-
createdAt: string;
|
|
262
|
-
updatedAt: string;
|
|
263
|
-
}, null>;
|
|
264
|
-
update: FunctionReference<"mutation", "internal", {
|
|
265
|
-
executionId: string;
|
|
266
|
-
status?: string;
|
|
267
|
-
suspension?: unknown;
|
|
268
|
-
events?: unknown;
|
|
269
|
-
output?: unknown;
|
|
270
|
-
cancellation?: unknown;
|
|
271
|
-
metadata?: unknown;
|
|
272
|
-
}, null>;
|
|
273
|
-
getSuspended: FunctionReference<"query", "internal", {
|
|
274
|
-
workflowId: string;
|
|
275
|
-
}, Array<{
|
|
276
|
-
id: string;
|
|
277
|
-
workflowId: string;
|
|
278
|
-
workflowName: string;
|
|
279
|
-
status: "suspended";
|
|
280
|
-
suspension?: unknown;
|
|
281
|
-
createdAt: string;
|
|
282
|
-
updatedAt: string;
|
|
283
|
-
}>>;
|
|
47
|
+
get: AnyFunctionReference;
|
|
48
|
+
queryRuns: AnyFunctionReference;
|
|
49
|
+
set: AnyFunctionReference;
|
|
50
|
+
update: AnyFunctionReference;
|
|
51
|
+
getSuspended: AnyFunctionReference;
|
|
284
52
|
};
|
|
285
53
|
};
|
|
286
54
|
|
|
@@ -297,53 +65,20 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
297
65
|
userId: string;
|
|
298
66
|
title: string;
|
|
299
67
|
metadata: any;
|
|
300
|
-
}, Promise<
|
|
301
|
-
_id: string;
|
|
302
|
-
id: string;
|
|
303
|
-
resourceId: string;
|
|
304
|
-
userId: string;
|
|
305
|
-
title: string;
|
|
306
|
-
metadata: Record<string, unknown>;
|
|
307
|
-
createdAt: string;
|
|
308
|
-
updatedAt: string;
|
|
309
|
-
}>>;
|
|
68
|
+
}, Promise<any>>;
|
|
310
69
|
getConversation: convex_server.RegisteredQuery<"public", {
|
|
311
70
|
id: string;
|
|
312
|
-
}, Promise<
|
|
313
|
-
id: string;
|
|
314
|
-
resourceId: string;
|
|
315
|
-
userId: string;
|
|
316
|
-
title: string;
|
|
317
|
-
metadata: Record<string, unknown>;
|
|
318
|
-
createdAt: string;
|
|
319
|
-
updatedAt: string;
|
|
320
|
-
} | null>>;
|
|
71
|
+
}, Promise<any>>;
|
|
321
72
|
getConversations: convex_server.RegisteredQuery<"public", {
|
|
322
73
|
resourceId: string;
|
|
323
|
-
}, Promise<
|
|
324
|
-
id: string;
|
|
325
|
-
resourceId: string;
|
|
326
|
-
userId: string;
|
|
327
|
-
title: string;
|
|
328
|
-
metadata: Record<string, unknown>;
|
|
329
|
-
createdAt: string;
|
|
330
|
-
updatedAt: string;
|
|
331
|
-
}[]>>;
|
|
74
|
+
}, Promise<any>>;
|
|
332
75
|
getConversationsByUserId: convex_server.RegisteredQuery<"public", {
|
|
333
76
|
limit?: number | undefined;
|
|
334
77
|
offset?: number | undefined;
|
|
335
78
|
orderBy?: string | undefined;
|
|
336
79
|
orderDirection?: string | undefined;
|
|
337
80
|
userId: string;
|
|
338
|
-
}, Promise<
|
|
339
|
-
id: string;
|
|
340
|
-
resourceId: string;
|
|
341
|
-
userId: string;
|
|
342
|
-
title: string;
|
|
343
|
-
metadata: Record<string, unknown>;
|
|
344
|
-
createdAt: string;
|
|
345
|
-
updatedAt: string;
|
|
346
|
-
}[]>>;
|
|
81
|
+
}, Promise<any>>;
|
|
347
82
|
queryConversations: convex_server.RegisteredQuery<"public", {
|
|
348
83
|
resourceId?: string | undefined;
|
|
349
84
|
userId?: string | undefined;
|
|
@@ -351,32 +86,16 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
351
86
|
offset?: number | undefined;
|
|
352
87
|
orderBy?: string | undefined;
|
|
353
88
|
orderDirection?: string | undefined;
|
|
354
|
-
}, Promise<
|
|
355
|
-
id: string;
|
|
356
|
-
resourceId: string;
|
|
357
|
-
userId: string;
|
|
358
|
-
title: string;
|
|
359
|
-
metadata: Record<string, unknown>;
|
|
360
|
-
createdAt: string;
|
|
361
|
-
updatedAt: string;
|
|
362
|
-
}[]>>;
|
|
89
|
+
}, Promise<any>>;
|
|
363
90
|
updateConversation: convex_server.RegisteredMutation<"public", {
|
|
364
91
|
resourceId?: string | undefined;
|
|
365
92
|
title?: string | undefined;
|
|
366
93
|
metadata?: any;
|
|
367
94
|
id: string;
|
|
368
|
-
}, Promise<
|
|
369
|
-
id: string;
|
|
370
|
-
resourceId: string;
|
|
371
|
-
userId: string;
|
|
372
|
-
title: string;
|
|
373
|
-
metadata: Record<string, unknown>;
|
|
374
|
-
createdAt: string;
|
|
375
|
-
updatedAt: string;
|
|
376
|
-
}>>;
|
|
95
|
+
}, Promise<any>>;
|
|
377
96
|
deleteConversation: convex_server.RegisteredMutation<"public", {
|
|
378
97
|
id: string;
|
|
379
|
-
}, Promise<
|
|
98
|
+
}, Promise<any>>;
|
|
380
99
|
addMessage: convex_server.RegisteredMutation<"public", {
|
|
381
100
|
metadata?: any;
|
|
382
101
|
id: string;
|
|
@@ -384,9 +103,7 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
384
103
|
conversationId: string;
|
|
385
104
|
role: string;
|
|
386
105
|
parts: any;
|
|
387
|
-
}, Promise<
|
|
388
|
-
id: string;
|
|
389
|
-
}>>;
|
|
106
|
+
}, Promise<any>>;
|
|
390
107
|
addMessages: convex_server.RegisteredMutation<"public", {
|
|
391
108
|
messages: {
|
|
392
109
|
metadata?: any;
|
|
@@ -396,9 +113,7 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
396
113
|
role: string;
|
|
397
114
|
parts: any;
|
|
398
115
|
}[];
|
|
399
|
-
}, Promise<
|
|
400
|
-
count: number;
|
|
401
|
-
}>>;
|
|
116
|
+
}, Promise<any>>;
|
|
402
117
|
getMessages: convex_server.RegisteredQuery<"public", {
|
|
403
118
|
limit?: number | undefined;
|
|
404
119
|
before?: string | undefined;
|
|
@@ -406,98 +121,56 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
406
121
|
roles?: string[] | undefined;
|
|
407
122
|
userId: string;
|
|
408
123
|
conversationId: string;
|
|
409
|
-
}, Promise<
|
|
410
|
-
id: string;
|
|
411
|
-
role: string;
|
|
412
|
-
parts: unknown[];
|
|
413
|
-
metadata?: Record<string, unknown>;
|
|
414
|
-
}[]>>;
|
|
124
|
+
}, Promise<any>>;
|
|
415
125
|
clearMessages: convex_server.RegisteredMutation<"public", {
|
|
416
126
|
conversationId?: string | undefined;
|
|
417
127
|
userId: string;
|
|
418
|
-
}, Promise<
|
|
419
|
-
count: number;
|
|
420
|
-
}>>;
|
|
128
|
+
}, Promise<any>>;
|
|
421
129
|
saveConversationSteps: convex_server.RegisteredMutation<"public", {
|
|
422
130
|
steps: {
|
|
131
|
+
agentName?: string | undefined;
|
|
423
132
|
operationId?: string | undefined;
|
|
424
133
|
content?: string | undefined;
|
|
425
|
-
createdAt?: string | undefined;
|
|
426
|
-
agentName?: string | undefined;
|
|
427
134
|
arguments?: any;
|
|
428
135
|
result?: any;
|
|
429
136
|
usage?: any;
|
|
430
137
|
subAgentId?: string | undefined;
|
|
431
138
|
subAgentName?: string | undefined;
|
|
139
|
+
createdAt?: string | undefined;
|
|
432
140
|
id: string;
|
|
433
141
|
userId: string;
|
|
142
|
+
type: string;
|
|
434
143
|
conversationId: string;
|
|
435
144
|
role: string;
|
|
436
|
-
type: string;
|
|
437
145
|
agentId: string;
|
|
438
146
|
stepIndex: number;
|
|
439
147
|
}[];
|
|
440
|
-
}, Promise<
|
|
441
|
-
count: number;
|
|
442
|
-
}>>;
|
|
148
|
+
}, Promise<any>>;
|
|
443
149
|
getConversationSteps: convex_server.RegisteredQuery<"public", {
|
|
444
150
|
limit?: number | undefined;
|
|
445
151
|
operationId?: string | undefined;
|
|
446
152
|
userId: string;
|
|
447
153
|
conversationId: string;
|
|
448
|
-
}, Promise<
|
|
449
|
-
id: string;
|
|
450
|
-
conversationId: string;
|
|
451
|
-
userId: string;
|
|
452
|
-
agentId: string;
|
|
453
|
-
agentName?: string;
|
|
454
|
-
operationId?: string;
|
|
455
|
-
stepIndex: number;
|
|
456
|
-
type: string;
|
|
457
|
-
role: string;
|
|
458
|
-
content?: string;
|
|
459
|
-
arguments?: unknown;
|
|
460
|
-
result?: unknown;
|
|
461
|
-
usage?: unknown;
|
|
462
|
-
subAgentId?: string;
|
|
463
|
-
subAgentName?: string;
|
|
464
|
-
createdAt?: string;
|
|
465
|
-
}[]>>;
|
|
154
|
+
}, Promise<any>>;
|
|
466
155
|
getWorkingMemory: convex_server.RegisteredQuery<"public", {
|
|
467
156
|
userId?: string | undefined;
|
|
468
157
|
conversationId?: string | undefined;
|
|
469
158
|
scope: string;
|
|
470
|
-
}, Promise<
|
|
159
|
+
}, Promise<any>>;
|
|
471
160
|
setWorkingMemory: convex_server.RegisteredMutation<"public", {
|
|
472
161
|
userId?: string | undefined;
|
|
473
162
|
conversationId?: string | undefined;
|
|
474
|
-
scope: string;
|
|
475
163
|
content: string;
|
|
476
|
-
|
|
164
|
+
scope: string;
|
|
165
|
+
}, Promise<any>>;
|
|
477
166
|
deleteWorkingMemory: convex_server.RegisteredMutation<"public", {
|
|
478
167
|
userId?: string | undefined;
|
|
479
168
|
conversationId?: string | undefined;
|
|
480
169
|
scope: string;
|
|
481
|
-
}, Promise<
|
|
170
|
+
}, Promise<any>>;
|
|
482
171
|
getWorkflowState: convex_server.RegisteredQuery<"public", {
|
|
483
172
|
executionId: string;
|
|
484
|
-
}, Promise<
|
|
485
|
-
id: string;
|
|
486
|
-
workflowId: string;
|
|
487
|
-
workflowName: string;
|
|
488
|
-
status: string;
|
|
489
|
-
input?: unknown;
|
|
490
|
-
context?: unknown;
|
|
491
|
-
suspension?: unknown;
|
|
492
|
-
events?: unknown[];
|
|
493
|
-
output?: unknown;
|
|
494
|
-
cancellation?: unknown;
|
|
495
|
-
userId?: string;
|
|
496
|
-
conversationId?: string;
|
|
497
|
-
metadata?: Record<string, unknown>;
|
|
498
|
-
createdAt: string;
|
|
499
|
-
updatedAt: string;
|
|
500
|
-
} | null>>;
|
|
173
|
+
}, Promise<any>>;
|
|
501
174
|
queryWorkflowRuns: convex_server.RegisteredQuery<"public", {
|
|
502
175
|
limit?: number | undefined;
|
|
503
176
|
offset?: number | undefined;
|
|
@@ -505,14 +178,7 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
505
178
|
status?: string | undefined;
|
|
506
179
|
from?: string | undefined;
|
|
507
180
|
to?: string | undefined;
|
|
508
|
-
}, Promise<
|
|
509
|
-
id: string;
|
|
510
|
-
workflowId: string;
|
|
511
|
-
workflowName: string;
|
|
512
|
-
status: string;
|
|
513
|
-
createdAt: string;
|
|
514
|
-
updatedAt: string;
|
|
515
|
-
}[]>>;
|
|
181
|
+
}, Promise<any>>;
|
|
516
182
|
setWorkflowState: convex_server.RegisteredMutation<"public", {
|
|
517
183
|
userId?: string | undefined;
|
|
518
184
|
metadata?: any;
|
|
@@ -523,13 +189,13 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
523
189
|
events?: any;
|
|
524
190
|
output?: any;
|
|
525
191
|
cancellation?: any;
|
|
192
|
+
createdAt: string;
|
|
526
193
|
executionId: string;
|
|
527
194
|
workflowId: string;
|
|
528
195
|
status: string;
|
|
529
196
|
workflowName: string;
|
|
530
|
-
createdAt: string;
|
|
531
197
|
updatedAt: string;
|
|
532
|
-
}, Promise<
|
|
198
|
+
}, Promise<any>>;
|
|
533
199
|
updateWorkflowState: convex_server.RegisteredMutation<"public", {
|
|
534
200
|
metadata?: any;
|
|
535
201
|
status?: string | undefined;
|
|
@@ -538,18 +204,10 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
538
204
|
output?: any;
|
|
539
205
|
cancellation?: any;
|
|
540
206
|
executionId: string;
|
|
541
|
-
}, Promise<
|
|
207
|
+
}, Promise<any>>;
|
|
542
208
|
getSuspendedWorkflowStates: convex_server.RegisteredQuery<"public", {
|
|
543
209
|
workflowId: string;
|
|
544
|
-
}, Promise<
|
|
545
|
-
id: string;
|
|
546
|
-
workflowId: string;
|
|
547
|
-
workflowName: string;
|
|
548
|
-
status: "suspended";
|
|
549
|
-
suspension?: unknown;
|
|
550
|
-
createdAt: string;
|
|
551
|
-
updatedAt: string;
|
|
552
|
-
}[]>>;
|
|
210
|
+
}, Promise<any>>;
|
|
553
211
|
};
|
|
554
212
|
/**
|
|
555
213
|
* Type for the VoltAgent API when used with ApiFromModules.
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,286 +1,54 @@
|
|
|
1
1
|
import * as convex_server from 'convex/server';
|
|
2
|
-
import {
|
|
2
|
+
import { ApiFromModules } from 'convex/server';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* VoltAgent Convex Component API Types
|
|
6
6
|
*
|
|
7
7
|
* These types define the structure of the VoltAgent component's API,
|
|
8
8
|
* allowing type-safe access to component functions.
|
|
9
|
+
*
|
|
10
|
+
* Note: Types are simplified to avoid "excessively deep" TypeScript errors
|
|
11
|
+
* when combined with other Convex components.
|
|
9
12
|
*/
|
|
10
|
-
|
|
13
|
+
type AnyFunctionReference = any;
|
|
11
14
|
/**
|
|
12
15
|
* The VoltAgent Component API type.
|
|
13
16
|
* This matches the structure of `components.voltagent` after installing the component.
|
|
17
|
+
*
|
|
18
|
+
* Types are intentionally simplified to prevent TypeScript depth issues
|
|
19
|
+
* when multiple Convex components are used together.
|
|
14
20
|
*/
|
|
15
21
|
type VoltAgentComponent = {
|
|
16
22
|
conversations: {
|
|
17
|
-
create:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
_id: string;
|
|
25
|
-
id: string;
|
|
26
|
-
resourceId: string;
|
|
27
|
-
userId: string;
|
|
28
|
-
title: string;
|
|
29
|
-
metadata: Record<string, unknown>;
|
|
30
|
-
createdAt: string;
|
|
31
|
-
updatedAt: string;
|
|
32
|
-
}>;
|
|
33
|
-
get: FunctionReference<"query", "internal", {
|
|
34
|
-
id: string;
|
|
35
|
-
}, {
|
|
36
|
-
id: string;
|
|
37
|
-
resourceId: string;
|
|
38
|
-
userId: string;
|
|
39
|
-
title: string;
|
|
40
|
-
metadata: Record<string, unknown>;
|
|
41
|
-
createdAt: string;
|
|
42
|
-
updatedAt: string;
|
|
43
|
-
} | null>;
|
|
44
|
-
getByResourceId: FunctionReference<"query", "internal", {
|
|
45
|
-
resourceId: string;
|
|
46
|
-
}, Array<{
|
|
47
|
-
id: string;
|
|
48
|
-
resourceId: string;
|
|
49
|
-
userId: string;
|
|
50
|
-
title: string;
|
|
51
|
-
metadata: Record<string, unknown>;
|
|
52
|
-
createdAt: string;
|
|
53
|
-
updatedAt: string;
|
|
54
|
-
}>>;
|
|
55
|
-
getByUserId: FunctionReference<"query", "internal", {
|
|
56
|
-
userId: string;
|
|
57
|
-
limit?: number;
|
|
58
|
-
offset?: number;
|
|
59
|
-
orderBy?: string;
|
|
60
|
-
orderDirection?: string;
|
|
61
|
-
}, Array<{
|
|
62
|
-
id: string;
|
|
63
|
-
resourceId: string;
|
|
64
|
-
userId: string;
|
|
65
|
-
title: string;
|
|
66
|
-
metadata: Record<string, unknown>;
|
|
67
|
-
createdAt: string;
|
|
68
|
-
updatedAt: string;
|
|
69
|
-
}>>;
|
|
70
|
-
queryConversations: FunctionReference<"query", "internal", {
|
|
71
|
-
userId?: string;
|
|
72
|
-
resourceId?: string;
|
|
73
|
-
limit?: number;
|
|
74
|
-
offset?: number;
|
|
75
|
-
orderBy?: string;
|
|
76
|
-
orderDirection?: string;
|
|
77
|
-
}, Array<{
|
|
78
|
-
id: string;
|
|
79
|
-
resourceId: string;
|
|
80
|
-
userId: string;
|
|
81
|
-
title: string;
|
|
82
|
-
metadata: Record<string, unknown>;
|
|
83
|
-
createdAt: string;
|
|
84
|
-
updatedAt: string;
|
|
85
|
-
}>>;
|
|
86
|
-
update: FunctionReference<"mutation", "internal", {
|
|
87
|
-
id: string;
|
|
88
|
-
title?: string;
|
|
89
|
-
resourceId?: string;
|
|
90
|
-
metadata?: unknown;
|
|
91
|
-
}, {
|
|
92
|
-
id: string;
|
|
93
|
-
resourceId: string;
|
|
94
|
-
userId: string;
|
|
95
|
-
title: string;
|
|
96
|
-
metadata: Record<string, unknown>;
|
|
97
|
-
createdAt: string;
|
|
98
|
-
updatedAt: string;
|
|
99
|
-
}>;
|
|
100
|
-
remove: FunctionReference<"mutation", "internal", {
|
|
101
|
-
id: string;
|
|
102
|
-
}, null>;
|
|
23
|
+
create: AnyFunctionReference;
|
|
24
|
+
get: AnyFunctionReference;
|
|
25
|
+
getByResourceId: AnyFunctionReference;
|
|
26
|
+
getByUserId: AnyFunctionReference;
|
|
27
|
+
queryConversations: AnyFunctionReference;
|
|
28
|
+
update: AnyFunctionReference;
|
|
29
|
+
remove: AnyFunctionReference;
|
|
103
30
|
};
|
|
104
31
|
messages: {
|
|
105
|
-
add:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
role: string;
|
|
110
|
-
parts: unknown;
|
|
111
|
-
metadata?: unknown;
|
|
112
|
-
}, {
|
|
113
|
-
id: string;
|
|
114
|
-
}>;
|
|
115
|
-
addMany: FunctionReference<"mutation", "internal", {
|
|
116
|
-
messages: Array<{
|
|
117
|
-
id: string;
|
|
118
|
-
conversationId: string;
|
|
119
|
-
userId: string;
|
|
120
|
-
role: string;
|
|
121
|
-
parts: unknown;
|
|
122
|
-
metadata?: unknown;
|
|
123
|
-
}>;
|
|
124
|
-
}, {
|
|
125
|
-
count: number;
|
|
126
|
-
}>;
|
|
127
|
-
get: FunctionReference<"query", "internal", {
|
|
128
|
-
userId: string;
|
|
129
|
-
conversationId: string;
|
|
130
|
-
limit?: number;
|
|
131
|
-
before?: string;
|
|
132
|
-
after?: string;
|
|
133
|
-
roles?: string[];
|
|
134
|
-
}, Array<{
|
|
135
|
-
id: string;
|
|
136
|
-
role: string;
|
|
137
|
-
parts: unknown[];
|
|
138
|
-
metadata?: Record<string, unknown>;
|
|
139
|
-
}>>;
|
|
140
|
-
clear: FunctionReference<"mutation", "internal", {
|
|
141
|
-
userId: string;
|
|
142
|
-
conversationId?: string;
|
|
143
|
-
}, {
|
|
144
|
-
count: number;
|
|
145
|
-
}>;
|
|
32
|
+
add: AnyFunctionReference;
|
|
33
|
+
addMany: AnyFunctionReference;
|
|
34
|
+
get: AnyFunctionReference;
|
|
35
|
+
clear: AnyFunctionReference;
|
|
146
36
|
};
|
|
147
37
|
steps: {
|
|
148
|
-
save:
|
|
149
|
-
|
|
150
|
-
id: string;
|
|
151
|
-
conversationId: string;
|
|
152
|
-
userId: string;
|
|
153
|
-
agentId: string;
|
|
154
|
-
agentName?: string;
|
|
155
|
-
operationId?: string;
|
|
156
|
-
stepIndex: number;
|
|
157
|
-
type: string;
|
|
158
|
-
role: string;
|
|
159
|
-
content?: string;
|
|
160
|
-
arguments?: unknown;
|
|
161
|
-
result?: unknown;
|
|
162
|
-
usage?: unknown;
|
|
163
|
-
subAgentId?: string;
|
|
164
|
-
subAgentName?: string;
|
|
165
|
-
createdAt?: string;
|
|
166
|
-
}>;
|
|
167
|
-
}, {
|
|
168
|
-
count: number;
|
|
169
|
-
}>;
|
|
170
|
-
get: FunctionReference<"query", "internal", {
|
|
171
|
-
userId: string;
|
|
172
|
-
conversationId: string;
|
|
173
|
-
limit?: number;
|
|
174
|
-
operationId?: string;
|
|
175
|
-
}, Array<{
|
|
176
|
-
id: string;
|
|
177
|
-
conversationId: string;
|
|
178
|
-
userId: string;
|
|
179
|
-
agentId: string;
|
|
180
|
-
agentName?: string;
|
|
181
|
-
operationId?: string;
|
|
182
|
-
stepIndex: number;
|
|
183
|
-
type: string;
|
|
184
|
-
role: string;
|
|
185
|
-
content?: string;
|
|
186
|
-
arguments?: unknown;
|
|
187
|
-
result?: unknown;
|
|
188
|
-
usage?: unknown;
|
|
189
|
-
subAgentId?: string;
|
|
190
|
-
subAgentName?: string;
|
|
191
|
-
createdAt?: string;
|
|
192
|
-
}>>;
|
|
38
|
+
save: AnyFunctionReference;
|
|
39
|
+
get: AnyFunctionReference;
|
|
193
40
|
};
|
|
194
41
|
workingMemory: {
|
|
195
|
-
get:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
scope: string;
|
|
199
|
-
}, string | null>;
|
|
200
|
-
set: FunctionReference<"mutation", "internal", {
|
|
201
|
-
conversationId?: string;
|
|
202
|
-
userId?: string;
|
|
203
|
-
content: string;
|
|
204
|
-
scope: string;
|
|
205
|
-
}, null>;
|
|
206
|
-
remove: FunctionReference<"mutation", "internal", {
|
|
207
|
-
conversationId?: string;
|
|
208
|
-
userId?: string;
|
|
209
|
-
scope: string;
|
|
210
|
-
}, null>;
|
|
42
|
+
get: AnyFunctionReference;
|
|
43
|
+
set: AnyFunctionReference;
|
|
44
|
+
remove: AnyFunctionReference;
|
|
211
45
|
};
|
|
212
46
|
workflows: {
|
|
213
|
-
get:
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
workflowName: string;
|
|
219
|
-
status: string;
|
|
220
|
-
input?: unknown;
|
|
221
|
-
context?: unknown;
|
|
222
|
-
suspension?: unknown;
|
|
223
|
-
events?: unknown[];
|
|
224
|
-
output?: unknown;
|
|
225
|
-
cancellation?: unknown;
|
|
226
|
-
userId?: string;
|
|
227
|
-
conversationId?: string;
|
|
228
|
-
metadata?: Record<string, unknown>;
|
|
229
|
-
createdAt: string;
|
|
230
|
-
updatedAt: string;
|
|
231
|
-
} | null>;
|
|
232
|
-
queryRuns: FunctionReference<"query", "internal", {
|
|
233
|
-
workflowId?: string;
|
|
234
|
-
status?: string;
|
|
235
|
-
from?: string;
|
|
236
|
-
to?: string;
|
|
237
|
-
limit?: number;
|
|
238
|
-
offset?: number;
|
|
239
|
-
}, Array<{
|
|
240
|
-
id: string;
|
|
241
|
-
workflowId: string;
|
|
242
|
-
workflowName: string;
|
|
243
|
-
status: string;
|
|
244
|
-
createdAt: string;
|
|
245
|
-
updatedAt: string;
|
|
246
|
-
}>>;
|
|
247
|
-
set: FunctionReference<"mutation", "internal", {
|
|
248
|
-
executionId: string;
|
|
249
|
-
workflowId: string;
|
|
250
|
-
workflowName: string;
|
|
251
|
-
status: string;
|
|
252
|
-
input?: unknown;
|
|
253
|
-
context?: unknown;
|
|
254
|
-
suspension?: unknown;
|
|
255
|
-
events?: unknown;
|
|
256
|
-
output?: unknown;
|
|
257
|
-
cancellation?: unknown;
|
|
258
|
-
userId?: string;
|
|
259
|
-
conversationId?: string;
|
|
260
|
-
metadata?: unknown;
|
|
261
|
-
createdAt: string;
|
|
262
|
-
updatedAt: string;
|
|
263
|
-
}, null>;
|
|
264
|
-
update: FunctionReference<"mutation", "internal", {
|
|
265
|
-
executionId: string;
|
|
266
|
-
status?: string;
|
|
267
|
-
suspension?: unknown;
|
|
268
|
-
events?: unknown;
|
|
269
|
-
output?: unknown;
|
|
270
|
-
cancellation?: unknown;
|
|
271
|
-
metadata?: unknown;
|
|
272
|
-
}, null>;
|
|
273
|
-
getSuspended: FunctionReference<"query", "internal", {
|
|
274
|
-
workflowId: string;
|
|
275
|
-
}, Array<{
|
|
276
|
-
id: string;
|
|
277
|
-
workflowId: string;
|
|
278
|
-
workflowName: string;
|
|
279
|
-
status: "suspended";
|
|
280
|
-
suspension?: unknown;
|
|
281
|
-
createdAt: string;
|
|
282
|
-
updatedAt: string;
|
|
283
|
-
}>>;
|
|
47
|
+
get: AnyFunctionReference;
|
|
48
|
+
queryRuns: AnyFunctionReference;
|
|
49
|
+
set: AnyFunctionReference;
|
|
50
|
+
update: AnyFunctionReference;
|
|
51
|
+
getSuspended: AnyFunctionReference;
|
|
284
52
|
};
|
|
285
53
|
};
|
|
286
54
|
|
|
@@ -297,53 +65,20 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
297
65
|
userId: string;
|
|
298
66
|
title: string;
|
|
299
67
|
metadata: any;
|
|
300
|
-
}, Promise<
|
|
301
|
-
_id: string;
|
|
302
|
-
id: string;
|
|
303
|
-
resourceId: string;
|
|
304
|
-
userId: string;
|
|
305
|
-
title: string;
|
|
306
|
-
metadata: Record<string, unknown>;
|
|
307
|
-
createdAt: string;
|
|
308
|
-
updatedAt: string;
|
|
309
|
-
}>>;
|
|
68
|
+
}, Promise<any>>;
|
|
310
69
|
getConversation: convex_server.RegisteredQuery<"public", {
|
|
311
70
|
id: string;
|
|
312
|
-
}, Promise<
|
|
313
|
-
id: string;
|
|
314
|
-
resourceId: string;
|
|
315
|
-
userId: string;
|
|
316
|
-
title: string;
|
|
317
|
-
metadata: Record<string, unknown>;
|
|
318
|
-
createdAt: string;
|
|
319
|
-
updatedAt: string;
|
|
320
|
-
} | null>>;
|
|
71
|
+
}, Promise<any>>;
|
|
321
72
|
getConversations: convex_server.RegisteredQuery<"public", {
|
|
322
73
|
resourceId: string;
|
|
323
|
-
}, Promise<
|
|
324
|
-
id: string;
|
|
325
|
-
resourceId: string;
|
|
326
|
-
userId: string;
|
|
327
|
-
title: string;
|
|
328
|
-
metadata: Record<string, unknown>;
|
|
329
|
-
createdAt: string;
|
|
330
|
-
updatedAt: string;
|
|
331
|
-
}[]>>;
|
|
74
|
+
}, Promise<any>>;
|
|
332
75
|
getConversationsByUserId: convex_server.RegisteredQuery<"public", {
|
|
333
76
|
limit?: number | undefined;
|
|
334
77
|
offset?: number | undefined;
|
|
335
78
|
orderBy?: string | undefined;
|
|
336
79
|
orderDirection?: string | undefined;
|
|
337
80
|
userId: string;
|
|
338
|
-
}, Promise<
|
|
339
|
-
id: string;
|
|
340
|
-
resourceId: string;
|
|
341
|
-
userId: string;
|
|
342
|
-
title: string;
|
|
343
|
-
metadata: Record<string, unknown>;
|
|
344
|
-
createdAt: string;
|
|
345
|
-
updatedAt: string;
|
|
346
|
-
}[]>>;
|
|
81
|
+
}, Promise<any>>;
|
|
347
82
|
queryConversations: convex_server.RegisteredQuery<"public", {
|
|
348
83
|
resourceId?: string | undefined;
|
|
349
84
|
userId?: string | undefined;
|
|
@@ -351,32 +86,16 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
351
86
|
offset?: number | undefined;
|
|
352
87
|
orderBy?: string | undefined;
|
|
353
88
|
orderDirection?: string | undefined;
|
|
354
|
-
}, Promise<
|
|
355
|
-
id: string;
|
|
356
|
-
resourceId: string;
|
|
357
|
-
userId: string;
|
|
358
|
-
title: string;
|
|
359
|
-
metadata: Record<string, unknown>;
|
|
360
|
-
createdAt: string;
|
|
361
|
-
updatedAt: string;
|
|
362
|
-
}[]>>;
|
|
89
|
+
}, Promise<any>>;
|
|
363
90
|
updateConversation: convex_server.RegisteredMutation<"public", {
|
|
364
91
|
resourceId?: string | undefined;
|
|
365
92
|
title?: string | undefined;
|
|
366
93
|
metadata?: any;
|
|
367
94
|
id: string;
|
|
368
|
-
}, Promise<
|
|
369
|
-
id: string;
|
|
370
|
-
resourceId: string;
|
|
371
|
-
userId: string;
|
|
372
|
-
title: string;
|
|
373
|
-
metadata: Record<string, unknown>;
|
|
374
|
-
createdAt: string;
|
|
375
|
-
updatedAt: string;
|
|
376
|
-
}>>;
|
|
95
|
+
}, Promise<any>>;
|
|
377
96
|
deleteConversation: convex_server.RegisteredMutation<"public", {
|
|
378
97
|
id: string;
|
|
379
|
-
}, Promise<
|
|
98
|
+
}, Promise<any>>;
|
|
380
99
|
addMessage: convex_server.RegisteredMutation<"public", {
|
|
381
100
|
metadata?: any;
|
|
382
101
|
id: string;
|
|
@@ -384,9 +103,7 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
384
103
|
conversationId: string;
|
|
385
104
|
role: string;
|
|
386
105
|
parts: any;
|
|
387
|
-
}, Promise<
|
|
388
|
-
id: string;
|
|
389
|
-
}>>;
|
|
106
|
+
}, Promise<any>>;
|
|
390
107
|
addMessages: convex_server.RegisteredMutation<"public", {
|
|
391
108
|
messages: {
|
|
392
109
|
metadata?: any;
|
|
@@ -396,9 +113,7 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
396
113
|
role: string;
|
|
397
114
|
parts: any;
|
|
398
115
|
}[];
|
|
399
|
-
}, Promise<
|
|
400
|
-
count: number;
|
|
401
|
-
}>>;
|
|
116
|
+
}, Promise<any>>;
|
|
402
117
|
getMessages: convex_server.RegisteredQuery<"public", {
|
|
403
118
|
limit?: number | undefined;
|
|
404
119
|
before?: string | undefined;
|
|
@@ -406,98 +121,56 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
406
121
|
roles?: string[] | undefined;
|
|
407
122
|
userId: string;
|
|
408
123
|
conversationId: string;
|
|
409
|
-
}, Promise<
|
|
410
|
-
id: string;
|
|
411
|
-
role: string;
|
|
412
|
-
parts: unknown[];
|
|
413
|
-
metadata?: Record<string, unknown>;
|
|
414
|
-
}[]>>;
|
|
124
|
+
}, Promise<any>>;
|
|
415
125
|
clearMessages: convex_server.RegisteredMutation<"public", {
|
|
416
126
|
conversationId?: string | undefined;
|
|
417
127
|
userId: string;
|
|
418
|
-
}, Promise<
|
|
419
|
-
count: number;
|
|
420
|
-
}>>;
|
|
128
|
+
}, Promise<any>>;
|
|
421
129
|
saveConversationSteps: convex_server.RegisteredMutation<"public", {
|
|
422
130
|
steps: {
|
|
131
|
+
agentName?: string | undefined;
|
|
423
132
|
operationId?: string | undefined;
|
|
424
133
|
content?: string | undefined;
|
|
425
|
-
createdAt?: string | undefined;
|
|
426
|
-
agentName?: string | undefined;
|
|
427
134
|
arguments?: any;
|
|
428
135
|
result?: any;
|
|
429
136
|
usage?: any;
|
|
430
137
|
subAgentId?: string | undefined;
|
|
431
138
|
subAgentName?: string | undefined;
|
|
139
|
+
createdAt?: string | undefined;
|
|
432
140
|
id: string;
|
|
433
141
|
userId: string;
|
|
142
|
+
type: string;
|
|
434
143
|
conversationId: string;
|
|
435
144
|
role: string;
|
|
436
|
-
type: string;
|
|
437
145
|
agentId: string;
|
|
438
146
|
stepIndex: number;
|
|
439
147
|
}[];
|
|
440
|
-
}, Promise<
|
|
441
|
-
count: number;
|
|
442
|
-
}>>;
|
|
148
|
+
}, Promise<any>>;
|
|
443
149
|
getConversationSteps: convex_server.RegisteredQuery<"public", {
|
|
444
150
|
limit?: number | undefined;
|
|
445
151
|
operationId?: string | undefined;
|
|
446
152
|
userId: string;
|
|
447
153
|
conversationId: string;
|
|
448
|
-
}, Promise<
|
|
449
|
-
id: string;
|
|
450
|
-
conversationId: string;
|
|
451
|
-
userId: string;
|
|
452
|
-
agentId: string;
|
|
453
|
-
agentName?: string;
|
|
454
|
-
operationId?: string;
|
|
455
|
-
stepIndex: number;
|
|
456
|
-
type: string;
|
|
457
|
-
role: string;
|
|
458
|
-
content?: string;
|
|
459
|
-
arguments?: unknown;
|
|
460
|
-
result?: unknown;
|
|
461
|
-
usage?: unknown;
|
|
462
|
-
subAgentId?: string;
|
|
463
|
-
subAgentName?: string;
|
|
464
|
-
createdAt?: string;
|
|
465
|
-
}[]>>;
|
|
154
|
+
}, Promise<any>>;
|
|
466
155
|
getWorkingMemory: convex_server.RegisteredQuery<"public", {
|
|
467
156
|
userId?: string | undefined;
|
|
468
157
|
conversationId?: string | undefined;
|
|
469
158
|
scope: string;
|
|
470
|
-
}, Promise<
|
|
159
|
+
}, Promise<any>>;
|
|
471
160
|
setWorkingMemory: convex_server.RegisteredMutation<"public", {
|
|
472
161
|
userId?: string | undefined;
|
|
473
162
|
conversationId?: string | undefined;
|
|
474
|
-
scope: string;
|
|
475
163
|
content: string;
|
|
476
|
-
|
|
164
|
+
scope: string;
|
|
165
|
+
}, Promise<any>>;
|
|
477
166
|
deleteWorkingMemory: convex_server.RegisteredMutation<"public", {
|
|
478
167
|
userId?: string | undefined;
|
|
479
168
|
conversationId?: string | undefined;
|
|
480
169
|
scope: string;
|
|
481
|
-
}, Promise<
|
|
170
|
+
}, Promise<any>>;
|
|
482
171
|
getWorkflowState: convex_server.RegisteredQuery<"public", {
|
|
483
172
|
executionId: string;
|
|
484
|
-
}, Promise<
|
|
485
|
-
id: string;
|
|
486
|
-
workflowId: string;
|
|
487
|
-
workflowName: string;
|
|
488
|
-
status: string;
|
|
489
|
-
input?: unknown;
|
|
490
|
-
context?: unknown;
|
|
491
|
-
suspension?: unknown;
|
|
492
|
-
events?: unknown[];
|
|
493
|
-
output?: unknown;
|
|
494
|
-
cancellation?: unknown;
|
|
495
|
-
userId?: string;
|
|
496
|
-
conversationId?: string;
|
|
497
|
-
metadata?: Record<string, unknown>;
|
|
498
|
-
createdAt: string;
|
|
499
|
-
updatedAt: string;
|
|
500
|
-
} | null>>;
|
|
173
|
+
}, Promise<any>>;
|
|
501
174
|
queryWorkflowRuns: convex_server.RegisteredQuery<"public", {
|
|
502
175
|
limit?: number | undefined;
|
|
503
176
|
offset?: number | undefined;
|
|
@@ -505,14 +178,7 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
505
178
|
status?: string | undefined;
|
|
506
179
|
from?: string | undefined;
|
|
507
180
|
to?: string | undefined;
|
|
508
|
-
}, Promise<
|
|
509
|
-
id: string;
|
|
510
|
-
workflowId: string;
|
|
511
|
-
workflowName: string;
|
|
512
|
-
status: string;
|
|
513
|
-
createdAt: string;
|
|
514
|
-
updatedAt: string;
|
|
515
|
-
}[]>>;
|
|
181
|
+
}, Promise<any>>;
|
|
516
182
|
setWorkflowState: convex_server.RegisteredMutation<"public", {
|
|
517
183
|
userId?: string | undefined;
|
|
518
184
|
metadata?: any;
|
|
@@ -523,13 +189,13 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
523
189
|
events?: any;
|
|
524
190
|
output?: any;
|
|
525
191
|
cancellation?: any;
|
|
192
|
+
createdAt: string;
|
|
526
193
|
executionId: string;
|
|
527
194
|
workflowId: string;
|
|
528
195
|
status: string;
|
|
529
196
|
workflowName: string;
|
|
530
|
-
createdAt: string;
|
|
531
197
|
updatedAt: string;
|
|
532
|
-
}, Promise<
|
|
198
|
+
}, Promise<any>>;
|
|
533
199
|
updateWorkflowState: convex_server.RegisteredMutation<"public", {
|
|
534
200
|
metadata?: any;
|
|
535
201
|
status?: string | undefined;
|
|
@@ -538,18 +204,10 @@ declare function defineVoltAgentAPI(component: VoltAgentComponent): {
|
|
|
538
204
|
output?: any;
|
|
539
205
|
cancellation?: any;
|
|
540
206
|
executionId: string;
|
|
541
|
-
}, Promise<
|
|
207
|
+
}, Promise<any>>;
|
|
542
208
|
getSuspendedWorkflowStates: convex_server.RegisteredQuery<"public", {
|
|
543
209
|
workflowId: string;
|
|
544
|
-
}, Promise<
|
|
545
|
-
id: string;
|
|
546
|
-
workflowId: string;
|
|
547
|
-
workflowName: string;
|
|
548
|
-
status: "suspended";
|
|
549
|
-
suspension?: unknown;
|
|
550
|
-
createdAt: string;
|
|
551
|
-
updatedAt: string;
|
|
552
|
-
}[]>>;
|
|
210
|
+
}, Promise<any>>;
|
|
553
211
|
};
|
|
554
212
|
/**
|
|
555
213
|
* Type for the VoltAgent API when used with ApiFromModules.
|
package/package.json
CHANGED