@convex-dev/agent 0.0.16 → 0.0.17-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +159 -98
  2. package/dist/commonjs/client/index.d.ts +806 -189
  3. package/dist/commonjs/client/index.d.ts.map +1 -1
  4. package/dist/commonjs/client/index.js +178 -28
  5. package/dist/commonjs/client/index.js.map +1 -1
  6. package/dist/commonjs/client/playground.d.ts +609 -0
  7. package/dist/commonjs/client/playground.d.ts.map +1 -0
  8. package/dist/commonjs/client/playground.js +200 -0
  9. package/dist/commonjs/client/playground.js.map +1 -0
  10. package/dist/commonjs/component/apiKeys.d.ts +11 -0
  11. package/dist/commonjs/component/apiKeys.d.ts.map +1 -0
  12. package/dist/commonjs/component/apiKeys.js +69 -0
  13. package/dist/commonjs/component/apiKeys.js.map +1 -0
  14. package/dist/commonjs/component/files.d.ts +31 -0
  15. package/dist/commonjs/component/files.d.ts.map +1 -0
  16. package/dist/commonjs/component/files.js +61 -0
  17. package/dist/commonjs/component/files.js.map +1 -0
  18. package/dist/commonjs/component/messages.d.ts +720 -676
  19. package/dist/commonjs/component/messages.d.ts.map +1 -1
  20. package/dist/commonjs/component/messages.js +99 -287
  21. package/dist/commonjs/component/messages.js.map +1 -1
  22. package/dist/commonjs/component/schema.d.ts +1124 -1324
  23. package/dist/commonjs/component/schema.d.ts.map +1 -1
  24. package/dist/commonjs/component/schema.js +26 -14
  25. package/dist/commonjs/component/schema.js.map +1 -1
  26. package/dist/commonjs/component/threads.d.ts +95 -0
  27. package/dist/commonjs/component/threads.d.ts.map +1 -0
  28. package/dist/commonjs/component/threads.js +151 -0
  29. package/dist/commonjs/component/threads.js.map +1 -0
  30. package/dist/commonjs/component/users.d.ts +37 -0
  31. package/dist/commonjs/component/users.d.ts.map +1 -0
  32. package/dist/commonjs/component/users.js +118 -0
  33. package/dist/commonjs/component/users.js.map +1 -0
  34. package/dist/commonjs/component/vector/index.d.ts.map +1 -1
  35. package/dist/commonjs/component/vector/index.js +4 -6
  36. package/dist/commonjs/component/vector/index.js.map +1 -1
  37. package/dist/commonjs/component/vector/tables.d.ts +10 -10
  38. package/dist/commonjs/component/vector/tables.d.ts.map +1 -1
  39. package/dist/commonjs/component/vector/tables.js.map +1 -1
  40. package/dist/commonjs/mapping.d.ts +7 -1
  41. package/dist/commonjs/mapping.d.ts.map +1 -1
  42. package/dist/commonjs/mapping.js +39 -18
  43. package/dist/commonjs/mapping.js.map +1 -1
  44. package/dist/commonjs/validators.d.ts +1669 -2340
  45. package/dist/commonjs/validators.d.ts.map +1 -1
  46. package/dist/commonjs/validators.js +35 -26
  47. package/dist/commonjs/validators.js.map +1 -1
  48. package/dist/esm/client/index.d.ts +806 -189
  49. package/dist/esm/client/index.d.ts.map +1 -1
  50. package/dist/esm/client/index.js +178 -28
  51. package/dist/esm/client/index.js.map +1 -1
  52. package/dist/esm/client/playground.d.ts +609 -0
  53. package/dist/esm/client/playground.d.ts.map +1 -0
  54. package/dist/esm/client/playground.js +200 -0
  55. package/dist/esm/client/playground.js.map +1 -0
  56. package/dist/esm/component/apiKeys.d.ts +11 -0
  57. package/dist/esm/component/apiKeys.d.ts.map +1 -0
  58. package/dist/esm/component/apiKeys.js +69 -0
  59. package/dist/esm/component/apiKeys.js.map +1 -0
  60. package/dist/esm/component/files.d.ts +31 -0
  61. package/dist/esm/component/files.d.ts.map +1 -0
  62. package/dist/esm/component/files.js +61 -0
  63. package/dist/esm/component/files.js.map +1 -0
  64. package/dist/esm/component/messages.d.ts +720 -676
  65. package/dist/esm/component/messages.d.ts.map +1 -1
  66. package/dist/esm/component/messages.js +99 -287
  67. package/dist/esm/component/messages.js.map +1 -1
  68. package/dist/esm/component/schema.d.ts +1124 -1324
  69. package/dist/esm/component/schema.d.ts.map +1 -1
  70. package/dist/esm/component/schema.js +26 -14
  71. package/dist/esm/component/schema.js.map +1 -1
  72. package/dist/esm/component/threads.d.ts +95 -0
  73. package/dist/esm/component/threads.d.ts.map +1 -0
  74. package/dist/esm/component/threads.js +151 -0
  75. package/dist/esm/component/threads.js.map +1 -0
  76. package/dist/esm/component/users.d.ts +37 -0
  77. package/dist/esm/component/users.d.ts.map +1 -0
  78. package/dist/esm/component/users.js +118 -0
  79. package/dist/esm/component/users.js.map +1 -0
  80. package/dist/esm/component/vector/index.d.ts.map +1 -1
  81. package/dist/esm/component/vector/index.js +4 -6
  82. package/dist/esm/component/vector/index.js.map +1 -1
  83. package/dist/esm/component/vector/tables.d.ts +10 -10
  84. package/dist/esm/component/vector/tables.d.ts.map +1 -1
  85. package/dist/esm/component/vector/tables.js.map +1 -1
  86. package/dist/esm/mapping.d.ts +7 -1
  87. package/dist/esm/mapping.d.ts.map +1 -1
  88. package/dist/esm/mapping.js +39 -18
  89. package/dist/esm/mapping.js.map +1 -1
  90. package/dist/esm/validators.d.ts +1669 -2340
  91. package/dist/esm/validators.d.ts.map +1 -1
  92. package/dist/esm/validators.js +35 -26
  93. package/dist/esm/validators.js.map +1 -1
  94. package/package.json +8 -1
  95. package/src/client/index.ts +220 -59
  96. package/src/client/playground.ts +257 -0
  97. package/src/component/_generated/api.d.ts +601 -400
  98. package/src/component/apiKeys.ts +74 -0
  99. package/src/component/files.ts +72 -0
  100. package/src/component/messages.test.ts +23 -0
  101. package/src/component/messages.ts +127 -341
  102. package/src/component/schema.ts +32 -13
  103. package/src/component/threads.ts +184 -0
  104. package/src/component/users.ts +145 -0
  105. package/src/component/vector/index.ts +5 -6
  106. package/src/component/vector/tables.ts +15 -15
  107. package/src/mapping.ts +65 -32
  108. package/src/validators.ts +47 -28
@@ -8,7 +8,11 @@
8
8
  * @module
9
9
  */
10
10
 
11
+ import type * as apiKeys from "../apiKeys.js";
12
+ import type * as files from "../files.js";
11
13
  import type * as messages from "../messages.js";
14
+ import type * as threads from "../threads.js";
15
+ import type * as users from "../users.js";
12
16
  import type * as vector_index from "../vector/index.js";
13
17
  import type * as vector_tables from "../vector/tables.js";
14
18
 
@@ -27,11 +31,58 @@ import type {
27
31
  * ```
28
32
  */
29
33
  declare const fullApi: ApiFromModules<{
34
+ apiKeys: typeof apiKeys;
35
+ files: typeof files;
30
36
  messages: typeof messages;
37
+ threads: typeof threads;
38
+ users: typeof users;
31
39
  "vector/index": typeof vector_index;
32
40
  "vector/tables": typeof vector_tables;
33
41
  }>;
34
42
  export type Mounts = {
43
+ apiKeys: {
44
+ destroy: FunctionReference<
45
+ "mutation",
46
+ "public",
47
+ { apiKey?: string; name?: string },
48
+ | "missing"
49
+ | "deleted"
50
+ | "name mismatch"
51
+ | "must provide either apiKey or name"
52
+ >;
53
+ issue: FunctionReference<"mutation", "public", { name?: string }, string>;
54
+ validate: FunctionReference<"query", "public", { apiKey: string }, boolean>;
55
+ };
56
+ files: {
57
+ addFile: FunctionReference<
58
+ "mutation",
59
+ "public",
60
+ { hash: string; storageId: string },
61
+ string
62
+ >;
63
+ getFilesToDelete: FunctionReference<
64
+ "query",
65
+ "public",
66
+ { cursor?: string; limit?: number },
67
+ {
68
+ continueCursor: string;
69
+ files: Array<{
70
+ _creationTime: number;
71
+ _id: string;
72
+ hash: string;
73
+ refcount: number;
74
+ storageId: string;
75
+ }>;
76
+ isDone: boolean;
77
+ }
78
+ >;
79
+ resuseFile: FunctionReference<
80
+ "mutation",
81
+ "public",
82
+ { fileId: string },
83
+ null
84
+ >;
85
+ };
35
86
  messages: {
36
87
  addMessages: FunctionReference<
37
88
  "mutation",
@@ -46,7 +97,12 @@ export type Mounts = {
46
97
  vector: Array<number>;
47
98
  };
48
99
  error?: string;
49
- fileId?: string;
100
+ files?: Array<{
101
+ data?: ArrayBuffer | string;
102
+ fileId?: string;
103
+ mimeType: string;
104
+ url?: string;
105
+ }>;
50
106
  finishReason?:
51
107
  | "stop"
52
108
  | "length"
@@ -62,28 +118,24 @@ export type Mounts = {
62
118
  | string
63
119
  | Array<
64
120
  | {
65
- experimental_providerMetadata?: Record<string, any>;
66
- providerOptions?: Record<string, any>;
121
+ providerOptions?: Record<string, Record<string, any>>;
67
122
  text: string;
68
123
  type: "text";
69
124
  }
70
125
  | {
71
- experimental_providerMetadata?: Record<string, any>;
72
126
  image: string | ArrayBuffer;
73
127
  mimeType?: string;
74
- providerOptions?: Record<string, any>;
128
+ providerOptions?: Record<string, Record<string, any>>;
75
129
  type: "image";
76
130
  }
77
131
  | {
78
132
  data: string | ArrayBuffer;
79
- experimental_providerMetadata?: Record<string, any>;
80
133
  mimeType: string;
81
- providerOptions?: Record<string, any>;
134
+ providerOptions?: Record<string, Record<string, any>>;
82
135
  type: "file";
83
136
  }
84
137
  >;
85
- experimental_providerMetadata?: Record<string, any>;
86
- providerOptions?: Record<string, any>;
138
+ providerOptions?: Record<string, Record<string, any>>;
87
139
  role: "user";
88
140
  }
89
141
  | {
@@ -91,41 +143,36 @@ export type Mounts = {
91
143
  | string
92
144
  | Array<
93
145
  | {
94
- experimental_providerMetadata?: Record<string, any>;
95
- providerOptions?: Record<string, any>;
146
+ providerOptions?: Record<string, Record<string, any>>;
96
147
  text: string;
97
148
  type: "text";
98
149
  }
99
150
  | {
100
151
  data: string | ArrayBuffer;
101
- experimental_providerMetadata?: Record<string, any>;
102
152
  mimeType: string;
103
- providerOptions?: Record<string, any>;
153
+ providerOptions?: Record<string, Record<string, any>>;
104
154
  type: "file";
105
155
  }
106
156
  | {
107
- experimental_providerMetadata?: Record<string, any>;
108
- providerOptions?: Record<string, any>;
157
+ providerOptions?: Record<string, Record<string, any>>;
158
+ signature?: string;
109
159
  text: string;
110
160
  type: "reasoning";
111
161
  }
112
162
  | {
113
163
  data: string;
114
- experimental_providerMetadata?: Record<string, any>;
115
- providerOptions?: Record<string, any>;
164
+ providerOptions?: Record<string, Record<string, any>>;
116
165
  type: "redacted-reasoning";
117
166
  }
118
167
  | {
119
168
  args: any;
120
- experimental_providerMetadata?: Record<string, any>;
121
- providerOptions?: Record<string, any>;
169
+ providerOptions?: Record<string, Record<string, any>>;
122
170
  toolCallId: string;
123
171
  toolName: string;
124
172
  type: "tool-call";
125
173
  }
126
174
  >;
127
- experimental_providerMetadata?: Record<string, any>;
128
- providerOptions?: Record<string, any>;
175
+ providerOptions?: Record<string, Record<string, any>>;
129
176
  role: "assistant";
130
177
  }
131
178
  | {
@@ -135,31 +182,32 @@ export type Mounts = {
135
182
  | { text: string; type: "text" }
136
183
  | { data: string; mimeType?: string; type: "image" }
137
184
  >;
138
- experimental_providerMetadata?: Record<string, any>;
139
185
  isError?: boolean;
140
- providerOptions?: Record<string, any>;
186
+ providerOptions?: Record<string, Record<string, any>>;
141
187
  result: any;
142
188
  toolCallId: string;
143
189
  toolName: string;
144
190
  type: "tool-result";
145
191
  }>;
146
- experimental_providerMetadata?: Record<string, any>;
147
- providerOptions?: Record<string, any>;
192
+ providerOptions?: Record<string, Record<string, any>>;
148
193
  role: "tool";
149
194
  }
150
195
  | {
151
196
  content: string;
152
- experimental_providerMetadata?: Record<string, any>;
153
- providerOptions?: Record<string, any>;
197
+ providerOptions?: Record<string, Record<string, any>>;
154
198
  role: "system";
155
199
  };
156
200
  model?: string;
157
201
  provider?: string;
158
202
  providerMetadata?: Record<string, Record<string, any>>;
159
203
  reasoning?: string;
204
+ reasoningDetails?: Array<
205
+ | { signature?: string; text: string; type: "text" }
206
+ | { data: string; type: "redacted" }
207
+ >;
160
208
  sources?: Array<{
161
209
  id: string;
162
- providerMetadata?: Record<string, Record<string, any>>;
210
+ providerOptions?: Record<string, Record<string, any>>;
163
211
  sourceType: "url";
164
212
  title?: string;
165
213
  url: string;
@@ -198,7 +246,12 @@ export type Mounts = {
198
246
  | string
199
247
  | string;
200
248
  error?: string;
201
- fileId?: string;
249
+ files?: Array<{
250
+ data?: ArrayBuffer | string;
251
+ fileId?: string;
252
+ mimeType: string;
253
+ url?: string;
254
+ }>;
202
255
  finishReason?:
203
256
  | "stop"
204
257
  | "length"
@@ -214,28 +267,24 @@ export type Mounts = {
214
267
  | string
215
268
  | Array<
216
269
  | {
217
- experimental_providerMetadata?: Record<string, any>;
218
- providerOptions?: Record<string, any>;
270
+ providerOptions?: Record<string, Record<string, any>>;
219
271
  text: string;
220
272
  type: "text";
221
273
  }
222
274
  | {
223
- experimental_providerMetadata?: Record<string, any>;
224
275
  image: string | ArrayBuffer;
225
276
  mimeType?: string;
226
- providerOptions?: Record<string, any>;
277
+ providerOptions?: Record<string, Record<string, any>>;
227
278
  type: "image";
228
279
  }
229
280
  | {
230
281
  data: string | ArrayBuffer;
231
- experimental_providerMetadata?: Record<string, any>;
232
282
  mimeType: string;
233
- providerOptions?: Record<string, any>;
283
+ providerOptions?: Record<string, Record<string, any>>;
234
284
  type: "file";
235
285
  }
236
286
  >;
237
- experimental_providerMetadata?: Record<string, any>;
238
- providerOptions?: Record<string, any>;
287
+ providerOptions?: Record<string, Record<string, any>>;
239
288
  role: "user";
240
289
  }
241
290
  | {
@@ -243,41 +292,36 @@ export type Mounts = {
243
292
  | string
244
293
  | Array<
245
294
  | {
246
- experimental_providerMetadata?: Record<string, any>;
247
- providerOptions?: Record<string, any>;
295
+ providerOptions?: Record<string, Record<string, any>>;
248
296
  text: string;
249
297
  type: "text";
250
298
  }
251
299
  | {
252
300
  data: string | ArrayBuffer;
253
- experimental_providerMetadata?: Record<string, any>;
254
301
  mimeType: string;
255
- providerOptions?: Record<string, any>;
302
+ providerOptions?: Record<string, Record<string, any>>;
256
303
  type: "file";
257
304
  }
258
305
  | {
259
- experimental_providerMetadata?: Record<string, any>;
260
- providerOptions?: Record<string, any>;
306
+ providerOptions?: Record<string, Record<string, any>>;
307
+ signature?: string;
261
308
  text: string;
262
309
  type: "reasoning";
263
310
  }
264
311
  | {
265
312
  data: string;
266
- experimental_providerMetadata?: Record<string, any>;
267
- providerOptions?: Record<string, any>;
313
+ providerOptions?: Record<string, Record<string, any>>;
268
314
  type: "redacted-reasoning";
269
315
  }
270
316
  | {
271
317
  args: any;
272
- experimental_providerMetadata?: Record<string, any>;
273
- providerOptions?: Record<string, any>;
318
+ providerOptions?: Record<string, Record<string, any>>;
274
319
  toolCallId: string;
275
320
  toolName: string;
276
321
  type: "tool-call";
277
322
  }
278
323
  >;
279
- experimental_providerMetadata?: Record<string, any>;
280
- providerOptions?: Record<string, any>;
324
+ providerOptions?: Record<string, Record<string, any>>;
281
325
  role: "assistant";
282
326
  }
283
327
  | {
@@ -287,33 +331,35 @@ export type Mounts = {
287
331
  | { text: string; type: "text" }
288
332
  | { data: string; mimeType?: string; type: "image" }
289
333
  >;
290
- experimental_providerMetadata?: Record<string, any>;
291
334
  isError?: boolean;
292
- providerOptions?: Record<string, any>;
335
+ providerOptions?: Record<string, Record<string, any>>;
293
336
  result: any;
294
337
  toolCallId: string;
295
338
  toolName: string;
296
339
  type: "tool-result";
297
340
  }>;
298
- experimental_providerMetadata?: Record<string, any>;
299
- providerOptions?: Record<string, any>;
341
+ providerOptions?: Record<string, Record<string, any>>;
300
342
  role: "tool";
301
343
  }
302
344
  | {
303
345
  content: string;
304
- experimental_providerMetadata?: Record<string, any>;
305
- providerOptions?: Record<string, any>;
346
+ providerOptions?: Record<string, Record<string, any>>;
306
347
  role: "system";
307
348
  };
308
349
  model?: string;
309
350
  order: number;
310
351
  parentMessageId?: string;
311
352
  provider?: string;
312
- providerMetadata?: Record<string, any>;
353
+ providerMetadata?: Record<string, Record<string, any>>;
354
+ providerOptions?: Record<string, Record<string, any>>;
313
355
  reasoning?: string;
356
+ reasoningDetails?: Array<
357
+ | { signature?: string; text: string; type: "text" }
358
+ | { data: string; type: "redacted" }
359
+ >;
314
360
  sources?: Array<{
315
361
  id: string;
316
- providerMetadata?: Record<string, Record<string, any>>;
362
+ providerOptions?: Record<string, Record<string, any>>;
317
363
  sourceType: "url";
318
364
  title?: string;
319
365
  url: string;
@@ -351,7 +397,12 @@ export type Mounts = {
351
397
  | string
352
398
  | string;
353
399
  error?: string;
354
- fileId?: string;
400
+ files?: Array<{
401
+ data?: ArrayBuffer | string;
402
+ fileId?: string;
403
+ mimeType: string;
404
+ url?: string;
405
+ }>;
355
406
  finishReason?:
356
407
  | "stop"
357
408
  | "length"
@@ -367,28 +418,24 @@ export type Mounts = {
367
418
  | string
368
419
  | Array<
369
420
  | {
370
- experimental_providerMetadata?: Record<string, any>;
371
- providerOptions?: Record<string, any>;
421
+ providerOptions?: Record<string, Record<string, any>>;
372
422
  text: string;
373
423
  type: "text";
374
424
  }
375
425
  | {
376
- experimental_providerMetadata?: Record<string, any>;
377
426
  image: string | ArrayBuffer;
378
427
  mimeType?: string;
379
- providerOptions?: Record<string, any>;
428
+ providerOptions?: Record<string, Record<string, any>>;
380
429
  type: "image";
381
430
  }
382
431
  | {
383
432
  data: string | ArrayBuffer;
384
- experimental_providerMetadata?: Record<string, any>;
385
433
  mimeType: string;
386
- providerOptions?: Record<string, any>;
434
+ providerOptions?: Record<string, Record<string, any>>;
387
435
  type: "file";
388
436
  }
389
437
  >;
390
- experimental_providerMetadata?: Record<string, any>;
391
- providerOptions?: Record<string, any>;
438
+ providerOptions?: Record<string, Record<string, any>>;
392
439
  role: "user";
393
440
  }
394
441
  | {
@@ -396,41 +443,36 @@ export type Mounts = {
396
443
  | string
397
444
  | Array<
398
445
  | {
399
- experimental_providerMetadata?: Record<string, any>;
400
- providerOptions?: Record<string, any>;
446
+ providerOptions?: Record<string, Record<string, any>>;
401
447
  text: string;
402
448
  type: "text";
403
449
  }
404
450
  | {
405
451
  data: string | ArrayBuffer;
406
- experimental_providerMetadata?: Record<string, any>;
407
452
  mimeType: string;
408
- providerOptions?: Record<string, any>;
453
+ providerOptions?: Record<string, Record<string, any>>;
409
454
  type: "file";
410
455
  }
411
456
  | {
412
- experimental_providerMetadata?: Record<string, any>;
413
- providerOptions?: Record<string, any>;
457
+ providerOptions?: Record<string, Record<string, any>>;
458
+ signature?: string;
414
459
  text: string;
415
460
  type: "reasoning";
416
461
  }
417
462
  | {
418
463
  data: string;
419
- experimental_providerMetadata?: Record<string, any>;
420
- providerOptions?: Record<string, any>;
464
+ providerOptions?: Record<string, Record<string, any>>;
421
465
  type: "redacted-reasoning";
422
466
  }
423
467
  | {
424
468
  args: any;
425
- experimental_providerMetadata?: Record<string, any>;
426
- providerOptions?: Record<string, any>;
469
+ providerOptions?: Record<string, Record<string, any>>;
427
470
  toolCallId: string;
428
471
  toolName: string;
429
472
  type: "tool-call";
430
473
  }
431
474
  >;
432
- experimental_providerMetadata?: Record<string, any>;
433
- providerOptions?: Record<string, any>;
475
+ providerOptions?: Record<string, Record<string, any>>;
434
476
  role: "assistant";
435
477
  }
436
478
  | {
@@ -440,33 +482,35 @@ export type Mounts = {
440
482
  | { text: string; type: "text" }
441
483
  | { data: string; mimeType?: string; type: "image" }
442
484
  >;
443
- experimental_providerMetadata?: Record<string, any>;
444
485
  isError?: boolean;
445
- providerOptions?: Record<string, any>;
486
+ providerOptions?: Record<string, Record<string, any>>;
446
487
  result: any;
447
488
  toolCallId: string;
448
489
  toolName: string;
449
490
  type: "tool-result";
450
491
  }>;
451
- experimental_providerMetadata?: Record<string, any>;
452
- providerOptions?: Record<string, any>;
492
+ providerOptions?: Record<string, Record<string, any>>;
453
493
  role: "tool";
454
494
  }
455
495
  | {
456
496
  content: string;
457
- experimental_providerMetadata?: Record<string, any>;
458
- providerOptions?: Record<string, any>;
497
+ providerOptions?: Record<string, Record<string, any>>;
459
498
  role: "system";
460
499
  };
461
500
  model?: string;
462
501
  order: number;
463
502
  parentMessageId?: string;
464
503
  provider?: string;
465
- providerMetadata?: Record<string, any>;
504
+ providerMetadata?: Record<string, Record<string, any>>;
505
+ providerOptions?: Record<string, Record<string, any>>;
466
506
  reasoning?: string;
507
+ reasoningDetails?: Array<
508
+ | { signature?: string; text: string; type: "text" }
509
+ | { data: string; type: "redacted" }
510
+ >;
467
511
  sources?: Array<{
468
512
  id: string;
469
- providerMetadata?: Record<string, Record<string, any>>;
513
+ providerOptions?: Record<string, Record<string, any>>;
470
514
  sourceType: "url";
471
515
  title?: string;
472
516
  url: string;
@@ -496,7 +540,7 @@ export type Mounts = {
496
540
  "public",
497
541
  {
498
542
  failPendingSteps?: boolean;
499
- messageId: string;
543
+ parentMessageId: string;
500
544
  step: {
501
545
  messages: Array<{
502
546
  embedding?: {
@@ -514,7 +558,12 @@ export type Mounts = {
514
558
  vector: Array<number>;
515
559
  };
516
560
  error?: string;
517
- fileId?: string;
561
+ files?: Array<{
562
+ data?: ArrayBuffer | string;
563
+ fileId?: string;
564
+ mimeType: string;
565
+ url?: string;
566
+ }>;
518
567
  finishReason?:
519
568
  | "stop"
520
569
  | "length"
@@ -530,28 +579,33 @@ export type Mounts = {
530
579
  | string
531
580
  | Array<
532
581
  | {
533
- experimental_providerMetadata?: Record<string, any>;
534
- providerOptions?: Record<string, any>;
582
+ providerOptions?: Record<
583
+ string,
584
+ Record<string, any>
585
+ >;
535
586
  text: string;
536
587
  type: "text";
537
588
  }
538
589
  | {
539
- experimental_providerMetadata?: Record<string, any>;
540
590
  image: string | ArrayBuffer;
541
591
  mimeType?: string;
542
- providerOptions?: Record<string, any>;
592
+ providerOptions?: Record<
593
+ string,
594
+ Record<string, any>
595
+ >;
543
596
  type: "image";
544
597
  }
545
598
  | {
546
599
  data: string | ArrayBuffer;
547
- experimental_providerMetadata?: Record<string, any>;
548
600
  mimeType: string;
549
- providerOptions?: Record<string, any>;
601
+ providerOptions?: Record<
602
+ string,
603
+ Record<string, any>
604
+ >;
550
605
  type: "file";
551
606
  }
552
607
  >;
553
- experimental_providerMetadata?: Record<string, any>;
554
- providerOptions?: Record<string, any>;
608
+ providerOptions?: Record<string, Record<string, any>>;
555
609
  role: "user";
556
610
  }
557
611
  | {
@@ -559,41 +613,51 @@ export type Mounts = {
559
613
  | string
560
614
  | Array<
561
615
  | {
562
- experimental_providerMetadata?: Record<string, any>;
563
- providerOptions?: Record<string, any>;
616
+ providerOptions?: Record<
617
+ string,
618
+ Record<string, any>
619
+ >;
564
620
  text: string;
565
621
  type: "text";
566
622
  }
567
623
  | {
568
624
  data: string | ArrayBuffer;
569
- experimental_providerMetadata?: Record<string, any>;
570
625
  mimeType: string;
571
- providerOptions?: Record<string, any>;
626
+ providerOptions?: Record<
627
+ string,
628
+ Record<string, any>
629
+ >;
572
630
  type: "file";
573
631
  }
574
632
  | {
575
- experimental_providerMetadata?: Record<string, any>;
576
- providerOptions?: Record<string, any>;
633
+ providerOptions?: Record<
634
+ string,
635
+ Record<string, any>
636
+ >;
637
+ signature?: string;
577
638
  text: string;
578
639
  type: "reasoning";
579
640
  }
580
641
  | {
581
642
  data: string;
582
- experimental_providerMetadata?: Record<string, any>;
583
- providerOptions?: Record<string, any>;
643
+ providerOptions?: Record<
644
+ string,
645
+ Record<string, any>
646
+ >;
584
647
  type: "redacted-reasoning";
585
648
  }
586
649
  | {
587
650
  args: any;
588
- experimental_providerMetadata?: Record<string, any>;
589
- providerOptions?: Record<string, any>;
651
+ providerOptions?: Record<
652
+ string,
653
+ Record<string, any>
654
+ >;
590
655
  toolCallId: string;
591
656
  toolName: string;
592
657
  type: "tool-call";
593
658
  }
594
659
  >;
595
- experimental_providerMetadata?: Record<string, any>;
596
- providerOptions?: Record<string, any>;
660
+ providerOptions?: Record<string, Record<string, any>>;
597
661
  role: "assistant";
598
662
  }
599
663
  | {
@@ -603,31 +667,32 @@ export type Mounts = {
603
667
  | { text: string; type: "text" }
604
668
  | { data: string; mimeType?: string; type: "image" }
605
669
  >;
606
- experimental_providerMetadata?: Record<string, any>;
607
670
  isError?: boolean;
608
- providerOptions?: Record<string, any>;
671
+ providerOptions?: Record<string, Record<string, any>>;
609
672
  result: any;
610
673
  toolCallId: string;
611
674
  toolName: string;
612
675
  type: "tool-result";
613
676
  }>;
614
- experimental_providerMetadata?: Record<string, any>;
615
- providerOptions?: Record<string, any>;
677
+ providerOptions?: Record<string, Record<string, any>>;
616
678
  role: "tool";
617
679
  }
618
680
  | {
619
681
  content: string;
620
- experimental_providerMetadata?: Record<string, any>;
621
- providerOptions?: Record<string, any>;
682
+ providerOptions?: Record<string, Record<string, any>>;
622
683
  role: "system";
623
684
  };
624
685
  model?: string;
625
686
  provider?: string;
626
687
  providerMetadata?: Record<string, Record<string, any>>;
627
688
  reasoning?: string;
689
+ reasoningDetails?: Array<
690
+ | { signature?: string; text: string; type: "text" }
691
+ | { data: string; type: "redacted" }
692
+ >;
628
693
  sources?: Array<{
629
694
  id: string;
630
- providerMetadata?: Record<string, Record<string, any>>;
695
+ providerOptions?: Record<string, Record<string, any>>;
631
696
  sourceType: "url";
632
697
  title?: string;
633
698
  url: string;
@@ -649,7 +714,7 @@ export type Mounts = {
649
714
  >;
650
715
  }>;
651
716
  step: {
652
- experimental_providerMetadata?: Record<string, any>;
717
+ experimental_providerMetadata?: Record<string, Record<string, any>>;
653
718
  files?: Array<any>;
654
719
  finishReason:
655
720
  | "stop"
@@ -662,9 +727,11 @@ export type Mounts = {
662
727
  isContinued: boolean;
663
728
  logprobs?: any;
664
729
  providerMetadata?: Record<string, Record<string, any>>;
665
- providerOptions?: Record<string, any>;
666
730
  reasoning?: string;
667
- reasoningDetails?: Array<any>;
731
+ reasoningDetails?: Array<
732
+ | { signature?: string; text: string; type: "text" }
733
+ | { data: string; type: "redacted" }
734
+ >;
668
735
  request?: {
669
736
  body?: any;
670
737
  headers?: Record<string, string>;
@@ -684,37 +751,33 @@ export type Mounts = {
684
751
  | string
685
752
  | Array<
686
753
  | {
687
- experimental_providerMetadata?: Record<
754
+ providerOptions?: Record<
688
755
  string,
689
- any
756
+ Record<string, any>
690
757
  >;
691
- providerOptions?: Record<string, any>;
692
758
  text: string;
693
759
  type: "text";
694
760
  }
695
761
  | {
696
- experimental_providerMetadata?: Record<
697
- string,
698
- any
699
- >;
700
762
  image: string | ArrayBuffer;
701
763
  mimeType?: string;
702
- providerOptions?: Record<string, any>;
764
+ providerOptions?: Record<
765
+ string,
766
+ Record<string, any>
767
+ >;
703
768
  type: "image";
704
769
  }
705
770
  | {
706
771
  data: string | ArrayBuffer;
707
- experimental_providerMetadata?: Record<
772
+ mimeType: string;
773
+ providerOptions?: Record<
708
774
  string,
709
- any
775
+ Record<string, any>
710
776
  >;
711
- mimeType: string;
712
- providerOptions?: Record<string, any>;
713
777
  type: "file";
714
778
  }
715
779
  >;
716
- experimental_providerMetadata?: Record<string, any>;
717
- providerOptions?: Record<string, any>;
780
+ providerOptions?: Record<string, Record<string, any>>;
718
781
  role: "user";
719
782
  }
720
783
  | {
@@ -722,56 +785,51 @@ export type Mounts = {
722
785
  | string
723
786
  | Array<
724
787
  | {
725
- experimental_providerMetadata?: Record<
788
+ providerOptions?: Record<
726
789
  string,
727
- any
790
+ Record<string, any>
728
791
  >;
729
- providerOptions?: Record<string, any>;
730
792
  text: string;
731
793
  type: "text";
732
794
  }
733
795
  | {
734
796
  data: string | ArrayBuffer;
735
- experimental_providerMetadata?: Record<
797
+ mimeType: string;
798
+ providerOptions?: Record<
736
799
  string,
737
- any
800
+ Record<string, any>
738
801
  >;
739
- mimeType: string;
740
- providerOptions?: Record<string, any>;
741
802
  type: "file";
742
803
  }
743
804
  | {
744
- experimental_providerMetadata?: Record<
805
+ providerOptions?: Record<
745
806
  string,
746
- any
807
+ Record<string, any>
747
808
  >;
748
- providerOptions?: Record<string, any>;
809
+ signature?: string;
749
810
  text: string;
750
811
  type: "reasoning";
751
812
  }
752
813
  | {
753
814
  data: string;
754
- experimental_providerMetadata?: Record<
815
+ providerOptions?: Record<
755
816
  string,
756
- any
817
+ Record<string, any>
757
818
  >;
758
- providerOptions?: Record<string, any>;
759
819
  type: "redacted-reasoning";
760
820
  }
761
821
  | {
762
822
  args: any;
763
- experimental_providerMetadata?: Record<
823
+ providerOptions?: Record<
764
824
  string,
765
- any
825
+ Record<string, any>
766
826
  >;
767
- providerOptions?: Record<string, any>;
768
827
  toolCallId: string;
769
828
  toolName: string;
770
829
  type: "tool-call";
771
830
  }
772
831
  >;
773
- experimental_providerMetadata?: Record<string, any>;
774
- providerOptions?: Record<string, any>;
832
+ providerOptions?: Record<string, Record<string, any>>;
775
833
  role: "assistant";
776
834
  }
777
835
  | {
@@ -781,22 +839,19 @@ export type Mounts = {
781
839
  | { text: string; type: "text" }
782
840
  | { data: string; mimeType?: string; type: "image" }
783
841
  >;
784
- experimental_providerMetadata?: Record<string, any>;
785
842
  isError?: boolean;
786
- providerOptions?: Record<string, any>;
843
+ providerOptions?: Record<string, Record<string, any>>;
787
844
  result: any;
788
845
  toolCallId: string;
789
846
  toolName: string;
790
847
  type: "tool-result";
791
848
  }>;
792
- experimental_providerMetadata?: Record<string, any>;
793
- providerOptions?: Record<string, any>;
849
+ providerOptions?: Record<string, Record<string, any>>;
794
850
  role: "tool";
795
851
  }
796
852
  | {
797
853
  content: string;
798
- experimental_providerMetadata?: Record<string, any>;
799
- providerOptions?: Record<string, any>;
854
+ providerOptions?: Record<string, Record<string, any>>;
800
855
  role: "system";
801
856
  };
802
857
  }>;
@@ -805,7 +860,7 @@ export type Mounts = {
805
860
  };
806
861
  sources?: Array<{
807
862
  id: string;
808
- providerMetadata?: Record<string, Record<string, any>>;
863
+ providerOptions?: Record<string, Record<string, any>>;
809
864
  sourceType: "url";
810
865
  title?: string;
811
866
  url: string;
@@ -814,8 +869,7 @@ export type Mounts = {
814
869
  text: string;
815
870
  toolCalls: Array<{
816
871
  args: any;
817
- experimental_providerMetadata?: Record<string, any>;
818
- providerOptions?: Record<string, any>;
872
+ providerOptions?: Record<string, Record<string, any>>;
819
873
  toolCallId: string;
820
874
  toolName: string;
821
875
  type: "tool-call";
@@ -826,9 +880,8 @@ export type Mounts = {
826
880
  | { text: string; type: "text" }
827
881
  | { data: string; mimeType?: string; type: "image" }
828
882
  >;
829
- experimental_providerMetadata?: Record<string, any>;
830
883
  isError?: boolean;
831
- providerOptions?: Record<string, any>;
884
+ providerOptions?: Record<string, Record<string, any>>;
832
885
  result: any;
833
886
  toolCallId: string;
834
887
  toolName: string;
@@ -860,7 +913,7 @@ export type Mounts = {
860
913
  parentMessageId: string;
861
914
  status: "pending" | "success" | "failed";
862
915
  step: {
863
- experimental_providerMetadata?: Record<string, any>;
916
+ experimental_providerMetadata?: Record<string, Record<string, any>>;
864
917
  files?: Array<any>;
865
918
  finishReason:
866
919
  | "stop"
@@ -873,9 +926,11 @@ export type Mounts = {
873
926
  isContinued: boolean;
874
927
  logprobs?: any;
875
928
  providerMetadata?: Record<string, Record<string, any>>;
876
- providerOptions?: Record<string, any>;
877
929
  reasoning?: string;
878
- reasoningDetails?: Array<any>;
930
+ reasoningDetails?: Array<
931
+ | { signature?: string; text: string; type: "text" }
932
+ | { data: string; type: "redacted" }
933
+ >;
879
934
  request?: {
880
935
  body?: any;
881
936
  headers?: Record<string, string>;
@@ -895,37 +950,33 @@ export type Mounts = {
895
950
  | string
896
951
  | Array<
897
952
  | {
898
- experimental_providerMetadata?: Record<
953
+ providerOptions?: Record<
899
954
  string,
900
- any
955
+ Record<string, any>
901
956
  >;
902
- providerOptions?: Record<string, any>;
903
957
  text: string;
904
958
  type: "text";
905
959
  }
906
960
  | {
907
- experimental_providerMetadata?: Record<
908
- string,
909
- any
910
- >;
911
961
  image: string | ArrayBuffer;
912
962
  mimeType?: string;
913
- providerOptions?: Record<string, any>;
963
+ providerOptions?: Record<
964
+ string,
965
+ Record<string, any>
966
+ >;
914
967
  type: "image";
915
968
  }
916
969
  | {
917
970
  data: string | ArrayBuffer;
918
- experimental_providerMetadata?: Record<
971
+ mimeType: string;
972
+ providerOptions?: Record<
919
973
  string,
920
- any
974
+ Record<string, any>
921
975
  >;
922
- mimeType: string;
923
- providerOptions?: Record<string, any>;
924
976
  type: "file";
925
977
  }
926
978
  >;
927
- experimental_providerMetadata?: Record<string, any>;
928
- providerOptions?: Record<string, any>;
979
+ providerOptions?: Record<string, Record<string, any>>;
929
980
  role: "user";
930
981
  }
931
982
  | {
@@ -933,56 +984,51 @@ export type Mounts = {
933
984
  | string
934
985
  | Array<
935
986
  | {
936
- experimental_providerMetadata?: Record<
987
+ providerOptions?: Record<
937
988
  string,
938
- any
989
+ Record<string, any>
939
990
  >;
940
- providerOptions?: Record<string, any>;
941
991
  text: string;
942
992
  type: "text";
943
993
  }
944
994
  | {
945
995
  data: string | ArrayBuffer;
946
- experimental_providerMetadata?: Record<
996
+ mimeType: string;
997
+ providerOptions?: Record<
947
998
  string,
948
- any
999
+ Record<string, any>
949
1000
  >;
950
- mimeType: string;
951
- providerOptions?: Record<string, any>;
952
1001
  type: "file";
953
1002
  }
954
1003
  | {
955
- experimental_providerMetadata?: Record<
1004
+ providerOptions?: Record<
956
1005
  string,
957
- any
1006
+ Record<string, any>
958
1007
  >;
959
- providerOptions?: Record<string, any>;
1008
+ signature?: string;
960
1009
  text: string;
961
1010
  type: "reasoning";
962
1011
  }
963
1012
  | {
964
1013
  data: string;
965
- experimental_providerMetadata?: Record<
1014
+ providerOptions?: Record<
966
1015
  string,
967
- any
1016
+ Record<string, any>
968
1017
  >;
969
- providerOptions?: Record<string, any>;
970
1018
  type: "redacted-reasoning";
971
1019
  }
972
1020
  | {
973
1021
  args: any;
974
- experimental_providerMetadata?: Record<
1022
+ providerOptions?: Record<
975
1023
  string,
976
- any
1024
+ Record<string, any>
977
1025
  >;
978
- providerOptions?: Record<string, any>;
979
1026
  toolCallId: string;
980
1027
  toolName: string;
981
1028
  type: "tool-call";
982
1029
  }
983
1030
  >;
984
- experimental_providerMetadata?: Record<string, any>;
985
- providerOptions?: Record<string, any>;
1031
+ providerOptions?: Record<string, Record<string, any>>;
986
1032
  role: "assistant";
987
1033
  }
988
1034
  | {
@@ -992,22 +1038,19 @@ export type Mounts = {
992
1038
  | { text: string; type: "text" }
993
1039
  | { data: string; mimeType?: string; type: "image" }
994
1040
  >;
995
- experimental_providerMetadata?: Record<string, any>;
996
1041
  isError?: boolean;
997
- providerOptions?: Record<string, any>;
1042
+ providerOptions?: Record<string, Record<string, any>>;
998
1043
  result: any;
999
1044
  toolCallId: string;
1000
1045
  toolName: string;
1001
1046
  type: "tool-result";
1002
1047
  }>;
1003
- experimental_providerMetadata?: Record<string, any>;
1004
- providerOptions?: Record<string, any>;
1048
+ providerOptions?: Record<string, Record<string, any>>;
1005
1049
  role: "tool";
1006
1050
  }
1007
1051
  | {
1008
1052
  content: string;
1009
- experimental_providerMetadata?: Record<string, any>;
1010
- providerOptions?: Record<string, any>;
1053
+ providerOptions?: Record<string, Record<string, any>>;
1011
1054
  role: "system";
1012
1055
  };
1013
1056
  }>;
@@ -1016,7 +1059,7 @@ export type Mounts = {
1016
1059
  };
1017
1060
  sources?: Array<{
1018
1061
  id: string;
1019
- providerMetadata?: Record<string, Record<string, any>>;
1062
+ providerOptions?: Record<string, Record<string, any>>;
1020
1063
  sourceType: "url";
1021
1064
  title?: string;
1022
1065
  url: string;
@@ -1025,8 +1068,7 @@ export type Mounts = {
1025
1068
  text: string;
1026
1069
  toolCalls: Array<{
1027
1070
  args: any;
1028
- experimental_providerMetadata?: Record<string, any>;
1029
- providerOptions?: Record<string, any>;
1071
+ providerOptions?: Record<string, Record<string, any>>;
1030
1072
  toolCallId: string;
1031
1073
  toolName: string;
1032
1074
  type: "tool-call";
@@ -1037,9 +1079,8 @@ export type Mounts = {
1037
1079
  | { text: string; type: "text" }
1038
1080
  | { data: string; mimeType?: string; type: "image" }
1039
1081
  >;
1040
- experimental_providerMetadata?: Record<string, any>;
1041
1082
  isError?: boolean;
1042
- providerOptions?: Record<string, any>;
1083
+ providerOptions?: Record<string, Record<string, any>>;
1043
1084
  result: any;
1044
1085
  toolCallId: string;
1045
1086
  toolName: string;
@@ -1066,102 +1107,10 @@ export type Mounts = {
1066
1107
  { messageId: string },
1067
1108
  null
1068
1109
  >;
1069
- createThread: FunctionReference<
1070
- "mutation",
1071
- "public",
1072
- {
1073
- defaultSystemPrompt?: string;
1074
- parentThreadIds?: Array<string>;
1075
- summary?: string;
1076
- title?: string;
1077
- userId?: string;
1078
- },
1079
- {
1080
- _creationTime: number;
1081
- _id: string;
1082
- defaultSystemPrompt?: string;
1083
- order?: number;
1084
- parentThreadIds?: Array<string>;
1085
- status: "active" | "archived";
1086
- summary?: string;
1087
- title?: string;
1088
- userId?: string;
1089
- }
1090
- >;
1091
- deleteAllForThreadIdAsync: FunctionReference<
1092
- "mutation",
1093
- "public",
1094
- { cursor?: string; limit?: number; threadId: string },
1095
- { cursor: string; isDone: boolean }
1096
- >;
1097
- deleteAllForThreadIdSync: FunctionReference<
1098
- "action",
1099
- "public",
1100
- { cursor?: string; limit?: number; threadId: string },
1101
- { cursor: string; isDone: boolean }
1102
- >;
1103
- deleteAllForUserId: FunctionReference<
1104
- "action",
1105
- "public",
1106
- { userId: string },
1107
- null
1108
- >;
1109
- deleteAllForUserIdAsync: FunctionReference<
1110
- "mutation",
1111
- "public",
1112
- { userId: string },
1113
- boolean
1114
- >;
1115
- getFilesToDelete: FunctionReference<
1116
- "query",
1117
- "public",
1118
- { cursor?: string; limit?: number },
1119
- {
1120
- continueCursor: string;
1121
- files: Array<{
1122
- _creationTime: number;
1123
- _id: string;
1124
- hash: string;
1125
- refcount: number;
1126
- storageId: string;
1127
- }>;
1128
- isDone: boolean;
1129
- }
1130
- >;
1131
- getThread: FunctionReference<
1132
- "query",
1133
- "public",
1134
- { threadId: string },
1135
- {
1136
- _creationTime: number;
1137
- _id: string;
1138
- defaultSystemPrompt?: string;
1139
- order?: number;
1140
- parentThreadIds?: Array<string>;
1141
- status: "active" | "archived";
1142
- summary?: string;
1143
- title?: string;
1144
- userId?: string;
1145
- } | null
1146
- >;
1147
1110
  getThreadMessages: FunctionReference<
1148
1111
  "query",
1149
1112
  "public",
1150
- {
1151
- isTool?: boolean;
1152
- order?: "asc" | "desc";
1153
- paginationOpts?: {
1154
- cursor: string | null;
1155
- endCursor?: string | null;
1156
- id?: number;
1157
- maximumBytesRead?: number;
1158
- maximumRowsRead?: number;
1159
- numItems: number;
1160
- };
1161
- parentMessageId?: string;
1162
- statuses?: Array<"pending" | "success" | "failed">;
1163
- threadId: string;
1164
- },
1113
+ { deprecated: "Use listMessagesByThreadId instead" },
1165
1114
  {
1166
1115
  continueCursor: string;
1167
1116
  isDone: boolean;
@@ -1180,7 +1129,12 @@ export type Mounts = {
1180
1129
  | string
1181
1130
  | string;
1182
1131
  error?: string;
1183
- fileId?: string;
1132
+ files?: Array<{
1133
+ data?: ArrayBuffer | string;
1134
+ fileId?: string;
1135
+ mimeType: string;
1136
+ url?: string;
1137
+ }>;
1184
1138
  finishReason?:
1185
1139
  | "stop"
1186
1140
  | "length"
@@ -1196,28 +1150,24 @@ export type Mounts = {
1196
1150
  | string
1197
1151
  | Array<
1198
1152
  | {
1199
- experimental_providerMetadata?: Record<string, any>;
1200
- providerOptions?: Record<string, any>;
1153
+ providerOptions?: Record<string, Record<string, any>>;
1201
1154
  text: string;
1202
1155
  type: "text";
1203
1156
  }
1204
1157
  | {
1205
- experimental_providerMetadata?: Record<string, any>;
1206
1158
  image: string | ArrayBuffer;
1207
1159
  mimeType?: string;
1208
- providerOptions?: Record<string, any>;
1160
+ providerOptions?: Record<string, Record<string, any>>;
1209
1161
  type: "image";
1210
1162
  }
1211
1163
  | {
1212
1164
  data: string | ArrayBuffer;
1213
- experimental_providerMetadata?: Record<string, any>;
1214
1165
  mimeType: string;
1215
- providerOptions?: Record<string, any>;
1166
+ providerOptions?: Record<string, Record<string, any>>;
1216
1167
  type: "file";
1217
1168
  }
1218
1169
  >;
1219
- experimental_providerMetadata?: Record<string, any>;
1220
- providerOptions?: Record<string, any>;
1170
+ providerOptions?: Record<string, Record<string, any>>;
1221
1171
  role: "user";
1222
1172
  }
1223
1173
  | {
@@ -1225,41 +1175,36 @@ export type Mounts = {
1225
1175
  | string
1226
1176
  | Array<
1227
1177
  | {
1228
- experimental_providerMetadata?: Record<string, any>;
1229
- providerOptions?: Record<string, any>;
1178
+ providerOptions?: Record<string, Record<string, any>>;
1230
1179
  text: string;
1231
1180
  type: "text";
1232
1181
  }
1233
1182
  | {
1234
1183
  data: string | ArrayBuffer;
1235
- experimental_providerMetadata?: Record<string, any>;
1236
1184
  mimeType: string;
1237
- providerOptions?: Record<string, any>;
1185
+ providerOptions?: Record<string, Record<string, any>>;
1238
1186
  type: "file";
1239
1187
  }
1240
1188
  | {
1241
- experimental_providerMetadata?: Record<string, any>;
1242
- providerOptions?: Record<string, any>;
1189
+ providerOptions?: Record<string, Record<string, any>>;
1190
+ signature?: string;
1243
1191
  text: string;
1244
1192
  type: "reasoning";
1245
1193
  }
1246
1194
  | {
1247
1195
  data: string;
1248
- experimental_providerMetadata?: Record<string, any>;
1249
- providerOptions?: Record<string, any>;
1196
+ providerOptions?: Record<string, Record<string, any>>;
1250
1197
  type: "redacted-reasoning";
1251
1198
  }
1252
1199
  | {
1253
1200
  args: any;
1254
- experimental_providerMetadata?: Record<string, any>;
1255
- providerOptions?: Record<string, any>;
1201
+ providerOptions?: Record<string, Record<string, any>>;
1256
1202
  toolCallId: string;
1257
1203
  toolName: string;
1258
1204
  type: "tool-call";
1259
1205
  }
1260
1206
  >;
1261
- experimental_providerMetadata?: Record<string, any>;
1262
- providerOptions?: Record<string, any>;
1207
+ providerOptions?: Record<string, Record<string, any>>;
1263
1208
  role: "assistant";
1264
1209
  }
1265
1210
  | {
@@ -1269,33 +1214,35 @@ export type Mounts = {
1269
1214
  | { text: string; type: "text" }
1270
1215
  | { data: string; mimeType?: string; type: "image" }
1271
1216
  >;
1272
- experimental_providerMetadata?: Record<string, any>;
1273
1217
  isError?: boolean;
1274
- providerOptions?: Record<string, any>;
1218
+ providerOptions?: Record<string, Record<string, any>>;
1275
1219
  result: any;
1276
1220
  toolCallId: string;
1277
1221
  toolName: string;
1278
1222
  type: "tool-result";
1279
1223
  }>;
1280
- experimental_providerMetadata?: Record<string, any>;
1281
- providerOptions?: Record<string, any>;
1224
+ providerOptions?: Record<string, Record<string, any>>;
1282
1225
  role: "tool";
1283
1226
  }
1284
1227
  | {
1285
1228
  content: string;
1286
- experimental_providerMetadata?: Record<string, any>;
1287
- providerOptions?: Record<string, any>;
1229
+ providerOptions?: Record<string, Record<string, any>>;
1288
1230
  role: "system";
1289
1231
  };
1290
1232
  model?: string;
1291
1233
  order: number;
1292
1234
  parentMessageId?: string;
1293
1235
  provider?: string;
1294
- providerMetadata?: Record<string, any>;
1236
+ providerMetadata?: Record<string, Record<string, any>>;
1237
+ providerOptions?: Record<string, Record<string, any>>;
1295
1238
  reasoning?: string;
1239
+ reasoningDetails?: Array<
1240
+ | { signature?: string; text: string; type: "text" }
1241
+ | { data: string; type: "redacted" }
1242
+ >;
1296
1243
  sources?: Array<{
1297
1244
  id: string;
1298
- providerMetadata?: Record<string, Record<string, any>>;
1245
+ providerOptions?: Record<string, Record<string, any>>;
1299
1246
  sourceType: "url";
1300
1247
  title?: string;
1301
1248
  url: string;
@@ -1322,10 +1269,13 @@ export type Mounts = {
1322
1269
  splitCursor?: string | null;
1323
1270
  }
1324
1271
  >;
1325
- getThreadsByUserId: FunctionReference<
1272
+ listMessagesByThreadId: FunctionReference<
1326
1273
  "query",
1327
1274
  "public",
1328
1275
  {
1276
+ beforeMessageId?: string;
1277
+ excludeToolMessages?: boolean;
1278
+ isTool?: "use excludeToolMessages instead of this";
1329
1279
  order?: "asc" | "desc";
1330
1280
  paginationOpts?: {
1331
1281
  cursor: string | null;
@@ -1335,7 +1285,8 @@ export type Mounts = {
1335
1285
  maximumRowsRead?: number;
1336
1286
  numItems: number;
1337
1287
  };
1338
- userId: string;
1288
+ statuses?: Array<"pending" | "success" | "failed">;
1289
+ threadId: string;
1339
1290
  },
1340
1291
  {
1341
1292
  continueCursor: string;
@@ -1343,13 +1294,153 @@ export type Mounts = {
1343
1294
  page: Array<{
1344
1295
  _creationTime: number;
1345
1296
  _id: string;
1346
- defaultSystemPrompt?: string;
1347
- order?: number;
1348
- parentThreadIds?: Array<string>;
1349
- status: "active" | "archived";
1350
- summary?: string;
1351
- title?: string;
1297
+ agentName?: string;
1298
+ embeddingId?:
1299
+ | string
1300
+ | string
1301
+ | string
1302
+ | string
1303
+ | string
1304
+ | string
1305
+ | string
1306
+ | string
1307
+ | string;
1308
+ error?: string;
1309
+ files?: Array<{
1310
+ data?: ArrayBuffer | string;
1311
+ fileId?: string;
1312
+ mimeType: string;
1313
+ url?: string;
1314
+ }>;
1315
+ finishReason?:
1316
+ | "stop"
1317
+ | "length"
1318
+ | "content-filter"
1319
+ | "tool-calls"
1320
+ | "error"
1321
+ | "other"
1322
+ | "unknown";
1323
+ id?: string;
1324
+ message?:
1325
+ | {
1326
+ content:
1327
+ | string
1328
+ | Array<
1329
+ | {
1330
+ providerOptions?: Record<string, Record<string, any>>;
1331
+ text: string;
1332
+ type: "text";
1333
+ }
1334
+ | {
1335
+ image: string | ArrayBuffer;
1336
+ mimeType?: string;
1337
+ providerOptions?: Record<string, Record<string, any>>;
1338
+ type: "image";
1339
+ }
1340
+ | {
1341
+ data: string | ArrayBuffer;
1342
+ mimeType: string;
1343
+ providerOptions?: Record<string, Record<string, any>>;
1344
+ type: "file";
1345
+ }
1346
+ >;
1347
+ providerOptions?: Record<string, Record<string, any>>;
1348
+ role: "user";
1349
+ }
1350
+ | {
1351
+ content:
1352
+ | string
1353
+ | Array<
1354
+ | {
1355
+ providerOptions?: Record<string, Record<string, any>>;
1356
+ text: string;
1357
+ type: "text";
1358
+ }
1359
+ | {
1360
+ data: string | ArrayBuffer;
1361
+ mimeType: string;
1362
+ providerOptions?: Record<string, Record<string, any>>;
1363
+ type: "file";
1364
+ }
1365
+ | {
1366
+ providerOptions?: Record<string, Record<string, any>>;
1367
+ signature?: string;
1368
+ text: string;
1369
+ type: "reasoning";
1370
+ }
1371
+ | {
1372
+ data: string;
1373
+ providerOptions?: Record<string, Record<string, any>>;
1374
+ type: "redacted-reasoning";
1375
+ }
1376
+ | {
1377
+ args: any;
1378
+ providerOptions?: Record<string, Record<string, any>>;
1379
+ toolCallId: string;
1380
+ toolName: string;
1381
+ type: "tool-call";
1382
+ }
1383
+ >;
1384
+ providerOptions?: Record<string, Record<string, any>>;
1385
+ role: "assistant";
1386
+ }
1387
+ | {
1388
+ content: Array<{
1389
+ args?: any;
1390
+ experimental_content?: Array<
1391
+ | { text: string; type: "text" }
1392
+ | { data: string; mimeType?: string; type: "image" }
1393
+ >;
1394
+ isError?: boolean;
1395
+ providerOptions?: Record<string, Record<string, any>>;
1396
+ result: any;
1397
+ toolCallId: string;
1398
+ toolName: string;
1399
+ type: "tool-result";
1400
+ }>;
1401
+ providerOptions?: Record<string, Record<string, any>>;
1402
+ role: "tool";
1403
+ }
1404
+ | {
1405
+ content: string;
1406
+ providerOptions?: Record<string, Record<string, any>>;
1407
+ role: "system";
1408
+ };
1409
+ model?: string;
1410
+ order: number;
1411
+ parentMessageId?: string;
1412
+ provider?: string;
1413
+ providerMetadata?: Record<string, Record<string, any>>;
1414
+ providerOptions?: Record<string, Record<string, any>>;
1415
+ reasoning?: string;
1416
+ reasoningDetails?: Array<
1417
+ | { signature?: string; text: string; type: "text" }
1418
+ | { data: string; type: "redacted" }
1419
+ >;
1420
+ sources?: Array<{
1421
+ id: string;
1422
+ providerOptions?: Record<string, Record<string, any>>;
1423
+ sourceType: "url";
1424
+ title?: string;
1425
+ url: string;
1426
+ }>;
1427
+ status: "pending" | "success" | "failed";
1428
+ stepId?: string;
1429
+ stepOrder: number;
1430
+ text?: string;
1431
+ threadId: string;
1432
+ tool: boolean;
1433
+ usage?: {
1434
+ completionTokens: number;
1435
+ promptTokens: number;
1436
+ totalTokens: number;
1437
+ };
1352
1438
  userId?: string;
1439
+ warnings?: Array<
1440
+ | { details?: string; setting: string; type: "unsupported-setting" }
1441
+ | { details?: string; tool: any; type: "unsupported-tool" }
1442
+ | { message: string; type: "other" }
1443
+ >;
1353
1444
  }>;
1354
1445
  pageStatus?: "SplitRecommended" | "SplitRequired" | null;
1355
1446
  splitCursor?: string | null;
@@ -1365,9 +1456,9 @@ export type Mounts = {
1365
1456
  "action",
1366
1457
  "public",
1367
1458
  {
1459
+ beforeMessageId?: string;
1368
1460
  limit: number;
1369
1461
  messageRange?: { after: number; before: number };
1370
- parentMessageId?: string;
1371
1462
  text?: string;
1372
1463
  threadId?: string;
1373
1464
  userId?: string;
@@ -1390,7 +1481,12 @@ export type Mounts = {
1390
1481
  | string
1391
1482
  | string;
1392
1483
  error?: string;
1393
- fileId?: string;
1484
+ files?: Array<{
1485
+ data?: ArrayBuffer | string;
1486
+ fileId?: string;
1487
+ mimeType: string;
1488
+ url?: string;
1489
+ }>;
1394
1490
  finishReason?:
1395
1491
  | "stop"
1396
1492
  | "length"
@@ -1406,28 +1502,24 @@ export type Mounts = {
1406
1502
  | string
1407
1503
  | Array<
1408
1504
  | {
1409
- experimental_providerMetadata?: Record<string, any>;
1410
- providerOptions?: Record<string, any>;
1505
+ providerOptions?: Record<string, Record<string, any>>;
1411
1506
  text: string;
1412
1507
  type: "text";
1413
1508
  }
1414
1509
  | {
1415
- experimental_providerMetadata?: Record<string, any>;
1416
1510
  image: string | ArrayBuffer;
1417
1511
  mimeType?: string;
1418
- providerOptions?: Record<string, any>;
1512
+ providerOptions?: Record<string, Record<string, any>>;
1419
1513
  type: "image";
1420
1514
  }
1421
1515
  | {
1422
1516
  data: string | ArrayBuffer;
1423
- experimental_providerMetadata?: Record<string, any>;
1424
1517
  mimeType: string;
1425
- providerOptions?: Record<string, any>;
1518
+ providerOptions?: Record<string, Record<string, any>>;
1426
1519
  type: "file";
1427
1520
  }
1428
1521
  >;
1429
- experimental_providerMetadata?: Record<string, any>;
1430
- providerOptions?: Record<string, any>;
1522
+ providerOptions?: Record<string, Record<string, any>>;
1431
1523
  role: "user";
1432
1524
  }
1433
1525
  | {
@@ -1435,41 +1527,36 @@ export type Mounts = {
1435
1527
  | string
1436
1528
  | Array<
1437
1529
  | {
1438
- experimental_providerMetadata?: Record<string, any>;
1439
- providerOptions?: Record<string, any>;
1530
+ providerOptions?: Record<string, Record<string, any>>;
1440
1531
  text: string;
1441
1532
  type: "text";
1442
1533
  }
1443
1534
  | {
1444
1535
  data: string | ArrayBuffer;
1445
- experimental_providerMetadata?: Record<string, any>;
1446
1536
  mimeType: string;
1447
- providerOptions?: Record<string, any>;
1537
+ providerOptions?: Record<string, Record<string, any>>;
1448
1538
  type: "file";
1449
1539
  }
1450
1540
  | {
1451
- experimental_providerMetadata?: Record<string, any>;
1452
- providerOptions?: Record<string, any>;
1541
+ providerOptions?: Record<string, Record<string, any>>;
1542
+ signature?: string;
1453
1543
  text: string;
1454
1544
  type: "reasoning";
1455
1545
  }
1456
1546
  | {
1457
1547
  data: string;
1458
- experimental_providerMetadata?: Record<string, any>;
1459
- providerOptions?: Record<string, any>;
1548
+ providerOptions?: Record<string, Record<string, any>>;
1460
1549
  type: "redacted-reasoning";
1461
1550
  }
1462
1551
  | {
1463
1552
  args: any;
1464
- experimental_providerMetadata?: Record<string, any>;
1465
- providerOptions?: Record<string, any>;
1553
+ providerOptions?: Record<string, Record<string, any>>;
1466
1554
  toolCallId: string;
1467
1555
  toolName: string;
1468
1556
  type: "tool-call";
1469
1557
  }
1470
1558
  >;
1471
- experimental_providerMetadata?: Record<string, any>;
1472
- providerOptions?: Record<string, any>;
1559
+ providerOptions?: Record<string, Record<string, any>>;
1473
1560
  role: "assistant";
1474
1561
  }
1475
1562
  | {
@@ -1479,33 +1566,35 @@ export type Mounts = {
1479
1566
  | { text: string; type: "text" }
1480
1567
  | { data: string; mimeType?: string; type: "image" }
1481
1568
  >;
1482
- experimental_providerMetadata?: Record<string, any>;
1483
1569
  isError?: boolean;
1484
- providerOptions?: Record<string, any>;
1570
+ providerOptions?: Record<string, Record<string, any>>;
1485
1571
  result: any;
1486
1572
  toolCallId: string;
1487
1573
  toolName: string;
1488
1574
  type: "tool-result";
1489
1575
  }>;
1490
- experimental_providerMetadata?: Record<string, any>;
1491
- providerOptions?: Record<string, any>;
1576
+ providerOptions?: Record<string, Record<string, any>>;
1492
1577
  role: "tool";
1493
1578
  }
1494
1579
  | {
1495
1580
  content: string;
1496
- experimental_providerMetadata?: Record<string, any>;
1497
- providerOptions?: Record<string, any>;
1581
+ providerOptions?: Record<string, Record<string, any>>;
1498
1582
  role: "system";
1499
1583
  };
1500
1584
  model?: string;
1501
1585
  order: number;
1502
1586
  parentMessageId?: string;
1503
1587
  provider?: string;
1504
- providerMetadata?: Record<string, any>;
1588
+ providerMetadata?: Record<string, Record<string, any>>;
1589
+ providerOptions?: Record<string, Record<string, any>>;
1505
1590
  reasoning?: string;
1591
+ reasoningDetails?: Array<
1592
+ | { signature?: string; text: string; type: "text" }
1593
+ | { data: string; type: "redacted" }
1594
+ >;
1506
1595
  sources?: Array<{
1507
1596
  id: string;
1508
- providerMetadata?: Record<string, Record<string, any>>;
1597
+ providerOptions?: Record<string, Record<string, any>>;
1509
1598
  sourceType: "url";
1510
1599
  title?: string;
1511
1600
  url: string;
@@ -1532,7 +1621,13 @@ export type Mounts = {
1532
1621
  textSearch: FunctionReference<
1533
1622
  "query",
1534
1623
  "public",
1535
- { limit: number; text: string; threadId?: string; userId?: string },
1624
+ {
1625
+ beforeMessageId?: string;
1626
+ limit: number;
1627
+ text: string;
1628
+ threadId?: string;
1629
+ userId?: string;
1630
+ },
1536
1631
  Array<{
1537
1632
  _creationTime: number;
1538
1633
  _id: string;
@@ -1548,7 +1643,12 @@ export type Mounts = {
1548
1643
  | string
1549
1644
  | string;
1550
1645
  error?: string;
1551
- fileId?: string;
1646
+ files?: Array<{
1647
+ data?: ArrayBuffer | string;
1648
+ fileId?: string;
1649
+ mimeType: string;
1650
+ url?: string;
1651
+ }>;
1552
1652
  finishReason?:
1553
1653
  | "stop"
1554
1654
  | "length"
@@ -1564,28 +1664,24 @@ export type Mounts = {
1564
1664
  | string
1565
1665
  | Array<
1566
1666
  | {
1567
- experimental_providerMetadata?: Record<string, any>;
1568
- providerOptions?: Record<string, any>;
1667
+ providerOptions?: Record<string, Record<string, any>>;
1569
1668
  text: string;
1570
1669
  type: "text";
1571
1670
  }
1572
1671
  | {
1573
- experimental_providerMetadata?: Record<string, any>;
1574
1672
  image: string | ArrayBuffer;
1575
1673
  mimeType?: string;
1576
- providerOptions?: Record<string, any>;
1674
+ providerOptions?: Record<string, Record<string, any>>;
1577
1675
  type: "image";
1578
1676
  }
1579
1677
  | {
1580
1678
  data: string | ArrayBuffer;
1581
- experimental_providerMetadata?: Record<string, any>;
1582
1679
  mimeType: string;
1583
- providerOptions?: Record<string, any>;
1680
+ providerOptions?: Record<string, Record<string, any>>;
1584
1681
  type: "file";
1585
1682
  }
1586
1683
  >;
1587
- experimental_providerMetadata?: Record<string, any>;
1588
- providerOptions?: Record<string, any>;
1684
+ providerOptions?: Record<string, Record<string, any>>;
1589
1685
  role: "user";
1590
1686
  }
1591
1687
  | {
@@ -1593,41 +1689,36 @@ export type Mounts = {
1593
1689
  | string
1594
1690
  | Array<
1595
1691
  | {
1596
- experimental_providerMetadata?: Record<string, any>;
1597
- providerOptions?: Record<string, any>;
1692
+ providerOptions?: Record<string, Record<string, any>>;
1598
1693
  text: string;
1599
1694
  type: "text";
1600
1695
  }
1601
1696
  | {
1602
1697
  data: string | ArrayBuffer;
1603
- experimental_providerMetadata?: Record<string, any>;
1604
1698
  mimeType: string;
1605
- providerOptions?: Record<string, any>;
1699
+ providerOptions?: Record<string, Record<string, any>>;
1606
1700
  type: "file";
1607
1701
  }
1608
1702
  | {
1609
- experimental_providerMetadata?: Record<string, any>;
1610
- providerOptions?: Record<string, any>;
1703
+ providerOptions?: Record<string, Record<string, any>>;
1704
+ signature?: string;
1611
1705
  text: string;
1612
1706
  type: "reasoning";
1613
1707
  }
1614
1708
  | {
1615
1709
  data: string;
1616
- experimental_providerMetadata?: Record<string, any>;
1617
- providerOptions?: Record<string, any>;
1710
+ providerOptions?: Record<string, Record<string, any>>;
1618
1711
  type: "redacted-reasoning";
1619
1712
  }
1620
1713
  | {
1621
1714
  args: any;
1622
- experimental_providerMetadata?: Record<string, any>;
1623
- providerOptions?: Record<string, any>;
1715
+ providerOptions?: Record<string, Record<string, any>>;
1624
1716
  toolCallId: string;
1625
1717
  toolName: string;
1626
1718
  type: "tool-call";
1627
1719
  }
1628
1720
  >;
1629
- experimental_providerMetadata?: Record<string, any>;
1630
- providerOptions?: Record<string, any>;
1721
+ providerOptions?: Record<string, Record<string, any>>;
1631
1722
  role: "assistant";
1632
1723
  }
1633
1724
  | {
@@ -1637,33 +1728,35 @@ export type Mounts = {
1637
1728
  | { text: string; type: "text" }
1638
1729
  | { data: string; mimeType?: string; type: "image" }
1639
1730
  >;
1640
- experimental_providerMetadata?: Record<string, any>;
1641
1731
  isError?: boolean;
1642
- providerOptions?: Record<string, any>;
1732
+ providerOptions?: Record<string, Record<string, any>>;
1643
1733
  result: any;
1644
1734
  toolCallId: string;
1645
1735
  toolName: string;
1646
1736
  type: "tool-result";
1647
1737
  }>;
1648
- experimental_providerMetadata?: Record<string, any>;
1649
- providerOptions?: Record<string, any>;
1738
+ providerOptions?: Record<string, Record<string, any>>;
1650
1739
  role: "tool";
1651
1740
  }
1652
1741
  | {
1653
1742
  content: string;
1654
- experimental_providerMetadata?: Record<string, any>;
1655
- providerOptions?: Record<string, any>;
1743
+ providerOptions?: Record<string, Record<string, any>>;
1656
1744
  role: "system";
1657
1745
  };
1658
1746
  model?: string;
1659
1747
  order: number;
1660
1748
  parentMessageId?: string;
1661
1749
  provider?: string;
1662
- providerMetadata?: Record<string, any>;
1750
+ providerMetadata?: Record<string, Record<string, any>>;
1751
+ providerOptions?: Record<string, Record<string, any>>;
1663
1752
  reasoning?: string;
1753
+ reasoningDetails?: Array<
1754
+ | { signature?: string; text: string; type: "text" }
1755
+ | { data: string; type: "redacted" }
1756
+ >;
1664
1757
  sources?: Array<{
1665
1758
  id: string;
1666
- providerMetadata?: Record<string, Record<string, any>>;
1759
+ providerOptions?: Record<string, Record<string, any>>;
1667
1760
  sourceType: "url";
1668
1761
  title?: string;
1669
1762
  url: string;
@@ -1687,6 +1780,82 @@ export type Mounts = {
1687
1780
  >;
1688
1781
  }>
1689
1782
  >;
1783
+ };
1784
+ threads: {
1785
+ createThread: FunctionReference<
1786
+ "mutation",
1787
+ "public",
1788
+ {
1789
+ defaultSystemPrompt?: string;
1790
+ parentThreadIds?: Array<string>;
1791
+ summary?: string;
1792
+ title?: string;
1793
+ userId?: string;
1794
+ },
1795
+ {
1796
+ _creationTime: number;
1797
+ _id: string;
1798
+ status: "active" | "archived";
1799
+ summary?: string;
1800
+ title?: string;
1801
+ userId?: string;
1802
+ }
1803
+ >;
1804
+ deleteAllForThreadIdAsync: FunctionReference<
1805
+ "mutation",
1806
+ "public",
1807
+ { cursor?: string; limit?: number; threadId: string },
1808
+ { cursor: string; isDone: boolean }
1809
+ >;
1810
+ deleteAllForThreadIdSync: FunctionReference<
1811
+ "action",
1812
+ "public",
1813
+ { cursor?: string; limit?: number; threadId: string },
1814
+ null
1815
+ >;
1816
+ getThread: FunctionReference<
1817
+ "query",
1818
+ "public",
1819
+ { threadId: string },
1820
+ {
1821
+ _creationTime: number;
1822
+ _id: string;
1823
+ status: "active" | "archived";
1824
+ summary?: string;
1825
+ title?: string;
1826
+ userId?: string;
1827
+ } | null
1828
+ >;
1829
+ listThreadsByUserId: FunctionReference<
1830
+ "query",
1831
+ "public",
1832
+ {
1833
+ order?: "asc" | "desc";
1834
+ paginationOpts?: {
1835
+ cursor: string | null;
1836
+ endCursor?: string | null;
1837
+ id?: number;
1838
+ maximumBytesRead?: number;
1839
+ maximumRowsRead?: number;
1840
+ numItems: number;
1841
+ };
1842
+ userId: string;
1843
+ },
1844
+ {
1845
+ continueCursor: string;
1846
+ isDone: boolean;
1847
+ page: Array<{
1848
+ _creationTime: number;
1849
+ _id: string;
1850
+ status: "active" | "archived";
1851
+ summary?: string;
1852
+ title?: string;
1853
+ userId?: string;
1854
+ }>;
1855
+ pageStatus?: "SplitRecommended" | "SplitRequired" | null;
1856
+ splitCursor?: string | null;
1857
+ }
1858
+ >;
1690
1859
  updateThread: FunctionReference<
1691
1860
  "mutation",
1692
1861
  "public",
@@ -1701,9 +1870,6 @@ export type Mounts = {
1701
1870
  {
1702
1871
  _creationTime: number;
1703
1872
  _id: string;
1704
- defaultSystemPrompt?: string;
1705
- order?: number;
1706
- parentThreadIds?: Array<string>;
1707
1873
  status: "active" | "archived";
1708
1874
  summary?: string;
1709
1875
  title?: string;
@@ -1711,6 +1877,41 @@ export type Mounts = {
1711
1877
  }
1712
1878
  >;
1713
1879
  };
1880
+ users: {
1881
+ deleteAllForUserId: FunctionReference<
1882
+ "action",
1883
+ "public",
1884
+ { userId: string },
1885
+ null
1886
+ >;
1887
+ deleteAllForUserIdAsync: FunctionReference<
1888
+ "mutation",
1889
+ "public",
1890
+ { userId: string },
1891
+ boolean
1892
+ >;
1893
+ listUsersWithThreads: FunctionReference<
1894
+ "query",
1895
+ "public",
1896
+ {
1897
+ paginationOpts: {
1898
+ cursor: string | null;
1899
+ endCursor?: string | null;
1900
+ id?: number;
1901
+ maximumBytesRead?: number;
1902
+ maximumRowsRead?: number;
1903
+ numItems: number;
1904
+ };
1905
+ },
1906
+ {
1907
+ continueCursor: string;
1908
+ isDone: boolean;
1909
+ page: Array<string>;
1910
+ pageStatus?: "SplitRecommended" | "SplitRequired" | null;
1911
+ splitCursor?: string | null;
1912
+ }
1913
+ >;
1914
+ };
1714
1915
  vector: {
1715
1916
  index: {
1716
1917
  deleteBatch: FunctionReference<