qarpeo 0.1.13 → 0.1.14
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/README.md +7 -13
- package/dist/chunks/auth-schema.mjs +119 -147
- package/dist/chunks/wrangler.mjs +1 -1
- package/dist/cli/index.mjs +2 -2
- package/dist/module.mjs +142 -22
- package/dist/runtime/ai.d.ts +4 -2
- package/dist/runtime/ai.mjs +8 -2
- package/dist/runtime/app/composables/ai.d.ts +74 -0
- package/dist/runtime/app/composables/ai.mjs +148 -0
- package/dist/runtime/app/composables/auth.d.ts +16 -1
- package/dist/runtime/app/composables/auth.mjs +23 -34
- package/dist/runtime/app/composables/void-client.d.ts +3 -0
- package/dist/runtime/app/composables/void-client.mjs +4 -0
- package/dist/runtime/blob.mjs +1 -1
- package/dist/runtime/db.mjs +1 -1
- package/dist/runtime/server/routes/agents/[agent]/history.get.d.ts +1 -1
- package/dist/runtime/server/routes/auth/handler.d.ts +2 -0
- package/dist/runtime/server/routes/auth/handler.mjs +11 -0
- package/dist/runtime/server/utils/auth.d.ts +66 -0
- package/dist/runtime/server/utils/auth.mjs +58 -0
- package/dist/runtime/server/utils/realtime.mjs +1 -1
- package/dist/runtime/server/utils/void-ai.d.ts +7 -0
- package/dist/runtime/server/utils/void-ai.mjs +47 -0
- package/dist/runtime/server/utils/void-auth.d.ts +2 -0
- package/dist/runtime/server/utils/void-auth.mjs +9 -0
- package/dist/runtime/server/utils/void-db.d.ts +8 -0
- package/dist/runtime/server/utils/void-db.mjs +38 -0
- package/dist/runtime/server/utils/void-seed.d.ts +11 -0
- package/dist/runtime/server/utils/void-seed.mjs +3 -0
- package/dist/runtime/types/ai.d.ts +2 -0
- package/dist/runtime/types/imports.d.ts +65 -6
- package/dist/types.d.ts +1 -1
- package/dist/utils/auth-schema.d.ts +3 -5
- package/package.json +3 -2
package/dist/runtime/blob.mjs
CHANGED
|
@@ -35,7 +35,7 @@ function assertValidPathname(pathname) {
|
|
|
35
35
|
export function getR2Binding(bindingName, event) {
|
|
36
36
|
const resolvedBinding = resolveRuntimeBinding("blob", bindingName, "BLOB");
|
|
37
37
|
const env = getCloudflareEnv(event);
|
|
38
|
-
const binding = env[resolvedBinding];
|
|
38
|
+
const binding = env[resolvedBinding] || env["STORAGE"] || env["BLOB"];
|
|
39
39
|
if (!binding) {
|
|
40
40
|
throw new Error(
|
|
41
41
|
`[qarpeo] Cloudflare R2 binding "${resolvedBinding}" was not found. Check your wrangler.json or QARPEO_BLOB_BINDING environment variable.`
|
package/dist/runtime/db.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { getCloudflareEnv, resolveRuntimeBinding } from "./bindings.mjs";
|
|
|
2
2
|
export function getD1Binding(bindingName, event) {
|
|
3
3
|
const resolvedBinding = resolveRuntimeBinding("db", bindingName, "DB");
|
|
4
4
|
const env = getCloudflareEnv(event);
|
|
5
|
-
const binding = env[resolvedBinding];
|
|
5
|
+
const binding = env[resolvedBinding] || env["DB"] || env["DATABASE"];
|
|
6
6
|
if (!binding) {
|
|
7
7
|
throw new Error(
|
|
8
8
|
`[qarpeo] Cloudflare D1 binding "${resolvedBinding}" was not found. Check your wrangler.json or QARPEO_DB_BINDING environment variable.`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineEventHandler, readRawBody } from "h3";
|
|
2
|
+
import { serverAuth } from "../../utils/auth.mjs";
|
|
3
|
+
export default defineEventHandler(async (event) => {
|
|
4
|
+
const auth = serverAuth(event);
|
|
5
|
+
const req = event.req instanceof Request ? event.req : new Request(`http://${event.headers?.get?.("host") || "localhost"}${event.path || "/api/auth"}`, {
|
|
6
|
+
method: event.method,
|
|
7
|
+
headers: event.headers,
|
|
8
|
+
body: ["POST", "PUT", "PATCH"].includes(event.method) ? await readRawBody(event) : void 0
|
|
9
|
+
});
|
|
10
|
+
return auth.handler(req);
|
|
11
|
+
});
|
|
@@ -1,3 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates or retrieves a Better Auth instance connected to Cloudflare D1 via Drizzle.
|
|
3
|
+
*/
|
|
4
|
+
export declare function serverAuth(event?: any): import("better-auth").Auth<{
|
|
5
|
+
database: (options: import("better-auth").BetterAuthOptions) => import("better-auth").DBAdapter<import("better-auth").BetterAuthOptions>;
|
|
6
|
+
secret: string;
|
|
7
|
+
baseURL: string | undefined;
|
|
8
|
+
emailAndPassword: {
|
|
9
|
+
enabled: true;
|
|
10
|
+
};
|
|
11
|
+
advanced: {
|
|
12
|
+
database: {
|
|
13
|
+
joins: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
export declare const createAuth: typeof serverAuth;
|
|
18
|
+
export declare const useServerAuth: typeof serverAuth;
|
|
19
|
+
/**
|
|
20
|
+
* Fetches the current session from Better Auth on the server.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getServerSession(event: any): Promise<{
|
|
23
|
+
session: {
|
|
24
|
+
id: string;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
userId: string;
|
|
28
|
+
expiresAt: Date;
|
|
29
|
+
token: string;
|
|
30
|
+
ipAddress?: string | null | undefined | undefined;
|
|
31
|
+
userAgent?: string | null | undefined | undefined;
|
|
32
|
+
};
|
|
33
|
+
user: {
|
|
34
|
+
id: string;
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
updatedAt: Date;
|
|
37
|
+
email: string;
|
|
38
|
+
emailVerified: boolean;
|
|
39
|
+
name: string;
|
|
40
|
+
image?: string | null | undefined | undefined;
|
|
41
|
+
};
|
|
42
|
+
} | null>;
|
|
43
|
+
/**
|
|
44
|
+
* Throws 401 if user is unauthenticated.
|
|
45
|
+
*/
|
|
46
|
+
export declare function requireServerSession(event: any): Promise<{
|
|
47
|
+
session: {
|
|
48
|
+
id: string;
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
updatedAt: Date;
|
|
51
|
+
userId: string;
|
|
52
|
+
expiresAt: Date;
|
|
53
|
+
token: string;
|
|
54
|
+
ipAddress?: string | null | undefined | undefined;
|
|
55
|
+
userAgent?: string | null | undefined | undefined;
|
|
56
|
+
};
|
|
57
|
+
user: {
|
|
58
|
+
id: string;
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
updatedAt: Date;
|
|
61
|
+
email: string;
|
|
62
|
+
emailVerified: boolean;
|
|
63
|
+
name: string;
|
|
64
|
+
image?: string | null | undefined | undefined;
|
|
65
|
+
};
|
|
66
|
+
}>;
|
|
1
67
|
import type { RequestEvent } from "nuxt/server";
|
|
2
68
|
import type { QarpeoSession } from "../../types/auth";
|
|
3
69
|
/** Ensures core auth tables (_qarpeo_users, _qarpeo_accounts, _qarpeo_sessions) exist in D1. */
|
|
@@ -1,3 +1,61 @@
|
|
|
1
|
+
import { betterAuth } from "better-auth";
|
|
2
|
+
import { drizzleAdapter } from "@better-auth/drizzle-adapter";
|
|
3
|
+
import { createError } from "h3";
|
|
4
|
+
import { useDrizzle } from "./drizzle.mjs";
|
|
5
|
+
import * as authSchema from "#qarpeo/auth/schema";
|
|
6
|
+
export function serverAuth(event) {
|
|
7
|
+
const db = useDrizzle(void 0, event);
|
|
8
|
+
const secret = process.env.BETTER_AUTH_SECRET || process.env.NUXT_BETTER_AUTH_SECRET || process.env.NUXT_APP_SECRET || "qarpeo-auth-secret-change-in-production-min-32-chars";
|
|
9
|
+
const baseURL = process.env.BETTER_AUTH_URL || process.env.NUXT_BETTER_AUTH_URL || void 0;
|
|
10
|
+
return betterAuth({
|
|
11
|
+
database: drizzleAdapter(db, {
|
|
12
|
+
provider: "sqlite",
|
|
13
|
+
schema: {
|
|
14
|
+
user: authSchema.user || authSchema.users,
|
|
15
|
+
session: authSchema.session || authSchema.sessions,
|
|
16
|
+
account: authSchema.account || authSchema.accounts,
|
|
17
|
+
verification: authSchema.verification || authSchema.verifications,
|
|
18
|
+
twoFactor: authSchema.twoFactor,
|
|
19
|
+
passkey: authSchema.passkey || authSchema.authenticators,
|
|
20
|
+
organization: authSchema.organization || authSchema.organizations,
|
|
21
|
+
member: authSchema.member || authSchema.members,
|
|
22
|
+
invitation: authSchema.invitation || authSchema.invitations
|
|
23
|
+
}
|
|
24
|
+
}),
|
|
25
|
+
secret,
|
|
26
|
+
baseURL,
|
|
27
|
+
emailAndPassword: {
|
|
28
|
+
enabled: true
|
|
29
|
+
},
|
|
30
|
+
advanced: {
|
|
31
|
+
database: {
|
|
32
|
+
joins: true
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
export const createAuth = serverAuth;
|
|
38
|
+
export const useServerAuth = serverAuth;
|
|
39
|
+
export async function getServerSession(event) {
|
|
40
|
+
const auth = serverAuth(event);
|
|
41
|
+
const req = event.req instanceof Request ? event.req : new Request(`http://${event.headers?.get?.("host") || "localhost"}${event.path || "/"}`, {
|
|
42
|
+
headers: event.headers,
|
|
43
|
+
method: event.method
|
|
44
|
+
});
|
|
45
|
+
return auth.api.getSession({
|
|
46
|
+
headers: req.headers
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export async function requireServerSession(event) {
|
|
50
|
+
const session = await getServerSession(event);
|
|
51
|
+
if (!session?.user) {
|
|
52
|
+
throw createError({
|
|
53
|
+
statusCode: 401,
|
|
54
|
+
statusMessage: "Unauthorized"
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return session;
|
|
58
|
+
}
|
|
1
59
|
import { useNitroApp } from "nitro/app";
|
|
2
60
|
import { getD1Binding } from "../../db.mjs";
|
|
3
61
|
import { getQarpeoConfig } from "./config.mjs";
|
|
@@ -27,7 +27,7 @@ function resolveRoomAndEvent(arg1, arg2) {
|
|
|
27
27
|
export function getRoomDurableObject(eventOrRoom, maybeRoom, bindingName = "QARPEO_ROOM_DO") {
|
|
28
28
|
const { event, roomId } = resolveRoomAndEvent(eventOrRoom, maybeRoom);
|
|
29
29
|
const env = getCloudflareEnv(event);
|
|
30
|
-
const binding = env[bindingName];
|
|
30
|
+
const binding = env[bindingName] || env["VOID_LIVE"] || env["REALTIME"] || env["ROOM"];
|
|
31
31
|
if (!binding || typeof binding.idFromName !== "function") {
|
|
32
32
|
throw new Error(
|
|
33
33
|
`[qarpeo.realtime] Durable Object binding "${bindingName}" is not available in the current environment. Ensure "qarpeo.realtime: true" or "qarpeo.do: true" is configured.`
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ai, useAI, createAI, getAIBinding, generateImage, textToImage, generateSpeech, textToSpeech, transcribeAudio, speechToText, generateText, streamText, embedText } from "../../ai";
|
|
2
|
+
import { defineAgent, defineTool, useAgent, similaritySearch, getAgentDefinition, getAllAgentDefinitions, registerAgentDefinition } from "./ai";
|
|
3
|
+
import type { QarpeoAI, AiBinding, AiOptions } from "../../types/ai";
|
|
4
|
+
import type { AgentDefinition, AgentTool, AgentMessage, AgentContext } from "../../../types";
|
|
5
|
+
export { ai, useAI, createAI, getAIBinding, generateImage, textToImage, generateSpeech, textToSpeech, transcribeAudio, speechToText, generateText, streamText, embedText, defineAgent, defineTool, useAgent, similaritySearch, getAgentDefinition, getAllAgentDefinitions, registerAgentDefinition, };
|
|
6
|
+
export type { QarpeoAI, AiBinding, AiOptions, AgentDefinition, AgentTool, AgentMessage, AgentContext, };
|
|
7
|
+
export default ai;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ai,
|
|
3
|
+
useAI,
|
|
4
|
+
createAI,
|
|
5
|
+
getAIBinding,
|
|
6
|
+
generateImage,
|
|
7
|
+
textToImage,
|
|
8
|
+
generateSpeech,
|
|
9
|
+
textToSpeech,
|
|
10
|
+
transcribeAudio,
|
|
11
|
+
speechToText,
|
|
12
|
+
generateText,
|
|
13
|
+
streamText,
|
|
14
|
+
embedText
|
|
15
|
+
} from "../../ai.mjs";
|
|
16
|
+
import {
|
|
17
|
+
defineAgent,
|
|
18
|
+
defineTool,
|
|
19
|
+
useAgent,
|
|
20
|
+
similaritySearch,
|
|
21
|
+
getAgentDefinition,
|
|
22
|
+
getAllAgentDefinitions,
|
|
23
|
+
registerAgentDefinition
|
|
24
|
+
} from "./ai.mjs";
|
|
25
|
+
export {
|
|
26
|
+
ai,
|
|
27
|
+
useAI,
|
|
28
|
+
createAI,
|
|
29
|
+
getAIBinding,
|
|
30
|
+
generateImage,
|
|
31
|
+
textToImage,
|
|
32
|
+
generateSpeech,
|
|
33
|
+
textToSpeech,
|
|
34
|
+
transcribeAudio,
|
|
35
|
+
speechToText,
|
|
36
|
+
generateText,
|
|
37
|
+
streamText,
|
|
38
|
+
embedText,
|
|
39
|
+
defineAgent,
|
|
40
|
+
defineTool,
|
|
41
|
+
useAgent,
|
|
42
|
+
similaritySearch,
|
|
43
|
+
getAgentDefinition,
|
|
44
|
+
getAllAgentDefinitions,
|
|
45
|
+
registerAgentDefinition
|
|
46
|
+
};
|
|
47
|
+
export default ai;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { db, useDrizzle } from "./drizzle";
|
|
2
|
+
export { db, useDrizzle };
|
|
3
|
+
/**
|
|
4
|
+
* Creates or accesses a secondary or dynamically bound D1 database client.
|
|
5
|
+
* Compatible with `createDb(env.MY_OTHER_DB)` or `createDb("BINDING_NAME")`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createDb(bindingOrName?: any): any;
|
|
8
|
+
export { eq, ne, gt, gte, lt, lte, and, or, not, desc, asc, like, ilike, notLike, inArray, notInArray, isNull, isNotNull, exists, notExists, between, notBetween, sql, } from "drizzle-orm";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { drizzle as drizzleD1 } from "drizzle-orm/d1";
|
|
2
|
+
import * as _schema from "#qarpeo/schema";
|
|
3
|
+
import { db, useDrizzle } from "./drizzle.mjs";
|
|
4
|
+
export { db, useDrizzle };
|
|
5
|
+
export function createDb(bindingOrName) {
|
|
6
|
+
if (typeof bindingOrName === "string") {
|
|
7
|
+
return useDrizzle(bindingOrName);
|
|
8
|
+
}
|
|
9
|
+
if (bindingOrName && typeof bindingOrName.prepare === "function") {
|
|
10
|
+
return drizzleD1(bindingOrName, { schema: _schema });
|
|
11
|
+
}
|
|
12
|
+
return db;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
eq,
|
|
16
|
+
ne,
|
|
17
|
+
gt,
|
|
18
|
+
gte,
|
|
19
|
+
lt,
|
|
20
|
+
lte,
|
|
21
|
+
and,
|
|
22
|
+
or,
|
|
23
|
+
not,
|
|
24
|
+
desc,
|
|
25
|
+
asc,
|
|
26
|
+
like,
|
|
27
|
+
ilike,
|
|
28
|
+
notLike,
|
|
29
|
+
inArray,
|
|
30
|
+
notInArray,
|
|
31
|
+
isNull,
|
|
32
|
+
isNotNull,
|
|
33
|
+
exists,
|
|
34
|
+
notExists,
|
|
35
|
+
between,
|
|
36
|
+
notBetween,
|
|
37
|
+
sql
|
|
38
|
+
} from "drizzle-orm";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Void Cloud Seeding helper (`void/seed`).
|
|
3
|
+
* Identity helper for programmatic seed modules used by `void db seed` or `vpx qp db seed`.
|
|
4
|
+
*/
|
|
5
|
+
export declare function defineSeed<TSchema = any>(fn: (ctx: {
|
|
6
|
+
db: any;
|
|
7
|
+
schema: TSchema;
|
|
8
|
+
}) => Promise<void> | void): (ctx: {
|
|
9
|
+
db: any;
|
|
10
|
+
schema: TSchema;
|
|
11
|
+
}) => Promise<void> | void;
|
|
@@ -17,6 +17,65 @@ declare global {
|
|
|
17
17
|
const requireUserSession: (event: any, opts?: any) => Promise<any>
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
declare module "#qarpeo/auth/schema" {
|
|
21
|
+
export const user: any
|
|
22
|
+
export const users: any
|
|
23
|
+
export const session: any
|
|
24
|
+
export const sessions: any
|
|
25
|
+
export const account: any
|
|
26
|
+
export const accounts: any
|
|
27
|
+
export const verification: any
|
|
28
|
+
export const verifications: any
|
|
29
|
+
export const twoFactor: any
|
|
30
|
+
export const passkey: any
|
|
31
|
+
export const authenticators: any
|
|
32
|
+
export const organization: any
|
|
33
|
+
export const organizations: any
|
|
34
|
+
export const member: any
|
|
35
|
+
export const members: any
|
|
36
|
+
export const invitation: any
|
|
37
|
+
export const invitations: any
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare module "@schema" {
|
|
41
|
+
export * from "#qarpeo/schema"
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare module "void/db" {
|
|
45
|
+
export const db: any
|
|
46
|
+
export const useDrizzle: any
|
|
47
|
+
export const createDb: (bindingOrName?: any) => any
|
|
48
|
+
export const sql: any
|
|
49
|
+
export const eq: any
|
|
50
|
+
export const ne: any
|
|
51
|
+
export const gt: any
|
|
52
|
+
export const gte: any
|
|
53
|
+
export const lt: any
|
|
54
|
+
export const lte: any
|
|
55
|
+
export const and: any
|
|
56
|
+
export const or: any
|
|
57
|
+
export const not: any
|
|
58
|
+
export const desc: any
|
|
59
|
+
export const asc: any
|
|
60
|
+
export const like: any
|
|
61
|
+
export const ilike: any
|
|
62
|
+
export const notLike: any
|
|
63
|
+
export const inArray: any
|
|
64
|
+
export const notInArray: any
|
|
65
|
+
export const isNull: any
|
|
66
|
+
export const isNotNull: any
|
|
67
|
+
export const exists: any
|
|
68
|
+
export const notExists: any
|
|
69
|
+
export const between: any
|
|
70
|
+
export const notBetween: any
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare module "void/seed" {
|
|
74
|
+
export function defineSeed<TSchema = any>(
|
|
75
|
+
fn: (ctx: { db: any; schema: TSchema }) => Promise<void> | void,
|
|
76
|
+
): (ctx: { db: any; schema: TSchema }) => Promise<void> | void
|
|
77
|
+
}
|
|
78
|
+
|
|
20
79
|
declare module "#qarpeo/agents-registry" {
|
|
21
80
|
const def: any
|
|
22
81
|
export default def
|
|
@@ -38,6 +97,8 @@ declare module "#app" {
|
|
|
38
97
|
|
|
39
98
|
declare module "#imports" {
|
|
40
99
|
export const useAuth: any
|
|
100
|
+
export const useSession: any
|
|
101
|
+
export const authClient: any
|
|
41
102
|
export const useUserSession: any
|
|
42
103
|
export const getAuthSession: any
|
|
43
104
|
export const setAuthSession: any
|
|
@@ -49,10 +110,8 @@ declare module "#imports" {
|
|
|
49
110
|
export const replaceUserSession: any
|
|
50
111
|
export const clearUserSession: any
|
|
51
112
|
export const requireUserSession: any
|
|
52
|
-
export const
|
|
53
|
-
export const
|
|
54
|
-
export const
|
|
55
|
-
export const
|
|
56
|
-
export const createError: any
|
|
57
|
-
export const $fetch: any
|
|
113
|
+
export const useChat: any
|
|
114
|
+
export const useAgentChat: any
|
|
115
|
+
export const useAIStream: any
|
|
116
|
+
export const useVectorSearch: any
|
|
58
117
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -2537,7 +2537,7 @@ export interface QarpeoOptions {
|
|
|
2537
2537
|
*/
|
|
2538
2538
|
cache?: boolean | CacheOptions;
|
|
2539
2539
|
/**
|
|
2540
|
-
* Enable Cloudflare Edge Authentication powered by
|
|
2540
|
+
* Enable Cloudflare Edge Authentication powered by Better Auth & void/auth + D1 (Tier 2).
|
|
2541
2541
|
*
|
|
2542
2542
|
* @default false
|
|
2543
2543
|
*/
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { AuthOptions } from "../types";
|
|
2
|
-
export declare const ALL_AUTH_TABLE_NAMES: readonly ["
|
|
2
|
+
export declare const ALL_AUTH_TABLE_NAMES: readonly ["user", "account", "session", "verification", "twoFactor", "passkey", "organization", "member", "invitation", "_qarpeo_users", "_qarpeo_accounts", "_qarpeo_sessions"];
|
|
3
3
|
/** Returns the list of active auth table names based on enabled feature flags in `auth`. */
|
|
4
4
|
export declare function getActiveAuthTableNames(auth?: boolean | AuthOptions): string[];
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* mapped to snake_case column names — no manual column strings needed. Assembled at build time into
|
|
9
|
-
* `#qarpeo/auth/schema` and merged into `#qarpeo/schema`.
|
|
6
|
+
* Composes Drizzle SQLite schema conforming to the official Better Auth / void/auth specifications.
|
|
7
|
+
* Merged at build time into `#qarpeo/auth/schema` and written to `.void/better-auth-schema.ts`.
|
|
10
8
|
*/
|
|
11
9
|
export declare function generateAuthSchema(auth?: boolean | AuthOptions): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qarpeo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Zero-config Cloudflare Edge Platform for Nuxt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"analytics-engine",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
+
"@better-auth/drizzle-adapter": "^1.7.18",
|
|
55
56
|
"@cloudflare/puppeteer": "1.4.0",
|
|
56
57
|
"@comark/nuxt": "^0.8.1",
|
|
57
58
|
"@comark/vue": "^0.8.1",
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
"@nuxt/kit": "npm:@nuxt/kit-nightly@^5.0.0-2611070044-e3875e8",
|
|
60
61
|
"@simplewebauthn/browser": "14.0.0",
|
|
61
62
|
"@simplewebauthn/server": "14.0.3",
|
|
63
|
+
"better-auth": "^1.7.18",
|
|
62
64
|
"citty": "^0.2.2",
|
|
63
65
|
"comark": "^0.8.1",
|
|
64
66
|
"defu": "^6.1.7",
|
|
@@ -66,7 +68,6 @@
|
|
|
66
68
|
"drizzle-orm": "1.0.0-rc.5",
|
|
67
69
|
"drizzle-seed": "1.0.0-rc.5",
|
|
68
70
|
"giget": "^3.3.1",
|
|
69
|
-
"nuxt-auth-utils": "0.6.0",
|
|
70
71
|
"nypm": "^0.6.12",
|
|
71
72
|
"pathe": "^2.0.3",
|
|
72
73
|
"shiki": "^4.6.0",
|