authhero 8.22.1 → 8.23.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 +106 -106
- package/dist/authhero.d.ts +394 -279
- package/dist/authhero.mjs +9736 -9566
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +14 -6
- package/dist/types/helpers/backchannel-logout.d.ts +19 -0
- package/dist/types/helpers/client.d.ts +10 -1
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/index.d.ts +384 -278
- package/dist/types/routes/auth-api/account.d.ts +2 -2
- package/dist/types/routes/auth-api/authorize.d.ts +14 -14
- package/dist/types/routes/auth-api/index.d.ts +48 -44
- package/dist/types/routes/auth-api/oidc-logout.d.ts +2 -2
- package/dist/types/routes/auth-api/passwordless.d.ts +16 -16
- package/dist/types/routes/auth-api/register/index.d.ts +2 -2
- package/dist/types/routes/auth-api/revoke.d.ts +6 -6
- package/dist/types/routes/auth-api/well-known.d.ts +6 -2
- package/dist/types/routes/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/actions.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +1 -1
- package/dist/types/routes/management-api/clients.d.ts +76 -24
- package/dist/types/routes/management-api/connections.d.ts +21 -21
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/flows.d.ts +7 -7
- package/dist/types/routes/management-api/forms.d.ts +126 -126
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/index.d.ts +329 -227
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/organizations.d.ts +2 -2
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/roles.d.ts +50 -0
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenants.d.ts +6 -6
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/common.d.ts +28 -12
- package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
- package/dist/types/routes/universal-login/identifier.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +2 -2
- 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/types/IdToken.d.ts +2 -2
- package/dist/types/utils/jwks.d.ts +4 -4
- package/dist/types/variables.d.ts +8 -0
- package/package.json +6 -6
|
@@ -367,7 +367,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
367
367
|
active?: boolean | undefined;
|
|
368
368
|
} | undefined;
|
|
369
369
|
signup?: {
|
|
370
|
-
status?: "
|
|
370
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
371
371
|
verification?: {
|
|
372
372
|
active?: boolean | undefined;
|
|
373
373
|
} | undefined;
|
|
@@ -377,14 +377,14 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
377
377
|
} | undefined;
|
|
378
378
|
unique?: boolean | undefined;
|
|
379
379
|
profile_required?: boolean | undefined;
|
|
380
|
-
verification_method?: "
|
|
380
|
+
verification_method?: "code" | "link" | undefined;
|
|
381
381
|
} | undefined;
|
|
382
382
|
username?: {
|
|
383
383
|
identifier?: {
|
|
384
384
|
active?: boolean | undefined;
|
|
385
385
|
} | undefined;
|
|
386
386
|
signup?: {
|
|
387
|
-
status?: "
|
|
387
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
388
388
|
} | undefined;
|
|
389
389
|
validation?: {
|
|
390
390
|
max_length?: number | undefined;
|
|
@@ -401,7 +401,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
401
401
|
active?: boolean | undefined;
|
|
402
402
|
} | undefined;
|
|
403
403
|
signup?: {
|
|
404
|
-
status?: "
|
|
404
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
405
405
|
} | undefined;
|
|
406
406
|
} | undefined;
|
|
407
407
|
} | undefined;
|
|
@@ -448,7 +448,15 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
448
448
|
allowed_clients?: string[] | undefined;
|
|
449
449
|
allowed_logout_urls?: string[] | undefined;
|
|
450
450
|
session_transfer?: Record<string, any> | undefined;
|
|
451
|
-
oidc_logout?:
|
|
451
|
+
oidc_logout?: {
|
|
452
|
+
[x: string]: unknown;
|
|
453
|
+
backchannel_logout_urls?: string[] | undefined;
|
|
454
|
+
backchannel_logout_initiators?: {
|
|
455
|
+
[x: string]: unknown;
|
|
456
|
+
mode?: "custom" | "all" | undefined;
|
|
457
|
+
selected_initiators?: string[] | undefined;
|
|
458
|
+
} | undefined;
|
|
459
|
+
} | undefined;
|
|
452
460
|
grant_types?: string[] | undefined;
|
|
453
461
|
jwt_configuration?: Record<string, any> | undefined;
|
|
454
462
|
signing_keys?: Record<string, any>[] | undefined;
|
|
@@ -458,7 +466,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
458
466
|
custom_login_page_preview?: string | undefined;
|
|
459
467
|
form_template?: string | undefined;
|
|
460
468
|
addons?: Record<string, any> | undefined;
|
|
461
|
-
token_endpoint_auth_method?: "
|
|
469
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
462
470
|
client_metadata?: Record<string, string> | undefined;
|
|
463
471
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
464
472
|
mobile?: Record<string, any> | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Context } from "hono";
|
|
2
|
+
import { Session } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { Bindings, Variables } from "../types";
|
|
4
|
+
type BackchannelSession = Pick<Session, "id" | "user_id" | "clients">;
|
|
5
|
+
/**
|
|
6
|
+
* Notify every RP that participated in `session` and registered
|
|
7
|
+
* `oidc_logout.backchannel_logout_urls` that the session has ended, by
|
|
8
|
+
* POSTing a signed logout token (§2.5) to each registered URL.
|
|
9
|
+
*
|
|
10
|
+
* Delivery is best-effort and runs in the background (`waitUntil`): a dead RP
|
|
11
|
+
* endpoint must never block or fail the logout that triggered it. Call this
|
|
12
|
+
* AFTER the session revocation has committed, so an RP that reacts to the
|
|
13
|
+
* token by hitting the OP observes the session as already gone.
|
|
14
|
+
*/
|
|
15
|
+
export declare function sendBackchannelLogout(ctx: Context<{
|
|
16
|
+
Bindings: Bindings;
|
|
17
|
+
Variables: Variables;
|
|
18
|
+
}>, tenant_id: string, session: BackchannelSession): void;
|
|
19
|
+
export {};
|
|
@@ -53,7 +53,16 @@ export declare const enrichedClientSchema: z.ZodObject<{
|
|
|
53
53
|
allowed_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
54
54
|
allowed_logout_urls: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
55
55
|
session_transfer: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
56
|
-
oidc_logout: z.ZodOptional<z.ZodDefault<z.
|
|
56
|
+
oidc_logout: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
57
|
+
backchannel_logout_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
58
|
+
backchannel_logout_initiators: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
60
|
+
custom: "custom";
|
|
61
|
+
all: "all";
|
|
62
|
+
}>>;
|
|
63
|
+
selected_initiators: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
+
}, z.core.$loose>>;
|
|
65
|
+
}, z.core.$loose>>>;
|
|
57
66
|
grant_types: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
58
67
|
jwt_configuration: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
59
68
|
signing_keys: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
|
|
@@ -24,10 +24,10 @@ export declare const dcrRequestSchema: z.ZodObject<{
|
|
|
24
24
|
response_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
25
|
token_endpoint_auth_method: z.ZodOptional<z.ZodEnum<{
|
|
26
26
|
none: "none";
|
|
27
|
+
private_key_jwt: "private_key_jwt";
|
|
27
28
|
client_secret_post: "client_secret_post";
|
|
28
29
|
client_secret_basic: "client_secret_basic";
|
|
29
30
|
client_secret_jwt: "client_secret_jwt";
|
|
30
|
-
private_key_jwt: "private_key_jwt";
|
|
31
31
|
}>>;
|
|
32
32
|
jwks_uri: z.ZodOptional<z.ZodString>;
|
|
33
33
|
jwks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|