better-convex 0.9.1 → 0.9.2
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 +4 -1
- package/dist/auth/index.d.ts +6 -5
- package/dist/auth/index.js +27 -18
- package/dist/auth/nextjs/index.d.ts +5 -3
- package/dist/auth/nextjs/index.js +5 -4
- package/dist/{caller-factory-CCsm4Dut.js → caller-factory-C1uAqm5w.js} +20 -11
- package/dist/orm/index.d.ts +1 -1
- package/dist/plugins/index.d.ts +4 -4
- package/dist/plugins/ratelimit/index.d.ts +4 -1
- package/dist/{procedure-caller-DYjpq7rG.d.ts → procedure-caller-kZJx_hmP.d.ts} +7 -2
- package/dist/server/index.d.ts +2 -1
- package/dist/server/index.js +1 -1
- package/dist/{where-clause-compiler-UavDdMUX.d.ts → where-clause-compiler-DjFwXrQn.d.ts} +4 -1
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../validators-BcQFm1oY.js";
|
|
2
|
+
import { Jn as ConvexTextBuilderInitial, Ot as ConvexCustomBuilderInitial, in as ConvexTableWithColumns, vt as ConvexNumberBuilderInitial, xt as ConvexIdBuilderInitial } from "../where-clause-compiler-DjFwXrQn.js";
|
|
3
|
+
import "../query-context-ji7By8u0.js";
|
|
4
|
+
import "../orm/index.js";
|
|
2
5
|
import * as convex_values0 from "convex/values";
|
|
3
6
|
import { GenericId, Infer, Value } from "convex/values";
|
|
4
7
|
import { DocumentByName, GenericDataModel, GenericDatabaseReader, GenericDatabaseWriter, TableNamesInDataModel } from "convex/server";
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import "../validators-BcQFm1oY.js";
|
|
1
2
|
import { a as QueryCtxWithPreferredOrmQueryTable, n as LookupByIdResultByCtx, t as DocByCtx } from "../query-context-ji7By8u0.js";
|
|
2
3
|
import { t as GetAuth } from "../types-CM67ko7K.js";
|
|
3
|
-
import { A as GenericCtx } from "../procedure-caller-
|
|
4
|
+
import { A as GenericCtx } from "../procedure-caller-kZJx_hmP.js";
|
|
4
5
|
import "../http-types-BK7FuIcR.js";
|
|
5
6
|
import "../server/index.js";
|
|
6
7
|
import * as convex_values0 from "convex/values";
|
|
@@ -436,6 +437,8 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
436
437
|
}[] | undefined;
|
|
437
438
|
model: string;
|
|
438
439
|
}, Promise<convex_server0.GenericDocument | null>>;
|
|
440
|
+
getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
441
|
+
rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
439
442
|
updateMany: convex_server0.RegisteredMutation<"internal", {
|
|
440
443
|
input: {
|
|
441
444
|
where?: {
|
|
@@ -491,8 +494,6 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
|
|
|
491
494
|
model: string;
|
|
492
495
|
};
|
|
493
496
|
}, Promise<any>>;
|
|
494
|
-
getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
495
|
-
rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
496
497
|
};
|
|
497
498
|
//#endregion
|
|
498
499
|
//#region ../../node_modules/kysely/dist/esm/operation-node/operation-node.d.ts
|
|
@@ -19232,6 +19233,8 @@ declare const createAuthRuntime: <DataModel extends GenericDataModel, Schema ext
|
|
|
19232
19233
|
}[] | undefined;
|
|
19233
19234
|
model: string;
|
|
19234
19235
|
}, Promise<convex_server0.GenericDocument | null>>;
|
|
19236
|
+
getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
19237
|
+
rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
19235
19238
|
updateMany: convex_server0.RegisteredMutation<"internal", {
|
|
19236
19239
|
input: {
|
|
19237
19240
|
where?: {
|
|
@@ -19287,8 +19290,6 @@ declare const createAuthRuntime: <DataModel extends GenericDataModel, Schema ext
|
|
|
19287
19290
|
model: string;
|
|
19288
19291
|
};
|
|
19289
19292
|
}, Promise<any>>;
|
|
19290
|
-
getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
19291
|
-
rotateKeys: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
|
|
19292
19293
|
authEnabled: true;
|
|
19293
19294
|
authClient: {
|
|
19294
19295
|
authFunctions: AuthFunctions;
|
package/dist/auth/index.js
CHANGED
|
@@ -315,7 +315,7 @@ const resolveOrmTable = (ctx, schema, betterAuthSchema, model) => {
|
|
|
315
315
|
const tableName = resolveSchemaTableName(schema, betterAuthSchema, model);
|
|
316
316
|
if (!tableName) return;
|
|
317
317
|
const table = schema.tables[tableName];
|
|
318
|
-
if (!table
|
|
318
|
+
if (!table?._id) return;
|
|
319
319
|
return {
|
|
320
320
|
table,
|
|
321
321
|
tableName
|
|
@@ -409,10 +409,19 @@ const serializeDatesForConvex = (value) => {
|
|
|
409
409
|
return serialized ?? value;
|
|
410
410
|
};
|
|
411
411
|
const toConvexSafe = (value) => serializeDatesForConvex(value);
|
|
412
|
+
const withAuthTimestamps = (data) => {
|
|
413
|
+
if (data.createdAt !== void 0) return data;
|
|
414
|
+
const now = Date.now();
|
|
415
|
+
return {
|
|
416
|
+
...data,
|
|
417
|
+
createdAt: now,
|
|
418
|
+
...data.updatedAt === void 0 ? { updatedAt: now } : {}
|
|
419
|
+
};
|
|
420
|
+
};
|
|
412
421
|
const createHandler = async (ctx, args, schema, betterAuthSchema) => {
|
|
413
422
|
const triggerCtx = args.triggerCtx ?? ctx;
|
|
414
423
|
const tableTriggers = args.tableTriggers;
|
|
415
|
-
const data = serializeDatesForConvex(await applyBeforeHook(args.input.model, "create", args.input.data, tableTriggers?.create?.before, triggerCtx));
|
|
424
|
+
const data = serializeDatesForConvex(withAuthTimestamps(await applyBeforeHook(args.input.model, "create", args.input.data, tableTriggers?.create?.before, triggerCtx)));
|
|
416
425
|
await checkUniqueFields(ctx, schema, betterAuthSchema, args.input.model, data);
|
|
417
426
|
const ormTable = resolveOrmTable(ctx, schema, betterAuthSchema, args.input.model);
|
|
418
427
|
const doc = ormTable ? await ormInsert(ctx, ormTable.table, data) : await (async () => {
|
|
@@ -639,6 +648,7 @@ const createApi = (schema, getAuth, options) => {
|
|
|
639
648
|
}),
|
|
640
649
|
findMany: internalQueryGeneric({
|
|
641
650
|
args: {
|
|
651
|
+
join: v.optional(v.any()),
|
|
642
652
|
limit: v.optional(v.number()),
|
|
643
653
|
model: modelValidator,
|
|
644
654
|
offset: v.optional(v.number()),
|
|
@@ -647,20 +657,31 @@ const createApi = (schema, getAuth, options) => {
|
|
|
647
657
|
direction: v.union(v.literal("asc"), v.literal("desc")),
|
|
648
658
|
field: v.string()
|
|
649
659
|
})),
|
|
650
|
-
where: v.optional(v.array(adapterWhereValidator))
|
|
651
|
-
join: v.optional(v.any())
|
|
660
|
+
where: v.optional(v.array(adapterWhereValidator))
|
|
652
661
|
},
|
|
653
662
|
handler: async (ctx, args) => findManyHandler(ctx, args, schema, getBetterAuthSchema())
|
|
654
663
|
}),
|
|
655
664
|
findOne: internalQueryGeneric({
|
|
656
665
|
args: {
|
|
666
|
+
join: v.optional(v.any()),
|
|
657
667
|
model: modelValidator,
|
|
658
668
|
select: v.optional(v.array(v.string())),
|
|
659
|
-
where: v.optional(v.array(adapterWhereValidator))
|
|
660
|
-
join: v.optional(v.any())
|
|
669
|
+
where: v.optional(v.array(adapterWhereValidator))
|
|
661
670
|
},
|
|
662
671
|
handler: async (ctx, args) => findOneHandler(ctx, args, schema, getBetterAuthSchema())
|
|
663
672
|
}),
|
|
673
|
+
getLatestJwks: internalActionGeneric({
|
|
674
|
+
args: {},
|
|
675
|
+
handler: async (ctx) => {
|
|
676
|
+
return getAuth(ctx).api.getLatestJwks();
|
|
677
|
+
}
|
|
678
|
+
}),
|
|
679
|
+
rotateKeys: internalActionGeneric({
|
|
680
|
+
args: {},
|
|
681
|
+
handler: async (ctx) => {
|
|
682
|
+
return getAuth(ctx).api.rotateKeys();
|
|
683
|
+
}
|
|
684
|
+
}),
|
|
664
685
|
updateMany: mutationBuilder({
|
|
665
686
|
args: {
|
|
666
687
|
input: updateInput,
|
|
@@ -686,18 +707,6 @@ const createApi = (schema, getAuth, options) => {
|
|
|
686
707
|
triggerCtx
|
|
687
708
|
}, schema, getBetterAuthSchema());
|
|
688
709
|
}
|
|
689
|
-
}),
|
|
690
|
-
getLatestJwks: internalActionGeneric({
|
|
691
|
-
args: {},
|
|
692
|
-
handler: async (ctx) => {
|
|
693
|
-
return getAuth(ctx).api.getLatestJwks();
|
|
694
|
-
}
|
|
695
|
-
}),
|
|
696
|
-
rotateKeys: internalActionGeneric({
|
|
697
|
-
args: {},
|
|
698
|
-
handler: async (ctx) => {
|
|
699
|
-
return getAuth(ctx).api.rotateKeys();
|
|
700
|
-
}
|
|
701
710
|
})
|
|
702
711
|
};
|
|
703
712
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../validators-BcQFm1oY.js";
|
|
2
|
+
import { B as ConvexContext, H as LazyCaller } from "../../procedure-caller-kZJx_hmP.js";
|
|
2
3
|
import "../../http-types-BK7FuIcR.js";
|
|
3
4
|
import "../../server/index.js";
|
|
4
5
|
import { GetTokenOptions } from "@convex-dev/better-auth/utils";
|
|
@@ -12,7 +13,8 @@ type AuthOptions = {
|
|
|
12
13
|
};
|
|
13
14
|
type ConvexBetterAuthOptions<TApi> = Omit<GetTokenOptions, 'jwtCache'> & {
|
|
14
15
|
api: TApi;
|
|
15
|
-
convexSiteUrl: string;
|
|
16
|
+
convexSiteUrl: string;
|
|
17
|
+
convexUrl?: string; /** Auth options. JWT caching is enabled by default (set `auth.jwtCache: false` to disable). */
|
|
16
18
|
auth?: AuthOptions;
|
|
17
19
|
};
|
|
18
20
|
/**
|
|
@@ -38,10 +40,10 @@ type ConvexBetterAuthOptions<TApi> = Omit<GetTokenOptions, 'jwtCache'> & {
|
|
|
38
40
|
* ```
|
|
39
41
|
*/
|
|
40
42
|
declare function convexBetterAuth<TApi extends Record<string, unknown>>(opts: ConvexBetterAuthOptions<TApi>): {
|
|
43
|
+
createCaller: (ctxFn: () => Promise<ConvexContext<TApi>>) => LazyCaller<TApi>;
|
|
41
44
|
createContext: (reqOpts: {
|
|
42
45
|
headers: Headers;
|
|
43
46
|
}) => Promise<ConvexContext<TApi>>;
|
|
44
|
-
createCaller: (ctxFn: () => Promise<ConvexContext<TApi>>) => LazyCaller<TApi>;
|
|
45
47
|
handler: {
|
|
46
48
|
GET: (request: Request) => Promise<Response>;
|
|
47
49
|
POST: (request: Request) => Promise<Response>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as defaultIsUnauthorized } from "../../error-CAGGSN5H.js";
|
|
2
|
-
import { t as createCallerFactory } from "../../caller-factory-
|
|
2
|
+
import { t as createCallerFactory } from "../../caller-factory-C1uAqm5w.js";
|
|
3
3
|
import { getToken } from "@convex-dev/better-auth/utils";
|
|
4
4
|
|
|
5
5
|
//#region src/auth-nextjs/index.ts
|
|
@@ -50,7 +50,6 @@ function convexBetterAuth(opts) {
|
|
|
50
50
|
const jwtCacheEnabled = auth.jwtCache !== false;
|
|
51
51
|
const { createContext, createCaller } = createCallerFactory({
|
|
52
52
|
api: opts.api,
|
|
53
|
-
convexSiteUrl: opts.convexSiteUrl,
|
|
54
53
|
auth: jwtCacheEnabled ? {
|
|
55
54
|
getToken: (siteUrl, headers, getTokenOpts) => {
|
|
56
55
|
const mutableHeaders = new Headers(headers);
|
|
@@ -66,11 +65,13 @@ function convexBetterAuth(opts) {
|
|
|
66
65
|
});
|
|
67
66
|
},
|
|
68
67
|
isUnauthorized: auth.isUnauthorized ?? defaultIsUnauthorized
|
|
69
|
-
} : void 0
|
|
68
|
+
} : void 0,
|
|
69
|
+
convexSiteUrl: opts.convexSiteUrl,
|
|
70
|
+
convexUrl: opts.convexUrl
|
|
70
71
|
});
|
|
71
72
|
return {
|
|
72
|
-
createContext,
|
|
73
73
|
createCaller,
|
|
74
|
+
createContext,
|
|
74
75
|
handler: nextJsHandler(opts.convexSiteUrl)
|
|
75
76
|
};
|
|
76
77
|
}
|
|
@@ -116,12 +116,20 @@ function createLazyCaller(api, createContext) {
|
|
|
116
116
|
* Framework-agnostic caller factory.
|
|
117
117
|
* getToken is passed as a parameter - decoupled from @convex-dev/better-auth.
|
|
118
118
|
*/
|
|
119
|
-
const
|
|
119
|
+
const CONVEX_SITE_URL_RE = /\.convex\.site(?=\/|$)/;
|
|
120
|
+
const getArgsAndOptions = (args, token, url) => [args[0], {
|
|
121
|
+
token,
|
|
122
|
+
url
|
|
123
|
+
}];
|
|
120
124
|
const parseConvexSiteUrl = (url) => {
|
|
121
125
|
if (!url) throw new Error("CONVEX_SITE_URL is not set. This must be set in the environment.");
|
|
122
126
|
if (url.endsWith(".convex.cloud")) throw new Error(`CONVEX_SITE_URL should end in .convex.site, not .convex.cloud. Currently set to ${url}.`);
|
|
123
127
|
return url;
|
|
124
128
|
};
|
|
129
|
+
const getConvexUrl = (siteUrl, convexUrl) => {
|
|
130
|
+
if (convexUrl) return convexUrl;
|
|
131
|
+
return siteUrl.replace(CONVEX_SITE_URL_RE, ".convex.cloud");
|
|
132
|
+
};
|
|
125
133
|
/**
|
|
126
134
|
* Framework-agnostic caller factory.
|
|
127
135
|
*
|
|
@@ -137,6 +145,7 @@ const parseConvexSiteUrl = (url) => {
|
|
|
137
145
|
const noAuthGetToken = () => Promise.resolve({ token: void 0 });
|
|
138
146
|
function createCallerFactory(opts) {
|
|
139
147
|
const siteUrl = parseConvexSiteUrl(opts.convexSiteUrl);
|
|
148
|
+
const convexUrl = getConvexUrl(siteUrl, opts.convexUrl);
|
|
140
149
|
const getToken = opts.auth?.getToken ?? noAuthGetToken;
|
|
141
150
|
const isUnauthorized = opts.auth?.isUnauthorized;
|
|
142
151
|
const crpcMeta = buildMetaIndex(opts.api);
|
|
@@ -166,40 +175,40 @@ function createCallerFactory(opts) {
|
|
|
166
175
|
const fetchAuthQuery = async (query, args, callerOpts) => {
|
|
167
176
|
if (callerOpts?.skipUnauth && !tokenResult.token) return null;
|
|
168
177
|
return callWithTokenAndRetry((token) => {
|
|
169
|
-
const argsAndOptions = getArgsAndOptions([args], token);
|
|
178
|
+
const argsAndOptions = getArgsAndOptions([args], token, convexUrl);
|
|
170
179
|
return fetchQuery(query, argsAndOptions[0], argsAndOptions[1]);
|
|
171
180
|
}, tokenResult, reqOpts.headers);
|
|
172
181
|
};
|
|
173
182
|
const fetchAuthMutation = async (mutation, args, callerOpts) => {
|
|
174
183
|
if (callerOpts?.skipUnauth && !tokenResult.token) return null;
|
|
175
184
|
return callWithTokenAndRetry((token) => {
|
|
176
|
-
const argsAndOptions = getArgsAndOptions([args], token);
|
|
185
|
+
const argsAndOptions = getArgsAndOptions([args], token, convexUrl);
|
|
177
186
|
return fetchMutation(mutation, argsAndOptions[0], argsAndOptions[1]);
|
|
178
187
|
}, tokenResult, reqOpts.headers);
|
|
179
188
|
};
|
|
180
189
|
const fetchAuthAction = async (action, args, callerOpts) => {
|
|
181
190
|
if (callerOpts?.skipUnauth && !tokenResult.token) return null;
|
|
182
191
|
return callWithTokenAndRetry((token) => {
|
|
183
|
-
const argsAndOptions = getArgsAndOptions([args], token);
|
|
192
|
+
const argsAndOptions = getArgsAndOptions([args], token, convexUrl);
|
|
184
193
|
return fetchAction(action, argsAndOptions[0], argsAndOptions[1]);
|
|
185
194
|
}, tokenResult, reqOpts.headers);
|
|
186
195
|
};
|
|
187
196
|
return {
|
|
188
|
-
token: tokenResult.token,
|
|
189
|
-
isAuthenticated: !!tokenResult.token,
|
|
190
197
|
caller: createServerCaller(opts.api, {
|
|
191
|
-
fetchQuery: fetchAuthQuery,
|
|
192
|
-
fetchMutation: fetchAuthMutation,
|
|
193
198
|
fetchAction: fetchAuthAction,
|
|
199
|
+
fetchMutation: fetchAuthMutation,
|
|
200
|
+
fetchQuery: fetchAuthQuery,
|
|
194
201
|
meta: crpcMeta,
|
|
195
202
|
transformer: opts.transformer
|
|
196
|
-
})
|
|
203
|
+
}),
|
|
204
|
+
isAuthenticated: !!tokenResult.token,
|
|
205
|
+
token: tokenResult.token
|
|
197
206
|
};
|
|
198
207
|
};
|
|
199
208
|
const createCaller = (ctxFn) => createLazyCaller(opts.api, ctxFn);
|
|
200
209
|
return {
|
|
201
|
-
|
|
202
|
-
|
|
210
|
+
createCaller,
|
|
211
|
+
createContext
|
|
203
212
|
};
|
|
204
213
|
}
|
|
205
214
|
|
package/dist/orm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as pretendRequired, n as deprecated, r as pretend } from "../validators-BcQFm1oY.js";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as DatabaseWithMutations, $n as BuildQueryResult, $r as notBetween, $t as defineRelations, A as MigrationCancelArgs, An as ConvexVectorIndexConfig, Ar as ExpressionVisitor, At as custom, B as MigrationManifestEntry, Bn as ConvexForeignKeyConfig, Br as fieldRef, Bt as ConvexBigIntBuilderInitial, C as OrmBeforeResult, Cn as ConvexRankIndexBuilder, Cr as ReturningResult, Ct as ConvexDateBuilder, D as OrmTriggers, Dn as ConvexSearchIndexConfig, Dr as VectorSearchProvider, Dt as ConvexCustomBuilder, E as OrmTriggerContext, En as ConvexSearchIndexBuilderOn, Er as VectorQueryConfig, Et as date, F as MigrationDefinition, Fn as uniqueIndex, Fr as and, Ft as bytes, G as MigrationStateMap, Gn as foreignKey, Gr as isFieldReference, Gt as ExtractTablesWithRelations, H as MigrationPlan, Hn as ConvexUniqueConstraintBuilderOn, Hr as gte, Ht as CountBackfillChunkArgs, I as MigrationDirection, In as vectorIndex, Ir as between, It as ConvexBooleanBuilder, J as MigrationWriteMode, Jn as ConvexTextBuilderInitial, Jr as like, Jt as RelationsBuilder, K as MigrationStep, Kn as unique, Kr as isNotNull, Kt as ManyConfig, L as MigrationDoc, Ln as ConvexCheckBuilder, Lr as contains, Lt as ConvexBooleanBuilderInitial, M as MigrationRunChunkArgs, Mn as index, Mr as FilterExpression, Mt as objectOf, N as MigrationStatusArgs, Nn as rankIndex, Nr as LogicalExpression, Nt as ConvexBytesBuilder, O as defineTriggers, On as ConvexVectorIndexBuilder, Or as unsetToken, Ot as ConvexCustomBuilderInitial, P as MigrationAppliedState, Pn as searchIndex, Pr as UnaryExpression, Pt as ConvexBytesBuilderInitial, Q as detectMigrationDrift, Qn as AggregateResult, Qr as not, Qt as TablesRelationalConfig, R as MigrationDocContext, Rn as ConvexCheckConfig, Rr as endsWith, Rt as boolean, S as scheduledDeleteFactory, Sn as ConvexIndexBuilderOn, Sr as ReturningAll, St as id, T as OrmTriggerChange, Tn as ConvexSearchIndexBuilder, Tr as UpdateSet, Tt as ConvexDateMode, U as MigrationRunStatus, Un as ConvexUniqueConstraintConfig, Ur as ilike, Ut as CountBackfillKickoffArgs, V as MigrationMigrateOne, Vn as ConvexUniqueConstraintBuilder, Vr as gt, Vt as bigint, W as MigrationSet, Wn as check, Wr as inArray, Wt as CountBackfillStatusArgs, X as defineMigration, Xn as AggregateConfig, Xr as lte, Xt as RelationsBuilderColumnConfig, Y as buildMigrationPlan, Yn as text, Yr as lt, Yt as RelationsBuilderColumnBase, Z as defineMigrationSet, Zn as AggregateFieldValue, Zr as ne, Zt as TableRelationalConfig, _ as OrmWriterCtx, _i as HasDefault, _n as RlsRoleConfig, _r as MutationRunMode, _t as ConvexNumberBuilder, a as TableConfigResult, ai as OrmSchemaPlugin, an as DiscriminatorBuilderConfig, ar as GetColumnData, at as EdgeMetadata, b as scheduledMutationBatchFactory, bi as NotNull, bn as ConvexAggregateIndexBuilderOn, br as PaginatedResult, bt as ConvexIdBuilder, c as OrmNotFoundError, ci as SystemFields, cn as TableConfig, cr as InferSelectModel, ct as ConvexVectorBuilderInitial, d as GenericOrmCtx, di as ColumnBuilderBaseConfig, dn as discriminator, dr as MutationExecuteResult, dt as ConvexTimestampBuilderInitial, ei as notInArray, en as defineRelationsPart, er as BuildRelationResult, et as DatabaseWithQuery, f as OrmApiResult, fi as ColumnBuilderRuntimeConfig, fn as RlsPolicy, fr as MutationExecutionMode, ft as ConvexTimestampMode, g as OrmReaderCtx, gi as DrizzleEntity, gn as RlsRole, gr as MutationReturning, gt as textEnum, h as OrmFunctions, hi as ColumnDataType, hn as rlsPolicy, hr as MutationResult, ht as ConvexTextEnumBuilderInitial, i as desc, ii as Columns, ir as FilterOperators, it as RlsMode, j as MigrationRunArgs, jn as aggregateIndex, jr as FieldReference, jt as json, kn as ConvexVectorIndexBuilderOn, kr as BinaryExpression, kt as arrayOf, l as CreateOrmOptions, li as AnyColumn, ln as convexTable, lr as InsertValue, lt as vector, m as OrmClientWithApi, mi as ColumnBuilderWithTableName, mn as RlsPolicyToOption, mr as MutationPaginatedResult, mt as ConvexTextEnumBuilder, n as defineSchema, ni as startsWith, nn as ConvexDeletionConfig, nr as CountResult, nt as OrmWriter, o as getTableColumns, oi as OrmSchemaPluginTables, on as OrmLifecycleChange, or as InferInsertModel, ot as extractRelationsConfig, p as OrmClientBase, pi as ColumnBuilderTypeConfig, pn as RlsPolicyConfig, pr as MutationPaginateConfig, pt as timestamp, q as MigrationTableName, qn as ConvexTextBuilder, qr as isNull, qt as OneConfig, r as asc, ri as Brand, rn as ConvexTable, rr as DBQueryConfig, rt as RlsContext, s as getTableConfig, si as TableName, sn as OrmLifecycleOperation, sr as InferModelFromColumns, st as ConvexVectorBuilder, t as WhereClauseResult, ti as or, tn as ConvexDeletionBuilder, tr as CountConfig, tt as OrmReader, u as GenericOrm, ui as ColumnBuilder, un as deletion, ur as MutationExecuteConfig, ut as ConvexTimestampBuilder, v as createOrm, vi as IsPrimaryKey, vn as rlsRole, vr as OrderByClause, vt as ConvexNumberBuilderInitial, w as OrmTableTriggers, wn as ConvexRankIndexBuilderOn, wr as ReturningSelection, wt as ConvexDateBuilderInitial, x as ScheduledDeleteArgs, xn as ConvexIndexBuilder, xr as PredicateWhereIndexConfig, xt as ConvexIdBuilderInitial, y as ScheduledMutationBatchArgs, yi as IsUnique, yn as ConvexAggregateIndexBuilder, yr as OrderDirection, yt as integer, z as MigrationDriftIssue, zn as ConvexForeignKeyBuilder, zr as eq, zt as ConvexBigIntBuilder } from "../where-clause-compiler-DjFwXrQn.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-ji7By8u0.js";
|
|
4
4
|
import { DefineSchemaOptions, GenericSchema, SchemaDefinition } from "convex/server";
|
|
5
5
|
export { type AggregateConfig, type AggregateFieldValue, type AggregateResult, type AnyColumn, type BinaryExpression, Brand, type BuildQueryResult, type BuildRelationResult, type ColumnBuilder, type ColumnBuilderBaseConfig, type ColumnBuilderRuntimeConfig, type ColumnBuilderTypeConfig, type ColumnBuilderWithTableName, type ColumnDataType, Columns, type ConvexAggregateIndexBuilder, type ConvexAggregateIndexBuilderOn, type ConvexBigIntBuilder, type ConvexBigIntBuilderInitial, type ConvexBooleanBuilder, type ConvexBooleanBuilderInitial, type ConvexBytesBuilder, type ConvexBytesBuilderInitial, type ConvexCheckBuilder, type ConvexCheckConfig, type ConvexCustomBuilder, type ConvexCustomBuilderInitial, type ConvexDateBuilder, type ConvexDateBuilderInitial, type ConvexDateMode, type ConvexDeletionBuilder, type ConvexDeletionConfig, type ConvexForeignKeyBuilder, type ConvexForeignKeyConfig, type ConvexIdBuilder, type ConvexIdBuilderInitial, type ConvexIndexBuilder, type ConvexIndexBuilderOn, type ConvexNumberBuilder, type ConvexNumberBuilderInitial, type ConvexRankIndexBuilder, type ConvexRankIndexBuilderOn, type ConvexSearchIndexBuilder, type ConvexSearchIndexBuilderOn, type ConvexSearchIndexConfig, type ConvexTable, type ConvexTextBuilder, type ConvexTextBuilderInitial, type ConvexTextEnumBuilder, type ConvexTextEnumBuilderInitial, type ConvexTimestampBuilder, type ConvexTimestampBuilderInitial, type ConvexTimestampMode, type ConvexUniqueConstraintBuilder, type ConvexUniqueConstraintBuilderOn, type ConvexUniqueConstraintConfig, type ConvexVectorBuilder, type ConvexVectorBuilderInitial, type ConvexVectorIndexBuilder, type ConvexVectorIndexBuilderOn, type ConvexVectorIndexConfig, type CountBackfillChunkArgs, type CountBackfillKickoffArgs, type CountBackfillStatusArgs, type CountConfig, type CountResult, type CreateOrmOptions, type DBQueryConfig, type DatabaseWithMutations, type DatabaseWithQuery, type DefineSchemaOptions, type DiscriminatorBuilderConfig, type DocByCtx, type DrizzleEntity, type EdgeMetadata, type ExpressionVisitor, type ExtractTablesWithRelations, type FieldReference, type FilterExpression, type FilterOperators, type GenericOrm, type GenericOrmCtx, type GenericSchema, type GetColumnData, type HasDefault, type InferInsertModel, type InferModelFromColumns, type InferSelectModel, type InsertValue, type IsPrimaryKey, type IsUnique, type LogicalExpression, type LookupByIdResultByCtx, type ManyConfig, 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, type MutationExecuteConfig, type MutationExecuteResult, type MutationExecutionMode, type MutationPaginateConfig, type MutationPaginatedResult, type MutationResult, type MutationReturning, type MutationRunMode, type NotNull, type OneConfig, type OrderByClause, type OrderDirection, type OrmApiResult, type OrmBeforeResult, type OrmClientBase, type OrmClientWithApi, type OrmFunctions, type OrmLifecycleChange, type OrmLifecycleOperation, OrmNotFoundError, type OrmReader, type OrmReaderCtx, type OrmSchemaPlugin, OrmSchemaPluginTables, type OrmTableTriggers, type OrmTriggerChange, type OrmTriggerContext, type OrmTriggers, type OrmWriter, type OrmWriterCtx, type PaginatedResult, type PredicateWhereIndexConfig, type QueryCtxWithOptionalOrmQueryTable, type QueryCtxWithOrmQueryTable, type QueryCtxWithPreferredOrmQueryTable, type RelationsBuilder, type RelationsBuilderColumnBase, type RelationsBuilderColumnConfig, type ReturningAll, type ReturningResult, type ReturningSelection, type RlsContext, type RlsMode, RlsPolicy, type RlsPolicyConfig, type RlsPolicyToOption, RlsRole, type RlsRoleConfig, type ScheduledDeleteArgs, type ScheduledMutationBatchArgs, type SchemaDefinition, type SystemFields, type TableConfig, type TableConfigResult, TableName, type TableRelationalConfig, type TablesRelationalConfig, type UnaryExpression, type UpdateSet, type VectorQueryConfig, type VectorSearchProvider, type WhereClauseResult, aggregateIndex, and, arrayOf, asc, between, bigint, boolean, buildMigrationPlan, bytes, check, contains, convexTable, createOrm, custom, date, defineMigration, defineMigrationSet, defineRelations, defineRelationsPart, defineSchema, defineTriggers, deletion, deprecated, desc, detectMigrationDrift, discriminator, endsWith, eq, extractRelationsConfig, fieldRef, foreignKey, getByIdWithOrmQueryFallback, getTableColumns, getTableConfig, gt, gte, id, ilike, inArray, index, integer, isFieldReference, isNotNull, isNull, json, like, lt, lte, ne, not, notBetween, notInArray, objectOf, or, pretend, pretendRequired, rankIndex, rlsPolicy, rlsRole, scheduledDeleteFactory, scheduledMutationBatchFactory, searchIndex, startsWith, text, textEnum, timestamp, unique, uniqueIndex, unsetToken, vector, vectorIndex };
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../validators-BcQFm1oY.js";
|
|
2
|
+
import { ai as OrmSchemaPlugin, k as migrationPlugin } from "../where-clause-compiler-DjFwXrQn.js";
|
|
3
|
+
import "../query-context-ji7By8u0.js";
|
|
4
|
+
import "../orm/index.js";
|
|
2
5
|
|
|
3
|
-
//#region src/orm/migrations/schema.d.ts
|
|
4
|
-
declare function migrationPlugin(): OrmSchemaPlugin;
|
|
5
|
-
//#endregion
|
|
6
6
|
//#region src/orm/aggregate-index/schema.d.ts
|
|
7
7
|
declare function aggregatePlugin(): OrmSchemaPlugin;
|
|
8
8
|
//#endregion
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../validators-BcQFm1oY.js";
|
|
2
|
+
import { ai as OrmSchemaPlugin } from "../../where-clause-compiler-DjFwXrQn.js";
|
|
3
|
+
import "../../query-context-ji7By8u0.js";
|
|
4
|
+
import "../../orm/index.js";
|
|
2
5
|
import * as convex_server0 from "convex/server";
|
|
3
6
|
|
|
4
7
|
//#region src/plugins/ratelimit/duration.d.ts
|
|
@@ -1184,7 +1184,12 @@ type AuthOptions = {
|
|
|
1184
1184
|
};
|
|
1185
1185
|
type CreateCallerFactoryOptions<TApi> = {
|
|
1186
1186
|
/** Your Convex API object. */api: TApi; /** Convex site URL (must end in `.convex.site`). */
|
|
1187
|
-
convexSiteUrl: string;
|
|
1187
|
+
convexSiteUrl: string;
|
|
1188
|
+
/**
|
|
1189
|
+
* Convex deployment URL (must end in `.convex.cloud`).
|
|
1190
|
+
* Defaults to `convexSiteUrl` with the domain swapped.
|
|
1191
|
+
*/
|
|
1192
|
+
convexUrl?: string; /** Auth options. Pass to enable authenticated calls with JWT caching. */
|
|
1188
1193
|
auth?: AuthOptions; /** Optional wire transformer for request/response payloads (always composed with Date). */
|
|
1189
1194
|
transformer?: DataTransformerOptions;
|
|
1190
1195
|
};
|
|
@@ -1194,10 +1199,10 @@ type ConvexContext<TApi> = {
|
|
|
1194
1199
|
caller: ServerCaller<TApi>;
|
|
1195
1200
|
};
|
|
1196
1201
|
declare function createCallerFactory<TApi extends Record<string, unknown>>(opts: CreateCallerFactoryOptions<TApi>): {
|
|
1202
|
+
createCaller: (ctxFn: () => Promise<ConvexContext<TApi>>) => LazyCaller<TApi>;
|
|
1197
1203
|
createContext: (reqOpts: {
|
|
1198
1204
|
headers: Headers;
|
|
1199
1205
|
}) => Promise<ConvexContext<TApi>>;
|
|
1200
|
-
createCaller: (ctxFn: () => Promise<ConvexContext<TApi>>) => LazyCaller<TApi>;
|
|
1201
1206
|
};
|
|
1202
1207
|
//#endregion
|
|
1203
1208
|
//#region src/server/context-utils.d.ts
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../validators-BcQFm1oY.js";
|
|
2
|
+
import { $ as QueryProcedureBuilder, A as GenericCtx, B as ConvexContext, C as CRPC_ERROR_CODE_TO_HTTP, Ct as zodToConvex, D as toCRPCError, E as isCRPCError, F as isRunMutationCtx, G as CallerOpts, H as LazyCaller, I as requireActionCtx, J as createApiLeaf, K as ServerCaller, L as requireMutationCtx, M as isActionCtx, N as isMutationCtx, O as CreateEnvOptions, P as isQueryCtx, Q as ProcedureBuilder, R as requireQueryCtx, S as CRPC_ERROR_CODES_BY_KEY, St as zodOutputToConvexFields, T as getHTTPStatusCodeFromError, U as createLazyCaller, V as createCallerFactory, W as CallerMeta, X as CRPCFunctionTypeHint, Y as ActionProcedureBuilder, Z as MutationProcedureBuilder, _ as WithHttpRouter, _t as zCustomAction, a as ProcedureCaller, at as handleHttpError, b as CRPCError, bt as zid, c as ProcedureFromFunctionReference, ct as ConvexValidatorFromZodOutput, d as createGenericCallerFactory, dt as Zid, et as createMiddlewareFactory, f as createGenericHandlerFactory, ft as ZodFromValidatorBase, g as typedProcedureResolver, gt as withSystemFields, h as defineProcedure, ht as convexToZodFields, i as ProcedureActionCallerFromRegistry, it as extractPathParams, j as RunMutationCtx, k as createEnv, l as ProcedureSchedulableCallerFromRegistry, lt as CustomBuilder, m as createProcedureHandlerFactory, mt as convexToZod, n as GeneratedProcedureRegistry, nt as HttpProcedureBuilder, o as ProcedureCallerFromRegistry, ot as matchPathParams, p as createProcedureCallerFactory, pt as ZodValidatorFromConvex, q as createServerCaller, r as GeneratedProcedureRegistryEntry, rt as createHttpProcedureBuilder, s as ProcedureDefinition, st as ConvexValidatorFromZod, t as CreateProcedureCallerFactoryOptions, tt as initCRPC, u as ProcedureScheduleCallerFromRegistry, ut as ZCustomCtx, v as inferApiInputs, vt as zCustomMutation, w as getCRPCErrorFromUnknown, wt as zodToConvexFields, x as CRPCErrorCode, xt as zodOutputToConvex, y as inferApiOutputs, yt as zCustomQuery, z as requireRunMutationCtx } from "../procedure-caller-kZJx_hmP.js";
|
|
2
3
|
import { A as GetRawInputFn, B as Simplify, C as HttpProcedure, D as ProcedureMeta, E as InferHttpInput, F as MiddlewareMarker, I as MiddlewareNext, L as MiddlewareResult, M as MergeZodObjects, N as MiddlewareBuilder, O as AnyMiddleware, P as MiddlewareFunction, R as Overwrite, S as HttpMethod, T as HttpRouteDefinition, V as UnsetMarker, _ as extractRouteMap, b as HttpActionHandler, d as CRPCHttpRouter, f as HttpRouterDef, g as createHttpRouterFactory, h as createHttpRouter, j as IntersectIfDefined, k as AnyMiddlewareBuilder, m as HttpRouterWithHono, p as HttpRouterRecord, v as CRPCHonoHandler, w as HttpProcedureBuilderDef, x as HttpHandlerOpts, y as HttpActionConstructor, z as ResolveIfSet } from "../http-types-BK7FuIcR.js";
|
|
3
4
|
export { ActionProcedureBuilder, AnyMiddleware, AnyMiddlewareBuilder, CRPCError, CRPCErrorCode, CRPCFunctionTypeHint, CRPCHonoHandler, CRPCHttpRouter, CRPC_ERROR_CODES_BY_KEY, CRPC_ERROR_CODE_TO_HTTP, CallerMeta, CallerOpts, ConvexContext, ConvexValidatorFromZod, ConvexValidatorFromZodOutput, CreateEnvOptions, CreateProcedureCallerFactoryOptions, CustomBuilder, GeneratedProcedureRegistry, GeneratedProcedureRegistryEntry, GenericCtx, GetRawInputFn, HttpActionConstructor, HttpActionHandler, HttpHandlerOpts, HttpMethod, HttpProcedure, HttpProcedureBuilder, HttpProcedureBuilderDef, HttpRouteDefinition, HttpRouterDef, HttpRouterRecord, HttpRouterWithHono, InferHttpInput, IntersectIfDefined, LazyCaller, MergeZodObjects, MiddlewareBuilder, MiddlewareFunction, MiddlewareMarker, MiddlewareNext, MiddlewareResult, MutationProcedureBuilder, Overwrite, ProcedureActionCallerFromRegistry, ProcedureBuilder, ProcedureCaller, ProcedureCallerFromRegistry, ProcedureDefinition, ProcedureFromFunctionReference, ProcedureMeta, ProcedureSchedulableCallerFromRegistry, ProcedureScheduleCallerFromRegistry, QueryProcedureBuilder, ResolveIfSet, RunMutationCtx, ServerCaller, Simplify, UnsetMarker, WithHttpRouter, ZCustomCtx, Zid, ZodFromValidatorBase, ZodValidatorFromConvex, convexToZod, convexToZodFields, createApiLeaf, createCallerFactory, createEnv, createGenericCallerFactory, createGenericHandlerFactory, createHttpProcedureBuilder, createHttpRouter, createHttpRouterFactory, createLazyCaller, createMiddlewareFactory, createProcedureCallerFactory, createProcedureHandlerFactory, createServerCaller, defineProcedure, extractPathParams, extractRouteMap, getCRPCErrorFromUnknown, getHTTPStatusCodeFromError, handleHttpError, inferApiInputs, inferApiOutputs, initCRPC, isActionCtx, isCRPCError, isMutationCtx, isQueryCtx, isRunMutationCtx, matchPathParams, requireActionCtx, requireMutationCtx, requireQueryCtx, requireRunMutationCtx, toCRPCError, typedProcedureResolver, withSystemFields, zCustomAction, zCustomMutation, zCustomQuery, zid, zodOutputToConvex, zodOutputToConvexFields, zodToConvex, zodToConvexFields };
|
package/dist/server/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as pick, o as vRequired, t as addFieldsToValidator } from "../validators-D_i3BK7v.js";
|
|
2
2
|
import { a as isMutationCtx, c as requireActionCtx, d as requireRunMutationCtx, i as isActionCtx, l as requireMutationCtx, n as customCtx, o as isQueryCtx, s as isRunMutationCtx, t as NoOp, u as requireQueryCtx } from "../customFunctions-RnzME_cJ.js";
|
|
3
3
|
import { i as decodeWire, o as encodeWire, s as getTransformer } from "../transformer-ogg-4d78.js";
|
|
4
|
-
import { n as createLazyCaller, r as createServerCaller, t as createCallerFactory } from "../caller-factory-
|
|
4
|
+
import { n as createLazyCaller, r as createServerCaller, t as createCallerFactory } from "../caller-factory-C1uAqm5w.js";
|
|
5
5
|
import { ConvexError, v } from "convex/values";
|
|
6
6
|
import { HttpRouter, actionGeneric, getFunctionName, httpActionGeneric, internalActionGeneric, internalMutationGeneric, internalQueryGeneric, makeFunctionReference, mutationGeneric, queryGeneric } from "convex/server";
|
|
7
7
|
import * as z$1 from "zod/v4";
|
|
@@ -3420,6 +3420,9 @@ type MigrationCancelArgs = {
|
|
|
3420
3420
|
runId?: string;
|
|
3421
3421
|
};
|
|
3422
3422
|
//#endregion
|
|
3423
|
+
//#region src/orm/migrations/schema.d.ts
|
|
3424
|
+
declare function migrationPlugin(): OrmSchemaPlugin;
|
|
3425
|
+
//#endregion
|
|
3423
3426
|
//#region src/orm/triggers.d.ts
|
|
3424
3427
|
type MaybePromise<T> = T | Promise<T>;
|
|
3425
3428
|
type AnyRecord = Record<string, unknown>;
|
|
@@ -3692,4 +3695,4 @@ interface IndexLike {
|
|
|
3692
3695
|
indexName: string;
|
|
3693
3696
|
}
|
|
3694
3697
|
//#endregion
|
|
3695
|
-
export {
|
|
3698
|
+
export { DatabaseWithMutations as $, BuildQueryResult as $n, notBetween as $r, defineRelations as $t, MigrationCancelArgs as A, ConvexVectorIndexConfig as An, ExpressionVisitor as Ar, custom as At, MigrationManifestEntry as B, ConvexForeignKeyConfig as Bn, fieldRef as Br, ConvexBigIntBuilderInitial as Bt, OrmBeforeResult as C, ConvexRankIndexBuilder as Cn, ReturningResult as Cr, ConvexDateBuilder as Ct, OrmTriggers as D, ConvexSearchIndexConfig as Dn, VectorSearchProvider as Dr, ConvexCustomBuilder as Dt, OrmTriggerContext as E, ConvexSearchIndexBuilderOn as En, VectorQueryConfig as Er, date as Et, MigrationDefinition as F, uniqueIndex as Fn, and as Fr, bytes as Ft, MigrationStateMap as G, foreignKey as Gn, isFieldReference as Gr, ExtractTablesWithRelations as Gt, MigrationPlan as H, ConvexUniqueConstraintBuilderOn as Hn, gte as Hr, CountBackfillChunkArgs as Ht, MigrationDirection as I, vectorIndex as In, between as Ir, ConvexBooleanBuilder as It, MigrationWriteMode as J, ConvexTextBuilderInitial as Jn, like as Jr, RelationsBuilder as Jt, MigrationStep as K, unique as Kn, isNotNull as Kr, ManyConfig as Kt, MigrationDoc as L, ConvexCheckBuilder as Ln, contains as Lr, ConvexBooleanBuilderInitial as Lt, MigrationRunChunkArgs as M, index as Mn, FilterExpression$1 as Mr, objectOf as Mt, MigrationStatusArgs as N, rankIndex as Nn, LogicalExpression as Nr, ConvexBytesBuilder as Nt, defineTriggers as O, ConvexVectorIndexBuilder as On, unsetToken as Or, ConvexCustomBuilderInitial as Ot, MigrationAppliedState as P, searchIndex as Pn, UnaryExpression as Pr, ConvexBytesBuilderInitial as Pt, detectMigrationDrift as Q, AggregateResult as Qn, not as Qr, TablesRelationalConfig as Qt, MigrationDocContext as R, ConvexCheckConfig as Rn, endsWith as Rr, boolean as Rt, scheduledDeleteFactory as S, ConvexIndexBuilderOn as Sn, ReturningAll as Sr, id as St, OrmTriggerChange as T, ConvexSearchIndexBuilder as Tn, UpdateSet as Tr, ConvexDateMode as Tt, MigrationRunStatus as U, ConvexUniqueConstraintConfig as Un, ilike as Ur, CountBackfillKickoffArgs as Ut, MigrationMigrateOne as V, ConvexUniqueConstraintBuilder as Vn, gt as Vr, bigint as Vt, MigrationSet as W, check as Wn, inArray as Wr, CountBackfillStatusArgs as Wt, defineMigration as X, AggregateConfig as Xn, lte as Xr, RelationsBuilderColumnConfig as Xt, buildMigrationPlan as Y, text as Yn, lt as Yr, RelationsBuilderColumnBase as Yt, defineMigrationSet as Z, AggregateFieldValue as Zn, ne as Zr, TableRelationalConfig as Zt, OrmWriterCtx as _, HasDefault as _i, RlsRoleConfig as _n, MutationRunMode as _r, ConvexNumberBuilder as _t, TableConfigResult as a, OrmSchemaPlugin as ai, DiscriminatorBuilderConfig as an, GetColumnData as ar, EdgeMetadata as at, scheduledMutationBatchFactory as b, NotNull as bi, ConvexAggregateIndexBuilderOn as bn, PaginatedResult as br, ConvexIdBuilder as bt, OrmNotFoundError as c, SystemFields as ci, TableConfig as cn, InferSelectModel as cr, ConvexVectorBuilderInitial as ct, GenericOrmCtx as d, ColumnBuilderBaseConfig as di, discriminator as dn, MutationExecuteResult as dr, ConvexTimestampBuilderInitial as dt, notInArray as ei, defineRelationsPart as en, BuildRelationResult as er, DatabaseWithQuery as et, OrmApiResult as f, ColumnBuilderRuntimeConfig as fi, RlsPolicy as fn, MutationExecutionMode as fr, ConvexTimestampMode as ft, OrmReaderCtx as g, DrizzleEntity as gi, RlsRole as gn, MutationReturning as gr, textEnum as gt, OrmFunctions as h, ColumnDataType as hi, rlsPolicy as hn, MutationResult as hr, ConvexTextEnumBuilderInitial as ht, desc as i, Columns as ii, ConvexTableWithColumns as in, FilterOperators as ir, RlsMode as it, MigrationRunArgs as j, aggregateIndex as jn, FieldReference as jr, json as jt, migrationPlugin as k, ConvexVectorIndexBuilderOn as kn, BinaryExpression as kr, arrayOf as kt, CreateOrmOptions as l, AnyColumn as li, convexTable as ln, InsertValue as lr, vector as lt, OrmClientWithApi as m, ColumnBuilderWithTableName as mi, RlsPolicyToOption as mn, MutationPaginatedResult as mr, ConvexTextEnumBuilder as mt, defineSchema$1 as n, startsWith as ni, ConvexDeletionConfig as nn, CountResult as nr, OrmWriter as nt, getTableColumns as o, OrmSchemaPluginTables as oi, OrmLifecycleChange as on, InferInsertModel as or, extractRelationsConfig as ot, OrmClientBase as p, ColumnBuilderTypeConfig as pi, RlsPolicyConfig as pn, MutationPaginateConfig as pr, timestamp as pt, MigrationTableName as q, ConvexTextBuilder as qn, isNull as qr, OneConfig as qt, asc as r, Brand as ri, ConvexTable as rn, DBQueryConfig as rr, RlsContext as rt, getTableConfig as s, TableName as si, OrmLifecycleOperation as sn, InferModelFromColumns as sr, ConvexVectorBuilder as st, WhereClauseResult as t, or as ti, ConvexDeletionBuilder as tn, CountConfig as tr, OrmReader as tt, GenericOrm as u, ColumnBuilder as ui, deletion as un, MutationExecuteConfig as ur, ConvexTimestampBuilder as ut, createOrm as v, IsPrimaryKey as vi, rlsRole as vn, OrderByClause as vr, ConvexNumberBuilderInitial as vt, OrmTableTriggers as w, ConvexRankIndexBuilderOn as wn, ReturningSelection as wr, ConvexDateBuilderInitial as wt, ScheduledDeleteArgs as x, ConvexIndexBuilder as xn, PredicateWhereIndexConfig as xr, ConvexIdBuilderInitial as xt, ScheduledMutationBatchArgs as y, IsUnique as yi, ConvexAggregateIndexBuilder as yn, OrderDirection as yr, integer as yt, MigrationDriftIssue as z, ConvexForeignKeyBuilder as zn, eq as zr, ConvexBigIntBuilder as zt };
|