kitcn 0.33.3 → 0.33.5
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/CHANGELOG.md +17 -0
- package/dist/aggregate/index.d.ts +1 -1
- package/dist/auth/generated/index.d.ts +1 -1
- package/dist/auth/index.d.ts +3 -3
- package/dist/auth/index.js +1 -1
- package/dist/auth/nextjs/index.js +1 -1
- package/dist/auth/start/server/index.js +1 -1
- package/dist/{builder-DDYTlmTB.js → builder-C4FTb9Ci.js} +21 -1
- package/dist/cli.mjs +1 -1
- package/dist/{convex-plugin-AbNQl1Sg.js → convex-plugin-UGuLZPyQ.js} +12 -5
- package/dist/{generated-contract-disabled-BPjuEPZD.d.ts → generated-contract-disabled-PdNGvNYP.d.ts} +2 -2
- package/dist/{local-env-CYYSNf_o.mjs → local-env-DfRydipT.mjs} +2 -2
- package/dist/{middleware-LvZov-hA.js → middleware-0x76j2pR.js} +1 -1
- package/dist/orm/index.d.ts +1 -1
- package/dist/orm/migrations/index.d.ts +1 -1
- package/dist/plugins/index.js +1 -1
- package/dist/{procedure-caller-DgGF_hA8.js → procedure-caller-CZDaDjju.js} +1 -1
- package/dist/ratelimit/index.js +2 -2
- package/dist/server/index.js +2 -2
- package/dist/{token-CuJopBdP.js → token-CgIvcEZX.js} +1 -1
- package/dist/watcher.mjs +1 -1
- package/dist/{where-clause-compiler-jhCEPHxi.d.ts → where-clause-compiler-qH6-NCM9.d.ts} +67 -67
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# kitcn
|
|
2
2
|
|
|
3
|
+
## 0.33.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#471](https://github.com/udecode/kitcn/pull/471) [`04346ae`](https://github.com/udecode/kitcn/commit/04346ae4c7f207f2e57eed56bffb3100472fb649) Thanks [@zbeyens](https://github.com/zbeyens)! - ## Patches
|
|
8
|
+
|
|
9
|
+
- Improve generated procedure-name lookups with merge-local entries and stale-state warnings.
|
|
10
|
+
|
|
11
|
+
## 0.33.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#465](https://github.com/udecode/kitcn/pull/465) [`5dc460b`](https://github.com/udecode/kitcn/commit/5dc460ba0ae760ea96dba052496a01ffb61f88c3) Thanks [@tjramage](https://github.com/tjramage)! - ## Patches
|
|
16
|
+
|
|
17
|
+
- Fix spurious internal errors during sessionless social sign-in redirects
|
|
18
|
+
while preserving Convex JWT cookie issuance for authenticated sessions.
|
|
19
|
+
|
|
3
20
|
## 0.33.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vn as ConvexTextBuilderInitial, Zt as ConvexTableWithColumns } from "../capabilities-Bxzoofl4.js";
|
|
2
|
-
import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial } from "../where-clause-compiler-
|
|
2
|
+
import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial } from "../where-clause-compiler-qH6-NCM9.js";
|
|
3
3
|
import * as convex_values0 from "convex/values";
|
|
4
4
|
import { GenericId, Infer, Value } from "convex/values";
|
|
5
5
|
import { DocumentByName, GenericDataModel, GenericDatabaseReader, GenericDatabaseWriter, TableNamesInDataModel } from "convex/server";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, b as GenericAuthBeforeResult, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../../generated-contract-disabled-
|
|
1
|
+
import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, b as GenericAuthBeforeResult, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../../generated-contract-disabled-PdNGvNYP.js";
|
|
2
2
|
export { type AuthRuntime, BetterAuthOptionsWithoutDatabase, type GeneratedAuthDisabledReasonKind, GenericAuthBeforeResult, GenericAuthDefinition, GenericAuthTriggerChange, GenericAuthTriggerHandlers, GenericAuthTriggers, createDisabledAuthRuntime, defineAuth, getGeneratedAuthDisabledReason };
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as QueryCtxWithPreferredOrmQueryTable, n as LookupByIdResultByCtx, t as DocByCtx } from "../query-context-BkNjkDCk.js";
|
|
2
2
|
import { t as GetAuth } from "../types-ex0-J-SC.js";
|
|
3
3
|
import { t as GenericCtx } from "../context-utils-Cbv4r0AA.js";
|
|
4
|
-
import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, _ as updateManyHandler, a as AuthFunctions, b as GenericAuthBeforeResult, c as consumeOneHandler, d as createHandler, f as deleteManyHandler, g as incrementOneHandler, h as findOneHandler, i as getGeneratedAuthDisabledReason, l as countHandler, m as findManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as deleteOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as createApi, v as updateOneHandler, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../generated-contract-disabled-
|
|
4
|
+
import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, _ as updateManyHandler, a as AuthFunctions, b as GenericAuthBeforeResult, c as consumeOneHandler, d as createHandler, f as deleteManyHandler, g as incrementOneHandler, h as findOneHandler, i as getGeneratedAuthDisabledReason, l as countHandler, m as findManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as deleteOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as createApi, v as updateOneHandler, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../generated-contract-disabled-PdNGvNYP.js";
|
|
5
5
|
import * as convex_values0 from "convex/values";
|
|
6
6
|
import { Infer } from "convex/values";
|
|
7
7
|
import { AuthConfig, DocumentByName, GenericDataModel, GenericMutationCtx, GenericQueryCtx, GenericSchema, PaginationOptions, PaginationResult, SchemaDefinition, TableNamesInDataModel } from "convex/server";
|
|
@@ -121,7 +121,6 @@ declare const adapterWhereValidator: convex_values0.VObject<{
|
|
|
121
121
|
value: convex_values0.VUnion<string | number | boolean | string[] | number[] | null, [convex_values0.VString<string, "required">, convex_values0.VFloat64<number, "required">, convex_values0.VBoolean<boolean, "required">, convex_values0.VArray<string[], convex_values0.VString<string, "required">, "required">, convex_values0.VArray<number[], convex_values0.VFloat64<number, "required">, "required">, convex_values0.VNull<null, "required">], "required", never>;
|
|
122
122
|
}, "required", "mode" | "connector" | "field" | "operator" | "value">;
|
|
123
123
|
declare const adapterArgsValidator: convex_values0.VObject<{
|
|
124
|
-
limit?: number | undefined;
|
|
125
124
|
where?: {
|
|
126
125
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
127
126
|
connector?: "AND" | "OR" | undefined;
|
|
@@ -129,6 +128,7 @@ declare const adapterArgsValidator: convex_values0.VObject<{
|
|
|
129
128
|
field: string;
|
|
130
129
|
value: string | number | boolean | string[] | number[] | null;
|
|
131
130
|
}[] | undefined;
|
|
131
|
+
limit?: number | undefined;
|
|
132
132
|
offset?: number | undefined;
|
|
133
133
|
select?: string[] | undefined;
|
|
134
134
|
sortBy?: {
|
|
@@ -167,7 +167,7 @@ declare const adapterArgsValidator: convex_values0.VObject<{
|
|
|
167
167
|
operator: convex_values0.VUnion<"lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>;
|
|
168
168
|
value: convex_values0.VUnion<string | number | boolean | string[] | number[] | null, [convex_values0.VString<string, "required">, convex_values0.VFloat64<number, "required">, convex_values0.VBoolean<boolean, "required">, convex_values0.VArray<string[], convex_values0.VString<string, "required">, "required">, convex_values0.VArray<number[], convex_values0.VFloat64<number, "required">, "required">, convex_values0.VNull<null, "required">], "required", never>;
|
|
169
169
|
}, "required", "mode" | "connector" | "field" | "operator" | "value">, "optional">;
|
|
170
|
-
}, "required", "
|
|
170
|
+
}, "required", "model" | "where" | "limit" | "offset" | "select" | "sortBy" | "sortBy.field" | "sortBy.direction">;
|
|
171
171
|
declare const hasUniqueFields: (betterAuthSchema: BetterAuthDBSchema, model: string, input: Record<string, any>) => boolean;
|
|
172
172
|
declare const checkUniqueFields: <Schema extends SchemaDefinition<any, any>>(ctx: GenericQueryCtx<GenericDataModel>, schema: Schema, betterAuthSchema: BetterAuthDBSchema, table: string, input: Record<string, any>, doc?: Record<string, any>) => Promise<void>;
|
|
173
173
|
declare const selectFields: <T extends TableNamesInDataModel<GenericDataModel>, D extends DocumentByName<GenericDataModel, T>>(doc: D | null, select?: string[]) => D | null;
|
package/dist/auth/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { n as createGeneratedFunctionReference, o as isQueryCtx, s as isRunMutat
|
|
|
5
5
|
import { i as customQuery, n as customCtx, r as customMutation } from "../customFunctions-X_B4kET8.js";
|
|
6
6
|
import { C as eq, o as getAggregateIndexes } from "../index-utils-DvK7P6Q1.js";
|
|
7
7
|
import { c as stream, f as unsetToken, s as mergedStream, t as getByIdWithOrmQueryFallback } from "../query-context-DQLv58LH.js";
|
|
8
|
-
import { n as convex } from "../convex-plugin-
|
|
8
|
+
import { n as convex } from "../convex-plugin-UGuLZPyQ.js";
|
|
9
9
|
import { v } from "convex/values";
|
|
10
10
|
import { internalActionGeneric, internalMutationGeneric, internalQueryGeneric, paginationOptsValidator } from "convex/server";
|
|
11
11
|
import { createAdapterFactory } from "better-auth/adapters";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as getToken } from "../../../token-
|
|
1
|
+
import { t as getToken } from "../../../token-CgIvcEZX.js";
|
|
2
2
|
import { n as defaultIsUnauthorized } from "../../../error-CLgc9khF.js";
|
|
3
3
|
import { t as createCallerFactory } from "../../../caller-factory-CEKbQdGY.js";
|
|
4
4
|
import { stripIndent } from "common-tags";
|
|
@@ -1599,6 +1599,7 @@ function extractRouteMap(procedures) {
|
|
|
1599
1599
|
//#region src/server/procedure-name.ts
|
|
1600
1600
|
const LOOKUP_KEY = "__KITCN_PROCEDURE_NAME_LOOKUP__";
|
|
1601
1601
|
const HINTS_KEY = "__KITCN_PROCEDURE_NAME_HINTS__";
|
|
1602
|
+
const WARNED_MISSES_KEY = "__KITCN_PROCEDURE_NAME_WARNED_MISSES__";
|
|
1602
1603
|
const PATH_SEPARATOR_RE = /\\/g;
|
|
1603
1604
|
const TRIM_SLASHES_RE = /^\/+|\/+$/g;
|
|
1604
1605
|
const PACKAGE_FRAME_MARKERS = ["/node_modules/kitcn/", "/packages/kitcn/"];
|
|
@@ -1632,6 +1633,14 @@ function getGlobalHints() {
|
|
|
1632
1633
|
globalScope[HINTS_KEY] = hints;
|
|
1633
1634
|
return hints;
|
|
1634
1635
|
}
|
|
1636
|
+
function getGlobalWarnedMisses() {
|
|
1637
|
+
const globalScope = globalThis;
|
|
1638
|
+
const existing = globalScope[WARNED_MISSES_KEY];
|
|
1639
|
+
if (existing instanceof Set) return existing;
|
|
1640
|
+
const warnedMisses = /* @__PURE__ */ new Set();
|
|
1641
|
+
globalScope[WARNED_MISSES_KEY] = warnedMisses;
|
|
1642
|
+
return warnedMisses;
|
|
1643
|
+
}
|
|
1635
1644
|
function registerProcedureNameLookup(lookup, functionsDirHint) {
|
|
1636
1645
|
const globalLookup = getGlobalLookup();
|
|
1637
1646
|
for (const [relativeFilePath, entries] of Object.entries(lookup)) {
|
|
@@ -1696,6 +1705,12 @@ function findBestEntry(entries, location) {
|
|
|
1696
1705
|
return Math.abs(entry.column - location.column) < bestDistance ? entry : best;
|
|
1697
1706
|
});
|
|
1698
1707
|
}
|
|
1708
|
+
function warnAboutStaleLookup(relativeFilePath, location) {
|
|
1709
|
+
const warnedMisses = getGlobalWarnedMisses();
|
|
1710
|
+
if (warnedMisses.has(relativeFilePath)) return;
|
|
1711
|
+
warnedMisses.add(relativeFilePath);
|
|
1712
|
+
console.warn(`kitcn could not infer a procedure name at ${relativeFilePath}:${location.line} because generated/procedure-names.gen.ts has no matching entry. Run \`kitcn codegen\` to regenerate it.`);
|
|
1713
|
+
}
|
|
1699
1714
|
function inferProcedureNameFromCallsite() {
|
|
1700
1715
|
const location = captureCallsite();
|
|
1701
1716
|
if (!location) return;
|
|
@@ -1703,7 +1718,12 @@ function inferProcedureNameFromCallsite() {
|
|
|
1703
1718
|
if (!relativeFilePath) return;
|
|
1704
1719
|
const entries = getGlobalLookup()[relativeFilePath];
|
|
1705
1720
|
if (!entries || entries.length === 0) return;
|
|
1706
|
-
|
|
1721
|
+
const entry = findBestEntry(entries, location);
|
|
1722
|
+
if (!entry) {
|
|
1723
|
+
warnAboutStaleLookup(relativeFilePath, location);
|
|
1724
|
+
return;
|
|
1725
|
+
}
|
|
1726
|
+
return entry.name;
|
|
1707
1727
|
}
|
|
1708
1728
|
|
|
1709
1729
|
//#endregion
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as Columns, D as TableName, E as RlsPolicies, O as createSystemFields, S as getRankIndexes, T as OrmSchemaExtensions, _ as loadEsbuild, a as generateMeta, b as getAggregateIndexes, c as resolveSchemaDefaultExport, f as createProjectJiti, g as loadDotenv, h as loadClackPrompts, i as resolveConfiguredBackend, l as schemaDeclaresAggregateIndexes, m as loadBabelParser, n as withLocalCodegenEnv, o as getConvexConfig, p as CRPC_BUILDER_STUB_SOURCE, r as loadCliConfig, s as collectSchemaTables, t as getLocalBackendEnvVars, u as logger, v as highlighter, w as EnableRLS, x as getIndexes, y as isColorEnabled } from "./local-env-
|
|
2
|
+
import { C as Columns, D as TableName, E as RlsPolicies, O as createSystemFields, S as getRankIndexes, T as OrmSchemaExtensions, _ as loadEsbuild, a as generateMeta, b as getAggregateIndexes, c as resolveSchemaDefaultExport, f as createProjectJiti, g as loadDotenv, h as loadClackPrompts, i as resolveConfiguredBackend, l as schemaDeclaresAggregateIndexes, m as loadBabelParser, n as withLocalCodegenEnv, o as getConvexConfig, p as CRPC_BUILDER_STUB_SOURCE, r as loadCliConfig, s as collectSchemaTables, t as getLocalBackendEnvVars, u as logger, v as highlighter, w as EnableRLS, x as getIndexes, y as isColorEnabled } from "./local-env-DfRydipT.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import fs, { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import path, { basename, delimiter, dirname, extname, isAbsolute, join, posix, relative, resolve } from "node:path";
|
|
@@ -5,6 +5,10 @@ import { jwt } from "better-auth/plugins/jwt";
|
|
|
5
5
|
|
|
6
6
|
//#region src/auth/internal/convex-plugin.ts
|
|
7
7
|
const JWT_COOKIE_NAME = "convex_jwt";
|
|
8
|
+
const getJwtCookieToken = async (session, getToken) => {
|
|
9
|
+
if (!session) return;
|
|
10
|
+
return await getToken({ headers: new Headers() });
|
|
11
|
+
};
|
|
8
12
|
const getJwksAlg = (authProvider) => {
|
|
9
13
|
const isCustomJwt = "type" in authProvider && authProvider.type === "customJwt";
|
|
10
14
|
if (isCustomJwt && authProvider.algorithm !== "RS256") throw new Error("Only RS256 is supported for custom JWT with Better Auth");
|
|
@@ -162,19 +166,22 @@ const convex = (opts) => {
|
|
|
162
166
|
return Boolean(ctx.path?.startsWith("/sign-in") || ctx.path?.startsWith("/sign-up") || ctx.path?.startsWith("/callback") || ctx.path?.startsWith("/oauth2/callback") || ctx.path?.startsWith("/magic-link/verify") || ctx.path?.startsWith("/email-otp/verify-email") || ctx.path?.startsWith("/phone-number/verify") || ctx.path?.startsWith("/siwe/verify") || ctx.path?.startsWith("/update-session") || ctx.path?.startsWith("/get-session") && ctx.context.session);
|
|
163
167
|
},
|
|
164
168
|
handler: createAuthMiddleware(async (ctx) => {
|
|
169
|
+
if (!(ctx.context.session ?? ctx.context.newSession)) return;
|
|
165
170
|
const originalSession = ctx.context.session;
|
|
166
171
|
try {
|
|
167
172
|
ctx.context.session = ctx.context.session ?? ctx.context.newSession;
|
|
168
|
-
const {
|
|
173
|
+
const tokenResponse = await getJwtCookieToken(ctx.context.session, async ({ headers }) => await jwt$1.endpoints.getToken({
|
|
169
174
|
...ctx,
|
|
170
175
|
asResponse: false,
|
|
171
|
-
headers
|
|
176
|
+
headers,
|
|
172
177
|
method: "GET",
|
|
173
178
|
returnHeaders: false,
|
|
174
179
|
returnStatus: false
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
|
|
180
|
+
}));
|
|
181
|
+
if (tokenResponse) {
|
|
182
|
+
const jwtCookie = ctx.context.createAuthCookie(JWT_COOKIE_NAME, { maxAge: jwtExpirationSeconds });
|
|
183
|
+
ctx.setCookie(jwtCookie.name, tokenResponse.token, jwtCookie.attributes);
|
|
184
|
+
}
|
|
178
185
|
} catch (_error) {}
|
|
179
186
|
ctx.context.session = originalSession;
|
|
180
187
|
})
|
package/dist/{generated-contract-disabled-BPjuEPZD.d.ts → generated-contract-disabled-PdNGvNYP.d.ts}
RENAMED
|
@@ -278,7 +278,6 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
278
278
|
};
|
|
279
279
|
}, Promise<Record<string, unknown> | undefined>>;
|
|
280
280
|
findMany: convex_server0.RegisteredQuery<"internal", {
|
|
281
|
-
limit?: number | undefined;
|
|
282
281
|
join?: any;
|
|
283
282
|
where?: {
|
|
284
283
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
@@ -287,6 +286,7 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
287
286
|
field: string;
|
|
288
287
|
value: string | number | boolean | string[] | number[] | null;
|
|
289
288
|
}[] | undefined;
|
|
289
|
+
limit?: number | undefined;
|
|
290
290
|
offset?: number | undefined;
|
|
291
291
|
sortBy?: {
|
|
292
292
|
field: string;
|
|
@@ -317,7 +317,6 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
317
317
|
getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
318
318
|
incrementOne: convex_server0.RegisteredMutation<"internal", {
|
|
319
319
|
input: {
|
|
320
|
-
set?: Record<string, any> | undefined;
|
|
321
320
|
where?: {
|
|
322
321
|
mode?: "sensitive" | "insensitive" | undefined;
|
|
323
322
|
connector?: "AND" | "OR" | undefined;
|
|
@@ -325,6 +324,7 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
325
324
|
field: string;
|
|
326
325
|
value: string | number | boolean | string[] | number[] | null;
|
|
327
326
|
}[] | undefined;
|
|
327
|
+
set?: Record<string, any> | undefined;
|
|
328
328
|
model: string;
|
|
329
329
|
increment: Record<string, number>;
|
|
330
330
|
};
|
|
@@ -2925,8 +2925,8 @@ function emitProcedureNameLookupLiteral(lookup) {
|
|
|
2925
2925
|
const entries = Object.entries(lookup);
|
|
2926
2926
|
if (entries.length === 0) return "{}";
|
|
2927
2927
|
return `{\n${entries.map(([file, locations]) => {
|
|
2928
|
-
const items = locations.map((location) => `{ column: ${location.column}, line: ${location.line}, name: ${JSON.stringify(location.name)} }
|
|
2929
|
-
return ` ${JSON.stringify(file)}: [${items}],`;
|
|
2928
|
+
const items = locations.map((location) => ` { column: ${location.column}, line: ${location.line}, name: ${JSON.stringify(location.name)} },`).join("\n");
|
|
2929
|
+
return ` ${JSON.stringify(file)}: [\n${items}\n ],`;
|
|
2930
2930
|
}).join("\n")}\n}`;
|
|
2931
2931
|
}
|
|
2932
2932
|
function extractObjectLiteral(source, startIndex) {
|
package/dist/orm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $n as TableName, $t as OrmLifecycleChange, An as ConvexCheckBuilder, At as UpdateSet, Bn as ConvexTextBuilder, Br as IsPrimaryKey, Bt as RelationsBuilderColumnBase, C as MigrationStep, Cn as ConvexVectorIndexConfig, Cr as not, Ct as OrderByClause, D as defineMigration, Dn as searchIndex, Dr as startsWith, Dt as ReturningAll, E as buildMigrationPlan, En as rankIndex, Er as or, Et as PredicateWhereIndexConfig, Fn as ConvexUniqueConstraintBuilderOn, Fr as ColumnBuilderTypeConfig, Ft as ExtractTablesFromSchema, Gn as Columns, Gt as TablesRelationalConfig, H as RlsMode, Hn as text, Hr as NotNull, In as ConvexUniqueConstraintConfig, Ir as ColumnBuilderWithTableName, It as ExtractTablesWithRelations, Jn as OrmSchemaExtensionTables, Jt as ConvexDeletionBuilder, Kt as defineRelations, Ln as check, Lr as ColumnDataType, Lt as ManyConfig, M as DatabaseWithQuery, Mn as ConvexForeignKeyBuilder, Mr as ColumnBuilder, Mt as VectorSearchProvider, N as OrmReader$1, Nn as ConvexForeignKeyConfig, Nr as ColumnBuilderBaseConfig, Nt as unsetToken, O as defineMigrationSet, On as uniqueIndex, Ot as ReturningResult, P as OrmWriter$1, Pn as ConvexUniqueConstraintBuilder, Pr as ColumnBuilderRuntimeConfig, Qn as OrmSchemaTriggers, Qt as DiscriminatorBuilderConfig, Rn as foreignKey, Rr as DrizzleEntity, Rt as OneConfig, S as MigrationStateMap, Sn as ConvexVectorIndexBuilderOn, Sr as ne, St as MutationRunMode, T as MigrationWriteMode, Tn as index, Tr as notInArray, Tt as PaginatedResult, U as EdgeMetadata, V as RlsContext, Vn as ConvexTextBuilderInitial, Vr as IsUnique, Vt as RelationsBuilderColumnConfig, W as extractRelationsConfig, Wn as Brand, Wt as TableRelationalConfig, Xn as OrmSchemaExtensions, Xt as ConvexTable, Yt as ConvexDeletionConfig, Zn as OrmSchemaRelations, Zt as ConvexTableWithColumns, _ as MigrationManifestEntry, _n as ConvexRankIndexBuilderOn, _r as isNotNull, _t as MutationExecutionMode, an as RlsPolicy, ar as UnaryExpression, at as BuildRelationResult, b as MigrationRunStatus, bn as ConvexSearchIndexConfig, br as lt, bt as MutationResult, cn as rlsPolicy, cr as contains, ct as DBQueryConfig, d as MigrationAppliedState, dn as rlsRole, dr as fieldRef, dt as InferInsertModel, en as OrmLifecycleOperation, er as BinaryExpression, f as MigrationDefinition, fn as ConvexAggregateIndexBuilder, fr as gt, ft as InferModelFromColumns, g as MigrationDriftIssue, gn as ConvexRankIndexBuilder, gr as isFieldReference, gt as MutationExecuteResult, h as MigrationDocContext, hn as ConvexIndexBuilderOn, hr as inArray, ht as MutationExecuteConfig, i as OrmMigrationCapability, in as discriminator, ir as LogicalExpression, it as BuildQueryResult, j as DatabaseWithMutations, jn as ConvexCheckConfig, jr as AnyColumn, jt as VectorQueryConfig, k as detectMigrationDrift, kn as vectorIndex, kr as SystemFields, kt as ReturningSelection, ln as RlsRole, lr as endsWith, lt as FilterOperators, m as MigrationDoc, mn as ConvexIndexBuilder, mr as ilike, mt as InsertValue, n as OrmCapabilities, nn as convexTable, nr as FieldReference, nt as AggregateFieldValue, on as RlsPolicyConfig, or as and, ot as CountConfig, p as MigrationDirection, pn as ConvexAggregateIndexBuilderOn, pr as gte, pt as InferSelectModel, qt as defineRelationsPart, r as OrmCapability, rn as deletion, rr as FilterExpression, rt as AggregateResult, sn as RlsPolicyToOption, sr as between, st as CountResult, t as OrmAggregateCapability, tn as TableConfig, tr as ExpressionVisitor, tt as AggregateConfig, un as RlsRoleConfig, ur as eq, ut as GetColumnData, v as MigrationMigrateOne, vn as ConvexSearchIndexBuilder, vr as isNull, vt as MutationPaginateConfig, w as MigrationTableName, wn as aggregateIndex, wr as notBetween, wt as OrderDirection, x as MigrationSet, xn as ConvexVectorIndexBuilder, xr as lte, xt as MutationReturning, y as MigrationPlan, yn as ConvexSearchIndexBuilderOn, yr as like, yt as MutationPaginatedResult, zn as unique, zr as HasDefault, zt as RelationsBuilder } from "../capabilities-Bxzoofl4.js";
|
|
2
|
-
import { $ as OrmClientWithApi$1, A as ConvexDateMode, B as ConvexBytesBuilderInitial, C as ConvexNumberBuilderInitial, D as id, E as ConvexIdBuilderInitial, F as custom, G as ConvexBigIntBuilder, H as ConvexBooleanBuilder, I as json, J as CreateOrmOptions, K as ConvexBigIntBuilderInitial, L as objectOf, M as ConvexCustomBuilder, N as ConvexCustomBuilderInitial, O as ConvexDateBuilder, P as arrayOf, Q as OrmClientBase$1, R as unionOf, S as ConvexNumberBuilder, St as defineTriggers, T as ConvexIdBuilder, U as ConvexBooleanBuilderInitial, V as bytes, W as boolean, X as GenericOrmCtx$1, Y as GenericOrm$1, Z as OrmApiResult, _ as ConvexTimestampMode, _t as OrmBeforeResult, a as requireSchemaRelations, at as ScheduledMutationBatchArgs, b as ConvexTextEnumBuilderInitial, bt as OrmTriggerContext, c as TableConfigResult, ct as scheduledDeleteFactory, d as OrmNotFoundError, et as OrmFunctions, f as ConvexVectorBuilder, g as ConvexTimestampBuilderInitial, gt as defineSchemaExtension, h as ConvexTimestampBuilder, ht as SchemaExtension, i as getSchemaTriggers, it as createOrm, j as date, k as ConvexDateBuilderInitial, l as getTableColumns, m as vector, n as defineSchema, nt as OrmWriterCtx, o as asc, ot as scheduledMutationBatchFactory, p as ConvexVectorBuilderInitial, q as bigint, r as getSchemaRelations, rt as ResolveOrmSchema, s as desc, st as ScheduledDeleteArgs, t as WhereClauseResult, tt as OrmReaderCtx, u as getTableConfig, v as timestamp, vt as OrmTableTriggers, w as integer, x as textEnum, xt as OrmTriggers, y as ConvexTextEnumBuilder, yt as OrmTriggerChange, z as ConvexBytesBuilder } from "../where-clause-compiler-
|
|
2
|
+
import { $ as OrmClientWithApi$1, A as ConvexDateMode, B as ConvexBytesBuilderInitial, C as ConvexNumberBuilderInitial, D as id, E as ConvexIdBuilderInitial, F as custom, G as ConvexBigIntBuilder, H as ConvexBooleanBuilder, I as json, J as CreateOrmOptions, K as ConvexBigIntBuilderInitial, L as objectOf, M as ConvexCustomBuilder, N as ConvexCustomBuilderInitial, O as ConvexDateBuilder, P as arrayOf, Q as OrmClientBase$1, R as unionOf, S as ConvexNumberBuilder, St as defineTriggers, T as ConvexIdBuilder, U as ConvexBooleanBuilderInitial, V as bytes, W as boolean, X as GenericOrmCtx$1, Y as GenericOrm$1, Z as OrmApiResult, _ as ConvexTimestampMode, _t as OrmBeforeResult, a as requireSchemaRelations, at as ScheduledMutationBatchArgs, b as ConvexTextEnumBuilderInitial, bt as OrmTriggerContext, c as TableConfigResult, ct as scheduledDeleteFactory, d as OrmNotFoundError, et as OrmFunctions, f as ConvexVectorBuilder, g as ConvexTimestampBuilderInitial, gt as defineSchemaExtension, h as ConvexTimestampBuilder, ht as SchemaExtension, i as getSchemaTriggers, it as createOrm, j as date, k as ConvexDateBuilderInitial, l as getTableColumns, m as vector, n as defineSchema, nt as OrmWriterCtx, o as asc, ot as scheduledMutationBatchFactory, p as ConvexVectorBuilderInitial, q as bigint, r as getSchemaRelations, rt as ResolveOrmSchema, s as desc, st as ScheduledDeleteArgs, t as WhereClauseResult, tt as OrmReaderCtx, u as getTableConfig, v as timestamp, vt as OrmTableTriggers, w as integer, x as textEnum, xt as OrmTriggers, y as ConvexTextEnumBuilder, yt as OrmTriggerChange, z as ConvexBytesBuilder } from "../where-clause-compiler-qH6-NCM9.js";
|
|
3
3
|
import { i as pretendRequired, n as deprecated, r as pretend } from "../validators-0I-Ik1EN.js";
|
|
4
4
|
import { a as QueryCtxWithPreferredOrmQueryTable, i as QueryCtxWithOrmQueryTable, n as LookupByIdResultByCtx, o as getByIdWithOrmQueryFallback, r as QueryCtxWithOptionalOrmQueryTable, t as DocByCtx } from "../query-context-BkNjkDCk.js";
|
|
5
5
|
import { DefineSchemaOptions, GenericDatabaseReader, GenericDatabaseWriter, GenericSchema, SchemaDefinition } from "convex/server";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { C as MigrationStep, D as defineMigration, E as buildMigrationPlan, O as defineMigrationSet, S as MigrationStateMap, T as MigrationWriteMode, _ as MigrationManifestEntry, a as MAX_STATUS_RUN_LIMIT, b as MigrationRunStatus, c as MigrationRunChunkArgs, d as MigrationAppliedState, f as MigrationDefinition, g as MigrationDriftIssue, h as MigrationDocContext, k as detectMigrationDrift, l as MigrationStatusArgs, m as MigrationDoc, o as MigrationCancelArgs, p as MigrationDirection, s as MigrationRunArgs, u as createMigrationHandlers, v as MigrationMigrateOne, w as MigrationTableName, x as MigrationSet, y as MigrationPlan } from "../../capabilities-Bxzoofl4.js";
|
|
2
|
-
import { Ct as migrationCapability, dt as MIGRATION_STORAGE_TABLE_NAMES, ft as injectMigrationStorageTables, lt as MIGRATION_RUN_TABLE, mt as migrationStorageTables, pt as migrationExtension, ut as MIGRATION_STATE_TABLE } from "../../where-clause-compiler-
|
|
2
|
+
import { Ct as migrationCapability, dt as MIGRATION_STORAGE_TABLE_NAMES, ft as injectMigrationStorageTables, lt as MIGRATION_RUN_TABLE, mt as migrationStorageTables, pt as migrationExtension, ut as MIGRATION_STATE_TABLE } from "../../where-clause-compiler-qH6-NCM9.js";
|
|
3
3
|
export { MAX_STATUS_RUN_LIMIT, MIGRATION_RUN_TABLE, MIGRATION_STATE_TABLE, MIGRATION_STORAGE_TABLE_NAMES, type MigrationAppliedState, type MigrationCancelArgs, type MigrationDefinition, type MigrationDirection, type MigrationDoc, type MigrationDocContext, type MigrationDriftIssue, type MigrationManifestEntry, type MigrationMigrateOne, type MigrationPlan, type MigrationRunArgs, type MigrationRunChunkArgs, type MigrationRunStatus, type MigrationSet, type MigrationStateMap, type MigrationStatusArgs, type MigrationStep, type MigrationTableName, type MigrationWriteMode, buildMigrationPlan, createMigrationHandlers, defineMigration, defineMigrationSet, detectMigrationDrift, injectMigrationStorageTables, migrationCapability, migrationExtension, migrationStorageTables };
|
package/dist/plugins/index.js
CHANGED
package/dist/ratelimit/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as requireMutationCtx } from "../api-entry-Buvjl9hn.js";
|
|
2
|
-
import { _ as CRPCError } from "../builder-
|
|
3
|
-
import { t as definePlugin } from "../middleware-
|
|
2
|
+
import { _ as CRPCError } from "../builder-C4FTb9Ci.js";
|
|
3
|
+
import { t as definePlugin } from "../middleware-0x76j2pR.js";
|
|
4
4
|
import { v } from "convex/values";
|
|
5
5
|
import { mutationGeneric, queryGeneric } from "convex/server";
|
|
6
6
|
|
package/dist/server/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as isMutationCtx, c as isSchedulerCtx, d as requireQueryCtx, f as requireRunMutationCtx, i as isActionCtx, l as requireActionCtx, n as createGeneratedFunctionReference, o as isQueryCtx, p as requireSchedulerCtx, r as getGeneratedValue, s as isRunMutationCtx, t as createApiLeaf, u as requireMutationCtx } from "../api-entry-Buvjl9hn.js";
|
|
2
2
|
import { n as createLazyCaller, r as createServerCaller, t as createCallerFactory } from "../caller-factory-CEKbQdGY.js";
|
|
3
|
-
import { A as zid, C as toCRPCError, D as zCustomAction, E as withSystemFields, M as zodOutputToConvexFields, N as zodToConvex, O as zCustomMutation, P as zodToConvexFields, S as isCRPCError, T as convexToZodFields, _ as CRPCError, a as createMiddlewareFactory, b as getCRPCErrorFromUnknown, c as registerProcedureNameLookup, d as createHttpRouterFactory, f as extractRouteMap, g as matchPathParams, h as handleHttpError, i as QueryProcedureBuilder, j as zodOutputToConvex, k as zCustomQuery, l as HttpRouterWithHono, m as extractPathParams, n as MutationProcedureBuilder, o as initCRPC, p as createHttpProcedureBuilder, r as ProcedureBuilder, s as inferProcedureNameFromCallsite, t as ActionProcedureBuilder, u as createHttpRouter, v as CRPC_ERROR_CODES_BY_KEY, w as convexToZod, x as getHTTPStatusCodeFromError, y as CRPC_ERROR_CODE_TO_HTTP } from "../builder-
|
|
4
|
-
import { a as createProcedureHandlerFactory, c as typedProcedureResolver, i as createProcedureCallerFactory, l as createEnv, n as createGenericCallerFactory, o as defineProcedure, r as createGenericHandlerFactory, s as getGeneratedFunctionReference, t as createGeneratedRegistryRuntime } from "../procedure-caller-
|
|
3
|
+
import { A as zid, C as toCRPCError, D as zCustomAction, E as withSystemFields, M as zodOutputToConvexFields, N as zodToConvex, O as zCustomMutation, P as zodToConvexFields, S as isCRPCError, T as convexToZodFields, _ as CRPCError, a as createMiddlewareFactory, b as getCRPCErrorFromUnknown, c as registerProcedureNameLookup, d as createHttpRouterFactory, f as extractRouteMap, g as matchPathParams, h as handleHttpError, i as QueryProcedureBuilder, j as zodOutputToConvex, k as zCustomQuery, l as HttpRouterWithHono, m as extractPathParams, n as MutationProcedureBuilder, o as initCRPC, p as createHttpProcedureBuilder, r as ProcedureBuilder, s as inferProcedureNameFromCallsite, t as ActionProcedureBuilder, u as createHttpRouter, v as CRPC_ERROR_CODES_BY_KEY, w as convexToZod, x as getHTTPStatusCodeFromError, y as CRPC_ERROR_CODE_TO_HTTP } from "../builder-C4FTb9Ci.js";
|
|
4
|
+
import { a as createProcedureHandlerFactory, c as typedProcedureResolver, i as createProcedureCallerFactory, l as createEnv, n as createGenericCallerFactory, o as defineProcedure, r as createGenericHandlerFactory, s as getGeneratedFunctionReference, t as createGeneratedRegistryRuntime } from "../procedure-caller-CZDaDjju.js";
|
|
5
5
|
|
|
6
6
|
export { ActionProcedureBuilder, CRPCError, CRPC_ERROR_CODES_BY_KEY, CRPC_ERROR_CODE_TO_HTTP, HttpRouterWithHono, MutationProcedureBuilder, ProcedureBuilder, QueryProcedureBuilder, convexToZod, convexToZodFields, createApiLeaf, createCallerFactory, createEnv, createGeneratedFunctionReference, createGeneratedRegistryRuntime, createGenericCallerFactory, createGenericHandlerFactory, createHttpProcedureBuilder, createHttpRouter, createHttpRouterFactory, createLazyCaller, createMiddlewareFactory, createProcedureCallerFactory, createProcedureHandlerFactory, createServerCaller, defineProcedure, extractPathParams, extractRouteMap, getCRPCErrorFromUnknown, getGeneratedFunctionReference, getGeneratedValue, getHTTPStatusCodeFromError, handleHttpError, inferProcedureNameFromCallsite, initCRPC, isActionCtx, isCRPCError, isMutationCtx, isQueryCtx, isRunMutationCtx, isSchedulerCtx, matchPathParams, registerProcedureNameLookup, requireActionCtx, requireMutationCtx, requireQueryCtx, requireRunMutationCtx, requireSchedulerCtx, toCRPCError, typedProcedureResolver, withSystemFields, zCustomAction, zCustomMutation, zCustomQuery, zid, zodOutputToConvex, zodOutputToConvexFields, zodToConvex, zodToConvexFields };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as JWT_COOKIE_NAME } from "./convex-plugin-
|
|
1
|
+
import { t as JWT_COOKIE_NAME } from "./convex-plugin-UGuLZPyQ.js";
|
|
2
2
|
import { betterFetch } from "@better-fetch/fetch";
|
|
3
3
|
import { getSessionCookie } from "better-auth/cookies";
|
|
4
4
|
import * as jose from "jose";
|
package/dist/watcher.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as generateMeta, d as PARSE_SNAPSHOT_SUFFIX, i as resolveConfiguredBackend, n as withLocalCodegenEnv, o as getConvexConfig, r as loadCliConfig, u as logger } from "./local-env-
|
|
2
|
+
import { a as generateMeta, d as PARSE_SNAPSHOT_SUFFIX, i as resolveConfiguredBackend, n as withLocalCodegenEnv, o as getConvexConfig, r as loadCliConfig, u as logger } from "./local-env-DfRydipT.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
|
|
@@ -102,25 +102,25 @@ declare const migrationStorageTables: {
|
|
|
102
102
|
fieldName: "status";
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
|
-
|
|
105
|
+
direction: ConvexTextBuilderInitial<""> & {
|
|
106
106
|
_: {
|
|
107
107
|
tableName: "migration_state";
|
|
108
108
|
};
|
|
109
109
|
} & {
|
|
110
110
|
_: {
|
|
111
|
-
fieldName: "
|
|
111
|
+
fieldName: "direction";
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
|
-
|
|
114
|
+
cursor: ConvexTextBuilderInitial<""> & {
|
|
115
115
|
_: {
|
|
116
116
|
tableName: "migration_state";
|
|
117
117
|
};
|
|
118
118
|
} & {
|
|
119
119
|
_: {
|
|
120
|
-
fieldName: "
|
|
120
|
+
fieldName: "cursor";
|
|
121
121
|
};
|
|
122
122
|
};
|
|
123
|
-
|
|
123
|
+
processed: ConvexNumberBuilderInitial<""> & {
|
|
124
124
|
_: {
|
|
125
125
|
notNull: true;
|
|
126
126
|
};
|
|
@@ -130,29 +130,29 @@ declare const migrationStorageTables: {
|
|
|
130
130
|
};
|
|
131
131
|
} & {
|
|
132
132
|
_: {
|
|
133
|
-
fieldName: "
|
|
133
|
+
fieldName: "processed";
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
|
-
|
|
137
|
-
_: {
|
|
138
|
-
notNull: true;
|
|
139
|
-
};
|
|
140
|
-
} & {
|
|
136
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
141
137
|
_: {
|
|
142
138
|
tableName: "migration_state";
|
|
143
139
|
};
|
|
144
140
|
} & {
|
|
145
141
|
_: {
|
|
146
|
-
fieldName: "
|
|
142
|
+
fieldName: "startedAt";
|
|
147
143
|
};
|
|
148
144
|
};
|
|
149
|
-
|
|
145
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
146
|
+
_: {
|
|
147
|
+
notNull: true;
|
|
148
|
+
};
|
|
149
|
+
} & {
|
|
150
150
|
_: {
|
|
151
151
|
tableName: "migration_state";
|
|
152
152
|
};
|
|
153
153
|
} & {
|
|
154
154
|
_: {
|
|
155
|
-
fieldName: "
|
|
155
|
+
fieldName: "updatedAt";
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
158
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -269,7 +269,7 @@ declare const migrationStorageTables: {
|
|
|
269
269
|
fieldName: "direction";
|
|
270
270
|
};
|
|
271
271
|
};
|
|
272
|
-
|
|
272
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
273
273
|
_: {
|
|
274
274
|
notNull: true;
|
|
275
275
|
};
|
|
@@ -279,10 +279,10 @@ declare const migrationStorageTables: {
|
|
|
279
279
|
};
|
|
280
280
|
} & {
|
|
281
281
|
_: {
|
|
282
|
-
fieldName: "
|
|
282
|
+
fieldName: "startedAt";
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
|
-
|
|
285
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
286
286
|
_: {
|
|
287
287
|
notNull: true;
|
|
288
288
|
};
|
|
@@ -292,7 +292,7 @@ declare const migrationStorageTables: {
|
|
|
292
292
|
};
|
|
293
293
|
} & {
|
|
294
294
|
_: {
|
|
295
|
-
fieldName: "
|
|
295
|
+
fieldName: "updatedAt";
|
|
296
296
|
};
|
|
297
297
|
};
|
|
298
298
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -1011,7 +1011,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1011
1011
|
readonly aggregate_bucket: ConvexTableWithColumns<{
|
|
1012
1012
|
name: "aggregate_bucket";
|
|
1013
1013
|
columns: {
|
|
1014
|
-
|
|
1014
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
1015
1015
|
_: {
|
|
1016
1016
|
notNull: true;
|
|
1017
1017
|
};
|
|
@@ -1021,7 +1021,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1021
1021
|
};
|
|
1022
1022
|
} & {
|
|
1023
1023
|
_: {
|
|
1024
|
-
fieldName: "
|
|
1024
|
+
fieldName: "indexName";
|
|
1025
1025
|
};
|
|
1026
1026
|
};
|
|
1027
1027
|
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -1037,7 +1037,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1037
1037
|
fieldName: "updatedAt";
|
|
1038
1038
|
};
|
|
1039
1039
|
};
|
|
1040
|
-
|
|
1040
|
+
tableKey: ConvexTextBuilderInitial<""> & {
|
|
1041
1041
|
_: {
|
|
1042
1042
|
notNull: true;
|
|
1043
1043
|
};
|
|
@@ -1047,10 +1047,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1047
1047
|
};
|
|
1048
1048
|
} & {
|
|
1049
1049
|
_: {
|
|
1050
|
-
fieldName: "
|
|
1050
|
+
fieldName: "tableKey";
|
|
1051
1051
|
};
|
|
1052
1052
|
};
|
|
1053
|
-
|
|
1053
|
+
count: ConvexNumberBuilderInitial<""> & {
|
|
1054
1054
|
_: {
|
|
1055
1055
|
notNull: true;
|
|
1056
1056
|
};
|
|
@@ -1060,7 +1060,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1060
1060
|
};
|
|
1061
1061
|
} & {
|
|
1062
1062
|
_: {
|
|
1063
|
-
fieldName: "
|
|
1063
|
+
fieldName: "count";
|
|
1064
1064
|
};
|
|
1065
1065
|
};
|
|
1066
1066
|
keyHash: ConvexTextBuilderInitial<""> & {
|
|
@@ -1149,7 +1149,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1149
1149
|
fieldName: "kind";
|
|
1150
1150
|
};
|
|
1151
1151
|
};
|
|
1152
|
-
|
|
1152
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
1153
1153
|
_: {
|
|
1154
1154
|
notNull: true;
|
|
1155
1155
|
};
|
|
@@ -1159,10 +1159,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1159
1159
|
};
|
|
1160
1160
|
} & {
|
|
1161
1161
|
_: {
|
|
1162
|
-
fieldName: "
|
|
1162
|
+
fieldName: "indexName";
|
|
1163
1163
|
};
|
|
1164
1164
|
};
|
|
1165
|
-
|
|
1165
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
1166
1166
|
_: {
|
|
1167
1167
|
notNull: true;
|
|
1168
1168
|
};
|
|
@@ -1172,7 +1172,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1172
1172
|
};
|
|
1173
1173
|
} & {
|
|
1174
1174
|
_: {
|
|
1175
|
-
fieldName: "
|
|
1175
|
+
fieldName: "updatedAt";
|
|
1176
1176
|
};
|
|
1177
1177
|
};
|
|
1178
1178
|
tableKey: ConvexTextBuilderInitial<""> & {
|
|
@@ -1343,7 +1343,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1343
1343
|
fieldName: "value";
|
|
1344
1344
|
};
|
|
1345
1345
|
};
|
|
1346
|
-
|
|
1346
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
1347
1347
|
_: {
|
|
1348
1348
|
notNull: true;
|
|
1349
1349
|
};
|
|
@@ -1353,7 +1353,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1353
1353
|
};
|
|
1354
1354
|
} & {
|
|
1355
1355
|
_: {
|
|
1356
|
-
fieldName: "
|
|
1356
|
+
fieldName: "indexName";
|
|
1357
1357
|
};
|
|
1358
1358
|
};
|
|
1359
1359
|
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -1369,7 +1369,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1369
1369
|
fieldName: "updatedAt";
|
|
1370
1370
|
};
|
|
1371
1371
|
};
|
|
1372
|
-
|
|
1372
|
+
tableKey: ConvexTextBuilderInitial<""> & {
|
|
1373
1373
|
_: {
|
|
1374
1374
|
notNull: true;
|
|
1375
1375
|
};
|
|
@@ -1379,10 +1379,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1379
1379
|
};
|
|
1380
1380
|
} & {
|
|
1381
1381
|
_: {
|
|
1382
|
-
fieldName: "
|
|
1382
|
+
fieldName: "tableKey";
|
|
1383
1383
|
};
|
|
1384
1384
|
};
|
|
1385
|
-
|
|
1385
|
+
count: ConvexNumberBuilderInitial<""> & {
|
|
1386
1386
|
_: {
|
|
1387
1387
|
notNull: true;
|
|
1388
1388
|
};
|
|
@@ -1392,7 +1392,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1392
1392
|
};
|
|
1393
1393
|
} & {
|
|
1394
1394
|
_: {
|
|
1395
|
-
fieldName: "
|
|
1395
|
+
fieldName: "count";
|
|
1396
1396
|
};
|
|
1397
1397
|
};
|
|
1398
1398
|
keyHash: ConvexTextBuilderInitial<""> & {
|
|
@@ -1596,15 +1596,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1596
1596
|
fieldName: "status";
|
|
1597
1597
|
};
|
|
1598
1598
|
};
|
|
1599
|
-
cursor: ConvexTextBuilderInitial<""> & {
|
|
1600
|
-
_: {
|
|
1601
|
-
tableName: "aggregate_state";
|
|
1602
|
-
};
|
|
1603
|
-
} & {
|
|
1604
|
-
_: {
|
|
1605
|
-
fieldName: "cursor";
|
|
1606
|
-
};
|
|
1607
|
-
};
|
|
1608
1599
|
kind: ConvexTextBuilderInitial<""> & {
|
|
1609
1600
|
_: {
|
|
1610
1601
|
notNull: true;
|
|
@@ -1618,17 +1609,13 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1618
1609
|
fieldName: "kind";
|
|
1619
1610
|
};
|
|
1620
1611
|
};
|
|
1621
|
-
|
|
1622
|
-
_: {
|
|
1623
|
-
notNull: true;
|
|
1624
|
-
};
|
|
1625
|
-
} & {
|
|
1612
|
+
cursor: ConvexTextBuilderInitial<""> & {
|
|
1626
1613
|
_: {
|
|
1627
1614
|
tableName: "aggregate_state";
|
|
1628
1615
|
};
|
|
1629
1616
|
} & {
|
|
1630
1617
|
_: {
|
|
1631
|
-
fieldName: "
|
|
1618
|
+
fieldName: "cursor";
|
|
1632
1619
|
};
|
|
1633
1620
|
};
|
|
1634
1621
|
indexName: ConvexTextBuilderInitial<""> & {
|
|
@@ -1696,6 +1683,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1696
1683
|
fieldName: "startedAt";
|
|
1697
1684
|
};
|
|
1698
1685
|
};
|
|
1686
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
1687
|
+
_: {
|
|
1688
|
+
notNull: true;
|
|
1689
|
+
};
|
|
1690
|
+
} & {
|
|
1691
|
+
_: {
|
|
1692
|
+
tableName: "aggregate_state";
|
|
1693
|
+
};
|
|
1694
|
+
} & {
|
|
1695
|
+
_: {
|
|
1696
|
+
fieldName: "updatedAt";
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1699
1699
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
1700
1700
|
_: {
|
|
1701
1701
|
tableName: "aggregate_state";
|
|
@@ -1751,25 +1751,25 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1751
1751
|
fieldName: "status";
|
|
1752
1752
|
};
|
|
1753
1753
|
};
|
|
1754
|
-
|
|
1754
|
+
direction: ConvexTextBuilderInitial<""> & {
|
|
1755
1755
|
_: {
|
|
1756
1756
|
tableName: "migration_state";
|
|
1757
1757
|
};
|
|
1758
1758
|
} & {
|
|
1759
1759
|
_: {
|
|
1760
|
-
fieldName: "
|
|
1760
|
+
fieldName: "direction";
|
|
1761
1761
|
};
|
|
1762
1762
|
};
|
|
1763
|
-
|
|
1763
|
+
cursor: ConvexTextBuilderInitial<""> & {
|
|
1764
1764
|
_: {
|
|
1765
1765
|
tableName: "migration_state";
|
|
1766
1766
|
};
|
|
1767
1767
|
} & {
|
|
1768
1768
|
_: {
|
|
1769
|
-
fieldName: "
|
|
1769
|
+
fieldName: "cursor";
|
|
1770
1770
|
};
|
|
1771
1771
|
};
|
|
1772
|
-
|
|
1772
|
+
processed: ConvexNumberBuilderInitial<""> & {
|
|
1773
1773
|
_: {
|
|
1774
1774
|
notNull: true;
|
|
1775
1775
|
};
|
|
@@ -1779,29 +1779,29 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1779
1779
|
};
|
|
1780
1780
|
} & {
|
|
1781
1781
|
_: {
|
|
1782
|
-
fieldName: "
|
|
1782
|
+
fieldName: "processed";
|
|
1783
1783
|
};
|
|
1784
1784
|
};
|
|
1785
|
-
|
|
1786
|
-
_: {
|
|
1787
|
-
notNull: true;
|
|
1788
|
-
};
|
|
1789
|
-
} & {
|
|
1785
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
1790
1786
|
_: {
|
|
1791
1787
|
tableName: "migration_state";
|
|
1792
1788
|
};
|
|
1793
1789
|
} & {
|
|
1794
1790
|
_: {
|
|
1795
|
-
fieldName: "
|
|
1791
|
+
fieldName: "startedAt";
|
|
1796
1792
|
};
|
|
1797
1793
|
};
|
|
1798
|
-
|
|
1794
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
1795
|
+
_: {
|
|
1796
|
+
notNull: true;
|
|
1797
|
+
};
|
|
1798
|
+
} & {
|
|
1799
1799
|
_: {
|
|
1800
1800
|
tableName: "migration_state";
|
|
1801
1801
|
};
|
|
1802
1802
|
} & {
|
|
1803
1803
|
_: {
|
|
1804
|
-
fieldName: "
|
|
1804
|
+
fieldName: "updatedAt";
|
|
1805
1805
|
};
|
|
1806
1806
|
};
|
|
1807
1807
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -1918,7 +1918,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1918
1918
|
fieldName: "direction";
|
|
1919
1919
|
};
|
|
1920
1920
|
};
|
|
1921
|
-
|
|
1921
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
1922
1922
|
_: {
|
|
1923
1923
|
notNull: true;
|
|
1924
1924
|
};
|
|
@@ -1928,10 +1928,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1928
1928
|
};
|
|
1929
1929
|
} & {
|
|
1930
1930
|
_: {
|
|
1931
|
-
fieldName: "
|
|
1931
|
+
fieldName: "startedAt";
|
|
1932
1932
|
};
|
|
1933
1933
|
};
|
|
1934
|
-
|
|
1934
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
1935
1935
|
_: {
|
|
1936
1936
|
notNull: true;
|
|
1937
1937
|
};
|
|
@@ -1941,7 +1941,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
1941
1941
|
};
|
|
1942
1942
|
} & {
|
|
1943
1943
|
_: {
|
|
1944
|
-
fieldName: "
|
|
1944
|
+
fieldName: "updatedAt";
|
|
1945
1945
|
};
|
|
1946
1946
|
};
|
|
1947
1947
|
completedAt: ConvexNumberBuilderInitial<""> & {
|