authhero 9.22.1 → 9.23.1
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/index.esm.js +1 -1
- package/dist/assets/u/widget/p-91459994.entry.js +1 -0
- package/dist/authhero.cjs +142 -135
- package/dist/authhero.d.ts +220 -156
- package/dist/authhero.mjs +34371 -33668
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +3 -3
- package/dist/types/errors/signup-validation-error.d.ts +9 -0
- package/dist/types/generated/locale-types.d.ts +6 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/prompt-partials.d.ts +5 -0
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/tenant-export-import/manifest.d.ts +1 -1
- package/dist/types/hooks/codehooks.d.ts +4 -3
- package/dist/types/hooks/pagehooks.d.ts +2 -1
- package/dist/types/index.d.ts +210 -156
- package/dist/types/routes/auth-api/index.d.ts +32 -32
- package/dist/types/routes/auth-api/passwordless.d.ts +4 -4
- 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 +3 -3
- package/dist/types/routes/management-api/branding.d.ts +5 -5
- package/dist/types/routes/management-api/client-grants.d.ts +9 -9
- package/dist/types/routes/management-api/clients.d.ts +8 -8
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/email-templates.d.ts +20 -20
- package/dist/types/routes/management-api/emails.d.ts +2 -2
- package/dist/types/routes/management-api/failed-events.d.ts +3 -3
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/hooks.d.ts +4 -4
- package/dist/types/routes/management-api/index.d.ts +173 -119
- package/dist/types/routes/management-api/keys.d.ts +12 -12
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/organizations.d.ts +6 -6
- package/dist/types/routes/management-api/prompts.d.ts +58 -4
- package/dist/types/routes/management-api/proxy-routes.d.ts +1 -1
- 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/routes/universal-login/form-node.d.ts +4 -4
- package/dist/types/routes/universal-login/screens/signup.d.ts +44 -1
- package/dist/types/routes/universal-login/screens/types.d.ts +1 -1
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-widget-page.d.ts +13 -1
- package/dist/types/types/Hooks.d.ts +4 -0
- package/dist/types/types/Variables.d.ts +6 -0
- package/package.json +6 -6
- package/dist/assets/u/widget/p-dc0662ad.entry.js +0 -1
|
@@ -17,19 +17,19 @@ export declare const keyRoutes: OpenAPIHono<{
|
|
|
17
17
|
};
|
|
18
18
|
output: {
|
|
19
19
|
kid: string;
|
|
20
|
+
type: "jwt_signing" | "saml_encryption";
|
|
20
21
|
cert: string;
|
|
21
22
|
fingerprint: string;
|
|
22
23
|
thumbprint: string;
|
|
23
|
-
type: "jwt_signing" | "saml_encryption";
|
|
24
|
-
connection?: string | undefined;
|
|
25
24
|
tenant_id?: string | undefined;
|
|
25
|
+
connection?: string | undefined;
|
|
26
|
+
revoked_at?: string | undefined;
|
|
26
27
|
current?: boolean | undefined;
|
|
27
28
|
next?: boolean | undefined;
|
|
28
29
|
previous?: boolean | undefined;
|
|
29
30
|
current_since?: string | undefined;
|
|
30
31
|
current_until?: string | undefined;
|
|
31
32
|
revoked?: boolean | undefined;
|
|
32
|
-
revoked_at?: string | undefined;
|
|
33
33
|
expires_at?: string | undefined;
|
|
34
34
|
expired?: boolean | undefined;
|
|
35
35
|
inherited?: boolean | undefined;
|
|
@@ -56,19 +56,19 @@ export declare const keyRoutes: OpenAPIHono<{
|
|
|
56
56
|
};
|
|
57
57
|
output: {
|
|
58
58
|
kid: string;
|
|
59
|
+
type: "jwt_signing" | "saml_encryption";
|
|
59
60
|
cert: string;
|
|
60
61
|
fingerprint: string;
|
|
61
62
|
thumbprint: string;
|
|
62
|
-
type: "jwt_signing" | "saml_encryption";
|
|
63
|
-
connection?: string | undefined;
|
|
64
63
|
tenant_id?: string | undefined;
|
|
64
|
+
connection?: string | undefined;
|
|
65
|
+
revoked_at?: string | undefined;
|
|
65
66
|
current?: boolean | undefined;
|
|
66
67
|
next?: boolean | undefined;
|
|
67
68
|
previous?: boolean | undefined;
|
|
68
69
|
current_since?: string | undefined;
|
|
69
70
|
current_until?: string | undefined;
|
|
70
71
|
revoked?: boolean | undefined;
|
|
71
|
-
revoked_at?: string | undefined;
|
|
72
72
|
expires_at?: string | undefined;
|
|
73
73
|
expired?: boolean | undefined;
|
|
74
74
|
inherited?: boolean | undefined;
|
|
@@ -94,19 +94,19 @@ export declare const keyRoutes: OpenAPIHono<{
|
|
|
94
94
|
};
|
|
95
95
|
output: {
|
|
96
96
|
kid: string;
|
|
97
|
+
type: "jwt_signing" | "saml_encryption";
|
|
97
98
|
cert: string;
|
|
98
99
|
fingerprint: string;
|
|
99
100
|
thumbprint: string;
|
|
100
|
-
type: "jwt_signing" | "saml_encryption";
|
|
101
|
-
connection?: string | undefined;
|
|
102
101
|
tenant_id?: string | undefined;
|
|
102
|
+
connection?: string | undefined;
|
|
103
|
+
revoked_at?: string | undefined;
|
|
103
104
|
current?: boolean | undefined;
|
|
104
105
|
next?: boolean | undefined;
|
|
105
106
|
previous?: boolean | undefined;
|
|
106
107
|
current_since?: string | undefined;
|
|
107
108
|
current_until?: string | undefined;
|
|
108
109
|
revoked?: boolean | undefined;
|
|
109
|
-
revoked_at?: string | undefined;
|
|
110
110
|
expires_at?: string | undefined;
|
|
111
111
|
expired?: boolean | undefined;
|
|
112
112
|
inherited?: boolean | undefined;
|
|
@@ -134,19 +134,19 @@ export declare const keyRoutes: OpenAPIHono<{
|
|
|
134
134
|
};
|
|
135
135
|
output: {
|
|
136
136
|
kid: string;
|
|
137
|
+
type: "jwt_signing" | "saml_encryption";
|
|
137
138
|
cert: string;
|
|
138
139
|
fingerprint: string;
|
|
139
140
|
thumbprint: string;
|
|
140
|
-
type: "jwt_signing" | "saml_encryption";
|
|
141
|
-
connection?: string | undefined;
|
|
142
141
|
tenant_id?: string | undefined;
|
|
142
|
+
connection?: string | undefined;
|
|
143
|
+
revoked_at?: string | undefined;
|
|
143
144
|
current?: boolean | undefined;
|
|
144
145
|
next?: boolean | undefined;
|
|
145
146
|
previous?: boolean | undefined;
|
|
146
147
|
current_since?: string | undefined;
|
|
147
148
|
current_until?: string | undefined;
|
|
148
149
|
revoked?: boolean | undefined;
|
|
149
|
-
revoked_at?: string | undefined;
|
|
150
150
|
expires_at?: string | undefined;
|
|
151
151
|
expired?: boolean | undefined;
|
|
152
152
|
inherited?: boolean | undefined;
|
|
@@ -24,7 +24,7 @@ export declare const logRoutes: OpenAPIHono<{
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
output: {
|
|
27
|
-
type: "
|
|
27
|
+
type: "i" | "ss" | "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" | "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" | "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_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";
|
|
28
28
|
date: string;
|
|
29
29
|
isMobile: boolean;
|
|
30
30
|
log_id: string;
|
|
@@ -63,7 +63,7 @@ export declare const logRoutes: OpenAPIHono<{
|
|
|
63
63
|
limit: number;
|
|
64
64
|
length: number;
|
|
65
65
|
logs: {
|
|
66
|
-
type: "
|
|
66
|
+
type: "i" | "ss" | "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" | "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" | "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_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";
|
|
67
67
|
date: string;
|
|
68
68
|
isMobile: boolean;
|
|
69
69
|
log_id: string;
|
|
@@ -102,7 +102,7 @@ export declare const logRoutes: OpenAPIHono<{
|
|
|
102
102
|
next?: string | undefined;
|
|
103
103
|
} | {
|
|
104
104
|
logs: {
|
|
105
|
-
type: "
|
|
105
|
+
type: "i" | "ss" | "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" | "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" | "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_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";
|
|
106
106
|
date: string;
|
|
107
107
|
isMobile: boolean;
|
|
108
108
|
log_id: string;
|
|
@@ -156,7 +156,7 @@ export declare const logRoutes: OpenAPIHono<{
|
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
158
|
output: {
|
|
159
|
-
type: "
|
|
159
|
+
type: "i" | "ss" | "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" | "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" | "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_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";
|
|
160
160
|
date: string;
|
|
161
161
|
isMobile: boolean;
|
|
162
162
|
log_id: string;
|
|
@@ -729,19 +729,19 @@ export declare const organizationRoutes: OpenAPIHono<{
|
|
|
729
729
|
} & {
|
|
730
730
|
json: {
|
|
731
731
|
client_id: string;
|
|
732
|
-
inviter: {
|
|
733
|
-
name?: string | undefined;
|
|
734
|
-
};
|
|
735
732
|
invitee: {
|
|
736
733
|
email?: string | undefined;
|
|
737
734
|
};
|
|
735
|
+
inviter: {
|
|
736
|
+
name?: string | undefined;
|
|
737
|
+
};
|
|
738
738
|
id?: string | undefined;
|
|
739
739
|
app_metadata?: Record<string, any> | undefined;
|
|
740
740
|
user_metadata?: Record<string, any> | undefined;
|
|
741
741
|
connection_id?: string | undefined;
|
|
742
742
|
roles?: string[] | undefined;
|
|
743
|
-
ttl_sec?: number | undefined;
|
|
744
743
|
send_invitation_email?: boolean | undefined;
|
|
744
|
+
ttl_sec?: number | undefined;
|
|
745
745
|
};
|
|
746
746
|
};
|
|
747
747
|
output: {
|
|
@@ -788,7 +788,7 @@ export declare const organizationRoutes: OpenAPIHono<{
|
|
|
788
788
|
};
|
|
789
789
|
output: {};
|
|
790
790
|
outputFormat: string;
|
|
791
|
-
status:
|
|
791
|
+
status: 404;
|
|
792
792
|
} | {
|
|
793
793
|
input: {
|
|
794
794
|
param: {
|
|
@@ -802,7 +802,7 @@ export declare const organizationRoutes: OpenAPIHono<{
|
|
|
802
802
|
};
|
|
803
803
|
output: {};
|
|
804
804
|
outputFormat: string;
|
|
805
|
-
status:
|
|
805
|
+
status: 204;
|
|
806
806
|
};
|
|
807
807
|
};
|
|
808
808
|
} & {
|
|
@@ -52,7 +52,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
output: {
|
|
55
|
-
prompt: "
|
|
55
|
+
prompt: "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "invitation" | "login" | "login-id" | "login-password" | "login-passwordless" | "mfa" | "mfa-email" | "mfa-otp" | "mfa-phone" | "mfa-login-options" | "mfa-push" | "mfa-recovery-code" | "mfa-voice" | "mfa-webauthn" | "passkeys" | "organizations" | "reset-password" | "signup" | "signup-id" | "signup-password" | "status" | "captcha" | "custom-form";
|
|
56
56
|
language: string;
|
|
57
57
|
}[];
|
|
58
58
|
outputFormat: "json";
|
|
@@ -90,7 +90,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
90
90
|
$get: {
|
|
91
91
|
input: {
|
|
92
92
|
param: {
|
|
93
|
-
prompt: "
|
|
93
|
+
prompt: "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "invitation" | "login" | "login-id" | "login-password" | "login-passwordless" | "mfa" | "mfa-email" | "mfa-otp" | "mfa-phone" | "mfa-login-options" | "mfa-push" | "mfa-recovery-code" | "mfa-voice" | "mfa-webauthn" | "passkeys" | "organizations" | "reset-password" | "signup" | "signup-id" | "signup-password" | "status" | "captcha" | "custom-form";
|
|
94
94
|
language: string;
|
|
95
95
|
};
|
|
96
96
|
} & {
|
|
@@ -112,7 +112,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
112
112
|
$put: {
|
|
113
113
|
input: {
|
|
114
114
|
param: {
|
|
115
|
-
prompt: "
|
|
115
|
+
prompt: "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "invitation" | "login" | "login-id" | "login-password" | "login-passwordless" | "mfa" | "mfa-email" | "mfa-otp" | "mfa-phone" | "mfa-login-options" | "mfa-push" | "mfa-recovery-code" | "mfa-voice" | "mfa-webauthn" | "passkeys" | "organizations" | "reset-password" | "signup" | "signup-id" | "signup-password" | "status" | "captcha" | "custom-form";
|
|
116
116
|
language: string;
|
|
117
117
|
};
|
|
118
118
|
} & {
|
|
@@ -136,7 +136,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
136
136
|
$delete: {
|
|
137
137
|
input: {
|
|
138
138
|
param: {
|
|
139
|
-
prompt: "
|
|
139
|
+
prompt: "common" | "consent" | "device-flow" | "email-otp-challenge" | "email-verification" | "invitation" | "login" | "login-id" | "login-password" | "login-passwordless" | "mfa" | "mfa-email" | "mfa-otp" | "mfa-phone" | "mfa-login-options" | "mfa-push" | "mfa-recovery-code" | "mfa-voice" | "mfa-webauthn" | "passkeys" | "organizations" | "reset-password" | "signup" | "signup-id" | "signup-password" | "status" | "captcha" | "custom-form";
|
|
140
140
|
language: string;
|
|
141
141
|
};
|
|
142
142
|
} & {
|
|
@@ -149,4 +149,58 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
149
149
|
status: 204;
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
|
+
} & {
|
|
153
|
+
"/:prompt/partials": {
|
|
154
|
+
$get: {
|
|
155
|
+
input: {
|
|
156
|
+
param: {
|
|
157
|
+
prompt: "login" | "login-id" | "login-password" | "login-passwordless" | "signup" | "signup-id" | "signup-password" | "login-passwordless-sms-otp" | "login-passwordless-email-code";
|
|
158
|
+
};
|
|
159
|
+
} & {
|
|
160
|
+
header: {
|
|
161
|
+
"tenant-id"?: string | undefined;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
output: {
|
|
165
|
+
[x: string]: {
|
|
166
|
+
"form-content-start"?: string | undefined;
|
|
167
|
+
"form-content-end"?: string | undefined;
|
|
168
|
+
"form-footer-start"?: string | undefined;
|
|
169
|
+
"form-footer-end"?: string | undefined;
|
|
170
|
+
"secondary-actions-start"?: string | undefined;
|
|
171
|
+
"secondary-actions-end"?: string | undefined;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
outputFormat: "json";
|
|
175
|
+
status: 200;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
} & {
|
|
179
|
+
"/:prompt/partials": {
|
|
180
|
+
$put: {
|
|
181
|
+
input: {
|
|
182
|
+
param: {
|
|
183
|
+
prompt: "login" | "login-id" | "login-password" | "login-passwordless" | "signup" | "signup-id" | "signup-password" | "login-passwordless-sms-otp" | "login-passwordless-email-code";
|
|
184
|
+
};
|
|
185
|
+
} & {
|
|
186
|
+
header: {
|
|
187
|
+
"tenant-id"?: string | undefined;
|
|
188
|
+
};
|
|
189
|
+
} & {
|
|
190
|
+
json: unknown;
|
|
191
|
+
};
|
|
192
|
+
output: {
|
|
193
|
+
[x: string]: {
|
|
194
|
+
"form-content-start"?: string | undefined;
|
|
195
|
+
"form-content-end"?: string | undefined;
|
|
196
|
+
"form-footer-start"?: string | undefined;
|
|
197
|
+
"form-footer-end"?: string | undefined;
|
|
198
|
+
"secondary-actions-start"?: string | undefined;
|
|
199
|
+
"secondary-actions-end"?: string | undefined;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
outputFormat: "json";
|
|
203
|
+
status: 200;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
152
206
|
}, "/">;
|
|
@@ -159,7 +159,6 @@ export declare const proxyRoutesRoutes: OpenAPIHono<{
|
|
|
159
159
|
};
|
|
160
160
|
} & {
|
|
161
161
|
json: {
|
|
162
|
-
priority?: number | undefined;
|
|
163
162
|
match?: {
|
|
164
163
|
hosts?: string[] | undefined;
|
|
165
164
|
methods?: string[] | undefined;
|
|
@@ -167,6 +166,7 @@ export declare const proxyRoutesRoutes: OpenAPIHono<{
|
|
|
167
166
|
headers?: Record<string, string> | undefined;
|
|
168
167
|
query?: Record<string, string> | undefined;
|
|
169
168
|
} | undefined;
|
|
169
|
+
priority?: number | undefined;
|
|
170
170
|
handlers?: {
|
|
171
171
|
type: string;
|
|
172
172
|
options?: Record<string, unknown> | undefined;
|
|
@@ -210,12 +210,6 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
210
210
|
};
|
|
211
211
|
} & {
|
|
212
212
|
json: {
|
|
213
|
-
id?: string | undefined;
|
|
214
|
-
allowed_logout_urls?: string[] | undefined;
|
|
215
|
-
oidc_logout?: {
|
|
216
|
-
rp_logout_end_session_endpoint_discovery?: boolean | undefined;
|
|
217
|
-
} | undefined;
|
|
218
|
-
default_organization?: string | undefined;
|
|
219
213
|
audience?: string | undefined;
|
|
220
214
|
friendly_name?: string | undefined;
|
|
221
215
|
picture_url?: string | undefined;
|
|
@@ -230,6 +224,7 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
230
224
|
session_cookie?: {
|
|
231
225
|
mode?: "persistent" | "non-persistent" | undefined;
|
|
232
226
|
} | undefined;
|
|
227
|
+
allowed_logout_urls?: string[] | undefined;
|
|
233
228
|
default_redirection_uri?: string | undefined;
|
|
234
229
|
default_client_id?: string | undefined;
|
|
235
230
|
enabled_locales?: string[] | undefined;
|
|
@@ -303,9 +298,13 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
303
298
|
} | undefined;
|
|
304
299
|
} | null | undefined;
|
|
305
300
|
default_audience?: string | undefined;
|
|
301
|
+
default_organization?: string | undefined;
|
|
306
302
|
sessions?: {
|
|
307
303
|
oidc_logout_prompt_enabled?: boolean | undefined;
|
|
308
304
|
} | undefined;
|
|
305
|
+
oidc_logout?: {
|
|
306
|
+
rp_logout_end_session_endpoint_discovery?: boolean | undefined;
|
|
307
|
+
} | undefined;
|
|
309
308
|
allow_organization_name_in_authentication_api?: boolean | undefined;
|
|
310
309
|
customize_mfa_in_postlogin_action?: boolean | undefined;
|
|
311
310
|
acr_values_supported?: string[] | undefined;
|
|
@@ -386,6 +385,7 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
386
385
|
message?: string | undefined;
|
|
387
386
|
} | undefined;
|
|
388
387
|
} | undefined;
|
|
388
|
+
id?: string | undefined;
|
|
389
389
|
};
|
|
390
390
|
};
|
|
391
391
|
output: {
|
|
@@ -820,8 +820,8 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
820
820
|
created_at: string;
|
|
821
821
|
id: string;
|
|
822
822
|
client_id: string;
|
|
823
|
-
user_id: string;
|
|
824
823
|
rotating: boolean;
|
|
824
|
+
user_id: string;
|
|
825
825
|
device: {
|
|
826
826
|
initial_user_agent: string;
|
|
827
827
|
initial_ip: string;
|
|
@@ -854,8 +854,8 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
854
854
|
created_at: string;
|
|
855
855
|
id: string;
|
|
856
856
|
client_id: string;
|
|
857
|
-
user_id: string;
|
|
858
857
|
rotating: boolean;
|
|
858
|
+
user_id: string;
|
|
859
859
|
device: {
|
|
860
860
|
initial_user_agent: string;
|
|
861
861
|
initial_ip: string;
|
|
@@ -888,8 +888,8 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
888
888
|
created_at: string;
|
|
889
889
|
id: string;
|
|
890
890
|
client_id: string;
|
|
891
|
-
user_id: string;
|
|
892
891
|
rotating: boolean;
|
|
892
|
+
user_id: string;
|
|
893
893
|
device: {
|
|
894
894
|
initial_user_agent: string;
|
|
895
895
|
initial_ip: string;
|
|
@@ -963,7 +963,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
963
963
|
};
|
|
964
964
|
};
|
|
965
965
|
output: {
|
|
966
|
-
type: "
|
|
966
|
+
type: "i" | "ss" | "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" | "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" | "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_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";
|
|
967
967
|
date: string;
|
|
968
968
|
isMobile: boolean;
|
|
969
969
|
log_id: string;
|
|
@@ -1002,7 +1002,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1002
1002
|
limit: number;
|
|
1003
1003
|
length: number;
|
|
1004
1004
|
logs: {
|
|
1005
|
-
type: "
|
|
1005
|
+
type: "i" | "ss" | "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" | "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" | "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_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";
|
|
1006
1006
|
date: string;
|
|
1007
1007
|
isMobile: boolean;
|
|
1008
1008
|
log_id: string;
|
|
@@ -460,7 +460,7 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
460
460
|
custom_login_page_preview?: string | undefined;
|
|
461
461
|
form_template?: string | undefined;
|
|
462
462
|
addons?: Record<string, any> | undefined;
|
|
463
|
-
token_endpoint_auth_method?: "
|
|
463
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
464
464
|
client_metadata?: Record<string, string> | undefined;
|
|
465
465
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
466
466
|
mobile?: Record<string, any> | undefined;
|
|
@@ -1196,7 +1196,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
1196
1196
|
custom_login_page_preview?: string | undefined;
|
|
1197
1197
|
form_template?: string | undefined;
|
|
1198
1198
|
addons?: Record<string, any> | undefined;
|
|
1199
|
-
token_endpoint_auth_method?: "
|
|
1199
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
1200
1200
|
client_metadata?: Record<string, string> | undefined;
|
|
1201
1201
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
1202
1202
|
mobile?: Record<string, any> | undefined;
|
|
@@ -173,7 +173,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
173
173
|
};
|
|
174
174
|
output: {};
|
|
175
175
|
outputFormat: string;
|
|
176
|
-
status:
|
|
176
|
+
status: 404;
|
|
177
177
|
} | {
|
|
178
178
|
input: {
|
|
179
179
|
query: {
|
|
@@ -188,7 +188,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
188
188
|
};
|
|
189
189
|
output: {};
|
|
190
190
|
outputFormat: string;
|
|
191
|
-
status:
|
|
191
|
+
status: 400;
|
|
192
192
|
} | {
|
|
193
193
|
input: {
|
|
194
194
|
query: {
|
|
@@ -282,7 +282,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
282
282
|
};
|
|
283
283
|
output: {};
|
|
284
284
|
outputFormat: string;
|
|
285
|
-
status:
|
|
285
|
+
status: 404;
|
|
286
286
|
} | {
|
|
287
287
|
input: {
|
|
288
288
|
param: {
|
|
@@ -300,7 +300,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
300
300
|
};
|
|
301
301
|
output: {};
|
|
302
302
|
outputFormat: string;
|
|
303
|
-
status:
|
|
303
|
+
status: 400;
|
|
304
304
|
} | {
|
|
305
305
|
input: {
|
|
306
306
|
param: {
|
|
@@ -18,7 +18,7 @@ export declare const formNodeRoutes: OpenAPIHono<{
|
|
|
18
18
|
};
|
|
19
19
|
output: {};
|
|
20
20
|
outputFormat: string;
|
|
21
|
-
status:
|
|
21
|
+
status: 404;
|
|
22
22
|
} | {
|
|
23
23
|
input: {
|
|
24
24
|
param: {
|
|
@@ -32,7 +32,7 @@ export declare const formNodeRoutes: OpenAPIHono<{
|
|
|
32
32
|
};
|
|
33
33
|
output: {};
|
|
34
34
|
outputFormat: string;
|
|
35
|
-
status:
|
|
35
|
+
status: 200;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
} & {
|
|
@@ -52,7 +52,7 @@ export declare const formNodeRoutes: OpenAPIHono<{
|
|
|
52
52
|
};
|
|
53
53
|
output: {};
|
|
54
54
|
outputFormat: string;
|
|
55
|
-
status:
|
|
55
|
+
status: 404;
|
|
56
56
|
} | {
|
|
57
57
|
input: {
|
|
58
58
|
param: {
|
|
@@ -68,7 +68,7 @@ export declare const formNodeRoutes: OpenAPIHono<{
|
|
|
68
68
|
};
|
|
69
69
|
output: {};
|
|
70
70
|
outputFormat: string;
|
|
71
|
-
status:
|
|
71
|
+
status: 200;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
}, "/">;
|
|
@@ -3,8 +3,50 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Corresponds to: /u/signup
|
|
5
5
|
*/
|
|
6
|
-
import type { CustomText } from "@authhero/adapter-interfaces";
|
|
6
|
+
import type { User, CustomText } from "@authhero/adapter-interfaces";
|
|
7
7
|
import type { ScreenContext, ScreenResult, ScreenDefinition } from "./types";
|
|
8
|
+
type PrefillValue = string | string[];
|
|
9
|
+
export declare function getSignupPrefill(email: string | undefined, signupBody?: Record<string, unknown>): Record<string, PrefillValue>;
|
|
10
|
+
export interface PartialField {
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
required: boolean;
|
|
14
|
+
maxlength?: number;
|
|
15
|
+
pattern?: string;
|
|
16
|
+
map?: string;
|
|
17
|
+
label: string;
|
|
18
|
+
}
|
|
19
|
+
/** Only allowlisted targets may be written by `data-authhero-map`. */
|
|
20
|
+
export declare function isValidAuthheroMapTarget(target: string): boolean;
|
|
21
|
+
/** Parse the ulp-* controls out of stored (trusted) prompt-partial HTML. */
|
|
22
|
+
export declare function parsePartialFields(htmls: string[]): PartialField[];
|
|
23
|
+
/**
|
|
24
|
+
* Enforce required / maxlength / pattern from the stored partial. Returns the
|
|
25
|
+
* first failing field's message, or undefined when everything passes.
|
|
26
|
+
*/
|
|
27
|
+
export declare function validatePartialFields(fields: PartialField[], data: Record<string, unknown>): {
|
|
28
|
+
name: string;
|
|
29
|
+
message: string;
|
|
30
|
+
} | undefined;
|
|
31
|
+
/** Build the user fields set by `data-authhero-map` from submitted data. */
|
|
32
|
+
export declare function applyPartialMappings(fields: PartialField[], data: Record<string, unknown>): Partial<Pick<User, "given_name" | "family_name" | "name" | "nickname" | "picture" | "user_metadata">>;
|
|
33
|
+
/**
|
|
34
|
+
* Auth0-style field errors for prompt partials: the `ulp-field` wrapper around
|
|
35
|
+
* a failing input gets `ulp-error`, and its `ulp-error-info` element (added if
|
|
36
|
+
* missing) carries the message. Returns the rewritten HTML and the names of the
|
|
37
|
+
* fields whose error was placed.
|
|
38
|
+
*/
|
|
39
|
+
export declare function applyPartialErrors(html: string, errors: Record<string, string>): {
|
|
40
|
+
html: string;
|
|
41
|
+
placed: Set<string>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Restore submitted ulp-* control state in stored prompt-partial HTML: `value`
|
|
45
|
+
* for text-like inputs, `checked` for checkboxes/radios, and the content or
|
|
46
|
+
* selected options for textarea/select. Passwords and unrelated fields never
|
|
47
|
+
* enter the prefill object.
|
|
48
|
+
*/
|
|
49
|
+
export declare function prefillPromptPartial(html: string, prefill?: Record<string, PrefillValue | undefined>): string;
|
|
8
50
|
/**
|
|
9
51
|
* Translate a validatePasswordPolicy failure into a user-facing message.
|
|
10
52
|
* The PasswordPolicyError message itself is English-only.
|
|
@@ -18,3 +60,4 @@ export declare function signupScreen(context: ScreenContext): Promise<ScreenResu
|
|
|
18
60
|
* Screen definition for the signup screen
|
|
19
61
|
*/
|
|
20
62
|
export declare const signupScreenDefinition: ScreenDefinition;
|
|
63
|
+
export {};
|
|
@@ -47,7 +47,7 @@ export interface ScreenContext {
|
|
|
47
47
|
/** The login state parameter */
|
|
48
48
|
state: string;
|
|
49
49
|
/** Pre-filled values for form fields */
|
|
50
|
-
prefill?: Record<string, string | undefined>;
|
|
50
|
+
prefill?: Record<string, string | string[] | undefined>;
|
|
51
51
|
/** Error messages to display */
|
|
52
52
|
errors?: Record<string, string>;
|
|
53
53
|
/** Screen-level messages to display (errors, success, info, warnings) */
|