kitcn 0.15.11 → 0.15.13
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/client/index.d.ts +40 -3
- package/dist/auth/client/index.js +4 -2
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +4 -2
- package/dist/auth/nextjs/index.js +12 -3
- package/dist/auth/start/server/index.js +15 -5
- package/dist/{backend-core-DqIPJnse.mjs → backend-core-D5P0hNYD.mjs} +12 -3
- package/dist/cli.mjs +2 -2
- package/dist/orm/index.d.ts +1 -1
- package/dist/solid/index.d.ts +34 -3
- package/dist/solid/index.js +2 -1
- package/dist/watcher.mjs +1 -1
- package/dist/{where-clause-compiler-Ca0clgPV.d.ts → where-clause-compiler-D0D_4v_n.d.ts} +53 -53
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial, dn as ConvexTableWithColumns, tr as ConvexTextBuilderInitial } from "../where-clause-compiler-
|
|
1
|
+
import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial, dn as ConvexTableWithColumns, tr as ConvexTextBuilderInitial } from "../where-clause-compiler-D0D_4v_n.js";
|
|
2
2
|
import * as convex_values0 from "convex/values";
|
|
3
3
|
import { GenericId, Infer, Value } from "convex/values";
|
|
4
4
|
import { DocumentByName, GenericDataModel, GenericDatabaseReader, GenericDatabaseWriter, TableNamesInDataModel } from "convex/server";
|
|
@@ -309,7 +309,44 @@ type CrossDomainClient = BetterAuthClientPlugin & {
|
|
|
309
309
|
};
|
|
310
310
|
type PluginsWithCrossDomain = (CrossDomainClient | ConvexClient | BetterAuthClientPlugin)[];
|
|
311
311
|
type PluginsWithoutCrossDomain = (ConvexClient | BetterAuthClientPlugin)[];
|
|
312
|
-
type
|
|
312
|
+
type AuthSessionState = {
|
|
313
|
+
data: unknown;
|
|
314
|
+
error?: unknown;
|
|
315
|
+
isPending: boolean;
|
|
316
|
+
isRefetching?: boolean;
|
|
317
|
+
refetch?: (...args: never[]) => unknown;
|
|
318
|
+
};
|
|
319
|
+
type AuthClientStore = {
|
|
320
|
+
atoms?: {
|
|
321
|
+
session?: unknown;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
type AuthConvexTokenArgs = {
|
|
325
|
+
fetchOptions?: {
|
|
326
|
+
headers?: {
|
|
327
|
+
Authorization: string;
|
|
328
|
+
};
|
|
329
|
+
throw?: false;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
type AuthConvexTokenResult = {
|
|
333
|
+
data?: {
|
|
334
|
+
token?: string | null;
|
|
335
|
+
} | null;
|
|
336
|
+
} | null | undefined;
|
|
337
|
+
type ConvexAuthProviderClient = {
|
|
338
|
+
$store?: AuthClientStore;
|
|
339
|
+
convex: {
|
|
340
|
+
token: (args: AuthConvexTokenArgs) => Promise<AuthConvexTokenResult>;
|
|
341
|
+
};
|
|
342
|
+
crossDomain?: unknown;
|
|
343
|
+
getCookie?: (...args: never[]) => unknown;
|
|
344
|
+
getSession?: (...args: never[]) => unknown;
|
|
345
|
+
notifySessionSignal?: (...args: never[]) => unknown;
|
|
346
|
+
updateSession?: (...args: never[]) => unknown;
|
|
347
|
+
useSession: () => AuthSessionState;
|
|
348
|
+
} & Record<string, unknown>;
|
|
349
|
+
type AuthClientWithPlugins<Plugins extends PluginsWithCrossDomain | PluginsWithoutCrossDomain> = ReturnType<typeof createAuthClient<{
|
|
313
350
|
plugins: Plugins;
|
|
314
351
|
}>>;
|
|
315
352
|
type AuthClient = AuthClientWithPlugins<PluginsWithCrossDomain> | AuthClientWithPlugins<PluginsWithoutCrossDomain>;
|
|
@@ -321,7 +358,7 @@ type ConvexAuthProviderQueryClient = {
|
|
|
321
358
|
type ConvexAuthProviderProps = {
|
|
322
359
|
children: ReactNode; /** Convex client instance */
|
|
323
360
|
client: ConvexReactClient; /** Better Auth client instance */
|
|
324
|
-
authClient:
|
|
361
|
+
authClient: ConvexAuthProviderClient; /** Shared Convex query client to sync with auth state */
|
|
325
362
|
convexQueryClient?: ConvexAuthProviderQueryClient; /** Initial session token (from SSR) */
|
|
326
363
|
initialToken?: string; /** Callback when mutation called while unauthorized */
|
|
327
364
|
onMutationUnauthorized?: () => void; /** Callback when query called while unauthorized */
|
|
@@ -348,4 +385,4 @@ declare function ConvexAuthProvider({
|
|
|
348
385
|
isUnauthorized
|
|
349
386
|
}: ConvexAuthProviderProps): react_jsx_runtime0.JSX.Element;
|
|
350
387
|
//#endregion
|
|
351
|
-
export { type AuthClient, type AuthClientWithPlugins, ConvexAuthProvider, ConvexAuthProviderProps, ConvexAuthProviderQueryClient, type PluginsWithCrossDomain, type PluginsWithoutCrossDomain, convexClient };
|
|
388
|
+
export { type AuthClient, type AuthClientWithPlugins, ConvexAuthProvider, type ConvexAuthProviderClient, ConvexAuthProviderProps, ConvexAuthProviderQueryClient, type PluginsWithCrossDomain, type PluginsWithoutCrossDomain, convexClient };
|
|
@@ -33,11 +33,12 @@ const readAuthResultData = (result) => {
|
|
|
33
33
|
};
|
|
34
34
|
const getSessionFromPersistedToken = async (authClient, token) => {
|
|
35
35
|
await wait(250);
|
|
36
|
+
const getSession = authClient.getSession;
|
|
36
37
|
for (let attempt = 0; attempt < 10; attempt += 1) {
|
|
37
38
|
const data = readAuthResultData(authClient.$fetch ? await authClient.$fetch("/get-session", {
|
|
38
39
|
credentials: "omit",
|
|
39
40
|
headers: { Authorization: `Bearer ${token}` }
|
|
40
|
-
}) : await
|
|
41
|
+
}) : await getSession?.({ fetchOptions: {
|
|
41
42
|
credentials: "omit",
|
|
42
43
|
headers: { Authorization: `Bearer ${token}` }
|
|
43
44
|
} }));
|
|
@@ -321,7 +322,8 @@ function useOTTHandler(authClient) {
|
|
|
321
322
|
window.history.replaceState({}, "", url);
|
|
322
323
|
const session = (await authClientWithCrossDomain.crossDomain.oneTimeToken.verify({ token })).data?.session;
|
|
323
324
|
if (session && typeof authClient.getSession === "function") {
|
|
324
|
-
|
|
325
|
+
const getSession = authClient.getSession;
|
|
326
|
+
await getSession({ fetchOptions: {
|
|
325
327
|
credentials: "omit",
|
|
326
328
|
headers: { Authorization: `Bearer ${session.token}` }
|
|
327
329
|
} });
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ declare const adapterConfig: {
|
|
|
63
63
|
data: any;
|
|
64
64
|
fieldAttributes: better_auth0.DBFieldAttribute;
|
|
65
65
|
field: string;
|
|
66
|
-
action: "create" | "update" | "findOne" | "findMany" | "updateMany" | "delete" | "deleteMany" | "count";
|
|
66
|
+
action: "create" | "update" | "findOne" | "findMany" | "updateMany" | "delete" | "deleteMany" | "consumeOne" | "count";
|
|
67
67
|
model: string;
|
|
68
68
|
schema: BetterAuthDBSchema;
|
|
69
69
|
options: BetterAuthOptions;
|
package/dist/auth/index.js
CHANGED
|
@@ -988,7 +988,8 @@ const httpAdapter = (ctx, { authFunctions, debugLogs, schema }) => {
|
|
|
988
988
|
},
|
|
989
989
|
update: async (data) => {
|
|
990
990
|
if (!("runMutation" in ctx)) throw new Error("ctx is not a mutation ctx");
|
|
991
|
-
if (data.where?.length
|
|
991
|
+
if (!data.where?.length) return null;
|
|
992
|
+
if (data.where.every((w) => (w.operator === "eq" || w.operator === void 0) && w.connector !== "OR")) {
|
|
992
993
|
const countResult = await handlePagination(async ({ paginationOpts }) => await ctx.runQuery(authFunctions.findMany, {
|
|
993
994
|
model: data.model,
|
|
994
995
|
paginationOpts,
|
|
@@ -1161,7 +1162,8 @@ const dbAdapter = (ctx, getAuthOptions, { authFunctions, debugLogs, schema }) =>
|
|
|
1161
1162
|
}, schema, betterAuthSchema);
|
|
1162
1163
|
},
|
|
1163
1164
|
update: async (data) => {
|
|
1164
|
-
if (data.where?.length
|
|
1165
|
+
if (!data.where?.length) return null;
|
|
1166
|
+
if (data.where.every((w) => (w.operator === "eq" || w.operator === void 0) && w.connector !== "OR")) {
|
|
1165
1167
|
const countResult = await handlePagination(async ({ paginationOpts }) => await findManyHandler(ctx, {
|
|
1166
1168
|
model: data.model,
|
|
1167
1169
|
paginationOpts,
|
|
@@ -9,17 +9,27 @@ import { t as createCallerFactory } from "../../caller-factory-NEfgD5E0.js";
|
|
|
9
9
|
*/
|
|
10
10
|
const TRAILING_COLON_RE = /:$/;
|
|
11
11
|
const requestCanHaveBody = (method) => method !== "GET" && method !== "HEAD" && method !== "OPTIONS";
|
|
12
|
+
const stripHopByHopHeaders = (headers) => {
|
|
13
|
+
headers.delete("connection");
|
|
14
|
+
headers.delete("content-length");
|
|
15
|
+
headers.delete("transfer-encoding");
|
|
16
|
+
};
|
|
12
17
|
const handler = async (request, siteUrl) => {
|
|
13
18
|
const requestUrl = new URL(request.url);
|
|
14
19
|
const nextUrl = `${siteUrl}${requestUrl.pathname}${requestUrl.search}`;
|
|
15
20
|
const headers = new Headers(request.headers);
|
|
21
|
+
stripHopByHopHeaders(headers);
|
|
16
22
|
headers.set("accept-encoding", "application/json");
|
|
17
23
|
headers.set("host", new URL(siteUrl).host);
|
|
18
24
|
headers.set("x-forwarded-host", requestUrl.host);
|
|
19
25
|
headers.set("x-forwarded-proto", requestUrl.protocol.replace(TRAILING_COLON_RE, ""));
|
|
20
26
|
headers.set("x-better-auth-forwarded-host", requestUrl.host);
|
|
21
27
|
headers.set("x-better-auth-forwarded-proto", requestUrl.protocol.replace(TRAILING_COLON_RE, ""));
|
|
22
|
-
|
|
28
|
+
let body;
|
|
29
|
+
if (requestCanHaveBody(request.method)) {
|
|
30
|
+
const bufferedBody = await request.arrayBuffer();
|
|
31
|
+
if (bufferedBody.byteLength > 0) body = bufferedBody;
|
|
32
|
+
}
|
|
23
33
|
return fetch(nextUrl, {
|
|
24
34
|
body,
|
|
25
35
|
headers,
|
|
@@ -62,8 +72,7 @@ function convexBetterAuth(opts) {
|
|
|
62
72
|
auth: jwtCacheEnabled ? {
|
|
63
73
|
getToken: (siteUrl, headers, getTokenOpts) => {
|
|
64
74
|
const mutableHeaders = new Headers(headers);
|
|
65
|
-
mutableHeaders
|
|
66
|
-
mutableHeaders.delete("transfer-encoding");
|
|
75
|
+
stripHopByHopHeaders(mutableHeaders);
|
|
67
76
|
mutableHeaders.set("accept-encoding", "identity");
|
|
68
77
|
return getToken(siteUrl, mutableHeaders, {
|
|
69
78
|
basePath: auth.basePath,
|
|
@@ -8,6 +8,12 @@ import React from "react";
|
|
|
8
8
|
const fallbackCache = (fn) => fn;
|
|
9
9
|
const cache = React.cache ?? fallbackCache;
|
|
10
10
|
const TRAILING_COLON_RE = /:$/;
|
|
11
|
+
const requestCanHaveBody = (method) => method !== "GET" && method !== "HEAD" && method !== "OPTIONS";
|
|
12
|
+
const stripHopByHopHeaders = (headers) => {
|
|
13
|
+
headers.delete("connection");
|
|
14
|
+
headers.delete("content-length");
|
|
15
|
+
headers.delete("transfer-encoding");
|
|
16
|
+
};
|
|
11
17
|
function setupClient(options) {
|
|
12
18
|
const client = new ConvexHttpClient(options.convexUrl);
|
|
13
19
|
if (options.token !== void 0) client.setAuth(options.token);
|
|
@@ -49,20 +55,25 @@ const cloneAuthHandlerResponse = (response) => {
|
|
|
49
55
|
statusText: response.statusText
|
|
50
56
|
});
|
|
51
57
|
};
|
|
52
|
-
const handler = (request, opts) => {
|
|
58
|
+
const handler = async (request, opts) => {
|
|
53
59
|
const requestUrl = new URL(request.url);
|
|
54
60
|
const nextUrl = `${opts.convexSiteUrl}${requestUrl.pathname}${requestUrl.search}`;
|
|
55
61
|
const headers = new Headers(request.headers);
|
|
56
62
|
const proto = requestUrl.protocol.replace(TRAILING_COLON_RE, "");
|
|
63
|
+
stripHopByHopHeaders(headers);
|
|
57
64
|
headers.set("accept-encoding", "application/json");
|
|
58
65
|
headers.set("host", new URL(opts.convexSiteUrl).host);
|
|
59
66
|
headers.set("x-forwarded-host", requestUrl.host);
|
|
60
67
|
headers.set("x-forwarded-proto", proto);
|
|
61
68
|
headers.set("x-better-auth-forwarded-host", requestUrl.host);
|
|
62
69
|
headers.set("x-better-auth-forwarded-proto", proto);
|
|
70
|
+
let body;
|
|
71
|
+
if (requestCanHaveBody(request.method)) {
|
|
72
|
+
const bufferedBody = await request.arrayBuffer();
|
|
73
|
+
if (bufferedBody.byteLength > 0) body = bufferedBody;
|
|
74
|
+
}
|
|
63
75
|
return fetch(nextUrl, {
|
|
64
|
-
body
|
|
65
|
-
duplex: "half",
|
|
76
|
+
body,
|
|
66
77
|
headers,
|
|
67
78
|
method: request.method,
|
|
68
79
|
redirect: "manual"
|
|
@@ -73,8 +84,7 @@ const convexBetterAuthReactStart = (opts) => {
|
|
|
73
84
|
const cachedGetToken = cache(async (opts) => {
|
|
74
85
|
const headers = getRequestHeaders();
|
|
75
86
|
const mutableHeaders = new Headers(headers);
|
|
76
|
-
mutableHeaders
|
|
77
|
-
mutableHeaders.delete("transfer-encoding");
|
|
87
|
+
stripHopByHopHeaders(mutableHeaders);
|
|
78
88
|
mutableHeaders.set("accept-encoding", "identity");
|
|
79
89
|
return getToken(siteUrl, mutableHeaders, opts);
|
|
80
90
|
});
|
|
@@ -6235,7 +6235,8 @@ const VERSION_IN_SPEC_RE = /(\d+)\.(\d+)(?:\.\d+)?/;
|
|
|
6235
6235
|
const PLAIN_VERSION_SPEC_RE = /^[\^~]?v?\d+\.\d+(?:\.\d+)?$/;
|
|
6236
6236
|
const UPPER_BOUND_RE = /(?:^|\s)<={0,1}\s*v?(\d+)\.(\d+)(?:\.\d+)?/g;
|
|
6237
6237
|
const SUPPORTED_CONVEX_VERSION = "1.38.0";
|
|
6238
|
-
const SUPPORTED_BETTER_AUTH_VERSION = "1.6.
|
|
6238
|
+
const SUPPORTED_BETTER_AUTH_VERSION = "1.6.15";
|
|
6239
|
+
const SUPPORTED_BETTER_AUTH_MIN_VERSION = "1.6.11";
|
|
6239
6240
|
const SUPPORTED_HONO_VERSION = "4.12.9";
|
|
6240
6241
|
const SUPPORTED_OPENTELEMETRY_API_VERSION = "1.9.0";
|
|
6241
6242
|
const SUPPORTED_TANSTACK_REACT_QUERY_VERSION = "5.95.2";
|
|
@@ -6248,6 +6249,11 @@ function getMinimumVersionRange(version) {
|
|
|
6248
6249
|
if (!match) throw new Error(`Unsupported exact version "${version}". Expected x.y.z format.`);
|
|
6249
6250
|
return `>=${match[1]}.${match[2]}`;
|
|
6250
6251
|
}
|
|
6252
|
+
function getMinorVersionPeerRange(minimumVersion, supportedVersion) {
|
|
6253
|
+
const match = EXACT_VERSION_RE.exec(supportedVersion);
|
|
6254
|
+
if (!match) throw new Error(`Unsupported exact version "${supportedVersion}". Expected x.y.z format.`);
|
|
6255
|
+
return `>=${minimumVersion} <${match[1]}.${Number(match[2]) + 1}.0`;
|
|
6256
|
+
}
|
|
6251
6257
|
function getPackageNameFromInstallSpec(spec) {
|
|
6252
6258
|
const normalized = spec.trim();
|
|
6253
6259
|
if (normalized.length === 0) throw new Error("Install spec must be non-empty.");
|
|
@@ -6302,7 +6308,10 @@ const SUPPORTED_DEPENDENCY_VERSIONS = {
|
|
|
6302
6308
|
range: `^${SUPPORTED_CONVEX_VERSION}`,
|
|
6303
6309
|
minimum: getMinimumVersionRange(SUPPORTED_CONVEX_VERSION)
|
|
6304
6310
|
},
|
|
6305
|
-
betterAuth: {
|
|
6311
|
+
betterAuth: {
|
|
6312
|
+
exact: SUPPORTED_BETTER_AUTH_VERSION,
|
|
6313
|
+
peer: getMinorVersionPeerRange(SUPPORTED_BETTER_AUTH_MIN_VERSION, SUPPORTED_BETTER_AUTH_VERSION)
|
|
6314
|
+
},
|
|
6306
6315
|
hono: { exact: SUPPORTED_HONO_VERSION },
|
|
6307
6316
|
opentelemetryApi: { exact: SUPPORTED_OPENTELEMETRY_API_VERSION },
|
|
6308
6317
|
tanstackReactQuery: { exact: SUPPORTED_TANSTACK_REACT_QUERY_VERSION },
|
|
@@ -10234,7 +10243,7 @@ const AUTH_ENV_FIELDS = [
|
|
|
10234
10243
|
schema: "z.string().optional()"
|
|
10235
10244
|
}
|
|
10236
10245
|
];
|
|
10237
|
-
const BETTER_AUTH_EXPO_INSTALL_SPEC = "@better-auth/expo@1.6.
|
|
10246
|
+
const BETTER_AUTH_EXPO_INSTALL_SPEC = "@better-auth/expo@1.6.15";
|
|
10238
10247
|
const EXPO_SECURE_STORE_INSTALL_SPEC = "expo-secure-store@~55.0.8";
|
|
10239
10248
|
const EXPO_NETWORK_INSTALL_SPEC = "expo-network@~55.0.8";
|
|
10240
10249
|
const AUTH_FILES = [
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as promptForScaffoldTemplateSelection, A as resolveCodegenTrimSegments, At as highlighter, B as runConfiguredCodegen, C as isEntryPoint, Ct as formatDependencyInstallCommand, D as parseInitCommandArgs, E as parseBackendRunJson, Et as stripConvexCommandNoise, F as resolveRunDeps, G as runMigrationFlow, H as runDevSchemaBackfillIfNeeded, I as runAfterScaffoldScript, J as withWorkingDirectory, K as trackProcess, L as runAggregateBackfillFlow, M as resolveDocTopic, N as resolveInitProjectDir, O as readPackageVersions, P as resolveMigrationConfig, Q as promptForPluginSelection, R as runAggregatePruneFlow, S as isConvexDevPreRunConflictFlag, St as detectPackageManager, T as parseArgs, Tt as serializeEnvValue, U as runInitCommandFlow, V as runConvexInitIfNeeded, W as runMigrationCreate, X as collectPluginScaffoldTemplates, Y as createSpinner, Z as filterScaffoldTemplatePathMap, _ as formatInfoOutput, _t as applyPlanningDependencyInstall, a as cleanup, at as getPluginCatalogEntry, b as getDevAggregateBackfillStatePath, bt as resolveSupportedDependencyWarnings, c as createCommandEnv, ct as buildPluginInstallPlan, d as extractBackfillCliOptions, dt as collectInstalledPluginKeys, et as resolveAddTemplateDefaults, f as extractConcaveRunTargetArgs, ft as getPluginLockfilePath, g as formatDocsOutput, gt as applyDependencyHintsInstall, h as extractResetCliOptions, ht as resolveSchemaInstalledPlugins, i as buildInitializationPlan, it as resolveTemplatesByIdOrThrow, j as resolveConfiguredBackend, k as resolveBackfillConfig, kt as logger, l as ensureConvexGitignoreEntry, lt as resolvePluginScaffoldRoots, m as extractMigrationDownOptions, mt as readPluginLockfile, n as applyPluginInstallPlanFiles, nt as resolvePresetScaffoldTemplates, o as createBackendAdapter, ot as getSupportedPluginKeys, p as extractMigrationCliOptions, pt as getSchemaFilePath, q as withLocalCodegenEnv, r as assertNoRemovedDevPreRunFlag, rt as resolveTemplateSelectionSource, s as createBackendCommandEnv, st as isSupportedPluginKey, t as applyDependencyInstallPlan, tt as resolvePluginPreset, u as extractBackendRunTargetArgs, ut as assertSchemaFileExists, v as getAggregateBackfillDeploymentKey, vt as applyPluginDependencyInstall, w as isInitialized, wt as resolveAuthEnvState, x as hasRemoteConvexDeploymentEnv, xt as resolveProjectScaffoldContext, y as getConvexDeploymentCommandEnv, yt as inspectPluginDependencyInstall, z as runBackendFunction } from "./backend-core-
|
|
2
|
+
import { $ as promptForScaffoldTemplateSelection, A as resolveCodegenTrimSegments, At as highlighter, B as runConfiguredCodegen, C as isEntryPoint, Ct as formatDependencyInstallCommand, D as parseInitCommandArgs, E as parseBackendRunJson, Et as stripConvexCommandNoise, F as resolveRunDeps, G as runMigrationFlow, H as runDevSchemaBackfillIfNeeded, I as runAfterScaffoldScript, J as withWorkingDirectory, K as trackProcess, L as runAggregateBackfillFlow, M as resolveDocTopic, N as resolveInitProjectDir, O as readPackageVersions, P as resolveMigrationConfig, Q as promptForPluginSelection, R as runAggregatePruneFlow, S as isConvexDevPreRunConflictFlag, St as detectPackageManager, T as parseArgs, Tt as serializeEnvValue, U as runInitCommandFlow, V as runConvexInitIfNeeded, W as runMigrationCreate, X as collectPluginScaffoldTemplates, Y as createSpinner, Z as filterScaffoldTemplatePathMap, _ as formatInfoOutput, _t as applyPlanningDependencyInstall, a as cleanup, at as getPluginCatalogEntry, b as getDevAggregateBackfillStatePath, bt as resolveSupportedDependencyWarnings, c as createCommandEnv, ct as buildPluginInstallPlan, d as extractBackfillCliOptions, dt as collectInstalledPluginKeys, et as resolveAddTemplateDefaults, f as extractConcaveRunTargetArgs, ft as getPluginLockfilePath, g as formatDocsOutput, gt as applyDependencyHintsInstall, h as extractResetCliOptions, ht as resolveSchemaInstalledPlugins, i as buildInitializationPlan, it as resolveTemplatesByIdOrThrow, j as resolveConfiguredBackend, k as resolveBackfillConfig, kt as logger, l as ensureConvexGitignoreEntry, lt as resolvePluginScaffoldRoots, m as extractMigrationDownOptions, mt as readPluginLockfile, n as applyPluginInstallPlanFiles, nt as resolvePresetScaffoldTemplates, o as createBackendAdapter, ot as getSupportedPluginKeys, p as extractMigrationCliOptions, pt as getSchemaFilePath, q as withLocalCodegenEnv, r as assertNoRemovedDevPreRunFlag, rt as resolveTemplateSelectionSource, s as createBackendCommandEnv, st as isSupportedPluginKey, t as applyDependencyInstallPlan, tt as resolvePluginPreset, u as extractBackendRunTargetArgs, ut as assertSchemaFileExists, v as getAggregateBackfillDeploymentKey, vt as applyPluginDependencyInstall, w as isInitialized, wt as resolveAuthEnvState, x as hasRemoteConvexDeploymentEnv, xt as resolveProjectScaffoldContext, y as getConvexDeploymentCommandEnv, yt as inspectPluginDependencyInstall, z as runBackendFunction } from "./backend-core-D5P0hNYD.mjs";
|
|
3
3
|
import fs, { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import path, { delimiter, dirname, join, relative, resolve } from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -790,7 +790,7 @@ async function startLocalSiteProxy(options) {
|
|
|
790
790
|
const targetUrl = new URL(request.url ?? "/", options.targetOrigin);
|
|
791
791
|
const headers = new Headers();
|
|
792
792
|
for (const [key, value] of Object.entries(request.headers)) {
|
|
793
|
-
if (value === void 0 || key === "host" || key === "connection" || key === "content-length") continue;
|
|
793
|
+
if (value === void 0 || key === "host" || key === "connection" || key === "content-length" || key === "transfer-encoding") continue;
|
|
794
794
|
if (Array.isArray(value)) {
|
|
795
795
|
for (const entry of value) headers.append(key, entry);
|
|
796
796
|
continue;
|
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-D0D_4v_n.js";
|
|
2
2
|
import { i as pretendRequired, n as deprecated, r as pretend } from "../validators-BhsByJeg.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-CNo9ffvI.js";
|
|
4
4
|
import { DefineSchemaOptions, GenericDatabaseReader, GenericDatabaseWriter, GenericSchema, SchemaDefinition } from "convex/server";
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -1201,7 +1201,38 @@ type CrossDomainClient = BetterAuthClientPlugin & {
|
|
|
1201
1201
|
};
|
|
1202
1202
|
type PluginsWithCrossDomain = (CrossDomainClient | ConvexClient$1 | BetterAuthClientPlugin)[];
|
|
1203
1203
|
type PluginsWithoutCrossDomain = (ConvexClient$1 | BetterAuthClientPlugin)[];
|
|
1204
|
-
type
|
|
1204
|
+
type SolidAuthSessionState = {
|
|
1205
|
+
data: unknown;
|
|
1206
|
+
error?: unknown;
|
|
1207
|
+
isPending: boolean;
|
|
1208
|
+
isRefetching?: boolean;
|
|
1209
|
+
refetch?: (...args: never[]) => unknown;
|
|
1210
|
+
};
|
|
1211
|
+
type SolidAuthConvexTokenArgs = {
|
|
1212
|
+
fetchOptions?: {
|
|
1213
|
+
headers?: {
|
|
1214
|
+
Authorization: string;
|
|
1215
|
+
};
|
|
1216
|
+
throw?: false;
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1219
|
+
type SolidAuthConvexTokenResult = {
|
|
1220
|
+
data?: {
|
|
1221
|
+
token?: string | null;
|
|
1222
|
+
} | null;
|
|
1223
|
+
} | null | undefined;
|
|
1224
|
+
type SolidAuthProviderClient = {
|
|
1225
|
+
convex: {
|
|
1226
|
+
token: (args: SolidAuthConvexTokenArgs) => Promise<SolidAuthConvexTokenResult>;
|
|
1227
|
+
};
|
|
1228
|
+
crossDomain?: unknown;
|
|
1229
|
+
getCookie?: (...args: never[]) => unknown;
|
|
1230
|
+
getSession?: (...args: never[]) => unknown;
|
|
1231
|
+
notifySessionSignal?: (...args: never[]) => unknown;
|
|
1232
|
+
updateSession?: (...args: never[]) => unknown;
|
|
1233
|
+
useSession: () => () => SolidAuthSessionState;
|
|
1234
|
+
} & Record<string, unknown>;
|
|
1235
|
+
type AuthClientWithPlugins<Plugins extends PluginsWithCrossDomain | PluginsWithoutCrossDomain> = ReturnType<typeof createAuthClient<{
|
|
1205
1236
|
plugins: Plugins;
|
|
1206
1237
|
}>>;
|
|
1207
1238
|
type SolidAuthClient = AuthClientWithPlugins<PluginsWithCrossDomain> | AuthClientWithPlugins<PluginsWithoutCrossDomain>;
|
|
@@ -1210,7 +1241,7 @@ type SolidAuthClient = AuthClientWithPlugins<PluginsWithCrossDomain> | AuthClien
|
|
|
1210
1241
|
type ConvexAuthProviderProps = {
|
|
1211
1242
|
children: JSX.Element; /** Convex client instance */
|
|
1212
1243
|
client: ConvexClient; /** Better Auth client instance */
|
|
1213
|
-
authClient:
|
|
1244
|
+
authClient: SolidAuthProviderClient; /** Initial session token (from SSR) */
|
|
1214
1245
|
initialToken?: string; /** Callback when mutation called while unauthorized */
|
|
1215
1246
|
onMutationUnauthorized?: () => void; /** Callback when query called while unauthorized */
|
|
1216
1247
|
onQueryUnauthorized?: (info: {
|
|
@@ -1525,4 +1556,4 @@ declare function useUploadMutationOptions<TGenerateUrlMutation extends FunctionR
|
|
|
1525
1556
|
*/
|
|
1526
1557
|
declare function createVanillaCRPCProxy<TApi extends Record<string, unknown>>(api: TApi, meta: CallerMeta, convexClient: ConvexClient, transformer?: DataTransformerOptions): VanillaCRPCClient<TApi>;
|
|
1527
1558
|
//#endregion
|
|
1528
|
-
export { AuthMutationError, AuthProvider, AuthStore, AuthStoreState, AuthType, Authenticated, CRPCClient, CRPCHttpOptions, ConvexActionOptions, ConvexAuthBridge, ConvexAuthProvider, ConvexAuthProviderProps, ConvexInfiniteQueryOptions, ConvexInfiniteQueryOptionsWithRef, ConvexProvider, ConvexProviderWithAuth, ConvexQueryClient, ConvexQueryClientOptions, ConvexQueryClientSingletonOptions, ConvexQueryOptions, CreateCRPCContextOptions, DecorateAction, DecorateInfiniteQuery, DecorateMutation, DecorateQuery, FetchAccessTokenContext, FetchAccessTokenFn, HttpCRPCClient, HttpCRPCClientFromRouter, type HttpClientOptions, type HttpFormValue, type HttpInputArgs, HttpMutationKey, HttpProxyOptions, HttpQueryKey, HttpRouteInfo, HttpRouteMap, InfiniteQueryOptsParam, MaybeAuthenticated, MaybeUnauthenticated, MetaContext, PaginationState, PaginationStatus, SolidAuthClient, Unauthenticated, Unsubscribe, UseInfiniteQueryResult, VanillaCRPCClient, VanillaHttpCRPCClient, VanillaHttpCRPCClientFromRouter, VanillaQuery, createAuthMutations, createCRPCContext, createCRPCOptionsProxy, createHttpProxy, createVanillaCRPCProxy, decodeJwtExp, getAuthType, getConvexQueryClientSingleton, getQueryClientSingleton, isAuthMutationError, useAuth, useAuthGuard, useAuthSkip, useAuthStore, useAuthValue, useConvex, useConvexActionOptions, useConvexActionQueryOptions, useConvexAuth, useConvexAuthBridge, useConvexInfiniteQueryOptions, useConvexMutationOptions, useConvexQueryClient, useConvexQueryOptions, useFetchAccessToken, useFnMeta, useInfiniteQuery, useIsAuth, useMaybeAuth, useMeta, useSafeConvexAuth, useUploadMutationOptions };
|
|
1559
|
+
export { AuthMutationError, AuthProvider, AuthStore, AuthStoreState, AuthType, Authenticated, CRPCClient, CRPCHttpOptions, ConvexActionOptions, ConvexAuthBridge, ConvexAuthProvider, ConvexAuthProviderProps, ConvexInfiniteQueryOptions, ConvexInfiniteQueryOptionsWithRef, ConvexProvider, ConvexProviderWithAuth, ConvexQueryClient, ConvexQueryClientOptions, ConvexQueryClientSingletonOptions, ConvexQueryOptions, CreateCRPCContextOptions, DecorateAction, DecorateInfiniteQuery, DecorateMutation, DecorateQuery, FetchAccessTokenContext, FetchAccessTokenFn, HttpCRPCClient, HttpCRPCClientFromRouter, type HttpClientOptions, type HttpFormValue, type HttpInputArgs, HttpMutationKey, HttpProxyOptions, HttpQueryKey, HttpRouteInfo, HttpRouteMap, InfiniteQueryOptsParam, MaybeAuthenticated, MaybeUnauthenticated, MetaContext, PaginationState, PaginationStatus, SolidAuthClient, SolidAuthProviderClient, Unauthenticated, Unsubscribe, UseInfiniteQueryResult, VanillaCRPCClient, VanillaHttpCRPCClient, VanillaHttpCRPCClientFromRouter, VanillaQuery, createAuthMutations, createCRPCContext, createCRPCOptionsProxy, createHttpProxy, createVanillaCRPCProxy, decodeJwtExp, getAuthType, getConvexQueryClientSingleton, getQueryClientSingleton, isAuthMutationError, useAuth, useAuthGuard, useAuthSkip, useAuthStore, useAuthValue, useConvex, useConvexActionOptions, useConvexActionQueryOptions, useConvexAuth, useConvexAuthBridge, useConvexInfiniteQueryOptions, useConvexMutationOptions, useConvexQueryClient, useConvexQueryOptions, useFetchAccessToken, useFnMeta, useInfiniteQuery, useIsAuth, useMaybeAuth, useMeta, useSafeConvexAuth, useUploadMutationOptions };
|
package/dist/solid/index.js
CHANGED
|
@@ -2436,7 +2436,8 @@ function useOTTHandler(authClient) {
|
|
|
2436
2436
|
window.history.replaceState({}, "", url);
|
|
2437
2437
|
const session = (await authClientWithCrossDomain.crossDomain.oneTimeToken.verify({ token })).data?.session;
|
|
2438
2438
|
if (session) {
|
|
2439
|
-
|
|
2439
|
+
const getSession = authClient.getSession;
|
|
2440
|
+
await getSession?.({ fetchOptions: { headers: { Authorization: `Bearer ${session.token}` } } });
|
|
2440
2441
|
authClientWithCrossDomain.updateSession();
|
|
2441
2442
|
}
|
|
2442
2443
|
}
|
package/dist/watcher.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Dt as generateMeta, F as resolveRunDeps, Ot as getConvexConfig, j as resolveConfiguredBackend, kt as logger, q as withLocalCodegenEnv } from "./backend-core-
|
|
2
|
+
import { Dt as generateMeta, F as resolveRunDeps, Ot as getConvexConfig, j as resolveConfiguredBackend, kt as logger, q as withLocalCodegenEnv } from "./backend-core-D5P0hNYD.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
|
|
@@ -3726,7 +3726,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3726
3726
|
fieldName: "count";
|
|
3727
3727
|
};
|
|
3728
3728
|
};
|
|
3729
|
-
|
|
3729
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
3730
3730
|
_: {
|
|
3731
3731
|
notNull: true;
|
|
3732
3732
|
};
|
|
@@ -3736,10 +3736,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3736
3736
|
};
|
|
3737
3737
|
} & {
|
|
3738
3738
|
_: {
|
|
3739
|
-
fieldName: "
|
|
3739
|
+
fieldName: "updatedAt";
|
|
3740
3740
|
};
|
|
3741
3741
|
};
|
|
3742
|
-
|
|
3742
|
+
tableKey: ConvexTextBuilderInitial<""> & {
|
|
3743
3743
|
_: {
|
|
3744
3744
|
notNull: true;
|
|
3745
3745
|
};
|
|
@@ -3749,10 +3749,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3749
3749
|
};
|
|
3750
3750
|
} & {
|
|
3751
3751
|
_: {
|
|
3752
|
-
fieldName: "
|
|
3752
|
+
fieldName: "tableKey";
|
|
3753
3753
|
};
|
|
3754
3754
|
};
|
|
3755
|
-
|
|
3755
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
3756
3756
|
_: {
|
|
3757
3757
|
notNull: true;
|
|
3758
3758
|
};
|
|
@@ -3762,7 +3762,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3762
3762
|
};
|
|
3763
3763
|
} & {
|
|
3764
3764
|
_: {
|
|
3765
|
-
fieldName: "
|
|
3765
|
+
fieldName: "indexName";
|
|
3766
3766
|
};
|
|
3767
3767
|
};
|
|
3768
3768
|
keyHash: ConvexTextBuilderInitial<""> & {
|
|
@@ -3835,7 +3835,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3835
3835
|
fieldName: "kind";
|
|
3836
3836
|
};
|
|
3837
3837
|
};
|
|
3838
|
-
|
|
3838
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
3839
3839
|
_: {
|
|
3840
3840
|
notNull: true;
|
|
3841
3841
|
};
|
|
@@ -3845,10 +3845,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3845
3845
|
};
|
|
3846
3846
|
} & {
|
|
3847
3847
|
_: {
|
|
3848
|
-
fieldName: "
|
|
3848
|
+
fieldName: "updatedAt";
|
|
3849
3849
|
};
|
|
3850
3850
|
};
|
|
3851
|
-
|
|
3851
|
+
tableKey: ConvexTextBuilderInitial<""> & {
|
|
3852
3852
|
_: {
|
|
3853
3853
|
notNull: true;
|
|
3854
3854
|
};
|
|
@@ -3858,10 +3858,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3858
3858
|
};
|
|
3859
3859
|
} & {
|
|
3860
3860
|
_: {
|
|
3861
|
-
fieldName: "
|
|
3861
|
+
fieldName: "tableKey";
|
|
3862
3862
|
};
|
|
3863
3863
|
};
|
|
3864
|
-
|
|
3864
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
3865
3865
|
_: {
|
|
3866
3866
|
notNull: true;
|
|
3867
3867
|
};
|
|
@@ -3871,7 +3871,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3871
3871
|
};
|
|
3872
3872
|
} & {
|
|
3873
3873
|
_: {
|
|
3874
|
-
fieldName: "
|
|
3874
|
+
fieldName: "indexName";
|
|
3875
3875
|
};
|
|
3876
3876
|
};
|
|
3877
3877
|
keyHash: ConvexTextBuilderInitial<""> & {
|
|
@@ -3988,7 +3988,11 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3988
3988
|
readonly aggregate_extrema: ConvexTableWithColumns<{
|
|
3989
3989
|
name: "aggregate_extrema";
|
|
3990
3990
|
columns: {
|
|
3991
|
-
|
|
3991
|
+
value: ConvexCustomBuilderInitial<"", convex_values0.VAny<any, "required", string>> & {
|
|
3992
|
+
_: {
|
|
3993
|
+
$type: convex_values0.Value;
|
|
3994
|
+
};
|
|
3995
|
+
} & {
|
|
3992
3996
|
_: {
|
|
3993
3997
|
notNull: true;
|
|
3994
3998
|
};
|
|
@@ -3998,14 +4002,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
3998
4002
|
};
|
|
3999
4003
|
} & {
|
|
4000
4004
|
_: {
|
|
4001
|
-
fieldName: "
|
|
4005
|
+
fieldName: "value";
|
|
4002
4006
|
};
|
|
4003
4007
|
};
|
|
4004
|
-
|
|
4005
|
-
_: {
|
|
4006
|
-
$type: convex_values0.Value;
|
|
4007
|
-
};
|
|
4008
|
-
} & {
|
|
4008
|
+
count: ConvexNumberBuilderInitial<""> & {
|
|
4009
4009
|
_: {
|
|
4010
4010
|
notNull: true;
|
|
4011
4011
|
};
|
|
@@ -4015,10 +4015,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4015
4015
|
};
|
|
4016
4016
|
} & {
|
|
4017
4017
|
_: {
|
|
4018
|
-
fieldName: "
|
|
4018
|
+
fieldName: "count";
|
|
4019
4019
|
};
|
|
4020
4020
|
};
|
|
4021
|
-
|
|
4021
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4022
4022
|
_: {
|
|
4023
4023
|
notNull: true;
|
|
4024
4024
|
};
|
|
@@ -4028,10 +4028,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4028
4028
|
};
|
|
4029
4029
|
} & {
|
|
4030
4030
|
_: {
|
|
4031
|
-
fieldName: "
|
|
4031
|
+
fieldName: "updatedAt";
|
|
4032
4032
|
};
|
|
4033
4033
|
};
|
|
4034
|
-
|
|
4034
|
+
tableKey: ConvexTextBuilderInitial<""> & {
|
|
4035
4035
|
_: {
|
|
4036
4036
|
notNull: true;
|
|
4037
4037
|
};
|
|
@@ -4041,10 +4041,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4041
4041
|
};
|
|
4042
4042
|
} & {
|
|
4043
4043
|
_: {
|
|
4044
|
-
fieldName: "
|
|
4044
|
+
fieldName: "tableKey";
|
|
4045
4045
|
};
|
|
4046
4046
|
};
|
|
4047
|
-
|
|
4047
|
+
indexName: ConvexTextBuilderInitial<""> & {
|
|
4048
4048
|
_: {
|
|
4049
4049
|
notNull: true;
|
|
4050
4050
|
};
|
|
@@ -4054,7 +4054,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4054
4054
|
};
|
|
4055
4055
|
} & {
|
|
4056
4056
|
_: {
|
|
4057
|
-
fieldName: "
|
|
4057
|
+
fieldName: "indexName";
|
|
4058
4058
|
};
|
|
4059
4059
|
};
|
|
4060
4060
|
keyHash: ConvexTextBuilderInitial<""> & {
|
|
@@ -4275,6 +4275,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4275
4275
|
fieldName: "cursor";
|
|
4276
4276
|
};
|
|
4277
4277
|
};
|
|
4278
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4279
|
+
_: {
|
|
4280
|
+
notNull: true;
|
|
4281
|
+
};
|
|
4282
|
+
} & {
|
|
4283
|
+
_: {
|
|
4284
|
+
tableName: "aggregate_state";
|
|
4285
|
+
};
|
|
4286
|
+
} & {
|
|
4287
|
+
_: {
|
|
4288
|
+
fieldName: "updatedAt";
|
|
4289
|
+
};
|
|
4290
|
+
};
|
|
4278
4291
|
tableKey: ConvexTextBuilderInitial<""> & {
|
|
4279
4292
|
_: {
|
|
4280
4293
|
notNull: true;
|
|
@@ -4353,19 +4366,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4353
4366
|
fieldName: "startedAt";
|
|
4354
4367
|
};
|
|
4355
4368
|
};
|
|
4356
|
-
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4357
|
-
_: {
|
|
4358
|
-
notNull: true;
|
|
4359
|
-
};
|
|
4360
|
-
} & {
|
|
4361
|
-
_: {
|
|
4362
|
-
tableName: "aggregate_state";
|
|
4363
|
-
};
|
|
4364
|
-
} & {
|
|
4365
|
-
_: {
|
|
4366
|
-
fieldName: "updatedAt";
|
|
4367
|
-
};
|
|
4368
|
-
};
|
|
4369
4369
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
4370
4370
|
_: {
|
|
4371
4371
|
tableName: "aggregate_state";
|
|
@@ -4425,7 +4425,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4425
4425
|
fieldName: "direction";
|
|
4426
4426
|
};
|
|
4427
4427
|
};
|
|
4428
|
-
|
|
4428
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4429
4429
|
_: {
|
|
4430
4430
|
notNull: true;
|
|
4431
4431
|
};
|
|
@@ -4435,29 +4435,29 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4435
4435
|
};
|
|
4436
4436
|
} & {
|
|
4437
4437
|
_: {
|
|
4438
|
-
fieldName: "
|
|
4438
|
+
fieldName: "updatedAt";
|
|
4439
4439
|
};
|
|
4440
4440
|
};
|
|
4441
|
-
|
|
4441
|
+
processed: ConvexNumberBuilderInitial<""> & {
|
|
4442
4442
|
_: {
|
|
4443
|
-
|
|
4443
|
+
notNull: true;
|
|
4444
4444
|
};
|
|
4445
4445
|
} & {
|
|
4446
4446
|
_: {
|
|
4447
|
-
|
|
4447
|
+
tableName: "migration_state";
|
|
4448
4448
|
};
|
|
4449
|
-
}
|
|
4450
|
-
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4449
|
+
} & {
|
|
4451
4450
|
_: {
|
|
4452
|
-
|
|
4451
|
+
fieldName: "processed";
|
|
4453
4452
|
};
|
|
4454
|
-
}
|
|
4453
|
+
};
|
|
4454
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
4455
4455
|
_: {
|
|
4456
4456
|
tableName: "migration_state";
|
|
4457
4457
|
};
|
|
4458
4458
|
} & {
|
|
4459
4459
|
_: {
|
|
4460
|
-
fieldName: "
|
|
4460
|
+
fieldName: "startedAt";
|
|
4461
4461
|
};
|
|
4462
4462
|
};
|
|
4463
4463
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
|
@@ -4574,7 +4574,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4574
4574
|
fieldName: "direction";
|
|
4575
4575
|
};
|
|
4576
4576
|
};
|
|
4577
|
-
|
|
4577
|
+
updatedAt: ConvexNumberBuilderInitial<""> & {
|
|
4578
4578
|
_: {
|
|
4579
4579
|
notNull: true;
|
|
4580
4580
|
};
|
|
@@ -4584,10 +4584,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4584
4584
|
};
|
|
4585
4585
|
} & {
|
|
4586
4586
|
_: {
|
|
4587
|
-
fieldName: "
|
|
4587
|
+
fieldName: "updatedAt";
|
|
4588
4588
|
};
|
|
4589
4589
|
};
|
|
4590
|
-
|
|
4590
|
+
startedAt: ConvexNumberBuilderInitial<""> & {
|
|
4591
4591
|
_: {
|
|
4592
4592
|
notNull: true;
|
|
4593
4593
|
};
|
|
@@ -4597,7 +4597,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
|
|
|
4597
4597
|
};
|
|
4598
4598
|
} & {
|
|
4599
4599
|
_: {
|
|
4600
|
-
fieldName: "
|
|
4600
|
+
fieldName: "startedAt";
|
|
4601
4601
|
};
|
|
4602
4602
|
};
|
|
4603
4603
|
completedAt: ConvexNumberBuilderInitial<""> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kitcn",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.13",
|
|
4
4
|
"description": "kitcn - React Query integration and CLI tools for Convex",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"convex",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@tanstack/react-query": ">=5",
|
|
93
93
|
"@tanstack/react-start": ">=1",
|
|
94
94
|
"@tanstack/solid-query": ">=5",
|
|
95
|
-
"better-auth": "1.6.
|
|
95
|
+
"better-auth": ">=1.6.11 <1.7.0",
|
|
96
96
|
"convex": ">=1.38",
|
|
97
97
|
"hono": "4.12.9",
|
|
98
98
|
"next": ">=14",
|