@o-zakstam/voltagent-convex 1.1.2 → 1.1.4
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 → defineVoltAgentAPI.d.ts} +59 -92
- package/dist/client/defineVoltAgentAPI.d.ts.map +1 -0
- package/dist/client/defineVoltAgentAPI.js +318 -0
- package/dist/client/defineVoltAgentAPI.js.map +1 -0
- package/dist/client/index.d.ts +6 -221
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +8 -285
- package/dist/client/index.js.map +1 -1
- package/dist/client/types.d.ts +13 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +8 -0
- package/dist/client/types.js.map +1 -0
- package/dist/component/_generated/api.d.ts +44 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +352 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +11 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +46 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +121 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +78 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/conversations.d.ts +108 -0
- package/dist/component/conversations.d.ts.map +1 -0
- package/dist/component/conversations.js +278 -0
- package/dist/component/conversations.js.map +1 -0
- package/dist/component/convex.config.d.ts +13 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +21 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/messages.d.ts +235 -0
- package/dist/component/messages.d.ts.map +1 -0
- package/dist/component/messages.js +186 -0
- package/dist/component/messages.js.map +1 -0
- package/dist/component/schema.d.ts +535 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +113 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/component/steps.d.ts +65 -0
- package/dist/component/steps.d.ts.map +1 -0
- package/dist/component/steps.js +120 -0
- package/dist/component/steps.js.map +1 -0
- package/dist/component/validators.d.ts +633 -0
- package/dist/component/validators.d.ts.map +1 -0
- package/dist/component/validators.js +124 -0
- package/dist/component/validators.js.map +1 -0
- package/dist/component/workflows.d.ts +234 -0
- package/dist/component/workflows.d.ts.map +1 -0
- package/dist/component/workflows.js +229 -0
- package/dist/component/workflows.js.map +1 -0
- package/dist/component/workingMemory.d.ts +30 -0
- package/dist/component/workingMemory.d.ts.map +1 -0
- package/dist/component/workingMemory.js +131 -0
- package/dist/component/workingMemory.js.map +1 -0
- package/dist/index.d.ts +7 -318
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -434
- package/dist/index.js.map +1 -1
- package/dist/memory-adapter.d.ts +153 -0
- package/dist/memory-adapter.d.ts.map +1 -0
- package/dist/memory-adapter.js +462 -0
- package/dist/memory-adapter.js.map +1 -0
- package/dist/types.d.ts +167 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/package.json +25 -26
- package/src/client/defineVoltAgentAPI.ts +365 -0
- package/src/client/index.ts +8 -0
- package/src/client/types.ts +14 -0
- package/src/component/_generated/api.ts +60 -0
- package/src/component/_generated/component.ts +466 -0
- package/src/component/_generated/dataModel.ts +60 -0
- package/src/component/_generated/server.ts +156 -0
- package/src/index.ts +24 -0
- package/{dist/index.cjs → src/memory-adapter.ts} +345 -106
- package/src/types.ts +178 -0
- package/dist/client/index.cjs +0 -288
- package/dist/client/index.cjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -322
- /package/{convex → src/component}/conversations.ts +0 -0
- /package/{convex → src/component}/convex.config.ts +0 -0
- /package/{convex → src/component}/messages.ts +0 -0
- /package/{convex → src/component}/schema.ts +0 -0
- /package/{convex → src/component}/steps.ts +0 -0
- /package/{convex → src/component}/validators.ts +0 -0
- /package/{convex → src/component}/workflows.ts +0 -0
- /package/{convex → src/component}/workingMemory.ts +0 -0
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
declare const _default: import("convex/server").SchemaDefinition<{
|
|
2
|
+
conversations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3
|
+
title: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
resourceId: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
metadata: Record<string, any>;
|
|
9
|
+
visibleId: string;
|
|
10
|
+
}, {
|
|
11
|
+
visibleId: import("convex/values").VString<string, "required">;
|
|
12
|
+
resourceId: import("convex/values").VString<string, "required">;
|
|
13
|
+
userId: import("convex/values").VString<string, "required">;
|
|
14
|
+
title: import("convex/values").VString<string, "required">;
|
|
15
|
+
metadata: import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>;
|
|
16
|
+
createdAt: import("convex/values").VString<string, "required">;
|
|
17
|
+
updatedAt: import("convex/values").VString<string, "required">;
|
|
18
|
+
}, "required", "title" | "userId" | "resourceId" | "createdAt" | "updatedAt" | "metadata" | `metadata.${string}` | "visibleId">, {
|
|
19
|
+
by_visible_id: ["visibleId", "_creationTime"];
|
|
20
|
+
by_user_id: ["userId", "_creationTime"];
|
|
21
|
+
by_resource_id: ["resourceId", "_creationTime"];
|
|
22
|
+
by_user_id_and_updated_at: ["userId", "updatedAt", "_creationTime"];
|
|
23
|
+
}, {}, {}>;
|
|
24
|
+
messages: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
25
|
+
metadata?: Record<string, any> | undefined;
|
|
26
|
+
userId: string;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
parts: ({
|
|
29
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
30
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
31
|
+
text: string;
|
|
32
|
+
type: "text";
|
|
33
|
+
} | {
|
|
34
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
35
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
36
|
+
mimeType?: string | undefined;
|
|
37
|
+
type: "image";
|
|
38
|
+
image: string;
|
|
39
|
+
} | {
|
|
40
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
41
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
42
|
+
filename?: string | undefined;
|
|
43
|
+
data: string;
|
|
44
|
+
type: "file";
|
|
45
|
+
mimeType: string;
|
|
46
|
+
} | {
|
|
47
|
+
providerExecuted?: boolean | undefined;
|
|
48
|
+
state?: "partial-call" | "call" | undefined;
|
|
49
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
50
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
51
|
+
toolCallId: string;
|
|
52
|
+
type: "tool-call";
|
|
53
|
+
args: Record<string, any>;
|
|
54
|
+
toolName: string;
|
|
55
|
+
} | {
|
|
56
|
+
providerExecuted?: boolean | undefined;
|
|
57
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
58
|
+
result?: any;
|
|
59
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
60
|
+
isError?: boolean | undefined;
|
|
61
|
+
toolCallId: string;
|
|
62
|
+
type: "tool-result";
|
|
63
|
+
toolName: string;
|
|
64
|
+
} | {
|
|
65
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
66
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
67
|
+
signature?: string | undefined;
|
|
68
|
+
text: string;
|
|
69
|
+
type: "reasoning";
|
|
70
|
+
} | {
|
|
71
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
72
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
73
|
+
data: string;
|
|
74
|
+
type: "redacted-reasoning";
|
|
75
|
+
} | {
|
|
76
|
+
title?: string | undefined;
|
|
77
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
78
|
+
url?: string | undefined;
|
|
79
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
80
|
+
filename?: string | undefined;
|
|
81
|
+
mediaType?: string | undefined;
|
|
82
|
+
id: string;
|
|
83
|
+
type: "source";
|
|
84
|
+
sourceType: "url" | "document";
|
|
85
|
+
})[];
|
|
86
|
+
conversationId: string;
|
|
87
|
+
role: string;
|
|
88
|
+
visibleId: string;
|
|
89
|
+
}, {
|
|
90
|
+
visibleId: import("convex/values").VString<string, "required">;
|
|
91
|
+
conversationId: import("convex/values").VString<string, "required">;
|
|
92
|
+
userId: import("convex/values").VString<string, "required">;
|
|
93
|
+
role: import("convex/values").VString<string, "required">;
|
|
94
|
+
parts: import("convex/values").VArray<({
|
|
95
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
96
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
97
|
+
text: string;
|
|
98
|
+
type: "text";
|
|
99
|
+
} | {
|
|
100
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
101
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
102
|
+
mimeType?: string | undefined;
|
|
103
|
+
type: "image";
|
|
104
|
+
image: string;
|
|
105
|
+
} | {
|
|
106
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
107
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
108
|
+
filename?: string | undefined;
|
|
109
|
+
data: string;
|
|
110
|
+
type: "file";
|
|
111
|
+
mimeType: string;
|
|
112
|
+
} | {
|
|
113
|
+
providerExecuted?: boolean | undefined;
|
|
114
|
+
state?: "partial-call" | "call" | undefined;
|
|
115
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
116
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
117
|
+
toolCallId: string;
|
|
118
|
+
type: "tool-call";
|
|
119
|
+
args: Record<string, any>;
|
|
120
|
+
toolName: string;
|
|
121
|
+
} | {
|
|
122
|
+
providerExecuted?: boolean | undefined;
|
|
123
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
124
|
+
result?: any;
|
|
125
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
126
|
+
isError?: boolean | undefined;
|
|
127
|
+
toolCallId: string;
|
|
128
|
+
type: "tool-result";
|
|
129
|
+
toolName: string;
|
|
130
|
+
} | {
|
|
131
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
132
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
133
|
+
signature?: string | undefined;
|
|
134
|
+
text: string;
|
|
135
|
+
type: "reasoning";
|
|
136
|
+
} | {
|
|
137
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
138
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
139
|
+
data: string;
|
|
140
|
+
type: "redacted-reasoning";
|
|
141
|
+
} | {
|
|
142
|
+
title?: string | undefined;
|
|
143
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
144
|
+
url?: string | undefined;
|
|
145
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
146
|
+
filename?: string | undefined;
|
|
147
|
+
mediaType?: string | undefined;
|
|
148
|
+
id: string;
|
|
149
|
+
type: "source";
|
|
150
|
+
sourceType: "url" | "document";
|
|
151
|
+
})[], import("convex/values").VUnion<{
|
|
152
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
153
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
154
|
+
text: string;
|
|
155
|
+
type: "text";
|
|
156
|
+
} | {
|
|
157
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
158
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
159
|
+
mimeType?: string | undefined;
|
|
160
|
+
type: "image";
|
|
161
|
+
image: string;
|
|
162
|
+
} | {
|
|
163
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
164
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
165
|
+
filename?: string | undefined;
|
|
166
|
+
data: string;
|
|
167
|
+
type: "file";
|
|
168
|
+
mimeType: string;
|
|
169
|
+
} | {
|
|
170
|
+
providerExecuted?: boolean | undefined;
|
|
171
|
+
state?: "partial-call" | "call" | undefined;
|
|
172
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
173
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
174
|
+
toolCallId: string;
|
|
175
|
+
type: "tool-call";
|
|
176
|
+
args: Record<string, any>;
|
|
177
|
+
toolName: string;
|
|
178
|
+
} | {
|
|
179
|
+
providerExecuted?: boolean | undefined;
|
|
180
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
181
|
+
result?: any;
|
|
182
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
183
|
+
isError?: boolean | undefined;
|
|
184
|
+
toolCallId: string;
|
|
185
|
+
type: "tool-result";
|
|
186
|
+
toolName: string;
|
|
187
|
+
} | {
|
|
188
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
189
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
190
|
+
signature?: string | undefined;
|
|
191
|
+
text: string;
|
|
192
|
+
type: "reasoning";
|
|
193
|
+
} | {
|
|
194
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
195
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
196
|
+
data: string;
|
|
197
|
+
type: "redacted-reasoning";
|
|
198
|
+
} | {
|
|
199
|
+
title?: string | undefined;
|
|
200
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
201
|
+
url?: string | undefined;
|
|
202
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
203
|
+
filename?: string | undefined;
|
|
204
|
+
mediaType?: string | undefined;
|
|
205
|
+
id: string;
|
|
206
|
+
type: "source";
|
|
207
|
+
sourceType: "url" | "document";
|
|
208
|
+
}, [import("convex/values").VObject<{
|
|
209
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
210
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
211
|
+
text: string;
|
|
212
|
+
type: "text";
|
|
213
|
+
}, {
|
|
214
|
+
type: import("convex/values").VLiteral<"text", "required">;
|
|
215
|
+
text: import("convex/values").VString<string, "required">;
|
|
216
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
217
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
218
|
+
}, "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
219
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
220
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
221
|
+
mimeType?: string | undefined;
|
|
222
|
+
type: "image";
|
|
223
|
+
image: string;
|
|
224
|
+
}, {
|
|
225
|
+
type: import("convex/values").VLiteral<"image", "required">;
|
|
226
|
+
image: import("convex/values").VString<string, "required">;
|
|
227
|
+
mimeType: import("convex/values").VString<string | undefined, "optional">;
|
|
228
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
229
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
230
|
+
}, "required", "type" | "providerOptions" | "image" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType">, import("convex/values").VObject<{
|
|
231
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
232
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
233
|
+
filename?: string | undefined;
|
|
234
|
+
data: string;
|
|
235
|
+
type: "file";
|
|
236
|
+
mimeType: string;
|
|
237
|
+
}, {
|
|
238
|
+
type: import("convex/values").VLiteral<"file", "required">;
|
|
239
|
+
data: import("convex/values").VString<string, "required">;
|
|
240
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
241
|
+
mimeType: import("convex/values").VString<string, "required">;
|
|
242
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
243
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
244
|
+
}, "required", "data" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "filename">, import("convex/values").VObject<{
|
|
245
|
+
providerExecuted?: boolean | undefined;
|
|
246
|
+
state?: "partial-call" | "call" | undefined;
|
|
247
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
248
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
249
|
+
toolCallId: string;
|
|
250
|
+
type: "tool-call";
|
|
251
|
+
args: Record<string, any>;
|
|
252
|
+
toolName: string;
|
|
253
|
+
}, {
|
|
254
|
+
type: import("convex/values").VLiteral<"tool-call", "required">;
|
|
255
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
256
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
257
|
+
args: import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>;
|
|
258
|
+
state: import("convex/values").VUnion<"partial-call" | "call" | undefined, [import("convex/values").VLiteral<"partial-call", "required">, import("convex/values").VLiteral<"call", "required">], "optional", never>;
|
|
259
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
260
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
261
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
262
|
+
}, "required", "toolCallId" | "providerExecuted" | "state" | "type" | "providerOptions" | "args" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolName" | `args.${string}`>, import("convex/values").VObject<{
|
|
263
|
+
providerExecuted?: boolean | undefined;
|
|
264
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
265
|
+
result?: any;
|
|
266
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
267
|
+
isError?: boolean | undefined;
|
|
268
|
+
toolCallId: string;
|
|
269
|
+
type: "tool-result";
|
|
270
|
+
toolName: string;
|
|
271
|
+
}, {
|
|
272
|
+
type: import("convex/values").VLiteral<"tool-result", "required">;
|
|
273
|
+
toolCallId: import("convex/values").VString<string, "required">;
|
|
274
|
+
toolName: import("convex/values").VString<string, "required">;
|
|
275
|
+
result: import("convex/values").VAny<any, "optional", string>;
|
|
276
|
+
isError: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
277
|
+
providerExecuted: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
278
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
279
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
280
|
+
}, "required", "toolCallId" | "providerExecuted" | "type" | "providerOptions" | "result" | `result.${string}` | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolName" | "isError">, import("convex/values").VObject<{
|
|
281
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
282
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
283
|
+
signature?: string | undefined;
|
|
284
|
+
text: string;
|
|
285
|
+
type: "reasoning";
|
|
286
|
+
}, {
|
|
287
|
+
type: import("convex/values").VLiteral<"reasoning", "required">;
|
|
288
|
+
text: import("convex/values").VString<string, "required">;
|
|
289
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
290
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
291
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
292
|
+
}, "required", "text" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "signature">, import("convex/values").VObject<{
|
|
293
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
294
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
295
|
+
data: string;
|
|
296
|
+
type: "redacted-reasoning";
|
|
297
|
+
}, {
|
|
298
|
+
type: import("convex/values").VLiteral<"redacted-reasoning", "required">;
|
|
299
|
+
data: import("convex/values").VString<string, "required">;
|
|
300
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
301
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
302
|
+
}, "required", "data" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}`>, import("convex/values").VObject<{
|
|
303
|
+
title?: string | undefined;
|
|
304
|
+
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
305
|
+
url?: string | undefined;
|
|
306
|
+
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
307
|
+
filename?: string | undefined;
|
|
308
|
+
mediaType?: string | undefined;
|
|
309
|
+
id: string;
|
|
310
|
+
type: "source";
|
|
311
|
+
sourceType: "url" | "document";
|
|
312
|
+
}, {
|
|
313
|
+
type: import("convex/values").VLiteral<"source", "required">;
|
|
314
|
+
sourceType: import("convex/values").VUnion<"url" | "document", [import("convex/values").VLiteral<"url", "required">, import("convex/values").VLiteral<"document", "required">], "required", never>;
|
|
315
|
+
id: import("convex/values").VString<string, "required">;
|
|
316
|
+
url: import("convex/values").VString<string | undefined, "optional">;
|
|
317
|
+
title: import("convex/values").VString<string | undefined, "optional">;
|
|
318
|
+
mediaType: import("convex/values").VString<string | undefined, "optional">;
|
|
319
|
+
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
320
|
+
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
321
|
+
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
322
|
+
}, "required", "id" | "title" | "type" | "providerOptions" | "url" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "filename" | "sourceType" | "mediaType">], "required", "id" | "data" | "text" | "toolCallId" | "title" | "providerExecuted" | "state" | "type" | "providerOptions" | "args" | "image" | "url" | "result" | `result.${string}` | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mimeType" | "filename" | "toolName" | `args.${string}` | "isError" | "signature" | "sourceType" | "mediaType">, "required">;
|
|
323
|
+
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
324
|
+
createdAt: import("convex/values").VString<string, "required">;
|
|
325
|
+
}, "required", "userId" | "createdAt" | "metadata" | "parts" | "conversationId" | "role" | `metadata.${string}` | "visibleId">, {
|
|
326
|
+
by_conversation_id: ["conversationId", "_creationTime"];
|
|
327
|
+
by_conversation_id_and_created_at: ["conversationId", "createdAt", "_creationTime"];
|
|
328
|
+
by_conversation_id_and_user_id: ["conversationId", "userId", "_creationTime"];
|
|
329
|
+
by_user_id: ["userId", "_creationTime"];
|
|
330
|
+
by_visible_id: ["visibleId", "_creationTime"];
|
|
331
|
+
}, {}, {}>;
|
|
332
|
+
users: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
333
|
+
metadata?: Record<string, any> | undefined;
|
|
334
|
+
createdAt: string;
|
|
335
|
+
updatedAt: string;
|
|
336
|
+
visibleId: string;
|
|
337
|
+
}, {
|
|
338
|
+
visibleId: import("convex/values").VString<string, "required">;
|
|
339
|
+
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
340
|
+
createdAt: import("convex/values").VString<string, "required">;
|
|
341
|
+
updatedAt: import("convex/values").VString<string, "required">;
|
|
342
|
+
}, "required", "createdAt" | "updatedAt" | "metadata" | `metadata.${string}` | "visibleId">, {
|
|
343
|
+
by_visible_id: ["visibleId", "_creationTime"];
|
|
344
|
+
}, {}, {}>;
|
|
345
|
+
workflowStates: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
346
|
+
input?: any;
|
|
347
|
+
output?: any;
|
|
348
|
+
userId?: string | undefined;
|
|
349
|
+
metadata?: Record<string, any> | undefined;
|
|
350
|
+
conversationId?: string | undefined;
|
|
351
|
+
context?: any[][] | undefined;
|
|
352
|
+
suspension?: {
|
|
353
|
+
reason?: string | undefined;
|
|
354
|
+
suspendedStepIndex?: number | undefined;
|
|
355
|
+
lastEventSequence?: number | undefined;
|
|
356
|
+
suspendData?: any;
|
|
357
|
+
checkpoint?: {
|
|
358
|
+
stepExecutionState?: any;
|
|
359
|
+
completedStepsData?: any[] | undefined;
|
|
360
|
+
} | undefined;
|
|
361
|
+
suspendedAt: string;
|
|
362
|
+
} | undefined;
|
|
363
|
+
events?: {
|
|
364
|
+
input?: any;
|
|
365
|
+
output?: any;
|
|
366
|
+
status?: string | undefined;
|
|
367
|
+
metadata?: Record<string, any> | undefined;
|
|
368
|
+
context?: Record<string, any> | undefined;
|
|
369
|
+
from?: string | undefined;
|
|
370
|
+
name?: string | undefined;
|
|
371
|
+
endTime?: string | undefined;
|
|
372
|
+
id: string;
|
|
373
|
+
type: string;
|
|
374
|
+
startTime: string;
|
|
375
|
+
}[] | undefined;
|
|
376
|
+
cancellation?: {
|
|
377
|
+
reason?: string | undefined;
|
|
378
|
+
cancelledAt: string;
|
|
379
|
+
} | undefined;
|
|
380
|
+
status: string;
|
|
381
|
+
createdAt: string;
|
|
382
|
+
updatedAt: string;
|
|
383
|
+
workflowId: string;
|
|
384
|
+
workflowName: string;
|
|
385
|
+
visibleId: string;
|
|
386
|
+
}, {
|
|
387
|
+
visibleId: import("convex/values").VString<string, "required">;
|
|
388
|
+
workflowId: import("convex/values").VString<string, "required">;
|
|
389
|
+
workflowName: import("convex/values").VString<string, "required">;
|
|
390
|
+
status: import("convex/values").VString<string, "required">;
|
|
391
|
+
input: import("convex/values").VAny<any, "optional", string>;
|
|
392
|
+
context: import("convex/values").VArray<any[][] | undefined, import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">, "optional">;
|
|
393
|
+
suspension: import("convex/values").VObject<{
|
|
394
|
+
reason?: string | undefined;
|
|
395
|
+
suspendedStepIndex?: number | undefined;
|
|
396
|
+
lastEventSequence?: number | undefined;
|
|
397
|
+
suspendData?: any;
|
|
398
|
+
checkpoint?: {
|
|
399
|
+
stepExecutionState?: any;
|
|
400
|
+
completedStepsData?: any[] | undefined;
|
|
401
|
+
} | undefined;
|
|
402
|
+
suspendedAt: string;
|
|
403
|
+
} | undefined, {
|
|
404
|
+
suspendedAt: import("convex/values").VString<string, "required">;
|
|
405
|
+
reason: import("convex/values").VString<string | undefined, "optional">;
|
|
406
|
+
suspendedStepIndex: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
407
|
+
lastEventSequence: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
408
|
+
suspendData: import("convex/values").VAny<any, "optional", string>;
|
|
409
|
+
checkpoint: import("convex/values").VObject<{
|
|
410
|
+
stepExecutionState?: any;
|
|
411
|
+
completedStepsData?: any[] | undefined;
|
|
412
|
+
} | undefined, {
|
|
413
|
+
stepExecutionState: import("convex/values").VAny<any, "optional", string>;
|
|
414
|
+
completedStepsData: import("convex/values").VArray<any[] | undefined, import("convex/values").VAny<any, "required", string>, "optional">;
|
|
415
|
+
}, "optional", "stepExecutionState" | "completedStepsData" | `stepExecutionState.${string}`>;
|
|
416
|
+
}, "optional", "suspendedAt" | "reason" | "suspendedStepIndex" | "lastEventSequence" | "suspendData" | "checkpoint" | `suspendData.${string}` | "checkpoint.stepExecutionState" | "checkpoint.completedStepsData" | `checkpoint.stepExecutionState.${string}`>;
|
|
417
|
+
events: import("convex/values").VArray<{
|
|
418
|
+
input?: any;
|
|
419
|
+
output?: any;
|
|
420
|
+
status?: string | undefined;
|
|
421
|
+
metadata?: Record<string, any> | undefined;
|
|
422
|
+
context?: Record<string, any> | undefined;
|
|
423
|
+
from?: string | undefined;
|
|
424
|
+
name?: string | undefined;
|
|
425
|
+
endTime?: string | undefined;
|
|
426
|
+
id: string;
|
|
427
|
+
type: string;
|
|
428
|
+
startTime: string;
|
|
429
|
+
}[] | undefined, import("convex/values").VObject<{
|
|
430
|
+
input?: any;
|
|
431
|
+
output?: any;
|
|
432
|
+
status?: string | undefined;
|
|
433
|
+
metadata?: Record<string, any> | undefined;
|
|
434
|
+
context?: Record<string, any> | undefined;
|
|
435
|
+
from?: string | undefined;
|
|
436
|
+
name?: string | undefined;
|
|
437
|
+
endTime?: string | undefined;
|
|
438
|
+
id: string;
|
|
439
|
+
type: string;
|
|
440
|
+
startTime: string;
|
|
441
|
+
}, {
|
|
442
|
+
id: import("convex/values").VString<string, "required">;
|
|
443
|
+
type: import("convex/values").VString<string, "required">;
|
|
444
|
+
name: import("convex/values").VString<string | undefined, "optional">;
|
|
445
|
+
from: import("convex/values").VString<string | undefined, "optional">;
|
|
446
|
+
startTime: import("convex/values").VString<string, "required">;
|
|
447
|
+
endTime: import("convex/values").VString<string | undefined, "optional">;
|
|
448
|
+
status: import("convex/values").VString<string | undefined, "optional">;
|
|
449
|
+
input: import("convex/values").VAny<any, "optional", string>;
|
|
450
|
+
output: import("convex/values").VAny<any, "optional", string>;
|
|
451
|
+
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
452
|
+
context: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
453
|
+
}, "required", "id" | "input" | "output" | "type" | "status" | "metadata" | "context" | "from" | `metadata.${string}` | "name" | "startTime" | "endTime" | `input.${string}` | `output.${string}` | `context.${string}`>, "optional">;
|
|
454
|
+
output: import("convex/values").VAny<any, "optional", string>;
|
|
455
|
+
cancellation: import("convex/values").VObject<{
|
|
456
|
+
reason?: string | undefined;
|
|
457
|
+
cancelledAt: string;
|
|
458
|
+
} | undefined, {
|
|
459
|
+
cancelledAt: import("convex/values").VString<string, "required">;
|
|
460
|
+
reason: import("convex/values").VString<string | undefined, "optional">;
|
|
461
|
+
}, "optional", "reason" | "cancelledAt">;
|
|
462
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
463
|
+
conversationId: import("convex/values").VString<string | undefined, "optional">;
|
|
464
|
+
metadata: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
465
|
+
createdAt: import("convex/values").VString<string, "required">;
|
|
466
|
+
updatedAt: import("convex/values").VString<string, "required">;
|
|
467
|
+
}, "required", "input" | "output" | "status" | "userId" | "createdAt" | "updatedAt" | "metadata" | "workflowId" | "workflowName" | "conversationId" | "context" | "suspension" | "events" | "cancellation" | `metadata.${string}` | `input.${string}` | `output.${string}` | "visibleId" | "suspension.suspendedAt" | "suspension.reason" | "suspension.suspendedStepIndex" | "suspension.lastEventSequence" | "suspension.suspendData" | "suspension.checkpoint" | `suspension.suspendData.${string}` | "suspension.checkpoint.stepExecutionState" | "suspension.checkpoint.completedStepsData" | `suspension.checkpoint.stepExecutionState.${string}` | "cancellation.reason" | "cancellation.cancelledAt">, {
|
|
468
|
+
by_visible_id: ["visibleId", "_creationTime"];
|
|
469
|
+
by_workflow_id: ["workflowId", "_creationTime"];
|
|
470
|
+
by_status: ["status", "_creationTime"];
|
|
471
|
+
by_workflow_id_and_status: ["workflowId", "status", "_creationTime"];
|
|
472
|
+
by_created_at: ["createdAt", "_creationTime"];
|
|
473
|
+
}, {}, {}>;
|
|
474
|
+
conversationSteps: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
475
|
+
operationId?: string | undefined;
|
|
476
|
+
content?: string | undefined;
|
|
477
|
+
agentName?: string | undefined;
|
|
478
|
+
arguments?: Record<string, any> | undefined;
|
|
479
|
+
result?: any;
|
|
480
|
+
usage?: {
|
|
481
|
+
promptTokens?: number | undefined;
|
|
482
|
+
completionTokens?: number | undefined;
|
|
483
|
+
totalTokens?: number | undefined;
|
|
484
|
+
reasoningTokens?: number | undefined;
|
|
485
|
+
cachedInputTokens?: number | undefined;
|
|
486
|
+
} | undefined;
|
|
487
|
+
subAgentId?: string | undefined;
|
|
488
|
+
subAgentName?: string | undefined;
|
|
489
|
+
type: string;
|
|
490
|
+
userId: string;
|
|
491
|
+
createdAt: string;
|
|
492
|
+
conversationId: string;
|
|
493
|
+
role: string;
|
|
494
|
+
agentId: string;
|
|
495
|
+
stepIndex: number;
|
|
496
|
+
visibleId: string;
|
|
497
|
+
}, {
|
|
498
|
+
visibleId: import("convex/values").VString<string, "required">;
|
|
499
|
+
conversationId: import("convex/values").VString<string, "required">;
|
|
500
|
+
userId: import("convex/values").VString<string, "required">;
|
|
501
|
+
agentId: import("convex/values").VString<string, "required">;
|
|
502
|
+
agentName: import("convex/values").VString<string | undefined, "optional">;
|
|
503
|
+
operationId: import("convex/values").VString<string | undefined, "optional">;
|
|
504
|
+
stepIndex: import("convex/values").VFloat64<number, "required">;
|
|
505
|
+
type: import("convex/values").VString<string, "required">;
|
|
506
|
+
role: import("convex/values").VString<string, "required">;
|
|
507
|
+
content: import("convex/values").VString<string | undefined, "optional">;
|
|
508
|
+
arguments: import("convex/values").VRecord<Record<string, any> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "optional", string>;
|
|
509
|
+
result: import("convex/values").VAny<any, "optional", string>;
|
|
510
|
+
usage: import("convex/values").VObject<{
|
|
511
|
+
promptTokens?: number | undefined;
|
|
512
|
+
completionTokens?: number | undefined;
|
|
513
|
+
totalTokens?: number | undefined;
|
|
514
|
+
reasoningTokens?: number | undefined;
|
|
515
|
+
cachedInputTokens?: number | undefined;
|
|
516
|
+
} | undefined, {
|
|
517
|
+
promptTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
518
|
+
completionTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
519
|
+
totalTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
520
|
+
reasoningTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
521
|
+
cachedInputTokens: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
522
|
+
}, "optional", "promptTokens" | "completionTokens" | "totalTokens" | "reasoningTokens" | "cachedInputTokens">;
|
|
523
|
+
subAgentId: import("convex/values").VString<string | undefined, "optional">;
|
|
524
|
+
subAgentName: import("convex/values").VString<string | undefined, "optional">;
|
|
525
|
+
createdAt: import("convex/values").VString<string, "required">;
|
|
526
|
+
}, "required", "type" | "userId" | "createdAt" | "conversationId" | "role" | "operationId" | "content" | "agentId" | "agentName" | "stepIndex" | "arguments" | "result" | "usage" | "subAgentId" | "subAgentName" | `arguments.${string}` | `result.${string}` | "visibleId" | "usage.promptTokens" | "usage.completionTokens" | "usage.totalTokens" | "usage.reasoningTokens" | "usage.cachedInputTokens">, {
|
|
527
|
+
by_visible_id: ["visibleId", "_creationTime"];
|
|
528
|
+
by_conversation_id: ["conversationId", "_creationTime"];
|
|
529
|
+
by_conversation_id_and_step_index: ["conversationId", "stepIndex", "_creationTime"];
|
|
530
|
+
by_conversation_id_and_operation_id: ["conversationId", "operationId", "_creationTime"];
|
|
531
|
+
by_user_id: ["userId", "_creationTime"];
|
|
532
|
+
}, {}, {}>;
|
|
533
|
+
}, true>;
|
|
534
|
+
export default _default;
|
|
535
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuHA,wBAMG"}
|