@confect/server 9.0.0-next.0 → 9.0.0-next.10

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