@questpie/admin 1.0.4 → 1.1.0
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/{client-DCKQuHYi.d.mts → client-B7r47hEd.d.mts} +444 -443
- package/dist/client-B7r47hEd.d.mts.map +1 -0
- package/dist/client.d.mts +2 -2
- package/dist/{index-2AfQaXoY.d.mts → index-BYyqkWtn.d.mts} +446 -689
- package/dist/index-BYyqkWtn.d.mts.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/server.d.mts +249 -2
- package/dist/server.d.mts.map +1 -0
- package/package.json +3 -3
- package/dist/client-DCKQuHYi.d.mts.map +0 -1
- package/dist/index-2AfQaXoY.d.mts.map +0 -1
|
@@ -1,143 +1,15 @@
|
|
|
1
1
|
import { i as ViewConfiguration } from "./saved-views.types-BMsz5mCy.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as zod169 from "zod";
|
|
3
|
+
import * as questpie214 from "questpie";
|
|
4
4
|
import { Questpie } from "questpie";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
5
|
+
import * as drizzle_orm_pg_core183 from "drizzle-orm/pg-core";
|
|
6
|
+
import * as drizzle_orm94 from "drizzle-orm";
|
|
7
|
+
import * as better_auth63 from "better-auth";
|
|
8
|
+
import * as better_call62 from "better-call";
|
|
9
|
+
import * as better_auth_plugins25 from "better-auth/plugins";
|
|
10
10
|
|
|
11
|
-
//#region src/server/adapters/tanstack.d.ts
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Options for TanStack auth guard
|
|
15
|
-
*/
|
|
16
|
-
interface TanStackAuthGuardOptions {
|
|
17
|
-
/**
|
|
18
|
-
* The CMS instance with auth configured
|
|
19
|
-
*/
|
|
20
|
-
cms: Questpie<any>;
|
|
21
|
-
/**
|
|
22
|
-
* Path to redirect to when not authenticated
|
|
23
|
-
* @default "/admin/login"
|
|
24
|
-
*/
|
|
25
|
-
loginPath?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Required role for access
|
|
28
|
-
* @default "admin"
|
|
29
|
-
*/
|
|
30
|
-
requiredRole?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Query parameter name for redirect URL
|
|
33
|
-
* @default "redirect"
|
|
34
|
-
*/
|
|
35
|
-
redirectParam?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Context passed to TanStack Router beforeLoad
|
|
39
|
-
*/
|
|
40
|
-
interface BeforeLoadContext {
|
|
41
|
-
context: {
|
|
42
|
-
request: Request;
|
|
43
|
-
[key: string]: unknown;
|
|
44
|
-
};
|
|
45
|
-
[key: string]: unknown;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Create a TanStack Router beforeLoad guard for admin authentication.
|
|
49
|
-
*
|
|
50
|
-
* Returns a function that can be used as beforeLoad in route definitions.
|
|
51
|
-
* Throws a redirect Response when authentication fails.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```ts
|
|
55
|
-
* import { createFileRoute } from "@tanstack/react-router";
|
|
56
|
-
* import { createTanStackAuthGuard } from "@questpie/admin/server/adapters/tanstack";
|
|
57
|
-
* import { cms } from "~/questpie/server/cms";
|
|
58
|
-
*
|
|
59
|
-
* export const Route = createFileRoute("/admin")({
|
|
60
|
-
* beforeLoad: createTanStackAuthGuard({
|
|
61
|
-
* cms,
|
|
62
|
-
* loginPath: "/admin/login",
|
|
63
|
-
* requiredRole: "admin",
|
|
64
|
-
* }),
|
|
65
|
-
* component: AdminLayout,
|
|
66
|
-
* });
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* @example With custom context
|
|
70
|
-
* ```ts
|
|
71
|
-
* export const Route = createFileRoute("/admin")({
|
|
72
|
-
* beforeLoad: async (ctx) => {
|
|
73
|
-
* // Run auth guard
|
|
74
|
-
* await createTanStackAuthGuard({ cms })(ctx);
|
|
75
|
-
*
|
|
76
|
-
* // Add additional context
|
|
77
|
-
* return { user: ctx.context.user };
|
|
78
|
-
* },
|
|
79
|
-
* });
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
declare function createTanStackAuthGuard({
|
|
83
|
-
cms,
|
|
84
|
-
loginPath,
|
|
85
|
-
requiredRole,
|
|
86
|
-
redirectParam
|
|
87
|
-
}: TanStackAuthGuardOptions): ({
|
|
88
|
-
context
|
|
89
|
-
}: BeforeLoadContext) => Promise<void>;
|
|
90
|
-
/**
|
|
91
|
-
* Create a TanStack Router loader that injects the admin session into context.
|
|
92
|
-
*
|
|
93
|
-
* Use this when you need access to the session in your components.
|
|
94
|
-
*
|
|
95
|
-
* @example
|
|
96
|
-
* ```ts
|
|
97
|
-
* import { createTanStackSessionLoader } from "@questpie/admin/server/adapters/tanstack";
|
|
98
|
-
*
|
|
99
|
-
* export const Route = createFileRoute("/admin")({
|
|
100
|
-
* loader: createTanStackSessionLoader({ cms }),
|
|
101
|
-
* component: AdminLayout,
|
|
102
|
-
* });
|
|
103
|
-
*
|
|
104
|
-
* function AdminLayout() {
|
|
105
|
-
* const { session } = Route.useLoaderData();
|
|
106
|
-
* return <div>Hello {session?.user?.name}</div>;
|
|
107
|
-
* }
|
|
108
|
-
* ```
|
|
109
|
-
*/
|
|
110
|
-
declare function createTanStackSessionLoader({
|
|
111
|
-
cms
|
|
112
|
-
}: {
|
|
113
|
-
cms: Questpie<any>;
|
|
114
|
-
}): ({
|
|
115
|
-
context
|
|
116
|
-
}: BeforeLoadContext) => Promise<{
|
|
117
|
-
session: {
|
|
118
|
-
session: {
|
|
119
|
-
id: string;
|
|
120
|
-
createdAt: Date;
|
|
121
|
-
updatedAt: Date;
|
|
122
|
-
userId: string;
|
|
123
|
-
expiresAt: Date;
|
|
124
|
-
token: string;
|
|
125
|
-
ipAddress?: string | null | undefined | undefined;
|
|
126
|
-
userAgent?: string | null | undefined | undefined;
|
|
127
|
-
};
|
|
128
|
-
user: {
|
|
129
|
-
id: string;
|
|
130
|
-
createdAt: Date;
|
|
131
|
-
updatedAt: Date;
|
|
132
|
-
email: string;
|
|
133
|
-
emailVerified: boolean;
|
|
134
|
-
name: string;
|
|
135
|
-
image?: string | null | undefined | undefined;
|
|
136
|
-
};
|
|
137
|
-
} | null;
|
|
138
|
-
}>;
|
|
139
|
-
//#endregion
|
|
140
11
|
//#region src/server/auth-helpers.d.ts
|
|
12
|
+
|
|
141
13
|
/**
|
|
142
14
|
* Session object from Better Auth
|
|
143
15
|
*/
|
|
@@ -275,121 +147,6 @@ declare function isAdminUser({
|
|
|
275
147
|
requiredRole?: string;
|
|
276
148
|
}): Promise<boolean>;
|
|
277
149
|
//#endregion
|
|
278
|
-
//#region src/server/adapters/nextjs.d.ts
|
|
279
|
-
/**
|
|
280
|
-
* Options for Next.js auth middleware
|
|
281
|
-
*/
|
|
282
|
-
interface NextAuthMiddlewareOptions {
|
|
283
|
-
/**
|
|
284
|
-
* The CMS instance with auth configured
|
|
285
|
-
*/
|
|
286
|
-
cms: Questpie<any>;
|
|
287
|
-
/**
|
|
288
|
-
* Path to redirect to when not authenticated
|
|
289
|
-
* @default "/admin/login"
|
|
290
|
-
*/
|
|
291
|
-
loginPath?: string;
|
|
292
|
-
/**
|
|
293
|
-
* Required role for access
|
|
294
|
-
* @default "admin"
|
|
295
|
-
*/
|
|
296
|
-
requiredRole?: string;
|
|
297
|
-
/**
|
|
298
|
-
* Paths that require authentication (uses startsWith matching)
|
|
299
|
-
* @default ["/admin"]
|
|
300
|
-
*/
|
|
301
|
-
protectedPaths?: string[];
|
|
302
|
-
/**
|
|
303
|
-
* Paths within protectedPaths that should be publicly accessible
|
|
304
|
-
* @default ["/admin/login", "/admin/forgot-password", "/admin/reset-password", "/admin/accept-invite"]
|
|
305
|
-
*/
|
|
306
|
-
publicPaths?: string[];
|
|
307
|
-
/**
|
|
308
|
-
* Query parameter name for redirect URL
|
|
309
|
-
* @default "redirect"
|
|
310
|
-
*/
|
|
311
|
-
redirectParam?: string;
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Create a Next.js middleware for admin authentication.
|
|
315
|
-
*
|
|
316
|
-
* @example
|
|
317
|
-
* ```ts
|
|
318
|
-
* // middleware.ts
|
|
319
|
-
* import { createNextAuthMiddleware } from "@questpie/admin/server/adapters/nextjs";
|
|
320
|
-
* import { cms } from "./questpie/server/cms";
|
|
321
|
-
*
|
|
322
|
-
* export default createNextAuthMiddleware({
|
|
323
|
-
* cms,
|
|
324
|
-
* loginPath: "/admin/login",
|
|
325
|
-
* });
|
|
326
|
-
*
|
|
327
|
-
* export const config = {
|
|
328
|
-
* matcher: ["/admin/:path*"],
|
|
329
|
-
* };
|
|
330
|
-
* ```
|
|
331
|
-
*/
|
|
332
|
-
declare function createNextAuthMiddleware({
|
|
333
|
-
cms,
|
|
334
|
-
loginPath,
|
|
335
|
-
requiredRole,
|
|
336
|
-
protectedPaths,
|
|
337
|
-
publicPaths,
|
|
338
|
-
redirectParam
|
|
339
|
-
}: NextAuthMiddlewareOptions): (request: Request) => Promise<Response>;
|
|
340
|
-
/**
|
|
341
|
-
* Get the admin session in a Next.js server component or API route.
|
|
342
|
-
*
|
|
343
|
-
* @example Server Component
|
|
344
|
-
* ```tsx
|
|
345
|
-
* // app/admin/layout.tsx
|
|
346
|
-
* import { getNextAdminSession } from "@questpie/admin/server/adapters/nextjs";
|
|
347
|
-
* import { headers } from "next/headers";
|
|
348
|
-
* import { cms } from "~/questpie/server/cms";
|
|
349
|
-
*
|
|
350
|
-
* export default async function AdminLayout({ children }) {
|
|
351
|
-
* const headersList = headers();
|
|
352
|
-
* const session = await getNextAdminSession({
|
|
353
|
-
* headers: headersList,
|
|
354
|
-
* cms,
|
|
355
|
-
* });
|
|
356
|
-
*
|
|
357
|
-
* if (!session) {
|
|
358
|
-
* redirect("/admin/login");
|
|
359
|
-
* }
|
|
360
|
-
*
|
|
361
|
-
* return <div>{children}</div>;
|
|
362
|
-
* }
|
|
363
|
-
* ```
|
|
364
|
-
*
|
|
365
|
-
* @example API Route
|
|
366
|
-
* ```ts
|
|
367
|
-
* // app/api/admin/users/route.ts
|
|
368
|
-
* import { getNextAdminSession } from "@questpie/admin/server/adapters/nextjs";
|
|
369
|
-
* import { cms } from "~/questpie/server/cms";
|
|
370
|
-
*
|
|
371
|
-
* export async function GET(request: Request) {
|
|
372
|
-
* const session = await getNextAdminSession({
|
|
373
|
-
* headers: request.headers,
|
|
374
|
-
* cms,
|
|
375
|
-
* });
|
|
376
|
-
*
|
|
377
|
-
* if (!session || session.user.role !== "admin") {
|
|
378
|
-
* return Response.json({ error: "Unauthorized" }, { status: 401 });
|
|
379
|
-
* }
|
|
380
|
-
*
|
|
381
|
-
* // ... handle request
|
|
382
|
-
* }
|
|
383
|
-
* ```
|
|
384
|
-
*/
|
|
385
|
-
declare function getNextAdminSession({
|
|
386
|
-
headers,
|
|
387
|
-
cms
|
|
388
|
-
}: {
|
|
389
|
-
headers: Headers;
|
|
390
|
-
cms: Questpie<any>;
|
|
391
|
-
}): Promise<AuthSession | null>;
|
|
392
|
-
//#endregion
|
|
393
150
|
//#region src/server/modules/admin-preferences/collections/saved-views.collection.d.ts
|
|
394
151
|
/**
|
|
395
152
|
* Admin Saved Views Collection
|
|
@@ -416,7 +173,7 @@ declare function getNextAdminSession({
|
|
|
416
173
|
* });
|
|
417
174
|
* ```
|
|
418
175
|
*/
|
|
419
|
-
declare const savedViewsCollection:
|
|
176
|
+
declare const savedViewsCollection: questpie214.CollectionBuilder<questpie214.SetProperty<questpie214.TypeMerge<questpie214.UnsetProperty<questpie214.CollectionBuilderState & {
|
|
420
177
|
name: "admin_saved_views";
|
|
421
178
|
fields: {};
|
|
422
179
|
localized: [];
|
|
@@ -425,7 +182,7 @@ declare const savedViewsCollection: questpie206.CollectionBuilder<questpie206.Se
|
|
|
425
182
|
indexes: {};
|
|
426
183
|
title: undefined;
|
|
427
184
|
options: {};
|
|
428
|
-
hooks:
|
|
185
|
+
hooks: questpie214.CollectionHooks<any, any, any>;
|
|
429
186
|
access: {};
|
|
430
187
|
functions: {};
|
|
431
188
|
searchable: undefined;
|
|
@@ -434,11 +191,11 @@ declare const savedViewsCollection: questpie206.CollectionBuilder<questpie206.Se
|
|
|
434
191
|
upload: undefined;
|
|
435
192
|
}, "localized" | "fields">, {
|
|
436
193
|
fields: {
|
|
437
|
-
userId:
|
|
438
|
-
collectionName:
|
|
439
|
-
name:
|
|
440
|
-
configuration:
|
|
441
|
-
isDefault:
|
|
194
|
+
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
195
|
+
collectionName: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
196
|
+
name: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
197
|
+
configuration: drizzle_orm94.$Type<drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgJsonbBuilder>, ViewConfiguration>;
|
|
198
|
+
isDefault: drizzle_orm94.NotNull<drizzle_orm94.HasDefault<drizzle_orm_pg_core183.PgBooleanBuilder>>;
|
|
442
199
|
};
|
|
443
200
|
localized: [];
|
|
444
201
|
}>, "options", {
|
|
@@ -465,14 +222,14 @@ interface PreviewTokenPayload {
|
|
|
465
222
|
* @returns Object with preview functions
|
|
466
223
|
*/
|
|
467
224
|
declare function createPreviewFunctions(secret: string): {
|
|
468
|
-
mintPreviewToken:
|
|
225
|
+
mintPreviewToken: questpie214.JsonFunctionDefinition<{
|
|
469
226
|
path: string;
|
|
470
227
|
ttlMs?: number | undefined;
|
|
471
228
|
}, {
|
|
472
229
|
token: string;
|
|
473
230
|
expiresAt: number;
|
|
474
231
|
}, any>;
|
|
475
|
-
verifyPreviewToken:
|
|
232
|
+
verifyPreviewToken: questpie214.JsonFunctionDefinition<{
|
|
476
233
|
token: string;
|
|
477
234
|
}, {
|
|
478
235
|
valid: boolean;
|
|
@@ -529,7 +286,7 @@ declare function createPreviewTokenVerifier(secret?: string): (token: string) =>
|
|
|
529
286
|
* }
|
|
530
287
|
* ```
|
|
531
288
|
*/
|
|
532
|
-
declare const isSetupRequired:
|
|
289
|
+
declare const isSetupRequired: questpie214.JsonFunctionDefinition<Record<string, never>, {
|
|
533
290
|
required: boolean;
|
|
534
291
|
}, any>;
|
|
535
292
|
/**
|
|
@@ -554,7 +311,7 @@ declare const isSetupRequired: questpie206.JsonFunctionDefinition<Record<string,
|
|
|
554
311
|
* }
|
|
555
312
|
* ```
|
|
556
313
|
*/
|
|
557
|
-
declare const createFirstAdmin:
|
|
314
|
+
declare const createFirstAdmin: questpie214.JsonFunctionDefinition<{
|
|
558
315
|
email: string;
|
|
559
316
|
password: string;
|
|
560
317
|
name: string;
|
|
@@ -571,10 +328,10 @@ declare const createFirstAdmin: questpie206.JsonFunctionDefinition<{
|
|
|
571
328
|
* Bundle of setup-related functions.
|
|
572
329
|
*/
|
|
573
330
|
declare const setupFunctions: {
|
|
574
|
-
readonly isSetupRequired:
|
|
331
|
+
readonly isSetupRequired: questpie214.JsonFunctionDefinition<Record<string, never>, {
|
|
575
332
|
required: boolean;
|
|
576
333
|
}, any>;
|
|
577
|
-
readonly createFirstAdmin:
|
|
334
|
+
readonly createFirstAdmin: questpie214.JsonFunctionDefinition<{
|
|
578
335
|
email: string;
|
|
579
336
|
password: string;
|
|
580
337
|
name: string;
|
|
@@ -635,36 +392,36 @@ declare const setupFunctions: {
|
|
|
635
392
|
* .build({ ... });
|
|
636
393
|
* ```
|
|
637
394
|
*/
|
|
638
|
-
declare const adminModule:
|
|
395
|
+
declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<questpie214.SetProperty<{
|
|
639
396
|
name: "questpie-admin";
|
|
640
|
-
collections:
|
|
641
|
-
assets:
|
|
397
|
+
collections: questpie214.TypeMerge<questpie214.UnsetProperty<{}, keyof TOtherCollections>, {
|
|
398
|
+
assets: questpie214.CollectionBuilder<{
|
|
642
399
|
options: {
|
|
643
400
|
timestamps: true;
|
|
644
401
|
};
|
|
645
402
|
name: "assets";
|
|
646
403
|
fields: {
|
|
647
|
-
width:
|
|
648
|
-
height:
|
|
649
|
-
alt:
|
|
650
|
-
caption:
|
|
404
|
+
width: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
405
|
+
height: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
406
|
+
alt: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
407
|
+
caption: drizzle_orm_pg_core183.PgTextBuilder<[string, ...string[]]>;
|
|
651
408
|
} & {
|
|
652
|
-
key:
|
|
653
|
-
filename:
|
|
654
|
-
mimeType:
|
|
655
|
-
size:
|
|
656
|
-
visibility:
|
|
409
|
+
key: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
410
|
+
filename: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
411
|
+
mimeType: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
412
|
+
size: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgIntegerBuilder>;
|
|
413
|
+
visibility: drizzle_orm94.HasDefault<drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<["public", "private"]>>>;
|
|
657
414
|
};
|
|
658
415
|
localized: [];
|
|
659
416
|
virtuals: undefined;
|
|
660
|
-
relations: Record<string,
|
|
417
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
661
418
|
indexes: Record<string, any>;
|
|
662
419
|
title: "filename";
|
|
663
420
|
hooks: {
|
|
664
421
|
afterDelete: ({
|
|
665
422
|
data,
|
|
666
423
|
app
|
|
667
|
-
}:
|
|
424
|
+
}: questpie214.HookContext<{
|
|
668
425
|
width: number | null;
|
|
669
426
|
height: number | null;
|
|
670
427
|
alt: string | null;
|
|
@@ -681,160 +438,160 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
681
438
|
url: string;
|
|
682
439
|
}, never, "delete", any>) => Promise<void>;
|
|
683
440
|
};
|
|
684
|
-
access:
|
|
441
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
685
442
|
functions: {
|
|
686
|
-
[x: string]:
|
|
443
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
687
444
|
};
|
|
688
445
|
searchable: undefined;
|
|
689
446
|
validation: undefined;
|
|
690
|
-
output:
|
|
447
|
+
output: questpie214.TypeMerge<{}, {
|
|
691
448
|
url: string;
|
|
692
449
|
}>;
|
|
693
|
-
upload:
|
|
450
|
+
upload: questpie214.UploadOptions;
|
|
694
451
|
}>;
|
|
695
|
-
user:
|
|
452
|
+
user: questpie214.CollectionBuilder<{
|
|
696
453
|
options: {
|
|
697
454
|
timestamps: true;
|
|
698
455
|
};
|
|
699
456
|
name: "user";
|
|
700
457
|
fields: {
|
|
701
|
-
name:
|
|
702
|
-
email:
|
|
703
|
-
emailVerified:
|
|
704
|
-
image:
|
|
705
|
-
role:
|
|
706
|
-
banned:
|
|
707
|
-
banReason:
|
|
708
|
-
banExpires:
|
|
458
|
+
name: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
459
|
+
email: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
460
|
+
emailVerified: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgBooleanBuilder>;
|
|
461
|
+
image: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
462
|
+
role: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
463
|
+
banned: drizzle_orm94.HasDefault<drizzle_orm_pg_core183.PgBooleanBuilder>;
|
|
464
|
+
banReason: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
465
|
+
banExpires: drizzle_orm_pg_core183.PgTimestampBuilder;
|
|
709
466
|
};
|
|
710
467
|
localized: [];
|
|
711
468
|
virtuals: undefined;
|
|
712
|
-
relations: Record<string,
|
|
469
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
713
470
|
indexes: Record<string, any>;
|
|
714
471
|
title: "name";
|
|
715
|
-
hooks:
|
|
716
|
-
access:
|
|
472
|
+
hooks: questpie214.CollectionHooks<any, any, any, any>;
|
|
473
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
717
474
|
functions: {
|
|
718
|
-
[x: string]:
|
|
475
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
719
476
|
};
|
|
720
477
|
searchable: undefined;
|
|
721
478
|
validation: undefined;
|
|
722
479
|
output: undefined;
|
|
723
480
|
upload: undefined;
|
|
724
481
|
}>;
|
|
725
|
-
session:
|
|
726
|
-
options:
|
|
482
|
+
session: questpie214.CollectionBuilder<{
|
|
483
|
+
options: questpie214.CollectionOptions;
|
|
727
484
|
name: "session";
|
|
728
485
|
fields: {
|
|
729
|
-
userId:
|
|
730
|
-
token:
|
|
731
|
-
expiresAt:
|
|
732
|
-
ipAddress:
|
|
733
|
-
userAgent:
|
|
734
|
-
impersonatedBy:
|
|
486
|
+
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
487
|
+
token: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
488
|
+
expiresAt: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgTimestampBuilder>;
|
|
489
|
+
ipAddress: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
490
|
+
userAgent: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
491
|
+
impersonatedBy: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
735
492
|
};
|
|
736
493
|
localized: [];
|
|
737
494
|
virtuals: undefined;
|
|
738
|
-
relations: Record<string,
|
|
495
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
739
496
|
indexes: Record<string, any>;
|
|
740
497
|
title: "token";
|
|
741
|
-
hooks:
|
|
742
|
-
access:
|
|
498
|
+
hooks: questpie214.CollectionHooks<any, any, any, any>;
|
|
499
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
743
500
|
functions: {
|
|
744
|
-
[x: string]:
|
|
501
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
745
502
|
};
|
|
746
503
|
searchable: undefined;
|
|
747
504
|
validation: undefined;
|
|
748
505
|
output: undefined;
|
|
749
506
|
upload: undefined;
|
|
750
507
|
}>;
|
|
751
|
-
account:
|
|
752
|
-
options:
|
|
508
|
+
account: questpie214.CollectionBuilder<{
|
|
509
|
+
options: questpie214.CollectionOptions;
|
|
753
510
|
name: "account";
|
|
754
511
|
fields: {
|
|
755
|
-
userId:
|
|
756
|
-
accountId:
|
|
757
|
-
providerId:
|
|
758
|
-
accessToken:
|
|
759
|
-
refreshToken:
|
|
760
|
-
accessTokenExpiresAt:
|
|
761
|
-
refreshTokenExpiresAt:
|
|
762
|
-
scope:
|
|
763
|
-
idToken:
|
|
764
|
-
password:
|
|
512
|
+
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
513
|
+
accountId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
514
|
+
providerId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
515
|
+
accessToken: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
516
|
+
refreshToken: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
517
|
+
accessTokenExpiresAt: drizzle_orm_pg_core183.PgTimestampBuilder;
|
|
518
|
+
refreshTokenExpiresAt: drizzle_orm_pg_core183.PgTimestampBuilder;
|
|
519
|
+
scope: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
520
|
+
idToken: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
521
|
+
password: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
765
522
|
};
|
|
766
523
|
localized: [];
|
|
767
524
|
virtuals: undefined;
|
|
768
|
-
relations: Record<string,
|
|
525
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
769
526
|
indexes: Record<string, any>;
|
|
770
527
|
title: "providerId";
|
|
771
|
-
hooks:
|
|
772
|
-
access:
|
|
528
|
+
hooks: questpie214.CollectionHooks<any, any, any, any>;
|
|
529
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
773
530
|
functions: {
|
|
774
|
-
[x: string]:
|
|
531
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
775
532
|
};
|
|
776
533
|
searchable: undefined;
|
|
777
534
|
validation: undefined;
|
|
778
535
|
output: undefined;
|
|
779
536
|
upload: undefined;
|
|
780
537
|
}>;
|
|
781
|
-
verification:
|
|
782
|
-
options:
|
|
538
|
+
verification: questpie214.CollectionBuilder<{
|
|
539
|
+
options: questpie214.CollectionOptions;
|
|
783
540
|
name: "verification";
|
|
784
541
|
fields: {
|
|
785
|
-
identifier:
|
|
786
|
-
value:
|
|
787
|
-
expiresAt:
|
|
542
|
+
identifier: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
543
|
+
value: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
544
|
+
expiresAt: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgTimestampBuilder>;
|
|
788
545
|
};
|
|
789
546
|
localized: [];
|
|
790
547
|
virtuals: undefined;
|
|
791
|
-
relations: Record<string,
|
|
548
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
792
549
|
indexes: Record<string, any>;
|
|
793
550
|
title: "identifier";
|
|
794
|
-
hooks:
|
|
795
|
-
access:
|
|
551
|
+
hooks: questpie214.CollectionHooks<any, any, any, any>;
|
|
552
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
796
553
|
functions: {
|
|
797
|
-
[x: string]:
|
|
554
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
798
555
|
};
|
|
799
556
|
searchable: undefined;
|
|
800
557
|
validation: undefined;
|
|
801
558
|
output: undefined;
|
|
802
559
|
upload: undefined;
|
|
803
560
|
}>;
|
|
804
|
-
apikey:
|
|
561
|
+
apikey: questpie214.CollectionBuilder<{
|
|
805
562
|
options: {
|
|
806
563
|
timestamps: true;
|
|
807
564
|
};
|
|
808
565
|
name: "apikey";
|
|
809
566
|
fields: {
|
|
810
|
-
name:
|
|
811
|
-
start:
|
|
812
|
-
prefix:
|
|
813
|
-
key:
|
|
814
|
-
userId:
|
|
815
|
-
refillInterval:
|
|
816
|
-
refillAmount:
|
|
817
|
-
lastRefillAt:
|
|
818
|
-
enabled:
|
|
819
|
-
rateLimitEnabled:
|
|
820
|
-
rateLimitTimeWindow:
|
|
821
|
-
rateLimitMax:
|
|
822
|
-
requestCount:
|
|
823
|
-
remaining:
|
|
824
|
-
lastRequest:
|
|
825
|
-
expiresAt:
|
|
826
|
-
permissions:
|
|
827
|
-
metadata:
|
|
567
|
+
name: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
568
|
+
start: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
569
|
+
prefix: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
570
|
+
key: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
571
|
+
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
572
|
+
refillInterval: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
573
|
+
refillAmount: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
574
|
+
lastRefillAt: drizzle_orm_pg_core183.PgTimestampBuilder;
|
|
575
|
+
enabled: drizzle_orm94.HasDefault<drizzle_orm_pg_core183.PgBooleanBuilder>;
|
|
576
|
+
rateLimitEnabled: drizzle_orm94.HasDefault<drizzle_orm_pg_core183.PgBooleanBuilder>;
|
|
577
|
+
rateLimitTimeWindow: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
578
|
+
rateLimitMax: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
579
|
+
requestCount: drizzle_orm94.HasDefault<drizzle_orm_pg_core183.PgIntegerBuilder>;
|
|
580
|
+
remaining: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
581
|
+
lastRequest: drizzle_orm_pg_core183.PgTimestampBuilder;
|
|
582
|
+
expiresAt: drizzle_orm_pg_core183.PgTimestampBuilder;
|
|
583
|
+
permissions: drizzle_orm_pg_core183.PgTextBuilder<[string, ...string[]]>;
|
|
584
|
+
metadata: drizzle_orm_pg_core183.PgTextBuilder<[string, ...string[]]>;
|
|
828
585
|
};
|
|
829
586
|
localized: [];
|
|
830
587
|
virtuals: undefined;
|
|
831
|
-
relations: Record<string,
|
|
588
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
832
589
|
indexes: Record<string, any>;
|
|
833
590
|
title: "key";
|
|
834
|
-
hooks:
|
|
835
|
-
access:
|
|
591
|
+
hooks: questpie214.CollectionHooks<any, any, any, any>;
|
|
592
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
836
593
|
functions: {
|
|
837
|
-
[x: string]:
|
|
594
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
838
595
|
};
|
|
839
596
|
searchable: undefined;
|
|
840
597
|
validation: undefined;
|
|
@@ -842,11 +599,11 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
842
599
|
upload: undefined;
|
|
843
600
|
}>;
|
|
844
601
|
}>;
|
|
845
|
-
globals:
|
|
846
|
-
jobs:
|
|
847
|
-
emailTemplates:
|
|
848
|
-
functions:
|
|
849
|
-
auth:
|
|
602
|
+
globals: questpie214.TypeMerge<questpie214.UnsetProperty<{}, keyof TOtherGlobals>, {}>;
|
|
603
|
+
jobs: questpie214.TypeMerge<questpie214.UnsetProperty<{}, keyof TOtherJobs>, {}>;
|
|
604
|
+
emailTemplates: questpie214.TypeMerge<questpie214.UnsetProperty<{}, keyof TOtherEmailTemplates>, {}>;
|
|
605
|
+
functions: questpie214.TypeMerge<questpie214.UnsetProperty<{}, keyof TOtherFunctions>, {}>;
|
|
606
|
+
auth: questpie214.MergeAuthOptions<{}, questpie214.MergeAuthOptions<{}, {
|
|
850
607
|
baseURL: string | undefined;
|
|
851
608
|
secret: string | undefined;
|
|
852
609
|
advanced: {
|
|
@@ -892,7 +649,7 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
892
649
|
token: string;
|
|
893
650
|
ipAddress?: string | null | undefined;
|
|
894
651
|
userAgent?: string | null | undefined;
|
|
895
|
-
} & Record<string, unknown>, ctx:
|
|
652
|
+
} & Record<string, unknown>, ctx: better_auth63.GenericEndpointContext | null): Promise<void>;
|
|
896
653
|
};
|
|
897
654
|
};
|
|
898
655
|
};
|
|
@@ -900,22 +657,22 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
900
657
|
};
|
|
901
658
|
hooks: {
|
|
902
659
|
after: {
|
|
903
|
-
matcher(context:
|
|
904
|
-
handler: (inputContext:
|
|
660
|
+
matcher(context: better_auth63.HookEndpointContext): boolean;
|
|
661
|
+
handler: (inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<better_auth_plugins25.SessionWithImpersonatedBy[] | undefined>;
|
|
905
662
|
}[];
|
|
906
663
|
};
|
|
907
664
|
endpoints: {
|
|
908
|
-
setRole:
|
|
665
|
+
setRole: better_call62.StrictEndpoint<"/admin/set-role", {
|
|
909
666
|
method: "POST";
|
|
910
|
-
body:
|
|
911
|
-
userId:
|
|
912
|
-
role:
|
|
913
|
-
},
|
|
667
|
+
body: zod169.ZodObject<{
|
|
668
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
669
|
+
role: zod169.ZodUnion<readonly [zod169.ZodString, zod169.ZodArray<zod169.ZodString>]>;
|
|
670
|
+
}, better_auth63.$strip>;
|
|
914
671
|
requireHeaders: true;
|
|
915
|
-
use: ((inputContext:
|
|
672
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
916
673
|
session: {
|
|
917
|
-
user:
|
|
918
|
-
session:
|
|
674
|
+
user: better_auth_plugins25.UserWithRole;
|
|
675
|
+
session: better_auth63.Session;
|
|
919
676
|
};
|
|
920
677
|
}>)[];
|
|
921
678
|
metadata: {
|
|
@@ -949,17 +706,17 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
949
706
|
};
|
|
950
707
|
};
|
|
951
708
|
}, {
|
|
952
|
-
user:
|
|
709
|
+
user: better_auth_plugins25.UserWithRole;
|
|
953
710
|
}>;
|
|
954
|
-
getUser:
|
|
711
|
+
getUser: better_call62.StrictEndpoint<"/admin/get-user", {
|
|
955
712
|
method: "GET";
|
|
956
|
-
query:
|
|
957
|
-
id:
|
|
958
|
-
},
|
|
959
|
-
use: ((inputContext:
|
|
713
|
+
query: zod169.ZodObject<{
|
|
714
|
+
id: zod169.ZodString;
|
|
715
|
+
}, better_auth63.$strip>;
|
|
716
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
960
717
|
session: {
|
|
961
|
-
user:
|
|
962
|
-
session:
|
|
718
|
+
user: better_auth_plugins25.UserWithRole;
|
|
719
|
+
session: better_auth63.Session;
|
|
963
720
|
};
|
|
964
721
|
}>)[];
|
|
965
722
|
metadata: {
|
|
@@ -986,16 +743,16 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
986
743
|
};
|
|
987
744
|
};
|
|
988
745
|
};
|
|
989
|
-
},
|
|
990
|
-
createUser:
|
|
746
|
+
}, better_auth_plugins25.UserWithRole>;
|
|
747
|
+
createUser: better_call62.StrictEndpoint<"/admin/create-user", {
|
|
991
748
|
method: "POST";
|
|
992
|
-
body:
|
|
993
|
-
email:
|
|
994
|
-
password:
|
|
995
|
-
name:
|
|
996
|
-
role:
|
|
997
|
-
data:
|
|
998
|
-
},
|
|
749
|
+
body: zod169.ZodObject<{
|
|
750
|
+
email: zod169.ZodString;
|
|
751
|
+
password: zod169.ZodOptional<zod169.ZodString>;
|
|
752
|
+
name: zod169.ZodString;
|
|
753
|
+
role: zod169.ZodOptional<zod169.ZodUnion<readonly [zod169.ZodString, zod169.ZodArray<zod169.ZodString>]>>;
|
|
754
|
+
data: zod169.ZodOptional<zod169.ZodRecord<zod169.ZodString, zod169.ZodAny>>;
|
|
755
|
+
}, better_auth63.$strip>;
|
|
999
756
|
metadata: {
|
|
1000
757
|
openapi: {
|
|
1001
758
|
operationId: string;
|
|
@@ -1030,18 +787,18 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1030
787
|
};
|
|
1031
788
|
};
|
|
1032
789
|
}, {
|
|
1033
|
-
user:
|
|
790
|
+
user: better_auth_plugins25.UserWithRole;
|
|
1034
791
|
}>;
|
|
1035
|
-
adminUpdateUser:
|
|
792
|
+
adminUpdateUser: better_call62.StrictEndpoint<"/admin/update-user", {
|
|
1036
793
|
method: "POST";
|
|
1037
|
-
body:
|
|
1038
|
-
userId:
|
|
1039
|
-
data:
|
|
1040
|
-
},
|
|
1041
|
-
use: ((inputContext:
|
|
794
|
+
body: zod169.ZodObject<{
|
|
795
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
796
|
+
data: zod169.ZodRecord<zod169.ZodAny, zod169.ZodAny>;
|
|
797
|
+
}, better_auth63.$strip>;
|
|
798
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
1042
799
|
session: {
|
|
1043
|
-
user:
|
|
1044
|
-
session:
|
|
800
|
+
user: better_auth_plugins25.UserWithRole;
|
|
801
|
+
session: better_auth63.Session;
|
|
1045
802
|
};
|
|
1046
803
|
}>)[];
|
|
1047
804
|
metadata: {
|
|
@@ -1068,36 +825,36 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1068
825
|
};
|
|
1069
826
|
};
|
|
1070
827
|
};
|
|
1071
|
-
},
|
|
1072
|
-
listUsers:
|
|
828
|
+
}, better_auth_plugins25.UserWithRole>;
|
|
829
|
+
listUsers: better_call62.StrictEndpoint<"/admin/list-users", {
|
|
1073
830
|
method: "GET";
|
|
1074
|
-
use: ((inputContext:
|
|
831
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
1075
832
|
session: {
|
|
1076
|
-
user:
|
|
1077
|
-
session:
|
|
833
|
+
user: better_auth_plugins25.UserWithRole;
|
|
834
|
+
session: better_auth63.Session;
|
|
1078
835
|
};
|
|
1079
836
|
}>)[];
|
|
1080
|
-
query:
|
|
1081
|
-
searchValue:
|
|
1082
|
-
searchField:
|
|
837
|
+
query: zod169.ZodObject<{
|
|
838
|
+
searchValue: zod169.ZodOptional<zod169.ZodString>;
|
|
839
|
+
searchField: zod169.ZodOptional<zod169.ZodEnum<{
|
|
1083
840
|
name: "name";
|
|
1084
841
|
email: "email";
|
|
1085
842
|
}>>;
|
|
1086
|
-
searchOperator:
|
|
843
|
+
searchOperator: zod169.ZodOptional<zod169.ZodEnum<{
|
|
1087
844
|
contains: "contains";
|
|
1088
845
|
starts_with: "starts_with";
|
|
1089
846
|
ends_with: "ends_with";
|
|
1090
847
|
}>>;
|
|
1091
|
-
limit:
|
|
1092
|
-
offset:
|
|
1093
|
-
sortBy:
|
|
1094
|
-
sortDirection:
|
|
848
|
+
limit: zod169.ZodOptional<zod169.ZodUnion<[zod169.ZodString, zod169.ZodNumber]>>;
|
|
849
|
+
offset: zod169.ZodOptional<zod169.ZodUnion<[zod169.ZodString, zod169.ZodNumber]>>;
|
|
850
|
+
sortBy: zod169.ZodOptional<zod169.ZodString>;
|
|
851
|
+
sortDirection: zod169.ZodOptional<zod169.ZodEnum<{
|
|
1095
852
|
asc: "asc";
|
|
1096
853
|
desc: "desc";
|
|
1097
854
|
}>>;
|
|
1098
|
-
filterField:
|
|
1099
|
-
filterValue:
|
|
1100
|
-
filterOperator:
|
|
855
|
+
filterField: zod169.ZodOptional<zod169.ZodString>;
|
|
856
|
+
filterValue: zod169.ZodOptional<zod169.ZodUnion<[zod169.ZodUnion<[zod169.ZodString, zod169.ZodNumber]>, zod169.ZodBoolean]>>;
|
|
857
|
+
filterOperator: zod169.ZodOptional<zod169.ZodEnum<{
|
|
1101
858
|
eq: "eq";
|
|
1102
859
|
ne: "ne";
|
|
1103
860
|
lt: "lt";
|
|
@@ -1106,7 +863,7 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1106
863
|
gte: "gte";
|
|
1107
864
|
contains: "contains";
|
|
1108
865
|
}>>;
|
|
1109
|
-
},
|
|
866
|
+
}, better_auth63.$strip>;
|
|
1110
867
|
metadata: {
|
|
1111
868
|
openapi: {
|
|
1112
869
|
operationId: string;
|
|
@@ -1145,7 +902,7 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1145
902
|
};
|
|
1146
903
|
};
|
|
1147
904
|
}, {
|
|
1148
|
-
users:
|
|
905
|
+
users: better_auth_plugins25.UserWithRole[];
|
|
1149
906
|
total: number;
|
|
1150
907
|
limit: number | undefined;
|
|
1151
908
|
offset: number | undefined;
|
|
@@ -1153,17 +910,17 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1153
910
|
users: never[];
|
|
1154
911
|
total: number;
|
|
1155
912
|
}>;
|
|
1156
|
-
listUserSessions:
|
|
913
|
+
listUserSessions: better_call62.StrictEndpoint<"/admin/list-user-sessions", {
|
|
1157
914
|
method: "POST";
|
|
1158
|
-
use: ((inputContext:
|
|
915
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
1159
916
|
session: {
|
|
1160
|
-
user:
|
|
1161
|
-
session:
|
|
917
|
+
user: better_auth_plugins25.UserWithRole;
|
|
918
|
+
session: better_auth63.Session;
|
|
1162
919
|
};
|
|
1163
920
|
}>)[];
|
|
1164
|
-
body:
|
|
1165
|
-
userId:
|
|
1166
|
-
},
|
|
921
|
+
body: zod169.ZodObject<{
|
|
922
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
923
|
+
}, better_auth63.$strip>;
|
|
1167
924
|
metadata: {
|
|
1168
925
|
openapi: {
|
|
1169
926
|
operationId: string;
|
|
@@ -1192,17 +949,17 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1192
949
|
};
|
|
1193
950
|
};
|
|
1194
951
|
}, {
|
|
1195
|
-
sessions:
|
|
952
|
+
sessions: better_auth_plugins25.SessionWithImpersonatedBy[];
|
|
1196
953
|
}>;
|
|
1197
|
-
unbanUser:
|
|
954
|
+
unbanUser: better_call62.StrictEndpoint<"/admin/unban-user", {
|
|
1198
955
|
method: "POST";
|
|
1199
|
-
body:
|
|
1200
|
-
userId:
|
|
1201
|
-
},
|
|
1202
|
-
use: ((inputContext:
|
|
956
|
+
body: zod169.ZodObject<{
|
|
957
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
958
|
+
}, better_auth63.$strip>;
|
|
959
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
1203
960
|
session: {
|
|
1204
|
-
user:
|
|
1205
|
-
session:
|
|
961
|
+
user: better_auth_plugins25.UserWithRole;
|
|
962
|
+
session: better_auth63.Session;
|
|
1206
963
|
};
|
|
1207
964
|
}>)[];
|
|
1208
965
|
metadata: {
|
|
@@ -1230,19 +987,19 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1230
987
|
};
|
|
1231
988
|
};
|
|
1232
989
|
}, {
|
|
1233
|
-
user:
|
|
990
|
+
user: better_auth_plugins25.UserWithRole;
|
|
1234
991
|
}>;
|
|
1235
|
-
banUser:
|
|
992
|
+
banUser: better_call62.StrictEndpoint<"/admin/ban-user", {
|
|
1236
993
|
method: "POST";
|
|
1237
|
-
body:
|
|
1238
|
-
userId:
|
|
1239
|
-
banReason:
|
|
1240
|
-
banExpiresIn:
|
|
1241
|
-
},
|
|
1242
|
-
use: ((inputContext:
|
|
994
|
+
body: zod169.ZodObject<{
|
|
995
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
996
|
+
banReason: zod169.ZodOptional<zod169.ZodString>;
|
|
997
|
+
banExpiresIn: zod169.ZodOptional<zod169.ZodNumber>;
|
|
998
|
+
}, better_auth63.$strip>;
|
|
999
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
1243
1000
|
session: {
|
|
1244
|
-
user:
|
|
1245
|
-
session:
|
|
1001
|
+
user: better_auth_plugins25.UserWithRole;
|
|
1002
|
+
session: better_auth63.Session;
|
|
1246
1003
|
};
|
|
1247
1004
|
}>)[];
|
|
1248
1005
|
metadata: {
|
|
@@ -1270,17 +1027,17 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1270
1027
|
};
|
|
1271
1028
|
};
|
|
1272
1029
|
}, {
|
|
1273
|
-
user:
|
|
1030
|
+
user: better_auth_plugins25.UserWithRole;
|
|
1274
1031
|
}>;
|
|
1275
|
-
impersonateUser:
|
|
1032
|
+
impersonateUser: better_call62.StrictEndpoint<"/admin/impersonate-user", {
|
|
1276
1033
|
method: "POST";
|
|
1277
|
-
body:
|
|
1278
|
-
userId:
|
|
1279
|
-
},
|
|
1280
|
-
use: ((inputContext:
|
|
1034
|
+
body: zod169.ZodObject<{
|
|
1035
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
1036
|
+
}, better_auth63.$strip>;
|
|
1037
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
1281
1038
|
session: {
|
|
1282
|
-
user:
|
|
1283
|
-
session:
|
|
1039
|
+
user: better_auth_plugins25.UserWithRole;
|
|
1040
|
+
session: better_auth63.Session;
|
|
1284
1041
|
};
|
|
1285
1042
|
}>)[];
|
|
1286
1043
|
metadata: {
|
|
@@ -1321,9 +1078,9 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1321
1078
|
ipAddress?: string | null | undefined;
|
|
1322
1079
|
userAgent?: string | null | undefined;
|
|
1323
1080
|
};
|
|
1324
|
-
user:
|
|
1081
|
+
user: better_auth_plugins25.UserWithRole;
|
|
1325
1082
|
}>;
|
|
1326
|
-
stopImpersonating:
|
|
1083
|
+
stopImpersonating: better_call62.StrictEndpoint<"/admin/stop-impersonating", {
|
|
1327
1084
|
method: "POST";
|
|
1328
1085
|
requireHeaders: true;
|
|
1329
1086
|
}, {
|
|
@@ -1347,15 +1104,15 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1347
1104
|
image?: string | null | undefined;
|
|
1348
1105
|
} & Record<string, any>;
|
|
1349
1106
|
}>;
|
|
1350
|
-
revokeUserSession:
|
|
1107
|
+
revokeUserSession: better_call62.StrictEndpoint<"/admin/revoke-user-session", {
|
|
1351
1108
|
method: "POST";
|
|
1352
|
-
body:
|
|
1353
|
-
sessionToken:
|
|
1354
|
-
},
|
|
1355
|
-
use: ((inputContext:
|
|
1109
|
+
body: zod169.ZodObject<{
|
|
1110
|
+
sessionToken: zod169.ZodString;
|
|
1111
|
+
}, better_auth63.$strip>;
|
|
1112
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
1356
1113
|
session: {
|
|
1357
|
-
user:
|
|
1358
|
-
session:
|
|
1114
|
+
user: better_auth_plugins25.UserWithRole;
|
|
1115
|
+
session: better_auth63.Session;
|
|
1359
1116
|
};
|
|
1360
1117
|
}>)[];
|
|
1361
1118
|
metadata: {
|
|
@@ -1385,15 +1142,15 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1385
1142
|
}, {
|
|
1386
1143
|
success: boolean;
|
|
1387
1144
|
}>;
|
|
1388
|
-
revokeUserSessions:
|
|
1145
|
+
revokeUserSessions: better_call62.StrictEndpoint<"/admin/revoke-user-sessions", {
|
|
1389
1146
|
method: "POST";
|
|
1390
|
-
body:
|
|
1391
|
-
userId:
|
|
1392
|
-
},
|
|
1393
|
-
use: ((inputContext:
|
|
1147
|
+
body: zod169.ZodObject<{
|
|
1148
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
1149
|
+
}, better_auth63.$strip>;
|
|
1150
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
1394
1151
|
session: {
|
|
1395
|
-
user:
|
|
1396
|
-
session:
|
|
1152
|
+
user: better_auth_plugins25.UserWithRole;
|
|
1153
|
+
session: better_auth63.Session;
|
|
1397
1154
|
};
|
|
1398
1155
|
}>)[];
|
|
1399
1156
|
metadata: {
|
|
@@ -1423,15 +1180,15 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1423
1180
|
}, {
|
|
1424
1181
|
success: boolean;
|
|
1425
1182
|
}>;
|
|
1426
|
-
removeUser:
|
|
1183
|
+
removeUser: better_call62.StrictEndpoint<"/admin/remove-user", {
|
|
1427
1184
|
method: "POST";
|
|
1428
|
-
body:
|
|
1429
|
-
userId:
|
|
1430
|
-
},
|
|
1431
|
-
use: ((inputContext:
|
|
1185
|
+
body: zod169.ZodObject<{
|
|
1186
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
1187
|
+
}, better_auth63.$strip>;
|
|
1188
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
1432
1189
|
session: {
|
|
1433
|
-
user:
|
|
1434
|
-
session:
|
|
1190
|
+
user: better_auth_plugins25.UserWithRole;
|
|
1191
|
+
session: better_auth63.Session;
|
|
1435
1192
|
};
|
|
1436
1193
|
}>)[];
|
|
1437
1194
|
metadata: {
|
|
@@ -1461,16 +1218,16 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1461
1218
|
}, {
|
|
1462
1219
|
success: boolean;
|
|
1463
1220
|
}>;
|
|
1464
|
-
setUserPassword:
|
|
1221
|
+
setUserPassword: better_call62.StrictEndpoint<"/admin/set-user-password", {
|
|
1465
1222
|
method: "POST";
|
|
1466
|
-
body:
|
|
1467
|
-
newPassword:
|
|
1468
|
-
userId:
|
|
1469
|
-
},
|
|
1470
|
-
use: ((inputContext:
|
|
1223
|
+
body: zod169.ZodObject<{
|
|
1224
|
+
newPassword: zod169.ZodString;
|
|
1225
|
+
userId: zod169.ZodCoercedString<unknown>;
|
|
1226
|
+
}, better_auth63.$strip>;
|
|
1227
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
1471
1228
|
session: {
|
|
1472
|
-
user:
|
|
1473
|
-
session:
|
|
1229
|
+
user: better_auth_plugins25.UserWithRole;
|
|
1230
|
+
session: better_auth63.Session;
|
|
1474
1231
|
};
|
|
1475
1232
|
}>)[];
|
|
1476
1233
|
metadata: {
|
|
@@ -1500,18 +1257,18 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1500
1257
|
}, {
|
|
1501
1258
|
status: boolean;
|
|
1502
1259
|
}>;
|
|
1503
|
-
userHasPermission:
|
|
1260
|
+
userHasPermission: better_call62.StrictEndpoint<"/admin/has-permission", {
|
|
1504
1261
|
method: "POST";
|
|
1505
|
-
body:
|
|
1506
|
-
userId:
|
|
1507
|
-
role:
|
|
1508
|
-
},
|
|
1509
|
-
permission:
|
|
1510
|
-
permissions:
|
|
1511
|
-
},
|
|
1512
|
-
permission:
|
|
1513
|
-
permissions:
|
|
1514
|
-
},
|
|
1262
|
+
body: zod169.ZodIntersection<zod169.ZodObject<{
|
|
1263
|
+
userId: zod169.ZodOptional<zod169.ZodCoercedString<unknown>>;
|
|
1264
|
+
role: zod169.ZodOptional<zod169.ZodString>;
|
|
1265
|
+
}, better_auth63.$strip>, zod169.ZodUnion<readonly [zod169.ZodObject<{
|
|
1266
|
+
permission: zod169.ZodRecord<zod169.ZodString, zod169.ZodArray<zod169.ZodString>>;
|
|
1267
|
+
permissions: zod169.ZodUndefined;
|
|
1268
|
+
}, better_auth63.$strip>, zod169.ZodObject<{
|
|
1269
|
+
permission: zod169.ZodUndefined;
|
|
1270
|
+
permissions: zod169.ZodRecord<zod169.ZodString, zod169.ZodArray<zod169.ZodString>>;
|
|
1271
|
+
}, better_auth63.$strip>]>>;
|
|
1515
1272
|
metadata: {
|
|
1516
1273
|
openapi: {
|
|
1517
1274
|
description: string;
|
|
@@ -1640,7 +1397,7 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1640
1397
|
};
|
|
1641
1398
|
};
|
|
1642
1399
|
};
|
|
1643
|
-
options: NoInfer<
|
|
1400
|
+
options: NoInfer<better_auth_plugins25.AdminOptions>;
|
|
1644
1401
|
}, {
|
|
1645
1402
|
id: "api-key";
|
|
1646
1403
|
$ERROR_CODES: {
|
|
@@ -1672,8 +1429,8 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1672
1429
|
};
|
|
1673
1430
|
hooks: {
|
|
1674
1431
|
before: {
|
|
1675
|
-
matcher: (ctx:
|
|
1676
|
-
handler: (inputContext:
|
|
1432
|
+
matcher: (ctx: better_auth63.HookEndpointContext) => boolean;
|
|
1433
|
+
handler: (inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
1677
1434
|
user: {
|
|
1678
1435
|
id: string;
|
|
1679
1436
|
createdAt: Date;
|
|
@@ -1694,11 +1451,11 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1694
1451
|
expiresAt: Date;
|
|
1695
1452
|
};
|
|
1696
1453
|
} | {
|
|
1697
|
-
context:
|
|
1454
|
+
context: better_call62.MiddlewareContext<better_call62.MiddlewareOptions, {
|
|
1698
1455
|
returned?: unknown | undefined;
|
|
1699
1456
|
responseHeaders?: Headers | undefined;
|
|
1700
|
-
} &
|
|
1701
|
-
options:
|
|
1457
|
+
} & better_auth63.PluginContext & better_auth63.InfoContext & {
|
|
1458
|
+
options: better_auth63.BetterAuthOptions;
|
|
1702
1459
|
trustedOrigins: string[];
|
|
1703
1460
|
isTrustedOrigin: (url: string, settings?: {
|
|
1704
1461
|
allowRelativePaths: boolean;
|
|
@@ -1708,29 +1465,29 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1708
1465
|
storeStateStrategy: "database" | "cookie";
|
|
1709
1466
|
};
|
|
1710
1467
|
newSession: {
|
|
1711
|
-
session:
|
|
1712
|
-
user:
|
|
1468
|
+
session: better_auth63.Session & Record<string, any>;
|
|
1469
|
+
user: better_auth63.User & Record<string, any>;
|
|
1713
1470
|
} | null;
|
|
1714
1471
|
session: {
|
|
1715
|
-
session:
|
|
1716
|
-
user:
|
|
1472
|
+
session: better_auth63.Session & Record<string, any>;
|
|
1473
|
+
user: better_auth63.User & Record<string, any>;
|
|
1717
1474
|
} | null;
|
|
1718
1475
|
setNewSession: (session: {
|
|
1719
|
-
session:
|
|
1720
|
-
user:
|
|
1476
|
+
session: better_auth63.Session & Record<string, any>;
|
|
1477
|
+
user: better_auth63.User & Record<string, any>;
|
|
1721
1478
|
} | null) => void;
|
|
1722
|
-
socialProviders:
|
|
1723
|
-
authCookies:
|
|
1724
|
-
logger: ReturnType<(options?:
|
|
1479
|
+
socialProviders: better_auth63.OAuthProvider[];
|
|
1480
|
+
authCookies: better_auth63.BetterAuthCookies;
|
|
1481
|
+
logger: ReturnType<(options?: better_auth63.Logger | undefined) => better_auth63.InternalLogger>;
|
|
1725
1482
|
rateLimit: {
|
|
1726
1483
|
enabled: boolean;
|
|
1727
1484
|
window: number;
|
|
1728
1485
|
max: number;
|
|
1729
1486
|
storage: "memory" | "database" | "secondary-storage";
|
|
1730
|
-
} & Omit<
|
|
1731
|
-
adapter:
|
|
1732
|
-
internalAdapter:
|
|
1733
|
-
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<
|
|
1487
|
+
} & Omit<better_auth63.BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
|
|
1488
|
+
adapter: better_auth63.DBAdapter<better_auth63.BetterAuthOptions>;
|
|
1489
|
+
internalAdapter: better_auth63.InternalAdapter<better_auth63.BetterAuthOptions>;
|
|
1490
|
+
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<better_call62.CookieOptions> | undefined) => better_auth63.BetterAuthCookie;
|
|
1734
1491
|
secret: string;
|
|
1735
1492
|
sessionConfig: {
|
|
1736
1493
|
updateAge: number;
|
|
@@ -1742,10 +1499,10 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1742
1499
|
};
|
|
1743
1500
|
};
|
|
1744
1501
|
generateId: (options: {
|
|
1745
|
-
model:
|
|
1502
|
+
model: better_auth63.ModelNames;
|
|
1746
1503
|
size?: number | undefined;
|
|
1747
1504
|
}) => string | false;
|
|
1748
|
-
secondaryStorage:
|
|
1505
|
+
secondaryStorage: better_auth63.SecondaryStorage | undefined;
|
|
1749
1506
|
password: {
|
|
1750
1507
|
hash: (password: string) => Promise<string>;
|
|
1751
1508
|
verify: (data: {
|
|
@@ -1756,9 +1513,9 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1756
1513
|
minPasswordLength: number;
|
|
1757
1514
|
maxPasswordLength: number;
|
|
1758
1515
|
};
|
|
1759
|
-
checkPassword: (userId: string, ctx:
|
|
1516
|
+
checkPassword: (userId: string, ctx: better_auth63.GenericEndpointContext<better_auth63.BetterAuthOptions>) => Promise<boolean>;
|
|
1760
1517
|
};
|
|
1761
|
-
tables:
|
|
1518
|
+
tables: better_auth63.BetterAuthDBSchema;
|
|
1762
1519
|
runMigrations: () => Promise<void>;
|
|
1763
1520
|
publishTelemetry: (event: {
|
|
1764
1521
|
type: string;
|
|
@@ -1774,22 +1531,22 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1774
1531
|
}[];
|
|
1775
1532
|
};
|
|
1776
1533
|
endpoints: {
|
|
1777
|
-
createApiKey:
|
|
1534
|
+
createApiKey: better_call62.StrictEndpoint<"/api-key/create", {
|
|
1778
1535
|
method: "POST";
|
|
1779
|
-
body:
|
|
1780
|
-
name:
|
|
1781
|
-
expiresIn:
|
|
1782
|
-
userId:
|
|
1783
|
-
prefix:
|
|
1784
|
-
remaining:
|
|
1785
|
-
metadata:
|
|
1786
|
-
refillAmount:
|
|
1787
|
-
refillInterval:
|
|
1788
|
-
rateLimitTimeWindow:
|
|
1789
|
-
rateLimitMax:
|
|
1790
|
-
rateLimitEnabled:
|
|
1791
|
-
permissions:
|
|
1792
|
-
},
|
|
1536
|
+
body: zod169.ZodObject<{
|
|
1537
|
+
name: zod169.ZodOptional<zod169.ZodString>;
|
|
1538
|
+
expiresIn: zod169.ZodDefault<zod169.ZodNullable<zod169.ZodOptional<zod169.ZodNumber>>>;
|
|
1539
|
+
userId: zod169.ZodOptional<zod169.ZodCoercedString<unknown>>;
|
|
1540
|
+
prefix: zod169.ZodOptional<zod169.ZodString>;
|
|
1541
|
+
remaining: zod169.ZodDefault<zod169.ZodNullable<zod169.ZodOptional<zod169.ZodNumber>>>;
|
|
1542
|
+
metadata: zod169.ZodOptional<zod169.ZodAny>;
|
|
1543
|
+
refillAmount: zod169.ZodOptional<zod169.ZodNumber>;
|
|
1544
|
+
refillInterval: zod169.ZodOptional<zod169.ZodNumber>;
|
|
1545
|
+
rateLimitTimeWindow: zod169.ZodOptional<zod169.ZodNumber>;
|
|
1546
|
+
rateLimitMax: zod169.ZodOptional<zod169.ZodNumber>;
|
|
1547
|
+
rateLimitEnabled: zod169.ZodOptional<zod169.ZodBoolean>;
|
|
1548
|
+
permissions: zod169.ZodOptional<zod169.ZodRecord<zod169.ZodString, zod169.ZodArray<zod169.ZodString>>>;
|
|
1549
|
+
}, better_auth63.$strip>;
|
|
1793
1550
|
metadata: {
|
|
1794
1551
|
openapi: {
|
|
1795
1552
|
description: string;
|
|
@@ -1942,12 +1699,12 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1942
1699
|
createdAt: Date;
|
|
1943
1700
|
updatedAt: Date;
|
|
1944
1701
|
}>;
|
|
1945
|
-
verifyApiKey:
|
|
1702
|
+
verifyApiKey: better_call62.StrictEndpoint<string, {
|
|
1946
1703
|
method: "POST";
|
|
1947
|
-
body:
|
|
1948
|
-
key:
|
|
1949
|
-
permissions:
|
|
1950
|
-
},
|
|
1704
|
+
body: zod169.ZodObject<{
|
|
1705
|
+
key: zod169.ZodString;
|
|
1706
|
+
permissions: zod169.ZodOptional<zod169.ZodRecord<zod169.ZodString, zod169.ZodArray<zod169.ZodString>>>;
|
|
1707
|
+
}, better_auth63.$strip>;
|
|
1951
1708
|
}, {
|
|
1952
1709
|
valid: boolean;
|
|
1953
1710
|
error: {
|
|
@@ -1958,14 +1715,14 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
1958
1715
|
} | {
|
|
1959
1716
|
valid: boolean;
|
|
1960
1717
|
error: null;
|
|
1961
|
-
key: Omit<
|
|
1718
|
+
key: Omit<better_auth_plugins25.ApiKey, "key"> | null;
|
|
1962
1719
|
}>;
|
|
1963
|
-
getApiKey:
|
|
1720
|
+
getApiKey: better_call62.StrictEndpoint<"/api-key/get", {
|
|
1964
1721
|
method: "GET";
|
|
1965
|
-
query:
|
|
1966
|
-
id:
|
|
1967
|
-
},
|
|
1968
|
-
use: ((inputContext:
|
|
1722
|
+
query: zod169.ZodObject<{
|
|
1723
|
+
id: zod169.ZodString;
|
|
1724
|
+
}, better_auth63.$strip>;
|
|
1725
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
1969
1726
|
session: {
|
|
1970
1727
|
session: Record<string, any> & {
|
|
1971
1728
|
id: string;
|
|
@@ -2132,23 +1889,23 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
2132
1889
|
createdAt: Date;
|
|
2133
1890
|
updatedAt: Date;
|
|
2134
1891
|
}>;
|
|
2135
|
-
updateApiKey:
|
|
1892
|
+
updateApiKey: better_call62.StrictEndpoint<"/api-key/update", {
|
|
2136
1893
|
method: "POST";
|
|
2137
|
-
body:
|
|
2138
|
-
keyId:
|
|
2139
|
-
userId:
|
|
2140
|
-
name:
|
|
2141
|
-
enabled:
|
|
2142
|
-
remaining:
|
|
2143
|
-
refillAmount:
|
|
2144
|
-
refillInterval:
|
|
2145
|
-
metadata:
|
|
2146
|
-
expiresIn:
|
|
2147
|
-
rateLimitEnabled:
|
|
2148
|
-
rateLimitTimeWindow:
|
|
2149
|
-
rateLimitMax:
|
|
2150
|
-
permissions:
|
|
2151
|
-
},
|
|
1894
|
+
body: zod169.ZodObject<{
|
|
1895
|
+
keyId: zod169.ZodString;
|
|
1896
|
+
userId: zod169.ZodOptional<zod169.ZodCoercedString<unknown>>;
|
|
1897
|
+
name: zod169.ZodOptional<zod169.ZodString>;
|
|
1898
|
+
enabled: zod169.ZodOptional<zod169.ZodBoolean>;
|
|
1899
|
+
remaining: zod169.ZodOptional<zod169.ZodNumber>;
|
|
1900
|
+
refillAmount: zod169.ZodOptional<zod169.ZodNumber>;
|
|
1901
|
+
refillInterval: zod169.ZodOptional<zod169.ZodNumber>;
|
|
1902
|
+
metadata: zod169.ZodOptional<zod169.ZodAny>;
|
|
1903
|
+
expiresIn: zod169.ZodNullable<zod169.ZodOptional<zod169.ZodNumber>>;
|
|
1904
|
+
rateLimitEnabled: zod169.ZodOptional<zod169.ZodBoolean>;
|
|
1905
|
+
rateLimitTimeWindow: zod169.ZodOptional<zod169.ZodNumber>;
|
|
1906
|
+
rateLimitMax: zod169.ZodOptional<zod169.ZodNumber>;
|
|
1907
|
+
permissions: zod169.ZodNullable<zod169.ZodOptional<zod169.ZodRecord<zod169.ZodString, zod169.ZodArray<zod169.ZodString>>>>;
|
|
1908
|
+
}, better_auth63.$strip>;
|
|
2152
1909
|
metadata: {
|
|
2153
1910
|
openapi: {
|
|
2154
1911
|
description: string;
|
|
@@ -2293,12 +2050,12 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
2293
2050
|
createdAt: Date;
|
|
2294
2051
|
updatedAt: Date;
|
|
2295
2052
|
}>;
|
|
2296
|
-
deleteApiKey:
|
|
2053
|
+
deleteApiKey: better_call62.StrictEndpoint<"/api-key/delete", {
|
|
2297
2054
|
method: "POST";
|
|
2298
|
-
body:
|
|
2299
|
-
keyId:
|
|
2300
|
-
},
|
|
2301
|
-
use: ((inputContext:
|
|
2055
|
+
body: zod169.ZodObject<{
|
|
2056
|
+
keyId: zod169.ZodString;
|
|
2057
|
+
}, better_auth63.$strip>;
|
|
2058
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
2302
2059
|
session: {
|
|
2303
2060
|
session: Record<string, any> & {
|
|
2304
2061
|
id: string;
|
|
@@ -2364,9 +2121,9 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
2364
2121
|
}, {
|
|
2365
2122
|
success: boolean;
|
|
2366
2123
|
}>;
|
|
2367
|
-
listApiKeys:
|
|
2124
|
+
listApiKeys: better_call62.StrictEndpoint<"/api-key/list", {
|
|
2368
2125
|
method: "GET";
|
|
2369
|
-
use: ((inputContext:
|
|
2126
|
+
use: ((inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
2370
2127
|
session: {
|
|
2371
2128
|
session: Record<string, any> & {
|
|
2372
2129
|
id: string;
|
|
@@ -2536,7 +2293,7 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
2536
2293
|
createdAt: Date;
|
|
2537
2294
|
updatedAt: Date;
|
|
2538
2295
|
}[]>;
|
|
2539
|
-
deleteAllExpiredApiKeys:
|
|
2296
|
+
deleteAllExpiredApiKeys: better_call62.StrictEndpoint<string, {
|
|
2540
2297
|
method: "POST";
|
|
2541
2298
|
}, {
|
|
2542
2299
|
success: boolean;
|
|
@@ -2658,178 +2415,178 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
2658
2415
|
required: false;
|
|
2659
2416
|
input: true;
|
|
2660
2417
|
transform: {
|
|
2661
|
-
input(value:
|
|
2662
|
-
output(value:
|
|
2418
|
+
input(value: better_auth63.DBPrimitive): string;
|
|
2419
|
+
output(value: better_auth63.DBPrimitive): any;
|
|
2663
2420
|
};
|
|
2664
2421
|
};
|
|
2665
2422
|
};
|
|
2666
2423
|
};
|
|
2667
2424
|
};
|
|
2668
|
-
options:
|
|
2425
|
+
options: better_auth_plugins25.ApiKeyOptions | undefined;
|
|
2669
2426
|
}, {
|
|
2670
2427
|
id: "bearer";
|
|
2671
2428
|
hooks: {
|
|
2672
2429
|
before: {
|
|
2673
|
-
matcher(context:
|
|
2674
|
-
handler: (inputContext:
|
|
2430
|
+
matcher(context: better_auth63.HookEndpointContext): boolean;
|
|
2431
|
+
handler: (inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<{
|
|
2675
2432
|
context: {
|
|
2676
2433
|
headers: Headers;
|
|
2677
2434
|
};
|
|
2678
2435
|
} | undefined>;
|
|
2679
2436
|
}[];
|
|
2680
2437
|
after: {
|
|
2681
|
-
matcher(context:
|
|
2682
|
-
handler: (inputContext:
|
|
2438
|
+
matcher(context: better_auth63.HookEndpointContext): true;
|
|
2439
|
+
handler: (inputContext: better_call62.MiddlewareInputContext<better_call62.MiddlewareOptions>) => Promise<void>;
|
|
2683
2440
|
}[];
|
|
2684
2441
|
};
|
|
2685
|
-
options:
|
|
2442
|
+
options: better_auth_plugins25.BearerOptions | undefined;
|
|
2686
2443
|
}];
|
|
2687
2444
|
emailAndPassword: {
|
|
2688
2445
|
enabled: true;
|
|
2689
2446
|
requireEmailVerification: true;
|
|
2690
2447
|
};
|
|
2691
2448
|
}>>;
|
|
2692
|
-
locale?:
|
|
2693
|
-
migrations?:
|
|
2694
|
-
translations?:
|
|
2449
|
+
locale?: questpie214.LocaleConfig | undefined;
|
|
2450
|
+
migrations?: questpie214.Migration[] | undefined;
|
|
2451
|
+
translations?: questpie214.TranslationsConfig | undefined;
|
|
2695
2452
|
"~messageKeys"?: "error.notFound" | "error.notFound.withId" | "error.forbidden" | "error.unauthorized" | "error.validation" | "error.internal" | "error.badRequest" | "error.conflict" | "error.notImplemented" | "error.timeout" | "crud.create.forbidden" | "crud.read.forbidden" | "crud.update.forbidden" | "crud.delete.forbidden" | "crud.notFound" | "validation.required" | "validation.invalidType" | "validation.string.tooSmall" | "validation.string.tooBig" | "validation.string.email" | "validation.string.url" | "validation.string.uuid" | "validation.string.regex" | "validation.number.tooSmall" | "validation.number.tooBig" | "validation.number.notInteger" | "validation.number.notPositive" | "validation.number.notNegative" | "validation.array.tooSmall" | "validation.array.tooBig" | "validation.date.invalid" | "validation.date.tooEarly" | "validation.date.tooLate" | "auth.invalidCredentials" | "auth.sessionExpired" | "auth.tokenInvalid" | "auth.tokenExpired" | "auth.accountLocked" | "auth.emailNotVerified" | "auth.userNotFound" | "auth.userAlreadyExists" | "upload.tooLarge" | "upload.invalidType" | "upload.failed" | "hook.beforeCreate.failed" | "hook.afterCreate.failed" | "hook.beforeUpdate.failed" | "hook.afterUpdate.failed" | "hook.beforeDelete.failed" | "hook.afterDelete.failed" | "hook.validate.failed" | "access.denied" | "access.fieldDenied" | "access.operationDenied" | "error.database.uniqueViolation" | "error.database.foreignKeyViolation" | "error.database.notNullViolation" | "error.database.checkViolation" | undefined;
|
|
2696
2453
|
}, "collections", {
|
|
2697
|
-
user:
|
|
2454
|
+
user: questpie214.CollectionBuilder<{
|
|
2698
2455
|
options: {
|
|
2699
2456
|
timestamps: true;
|
|
2700
2457
|
};
|
|
2701
2458
|
name: "user";
|
|
2702
2459
|
fields: {
|
|
2703
|
-
name:
|
|
2704
|
-
email:
|
|
2705
|
-
emailVerified:
|
|
2706
|
-
image:
|
|
2707
|
-
role:
|
|
2708
|
-
banned:
|
|
2709
|
-
banReason:
|
|
2710
|
-
banExpires:
|
|
2460
|
+
name: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2461
|
+
email: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2462
|
+
emailVerified: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgBooleanBuilder>;
|
|
2463
|
+
image: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2464
|
+
role: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2465
|
+
banned: drizzle_orm94.HasDefault<drizzle_orm_pg_core183.PgBooleanBuilder>;
|
|
2466
|
+
banReason: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2467
|
+
banExpires: drizzle_orm_pg_core183.PgTimestampBuilder;
|
|
2711
2468
|
};
|
|
2712
2469
|
localized: [];
|
|
2713
2470
|
virtuals: undefined;
|
|
2714
|
-
relations: Record<string,
|
|
2471
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
2715
2472
|
indexes: Record<string, any>;
|
|
2716
2473
|
title: "name";
|
|
2717
|
-
hooks:
|
|
2718
|
-
access:
|
|
2474
|
+
hooks: questpie214.CollectionHooks<any, any, any, any>;
|
|
2475
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
2719
2476
|
functions: {
|
|
2720
|
-
[x: string]:
|
|
2477
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
2721
2478
|
};
|
|
2722
2479
|
searchable: undefined;
|
|
2723
2480
|
validation: undefined;
|
|
2724
2481
|
output: undefined;
|
|
2725
2482
|
upload: undefined;
|
|
2726
2483
|
}>;
|
|
2727
|
-
session:
|
|
2728
|
-
options:
|
|
2484
|
+
session: questpie214.CollectionBuilder<{
|
|
2485
|
+
options: questpie214.CollectionOptions;
|
|
2729
2486
|
name: "session";
|
|
2730
2487
|
fields: {
|
|
2731
|
-
userId:
|
|
2732
|
-
token:
|
|
2733
|
-
expiresAt:
|
|
2734
|
-
ipAddress:
|
|
2735
|
-
userAgent:
|
|
2736
|
-
impersonatedBy:
|
|
2488
|
+
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2489
|
+
token: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2490
|
+
expiresAt: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgTimestampBuilder>;
|
|
2491
|
+
ipAddress: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2492
|
+
userAgent: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2493
|
+
impersonatedBy: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2737
2494
|
};
|
|
2738
2495
|
localized: [];
|
|
2739
2496
|
virtuals: undefined;
|
|
2740
|
-
relations: Record<string,
|
|
2497
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
2741
2498
|
indexes: Record<string, any>;
|
|
2742
2499
|
title: "token";
|
|
2743
|
-
hooks:
|
|
2744
|
-
access:
|
|
2500
|
+
hooks: questpie214.CollectionHooks<any, any, any, any>;
|
|
2501
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
2745
2502
|
functions: {
|
|
2746
|
-
[x: string]:
|
|
2503
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
2747
2504
|
};
|
|
2748
2505
|
searchable: undefined;
|
|
2749
2506
|
validation: undefined;
|
|
2750
2507
|
output: undefined;
|
|
2751
2508
|
upload: undefined;
|
|
2752
2509
|
}>;
|
|
2753
|
-
account:
|
|
2754
|
-
options:
|
|
2510
|
+
account: questpie214.CollectionBuilder<{
|
|
2511
|
+
options: questpie214.CollectionOptions;
|
|
2755
2512
|
name: "account";
|
|
2756
2513
|
fields: {
|
|
2757
|
-
userId:
|
|
2758
|
-
accountId:
|
|
2759
|
-
providerId:
|
|
2760
|
-
accessToken:
|
|
2761
|
-
refreshToken:
|
|
2762
|
-
accessTokenExpiresAt:
|
|
2763
|
-
refreshTokenExpiresAt:
|
|
2764
|
-
scope:
|
|
2765
|
-
idToken:
|
|
2766
|
-
password:
|
|
2514
|
+
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2515
|
+
accountId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2516
|
+
providerId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2517
|
+
accessToken: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2518
|
+
refreshToken: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2519
|
+
accessTokenExpiresAt: drizzle_orm_pg_core183.PgTimestampBuilder;
|
|
2520
|
+
refreshTokenExpiresAt: drizzle_orm_pg_core183.PgTimestampBuilder;
|
|
2521
|
+
scope: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2522
|
+
idToken: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2523
|
+
password: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2767
2524
|
};
|
|
2768
2525
|
localized: [];
|
|
2769
2526
|
virtuals: undefined;
|
|
2770
|
-
relations: Record<string,
|
|
2527
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
2771
2528
|
indexes: Record<string, any>;
|
|
2772
2529
|
title: "providerId";
|
|
2773
|
-
hooks:
|
|
2774
|
-
access:
|
|
2530
|
+
hooks: questpie214.CollectionHooks<any, any, any, any>;
|
|
2531
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
2775
2532
|
functions: {
|
|
2776
|
-
[x: string]:
|
|
2533
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
2777
2534
|
};
|
|
2778
2535
|
searchable: undefined;
|
|
2779
2536
|
validation: undefined;
|
|
2780
2537
|
output: undefined;
|
|
2781
2538
|
upload: undefined;
|
|
2782
2539
|
}>;
|
|
2783
|
-
verification:
|
|
2784
|
-
options:
|
|
2540
|
+
verification: questpie214.CollectionBuilder<{
|
|
2541
|
+
options: questpie214.CollectionOptions;
|
|
2785
2542
|
name: "verification";
|
|
2786
2543
|
fields: {
|
|
2787
|
-
identifier:
|
|
2788
|
-
value:
|
|
2789
|
-
expiresAt:
|
|
2544
|
+
identifier: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2545
|
+
value: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2546
|
+
expiresAt: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgTimestampBuilder>;
|
|
2790
2547
|
};
|
|
2791
2548
|
localized: [];
|
|
2792
2549
|
virtuals: undefined;
|
|
2793
|
-
relations: Record<string,
|
|
2550
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
2794
2551
|
indexes: Record<string, any>;
|
|
2795
2552
|
title: "identifier";
|
|
2796
|
-
hooks:
|
|
2797
|
-
access:
|
|
2553
|
+
hooks: questpie214.CollectionHooks<any, any, any, any>;
|
|
2554
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
2798
2555
|
functions: {
|
|
2799
|
-
[x: string]:
|
|
2556
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
2800
2557
|
};
|
|
2801
2558
|
searchable: undefined;
|
|
2802
2559
|
validation: undefined;
|
|
2803
2560
|
output: undefined;
|
|
2804
2561
|
upload: undefined;
|
|
2805
2562
|
}>;
|
|
2806
|
-
assets:
|
|
2563
|
+
assets: questpie214.CollectionBuilder<{
|
|
2807
2564
|
options: {
|
|
2808
2565
|
timestamps: true;
|
|
2809
2566
|
};
|
|
2810
2567
|
name: "assets";
|
|
2811
2568
|
fields: {
|
|
2812
|
-
width:
|
|
2813
|
-
height:
|
|
2814
|
-
alt:
|
|
2815
|
-
caption:
|
|
2569
|
+
width: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
2570
|
+
height: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
2571
|
+
alt: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2572
|
+
caption: drizzle_orm_pg_core183.PgTextBuilder<[string, ...string[]]>;
|
|
2816
2573
|
} & {
|
|
2817
|
-
key:
|
|
2818
|
-
filename:
|
|
2819
|
-
mimeType:
|
|
2820
|
-
size:
|
|
2821
|
-
visibility:
|
|
2574
|
+
key: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2575
|
+
filename: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2576
|
+
mimeType: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2577
|
+
size: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgIntegerBuilder>;
|
|
2578
|
+
visibility: drizzle_orm94.HasDefault<drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<["public", "private"]>>>;
|
|
2822
2579
|
};
|
|
2823
2580
|
localized: [];
|
|
2824
2581
|
virtuals: undefined;
|
|
2825
|
-
relations: Record<string,
|
|
2582
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
2826
2583
|
indexes: Record<string, any>;
|
|
2827
2584
|
title: "filename";
|
|
2828
2585
|
hooks: {
|
|
2829
2586
|
afterDelete: ({
|
|
2830
2587
|
data,
|
|
2831
2588
|
app
|
|
2832
|
-
}:
|
|
2589
|
+
}: questpie214.HookContext<{
|
|
2833
2590
|
width: number | null;
|
|
2834
2591
|
height: number | null;
|
|
2835
2592
|
alt: string | null;
|
|
@@ -2846,58 +2603,58 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
2846
2603
|
url: string;
|
|
2847
2604
|
}, never, "delete", any>) => Promise<void>;
|
|
2848
2605
|
};
|
|
2849
|
-
access:
|
|
2606
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
2850
2607
|
functions: {
|
|
2851
|
-
[x: string]:
|
|
2608
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
2852
2609
|
};
|
|
2853
2610
|
searchable: undefined;
|
|
2854
2611
|
validation: undefined;
|
|
2855
|
-
output:
|
|
2612
|
+
output: questpie214.TypeMerge<{}, {
|
|
2856
2613
|
url: string;
|
|
2857
2614
|
}>;
|
|
2858
|
-
upload:
|
|
2615
|
+
upload: questpie214.UploadOptions;
|
|
2859
2616
|
}>;
|
|
2860
|
-
apikey:
|
|
2617
|
+
apikey: questpie214.CollectionBuilder<{
|
|
2861
2618
|
options: {
|
|
2862
2619
|
timestamps: true;
|
|
2863
2620
|
};
|
|
2864
2621
|
name: "apikey";
|
|
2865
2622
|
fields: {
|
|
2866
|
-
name:
|
|
2867
|
-
start:
|
|
2868
|
-
prefix:
|
|
2869
|
-
key:
|
|
2870
|
-
userId:
|
|
2871
|
-
refillInterval:
|
|
2872
|
-
refillAmount:
|
|
2873
|
-
lastRefillAt:
|
|
2874
|
-
enabled:
|
|
2875
|
-
rateLimitEnabled:
|
|
2876
|
-
rateLimitTimeWindow:
|
|
2877
|
-
rateLimitMax:
|
|
2878
|
-
requestCount:
|
|
2879
|
-
remaining:
|
|
2880
|
-
lastRequest:
|
|
2881
|
-
expiresAt:
|
|
2882
|
-
permissions:
|
|
2883
|
-
metadata:
|
|
2623
|
+
name: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2624
|
+
start: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2625
|
+
prefix: drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>;
|
|
2626
|
+
key: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2627
|
+
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2628
|
+
refillInterval: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
2629
|
+
refillAmount: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
2630
|
+
lastRefillAt: drizzle_orm_pg_core183.PgTimestampBuilder;
|
|
2631
|
+
enabled: drizzle_orm94.HasDefault<drizzle_orm_pg_core183.PgBooleanBuilder>;
|
|
2632
|
+
rateLimitEnabled: drizzle_orm94.HasDefault<drizzle_orm_pg_core183.PgBooleanBuilder>;
|
|
2633
|
+
rateLimitTimeWindow: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
2634
|
+
rateLimitMax: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
2635
|
+
requestCount: drizzle_orm94.HasDefault<drizzle_orm_pg_core183.PgIntegerBuilder>;
|
|
2636
|
+
remaining: drizzle_orm_pg_core183.PgIntegerBuilder;
|
|
2637
|
+
lastRequest: drizzle_orm_pg_core183.PgTimestampBuilder;
|
|
2638
|
+
expiresAt: drizzle_orm_pg_core183.PgTimestampBuilder;
|
|
2639
|
+
permissions: drizzle_orm_pg_core183.PgTextBuilder<[string, ...string[]]>;
|
|
2640
|
+
metadata: drizzle_orm_pg_core183.PgTextBuilder<[string, ...string[]]>;
|
|
2884
2641
|
};
|
|
2885
2642
|
localized: [];
|
|
2886
2643
|
virtuals: undefined;
|
|
2887
|
-
relations: Record<string,
|
|
2644
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
2888
2645
|
indexes: Record<string, any>;
|
|
2889
2646
|
title: "key";
|
|
2890
|
-
hooks:
|
|
2891
|
-
access:
|
|
2647
|
+
hooks: questpie214.CollectionHooks<any, any, any, any>;
|
|
2648
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
2892
2649
|
functions: {
|
|
2893
|
-
[x: string]:
|
|
2650
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
2894
2651
|
};
|
|
2895
2652
|
searchable: undefined;
|
|
2896
2653
|
validation: undefined;
|
|
2897
2654
|
output: undefined;
|
|
2898
2655
|
upload: undefined;
|
|
2899
2656
|
}>;
|
|
2900
|
-
admin_saved_views:
|
|
2657
|
+
admin_saved_views: questpie214.CollectionBuilder<{
|
|
2901
2658
|
name: "admin_saved_views";
|
|
2902
2659
|
localized: [];
|
|
2903
2660
|
output: undefined;
|
|
@@ -2906,25 +2663,25 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
2906
2663
|
timestamps: true;
|
|
2907
2664
|
};
|
|
2908
2665
|
fields: {
|
|
2909
|
-
userId:
|
|
2910
|
-
collectionName:
|
|
2911
|
-
name:
|
|
2912
|
-
configuration:
|
|
2913
|
-
isDefault:
|
|
2666
|
+
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2667
|
+
collectionName: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2668
|
+
name: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2669
|
+
configuration: drizzle_orm94.$Type<drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgJsonbBuilder>, ViewConfiguration>;
|
|
2670
|
+
isDefault: drizzle_orm94.NotNull<drizzle_orm94.HasDefault<drizzle_orm_pg_core183.PgBooleanBuilder>>;
|
|
2914
2671
|
};
|
|
2915
2672
|
upload: undefined;
|
|
2916
2673
|
functions: {
|
|
2917
|
-
[x: string]:
|
|
2674
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
2918
2675
|
};
|
|
2919
|
-
hooks:
|
|
2676
|
+
hooks: questpie214.CollectionHooks<any, any, any, any>;
|
|
2920
2677
|
indexes: Record<string, any>;
|
|
2921
2678
|
searchable: undefined;
|
|
2922
2679
|
virtuals: undefined;
|
|
2923
|
-
relations: Record<string,
|
|
2924
|
-
access:
|
|
2680
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
2681
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
2925
2682
|
validation: undefined;
|
|
2926
2683
|
}>;
|
|
2927
|
-
admin_preferences:
|
|
2684
|
+
admin_preferences: questpie214.CollectionBuilder<{
|
|
2928
2685
|
name: "admin_preferences";
|
|
2929
2686
|
localized: [];
|
|
2930
2687
|
output: undefined;
|
|
@@ -2933,38 +2690,38 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
2933
2690
|
timestamps: true;
|
|
2934
2691
|
};
|
|
2935
2692
|
fields: {
|
|
2936
|
-
userId:
|
|
2937
|
-
key:
|
|
2938
|
-
value:
|
|
2693
|
+
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2694
|
+
key: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
2695
|
+
value: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgJsonbBuilder>;
|
|
2939
2696
|
};
|
|
2940
2697
|
upload: undefined;
|
|
2941
2698
|
functions: {
|
|
2942
|
-
[x: string]:
|
|
2699
|
+
[x: string]: questpie214.FunctionDefinition<any, any, any>;
|
|
2943
2700
|
};
|
|
2944
|
-
hooks:
|
|
2945
|
-
indexes:
|
|
2701
|
+
hooks: questpie214.CollectionHooks<any, any, any, any>;
|
|
2702
|
+
indexes: drizzle_orm_pg_core183.IndexBuilder[];
|
|
2946
2703
|
searchable: undefined;
|
|
2947
2704
|
virtuals: undefined;
|
|
2948
|
-
relations: Record<string,
|
|
2949
|
-
access:
|
|
2705
|
+
relations: Record<string, questpie214.RelationConfig>;
|
|
2706
|
+
access: questpie214.CollectionAccess<any, any>;
|
|
2950
2707
|
validation: undefined;
|
|
2951
2708
|
}>;
|
|
2952
2709
|
}>, "functions", {
|
|
2953
|
-
mintPreviewToken:
|
|
2710
|
+
mintPreviewToken: questpie214.JsonFunctionDefinition<{
|
|
2954
2711
|
path: string;
|
|
2955
2712
|
ttlMs?: number | undefined;
|
|
2956
2713
|
}, {
|
|
2957
2714
|
token: string;
|
|
2958
2715
|
expiresAt: number;
|
|
2959
2716
|
}, any>;
|
|
2960
|
-
verifyPreviewToken:
|
|
2717
|
+
verifyPreviewToken: questpie214.JsonFunctionDefinition<{
|
|
2961
2718
|
token: string;
|
|
2962
2719
|
}, {
|
|
2963
2720
|
valid: boolean;
|
|
2964
2721
|
path?: string | undefined;
|
|
2965
2722
|
error?: string | undefined;
|
|
2966
2723
|
}, any>;
|
|
2967
|
-
getContentLocales:
|
|
2724
|
+
getContentLocales: questpie214.JsonFunctionDefinition<Record<string, never> | undefined, {
|
|
2968
2725
|
locales: {
|
|
2969
2726
|
code: string;
|
|
2970
2727
|
label?: string | undefined;
|
|
@@ -2974,10 +2731,10 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
2974
2731
|
defaultLocale: string;
|
|
2975
2732
|
fallbacks?: Record<string, string> | undefined;
|
|
2976
2733
|
}, any>;
|
|
2977
|
-
isSetupRequired:
|
|
2734
|
+
isSetupRequired: questpie214.JsonFunctionDefinition<Record<string, never>, {
|
|
2978
2735
|
required: boolean;
|
|
2979
2736
|
}, any>;
|
|
2980
|
-
createFirstAdmin:
|
|
2737
|
+
createFirstAdmin: questpie214.JsonFunctionDefinition<{
|
|
2981
2738
|
email: string;
|
|
2982
2739
|
password: string;
|
|
2983
2740
|
name: string;
|
|
@@ -2992,5 +2749,5 @@ declare const adminModule: questpie206.QuestpieBuilder<questpie206.SetProperty<q
|
|
|
2992
2749
|
}, any>;
|
|
2993
2750
|
}>>;
|
|
2994
2751
|
//#endregion
|
|
2995
|
-
export {
|
|
2996
|
-
//# sourceMappingURL=index-
|
|
2752
|
+
export { PreviewTokenPayload as a, verifyPreviewTokenDirect as c, GetAdminSessionOptions as d, RequireAdminAuthOptions as f, requireAdminAuth as h, setupFunctions as i, savedViewsCollection as l, isAdminUser as m, createFirstAdmin as n, createPreviewFunctions as o, getAdminSession as p, isSetupRequired as r, createPreviewTokenVerifier as s, adminModule as t, AuthSession as u };
|
|
2753
|
+
//# sourceMappingURL=index-BYyqkWtn.d.mts.map
|