authhero 9.27.1 → 9.28.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/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +263 -116
- package/dist/authhero.d.ts +472 -261
- package/dist/authhero.mjs +20636 -17140
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +2 -2
- package/dist/types/helpers/action-verification.d.ts +12 -0
- package/dist/types/helpers/control-plane-client.d.ts +2 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/index.d.ts +464 -260
- package/dist/types/routes/auth-api/account.d.ts +2 -2
- package/dist/types/routes/auth-api/device.d.ts +12 -12
- package/dist/types/routes/auth-api/index.d.ts +40 -40
- package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
- package/dist/types/routes/auth-api/register/index.d.ts +2 -2
- package/dist/types/routes/auth-api/revoke.d.ts +2 -2
- package/dist/types/routes/auth-api/token.d.ts +12 -12
- package/dist/types/routes/management-api/action-generation.d.ts +135 -0
- package/dist/types/routes/management-api/actions.d.ts +204 -0
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +13 -13
- package/dist/types/routes/management-api/client-grants.d.ts +9 -9
- package/dist/types/routes/management-api/clients.d.ts +8 -8
- package/dist/types/routes/management-api/connections.d.ts +1 -1
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/failed-events.d.ts +4 -4
- package/dist/types/routes/management-api/flows.d.ts +8 -8
- package/dist/types/routes/management-api/forms.d.ts +144 -144
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/index.d.ts +433 -229
- package/dist/types/routes/management-api/keys.d.ts +8 -8
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +5 -5
- package/dist/types/routes/management-api/prompts.d.ts +6 -6
- package/dist/types/routes/management-api/roles.d.ts +1 -1
- package/dist/types/routes/management-api/tenant-operations.d.ts +5 -5
- package/dist/types/routes/management-api/tenants.d.ts +4 -4
- package/dist/types/routes/management-api/themes.d.ts +9 -9
- package/dist/types/routes/management-api/users.d.ts +26 -26
- package/dist/types/routes/universal-login/common.d.ts +12 -12
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/state-machines/login-session.d.ts +1 -1
- package/dist/types/tenant-members/wire.d.ts +9 -0
- package/dist/types/types/AuthHeroConfig.d.ts +5 -1
- package/dist/types/types/Bindings.d.ts +2 -1
- package/package.json +7 -6
|
@@ -243,7 +243,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
243
243
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
244
244
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
245
245
|
deployment_type?: "shared" | "wfp" | undefined;
|
|
246
|
-
provisioning_state?: "pending" | "
|
|
246
|
+
provisioning_state?: "pending" | "ready" | "failed" | undefined;
|
|
247
247
|
provisioning_error?: string | undefined;
|
|
248
248
|
provisioning_state_changed_at?: string | undefined;
|
|
249
249
|
bundle_configuration?: string | undefined;
|
|
@@ -483,7 +483,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
483
483
|
custom_login_page_preview?: string | undefined;
|
|
484
484
|
form_template?: string | undefined;
|
|
485
485
|
addons?: Record<string, any> | undefined;
|
|
486
|
-
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "
|
|
486
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "private_key_jwt" | "client_secret_jwt" | undefined;
|
|
487
487
|
client_metadata?: Record<string, string> | undefined;
|
|
488
488
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
489
489
|
mobile?: Record<string, any> | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function normalizeActionTrigger(id: string): string;
|
|
2
|
+
export interface ActionVerification {
|
|
3
|
+
valid: boolean;
|
|
4
|
+
errors: string[];
|
|
5
|
+
}
|
|
6
|
+
/** Static checks only: never evaluate untrusted code in the API process. */
|
|
7
|
+
export declare function verifyActionCode(code: string, triggers: readonly {
|
|
8
|
+
id: string;
|
|
9
|
+
}[]): ActionVerification;
|
|
10
|
+
export declare function requireVerifiedAction(code: string, triggers?: readonly {
|
|
11
|
+
id: string;
|
|
12
|
+
}[]): void;
|
|
@@ -30,6 +30,8 @@ export interface ControlPlaneResponse {
|
|
|
30
30
|
data: unknown;
|
|
31
31
|
/** The raw response body, for callers that tell plain-text answers apart. */
|
|
32
32
|
text?: string;
|
|
33
|
+
/** The response headers, for callers that read a structured signal. */
|
|
34
|
+
headers?: Headers;
|
|
33
35
|
}
|
|
34
36
|
export interface ControlPlaneClient {
|
|
35
37
|
/**
|
|
@@ -26,8 +26,8 @@ export declare const dcrRequestSchema: z.ZodObject<{
|
|
|
26
26
|
none: "none";
|
|
27
27
|
client_secret_post: "client_secret_post";
|
|
28
28
|
client_secret_basic: "client_secret_basic";
|
|
29
|
-
client_secret_jwt: "client_secret_jwt";
|
|
30
29
|
private_key_jwt: "private_key_jwt";
|
|
30
|
+
client_secret_jwt: "client_secret_jwt";
|
|
31
31
|
}>>;
|
|
32
32
|
jwks_uri: z.ZodOptional<z.ZodString>;
|
|
33
33
|
jwks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -14,9 +14,9 @@ export declare const USERINFO_RESERVED_CLAIMS: readonly ["iss", "sub", "aud", "e
|
|
|
14
14
|
* vendor/tenant for downstream APIs while `sub` stays `auth-service`.
|
|
15
15
|
* Client-bound mints keep `azp` locked (see below).
|
|
16
16
|
*/
|
|
17
|
-
export declare const SERVICE_TOKEN_RESERVED_CLAIMS: ("
|
|
17
|
+
export declare const SERVICE_TOKEN_RESERVED_CLAIMS: ("scope" | "client_id" | "sid" | "tenant_id" | "sub" | "org_name" | "jti" | "exp" | "iat" | "org_id" | "iss" | "aud" | "auth_time" | "acr" | "amr" | "gty" | "permissions" | "nbf" | "act" | "requested_userinfo_claims")[];
|
|
18
18
|
/** Client-bound mints: `azp` must stay the registered client id. */
|
|
19
|
-
export declare const CLIENT_SERVICE_TOKEN_RESERVED_CLAIMS: ("
|
|
19
|
+
export declare const CLIENT_SERVICE_TOKEN_RESERVED_CLAIMS: ("scope" | "client_id" | "sid" | "tenant_id" | "sub" | "org_name" | "jti" | "exp" | "iat" | "org_id" | "iss" | "aud" | "auth_time" | "acr" | "amr" | "azp" | "gty" | "permissions" | "nbf" | "act" | "requested_userinfo_claims")[];
|
|
20
20
|
export type AccessTokenReservedClaim = (typeof ACCESS_TOKEN_RESERVED_CLAIMS)[number];
|
|
21
21
|
export type IdTokenReservedClaim = (typeof ID_TOKEN_RESERVED_CLAIMS)[number];
|
|
22
22
|
/**
|