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.
Files changed (29) hide show
  1. package/dist/assets/u/widget/authhero-widget.esm.js +1 -1
  2. package/dist/assets/u/widget/p-c2744f87.entry.js +1 -0
  3. package/dist/authhero.cjs +137 -137
  4. package/dist/authhero.d.ts +260 -260
  5. package/dist/authhero.mjs +12575 -12555
  6. package/dist/tsconfig.types.tsbuildinfo +1 -1
  7. package/dist/types/authentication-flows/passwordless.d.ts +1 -1
  8. package/dist/types/hooks/formhooks.d.ts +1 -1
  9. package/dist/types/i18n/index.d.ts +8 -0
  10. package/dist/types/index.d.ts +260 -260
  11. package/dist/types/routes/auth-api/index.d.ts +22 -22
  12. package/dist/types/routes/auth-api/passwordless.d.ts +16 -16
  13. package/dist/types/routes/management-api/branding.d.ts +13 -13
  14. package/dist/types/routes/management-api/connections.d.ts +6 -6
  15. package/dist/types/routes/management-api/email-templates.d.ts +20 -20
  16. package/dist/types/routes/management-api/index.d.ts +220 -220
  17. package/dist/types/routes/management-api/organizations.d.ts +6 -6
  18. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  19. package/dist/types/routes/universal-login/common.d.ts +8 -8
  20. package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
  21. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  22. package/dist/types/routes/universal-login/index.d.ts +11 -11
  23. package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
  24. package/dist/types/routes/universal-login/u2-index.d.ts +7 -7
  25. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  26. package/dist/types/routes/universal-login/validate-email.d.ts +5 -5
  27. package/dist/types/utils/locale.d.ts +29 -11
  28. package/package.json +3 -3
  29. 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?: "button" | "both" | "autofill" | undefined;
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 "{{$form.gender}}" to its actual value
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
  *