kitcn 0.12.5 → 0.12.7
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.
- package/dist/aggregate/index.d.ts +1 -1
- package/dist/auth/generated/index.d.ts +1 -1
- package/dist/auth/index.d.ts +15 -15
- package/dist/auth/start/index.d.ts +1 -0
- package/dist/auth/start/index.js +1 -0
- package/dist/cli.mjs +837 -31
- package/dist/{codegen-lF80HSWu.mjs → codegen-B60fOYhd.mjs} +17 -13
- package/dist/crpc/index.d.ts +1 -1
- package/dist/{generated-contract-disabled-D-sOFy92.d.ts → generated-contract-disabled-Cf7sqlVD.d.ts} +30 -30
- package/dist/orm/index.d.ts +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/ratelimit/index.d.ts +1 -1
- package/dist/rsc/index.d.ts +1 -1
- package/dist/watcher.mjs +1 -1
- package/dist/{where-clause-compiler-1H1v2Cai.d.ts → where-clause-compiler-ner2TQ3O.d.ts} +80 -80
- package/package.json +2 -1
- package/skills/convex/references/features/auth.md +1 -1
- package/skills/convex/references/setup/start.md +61 -18
- /package/dist/{middleware-BUybuv9n.d.ts → middleware-BL2wn3s0.d.ts} +0 -0
- /package/dist/{types-HhO_R6pd.d.ts → types-BLvtq_eH.d.ts} +0 -0
|
@@ -2532,6 +2532,13 @@ function emitGeneratedMigrationsPlaceholderFile() {
|
|
|
2532
2532
|
export { defineMigration } from 'kitcn/orm';
|
|
2533
2533
|
`;
|
|
2534
2534
|
}
|
|
2535
|
+
function writeFileIfChanged(filePath, content) {
|
|
2536
|
+
if (fs.existsSync(filePath)) {
|
|
2537
|
+
if (fs.readFileSync(filePath, "utf8") === content) return false;
|
|
2538
|
+
}
|
|
2539
|
+
fs.writeFileSync(filePath, content);
|
|
2540
|
+
return true;
|
|
2541
|
+
}
|
|
2535
2542
|
function ensureGeneratedSupportPlaceholders(functionsDir, options) {
|
|
2536
2543
|
const createdPlaceholderFiles = [];
|
|
2537
2544
|
const serverOutputFile = getGeneratedServerOutputFile(functionsDir);
|
|
@@ -2541,15 +2548,15 @@ function ensureGeneratedSupportPlaceholders(functionsDir, options) {
|
|
|
2541
2548
|
fs.mkdirSync(generatedDir, { recursive: true });
|
|
2542
2549
|
const includeAuth = options?.includeAuth ?? true;
|
|
2543
2550
|
if (!fs.existsSync(serverOutputFile)) {
|
|
2544
|
-
|
|
2551
|
+
writeFileIfChanged(serverOutputFile, emitGeneratedServerPlaceholderFile());
|
|
2545
2552
|
createdPlaceholderFiles.push(serverOutputFile);
|
|
2546
2553
|
}
|
|
2547
2554
|
if (includeAuth && !fs.existsSync(authOutputFile)) {
|
|
2548
|
-
|
|
2555
|
+
writeFileIfChanged(authOutputFile, emitGeneratedAuthPlaceholderFile());
|
|
2549
2556
|
createdPlaceholderFiles.push(authOutputFile);
|
|
2550
2557
|
}
|
|
2551
2558
|
if (!fs.existsSync(migrationsHelperOutputFile)) {
|
|
2552
|
-
|
|
2559
|
+
writeFileIfChanged(migrationsHelperOutputFile, emitGeneratedMigrationsPlaceholderFile());
|
|
2553
2560
|
createdPlaceholderFiles.push(migrationsHelperOutputFile);
|
|
2554
2561
|
}
|
|
2555
2562
|
return createdPlaceholderFiles;
|
|
@@ -2576,7 +2583,7 @@ function ensureGeneratedRuntimePlaceholders(functionsDir, moduleNames, runtimeEx
|
|
|
2576
2583
|
if (fs.existsSync(runtimeOutputFile)) continue;
|
|
2577
2584
|
const exportNames = runtimeExportNames.get(moduleName) ?? getModuleRuntimeExportNames(moduleName);
|
|
2578
2585
|
fs.mkdirSync(path.dirname(runtimeOutputFile), { recursive: true });
|
|
2579
|
-
|
|
2586
|
+
writeFileIfChanged(runtimeOutputFile, emitGeneratedRuntimePlaceholderFile(exportNames));
|
|
2580
2587
|
createdPlaceholderFiles.push(runtimeOutputFile);
|
|
2581
2588
|
}
|
|
2582
2589
|
return createdPlaceholderFiles;
|
|
@@ -3340,23 +3347,20 @@ ${optionalTypeExports}
|
|
|
3340
3347
|
`;
|
|
3341
3348
|
const outputDirname = path.dirname(outputFile);
|
|
3342
3349
|
if (!fs.existsSync(outputDirname)) fs.mkdirSync(outputDirname, { recursive: true });
|
|
3343
|
-
|
|
3350
|
+
writeFileIfChanged(outputFile, output);
|
|
3344
3351
|
} else fs.rmSync(outputFile, { force: true });
|
|
3345
3352
|
const serverOutput = emitGeneratedServerFile(serverOutputFile, functionsDir, hasOrmSchema, hasMigrationsManifest);
|
|
3346
3353
|
const generatedOutputDirname = path.dirname(serverOutputFile);
|
|
3347
3354
|
if (!fs.existsSync(generatedOutputDirname)) fs.mkdirSync(generatedOutputDirname, { recursive: true });
|
|
3348
|
-
|
|
3355
|
+
writeFileIfChanged(serverOutputFile, serverOutput);
|
|
3349
3356
|
fs.rmSync(ormOutputFile, { force: true });
|
|
3350
3357
|
fs.rmSync(crpcOutputFile, { force: true });
|
|
3351
|
-
|
|
3352
|
-
fs.writeFileSync(migrationsHelperOutputFile, migrationsOutput);
|
|
3358
|
+
writeFileIfChanged(migrationsHelperOutputFile, emitGeneratedMigrationsFile(migrationsHelperOutputFile, functionsDir, hasRelationsMetadata));
|
|
3353
3359
|
fs.rmSync(legacyGeneratedMigrationsOutputFile, { force: true });
|
|
3354
3360
|
fs.rmSync(legacyGeneratedMigrationsRuntimeOutputFile, { force: true });
|
|
3355
3361
|
fs.rmSync(legacyGeneratedMigrationsUnderscoreOutputFile, { force: true });
|
|
3356
|
-
if (generateAuth)
|
|
3357
|
-
|
|
3358
|
-
fs.writeFileSync(authOutputFile, authOutput);
|
|
3359
|
-
} else fs.rmSync(authOutputFile, { force: true });
|
|
3362
|
+
if (generateAuth) writeFileIfChanged(authOutputFile, emitGeneratedAuthFile(authOutputFile, functionsDir, hasOrmSchema, authContract));
|
|
3363
|
+
else fs.rmSync(authOutputFile, { force: true });
|
|
3360
3364
|
fs.rmSync(getLegacyGeneratedOutputFile(functionsDir), { force: true });
|
|
3361
3365
|
const mergedProcedureEntries = dedupeProcedureEntries([
|
|
3362
3366
|
...hasOrmSchema ? buildGeneratedOrmRuntimeProcedureEntries("generated/server") : [],
|
|
@@ -3379,7 +3383,7 @@ ${optionalTypeExports}
|
|
|
3379
3383
|
const runtimeOutputFile = getGeneratedRuntimeOutputFile(functionsDir, moduleName);
|
|
3380
3384
|
const runtimeOutput = emitGeneratedModuleRuntimeFile(runtimeOutputFile, functionsDir, moduleName, moduleEntries, runtimeExportNames);
|
|
3381
3385
|
fs.mkdirSync(path.dirname(runtimeOutputFile), { recursive: true });
|
|
3382
|
-
|
|
3386
|
+
writeFileIfChanged(runtimeOutputFile, runtimeOutput);
|
|
3383
3387
|
runtimeOutputFiles.push(runtimeOutputFile);
|
|
3384
3388
|
}
|
|
3385
3389
|
const runtimeOutputFileSet = new Set(runtimeOutputFiles);
|
package/dist/crpc/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as DataTransformer, F as decodeWire, I as defaultCRPCTransformer, L as encodeWire, M as WireCodec, N as createTaggedTransformer, O as CombinedDataTransformer, P as dateWireCodec, R as getTransformer, a as HttpProcedureCall, c as InferHttpInput, i as HttpErrorCode, j as DataTransformerOptions, k as DATE_CODEC_TAG, l as InferHttpOutput, n as HttpClientError, o as HttpRouteInfo, r as HttpClientFromRouter, s as HttpRouteMap, t as HttpClient, u as isHttpClientError, z as identityTransformer } from "../http-types-DqJubRPJ.js";
|
|
2
|
-
import { A as HttpInputArgs, C as ReservedMutationOptions, D as VanillaMutation, E as VanillaAction, F as replaceUrlParam, M as RESERVED_KEYS, N as buildSearchParams, O as HttpClientOptions, P as executeHttpRequest, S as ReservedInfiniteQueryOptions, T as StaticQueryOptsParam, _ as IsPaginated, a as BaseInfiniteQueryOptsParam, b as PaginatedFnMeta, c as ConvexMutationKey, d as ConvexQueryMeta, f as EmptyObject, g as InfiniteQueryInput, h as FnMeta, i as BaseConvexQueryOptions, j as HttpProxyBaseOptions, k as HttpFormValue, l as ConvexQueryHookOptions, m as FUNC_REF_SYMBOL, n as BaseConvexActionOptions, o as ConvexActionKey, p as ExtractPaginatedItem, r as BaseConvexInfiniteQueryOptions, s as ConvexInfiniteQueryMeta, t as AuthType, u as ConvexQueryKey, v as Meta, w as ReservedQueryOptions, x as PaginationOpts, y as MutationVariables } from "../types-
|
|
2
|
+
import { A as HttpInputArgs, C as ReservedMutationOptions, D as VanillaMutation, E as VanillaAction, F as replaceUrlParam, M as RESERVED_KEYS, N as buildSearchParams, O as HttpClientOptions, P as executeHttpRequest, S as ReservedInfiniteQueryOptions, T as StaticQueryOptsParam, _ as IsPaginated, a as BaseInfiniteQueryOptsParam, b as PaginatedFnMeta, c as ConvexMutationKey, d as ConvexQueryMeta, f as EmptyObject, g as InfiniteQueryInput, h as FnMeta, i as BaseConvexQueryOptions, j as HttpProxyBaseOptions, k as HttpFormValue, l as ConvexQueryHookOptions, m as FUNC_REF_SYMBOL, n as BaseConvexActionOptions, o as ConvexActionKey, p as ExtractPaginatedItem, r as BaseConvexInfiniteQueryOptions, s as ConvexInfiniteQueryMeta, t as AuthType, u as ConvexQueryKey, v as Meta, w as ReservedQueryOptions, x as PaginationOpts, y as MutationVariables } from "../types-BLvtq_eH.js";
|
|
3
3
|
import { FunctionArgs, FunctionReference } from "convex/server";
|
|
4
4
|
|
|
5
5
|
//#region src/crpc/auth-error.d.ts
|
package/dist/{generated-contract-disabled-D-sOFy92.d.ts → generated-contract-disabled-Cf7sqlVD.d.ts}
RENAMED
|
@@ -173,10 +173,18 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
173
173
|
};
|
|
174
174
|
}, Promise<any>>;
|
|
175
175
|
deleteMany: convex_server0.RegisteredMutation<"internal", {
|
|
176
|
+
paginationOpts: {
|
|
177
|
+
id?: number;
|
|
178
|
+
endCursor?: string | null;
|
|
179
|
+
maximumRowsRead?: number;
|
|
180
|
+
maximumBytesRead?: number;
|
|
181
|
+
numItems: number;
|
|
182
|
+
cursor: string | null;
|
|
183
|
+
};
|
|
176
184
|
input: {
|
|
177
185
|
where?: {
|
|
186
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
178
187
|
connector?: "AND" | "OR" | undefined;
|
|
179
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
180
188
|
value: string | number | boolean | string[] | number[] | null;
|
|
181
189
|
field: string;
|
|
182
190
|
}[] | undefined;
|
|
@@ -185,14 +193,6 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
185
193
|
where?: any[] | undefined;
|
|
186
194
|
model: string;
|
|
187
195
|
};
|
|
188
|
-
paginationOpts: {
|
|
189
|
-
id?: number;
|
|
190
|
-
endCursor?: string | null;
|
|
191
|
-
maximumRowsRead?: number;
|
|
192
|
-
maximumBytesRead?: number;
|
|
193
|
-
numItems: number;
|
|
194
|
-
cursor: string | null;
|
|
195
|
-
};
|
|
196
196
|
}, Promise<{
|
|
197
197
|
count: number;
|
|
198
198
|
ids: any[];
|
|
@@ -204,8 +204,8 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
204
204
|
deleteOne: convex_server0.RegisteredMutation<"internal", {
|
|
205
205
|
input: {
|
|
206
206
|
where?: {
|
|
207
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
207
208
|
connector?: "AND" | "OR" | undefined;
|
|
208
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
209
209
|
value: string | number | boolean | string[] | number[] | null;
|
|
210
210
|
field: string;
|
|
211
211
|
}[] | undefined;
|
|
@@ -216,20 +216,19 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
216
216
|
};
|
|
217
217
|
}, Promise<Record<string, unknown> | undefined>>;
|
|
218
218
|
findMany: convex_server0.RegisteredQuery<"internal", {
|
|
219
|
+
limit?: number | undefined;
|
|
219
220
|
join?: any;
|
|
220
221
|
where?: {
|
|
222
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
221
223
|
connector?: "AND" | "OR" | undefined;
|
|
222
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
223
224
|
value: string | number | boolean | string[] | number[] | null;
|
|
224
225
|
field: string;
|
|
225
226
|
}[] | undefined;
|
|
226
|
-
limit?: number | undefined;
|
|
227
227
|
offset?: number | undefined;
|
|
228
228
|
sortBy?: {
|
|
229
|
-
field: string;
|
|
230
229
|
direction: "asc" | "desc";
|
|
230
|
+
field: string;
|
|
231
231
|
} | undefined;
|
|
232
|
-
model: string;
|
|
233
232
|
paginationOpts: {
|
|
234
233
|
id?: number;
|
|
235
234
|
endCursor?: string | null;
|
|
@@ -238,46 +237,47 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
238
237
|
numItems: number;
|
|
239
238
|
cursor: string | null;
|
|
240
239
|
};
|
|
240
|
+
model: string;
|
|
241
241
|
}, Promise<convex_server0.PaginationResult<convex_server0.GenericDocument>>>;
|
|
242
242
|
findOne: convex_server0.RegisteredQuery<"internal", {
|
|
243
243
|
join?: any;
|
|
244
|
-
select?: string[] | undefined;
|
|
245
244
|
where?: {
|
|
245
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
246
246
|
connector?: "AND" | "OR" | undefined;
|
|
247
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
248
247
|
value: string | number | boolean | string[] | number[] | null;
|
|
249
248
|
field: string;
|
|
250
249
|
}[] | undefined;
|
|
250
|
+
select?: string[] | undefined;
|
|
251
251
|
model: string;
|
|
252
252
|
}, Promise<convex_server0.GenericDocument | null>>;
|
|
253
253
|
getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
254
254
|
rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
255
255
|
updateMany: convex_server0.RegisteredMutation<"internal", {
|
|
256
|
+
paginationOpts: {
|
|
257
|
+
id?: number;
|
|
258
|
+
endCursor?: string | null;
|
|
259
|
+
maximumRowsRead?: number;
|
|
260
|
+
maximumBytesRead?: number;
|
|
261
|
+
numItems: number;
|
|
262
|
+
cursor: string | null;
|
|
263
|
+
};
|
|
256
264
|
input: {
|
|
257
265
|
where?: {
|
|
266
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
258
267
|
connector?: "AND" | "OR" | undefined;
|
|
259
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
260
268
|
value: string | number | boolean | string[] | number[] | null;
|
|
261
269
|
field: string;
|
|
262
270
|
}[] | undefined;
|
|
263
|
-
model: string;
|
|
264
271
|
update: {
|
|
265
272
|
[x: string]: unknown;
|
|
266
273
|
[x: number]: unknown;
|
|
267
274
|
[x: symbol]: unknown;
|
|
268
275
|
};
|
|
276
|
+
model: string;
|
|
269
277
|
} | {
|
|
270
278
|
where?: any[] | undefined;
|
|
271
|
-
model: string;
|
|
272
279
|
update: any;
|
|
273
|
-
|
|
274
|
-
paginationOpts: {
|
|
275
|
-
id?: number;
|
|
276
|
-
endCursor?: string | null;
|
|
277
|
-
maximumRowsRead?: number;
|
|
278
|
-
maximumBytesRead?: number;
|
|
279
|
-
numItems: number;
|
|
280
|
-
cursor: string | null;
|
|
280
|
+
model: string;
|
|
281
281
|
};
|
|
282
282
|
}, Promise<{
|
|
283
283
|
count: number;
|
|
@@ -290,21 +290,21 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
290
290
|
updateOne: convex_server0.RegisteredMutation<"internal", {
|
|
291
291
|
input: {
|
|
292
292
|
where?: {
|
|
293
|
+
operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
293
294
|
connector?: "AND" | "OR" | undefined;
|
|
294
|
-
operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined;
|
|
295
295
|
value: string | number | boolean | string[] | number[] | null;
|
|
296
296
|
field: string;
|
|
297
297
|
}[] | undefined;
|
|
298
|
-
model: string;
|
|
299
298
|
update: {
|
|
300
299
|
[x: string]: unknown;
|
|
301
300
|
[x: number]: unknown;
|
|
302
301
|
[x: symbol]: unknown;
|
|
303
302
|
};
|
|
303
|
+
model: string;
|
|
304
304
|
} | {
|
|
305
305
|
where?: any[] | undefined;
|
|
306
|
-
model: string;
|
|
307
306
|
update: any;
|
|
307
|
+
model: string;
|
|
308
308
|
};
|
|
309
309
|
}, Promise<any>>;
|
|
310
310
|
};
|
package/dist/orm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GenericOrmCtx$1, $n as unique, $r as endsWith, $t as ManyConfig, A as ConvexDateMode, An as ConvexRankIndexBuilder, Ar as ReturningResult, At as MigrationManifestEntry, B as ConvexBytesBuilderInitial, Bn as rankIndex, Br as OrmSchemaRelations, Bt as defineMigration, C as ConvexNumberBuilderInitial, Ci as ColumnBuilderWithTableName, Cn as RlsRole, Cr as MutationReturning, Ct as MigrationStatusArgs, D as id, Di as IsPrimaryKey, Dn as ConvexAggregateIndexBuilderOn, Dr as PaginatedResult, Dt as MigrationDoc, E as ConvexIdBuilderInitial, Ei as HasDefault, En as ConvexAggregateIndexBuilder, Er as OrderDirection, Et as MigrationDirection, F as custom, Fn as ConvexVectorIndexBuilder, Fr as unsetToken, Ft as MigrationStateMap, G as ConvexBigIntBuilder, Gn as ConvexCheckConfig, Gr as ExpressionVisitor, Gt as OrmReader$1, H as ConvexBooleanBuilder, Hn as uniqueIndex, Hr as TableName, Ht as detectMigrationDrift, I as json, In as ConvexVectorIndexBuilderOn, Ir as Brand, It as MigrationStep, J as CountBackfillChunkArgs, Jn as ConvexUniqueConstraintBuilder, Jr as LogicalExpression, Jt as RlsMode, K as ConvexBigIntBuilderInitial, Kn as ConvexForeignKeyBuilder, Kr as FieldReference, Kt as OrmWriter$1, L as objectOf, Ln as ConvexVectorIndexConfig, Lr as Columns, Lt as MigrationTableName, M as ConvexCustomBuilder, Mn as ConvexSearchIndexBuilder, Mr as UpdateSet, Mt as MigrationPlan, N as ConvexCustomBuilderInitial, Nn as ConvexSearchIndexBuilderOn, Nr as VectorQueryConfig, Nt as MigrationRunStatus, O as ConvexDateBuilder, Oi as IsUnique, On as ConvexIndexBuilder, Or as PredicateWhereIndexConfig, Ot as MigrationDocContext, P as arrayOf, Pn as ConvexSearchIndexConfig, Pr as VectorSearchProvider, Pt as MigrationSet, Q as GenericOrm$1, Qn as foreignKey, Qr as contains, Qt as ExtractTablesWithRelations, R as unionOf, Rn as aggregateIndex, Rr as OrmSchemaExtensionTables, Rt as MigrationWriteMode, S as ConvexNumberBuilder, Si as ColumnBuilderTypeConfig, Sn as rlsPolicy, Sr as MutationResult, St as MigrationRunChunkArgs, T as ConvexIdBuilder, Ti as DrizzleEntity, Tn as rlsRole, Tr as OrderByClause, Tt as MigrationDefinition, U as ConvexBooleanBuilderInitial, Un as vectorIndex, Ur as SystemFields, Ut as DatabaseWithMutations, V as bytes, Vn as searchIndex, Vr as OrmSchemaTriggers, Vt as defineMigrationSet, W as boolean, Wn as ConvexCheckBuilder, Wr as BinaryExpression, Wt as DatabaseWithQuery, X as CountBackfillStatusArgs, Xn as ConvexUniqueConstraintConfig, Xr as and, Xt as extractRelationsConfig, Y as CountBackfillKickoffArgs, Yn as ConvexUniqueConstraintBuilderOn, Yr as UnaryExpression, Yt as EdgeMetadata, Z as CreateOrmOptions, Zn as check, Zr as between, Zt as ExtractTablesFromSchema, _ as ConvexTimestampMode, _i as startsWith, _n as deletion, _r as MutationExecuteConfig, _t as OrmTriggerContext, a as requireSchemaRelations, ai as inArray, an as TablesRelationalConfig, ar as AggregateResult, at as OrmWriterCtx, b as ConvexTextEnumBuilderInitial, bi as ColumnBuilderBaseConfig, bn as RlsPolicyConfig, br as MutationPaginateConfig, bt as MigrationCancelArgs, c as TableConfigResult, ci as isNull, cn as ConvexDeletionBuilder, cr as CountConfig, ct as ScheduledMutationBatchArgs, d as OrmNotFoundError, di as lte, dn as ConvexTableWithColumns, dr as FilterOperators, dt as scheduledDeleteFactory, ei as eq, en as OneConfig, er as ConvexTextBuilder, et as OrmApiResult, f as ConvexVectorBuilder, fi as ne, fn as DiscriminatorBuilderConfig, fr as GetColumnData, ft as SchemaExtension, g as ConvexTimestampBuilderInitial, gi as or, gn as convexTable, gr as InsertValue, gt as OrmTriggerChange, h as ConvexTimestampBuilder, hi as notInArray, hn as TableConfig, hr as InferSelectModel, ht as OrmTableTriggers, i as getSchemaTriggers, ii as ilike, in as TableRelationalConfig, ir as AggregateFieldValue, it as OrmReaderCtx, j as date, jn as ConvexRankIndexBuilderOn, jr as ReturningSelection, jt as MigrationMigrateOne, k as ConvexDateBuilderInitial, ki as NotNull, kn as ConvexIndexBuilderOn, kr as ReturningAll, kt as MigrationDriftIssue, l as getTableColumns, li as like, ln as ConvexDeletionConfig, lr as CountResult, lt as scheduledMutationBatchFactory, m as vector, mi as notBetween, mn as OrmLifecycleOperation, mr as InferModelFromColumns, mt as OrmBeforeResult, n as defineSchema, ni as gt, nn as RelationsBuilderColumnBase, nr as text, nt as OrmClientWithApi$1, o as asc, oi as isFieldReference, on as defineRelations, or as BuildQueryResult, ot as ResolveOrmSchema, p as ConvexVectorBuilderInitial, pi as not, pn as OrmLifecycleChange, pr as InferInsertModel, pt as defineSchemaExtension, q as bigint, qn as ConvexForeignKeyConfig, qr as FilterExpression, qt as RlsContext, r as getSchemaRelations, ri as gte, rn as RelationsBuilderColumnConfig, rr as AggregateConfig, rt as OrmFunctions, s as desc, si as isNotNull, sn as defineRelationsPart, sr as BuildRelationResult, st as createOrm, t as WhereClauseResult, ti as fieldRef, tn as RelationsBuilder, tr as ConvexTextBuilderInitial, tt as OrmClientBase$1, u as getTableConfig, ui as lt, un as ConvexTable, ur as DBQueryConfig, ut as ScheduledDeleteArgs, v as timestamp, vi as AnyColumn, vn as discriminator, vr as MutationExecuteResult, vt as OrmTriggers, w as integer, wi as ColumnDataType, wn as RlsRoleConfig, wr as MutationRunMode, wt as MigrationAppliedState, x as textEnum, xi as ColumnBuilderRuntimeConfig, xn as RlsPolicyToOption, xr as MutationPaginatedResult, xt as MigrationRunArgs, y as ConvexTextEnumBuilder, yi as ColumnBuilder, yn as RlsPolicy, yr as MutationExecutionMode, yt as defineTriggers, z as ConvexBytesBuilder, zn as index, zr as OrmSchemaExtensions, zt as buildMigrationPlan } from "../where-clause-compiler-
|
|
1
|
+
import { $ as GenericOrmCtx$1, $n as unique, $r as endsWith, $t as ManyConfig, A as ConvexDateMode, An as ConvexRankIndexBuilder, Ar as ReturningResult, At as MigrationManifestEntry, B as ConvexBytesBuilderInitial, Bn as rankIndex, Br as OrmSchemaRelations, Bt as defineMigration, C as ConvexNumberBuilderInitial, Ci as ColumnBuilderWithTableName, Cn as RlsRole, Cr as MutationReturning, Ct as MigrationStatusArgs, D as id, Di as IsPrimaryKey, Dn as ConvexAggregateIndexBuilderOn, Dr as PaginatedResult, Dt as MigrationDoc, E as ConvexIdBuilderInitial, Ei as HasDefault, En as ConvexAggregateIndexBuilder, Er as OrderDirection, Et as MigrationDirection, F as custom, Fn as ConvexVectorIndexBuilder, Fr as unsetToken, Ft as MigrationStateMap, G as ConvexBigIntBuilder, Gn as ConvexCheckConfig, Gr as ExpressionVisitor, Gt as OrmReader$1, H as ConvexBooleanBuilder, Hn as uniqueIndex, Hr as TableName, Ht as detectMigrationDrift, I as json, In as ConvexVectorIndexBuilderOn, Ir as Brand, It as MigrationStep, J as CountBackfillChunkArgs, Jn as ConvexUniqueConstraintBuilder, Jr as LogicalExpression, Jt as RlsMode, K as ConvexBigIntBuilderInitial, Kn as ConvexForeignKeyBuilder, Kr as FieldReference, Kt as OrmWriter$1, L as objectOf, Ln as ConvexVectorIndexConfig, Lr as Columns, Lt as MigrationTableName, M as ConvexCustomBuilder, Mn as ConvexSearchIndexBuilder, Mr as UpdateSet, Mt as MigrationPlan, N as ConvexCustomBuilderInitial, Nn as ConvexSearchIndexBuilderOn, Nr as VectorQueryConfig, Nt as MigrationRunStatus, O as ConvexDateBuilder, Oi as IsUnique, On as ConvexIndexBuilder, Or as PredicateWhereIndexConfig, Ot as MigrationDocContext, P as arrayOf, Pn as ConvexSearchIndexConfig, Pr as VectorSearchProvider, Pt as MigrationSet, Q as GenericOrm$1, Qn as foreignKey, Qr as contains, Qt as ExtractTablesWithRelations, R as unionOf, Rn as aggregateIndex, Rr as OrmSchemaExtensionTables, Rt as MigrationWriteMode, S as ConvexNumberBuilder, Si as ColumnBuilderTypeConfig, Sn as rlsPolicy, Sr as MutationResult, St as MigrationRunChunkArgs, T as ConvexIdBuilder, Ti as DrizzleEntity, Tn as rlsRole, Tr as OrderByClause, Tt as MigrationDefinition, U as ConvexBooleanBuilderInitial, Un as vectorIndex, Ur as SystemFields, Ut as DatabaseWithMutations, V as bytes, Vn as searchIndex, Vr as OrmSchemaTriggers, Vt as defineMigrationSet, W as boolean, Wn as ConvexCheckBuilder, Wr as BinaryExpression, Wt as DatabaseWithQuery, X as CountBackfillStatusArgs, Xn as ConvexUniqueConstraintConfig, Xr as and, Xt as extractRelationsConfig, Y as CountBackfillKickoffArgs, Yn as ConvexUniqueConstraintBuilderOn, Yr as UnaryExpression, Yt as EdgeMetadata, Z as CreateOrmOptions, Zn as check, Zr as between, Zt as ExtractTablesFromSchema, _ as ConvexTimestampMode, _i as startsWith, _n as deletion, _r as MutationExecuteConfig, _t as OrmTriggerContext, a as requireSchemaRelations, ai as inArray, an as TablesRelationalConfig, ar as AggregateResult, at as OrmWriterCtx, b as ConvexTextEnumBuilderInitial, bi as ColumnBuilderBaseConfig, bn as RlsPolicyConfig, br as MutationPaginateConfig, bt as MigrationCancelArgs, c as TableConfigResult, ci as isNull, cn as ConvexDeletionBuilder, cr as CountConfig, ct as ScheduledMutationBatchArgs, d as OrmNotFoundError, di as lte, dn as ConvexTableWithColumns, dr as FilterOperators, dt as scheduledDeleteFactory, ei as eq, en as OneConfig, er as ConvexTextBuilder, et as OrmApiResult, f as ConvexVectorBuilder, fi as ne, fn as DiscriminatorBuilderConfig, fr as GetColumnData, ft as SchemaExtension, g as ConvexTimestampBuilderInitial, gi as or, gn as convexTable, gr as InsertValue, gt as OrmTriggerChange, h as ConvexTimestampBuilder, hi as notInArray, hn as TableConfig, hr as InferSelectModel, ht as OrmTableTriggers, i as getSchemaTriggers, ii as ilike, in as TableRelationalConfig, ir as AggregateFieldValue, it as OrmReaderCtx, j as date, jn as ConvexRankIndexBuilderOn, jr as ReturningSelection, jt as MigrationMigrateOne, k as ConvexDateBuilderInitial, ki as NotNull, kn as ConvexIndexBuilderOn, kr as ReturningAll, kt as MigrationDriftIssue, l as getTableColumns, li as like, ln as ConvexDeletionConfig, lr as CountResult, lt as scheduledMutationBatchFactory, m as vector, mi as notBetween, mn as OrmLifecycleOperation, mr as InferModelFromColumns, mt as OrmBeforeResult, n as defineSchema, ni as gt, nn as RelationsBuilderColumnBase, nr as text, nt as OrmClientWithApi$1, o as asc, oi as isFieldReference, on as defineRelations, or as BuildQueryResult, ot as ResolveOrmSchema, p as ConvexVectorBuilderInitial, pi as not, pn as OrmLifecycleChange, pr as InferInsertModel, pt as defineSchemaExtension, q as bigint, qn as ConvexForeignKeyConfig, qr as FilterExpression, qt as RlsContext, r as getSchemaRelations, ri as gte, rn as RelationsBuilderColumnConfig, rr as AggregateConfig, rt as OrmFunctions, s as desc, si as isNotNull, sn as defineRelationsPart, sr as BuildRelationResult, st as createOrm, t as WhereClauseResult, ti as fieldRef, tn as RelationsBuilder, tr as ConvexTextBuilderInitial, tt as OrmClientBase$1, u as getTableConfig, ui as lt, un as ConvexTable, ur as DBQueryConfig, ut as ScheduledDeleteArgs, v as timestamp, vi as AnyColumn, vn as discriminator, vr as MutationExecuteResult, vt as OrmTriggers, w as integer, wi as ColumnDataType, wn as RlsRoleConfig, wr as MutationRunMode, wt as MigrationAppliedState, x as textEnum, xi as ColumnBuilderRuntimeConfig, xn as RlsPolicyToOption, xr as MutationPaginatedResult, xt as MigrationRunArgs, y as ConvexTextEnumBuilder, yi as ColumnBuilder, yn as RlsPolicy, yr as MutationExecutionMode, yt as defineTriggers, z as ConvexBytesBuilder, zn as index, zr as OrmSchemaExtensions, zt as buildMigrationPlan } from "../where-clause-compiler-ner2TQ3O.js";
|
|
2
2
|
import { i as pretendRequired, n as deprecated, r as pretend } from "../validators-vzRKjBJC.js";
|
|
3
3
|
import { a as QueryCtxWithPreferredOrmQueryTable, i as QueryCtxWithOrmQueryTable, n as LookupByIdResultByCtx, o as getByIdWithOrmQueryFallback, r as QueryCtxWithOptionalOrmQueryTable, t as DocByCtx } from "../query-context-CFZqIvD7.js";
|
|
4
4
|
import { DefineSchemaOptions, GenericDatabaseReader, GenericDatabaseWriter, GenericSchema, SchemaDefinition } from "convex/server";
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PluginConfigureResolver, i as PluginConfigureInput, n as PluginApiScope, o as definePlugin, r as PluginConfigureContext, s as resolvePluginOptions, t as Plugin } from "../middleware-
|
|
1
|
+
import { a as PluginConfigureResolver, i as PluginConfigureInput, n as PluginApiScope, o as definePlugin, r as PluginConfigureContext, s as resolvePluginOptions, t as Plugin } from "../middleware-BL2wn3s0.js";
|
|
2
2
|
export { type Plugin, type PluginApiScope, type PluginConfigureContext, type PluginConfigureInput, type PluginConfigureResolver, definePlugin, resolvePluginOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as MiddlewareBuilder } from "../types-DEJpkIhw.js";
|
|
2
|
-
import { t as Plugin } from "../middleware-
|
|
2
|
+
import { t as Plugin } from "../middleware-BL2wn3s0.js";
|
|
3
3
|
import * as convex_server0 from "convex/server";
|
|
4
4
|
|
|
5
5
|
//#region src/ratelimit/duration.d.ts
|
package/dist/rsc/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as DeepPartial, o as Simplify, r as DistributiveOmit } from "../types-BTb_4BaU.js";
|
|
2
2
|
import { C as HttpProcedure, d as CRPCHttpRouter, j as DataTransformerOptions, p as HttpRouterRecord } from "../http-types-DqJubRPJ.js";
|
|
3
3
|
import { m as UnsetMarker } from "../types-DEJpkIhw.js";
|
|
4
|
-
import { A as HttpInputArgs, C as ReservedMutationOptions$1, S as ReservedInfiniteQueryOptions, T as StaticQueryOptsParam, _ as IsPaginated, b as PaginatedFnMeta, c as ConvexMutationKey, d as ConvexQueryMeta, f as EmptyObject, g as InfiniteQueryInput, l as ConvexQueryHookOptions, m as FUNC_REF_SYMBOL, o as ConvexActionKey, p as ExtractPaginatedItem, s as ConvexInfiniteQueryMeta, u as ConvexQueryKey, w as ReservedQueryOptions$1, y as MutationVariables } from "../types-
|
|
4
|
+
import { A as HttpInputArgs, C as ReservedMutationOptions$1, S as ReservedInfiniteQueryOptions, T as StaticQueryOptsParam, _ as IsPaginated, b as PaginatedFnMeta, c as ConvexMutationKey, d as ConvexQueryMeta, f as EmptyObject, g as InfiniteQueryInput, l as ConvexQueryHookOptions, m as FUNC_REF_SYMBOL, o as ConvexActionKey, p as ExtractPaginatedItem, s as ConvexInfiniteQueryMeta, u as ConvexQueryKey, w as ReservedQueryOptions$1, y as MutationVariables } from "../types-BLvtq_eH.js";
|
|
5
5
|
import { FunctionArgs, FunctionReference, FunctionReturnType } from "convex/server";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import { DefaultError, QueryFilters, SkipToken, UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
|
package/dist/watcher.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as getConvexConfig, r as logger, t as generateMeta } from "./codegen-
|
|
2
|
+
import { n as getConvexConfig, r as logger, t as generateMeta } from "./codegen-B60fOYhd.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
|
|
@@ -3717,19 +3717,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3717
3717
|
readonly aggregate_bucket: ConvexTableWithColumns<{
|
|
3718
3718
|
name: "aggregate_bucket";
|
|
3719
3719
|
columns: {
|
|
3720
|
-
count: ConvexNumberBuilderInitial<""> & {
|
|
3721
|
-
_: {
|
|
3722
|
-
notNull: true;
|
|
3723
|
-
};
|
|
3724
|
-
} & {
|
|
3725
|
-
_: {
|
|
3726
|
-
tableName: "aggregate_bucket";
|
|
3727
|
-
};
|
|
3728
|
-
} & {
|
|
3729
|
-
_: {
|
|
3730
|
-
fieldName: "count";
|
|
3731
|
-
};
|
|
3732
|
-
};
|
|
3733
3720
|
tableKey: ConvexTextBuilderInitial<""> & {
|
|
3734
3721
|
_: {
|
|
3735
3722
|
notNull: true;
|
|
@@ -3786,6 +3773,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3786
3773
|
fieldName: "keyParts";
|
|
3787
3774
|
};
|
|
3788
3775
|
};
|
|
3776
|
+
count: ConvexNumberBuilderInitial<""> & {
|
|
3777
|
+
_: {
|
|
3778
|
+
notNull: true;
|
|
3779
|
+
};
|
|
3780
|
+
} & {
|
|
3781
|
+
_: {
|
|
3782
|
+
tableName: "aggregate_bucket";
|
|
3783
|
+
};
|
|
3784
|
+
} & {
|
|
3785
|
+
_: {
|
|
3786
|
+
fieldName: "count";
|
|
3787
|
+
};
|
|
3788
|
+
};
|
|
3789
3789
|
sumValues: (NotNull<$Type<ConvexCustomBuilderInitial<"", convex_values0.VRecord<Record<string, any>, convex_values0.VString<string, "required">, convex_values0.VId<any, any> | convex_values0.VString<any, any> | convex_values0.VFloat64<any, any> | convex_values0.VInt64<any, any> | convex_values0.VBoolean<any, any> | convex_values0.VNull<any, any> | convex_values0.VAny<any, any, string> | convex_values0.VLiteral<any, any> | convex_values0.VBytes<any, any> | convex_values0.VObject<any, Record<string, convex_values0.Validator<any, convex_values0.OptionalProperty, any>>, any, any> | convex_values0.VArray<any, convex_values0.Validator<any, "required", any>, any> | convex_values0.VRecord<any, convex_values0.Validator<string, "required", any>, convex_values0.Validator<any, "required", any>, any, any> | convex_values0.VUnion<any, convex_values0.Validator<any, "required", any>[], any, any>, "required", string>>, Record<string, number>>> | NotNull<$Type<ConvexCustomBuilderInitial<"", convex_values0.VId<any, any> | convex_values0.VString<any, any> | convex_values0.VFloat64<any, any> | convex_values0.VInt64<any, any> | convex_values0.VBoolean<any, any> | convex_values0.VNull<any, any> | convex_values0.VAny<any, any, string> | convex_values0.VLiteral<any, any> | convex_values0.VBytes<any, any> | convex_values0.VObject<any, Record<string, convex_values0.Validator<any, convex_values0.OptionalProperty, any>>, any, any> | convex_values0.VArray<any, convex_values0.Validator<any, "required", any>, any> | convex_values0.VRecord<any, convex_values0.Validator<string, "required", any>, convex_values0.Validator<any, "required", any>, any, any> | convex_values0.VUnion<any, convex_values0.Validator<any, "required", any>[], any, any>>, Record<string, number>>>) & {
|
|
3790
3790
|
_: {
|
|
3791
3791
|
tableName: "aggregate_bucket";
|
|
@@ -3826,19 +3826,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3826
3826
|
readonly aggregate_member: ConvexTableWithColumns<{
|
|
3827
3827
|
name: "aggregate_member";
|
|
3828
3828
|
columns: {
|
|
3829
|
-
kind: ConvexTextBuilderInitial<""> & {
|
|
3830
|
-
_: {
|
|
3831
|
-
notNull: true;
|
|
3832
|
-
};
|
|
3833
|
-
} & {
|
|
3834
|
-
_: {
|
|
3835
|
-
tableName: "aggregate_member";
|
|
3836
|
-
};
|
|
3837
|
-
} & {
|
|
3838
|
-
_: {
|
|
3839
|
-
fieldName: "kind";
|
|
3840
|
-
};
|
|
3841
|
-
};
|
|
3842
3829
|
tableKey: ConvexTextBuilderInitial<""> & {
|
|
3843
3830
|
_: {
|
|
3844
3831
|
notNull: true;
|
|
@@ -3926,6 +3913,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3926
3913
|
fieldName: "updatedAt";
|
|
3927
3914
|
};
|
|
3928
3915
|
};
|
|
3916
|
+
kind: ConvexTextBuilderInitial<""> & {
|
|
3917
|
+
_: {
|
|
3918
|
+
notNull: true;
|
|
3919
|
+
};
|
|
3920
|
+
} & {
|
|
3921
|
+
_: {
|
|
3922
|
+
tableName: "aggregate_member";
|
|
3923
|
+
};
|
|
3924
|
+
} & {
|
|
3925
|
+
_: {
|
|
3926
|
+
fieldName: "kind";
|
|
3927
|
+
};
|
|
3928
|
+
};
|
|
3929
3929
|
docId: ConvexTextBuilderInitial<""> & {
|
|
3930
3930
|
_: {
|
|
3931
3931
|
notNull: true;
|
|
@@ -4009,7 +4009,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4009
4009
|
fieldName: "value";
|
|
4010
4010
|
};
|
|
4011
4011
|
};
|
|
4012
|
-
|
|
4012
|
+
tableKey: ConvexTextBuilderInitial<""> & {
|
|
4013
4013
|
_: {
|
|
4014
4014
|
notNull: true;
|
|
4015
4015
|
};
|
|
@@ -4019,10 +4019,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4019
4019
|
};
|
|
4020
4020
|
} & {
|
|
4021
4021
|
_: {
|
|
4022
|
-
fieldName: "
|
|
4022
|
+
fieldName: "tableKey";
|
|
4023
4023
|
};
|
|
4024
4024
|
};
|
|
4025
|
-
|
|
4025
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
4026
4026
|
_: {
|
|
4027
4027
|
notNull: true;
|
|
4028
4028
|
};
|
|
@@ -4032,10 +4032,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4032
4032
|
};
|
|
4033
4033
|
} & {
|
|
4034
4034
|
_: {
|
|
4035
|
-
fieldName: "
|
|
4035
|
+
fieldName: "indexName";
|
|
4036
4036
|
};
|
|
4037
4037
|
};
|
|
4038
|
-
|
|
4038
|
+
keyHash: ConvexTextBuilderInitial<""> & {
|
|
4039
4039
|
_: {
|
|
4040
4040
|
notNull: true;
|
|
4041
4041
|
};
|
|
@@ -4045,10 +4045,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4045
4045
|
};
|
|
4046
4046
|
} & {
|
|
4047
4047
|
_: {
|
|
4048
|
-
fieldName: "
|
|
4048
|
+
fieldName: "keyHash";
|
|
4049
4049
|
};
|
|
4050
4050
|
};
|
|
4051
|
-
|
|
4051
|
+
count: ConvexNumberBuilderInitial<""> & {
|
|
4052
4052
|
_: {
|
|
4053
4053
|
notNull: true;
|
|
4054
4054
|
};
|
|
@@ -4058,7 +4058,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4058
4058
|
};
|
|
4059
4059
|
} & {
|
|
4060
4060
|
_: {
|
|
4061
|
-
fieldName: "
|
|
4061
|
+
fieldName: "count";
|
|
4062
4062
|
};
|
|
4063
4063
|
};
|
|
4064
4064
|
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -4244,7 +4244,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4244
4244
|
readonly aggregate_state: ConvexTableWithColumns<{
|
|
4245
4245
|
name: "aggregate_state";
|
|
4246
4246
|
columns: {
|
|
4247
|
-
|
|
4247
|
+
tableKey: ConvexTextBuilderInitial<""> & {
|
|
4248
4248
|
_: {
|
|
4249
4249
|
notNull: true;
|
|
4250
4250
|
};
|
|
@@ -4254,19 +4254,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4254
4254
|
};
|
|
4255
4255
|
} & {
|
|
4256
4256
|
_: {
|
|
4257
|
-
fieldName: "
|
|
4258
|
-
};
|
|
4259
|
-
};
|
|
4260
|
-
cursor: ConvexTextBuilderInitial<""> & {
|
|
4261
|
-
_: {
|
|
4262
|
-
tableName: "aggregate_state";
|
|
4263
|
-
};
|
|
4264
|
-
} & {
|
|
4265
|
-
_: {
|
|
4266
|
-
fieldName: "cursor";
|
|
4257
|
+
fieldName: "tableKey";
|
|
4267
4258
|
};
|
|
4268
4259
|
};
|
|
4269
|
-
|
|
4260
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
4270
4261
|
_: {
|
|
4271
4262
|
notNull: true;
|
|
4272
4263
|
};
|
|
@@ -4276,10 +4267,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4276
4267
|
};
|
|
4277
4268
|
} & {
|
|
4278
4269
|
_: {
|
|
4279
|
-
fieldName: "
|
|
4270
|
+
fieldName: "indexName";
|
|
4280
4271
|
};
|
|
4281
4272
|
};
|
|
4282
|
-
|
|
4273
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4283
4274
|
_: {
|
|
4284
4275
|
notNull: true;
|
|
4285
4276
|
};
|
|
@@ -4289,10 +4280,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4289
4280
|
};
|
|
4290
4281
|
} & {
|
|
4291
4282
|
_: {
|
|
4292
|
-
fieldName: "
|
|
4283
|
+
fieldName: "updatedAt";
|
|
4293
4284
|
};
|
|
4294
4285
|
};
|
|
4295
|
-
|
|
4286
|
+
kind: ConvexTextBuilderInitial<""> & {
|
|
4296
4287
|
_: {
|
|
4297
4288
|
notNull: true;
|
|
4298
4289
|
};
|
|
@@ -4302,7 +4293,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4302
4293
|
};
|
|
4303
4294
|
} & {
|
|
4304
4295
|
_: {
|
|
4305
|
-
fieldName: "
|
|
4296
|
+
fieldName: "kind";
|
|
4306
4297
|
};
|
|
4307
4298
|
};
|
|
4308
4299
|
keyDefinitionHash: ConvexTextBuilderInitial<""> & {
|
|
@@ -4344,6 +4335,15 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4344
4335
|
fieldName: "status";
|
|
4345
4336
|
};
|
|
4346
4337
|
};
|
|
4338
|
+
cursor: ConvexTextBuilderInitial<""> & {
|
|
4339
|
+
_: {
|
|
4340
|
+
tableName: "aggregate_state";
|
|
4341
|
+
};
|
|
4342
|
+
} & {
|
|
4343
|
+
_: {
|
|
4344
|
+
fieldName: "cursor";
|
|
4345
|
+
};
|
|
4346
|
+
};
|
|
4347
4347
|
processed: ConvexNumberBuilderInitial<""> & {
|
|
4348
4348
|
_: {
|
|
4349
4349
|
notNull: true;
|
|
@@ -4398,25 +4398,20 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4398
4398
|
readonly migration_state: ConvexTableWithColumns<{
|
|
4399
4399
|
name: "migration_state";
|
|
4400
4400
|
columns: {
|
|
4401
|
-
|
|
4401
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4402
4402
|
_: {
|
|
4403
|
-
|
|
4403
|
+
notNull: true;
|
|
4404
4404
|
};
|
|
4405
4405
|
} & {
|
|
4406
|
-
_: {
|
|
4407
|
-
fieldName: "cursor";
|
|
4408
|
-
};
|
|
4409
|
-
};
|
|
4410
|
-
direction: ConvexTextBuilderInitial<""> & {
|
|
4411
4406
|
_: {
|
|
4412
4407
|
tableName: "migration_state";
|
|
4413
4408
|
};
|
|
4414
4409
|
} & {
|
|
4415
4410
|
_: {
|
|
4416
|
-
fieldName: "
|
|
4411
|
+
fieldName: "updatedAt";
|
|
4417
4412
|
};
|
|
4418
4413
|
};
|
|
4419
|
-
|
|
4414
|
+
status: ConvexTextBuilderInitial<""> & {
|
|
4420
4415
|
_: {
|
|
4421
4416
|
notNull: true;
|
|
4422
4417
|
};
|
|
@@ -4426,20 +4421,16 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4426
4421
|
};
|
|
4427
4422
|
} & {
|
|
4428
4423
|
_: {
|
|
4429
|
-
fieldName: "
|
|
4424
|
+
fieldName: "status";
|
|
4430
4425
|
};
|
|
4431
4426
|
};
|
|
4432
|
-
|
|
4433
|
-
_: {
|
|
4434
|
-
notNull: true;
|
|
4435
|
-
};
|
|
4436
|
-
} & {
|
|
4427
|
+
cursor: ConvexTextBuilderInitial<""> & {
|
|
4437
4428
|
_: {
|
|
4438
4429
|
tableName: "migration_state";
|
|
4439
4430
|
};
|
|
4440
4431
|
} & {
|
|
4441
4432
|
_: {
|
|
4442
|
-
fieldName: "
|
|
4433
|
+
fieldName: "cursor";
|
|
4443
4434
|
};
|
|
4444
4435
|
};
|
|
4445
4436
|
processed: ConvexNumberBuilderInitial<""> & {
|
|
@@ -4521,6 +4512,15 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4521
4512
|
fieldName: "applied";
|
|
4522
4513
|
};
|
|
4523
4514
|
};
|
|
4515
|
+
direction: ConvexTextBuilderInitial<""> & {
|
|
4516
|
+
_: {
|
|
4517
|
+
tableName: "migration_state";
|
|
4518
|
+
};
|
|
4519
|
+
} & {
|
|
4520
|
+
_: {
|
|
4521
|
+
fieldName: "direction";
|
|
4522
|
+
};
|
|
4523
|
+
};
|
|
4524
4524
|
runId: ConvexTextBuilderInitial<""> & {
|
|
4525
4525
|
_: {
|
|
4526
4526
|
tableName: "migration_state";
|
|
@@ -4552,19 +4552,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4552
4552
|
readonly migration_run: ConvexTableWithColumns<{
|
|
4553
4553
|
name: "migration_run";
|
|
4554
4554
|
columns: {
|
|
4555
|
-
direction: ConvexTextBuilderInitial<""> & {
|
|
4556
|
-
_: {
|
|
4557
|
-
notNull: true;
|
|
4558
|
-
};
|
|
4559
|
-
} & {
|
|
4560
|
-
_: {
|
|
4561
|
-
tableName: "migration_run";
|
|
4562
|
-
};
|
|
4563
|
-
} & {
|
|
4564
|
-
_: {
|
|
4565
|
-
fieldName: "direction";
|
|
4566
|
-
};
|
|
4567
|
-
};
|
|
4568
4555
|
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4569
4556
|
_: {
|
|
4570
4557
|
notNull: true;
|
|
@@ -4622,6 +4609,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4622
4609
|
fieldName: "lastError";
|
|
4623
4610
|
};
|
|
4624
4611
|
};
|
|
4612
|
+
direction: ConvexTextBuilderInitial<""> & {
|
|
4613
|
+
_: {
|
|
4614
|
+
notNull: true;
|
|
4615
|
+
};
|
|
4616
|
+
} & {
|
|
4617
|
+
_: {
|
|
4618
|
+
tableName: "migration_run";
|
|
4619
|
+
};
|
|
4620
|
+
} & {
|
|
4621
|
+
_: {
|
|
4622
|
+
fieldName: "direction";
|
|
4623
|
+
};
|
|
4624
|
+
};
|
|
4625
4625
|
runId: ConvexTextBuilderInitial<""> & {
|
|
4626
4626
|
_: {
|
|
4627
4627
|
notNull: true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kitcn",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.7",
|
|
4
4
|
"description": "kitcn - React Query integration and CLI tools for Convex",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"convex",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"./auth/generated": "./dist/auth/generated/index.js",
|
|
28
28
|
"./auth/http": "./dist/auth/http/index.js",
|
|
29
29
|
"./auth/nextjs": "./dist/auth/nextjs/index.js",
|
|
30
|
+
"./auth/start": "./dist/auth/start/index.js",
|
|
30
31
|
"./crpc": "./dist/crpc/index.js",
|
|
31
32
|
"./orm": "./dist/orm/index.js",
|
|
32
33
|
"./plugins": "./dist/plugins/index.js",
|
|
@@ -193,7 +193,7 @@ export default createHttpRouter(app, httpRouter);
|
|
|
193
193
|
SITE_URL=http://localhost:3000
|
|
194
194
|
GOOGLE_CLIENT_ID=...
|
|
195
195
|
GOOGLE_CLIENT_SECRET=...
|
|
196
|
-
# Auto-generated during local auth bootstrap and prod env
|
|
196
|
+
# Auto-generated during local auth bootstrap and prod env push
|
|
197
197
|
BETTER_AUTH_SECRET=...
|
|
198
198
|
JWKS=...
|
|
199
199
|
```
|