opacacms 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/auth-client.d.ts +41 -41
- package/dist/admin/webcomponent.js +37 -35
- package/dist/auth/index.d.ts +43 -48
- package/dist/{chunk-gyaf5kgf.js → chunk-0hxz770x.js} +2 -2
- package/dist/{chunk-7rr5p01g.js → chunk-2gdsy99f.js} +1 -1
- package/dist/{chunk-1qm0m8r8.js → chunk-71wwx9vj.js} +2 -2
- package/dist/{chunk-d7cgd6vn.js → chunk-9by912e9.js} +6 -6
- package/dist/{chunk-rwqwsanx.js → chunk-f3dg5dq4.js} +1 -1
- package/dist/{chunk-mp2gt9yh.js → chunk-g17v7yfr.js} +3 -3
- package/dist/{chunk-ec4jhybj.js → chunk-gzdfc1ct.js} +3 -3
- package/dist/{chunk-majsbncm.js → chunk-jvv72110.js} +8 -8
- package/dist/{chunk-d0tb1xjw.js → chunk-rg3jrfgg.js} +4 -4
- package/dist/{chunk-56n342hs.js → chunk-rjvcp6ph.js} +4 -4
- package/dist/{chunk-63yg00vx.js → chunk-v0nazhmk.js} +3 -3
- package/dist/chunk-wqvdwck9.js +326 -0
- package/dist/{chunk-r0ms5tk1.js → chunk-y4e9twg2.js} +3 -3
- package/dist/cli/commands/init.d.ts +1 -6
- package/dist/cli/index.js +2 -2
- package/package.json +11 -10
- package/dist/chunk-fatyf6f7.js +0 -221
package/dist/auth/index.d.ts
CHANGED
|
@@ -105,18 +105,18 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
105
105
|
hooks: {
|
|
106
106
|
after: {
|
|
107
107
|
matcher(context: import("better-auth").HookEndpointContext): boolean;
|
|
108
|
-
handler: (inputContext: import("better-
|
|
108
|
+
handler: (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<import("better-auth/plugins").SessionWithImpersonatedBy[] | undefined>;
|
|
109
109
|
}[];
|
|
110
110
|
};
|
|
111
111
|
endpoints: {
|
|
112
|
-
setRole: import("better-
|
|
112
|
+
setRole: import("better-auth").StrictEndpoint<"/admin/set-role", {
|
|
113
113
|
method: "POST";
|
|
114
114
|
body: import("zod").ZodObject<{
|
|
115
115
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
116
116
|
role: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>;
|
|
117
117
|
}, import("better-auth").$strip>;
|
|
118
118
|
requireHeaders: true;
|
|
119
|
-
use: ((inputContext: import("better-
|
|
119
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
120
120
|
session: {
|
|
121
121
|
user: import("better-auth/plugins").UserWithRole;
|
|
122
122
|
session: {
|
|
@@ -164,12 +164,12 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
164
164
|
}, {
|
|
165
165
|
user: import("better-auth/plugins").UserWithRole;
|
|
166
166
|
}>;
|
|
167
|
-
getUser: import("better-
|
|
167
|
+
getUser: import("better-auth").StrictEndpoint<"/admin/get-user", {
|
|
168
168
|
method: "GET";
|
|
169
169
|
query: import("zod").ZodObject<{
|
|
170
170
|
id: import("zod").ZodString;
|
|
171
171
|
}, import("better-auth").$strip>;
|
|
172
|
-
use: ((inputContext: import("better-
|
|
172
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
173
173
|
session: {
|
|
174
174
|
user: import("better-auth/plugins").UserWithRole;
|
|
175
175
|
session: {
|
|
@@ -209,7 +209,7 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
211
|
}, import("better-auth/plugins").UserWithRole>;
|
|
212
|
-
createUser: import("better-
|
|
212
|
+
createUser: import("better-auth").StrictEndpoint<"/admin/create-user", {
|
|
213
213
|
method: "POST";
|
|
214
214
|
body: import("zod").ZodObject<{
|
|
215
215
|
email: import("zod").ZodString;
|
|
@@ -254,13 +254,13 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
254
254
|
}, {
|
|
255
255
|
user: import("better-auth/plugins").UserWithRole;
|
|
256
256
|
}>;
|
|
257
|
-
adminUpdateUser: import("better-
|
|
257
|
+
adminUpdateUser: import("better-auth").StrictEndpoint<"/admin/update-user", {
|
|
258
258
|
method: "POST";
|
|
259
259
|
body: import("zod").ZodObject<{
|
|
260
260
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
261
261
|
data: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
262
262
|
}, import("better-auth").$strip>;
|
|
263
|
-
use: ((inputContext: import("better-
|
|
263
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
264
264
|
session: {
|
|
265
265
|
user: import("better-auth/plugins").UserWithRole;
|
|
266
266
|
session: {
|
|
@@ -300,9 +300,9 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
300
300
|
};
|
|
301
301
|
};
|
|
302
302
|
}, import("better-auth/plugins").UserWithRole>;
|
|
303
|
-
listUsers: import("better-
|
|
303
|
+
listUsers: import("better-auth").StrictEndpoint<"/admin/list-users", {
|
|
304
304
|
method: "GET";
|
|
305
|
-
use: ((inputContext: import("better-
|
|
305
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
306
306
|
session: {
|
|
307
307
|
user: import("better-auth/plugins").UserWithRole;
|
|
308
308
|
session: {
|
|
@@ -392,9 +392,9 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
392
392
|
users: import("better-auth/plugins").UserWithRole[];
|
|
393
393
|
total: number;
|
|
394
394
|
}>;
|
|
395
|
-
listUserSessions: import("better-
|
|
395
|
+
listUserSessions: import("better-auth").StrictEndpoint<"/admin/list-user-sessions", {
|
|
396
396
|
method: "POST";
|
|
397
|
-
use: ((inputContext: import("better-
|
|
397
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
398
398
|
session: {
|
|
399
399
|
user: import("better-auth/plugins").UserWithRole;
|
|
400
400
|
session: {
|
|
@@ -442,12 +442,12 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
442
442
|
}, {
|
|
443
443
|
sessions: import("better-auth/plugins").SessionWithImpersonatedBy[];
|
|
444
444
|
}>;
|
|
445
|
-
unbanUser: import("better-
|
|
445
|
+
unbanUser: import("better-auth").StrictEndpoint<"/admin/unban-user", {
|
|
446
446
|
method: "POST";
|
|
447
447
|
body: import("zod").ZodObject<{
|
|
448
448
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
449
449
|
}, import("better-auth").$strip>;
|
|
450
|
-
use: ((inputContext: import("better-
|
|
450
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
451
451
|
session: {
|
|
452
452
|
user: import("better-auth/plugins").UserWithRole;
|
|
453
453
|
session: {
|
|
@@ -489,14 +489,14 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
489
489
|
}, {
|
|
490
490
|
user: import("better-auth/plugins").UserWithRole;
|
|
491
491
|
}>;
|
|
492
|
-
banUser: import("better-
|
|
492
|
+
banUser: import("better-auth").StrictEndpoint<"/admin/ban-user", {
|
|
493
493
|
method: "POST";
|
|
494
494
|
body: import("zod").ZodObject<{
|
|
495
495
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
496
496
|
banReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
497
497
|
banExpiresIn: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
498
498
|
}, import("better-auth").$strip>;
|
|
499
|
-
use: ((inputContext: import("better-
|
|
499
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
500
500
|
session: {
|
|
501
501
|
user: import("better-auth/plugins").UserWithRole;
|
|
502
502
|
session: {
|
|
@@ -538,12 +538,12 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
538
538
|
}, {
|
|
539
539
|
user: import("better-auth/plugins").UserWithRole;
|
|
540
540
|
}>;
|
|
541
|
-
impersonateUser: import("better-
|
|
541
|
+
impersonateUser: import("better-auth").StrictEndpoint<"/admin/impersonate-user", {
|
|
542
542
|
method: "POST";
|
|
543
543
|
body: import("zod").ZodObject<{
|
|
544
544
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
545
545
|
}, import("better-auth").$strip>;
|
|
546
|
-
use: ((inputContext: import("better-
|
|
546
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
547
547
|
session: {
|
|
548
548
|
user: import("better-auth/plugins").UserWithRole;
|
|
549
549
|
session: {
|
|
@@ -598,7 +598,7 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
598
598
|
};
|
|
599
599
|
user: import("better-auth/plugins").UserWithRole;
|
|
600
600
|
}>;
|
|
601
|
-
stopImpersonating: import("better-
|
|
601
|
+
stopImpersonating: import("better-auth").StrictEndpoint<"/admin/stop-impersonating", {
|
|
602
602
|
method: "POST";
|
|
603
603
|
requireHeaders: true;
|
|
604
604
|
}, {
|
|
@@ -622,12 +622,12 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
622
622
|
image?: string | null | undefined;
|
|
623
623
|
} & Record<string, any>;
|
|
624
624
|
}>;
|
|
625
|
-
revokeUserSession: import("better-
|
|
625
|
+
revokeUserSession: import("better-auth").StrictEndpoint<"/admin/revoke-user-session", {
|
|
626
626
|
method: "POST";
|
|
627
627
|
body: import("zod").ZodObject<{
|
|
628
628
|
sessionToken: import("zod").ZodString;
|
|
629
629
|
}, import("better-auth").$strip>;
|
|
630
|
-
use: ((inputContext: import("better-
|
|
630
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
631
631
|
session: {
|
|
632
632
|
user: import("better-auth/plugins").UserWithRole;
|
|
633
633
|
session: {
|
|
@@ -669,12 +669,12 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
669
669
|
}, {
|
|
670
670
|
success: boolean;
|
|
671
671
|
}>;
|
|
672
|
-
revokeUserSessions: import("better-
|
|
672
|
+
revokeUserSessions: import("better-auth").StrictEndpoint<"/admin/revoke-user-sessions", {
|
|
673
673
|
method: "POST";
|
|
674
674
|
body: import("zod").ZodObject<{
|
|
675
675
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
676
676
|
}, import("better-auth").$strip>;
|
|
677
|
-
use: ((inputContext: import("better-
|
|
677
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
678
678
|
session: {
|
|
679
679
|
user: import("better-auth/plugins").UserWithRole;
|
|
680
680
|
session: {
|
|
@@ -716,12 +716,12 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
716
716
|
}, {
|
|
717
717
|
success: boolean;
|
|
718
718
|
}>;
|
|
719
|
-
removeUser: import("better-
|
|
719
|
+
removeUser: import("better-auth").StrictEndpoint<"/admin/remove-user", {
|
|
720
720
|
method: "POST";
|
|
721
721
|
body: import("zod").ZodObject<{
|
|
722
722
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
723
723
|
}, import("better-auth").$strip>;
|
|
724
|
-
use: ((inputContext: import("better-
|
|
724
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
725
725
|
session: {
|
|
726
726
|
user: import("better-auth/plugins").UserWithRole;
|
|
727
727
|
session: {
|
|
@@ -763,13 +763,13 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
763
763
|
}, {
|
|
764
764
|
success: boolean;
|
|
765
765
|
}>;
|
|
766
|
-
setUserPassword: import("better-
|
|
766
|
+
setUserPassword: import("better-auth").StrictEndpoint<"/admin/set-user-password", {
|
|
767
767
|
method: "POST";
|
|
768
768
|
body: import("zod").ZodObject<{
|
|
769
769
|
newPassword: import("zod").ZodString;
|
|
770
770
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
771
771
|
}, import("better-auth").$strip>;
|
|
772
|
-
use: ((inputContext: import("better-
|
|
772
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
773
773
|
session: {
|
|
774
774
|
user: import("better-auth/plugins").UserWithRole;
|
|
775
775
|
session: {
|
|
@@ -811,7 +811,7 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
811
811
|
}, {
|
|
812
812
|
status: boolean;
|
|
813
813
|
}>;
|
|
814
|
-
userHasPermission: import("better-
|
|
814
|
+
userHasPermission: import("better-auth").StrictEndpoint<"/admin/has-permission", {
|
|
815
815
|
method: "POST";
|
|
816
816
|
body: import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
817
817
|
userId: import("zod").ZodOptional<import("zod").ZodCoercedString<unknown>>;
|
|
@@ -954,7 +954,7 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
954
954
|
} | {
|
|
955
955
|
id: "open-api";
|
|
956
956
|
endpoints: {
|
|
957
|
-
generateOpenAPISchema: import("better-
|
|
957
|
+
generateOpenAPISchema: import("better-auth").StrictEndpoint<"/open-api/generate-schema", {
|
|
958
958
|
method: "GET";
|
|
959
959
|
}, {
|
|
960
960
|
openapi: string;
|
|
@@ -994,7 +994,7 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
994
994
|
}[];
|
|
995
995
|
paths: Record<string, import("better-auth/plugins").Path>;
|
|
996
996
|
}>;
|
|
997
|
-
openAPIReference: import("better-
|
|
997
|
+
openAPIReference: import("better-auth").StrictEndpoint<import("better-auth").LiteralString | "/reference", {
|
|
998
998
|
method: "GET";
|
|
999
999
|
metadata: {
|
|
1000
1000
|
readonly scope: "server";
|
|
@@ -1043,7 +1043,7 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
1043
1043
|
hooks: {
|
|
1044
1044
|
before: {
|
|
1045
1045
|
matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
|
|
1046
|
-
handler: (inputContext: import("better-
|
|
1046
|
+
handler: (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1047
1047
|
user: {
|
|
1048
1048
|
id: string;
|
|
1049
1049
|
createdAt: Date;
|
|
@@ -1064,7 +1064,7 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
1064
1064
|
expiresAt: Date;
|
|
1065
1065
|
};
|
|
1066
1066
|
} | {
|
|
1067
|
-
context: import("better-
|
|
1067
|
+
context: import("better-auth").MiddlewareContext<import("better-auth").MiddlewareOptions, {
|
|
1068
1068
|
returned?: unknown | undefined;
|
|
1069
1069
|
responseHeaders?: Headers | undefined;
|
|
1070
1070
|
} & import("better-auth").PluginContext<import("better-auth").BetterAuthOptions> & import("better-auth").InfoContext & {
|
|
@@ -1152,7 +1152,7 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
1152
1152
|
} & Omit<import("better-auth").BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
|
|
1153
1153
|
adapter: import("better-auth").DBAdapter<import("better-auth").BetterAuthOptions>;
|
|
1154
1154
|
internalAdapter: import("better-auth").InternalAdapter<import("better-auth").BetterAuthOptions>;
|
|
1155
|
-
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<import("better-
|
|
1155
|
+
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<import("better-auth").CookieOptions> | undefined) => import("better-auth").BetterAuthCookie;
|
|
1156
1156
|
secret: string;
|
|
1157
1157
|
secretConfig: string | import("better-auth").SecretConfig;
|
|
1158
1158
|
sessionConfig: {
|
|
@@ -1197,7 +1197,7 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
1197
1197
|
}[];
|
|
1198
1198
|
};
|
|
1199
1199
|
endpoints: {
|
|
1200
|
-
createApiKey: import("better-
|
|
1200
|
+
createApiKey: import("better-auth").StrictEndpoint<"/api-key/create", {
|
|
1201
1201
|
method: "POST";
|
|
1202
1202
|
body: import("zod").ZodObject<{
|
|
1203
1203
|
configId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1368,7 +1368,7 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
1368
1368
|
createdAt: Date;
|
|
1369
1369
|
updatedAt: Date;
|
|
1370
1370
|
}>;
|
|
1371
|
-
verifyApiKey: import("better-
|
|
1371
|
+
verifyApiKey: import("better-auth").StrictEndpoint<string, {
|
|
1372
1372
|
method: "POST";
|
|
1373
1373
|
body: import("zod").ZodObject<{
|
|
1374
1374
|
configId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1402,13 +1402,13 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
1402
1402
|
error: null;
|
|
1403
1403
|
key: Omit<import("@better-auth/api-key").ApiKey, "key"> | null;
|
|
1404
1404
|
}>;
|
|
1405
|
-
getApiKey: import("better-
|
|
1405
|
+
getApiKey: import("better-auth").StrictEndpoint<"/api-key/get", {
|
|
1406
1406
|
method: "GET";
|
|
1407
1407
|
query: import("zod").ZodObject<{
|
|
1408
1408
|
configId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1409
1409
|
id: import("zod").ZodString;
|
|
1410
1410
|
}, import("better-auth").$strip>;
|
|
1411
|
-
use: ((inputContext: import("better-
|
|
1411
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1412
1412
|
session: {
|
|
1413
1413
|
session: Record<string, any> & {
|
|
1414
1414
|
id: string;
|
|
@@ -1576,7 +1576,7 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
1576
1576
|
createdAt: Date;
|
|
1577
1577
|
updatedAt: Date;
|
|
1578
1578
|
}>;
|
|
1579
|
-
updateApiKey: import("better-
|
|
1579
|
+
updateApiKey: import("better-auth").StrictEndpoint<"/api-key/update", {
|
|
1580
1580
|
method: "POST";
|
|
1581
1581
|
body: import("zod").ZodObject<{
|
|
1582
1582
|
configId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1739,13 +1739,13 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
1739
1739
|
createdAt: Date;
|
|
1740
1740
|
updatedAt: Date;
|
|
1741
1741
|
}>;
|
|
1742
|
-
deleteApiKey: import("better-
|
|
1742
|
+
deleteApiKey: import("better-auth").StrictEndpoint<"/api-key/delete", {
|
|
1743
1743
|
method: "POST";
|
|
1744
1744
|
body: import("zod").ZodObject<{
|
|
1745
1745
|
configId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1746
1746
|
keyId: import("zod").ZodString;
|
|
1747
1747
|
}, import("better-auth").$strip>;
|
|
1748
|
-
use: ((inputContext: import("better-
|
|
1748
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1749
1749
|
session: {
|
|
1750
1750
|
session: Record<string, any> & {
|
|
1751
1751
|
id: string;
|
|
@@ -1811,9 +1811,9 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
1811
1811
|
}, {
|
|
1812
1812
|
success: boolean;
|
|
1813
1813
|
}>;
|
|
1814
|
-
listApiKeys: import("better-
|
|
1814
|
+
listApiKeys: import("better-auth").StrictEndpoint<"/api-key/list", {
|
|
1815
1815
|
method: "GET";
|
|
1816
|
-
use: ((inputContext: import("better-
|
|
1816
|
+
use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
|
|
1817
1817
|
session: {
|
|
1818
1818
|
session: Record<string, any> & {
|
|
1819
1819
|
id: string;
|
|
@@ -2020,7 +2020,7 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
2020
2020
|
limit: number | undefined;
|
|
2021
2021
|
offset: number | undefined;
|
|
2022
2022
|
}>;
|
|
2023
|
-
deleteAllExpiredApiKeys: import("better-
|
|
2023
|
+
deleteAllExpiredApiKeys: import("better-auth").StrictEndpoint<string, {
|
|
2024
2024
|
method: "POST";
|
|
2025
2025
|
}, {
|
|
2026
2026
|
success: boolean;
|
|
@@ -2151,11 +2151,6 @@ export declare function createAuth(config: OpacaConfig): Promise<import("better-
|
|
|
2151
2151
|
};
|
|
2152
2152
|
};
|
|
2153
2153
|
};
|
|
2154
|
-
configurations: (import("@better-auth/api-key").ApiKeyConfigurationOptions & Required<Pick<import("@better-auth/api-key").ApiKeyConfigurationOptions, "rateLimit" | "apiKeyHeaders" | "defaultKeyLength" | "keyExpiration" | "maximumPrefixLength" | "minimumPrefixLength" | "maximumNameLength" | "disableKeyHashing" | "minimumNameLength" | "requireName" | "enableMetadata" | "enableSessionForAPIKeys" | "startingCharactersConfig" | "storage" | "fallbackToDatabase" | "deferUpdates">> & {
|
|
2155
|
-
keyExpiration: Required<NonNullable<import("@better-auth/api-key").ApiKeyConfigurationOptions["keyExpiration"]>>;
|
|
2156
|
-
startingCharactersConfig: Required<NonNullable<import("@better-auth/api-key").ApiKeyConfigurationOptions["startingCharactersConfig"]>>;
|
|
2157
|
-
rateLimit: Required<NonNullable<import("@better-auth/api-key").ApiKeyConfigurationOptions["rateLimit"]>>;
|
|
2158
|
-
})[];
|
|
2159
2154
|
})[];
|
|
2160
2155
|
logger: {
|
|
2161
2156
|
disabled: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/citty/dist/_chunks/libs/scule.mjs
|
|
1
|
+
// ../../node_modules/.bun/citty@0.2.1/node_modules/citty/dist/_chunks/libs/scule.mjs
|
|
2
2
|
var NUMBER_CHAR_RE = /\d/;
|
|
3
3
|
var STR_SPLITTERS = [
|
|
4
4
|
"-",
|
|
@@ -66,7 +66,7 @@ function kebabCase(str, joiner) {
|
|
|
66
66
|
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => p.toLowerCase()).join(joiner ?? "-") : "";
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
// ../../node_modules/citty/dist/index.mjs
|
|
69
|
+
// ../../node_modules/.bun/citty@0.2.1/node_modules/citty/dist/index.mjs
|
|
70
70
|
import { parseArgs as parseArgs$1 } from "node:util";
|
|
71
71
|
function toArray(val) {
|
|
72
72
|
if (Array.isArray(val))
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateDiffCode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2gdsy99f.js";
|
|
4
4
|
import {
|
|
5
5
|
require_picocolors
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-f3dg5dq4.js";
|
|
7
7
|
import {
|
|
8
8
|
Gt,
|
|
9
9
|
R,
|
|
10
10
|
Wt,
|
|
11
11
|
be
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-gzdfc1ct.js";
|
|
13
13
|
import {
|
|
14
14
|
loadConfig,
|
|
15
15
|
resolveConfigPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-jvv72110.js";
|
|
17
17
|
import {
|
|
18
18
|
defineCommand
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-71wwx9vj.js";
|
|
20
20
|
import {
|
|
21
21
|
getRandomMigrationName
|
|
22
22
|
} from "./chunk-5b8r0v8c.js";
|
|
@@ -47,7 +47,7 @@ async function migrateCreateCommand(opaca, migrationName, outDir) {
|
|
|
47
47
|
fs.mkdirSync(fullMigrationDir, { recursive: true });
|
|
48
48
|
}
|
|
49
49
|
const timestamp = new Date().toISOString().replace(/[-:T]/g, "").split(".")[0];
|
|
50
|
-
const { generateDiffCode: generateDiffCode2 } = await import("./chunk-
|
|
50
|
+
const { generateDiffCode: generateDiffCode2 } = await import("./chunk-0hxz770x.js");
|
|
51
51
|
let dialect = "sqlite";
|
|
52
52
|
if (db.name === "postgres")
|
|
53
53
|
dialect = "postgres";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__commonJS
|
|
3
3
|
} from "./chunk-6bywt602.js";
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/picocolors/picocolors.js
|
|
5
|
+
// ../../node_modules/.bun/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
6
6
|
var require_picocolors = __commonJS((exports, module) => {
|
|
7
7
|
var p = process || {};
|
|
8
8
|
var argv = p.argv || [];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_picocolors
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-f3dg5dq4.js";
|
|
4
4
|
import {
|
|
5
5
|
Ct,
|
|
6
6
|
Nt,
|
|
7
7
|
R,
|
|
8
8
|
Vt,
|
|
9
9
|
Zt
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-gzdfc1ct.js";
|
|
11
11
|
import {
|
|
12
12
|
defineCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-71wwx9vj.js";
|
|
14
14
|
import {
|
|
15
15
|
__toESM
|
|
16
16
|
} from "./chunk-6bywt602.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__toESM
|
|
4
4
|
} from "./chunk-6bywt602.js";
|
|
5
5
|
|
|
6
|
-
// ../../node_modules/sisteransi/src/index.js
|
|
6
|
+
// ../../node_modules/.bun/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
|
|
7
7
|
var require_src = __commonJS((exports, module) => {
|
|
8
8
|
var ESC = "\x1B";
|
|
9
9
|
var CSI = `${ESC}[`;
|
|
@@ -61,7 +61,7 @@ var require_src = __commonJS((exports, module) => {
|
|
|
61
61
|
module.exports = { cursor, scroll, erase, beep };
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
// ../../node_modules/@clack/core/dist/index.mjs
|
|
64
|
+
// ../../node_modules/.bun/@clack+core@1.1.0/node_modules/@clack/core/dist/index.mjs
|
|
65
65
|
var import_sisteransi = __toESM(require_src(), 1);
|
|
66
66
|
import { styleText as D } from "node:util";
|
|
67
67
|
import { stdout as R, stdin as q } from "node:process";
|
|
@@ -631,7 +631,7 @@ class $t extends B {
|
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
633
|
|
|
634
|
-
// ../../node_modules/@clack/prompts/dist/index.mjs
|
|
634
|
+
// ../../node_modules/.bun/@clack+prompts@1.1.0/node_modules/@clack/prompts/dist/index.mjs
|
|
635
635
|
import { styleText as t, stripVTControlCharacters as ue } from "node:util";
|
|
636
636
|
import N2 from "node:process";
|
|
637
637
|
var import_sisteransi2 = __toESM(require_src(), 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defineCommand,
|
|
3
3
|
runMain
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-71wwx9vj.js";
|
|
5
5
|
import {
|
|
6
6
|
__require
|
|
7
7
|
} from "./chunk-6bywt602.js";
|
|
@@ -82,13 +82,13 @@ var mainCommand = defineCommand({
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
subCommands: {
|
|
85
|
-
init: () => import("./chunk-
|
|
86
|
-
migrate: () => import("./chunk-
|
|
87
|
-
seed: () => import("./chunk-
|
|
88
|
-
generate: () => import("./chunk-
|
|
89
|
-
plugin: () => import("./chunk-
|
|
90
|
-
doctor: () => import("./chunk-
|
|
91
|
-
dev: () => import("./chunk-
|
|
85
|
+
init: () => import("./chunk-wqvdwck9.js").then((m) => m.default),
|
|
86
|
+
migrate: () => import("./chunk-9by912e9.js").then((m) => m.default),
|
|
87
|
+
seed: () => import("./chunk-rg3jrfgg.js").then((m) => m.default),
|
|
88
|
+
generate: () => import("./chunk-g17v7yfr.js").then((m) => m.default),
|
|
89
|
+
plugin: () => import("./chunk-v0nazhmk.js").then((m) => m.default),
|
|
90
|
+
doctor: () => import("./chunk-rjvcp6ph.js").then((m) => m.default),
|
|
91
|
+
dev: () => import("./chunk-y4e9twg2.js").then((m) => m.default)
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
if (__require.main == __require.module) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_picocolors
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-f3dg5dq4.js";
|
|
4
4
|
import {
|
|
5
5
|
Gt,
|
|
6
6
|
R,
|
|
7
7
|
Wt,
|
|
8
8
|
be
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-gzdfc1ct.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig,
|
|
12
12
|
resolveConfigPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-jvv72110.js";
|
|
14
14
|
import {
|
|
15
15
|
defineCommand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-71wwx9vj.js";
|
|
17
17
|
import {
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_picocolors
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-f3dg5dq4.js";
|
|
4
4
|
import {
|
|
5
5
|
Gt,
|
|
6
6
|
R,
|
|
7
7
|
Vt,
|
|
8
8
|
Wt,
|
|
9
9
|
be
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-gzdfc1ct.js";
|
|
11
11
|
import {
|
|
12
12
|
loadConfig,
|
|
13
13
|
resolveConfigPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-jvv72110.js";
|
|
15
15
|
import {
|
|
16
16
|
defineCommand
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-71wwx9vj.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
20
|
} from "./chunk-6bywt602.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_picocolors
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-f3dg5dq4.js";
|
|
4
4
|
import {
|
|
5
5
|
Ct,
|
|
6
6
|
Gt,
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
Wt,
|
|
10
10
|
Zt,
|
|
11
11
|
be
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-gzdfc1ct.js";
|
|
13
13
|
import {
|
|
14
14
|
defineCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-71wwx9vj.js";
|
|
16
16
|
import {
|
|
17
17
|
logger
|
|
18
18
|
} from "./chunk-jq1drsen.js";
|