@confect/server 9.0.0-next.7 → 9.0.0-next.8

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 (159) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/ActionCtx.d.ts +1 -1
  3. package/dist/ActionCtx.js +1 -1
  4. package/dist/ActionCtx.js.map +1 -1
  5. package/dist/ActionRunner.d.ts +6 -4
  6. package/dist/ActionRunner.d.ts.map +1 -1
  7. package/dist/ActionRunner.js +4 -3
  8. package/dist/ActionRunner.js.map +1 -1
  9. package/dist/Auth.d.ts +5 -3
  10. package/dist/Auth.d.ts.map +1 -1
  11. package/dist/Auth.js +5 -1
  12. package/dist/Auth.js.map +1 -1
  13. package/dist/BlobNotFoundError.d.ts +1 -1
  14. package/dist/BlobNotFoundError.d.ts.map +1 -1
  15. package/dist/BlobNotFoundError.js +1 -1
  16. package/dist/BlobNotFoundError.js.map +1 -1
  17. package/dist/ConvexConfigProvider.d.ts +1 -1
  18. package/dist/ConvexConfigProvider.d.ts.map +1 -1
  19. package/dist/ConvexConfigProvider.js +6 -1
  20. package/dist/ConvexConfigProvider.js.map +1 -1
  21. package/dist/CronJob.d.ts +3 -3
  22. package/dist/CronJob.d.ts.map +1 -1
  23. package/dist/CronJob.js +1 -1
  24. package/dist/CronJob.js.map +1 -1
  25. package/dist/CronJobs.d.ts.map +1 -1
  26. package/dist/CronJobs.js +11 -4
  27. package/dist/CronJobs.js.map +1 -1
  28. package/dist/DatabaseReader.d.ts +436 -435
  29. package/dist/DatabaseReader.d.ts.map +1 -1
  30. package/dist/DatabaseReader.js +2 -1
  31. package/dist/DatabaseReader.js.map +1 -1
  32. package/dist/DatabaseSchema.js +1 -1
  33. package/dist/DatabaseSchema.js.map +1 -1
  34. package/dist/DatabaseWriter.d.ts +3 -1
  35. package/dist/DatabaseWriter.d.ts.map +1 -1
  36. package/dist/DatabaseWriter.js +5 -1
  37. package/dist/DatabaseWriter.js.map +1 -1
  38. package/dist/Document.d.ts +2 -1
  39. package/dist/Document.d.ts.map +1 -1
  40. package/dist/Document.js +5 -1
  41. package/dist/Document.js.map +1 -1
  42. package/dist/FunctionImpl.d.ts +2 -1
  43. package/dist/FunctionImpl.d.ts.map +1 -1
  44. package/dist/FunctionImpl.js +4 -1
  45. package/dist/FunctionImpl.js.map +1 -1
  46. package/dist/GroupImpl.d.ts +2 -1
  47. package/dist/GroupImpl.d.ts.map +1 -1
  48. package/dist/GroupImpl.js +9 -1
  49. package/dist/GroupImpl.js.map +1 -1
  50. package/dist/Handler.d.ts +2 -2
  51. package/dist/HttpApi.d.ts +4 -2
  52. package/dist/HttpApi.d.ts.map +1 -1
  53. package/dist/HttpApi.js +7 -2
  54. package/dist/HttpApi.js.map +1 -1
  55. package/dist/MutationCtx.d.ts +1 -1
  56. package/dist/MutationCtx.js +1 -1
  57. package/dist/MutationCtx.js.map +1 -1
  58. package/dist/MutationRunner.d.ts +6 -4
  59. package/dist/MutationRunner.d.ts.map +1 -1
  60. package/dist/MutationRunner.js +4 -3
  61. package/dist/MutationRunner.js.map +1 -1
  62. package/dist/OrderedQuery.d.ts +7 -5
  63. package/dist/OrderedQuery.d.ts.map +1 -1
  64. package/dist/OrderedQuery.js +4 -1
  65. package/dist/OrderedQuery.js.map +1 -1
  66. package/dist/QueryCtx.d.ts +1 -1
  67. package/dist/QueryCtx.js +1 -1
  68. package/dist/QueryCtx.js.map +1 -1
  69. package/dist/QueryInitializer.d.ts +2 -1
  70. package/dist/QueryInitializer.d.ts.map +1 -1
  71. package/dist/QueryInitializer.js +5 -1
  72. package/dist/QueryInitializer.js.map +1 -1
  73. package/dist/QueryRunner.d.ts +6 -4
  74. package/dist/QueryRunner.d.ts.map +1 -1
  75. package/dist/QueryRunner.js +4 -3
  76. package/dist/QueryRunner.js.map +1 -1
  77. package/dist/RegisteredConvexFunction.d.ts +117 -115
  78. package/dist/RegisteredConvexFunction.d.ts.map +1 -1
  79. package/dist/RegisteredConvexFunction.js +6 -1
  80. package/dist/RegisteredConvexFunction.js.map +1 -1
  81. package/dist/RegisteredFunction.d.ts +8 -6
  82. package/dist/RegisteredFunction.d.ts.map +1 -1
  83. package/dist/RegisteredFunction.js +5 -1
  84. package/dist/RegisteredFunction.js.map +1 -1
  85. package/dist/RegisteredFunctions.d.ts.map +1 -1
  86. package/dist/RegisteredFunctions.js +2 -1
  87. package/dist/RegisteredFunctions.js.map +1 -1
  88. package/dist/RegisteredNodeFunction.d.ts.map +1 -1
  89. package/dist/RegisteredNodeFunction.js +3 -2
  90. package/dist/RegisteredNodeFunction.js.map +1 -1
  91. package/dist/RegistryItem.js +1 -1
  92. package/dist/RegistryItem.js.map +1 -1
  93. package/dist/Scheduler.d.ts +12 -8
  94. package/dist/Scheduler.d.ts.map +1 -1
  95. package/dist/Scheduler.js +10 -6
  96. package/dist/Scheduler.js.map +1 -1
  97. package/dist/SchemaToValidator.d.ts +4 -1
  98. package/dist/SchemaToValidator.d.ts.map +1 -1
  99. package/dist/SchemaToValidator.js +13 -1
  100. package/dist/SchemaToValidator.js.map +1 -1
  101. package/dist/StorageActionWriter.d.ts +3 -2
  102. package/dist/StorageActionWriter.d.ts.map +1 -1
  103. package/dist/StorageActionWriter.js +4 -1
  104. package/dist/StorageActionWriter.js.map +1 -1
  105. package/dist/StorageReader.d.ts +3 -2
  106. package/dist/StorageReader.d.ts.map +1 -1
  107. package/dist/StorageReader.js +5 -1
  108. package/dist/StorageReader.js.map +1 -1
  109. package/dist/StorageWriter.d.ts +3 -2
  110. package/dist/StorageWriter.d.ts.map +1 -1
  111. package/dist/StorageWriter.js +4 -1
  112. package/dist/StorageWriter.js.map +1 -1
  113. package/dist/Table.d.ts +19 -19
  114. package/dist/Table.d.ts.map +1 -1
  115. package/dist/Table.js +2 -1
  116. package/dist/Table.js.map +1 -1
  117. package/dist/TableInfo.d.ts +1 -1
  118. package/dist/VectorSearch.d.ts +3 -1
  119. package/dist/VectorSearch.d.ts.map +1 -1
  120. package/dist/VectorSearch.js +3 -1
  121. package/dist/VectorSearch.js.map +1 -1
  122. package/dist/internal/utils.d.ts +3 -2
  123. package/dist/internal/utils.d.ts.map +1 -1
  124. package/dist/internal/utils.js +3 -1
  125. package/dist/internal/utils.js.map +1 -1
  126. package/package.json +2 -2
  127. package/src/ActionCtx.ts +1 -1
  128. package/src/ActionRunner.ts +2 -1
  129. package/src/Auth.ts +5 -1
  130. package/src/BlobNotFoundError.ts +1 -1
  131. package/src/ConvexConfigProvider.ts +6 -8
  132. package/src/CronJob.ts +1 -1
  133. package/src/CronJobs.ts +8 -10
  134. package/src/DatabaseReader.ts +2 -1
  135. package/src/DatabaseSchema.ts +1 -1
  136. package/src/DatabaseWriter.ts +5 -1
  137. package/src/Document.ts +5 -1
  138. package/src/FunctionImpl.ts +4 -1
  139. package/src/GroupImpl.ts +9 -11
  140. package/src/HttpApi.ts +8 -9
  141. package/src/MutationCtx.ts +1 -1
  142. package/src/MutationRunner.ts +2 -1
  143. package/src/OrderedQuery.ts +5 -1
  144. package/src/QueryCtx.ts +1 -1
  145. package/src/QueryInitializer.ts +5 -1
  146. package/src/QueryRunner.ts +2 -1
  147. package/src/RegisteredConvexFunction.ts +6 -1
  148. package/src/RegisteredFunction.ts +5 -1
  149. package/src/RegisteredFunctions.ts +3 -1
  150. package/src/RegisteredNodeFunction.ts +4 -2
  151. package/src/RegistryItem.ts +1 -1
  152. package/src/Scheduler.ts +5 -1
  153. package/src/SchemaToValidator.ts +14 -16
  154. package/src/StorageActionWriter.ts +4 -1
  155. package/src/StorageReader.ts +5 -1
  156. package/src/StorageWriter.ts +4 -1
  157. package/src/Table.ts +2 -1
  158. package/src/VectorSearch.ts +3 -1
  159. package/src/internal/utils.ts +3 -1
@@ -16,15 +16,17 @@ import { StorageReader as StorageReader$1 } from "./StorageReader.js";
16
16
  import { StorageWriter as StorageWriter$1 } from "./StorageWriter.js";
17
17
  import { Any } from "./RegisteredFunction.js";
18
18
  import { AnyWithProps as AnyWithProps$1 } from "./RegistryItem.js";
19
- import { Effect, Layer, Schema } from "effect";
20
19
  import * as _confect_core_Ref0 from "@confect/core/Ref";
21
20
  import * as convex_server0 from "convex/server";
22
21
  import { GenericMutationCtx } from "convex/server";
23
- import * as convex_values0 from "convex/values";
24
- import * as _confect_core_Types0 from "@confect/core/Types";
25
- import * as effect_ParseResult0 from "effect/ParseResult";
22
+ import * as Layer from "effect/Layer";
23
+ import * as Effect from "effect/Effect";
24
+ import "effect/Schema";
26
25
  import * as effect_Duration0 from "effect/Duration";
26
+ import * as effect_ParseResult0 from "effect/ParseResult";
27
+ import * as convex_values0 from "convex/values";
27
28
  import * as effect_DateTime0 from "effect/DateTime";
29
+ import * as _confect_core_Types0 from "@confect/core/Types";
28
30
 
29
31
  //#region src/RegisteredConvexFunction.d.ts
30
32
  declare namespace RegisteredConvexFunction_d_exports {
@@ -34,10 +36,10 @@ declare const make: (databaseSchema: AnyWithProps, {
34
36
  functionSpec,
35
37
  handler
36
38
  }: AnyWithProps$1) => Any;
37
- declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx: GenericMutationCtx<ToConvex<FromSchema<Schema>>>) => Layer.Layer<{
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>) | {
38
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>;
39
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>;
40
- } | Auth$1 | StorageReader$1 | StorageWriter$1 | (<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>) | (<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>) | GenericMutationCtx<ToConvex<FromSchema<Schema>>> | {
42
+ } | GenericMutationCtx<ToConvex<FromSchema<Schema>>> | {
41
43
  table: <const TableName extends "_storage" | "_scheduled_functions" | Name<Tables<Schema>>>(tableName: TableName) => {
42
44
  readonly get: {
43
45
  (id: convex_values0.GenericId<TableName>): Effect.Effect<(TableInfo<WithName<Tables<Schema>, TableName>> | TableInfo<WithName<Table<"_scheduled_functions", Schema.Struct<{
@@ -60,8 +62,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
60
62
  kind: Schema.Literal<["canceled"]>;
61
63
  }>]>;
62
64
  }>, convex_values0.VObject<{
63
- args: any[];
64
65
  name: string;
66
+ args: any[];
65
67
  scheduledTime: number;
66
68
  state: {
67
69
  kind: "pending";
@@ -70,15 +72,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
70
72
  } | {
71
73
  kind: "success";
72
74
  } | {
73
- error: string;
74
75
  kind: "failed";
76
+ error: string;
75
77
  } | {
76
78
  kind: "canceled";
77
79
  };
78
80
  completedTime?: number;
79
81
  }, {
80
- args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
81
82
  name: convex_values0.VString<string, "required">;
83
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
82
84
  scheduledTime: convex_values0.VFloat64<number, "required">;
83
85
  state: convex_values0.VUnion<{
84
86
  kind: "pending";
@@ -87,8 +89,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
87
89
  } | {
88
90
  kind: "success";
89
91
  } | {
90
- error: string;
91
92
  kind: "failed";
93
+ error: string;
92
94
  } | {
93
95
  kind: "canceled";
94
96
  }, [convex_values0.VObject<{
@@ -104,18 +106,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
104
106
  }, {
105
107
  kind: convex_values0.VLiteral<"success", "required">;
106
108
  }, "required", "kind">, convex_values0.VObject<{
107
- error: string;
108
109
  kind: "failed";
110
+ error: string;
109
111
  }, {
110
- error: convex_values0.VString<string, "required">;
111
112
  kind: convex_values0.VLiteral<"failed", "required">;
112
- }, "required", "error" | "kind">, convex_values0.VObject<{
113
+ error: convex_values0.VString<string, "required">;
114
+ }, "required", "kind" | "error">, convex_values0.VObject<{
113
115
  kind: "canceled";
114
116
  }, {
115
117
  kind: convex_values0.VLiteral<"canceled", "required">;
116
- }, "required", "kind">], "required", "error" | "kind">;
118
+ }, "required", "kind">], "required", "kind" | "error">;
117
119
  completedTime: convex_values0.VFloat64<number | undefined, "optional">;
118
- }, "required", "args" | "name" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
120
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
119
121
  sha256: typeof Schema.String;
120
122
  size: typeof Schema.Number;
121
123
  contentType: Schema.optionalWith<typeof Schema.String, {
@@ -150,8 +152,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
150
152
  kind: Schema.Literal<["canceled"]>;
151
153
  }>]>;
152
154
  }>, convex_values0.VObject<{
153
- args: any[];
154
155
  name: string;
156
+ args: any[];
155
157
  scheduledTime: number;
156
158
  state: {
157
159
  kind: "pending";
@@ -160,15 +162,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
160
162
  } | {
161
163
  kind: "success";
162
164
  } | {
163
- error: string;
164
165
  kind: "failed";
166
+ error: string;
165
167
  } | {
166
168
  kind: "canceled";
167
169
  };
168
170
  completedTime?: number;
169
171
  }, {
170
- args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
171
172
  name: convex_values0.VString<string, "required">;
173
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
172
174
  scheduledTime: convex_values0.VFloat64<number, "required">;
173
175
  state: convex_values0.VUnion<{
174
176
  kind: "pending";
@@ -177,8 +179,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
177
179
  } | {
178
180
  kind: "success";
179
181
  } | {
180
- error: string;
181
182
  kind: "failed";
183
+ error: string;
182
184
  } | {
183
185
  kind: "canceled";
184
186
  }, [convex_values0.VObject<{
@@ -194,18 +196,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
194
196
  }, {
195
197
  kind: convex_values0.VLiteral<"success", "required">;
196
198
  }, "required", "kind">, convex_values0.VObject<{
197
- error: string;
198
199
  kind: "failed";
200
+ error: string;
199
201
  }, {
200
- error: convex_values0.VString<string, "required">;
201
202
  kind: convex_values0.VLiteral<"failed", "required">;
202
- }, "required", "error" | "kind">, convex_values0.VObject<{
203
+ error: convex_values0.VString<string, "required">;
204
+ }, "required", "kind" | "error">, convex_values0.VObject<{
203
205
  kind: "canceled";
204
206
  }, {
205
207
  kind: convex_values0.VLiteral<"canceled", "required">;
206
- }, "required", "kind">], "required", "error" | "kind">;
208
+ }, "required", "kind">], "required", "kind" | "error">;
207
209
  completedTime: convex_values0.VFloat64<number | undefined, "optional">;
208
- }, "required", "args" | "name" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
210
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
209
211
  sha256: typeof Schema.String;
210
212
  size: typeof Schema.Number;
211
213
  contentType: Schema.optionalWith<typeof Schema.String, {
@@ -239,8 +241,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
239
241
  kind: Schema.Literal<["canceled"]>;
240
242
  }>]>;
241
243
  }>, convex_values0.VObject<{
242
- args: any[];
243
244
  name: string;
245
+ args: any[];
244
246
  scheduledTime: number;
245
247
  state: {
246
248
  kind: "pending";
@@ -249,15 +251,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
249
251
  } | {
250
252
  kind: "success";
251
253
  } | {
252
- error: string;
253
254
  kind: "failed";
255
+ error: string;
254
256
  } | {
255
257
  kind: "canceled";
256
258
  };
257
259
  completedTime?: number;
258
260
  }, {
259
- args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
260
261
  name: convex_values0.VString<string, "required">;
262
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
261
263
  scheduledTime: convex_values0.VFloat64<number, "required">;
262
264
  state: convex_values0.VUnion<{
263
265
  kind: "pending";
@@ -266,8 +268,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
266
268
  } | {
267
269
  kind: "success";
268
270
  } | {
269
- error: string;
270
271
  kind: "failed";
272
+ error: string;
271
273
  } | {
272
274
  kind: "canceled";
273
275
  }, [convex_values0.VObject<{
@@ -283,18 +285,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
283
285
  }, {
284
286
  kind: convex_values0.VLiteral<"success", "required">;
285
287
  }, "required", "kind">, convex_values0.VObject<{
286
- error: string;
287
288
  kind: "failed";
289
+ error: string;
288
290
  }, {
289
- error: convex_values0.VString<string, "required">;
290
291
  kind: convex_values0.VLiteral<"failed", "required">;
291
- }, "required", "error" | "kind">, convex_values0.VObject<{
292
+ error: convex_values0.VString<string, "required">;
293
+ }, "required", "kind" | "error">, convex_values0.VObject<{
292
294
  kind: "canceled";
293
295
  }, {
294
296
  kind: convex_values0.VLiteral<"canceled", "required">;
295
- }, "required", "kind">], "required", "error" | "kind">;
297
+ }, "required", "kind">], "required", "kind" | "error">;
296
298
  completedTime: convex_values0.VFloat64<number | undefined, "optional">;
297
- }, "required", "args" | "name" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
299
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
298
300
  sha256: typeof Schema.String;
299
301
  size: typeof Schema.Number;
300
302
  contentType: Schema.optionalWith<typeof Schema.String, {
@@ -328,8 +330,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
328
330
  kind: Schema.Literal<["canceled"]>;
329
331
  }>]>;
330
332
  }>, convex_values0.VObject<{
331
- args: any[];
332
333
  name: string;
334
+ args: any[];
333
335
  scheduledTime: number;
334
336
  state: {
335
337
  kind: "pending";
@@ -338,15 +340,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
338
340
  } | {
339
341
  kind: "success";
340
342
  } | {
341
- error: string;
342
343
  kind: "failed";
344
+ error: string;
343
345
  } | {
344
346
  kind: "canceled";
345
347
  };
346
348
  completedTime?: number;
347
349
  }, {
348
- args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
349
350
  name: convex_values0.VString<string, "required">;
351
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
350
352
  scheduledTime: convex_values0.VFloat64<number, "required">;
351
353
  state: convex_values0.VUnion<{
352
354
  kind: "pending";
@@ -355,8 +357,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
355
357
  } | {
356
358
  kind: "success";
357
359
  } | {
358
- error: string;
359
360
  kind: "failed";
361
+ error: string;
360
362
  } | {
361
363
  kind: "canceled";
362
364
  }, [convex_values0.VObject<{
@@ -372,18 +374,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
372
374
  }, {
373
375
  kind: convex_values0.VLiteral<"success", "required">;
374
376
  }, "required", "kind">, convex_values0.VObject<{
375
- error: string;
376
377
  kind: "failed";
378
+ error: string;
377
379
  }, {
378
- error: convex_values0.VString<string, "required">;
379
380
  kind: convex_values0.VLiteral<"failed", "required">;
380
- }, "required", "error" | "kind">, convex_values0.VObject<{
381
+ error: convex_values0.VString<string, "required">;
382
+ }, "required", "kind" | "error">, convex_values0.VObject<{
381
383
  kind: "canceled";
382
384
  }, {
383
385
  kind: convex_values0.VLiteral<"canceled", "required">;
384
- }, "required", "kind">], "required", "error" | "kind">;
386
+ }, "required", "kind">], "required", "kind" | "error">;
385
387
  completedTime: convex_values0.VFloat64<number | undefined, "optional">;
386
- }, "required", "args" | "name" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
388
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
387
389
  sha256: typeof Schema.String;
388
390
  size: typeof Schema.Number;
389
391
  contentType: Schema.optionalWith<typeof Schema.String, {
@@ -420,8 +422,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
420
422
  kind: Schema.Literal<["canceled"]>;
421
423
  }>]>;
422
424
  }>, convex_values0.VObject<{
423
- args: any[];
424
425
  name: string;
426
+ args: any[];
425
427
  scheduledTime: number;
426
428
  state: {
427
429
  kind: "pending";
@@ -430,15 +432,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
430
432
  } | {
431
433
  kind: "success";
432
434
  } | {
433
- error: string;
434
435
  kind: "failed";
436
+ error: string;
435
437
  } | {
436
438
  kind: "canceled";
437
439
  };
438
440
  completedTime?: number;
439
441
  }, {
440
- args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
441
442
  name: convex_values0.VString<string, "required">;
443
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
442
444
  scheduledTime: convex_values0.VFloat64<number, "required">;
443
445
  state: convex_values0.VUnion<{
444
446
  kind: "pending";
@@ -447,8 +449,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
447
449
  } | {
448
450
  kind: "success";
449
451
  } | {
450
- error: string;
451
452
  kind: "failed";
453
+ error: string;
452
454
  } | {
453
455
  kind: "canceled";
454
456
  }, [convex_values0.VObject<{
@@ -464,18 +466,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
464
466
  }, {
465
467
  kind: convex_values0.VLiteral<"success", "required">;
466
468
  }, "required", "kind">, convex_values0.VObject<{
467
- error: string;
468
469
  kind: "failed";
470
+ error: string;
469
471
  }, {
470
- error: convex_values0.VString<string, "required">;
471
472
  kind: convex_values0.VLiteral<"failed", "required">;
472
- }, "required", "error" | "kind">, convex_values0.VObject<{
473
+ error: convex_values0.VString<string, "required">;
474
+ }, "required", "kind" | "error">, convex_values0.VObject<{
473
475
  kind: "canceled";
474
476
  }, {
475
477
  kind: convex_values0.VLiteral<"canceled", "required">;
476
- }, "required", "kind">], "required", "error" | "kind">;
478
+ }, "required", "kind">], "required", "kind" | "error">;
477
479
  completedTime: convex_values0.VFloat64<number | undefined, "optional">;
478
- }, "required", "args" | "name" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
480
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
479
481
  sha256: typeof Schema.String;
480
482
  size: typeof Schema.Number;
481
483
  contentType: Schema.optionalWith<typeof Schema.String, {
@@ -509,8 +511,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
509
511
  kind: Schema.Literal<["canceled"]>;
510
512
  }>]>;
511
513
  }>, convex_values0.VObject<{
512
- args: any[];
513
514
  name: string;
515
+ args: any[];
514
516
  scheduledTime: number;
515
517
  state: {
516
518
  kind: "pending";
@@ -519,15 +521,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
519
521
  } | {
520
522
  kind: "success";
521
523
  } | {
522
- error: string;
523
524
  kind: "failed";
525
+ error: string;
524
526
  } | {
525
527
  kind: "canceled";
526
528
  };
527
529
  completedTime?: number;
528
530
  }, {
529
- args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
530
531
  name: convex_values0.VString<string, "required">;
532
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
531
533
  scheduledTime: convex_values0.VFloat64<number, "required">;
532
534
  state: convex_values0.VUnion<{
533
535
  kind: "pending";
@@ -536,8 +538,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
536
538
  } | {
537
539
  kind: "success";
538
540
  } | {
539
- error: string;
540
541
  kind: "failed";
542
+ error: string;
541
543
  } | {
542
544
  kind: "canceled";
543
545
  }, [convex_values0.VObject<{
@@ -553,18 +555,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
553
555
  }, {
554
556
  kind: convex_values0.VLiteral<"success", "required">;
555
557
  }, "required", "kind">, convex_values0.VObject<{
556
- error: string;
557
558
  kind: "failed";
559
+ error: string;
558
560
  }, {
559
- error: convex_values0.VString<string, "required">;
560
561
  kind: convex_values0.VLiteral<"failed", "required">;
561
- }, "required", "error" | "kind">, convex_values0.VObject<{
562
+ error: convex_values0.VString<string, "required">;
563
+ }, "required", "kind" | "error">, convex_values0.VObject<{
562
564
  kind: "canceled";
563
565
  }, {
564
566
  kind: convex_values0.VLiteral<"canceled", "required">;
565
- }, "required", "kind">], "required", "error" | "kind">;
567
+ }, "required", "kind">], "required", "kind" | "error">;
566
568
  completedTime: convex_values0.VFloat64<number | undefined, "optional">;
567
- }, "required", "args" | "name" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
569
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
568
570
  sha256: typeof Schema.String;
569
571
  size: typeof Schema.Number;
570
572
  contentType: Schema.optionalWith<typeof Schema.String, {
@@ -598,8 +600,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
598
600
  kind: Schema.Literal<["canceled"]>;
599
601
  }>]>;
600
602
  }>, convex_values0.VObject<{
601
- args: any[];
602
603
  name: string;
604
+ args: any[];
603
605
  scheduledTime: number;
604
606
  state: {
605
607
  kind: "pending";
@@ -608,15 +610,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
608
610
  } | {
609
611
  kind: "success";
610
612
  } | {
611
- error: string;
612
613
  kind: "failed";
614
+ error: string;
613
615
  } | {
614
616
  kind: "canceled";
615
617
  };
616
618
  completedTime?: number;
617
619
  }, {
618
- args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
619
620
  name: convex_values0.VString<string, "required">;
621
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
620
622
  scheduledTime: convex_values0.VFloat64<number, "required">;
621
623
  state: convex_values0.VUnion<{
622
624
  kind: "pending";
@@ -625,8 +627,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
625
627
  } | {
626
628
  kind: "success";
627
629
  } | {
628
- error: string;
629
630
  kind: "failed";
631
+ error: string;
630
632
  } | {
631
633
  kind: "canceled";
632
634
  }, [convex_values0.VObject<{
@@ -642,18 +644,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
642
644
  }, {
643
645
  kind: convex_values0.VLiteral<"success", "required">;
644
646
  }, "required", "kind">, convex_values0.VObject<{
645
- error: string;
646
647
  kind: "failed";
648
+ error: string;
647
649
  }, {
648
- error: convex_values0.VString<string, "required">;
649
650
  kind: convex_values0.VLiteral<"failed", "required">;
650
- }, "required", "error" | "kind">, convex_values0.VObject<{
651
+ error: convex_values0.VString<string, "required">;
652
+ }, "required", "kind" | "error">, convex_values0.VObject<{
651
653
  kind: "canceled";
652
654
  }, {
653
655
  kind: convex_values0.VLiteral<"canceled", "required">;
654
- }, "required", "kind">], "required", "error" | "kind">;
656
+ }, "required", "kind">], "required", "kind" | "error">;
655
657
  completedTime: convex_values0.VFloat64<number | undefined, "optional">;
656
- }, "required", "args" | "name" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
658
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
657
659
  sha256: typeof Schema.String;
658
660
  size: typeof Schema.Number;
659
661
  contentType: Schema.optionalWith<typeof Schema.String, {
@@ -688,8 +690,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
688
690
  kind: Schema.Literal<["canceled"]>;
689
691
  }>]>;
690
692
  }>, convex_values0.VObject<{
691
- args: any[];
692
693
  name: string;
694
+ args: any[];
693
695
  scheduledTime: number;
694
696
  state: {
695
697
  kind: "pending";
@@ -698,15 +700,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
698
700
  } | {
699
701
  kind: "success";
700
702
  } | {
701
- error: string;
702
703
  kind: "failed";
704
+ error: string;
703
705
  } | {
704
706
  kind: "canceled";
705
707
  };
706
708
  completedTime?: number;
707
709
  }, {
708
- args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
709
710
  name: convex_values0.VString<string, "required">;
711
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
710
712
  scheduledTime: convex_values0.VFloat64<number, "required">;
711
713
  state: convex_values0.VUnion<{
712
714
  kind: "pending";
@@ -715,8 +717,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
715
717
  } | {
716
718
  kind: "success";
717
719
  } | {
718
- error: string;
719
720
  kind: "failed";
721
+ error: string;
720
722
  } | {
721
723
  kind: "canceled";
722
724
  }, [convex_values0.VObject<{
@@ -732,18 +734,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
732
734
  }, {
733
735
  kind: convex_values0.VLiteral<"success", "required">;
734
736
  }, "required", "kind">, convex_values0.VObject<{
735
- error: string;
736
737
  kind: "failed";
738
+ error: string;
737
739
  }, {
738
- error: convex_values0.VString<string, "required">;
739
740
  kind: convex_values0.VLiteral<"failed", "required">;
740
- }, "required", "error" | "kind">, convex_values0.VObject<{
741
+ error: convex_values0.VString<string, "required">;
742
+ }, "required", "kind" | "error">, convex_values0.VObject<{
741
743
  kind: "canceled";
742
744
  }, {
743
745
  kind: convex_values0.VLiteral<"canceled", "required">;
744
- }, "required", "kind">], "required", "error" | "kind">;
746
+ }, "required", "kind">], "required", "kind" | "error">;
745
747
  completedTime: convex_values0.VFloat64<number | undefined, "optional">;
746
- }, "required", "args" | "name" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
748
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
747
749
  sha256: typeof Schema.String;
748
750
  size: typeof Schema.Number;
749
751
  contentType: Schema.optionalWith<typeof Schema.String, {
@@ -777,8 +779,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
777
779
  kind: Schema.Literal<["canceled"]>;
778
780
  }>]>;
779
781
  }>, convex_values0.VObject<{
780
- args: any[];
781
782
  name: string;
783
+ args: any[];
782
784
  scheduledTime: number;
783
785
  state: {
784
786
  kind: "pending";
@@ -787,15 +789,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
787
789
  } | {
788
790
  kind: "success";
789
791
  } | {
790
- error: string;
791
792
  kind: "failed";
793
+ error: string;
792
794
  } | {
793
795
  kind: "canceled";
794
796
  };
795
797
  completedTime?: number;
796
798
  }, {
797
- args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
798
799
  name: convex_values0.VString<string, "required">;
800
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
799
801
  scheduledTime: convex_values0.VFloat64<number, "required">;
800
802
  state: convex_values0.VUnion<{
801
803
  kind: "pending";
@@ -804,8 +806,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
804
806
  } | {
805
807
  kind: "success";
806
808
  } | {
807
- error: string;
808
809
  kind: "failed";
810
+ error: string;
809
811
  } | {
810
812
  kind: "canceled";
811
813
  }, [convex_values0.VObject<{
@@ -821,18 +823,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
821
823
  }, {
822
824
  kind: convex_values0.VLiteral<"success", "required">;
823
825
  }, "required", "kind">, convex_values0.VObject<{
824
- error: string;
825
826
  kind: "failed";
827
+ error: string;
826
828
  }, {
827
- error: convex_values0.VString<string, "required">;
828
829
  kind: convex_values0.VLiteral<"failed", "required">;
829
- }, "required", "error" | "kind">, convex_values0.VObject<{
830
+ error: convex_values0.VString<string, "required">;
831
+ }, "required", "kind" | "error">, convex_values0.VObject<{
830
832
  kind: "canceled";
831
833
  }, {
832
834
  kind: convex_values0.VLiteral<"canceled", "required">;
833
- }, "required", "kind">], "required", "error" | "kind">;
835
+ }, "required", "kind">], "required", "kind" | "error">;
834
836
  completedTime: convex_values0.VFloat64<number | undefined, "optional">;
835
- }, "required", "args" | "name" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
837
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
836
838
  sha256: typeof Schema.String;
837
839
  size: typeof Schema.Number;
838
840
  contentType: Schema.optionalWith<typeof Schema.String, {
@@ -868,8 +870,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
868
870
  kind: Schema.Literal<["canceled"]>;
869
871
  }>]>;
870
872
  }>, convex_values0.VObject<{
871
- args: any[];
872
873
  name: string;
874
+ args: any[];
873
875
  scheduledTime: number;
874
876
  state: {
875
877
  kind: "pending";
@@ -878,15 +880,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
878
880
  } | {
879
881
  kind: "success";
880
882
  } | {
881
- error: string;
882
883
  kind: "failed";
884
+ error: string;
883
885
  } | {
884
886
  kind: "canceled";
885
887
  };
886
888
  completedTime?: number;
887
889
  }, {
888
- args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
889
890
  name: convex_values0.VString<string, "required">;
891
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
890
892
  scheduledTime: convex_values0.VFloat64<number, "required">;
891
893
  state: convex_values0.VUnion<{
892
894
  kind: "pending";
@@ -895,8 +897,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
895
897
  } | {
896
898
  kind: "success";
897
899
  } | {
898
- error: string;
899
900
  kind: "failed";
901
+ error: string;
900
902
  } | {
901
903
  kind: "canceled";
902
904
  }, [convex_values0.VObject<{
@@ -912,18 +914,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
912
914
  }, {
913
915
  kind: convex_values0.VLiteral<"success", "required">;
914
916
  }, "required", "kind">, convex_values0.VObject<{
915
- error: string;
916
917
  kind: "failed";
918
+ error: string;
917
919
  }, {
918
- error: convex_values0.VString<string, "required">;
919
920
  kind: convex_values0.VLiteral<"failed", "required">;
920
- }, "required", "error" | "kind">, convex_values0.VObject<{
921
+ error: convex_values0.VString<string, "required">;
922
+ }, "required", "kind" | "error">, convex_values0.VObject<{
921
923
  kind: "canceled";
922
924
  }, {
923
925
  kind: convex_values0.VLiteral<"canceled", "required">;
924
- }, "required", "kind">], "required", "error" | "kind">;
926
+ }, "required", "kind">], "required", "kind" | "error">;
925
927
  completedTime: convex_values0.VFloat64<number | undefined, "optional">;
926
- }, "required", "args" | "name" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
928
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
927
929
  sha256: typeof Schema.String;
928
930
  size: typeof Schema.Number;
929
931
  contentType: Schema.optionalWith<typeof Schema.String, {
@@ -957,8 +959,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
957
959
  kind: Schema.Literal<["canceled"]>;
958
960
  }>]>;
959
961
  }>, convex_values0.VObject<{
960
- args: any[];
961
962
  name: string;
963
+ args: any[];
962
964
  scheduledTime: number;
963
965
  state: {
964
966
  kind: "pending";
@@ -967,15 +969,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
967
969
  } | {
968
970
  kind: "success";
969
971
  } | {
970
- error: string;
971
972
  kind: "failed";
973
+ error: string;
972
974
  } | {
973
975
  kind: "canceled";
974
976
  };
975
977
  completedTime?: number;
976
978
  }, {
977
- args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
978
979
  name: convex_values0.VString<string, "required">;
980
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
979
981
  scheduledTime: convex_values0.VFloat64<number, "required">;
980
982
  state: convex_values0.VUnion<{
981
983
  kind: "pending";
@@ -984,8 +986,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
984
986
  } | {
985
987
  kind: "success";
986
988
  } | {
987
- error: string;
988
989
  kind: "failed";
990
+ error: string;
989
991
  } | {
990
992
  kind: "canceled";
991
993
  }, [convex_values0.VObject<{
@@ -1001,18 +1003,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
1001
1003
  }, {
1002
1004
  kind: convex_values0.VLiteral<"success", "required">;
1003
1005
  }, "required", "kind">, convex_values0.VObject<{
1004
- error: string;
1005
1006
  kind: "failed";
1007
+ error: string;
1006
1008
  }, {
1007
- error: convex_values0.VString<string, "required">;
1008
1009
  kind: convex_values0.VLiteral<"failed", "required">;
1009
- }, "required", "error" | "kind">, convex_values0.VObject<{
1010
+ error: convex_values0.VString<string, "required">;
1011
+ }, "required", "kind" | "error">, convex_values0.VObject<{
1010
1012
  kind: "canceled";
1011
1013
  }, {
1012
1014
  kind: convex_values0.VLiteral<"canceled", "required">;
1013
- }, "required", "kind">], "required", "error" | "kind">;
1015
+ }, "required", "kind">], "required", "kind" | "error">;
1014
1016
  completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1015
- }, "required", "args" | "name" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
1017
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
1016
1018
  sha256: typeof Schema.String;
1017
1019
  size: typeof Schema.Number;
1018
1020
  contentType: Schema.optionalWith<typeof Schema.String, {
@@ -1046,8 +1048,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
1046
1048
  kind: Schema.Literal<["canceled"]>;
1047
1049
  }>]>;
1048
1050
  }>, convex_values0.VObject<{
1049
- args: any[];
1050
1051
  name: string;
1052
+ args: any[];
1051
1053
  scheduledTime: number;
1052
1054
  state: {
1053
1055
  kind: "pending";
@@ -1056,15 +1058,15 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
1056
1058
  } | {
1057
1059
  kind: "success";
1058
1060
  } | {
1059
- error: string;
1060
1061
  kind: "failed";
1062
+ error: string;
1061
1063
  } | {
1062
1064
  kind: "canceled";
1063
1065
  };
1064
1066
  completedTime?: number;
1065
1067
  }, {
1066
- args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1067
1068
  name: convex_values0.VString<string, "required">;
1069
+ args: convex_values0.VArray<any[], convex_values0.VAny<any, "required", string>, "required">;
1068
1070
  scheduledTime: convex_values0.VFloat64<number, "required">;
1069
1071
  state: convex_values0.VUnion<{
1070
1072
  kind: "pending";
@@ -1073,8 +1075,8 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
1073
1075
  } | {
1074
1076
  kind: "success";
1075
1077
  } | {
1076
- error: string;
1077
1078
  kind: "failed";
1079
+ error: string;
1078
1080
  } | {
1079
1081
  kind: "canceled";
1080
1082
  }, [convex_values0.VObject<{
@@ -1090,18 +1092,18 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
1090
1092
  }, {
1091
1093
  kind: convex_values0.VLiteral<"success", "required">;
1092
1094
  }, "required", "kind">, convex_values0.VObject<{
1093
- error: string;
1094
1095
  kind: "failed";
1096
+ error: string;
1095
1097
  }, {
1096
- error: convex_values0.VString<string, "required">;
1097
1098
  kind: convex_values0.VLiteral<"failed", "required">;
1098
- }, "required", "error" | "kind">, convex_values0.VObject<{
1099
+ error: convex_values0.VString<string, "required">;
1100
+ }, "required", "kind" | "error">, convex_values0.VObject<{
1099
1101
  kind: "canceled";
1100
1102
  }, {
1101
1103
  kind: convex_values0.VLiteral<"canceled", "required">;
1102
- }, "required", "kind">], "required", "error" | "kind">;
1104
+ }, "required", "kind">], "required", "kind" | "error">;
1103
1105
  completedTime: convex_values0.VFloat64<number | undefined, "optional">;
1104
- }, "required", "args" | "name" | "scheduledTime" | "completedTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
1106
+ }, "required", "name" | "args" | "scheduledTime" | "completedTime" | "state" | "state.kind" | "state.error">, {}, {}, {}>, TableName>> | TableInfo<WithName<Table<"_storage", Schema.Struct<{
1105
1107
  sha256: typeof Schema.String;
1106
1108
  size: typeof Schema.Number;
1107
1109
  contentType: Schema.optionalWith<typeof Schema.String, {
@@ -1124,7 +1126,7 @@ declare const mutationLayer: <Schema extends AnyWithProps>(schema: Schema, ctx:
1124
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>;
1125
1127
  delete: (id: convex_values0.GenericId<TableName>) => Effect.Effect<void, never, never>;
1126
1128
  };
1127
- }, never, never>;
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>;
1128
1130
  type MutationServices<Schema extends AnyWithProps> = DatabaseReader<Schema> | DatabaseWriter<Schema> | Auth$1 | Scheduler$1 | StorageReader$1 | StorageWriter$1 | QueryRunner | MutationRunner | MutationCtx<ToConvex<FromSchema<Schema>>>;
1129
1131
  //#endregion
1130
1132
  export { MutationServices, RegisteredConvexFunction_d_exports, make, mutationLayer };