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