@absolutejs/auth 0.65.6 → 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.map +2 -2
- 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 +469 -446
- package/dist/index.js.map +46 -46
- 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 +469 -446
- package/dist/server.js.map +46 -46
- 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
package/dist/agents/context.d.ts
CHANGED
|
@@ -11,36 +11,23 @@ export declare const agentAuthChallenge: ({ config, error, requiredScopes }: {
|
|
|
11
11
|
requiredScopes?: string[];
|
|
12
12
|
}) => string;
|
|
13
13
|
export declare const agentResourceMetadataUrl: (config: AgentAuthConfig) => string;
|
|
14
|
-
export declare const agentAuthContextPlugin: (config?: AgentAuthConfig) => Elysia<"", {
|
|
14
|
+
export declare const agentAuthContextPlugin: (config?: AgentAuthConfig) => Elysia<"", "local", {
|
|
15
15
|
decorator: {};
|
|
16
16
|
store: {};
|
|
17
17
|
derive: {
|
|
18
18
|
readonly protectAgent: <AuthReturn, AuthFailReturn>(requiredScopes: string[], handleAuth: (principal: AgentPrincipal) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: AgentAuthFailure) => AuthFailReturn | Promise<AuthFailReturn>) => Promise<Response | AuthReturn | NonNullable<Awaited<AuthFailReturn>>>;
|
|
19
19
|
};
|
|
20
|
-
resolve: {};
|
|
21
20
|
}, {
|
|
22
21
|
typebox: {};
|
|
23
|
-
error:
|
|
22
|
+
error: [];
|
|
24
23
|
}, {
|
|
25
24
|
schema: {};
|
|
26
|
-
|
|
25
|
+
schemas: {};
|
|
27
26
|
macro: {};
|
|
28
27
|
macroFn: {};
|
|
29
28
|
parser: {};
|
|
30
|
-
response: import("elysia").ExtractErrorFromHandle<{
|
|
29
|
+
response: import("elysia/types").ExtractErrorFromHandle<{
|
|
31
30
|
readonly protectAgent: <AuthReturn, AuthFailReturn>(requiredScopes: string[], handleAuth: (principal: AgentPrincipal) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: AgentAuthFailure) => AuthFailReturn | Promise<AuthFailReturn>) => Promise<Response | AuthReturn | NonNullable<Awaited<AuthFailReturn>>>;
|
|
32
31
|
}>;
|
|
33
|
-
}, {},
|
|
34
|
-
derive: {};
|
|
35
|
-
resolve: {};
|
|
36
|
-
schema: {};
|
|
37
|
-
standaloneSchema: {};
|
|
38
|
-
response: {};
|
|
39
|
-
}, {
|
|
40
|
-
derive: {};
|
|
41
|
-
resolve: {};
|
|
42
|
-
schema: {};
|
|
43
|
-
standaloneSchema: {};
|
|
44
|
-
response: {};
|
|
45
|
-
}>;
|
|
32
|
+
}, {}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral>;
|
|
46
33
|
export {};
|
package/dist/agents/index.js
CHANGED
|
@@ -77,8 +77,8 @@ var DEFAULT_TOKEN_BYTES = 32, AES_KEY_BYTES = 32, AES_IV_BYTES = 12, HOTP_COUNTE
|
|
|
77
77
|
const digest = await crypto.subtle.digest("SHA-256", textEncoder.encode(input));
|
|
78
78
|
return new Uint8Array(digest);
|
|
79
79
|
}, hmacSha1 = async (key, message) => {
|
|
80
|
-
const cryptoKey = await crypto.subtle.importKey("raw", key, { hash: "SHA-1", name: "HMAC" }, false, ["sign"]);
|
|
81
|
-
const signature = await crypto.subtle.sign("HMAC", cryptoKey, message);
|
|
80
|
+
const cryptoKey = await crypto.subtle.importKey("raw", Uint8Array.from(key), { hash: "SHA-1", name: "HMAC" }, false, ["sign"]);
|
|
81
|
+
const signature = await crypto.subtle.sign("HMAC", cryptoKey, Uint8Array.from(message));
|
|
82
82
|
return new Uint8Array(signature);
|
|
83
83
|
}, counterToBytes = (counter) => {
|
|
84
84
|
const bytes = new Uint8Array(HOTP_COUNTER_BYTES);
|
|
@@ -13763,5 +13763,5 @@ export {
|
|
|
13763
13763
|
AGENT_CLAIM_GRANT_TYPE
|
|
13764
13764
|
};
|
|
13765
13765
|
|
|
13766
|
-
//# debugId=
|
|
13766
|
+
//# debugId=323598F91D83FA7764756E2164756E21
|
|
13767
13767
|
//# sourceMappingURL=index.js.map
|