@questpie/admin 1.1.0 → 1.1.1
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-B7r47hEd.d.mts → client-D1DqawtP.d.mts} +377 -377
- package/dist/client-D1DqawtP.d.mts.map +1 -0
- package/dist/client.d.mts +2 -2
- package/dist/{index-BYyqkWtn.d.mts → index-B4H3amCD.d.mts} +320 -320
- package/dist/{index-BYyqkWtn.d.mts.map → index-B4H3amCD.d.mts.map} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/server.d.mts +1 -1
- package/package.json +3 -3
- package/dist/client-B7r47hEd.d.mts.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as ViewConfiguration } from "./saved-views.types-BMsz5mCy.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as zod0 from "zod";
|
|
3
|
+
import * as questpie216 from "questpie";
|
|
4
4
|
import { Questpie } from "questpie";
|
|
5
5
|
import * as drizzle_orm_pg_core183 from "drizzle-orm/pg-core";
|
|
6
6
|
import * as drizzle_orm94 from "drizzle-orm";
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
7
|
+
import * as better_auth0 from "better-auth";
|
|
8
|
+
import * as better_call0 from "better-call";
|
|
9
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
10
10
|
|
|
11
11
|
//#region src/server/auth-helpers.d.ts
|
|
12
12
|
|
|
@@ -173,7 +173,7 @@ declare function isAdminUser({
|
|
|
173
173
|
* });
|
|
174
174
|
* ```
|
|
175
175
|
*/
|
|
176
|
-
declare const savedViewsCollection:
|
|
176
|
+
declare const savedViewsCollection: questpie216.CollectionBuilder<questpie216.SetProperty<questpie216.TypeMerge<questpie216.UnsetProperty<questpie216.CollectionBuilderState & {
|
|
177
177
|
name: "admin_saved_views";
|
|
178
178
|
fields: {};
|
|
179
179
|
localized: [];
|
|
@@ -182,7 +182,7 @@ declare const savedViewsCollection: questpie214.CollectionBuilder<questpie214.Se
|
|
|
182
182
|
indexes: {};
|
|
183
183
|
title: undefined;
|
|
184
184
|
options: {};
|
|
185
|
-
hooks:
|
|
185
|
+
hooks: questpie216.CollectionHooks<any, any, any>;
|
|
186
186
|
access: {};
|
|
187
187
|
functions: {};
|
|
188
188
|
searchable: undefined;
|
|
@@ -222,14 +222,14 @@ interface PreviewTokenPayload {
|
|
|
222
222
|
* @returns Object with preview functions
|
|
223
223
|
*/
|
|
224
224
|
declare function createPreviewFunctions(secret: string): {
|
|
225
|
-
mintPreviewToken:
|
|
225
|
+
mintPreviewToken: questpie216.JsonFunctionDefinition<{
|
|
226
226
|
path: string;
|
|
227
227
|
ttlMs?: number | undefined;
|
|
228
228
|
}, {
|
|
229
229
|
token: string;
|
|
230
230
|
expiresAt: number;
|
|
231
231
|
}, any>;
|
|
232
|
-
verifyPreviewToken:
|
|
232
|
+
verifyPreviewToken: questpie216.JsonFunctionDefinition<{
|
|
233
233
|
token: string;
|
|
234
234
|
}, {
|
|
235
235
|
valid: boolean;
|
|
@@ -286,7 +286,7 @@ declare function createPreviewTokenVerifier(secret?: string): (token: string) =>
|
|
|
286
286
|
* }
|
|
287
287
|
* ```
|
|
288
288
|
*/
|
|
289
|
-
declare const isSetupRequired:
|
|
289
|
+
declare const isSetupRequired: questpie216.JsonFunctionDefinition<Record<string, never>, {
|
|
290
290
|
required: boolean;
|
|
291
291
|
}, any>;
|
|
292
292
|
/**
|
|
@@ -311,7 +311,7 @@ declare const isSetupRequired: questpie214.JsonFunctionDefinition<Record<string,
|
|
|
311
311
|
* }
|
|
312
312
|
* ```
|
|
313
313
|
*/
|
|
314
|
-
declare const createFirstAdmin:
|
|
314
|
+
declare const createFirstAdmin: questpie216.JsonFunctionDefinition<{
|
|
315
315
|
email: string;
|
|
316
316
|
password: string;
|
|
317
317
|
name: string;
|
|
@@ -328,10 +328,10 @@ declare const createFirstAdmin: questpie214.JsonFunctionDefinition<{
|
|
|
328
328
|
* Bundle of setup-related functions.
|
|
329
329
|
*/
|
|
330
330
|
declare const setupFunctions: {
|
|
331
|
-
readonly isSetupRequired:
|
|
331
|
+
readonly isSetupRequired: questpie216.JsonFunctionDefinition<Record<string, never>, {
|
|
332
332
|
required: boolean;
|
|
333
333
|
}, any>;
|
|
334
|
-
readonly createFirstAdmin:
|
|
334
|
+
readonly createFirstAdmin: questpie216.JsonFunctionDefinition<{
|
|
335
335
|
email: string;
|
|
336
336
|
password: string;
|
|
337
337
|
name: string;
|
|
@@ -392,10 +392,10 @@ declare const setupFunctions: {
|
|
|
392
392
|
* .build({ ... });
|
|
393
393
|
* ```
|
|
394
394
|
*/
|
|
395
|
-
declare const adminModule:
|
|
395
|
+
declare const adminModule: questpie216.QuestpieBuilder<questpie216.SetProperty<questpie216.SetProperty<{
|
|
396
396
|
name: "questpie-admin";
|
|
397
|
-
collections:
|
|
398
|
-
assets:
|
|
397
|
+
collections: questpie216.TypeMerge<questpie216.UnsetProperty<{}, keyof TOtherCollections>, {
|
|
398
|
+
assets: questpie216.CollectionBuilder<{
|
|
399
399
|
options: {
|
|
400
400
|
timestamps: true;
|
|
401
401
|
};
|
|
@@ -414,14 +414,14 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
414
414
|
};
|
|
415
415
|
localized: [];
|
|
416
416
|
virtuals: undefined;
|
|
417
|
-
relations: Record<string,
|
|
417
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
418
418
|
indexes: Record<string, any>;
|
|
419
419
|
title: "filename";
|
|
420
420
|
hooks: {
|
|
421
421
|
afterDelete: ({
|
|
422
422
|
data,
|
|
423
423
|
app
|
|
424
|
-
}:
|
|
424
|
+
}: questpie216.HookContext<{
|
|
425
425
|
width: number | null;
|
|
426
426
|
height: number | null;
|
|
427
427
|
alt: string | null;
|
|
@@ -438,18 +438,18 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
438
438
|
url: string;
|
|
439
439
|
}, never, "delete", any>) => Promise<void>;
|
|
440
440
|
};
|
|
441
|
-
access:
|
|
441
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
442
442
|
functions: {
|
|
443
|
-
[x: string]:
|
|
443
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
444
444
|
};
|
|
445
445
|
searchable: undefined;
|
|
446
446
|
validation: undefined;
|
|
447
|
-
output:
|
|
447
|
+
output: questpie216.TypeMerge<{}, {
|
|
448
448
|
url: string;
|
|
449
449
|
}>;
|
|
450
|
-
upload:
|
|
450
|
+
upload: questpie216.UploadOptions;
|
|
451
451
|
}>;
|
|
452
|
-
user:
|
|
452
|
+
user: questpie216.CollectionBuilder<{
|
|
453
453
|
options: {
|
|
454
454
|
timestamps: true;
|
|
455
455
|
};
|
|
@@ -466,21 +466,21 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
466
466
|
};
|
|
467
467
|
localized: [];
|
|
468
468
|
virtuals: undefined;
|
|
469
|
-
relations: Record<string,
|
|
469
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
470
470
|
indexes: Record<string, any>;
|
|
471
471
|
title: "name";
|
|
472
|
-
hooks:
|
|
473
|
-
access:
|
|
472
|
+
hooks: questpie216.CollectionHooks<any, any, any, any>;
|
|
473
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
474
474
|
functions: {
|
|
475
|
-
[x: string]:
|
|
475
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
476
476
|
};
|
|
477
477
|
searchable: undefined;
|
|
478
478
|
validation: undefined;
|
|
479
479
|
output: undefined;
|
|
480
480
|
upload: undefined;
|
|
481
481
|
}>;
|
|
482
|
-
session:
|
|
483
|
-
options:
|
|
482
|
+
session: questpie216.CollectionBuilder<{
|
|
483
|
+
options: questpie216.CollectionOptions;
|
|
484
484
|
name: "session";
|
|
485
485
|
fields: {
|
|
486
486
|
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
@@ -492,21 +492,21 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
492
492
|
};
|
|
493
493
|
localized: [];
|
|
494
494
|
virtuals: undefined;
|
|
495
|
-
relations: Record<string,
|
|
495
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
496
496
|
indexes: Record<string, any>;
|
|
497
497
|
title: "token";
|
|
498
|
-
hooks:
|
|
499
|
-
access:
|
|
498
|
+
hooks: questpie216.CollectionHooks<any, any, any, any>;
|
|
499
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
500
500
|
functions: {
|
|
501
|
-
[x: string]:
|
|
501
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
502
502
|
};
|
|
503
503
|
searchable: undefined;
|
|
504
504
|
validation: undefined;
|
|
505
505
|
output: undefined;
|
|
506
506
|
upload: undefined;
|
|
507
507
|
}>;
|
|
508
|
-
account:
|
|
509
|
-
options:
|
|
508
|
+
account: questpie216.CollectionBuilder<{
|
|
509
|
+
options: questpie216.CollectionOptions;
|
|
510
510
|
name: "account";
|
|
511
511
|
fields: {
|
|
512
512
|
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
@@ -522,21 +522,21 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
522
522
|
};
|
|
523
523
|
localized: [];
|
|
524
524
|
virtuals: undefined;
|
|
525
|
-
relations: Record<string,
|
|
525
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
526
526
|
indexes: Record<string, any>;
|
|
527
527
|
title: "providerId";
|
|
528
|
-
hooks:
|
|
529
|
-
access:
|
|
528
|
+
hooks: questpie216.CollectionHooks<any, any, any, any>;
|
|
529
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
530
530
|
functions: {
|
|
531
|
-
[x: string]:
|
|
531
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
532
532
|
};
|
|
533
533
|
searchable: undefined;
|
|
534
534
|
validation: undefined;
|
|
535
535
|
output: undefined;
|
|
536
536
|
upload: undefined;
|
|
537
537
|
}>;
|
|
538
|
-
verification:
|
|
539
|
-
options:
|
|
538
|
+
verification: questpie216.CollectionBuilder<{
|
|
539
|
+
options: questpie216.CollectionOptions;
|
|
540
540
|
name: "verification";
|
|
541
541
|
fields: {
|
|
542
542
|
identifier: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
@@ -545,20 +545,20 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
545
545
|
};
|
|
546
546
|
localized: [];
|
|
547
547
|
virtuals: undefined;
|
|
548
|
-
relations: Record<string,
|
|
548
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
549
549
|
indexes: Record<string, any>;
|
|
550
550
|
title: "identifier";
|
|
551
|
-
hooks:
|
|
552
|
-
access:
|
|
551
|
+
hooks: questpie216.CollectionHooks<any, any, any, any>;
|
|
552
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
553
553
|
functions: {
|
|
554
|
-
[x: string]:
|
|
554
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
555
555
|
};
|
|
556
556
|
searchable: undefined;
|
|
557
557
|
validation: undefined;
|
|
558
558
|
output: undefined;
|
|
559
559
|
upload: undefined;
|
|
560
560
|
}>;
|
|
561
|
-
apikey:
|
|
561
|
+
apikey: questpie216.CollectionBuilder<{
|
|
562
562
|
options: {
|
|
563
563
|
timestamps: true;
|
|
564
564
|
};
|
|
@@ -585,13 +585,13 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
585
585
|
};
|
|
586
586
|
localized: [];
|
|
587
587
|
virtuals: undefined;
|
|
588
|
-
relations: Record<string,
|
|
588
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
589
589
|
indexes: Record<string, any>;
|
|
590
590
|
title: "key";
|
|
591
|
-
hooks:
|
|
592
|
-
access:
|
|
591
|
+
hooks: questpie216.CollectionHooks<any, any, any, any>;
|
|
592
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
593
593
|
functions: {
|
|
594
|
-
[x: string]:
|
|
594
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
595
595
|
};
|
|
596
596
|
searchable: undefined;
|
|
597
597
|
validation: undefined;
|
|
@@ -599,11 +599,11 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
599
599
|
upload: undefined;
|
|
600
600
|
}>;
|
|
601
601
|
}>;
|
|
602
|
-
globals:
|
|
603
|
-
jobs:
|
|
604
|
-
emailTemplates:
|
|
605
|
-
functions:
|
|
606
|
-
auth:
|
|
602
|
+
globals: questpie216.TypeMerge<questpie216.UnsetProperty<{}, keyof TOtherGlobals>, {}>;
|
|
603
|
+
jobs: questpie216.TypeMerge<questpie216.UnsetProperty<{}, keyof TOtherJobs>, {}>;
|
|
604
|
+
emailTemplates: questpie216.TypeMerge<questpie216.UnsetProperty<{}, keyof TOtherEmailTemplates>, {}>;
|
|
605
|
+
functions: questpie216.TypeMerge<questpie216.UnsetProperty<{}, keyof TOtherFunctions>, {}>;
|
|
606
|
+
auth: questpie216.MergeAuthOptions<{}, questpie216.MergeAuthOptions<{}, {
|
|
607
607
|
baseURL: string | undefined;
|
|
608
608
|
secret: string | undefined;
|
|
609
609
|
advanced: {
|
|
@@ -649,7 +649,7 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
649
649
|
token: string;
|
|
650
650
|
ipAddress?: string | null | undefined;
|
|
651
651
|
userAgent?: string | null | undefined;
|
|
652
|
-
} & Record<string, unknown>, ctx:
|
|
652
|
+
} & Record<string, unknown>, ctx: better_auth0.GenericEndpointContext | null): Promise<void>;
|
|
653
653
|
};
|
|
654
654
|
};
|
|
655
655
|
};
|
|
@@ -657,22 +657,22 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
657
657
|
};
|
|
658
658
|
hooks: {
|
|
659
659
|
after: {
|
|
660
|
-
matcher(context:
|
|
661
|
-
handler: (inputContext:
|
|
660
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
661
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<better_auth_plugins0.SessionWithImpersonatedBy[] | undefined>;
|
|
662
662
|
}[];
|
|
663
663
|
};
|
|
664
664
|
endpoints: {
|
|
665
|
-
setRole:
|
|
665
|
+
setRole: better_call0.StrictEndpoint<"/admin/set-role", {
|
|
666
666
|
method: "POST";
|
|
667
|
-
body:
|
|
668
|
-
userId:
|
|
669
|
-
role:
|
|
670
|
-
},
|
|
667
|
+
body: zod0.ZodObject<{
|
|
668
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
669
|
+
role: zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>;
|
|
670
|
+
}, better_auth0.$strip>;
|
|
671
671
|
requireHeaders: true;
|
|
672
|
-
use: ((inputContext:
|
|
672
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
673
673
|
session: {
|
|
674
|
-
user:
|
|
675
|
-
session:
|
|
674
|
+
user: better_auth_plugins0.UserWithRole;
|
|
675
|
+
session: better_auth0.Session;
|
|
676
676
|
};
|
|
677
677
|
}>)[];
|
|
678
678
|
metadata: {
|
|
@@ -706,17 +706,17 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
706
706
|
};
|
|
707
707
|
};
|
|
708
708
|
}, {
|
|
709
|
-
user:
|
|
709
|
+
user: better_auth_plugins0.UserWithRole;
|
|
710
710
|
}>;
|
|
711
|
-
getUser:
|
|
711
|
+
getUser: better_call0.StrictEndpoint<"/admin/get-user", {
|
|
712
712
|
method: "GET";
|
|
713
|
-
query:
|
|
714
|
-
id:
|
|
715
|
-
},
|
|
716
|
-
use: ((inputContext:
|
|
713
|
+
query: zod0.ZodObject<{
|
|
714
|
+
id: zod0.ZodString;
|
|
715
|
+
}, better_auth0.$strip>;
|
|
716
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
717
717
|
session: {
|
|
718
|
-
user:
|
|
719
|
-
session:
|
|
718
|
+
user: better_auth_plugins0.UserWithRole;
|
|
719
|
+
session: better_auth0.Session;
|
|
720
720
|
};
|
|
721
721
|
}>)[];
|
|
722
722
|
metadata: {
|
|
@@ -743,16 +743,16 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
743
743
|
};
|
|
744
744
|
};
|
|
745
745
|
};
|
|
746
|
-
},
|
|
747
|
-
createUser:
|
|
746
|
+
}, better_auth_plugins0.UserWithRole>;
|
|
747
|
+
createUser: better_call0.StrictEndpoint<"/admin/create-user", {
|
|
748
748
|
method: "POST";
|
|
749
|
-
body:
|
|
750
|
-
email:
|
|
751
|
-
password:
|
|
752
|
-
name:
|
|
753
|
-
role:
|
|
754
|
-
data:
|
|
755
|
-
},
|
|
749
|
+
body: zod0.ZodObject<{
|
|
750
|
+
email: zod0.ZodString;
|
|
751
|
+
password: zod0.ZodOptional<zod0.ZodString>;
|
|
752
|
+
name: zod0.ZodString;
|
|
753
|
+
role: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>>;
|
|
754
|
+
data: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
755
|
+
}, better_auth0.$strip>;
|
|
756
756
|
metadata: {
|
|
757
757
|
openapi: {
|
|
758
758
|
operationId: string;
|
|
@@ -787,18 +787,18 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
787
787
|
};
|
|
788
788
|
};
|
|
789
789
|
}, {
|
|
790
|
-
user:
|
|
790
|
+
user: better_auth_plugins0.UserWithRole;
|
|
791
791
|
}>;
|
|
792
|
-
adminUpdateUser:
|
|
792
|
+
adminUpdateUser: better_call0.StrictEndpoint<"/admin/update-user", {
|
|
793
793
|
method: "POST";
|
|
794
|
-
body:
|
|
795
|
-
userId:
|
|
796
|
-
data:
|
|
797
|
-
},
|
|
798
|
-
use: ((inputContext:
|
|
794
|
+
body: zod0.ZodObject<{
|
|
795
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
796
|
+
data: zod0.ZodRecord<zod0.ZodAny, zod0.ZodAny>;
|
|
797
|
+
}, better_auth0.$strip>;
|
|
798
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
799
799
|
session: {
|
|
800
|
-
user:
|
|
801
|
-
session:
|
|
800
|
+
user: better_auth_plugins0.UserWithRole;
|
|
801
|
+
session: better_auth0.Session;
|
|
802
802
|
};
|
|
803
803
|
}>)[];
|
|
804
804
|
metadata: {
|
|
@@ -825,36 +825,36 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
825
825
|
};
|
|
826
826
|
};
|
|
827
827
|
};
|
|
828
|
-
},
|
|
829
|
-
listUsers:
|
|
828
|
+
}, better_auth_plugins0.UserWithRole>;
|
|
829
|
+
listUsers: better_call0.StrictEndpoint<"/admin/list-users", {
|
|
830
830
|
method: "GET";
|
|
831
|
-
use: ((inputContext:
|
|
831
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
832
832
|
session: {
|
|
833
|
-
user:
|
|
834
|
-
session:
|
|
833
|
+
user: better_auth_plugins0.UserWithRole;
|
|
834
|
+
session: better_auth0.Session;
|
|
835
835
|
};
|
|
836
836
|
}>)[];
|
|
837
|
-
query:
|
|
838
|
-
searchValue:
|
|
839
|
-
searchField:
|
|
837
|
+
query: zod0.ZodObject<{
|
|
838
|
+
searchValue: zod0.ZodOptional<zod0.ZodString>;
|
|
839
|
+
searchField: zod0.ZodOptional<zod0.ZodEnum<{
|
|
840
840
|
name: "name";
|
|
841
841
|
email: "email";
|
|
842
842
|
}>>;
|
|
843
|
-
searchOperator:
|
|
843
|
+
searchOperator: zod0.ZodOptional<zod0.ZodEnum<{
|
|
844
844
|
contains: "contains";
|
|
845
845
|
starts_with: "starts_with";
|
|
846
846
|
ends_with: "ends_with";
|
|
847
847
|
}>>;
|
|
848
|
-
limit:
|
|
849
|
-
offset:
|
|
850
|
-
sortBy:
|
|
851
|
-
sortDirection:
|
|
848
|
+
limit: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodString, zod0.ZodNumber]>>;
|
|
849
|
+
offset: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodString, zod0.ZodNumber]>>;
|
|
850
|
+
sortBy: zod0.ZodOptional<zod0.ZodString>;
|
|
851
|
+
sortDirection: zod0.ZodOptional<zod0.ZodEnum<{
|
|
852
852
|
asc: "asc";
|
|
853
853
|
desc: "desc";
|
|
854
854
|
}>>;
|
|
855
|
-
filterField:
|
|
856
|
-
filterValue:
|
|
857
|
-
filterOperator:
|
|
855
|
+
filterField: zod0.ZodOptional<zod0.ZodString>;
|
|
856
|
+
filterValue: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodUnion<[zod0.ZodString, zod0.ZodNumber]>, zod0.ZodBoolean]>>;
|
|
857
|
+
filterOperator: zod0.ZodOptional<zod0.ZodEnum<{
|
|
858
858
|
eq: "eq";
|
|
859
859
|
ne: "ne";
|
|
860
860
|
lt: "lt";
|
|
@@ -863,7 +863,7 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
863
863
|
gte: "gte";
|
|
864
864
|
contains: "contains";
|
|
865
865
|
}>>;
|
|
866
|
-
},
|
|
866
|
+
}, better_auth0.$strip>;
|
|
867
867
|
metadata: {
|
|
868
868
|
openapi: {
|
|
869
869
|
operationId: string;
|
|
@@ -902,7 +902,7 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
902
902
|
};
|
|
903
903
|
};
|
|
904
904
|
}, {
|
|
905
|
-
users:
|
|
905
|
+
users: better_auth_plugins0.UserWithRole[];
|
|
906
906
|
total: number;
|
|
907
907
|
limit: number | undefined;
|
|
908
908
|
offset: number | undefined;
|
|
@@ -910,17 +910,17 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
910
910
|
users: never[];
|
|
911
911
|
total: number;
|
|
912
912
|
}>;
|
|
913
|
-
listUserSessions:
|
|
913
|
+
listUserSessions: better_call0.StrictEndpoint<"/admin/list-user-sessions", {
|
|
914
914
|
method: "POST";
|
|
915
|
-
use: ((inputContext:
|
|
915
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
916
916
|
session: {
|
|
917
|
-
user:
|
|
918
|
-
session:
|
|
917
|
+
user: better_auth_plugins0.UserWithRole;
|
|
918
|
+
session: better_auth0.Session;
|
|
919
919
|
};
|
|
920
920
|
}>)[];
|
|
921
|
-
body:
|
|
922
|
-
userId:
|
|
923
|
-
},
|
|
921
|
+
body: zod0.ZodObject<{
|
|
922
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
923
|
+
}, better_auth0.$strip>;
|
|
924
924
|
metadata: {
|
|
925
925
|
openapi: {
|
|
926
926
|
operationId: string;
|
|
@@ -949,17 +949,17 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
949
949
|
};
|
|
950
950
|
};
|
|
951
951
|
}, {
|
|
952
|
-
sessions:
|
|
952
|
+
sessions: better_auth_plugins0.SessionWithImpersonatedBy[];
|
|
953
953
|
}>;
|
|
954
|
-
unbanUser:
|
|
954
|
+
unbanUser: better_call0.StrictEndpoint<"/admin/unban-user", {
|
|
955
955
|
method: "POST";
|
|
956
|
-
body:
|
|
957
|
-
userId:
|
|
958
|
-
},
|
|
959
|
-
use: ((inputContext:
|
|
956
|
+
body: zod0.ZodObject<{
|
|
957
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
958
|
+
}, better_auth0.$strip>;
|
|
959
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
960
960
|
session: {
|
|
961
|
-
user:
|
|
962
|
-
session:
|
|
961
|
+
user: better_auth_plugins0.UserWithRole;
|
|
962
|
+
session: better_auth0.Session;
|
|
963
963
|
};
|
|
964
964
|
}>)[];
|
|
965
965
|
metadata: {
|
|
@@ -987,19 +987,19 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
987
987
|
};
|
|
988
988
|
};
|
|
989
989
|
}, {
|
|
990
|
-
user:
|
|
990
|
+
user: better_auth_plugins0.UserWithRole;
|
|
991
991
|
}>;
|
|
992
|
-
banUser:
|
|
992
|
+
banUser: better_call0.StrictEndpoint<"/admin/ban-user", {
|
|
993
993
|
method: "POST";
|
|
994
|
-
body:
|
|
995
|
-
userId:
|
|
996
|
-
banReason:
|
|
997
|
-
banExpiresIn:
|
|
998
|
-
},
|
|
999
|
-
use: ((inputContext:
|
|
994
|
+
body: zod0.ZodObject<{
|
|
995
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
996
|
+
banReason: zod0.ZodOptional<zod0.ZodString>;
|
|
997
|
+
banExpiresIn: zod0.ZodOptional<zod0.ZodNumber>;
|
|
998
|
+
}, better_auth0.$strip>;
|
|
999
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1000
1000
|
session: {
|
|
1001
|
-
user:
|
|
1002
|
-
session:
|
|
1001
|
+
user: better_auth_plugins0.UserWithRole;
|
|
1002
|
+
session: better_auth0.Session;
|
|
1003
1003
|
};
|
|
1004
1004
|
}>)[];
|
|
1005
1005
|
metadata: {
|
|
@@ -1027,17 +1027,17 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1027
1027
|
};
|
|
1028
1028
|
};
|
|
1029
1029
|
}, {
|
|
1030
|
-
user:
|
|
1030
|
+
user: better_auth_plugins0.UserWithRole;
|
|
1031
1031
|
}>;
|
|
1032
|
-
impersonateUser:
|
|
1032
|
+
impersonateUser: better_call0.StrictEndpoint<"/admin/impersonate-user", {
|
|
1033
1033
|
method: "POST";
|
|
1034
|
-
body:
|
|
1035
|
-
userId:
|
|
1036
|
-
},
|
|
1037
|
-
use: ((inputContext:
|
|
1034
|
+
body: zod0.ZodObject<{
|
|
1035
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
1036
|
+
}, better_auth0.$strip>;
|
|
1037
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1038
1038
|
session: {
|
|
1039
|
-
user:
|
|
1040
|
-
session:
|
|
1039
|
+
user: better_auth_plugins0.UserWithRole;
|
|
1040
|
+
session: better_auth0.Session;
|
|
1041
1041
|
};
|
|
1042
1042
|
}>)[];
|
|
1043
1043
|
metadata: {
|
|
@@ -1078,9 +1078,9 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1078
1078
|
ipAddress?: string | null | undefined;
|
|
1079
1079
|
userAgent?: string | null | undefined;
|
|
1080
1080
|
};
|
|
1081
|
-
user:
|
|
1081
|
+
user: better_auth_plugins0.UserWithRole;
|
|
1082
1082
|
}>;
|
|
1083
|
-
stopImpersonating:
|
|
1083
|
+
stopImpersonating: better_call0.StrictEndpoint<"/admin/stop-impersonating", {
|
|
1084
1084
|
method: "POST";
|
|
1085
1085
|
requireHeaders: true;
|
|
1086
1086
|
}, {
|
|
@@ -1104,15 +1104,15 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1104
1104
|
image?: string | null | undefined;
|
|
1105
1105
|
} & Record<string, any>;
|
|
1106
1106
|
}>;
|
|
1107
|
-
revokeUserSession:
|
|
1107
|
+
revokeUserSession: better_call0.StrictEndpoint<"/admin/revoke-user-session", {
|
|
1108
1108
|
method: "POST";
|
|
1109
|
-
body:
|
|
1110
|
-
sessionToken:
|
|
1111
|
-
},
|
|
1112
|
-
use: ((inputContext:
|
|
1109
|
+
body: zod0.ZodObject<{
|
|
1110
|
+
sessionToken: zod0.ZodString;
|
|
1111
|
+
}, better_auth0.$strip>;
|
|
1112
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1113
1113
|
session: {
|
|
1114
|
-
user:
|
|
1115
|
-
session:
|
|
1114
|
+
user: better_auth_plugins0.UserWithRole;
|
|
1115
|
+
session: better_auth0.Session;
|
|
1116
1116
|
};
|
|
1117
1117
|
}>)[];
|
|
1118
1118
|
metadata: {
|
|
@@ -1142,15 +1142,15 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1142
1142
|
}, {
|
|
1143
1143
|
success: boolean;
|
|
1144
1144
|
}>;
|
|
1145
|
-
revokeUserSessions:
|
|
1145
|
+
revokeUserSessions: better_call0.StrictEndpoint<"/admin/revoke-user-sessions", {
|
|
1146
1146
|
method: "POST";
|
|
1147
|
-
body:
|
|
1148
|
-
userId:
|
|
1149
|
-
},
|
|
1150
|
-
use: ((inputContext:
|
|
1147
|
+
body: zod0.ZodObject<{
|
|
1148
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
1149
|
+
}, better_auth0.$strip>;
|
|
1150
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1151
1151
|
session: {
|
|
1152
|
-
user:
|
|
1153
|
-
session:
|
|
1152
|
+
user: better_auth_plugins0.UserWithRole;
|
|
1153
|
+
session: better_auth0.Session;
|
|
1154
1154
|
};
|
|
1155
1155
|
}>)[];
|
|
1156
1156
|
metadata: {
|
|
@@ -1180,15 +1180,15 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1180
1180
|
}, {
|
|
1181
1181
|
success: boolean;
|
|
1182
1182
|
}>;
|
|
1183
|
-
removeUser:
|
|
1183
|
+
removeUser: better_call0.StrictEndpoint<"/admin/remove-user", {
|
|
1184
1184
|
method: "POST";
|
|
1185
|
-
body:
|
|
1186
|
-
userId:
|
|
1187
|
-
},
|
|
1188
|
-
use: ((inputContext:
|
|
1185
|
+
body: zod0.ZodObject<{
|
|
1186
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
1187
|
+
}, better_auth0.$strip>;
|
|
1188
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1189
1189
|
session: {
|
|
1190
|
-
user:
|
|
1191
|
-
session:
|
|
1190
|
+
user: better_auth_plugins0.UserWithRole;
|
|
1191
|
+
session: better_auth0.Session;
|
|
1192
1192
|
};
|
|
1193
1193
|
}>)[];
|
|
1194
1194
|
metadata: {
|
|
@@ -1218,16 +1218,16 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1218
1218
|
}, {
|
|
1219
1219
|
success: boolean;
|
|
1220
1220
|
}>;
|
|
1221
|
-
setUserPassword:
|
|
1221
|
+
setUserPassword: better_call0.StrictEndpoint<"/admin/set-user-password", {
|
|
1222
1222
|
method: "POST";
|
|
1223
|
-
body:
|
|
1224
|
-
newPassword:
|
|
1225
|
-
userId:
|
|
1226
|
-
},
|
|
1227
|
-
use: ((inputContext:
|
|
1223
|
+
body: zod0.ZodObject<{
|
|
1224
|
+
newPassword: zod0.ZodString;
|
|
1225
|
+
userId: zod0.ZodCoercedString<unknown>;
|
|
1226
|
+
}, better_auth0.$strip>;
|
|
1227
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1228
1228
|
session: {
|
|
1229
|
-
user:
|
|
1230
|
-
session:
|
|
1229
|
+
user: better_auth_plugins0.UserWithRole;
|
|
1230
|
+
session: better_auth0.Session;
|
|
1231
1231
|
};
|
|
1232
1232
|
}>)[];
|
|
1233
1233
|
metadata: {
|
|
@@ -1257,18 +1257,18 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1257
1257
|
}, {
|
|
1258
1258
|
status: boolean;
|
|
1259
1259
|
}>;
|
|
1260
|
-
userHasPermission:
|
|
1260
|
+
userHasPermission: better_call0.StrictEndpoint<"/admin/has-permission", {
|
|
1261
1261
|
method: "POST";
|
|
1262
|
-
body:
|
|
1263
|
-
userId:
|
|
1264
|
-
role:
|
|
1265
|
-
},
|
|
1266
|
-
permission:
|
|
1267
|
-
permissions:
|
|
1268
|
-
},
|
|
1269
|
-
permission:
|
|
1270
|
-
permissions:
|
|
1271
|
-
},
|
|
1262
|
+
body: zod0.ZodIntersection<zod0.ZodObject<{
|
|
1263
|
+
userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
|
|
1264
|
+
role: zod0.ZodOptional<zod0.ZodString>;
|
|
1265
|
+
}, better_auth0.$strip>, zod0.ZodUnion<readonly [zod0.ZodObject<{
|
|
1266
|
+
permission: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
|
|
1267
|
+
permissions: zod0.ZodUndefined;
|
|
1268
|
+
}, better_auth0.$strip>, zod0.ZodObject<{
|
|
1269
|
+
permission: zod0.ZodUndefined;
|
|
1270
|
+
permissions: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
|
|
1271
|
+
}, better_auth0.$strip>]>>;
|
|
1272
1272
|
metadata: {
|
|
1273
1273
|
openapi: {
|
|
1274
1274
|
description: string;
|
|
@@ -1397,7 +1397,7 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1397
1397
|
};
|
|
1398
1398
|
};
|
|
1399
1399
|
};
|
|
1400
|
-
options: NoInfer<
|
|
1400
|
+
options: NoInfer<better_auth_plugins0.AdminOptions>;
|
|
1401
1401
|
}, {
|
|
1402
1402
|
id: "api-key";
|
|
1403
1403
|
$ERROR_CODES: {
|
|
@@ -1429,8 +1429,8 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1429
1429
|
};
|
|
1430
1430
|
hooks: {
|
|
1431
1431
|
before: {
|
|
1432
|
-
matcher: (ctx:
|
|
1433
|
-
handler: (inputContext:
|
|
1432
|
+
matcher: (ctx: better_auth0.HookEndpointContext) => boolean;
|
|
1433
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1434
1434
|
user: {
|
|
1435
1435
|
id: string;
|
|
1436
1436
|
createdAt: Date;
|
|
@@ -1451,11 +1451,11 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1451
1451
|
expiresAt: Date;
|
|
1452
1452
|
};
|
|
1453
1453
|
} | {
|
|
1454
|
-
context:
|
|
1454
|
+
context: better_call0.MiddlewareContext<better_call0.MiddlewareOptions, {
|
|
1455
1455
|
returned?: unknown | undefined;
|
|
1456
1456
|
responseHeaders?: Headers | undefined;
|
|
1457
|
-
} &
|
|
1458
|
-
options:
|
|
1457
|
+
} & better_auth0.PluginContext & better_auth0.InfoContext & {
|
|
1458
|
+
options: better_auth0.BetterAuthOptions;
|
|
1459
1459
|
trustedOrigins: string[];
|
|
1460
1460
|
isTrustedOrigin: (url: string, settings?: {
|
|
1461
1461
|
allowRelativePaths: boolean;
|
|
@@ -1465,29 +1465,29 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1465
1465
|
storeStateStrategy: "database" | "cookie";
|
|
1466
1466
|
};
|
|
1467
1467
|
newSession: {
|
|
1468
|
-
session:
|
|
1469
|
-
user:
|
|
1468
|
+
session: better_auth0.Session & Record<string, any>;
|
|
1469
|
+
user: better_auth0.User & Record<string, any>;
|
|
1470
1470
|
} | null;
|
|
1471
1471
|
session: {
|
|
1472
|
-
session:
|
|
1473
|
-
user:
|
|
1472
|
+
session: better_auth0.Session & Record<string, any>;
|
|
1473
|
+
user: better_auth0.User & Record<string, any>;
|
|
1474
1474
|
} | null;
|
|
1475
1475
|
setNewSession: (session: {
|
|
1476
|
-
session:
|
|
1477
|
-
user:
|
|
1476
|
+
session: better_auth0.Session & Record<string, any>;
|
|
1477
|
+
user: better_auth0.User & Record<string, any>;
|
|
1478
1478
|
} | null) => void;
|
|
1479
|
-
socialProviders:
|
|
1480
|
-
authCookies:
|
|
1481
|
-
logger: ReturnType<(options?:
|
|
1479
|
+
socialProviders: better_auth0.OAuthProvider[];
|
|
1480
|
+
authCookies: better_auth0.BetterAuthCookies;
|
|
1481
|
+
logger: ReturnType<(options?: better_auth0.Logger | undefined) => better_auth0.InternalLogger>;
|
|
1482
1482
|
rateLimit: {
|
|
1483
1483
|
enabled: boolean;
|
|
1484
1484
|
window: number;
|
|
1485
1485
|
max: number;
|
|
1486
1486
|
storage: "memory" | "database" | "secondary-storage";
|
|
1487
|
-
} & Omit<
|
|
1488
|
-
adapter:
|
|
1489
|
-
internalAdapter:
|
|
1490
|
-
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<
|
|
1487
|
+
} & Omit<better_auth0.BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
|
|
1488
|
+
adapter: better_auth0.DBAdapter<better_auth0.BetterAuthOptions>;
|
|
1489
|
+
internalAdapter: better_auth0.InternalAdapter<better_auth0.BetterAuthOptions>;
|
|
1490
|
+
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<better_call0.CookieOptions> | undefined) => better_auth0.BetterAuthCookie;
|
|
1491
1491
|
secret: string;
|
|
1492
1492
|
sessionConfig: {
|
|
1493
1493
|
updateAge: number;
|
|
@@ -1499,10 +1499,10 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1499
1499
|
};
|
|
1500
1500
|
};
|
|
1501
1501
|
generateId: (options: {
|
|
1502
|
-
model:
|
|
1502
|
+
model: better_auth0.ModelNames;
|
|
1503
1503
|
size?: number | undefined;
|
|
1504
1504
|
}) => string | false;
|
|
1505
|
-
secondaryStorage:
|
|
1505
|
+
secondaryStorage: better_auth0.SecondaryStorage | undefined;
|
|
1506
1506
|
password: {
|
|
1507
1507
|
hash: (password: string) => Promise<string>;
|
|
1508
1508
|
verify: (data: {
|
|
@@ -1513,9 +1513,9 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1513
1513
|
minPasswordLength: number;
|
|
1514
1514
|
maxPasswordLength: number;
|
|
1515
1515
|
};
|
|
1516
|
-
checkPassword: (userId: string, ctx:
|
|
1516
|
+
checkPassword: (userId: string, ctx: better_auth0.GenericEndpointContext<better_auth0.BetterAuthOptions>) => Promise<boolean>;
|
|
1517
1517
|
};
|
|
1518
|
-
tables:
|
|
1518
|
+
tables: better_auth0.BetterAuthDBSchema;
|
|
1519
1519
|
runMigrations: () => Promise<void>;
|
|
1520
1520
|
publishTelemetry: (event: {
|
|
1521
1521
|
type: string;
|
|
@@ -1531,22 +1531,22 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1531
1531
|
}[];
|
|
1532
1532
|
};
|
|
1533
1533
|
endpoints: {
|
|
1534
|
-
createApiKey:
|
|
1534
|
+
createApiKey: better_call0.StrictEndpoint<"/api-key/create", {
|
|
1535
1535
|
method: "POST";
|
|
1536
|
-
body:
|
|
1537
|
-
name:
|
|
1538
|
-
expiresIn:
|
|
1539
|
-
userId:
|
|
1540
|
-
prefix:
|
|
1541
|
-
remaining:
|
|
1542
|
-
metadata:
|
|
1543
|
-
refillAmount:
|
|
1544
|
-
refillInterval:
|
|
1545
|
-
rateLimitTimeWindow:
|
|
1546
|
-
rateLimitMax:
|
|
1547
|
-
rateLimitEnabled:
|
|
1548
|
-
permissions:
|
|
1549
|
-
},
|
|
1536
|
+
body: zod0.ZodObject<{
|
|
1537
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
1538
|
+
expiresIn: zod0.ZodDefault<zod0.ZodNullable<zod0.ZodOptional<zod0.ZodNumber>>>;
|
|
1539
|
+
userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
|
|
1540
|
+
prefix: zod0.ZodOptional<zod0.ZodString>;
|
|
1541
|
+
remaining: zod0.ZodDefault<zod0.ZodNullable<zod0.ZodOptional<zod0.ZodNumber>>>;
|
|
1542
|
+
metadata: zod0.ZodOptional<zod0.ZodAny>;
|
|
1543
|
+
refillAmount: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1544
|
+
refillInterval: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1545
|
+
rateLimitTimeWindow: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1546
|
+
rateLimitMax: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1547
|
+
rateLimitEnabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1548
|
+
permissions: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
1549
|
+
}, better_auth0.$strip>;
|
|
1550
1550
|
metadata: {
|
|
1551
1551
|
openapi: {
|
|
1552
1552
|
description: string;
|
|
@@ -1699,12 +1699,12 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1699
1699
|
createdAt: Date;
|
|
1700
1700
|
updatedAt: Date;
|
|
1701
1701
|
}>;
|
|
1702
|
-
verifyApiKey:
|
|
1702
|
+
verifyApiKey: better_call0.StrictEndpoint<string, {
|
|
1703
1703
|
method: "POST";
|
|
1704
|
-
body:
|
|
1705
|
-
key:
|
|
1706
|
-
permissions:
|
|
1707
|
-
},
|
|
1704
|
+
body: zod0.ZodObject<{
|
|
1705
|
+
key: zod0.ZodString;
|
|
1706
|
+
permissions: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>;
|
|
1707
|
+
}, better_auth0.$strip>;
|
|
1708
1708
|
}, {
|
|
1709
1709
|
valid: boolean;
|
|
1710
1710
|
error: {
|
|
@@ -1715,14 +1715,14 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1715
1715
|
} | {
|
|
1716
1716
|
valid: boolean;
|
|
1717
1717
|
error: null;
|
|
1718
|
-
key: Omit<
|
|
1718
|
+
key: Omit<better_auth_plugins0.ApiKey, "key"> | null;
|
|
1719
1719
|
}>;
|
|
1720
|
-
getApiKey:
|
|
1720
|
+
getApiKey: better_call0.StrictEndpoint<"/api-key/get", {
|
|
1721
1721
|
method: "GET";
|
|
1722
|
-
query:
|
|
1723
|
-
id:
|
|
1724
|
-
},
|
|
1725
|
-
use: ((inputContext:
|
|
1722
|
+
query: zod0.ZodObject<{
|
|
1723
|
+
id: zod0.ZodString;
|
|
1724
|
+
}, better_auth0.$strip>;
|
|
1725
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
1726
1726
|
session: {
|
|
1727
1727
|
session: Record<string, any> & {
|
|
1728
1728
|
id: string;
|
|
@@ -1889,23 +1889,23 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
1889
1889
|
createdAt: Date;
|
|
1890
1890
|
updatedAt: Date;
|
|
1891
1891
|
}>;
|
|
1892
|
-
updateApiKey:
|
|
1892
|
+
updateApiKey: better_call0.StrictEndpoint<"/api-key/update", {
|
|
1893
1893
|
method: "POST";
|
|
1894
|
-
body:
|
|
1895
|
-
keyId:
|
|
1896
|
-
userId:
|
|
1897
|
-
name:
|
|
1898
|
-
enabled:
|
|
1899
|
-
remaining:
|
|
1900
|
-
refillAmount:
|
|
1901
|
-
refillInterval:
|
|
1902
|
-
metadata:
|
|
1903
|
-
expiresIn:
|
|
1904
|
-
rateLimitEnabled:
|
|
1905
|
-
rateLimitTimeWindow:
|
|
1906
|
-
rateLimitMax:
|
|
1907
|
-
permissions:
|
|
1908
|
-
},
|
|
1894
|
+
body: zod0.ZodObject<{
|
|
1895
|
+
keyId: zod0.ZodString;
|
|
1896
|
+
userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
|
|
1897
|
+
name: zod0.ZodOptional<zod0.ZodString>;
|
|
1898
|
+
enabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1899
|
+
remaining: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1900
|
+
refillAmount: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1901
|
+
refillInterval: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1902
|
+
metadata: zod0.ZodOptional<zod0.ZodAny>;
|
|
1903
|
+
expiresIn: zod0.ZodNullable<zod0.ZodOptional<zod0.ZodNumber>>;
|
|
1904
|
+
rateLimitEnabled: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
1905
|
+
rateLimitTimeWindow: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1906
|
+
rateLimitMax: zod0.ZodOptional<zod0.ZodNumber>;
|
|
1907
|
+
permissions: zod0.ZodNullable<zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>>>;
|
|
1908
|
+
}, better_auth0.$strip>;
|
|
1909
1909
|
metadata: {
|
|
1910
1910
|
openapi: {
|
|
1911
1911
|
description: string;
|
|
@@ -2050,12 +2050,12 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2050
2050
|
createdAt: Date;
|
|
2051
2051
|
updatedAt: Date;
|
|
2052
2052
|
}>;
|
|
2053
|
-
deleteApiKey:
|
|
2053
|
+
deleteApiKey: better_call0.StrictEndpoint<"/api-key/delete", {
|
|
2054
2054
|
method: "POST";
|
|
2055
|
-
body:
|
|
2056
|
-
keyId:
|
|
2057
|
-
},
|
|
2058
|
-
use: ((inputContext:
|
|
2055
|
+
body: zod0.ZodObject<{
|
|
2056
|
+
keyId: zod0.ZodString;
|
|
2057
|
+
}, better_auth0.$strip>;
|
|
2058
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2059
2059
|
session: {
|
|
2060
2060
|
session: Record<string, any> & {
|
|
2061
2061
|
id: string;
|
|
@@ -2121,9 +2121,9 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2121
2121
|
}, {
|
|
2122
2122
|
success: boolean;
|
|
2123
2123
|
}>;
|
|
2124
|
-
listApiKeys:
|
|
2124
|
+
listApiKeys: better_call0.StrictEndpoint<"/api-key/list", {
|
|
2125
2125
|
method: "GET";
|
|
2126
|
-
use: ((inputContext:
|
|
2126
|
+
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2127
2127
|
session: {
|
|
2128
2128
|
session: Record<string, any> & {
|
|
2129
2129
|
id: string;
|
|
@@ -2293,7 +2293,7 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2293
2293
|
createdAt: Date;
|
|
2294
2294
|
updatedAt: Date;
|
|
2295
2295
|
}[]>;
|
|
2296
|
-
deleteAllExpiredApiKeys:
|
|
2296
|
+
deleteAllExpiredApiKeys: better_call0.StrictEndpoint<string, {
|
|
2297
2297
|
method: "POST";
|
|
2298
2298
|
}, {
|
|
2299
2299
|
success: boolean;
|
|
@@ -2415,43 +2415,43 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2415
2415
|
required: false;
|
|
2416
2416
|
input: true;
|
|
2417
2417
|
transform: {
|
|
2418
|
-
input(value:
|
|
2419
|
-
output(value:
|
|
2418
|
+
input(value: better_auth0.DBPrimitive): string;
|
|
2419
|
+
output(value: better_auth0.DBPrimitive): any;
|
|
2420
2420
|
};
|
|
2421
2421
|
};
|
|
2422
2422
|
};
|
|
2423
2423
|
};
|
|
2424
2424
|
};
|
|
2425
|
-
options:
|
|
2425
|
+
options: better_auth_plugins0.ApiKeyOptions | undefined;
|
|
2426
2426
|
}, {
|
|
2427
2427
|
id: "bearer";
|
|
2428
2428
|
hooks: {
|
|
2429
2429
|
before: {
|
|
2430
|
-
matcher(context:
|
|
2431
|
-
handler: (inputContext:
|
|
2430
|
+
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
2431
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
2432
2432
|
context: {
|
|
2433
2433
|
headers: Headers;
|
|
2434
2434
|
};
|
|
2435
2435
|
} | undefined>;
|
|
2436
2436
|
}[];
|
|
2437
2437
|
after: {
|
|
2438
|
-
matcher(context:
|
|
2439
|
-
handler: (inputContext:
|
|
2438
|
+
matcher(context: better_auth0.HookEndpointContext): true;
|
|
2439
|
+
handler: (inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<void>;
|
|
2440
2440
|
}[];
|
|
2441
2441
|
};
|
|
2442
|
-
options:
|
|
2442
|
+
options: better_auth_plugins0.BearerOptions | undefined;
|
|
2443
2443
|
}];
|
|
2444
2444
|
emailAndPassword: {
|
|
2445
2445
|
enabled: true;
|
|
2446
2446
|
requireEmailVerification: true;
|
|
2447
2447
|
};
|
|
2448
2448
|
}>>;
|
|
2449
|
-
locale?:
|
|
2450
|
-
migrations?:
|
|
2451
|
-
translations?:
|
|
2449
|
+
locale?: questpie216.LocaleConfig | undefined;
|
|
2450
|
+
migrations?: questpie216.Migration[] | undefined;
|
|
2451
|
+
translations?: questpie216.TranslationsConfig | undefined;
|
|
2452
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;
|
|
2453
2453
|
}, "collections", {
|
|
2454
|
-
user:
|
|
2454
|
+
user: questpie216.CollectionBuilder<{
|
|
2455
2455
|
options: {
|
|
2456
2456
|
timestamps: true;
|
|
2457
2457
|
};
|
|
@@ -2468,21 +2468,21 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2468
2468
|
};
|
|
2469
2469
|
localized: [];
|
|
2470
2470
|
virtuals: undefined;
|
|
2471
|
-
relations: Record<string,
|
|
2471
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
2472
2472
|
indexes: Record<string, any>;
|
|
2473
2473
|
title: "name";
|
|
2474
|
-
hooks:
|
|
2475
|
-
access:
|
|
2474
|
+
hooks: questpie216.CollectionHooks<any, any, any, any>;
|
|
2475
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
2476
2476
|
functions: {
|
|
2477
|
-
[x: string]:
|
|
2477
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
2478
2478
|
};
|
|
2479
2479
|
searchable: undefined;
|
|
2480
2480
|
validation: undefined;
|
|
2481
2481
|
output: undefined;
|
|
2482
2482
|
upload: undefined;
|
|
2483
2483
|
}>;
|
|
2484
|
-
session:
|
|
2485
|
-
options:
|
|
2484
|
+
session: questpie216.CollectionBuilder<{
|
|
2485
|
+
options: questpie216.CollectionOptions;
|
|
2486
2486
|
name: "session";
|
|
2487
2487
|
fields: {
|
|
2488
2488
|
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
@@ -2494,21 +2494,21 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2494
2494
|
};
|
|
2495
2495
|
localized: [];
|
|
2496
2496
|
virtuals: undefined;
|
|
2497
|
-
relations: Record<string,
|
|
2497
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
2498
2498
|
indexes: Record<string, any>;
|
|
2499
2499
|
title: "token";
|
|
2500
|
-
hooks:
|
|
2501
|
-
access:
|
|
2500
|
+
hooks: questpie216.CollectionHooks<any, any, any, any>;
|
|
2501
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
2502
2502
|
functions: {
|
|
2503
|
-
[x: string]:
|
|
2503
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
2504
2504
|
};
|
|
2505
2505
|
searchable: undefined;
|
|
2506
2506
|
validation: undefined;
|
|
2507
2507
|
output: undefined;
|
|
2508
2508
|
upload: undefined;
|
|
2509
2509
|
}>;
|
|
2510
|
-
account:
|
|
2511
|
-
options:
|
|
2510
|
+
account: questpie216.CollectionBuilder<{
|
|
2511
|
+
options: questpie216.CollectionOptions;
|
|
2512
2512
|
name: "account";
|
|
2513
2513
|
fields: {
|
|
2514
2514
|
userId: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
@@ -2524,21 +2524,21 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2524
2524
|
};
|
|
2525
2525
|
localized: [];
|
|
2526
2526
|
virtuals: undefined;
|
|
2527
|
-
relations: Record<string,
|
|
2527
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
2528
2528
|
indexes: Record<string, any>;
|
|
2529
2529
|
title: "providerId";
|
|
2530
|
-
hooks:
|
|
2531
|
-
access:
|
|
2530
|
+
hooks: questpie216.CollectionHooks<any, any, any, any>;
|
|
2531
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
2532
2532
|
functions: {
|
|
2533
|
-
[x: string]:
|
|
2533
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
2534
2534
|
};
|
|
2535
2535
|
searchable: undefined;
|
|
2536
2536
|
validation: undefined;
|
|
2537
2537
|
output: undefined;
|
|
2538
2538
|
upload: undefined;
|
|
2539
2539
|
}>;
|
|
2540
|
-
verification:
|
|
2541
|
-
options:
|
|
2540
|
+
verification: questpie216.CollectionBuilder<{
|
|
2541
|
+
options: questpie216.CollectionOptions;
|
|
2542
2542
|
name: "verification";
|
|
2543
2543
|
fields: {
|
|
2544
2544
|
identifier: drizzle_orm94.NotNull<drizzle_orm_pg_core183.PgVarcharBuilder<[string, ...string[]]>>;
|
|
@@ -2547,20 +2547,20 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2547
2547
|
};
|
|
2548
2548
|
localized: [];
|
|
2549
2549
|
virtuals: undefined;
|
|
2550
|
-
relations: Record<string,
|
|
2550
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
2551
2551
|
indexes: Record<string, any>;
|
|
2552
2552
|
title: "identifier";
|
|
2553
|
-
hooks:
|
|
2554
|
-
access:
|
|
2553
|
+
hooks: questpie216.CollectionHooks<any, any, any, any>;
|
|
2554
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
2555
2555
|
functions: {
|
|
2556
|
-
[x: string]:
|
|
2556
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
2557
2557
|
};
|
|
2558
2558
|
searchable: undefined;
|
|
2559
2559
|
validation: undefined;
|
|
2560
2560
|
output: undefined;
|
|
2561
2561
|
upload: undefined;
|
|
2562
2562
|
}>;
|
|
2563
|
-
assets:
|
|
2563
|
+
assets: questpie216.CollectionBuilder<{
|
|
2564
2564
|
options: {
|
|
2565
2565
|
timestamps: true;
|
|
2566
2566
|
};
|
|
@@ -2579,14 +2579,14 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2579
2579
|
};
|
|
2580
2580
|
localized: [];
|
|
2581
2581
|
virtuals: undefined;
|
|
2582
|
-
relations: Record<string,
|
|
2582
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
2583
2583
|
indexes: Record<string, any>;
|
|
2584
2584
|
title: "filename";
|
|
2585
2585
|
hooks: {
|
|
2586
2586
|
afterDelete: ({
|
|
2587
2587
|
data,
|
|
2588
2588
|
app
|
|
2589
|
-
}:
|
|
2589
|
+
}: questpie216.HookContext<{
|
|
2590
2590
|
width: number | null;
|
|
2591
2591
|
height: number | null;
|
|
2592
2592
|
alt: string | null;
|
|
@@ -2603,18 +2603,18 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2603
2603
|
url: string;
|
|
2604
2604
|
}, never, "delete", any>) => Promise<void>;
|
|
2605
2605
|
};
|
|
2606
|
-
access:
|
|
2606
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
2607
2607
|
functions: {
|
|
2608
|
-
[x: string]:
|
|
2608
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
2609
2609
|
};
|
|
2610
2610
|
searchable: undefined;
|
|
2611
2611
|
validation: undefined;
|
|
2612
|
-
output:
|
|
2612
|
+
output: questpie216.TypeMerge<{}, {
|
|
2613
2613
|
url: string;
|
|
2614
2614
|
}>;
|
|
2615
|
-
upload:
|
|
2615
|
+
upload: questpie216.UploadOptions;
|
|
2616
2616
|
}>;
|
|
2617
|
-
apikey:
|
|
2617
|
+
apikey: questpie216.CollectionBuilder<{
|
|
2618
2618
|
options: {
|
|
2619
2619
|
timestamps: true;
|
|
2620
2620
|
};
|
|
@@ -2641,20 +2641,20 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2641
2641
|
};
|
|
2642
2642
|
localized: [];
|
|
2643
2643
|
virtuals: undefined;
|
|
2644
|
-
relations: Record<string,
|
|
2644
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
2645
2645
|
indexes: Record<string, any>;
|
|
2646
2646
|
title: "key";
|
|
2647
|
-
hooks:
|
|
2648
|
-
access:
|
|
2647
|
+
hooks: questpie216.CollectionHooks<any, any, any, any>;
|
|
2648
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
2649
2649
|
functions: {
|
|
2650
|
-
[x: string]:
|
|
2650
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
2651
2651
|
};
|
|
2652
2652
|
searchable: undefined;
|
|
2653
2653
|
validation: undefined;
|
|
2654
2654
|
output: undefined;
|
|
2655
2655
|
upload: undefined;
|
|
2656
2656
|
}>;
|
|
2657
|
-
admin_saved_views:
|
|
2657
|
+
admin_saved_views: questpie216.CollectionBuilder<{
|
|
2658
2658
|
name: "admin_saved_views";
|
|
2659
2659
|
localized: [];
|
|
2660
2660
|
output: undefined;
|
|
@@ -2671,17 +2671,17 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2671
2671
|
};
|
|
2672
2672
|
upload: undefined;
|
|
2673
2673
|
functions: {
|
|
2674
|
-
[x: string]:
|
|
2674
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
2675
2675
|
};
|
|
2676
|
-
hooks:
|
|
2676
|
+
hooks: questpie216.CollectionHooks<any, any, any, any>;
|
|
2677
2677
|
indexes: Record<string, any>;
|
|
2678
2678
|
searchable: undefined;
|
|
2679
2679
|
virtuals: undefined;
|
|
2680
|
-
relations: Record<string,
|
|
2681
|
-
access:
|
|
2680
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
2681
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
2682
2682
|
validation: undefined;
|
|
2683
2683
|
}>;
|
|
2684
|
-
admin_preferences:
|
|
2684
|
+
admin_preferences: questpie216.CollectionBuilder<{
|
|
2685
2685
|
name: "admin_preferences";
|
|
2686
2686
|
localized: [];
|
|
2687
2687
|
output: undefined;
|
|
@@ -2696,32 +2696,32 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2696
2696
|
};
|
|
2697
2697
|
upload: undefined;
|
|
2698
2698
|
functions: {
|
|
2699
|
-
[x: string]:
|
|
2699
|
+
[x: string]: questpie216.FunctionDefinition<any, any, any>;
|
|
2700
2700
|
};
|
|
2701
|
-
hooks:
|
|
2701
|
+
hooks: questpie216.CollectionHooks<any, any, any, any>;
|
|
2702
2702
|
indexes: drizzle_orm_pg_core183.IndexBuilder[];
|
|
2703
2703
|
searchable: undefined;
|
|
2704
2704
|
virtuals: undefined;
|
|
2705
|
-
relations: Record<string,
|
|
2706
|
-
access:
|
|
2705
|
+
relations: Record<string, questpie216.RelationConfig>;
|
|
2706
|
+
access: questpie216.CollectionAccess<any, any>;
|
|
2707
2707
|
validation: undefined;
|
|
2708
2708
|
}>;
|
|
2709
2709
|
}>, "functions", {
|
|
2710
|
-
mintPreviewToken:
|
|
2710
|
+
mintPreviewToken: questpie216.JsonFunctionDefinition<{
|
|
2711
2711
|
path: string;
|
|
2712
2712
|
ttlMs?: number | undefined;
|
|
2713
2713
|
}, {
|
|
2714
2714
|
token: string;
|
|
2715
2715
|
expiresAt: number;
|
|
2716
2716
|
}, any>;
|
|
2717
|
-
verifyPreviewToken:
|
|
2717
|
+
verifyPreviewToken: questpie216.JsonFunctionDefinition<{
|
|
2718
2718
|
token: string;
|
|
2719
2719
|
}, {
|
|
2720
2720
|
valid: boolean;
|
|
2721
2721
|
path?: string | undefined;
|
|
2722
2722
|
error?: string | undefined;
|
|
2723
2723
|
}, any>;
|
|
2724
|
-
getContentLocales:
|
|
2724
|
+
getContentLocales: questpie216.JsonFunctionDefinition<Record<string, never> | undefined, {
|
|
2725
2725
|
locales: {
|
|
2726
2726
|
code: string;
|
|
2727
2727
|
label?: string | undefined;
|
|
@@ -2731,10 +2731,10 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2731
2731
|
defaultLocale: string;
|
|
2732
2732
|
fallbacks?: Record<string, string> | undefined;
|
|
2733
2733
|
}, any>;
|
|
2734
|
-
isSetupRequired:
|
|
2734
|
+
isSetupRequired: questpie216.JsonFunctionDefinition<Record<string, never>, {
|
|
2735
2735
|
required: boolean;
|
|
2736
2736
|
}, any>;
|
|
2737
|
-
createFirstAdmin:
|
|
2737
|
+
createFirstAdmin: questpie216.JsonFunctionDefinition<{
|
|
2738
2738
|
email: string;
|
|
2739
2739
|
password: string;
|
|
2740
2740
|
name: string;
|
|
@@ -2750,4 +2750,4 @@ declare const adminModule: questpie214.QuestpieBuilder<questpie214.SetProperty<q
|
|
|
2750
2750
|
}>>;
|
|
2751
2751
|
//#endregion
|
|
2752
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-
|
|
2753
|
+
//# sourceMappingURL=index-B4H3amCD.d.mts.map
|