@confect/server 9.0.1 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +34 -23
  2. package/dist/ActionCtx.d.ts +3 -2
  3. package/dist/ActionCtx.d.ts.map +1 -1
  4. package/dist/ActionCtx.js.map +1 -1
  5. package/dist/DatabaseReader.d.ts +18 -4324
  6. package/dist/DatabaseReader.d.ts.map +1 -1
  7. package/dist/DatabaseReader.js.map +1 -1
  8. package/dist/DatabaseWriter.d.ts +25 -33
  9. package/dist/DatabaseWriter.d.ts.map +1 -1
  10. package/dist/DatabaseWriter.js.map +1 -1
  11. package/dist/Document.d.ts +2 -0
  12. package/dist/Document.d.ts.map +1 -1
  13. package/dist/Document.js.map +1 -1
  14. package/dist/MutationCtx.d.ts +3 -2
  15. package/dist/MutationCtx.d.ts.map +1 -1
  16. package/dist/MutationCtx.js.map +1 -1
  17. package/dist/OrderedQuery.d.ts +6 -6
  18. package/dist/OrderedQuery.d.ts.map +1 -1
  19. package/dist/OrderedQuery.js.map +1 -1
  20. package/dist/QueryCtx.d.ts +3 -2
  21. package/dist/QueryCtx.d.ts.map +1 -1
  22. package/dist/QueryCtx.js.map +1 -1
  23. package/dist/QueryInitializer.d.ts +8 -8
  24. package/dist/QueryInitializer.d.ts.map +1 -1
  25. package/dist/QueryInitializer.js +2 -2
  26. package/dist/QueryInitializer.js.map +1 -1
  27. package/dist/RegisteredConvexFunction.d.ts +1 -1089
  28. package/dist/RegisteredConvexFunction.d.ts.map +1 -1
  29. package/dist/RegisteredFunction.d.ts +1 -8
  30. package/dist/RegisteredFunction.d.ts.map +1 -1
  31. package/dist/VectorSearch.d.ts +15 -28
  32. package/dist/VectorSearch.d.ts.map +1 -1
  33. package/dist/VectorSearch.js.map +1 -1
  34. package/dist/tsconfig.src.tsbuildinfo +1 -1
  35. package/package.json +2 -2
  36. package/src/ActionCtx.ts +10 -4
  37. package/src/DatabaseReader.ts +58 -13
  38. package/src/DatabaseWriter.ts +70 -7
  39. package/src/Document.ts +6 -0
  40. package/src/MutationCtx.ts +10 -4
  41. package/src/OrderedQuery.ts +6 -14
  42. package/src/QueryCtx.ts +10 -4
  43. package/src/QueryInitializer.ts +26 -28
  44. package/src/VectorSearch.ts +23 -8
@@ -1,7 +1,6 @@
1
1
  import { type GenericMutationCtx } from "convex/server";
2
2
  import * as Effect from "effect/Effect";
3
3
  import * as Layer from "effect/Layer";
4
- import * as Schema from "effect/Schema";
5
4
  import * as Auth from "./Auth";
6
5
  import * as DatabaseReader from "./DatabaseReader";
7
6
  import type * as DatabaseSchema from "./DatabaseSchema";
@@ -19,1093 +18,6 @@ export declare const make: (databaseSchema: DatabaseSchema.AnyWithProps, { funct
19
18
  export declare const mutationLayer: <Schema extends DatabaseSchema.AnyWithProps>(schema: Schema, ctx: GenericMutationCtx<DataModel.ToConvex<DataModel.FromSchema<Schema>>>) => Layer.Layer<Auth.Auth | (<Mutation extends import("@confect/core/Ref").AnyMutation>(mutation: Mutation, ...args: import("@confect/core/Ref").OptionalArgs<Mutation>) => Effect.Effect<import("@confect/core/Ref").Returns<Mutation>, import("@confect/core/Ref").Error<Mutation> | import("effect/ParseResult").ParseError>) | (<Query extends import("@confect/core/Ref").AnyQuery>(query: Query, ...args: import("@confect/core/Ref").OptionalArgs<Query>) => Effect.Effect<import("@confect/core/Ref").Returns<Query>, import("@confect/core/Ref").Error<Query> | import("effect/ParseResult").ParseError>) | {
20
19
  runAfter: <Ref_ extends import("@confect/core/Ref").AnyMutation | import("@confect/core/Ref").AnyAction>(delay: import("effect/Duration").Duration, ref: Ref_, ...args: import("@confect/core/Ref").OptionalArgs<Ref_>) => Effect.Effect<import("convex/values").GenericId<"_scheduled_functions">, never, never>;
21
20
  runAt: <Ref_ extends import("@confect/core/Ref").AnyMutation | import("@confect/core/Ref").AnyAction>(dateTime: import("effect/DateTime").DateTime, ref: Ref_, ...args: import("@confect/core/Ref").OptionalArgs<Ref_>) => Effect.Effect<import("convex/values").GenericId<"_scheduled_functions">, never, never>;
22
- } | StorageReader | StorageWriter | GenericMutationCtx<DataModel.ToConvex<DataModel.FromSchema<Schema>>> | {
23
- table: <const TableName extends "_scheduled_functions" | "_storage" | import("./Table").Name<DatabaseSchema.Tables<Schema>>>(tableName: TableName) => {
24
- readonly get: {
25
- (id: import("convex/values").GenericId<TableName>): Effect.Effect<(import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_scheduled_functions", Schema.Struct<{
26
- name: typeof Schema.String;
27
- args: Schema.Array$<typeof Schema.Any>;
28
- scheduledTime: typeof Schema.Number;
29
- completedTime: Schema.optionalWith<typeof Schema.Number, {
30
- exact: true;
31
- }>;
32
- state: Schema.Union<[Schema.Struct<{
33
- kind: Schema.Literal<["pending"]>;
34
- }>, Schema.Struct<{
35
- kind: Schema.Literal<["inProgress"]>;
36
- }>, Schema.Struct<{
37
- kind: Schema.Literal<["success"]>;
38
- }>, Schema.Struct<{
39
- kind: Schema.Literal<["failed"]>;
40
- error: typeof Schema.String;
41
- }>, Schema.Struct<{
42
- kind: Schema.Literal<["canceled"]>;
43
- }>]>;
44
- }>, import("convex/values").VObject<{
45
- name: string;
46
- args: any[];
47
- scheduledTime: number;
48
- state: {
49
- kind: "pending";
50
- } | {
51
- kind: "inProgress";
52
- } | {
53
- kind: "success";
54
- } | {
55
- kind: "failed";
56
- error: string;
57
- } | {
58
- kind: "canceled";
59
- };
60
- completedTime?: number;
61
- }, {
62
- name: import("convex/values").VString<string, "required">;
63
- args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
64
- scheduledTime: import("convex/values").VFloat64<number, "required">;
65
- state: import("convex/values").VUnion<{
66
- kind: "pending";
67
- } | {
68
- kind: "inProgress";
69
- } | {
70
- kind: "success";
71
- } | {
72
- kind: "failed";
73
- error: string;
74
- } | {
75
- kind: "canceled";
76
- }, [import("convex/values").VObject<{
77
- kind: "pending";
78
- }, {
79
- kind: import("convex/values").VLiteral<"pending", "required">;
80
- }, "required", "kind">, import("convex/values").VObject<{
81
- kind: "inProgress";
82
- }, {
83
- kind: import("convex/values").VLiteral<"inProgress", "required">;
84
- }, "required", "kind">, import("convex/values").VObject<{
85
- kind: "success";
86
- }, {
87
- kind: import("convex/values").VLiteral<"success", "required">;
88
- }, "required", "kind">, import("convex/values").VObject<{
89
- kind: "failed";
90
- error: string;
91
- }, {
92
- kind: import("convex/values").VLiteral<"failed", "required">;
93
- error: import("convex/values").VString<string, "required">;
94
- }, "required", "kind" | "error">, import("convex/values").VObject<{
95
- kind: "canceled";
96
- }, {
97
- kind: import("convex/values").VLiteral<"canceled", "required">;
98
- }, "required", "kind">], "required", "kind" | "error">;
99
- completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
100
- }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_storage", Schema.Struct<{
101
- sha256: typeof Schema.String;
102
- size: typeof Schema.Number;
103
- contentType: Schema.optionalWith<typeof Schema.String, {
104
- exact: true;
105
- }>;
106
- }>, import("convex/values").VObject<{
107
- sha256: string;
108
- size: number;
109
- contentType?: string;
110
- }, {
111
- sha256: import("convex/values").VString<string, "required">;
112
- size: import("convex/values").VFloat64<number, "required">;
113
- contentType: import("convex/values").VString<string | undefined, "optional">;
114
- }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<DatabaseSchema.Tables<Schema>, TableName>>)["document"], import("./Document").DocumentDecodeError | import("./QueryInitializer").GetByIdFailure, never>;
115
- <IndexName extends keyof (import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_scheduled_functions", Schema.Struct<{
116
- name: typeof Schema.String;
117
- args: Schema.Array$<typeof Schema.Any>;
118
- scheduledTime: typeof Schema.Number;
119
- completedTime: Schema.optionalWith<typeof Schema.Number, {
120
- exact: true;
121
- }>;
122
- state: Schema.Union<[Schema.Struct<{
123
- kind: Schema.Literal<["pending"]>;
124
- }>, Schema.Struct<{
125
- kind: Schema.Literal<["inProgress"]>;
126
- }>, Schema.Struct<{
127
- kind: Schema.Literal<["success"]>;
128
- }>, Schema.Struct<{
129
- kind: Schema.Literal<["failed"]>;
130
- error: typeof Schema.String;
131
- }>, Schema.Struct<{
132
- kind: Schema.Literal<["canceled"]>;
133
- }>]>;
134
- }>, import("convex/values").VObject<{
135
- name: string;
136
- args: any[];
137
- scheduledTime: number;
138
- state: {
139
- kind: "pending";
140
- } | {
141
- kind: "inProgress";
142
- } | {
143
- kind: "success";
144
- } | {
145
- kind: "failed";
146
- error: string;
147
- } | {
148
- kind: "canceled";
149
- };
150
- completedTime?: number;
151
- }, {
152
- name: import("convex/values").VString<string, "required">;
153
- args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
154
- scheduledTime: import("convex/values").VFloat64<number, "required">;
155
- state: import("convex/values").VUnion<{
156
- kind: "pending";
157
- } | {
158
- kind: "inProgress";
159
- } | {
160
- kind: "success";
161
- } | {
162
- kind: "failed";
163
- error: string;
164
- } | {
165
- kind: "canceled";
166
- }, [import("convex/values").VObject<{
167
- kind: "pending";
168
- }, {
169
- kind: import("convex/values").VLiteral<"pending", "required">;
170
- }, "required", "kind">, import("convex/values").VObject<{
171
- kind: "inProgress";
172
- }, {
173
- kind: import("convex/values").VLiteral<"inProgress", "required">;
174
- }, "required", "kind">, import("convex/values").VObject<{
175
- kind: "success";
176
- }, {
177
- kind: import("convex/values").VLiteral<"success", "required">;
178
- }, "required", "kind">, import("convex/values").VObject<{
179
- kind: "failed";
180
- error: string;
181
- }, {
182
- kind: import("convex/values").VLiteral<"failed", "required">;
183
- error: import("convex/values").VString<string, "required">;
184
- }, "required", "kind" | "error">, import("convex/values").VObject<{
185
- kind: "canceled";
186
- }, {
187
- kind: import("convex/values").VLiteral<"canceled", "required">;
188
- }, "required", "kind">], "required", "kind" | "error">;
189
- completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
190
- }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_storage", Schema.Struct<{
191
- sha256: typeof Schema.String;
192
- size: typeof Schema.Number;
193
- contentType: Schema.optionalWith<typeof Schema.String, {
194
- exact: true;
195
- }>;
196
- }>, import("convex/values").VObject<{
197
- sha256: string;
198
- size: number;
199
- contentType?: string;
200
- }, {
201
- sha256: import("convex/values").VString<string, "required">;
202
- size: import("convex/values").VFloat64<number, "required">;
203
- contentType: import("convex/values").VString<string | undefined, "optional">;
204
- }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<DatabaseSchema.Tables<Schema>, TableName>>)["indexes"]>(indexName: IndexName, ...indexFieldValues: import("@confect/core/Types").IndexFieldTypesForEq<DataModel.ToConvex<DataModel.DataModel<import("./Table").SystemTables | DatabaseSchema.Tables<Schema>>>, TableName, (import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_scheduled_functions", Schema.Struct<{
205
- name: typeof Schema.String;
206
- args: Schema.Array$<typeof Schema.Any>;
207
- scheduledTime: typeof Schema.Number;
208
- completedTime: Schema.optionalWith<typeof Schema.Number, {
209
- exact: true;
210
- }>;
211
- state: Schema.Union<[Schema.Struct<{
212
- kind: Schema.Literal<["pending"]>;
213
- }>, Schema.Struct<{
214
- kind: Schema.Literal<["inProgress"]>;
215
- }>, Schema.Struct<{
216
- kind: Schema.Literal<["success"]>;
217
- }>, Schema.Struct<{
218
- kind: Schema.Literal<["failed"]>;
219
- error: typeof Schema.String;
220
- }>, Schema.Struct<{
221
- kind: Schema.Literal<["canceled"]>;
222
- }>]>;
223
- }>, import("convex/values").VObject<{
224
- name: string;
225
- args: any[];
226
- scheduledTime: number;
227
- state: {
228
- kind: "pending";
229
- } | {
230
- kind: "inProgress";
231
- } | {
232
- kind: "success";
233
- } | {
234
- kind: "failed";
235
- error: string;
236
- } | {
237
- kind: "canceled";
238
- };
239
- completedTime?: number;
240
- }, {
241
- name: import("convex/values").VString<string, "required">;
242
- args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
243
- scheduledTime: import("convex/values").VFloat64<number, "required">;
244
- state: import("convex/values").VUnion<{
245
- kind: "pending";
246
- } | {
247
- kind: "inProgress";
248
- } | {
249
- kind: "success";
250
- } | {
251
- kind: "failed";
252
- error: string;
253
- } | {
254
- kind: "canceled";
255
- }, [import("convex/values").VObject<{
256
- kind: "pending";
257
- }, {
258
- kind: import("convex/values").VLiteral<"pending", "required">;
259
- }, "required", "kind">, import("convex/values").VObject<{
260
- kind: "inProgress";
261
- }, {
262
- kind: import("convex/values").VLiteral<"inProgress", "required">;
263
- }, "required", "kind">, import("convex/values").VObject<{
264
- kind: "success";
265
- }, {
266
- kind: import("convex/values").VLiteral<"success", "required">;
267
- }, "required", "kind">, import("convex/values").VObject<{
268
- kind: "failed";
269
- error: string;
270
- }, {
271
- kind: import("convex/values").VLiteral<"failed", "required">;
272
- error: import("convex/values").VString<string, "required">;
273
- }, "required", "kind" | "error">, import("convex/values").VObject<{
274
- kind: "canceled";
275
- }, {
276
- kind: import("convex/values").VLiteral<"canceled", "required">;
277
- }, "required", "kind">], "required", "kind" | "error">;
278
- completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
279
- }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_storage", Schema.Struct<{
280
- sha256: typeof Schema.String;
281
- size: typeof Schema.Number;
282
- contentType: Schema.optionalWith<typeof Schema.String, {
283
- exact: true;
284
- }>;
285
- }>, import("convex/values").VObject<{
286
- sha256: string;
287
- size: number;
288
- contentType?: string;
289
- }, {
290
- sha256: import("convex/values").VString<string, "required">;
291
- size: import("convex/values").VFloat64<number, "required">;
292
- contentType: import("convex/values").VString<string | undefined, "optional">;
293
- }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<DatabaseSchema.Tables<Schema>, TableName>>)["indexes"][IndexName]>): Effect.Effect<(import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_scheduled_functions", Schema.Struct<{
294
- name: typeof Schema.String;
295
- args: Schema.Array$<typeof Schema.Any>;
296
- scheduledTime: typeof Schema.Number;
297
- completedTime: Schema.optionalWith<typeof Schema.Number, {
298
- exact: true;
299
- }>;
300
- state: Schema.Union<[Schema.Struct<{
301
- kind: Schema.Literal<["pending"]>;
302
- }>, Schema.Struct<{
303
- kind: Schema.Literal<["inProgress"]>;
304
- }>, Schema.Struct<{
305
- kind: Schema.Literal<["success"]>;
306
- }>, Schema.Struct<{
307
- kind: Schema.Literal<["failed"]>;
308
- error: typeof Schema.String;
309
- }>, Schema.Struct<{
310
- kind: Schema.Literal<["canceled"]>;
311
- }>]>;
312
- }>, import("convex/values").VObject<{
313
- name: string;
314
- args: any[];
315
- scheduledTime: number;
316
- state: {
317
- kind: "pending";
318
- } | {
319
- kind: "inProgress";
320
- } | {
321
- kind: "success";
322
- } | {
323
- kind: "failed";
324
- error: string;
325
- } | {
326
- kind: "canceled";
327
- };
328
- completedTime?: number;
329
- }, {
330
- name: import("convex/values").VString<string, "required">;
331
- args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
332
- scheduledTime: import("convex/values").VFloat64<number, "required">;
333
- state: import("convex/values").VUnion<{
334
- kind: "pending";
335
- } | {
336
- kind: "inProgress";
337
- } | {
338
- kind: "success";
339
- } | {
340
- kind: "failed";
341
- error: string;
342
- } | {
343
- kind: "canceled";
344
- }, [import("convex/values").VObject<{
345
- kind: "pending";
346
- }, {
347
- kind: import("convex/values").VLiteral<"pending", "required">;
348
- }, "required", "kind">, import("convex/values").VObject<{
349
- kind: "inProgress";
350
- }, {
351
- kind: import("convex/values").VLiteral<"inProgress", "required">;
352
- }, "required", "kind">, import("convex/values").VObject<{
353
- kind: "success";
354
- }, {
355
- kind: import("convex/values").VLiteral<"success", "required">;
356
- }, "required", "kind">, import("convex/values").VObject<{
357
- kind: "failed";
358
- error: string;
359
- }, {
360
- kind: import("convex/values").VLiteral<"failed", "required">;
361
- error: import("convex/values").VString<string, "required">;
362
- }, "required", "kind" | "error">, import("convex/values").VObject<{
363
- kind: "canceled";
364
- }, {
365
- kind: import("convex/values").VLiteral<"canceled", "required">;
366
- }, "required", "kind">], "required", "kind" | "error">;
367
- completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
368
- }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_storage", Schema.Struct<{
369
- sha256: typeof Schema.String;
370
- size: typeof Schema.Number;
371
- contentType: Schema.optionalWith<typeof Schema.String, {
372
- exact: true;
373
- }>;
374
- }>, import("convex/values").VObject<{
375
- sha256: string;
376
- size: number;
377
- contentType?: string;
378
- }, {
379
- sha256: import("convex/values").VString<string, "required">;
380
- size: import("convex/values").VFloat64<number, "required">;
381
- contentType: import("convex/values").VString<string | undefined, "optional">;
382
- }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<DatabaseSchema.Tables<Schema>, TableName>>)["document"], import("./Document").DocumentDecodeError | import("./QueryInitializer").GetByIndexFailure, never>;
383
- };
384
- readonly index: {
385
- <IndexName extends keyof (import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_scheduled_functions", Schema.Struct<{
386
- name: typeof Schema.String;
387
- args: Schema.Array$<typeof Schema.Any>;
388
- scheduledTime: typeof Schema.Number;
389
- completedTime: Schema.optionalWith<typeof Schema.Number, {
390
- exact: true;
391
- }>;
392
- state: Schema.Union<[Schema.Struct<{
393
- kind: Schema.Literal<["pending"]>;
394
- }>, Schema.Struct<{
395
- kind: Schema.Literal<["inProgress"]>;
396
- }>, Schema.Struct<{
397
- kind: Schema.Literal<["success"]>;
398
- }>, Schema.Struct<{
399
- kind: Schema.Literal<["failed"]>;
400
- error: typeof Schema.String;
401
- }>, Schema.Struct<{
402
- kind: Schema.Literal<["canceled"]>;
403
- }>]>;
404
- }>, import("convex/values").VObject<{
405
- name: string;
406
- args: any[];
407
- scheduledTime: number;
408
- state: {
409
- kind: "pending";
410
- } | {
411
- kind: "inProgress";
412
- } | {
413
- kind: "success";
414
- } | {
415
- kind: "failed";
416
- error: string;
417
- } | {
418
- kind: "canceled";
419
- };
420
- completedTime?: number;
421
- }, {
422
- name: import("convex/values").VString<string, "required">;
423
- args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
424
- scheduledTime: import("convex/values").VFloat64<number, "required">;
425
- state: import("convex/values").VUnion<{
426
- kind: "pending";
427
- } | {
428
- kind: "inProgress";
429
- } | {
430
- kind: "success";
431
- } | {
432
- kind: "failed";
433
- error: string;
434
- } | {
435
- kind: "canceled";
436
- }, [import("convex/values").VObject<{
437
- kind: "pending";
438
- }, {
439
- kind: import("convex/values").VLiteral<"pending", "required">;
440
- }, "required", "kind">, import("convex/values").VObject<{
441
- kind: "inProgress";
442
- }, {
443
- kind: import("convex/values").VLiteral<"inProgress", "required">;
444
- }, "required", "kind">, import("convex/values").VObject<{
445
- kind: "success";
446
- }, {
447
- kind: import("convex/values").VLiteral<"success", "required">;
448
- }, "required", "kind">, import("convex/values").VObject<{
449
- kind: "failed";
450
- error: string;
451
- }, {
452
- kind: import("convex/values").VLiteral<"failed", "required">;
453
- error: import("convex/values").VString<string, "required">;
454
- }, "required", "kind" | "error">, import("convex/values").VObject<{
455
- kind: "canceled";
456
- }, {
457
- kind: import("convex/values").VLiteral<"canceled", "required">;
458
- }, "required", "kind">], "required", "kind" | "error">;
459
- completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
460
- }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_storage", Schema.Struct<{
461
- sha256: typeof Schema.String;
462
- size: typeof Schema.Number;
463
- contentType: Schema.optionalWith<typeof Schema.String, {
464
- exact: true;
465
- }>;
466
- }>, import("convex/values").VObject<{
467
- sha256: string;
468
- size: number;
469
- contentType?: string;
470
- }, {
471
- sha256: import("convex/values").VString<string, "required">;
472
- size: import("convex/values").VFloat64<number, "required">;
473
- contentType: import("convex/values").VString<string | undefined, "optional">;
474
- }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<DatabaseSchema.Tables<Schema>, TableName>>)["indexes"]>(indexName: IndexName, indexRange?: ((q: import("convex/server").IndexRangeBuilder<(import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_scheduled_functions", Schema.Struct<{
475
- name: typeof Schema.String;
476
- args: Schema.Array$<typeof Schema.Any>;
477
- scheduledTime: typeof Schema.Number;
478
- completedTime: Schema.optionalWith<typeof Schema.Number, {
479
- exact: true;
480
- }>;
481
- state: Schema.Union<[Schema.Struct<{
482
- kind: Schema.Literal<["pending"]>;
483
- }>, Schema.Struct<{
484
- kind: Schema.Literal<["inProgress"]>;
485
- }>, Schema.Struct<{
486
- kind: Schema.Literal<["success"]>;
487
- }>, Schema.Struct<{
488
- kind: Schema.Literal<["failed"]>;
489
- error: typeof Schema.String;
490
- }>, Schema.Struct<{
491
- kind: Schema.Literal<["canceled"]>;
492
- }>]>;
493
- }>, import("convex/values").VObject<{
494
- name: string;
495
- args: any[];
496
- scheduledTime: number;
497
- state: {
498
- kind: "pending";
499
- } | {
500
- kind: "inProgress";
501
- } | {
502
- kind: "success";
503
- } | {
504
- kind: "failed";
505
- error: string;
506
- } | {
507
- kind: "canceled";
508
- };
509
- completedTime?: number;
510
- }, {
511
- name: import("convex/values").VString<string, "required">;
512
- args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
513
- scheduledTime: import("convex/values").VFloat64<number, "required">;
514
- state: import("convex/values").VUnion<{
515
- kind: "pending";
516
- } | {
517
- kind: "inProgress";
518
- } | {
519
- kind: "success";
520
- } | {
521
- kind: "failed";
522
- error: string;
523
- } | {
524
- kind: "canceled";
525
- }, [import("convex/values").VObject<{
526
- kind: "pending";
527
- }, {
528
- kind: import("convex/values").VLiteral<"pending", "required">;
529
- }, "required", "kind">, import("convex/values").VObject<{
530
- kind: "inProgress";
531
- }, {
532
- kind: import("convex/values").VLiteral<"inProgress", "required">;
533
- }, "required", "kind">, import("convex/values").VObject<{
534
- kind: "success";
535
- }, {
536
- kind: import("convex/values").VLiteral<"success", "required">;
537
- }, "required", "kind">, import("convex/values").VObject<{
538
- kind: "failed";
539
- error: string;
540
- }, {
541
- kind: import("convex/values").VLiteral<"failed", "required">;
542
- error: import("convex/values").VString<string, "required">;
543
- }, "required", "kind" | "error">, import("convex/values").VObject<{
544
- kind: "canceled";
545
- }, {
546
- kind: import("convex/values").VLiteral<"canceled", "required">;
547
- }, "required", "kind">], "required", "kind" | "error">;
548
- completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
549
- }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_storage", Schema.Struct<{
550
- sha256: typeof Schema.String;
551
- size: typeof Schema.Number;
552
- contentType: Schema.optionalWith<typeof Schema.String, {
553
- exact: true;
554
- }>;
555
- }>, import("convex/values").VObject<{
556
- sha256: string;
557
- size: number;
558
- contentType?: string;
559
- }, {
560
- sha256: import("convex/values").VString<string, "required">;
561
- size: import("convex/values").VFloat64<number, "required">;
562
- contentType: import("convex/values").VString<string | undefined, "optional">;
563
- }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<DatabaseSchema.Tables<Schema>, TableName>>)["convexDocument"], import("convex/server").NamedIndex<DataModel.TableInfoWithName<DataModel.DataModel<import("./Table").SystemTables | DatabaseSchema.Tables<Schema>>, TableName>, IndexName>, 0>) => import("convex/server").IndexRange) | undefined, order?: "asc" | "desc"): import("./OrderedQuery").OrderedQuery<import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_scheduled_functions", Schema.Struct<{
564
- name: typeof Schema.String;
565
- args: Schema.Array$<typeof Schema.Any>;
566
- scheduledTime: typeof Schema.Number;
567
- completedTime: Schema.optionalWith<typeof Schema.Number, {
568
- exact: true;
569
- }>;
570
- state: Schema.Union<[Schema.Struct<{
571
- kind: Schema.Literal<["pending"]>;
572
- }>, Schema.Struct<{
573
- kind: Schema.Literal<["inProgress"]>;
574
- }>, Schema.Struct<{
575
- kind: Schema.Literal<["success"]>;
576
- }>, Schema.Struct<{
577
- kind: Schema.Literal<["failed"]>;
578
- error: typeof Schema.String;
579
- }>, Schema.Struct<{
580
- kind: Schema.Literal<["canceled"]>;
581
- }>]>;
582
- }>, import("convex/values").VObject<{
583
- name: string;
584
- args: any[];
585
- scheduledTime: number;
586
- state: {
587
- kind: "pending";
588
- } | {
589
- kind: "inProgress";
590
- } | {
591
- kind: "success";
592
- } | {
593
- kind: "failed";
594
- error: string;
595
- } | {
596
- kind: "canceled";
597
- };
598
- completedTime?: number;
599
- }, {
600
- name: import("convex/values").VString<string, "required">;
601
- args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
602
- scheduledTime: import("convex/values").VFloat64<number, "required">;
603
- state: import("convex/values").VUnion<{
604
- kind: "pending";
605
- } | {
606
- kind: "inProgress";
607
- } | {
608
- kind: "success";
609
- } | {
610
- kind: "failed";
611
- error: string;
612
- } | {
613
- kind: "canceled";
614
- }, [import("convex/values").VObject<{
615
- kind: "pending";
616
- }, {
617
- kind: import("convex/values").VLiteral<"pending", "required">;
618
- }, "required", "kind">, import("convex/values").VObject<{
619
- kind: "inProgress";
620
- }, {
621
- kind: import("convex/values").VLiteral<"inProgress", "required">;
622
- }, "required", "kind">, import("convex/values").VObject<{
623
- kind: "success";
624
- }, {
625
- kind: import("convex/values").VLiteral<"success", "required">;
626
- }, "required", "kind">, import("convex/values").VObject<{
627
- kind: "failed";
628
- error: string;
629
- }, {
630
- kind: import("convex/values").VLiteral<"failed", "required">;
631
- error: import("convex/values").VString<string, "required">;
632
- }, "required", "kind" | "error">, import("convex/values").VObject<{
633
- kind: "canceled";
634
- }, {
635
- kind: import("convex/values").VLiteral<"canceled", "required">;
636
- }, "required", "kind">], "required", "kind" | "error">;
637
- completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
638
- }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_storage", Schema.Struct<{
639
- sha256: typeof Schema.String;
640
- size: typeof Schema.Number;
641
- contentType: Schema.optionalWith<typeof Schema.String, {
642
- exact: true;
643
- }>;
644
- }>, import("convex/values").VObject<{
645
- sha256: string;
646
- size: number;
647
- contentType?: string;
648
- }, {
649
- sha256: import("convex/values").VString<string, "required">;
650
- size: import("convex/values").VFloat64<number, "required">;
651
- contentType: import("convex/values").VString<string | undefined, "optional">;
652
- }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<DatabaseSchema.Tables<Schema>, TableName>>, TableName>;
653
- <IndexName extends keyof (import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_scheduled_functions", Schema.Struct<{
654
- name: typeof Schema.String;
655
- args: Schema.Array$<typeof Schema.Any>;
656
- scheduledTime: typeof Schema.Number;
657
- completedTime: Schema.optionalWith<typeof Schema.Number, {
658
- exact: true;
659
- }>;
660
- state: Schema.Union<[Schema.Struct<{
661
- kind: Schema.Literal<["pending"]>;
662
- }>, Schema.Struct<{
663
- kind: Schema.Literal<["inProgress"]>;
664
- }>, Schema.Struct<{
665
- kind: Schema.Literal<["success"]>;
666
- }>, Schema.Struct<{
667
- kind: Schema.Literal<["failed"]>;
668
- error: typeof Schema.String;
669
- }>, Schema.Struct<{
670
- kind: Schema.Literal<["canceled"]>;
671
- }>]>;
672
- }>, import("convex/values").VObject<{
673
- name: string;
674
- args: any[];
675
- scheduledTime: number;
676
- state: {
677
- kind: "pending";
678
- } | {
679
- kind: "inProgress";
680
- } | {
681
- kind: "success";
682
- } | {
683
- kind: "failed";
684
- error: string;
685
- } | {
686
- kind: "canceled";
687
- };
688
- completedTime?: number;
689
- }, {
690
- name: import("convex/values").VString<string, "required">;
691
- args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
692
- scheduledTime: import("convex/values").VFloat64<number, "required">;
693
- state: import("convex/values").VUnion<{
694
- kind: "pending";
695
- } | {
696
- kind: "inProgress";
697
- } | {
698
- kind: "success";
699
- } | {
700
- kind: "failed";
701
- error: string;
702
- } | {
703
- kind: "canceled";
704
- }, [import("convex/values").VObject<{
705
- kind: "pending";
706
- }, {
707
- kind: import("convex/values").VLiteral<"pending", "required">;
708
- }, "required", "kind">, import("convex/values").VObject<{
709
- kind: "inProgress";
710
- }, {
711
- kind: import("convex/values").VLiteral<"inProgress", "required">;
712
- }, "required", "kind">, import("convex/values").VObject<{
713
- kind: "success";
714
- }, {
715
- kind: import("convex/values").VLiteral<"success", "required">;
716
- }, "required", "kind">, import("convex/values").VObject<{
717
- kind: "failed";
718
- error: string;
719
- }, {
720
- kind: import("convex/values").VLiteral<"failed", "required">;
721
- error: import("convex/values").VString<string, "required">;
722
- }, "required", "kind" | "error">, import("convex/values").VObject<{
723
- kind: "canceled";
724
- }, {
725
- kind: import("convex/values").VLiteral<"canceled", "required">;
726
- }, "required", "kind">], "required", "kind" | "error">;
727
- completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
728
- }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_storage", Schema.Struct<{
729
- sha256: typeof Schema.String;
730
- size: typeof Schema.Number;
731
- contentType: Schema.optionalWith<typeof Schema.String, {
732
- exact: true;
733
- }>;
734
- }>, import("convex/values").VObject<{
735
- sha256: string;
736
- size: number;
737
- contentType?: string;
738
- }, {
739
- sha256: import("convex/values").VString<string, "required">;
740
- size: import("convex/values").VFloat64<number, "required">;
741
- contentType: import("convex/values").VString<string | undefined, "optional">;
742
- }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<DatabaseSchema.Tables<Schema>, TableName>>)["indexes"]>(indexName: IndexName, order?: "asc" | "desc"): import("./OrderedQuery").OrderedQuery<import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_scheduled_functions", Schema.Struct<{
743
- name: typeof Schema.String;
744
- args: Schema.Array$<typeof Schema.Any>;
745
- scheduledTime: typeof Schema.Number;
746
- completedTime: Schema.optionalWith<typeof Schema.Number, {
747
- exact: true;
748
- }>;
749
- state: Schema.Union<[Schema.Struct<{
750
- kind: Schema.Literal<["pending"]>;
751
- }>, Schema.Struct<{
752
- kind: Schema.Literal<["inProgress"]>;
753
- }>, Schema.Struct<{
754
- kind: Schema.Literal<["success"]>;
755
- }>, Schema.Struct<{
756
- kind: Schema.Literal<["failed"]>;
757
- error: typeof Schema.String;
758
- }>, Schema.Struct<{
759
- kind: Schema.Literal<["canceled"]>;
760
- }>]>;
761
- }>, import("convex/values").VObject<{
762
- name: string;
763
- args: any[];
764
- scheduledTime: number;
765
- state: {
766
- kind: "pending";
767
- } | {
768
- kind: "inProgress";
769
- } | {
770
- kind: "success";
771
- } | {
772
- kind: "failed";
773
- error: string;
774
- } | {
775
- kind: "canceled";
776
- };
777
- completedTime?: number;
778
- }, {
779
- name: import("convex/values").VString<string, "required">;
780
- args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
781
- scheduledTime: import("convex/values").VFloat64<number, "required">;
782
- state: import("convex/values").VUnion<{
783
- kind: "pending";
784
- } | {
785
- kind: "inProgress";
786
- } | {
787
- kind: "success";
788
- } | {
789
- kind: "failed";
790
- error: string;
791
- } | {
792
- kind: "canceled";
793
- }, [import("convex/values").VObject<{
794
- kind: "pending";
795
- }, {
796
- kind: import("convex/values").VLiteral<"pending", "required">;
797
- }, "required", "kind">, import("convex/values").VObject<{
798
- kind: "inProgress";
799
- }, {
800
- kind: import("convex/values").VLiteral<"inProgress", "required">;
801
- }, "required", "kind">, import("convex/values").VObject<{
802
- kind: "success";
803
- }, {
804
- kind: import("convex/values").VLiteral<"success", "required">;
805
- }, "required", "kind">, import("convex/values").VObject<{
806
- kind: "failed";
807
- error: string;
808
- }, {
809
- kind: import("convex/values").VLiteral<"failed", "required">;
810
- error: import("convex/values").VString<string, "required">;
811
- }, "required", "kind" | "error">, import("convex/values").VObject<{
812
- kind: "canceled";
813
- }, {
814
- kind: import("convex/values").VLiteral<"canceled", "required">;
815
- }, "required", "kind">], "required", "kind" | "error">;
816
- completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
817
- }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_storage", Schema.Struct<{
818
- sha256: typeof Schema.String;
819
- size: typeof Schema.Number;
820
- contentType: Schema.optionalWith<typeof Schema.String, {
821
- exact: true;
822
- }>;
823
- }>, import("convex/values").VObject<{
824
- sha256: string;
825
- size: number;
826
- contentType?: string;
827
- }, {
828
- sha256: import("convex/values").VString<string, "required">;
829
- size: import("convex/values").VFloat64<number, "required">;
830
- contentType: import("convex/values").VString<string | undefined, "optional">;
831
- }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<DatabaseSchema.Tables<Schema>, TableName>>, TableName>;
832
- };
833
- readonly search: <IndexName extends keyof (import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_scheduled_functions", Schema.Struct<{
834
- name: typeof Schema.String;
835
- args: Schema.Array$<typeof Schema.Any>;
836
- scheduledTime: typeof Schema.Number;
837
- completedTime: Schema.optionalWith<typeof Schema.Number, {
838
- exact: true;
839
- }>;
840
- state: Schema.Union<[Schema.Struct<{
841
- kind: Schema.Literal<["pending"]>;
842
- }>, Schema.Struct<{
843
- kind: Schema.Literal<["inProgress"]>;
844
- }>, Schema.Struct<{
845
- kind: Schema.Literal<["success"]>;
846
- }>, Schema.Struct<{
847
- kind: Schema.Literal<["failed"]>;
848
- error: typeof Schema.String;
849
- }>, Schema.Struct<{
850
- kind: Schema.Literal<["canceled"]>;
851
- }>]>;
852
- }>, import("convex/values").VObject<{
853
- name: string;
854
- args: any[];
855
- scheduledTime: number;
856
- state: {
857
- kind: "pending";
858
- } | {
859
- kind: "inProgress";
860
- } | {
861
- kind: "success";
862
- } | {
863
- kind: "failed";
864
- error: string;
865
- } | {
866
- kind: "canceled";
867
- };
868
- completedTime?: number;
869
- }, {
870
- name: import("convex/values").VString<string, "required">;
871
- args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
872
- scheduledTime: import("convex/values").VFloat64<number, "required">;
873
- state: import("convex/values").VUnion<{
874
- kind: "pending";
875
- } | {
876
- kind: "inProgress";
877
- } | {
878
- kind: "success";
879
- } | {
880
- kind: "failed";
881
- error: string;
882
- } | {
883
- kind: "canceled";
884
- }, [import("convex/values").VObject<{
885
- kind: "pending";
886
- }, {
887
- kind: import("convex/values").VLiteral<"pending", "required">;
888
- }, "required", "kind">, import("convex/values").VObject<{
889
- kind: "inProgress";
890
- }, {
891
- kind: import("convex/values").VLiteral<"inProgress", "required">;
892
- }, "required", "kind">, import("convex/values").VObject<{
893
- kind: "success";
894
- }, {
895
- kind: import("convex/values").VLiteral<"success", "required">;
896
- }, "required", "kind">, import("convex/values").VObject<{
897
- kind: "failed";
898
- error: string;
899
- }, {
900
- kind: import("convex/values").VLiteral<"failed", "required">;
901
- error: import("convex/values").VString<string, "required">;
902
- }, "required", "kind" | "error">, import("convex/values").VObject<{
903
- kind: "canceled";
904
- }, {
905
- kind: import("convex/values").VLiteral<"canceled", "required">;
906
- }, "required", "kind">], "required", "kind" | "error">;
907
- completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
908
- }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_storage", Schema.Struct<{
909
- sha256: typeof Schema.String;
910
- size: typeof Schema.Number;
911
- contentType: Schema.optionalWith<typeof Schema.String, {
912
- exact: true;
913
- }>;
914
- }>, import("convex/values").VObject<{
915
- sha256: string;
916
- size: number;
917
- contentType?: string;
918
- }, {
919
- sha256: import("convex/values").VString<string, "required">;
920
- size: import("convex/values").VFloat64<number, "required">;
921
- contentType: import("convex/values").VString<string | undefined, "optional">;
922
- }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<DatabaseSchema.Tables<Schema>, TableName>>)["searchIndexes"]>(indexName: IndexName, searchFilter: (q: import("convex/server").SearchFilterBuilder<(import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_scheduled_functions", Schema.Struct<{
923
- name: typeof Schema.String;
924
- args: Schema.Array$<typeof Schema.Any>;
925
- scheduledTime: typeof Schema.Number;
926
- completedTime: Schema.optionalWith<typeof Schema.Number, {
927
- exact: true;
928
- }>;
929
- state: Schema.Union<[Schema.Struct<{
930
- kind: Schema.Literal<["pending"]>;
931
- }>, Schema.Struct<{
932
- kind: Schema.Literal<["inProgress"]>;
933
- }>, Schema.Struct<{
934
- kind: Schema.Literal<["success"]>;
935
- }>, Schema.Struct<{
936
- kind: Schema.Literal<["failed"]>;
937
- error: typeof Schema.String;
938
- }>, Schema.Struct<{
939
- kind: Schema.Literal<["canceled"]>;
940
- }>]>;
941
- }>, import("convex/values").VObject<{
942
- name: string;
943
- args: any[];
944
- scheduledTime: number;
945
- state: {
946
- kind: "pending";
947
- } | {
948
- kind: "inProgress";
949
- } | {
950
- kind: "success";
951
- } | {
952
- kind: "failed";
953
- error: string;
954
- } | {
955
- kind: "canceled";
956
- };
957
- completedTime?: number;
958
- }, {
959
- name: import("convex/values").VString<string, "required">;
960
- args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
961
- scheduledTime: import("convex/values").VFloat64<number, "required">;
962
- state: import("convex/values").VUnion<{
963
- kind: "pending";
964
- } | {
965
- kind: "inProgress";
966
- } | {
967
- kind: "success";
968
- } | {
969
- kind: "failed";
970
- error: string;
971
- } | {
972
- kind: "canceled";
973
- }, [import("convex/values").VObject<{
974
- kind: "pending";
975
- }, {
976
- kind: import("convex/values").VLiteral<"pending", "required">;
977
- }, "required", "kind">, import("convex/values").VObject<{
978
- kind: "inProgress";
979
- }, {
980
- kind: import("convex/values").VLiteral<"inProgress", "required">;
981
- }, "required", "kind">, import("convex/values").VObject<{
982
- kind: "success";
983
- }, {
984
- kind: import("convex/values").VLiteral<"success", "required">;
985
- }, "required", "kind">, import("convex/values").VObject<{
986
- kind: "failed";
987
- error: string;
988
- }, {
989
- kind: import("convex/values").VLiteral<"failed", "required">;
990
- error: import("convex/values").VString<string, "required">;
991
- }, "required", "kind" | "error">, import("convex/values").VObject<{
992
- kind: "canceled";
993
- }, {
994
- kind: import("convex/values").VLiteral<"canceled", "required">;
995
- }, "required", "kind">], "required", "kind" | "error">;
996
- completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
997
- }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_storage", Schema.Struct<{
998
- sha256: typeof Schema.String;
999
- size: typeof Schema.Number;
1000
- contentType: Schema.optionalWith<typeof Schema.String, {
1001
- exact: true;
1002
- }>;
1003
- }>, import("convex/values").VObject<{
1004
- sha256: string;
1005
- size: number;
1006
- contentType?: string;
1007
- }, {
1008
- sha256: import("convex/values").VString<string, "required">;
1009
- size: import("convex/values").VFloat64<number, "required">;
1010
- contentType: import("convex/values").VString<string | undefined, "optional">;
1011
- }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<DatabaseSchema.Tables<Schema>, TableName>>)["convexDocument"], import("convex/server").NamedSearchIndex<DataModel.TableInfoWithName<DataModel.DataModel<import("./Table").SystemTables | DatabaseSchema.Tables<Schema>>, TableName>, IndexName>>) => import("convex/server").SearchFilter) => import("./OrderedQuery").OrderedQuery<import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_scheduled_functions", Schema.Struct<{
1012
- name: typeof Schema.String;
1013
- args: Schema.Array$<typeof Schema.Any>;
1014
- scheduledTime: typeof Schema.Number;
1015
- completedTime: Schema.optionalWith<typeof Schema.Number, {
1016
- exact: true;
1017
- }>;
1018
- state: Schema.Union<[Schema.Struct<{
1019
- kind: Schema.Literal<["pending"]>;
1020
- }>, Schema.Struct<{
1021
- kind: Schema.Literal<["inProgress"]>;
1022
- }>, Schema.Struct<{
1023
- kind: Schema.Literal<["success"]>;
1024
- }>, Schema.Struct<{
1025
- kind: Schema.Literal<["failed"]>;
1026
- error: typeof Schema.String;
1027
- }>, Schema.Struct<{
1028
- kind: Schema.Literal<["canceled"]>;
1029
- }>]>;
1030
- }>, import("convex/values").VObject<{
1031
- name: string;
1032
- args: any[];
1033
- scheduledTime: number;
1034
- state: {
1035
- kind: "pending";
1036
- } | {
1037
- kind: "inProgress";
1038
- } | {
1039
- kind: "success";
1040
- } | {
1041
- kind: "failed";
1042
- error: string;
1043
- } | {
1044
- kind: "canceled";
1045
- };
1046
- completedTime?: number;
1047
- }, {
1048
- name: import("convex/values").VString<string, "required">;
1049
- args: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
1050
- scheduledTime: import("convex/values").VFloat64<number, "required">;
1051
- state: import("convex/values").VUnion<{
1052
- kind: "pending";
1053
- } | {
1054
- kind: "inProgress";
1055
- } | {
1056
- kind: "success";
1057
- } | {
1058
- kind: "failed";
1059
- error: string;
1060
- } | {
1061
- kind: "canceled";
1062
- }, [import("convex/values").VObject<{
1063
- kind: "pending";
1064
- }, {
1065
- kind: import("convex/values").VLiteral<"pending", "required">;
1066
- }, "required", "kind">, import("convex/values").VObject<{
1067
- kind: "inProgress";
1068
- }, {
1069
- kind: import("convex/values").VLiteral<"inProgress", "required">;
1070
- }, "required", "kind">, import("convex/values").VObject<{
1071
- kind: "success";
1072
- }, {
1073
- kind: import("convex/values").VLiteral<"success", "required">;
1074
- }, "required", "kind">, import("convex/values").VObject<{
1075
- kind: "failed";
1076
- error: string;
1077
- }, {
1078
- kind: import("convex/values").VLiteral<"failed", "required">;
1079
- error: import("convex/values").VString<string, "required">;
1080
- }, "required", "kind" | "error">, import("convex/values").VObject<{
1081
- kind: "canceled";
1082
- }, {
1083
- kind: import("convex/values").VLiteral<"canceled", "required">;
1084
- }, "required", "kind">], "required", "kind" | "error">;
1085
- completedTime: import("convex/values").VFloat64<number | undefined, "optional">;
1086
- }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<import("./Table").Table<"_storage", Schema.Struct<{
1087
- sha256: typeof Schema.String;
1088
- size: typeof Schema.Number;
1089
- contentType: Schema.optionalWith<typeof Schema.String, {
1090
- exact: true;
1091
- }>;
1092
- }>, import("convex/values").VObject<{
1093
- sha256: string;
1094
- size: number;
1095
- contentType?: string;
1096
- }, {
1097
- sha256: import("convex/values").VString<string, "required">;
1098
- size: import("convex/values").VFloat64<number, "required">;
1099
- contentType: import("convex/values").VString<string | undefined, "optional">;
1100
- }, "required", "sha256" | "size" | "contentType">, {}, {}, {}>, TableName>> | import("./TableInfo").TableInfo<import("./Table").WithName<DatabaseSchema.Tables<Schema>, TableName>>, TableName>;
1101
- };
1102
- } | {
1103
- table: <const TableName extends DataModel.TableNames<DataModel.FromSchema<Schema>>>(tableName: TableName) => {
1104
- insert: (document: import("./Document").WithoutSystemFields<DataModel.DocumentByName<DataModel.FromSchema<Schema>, TableName>>) => Effect.Effect<import("convex/values").GenericId<TableName>, import("./Document").DocumentEncodeError, never>;
1105
- patch: (id: import("convex/values").GenericId<TableName>, patchedValues: Partial<import("convex/server").Expand<import("convex/server").BetterOmit<DataModel.DocumentByName<DataModel.FromSchema<Schema>, TableName>, "_creationTime" | "_id">>>) => Effect.Effect<void, import("./Document").DocumentDecodeError | import("./Document").DocumentEncodeError | import("./QueryInitializer").GetByIdFailure, never>;
1106
- replace: (id: import("convex/values").GenericId<TableName>, value: import("convex/server").Expand<import("convex/server").BetterOmit<DataModel.DocumentByName<DataModel.FromSchema<Schema>, TableName>, "_creationTime" | "_id">>) => Effect.Effect<void, import("./Document").DocumentEncodeError, never>;
1107
- delete: (id: import("convex/values").GenericId<TableName>) => Effect.Effect<void, never, never>;
1108
- };
1109
- }, never, never>;
21
+ } | StorageReader | StorageWriter | GenericMutationCtx<DataModel.ToConvex<DataModel.FromSchema<Schema>>> | DatabaseReader.DatabaseReaderService<Schema, {}> | DatabaseWriter.DatabaseWriterService<Schema, {}>, never, never>;
1110
22
  export type MutationServices<Schema extends DatabaseSchema.AnyWithProps> = DatabaseReader.DatabaseReader<Schema> | DatabaseWriter.DatabaseWriter<Schema> | Auth.Auth | Scheduler.Scheduler | StorageReader | StorageWriter | QueryRunner.QueryRunner | MutationRunner.MutationRunner | MutationCtx.MutationCtx<DataModel.ToConvex<DataModel.FromSchema<Schema>>>;
1111
23
  //# sourceMappingURL=RegisteredConvexFunction.d.ts.map