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