authhero 9.4.1 → 9.6.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/authhero-widget.esm.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/assets/u/widget/p-c2744f87.entry.js +1 -0
- package/dist/authhero.cjs +144 -144
- package/dist/authhero.d.ts +241 -241
- package/dist/authhero.mjs +13388 -13286
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +7 -7
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/hooks/formhooks.d.ts +1 -1
- package/dist/types/i18n/index.d.ts +8 -0
- package/dist/types/index.d.ts +241 -241
- package/dist/types/routes/auth-api/index.d.ts +36 -36
- 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/token.d.ts +10 -10
- package/dist/types/routes/management-api/branding.d.ts +15 -15
- package/dist/types/routes/management-api/clients.d.ts +16 -16
- package/dist/types/routes/management-api/connections.d.ts +21 -21
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/failed-events.d.ts +1 -1
- 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/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/index.d.ts +213 -213
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/roles.d.ts +1 -1
- package/dist/types/routes/management-api/tenants.d.ts +28 -28
- package/dist/types/routes/management-api/themes.d.ts +6 -6
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/common.d.ts +16 -16
- package/dist/types/routes/universal-login/continue.d.ts +2 -2
- 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/impersonate.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +8 -8
- package/dist/types/routes/universal-login/u2-index.d.ts +7 -7
- package/dist/types/routes/universal-login/u2-routes.d.ts +7 -7
- package/dist/types/utils/locale.d.ts +29 -11
- package/package.json +6 -6
- package/dist/assets/u/widget/p-b5f14fa6.entry.js +0 -1
|
@@ -372,7 +372,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
372
372
|
active?: boolean | undefined;
|
|
373
373
|
} | undefined;
|
|
374
374
|
signup?: {
|
|
375
|
-
status?: "
|
|
375
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
376
376
|
verification?: {
|
|
377
377
|
active?: boolean | undefined;
|
|
378
378
|
} | undefined;
|
|
@@ -389,7 +389,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
389
389
|
active?: boolean | undefined;
|
|
390
390
|
} | undefined;
|
|
391
391
|
signup?: {
|
|
392
|
-
status?: "
|
|
392
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
393
393
|
} | undefined;
|
|
394
394
|
validation?: {
|
|
395
395
|
max_length?: number | undefined;
|
|
@@ -406,7 +406,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
406
406
|
active?: boolean | undefined;
|
|
407
407
|
} | undefined;
|
|
408
408
|
signup?: {
|
|
409
|
-
status?: "
|
|
409
|
+
status?: "required" | "optional" | "disabled" | undefined;
|
|
410
410
|
} | undefined;
|
|
411
411
|
} | undefined;
|
|
412
412
|
} | undefined;
|
|
@@ -419,7 +419,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
419
419
|
} | undefined;
|
|
420
420
|
} | undefined;
|
|
421
421
|
passkey_options?: {
|
|
422
|
-
challenge_ui?: "
|
|
422
|
+
challenge_ui?: "both" | "autofill" | "button" | undefined;
|
|
423
423
|
local_enrollment_enabled?: boolean | undefined;
|
|
424
424
|
progressive_enrollment_enabled?: boolean | undefined;
|
|
425
425
|
} | undefined;
|
|
@@ -471,7 +471,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
471
471
|
custom_login_page_preview?: string | undefined;
|
|
472
472
|
form_template?: string | undefined;
|
|
473
473
|
addons?: Record<string, any> | undefined;
|
|
474
|
-
token_endpoint_auth_method?: "none" | "
|
|
474
|
+
token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
|
|
475
475
|
client_metadata?: Record<string, string> | undefined;
|
|
476
476
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
477
477
|
mobile?: Record<string, any> | undefined;
|
|
@@ -554,8 +554,8 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
554
554
|
} | undefined;
|
|
555
555
|
authenticated_at?: string | undefined;
|
|
556
556
|
};
|
|
557
|
-
connectionType: "username" | "
|
|
558
|
-
authConnection: "username" | "
|
|
557
|
+
connectionType: "username" | "sms" | "email";
|
|
558
|
+
authConnection: "username" | "sms" | "email";
|
|
559
559
|
session_id: string | undefined;
|
|
560
560
|
authParams: {
|
|
561
561
|
client_id: string;
|
|
@@ -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>>;
|
|
@@ -32,7 +32,7 @@ export declare function isFormHook(hook: any): hook is {
|
|
|
32
32
|
enabled: boolean;
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
|
-
* Resolves a template string like "{{context.user.email}}", "{{user.id}}", or "{{
|
|
35
|
+
* Resolves a template string like "{{context.user.email}}", "{{user.id}}", or "{{fields.gender}}" to its actual value
|
|
36
36
|
*/
|
|
37
37
|
export declare function resolveTemplateField(field: string, context: ResolveContext): string | undefined;
|
|
38
38
|
/**
|
|
@@ -32,6 +32,14 @@ export declare const LOCALE_DISPLAY_NAMES: Record<(typeof locales)[number], stri
|
|
|
32
32
|
* raw code when the locale is not recognised.
|
|
33
33
|
*/
|
|
34
34
|
export declare function getLocaleDisplayName(lang: string): string;
|
|
35
|
+
/**
|
|
36
|
+
* The locales the language picker should offer. When the tenant restricts
|
|
37
|
+
* languages via `enabled_locales`, only supported locales on that list are
|
|
38
|
+
* offered (matched on the language subtag, so "nb-NO" enables "nb"). Falls
|
|
39
|
+
* back to every supported locale when the restriction is absent or matches
|
|
40
|
+
* none of them.
|
|
41
|
+
*/
|
|
42
|
+
export declare function getAvailableLocales(enabledLocales?: string[]): string[];
|
|
35
43
|
/**
|
|
36
44
|
* Create a screen-scoped translation object.
|
|
37
45
|
*
|