authhero 8.27.0 → 9.0.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/LICENSE +661 -21
- package/dist/assets/u/js/client.js +2 -2
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +265 -251
- package/dist/authhero.d.ts +125 -63
- package/dist/authhero.mjs +24322 -17681
- package/dist/client.js +2 -2
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +3 -3
- package/dist/types/client/client-bundle.d.ts +1 -1
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/link-candidates.d.ts +28 -0
- package/dist/types/helpers/logging.d.ts +8 -0
- package/dist/types/helpers/scopes-permissions.d.ts +18 -0
- package/dist/types/helpers/signing-keys.d.ts +36 -0
- package/dist/types/helpers/users.d.ts +43 -0
- package/dist/types/hooks/codehooks.d.ts +9 -1
- package/dist/types/hooks/helpers/post-login-account-linking.d.ts +52 -0
- package/dist/types/hooks/pre-defined/account-linking.d.ts +20 -0
- package/dist/types/index.d.ts +62 -61
- package/dist/types/routes/auth-api/index.d.ts +28 -28
- package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
- 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/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/actions.d.ts +1 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/clients.d.ts +8 -8
- package/dist/types/routes/management-api/failed-events.d.ts +2 -1
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/index.d.ts +32 -31
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/organizations.d.ts +1 -1
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/tenants.d.ts +6 -6
- package/dist/types/routes/management-api/users.d.ts +5 -5
- package/dist/types/routes/universal-login/common.d.ts +2 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
- package/dist/types/types/Hooks.d.ts +8 -1
- package/package.json +7 -6
|
@@ -482,8 +482,6 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
482
482
|
locale?: string | undefined;
|
|
483
483
|
linked_to?: string | undefined;
|
|
484
484
|
profileData?: string | undefined;
|
|
485
|
-
app_metadata?: any;
|
|
486
|
-
user_metadata?: any;
|
|
487
485
|
middle_name?: string | undefined;
|
|
488
486
|
preferred_username?: string | undefined;
|
|
489
487
|
profile?: string | undefined;
|
|
@@ -499,7 +497,6 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
499
497
|
postal_code?: string | undefined;
|
|
500
498
|
country?: string | undefined;
|
|
501
499
|
} | undefined;
|
|
502
|
-
email_verified?: boolean | undefined;
|
|
503
500
|
last_ip?: string | undefined;
|
|
504
501
|
last_login?: string | undefined;
|
|
505
502
|
user_id?: string | undefined;
|
|
@@ -509,6 +506,9 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
509
506
|
registration_completed_at?: string | undefined;
|
|
510
507
|
verify_email?: boolean | undefined;
|
|
511
508
|
password?: string | undefined;
|
|
509
|
+
email_verified?: boolean | undefined;
|
|
510
|
+
app_metadata?: any;
|
|
511
|
+
user_metadata?: any;
|
|
512
512
|
};
|
|
513
513
|
};
|
|
514
514
|
output: {};
|
|
@@ -809,7 +809,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
809
809
|
};
|
|
810
810
|
};
|
|
811
811
|
output: {
|
|
812
|
-
type: "
|
|
812
|
+
type: "fertft" | "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" | "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" | "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" | "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";
|
|
813
813
|
date: string;
|
|
814
814
|
isMobile: boolean;
|
|
815
815
|
log_id: string;
|
|
@@ -848,7 +848,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
848
848
|
limit: number;
|
|
849
849
|
length: number;
|
|
850
850
|
logs: {
|
|
851
|
-
type: "
|
|
851
|
+
type: "fertft" | "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" | "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" | "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" | "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";
|
|
852
852
|
date: string;
|
|
853
853
|
isMobile: boolean;
|
|
854
854
|
log_id: string;
|
|
@@ -456,7 +456,7 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
456
456
|
custom_login_page_preview?: string | undefined;
|
|
457
457
|
form_template?: string | undefined;
|
|
458
458
|
addons?: Record<string, any> | undefined;
|
|
459
|
-
token_endpoint_auth_method?: "none" | "
|
|
459
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
460
460
|
client_metadata?: Record<string, string> | undefined;
|
|
461
461
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
462
462
|
mobile?: Record<string, any> | undefined;
|
|
@@ -1185,7 +1185,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
1185
1185
|
custom_login_page_preview?: string | undefined;
|
|
1186
1186
|
form_template?: string | undefined;
|
|
1187
1187
|
addons?: Record<string, any> | undefined;
|
|
1188
|
-
token_endpoint_auth_method?: "none" | "
|
|
1188
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
1189
1189
|
client_metadata?: Record<string, string> | undefined;
|
|
1190
1190
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
1191
1191
|
mobile?: Record<string, any> | undefined;
|
|
@@ -27,7 +27,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
27
27
|
output: {
|
|
28
28
|
screen: {
|
|
29
29
|
action: string;
|
|
30
|
-
method: "
|
|
30
|
+
method: "POST" | "GET";
|
|
31
31
|
components: {
|
|
32
32
|
id: string;
|
|
33
33
|
type: string;
|
|
@@ -107,7 +107,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
107
107
|
output: {
|
|
108
108
|
screen: {
|
|
109
109
|
action: string;
|
|
110
|
-
method: "
|
|
110
|
+
method: "POST" | "GET";
|
|
111
111
|
components: {
|
|
112
112
|
id: string;
|
|
113
113
|
type: string;
|
|
@@ -204,7 +204,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
204
204
|
output: {
|
|
205
205
|
screen: {
|
|
206
206
|
action: string;
|
|
207
|
-
method: "
|
|
207
|
+
method: "POST" | "GET";
|
|
208
208
|
components: {
|
|
209
209
|
id: string;
|
|
210
210
|
type: string;
|
|
@@ -319,7 +319,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
319
319
|
output: {
|
|
320
320
|
screen: {
|
|
321
321
|
action: string;
|
|
322
|
-
method: "
|
|
322
|
+
method: "POST" | "GET";
|
|
323
323
|
components: {
|
|
324
324
|
id: string;
|
|
325
325
|
type: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthorizationResponseMode, AuthorizationResponseType, DataAdapters, RolePermissionInsert, User } from "@authhero/adapter-interfaces";
|
|
1
|
+
import { AuthorizationResponseMode, AuthorizationResponseType, DataAdapters, LinkCandidate, RolePermissionInsert, User } from "@authhero/adapter-interfaces";
|
|
2
2
|
import { EnrichedClient } from "../helpers/client";
|
|
3
3
|
import { Context } from "hono";
|
|
4
4
|
import { Bindings } from "./Bindings";
|
|
@@ -116,6 +116,13 @@ export type HookEvent = {
|
|
|
116
116
|
ja3?: string;
|
|
117
117
|
ja4?: string;
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Candidate primary accounts the built-in email-linking policy would consider,
|
|
121
|
+
* exposed only to `post-user-login` code hooks that opt in via
|
|
122
|
+
* `metadata.resolve_link_candidates`. Absent on the event for every other hook
|
|
123
|
+
* (and trigger).
|
|
124
|
+
*/
|
|
125
|
+
link_candidates?: LinkCandidate[];
|
|
119
126
|
};
|
|
120
127
|
export type TokenAPI = {
|
|
121
128
|
createServiceToken: (params: {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "
|
|
14
|
+
"version": "9.0.0",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"vite": "^8.0.14",
|
|
64
64
|
"vite-plugin-dts": "^4.5.4",
|
|
65
65
|
"vitest": "^4.1.7",
|
|
66
|
-
"@authhero/
|
|
67
|
-
"@authhero/
|
|
66
|
+
"@authhero/kysely-adapter": "12.0.0",
|
|
67
|
+
"@authhero/widget": "0.35.0"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@peculiar/x509": "^1.14.0",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"qrcode": "^1.5.4",
|
|
82
82
|
"sanitize-html": "^2.17.4",
|
|
83
83
|
"xstate": "^5.31.1",
|
|
84
|
-
"@authhero/
|
|
85
|
-
"@authhero/proxy": "0.
|
|
86
|
-
"@authhero/
|
|
84
|
+
"@authhero/adapter-interfaces": "4.3.0",
|
|
85
|
+
"@authhero/proxy": "0.10.0",
|
|
86
|
+
"@authhero/saml": "0.5.0"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@authhero/widget": "^0.1.0",
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
"optional": true
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
+
"license": "AGPL-3.0-only",
|
|
105
106
|
"scripts": {
|
|
106
107
|
"dev": "bun --watch src/bun.ts",
|
|
107
108
|
"build": "pnpm build:i18n && pnpm build:emails && pnpm build:tailwind && pnpm build:client && tsc -p tsconfig.types.json && vite build && rollup -c rollup.dts.config.mjs && pnpm build:assets",
|