@absolutejs/auth 0.65.5 → 0.66.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/agents/context.d.ts +5 -18
- package/dist/agents/index.js +3 -3
- package/dist/agents/index.js.map +3 -3
- package/dist/agents/routes.d.ts +24 -56
- package/dist/apikeys/routes.d.ts +169 -78
- package/dist/authContext.d.ts +34 -79
- package/dist/authorization/protectPermission.d.ts +11 -23
- package/dist/cli/migrate.js +2 -2
- package/dist/cli/migrate.js.map +4 -4
- package/dist/compliance/routes.d.ts +179 -54
- package/dist/credentials/emailVerification.d.ts +173 -56
- package/dist/credentials/login.d.ts +192 -63
- package/dist/credentials/passwordReset.d.ts +171 -60
- package/dist/credentials/register.d.ts +182 -41
- package/dist/credentials/routes.d.ts +46 -36
- package/dist/htmx/configuredRoutes.d.ts +263 -114
- package/dist/htmx/routes.d.ts +261 -89
- package/dist/index.d.ts +663 -443
- package/dist/index.js +475 -448
- package/dist/index.js.map +48 -48
- package/dist/manifest.js +86 -4
- package/dist/manifest.js.map +3 -3
- package/dist/mfa/challenge.d.ts +189 -59
- package/dist/mfa/management.d.ts +179 -54
- package/dist/mfa/routes.d.ts +34 -40
- package/dist/mfa/sms.d.ts +187 -59
- package/dist/mfa/totp.d.ts +187 -57
- package/dist/oidc/routes.d.ts +73 -74
- package/dist/oidc/vciRoutes.d.ts +9 -45
- package/dist/organizations/routes.d.ts +215 -77
- package/dist/passwordless/routes.d.ts +22 -34
- package/dist/portal/routes.d.ts +162 -55
- package/dist/roles/routes.d.ts +198 -67
- package/dist/routes/authorize.d.ts +182 -90
- package/dist/routes/callback.d.ts +189 -38
- package/dist/routes/profile.d.ts +177 -51
- package/dist/routes/protectRoute.d.ts +11 -23
- package/dist/routes/refresh.d.ts +177 -51
- package/dist/routes/requireAuth.d.ts +9 -21
- package/dist/routes/revoke.d.ts +177 -51
- package/dist/routes/sessions.d.ts +187 -61
- package/dist/routes/signout.d.ts +174 -50
- package/dist/routes/stepUp.d.ts +11 -23
- package/dist/routes/userStatus.d.ts +174 -52
- package/dist/scim/routes.d.ts +208 -73
- package/dist/server.js +475 -448
- package/dist/server.js.map +48 -48
- package/dist/session/cleanup.d.ts +5 -18
- package/dist/session/state.d.ts +3 -23
- package/dist/sso/discoveryRoute.d.ts +158 -52
- package/dist/sso/oidcRoutes.d.ts +211 -59
- package/dist/sso/samlIdpRoutes.d.ts +175 -46
- package/dist/sso/samlRoutes.d.ts +217 -69
- package/dist/typebox.d.ts +4 -4
- package/dist/types.d.ts +3 -5
- package/dist/vault/index.js +3 -3
- package/dist/vault/index.js.map +3 -3
- package/dist/vc/statusListRoutes.d.ts +158 -52
- package/dist/vc/vpRoutes.d.ts +170 -66
- package/dist/webauthn/routes.d.ts +199 -66
- package/package.json +8 -120
|
@@ -10,43 +10,31 @@ type PermissionFailError = {
|
|
|
10
10
|
readonly code: 'Unauthorized';
|
|
11
11
|
readonly message: 'User is not authenticated';
|
|
12
12
|
};
|
|
13
|
-
export declare const protectPermissionPlugin: <UserType>({ authSessionStore, emit, hasPermission }: AuthorizationPluginProps<UserType>) => Elysia<"", {
|
|
13
|
+
export declare const protectPermissionPlugin: <UserType>({ authSessionStore, emit, hasPermission }: AuthorizationPluginProps<UserType>) => Elysia<"", "local", {
|
|
14
14
|
decorator: {};
|
|
15
15
|
store: {
|
|
16
16
|
session: import("..").SessionRecord<UserType>;
|
|
17
17
|
unregisteredSession: import("..").UnregisteredSessionRecord;
|
|
18
18
|
};
|
|
19
19
|
derive: {
|
|
20
|
-
readonly protectPermission: <AuthReturn, AuthFailReturn>(check: PermissionCheck, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: PermissionFailError) => AuthFailReturn) => Promise<AuthReturn | import("elysia").
|
|
20
|
+
readonly protectPermission: <AuthReturn, AuthFailReturn>(check: PermissionCheck, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: PermissionFailError) => AuthFailReturn) => Promise<AuthReturn | import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | NonNullable<AuthFailReturn> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | import("elysia").ElysiaStatus<"Forbidden", "Insufficient permissions", 403>>;
|
|
21
21
|
};
|
|
22
|
-
resolve: {};
|
|
23
22
|
}, {
|
|
24
23
|
typebox: {};
|
|
25
|
-
error:
|
|
24
|
+
error: [];
|
|
26
25
|
}, {
|
|
27
|
-
schema:
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
schema: {};
|
|
27
|
+
schemas: import("elysia").UnwrapRoute<{
|
|
28
|
+
cookie: import("elysia").TCookieObject<{
|
|
29
|
+
user_session_id: import("typebox").TOptional<import("typebox").TTemplateLiteral<"^.*-.*-.*-.*-.*$">>;
|
|
30
30
|
}>;
|
|
31
|
+
schema: "merge";
|
|
31
32
|
}, {}, "">;
|
|
32
|
-
standaloneSchema: {};
|
|
33
33
|
macro: {};
|
|
34
34
|
macroFn: {};
|
|
35
35
|
parser: {};
|
|
36
|
-
response: import("elysia").ExtractErrorFromHandle<{
|
|
37
|
-
readonly protectPermission: <AuthReturn, AuthFailReturn>(check: PermissionCheck, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: PermissionFailError) => AuthFailReturn) => Promise<AuthReturn | import("elysia").
|
|
36
|
+
response: import("elysia/types").ExtractErrorFromHandle<{
|
|
37
|
+
readonly protectPermission: <AuthReturn, AuthFailReturn>(check: PermissionCheck, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: PermissionFailError) => AuthFailReturn) => Promise<AuthReturn | import("elysia").ElysiaStatus<"Bad Request", "Cookies are missing", 400> | NonNullable<AuthFailReturn> | import("elysia").ElysiaStatus<"Unauthorized", "User is not authenticated", 401> | import("elysia").ElysiaStatus<"Forbidden", "Insufficient permissions", 403>>;
|
|
38
38
|
}>;
|
|
39
|
-
}, {},
|
|
40
|
-
derive: {};
|
|
41
|
-
resolve: {};
|
|
42
|
-
schema: {};
|
|
43
|
-
standaloneSchema: {};
|
|
44
|
-
response: {};
|
|
45
|
-
}, {
|
|
46
|
-
derive: {};
|
|
47
|
-
resolve: {};
|
|
48
|
-
schema: {};
|
|
49
|
-
standaloneSchema: {};
|
|
50
|
-
response: {};
|
|
51
|
-
}>;
|
|
39
|
+
}, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral>;
|
|
52
40
|
export {};
|
package/dist/cli/migrate.js
CHANGED
|
@@ -524,7 +524,7 @@ var warrantsTable = pgTable6("auth_fga_warrants", {
|
|
|
524
524
|
|
|
525
525
|
// src/linkedProviders/neonStores.ts
|
|
526
526
|
import { neon as neon3 } from "@neondatabase/serverless";
|
|
527
|
-
import { desc as desc5, eq as eq7 } from "drizzle-orm";
|
|
527
|
+
import { desc as desc5, eq as eq7, sql as drizzleSql } from "drizzle-orm";
|
|
528
528
|
import { drizzle as drizzle2 } from "drizzle-orm/neon-http";
|
|
529
529
|
import { jsonb as jsonb3, pgTable as pgTable7, text as text3, timestamp, varchar as varchar7 } from "drizzle-orm/pg-core";
|
|
530
530
|
|
|
@@ -3568,5 +3568,5 @@ var main = async () => {
|
|
|
3568
3568
|
};
|
|
3569
3569
|
await main();
|
|
3570
3570
|
|
|
3571
|
-
//# debugId=
|
|
3571
|
+
//# debugId=D09906FCB42A8F5264756E2164756E21
|
|
3572
3572
|
//# sourceMappingURL=migrate.js.map
|