authhero 9.30.0 → 9.33.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 (67) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +73 -73
  3. package/dist/authhero.d.ts +498 -270
  4. package/dist/authhero.mjs +11270 -10741
  5. package/dist/mfa-attempts-DNgUKmta.js +275 -0
  6. package/dist/{mfa-attempts-CQiD6hxP.mjs → mfa-attempts-dhkGMzI5.mjs} +6287 -5852
  7. package/dist/{passkey-enrollment-D_WVyvv2.js → passkey-enrollment-B_o8pQ1z.js} +1 -1
  8. package/dist/tsconfig.types.tsbuildinfo +1 -1
  9. package/dist/types/authentication-flows/common.d.ts +12 -1
  10. package/dist/types/authentication-flows/passwordless.d.ts +16 -5
  11. package/dist/types/authentication-flows/refresh-token.d.ts +1 -0
  12. package/dist/types/helpers/cimd.d.ts +8 -0
  13. package/dist/types/helpers/client.d.ts +17 -1
  14. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  15. package/dist/types/helpers/login-session-tenant.d.ts +22 -0
  16. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  17. package/dist/types/helpers/session-transfer.d.ts +158 -0
  18. package/dist/types/hooks/lifecycle-codehooks.d.ts +22 -0
  19. package/dist/types/hooks/pre-account-action.d.ts +65 -0
  20. package/dist/types/index.d.ts +397 -267
  21. package/dist/types/routes/auth-api/authorize.d.ts +6 -0
  22. package/dist/types/routes/auth-api/index.d.ts +44 -27
  23. package/dist/types/routes/auth-api/oidc-logout.d.ts +3 -3
  24. package/dist/types/routes/auth-api/passwordless.d.ts +12 -12
  25. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  26. package/dist/types/routes/auth-api/token.d.ts +21 -10
  27. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  28. package/dist/types/routes/management-api/actions.d.ts +1 -1
  29. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  30. package/dist/types/routes/management-api/branding.d.ts +14 -14
  31. package/dist/types/routes/management-api/clients.d.ts +86 -18
  32. package/dist/types/routes/management-api/connections.d.ts +7 -7
  33. package/dist/types/routes/management-api/email-templates.d.ts +18 -18
  34. package/dist/types/routes/management-api/failed-events.d.ts +2 -2
  35. package/dist/types/routes/management-api/forms.d.ts +144 -144
  36. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  37. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  38. package/dist/types/routes/management-api/hooks.d.ts +7 -7
  39. package/dist/types/routes/management-api/index.d.ts +368 -255
  40. package/dist/types/routes/management-api/keys.d.ts +8 -8
  41. package/dist/types/routes/management-api/logs.d.ts +4 -4
  42. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  43. package/dist/types/routes/management-api/organizations.d.ts +2 -2
  44. package/dist/types/routes/management-api/prompts.d.ts +6 -6
  45. package/dist/types/routes/management-api/refresh_tokens.d.ts +5 -0
  46. package/dist/types/routes/management-api/sessions.d.ts +5 -0
  47. package/dist/types/routes/management-api/tenant-operations.d.ts +9 -9
  48. package/dist/types/routes/management-api/tenants.d.ts +7 -7
  49. package/dist/types/routes/management-api/themes.d.ts +9 -9
  50. package/dist/types/routes/management-api/users.d.ts +42 -12
  51. package/dist/types/routes/saml/index.d.ts +6 -6
  52. package/dist/types/routes/saml/samlp.d.ts +6 -6
  53. package/dist/types/routes/universal-login/common.d.ts +39 -12
  54. package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
  55. package/dist/types/routes/universal-login/impersonate.d.ts +2 -2
  56. package/dist/types/routes/universal-login/index.d.ts +2 -2
  57. package/dist/types/routes/universal-login/screens/account-helpers.d.ts +27 -1
  58. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  59. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  60. package/dist/types/state-machines/login-session.d.ts +2 -0
  61. package/dist/types/types/GrantFlowResult.d.ts +13 -0
  62. package/dist/types/types/Hooks.d.ts +71 -0
  63. package/dist/types/types/Variables.d.ts +12 -1
  64. package/dist/types/utils/cookies.d.ts +15 -0
  65. package/dist/types/utils/session-transfer-token.d.ts +56 -0
  66. package/package.json +6 -6
  67. package/dist/mfa-attempts-DwATCXqC.js +0 -254
@@ -779,6 +779,11 @@ export declare const userRoutes: OpenAPIHono<{
779
779
  type?: string | undefined;
780
780
  }[];
781
781
  } | undefined;
782
+ session_transfer?: {
783
+ client_id: string;
784
+ family_id: string;
785
+ cascade_revocation: boolean;
786
+ } | undefined;
782
787
  }[] | {
783
788
  start: number;
784
789
  limit: number;
@@ -811,6 +816,11 @@ export declare const userRoutes: OpenAPIHono<{
811
816
  type?: string | undefined;
812
817
  }[];
813
818
  } | undefined;
819
+ session_transfer?: {
820
+ client_id: string;
821
+ family_id: string;
822
+ cascade_revocation: boolean;
823
+ } | undefined;
814
824
  }[];
815
825
  total?: number | undefined;
816
826
  next?: string | undefined;
@@ -843,6 +853,11 @@ export declare const userRoutes: OpenAPIHono<{
843
853
  type?: string | undefined;
844
854
  }[];
845
855
  } | undefined;
856
+ session_transfer?: {
857
+ client_id: string;
858
+ family_id: string;
859
+ cascade_revocation: boolean;
860
+ } | undefined;
846
861
  }[];
847
862
  next?: string | undefined;
848
863
  };
@@ -875,11 +890,11 @@ export declare const userRoutes: OpenAPIHono<{
875
890
  };
876
891
  };
877
892
  output: {
878
- user_id: string;
879
- id: string;
880
- created_at: string;
881
893
  client_id: string;
894
+ created_at: string;
882
895
  rotating: boolean;
896
+ id: string;
897
+ user_id: string;
883
898
  login_id: string;
884
899
  device: {
885
900
  initial_user_agent: string;
@@ -893,6 +908,11 @@ export declare const userRoutes: OpenAPIHono<{
893
908
  audience: string;
894
909
  scopes: string;
895
910
  }[];
911
+ session_transfer?: {
912
+ client_id: string;
913
+ family_id: string;
914
+ cascade_revocation: boolean;
915
+ } | undefined;
896
916
  expires_at?: string | undefined;
897
917
  session_id?: string | undefined;
898
918
  auth_connection?: string | undefined;
@@ -909,11 +929,11 @@ export declare const userRoutes: OpenAPIHono<{
909
929
  limit: number;
910
930
  length: number;
911
931
  tokens: {
912
- user_id: string;
913
- id: string;
914
- created_at: string;
915
932
  client_id: string;
933
+ created_at: string;
916
934
  rotating: boolean;
935
+ id: string;
936
+ user_id: string;
917
937
  login_id: string;
918
938
  device: {
919
939
  initial_user_agent: string;
@@ -927,6 +947,11 @@ export declare const userRoutes: OpenAPIHono<{
927
947
  audience: string;
928
948
  scopes: string;
929
949
  }[];
950
+ session_transfer?: {
951
+ client_id: string;
952
+ family_id: string;
953
+ cascade_revocation: boolean;
954
+ } | undefined;
930
955
  expires_at?: string | undefined;
931
956
  session_id?: string | undefined;
932
957
  auth_connection?: string | undefined;
@@ -943,11 +968,11 @@ export declare const userRoutes: OpenAPIHono<{
943
968
  next?: string | undefined;
944
969
  } | {
945
970
  tokens: {
946
- user_id: string;
947
- id: string;
948
- created_at: string;
949
971
  client_id: string;
972
+ created_at: string;
950
973
  rotating: boolean;
974
+ id: string;
975
+ user_id: string;
951
976
  login_id: string;
952
977
  device: {
953
978
  initial_user_agent: string;
@@ -961,6 +986,11 @@ export declare const userRoutes: OpenAPIHono<{
961
986
  audience: string;
962
987
  scopes: string;
963
988
  }[];
989
+ session_transfer?: {
990
+ client_id: string;
991
+ family_id: string;
992
+ cascade_revocation: boolean;
993
+ } | undefined;
964
994
  expires_at?: string | undefined;
965
995
  session_id?: string | undefined;
966
996
  auth_connection?: string | undefined;
@@ -1021,7 +1051,7 @@ export declare const userRoutes: OpenAPIHono<{
1021
1051
  };
1022
1052
  };
1023
1053
  output: {
1024
- type: "gd_send_sms" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "cfgdiff" | "cfgdrift" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "i" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
1054
+ type: "fn" | "i" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "cfgdiff" | "cfgdrift" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
1025
1055
  date: string;
1026
1056
  isMobile: boolean;
1027
1057
  log_id: string;
@@ -1057,7 +1087,7 @@ export declare const userRoutes: OpenAPIHono<{
1057
1087
  } | undefined;
1058
1088
  }[] | {
1059
1089
  logs: {
1060
- type: "gd_send_sms" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "cfgdiff" | "cfgdrift" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "i" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
1090
+ type: "fn" | "i" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "cfgdiff" | "cfgdrift" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
1061
1091
  date: string;
1062
1092
  isMobile: boolean;
1063
1093
  log_id: string;
@@ -1098,7 +1128,7 @@ export declare const userRoutes: OpenAPIHono<{
1098
1128
  limit: number;
1099
1129
  length: number;
1100
1130
  logs: {
1101
- type: "gd_send_sms" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "cfgdiff" | "cfgdrift" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "i" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
1131
+ type: "fn" | "i" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "cfgdiff" | "cfgdrift" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
1102
1132
  date: string;
1103
1133
  isMobile: boolean;
1104
1134
  log_id: string;
@@ -78,7 +78,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
78
78
  };
79
79
  output: {};
80
80
  outputFormat: string;
81
- status: 200;
81
+ status: 302;
82
82
  } | {
83
83
  input: {
84
84
  param: {
@@ -94,7 +94,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
94
94
  };
95
95
  output: {};
96
96
  outputFormat: string;
97
- status: 302;
97
+ status: 400;
98
98
  } | {
99
99
  input: {
100
100
  param: {
@@ -110,7 +110,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
110
110
  };
111
111
  output: {};
112
112
  outputFormat: string;
113
- status: 400;
113
+ status: 200;
114
114
  };
115
115
  };
116
116
  } & {
@@ -128,7 +128,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
128
128
  };
129
129
  output: {};
130
130
  outputFormat: string;
131
- status: 200;
131
+ status: 302;
132
132
  } | {
133
133
  input: {
134
134
  param: {
@@ -142,7 +142,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
142
142
  };
143
143
  output: {};
144
144
  outputFormat: string;
145
- status: 302;
145
+ status: 400;
146
146
  } | {
147
147
  input: {
148
148
  param: {
@@ -156,7 +156,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
156
156
  };
157
157
  output: {};
158
158
  outputFormat: string;
159
- status: 400;
159
+ status: 200;
160
160
  };
161
161
  };
162
162
  }, "/">, "/">;
@@ -78,7 +78,7 @@ export declare const samlpRoutes: OpenAPIHono<{
78
78
  };
79
79
  output: {};
80
80
  outputFormat: string;
81
- status: 200;
81
+ status: 302;
82
82
  } | {
83
83
  input: {
84
84
  param: {
@@ -94,7 +94,7 @@ export declare const samlpRoutes: OpenAPIHono<{
94
94
  };
95
95
  output: {};
96
96
  outputFormat: string;
97
- status: 302;
97
+ status: 400;
98
98
  } | {
99
99
  input: {
100
100
  param: {
@@ -110,7 +110,7 @@ export declare const samlpRoutes: OpenAPIHono<{
110
110
  };
111
111
  output: {};
112
112
  outputFormat: string;
113
- status: 400;
113
+ status: 200;
114
114
  };
115
115
  };
116
116
  } & {
@@ -128,7 +128,7 @@ export declare const samlpRoutes: OpenAPIHono<{
128
128
  };
129
129
  output: {};
130
130
  outputFormat: string;
131
- status: 200;
131
+ status: 302;
132
132
  } | {
133
133
  input: {
134
134
  param: {
@@ -142,7 +142,7 @@ export declare const samlpRoutes: OpenAPIHono<{
142
142
  };
143
143
  output: {};
144
144
  outputFormat: string;
145
- status: 302;
145
+ status: 400;
146
146
  } | {
147
147
  input: {
148
148
  param: {
@@ -156,7 +156,7 @@ export declare const samlpRoutes: OpenAPIHono<{
156
156
  };
157
157
  output: {};
158
158
  outputFormat: string;
159
- status: 400;
159
+ status: 200;
160
160
  };
161
161
  };
162
162
  }, "/">;
@@ -71,13 +71,13 @@ export declare function initJSXRoute(ctx: Context<{
71
71
  page_background: {
72
72
  background_color: string;
73
73
  background_image_url: string;
74
- page_layout: "left" | "right" | "center";
74
+ page_layout: "center" | "left" | "right";
75
75
  logo_placement?: "none" | "widget" | "chip" | undefined;
76
76
  };
77
77
  widget: {
78
- header_text_alignment: "left" | "right" | "center";
78
+ header_text_alignment: "center" | "left" | "right";
79
79
  logo_height: number;
80
- logo_position: "none" | "left" | "right" | "center";
80
+ logo_position: "none" | "center" | "left" | "right";
81
81
  logo_url: string;
82
82
  social_buttons_layout: "bottom" | "top";
83
83
  };
@@ -379,7 +379,7 @@ export declare function initJSXRoute(ctx: Context<{
379
379
  } | undefined;
380
380
  unique?: boolean | undefined;
381
381
  profile_required?: boolean | undefined;
382
- verification_method?: "link" | "code" | undefined;
382
+ verification_method?: "code" | "link" | undefined;
383
383
  } | undefined;
384
384
  username?: {
385
385
  identifier?: {
@@ -452,7 +452,17 @@ export declare function initJSXRoute(ctx: Context<{
452
452
  client_aliases?: string[] | undefined;
453
453
  allowed_clients?: string[] | undefined;
454
454
  allowed_logout_urls?: string[] | undefined;
455
- session_transfer?: Record<string, any> | undefined;
455
+ session_transfer?: {
456
+ [x: string]: unknown;
457
+ can_create_session_transfer_token?: boolean | undefined;
458
+ enforce_cascade_revocation?: boolean | undefined;
459
+ allowed_authentication_methods?: ("query" | "cookie")[] | undefined;
460
+ enforce_device_binding?: "none" | "ip" | "asn" | undefined;
461
+ allow_refresh_token?: boolean | undefined;
462
+ enforce_online_refresh_tokens?: boolean | undefined;
463
+ allow_onward_transfer?: boolean | undefined;
464
+ trust_forwarded_ip?: boolean | undefined;
465
+ } | undefined;
456
466
  oidc_logout?: {
457
467
  [x: string]: unknown;
458
468
  backchannel_logout_urls?: string[] | undefined;
@@ -471,7 +481,7 @@ export declare function initJSXRoute(ctx: Context<{
471
481
  custom_login_page_preview?: string | undefined;
472
482
  form_template?: string | undefined;
473
483
  addons?: Record<string, any> | undefined;
474
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
484
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
475
485
  client_metadata?: Record<string, string> | undefined;
476
486
  hide_sign_up_disabled_error?: boolean | undefined;
477
487
  mobile?: Record<string, any> | undefined;
@@ -743,6 +753,7 @@ export declare function initJSXRoute(ctx: Context<{
743
753
  strategy_type: string;
744
754
  } | undefined;
745
755
  authenticated_at?: string | undefined;
756
+ tenant_id?: string | undefined;
746
757
  };
747
758
  }>;
748
759
  export interface InitJSXRouteWithSessionOptions {
@@ -823,13 +834,13 @@ export declare function initJSXRouteWithSession(ctx: Context<{
823
834
  page_background: {
824
835
  background_color: string;
825
836
  background_image_url: string;
826
- page_layout: "left" | "right" | "center";
837
+ page_layout: "center" | "left" | "right";
827
838
  logo_placement?: "none" | "widget" | "chip" | undefined;
828
839
  };
829
840
  widget: {
830
- header_text_alignment: "left" | "right" | "center";
841
+ header_text_alignment: "center" | "left" | "right";
831
842
  logo_height: number;
832
- logo_position: "none" | "left" | "right" | "center";
843
+ logo_position: "none" | "center" | "left" | "right";
833
844
  logo_url: string;
834
845
  social_buttons_layout: "bottom" | "top";
835
846
  };
@@ -1131,7 +1142,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1131
1142
  } | undefined;
1132
1143
  unique?: boolean | undefined;
1133
1144
  profile_required?: boolean | undefined;
1134
- verification_method?: "link" | "code" | undefined;
1145
+ verification_method?: "code" | "link" | undefined;
1135
1146
  } | undefined;
1136
1147
  username?: {
1137
1148
  identifier?: {
@@ -1204,7 +1215,17 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1204
1215
  client_aliases?: string[] | undefined;
1205
1216
  allowed_clients?: string[] | undefined;
1206
1217
  allowed_logout_urls?: string[] | undefined;
1207
- session_transfer?: Record<string, any> | undefined;
1218
+ session_transfer?: {
1219
+ [x: string]: unknown;
1220
+ can_create_session_transfer_token?: boolean | undefined;
1221
+ enforce_cascade_revocation?: boolean | undefined;
1222
+ allowed_authentication_methods?: ("query" | "cookie")[] | undefined;
1223
+ enforce_device_binding?: "none" | "ip" | "asn" | undefined;
1224
+ allow_refresh_token?: boolean | undefined;
1225
+ enforce_online_refresh_tokens?: boolean | undefined;
1226
+ allow_onward_transfer?: boolean | undefined;
1227
+ trust_forwarded_ip?: boolean | undefined;
1228
+ } | undefined;
1208
1229
  oidc_logout?: {
1209
1230
  [x: string]: unknown;
1210
1231
  backchannel_logout_urls?: string[] | undefined;
@@ -1223,7 +1244,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1223
1244
  custom_login_page_preview?: string | undefined;
1224
1245
  form_template?: string | undefined;
1225
1246
  addons?: Record<string, any> | undefined;
1226
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
1247
+ token_endpoint_auth_method?: "none" | "private_key_jwt" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | undefined;
1227
1248
  client_metadata?: Record<string, string> | undefined;
1228
1249
  hide_sign_up_disabled_error?: boolean | undefined;
1229
1250
  mobile?: Record<string, any> | undefined;
@@ -1564,6 +1585,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1564
1585
  strategy_type: string;
1565
1586
  } | undefined;
1566
1587
  authenticated_at?: string | undefined;
1588
+ tenant_id?: string | undefined;
1567
1589
  };
1568
1590
  session: {
1569
1591
  created_at: string;
@@ -1593,6 +1615,11 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1593
1615
  type?: string | undefined;
1594
1616
  }[];
1595
1617
  } | undefined;
1618
+ session_transfer?: {
1619
+ client_id: string;
1620
+ family_id: string;
1621
+ cascade_revocation: boolean;
1622
+ } | undefined;
1596
1623
  } | null;
1597
1624
  isContinuation: boolean;
1598
1625
  }>;
@@ -27,7 +27,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
27
27
  output: {
28
28
  screen: {
29
29
  action: string;
30
- method: "POST" | "GET";
30
+ method: "GET" | "POST";
31
31
  components: {
32
32
  id: string;
33
33
  type: string;
@@ -43,7 +43,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
43
43
  hint?: string | undefined;
44
44
  messages?: {
45
45
  text: string;
46
- type: "success" | "error" | "info" | "warning";
46
+ type: "error" | "success" | "info" | "warning";
47
47
  id?: number | undefined;
48
48
  }[] | undefined;
49
49
  }[];
@@ -51,7 +51,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
51
51
  description?: string | undefined;
52
52
  messages?: {
53
53
  text: string;
54
- type: "success" | "error" | "info" | "warning";
54
+ type: "error" | "success" | "info" | "warning";
55
55
  id?: number | undefined;
56
56
  }[] | undefined;
57
57
  links?: {
@@ -107,7 +107,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
107
107
  output: {
108
108
  screen: {
109
109
  action: string;
110
- method: "POST" | "GET";
110
+ method: "GET" | "POST";
111
111
  components: {
112
112
  id: string;
113
113
  type: string;
@@ -123,7 +123,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
123
123
  hint?: string | undefined;
124
124
  messages?: {
125
125
  text: string;
126
- type: "success" | "error" | "info" | "warning";
126
+ type: "error" | "success" | "info" | "warning";
127
127
  id?: number | undefined;
128
128
  }[] | undefined;
129
129
  }[];
@@ -131,7 +131,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
131
131
  description?: string | undefined;
132
132
  messages?: {
133
133
  text: string;
134
- type: "success" | "error" | "info" | "warning";
134
+ type: "error" | "success" | "info" | "warning";
135
135
  id?: number | undefined;
136
136
  }[] | undefined;
137
137
  links?: {
@@ -204,7 +204,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
204
204
  output: {
205
205
  screen: {
206
206
  action: string;
207
- method: "POST" | "GET";
207
+ method: "GET" | "POST";
208
208
  components: {
209
209
  id: string;
210
210
  type: string;
@@ -220,7 +220,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
220
220
  hint?: string | undefined;
221
221
  messages?: {
222
222
  text: string;
223
- type: "success" | "error" | "info" | "warning";
223
+ type: "error" | "success" | "info" | "warning";
224
224
  id?: number | undefined;
225
225
  }[] | undefined;
226
226
  }[];
@@ -228,7 +228,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
228
228
  description?: string | undefined;
229
229
  messages?: {
230
230
  text: string;
231
- type: "success" | "error" | "info" | "warning";
231
+ type: "error" | "success" | "info" | "warning";
232
232
  id?: number | undefined;
233
233
  }[] | undefined;
234
234
  links?: {
@@ -319,7 +319,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
319
319
  output: {
320
320
  screen: {
321
321
  action: string;
322
- method: "POST" | "GET";
322
+ method: "GET" | "POST";
323
323
  components: {
324
324
  id: string;
325
325
  type: string;
@@ -335,7 +335,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
335
335
  hint?: string | undefined;
336
336
  messages?: {
337
337
  text: string;
338
- type: "success" | "error" | "info" | "warning";
338
+ type: "error" | "success" | "info" | "warning";
339
339
  id?: number | undefined;
340
340
  }[] | undefined;
341
341
  }[];
@@ -343,7 +343,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
343
343
  description?: string | undefined;
344
344
  messages?: {
345
345
  text: string;
346
- type: "success" | "error" | "info" | "warning";
346
+ type: "error" | "success" | "info" | "warning";
347
347
  id?: number | undefined;
348
348
  }[] | undefined;
349
349
  links?: {
@@ -13,7 +13,7 @@ export declare const impersonateRoutes: OpenAPIHono<{
13
13
  };
14
14
  output: {};
15
15
  outputFormat: string;
16
- status: 200;
16
+ status: 400;
17
17
  } | {
18
18
  input: {
19
19
  query: {
@@ -22,7 +22,7 @@ export declare const impersonateRoutes: OpenAPIHono<{
22
22
  };
23
23
  output: {};
24
24
  outputFormat: string;
25
- status: 400;
25
+ status: 200;
26
26
  };
27
27
  };
28
28
  } & {
@@ -126,7 +126,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
126
126
  };
127
127
  output: {};
128
128
  outputFormat: string;
129
- status: 200;
129
+ status: 400;
130
130
  } | {
131
131
  input: {
132
132
  query: {
@@ -135,7 +135,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
135
135
  };
136
136
  output: {};
137
137
  outputFormat: string;
138
- status: 400;
138
+ status: 200;
139
139
  };
140
140
  };
141
141
  } & {
@@ -2,7 +2,8 @@
2
2
  * Shared helpers for account management screens
3
3
  */
4
4
  import type { User, Session } from "@authhero/adapter-interfaces";
5
- import type { ScreenContext } from "./types";
5
+ import type { ScreenContext, ScreenFactory, ScreenHandler } from "./types";
6
+ import type { AccountActionOperation } from "../../../types/Hooks";
6
7
  /**
7
8
  * Resolve the authenticated user from the session cookie.
8
9
  * Used by all account screens that need the current user.
@@ -11,3 +12,28 @@ export declare function resolveAccountUser(context: ScreenContext): Promise<{
11
12
  user: User;
12
13
  session: Session;
13
14
  }>;
15
+ /**
16
+ * Run the `pre-account-action` trigger for an operation the user is starting.
17
+ * Returns the URL to send the user to when an Action redirects, `undefined`
18
+ * to continue, and throws `AccountActionDeniedError` when an Action denies.
19
+ */
20
+ export declare function gateAccountOperation(context: ScreenContext, operation: AccountActionOperation, options?: {
21
+ user?: User | (() => Promise<User | undefined>);
22
+ details?: Record<string, string>;
23
+ }): Promise<string | undefined>;
24
+ /**
25
+ * Wrap a screen's GET factory so the trigger fires when the user opens the
26
+ * screen. POST handlers that re-render the screen call the unwrapped factory.
27
+ */
28
+ export declare function gatedScreen(operation: AccountActionOperation, factory: ScreenFactory, options?: {
29
+ details?: Record<string, string>;
30
+ user?: (context: ScreenContext) => Promise<User | undefined>;
31
+ }): ScreenFactory;
32
+ /**
33
+ * Wrap a screen's POST handler so the trigger also runs where the change
34
+ * happens. Gating only the GET would let a direct POST skip a denial.
35
+ */
36
+ export declare function gatedPost(operation: AccountActionOperation, post: NonNullable<ScreenHandler["post"]>, options?: {
37
+ details?: Record<string, string>;
38
+ user?: (context: ScreenContext, data: Record<string, unknown>) => Promise<User | undefined>;
39
+ }): NonNullable<ScreenHandler["post"]>;