authhero 9.4.0 → 9.5.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/p-c2744f87.entry.js +1 -0
- package/dist/authhero.cjs +137 -137
- package/dist/authhero.d.ts +260 -260
- package/dist/authhero.mjs +12575 -12555
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.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 +260 -260
- package/dist/types/routes/auth-api/index.d.ts +22 -22
- package/dist/types/routes/auth-api/passwordless.d.ts +16 -16
- package/dist/types/routes/management-api/branding.d.ts +13 -13
- package/dist/types/routes/management-api/connections.d.ts +6 -6
- package/dist/types/routes/management-api/email-templates.d.ts +20 -20
- package/dist/types/routes/management-api/index.d.ts +220 -220
- package/dist/types/routes/management-api/organizations.d.ts +6 -6
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/universal-login/common.d.ts +8 -8
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- package/dist/types/routes/universal-login/identifier.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +11 -11
- package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
- package/dist/types/routes/universal-login/u2-index.d.ts +7 -7
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/routes/universal-login/validate-email.d.ts +5 -5
- package/dist/types/utils/locale.d.ts +29 -11
- package/package.json +3 -3
- package/dist/assets/u/widget/p-b5f14fa6.entry.js +0 -1
|
@@ -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;
|
|
@@ -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
|
*
|