@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
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { CredentialsFor, CustomProviderCredentials, NonEmptyArray, OAuth2Client, OAuth2TokenResponse, ProviderConfig, ProviderOption, ProvidersMap } from 'citra';
|
|
2
|
-
import { Cookie, status as statusType, redirect as redirectType } from 'elysia';
|
|
3
|
-
import { ElysiaCustomStatusResponse } from 'elysia/error';
|
|
4
|
-
import type { StatusMap } from 'elysia/utils';
|
|
2
|
+
import { Cookie, type ElysiaStatus, type StatusMap, status as statusType, redirect as redirectType } from 'elysia';
|
|
5
3
|
import type { ApiKeysConfig } from './apikeys/config';
|
|
6
4
|
import type { AgentAuthConfig } from './agents/config';
|
|
7
5
|
import type { AuditConfig } from './audit/config';
|
|
@@ -129,7 +127,7 @@ export type ResolvedOAuthAuthorization = {
|
|
|
129
127
|
expiresAt?: number;
|
|
130
128
|
tokenType?: string;
|
|
131
129
|
};
|
|
132
|
-
export type StatusReturn = Pick<
|
|
130
|
+
export type StatusReturn = Pick<ElysiaStatus<number | keyof StatusMap, unknown>, 'code' | 'response'>;
|
|
133
131
|
export type OnNewUser<UserType> = (userIdentity: JsonObject) => UserType | StatusReturn | Response | Promise<UserType | StatusReturn | Response>;
|
|
134
132
|
export type GetUser<UserType> = (userIdentity: JsonObject) => UserType | StatusReturn | Response | null | undefined | Promise<UserType | StatusReturn | Response | null | undefined>;
|
|
135
133
|
export type CallbackCookie = Record<string, Cookie<unknown>> & {
|
|
@@ -434,5 +432,5 @@ export type JsonValue = JsonPrimitive | JsonObject | JsonValue[];
|
|
|
434
432
|
export type JsonObject = {
|
|
435
433
|
[key: string]: JsonValue;
|
|
436
434
|
};
|
|
437
|
-
export declare
|
|
435
|
+
export declare const isJsonValue: (value: unknown) => value is JsonValue;
|
|
438
436
|
export declare const parseJsonObject: (value: unknown) => JsonObject;
|
package/dist/vault/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);
|
|
@@ -11897,5 +11897,5 @@ export {
|
|
|
11897
11897
|
createInMemoryVaultStore
|
|
11898
11898
|
};
|
|
11899
11899
|
|
|
11900
|
-
//# debugId=
|
|
11900
|
+
//# debugId=A59F5C5C4E886DF264756E2164756E21
|
|
11901
11901
|
//# sourceMappingURL=index.js.map
|