authhero 8.25.0 → 8.25.2

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 (48) hide show
  1. package/dist/assets/u/css/tailwind.css +1 -1
  2. package/dist/authhero.cjs +139 -139
  3. package/dist/authhero.css +1 -1
  4. package/dist/authhero.d.ts +251 -233
  5. package/dist/authhero.mjs +11214 -13235
  6. package/dist/tailwind.css +1 -1
  7. package/dist/tsconfig.types.tsbuildinfo +1 -1
  8. package/dist/types/authentication-flows/passwordless.d.ts +4 -4
  9. package/dist/types/components/AuthCard.d.ts +17 -0
  10. package/dist/types/components/PasswordField.d.ts +18 -0
  11. package/dist/types/components/auth-form-styles.d.ts +39 -0
  12. package/dist/types/components/auth-forms.render.test.d.ts +1 -0
  13. package/dist/types/components/ui/input.d.ts +1 -0
  14. package/dist/types/index.d.ts +230 -230
  15. package/dist/types/routes/auth-api/index.d.ts +42 -42
  16. package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
  17. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  18. package/dist/types/routes/auth-api/revoke.d.ts +8 -8
  19. package/dist/types/routes/auth-api/token.d.ts +22 -22
  20. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  21. package/dist/types/routes/management-api/actions.d.ts +1 -1
  22. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  23. package/dist/types/routes/management-api/branding.d.ts +1 -1
  24. package/dist/types/routes/management-api/clients.d.ts +10 -10
  25. package/dist/types/routes/management-api/connections.d.ts +6 -6
  26. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  27. package/dist/types/routes/management-api/forms.d.ts +126 -126
  28. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  29. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  30. package/dist/types/routes/management-api/index.d.ts +183 -183
  31. package/dist/types/routes/management-api/logs.d.ts +4 -4
  32. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  33. package/dist/types/routes/management-api/organizations.d.ts +4 -4
  34. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  35. package/dist/types/routes/management-api/roles.d.ts +1 -1
  36. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  37. package/dist/types/routes/management-api/tenants.d.ts +8 -8
  38. package/dist/types/routes/management-api/users.d.ts +2 -2
  39. package/dist/types/routes/proxy-control-plane/index.d.ts +7 -1
  40. package/dist/types/routes/proxy-control-plane/verify.d.ts +13 -1
  41. package/dist/types/routes/universal-login/common.d.ts +4 -4
  42. package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
  43. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  44. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  45. package/dist/types/styles/tailwind.d.ts +1 -1
  46. package/dist/types/types/AuthHeroConfig.d.ts +6 -1
  47. package/dist/types/types/IdToken.d.ts +4 -4
  48. package/package.json +3 -3
@@ -414,7 +414,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
414
414
  } | undefined;
415
415
  } | undefined;
416
416
  passkey_options?: {
417
- challenge_ui?: "both" | "autofill" | "button" | undefined;
417
+ challenge_ui?: "button" | "both" | "autofill" | undefined;
418
418
  local_enrollment_enabled?: boolean | undefined;
419
419
  progressive_enrollment_enabled?: boolean | undefined;
420
420
  } | undefined;
@@ -466,7 +466,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
466
466
  custom_login_page_preview?: string | undefined;
467
467
  form_template?: string | undefined;
468
468
  addons?: Record<string, any> | undefined;
469
- token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
469
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
470
470
  client_metadata?: Record<string, string> | undefined;
471
471
  hide_sign_up_disabled_error?: boolean | undefined;
472
472
  mobile?: Record<string, any> | undefined;
@@ -549,8 +549,8 @@ export declare function passwordlessGrantUser(ctx: Context<{
549
549
  } | undefined;
550
550
  authenticated_at?: string | undefined;
551
551
  };
552
- connectionType: "email" | "username" | "sms";
553
- authConnection: "email" | "username" | "sms";
552
+ connectionType: "username" | "sms" | "email";
553
+ authConnection: "username" | "sms" | "email";
554
554
  session_id: string | undefined;
555
555
  authParams: {
556
556
  client_id: string;
@@ -0,0 +1,17 @@
1
+ import type { FC, Child, PropsWithChildren } from "hono/jsx";
2
+ import { Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import type { AuthFormStyles } from "./auth-form-styles";
4
+ type Props = PropsWithChildren<{
5
+ styles: AuthFormStyles;
6
+ theme?: Theme | null;
7
+ branding?: Branding | null;
8
+ title: Child;
9
+ description: Child;
10
+ className?: string;
11
+ }>;
12
+ /**
13
+ * The shared page shell for the universal-login auth screens: the themed card,
14
+ * optional logo, title, and description, with the form passed as children.
15
+ */
16
+ declare const AuthCard: FC<Props>;
17
+ export default AuthCard;
@@ -0,0 +1,18 @@
1
+ import type { FC } from "hono/jsx";
2
+ type Props = {
3
+ id: string;
4
+ name: string;
5
+ placeholder: string;
6
+ error?: boolean;
7
+ style?: Record<string, string | number>;
8
+ };
9
+ /**
10
+ * A themed password input with a client-side show/hide toggle.
11
+ *
12
+ * Emits the `data-password-toggle` / `data-password-input` /
13
+ * `data-password-toggle-btn` / `data-show-icon` / `data-hide-icon` hooks that
14
+ * the client-side `PasswordToggle` component wires up. Shared by the
15
+ * enter-password, reset-password, and sign-up screens.
16
+ */
17
+ declare const PasswordField: FC<Props>;
18
+ export default PasswordField;
@@ -0,0 +1,39 @@
1
+ import { Theme, Branding } from "@authhero/adapter-interfaces";
2
+ type Style = Record<string, string | number>;
3
+ /**
4
+ * Derived theme/branding styles shared by the universal-login auth forms.
5
+ *
6
+ * Every field is computed exactly as the forms did inline, so
7
+ * {@link getThemeStyles} is a drop-in replacement that renders byte-identically.
8
+ * `inputStyle` depends on whether the form is in an error state, so `error` is
9
+ * passed in.
10
+ */
11
+ export interface AuthFormStyles {
12
+ primaryColor: string;
13
+ primaryButtonLabel: string;
14
+ bodyText: string;
15
+ inputBackground: string;
16
+ inputBorder: string;
17
+ inputText: string;
18
+ errorColor: string;
19
+ widgetBackground: string;
20
+ widgetBorder: string;
21
+ borderRadius: number;
22
+ inputBorderRadius: number;
23
+ buttonBorderRadius: number;
24
+ showShadow: boolean;
25
+ titleSize: number;
26
+ titleBold: boolean;
27
+ bodySize: number;
28
+ cardStyle: Style;
29
+ titleStyle: Style;
30
+ bodyStyle: Style;
31
+ inputStyle: Style;
32
+ buttonStyle: Style;
33
+ logoPosition: string;
34
+ logoAlignmentClass: string;
35
+ logoUrl?: string;
36
+ showLogo: string | false | undefined;
37
+ }
38
+ export declare function getThemeStyles(theme?: Theme | null, branding?: Branding | null, error?: string): AuthFormStyles;
39
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -10,6 +10,7 @@ export interface InputProps {
10
10
  disabled?: boolean;
11
11
  error?: boolean;
12
12
  style?: Record<string, string | number>;
13
+ "data-password-input"?: string;
13
14
  }
14
15
  declare const Input: FC<InputProps>;
15
16
  export default Input;