@confect/server 9.0.0-next.4 → 9.0.0-next.6

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 (64) hide show
  1. package/CHANGELOG.md +162 -0
  2. package/dist/Auth.d.ts +1 -1
  3. package/dist/DatabaseReader.d.ts +4299 -26
  4. package/dist/DatabaseReader.d.ts.map +1 -1
  5. package/dist/DatabaseReader.js +5 -6
  6. package/dist/DatabaseReader.js.map +1 -1
  7. package/dist/DatabaseSchema.d.ts +25 -112
  8. package/dist/DatabaseSchema.d.ts.map +1 -1
  9. package/dist/DatabaseSchema.js +20 -30
  10. package/dist/DatabaseSchema.js.map +1 -1
  11. package/dist/DatabaseWriter.d.ts +4 -4
  12. package/dist/DatabaseWriter.d.ts.map +1 -1
  13. package/dist/DatabaseWriter.js +3 -4
  14. package/dist/DatabaseWriter.js.map +1 -1
  15. package/dist/FunctionImpl.d.ts +26 -17
  16. package/dist/FunctionImpl.d.ts.map +1 -1
  17. package/dist/FunctionImpl.js +22 -14
  18. package/dist/FunctionImpl.js.map +1 -1
  19. package/dist/GroupImpl.d.ts +22 -13
  20. package/dist/GroupImpl.d.ts.map +1 -1
  21. package/dist/GroupImpl.js +34 -35
  22. package/dist/GroupImpl.js.map +1 -1
  23. package/dist/Handler.d.ts +1 -1
  24. package/dist/QueryInitializer.d.ts +1 -1
  25. package/dist/QueryInitializer.d.ts.map +1 -1
  26. package/dist/QueryInitializer.js.map +1 -1
  27. package/dist/RegisteredConvexFunction.d.ts +1085 -18
  28. package/dist/RegisteredConvexFunction.d.ts.map +1 -1
  29. package/dist/RegisteredConvexFunction.js +4 -4
  30. package/dist/RegisteredConvexFunction.js.map +1 -1
  31. package/dist/RegisteredFunction.d.ts +4 -4
  32. package/dist/RegisteredFunction.d.ts.map +1 -1
  33. package/dist/RegisteredFunctions.d.ts +36 -12
  34. package/dist/RegisteredFunctions.d.ts.map +1 -1
  35. package/dist/RegisteredFunctions.js +21 -9
  36. package/dist/RegisteredFunctions.js.map +1 -1
  37. package/dist/RegisteredNodeFunction.d.ts +4 -4
  38. package/dist/RegisteredNodeFunction.d.ts.map +1 -1
  39. package/dist/RegisteredNodeFunction.js +2 -2
  40. package/dist/RegisteredNodeFunction.js.map +1 -1
  41. package/dist/StorageActionWriter.d.ts +1 -1
  42. package/dist/Table.d.ts +27 -19
  43. package/dist/Table.d.ts.map +1 -1
  44. package/dist/Table.js +69 -60
  45. package/dist/Table.js.map +1 -1
  46. package/dist/index.d.ts +4 -5
  47. package/dist/index.js +4 -5
  48. package/package.json +51 -52
  49. package/src/DatabaseReader.ts +17 -21
  50. package/src/DatabaseSchema.ts +38 -98
  51. package/src/DatabaseWriter.ts +8 -5
  52. package/src/FunctionImpl.ts +33 -43
  53. package/src/GroupImpl.ts +45 -69
  54. package/src/QueryInitializer.ts +10 -2
  55. package/src/RegisteredConvexFunction.ts +5 -6
  56. package/src/RegisteredFunctions.ts +67 -93
  57. package/src/RegisteredNodeFunction.ts +3 -4
  58. package/src/Table.ts +251 -131
  59. package/src/index.ts +0 -1
  60. package/dist/Api.d.ts +0 -43
  61. package/dist/Api.d.ts.map +0 -1
  62. package/dist/Api.js +0 -43
  63. package/dist/Api.js.map +0 -1
  64. package/src/Api.ts +0 -102
@@ -1,5 +1,5 @@
1
- import { Name, WithName } from "./Table.js";
2
- import { AnyWithProps, IncludeSystemTables, Tables } from "./DatabaseSchema.js";
1
+ import { Name, SystemTables, Table, WithName } from "./Table.js";
2
+ import { AnyWithProps, Tables } from "./DatabaseSchema.js";
3
3
  import { DocumentDecodeError } from "./Document.js";
4
4
  import { TableInfo } from "./TableInfo.js";
5
5
  import { DataModel, FromSchema, TableInfoWithName, ToConvex } from "./DataModel.js";
@@ -10,6 +10,7 @@ import * as convex_server0 from "convex/server";
10
10
  import { GenericDatabaseReader } from "convex/server";
11
11
  import * as convex_values0 from "convex/values";
12
12
  import * as _confect_core_Types0 from "@confect/core/Types";
13
+ import * as effect_Schema0 from "effect/Schema";
13
14
  import * as effect_Effect0 from "effect/Effect";
14
15
 
15
16
  //#region src/DatabaseReader.d.ts
@@ -17,55 +18,4327 @@ declare namespace DatabaseReader_d_exports {
17
18
  export { DatabaseReader, layer, make };
18
19
  }
19
20
  declare const make: <DatabaseSchema_ extends AnyWithProps>(databaseSchema: DatabaseSchema_, convexDatabaseReader: GenericDatabaseReader<ToConvex<FromSchema<DatabaseSchema_>>>) => {
20
- table: <const TableName extends Name<IncludeSystemTables<Tables<DatabaseSchema_>>>>(tableName: TableName) => {
21
+ table: <const TableName extends Name<Tables<DatabaseSchema_> | SystemTables>>(tableName: TableName) => {
21
22
  readonly get: {
22
- (id: convex_values0.GenericId<TableName>): effect_Effect0.Effect<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["document"], GetByIdFailure | DocumentDecodeError, never>;
23
- <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"]>(indexName: IndexName, ...indexFieldValues: _confect_core_Types0.IndexFieldTypesForEq<ToConvex<DataModel<IncludeSystemTables<Tables<DatabaseSchema_>>>>, TableName, TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"][IndexName]>): effect_Effect0.Effect<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["document"], DocumentDecodeError | GetByIndexFailure, never>;
23
+ (id: convex_values0.GenericId<TableName>): effect_Effect0.Effect<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
24
+ name: typeof effect_Schema0.String;
25
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
26
+ scheduledTime: typeof effect_Schema0.Number;
27
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
28
+ exact: true;
29
+ }>;
30
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
31
+ kind: effect_Schema0.Literal<["pending"]>;
32
+ }>, effect_Schema0.Struct<{
33
+ kind: effect_Schema0.Literal<["inProgress"]>;
34
+ }>, effect_Schema0.Struct<{
35
+ kind: effect_Schema0.Literal<["success"]>;
36
+ }>, effect_Schema0.Struct<{
37
+ kind: effect_Schema0.Literal<["failed"]>;
38
+ error: typeof effect_Schema0.String;
39
+ }>, effect_Schema0.Struct<{
40
+ kind: effect_Schema0.Literal<["canceled"]>;
41
+ }>]>;
42
+ }>, convex_values0.VObject<{
43
+ name: string;
44
+ args: any[];
45
+ scheduledTime: number;
46
+ state: {
47
+ kind: "pending";
48
+ } | {
49
+ kind: "inProgress";
50
+ } | {
51
+ kind: "success";
52
+ } | {
53
+ error: string;
54
+ kind: "failed";
55
+ } | {
56
+ kind: "canceled";
57
+ };
58
+ completedTime?: number;
59
+ }, {
60
+ name: convex_values0.VString<string, "required">;
61
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
62
+ scheduledTime: convex_values0.VFloat64<number, "required">;
63
+ state: convex_values0.VUnion<{
64
+ kind: "pending";
65
+ } | {
66
+ kind: "inProgress";
67
+ } | {
68
+ kind: "success";
69
+ } | {
70
+ error: string;
71
+ kind: "failed";
72
+ } | {
73
+ kind: "canceled";
74
+ }, [convex_values0.VObject<{
75
+ kind: "pending";
76
+ }, {
77
+ kind: convex_values0.VLiteral<"pending", "required">;
78
+ }, "required", "kind">, convex_values0.VObject<{
79
+ kind: "inProgress";
80
+ }, {
81
+ kind: convex_values0.VLiteral<"inProgress", "required">;
82
+ }, "required", "kind">, convex_values0.VObject<{
83
+ kind: "success";
84
+ }, {
85
+ kind: convex_values0.VLiteral<"success", "required">;
86
+ }, "required", "kind">, convex_values0.VObject<{
87
+ error: string;
88
+ kind: "failed";
89
+ }, {
90
+ error: convex_values0.VString<string, "required">;
91
+ kind: convex_values0.VLiteral<"failed", "required">;
92
+ }, "required", "error" | "kind">, convex_values0.VObject<{
93
+ kind: "canceled";
94
+ }, {
95
+ kind: convex_values0.VLiteral<"canceled", "required">;
96
+ }, "required", "kind">], "required", "error" | "kind">;
97
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
98
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
99
+ sha256: typeof effect_Schema0.String;
100
+ size: typeof effect_Schema0.Number;
101
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
102
+ exact: true;
103
+ }>;
104
+ }>, convex_values0.VObject<{
105
+ sha256: string;
106
+ size: number;
107
+ contentType?: string;
108
+ }, {
109
+ sha256: convex_values0.VString<string, "required">;
110
+ size: convex_values0.VFloat64<number, "required">;
111
+ contentType: convex_values0.VString<string | undefined, "optional">;
112
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["document"], DocumentDecodeError | GetByIdFailure, never>;
113
+ <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
114
+ name: typeof effect_Schema0.String;
115
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
116
+ scheduledTime: typeof effect_Schema0.Number;
117
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
118
+ exact: true;
119
+ }>;
120
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
121
+ kind: effect_Schema0.Literal<["pending"]>;
122
+ }>, effect_Schema0.Struct<{
123
+ kind: effect_Schema0.Literal<["inProgress"]>;
124
+ }>, effect_Schema0.Struct<{
125
+ kind: effect_Schema0.Literal<["success"]>;
126
+ }>, effect_Schema0.Struct<{
127
+ kind: effect_Schema0.Literal<["failed"]>;
128
+ error: typeof effect_Schema0.String;
129
+ }>, effect_Schema0.Struct<{
130
+ kind: effect_Schema0.Literal<["canceled"]>;
131
+ }>]>;
132
+ }>, convex_values0.VObject<{
133
+ name: string;
134
+ args: any[];
135
+ scheduledTime: number;
136
+ state: {
137
+ kind: "pending";
138
+ } | {
139
+ kind: "inProgress";
140
+ } | {
141
+ kind: "success";
142
+ } | {
143
+ error: string;
144
+ kind: "failed";
145
+ } | {
146
+ kind: "canceled";
147
+ };
148
+ completedTime?: number;
149
+ }, {
150
+ name: convex_values0.VString<string, "required">;
151
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
152
+ scheduledTime: convex_values0.VFloat64<number, "required">;
153
+ state: convex_values0.VUnion<{
154
+ kind: "pending";
155
+ } | {
156
+ kind: "inProgress";
157
+ } | {
158
+ kind: "success";
159
+ } | {
160
+ error: string;
161
+ kind: "failed";
162
+ } | {
163
+ kind: "canceled";
164
+ }, [convex_values0.VObject<{
165
+ kind: "pending";
166
+ }, {
167
+ kind: convex_values0.VLiteral<"pending", "required">;
168
+ }, "required", "kind">, convex_values0.VObject<{
169
+ kind: "inProgress";
170
+ }, {
171
+ kind: convex_values0.VLiteral<"inProgress", "required">;
172
+ }, "required", "kind">, convex_values0.VObject<{
173
+ kind: "success";
174
+ }, {
175
+ kind: convex_values0.VLiteral<"success", "required">;
176
+ }, "required", "kind">, convex_values0.VObject<{
177
+ error: string;
178
+ kind: "failed";
179
+ }, {
180
+ error: convex_values0.VString<string, "required">;
181
+ kind: convex_values0.VLiteral<"failed", "required">;
182
+ }, "required", "error" | "kind">, convex_values0.VObject<{
183
+ kind: "canceled";
184
+ }, {
185
+ kind: convex_values0.VLiteral<"canceled", "required">;
186
+ }, "required", "kind">], "required", "error" | "kind">;
187
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
188
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
189
+ sha256: typeof effect_Schema0.String;
190
+ size: typeof effect_Schema0.Number;
191
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
192
+ exact: true;
193
+ }>;
194
+ }>, convex_values0.VObject<{
195
+ sha256: string;
196
+ size: number;
197
+ contentType?: string;
198
+ }, {
199
+ sha256: convex_values0.VString<string, "required">;
200
+ size: convex_values0.VFloat64<number, "required">;
201
+ contentType: convex_values0.VString<string | undefined, "optional">;
202
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, ...indexFieldValues: _confect_core_Types0.IndexFieldTypesForEq<ToConvex<DataModel<Tables<DatabaseSchema_> | SystemTables>>, TableName, (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
203
+ name: typeof effect_Schema0.String;
204
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
205
+ scheduledTime: typeof effect_Schema0.Number;
206
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
207
+ exact: true;
208
+ }>;
209
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
210
+ kind: effect_Schema0.Literal<["pending"]>;
211
+ }>, effect_Schema0.Struct<{
212
+ kind: effect_Schema0.Literal<["inProgress"]>;
213
+ }>, effect_Schema0.Struct<{
214
+ kind: effect_Schema0.Literal<["success"]>;
215
+ }>, effect_Schema0.Struct<{
216
+ kind: effect_Schema0.Literal<["failed"]>;
217
+ error: typeof effect_Schema0.String;
218
+ }>, effect_Schema0.Struct<{
219
+ kind: effect_Schema0.Literal<["canceled"]>;
220
+ }>]>;
221
+ }>, convex_values0.VObject<{
222
+ name: string;
223
+ args: any[];
224
+ scheduledTime: number;
225
+ state: {
226
+ kind: "pending";
227
+ } | {
228
+ kind: "inProgress";
229
+ } | {
230
+ kind: "success";
231
+ } | {
232
+ error: string;
233
+ kind: "failed";
234
+ } | {
235
+ kind: "canceled";
236
+ };
237
+ completedTime?: number;
238
+ }, {
239
+ name: convex_values0.VString<string, "required">;
240
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
241
+ scheduledTime: convex_values0.VFloat64<number, "required">;
242
+ state: convex_values0.VUnion<{
243
+ kind: "pending";
244
+ } | {
245
+ kind: "inProgress";
246
+ } | {
247
+ kind: "success";
248
+ } | {
249
+ error: string;
250
+ kind: "failed";
251
+ } | {
252
+ kind: "canceled";
253
+ }, [convex_values0.VObject<{
254
+ kind: "pending";
255
+ }, {
256
+ kind: convex_values0.VLiteral<"pending", "required">;
257
+ }, "required", "kind">, convex_values0.VObject<{
258
+ kind: "inProgress";
259
+ }, {
260
+ kind: convex_values0.VLiteral<"inProgress", "required">;
261
+ }, "required", "kind">, convex_values0.VObject<{
262
+ kind: "success";
263
+ }, {
264
+ kind: convex_values0.VLiteral<"success", "required">;
265
+ }, "required", "kind">, convex_values0.VObject<{
266
+ error: string;
267
+ kind: "failed";
268
+ }, {
269
+ error: convex_values0.VString<string, "required">;
270
+ kind: convex_values0.VLiteral<"failed", "required">;
271
+ }, "required", "error" | "kind">, convex_values0.VObject<{
272
+ kind: "canceled";
273
+ }, {
274
+ kind: convex_values0.VLiteral<"canceled", "required">;
275
+ }, "required", "kind">], "required", "error" | "kind">;
276
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
277
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
278
+ sha256: typeof effect_Schema0.String;
279
+ size: typeof effect_Schema0.Number;
280
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
281
+ exact: true;
282
+ }>;
283
+ }>, convex_values0.VObject<{
284
+ sha256: string;
285
+ size: number;
286
+ contentType?: string;
287
+ }, {
288
+ sha256: convex_values0.VString<string, "required">;
289
+ size: convex_values0.VFloat64<number, "required">;
290
+ contentType: convex_values0.VString<string | undefined, "optional">;
291
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"][IndexName]>): effect_Effect0.Effect<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
292
+ name: typeof effect_Schema0.String;
293
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
294
+ scheduledTime: typeof effect_Schema0.Number;
295
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
296
+ exact: true;
297
+ }>;
298
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
299
+ kind: effect_Schema0.Literal<["pending"]>;
300
+ }>, effect_Schema0.Struct<{
301
+ kind: effect_Schema0.Literal<["inProgress"]>;
302
+ }>, effect_Schema0.Struct<{
303
+ kind: effect_Schema0.Literal<["success"]>;
304
+ }>, effect_Schema0.Struct<{
305
+ kind: effect_Schema0.Literal<["failed"]>;
306
+ error: typeof effect_Schema0.String;
307
+ }>, effect_Schema0.Struct<{
308
+ kind: effect_Schema0.Literal<["canceled"]>;
309
+ }>]>;
310
+ }>, convex_values0.VObject<{
311
+ name: string;
312
+ args: any[];
313
+ scheduledTime: number;
314
+ state: {
315
+ kind: "pending";
316
+ } | {
317
+ kind: "inProgress";
318
+ } | {
319
+ kind: "success";
320
+ } | {
321
+ error: string;
322
+ kind: "failed";
323
+ } | {
324
+ kind: "canceled";
325
+ };
326
+ completedTime?: number;
327
+ }, {
328
+ name: convex_values0.VString<string, "required">;
329
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
330
+ scheduledTime: convex_values0.VFloat64<number, "required">;
331
+ state: convex_values0.VUnion<{
332
+ kind: "pending";
333
+ } | {
334
+ kind: "inProgress";
335
+ } | {
336
+ kind: "success";
337
+ } | {
338
+ error: string;
339
+ kind: "failed";
340
+ } | {
341
+ kind: "canceled";
342
+ }, [convex_values0.VObject<{
343
+ kind: "pending";
344
+ }, {
345
+ kind: convex_values0.VLiteral<"pending", "required">;
346
+ }, "required", "kind">, convex_values0.VObject<{
347
+ kind: "inProgress";
348
+ }, {
349
+ kind: convex_values0.VLiteral<"inProgress", "required">;
350
+ }, "required", "kind">, convex_values0.VObject<{
351
+ kind: "success";
352
+ }, {
353
+ kind: convex_values0.VLiteral<"success", "required">;
354
+ }, "required", "kind">, convex_values0.VObject<{
355
+ error: string;
356
+ kind: "failed";
357
+ }, {
358
+ error: convex_values0.VString<string, "required">;
359
+ kind: convex_values0.VLiteral<"failed", "required">;
360
+ }, "required", "error" | "kind">, convex_values0.VObject<{
361
+ kind: "canceled";
362
+ }, {
363
+ kind: convex_values0.VLiteral<"canceled", "required">;
364
+ }, "required", "kind">], "required", "error" | "kind">;
365
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
366
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
367
+ sha256: typeof effect_Schema0.String;
368
+ size: typeof effect_Schema0.Number;
369
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
370
+ exact: true;
371
+ }>;
372
+ }>, convex_values0.VObject<{
373
+ sha256: string;
374
+ size: number;
375
+ contentType?: string;
376
+ }, {
377
+ sha256: convex_values0.VString<string, "required">;
378
+ size: convex_values0.VFloat64<number, "required">;
379
+ contentType: convex_values0.VString<string | undefined, "optional">;
380
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["document"], DocumentDecodeError | GetByIndexFailure, never>;
24
381
  };
25
382
  readonly index: {
26
- <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"]>(indexName: IndexName, indexRange?: ((q: convex_server0.IndexRangeBuilder<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["convexDocument"], convex_server0.NamedIndex<TableInfoWithName<DataModel<IncludeSystemTables<Tables<DatabaseSchema_>>>, TableName>, IndexName>, 0>) => convex_server0.IndexRange) | undefined, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>, TableName>;
27
- <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"]>(indexName: IndexName, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>, TableName>;
383
+ <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
384
+ name: typeof effect_Schema0.String;
385
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
386
+ scheduledTime: typeof effect_Schema0.Number;
387
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
388
+ exact: true;
389
+ }>;
390
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
391
+ kind: effect_Schema0.Literal<["pending"]>;
392
+ }>, effect_Schema0.Struct<{
393
+ kind: effect_Schema0.Literal<["inProgress"]>;
394
+ }>, effect_Schema0.Struct<{
395
+ kind: effect_Schema0.Literal<["success"]>;
396
+ }>, effect_Schema0.Struct<{
397
+ kind: effect_Schema0.Literal<["failed"]>;
398
+ error: typeof effect_Schema0.String;
399
+ }>, effect_Schema0.Struct<{
400
+ kind: effect_Schema0.Literal<["canceled"]>;
401
+ }>]>;
402
+ }>, convex_values0.VObject<{
403
+ name: string;
404
+ args: any[];
405
+ scheduledTime: number;
406
+ state: {
407
+ kind: "pending";
408
+ } | {
409
+ kind: "inProgress";
410
+ } | {
411
+ kind: "success";
412
+ } | {
413
+ error: string;
414
+ kind: "failed";
415
+ } | {
416
+ kind: "canceled";
417
+ };
418
+ completedTime?: number;
419
+ }, {
420
+ name: convex_values0.VString<string, "required">;
421
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
422
+ scheduledTime: convex_values0.VFloat64<number, "required">;
423
+ state: convex_values0.VUnion<{
424
+ kind: "pending";
425
+ } | {
426
+ kind: "inProgress";
427
+ } | {
428
+ kind: "success";
429
+ } | {
430
+ error: string;
431
+ kind: "failed";
432
+ } | {
433
+ kind: "canceled";
434
+ }, [convex_values0.VObject<{
435
+ kind: "pending";
436
+ }, {
437
+ kind: convex_values0.VLiteral<"pending", "required">;
438
+ }, "required", "kind">, convex_values0.VObject<{
439
+ kind: "inProgress";
440
+ }, {
441
+ kind: convex_values0.VLiteral<"inProgress", "required">;
442
+ }, "required", "kind">, convex_values0.VObject<{
443
+ kind: "success";
444
+ }, {
445
+ kind: convex_values0.VLiteral<"success", "required">;
446
+ }, "required", "kind">, convex_values0.VObject<{
447
+ error: string;
448
+ kind: "failed";
449
+ }, {
450
+ error: convex_values0.VString<string, "required">;
451
+ kind: convex_values0.VLiteral<"failed", "required">;
452
+ }, "required", "error" | "kind">, convex_values0.VObject<{
453
+ kind: "canceled";
454
+ }, {
455
+ kind: convex_values0.VLiteral<"canceled", "required">;
456
+ }, "required", "kind">], "required", "error" | "kind">;
457
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
458
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
459
+ sha256: typeof effect_Schema0.String;
460
+ size: typeof effect_Schema0.Number;
461
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
462
+ exact: true;
463
+ }>;
464
+ }>, convex_values0.VObject<{
465
+ sha256: string;
466
+ size: number;
467
+ contentType?: string;
468
+ }, {
469
+ sha256: convex_values0.VString<string, "required">;
470
+ size: convex_values0.VFloat64<number, "required">;
471
+ contentType: convex_values0.VString<string | undefined, "optional">;
472
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, indexRange?: ((q: convex_server0.IndexRangeBuilder<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
473
+ name: typeof effect_Schema0.String;
474
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
475
+ scheduledTime: typeof effect_Schema0.Number;
476
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
477
+ exact: true;
478
+ }>;
479
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
480
+ kind: effect_Schema0.Literal<["pending"]>;
481
+ }>, effect_Schema0.Struct<{
482
+ kind: effect_Schema0.Literal<["inProgress"]>;
483
+ }>, effect_Schema0.Struct<{
484
+ kind: effect_Schema0.Literal<["success"]>;
485
+ }>, effect_Schema0.Struct<{
486
+ kind: effect_Schema0.Literal<["failed"]>;
487
+ error: typeof effect_Schema0.String;
488
+ }>, effect_Schema0.Struct<{
489
+ kind: effect_Schema0.Literal<["canceled"]>;
490
+ }>]>;
491
+ }>, convex_values0.VObject<{
492
+ name: string;
493
+ args: any[];
494
+ scheduledTime: number;
495
+ state: {
496
+ kind: "pending";
497
+ } | {
498
+ kind: "inProgress";
499
+ } | {
500
+ kind: "success";
501
+ } | {
502
+ error: string;
503
+ kind: "failed";
504
+ } | {
505
+ kind: "canceled";
506
+ };
507
+ completedTime?: number;
508
+ }, {
509
+ name: convex_values0.VString<string, "required">;
510
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
511
+ scheduledTime: convex_values0.VFloat64<number, "required">;
512
+ state: convex_values0.VUnion<{
513
+ kind: "pending";
514
+ } | {
515
+ kind: "inProgress";
516
+ } | {
517
+ kind: "success";
518
+ } | {
519
+ error: string;
520
+ kind: "failed";
521
+ } | {
522
+ kind: "canceled";
523
+ }, [convex_values0.VObject<{
524
+ kind: "pending";
525
+ }, {
526
+ kind: convex_values0.VLiteral<"pending", "required">;
527
+ }, "required", "kind">, convex_values0.VObject<{
528
+ kind: "inProgress";
529
+ }, {
530
+ kind: convex_values0.VLiteral<"inProgress", "required">;
531
+ }, "required", "kind">, convex_values0.VObject<{
532
+ kind: "success";
533
+ }, {
534
+ kind: convex_values0.VLiteral<"success", "required">;
535
+ }, "required", "kind">, convex_values0.VObject<{
536
+ error: string;
537
+ kind: "failed";
538
+ }, {
539
+ error: convex_values0.VString<string, "required">;
540
+ kind: convex_values0.VLiteral<"failed", "required">;
541
+ }, "required", "error" | "kind">, convex_values0.VObject<{
542
+ kind: "canceled";
543
+ }, {
544
+ kind: convex_values0.VLiteral<"canceled", "required">;
545
+ }, "required", "kind">], "required", "error" | "kind">;
546
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
547
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
548
+ sha256: typeof effect_Schema0.String;
549
+ size: typeof effect_Schema0.Number;
550
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
551
+ exact: true;
552
+ }>;
553
+ }>, convex_values0.VObject<{
554
+ sha256: string;
555
+ size: number;
556
+ contentType?: string;
557
+ }, {
558
+ sha256: convex_values0.VString<string, "required">;
559
+ size: convex_values0.VFloat64<number, "required">;
560
+ contentType: convex_values0.VString<string | undefined, "optional">;
561
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["convexDocument"], convex_server0.NamedIndex<TableInfoWithName<DataModel<Tables<DatabaseSchema_> | SystemTables>, TableName>, IndexName>, 0>) => convex_server0.IndexRange) | undefined, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
562
+ name: typeof effect_Schema0.String;
563
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
564
+ scheduledTime: typeof effect_Schema0.Number;
565
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
566
+ exact: true;
567
+ }>;
568
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
569
+ kind: effect_Schema0.Literal<["pending"]>;
570
+ }>, effect_Schema0.Struct<{
571
+ kind: effect_Schema0.Literal<["inProgress"]>;
572
+ }>, effect_Schema0.Struct<{
573
+ kind: effect_Schema0.Literal<["success"]>;
574
+ }>, effect_Schema0.Struct<{
575
+ kind: effect_Schema0.Literal<["failed"]>;
576
+ error: typeof effect_Schema0.String;
577
+ }>, effect_Schema0.Struct<{
578
+ kind: effect_Schema0.Literal<["canceled"]>;
579
+ }>]>;
580
+ }>, convex_values0.VObject<{
581
+ name: string;
582
+ args: any[];
583
+ scheduledTime: number;
584
+ state: {
585
+ kind: "pending";
586
+ } | {
587
+ kind: "inProgress";
588
+ } | {
589
+ kind: "success";
590
+ } | {
591
+ error: string;
592
+ kind: "failed";
593
+ } | {
594
+ kind: "canceled";
595
+ };
596
+ completedTime?: number;
597
+ }, {
598
+ name: convex_values0.VString<string, "required">;
599
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
600
+ scheduledTime: convex_values0.VFloat64<number, "required">;
601
+ state: convex_values0.VUnion<{
602
+ kind: "pending";
603
+ } | {
604
+ kind: "inProgress";
605
+ } | {
606
+ kind: "success";
607
+ } | {
608
+ error: string;
609
+ kind: "failed";
610
+ } | {
611
+ kind: "canceled";
612
+ }, [convex_values0.VObject<{
613
+ kind: "pending";
614
+ }, {
615
+ kind: convex_values0.VLiteral<"pending", "required">;
616
+ }, "required", "kind">, convex_values0.VObject<{
617
+ kind: "inProgress";
618
+ }, {
619
+ kind: convex_values0.VLiteral<"inProgress", "required">;
620
+ }, "required", "kind">, convex_values0.VObject<{
621
+ kind: "success";
622
+ }, {
623
+ kind: convex_values0.VLiteral<"success", "required">;
624
+ }, "required", "kind">, convex_values0.VObject<{
625
+ error: string;
626
+ kind: "failed";
627
+ }, {
628
+ error: convex_values0.VString<string, "required">;
629
+ kind: convex_values0.VLiteral<"failed", "required">;
630
+ }, "required", "error" | "kind">, convex_values0.VObject<{
631
+ kind: "canceled";
632
+ }, {
633
+ kind: convex_values0.VLiteral<"canceled", "required">;
634
+ }, "required", "kind">], "required", "error" | "kind">;
635
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
636
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
637
+ sha256: typeof effect_Schema0.String;
638
+ size: typeof effect_Schema0.Number;
639
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
640
+ exact: true;
641
+ }>;
642
+ }>, convex_values0.VObject<{
643
+ sha256: string;
644
+ size: number;
645
+ contentType?: string;
646
+ }, {
647
+ sha256: convex_values0.VString<string, "required">;
648
+ size: convex_values0.VFloat64<number, "required">;
649
+ contentType: convex_values0.VString<string | undefined, "optional">;
650
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>, TableName>;
651
+ <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
652
+ name: typeof effect_Schema0.String;
653
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
654
+ scheduledTime: typeof effect_Schema0.Number;
655
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
656
+ exact: true;
657
+ }>;
658
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
659
+ kind: effect_Schema0.Literal<["pending"]>;
660
+ }>, effect_Schema0.Struct<{
661
+ kind: effect_Schema0.Literal<["inProgress"]>;
662
+ }>, effect_Schema0.Struct<{
663
+ kind: effect_Schema0.Literal<["success"]>;
664
+ }>, effect_Schema0.Struct<{
665
+ kind: effect_Schema0.Literal<["failed"]>;
666
+ error: typeof effect_Schema0.String;
667
+ }>, effect_Schema0.Struct<{
668
+ kind: effect_Schema0.Literal<["canceled"]>;
669
+ }>]>;
670
+ }>, convex_values0.VObject<{
671
+ name: string;
672
+ args: any[];
673
+ scheduledTime: number;
674
+ state: {
675
+ kind: "pending";
676
+ } | {
677
+ kind: "inProgress";
678
+ } | {
679
+ kind: "success";
680
+ } | {
681
+ error: string;
682
+ kind: "failed";
683
+ } | {
684
+ kind: "canceled";
685
+ };
686
+ completedTime?: number;
687
+ }, {
688
+ name: convex_values0.VString<string, "required">;
689
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
690
+ scheduledTime: convex_values0.VFloat64<number, "required">;
691
+ state: convex_values0.VUnion<{
692
+ kind: "pending";
693
+ } | {
694
+ kind: "inProgress";
695
+ } | {
696
+ kind: "success";
697
+ } | {
698
+ error: string;
699
+ kind: "failed";
700
+ } | {
701
+ kind: "canceled";
702
+ }, [convex_values0.VObject<{
703
+ kind: "pending";
704
+ }, {
705
+ kind: convex_values0.VLiteral<"pending", "required">;
706
+ }, "required", "kind">, convex_values0.VObject<{
707
+ kind: "inProgress";
708
+ }, {
709
+ kind: convex_values0.VLiteral<"inProgress", "required">;
710
+ }, "required", "kind">, convex_values0.VObject<{
711
+ kind: "success";
712
+ }, {
713
+ kind: convex_values0.VLiteral<"success", "required">;
714
+ }, "required", "kind">, convex_values0.VObject<{
715
+ error: string;
716
+ kind: "failed";
717
+ }, {
718
+ error: convex_values0.VString<string, "required">;
719
+ kind: convex_values0.VLiteral<"failed", "required">;
720
+ }, "required", "error" | "kind">, convex_values0.VObject<{
721
+ kind: "canceled";
722
+ }, {
723
+ kind: convex_values0.VLiteral<"canceled", "required">;
724
+ }, "required", "kind">], "required", "error" | "kind">;
725
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
726
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
727
+ sha256: typeof effect_Schema0.String;
728
+ size: typeof effect_Schema0.Number;
729
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
730
+ exact: true;
731
+ }>;
732
+ }>, convex_values0.VObject<{
733
+ sha256: string;
734
+ size: number;
735
+ contentType?: string;
736
+ }, {
737
+ sha256: convex_values0.VString<string, "required">;
738
+ size: convex_values0.VFloat64<number, "required">;
739
+ contentType: convex_values0.VString<string | undefined, "optional">;
740
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
741
+ name: typeof effect_Schema0.String;
742
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
743
+ scheduledTime: typeof effect_Schema0.Number;
744
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
745
+ exact: true;
746
+ }>;
747
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
748
+ kind: effect_Schema0.Literal<["pending"]>;
749
+ }>, effect_Schema0.Struct<{
750
+ kind: effect_Schema0.Literal<["inProgress"]>;
751
+ }>, effect_Schema0.Struct<{
752
+ kind: effect_Schema0.Literal<["success"]>;
753
+ }>, effect_Schema0.Struct<{
754
+ kind: effect_Schema0.Literal<["failed"]>;
755
+ error: typeof effect_Schema0.String;
756
+ }>, effect_Schema0.Struct<{
757
+ kind: effect_Schema0.Literal<["canceled"]>;
758
+ }>]>;
759
+ }>, convex_values0.VObject<{
760
+ name: string;
761
+ args: any[];
762
+ scheduledTime: number;
763
+ state: {
764
+ kind: "pending";
765
+ } | {
766
+ kind: "inProgress";
767
+ } | {
768
+ kind: "success";
769
+ } | {
770
+ error: string;
771
+ kind: "failed";
772
+ } | {
773
+ kind: "canceled";
774
+ };
775
+ completedTime?: number;
776
+ }, {
777
+ name: convex_values0.VString<string, "required">;
778
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
779
+ scheduledTime: convex_values0.VFloat64<number, "required">;
780
+ state: convex_values0.VUnion<{
781
+ kind: "pending";
782
+ } | {
783
+ kind: "inProgress";
784
+ } | {
785
+ kind: "success";
786
+ } | {
787
+ error: string;
788
+ kind: "failed";
789
+ } | {
790
+ kind: "canceled";
791
+ }, [convex_values0.VObject<{
792
+ kind: "pending";
793
+ }, {
794
+ kind: convex_values0.VLiteral<"pending", "required">;
795
+ }, "required", "kind">, convex_values0.VObject<{
796
+ kind: "inProgress";
797
+ }, {
798
+ kind: convex_values0.VLiteral<"inProgress", "required">;
799
+ }, "required", "kind">, convex_values0.VObject<{
800
+ kind: "success";
801
+ }, {
802
+ kind: convex_values0.VLiteral<"success", "required">;
803
+ }, "required", "kind">, convex_values0.VObject<{
804
+ error: string;
805
+ kind: "failed";
806
+ }, {
807
+ error: convex_values0.VString<string, "required">;
808
+ kind: convex_values0.VLiteral<"failed", "required">;
809
+ }, "required", "error" | "kind">, convex_values0.VObject<{
810
+ kind: "canceled";
811
+ }, {
812
+ kind: convex_values0.VLiteral<"canceled", "required">;
813
+ }, "required", "kind">], "required", "error" | "kind">;
814
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
815
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
816
+ sha256: typeof effect_Schema0.String;
817
+ size: typeof effect_Schema0.Number;
818
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
819
+ exact: true;
820
+ }>;
821
+ }>, convex_values0.VObject<{
822
+ sha256: string;
823
+ size: number;
824
+ contentType?: string;
825
+ }, {
826
+ sha256: convex_values0.VString<string, "required">;
827
+ size: convex_values0.VFloat64<number, "required">;
828
+ contentType: convex_values0.VString<string | undefined, "optional">;
829
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>, TableName>;
28
830
  };
29
- readonly search: <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["searchIndexes"]>(indexName: IndexName, searchFilter: (q: convex_server0.SearchFilterBuilder<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["convexDocument"], convex_server0.NamedSearchIndex<TableInfoWithName<DataModel<IncludeSystemTables<Tables<DatabaseSchema_>>>, TableName>, IndexName>>) => convex_server0.SearchFilter) => OrderedQuery$1<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>, TableName>;
831
+ readonly search: <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
832
+ name: typeof effect_Schema0.String;
833
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
834
+ scheduledTime: typeof effect_Schema0.Number;
835
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
836
+ exact: true;
837
+ }>;
838
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
839
+ kind: effect_Schema0.Literal<["pending"]>;
840
+ }>, effect_Schema0.Struct<{
841
+ kind: effect_Schema0.Literal<["inProgress"]>;
842
+ }>, effect_Schema0.Struct<{
843
+ kind: effect_Schema0.Literal<["success"]>;
844
+ }>, effect_Schema0.Struct<{
845
+ kind: effect_Schema0.Literal<["failed"]>;
846
+ error: typeof effect_Schema0.String;
847
+ }>, effect_Schema0.Struct<{
848
+ kind: effect_Schema0.Literal<["canceled"]>;
849
+ }>]>;
850
+ }>, convex_values0.VObject<{
851
+ name: string;
852
+ args: any[];
853
+ scheduledTime: number;
854
+ state: {
855
+ kind: "pending";
856
+ } | {
857
+ kind: "inProgress";
858
+ } | {
859
+ kind: "success";
860
+ } | {
861
+ error: string;
862
+ kind: "failed";
863
+ } | {
864
+ kind: "canceled";
865
+ };
866
+ completedTime?: number;
867
+ }, {
868
+ name: convex_values0.VString<string, "required">;
869
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
870
+ scheduledTime: convex_values0.VFloat64<number, "required">;
871
+ state: convex_values0.VUnion<{
872
+ kind: "pending";
873
+ } | {
874
+ kind: "inProgress";
875
+ } | {
876
+ kind: "success";
877
+ } | {
878
+ error: string;
879
+ kind: "failed";
880
+ } | {
881
+ kind: "canceled";
882
+ }, [convex_values0.VObject<{
883
+ kind: "pending";
884
+ }, {
885
+ kind: convex_values0.VLiteral<"pending", "required">;
886
+ }, "required", "kind">, convex_values0.VObject<{
887
+ kind: "inProgress";
888
+ }, {
889
+ kind: convex_values0.VLiteral<"inProgress", "required">;
890
+ }, "required", "kind">, convex_values0.VObject<{
891
+ kind: "success";
892
+ }, {
893
+ kind: convex_values0.VLiteral<"success", "required">;
894
+ }, "required", "kind">, convex_values0.VObject<{
895
+ error: string;
896
+ kind: "failed";
897
+ }, {
898
+ error: convex_values0.VString<string, "required">;
899
+ kind: convex_values0.VLiteral<"failed", "required">;
900
+ }, "required", "error" | "kind">, convex_values0.VObject<{
901
+ kind: "canceled";
902
+ }, {
903
+ kind: convex_values0.VLiteral<"canceled", "required">;
904
+ }, "required", "kind">], "required", "error" | "kind">;
905
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
906
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
907
+ sha256: typeof effect_Schema0.String;
908
+ size: typeof effect_Schema0.Number;
909
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
910
+ exact: true;
911
+ }>;
912
+ }>, convex_values0.VObject<{
913
+ sha256: string;
914
+ size: number;
915
+ contentType?: string;
916
+ }, {
917
+ sha256: convex_values0.VString<string, "required">;
918
+ size: convex_values0.VFloat64<number, "required">;
919
+ contentType: convex_values0.VString<string | undefined, "optional">;
920
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["searchIndexes"]>(indexName: IndexName, searchFilter: (q: convex_server0.SearchFilterBuilder<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
921
+ name: typeof effect_Schema0.String;
922
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
923
+ scheduledTime: typeof effect_Schema0.Number;
924
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
925
+ exact: true;
926
+ }>;
927
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
928
+ kind: effect_Schema0.Literal<["pending"]>;
929
+ }>, effect_Schema0.Struct<{
930
+ kind: effect_Schema0.Literal<["inProgress"]>;
931
+ }>, effect_Schema0.Struct<{
932
+ kind: effect_Schema0.Literal<["success"]>;
933
+ }>, effect_Schema0.Struct<{
934
+ kind: effect_Schema0.Literal<["failed"]>;
935
+ error: typeof effect_Schema0.String;
936
+ }>, effect_Schema0.Struct<{
937
+ kind: effect_Schema0.Literal<["canceled"]>;
938
+ }>]>;
939
+ }>, convex_values0.VObject<{
940
+ name: string;
941
+ args: any[];
942
+ scheduledTime: number;
943
+ state: {
944
+ kind: "pending";
945
+ } | {
946
+ kind: "inProgress";
947
+ } | {
948
+ kind: "success";
949
+ } | {
950
+ error: string;
951
+ kind: "failed";
952
+ } | {
953
+ kind: "canceled";
954
+ };
955
+ completedTime?: number;
956
+ }, {
957
+ name: convex_values0.VString<string, "required">;
958
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
959
+ scheduledTime: convex_values0.VFloat64<number, "required">;
960
+ state: convex_values0.VUnion<{
961
+ kind: "pending";
962
+ } | {
963
+ kind: "inProgress";
964
+ } | {
965
+ kind: "success";
966
+ } | {
967
+ error: string;
968
+ kind: "failed";
969
+ } | {
970
+ kind: "canceled";
971
+ }, [convex_values0.VObject<{
972
+ kind: "pending";
973
+ }, {
974
+ kind: convex_values0.VLiteral<"pending", "required">;
975
+ }, "required", "kind">, convex_values0.VObject<{
976
+ kind: "inProgress";
977
+ }, {
978
+ kind: convex_values0.VLiteral<"inProgress", "required">;
979
+ }, "required", "kind">, convex_values0.VObject<{
980
+ kind: "success";
981
+ }, {
982
+ kind: convex_values0.VLiteral<"success", "required">;
983
+ }, "required", "kind">, convex_values0.VObject<{
984
+ error: string;
985
+ kind: "failed";
986
+ }, {
987
+ error: convex_values0.VString<string, "required">;
988
+ kind: convex_values0.VLiteral<"failed", "required">;
989
+ }, "required", "error" | "kind">, convex_values0.VObject<{
990
+ kind: "canceled";
991
+ }, {
992
+ kind: convex_values0.VLiteral<"canceled", "required">;
993
+ }, "required", "kind">], "required", "error" | "kind">;
994
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
995
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
996
+ sha256: typeof effect_Schema0.String;
997
+ size: typeof effect_Schema0.Number;
998
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
999
+ exact: true;
1000
+ }>;
1001
+ }>, convex_values0.VObject<{
1002
+ sha256: string;
1003
+ size: number;
1004
+ contentType?: string;
1005
+ }, {
1006
+ sha256: convex_values0.VString<string, "required">;
1007
+ size: convex_values0.VFloat64<number, "required">;
1008
+ contentType: convex_values0.VString<string | undefined, "optional">;
1009
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["convexDocument"], convex_server0.NamedSearchIndex<TableInfoWithName<DataModel<Tables<DatabaseSchema_> | SystemTables>, TableName>, IndexName>>) => convex_server0.SearchFilter) => OrderedQuery$1<TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
1010
+ name: typeof effect_Schema0.String;
1011
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
1012
+ scheduledTime: typeof effect_Schema0.Number;
1013
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
1014
+ exact: true;
1015
+ }>;
1016
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
1017
+ kind: effect_Schema0.Literal<["pending"]>;
1018
+ }>, effect_Schema0.Struct<{
1019
+ kind: effect_Schema0.Literal<["inProgress"]>;
1020
+ }>, effect_Schema0.Struct<{
1021
+ kind: effect_Schema0.Literal<["success"]>;
1022
+ }>, effect_Schema0.Struct<{
1023
+ kind: effect_Schema0.Literal<["failed"]>;
1024
+ error: typeof effect_Schema0.String;
1025
+ }>, effect_Schema0.Struct<{
1026
+ kind: effect_Schema0.Literal<["canceled"]>;
1027
+ }>]>;
1028
+ }>, convex_values0.VObject<{
1029
+ name: string;
1030
+ args: any[];
1031
+ scheduledTime: number;
1032
+ state: {
1033
+ kind: "pending";
1034
+ } | {
1035
+ kind: "inProgress";
1036
+ } | {
1037
+ kind: "success";
1038
+ } | {
1039
+ error: string;
1040
+ kind: "failed";
1041
+ } | {
1042
+ kind: "canceled";
1043
+ };
1044
+ completedTime?: number;
1045
+ }, {
1046
+ name: convex_values0.VString<string, "required">;
1047
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1048
+ scheduledTime: convex_values0.VFloat64<number, "required">;
1049
+ state: convex_values0.VUnion<{
1050
+ kind: "pending";
1051
+ } | {
1052
+ kind: "inProgress";
1053
+ } | {
1054
+ kind: "success";
1055
+ } | {
1056
+ error: string;
1057
+ kind: "failed";
1058
+ } | {
1059
+ kind: "canceled";
1060
+ }, [convex_values0.VObject<{
1061
+ kind: "pending";
1062
+ }, {
1063
+ kind: convex_values0.VLiteral<"pending", "required">;
1064
+ }, "required", "kind">, convex_values0.VObject<{
1065
+ kind: "inProgress";
1066
+ }, {
1067
+ kind: convex_values0.VLiteral<"inProgress", "required">;
1068
+ }, "required", "kind">, convex_values0.VObject<{
1069
+ kind: "success";
1070
+ }, {
1071
+ kind: convex_values0.VLiteral<"success", "required">;
1072
+ }, "required", "kind">, convex_values0.VObject<{
1073
+ error: string;
1074
+ kind: "failed";
1075
+ }, {
1076
+ error: convex_values0.VString<string, "required">;
1077
+ kind: convex_values0.VLiteral<"failed", "required">;
1078
+ }, "required", "error" | "kind">, convex_values0.VObject<{
1079
+ kind: "canceled";
1080
+ }, {
1081
+ kind: convex_values0.VLiteral<"canceled", "required">;
1082
+ }, "required", "kind">], "required", "error" | "kind">;
1083
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1084
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
1085
+ sha256: typeof effect_Schema0.String;
1086
+ size: typeof effect_Schema0.Number;
1087
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
1088
+ exact: true;
1089
+ }>;
1090
+ }>, convex_values0.VObject<{
1091
+ sha256: string;
1092
+ size: number;
1093
+ contentType?: string;
1094
+ }, {
1095
+ sha256: convex_values0.VString<string, "required">;
1096
+ size: convex_values0.VFloat64<number, "required">;
1097
+ contentType: convex_values0.VString<string | undefined, "optional">;
1098
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>, TableName>;
30
1099
  };
31
1100
  };
32
1101
  declare const DatabaseReader: <DatabaseSchema_ extends AnyWithProps>() => Context.Tag<{
33
- table: <const TableName extends Name<IncludeSystemTables<Tables<DatabaseSchema_>>>>(tableName: TableName) => {
1102
+ table: <const TableName extends Name<Tables<DatabaseSchema_>> | "_scheduled_functions" | "_storage">(tableName: TableName) => {
34
1103
  readonly get: {
35
- (id: convex_values0.GenericId<TableName>): effect_Effect0.Effect<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["document"], GetByIdFailure | DocumentDecodeError, never>;
36
- <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"]>(indexName: IndexName, ...indexFieldValues: _confect_core_Types0.IndexFieldTypesForEq<ToConvex<DataModel<IncludeSystemTables<Tables<DatabaseSchema_>>>>, TableName, TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"][IndexName]>): effect_Effect0.Effect<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["document"], DocumentDecodeError | GetByIndexFailure, never>;
1104
+ (id: convex_values0.GenericId<TableName>): effect_Effect0.Effect<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
1105
+ name: typeof effect_Schema0.String;
1106
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
1107
+ scheduledTime: typeof effect_Schema0.Number;
1108
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
1109
+ exact: true;
1110
+ }>;
1111
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
1112
+ kind: effect_Schema0.Literal<["pending"]>;
1113
+ }>, effect_Schema0.Struct<{
1114
+ kind: effect_Schema0.Literal<["inProgress"]>;
1115
+ }>, effect_Schema0.Struct<{
1116
+ kind: effect_Schema0.Literal<["success"]>;
1117
+ }>, effect_Schema0.Struct<{
1118
+ kind: effect_Schema0.Literal<["failed"]>;
1119
+ error: typeof effect_Schema0.String;
1120
+ }>, effect_Schema0.Struct<{
1121
+ kind: effect_Schema0.Literal<["canceled"]>;
1122
+ }>]>;
1123
+ }>, convex_values0.VObject<{
1124
+ name: string;
1125
+ args: any[];
1126
+ scheduledTime: number;
1127
+ state: {
1128
+ kind: "pending";
1129
+ } | {
1130
+ kind: "inProgress";
1131
+ } | {
1132
+ kind: "success";
1133
+ } | {
1134
+ error: string;
1135
+ kind: "failed";
1136
+ } | {
1137
+ kind: "canceled";
1138
+ };
1139
+ completedTime?: number;
1140
+ }, {
1141
+ name: convex_values0.VString<string, "required">;
1142
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1143
+ scheduledTime: convex_values0.VFloat64<number, "required">;
1144
+ state: convex_values0.VUnion<{
1145
+ kind: "pending";
1146
+ } | {
1147
+ kind: "inProgress";
1148
+ } | {
1149
+ kind: "success";
1150
+ } | {
1151
+ error: string;
1152
+ kind: "failed";
1153
+ } | {
1154
+ kind: "canceled";
1155
+ }, [convex_values0.VObject<{
1156
+ kind: "pending";
1157
+ }, {
1158
+ kind: convex_values0.VLiteral<"pending", "required">;
1159
+ }, "required", "kind">, convex_values0.VObject<{
1160
+ kind: "inProgress";
1161
+ }, {
1162
+ kind: convex_values0.VLiteral<"inProgress", "required">;
1163
+ }, "required", "kind">, convex_values0.VObject<{
1164
+ kind: "success";
1165
+ }, {
1166
+ kind: convex_values0.VLiteral<"success", "required">;
1167
+ }, "required", "kind">, convex_values0.VObject<{
1168
+ error: string;
1169
+ kind: "failed";
1170
+ }, {
1171
+ error: convex_values0.VString<string, "required">;
1172
+ kind: convex_values0.VLiteral<"failed", "required">;
1173
+ }, "required", "error" | "kind">, convex_values0.VObject<{
1174
+ kind: "canceled";
1175
+ }, {
1176
+ kind: convex_values0.VLiteral<"canceled", "required">;
1177
+ }, "required", "kind">], "required", "error" | "kind">;
1178
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1179
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
1180
+ sha256: typeof effect_Schema0.String;
1181
+ size: typeof effect_Schema0.Number;
1182
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
1183
+ exact: true;
1184
+ }>;
1185
+ }>, convex_values0.VObject<{
1186
+ sha256: string;
1187
+ size: number;
1188
+ contentType?: string;
1189
+ }, {
1190
+ sha256: convex_values0.VString<string, "required">;
1191
+ size: convex_values0.VFloat64<number, "required">;
1192
+ contentType: convex_values0.VString<string | undefined, "optional">;
1193
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["document"], DocumentDecodeError | GetByIdFailure, never>;
1194
+ <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
1195
+ name: typeof effect_Schema0.String;
1196
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
1197
+ scheduledTime: typeof effect_Schema0.Number;
1198
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
1199
+ exact: true;
1200
+ }>;
1201
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
1202
+ kind: effect_Schema0.Literal<["pending"]>;
1203
+ }>, effect_Schema0.Struct<{
1204
+ kind: effect_Schema0.Literal<["inProgress"]>;
1205
+ }>, effect_Schema0.Struct<{
1206
+ kind: effect_Schema0.Literal<["success"]>;
1207
+ }>, effect_Schema0.Struct<{
1208
+ kind: effect_Schema0.Literal<["failed"]>;
1209
+ error: typeof effect_Schema0.String;
1210
+ }>, effect_Schema0.Struct<{
1211
+ kind: effect_Schema0.Literal<["canceled"]>;
1212
+ }>]>;
1213
+ }>, convex_values0.VObject<{
1214
+ name: string;
1215
+ args: any[];
1216
+ scheduledTime: number;
1217
+ state: {
1218
+ kind: "pending";
1219
+ } | {
1220
+ kind: "inProgress";
1221
+ } | {
1222
+ kind: "success";
1223
+ } | {
1224
+ error: string;
1225
+ kind: "failed";
1226
+ } | {
1227
+ kind: "canceled";
1228
+ };
1229
+ completedTime?: number;
1230
+ }, {
1231
+ name: convex_values0.VString<string, "required">;
1232
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1233
+ scheduledTime: convex_values0.VFloat64<number, "required">;
1234
+ state: convex_values0.VUnion<{
1235
+ kind: "pending";
1236
+ } | {
1237
+ kind: "inProgress";
1238
+ } | {
1239
+ kind: "success";
1240
+ } | {
1241
+ error: string;
1242
+ kind: "failed";
1243
+ } | {
1244
+ kind: "canceled";
1245
+ }, [convex_values0.VObject<{
1246
+ kind: "pending";
1247
+ }, {
1248
+ kind: convex_values0.VLiteral<"pending", "required">;
1249
+ }, "required", "kind">, convex_values0.VObject<{
1250
+ kind: "inProgress";
1251
+ }, {
1252
+ kind: convex_values0.VLiteral<"inProgress", "required">;
1253
+ }, "required", "kind">, convex_values0.VObject<{
1254
+ kind: "success";
1255
+ }, {
1256
+ kind: convex_values0.VLiteral<"success", "required">;
1257
+ }, "required", "kind">, convex_values0.VObject<{
1258
+ error: string;
1259
+ kind: "failed";
1260
+ }, {
1261
+ error: convex_values0.VString<string, "required">;
1262
+ kind: convex_values0.VLiteral<"failed", "required">;
1263
+ }, "required", "error" | "kind">, convex_values0.VObject<{
1264
+ kind: "canceled";
1265
+ }, {
1266
+ kind: convex_values0.VLiteral<"canceled", "required">;
1267
+ }, "required", "kind">], "required", "error" | "kind">;
1268
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1269
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
1270
+ sha256: typeof effect_Schema0.String;
1271
+ size: typeof effect_Schema0.Number;
1272
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
1273
+ exact: true;
1274
+ }>;
1275
+ }>, convex_values0.VObject<{
1276
+ sha256: string;
1277
+ size: number;
1278
+ contentType?: string;
1279
+ }, {
1280
+ sha256: convex_values0.VString<string, "required">;
1281
+ size: convex_values0.VFloat64<number, "required">;
1282
+ contentType: convex_values0.VString<string | undefined, "optional">;
1283
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, ...indexFieldValues: _confect_core_Types0.IndexFieldTypesForEq<ToConvex<DataModel<Tables<DatabaseSchema_> | SystemTables>>, TableName, (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
1284
+ name: typeof effect_Schema0.String;
1285
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
1286
+ scheduledTime: typeof effect_Schema0.Number;
1287
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
1288
+ exact: true;
1289
+ }>;
1290
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
1291
+ kind: effect_Schema0.Literal<["pending"]>;
1292
+ }>, effect_Schema0.Struct<{
1293
+ kind: effect_Schema0.Literal<["inProgress"]>;
1294
+ }>, effect_Schema0.Struct<{
1295
+ kind: effect_Schema0.Literal<["success"]>;
1296
+ }>, effect_Schema0.Struct<{
1297
+ kind: effect_Schema0.Literal<["failed"]>;
1298
+ error: typeof effect_Schema0.String;
1299
+ }>, effect_Schema0.Struct<{
1300
+ kind: effect_Schema0.Literal<["canceled"]>;
1301
+ }>]>;
1302
+ }>, convex_values0.VObject<{
1303
+ name: string;
1304
+ args: any[];
1305
+ scheduledTime: number;
1306
+ state: {
1307
+ kind: "pending";
1308
+ } | {
1309
+ kind: "inProgress";
1310
+ } | {
1311
+ kind: "success";
1312
+ } | {
1313
+ error: string;
1314
+ kind: "failed";
1315
+ } | {
1316
+ kind: "canceled";
1317
+ };
1318
+ completedTime?: number;
1319
+ }, {
1320
+ name: convex_values0.VString<string, "required">;
1321
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1322
+ scheduledTime: convex_values0.VFloat64<number, "required">;
1323
+ state: convex_values0.VUnion<{
1324
+ kind: "pending";
1325
+ } | {
1326
+ kind: "inProgress";
1327
+ } | {
1328
+ kind: "success";
1329
+ } | {
1330
+ error: string;
1331
+ kind: "failed";
1332
+ } | {
1333
+ kind: "canceled";
1334
+ }, [convex_values0.VObject<{
1335
+ kind: "pending";
1336
+ }, {
1337
+ kind: convex_values0.VLiteral<"pending", "required">;
1338
+ }, "required", "kind">, convex_values0.VObject<{
1339
+ kind: "inProgress";
1340
+ }, {
1341
+ kind: convex_values0.VLiteral<"inProgress", "required">;
1342
+ }, "required", "kind">, convex_values0.VObject<{
1343
+ kind: "success";
1344
+ }, {
1345
+ kind: convex_values0.VLiteral<"success", "required">;
1346
+ }, "required", "kind">, convex_values0.VObject<{
1347
+ error: string;
1348
+ kind: "failed";
1349
+ }, {
1350
+ error: convex_values0.VString<string, "required">;
1351
+ kind: convex_values0.VLiteral<"failed", "required">;
1352
+ }, "required", "error" | "kind">, convex_values0.VObject<{
1353
+ kind: "canceled";
1354
+ }, {
1355
+ kind: convex_values0.VLiteral<"canceled", "required">;
1356
+ }, "required", "kind">], "required", "error" | "kind">;
1357
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1358
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
1359
+ sha256: typeof effect_Schema0.String;
1360
+ size: typeof effect_Schema0.Number;
1361
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
1362
+ exact: true;
1363
+ }>;
1364
+ }>, convex_values0.VObject<{
1365
+ sha256: string;
1366
+ size: number;
1367
+ contentType?: string;
1368
+ }, {
1369
+ sha256: convex_values0.VString<string, "required">;
1370
+ size: convex_values0.VFloat64<number, "required">;
1371
+ contentType: convex_values0.VString<string | undefined, "optional">;
1372
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"][IndexName]>): effect_Effect0.Effect<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
1373
+ name: typeof effect_Schema0.String;
1374
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
1375
+ scheduledTime: typeof effect_Schema0.Number;
1376
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
1377
+ exact: true;
1378
+ }>;
1379
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
1380
+ kind: effect_Schema0.Literal<["pending"]>;
1381
+ }>, effect_Schema0.Struct<{
1382
+ kind: effect_Schema0.Literal<["inProgress"]>;
1383
+ }>, effect_Schema0.Struct<{
1384
+ kind: effect_Schema0.Literal<["success"]>;
1385
+ }>, effect_Schema0.Struct<{
1386
+ kind: effect_Schema0.Literal<["failed"]>;
1387
+ error: typeof effect_Schema0.String;
1388
+ }>, effect_Schema0.Struct<{
1389
+ kind: effect_Schema0.Literal<["canceled"]>;
1390
+ }>]>;
1391
+ }>, convex_values0.VObject<{
1392
+ name: string;
1393
+ args: any[];
1394
+ scheduledTime: number;
1395
+ state: {
1396
+ kind: "pending";
1397
+ } | {
1398
+ kind: "inProgress";
1399
+ } | {
1400
+ kind: "success";
1401
+ } | {
1402
+ error: string;
1403
+ kind: "failed";
1404
+ } | {
1405
+ kind: "canceled";
1406
+ };
1407
+ completedTime?: number;
1408
+ }, {
1409
+ name: convex_values0.VString<string, "required">;
1410
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1411
+ scheduledTime: convex_values0.VFloat64<number, "required">;
1412
+ state: convex_values0.VUnion<{
1413
+ kind: "pending";
1414
+ } | {
1415
+ kind: "inProgress";
1416
+ } | {
1417
+ kind: "success";
1418
+ } | {
1419
+ error: string;
1420
+ kind: "failed";
1421
+ } | {
1422
+ kind: "canceled";
1423
+ }, [convex_values0.VObject<{
1424
+ kind: "pending";
1425
+ }, {
1426
+ kind: convex_values0.VLiteral<"pending", "required">;
1427
+ }, "required", "kind">, convex_values0.VObject<{
1428
+ kind: "inProgress";
1429
+ }, {
1430
+ kind: convex_values0.VLiteral<"inProgress", "required">;
1431
+ }, "required", "kind">, convex_values0.VObject<{
1432
+ kind: "success";
1433
+ }, {
1434
+ kind: convex_values0.VLiteral<"success", "required">;
1435
+ }, "required", "kind">, convex_values0.VObject<{
1436
+ error: string;
1437
+ kind: "failed";
1438
+ }, {
1439
+ error: convex_values0.VString<string, "required">;
1440
+ kind: convex_values0.VLiteral<"failed", "required">;
1441
+ }, "required", "error" | "kind">, convex_values0.VObject<{
1442
+ kind: "canceled";
1443
+ }, {
1444
+ kind: convex_values0.VLiteral<"canceled", "required">;
1445
+ }, "required", "kind">], "required", "error" | "kind">;
1446
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1447
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
1448
+ sha256: typeof effect_Schema0.String;
1449
+ size: typeof effect_Schema0.Number;
1450
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
1451
+ exact: true;
1452
+ }>;
1453
+ }>, convex_values0.VObject<{
1454
+ sha256: string;
1455
+ size: number;
1456
+ contentType?: string;
1457
+ }, {
1458
+ sha256: convex_values0.VString<string, "required">;
1459
+ size: convex_values0.VFloat64<number, "required">;
1460
+ contentType: convex_values0.VString<string | undefined, "optional">;
1461
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["document"], DocumentDecodeError | GetByIndexFailure, never>;
37
1462
  };
38
1463
  readonly index: {
39
- <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"]>(indexName: IndexName, indexRange?: ((q: convex_server0.IndexRangeBuilder<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["convexDocument"], convex_server0.NamedIndex<TableInfoWithName<DataModel<IncludeSystemTables<Tables<DatabaseSchema_>>>, TableName>, IndexName>, 0>) => convex_server0.IndexRange) | undefined, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>, TableName>;
40
- <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"]>(indexName: IndexName, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>, TableName>;
1464
+ <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
1465
+ name: typeof effect_Schema0.String;
1466
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
1467
+ scheduledTime: typeof effect_Schema0.Number;
1468
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
1469
+ exact: true;
1470
+ }>;
1471
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
1472
+ kind: effect_Schema0.Literal<["pending"]>;
1473
+ }>, effect_Schema0.Struct<{
1474
+ kind: effect_Schema0.Literal<["inProgress"]>;
1475
+ }>, effect_Schema0.Struct<{
1476
+ kind: effect_Schema0.Literal<["success"]>;
1477
+ }>, effect_Schema0.Struct<{
1478
+ kind: effect_Schema0.Literal<["failed"]>;
1479
+ error: typeof effect_Schema0.String;
1480
+ }>, effect_Schema0.Struct<{
1481
+ kind: effect_Schema0.Literal<["canceled"]>;
1482
+ }>]>;
1483
+ }>, convex_values0.VObject<{
1484
+ name: string;
1485
+ args: any[];
1486
+ scheduledTime: number;
1487
+ state: {
1488
+ kind: "pending";
1489
+ } | {
1490
+ kind: "inProgress";
1491
+ } | {
1492
+ kind: "success";
1493
+ } | {
1494
+ error: string;
1495
+ kind: "failed";
1496
+ } | {
1497
+ kind: "canceled";
1498
+ };
1499
+ completedTime?: number;
1500
+ }, {
1501
+ name: convex_values0.VString<string, "required">;
1502
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1503
+ scheduledTime: convex_values0.VFloat64<number, "required">;
1504
+ state: convex_values0.VUnion<{
1505
+ kind: "pending";
1506
+ } | {
1507
+ kind: "inProgress";
1508
+ } | {
1509
+ kind: "success";
1510
+ } | {
1511
+ error: string;
1512
+ kind: "failed";
1513
+ } | {
1514
+ kind: "canceled";
1515
+ }, [convex_values0.VObject<{
1516
+ kind: "pending";
1517
+ }, {
1518
+ kind: convex_values0.VLiteral<"pending", "required">;
1519
+ }, "required", "kind">, convex_values0.VObject<{
1520
+ kind: "inProgress";
1521
+ }, {
1522
+ kind: convex_values0.VLiteral<"inProgress", "required">;
1523
+ }, "required", "kind">, convex_values0.VObject<{
1524
+ kind: "success";
1525
+ }, {
1526
+ kind: convex_values0.VLiteral<"success", "required">;
1527
+ }, "required", "kind">, convex_values0.VObject<{
1528
+ error: string;
1529
+ kind: "failed";
1530
+ }, {
1531
+ error: convex_values0.VString<string, "required">;
1532
+ kind: convex_values0.VLiteral<"failed", "required">;
1533
+ }, "required", "error" | "kind">, convex_values0.VObject<{
1534
+ kind: "canceled";
1535
+ }, {
1536
+ kind: convex_values0.VLiteral<"canceled", "required">;
1537
+ }, "required", "kind">], "required", "error" | "kind">;
1538
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1539
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
1540
+ sha256: typeof effect_Schema0.String;
1541
+ size: typeof effect_Schema0.Number;
1542
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
1543
+ exact: true;
1544
+ }>;
1545
+ }>, convex_values0.VObject<{
1546
+ sha256: string;
1547
+ size: number;
1548
+ contentType?: string;
1549
+ }, {
1550
+ sha256: convex_values0.VString<string, "required">;
1551
+ size: convex_values0.VFloat64<number, "required">;
1552
+ contentType: convex_values0.VString<string | undefined, "optional">;
1553
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, indexRange?: ((q: convex_server0.IndexRangeBuilder<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
1554
+ name: typeof effect_Schema0.String;
1555
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
1556
+ scheduledTime: typeof effect_Schema0.Number;
1557
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
1558
+ exact: true;
1559
+ }>;
1560
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
1561
+ kind: effect_Schema0.Literal<["pending"]>;
1562
+ }>, effect_Schema0.Struct<{
1563
+ kind: effect_Schema0.Literal<["inProgress"]>;
1564
+ }>, effect_Schema0.Struct<{
1565
+ kind: effect_Schema0.Literal<["success"]>;
1566
+ }>, effect_Schema0.Struct<{
1567
+ kind: effect_Schema0.Literal<["failed"]>;
1568
+ error: typeof effect_Schema0.String;
1569
+ }>, effect_Schema0.Struct<{
1570
+ kind: effect_Schema0.Literal<["canceled"]>;
1571
+ }>]>;
1572
+ }>, convex_values0.VObject<{
1573
+ name: string;
1574
+ args: any[];
1575
+ scheduledTime: number;
1576
+ state: {
1577
+ kind: "pending";
1578
+ } | {
1579
+ kind: "inProgress";
1580
+ } | {
1581
+ kind: "success";
1582
+ } | {
1583
+ error: string;
1584
+ kind: "failed";
1585
+ } | {
1586
+ kind: "canceled";
1587
+ };
1588
+ completedTime?: number;
1589
+ }, {
1590
+ name: convex_values0.VString<string, "required">;
1591
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1592
+ scheduledTime: convex_values0.VFloat64<number, "required">;
1593
+ state: convex_values0.VUnion<{
1594
+ kind: "pending";
1595
+ } | {
1596
+ kind: "inProgress";
1597
+ } | {
1598
+ kind: "success";
1599
+ } | {
1600
+ error: string;
1601
+ kind: "failed";
1602
+ } | {
1603
+ kind: "canceled";
1604
+ }, [convex_values0.VObject<{
1605
+ kind: "pending";
1606
+ }, {
1607
+ kind: convex_values0.VLiteral<"pending", "required">;
1608
+ }, "required", "kind">, convex_values0.VObject<{
1609
+ kind: "inProgress";
1610
+ }, {
1611
+ kind: convex_values0.VLiteral<"inProgress", "required">;
1612
+ }, "required", "kind">, convex_values0.VObject<{
1613
+ kind: "success";
1614
+ }, {
1615
+ kind: convex_values0.VLiteral<"success", "required">;
1616
+ }, "required", "kind">, convex_values0.VObject<{
1617
+ error: string;
1618
+ kind: "failed";
1619
+ }, {
1620
+ error: convex_values0.VString<string, "required">;
1621
+ kind: convex_values0.VLiteral<"failed", "required">;
1622
+ }, "required", "error" | "kind">, convex_values0.VObject<{
1623
+ kind: "canceled";
1624
+ }, {
1625
+ kind: convex_values0.VLiteral<"canceled", "required">;
1626
+ }, "required", "kind">], "required", "error" | "kind">;
1627
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1628
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
1629
+ sha256: typeof effect_Schema0.String;
1630
+ size: typeof effect_Schema0.Number;
1631
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
1632
+ exact: true;
1633
+ }>;
1634
+ }>, convex_values0.VObject<{
1635
+ sha256: string;
1636
+ size: number;
1637
+ contentType?: string;
1638
+ }, {
1639
+ sha256: convex_values0.VString<string, "required">;
1640
+ size: convex_values0.VFloat64<number, "required">;
1641
+ contentType: convex_values0.VString<string | undefined, "optional">;
1642
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["convexDocument"], convex_server0.NamedIndex<TableInfoWithName<DataModel<Tables<DatabaseSchema_> | SystemTables>, TableName>, IndexName>, 0>) => convex_server0.IndexRange) | undefined, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
1643
+ name: typeof effect_Schema0.String;
1644
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
1645
+ scheduledTime: typeof effect_Schema0.Number;
1646
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
1647
+ exact: true;
1648
+ }>;
1649
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
1650
+ kind: effect_Schema0.Literal<["pending"]>;
1651
+ }>, effect_Schema0.Struct<{
1652
+ kind: effect_Schema0.Literal<["inProgress"]>;
1653
+ }>, effect_Schema0.Struct<{
1654
+ kind: effect_Schema0.Literal<["success"]>;
1655
+ }>, effect_Schema0.Struct<{
1656
+ kind: effect_Schema0.Literal<["failed"]>;
1657
+ error: typeof effect_Schema0.String;
1658
+ }>, effect_Schema0.Struct<{
1659
+ kind: effect_Schema0.Literal<["canceled"]>;
1660
+ }>]>;
1661
+ }>, convex_values0.VObject<{
1662
+ name: string;
1663
+ args: any[];
1664
+ scheduledTime: number;
1665
+ state: {
1666
+ kind: "pending";
1667
+ } | {
1668
+ kind: "inProgress";
1669
+ } | {
1670
+ kind: "success";
1671
+ } | {
1672
+ error: string;
1673
+ kind: "failed";
1674
+ } | {
1675
+ kind: "canceled";
1676
+ };
1677
+ completedTime?: number;
1678
+ }, {
1679
+ name: convex_values0.VString<string, "required">;
1680
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1681
+ scheduledTime: convex_values0.VFloat64<number, "required">;
1682
+ state: convex_values0.VUnion<{
1683
+ kind: "pending";
1684
+ } | {
1685
+ kind: "inProgress";
1686
+ } | {
1687
+ kind: "success";
1688
+ } | {
1689
+ error: string;
1690
+ kind: "failed";
1691
+ } | {
1692
+ kind: "canceled";
1693
+ }, [convex_values0.VObject<{
1694
+ kind: "pending";
1695
+ }, {
1696
+ kind: convex_values0.VLiteral<"pending", "required">;
1697
+ }, "required", "kind">, convex_values0.VObject<{
1698
+ kind: "inProgress";
1699
+ }, {
1700
+ kind: convex_values0.VLiteral<"inProgress", "required">;
1701
+ }, "required", "kind">, convex_values0.VObject<{
1702
+ kind: "success";
1703
+ }, {
1704
+ kind: convex_values0.VLiteral<"success", "required">;
1705
+ }, "required", "kind">, convex_values0.VObject<{
1706
+ error: string;
1707
+ kind: "failed";
1708
+ }, {
1709
+ error: convex_values0.VString<string, "required">;
1710
+ kind: convex_values0.VLiteral<"failed", "required">;
1711
+ }, "required", "error" | "kind">, convex_values0.VObject<{
1712
+ kind: "canceled";
1713
+ }, {
1714
+ kind: convex_values0.VLiteral<"canceled", "required">;
1715
+ }, "required", "kind">], "required", "error" | "kind">;
1716
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1717
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
1718
+ sha256: typeof effect_Schema0.String;
1719
+ size: typeof effect_Schema0.Number;
1720
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
1721
+ exact: true;
1722
+ }>;
1723
+ }>, convex_values0.VObject<{
1724
+ sha256: string;
1725
+ size: number;
1726
+ contentType?: string;
1727
+ }, {
1728
+ sha256: convex_values0.VString<string, "required">;
1729
+ size: convex_values0.VFloat64<number, "required">;
1730
+ contentType: convex_values0.VString<string | undefined, "optional">;
1731
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>, TableName>;
1732
+ <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
1733
+ name: typeof effect_Schema0.String;
1734
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
1735
+ scheduledTime: typeof effect_Schema0.Number;
1736
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
1737
+ exact: true;
1738
+ }>;
1739
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
1740
+ kind: effect_Schema0.Literal<["pending"]>;
1741
+ }>, effect_Schema0.Struct<{
1742
+ kind: effect_Schema0.Literal<["inProgress"]>;
1743
+ }>, effect_Schema0.Struct<{
1744
+ kind: effect_Schema0.Literal<["success"]>;
1745
+ }>, effect_Schema0.Struct<{
1746
+ kind: effect_Schema0.Literal<["failed"]>;
1747
+ error: typeof effect_Schema0.String;
1748
+ }>, effect_Schema0.Struct<{
1749
+ kind: effect_Schema0.Literal<["canceled"]>;
1750
+ }>]>;
1751
+ }>, convex_values0.VObject<{
1752
+ name: string;
1753
+ args: any[];
1754
+ scheduledTime: number;
1755
+ state: {
1756
+ kind: "pending";
1757
+ } | {
1758
+ kind: "inProgress";
1759
+ } | {
1760
+ kind: "success";
1761
+ } | {
1762
+ error: string;
1763
+ kind: "failed";
1764
+ } | {
1765
+ kind: "canceled";
1766
+ };
1767
+ completedTime?: number;
1768
+ }, {
1769
+ name: convex_values0.VString<string, "required">;
1770
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1771
+ scheduledTime: convex_values0.VFloat64<number, "required">;
1772
+ state: convex_values0.VUnion<{
1773
+ kind: "pending";
1774
+ } | {
1775
+ kind: "inProgress";
1776
+ } | {
1777
+ kind: "success";
1778
+ } | {
1779
+ error: string;
1780
+ kind: "failed";
1781
+ } | {
1782
+ kind: "canceled";
1783
+ }, [convex_values0.VObject<{
1784
+ kind: "pending";
1785
+ }, {
1786
+ kind: convex_values0.VLiteral<"pending", "required">;
1787
+ }, "required", "kind">, convex_values0.VObject<{
1788
+ kind: "inProgress";
1789
+ }, {
1790
+ kind: convex_values0.VLiteral<"inProgress", "required">;
1791
+ }, "required", "kind">, convex_values0.VObject<{
1792
+ kind: "success";
1793
+ }, {
1794
+ kind: convex_values0.VLiteral<"success", "required">;
1795
+ }, "required", "kind">, convex_values0.VObject<{
1796
+ error: string;
1797
+ kind: "failed";
1798
+ }, {
1799
+ error: convex_values0.VString<string, "required">;
1800
+ kind: convex_values0.VLiteral<"failed", "required">;
1801
+ }, "required", "error" | "kind">, convex_values0.VObject<{
1802
+ kind: "canceled";
1803
+ }, {
1804
+ kind: convex_values0.VLiteral<"canceled", "required">;
1805
+ }, "required", "kind">], "required", "error" | "kind">;
1806
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1807
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
1808
+ sha256: typeof effect_Schema0.String;
1809
+ size: typeof effect_Schema0.Number;
1810
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
1811
+ exact: true;
1812
+ }>;
1813
+ }>, convex_values0.VObject<{
1814
+ sha256: string;
1815
+ size: number;
1816
+ contentType?: string;
1817
+ }, {
1818
+ sha256: convex_values0.VString<string, "required">;
1819
+ size: convex_values0.VFloat64<number, "required">;
1820
+ contentType: convex_values0.VString<string | undefined, "optional">;
1821
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
1822
+ name: typeof effect_Schema0.String;
1823
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
1824
+ scheduledTime: typeof effect_Schema0.Number;
1825
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
1826
+ exact: true;
1827
+ }>;
1828
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
1829
+ kind: effect_Schema0.Literal<["pending"]>;
1830
+ }>, effect_Schema0.Struct<{
1831
+ kind: effect_Schema0.Literal<["inProgress"]>;
1832
+ }>, effect_Schema0.Struct<{
1833
+ kind: effect_Schema0.Literal<["success"]>;
1834
+ }>, effect_Schema0.Struct<{
1835
+ kind: effect_Schema0.Literal<["failed"]>;
1836
+ error: typeof effect_Schema0.String;
1837
+ }>, effect_Schema0.Struct<{
1838
+ kind: effect_Schema0.Literal<["canceled"]>;
1839
+ }>]>;
1840
+ }>, convex_values0.VObject<{
1841
+ name: string;
1842
+ args: any[];
1843
+ scheduledTime: number;
1844
+ state: {
1845
+ kind: "pending";
1846
+ } | {
1847
+ kind: "inProgress";
1848
+ } | {
1849
+ kind: "success";
1850
+ } | {
1851
+ error: string;
1852
+ kind: "failed";
1853
+ } | {
1854
+ kind: "canceled";
1855
+ };
1856
+ completedTime?: number;
1857
+ }, {
1858
+ name: convex_values0.VString<string, "required">;
1859
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1860
+ scheduledTime: convex_values0.VFloat64<number, "required">;
1861
+ state: convex_values0.VUnion<{
1862
+ kind: "pending";
1863
+ } | {
1864
+ kind: "inProgress";
1865
+ } | {
1866
+ kind: "success";
1867
+ } | {
1868
+ error: string;
1869
+ kind: "failed";
1870
+ } | {
1871
+ kind: "canceled";
1872
+ }, [convex_values0.VObject<{
1873
+ kind: "pending";
1874
+ }, {
1875
+ kind: convex_values0.VLiteral<"pending", "required">;
1876
+ }, "required", "kind">, convex_values0.VObject<{
1877
+ kind: "inProgress";
1878
+ }, {
1879
+ kind: convex_values0.VLiteral<"inProgress", "required">;
1880
+ }, "required", "kind">, convex_values0.VObject<{
1881
+ kind: "success";
1882
+ }, {
1883
+ kind: convex_values0.VLiteral<"success", "required">;
1884
+ }, "required", "kind">, convex_values0.VObject<{
1885
+ error: string;
1886
+ kind: "failed";
1887
+ }, {
1888
+ error: convex_values0.VString<string, "required">;
1889
+ kind: convex_values0.VLiteral<"failed", "required">;
1890
+ }, "required", "error" | "kind">, convex_values0.VObject<{
1891
+ kind: "canceled";
1892
+ }, {
1893
+ kind: convex_values0.VLiteral<"canceled", "required">;
1894
+ }, "required", "kind">], "required", "error" | "kind">;
1895
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1896
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
1897
+ sha256: typeof effect_Schema0.String;
1898
+ size: typeof effect_Schema0.Number;
1899
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
1900
+ exact: true;
1901
+ }>;
1902
+ }>, convex_values0.VObject<{
1903
+ sha256: string;
1904
+ size: number;
1905
+ contentType?: string;
1906
+ }, {
1907
+ sha256: convex_values0.VString<string, "required">;
1908
+ size: convex_values0.VFloat64<number, "required">;
1909
+ contentType: convex_values0.VString<string | undefined, "optional">;
1910
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>, TableName>;
41
1911
  };
42
- readonly search: <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["searchIndexes"]>(indexName: IndexName, searchFilter: (q: convex_server0.SearchFilterBuilder<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["convexDocument"], convex_server0.NamedSearchIndex<TableInfoWithName<DataModel<IncludeSystemTables<Tables<DatabaseSchema_>>>, TableName>, IndexName>>) => convex_server0.SearchFilter) => OrderedQuery$1<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>, TableName>;
1912
+ readonly search: <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
1913
+ name: typeof effect_Schema0.String;
1914
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
1915
+ scheduledTime: typeof effect_Schema0.Number;
1916
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
1917
+ exact: true;
1918
+ }>;
1919
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
1920
+ kind: effect_Schema0.Literal<["pending"]>;
1921
+ }>, effect_Schema0.Struct<{
1922
+ kind: effect_Schema0.Literal<["inProgress"]>;
1923
+ }>, effect_Schema0.Struct<{
1924
+ kind: effect_Schema0.Literal<["success"]>;
1925
+ }>, effect_Schema0.Struct<{
1926
+ kind: effect_Schema0.Literal<["failed"]>;
1927
+ error: typeof effect_Schema0.String;
1928
+ }>, effect_Schema0.Struct<{
1929
+ kind: effect_Schema0.Literal<["canceled"]>;
1930
+ }>]>;
1931
+ }>, convex_values0.VObject<{
1932
+ name: string;
1933
+ args: any[];
1934
+ scheduledTime: number;
1935
+ state: {
1936
+ kind: "pending";
1937
+ } | {
1938
+ kind: "inProgress";
1939
+ } | {
1940
+ kind: "success";
1941
+ } | {
1942
+ error: string;
1943
+ kind: "failed";
1944
+ } | {
1945
+ kind: "canceled";
1946
+ };
1947
+ completedTime?: number;
1948
+ }, {
1949
+ name: convex_values0.VString<string, "required">;
1950
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1951
+ scheduledTime: convex_values0.VFloat64<number, "required">;
1952
+ state: convex_values0.VUnion<{
1953
+ kind: "pending";
1954
+ } | {
1955
+ kind: "inProgress";
1956
+ } | {
1957
+ kind: "success";
1958
+ } | {
1959
+ error: string;
1960
+ kind: "failed";
1961
+ } | {
1962
+ kind: "canceled";
1963
+ }, [convex_values0.VObject<{
1964
+ kind: "pending";
1965
+ }, {
1966
+ kind: convex_values0.VLiteral<"pending", "required">;
1967
+ }, "required", "kind">, convex_values0.VObject<{
1968
+ kind: "inProgress";
1969
+ }, {
1970
+ kind: convex_values0.VLiteral<"inProgress", "required">;
1971
+ }, "required", "kind">, convex_values0.VObject<{
1972
+ kind: "success";
1973
+ }, {
1974
+ kind: convex_values0.VLiteral<"success", "required">;
1975
+ }, "required", "kind">, convex_values0.VObject<{
1976
+ error: string;
1977
+ kind: "failed";
1978
+ }, {
1979
+ error: convex_values0.VString<string, "required">;
1980
+ kind: convex_values0.VLiteral<"failed", "required">;
1981
+ }, "required", "error" | "kind">, convex_values0.VObject<{
1982
+ kind: "canceled";
1983
+ }, {
1984
+ kind: convex_values0.VLiteral<"canceled", "required">;
1985
+ }, "required", "kind">], "required", "error" | "kind">;
1986
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1987
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
1988
+ sha256: typeof effect_Schema0.String;
1989
+ size: typeof effect_Schema0.Number;
1990
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
1991
+ exact: true;
1992
+ }>;
1993
+ }>, convex_values0.VObject<{
1994
+ sha256: string;
1995
+ size: number;
1996
+ contentType?: string;
1997
+ }, {
1998
+ sha256: convex_values0.VString<string, "required">;
1999
+ size: convex_values0.VFloat64<number, "required">;
2000
+ contentType: convex_values0.VString<string | undefined, "optional">;
2001
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["searchIndexes"]>(indexName: IndexName, searchFilter: (q: convex_server0.SearchFilterBuilder<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
2002
+ name: typeof effect_Schema0.String;
2003
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
2004
+ scheduledTime: typeof effect_Schema0.Number;
2005
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
2006
+ exact: true;
2007
+ }>;
2008
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
2009
+ kind: effect_Schema0.Literal<["pending"]>;
2010
+ }>, effect_Schema0.Struct<{
2011
+ kind: effect_Schema0.Literal<["inProgress"]>;
2012
+ }>, effect_Schema0.Struct<{
2013
+ kind: effect_Schema0.Literal<["success"]>;
2014
+ }>, effect_Schema0.Struct<{
2015
+ kind: effect_Schema0.Literal<["failed"]>;
2016
+ error: typeof effect_Schema0.String;
2017
+ }>, effect_Schema0.Struct<{
2018
+ kind: effect_Schema0.Literal<["canceled"]>;
2019
+ }>]>;
2020
+ }>, convex_values0.VObject<{
2021
+ name: string;
2022
+ args: any[];
2023
+ scheduledTime: number;
2024
+ state: {
2025
+ kind: "pending";
2026
+ } | {
2027
+ kind: "inProgress";
2028
+ } | {
2029
+ kind: "success";
2030
+ } | {
2031
+ error: string;
2032
+ kind: "failed";
2033
+ } | {
2034
+ kind: "canceled";
2035
+ };
2036
+ completedTime?: number;
2037
+ }, {
2038
+ name: convex_values0.VString<string, "required">;
2039
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
2040
+ scheduledTime: convex_values0.VFloat64<number, "required">;
2041
+ state: convex_values0.VUnion<{
2042
+ kind: "pending";
2043
+ } | {
2044
+ kind: "inProgress";
2045
+ } | {
2046
+ kind: "success";
2047
+ } | {
2048
+ error: string;
2049
+ kind: "failed";
2050
+ } | {
2051
+ kind: "canceled";
2052
+ }, [convex_values0.VObject<{
2053
+ kind: "pending";
2054
+ }, {
2055
+ kind: convex_values0.VLiteral<"pending", "required">;
2056
+ }, "required", "kind">, convex_values0.VObject<{
2057
+ kind: "inProgress";
2058
+ }, {
2059
+ kind: convex_values0.VLiteral<"inProgress", "required">;
2060
+ }, "required", "kind">, convex_values0.VObject<{
2061
+ kind: "success";
2062
+ }, {
2063
+ kind: convex_values0.VLiteral<"success", "required">;
2064
+ }, "required", "kind">, convex_values0.VObject<{
2065
+ error: string;
2066
+ kind: "failed";
2067
+ }, {
2068
+ error: convex_values0.VString<string, "required">;
2069
+ kind: convex_values0.VLiteral<"failed", "required">;
2070
+ }, "required", "error" | "kind">, convex_values0.VObject<{
2071
+ kind: "canceled";
2072
+ }, {
2073
+ kind: convex_values0.VLiteral<"canceled", "required">;
2074
+ }, "required", "kind">], "required", "error" | "kind">;
2075
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
2076
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
2077
+ sha256: typeof effect_Schema0.String;
2078
+ size: typeof effect_Schema0.Number;
2079
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
2080
+ exact: true;
2081
+ }>;
2082
+ }>, convex_values0.VObject<{
2083
+ sha256: string;
2084
+ size: number;
2085
+ contentType?: string;
2086
+ }, {
2087
+ sha256: convex_values0.VString<string, "required">;
2088
+ size: convex_values0.VFloat64<number, "required">;
2089
+ contentType: convex_values0.VString<string | undefined, "optional">;
2090
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["convexDocument"], convex_server0.NamedSearchIndex<TableInfoWithName<DataModel<Tables<DatabaseSchema_> | SystemTables>, TableName>, IndexName>>) => convex_server0.SearchFilter) => OrderedQuery$1<TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
2091
+ name: typeof effect_Schema0.String;
2092
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
2093
+ scheduledTime: typeof effect_Schema0.Number;
2094
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
2095
+ exact: true;
2096
+ }>;
2097
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
2098
+ kind: effect_Schema0.Literal<["pending"]>;
2099
+ }>, effect_Schema0.Struct<{
2100
+ kind: effect_Schema0.Literal<["inProgress"]>;
2101
+ }>, effect_Schema0.Struct<{
2102
+ kind: effect_Schema0.Literal<["success"]>;
2103
+ }>, effect_Schema0.Struct<{
2104
+ kind: effect_Schema0.Literal<["failed"]>;
2105
+ error: typeof effect_Schema0.String;
2106
+ }>, effect_Schema0.Struct<{
2107
+ kind: effect_Schema0.Literal<["canceled"]>;
2108
+ }>]>;
2109
+ }>, convex_values0.VObject<{
2110
+ name: string;
2111
+ args: any[];
2112
+ scheduledTime: number;
2113
+ state: {
2114
+ kind: "pending";
2115
+ } | {
2116
+ kind: "inProgress";
2117
+ } | {
2118
+ kind: "success";
2119
+ } | {
2120
+ error: string;
2121
+ kind: "failed";
2122
+ } | {
2123
+ kind: "canceled";
2124
+ };
2125
+ completedTime?: number;
2126
+ }, {
2127
+ name: convex_values0.VString<string, "required">;
2128
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
2129
+ scheduledTime: convex_values0.VFloat64<number, "required">;
2130
+ state: convex_values0.VUnion<{
2131
+ kind: "pending";
2132
+ } | {
2133
+ kind: "inProgress";
2134
+ } | {
2135
+ kind: "success";
2136
+ } | {
2137
+ error: string;
2138
+ kind: "failed";
2139
+ } | {
2140
+ kind: "canceled";
2141
+ }, [convex_values0.VObject<{
2142
+ kind: "pending";
2143
+ }, {
2144
+ kind: convex_values0.VLiteral<"pending", "required">;
2145
+ }, "required", "kind">, convex_values0.VObject<{
2146
+ kind: "inProgress";
2147
+ }, {
2148
+ kind: convex_values0.VLiteral<"inProgress", "required">;
2149
+ }, "required", "kind">, convex_values0.VObject<{
2150
+ kind: "success";
2151
+ }, {
2152
+ kind: convex_values0.VLiteral<"success", "required">;
2153
+ }, "required", "kind">, convex_values0.VObject<{
2154
+ error: string;
2155
+ kind: "failed";
2156
+ }, {
2157
+ error: convex_values0.VString<string, "required">;
2158
+ kind: convex_values0.VLiteral<"failed", "required">;
2159
+ }, "required", "error" | "kind">, convex_values0.VObject<{
2160
+ kind: "canceled";
2161
+ }, {
2162
+ kind: convex_values0.VLiteral<"canceled", "required">;
2163
+ }, "required", "kind">], "required", "error" | "kind">;
2164
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
2165
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
2166
+ sha256: typeof effect_Schema0.String;
2167
+ size: typeof effect_Schema0.Number;
2168
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
2169
+ exact: true;
2170
+ }>;
2171
+ }>, convex_values0.VObject<{
2172
+ sha256: string;
2173
+ size: number;
2174
+ contentType?: string;
2175
+ }, {
2176
+ sha256: convex_values0.VString<string, "required">;
2177
+ size: convex_values0.VFloat64<number, "required">;
2178
+ contentType: convex_values0.VString<string | undefined, "optional">;
2179
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>, TableName>;
43
2180
  };
44
2181
  }, {
45
- table: <const TableName extends Name<IncludeSystemTables<Tables<DatabaseSchema_>>>>(tableName: TableName) => {
2182
+ table: <const TableName extends Name<Tables<DatabaseSchema_>> | "_scheduled_functions" | "_storage">(tableName: TableName) => {
46
2183
  readonly get: {
47
- (id: convex_values0.GenericId<TableName>): effect_Effect0.Effect<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["document"], GetByIdFailure | DocumentDecodeError, never>;
48
- <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"]>(indexName: IndexName, ...indexFieldValues: _confect_core_Types0.IndexFieldTypesForEq<ToConvex<DataModel<IncludeSystemTables<Tables<DatabaseSchema_>>>>, TableName, TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"][IndexName]>): effect_Effect0.Effect<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["document"], DocumentDecodeError | GetByIndexFailure, never>;
2184
+ (id: convex_values0.GenericId<TableName>): effect_Effect0.Effect<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
2185
+ name: typeof effect_Schema0.String;
2186
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
2187
+ scheduledTime: typeof effect_Schema0.Number;
2188
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
2189
+ exact: true;
2190
+ }>;
2191
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
2192
+ kind: effect_Schema0.Literal<["pending"]>;
2193
+ }>, effect_Schema0.Struct<{
2194
+ kind: effect_Schema0.Literal<["inProgress"]>;
2195
+ }>, effect_Schema0.Struct<{
2196
+ kind: effect_Schema0.Literal<["success"]>;
2197
+ }>, effect_Schema0.Struct<{
2198
+ kind: effect_Schema0.Literal<["failed"]>;
2199
+ error: typeof effect_Schema0.String;
2200
+ }>, effect_Schema0.Struct<{
2201
+ kind: effect_Schema0.Literal<["canceled"]>;
2202
+ }>]>;
2203
+ }>, convex_values0.VObject<{
2204
+ name: string;
2205
+ args: any[];
2206
+ scheduledTime: number;
2207
+ state: {
2208
+ kind: "pending";
2209
+ } | {
2210
+ kind: "inProgress";
2211
+ } | {
2212
+ kind: "success";
2213
+ } | {
2214
+ error: string;
2215
+ kind: "failed";
2216
+ } | {
2217
+ kind: "canceled";
2218
+ };
2219
+ completedTime?: number;
2220
+ }, {
2221
+ name: convex_values0.VString<string, "required">;
2222
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
2223
+ scheduledTime: convex_values0.VFloat64<number, "required">;
2224
+ state: convex_values0.VUnion<{
2225
+ kind: "pending";
2226
+ } | {
2227
+ kind: "inProgress";
2228
+ } | {
2229
+ kind: "success";
2230
+ } | {
2231
+ error: string;
2232
+ kind: "failed";
2233
+ } | {
2234
+ kind: "canceled";
2235
+ }, [convex_values0.VObject<{
2236
+ kind: "pending";
2237
+ }, {
2238
+ kind: convex_values0.VLiteral<"pending", "required">;
2239
+ }, "required", "kind">, convex_values0.VObject<{
2240
+ kind: "inProgress";
2241
+ }, {
2242
+ kind: convex_values0.VLiteral<"inProgress", "required">;
2243
+ }, "required", "kind">, convex_values0.VObject<{
2244
+ kind: "success";
2245
+ }, {
2246
+ kind: convex_values0.VLiteral<"success", "required">;
2247
+ }, "required", "kind">, convex_values0.VObject<{
2248
+ error: string;
2249
+ kind: "failed";
2250
+ }, {
2251
+ error: convex_values0.VString<string, "required">;
2252
+ kind: convex_values0.VLiteral<"failed", "required">;
2253
+ }, "required", "error" | "kind">, convex_values0.VObject<{
2254
+ kind: "canceled";
2255
+ }, {
2256
+ kind: convex_values0.VLiteral<"canceled", "required">;
2257
+ }, "required", "kind">], "required", "error" | "kind">;
2258
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
2259
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
2260
+ sha256: typeof effect_Schema0.String;
2261
+ size: typeof effect_Schema0.Number;
2262
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
2263
+ exact: true;
2264
+ }>;
2265
+ }>, convex_values0.VObject<{
2266
+ sha256: string;
2267
+ size: number;
2268
+ contentType?: string;
2269
+ }, {
2270
+ sha256: convex_values0.VString<string, "required">;
2271
+ size: convex_values0.VFloat64<number, "required">;
2272
+ contentType: convex_values0.VString<string | undefined, "optional">;
2273
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["document"], DocumentDecodeError | GetByIdFailure, never>;
2274
+ <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
2275
+ name: typeof effect_Schema0.String;
2276
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
2277
+ scheduledTime: typeof effect_Schema0.Number;
2278
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
2279
+ exact: true;
2280
+ }>;
2281
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
2282
+ kind: effect_Schema0.Literal<["pending"]>;
2283
+ }>, effect_Schema0.Struct<{
2284
+ kind: effect_Schema0.Literal<["inProgress"]>;
2285
+ }>, effect_Schema0.Struct<{
2286
+ kind: effect_Schema0.Literal<["success"]>;
2287
+ }>, effect_Schema0.Struct<{
2288
+ kind: effect_Schema0.Literal<["failed"]>;
2289
+ error: typeof effect_Schema0.String;
2290
+ }>, effect_Schema0.Struct<{
2291
+ kind: effect_Schema0.Literal<["canceled"]>;
2292
+ }>]>;
2293
+ }>, convex_values0.VObject<{
2294
+ name: string;
2295
+ args: any[];
2296
+ scheduledTime: number;
2297
+ state: {
2298
+ kind: "pending";
2299
+ } | {
2300
+ kind: "inProgress";
2301
+ } | {
2302
+ kind: "success";
2303
+ } | {
2304
+ error: string;
2305
+ kind: "failed";
2306
+ } | {
2307
+ kind: "canceled";
2308
+ };
2309
+ completedTime?: number;
2310
+ }, {
2311
+ name: convex_values0.VString<string, "required">;
2312
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
2313
+ scheduledTime: convex_values0.VFloat64<number, "required">;
2314
+ state: convex_values0.VUnion<{
2315
+ kind: "pending";
2316
+ } | {
2317
+ kind: "inProgress";
2318
+ } | {
2319
+ kind: "success";
2320
+ } | {
2321
+ error: string;
2322
+ kind: "failed";
2323
+ } | {
2324
+ kind: "canceled";
2325
+ }, [convex_values0.VObject<{
2326
+ kind: "pending";
2327
+ }, {
2328
+ kind: convex_values0.VLiteral<"pending", "required">;
2329
+ }, "required", "kind">, convex_values0.VObject<{
2330
+ kind: "inProgress";
2331
+ }, {
2332
+ kind: convex_values0.VLiteral<"inProgress", "required">;
2333
+ }, "required", "kind">, convex_values0.VObject<{
2334
+ kind: "success";
2335
+ }, {
2336
+ kind: convex_values0.VLiteral<"success", "required">;
2337
+ }, "required", "kind">, convex_values0.VObject<{
2338
+ error: string;
2339
+ kind: "failed";
2340
+ }, {
2341
+ error: convex_values0.VString<string, "required">;
2342
+ kind: convex_values0.VLiteral<"failed", "required">;
2343
+ }, "required", "error" | "kind">, convex_values0.VObject<{
2344
+ kind: "canceled";
2345
+ }, {
2346
+ kind: convex_values0.VLiteral<"canceled", "required">;
2347
+ }, "required", "kind">], "required", "error" | "kind">;
2348
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
2349
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
2350
+ sha256: typeof effect_Schema0.String;
2351
+ size: typeof effect_Schema0.Number;
2352
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
2353
+ exact: true;
2354
+ }>;
2355
+ }>, convex_values0.VObject<{
2356
+ sha256: string;
2357
+ size: number;
2358
+ contentType?: string;
2359
+ }, {
2360
+ sha256: convex_values0.VString<string, "required">;
2361
+ size: convex_values0.VFloat64<number, "required">;
2362
+ contentType: convex_values0.VString<string | undefined, "optional">;
2363
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, ...indexFieldValues: _confect_core_Types0.IndexFieldTypesForEq<ToConvex<DataModel<Tables<DatabaseSchema_> | SystemTables>>, TableName, (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
2364
+ name: typeof effect_Schema0.String;
2365
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
2366
+ scheduledTime: typeof effect_Schema0.Number;
2367
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
2368
+ exact: true;
2369
+ }>;
2370
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
2371
+ kind: effect_Schema0.Literal<["pending"]>;
2372
+ }>, effect_Schema0.Struct<{
2373
+ kind: effect_Schema0.Literal<["inProgress"]>;
2374
+ }>, effect_Schema0.Struct<{
2375
+ kind: effect_Schema0.Literal<["success"]>;
2376
+ }>, effect_Schema0.Struct<{
2377
+ kind: effect_Schema0.Literal<["failed"]>;
2378
+ error: typeof effect_Schema0.String;
2379
+ }>, effect_Schema0.Struct<{
2380
+ kind: effect_Schema0.Literal<["canceled"]>;
2381
+ }>]>;
2382
+ }>, convex_values0.VObject<{
2383
+ name: string;
2384
+ args: any[];
2385
+ scheduledTime: number;
2386
+ state: {
2387
+ kind: "pending";
2388
+ } | {
2389
+ kind: "inProgress";
2390
+ } | {
2391
+ kind: "success";
2392
+ } | {
2393
+ error: string;
2394
+ kind: "failed";
2395
+ } | {
2396
+ kind: "canceled";
2397
+ };
2398
+ completedTime?: number;
2399
+ }, {
2400
+ name: convex_values0.VString<string, "required">;
2401
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
2402
+ scheduledTime: convex_values0.VFloat64<number, "required">;
2403
+ state: convex_values0.VUnion<{
2404
+ kind: "pending";
2405
+ } | {
2406
+ kind: "inProgress";
2407
+ } | {
2408
+ kind: "success";
2409
+ } | {
2410
+ error: string;
2411
+ kind: "failed";
2412
+ } | {
2413
+ kind: "canceled";
2414
+ }, [convex_values0.VObject<{
2415
+ kind: "pending";
2416
+ }, {
2417
+ kind: convex_values0.VLiteral<"pending", "required">;
2418
+ }, "required", "kind">, convex_values0.VObject<{
2419
+ kind: "inProgress";
2420
+ }, {
2421
+ kind: convex_values0.VLiteral<"inProgress", "required">;
2422
+ }, "required", "kind">, convex_values0.VObject<{
2423
+ kind: "success";
2424
+ }, {
2425
+ kind: convex_values0.VLiteral<"success", "required">;
2426
+ }, "required", "kind">, convex_values0.VObject<{
2427
+ error: string;
2428
+ kind: "failed";
2429
+ }, {
2430
+ error: convex_values0.VString<string, "required">;
2431
+ kind: convex_values0.VLiteral<"failed", "required">;
2432
+ }, "required", "error" | "kind">, convex_values0.VObject<{
2433
+ kind: "canceled";
2434
+ }, {
2435
+ kind: convex_values0.VLiteral<"canceled", "required">;
2436
+ }, "required", "kind">], "required", "error" | "kind">;
2437
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
2438
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
2439
+ sha256: typeof effect_Schema0.String;
2440
+ size: typeof effect_Schema0.Number;
2441
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
2442
+ exact: true;
2443
+ }>;
2444
+ }>, convex_values0.VObject<{
2445
+ sha256: string;
2446
+ size: number;
2447
+ contentType?: string;
2448
+ }, {
2449
+ sha256: convex_values0.VString<string, "required">;
2450
+ size: convex_values0.VFloat64<number, "required">;
2451
+ contentType: convex_values0.VString<string | undefined, "optional">;
2452
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"][IndexName]>): effect_Effect0.Effect<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
2453
+ name: typeof effect_Schema0.String;
2454
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
2455
+ scheduledTime: typeof effect_Schema0.Number;
2456
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
2457
+ exact: true;
2458
+ }>;
2459
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
2460
+ kind: effect_Schema0.Literal<["pending"]>;
2461
+ }>, effect_Schema0.Struct<{
2462
+ kind: effect_Schema0.Literal<["inProgress"]>;
2463
+ }>, effect_Schema0.Struct<{
2464
+ kind: effect_Schema0.Literal<["success"]>;
2465
+ }>, effect_Schema0.Struct<{
2466
+ kind: effect_Schema0.Literal<["failed"]>;
2467
+ error: typeof effect_Schema0.String;
2468
+ }>, effect_Schema0.Struct<{
2469
+ kind: effect_Schema0.Literal<["canceled"]>;
2470
+ }>]>;
2471
+ }>, convex_values0.VObject<{
2472
+ name: string;
2473
+ args: any[];
2474
+ scheduledTime: number;
2475
+ state: {
2476
+ kind: "pending";
2477
+ } | {
2478
+ kind: "inProgress";
2479
+ } | {
2480
+ kind: "success";
2481
+ } | {
2482
+ error: string;
2483
+ kind: "failed";
2484
+ } | {
2485
+ kind: "canceled";
2486
+ };
2487
+ completedTime?: number;
2488
+ }, {
2489
+ name: convex_values0.VString<string, "required">;
2490
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
2491
+ scheduledTime: convex_values0.VFloat64<number, "required">;
2492
+ state: convex_values0.VUnion<{
2493
+ kind: "pending";
2494
+ } | {
2495
+ kind: "inProgress";
2496
+ } | {
2497
+ kind: "success";
2498
+ } | {
2499
+ error: string;
2500
+ kind: "failed";
2501
+ } | {
2502
+ kind: "canceled";
2503
+ }, [convex_values0.VObject<{
2504
+ kind: "pending";
2505
+ }, {
2506
+ kind: convex_values0.VLiteral<"pending", "required">;
2507
+ }, "required", "kind">, convex_values0.VObject<{
2508
+ kind: "inProgress";
2509
+ }, {
2510
+ kind: convex_values0.VLiteral<"inProgress", "required">;
2511
+ }, "required", "kind">, convex_values0.VObject<{
2512
+ kind: "success";
2513
+ }, {
2514
+ kind: convex_values0.VLiteral<"success", "required">;
2515
+ }, "required", "kind">, convex_values0.VObject<{
2516
+ error: string;
2517
+ kind: "failed";
2518
+ }, {
2519
+ error: convex_values0.VString<string, "required">;
2520
+ kind: convex_values0.VLiteral<"failed", "required">;
2521
+ }, "required", "error" | "kind">, convex_values0.VObject<{
2522
+ kind: "canceled";
2523
+ }, {
2524
+ kind: convex_values0.VLiteral<"canceled", "required">;
2525
+ }, "required", "kind">], "required", "error" | "kind">;
2526
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
2527
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
2528
+ sha256: typeof effect_Schema0.String;
2529
+ size: typeof effect_Schema0.Number;
2530
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
2531
+ exact: true;
2532
+ }>;
2533
+ }>, convex_values0.VObject<{
2534
+ sha256: string;
2535
+ size: number;
2536
+ contentType?: string;
2537
+ }, {
2538
+ sha256: convex_values0.VString<string, "required">;
2539
+ size: convex_values0.VFloat64<number, "required">;
2540
+ contentType: convex_values0.VString<string | undefined, "optional">;
2541
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["document"], DocumentDecodeError | GetByIndexFailure, never>;
49
2542
  };
50
2543
  readonly index: {
51
- <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"]>(indexName: IndexName, indexRange?: ((q: convex_server0.IndexRangeBuilder<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["convexDocument"], convex_server0.NamedIndex<TableInfoWithName<DataModel<IncludeSystemTables<Tables<DatabaseSchema_>>>, TableName>, IndexName>, 0>) => convex_server0.IndexRange) | undefined, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>, TableName>;
52
- <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"]>(indexName: IndexName, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>, TableName>;
2544
+ <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
2545
+ name: typeof effect_Schema0.String;
2546
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
2547
+ scheduledTime: typeof effect_Schema0.Number;
2548
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
2549
+ exact: true;
2550
+ }>;
2551
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
2552
+ kind: effect_Schema0.Literal<["pending"]>;
2553
+ }>, effect_Schema0.Struct<{
2554
+ kind: effect_Schema0.Literal<["inProgress"]>;
2555
+ }>, effect_Schema0.Struct<{
2556
+ kind: effect_Schema0.Literal<["success"]>;
2557
+ }>, effect_Schema0.Struct<{
2558
+ kind: effect_Schema0.Literal<["failed"]>;
2559
+ error: typeof effect_Schema0.String;
2560
+ }>, effect_Schema0.Struct<{
2561
+ kind: effect_Schema0.Literal<["canceled"]>;
2562
+ }>]>;
2563
+ }>, convex_values0.VObject<{
2564
+ name: string;
2565
+ args: any[];
2566
+ scheduledTime: number;
2567
+ state: {
2568
+ kind: "pending";
2569
+ } | {
2570
+ kind: "inProgress";
2571
+ } | {
2572
+ kind: "success";
2573
+ } | {
2574
+ error: string;
2575
+ kind: "failed";
2576
+ } | {
2577
+ kind: "canceled";
2578
+ };
2579
+ completedTime?: number;
2580
+ }, {
2581
+ name: convex_values0.VString<string, "required">;
2582
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
2583
+ scheduledTime: convex_values0.VFloat64<number, "required">;
2584
+ state: convex_values0.VUnion<{
2585
+ kind: "pending";
2586
+ } | {
2587
+ kind: "inProgress";
2588
+ } | {
2589
+ kind: "success";
2590
+ } | {
2591
+ error: string;
2592
+ kind: "failed";
2593
+ } | {
2594
+ kind: "canceled";
2595
+ }, [convex_values0.VObject<{
2596
+ kind: "pending";
2597
+ }, {
2598
+ kind: convex_values0.VLiteral<"pending", "required">;
2599
+ }, "required", "kind">, convex_values0.VObject<{
2600
+ kind: "inProgress";
2601
+ }, {
2602
+ kind: convex_values0.VLiteral<"inProgress", "required">;
2603
+ }, "required", "kind">, convex_values0.VObject<{
2604
+ kind: "success";
2605
+ }, {
2606
+ kind: convex_values0.VLiteral<"success", "required">;
2607
+ }, "required", "kind">, convex_values0.VObject<{
2608
+ error: string;
2609
+ kind: "failed";
2610
+ }, {
2611
+ error: convex_values0.VString<string, "required">;
2612
+ kind: convex_values0.VLiteral<"failed", "required">;
2613
+ }, "required", "error" | "kind">, convex_values0.VObject<{
2614
+ kind: "canceled";
2615
+ }, {
2616
+ kind: convex_values0.VLiteral<"canceled", "required">;
2617
+ }, "required", "kind">], "required", "error" | "kind">;
2618
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
2619
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
2620
+ sha256: typeof effect_Schema0.String;
2621
+ size: typeof effect_Schema0.Number;
2622
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
2623
+ exact: true;
2624
+ }>;
2625
+ }>, convex_values0.VObject<{
2626
+ sha256: string;
2627
+ size: number;
2628
+ contentType?: string;
2629
+ }, {
2630
+ sha256: convex_values0.VString<string, "required">;
2631
+ size: convex_values0.VFloat64<number, "required">;
2632
+ contentType: convex_values0.VString<string | undefined, "optional">;
2633
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, indexRange?: ((q: convex_server0.IndexRangeBuilder<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
2634
+ name: typeof effect_Schema0.String;
2635
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
2636
+ scheduledTime: typeof effect_Schema0.Number;
2637
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
2638
+ exact: true;
2639
+ }>;
2640
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
2641
+ kind: effect_Schema0.Literal<["pending"]>;
2642
+ }>, effect_Schema0.Struct<{
2643
+ kind: effect_Schema0.Literal<["inProgress"]>;
2644
+ }>, effect_Schema0.Struct<{
2645
+ kind: effect_Schema0.Literal<["success"]>;
2646
+ }>, effect_Schema0.Struct<{
2647
+ kind: effect_Schema0.Literal<["failed"]>;
2648
+ error: typeof effect_Schema0.String;
2649
+ }>, effect_Schema0.Struct<{
2650
+ kind: effect_Schema0.Literal<["canceled"]>;
2651
+ }>]>;
2652
+ }>, convex_values0.VObject<{
2653
+ name: string;
2654
+ args: any[];
2655
+ scheduledTime: number;
2656
+ state: {
2657
+ kind: "pending";
2658
+ } | {
2659
+ kind: "inProgress";
2660
+ } | {
2661
+ kind: "success";
2662
+ } | {
2663
+ error: string;
2664
+ kind: "failed";
2665
+ } | {
2666
+ kind: "canceled";
2667
+ };
2668
+ completedTime?: number;
2669
+ }, {
2670
+ name: convex_values0.VString<string, "required">;
2671
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
2672
+ scheduledTime: convex_values0.VFloat64<number, "required">;
2673
+ state: convex_values0.VUnion<{
2674
+ kind: "pending";
2675
+ } | {
2676
+ kind: "inProgress";
2677
+ } | {
2678
+ kind: "success";
2679
+ } | {
2680
+ error: string;
2681
+ kind: "failed";
2682
+ } | {
2683
+ kind: "canceled";
2684
+ }, [convex_values0.VObject<{
2685
+ kind: "pending";
2686
+ }, {
2687
+ kind: convex_values0.VLiteral<"pending", "required">;
2688
+ }, "required", "kind">, convex_values0.VObject<{
2689
+ kind: "inProgress";
2690
+ }, {
2691
+ kind: convex_values0.VLiteral<"inProgress", "required">;
2692
+ }, "required", "kind">, convex_values0.VObject<{
2693
+ kind: "success";
2694
+ }, {
2695
+ kind: convex_values0.VLiteral<"success", "required">;
2696
+ }, "required", "kind">, convex_values0.VObject<{
2697
+ error: string;
2698
+ kind: "failed";
2699
+ }, {
2700
+ error: convex_values0.VString<string, "required">;
2701
+ kind: convex_values0.VLiteral<"failed", "required">;
2702
+ }, "required", "error" | "kind">, convex_values0.VObject<{
2703
+ kind: "canceled";
2704
+ }, {
2705
+ kind: convex_values0.VLiteral<"canceled", "required">;
2706
+ }, "required", "kind">], "required", "error" | "kind">;
2707
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
2708
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
2709
+ sha256: typeof effect_Schema0.String;
2710
+ size: typeof effect_Schema0.Number;
2711
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
2712
+ exact: true;
2713
+ }>;
2714
+ }>, convex_values0.VObject<{
2715
+ sha256: string;
2716
+ size: number;
2717
+ contentType?: string;
2718
+ }, {
2719
+ sha256: convex_values0.VString<string, "required">;
2720
+ size: convex_values0.VFloat64<number, "required">;
2721
+ contentType: convex_values0.VString<string | undefined, "optional">;
2722
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["convexDocument"], convex_server0.NamedIndex<TableInfoWithName<DataModel<Tables<DatabaseSchema_> | SystemTables>, TableName>, IndexName>, 0>) => convex_server0.IndexRange) | undefined, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
2723
+ name: typeof effect_Schema0.String;
2724
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
2725
+ scheduledTime: typeof effect_Schema0.Number;
2726
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
2727
+ exact: true;
2728
+ }>;
2729
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
2730
+ kind: effect_Schema0.Literal<["pending"]>;
2731
+ }>, effect_Schema0.Struct<{
2732
+ kind: effect_Schema0.Literal<["inProgress"]>;
2733
+ }>, effect_Schema0.Struct<{
2734
+ kind: effect_Schema0.Literal<["success"]>;
2735
+ }>, effect_Schema0.Struct<{
2736
+ kind: effect_Schema0.Literal<["failed"]>;
2737
+ error: typeof effect_Schema0.String;
2738
+ }>, effect_Schema0.Struct<{
2739
+ kind: effect_Schema0.Literal<["canceled"]>;
2740
+ }>]>;
2741
+ }>, convex_values0.VObject<{
2742
+ name: string;
2743
+ args: any[];
2744
+ scheduledTime: number;
2745
+ state: {
2746
+ kind: "pending";
2747
+ } | {
2748
+ kind: "inProgress";
2749
+ } | {
2750
+ kind: "success";
2751
+ } | {
2752
+ error: string;
2753
+ kind: "failed";
2754
+ } | {
2755
+ kind: "canceled";
2756
+ };
2757
+ completedTime?: number;
2758
+ }, {
2759
+ name: convex_values0.VString<string, "required">;
2760
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
2761
+ scheduledTime: convex_values0.VFloat64<number, "required">;
2762
+ state: convex_values0.VUnion<{
2763
+ kind: "pending";
2764
+ } | {
2765
+ kind: "inProgress";
2766
+ } | {
2767
+ kind: "success";
2768
+ } | {
2769
+ error: string;
2770
+ kind: "failed";
2771
+ } | {
2772
+ kind: "canceled";
2773
+ }, [convex_values0.VObject<{
2774
+ kind: "pending";
2775
+ }, {
2776
+ kind: convex_values0.VLiteral<"pending", "required">;
2777
+ }, "required", "kind">, convex_values0.VObject<{
2778
+ kind: "inProgress";
2779
+ }, {
2780
+ kind: convex_values0.VLiteral<"inProgress", "required">;
2781
+ }, "required", "kind">, convex_values0.VObject<{
2782
+ kind: "success";
2783
+ }, {
2784
+ kind: convex_values0.VLiteral<"success", "required">;
2785
+ }, "required", "kind">, convex_values0.VObject<{
2786
+ error: string;
2787
+ kind: "failed";
2788
+ }, {
2789
+ error: convex_values0.VString<string, "required">;
2790
+ kind: convex_values0.VLiteral<"failed", "required">;
2791
+ }, "required", "error" | "kind">, convex_values0.VObject<{
2792
+ kind: "canceled";
2793
+ }, {
2794
+ kind: convex_values0.VLiteral<"canceled", "required">;
2795
+ }, "required", "kind">], "required", "error" | "kind">;
2796
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
2797
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
2798
+ sha256: typeof effect_Schema0.String;
2799
+ size: typeof effect_Schema0.Number;
2800
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
2801
+ exact: true;
2802
+ }>;
2803
+ }>, convex_values0.VObject<{
2804
+ sha256: string;
2805
+ size: number;
2806
+ contentType?: string;
2807
+ }, {
2808
+ sha256: convex_values0.VString<string, "required">;
2809
+ size: convex_values0.VFloat64<number, "required">;
2810
+ contentType: convex_values0.VString<string | undefined, "optional">;
2811
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>, TableName>;
2812
+ <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
2813
+ name: typeof effect_Schema0.String;
2814
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
2815
+ scheduledTime: typeof effect_Schema0.Number;
2816
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
2817
+ exact: true;
2818
+ }>;
2819
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
2820
+ kind: effect_Schema0.Literal<["pending"]>;
2821
+ }>, effect_Schema0.Struct<{
2822
+ kind: effect_Schema0.Literal<["inProgress"]>;
2823
+ }>, effect_Schema0.Struct<{
2824
+ kind: effect_Schema0.Literal<["success"]>;
2825
+ }>, effect_Schema0.Struct<{
2826
+ kind: effect_Schema0.Literal<["failed"]>;
2827
+ error: typeof effect_Schema0.String;
2828
+ }>, effect_Schema0.Struct<{
2829
+ kind: effect_Schema0.Literal<["canceled"]>;
2830
+ }>]>;
2831
+ }>, convex_values0.VObject<{
2832
+ name: string;
2833
+ args: any[];
2834
+ scheduledTime: number;
2835
+ state: {
2836
+ kind: "pending";
2837
+ } | {
2838
+ kind: "inProgress";
2839
+ } | {
2840
+ kind: "success";
2841
+ } | {
2842
+ error: string;
2843
+ kind: "failed";
2844
+ } | {
2845
+ kind: "canceled";
2846
+ };
2847
+ completedTime?: number;
2848
+ }, {
2849
+ name: convex_values0.VString<string, "required">;
2850
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
2851
+ scheduledTime: convex_values0.VFloat64<number, "required">;
2852
+ state: convex_values0.VUnion<{
2853
+ kind: "pending";
2854
+ } | {
2855
+ kind: "inProgress";
2856
+ } | {
2857
+ kind: "success";
2858
+ } | {
2859
+ error: string;
2860
+ kind: "failed";
2861
+ } | {
2862
+ kind: "canceled";
2863
+ }, [convex_values0.VObject<{
2864
+ kind: "pending";
2865
+ }, {
2866
+ kind: convex_values0.VLiteral<"pending", "required">;
2867
+ }, "required", "kind">, convex_values0.VObject<{
2868
+ kind: "inProgress";
2869
+ }, {
2870
+ kind: convex_values0.VLiteral<"inProgress", "required">;
2871
+ }, "required", "kind">, convex_values0.VObject<{
2872
+ kind: "success";
2873
+ }, {
2874
+ kind: convex_values0.VLiteral<"success", "required">;
2875
+ }, "required", "kind">, convex_values0.VObject<{
2876
+ error: string;
2877
+ kind: "failed";
2878
+ }, {
2879
+ error: convex_values0.VString<string, "required">;
2880
+ kind: convex_values0.VLiteral<"failed", "required">;
2881
+ }, "required", "error" | "kind">, convex_values0.VObject<{
2882
+ kind: "canceled";
2883
+ }, {
2884
+ kind: convex_values0.VLiteral<"canceled", "required">;
2885
+ }, "required", "kind">], "required", "error" | "kind">;
2886
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
2887
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
2888
+ sha256: typeof effect_Schema0.String;
2889
+ size: typeof effect_Schema0.Number;
2890
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
2891
+ exact: true;
2892
+ }>;
2893
+ }>, convex_values0.VObject<{
2894
+ sha256: string;
2895
+ size: number;
2896
+ contentType?: string;
2897
+ }, {
2898
+ sha256: convex_values0.VString<string, "required">;
2899
+ size: convex_values0.VFloat64<number, "required">;
2900
+ contentType: convex_values0.VString<string | undefined, "optional">;
2901
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
2902
+ name: typeof effect_Schema0.String;
2903
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
2904
+ scheduledTime: typeof effect_Schema0.Number;
2905
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
2906
+ exact: true;
2907
+ }>;
2908
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
2909
+ kind: effect_Schema0.Literal<["pending"]>;
2910
+ }>, effect_Schema0.Struct<{
2911
+ kind: effect_Schema0.Literal<["inProgress"]>;
2912
+ }>, effect_Schema0.Struct<{
2913
+ kind: effect_Schema0.Literal<["success"]>;
2914
+ }>, effect_Schema0.Struct<{
2915
+ kind: effect_Schema0.Literal<["failed"]>;
2916
+ error: typeof effect_Schema0.String;
2917
+ }>, effect_Schema0.Struct<{
2918
+ kind: effect_Schema0.Literal<["canceled"]>;
2919
+ }>]>;
2920
+ }>, convex_values0.VObject<{
2921
+ name: string;
2922
+ args: any[];
2923
+ scheduledTime: number;
2924
+ state: {
2925
+ kind: "pending";
2926
+ } | {
2927
+ kind: "inProgress";
2928
+ } | {
2929
+ kind: "success";
2930
+ } | {
2931
+ error: string;
2932
+ kind: "failed";
2933
+ } | {
2934
+ kind: "canceled";
2935
+ };
2936
+ completedTime?: number;
2937
+ }, {
2938
+ name: convex_values0.VString<string, "required">;
2939
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
2940
+ scheduledTime: convex_values0.VFloat64<number, "required">;
2941
+ state: convex_values0.VUnion<{
2942
+ kind: "pending";
2943
+ } | {
2944
+ kind: "inProgress";
2945
+ } | {
2946
+ kind: "success";
2947
+ } | {
2948
+ error: string;
2949
+ kind: "failed";
2950
+ } | {
2951
+ kind: "canceled";
2952
+ }, [convex_values0.VObject<{
2953
+ kind: "pending";
2954
+ }, {
2955
+ kind: convex_values0.VLiteral<"pending", "required">;
2956
+ }, "required", "kind">, convex_values0.VObject<{
2957
+ kind: "inProgress";
2958
+ }, {
2959
+ kind: convex_values0.VLiteral<"inProgress", "required">;
2960
+ }, "required", "kind">, convex_values0.VObject<{
2961
+ kind: "success";
2962
+ }, {
2963
+ kind: convex_values0.VLiteral<"success", "required">;
2964
+ }, "required", "kind">, convex_values0.VObject<{
2965
+ error: string;
2966
+ kind: "failed";
2967
+ }, {
2968
+ error: convex_values0.VString<string, "required">;
2969
+ kind: convex_values0.VLiteral<"failed", "required">;
2970
+ }, "required", "error" | "kind">, convex_values0.VObject<{
2971
+ kind: "canceled";
2972
+ }, {
2973
+ kind: convex_values0.VLiteral<"canceled", "required">;
2974
+ }, "required", "kind">], "required", "error" | "kind">;
2975
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
2976
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
2977
+ sha256: typeof effect_Schema0.String;
2978
+ size: typeof effect_Schema0.Number;
2979
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
2980
+ exact: true;
2981
+ }>;
2982
+ }>, convex_values0.VObject<{
2983
+ sha256: string;
2984
+ size: number;
2985
+ contentType?: string;
2986
+ }, {
2987
+ sha256: convex_values0.VString<string, "required">;
2988
+ size: convex_values0.VFloat64<number, "required">;
2989
+ contentType: convex_values0.VString<string | undefined, "optional">;
2990
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>, TableName>;
53
2991
  };
54
- readonly search: <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["searchIndexes"]>(indexName: IndexName, searchFilter: (q: convex_server0.SearchFilterBuilder<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["convexDocument"], convex_server0.NamedSearchIndex<TableInfoWithName<DataModel<IncludeSystemTables<Tables<DatabaseSchema_>>>, TableName>, IndexName>>) => convex_server0.SearchFilter) => OrderedQuery$1<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>, TableName>;
2992
+ readonly search: <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
2993
+ name: typeof effect_Schema0.String;
2994
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
2995
+ scheduledTime: typeof effect_Schema0.Number;
2996
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
2997
+ exact: true;
2998
+ }>;
2999
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
3000
+ kind: effect_Schema0.Literal<["pending"]>;
3001
+ }>, effect_Schema0.Struct<{
3002
+ kind: effect_Schema0.Literal<["inProgress"]>;
3003
+ }>, effect_Schema0.Struct<{
3004
+ kind: effect_Schema0.Literal<["success"]>;
3005
+ }>, effect_Schema0.Struct<{
3006
+ kind: effect_Schema0.Literal<["failed"]>;
3007
+ error: typeof effect_Schema0.String;
3008
+ }>, effect_Schema0.Struct<{
3009
+ kind: effect_Schema0.Literal<["canceled"]>;
3010
+ }>]>;
3011
+ }>, convex_values0.VObject<{
3012
+ name: string;
3013
+ args: any[];
3014
+ scheduledTime: number;
3015
+ state: {
3016
+ kind: "pending";
3017
+ } | {
3018
+ kind: "inProgress";
3019
+ } | {
3020
+ kind: "success";
3021
+ } | {
3022
+ error: string;
3023
+ kind: "failed";
3024
+ } | {
3025
+ kind: "canceled";
3026
+ };
3027
+ completedTime?: number;
3028
+ }, {
3029
+ name: convex_values0.VString<string, "required">;
3030
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
3031
+ scheduledTime: convex_values0.VFloat64<number, "required">;
3032
+ state: convex_values0.VUnion<{
3033
+ kind: "pending";
3034
+ } | {
3035
+ kind: "inProgress";
3036
+ } | {
3037
+ kind: "success";
3038
+ } | {
3039
+ error: string;
3040
+ kind: "failed";
3041
+ } | {
3042
+ kind: "canceled";
3043
+ }, [convex_values0.VObject<{
3044
+ kind: "pending";
3045
+ }, {
3046
+ kind: convex_values0.VLiteral<"pending", "required">;
3047
+ }, "required", "kind">, convex_values0.VObject<{
3048
+ kind: "inProgress";
3049
+ }, {
3050
+ kind: convex_values0.VLiteral<"inProgress", "required">;
3051
+ }, "required", "kind">, convex_values0.VObject<{
3052
+ kind: "success";
3053
+ }, {
3054
+ kind: convex_values0.VLiteral<"success", "required">;
3055
+ }, "required", "kind">, convex_values0.VObject<{
3056
+ error: string;
3057
+ kind: "failed";
3058
+ }, {
3059
+ error: convex_values0.VString<string, "required">;
3060
+ kind: convex_values0.VLiteral<"failed", "required">;
3061
+ }, "required", "error" | "kind">, convex_values0.VObject<{
3062
+ kind: "canceled";
3063
+ }, {
3064
+ kind: convex_values0.VLiteral<"canceled", "required">;
3065
+ }, "required", "kind">], "required", "error" | "kind">;
3066
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
3067
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
3068
+ sha256: typeof effect_Schema0.String;
3069
+ size: typeof effect_Schema0.Number;
3070
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
3071
+ exact: true;
3072
+ }>;
3073
+ }>, convex_values0.VObject<{
3074
+ sha256: string;
3075
+ size: number;
3076
+ contentType?: string;
3077
+ }, {
3078
+ sha256: convex_values0.VString<string, "required">;
3079
+ size: convex_values0.VFloat64<number, "required">;
3080
+ contentType: convex_values0.VString<string | undefined, "optional">;
3081
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["searchIndexes"]>(indexName: IndexName, searchFilter: (q: convex_server0.SearchFilterBuilder<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
3082
+ name: typeof effect_Schema0.String;
3083
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
3084
+ scheduledTime: typeof effect_Schema0.Number;
3085
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
3086
+ exact: true;
3087
+ }>;
3088
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
3089
+ kind: effect_Schema0.Literal<["pending"]>;
3090
+ }>, effect_Schema0.Struct<{
3091
+ kind: effect_Schema0.Literal<["inProgress"]>;
3092
+ }>, effect_Schema0.Struct<{
3093
+ kind: effect_Schema0.Literal<["success"]>;
3094
+ }>, effect_Schema0.Struct<{
3095
+ kind: effect_Schema0.Literal<["failed"]>;
3096
+ error: typeof effect_Schema0.String;
3097
+ }>, effect_Schema0.Struct<{
3098
+ kind: effect_Schema0.Literal<["canceled"]>;
3099
+ }>]>;
3100
+ }>, convex_values0.VObject<{
3101
+ name: string;
3102
+ args: any[];
3103
+ scheduledTime: number;
3104
+ state: {
3105
+ kind: "pending";
3106
+ } | {
3107
+ kind: "inProgress";
3108
+ } | {
3109
+ kind: "success";
3110
+ } | {
3111
+ error: string;
3112
+ kind: "failed";
3113
+ } | {
3114
+ kind: "canceled";
3115
+ };
3116
+ completedTime?: number;
3117
+ }, {
3118
+ name: convex_values0.VString<string, "required">;
3119
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
3120
+ scheduledTime: convex_values0.VFloat64<number, "required">;
3121
+ state: convex_values0.VUnion<{
3122
+ kind: "pending";
3123
+ } | {
3124
+ kind: "inProgress";
3125
+ } | {
3126
+ kind: "success";
3127
+ } | {
3128
+ error: string;
3129
+ kind: "failed";
3130
+ } | {
3131
+ kind: "canceled";
3132
+ }, [convex_values0.VObject<{
3133
+ kind: "pending";
3134
+ }, {
3135
+ kind: convex_values0.VLiteral<"pending", "required">;
3136
+ }, "required", "kind">, convex_values0.VObject<{
3137
+ kind: "inProgress";
3138
+ }, {
3139
+ kind: convex_values0.VLiteral<"inProgress", "required">;
3140
+ }, "required", "kind">, convex_values0.VObject<{
3141
+ kind: "success";
3142
+ }, {
3143
+ kind: convex_values0.VLiteral<"success", "required">;
3144
+ }, "required", "kind">, convex_values0.VObject<{
3145
+ error: string;
3146
+ kind: "failed";
3147
+ }, {
3148
+ error: convex_values0.VString<string, "required">;
3149
+ kind: convex_values0.VLiteral<"failed", "required">;
3150
+ }, "required", "error" | "kind">, convex_values0.VObject<{
3151
+ kind: "canceled";
3152
+ }, {
3153
+ kind: convex_values0.VLiteral<"canceled", "required">;
3154
+ }, "required", "kind">], "required", "error" | "kind">;
3155
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
3156
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
3157
+ sha256: typeof effect_Schema0.String;
3158
+ size: typeof effect_Schema0.Number;
3159
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
3160
+ exact: true;
3161
+ }>;
3162
+ }>, convex_values0.VObject<{
3163
+ sha256: string;
3164
+ size: number;
3165
+ contentType?: string;
3166
+ }, {
3167
+ sha256: convex_values0.VString<string, "required">;
3168
+ size: convex_values0.VFloat64<number, "required">;
3169
+ contentType: convex_values0.VString<string | undefined, "optional">;
3170
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["convexDocument"], convex_server0.NamedSearchIndex<TableInfoWithName<DataModel<Tables<DatabaseSchema_> | SystemTables>, TableName>, IndexName>>) => convex_server0.SearchFilter) => OrderedQuery$1<TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
3171
+ name: typeof effect_Schema0.String;
3172
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
3173
+ scheduledTime: typeof effect_Schema0.Number;
3174
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
3175
+ exact: true;
3176
+ }>;
3177
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
3178
+ kind: effect_Schema0.Literal<["pending"]>;
3179
+ }>, effect_Schema0.Struct<{
3180
+ kind: effect_Schema0.Literal<["inProgress"]>;
3181
+ }>, effect_Schema0.Struct<{
3182
+ kind: effect_Schema0.Literal<["success"]>;
3183
+ }>, effect_Schema0.Struct<{
3184
+ kind: effect_Schema0.Literal<["failed"]>;
3185
+ error: typeof effect_Schema0.String;
3186
+ }>, effect_Schema0.Struct<{
3187
+ kind: effect_Schema0.Literal<["canceled"]>;
3188
+ }>]>;
3189
+ }>, convex_values0.VObject<{
3190
+ name: string;
3191
+ args: any[];
3192
+ scheduledTime: number;
3193
+ state: {
3194
+ kind: "pending";
3195
+ } | {
3196
+ kind: "inProgress";
3197
+ } | {
3198
+ kind: "success";
3199
+ } | {
3200
+ error: string;
3201
+ kind: "failed";
3202
+ } | {
3203
+ kind: "canceled";
3204
+ };
3205
+ completedTime?: number;
3206
+ }, {
3207
+ name: convex_values0.VString<string, "required">;
3208
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
3209
+ scheduledTime: convex_values0.VFloat64<number, "required">;
3210
+ state: convex_values0.VUnion<{
3211
+ kind: "pending";
3212
+ } | {
3213
+ kind: "inProgress";
3214
+ } | {
3215
+ kind: "success";
3216
+ } | {
3217
+ error: string;
3218
+ kind: "failed";
3219
+ } | {
3220
+ kind: "canceled";
3221
+ }, [convex_values0.VObject<{
3222
+ kind: "pending";
3223
+ }, {
3224
+ kind: convex_values0.VLiteral<"pending", "required">;
3225
+ }, "required", "kind">, convex_values0.VObject<{
3226
+ kind: "inProgress";
3227
+ }, {
3228
+ kind: convex_values0.VLiteral<"inProgress", "required">;
3229
+ }, "required", "kind">, convex_values0.VObject<{
3230
+ kind: "success";
3231
+ }, {
3232
+ kind: convex_values0.VLiteral<"success", "required">;
3233
+ }, "required", "kind">, convex_values0.VObject<{
3234
+ error: string;
3235
+ kind: "failed";
3236
+ }, {
3237
+ error: convex_values0.VString<string, "required">;
3238
+ kind: convex_values0.VLiteral<"failed", "required">;
3239
+ }, "required", "error" | "kind">, convex_values0.VObject<{
3240
+ kind: "canceled";
3241
+ }, {
3242
+ kind: convex_values0.VLiteral<"canceled", "required">;
3243
+ }, "required", "kind">], "required", "error" | "kind">;
3244
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
3245
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
3246
+ sha256: typeof effect_Schema0.String;
3247
+ size: typeof effect_Schema0.Number;
3248
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
3249
+ exact: true;
3250
+ }>;
3251
+ }>, convex_values0.VObject<{
3252
+ sha256: string;
3253
+ size: number;
3254
+ contentType?: string;
3255
+ }, {
3256
+ sha256: convex_values0.VString<string, "required">;
3257
+ size: convex_values0.VFloat64<number, "required">;
3258
+ contentType: convex_values0.VString<string | undefined, "optional">;
3259
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>, TableName>;
55
3260
  };
56
3261
  }>;
57
3262
  type DatabaseReader<DatabaseSchema_ extends AnyWithProps> = ReturnType<typeof DatabaseReader<DatabaseSchema_>>["Identifier"];
58
3263
  declare const layer: <DatabaseSchema_ extends AnyWithProps>(databaseSchema: DatabaseSchema_, convexDatabaseReader: GenericDatabaseReader<ToConvex<FromSchema<DatabaseSchema_>>>) => Layer.Layer<{
59
- table: <const TableName extends Name<IncludeSystemTables<Tables<DatabaseSchema_>>>>(tableName: TableName) => {
3264
+ table: <const TableName extends Name<Tables<DatabaseSchema_>> | "_scheduled_functions" | "_storage">(tableName: TableName) => {
60
3265
  readonly get: {
61
- (id: convex_values0.GenericId<TableName>): effect_Effect0.Effect<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["document"], GetByIdFailure | DocumentDecodeError, never>;
62
- <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"]>(indexName: IndexName, ...indexFieldValues: _confect_core_Types0.IndexFieldTypesForEq<ToConvex<DataModel<IncludeSystemTables<Tables<DatabaseSchema_>>>>, TableName, TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"][IndexName]>): effect_Effect0.Effect<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["document"], DocumentDecodeError | GetByIndexFailure, never>;
3266
+ (id: convex_values0.GenericId<TableName>): effect_Effect0.Effect<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
3267
+ name: typeof effect_Schema0.String;
3268
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
3269
+ scheduledTime: typeof effect_Schema0.Number;
3270
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
3271
+ exact: true;
3272
+ }>;
3273
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
3274
+ kind: effect_Schema0.Literal<["pending"]>;
3275
+ }>, effect_Schema0.Struct<{
3276
+ kind: effect_Schema0.Literal<["inProgress"]>;
3277
+ }>, effect_Schema0.Struct<{
3278
+ kind: effect_Schema0.Literal<["success"]>;
3279
+ }>, effect_Schema0.Struct<{
3280
+ kind: effect_Schema0.Literal<["failed"]>;
3281
+ error: typeof effect_Schema0.String;
3282
+ }>, effect_Schema0.Struct<{
3283
+ kind: effect_Schema0.Literal<["canceled"]>;
3284
+ }>]>;
3285
+ }>, convex_values0.VObject<{
3286
+ name: string;
3287
+ args: any[];
3288
+ scheduledTime: number;
3289
+ state: {
3290
+ kind: "pending";
3291
+ } | {
3292
+ kind: "inProgress";
3293
+ } | {
3294
+ kind: "success";
3295
+ } | {
3296
+ error: string;
3297
+ kind: "failed";
3298
+ } | {
3299
+ kind: "canceled";
3300
+ };
3301
+ completedTime?: number;
3302
+ }, {
3303
+ name: convex_values0.VString<string, "required">;
3304
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
3305
+ scheduledTime: convex_values0.VFloat64<number, "required">;
3306
+ state: convex_values0.VUnion<{
3307
+ kind: "pending";
3308
+ } | {
3309
+ kind: "inProgress";
3310
+ } | {
3311
+ kind: "success";
3312
+ } | {
3313
+ error: string;
3314
+ kind: "failed";
3315
+ } | {
3316
+ kind: "canceled";
3317
+ }, [convex_values0.VObject<{
3318
+ kind: "pending";
3319
+ }, {
3320
+ kind: convex_values0.VLiteral<"pending", "required">;
3321
+ }, "required", "kind">, convex_values0.VObject<{
3322
+ kind: "inProgress";
3323
+ }, {
3324
+ kind: convex_values0.VLiteral<"inProgress", "required">;
3325
+ }, "required", "kind">, convex_values0.VObject<{
3326
+ kind: "success";
3327
+ }, {
3328
+ kind: convex_values0.VLiteral<"success", "required">;
3329
+ }, "required", "kind">, convex_values0.VObject<{
3330
+ error: string;
3331
+ kind: "failed";
3332
+ }, {
3333
+ error: convex_values0.VString<string, "required">;
3334
+ kind: convex_values0.VLiteral<"failed", "required">;
3335
+ }, "required", "error" | "kind">, convex_values0.VObject<{
3336
+ kind: "canceled";
3337
+ }, {
3338
+ kind: convex_values0.VLiteral<"canceled", "required">;
3339
+ }, "required", "kind">], "required", "error" | "kind">;
3340
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
3341
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
3342
+ sha256: typeof effect_Schema0.String;
3343
+ size: typeof effect_Schema0.Number;
3344
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
3345
+ exact: true;
3346
+ }>;
3347
+ }>, convex_values0.VObject<{
3348
+ sha256: string;
3349
+ size: number;
3350
+ contentType?: string;
3351
+ }, {
3352
+ sha256: convex_values0.VString<string, "required">;
3353
+ size: convex_values0.VFloat64<number, "required">;
3354
+ contentType: convex_values0.VString<string | undefined, "optional">;
3355
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["document"], DocumentDecodeError | GetByIdFailure, never>;
3356
+ <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
3357
+ name: typeof effect_Schema0.String;
3358
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
3359
+ scheduledTime: typeof effect_Schema0.Number;
3360
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
3361
+ exact: true;
3362
+ }>;
3363
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
3364
+ kind: effect_Schema0.Literal<["pending"]>;
3365
+ }>, effect_Schema0.Struct<{
3366
+ kind: effect_Schema0.Literal<["inProgress"]>;
3367
+ }>, effect_Schema0.Struct<{
3368
+ kind: effect_Schema0.Literal<["success"]>;
3369
+ }>, effect_Schema0.Struct<{
3370
+ kind: effect_Schema0.Literal<["failed"]>;
3371
+ error: typeof effect_Schema0.String;
3372
+ }>, effect_Schema0.Struct<{
3373
+ kind: effect_Schema0.Literal<["canceled"]>;
3374
+ }>]>;
3375
+ }>, convex_values0.VObject<{
3376
+ name: string;
3377
+ args: any[];
3378
+ scheduledTime: number;
3379
+ state: {
3380
+ kind: "pending";
3381
+ } | {
3382
+ kind: "inProgress";
3383
+ } | {
3384
+ kind: "success";
3385
+ } | {
3386
+ error: string;
3387
+ kind: "failed";
3388
+ } | {
3389
+ kind: "canceled";
3390
+ };
3391
+ completedTime?: number;
3392
+ }, {
3393
+ name: convex_values0.VString<string, "required">;
3394
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
3395
+ scheduledTime: convex_values0.VFloat64<number, "required">;
3396
+ state: convex_values0.VUnion<{
3397
+ kind: "pending";
3398
+ } | {
3399
+ kind: "inProgress";
3400
+ } | {
3401
+ kind: "success";
3402
+ } | {
3403
+ error: string;
3404
+ kind: "failed";
3405
+ } | {
3406
+ kind: "canceled";
3407
+ }, [convex_values0.VObject<{
3408
+ kind: "pending";
3409
+ }, {
3410
+ kind: convex_values0.VLiteral<"pending", "required">;
3411
+ }, "required", "kind">, convex_values0.VObject<{
3412
+ kind: "inProgress";
3413
+ }, {
3414
+ kind: convex_values0.VLiteral<"inProgress", "required">;
3415
+ }, "required", "kind">, convex_values0.VObject<{
3416
+ kind: "success";
3417
+ }, {
3418
+ kind: convex_values0.VLiteral<"success", "required">;
3419
+ }, "required", "kind">, convex_values0.VObject<{
3420
+ error: string;
3421
+ kind: "failed";
3422
+ }, {
3423
+ error: convex_values0.VString<string, "required">;
3424
+ kind: convex_values0.VLiteral<"failed", "required">;
3425
+ }, "required", "error" | "kind">, convex_values0.VObject<{
3426
+ kind: "canceled";
3427
+ }, {
3428
+ kind: convex_values0.VLiteral<"canceled", "required">;
3429
+ }, "required", "kind">], "required", "error" | "kind">;
3430
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
3431
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
3432
+ sha256: typeof effect_Schema0.String;
3433
+ size: typeof effect_Schema0.Number;
3434
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
3435
+ exact: true;
3436
+ }>;
3437
+ }>, convex_values0.VObject<{
3438
+ sha256: string;
3439
+ size: number;
3440
+ contentType?: string;
3441
+ }, {
3442
+ sha256: convex_values0.VString<string, "required">;
3443
+ size: convex_values0.VFloat64<number, "required">;
3444
+ contentType: convex_values0.VString<string | undefined, "optional">;
3445
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, ...indexFieldValues: _confect_core_Types0.IndexFieldTypesForEq<ToConvex<DataModel<Tables<DatabaseSchema_> | SystemTables>>, TableName, (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
3446
+ name: typeof effect_Schema0.String;
3447
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
3448
+ scheduledTime: typeof effect_Schema0.Number;
3449
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
3450
+ exact: true;
3451
+ }>;
3452
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
3453
+ kind: effect_Schema0.Literal<["pending"]>;
3454
+ }>, effect_Schema0.Struct<{
3455
+ kind: effect_Schema0.Literal<["inProgress"]>;
3456
+ }>, effect_Schema0.Struct<{
3457
+ kind: effect_Schema0.Literal<["success"]>;
3458
+ }>, effect_Schema0.Struct<{
3459
+ kind: effect_Schema0.Literal<["failed"]>;
3460
+ error: typeof effect_Schema0.String;
3461
+ }>, effect_Schema0.Struct<{
3462
+ kind: effect_Schema0.Literal<["canceled"]>;
3463
+ }>]>;
3464
+ }>, convex_values0.VObject<{
3465
+ name: string;
3466
+ args: any[];
3467
+ scheduledTime: number;
3468
+ state: {
3469
+ kind: "pending";
3470
+ } | {
3471
+ kind: "inProgress";
3472
+ } | {
3473
+ kind: "success";
3474
+ } | {
3475
+ error: string;
3476
+ kind: "failed";
3477
+ } | {
3478
+ kind: "canceled";
3479
+ };
3480
+ completedTime?: number;
3481
+ }, {
3482
+ name: convex_values0.VString<string, "required">;
3483
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
3484
+ scheduledTime: convex_values0.VFloat64<number, "required">;
3485
+ state: convex_values0.VUnion<{
3486
+ kind: "pending";
3487
+ } | {
3488
+ kind: "inProgress";
3489
+ } | {
3490
+ kind: "success";
3491
+ } | {
3492
+ error: string;
3493
+ kind: "failed";
3494
+ } | {
3495
+ kind: "canceled";
3496
+ }, [convex_values0.VObject<{
3497
+ kind: "pending";
3498
+ }, {
3499
+ kind: convex_values0.VLiteral<"pending", "required">;
3500
+ }, "required", "kind">, convex_values0.VObject<{
3501
+ kind: "inProgress";
3502
+ }, {
3503
+ kind: convex_values0.VLiteral<"inProgress", "required">;
3504
+ }, "required", "kind">, convex_values0.VObject<{
3505
+ kind: "success";
3506
+ }, {
3507
+ kind: convex_values0.VLiteral<"success", "required">;
3508
+ }, "required", "kind">, convex_values0.VObject<{
3509
+ error: string;
3510
+ kind: "failed";
3511
+ }, {
3512
+ error: convex_values0.VString<string, "required">;
3513
+ kind: convex_values0.VLiteral<"failed", "required">;
3514
+ }, "required", "error" | "kind">, convex_values0.VObject<{
3515
+ kind: "canceled";
3516
+ }, {
3517
+ kind: convex_values0.VLiteral<"canceled", "required">;
3518
+ }, "required", "kind">], "required", "error" | "kind">;
3519
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
3520
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
3521
+ sha256: typeof effect_Schema0.String;
3522
+ size: typeof effect_Schema0.Number;
3523
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
3524
+ exact: true;
3525
+ }>;
3526
+ }>, convex_values0.VObject<{
3527
+ sha256: string;
3528
+ size: number;
3529
+ contentType?: string;
3530
+ }, {
3531
+ sha256: convex_values0.VString<string, "required">;
3532
+ size: convex_values0.VFloat64<number, "required">;
3533
+ contentType: convex_values0.VString<string | undefined, "optional">;
3534
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"][IndexName]>): effect_Effect0.Effect<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
3535
+ name: typeof effect_Schema0.String;
3536
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
3537
+ scheduledTime: typeof effect_Schema0.Number;
3538
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
3539
+ exact: true;
3540
+ }>;
3541
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
3542
+ kind: effect_Schema0.Literal<["pending"]>;
3543
+ }>, effect_Schema0.Struct<{
3544
+ kind: effect_Schema0.Literal<["inProgress"]>;
3545
+ }>, effect_Schema0.Struct<{
3546
+ kind: effect_Schema0.Literal<["success"]>;
3547
+ }>, effect_Schema0.Struct<{
3548
+ kind: effect_Schema0.Literal<["failed"]>;
3549
+ error: typeof effect_Schema0.String;
3550
+ }>, effect_Schema0.Struct<{
3551
+ kind: effect_Schema0.Literal<["canceled"]>;
3552
+ }>]>;
3553
+ }>, convex_values0.VObject<{
3554
+ name: string;
3555
+ args: any[];
3556
+ scheduledTime: number;
3557
+ state: {
3558
+ kind: "pending";
3559
+ } | {
3560
+ kind: "inProgress";
3561
+ } | {
3562
+ kind: "success";
3563
+ } | {
3564
+ error: string;
3565
+ kind: "failed";
3566
+ } | {
3567
+ kind: "canceled";
3568
+ };
3569
+ completedTime?: number;
3570
+ }, {
3571
+ name: convex_values0.VString<string, "required">;
3572
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
3573
+ scheduledTime: convex_values0.VFloat64<number, "required">;
3574
+ state: convex_values0.VUnion<{
3575
+ kind: "pending";
3576
+ } | {
3577
+ kind: "inProgress";
3578
+ } | {
3579
+ kind: "success";
3580
+ } | {
3581
+ error: string;
3582
+ kind: "failed";
3583
+ } | {
3584
+ kind: "canceled";
3585
+ }, [convex_values0.VObject<{
3586
+ kind: "pending";
3587
+ }, {
3588
+ kind: convex_values0.VLiteral<"pending", "required">;
3589
+ }, "required", "kind">, convex_values0.VObject<{
3590
+ kind: "inProgress";
3591
+ }, {
3592
+ kind: convex_values0.VLiteral<"inProgress", "required">;
3593
+ }, "required", "kind">, convex_values0.VObject<{
3594
+ kind: "success";
3595
+ }, {
3596
+ kind: convex_values0.VLiteral<"success", "required">;
3597
+ }, "required", "kind">, convex_values0.VObject<{
3598
+ error: string;
3599
+ kind: "failed";
3600
+ }, {
3601
+ error: convex_values0.VString<string, "required">;
3602
+ kind: convex_values0.VLiteral<"failed", "required">;
3603
+ }, "required", "error" | "kind">, convex_values0.VObject<{
3604
+ kind: "canceled";
3605
+ }, {
3606
+ kind: convex_values0.VLiteral<"canceled", "required">;
3607
+ }, "required", "kind">], "required", "error" | "kind">;
3608
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
3609
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
3610
+ sha256: typeof effect_Schema0.String;
3611
+ size: typeof effect_Schema0.Number;
3612
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
3613
+ exact: true;
3614
+ }>;
3615
+ }>, convex_values0.VObject<{
3616
+ sha256: string;
3617
+ size: number;
3618
+ contentType?: string;
3619
+ }, {
3620
+ sha256: convex_values0.VString<string, "required">;
3621
+ size: convex_values0.VFloat64<number, "required">;
3622
+ contentType: convex_values0.VString<string | undefined, "optional">;
3623
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["document"], DocumentDecodeError | GetByIndexFailure, never>;
63
3624
  };
64
3625
  readonly index: {
65
- <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"]>(indexName: IndexName, indexRange?: ((q: convex_server0.IndexRangeBuilder<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["convexDocument"], convex_server0.NamedIndex<TableInfoWithName<DataModel<IncludeSystemTables<Tables<DatabaseSchema_>>>, TableName>, IndexName>, 0>) => convex_server0.IndexRange) | undefined, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>, TableName>;
66
- <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["indexes"]>(indexName: IndexName, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>, TableName>;
3626
+ <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
3627
+ name: typeof effect_Schema0.String;
3628
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
3629
+ scheduledTime: typeof effect_Schema0.Number;
3630
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
3631
+ exact: true;
3632
+ }>;
3633
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
3634
+ kind: effect_Schema0.Literal<["pending"]>;
3635
+ }>, effect_Schema0.Struct<{
3636
+ kind: effect_Schema0.Literal<["inProgress"]>;
3637
+ }>, effect_Schema0.Struct<{
3638
+ kind: effect_Schema0.Literal<["success"]>;
3639
+ }>, effect_Schema0.Struct<{
3640
+ kind: effect_Schema0.Literal<["failed"]>;
3641
+ error: typeof effect_Schema0.String;
3642
+ }>, effect_Schema0.Struct<{
3643
+ kind: effect_Schema0.Literal<["canceled"]>;
3644
+ }>]>;
3645
+ }>, convex_values0.VObject<{
3646
+ name: string;
3647
+ args: any[];
3648
+ scheduledTime: number;
3649
+ state: {
3650
+ kind: "pending";
3651
+ } | {
3652
+ kind: "inProgress";
3653
+ } | {
3654
+ kind: "success";
3655
+ } | {
3656
+ error: string;
3657
+ kind: "failed";
3658
+ } | {
3659
+ kind: "canceled";
3660
+ };
3661
+ completedTime?: number;
3662
+ }, {
3663
+ name: convex_values0.VString<string, "required">;
3664
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
3665
+ scheduledTime: convex_values0.VFloat64<number, "required">;
3666
+ state: convex_values0.VUnion<{
3667
+ kind: "pending";
3668
+ } | {
3669
+ kind: "inProgress";
3670
+ } | {
3671
+ kind: "success";
3672
+ } | {
3673
+ error: string;
3674
+ kind: "failed";
3675
+ } | {
3676
+ kind: "canceled";
3677
+ }, [convex_values0.VObject<{
3678
+ kind: "pending";
3679
+ }, {
3680
+ kind: convex_values0.VLiteral<"pending", "required">;
3681
+ }, "required", "kind">, convex_values0.VObject<{
3682
+ kind: "inProgress";
3683
+ }, {
3684
+ kind: convex_values0.VLiteral<"inProgress", "required">;
3685
+ }, "required", "kind">, convex_values0.VObject<{
3686
+ kind: "success";
3687
+ }, {
3688
+ kind: convex_values0.VLiteral<"success", "required">;
3689
+ }, "required", "kind">, convex_values0.VObject<{
3690
+ error: string;
3691
+ kind: "failed";
3692
+ }, {
3693
+ error: convex_values0.VString<string, "required">;
3694
+ kind: convex_values0.VLiteral<"failed", "required">;
3695
+ }, "required", "error" | "kind">, convex_values0.VObject<{
3696
+ kind: "canceled";
3697
+ }, {
3698
+ kind: convex_values0.VLiteral<"canceled", "required">;
3699
+ }, "required", "kind">], "required", "error" | "kind">;
3700
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
3701
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
3702
+ sha256: typeof effect_Schema0.String;
3703
+ size: typeof effect_Schema0.Number;
3704
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
3705
+ exact: true;
3706
+ }>;
3707
+ }>, convex_values0.VObject<{
3708
+ sha256: string;
3709
+ size: number;
3710
+ contentType?: string;
3711
+ }, {
3712
+ sha256: convex_values0.VString<string, "required">;
3713
+ size: convex_values0.VFloat64<number, "required">;
3714
+ contentType: convex_values0.VString<string | undefined, "optional">;
3715
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, indexRange?: ((q: convex_server0.IndexRangeBuilder<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
3716
+ name: typeof effect_Schema0.String;
3717
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
3718
+ scheduledTime: typeof effect_Schema0.Number;
3719
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
3720
+ exact: true;
3721
+ }>;
3722
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
3723
+ kind: effect_Schema0.Literal<["pending"]>;
3724
+ }>, effect_Schema0.Struct<{
3725
+ kind: effect_Schema0.Literal<["inProgress"]>;
3726
+ }>, effect_Schema0.Struct<{
3727
+ kind: effect_Schema0.Literal<["success"]>;
3728
+ }>, effect_Schema0.Struct<{
3729
+ kind: effect_Schema0.Literal<["failed"]>;
3730
+ error: typeof effect_Schema0.String;
3731
+ }>, effect_Schema0.Struct<{
3732
+ kind: effect_Schema0.Literal<["canceled"]>;
3733
+ }>]>;
3734
+ }>, convex_values0.VObject<{
3735
+ name: string;
3736
+ args: any[];
3737
+ scheduledTime: number;
3738
+ state: {
3739
+ kind: "pending";
3740
+ } | {
3741
+ kind: "inProgress";
3742
+ } | {
3743
+ kind: "success";
3744
+ } | {
3745
+ error: string;
3746
+ kind: "failed";
3747
+ } | {
3748
+ kind: "canceled";
3749
+ };
3750
+ completedTime?: number;
3751
+ }, {
3752
+ name: convex_values0.VString<string, "required">;
3753
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
3754
+ scheduledTime: convex_values0.VFloat64<number, "required">;
3755
+ state: convex_values0.VUnion<{
3756
+ kind: "pending";
3757
+ } | {
3758
+ kind: "inProgress";
3759
+ } | {
3760
+ kind: "success";
3761
+ } | {
3762
+ error: string;
3763
+ kind: "failed";
3764
+ } | {
3765
+ kind: "canceled";
3766
+ }, [convex_values0.VObject<{
3767
+ kind: "pending";
3768
+ }, {
3769
+ kind: convex_values0.VLiteral<"pending", "required">;
3770
+ }, "required", "kind">, convex_values0.VObject<{
3771
+ kind: "inProgress";
3772
+ }, {
3773
+ kind: convex_values0.VLiteral<"inProgress", "required">;
3774
+ }, "required", "kind">, convex_values0.VObject<{
3775
+ kind: "success";
3776
+ }, {
3777
+ kind: convex_values0.VLiteral<"success", "required">;
3778
+ }, "required", "kind">, convex_values0.VObject<{
3779
+ error: string;
3780
+ kind: "failed";
3781
+ }, {
3782
+ error: convex_values0.VString<string, "required">;
3783
+ kind: convex_values0.VLiteral<"failed", "required">;
3784
+ }, "required", "error" | "kind">, convex_values0.VObject<{
3785
+ kind: "canceled";
3786
+ }, {
3787
+ kind: convex_values0.VLiteral<"canceled", "required">;
3788
+ }, "required", "kind">], "required", "error" | "kind">;
3789
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
3790
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
3791
+ sha256: typeof effect_Schema0.String;
3792
+ size: typeof effect_Schema0.Number;
3793
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
3794
+ exact: true;
3795
+ }>;
3796
+ }>, convex_values0.VObject<{
3797
+ sha256: string;
3798
+ size: number;
3799
+ contentType?: string;
3800
+ }, {
3801
+ sha256: convex_values0.VString<string, "required">;
3802
+ size: convex_values0.VFloat64<number, "required">;
3803
+ contentType: convex_values0.VString<string | undefined, "optional">;
3804
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["convexDocument"], convex_server0.NamedIndex<TableInfoWithName<DataModel<Tables<DatabaseSchema_> | SystemTables>, TableName>, IndexName>, 0>) => convex_server0.IndexRange) | undefined, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
3805
+ name: typeof effect_Schema0.String;
3806
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
3807
+ scheduledTime: typeof effect_Schema0.Number;
3808
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
3809
+ exact: true;
3810
+ }>;
3811
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
3812
+ kind: effect_Schema0.Literal<["pending"]>;
3813
+ }>, effect_Schema0.Struct<{
3814
+ kind: effect_Schema0.Literal<["inProgress"]>;
3815
+ }>, effect_Schema0.Struct<{
3816
+ kind: effect_Schema0.Literal<["success"]>;
3817
+ }>, effect_Schema0.Struct<{
3818
+ kind: effect_Schema0.Literal<["failed"]>;
3819
+ error: typeof effect_Schema0.String;
3820
+ }>, effect_Schema0.Struct<{
3821
+ kind: effect_Schema0.Literal<["canceled"]>;
3822
+ }>]>;
3823
+ }>, convex_values0.VObject<{
3824
+ name: string;
3825
+ args: any[];
3826
+ scheduledTime: number;
3827
+ state: {
3828
+ kind: "pending";
3829
+ } | {
3830
+ kind: "inProgress";
3831
+ } | {
3832
+ kind: "success";
3833
+ } | {
3834
+ error: string;
3835
+ kind: "failed";
3836
+ } | {
3837
+ kind: "canceled";
3838
+ };
3839
+ completedTime?: number;
3840
+ }, {
3841
+ name: convex_values0.VString<string, "required">;
3842
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
3843
+ scheduledTime: convex_values0.VFloat64<number, "required">;
3844
+ state: convex_values0.VUnion<{
3845
+ kind: "pending";
3846
+ } | {
3847
+ kind: "inProgress";
3848
+ } | {
3849
+ kind: "success";
3850
+ } | {
3851
+ error: string;
3852
+ kind: "failed";
3853
+ } | {
3854
+ kind: "canceled";
3855
+ }, [convex_values0.VObject<{
3856
+ kind: "pending";
3857
+ }, {
3858
+ kind: convex_values0.VLiteral<"pending", "required">;
3859
+ }, "required", "kind">, convex_values0.VObject<{
3860
+ kind: "inProgress";
3861
+ }, {
3862
+ kind: convex_values0.VLiteral<"inProgress", "required">;
3863
+ }, "required", "kind">, convex_values0.VObject<{
3864
+ kind: "success";
3865
+ }, {
3866
+ kind: convex_values0.VLiteral<"success", "required">;
3867
+ }, "required", "kind">, convex_values0.VObject<{
3868
+ error: string;
3869
+ kind: "failed";
3870
+ }, {
3871
+ error: convex_values0.VString<string, "required">;
3872
+ kind: convex_values0.VLiteral<"failed", "required">;
3873
+ }, "required", "error" | "kind">, convex_values0.VObject<{
3874
+ kind: "canceled";
3875
+ }, {
3876
+ kind: convex_values0.VLiteral<"canceled", "required">;
3877
+ }, "required", "kind">], "required", "error" | "kind">;
3878
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
3879
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
3880
+ sha256: typeof effect_Schema0.String;
3881
+ size: typeof effect_Schema0.Number;
3882
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
3883
+ exact: true;
3884
+ }>;
3885
+ }>, convex_values0.VObject<{
3886
+ sha256: string;
3887
+ size: number;
3888
+ contentType?: string;
3889
+ }, {
3890
+ sha256: convex_values0.VString<string, "required">;
3891
+ size: convex_values0.VFloat64<number, "required">;
3892
+ contentType: convex_values0.VString<string | undefined, "optional">;
3893
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>, TableName>;
3894
+ <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
3895
+ name: typeof effect_Schema0.String;
3896
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
3897
+ scheduledTime: typeof effect_Schema0.Number;
3898
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
3899
+ exact: true;
3900
+ }>;
3901
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
3902
+ kind: effect_Schema0.Literal<["pending"]>;
3903
+ }>, effect_Schema0.Struct<{
3904
+ kind: effect_Schema0.Literal<["inProgress"]>;
3905
+ }>, effect_Schema0.Struct<{
3906
+ kind: effect_Schema0.Literal<["success"]>;
3907
+ }>, effect_Schema0.Struct<{
3908
+ kind: effect_Schema0.Literal<["failed"]>;
3909
+ error: typeof effect_Schema0.String;
3910
+ }>, effect_Schema0.Struct<{
3911
+ kind: effect_Schema0.Literal<["canceled"]>;
3912
+ }>]>;
3913
+ }>, convex_values0.VObject<{
3914
+ name: string;
3915
+ args: any[];
3916
+ scheduledTime: number;
3917
+ state: {
3918
+ kind: "pending";
3919
+ } | {
3920
+ kind: "inProgress";
3921
+ } | {
3922
+ kind: "success";
3923
+ } | {
3924
+ error: string;
3925
+ kind: "failed";
3926
+ } | {
3927
+ kind: "canceled";
3928
+ };
3929
+ completedTime?: number;
3930
+ }, {
3931
+ name: convex_values0.VString<string, "required">;
3932
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
3933
+ scheduledTime: convex_values0.VFloat64<number, "required">;
3934
+ state: convex_values0.VUnion<{
3935
+ kind: "pending";
3936
+ } | {
3937
+ kind: "inProgress";
3938
+ } | {
3939
+ kind: "success";
3940
+ } | {
3941
+ error: string;
3942
+ kind: "failed";
3943
+ } | {
3944
+ kind: "canceled";
3945
+ }, [convex_values0.VObject<{
3946
+ kind: "pending";
3947
+ }, {
3948
+ kind: convex_values0.VLiteral<"pending", "required">;
3949
+ }, "required", "kind">, convex_values0.VObject<{
3950
+ kind: "inProgress";
3951
+ }, {
3952
+ kind: convex_values0.VLiteral<"inProgress", "required">;
3953
+ }, "required", "kind">, convex_values0.VObject<{
3954
+ kind: "success";
3955
+ }, {
3956
+ kind: convex_values0.VLiteral<"success", "required">;
3957
+ }, "required", "kind">, convex_values0.VObject<{
3958
+ error: string;
3959
+ kind: "failed";
3960
+ }, {
3961
+ error: convex_values0.VString<string, "required">;
3962
+ kind: convex_values0.VLiteral<"failed", "required">;
3963
+ }, "required", "error" | "kind">, convex_values0.VObject<{
3964
+ kind: "canceled";
3965
+ }, {
3966
+ kind: convex_values0.VLiteral<"canceled", "required">;
3967
+ }, "required", "kind">], "required", "error" | "kind">;
3968
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
3969
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
3970
+ sha256: typeof effect_Schema0.String;
3971
+ size: typeof effect_Schema0.Number;
3972
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
3973
+ exact: true;
3974
+ }>;
3975
+ }>, convex_values0.VObject<{
3976
+ sha256: string;
3977
+ size: number;
3978
+ contentType?: string;
3979
+ }, {
3980
+ sha256: convex_values0.VString<string, "required">;
3981
+ size: convex_values0.VFloat64<number, "required">;
3982
+ contentType: convex_values0.VString<string | undefined, "optional">;
3983
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["indexes"]>(indexName: IndexName, order?: "asc" | "desc"): OrderedQuery$1<TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
3984
+ name: typeof effect_Schema0.String;
3985
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
3986
+ scheduledTime: typeof effect_Schema0.Number;
3987
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
3988
+ exact: true;
3989
+ }>;
3990
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
3991
+ kind: effect_Schema0.Literal<["pending"]>;
3992
+ }>, effect_Schema0.Struct<{
3993
+ kind: effect_Schema0.Literal<["inProgress"]>;
3994
+ }>, effect_Schema0.Struct<{
3995
+ kind: effect_Schema0.Literal<["success"]>;
3996
+ }>, effect_Schema0.Struct<{
3997
+ kind: effect_Schema0.Literal<["failed"]>;
3998
+ error: typeof effect_Schema0.String;
3999
+ }>, effect_Schema0.Struct<{
4000
+ kind: effect_Schema0.Literal<["canceled"]>;
4001
+ }>]>;
4002
+ }>, convex_values0.VObject<{
4003
+ name: string;
4004
+ args: any[];
4005
+ scheduledTime: number;
4006
+ state: {
4007
+ kind: "pending";
4008
+ } | {
4009
+ kind: "inProgress";
4010
+ } | {
4011
+ kind: "success";
4012
+ } | {
4013
+ error: string;
4014
+ kind: "failed";
4015
+ } | {
4016
+ kind: "canceled";
4017
+ };
4018
+ completedTime?: number;
4019
+ }, {
4020
+ name: convex_values0.VString<string, "required">;
4021
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
4022
+ scheduledTime: convex_values0.VFloat64<number, "required">;
4023
+ state: convex_values0.VUnion<{
4024
+ kind: "pending";
4025
+ } | {
4026
+ kind: "inProgress";
4027
+ } | {
4028
+ kind: "success";
4029
+ } | {
4030
+ error: string;
4031
+ kind: "failed";
4032
+ } | {
4033
+ kind: "canceled";
4034
+ }, [convex_values0.VObject<{
4035
+ kind: "pending";
4036
+ }, {
4037
+ kind: convex_values0.VLiteral<"pending", "required">;
4038
+ }, "required", "kind">, convex_values0.VObject<{
4039
+ kind: "inProgress";
4040
+ }, {
4041
+ kind: convex_values0.VLiteral<"inProgress", "required">;
4042
+ }, "required", "kind">, convex_values0.VObject<{
4043
+ kind: "success";
4044
+ }, {
4045
+ kind: convex_values0.VLiteral<"success", "required">;
4046
+ }, "required", "kind">, convex_values0.VObject<{
4047
+ error: string;
4048
+ kind: "failed";
4049
+ }, {
4050
+ error: convex_values0.VString<string, "required">;
4051
+ kind: convex_values0.VLiteral<"failed", "required">;
4052
+ }, "required", "error" | "kind">, convex_values0.VObject<{
4053
+ kind: "canceled";
4054
+ }, {
4055
+ kind: convex_values0.VLiteral<"canceled", "required">;
4056
+ }, "required", "kind">], "required", "error" | "kind">;
4057
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
4058
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
4059
+ sha256: typeof effect_Schema0.String;
4060
+ size: typeof effect_Schema0.Number;
4061
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
4062
+ exact: true;
4063
+ }>;
4064
+ }>, convex_values0.VObject<{
4065
+ sha256: string;
4066
+ size: number;
4067
+ contentType?: string;
4068
+ }, {
4069
+ sha256: convex_values0.VString<string, "required">;
4070
+ size: convex_values0.VFloat64<number, "required">;
4071
+ contentType: convex_values0.VString<string | undefined, "optional">;
4072
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>, TableName>;
67
4073
  };
68
- readonly search: <IndexName extends keyof TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["searchIndexes"]>(indexName: IndexName, searchFilter: (q: convex_server0.SearchFilterBuilder<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>["convexDocument"], convex_server0.NamedSearchIndex<TableInfoWithName<DataModel<IncludeSystemTables<Tables<DatabaseSchema_>>>, TableName>, IndexName>>) => convex_server0.SearchFilter) => OrderedQuery$1<TableInfo<WithName<IncludeSystemTables<Tables<DatabaseSchema_>>, TableName>>, TableName>;
4074
+ readonly search: <IndexName extends keyof (TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
4075
+ name: typeof effect_Schema0.String;
4076
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
4077
+ scheduledTime: typeof effect_Schema0.Number;
4078
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
4079
+ exact: true;
4080
+ }>;
4081
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
4082
+ kind: effect_Schema0.Literal<["pending"]>;
4083
+ }>, effect_Schema0.Struct<{
4084
+ kind: effect_Schema0.Literal<["inProgress"]>;
4085
+ }>, effect_Schema0.Struct<{
4086
+ kind: effect_Schema0.Literal<["success"]>;
4087
+ }>, effect_Schema0.Struct<{
4088
+ kind: effect_Schema0.Literal<["failed"]>;
4089
+ error: typeof effect_Schema0.String;
4090
+ }>, effect_Schema0.Struct<{
4091
+ kind: effect_Schema0.Literal<["canceled"]>;
4092
+ }>]>;
4093
+ }>, convex_values0.VObject<{
4094
+ name: string;
4095
+ args: any[];
4096
+ scheduledTime: number;
4097
+ state: {
4098
+ kind: "pending";
4099
+ } | {
4100
+ kind: "inProgress";
4101
+ } | {
4102
+ kind: "success";
4103
+ } | {
4104
+ error: string;
4105
+ kind: "failed";
4106
+ } | {
4107
+ kind: "canceled";
4108
+ };
4109
+ completedTime?: number;
4110
+ }, {
4111
+ name: convex_values0.VString<string, "required">;
4112
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
4113
+ scheduledTime: convex_values0.VFloat64<number, "required">;
4114
+ state: convex_values0.VUnion<{
4115
+ kind: "pending";
4116
+ } | {
4117
+ kind: "inProgress";
4118
+ } | {
4119
+ kind: "success";
4120
+ } | {
4121
+ error: string;
4122
+ kind: "failed";
4123
+ } | {
4124
+ kind: "canceled";
4125
+ }, [convex_values0.VObject<{
4126
+ kind: "pending";
4127
+ }, {
4128
+ kind: convex_values0.VLiteral<"pending", "required">;
4129
+ }, "required", "kind">, convex_values0.VObject<{
4130
+ kind: "inProgress";
4131
+ }, {
4132
+ kind: convex_values0.VLiteral<"inProgress", "required">;
4133
+ }, "required", "kind">, convex_values0.VObject<{
4134
+ kind: "success";
4135
+ }, {
4136
+ kind: convex_values0.VLiteral<"success", "required">;
4137
+ }, "required", "kind">, convex_values0.VObject<{
4138
+ error: string;
4139
+ kind: "failed";
4140
+ }, {
4141
+ error: convex_values0.VString<string, "required">;
4142
+ kind: convex_values0.VLiteral<"failed", "required">;
4143
+ }, "required", "error" | "kind">, convex_values0.VObject<{
4144
+ kind: "canceled";
4145
+ }, {
4146
+ kind: convex_values0.VLiteral<"canceled", "required">;
4147
+ }, "required", "kind">], "required", "error" | "kind">;
4148
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
4149
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
4150
+ sha256: typeof effect_Schema0.String;
4151
+ size: typeof effect_Schema0.Number;
4152
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
4153
+ exact: true;
4154
+ }>;
4155
+ }>, convex_values0.VObject<{
4156
+ sha256: string;
4157
+ size: number;
4158
+ contentType?: string;
4159
+ }, {
4160
+ sha256: convex_values0.VString<string, "required">;
4161
+ size: convex_values0.VFloat64<number, "required">;
4162
+ contentType: convex_values0.VString<string | undefined, "optional">;
4163
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["searchIndexes"]>(indexName: IndexName, searchFilter: (q: convex_server0.SearchFilterBuilder<(TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
4164
+ name: typeof effect_Schema0.String;
4165
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
4166
+ scheduledTime: typeof effect_Schema0.Number;
4167
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
4168
+ exact: true;
4169
+ }>;
4170
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
4171
+ kind: effect_Schema0.Literal<["pending"]>;
4172
+ }>, effect_Schema0.Struct<{
4173
+ kind: effect_Schema0.Literal<["inProgress"]>;
4174
+ }>, effect_Schema0.Struct<{
4175
+ kind: effect_Schema0.Literal<["success"]>;
4176
+ }>, effect_Schema0.Struct<{
4177
+ kind: effect_Schema0.Literal<["failed"]>;
4178
+ error: typeof effect_Schema0.String;
4179
+ }>, effect_Schema0.Struct<{
4180
+ kind: effect_Schema0.Literal<["canceled"]>;
4181
+ }>]>;
4182
+ }>, convex_values0.VObject<{
4183
+ name: string;
4184
+ args: any[];
4185
+ scheduledTime: number;
4186
+ state: {
4187
+ kind: "pending";
4188
+ } | {
4189
+ kind: "inProgress";
4190
+ } | {
4191
+ kind: "success";
4192
+ } | {
4193
+ error: string;
4194
+ kind: "failed";
4195
+ } | {
4196
+ kind: "canceled";
4197
+ };
4198
+ completedTime?: number;
4199
+ }, {
4200
+ name: convex_values0.VString<string, "required">;
4201
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
4202
+ scheduledTime: convex_values0.VFloat64<number, "required">;
4203
+ state: convex_values0.VUnion<{
4204
+ kind: "pending";
4205
+ } | {
4206
+ kind: "inProgress";
4207
+ } | {
4208
+ kind: "success";
4209
+ } | {
4210
+ error: string;
4211
+ kind: "failed";
4212
+ } | {
4213
+ kind: "canceled";
4214
+ }, [convex_values0.VObject<{
4215
+ kind: "pending";
4216
+ }, {
4217
+ kind: convex_values0.VLiteral<"pending", "required">;
4218
+ }, "required", "kind">, convex_values0.VObject<{
4219
+ kind: "inProgress";
4220
+ }, {
4221
+ kind: convex_values0.VLiteral<"inProgress", "required">;
4222
+ }, "required", "kind">, convex_values0.VObject<{
4223
+ kind: "success";
4224
+ }, {
4225
+ kind: convex_values0.VLiteral<"success", "required">;
4226
+ }, "required", "kind">, convex_values0.VObject<{
4227
+ error: string;
4228
+ kind: "failed";
4229
+ }, {
4230
+ error: convex_values0.VString<string, "required">;
4231
+ kind: convex_values0.VLiteral<"failed", "required">;
4232
+ }, "required", "error" | "kind">, convex_values0.VObject<{
4233
+ kind: "canceled";
4234
+ }, {
4235
+ kind: convex_values0.VLiteral<"canceled", "required">;
4236
+ }, "required", "kind">], "required", "error" | "kind">;
4237
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
4238
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
4239
+ sha256: typeof effect_Schema0.String;
4240
+ size: typeof effect_Schema0.Number;
4241
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
4242
+ exact: true;
4243
+ }>;
4244
+ }>, convex_values0.VObject<{
4245
+ sha256: string;
4246
+ size: number;
4247
+ contentType?: string;
4248
+ }, {
4249
+ sha256: convex_values0.VString<string, "required">;
4250
+ size: convex_values0.VFloat64<number, "required">;
4251
+ contentType: convex_values0.VString<string | undefined, "optional">;
4252
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>)["convexDocument"], convex_server0.NamedSearchIndex<TableInfoWithName<DataModel<Tables<DatabaseSchema_> | SystemTables>, TableName>, IndexName>>) => convex_server0.SearchFilter) => OrderedQuery$1<TableInfo<WithName<Tables<DatabaseSchema_>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", effect_Schema0.Struct<{
4253
+ name: typeof effect_Schema0.String;
4254
+ args: effect_Schema0.Array$<typeof effect_Schema0.Any>;
4255
+ scheduledTime: typeof effect_Schema0.Number;
4256
+ completedTime: effect_Schema0.optionalWith<typeof effect_Schema0.Number, {
4257
+ exact: true;
4258
+ }>;
4259
+ state: effect_Schema0.Union<[effect_Schema0.Struct<{
4260
+ kind: effect_Schema0.Literal<["pending"]>;
4261
+ }>, effect_Schema0.Struct<{
4262
+ kind: effect_Schema0.Literal<["inProgress"]>;
4263
+ }>, effect_Schema0.Struct<{
4264
+ kind: effect_Schema0.Literal<["success"]>;
4265
+ }>, effect_Schema0.Struct<{
4266
+ kind: effect_Schema0.Literal<["failed"]>;
4267
+ error: typeof effect_Schema0.String;
4268
+ }>, effect_Schema0.Struct<{
4269
+ kind: effect_Schema0.Literal<["canceled"]>;
4270
+ }>]>;
4271
+ }>, convex_values0.VObject<{
4272
+ name: string;
4273
+ args: any[];
4274
+ scheduledTime: number;
4275
+ state: {
4276
+ kind: "pending";
4277
+ } | {
4278
+ kind: "inProgress";
4279
+ } | {
4280
+ kind: "success";
4281
+ } | {
4282
+ error: string;
4283
+ kind: "failed";
4284
+ } | {
4285
+ kind: "canceled";
4286
+ };
4287
+ completedTime?: number;
4288
+ }, {
4289
+ name: convex_values0.VString<string, "required">;
4290
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
4291
+ scheduledTime: convex_values0.VFloat64<number, "required">;
4292
+ state: convex_values0.VUnion<{
4293
+ kind: "pending";
4294
+ } | {
4295
+ kind: "inProgress";
4296
+ } | {
4297
+ kind: "success";
4298
+ } | {
4299
+ error: string;
4300
+ kind: "failed";
4301
+ } | {
4302
+ kind: "canceled";
4303
+ }, [convex_values0.VObject<{
4304
+ kind: "pending";
4305
+ }, {
4306
+ kind: convex_values0.VLiteral<"pending", "required">;
4307
+ }, "required", "kind">, convex_values0.VObject<{
4308
+ kind: "inProgress";
4309
+ }, {
4310
+ kind: convex_values0.VLiteral<"inProgress", "required">;
4311
+ }, "required", "kind">, convex_values0.VObject<{
4312
+ kind: "success";
4313
+ }, {
4314
+ kind: convex_values0.VLiteral<"success", "required">;
4315
+ }, "required", "kind">, convex_values0.VObject<{
4316
+ error: string;
4317
+ kind: "failed";
4318
+ }, {
4319
+ error: convex_values0.VString<string, "required">;
4320
+ kind: convex_values0.VLiteral<"failed", "required">;
4321
+ }, "required", "error" | "kind">, convex_values0.VObject<{
4322
+ kind: "canceled";
4323
+ }, {
4324
+ kind: convex_values0.VLiteral<"canceled", "required">;
4325
+ }, "required", "kind">], "required", "error" | "kind">;
4326
+ completedTime: convex_values0.VFloat64<number | undefined, "optional">;
4327
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", effect_Schema0.Struct<{
4328
+ sha256: typeof effect_Schema0.String;
4329
+ size: typeof effect_Schema0.Number;
4330
+ contentType: effect_Schema0.optionalWith<typeof effect_Schema0.String, {
4331
+ exact: true;
4332
+ }>;
4333
+ }>, convex_values0.VObject<{
4334
+ sha256: string;
4335
+ size: number;
4336
+ contentType?: string;
4337
+ }, {
4338
+ sha256: convex_values0.VString<string, "required">;
4339
+ size: convex_values0.VFloat64<number, "required">;
4340
+ contentType: convex_values0.VString<string | undefined, "optional">;
4341
+ }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>>, TableName>;
69
4342
  };
70
4343
  }, never, never>;
71
4344
  //#endregion