authhero 9.40.0 → 9.41.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/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-6774edd2.entry.js +1 -0
- package/dist/authhero.cjs +110 -110
- package/dist/authhero.d.ts +399 -385
- package/dist/authhero.mjs +10465 -10289
- package/dist/{mfa-Ddp9JT1l.mjs → mfa-CdC-9ysu.mjs} +80 -80
- package/dist/{mfa-BlaRHQgI.js → mfa-Dx8-AJ6U.js} +2 -2
- package/dist/{mfa-attempts-bPJnyu2c.js → mfa-attempts-CtWWceg2.js} +34 -26
- package/dist/{mfa-attempts-YsmteBp0.mjs → mfa-attempts-mBkfX0wf.mjs} +4827 -4657
- package/dist/{passkey-enrollment-CLg7RteL.js → passkey-enrollment-KQcVF_QM.js} +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/mfa-attempts.d.ts +7 -0
- package/dist/types/generated/locale-types.d.ts +6 -0
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/hooks/codehooks.d.ts +45 -0
- package/dist/types/hooks/lifecycle-codehooks.d.ts +1 -1
- package/dist/types/index.d.ts +162 -162
- package/dist/types/routes/auth-api/device.d.ts +8 -8
- package/dist/types/routes/auth-api/index.d.ts +10 -10
- package/dist/types/routes/auth-api/passwordless.d.ts +16 -16
- package/dist/types/routes/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/action-triggers.d.ts +26 -26
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding-uploads.d.ts +4 -4
- package/dist/types/routes/management-api/branding.d.ts +17 -17
- package/dist/types/routes/management-api/client-registration-tokens.d.ts +3 -3
- package/dist/types/routes/management-api/clients.d.ts +8 -8
- package/dist/types/routes/management-api/connections.d.ts +1 -1
- package/dist/types/routes/management-api/failed-events.d.ts +4 -4
- package/dist/types/routes/management-api/forms.d.ts +152 -152
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/hooks.d.ts +14 -14
- package/dist/types/routes/management-api/index.d.ts +147 -147
- package/dist/types/routes/management-api/keys.d.ts +8 -8
- package/dist/types/routes/management-api/log-streams.d.ts +6 -6
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +7 -7
- package/dist/types/routes/management-api/prompts.d.ts +6 -6
- package/dist/types/routes/management-api/roles.d.ts +1 -1
- package/dist/types/routes/management-api/rollouts.d.ts +6 -6
- package/dist/types/routes/management-api/self-service-profiles.d.ts +8 -8
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenants.d.ts +15 -15
- package/dist/types/routes/management-api/themes.d.ts +9 -9
- package/dist/types/routes/management-api/users.d.ts +27 -27
- package/dist/types/routes/universal-login/common.d.ts +10 -10
- package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
- package/dist/types/routes/universal-login/screens/login-otp.d.ts +79 -5
- package/dist/types/routes/universal-login/screens/magic-link-sent.d.ts +8 -1
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +6 -5
- package/dist/types/state-machines/login-session-data.d.ts +36 -1
- package/dist/types/state-machines/login-session.d.ts +17 -1
- package/dist/types/types/Variables.d.ts +2 -0
- package/package.json +6 -6
- package/dist/assets/u/widget/p-d0eb5acc.entry.js +0 -1
|
@@ -128,7 +128,7 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
128
128
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
129
129
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
130
130
|
deployment_type?: "shared" | "wfp" | undefined;
|
|
131
|
-
provisioning_state?: "pending" | "
|
|
131
|
+
provisioning_state?: "pending" | "failed" | "ready" | undefined;
|
|
132
132
|
provisioning_error?: string | undefined;
|
|
133
133
|
provisioning_state_changed_at?: string | undefined;
|
|
134
134
|
bundle_configuration?: string | undefined;
|
|
@@ -200,7 +200,7 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
200
200
|
} | undefined;
|
|
201
201
|
allow_remember_browser?: boolean | undefined;
|
|
202
202
|
remember_browser_lifetime_in_days?: number | undefined;
|
|
203
|
-
policy?: "
|
|
203
|
+
policy?: "always" | "never" | "all-applications" | "confidence-score" | undefined;
|
|
204
204
|
} | undefined;
|
|
205
205
|
is_control_plane?: boolean | undefined;
|
|
206
206
|
has_children?: boolean | undefined;
|
|
@@ -218,13 +218,19 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
218
218
|
};
|
|
219
219
|
} & {
|
|
220
220
|
json: {
|
|
221
|
+
id?: string | undefined;
|
|
222
|
+
session_cookie?: {
|
|
223
|
+
mode?: "persistent" | "non-persistent" | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
sessions?: {
|
|
226
|
+
oidc_logout_prompt_enabled?: boolean | undefined;
|
|
227
|
+
} | undefined;
|
|
221
228
|
allowed_logout_urls?: string[] | undefined;
|
|
222
229
|
oidc_logout?: {
|
|
223
230
|
rp_logout_end_session_endpoint_discovery?: boolean | undefined;
|
|
224
231
|
} | undefined;
|
|
225
232
|
default_organization?: string | undefined;
|
|
226
233
|
audience?: string | undefined;
|
|
227
|
-
id?: string | undefined;
|
|
228
234
|
parent_tenant_id?: string | null | undefined;
|
|
229
235
|
config_sync?: "inherit-on-read" | "synced" | "detached" | null | undefined;
|
|
230
236
|
config_sync_hash?: string | null | undefined;
|
|
@@ -239,9 +245,6 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
239
245
|
idle_session_lifetime?: number | undefined;
|
|
240
246
|
ephemeral_session_lifetime?: number | undefined;
|
|
241
247
|
idle_ephemeral_session_lifetime?: number | undefined;
|
|
242
|
-
session_cookie?: {
|
|
243
|
-
mode?: "persistent" | "non-persistent" | undefined;
|
|
244
|
-
} | undefined;
|
|
245
248
|
default_redirection_uri?: string | undefined;
|
|
246
249
|
default_client_id?: string | undefined;
|
|
247
250
|
enabled_locales?: string[] | undefined;
|
|
@@ -315,9 +318,6 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
315
318
|
} | undefined;
|
|
316
319
|
} | null | undefined;
|
|
317
320
|
default_audience?: string | undefined;
|
|
318
|
-
sessions?: {
|
|
319
|
-
oidc_logout_prompt_enabled?: boolean | undefined;
|
|
320
|
-
} | undefined;
|
|
321
321
|
allow_organization_name_in_authentication_api?: boolean | undefined;
|
|
322
322
|
customize_mfa_in_postlogin_action?: boolean | undefined;
|
|
323
323
|
acr_values_supported?: string[] | undefined;
|
|
@@ -327,7 +327,7 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
327
327
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
328
328
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
329
329
|
deployment_type?: "shared" | "wfp" | undefined;
|
|
330
|
-
provisioning_state?: "pending" | "
|
|
330
|
+
provisioning_state?: "pending" | "failed" | "ready" | undefined;
|
|
331
331
|
provisioning_error?: string | undefined;
|
|
332
332
|
provisioning_state_changed_at?: string | undefined;
|
|
333
333
|
bundle_configuration?: string | undefined;
|
|
@@ -374,7 +374,7 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
374
374
|
} | undefined;
|
|
375
375
|
} | undefined;
|
|
376
376
|
mfa?: {
|
|
377
|
-
policy?: "
|
|
377
|
+
policy?: "always" | "never" | "all-applications" | "confidence-score" | undefined;
|
|
378
378
|
factors?: {
|
|
379
379
|
sms?: boolean | undefined;
|
|
380
380
|
otp?: boolean | undefined;
|
|
@@ -518,7 +518,7 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
518
518
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
519
519
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
520
520
|
deployment_type?: "shared" | "wfp" | undefined;
|
|
521
|
-
provisioning_state?: "pending" | "
|
|
521
|
+
provisioning_state?: "pending" | "failed" | "ready" | undefined;
|
|
522
522
|
provisioning_error?: string | undefined;
|
|
523
523
|
provisioning_state_changed_at?: string | undefined;
|
|
524
524
|
bundle_configuration?: string | undefined;
|
|
@@ -590,7 +590,7 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
590
590
|
} | undefined;
|
|
591
591
|
allow_remember_browser?: boolean | undefined;
|
|
592
592
|
remember_browser_lifetime_in_days?: number | undefined;
|
|
593
|
-
policy?: "
|
|
593
|
+
policy?: "always" | "never" | "all-applications" | "confidence-score" | undefined;
|
|
594
594
|
} | undefined;
|
|
595
595
|
is_control_plane?: boolean | undefined;
|
|
596
596
|
has_children?: boolean | undefined;
|
|
@@ -727,7 +727,7 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
727
727
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
728
728
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
729
729
|
deployment_type?: "shared" | "wfp" | undefined;
|
|
730
|
-
provisioning_state?: "pending" | "
|
|
730
|
+
provisioning_state?: "pending" | "failed" | "ready" | undefined;
|
|
731
731
|
provisioning_error?: string | undefined;
|
|
732
732
|
provisioning_state_changed_at?: string | undefined;
|
|
733
733
|
bundle_configuration?: string | undefined;
|
|
@@ -799,7 +799,7 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
799
799
|
} | undefined;
|
|
800
800
|
allow_remember_browser?: boolean | undefined;
|
|
801
801
|
remember_browser_lifetime_in_days?: number | undefined;
|
|
802
|
-
policy?: "
|
|
802
|
+
policy?: "always" | "never" | "all-applications" | "confidence-score" | undefined;
|
|
803
803
|
} | undefined;
|
|
804
804
|
is_control_plane?: boolean | undefined;
|
|
805
805
|
has_children?: boolean | undefined;
|
|
@@ -77,15 +77,15 @@ export declare const themesRoutes: OpenAPIHono<{
|
|
|
77
77
|
page_background: {
|
|
78
78
|
background_color: string;
|
|
79
79
|
background_image_url: string;
|
|
80
|
-
page_layout: "
|
|
80
|
+
page_layout: "left" | "right" | "center";
|
|
81
81
|
background_color_dark?: string | undefined;
|
|
82
82
|
background_image_url_dark?: string | undefined;
|
|
83
83
|
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
84
84
|
};
|
|
85
85
|
widget: {
|
|
86
|
-
header_text_alignment: "
|
|
86
|
+
header_text_alignment: "left" | "right" | "center";
|
|
87
87
|
logo_height: number;
|
|
88
|
-
logo_position: "none" | "
|
|
88
|
+
logo_position: "none" | "left" | "right" | "center";
|
|
89
89
|
logo_url: string;
|
|
90
90
|
social_buttons_layout: "bottom" | "top";
|
|
91
91
|
logo_url_dark?: string | undefined;
|
|
@@ -190,15 +190,15 @@ export declare const themesRoutes: OpenAPIHono<{
|
|
|
190
190
|
page_background: {
|
|
191
191
|
background_color: string;
|
|
192
192
|
background_image_url: string;
|
|
193
|
-
page_layout: "
|
|
193
|
+
page_layout: "left" | "right" | "center";
|
|
194
194
|
background_color_dark?: string | undefined;
|
|
195
195
|
background_image_url_dark?: string | undefined;
|
|
196
196
|
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
197
197
|
};
|
|
198
198
|
widget: {
|
|
199
|
-
header_text_alignment: "
|
|
199
|
+
header_text_alignment: "left" | "right" | "center";
|
|
200
200
|
logo_height: number;
|
|
201
|
-
logo_position: "none" | "
|
|
201
|
+
logo_position: "none" | "left" | "right" | "center";
|
|
202
202
|
logo_url: string;
|
|
203
203
|
social_buttons_layout: "bottom" | "top";
|
|
204
204
|
logo_url_dark?: string | undefined;
|
|
@@ -292,15 +292,15 @@ export declare const themesRoutes: OpenAPIHono<{
|
|
|
292
292
|
page_background: {
|
|
293
293
|
background_color: string;
|
|
294
294
|
background_image_url: string;
|
|
295
|
-
page_layout: "
|
|
295
|
+
page_layout: "left" | "right" | "center";
|
|
296
296
|
background_color_dark?: string | undefined;
|
|
297
297
|
background_image_url_dark?: string | undefined;
|
|
298
298
|
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
299
299
|
};
|
|
300
300
|
widget: {
|
|
301
|
-
header_text_alignment: "
|
|
301
|
+
header_text_alignment: "left" | "right" | "center";
|
|
302
302
|
logo_height: number;
|
|
303
|
-
logo_position: "none" | "
|
|
303
|
+
logo_position: "none" | "left" | "right" | "center";
|
|
304
304
|
logo_url: string;
|
|
305
305
|
social_buttons_layout: "bottom" | "top";
|
|
306
306
|
logo_url_dark?: string | undefined;
|
|
@@ -890,12 +890,11 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
890
890
|
};
|
|
891
891
|
};
|
|
892
892
|
output: {
|
|
893
|
-
user_id: string;
|
|
894
893
|
id: string;
|
|
894
|
+
user_id: string;
|
|
895
895
|
created_at: string;
|
|
896
896
|
client_id: string;
|
|
897
897
|
rotating: boolean;
|
|
898
|
-
login_id: string;
|
|
899
898
|
device: {
|
|
900
899
|
initial_user_agent: string;
|
|
901
900
|
initial_ip: string;
|
|
@@ -904,10 +903,17 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
904
903
|
last_ip: string;
|
|
905
904
|
last_asn: string;
|
|
906
905
|
};
|
|
906
|
+
login_id: string;
|
|
907
907
|
resource_servers: {
|
|
908
908
|
audience: string;
|
|
909
909
|
scopes: string;
|
|
910
910
|
}[];
|
|
911
|
+
session_transfer?: {
|
|
912
|
+
client_id: string;
|
|
913
|
+
family_id: string;
|
|
914
|
+
cascade_revocation: boolean;
|
|
915
|
+
} | undefined;
|
|
916
|
+
organization?: string | undefined;
|
|
911
917
|
expires_at?: string | undefined;
|
|
912
918
|
session_id?: string | undefined;
|
|
913
919
|
auth_connection?: string | undefined;
|
|
@@ -915,12 +921,6 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
915
921
|
strategy: string;
|
|
916
922
|
strategy_type: string;
|
|
917
923
|
} | undefined;
|
|
918
|
-
session_transfer?: {
|
|
919
|
-
client_id: string;
|
|
920
|
-
family_id: string;
|
|
921
|
-
cascade_revocation: boolean;
|
|
922
|
-
} | undefined;
|
|
923
|
-
organization?: string | undefined;
|
|
924
924
|
revoked_at?: string | undefined;
|
|
925
925
|
idle_expires_at?: string | undefined;
|
|
926
926
|
last_exchanged_at?: string | undefined;
|
|
@@ -929,12 +929,11 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
929
929
|
limit: number;
|
|
930
930
|
length: number;
|
|
931
931
|
tokens: {
|
|
932
|
-
user_id: string;
|
|
933
932
|
id: string;
|
|
933
|
+
user_id: string;
|
|
934
934
|
created_at: string;
|
|
935
935
|
client_id: string;
|
|
936
936
|
rotating: boolean;
|
|
937
|
-
login_id: string;
|
|
938
937
|
device: {
|
|
939
938
|
initial_user_agent: string;
|
|
940
939
|
initial_ip: string;
|
|
@@ -943,10 +942,17 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
943
942
|
last_ip: string;
|
|
944
943
|
last_asn: string;
|
|
945
944
|
};
|
|
945
|
+
login_id: string;
|
|
946
946
|
resource_servers: {
|
|
947
947
|
audience: string;
|
|
948
948
|
scopes: string;
|
|
949
949
|
}[];
|
|
950
|
+
session_transfer?: {
|
|
951
|
+
client_id: string;
|
|
952
|
+
family_id: string;
|
|
953
|
+
cascade_revocation: boolean;
|
|
954
|
+
} | undefined;
|
|
955
|
+
organization?: string | undefined;
|
|
950
956
|
expires_at?: string | undefined;
|
|
951
957
|
session_id?: string | undefined;
|
|
952
958
|
auth_connection?: string | undefined;
|
|
@@ -954,12 +960,6 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
954
960
|
strategy: string;
|
|
955
961
|
strategy_type: string;
|
|
956
962
|
} | undefined;
|
|
957
|
-
session_transfer?: {
|
|
958
|
-
client_id: string;
|
|
959
|
-
family_id: string;
|
|
960
|
-
cascade_revocation: boolean;
|
|
961
|
-
} | undefined;
|
|
962
|
-
organization?: string | undefined;
|
|
963
963
|
revoked_at?: string | undefined;
|
|
964
964
|
idle_expires_at?: string | undefined;
|
|
965
965
|
last_exchanged_at?: string | undefined;
|
|
@@ -968,12 +968,11 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
968
968
|
next?: string | undefined;
|
|
969
969
|
} | {
|
|
970
970
|
tokens: {
|
|
971
|
-
user_id: string;
|
|
972
971
|
id: string;
|
|
972
|
+
user_id: string;
|
|
973
973
|
created_at: string;
|
|
974
974
|
client_id: string;
|
|
975
975
|
rotating: boolean;
|
|
976
|
-
login_id: string;
|
|
977
976
|
device: {
|
|
978
977
|
initial_user_agent: string;
|
|
979
978
|
initial_ip: string;
|
|
@@ -982,10 +981,17 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
982
981
|
last_ip: string;
|
|
983
982
|
last_asn: string;
|
|
984
983
|
};
|
|
984
|
+
login_id: string;
|
|
985
985
|
resource_servers: {
|
|
986
986
|
audience: string;
|
|
987
987
|
scopes: string;
|
|
988
988
|
}[];
|
|
989
|
+
session_transfer?: {
|
|
990
|
+
client_id: string;
|
|
991
|
+
family_id: string;
|
|
992
|
+
cascade_revocation: boolean;
|
|
993
|
+
} | undefined;
|
|
994
|
+
organization?: string | undefined;
|
|
989
995
|
expires_at?: string | undefined;
|
|
990
996
|
session_id?: string | undefined;
|
|
991
997
|
auth_connection?: string | undefined;
|
|
@@ -993,12 +999,6 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
993
999
|
strategy: string;
|
|
994
1000
|
strategy_type: string;
|
|
995
1001
|
} | undefined;
|
|
996
|
-
session_transfer?: {
|
|
997
|
-
client_id: string;
|
|
998
|
-
family_id: string;
|
|
999
|
-
cascade_revocation: boolean;
|
|
1000
|
-
} | undefined;
|
|
1001
|
-
organization?: string | undefined;
|
|
1002
1002
|
revoked_at?: string | undefined;
|
|
1003
1003
|
idle_expires_at?: string | undefined;
|
|
1004
1004
|
last_exchanged_at?: string | undefined;
|
|
@@ -1081,7 +1081,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1081
1081
|
};
|
|
1082
1082
|
};
|
|
1083
1083
|
output: {
|
|
1084
|
-
type: "
|
|
1084
|
+
type: "i" | "fs" | "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" | "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";
|
|
1085
1085
|
date: string;
|
|
1086
1086
|
isMobile: boolean;
|
|
1087
1087
|
log_id: string;
|
|
@@ -1117,7 +1117,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1117
1117
|
} | undefined;
|
|
1118
1118
|
}[] | {
|
|
1119
1119
|
logs: {
|
|
1120
|
-
type: "
|
|
1120
|
+
type: "i" | "fs" | "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" | "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";
|
|
1121
1121
|
date: string;
|
|
1122
1122
|
isMobile: boolean;
|
|
1123
1123
|
log_id: string;
|
|
@@ -1158,7 +1158,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1158
1158
|
limit: number;
|
|
1159
1159
|
length: number;
|
|
1160
1160
|
logs: {
|
|
1161
|
-
type: "
|
|
1161
|
+
type: "i" | "fs" | "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" | "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";
|
|
1162
1162
|
date: string;
|
|
1163
1163
|
isMobile: boolean;
|
|
1164
1164
|
log_id: string;
|
|
@@ -71,15 +71,15 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
71
71
|
page_background: {
|
|
72
72
|
background_color: string;
|
|
73
73
|
background_image_url: string;
|
|
74
|
-
page_layout: "
|
|
74
|
+
page_layout: "left" | "right" | "center";
|
|
75
75
|
background_color_dark?: string | undefined;
|
|
76
76
|
background_image_url_dark?: string | undefined;
|
|
77
77
|
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
78
78
|
};
|
|
79
79
|
widget: {
|
|
80
|
-
header_text_alignment: "
|
|
80
|
+
header_text_alignment: "left" | "right" | "center";
|
|
81
81
|
logo_height: number;
|
|
82
|
-
logo_position: "none" | "
|
|
82
|
+
logo_position: "none" | "left" | "right" | "center";
|
|
83
83
|
logo_url: string;
|
|
84
84
|
social_buttons_layout: "bottom" | "top";
|
|
85
85
|
logo_url_dark?: string | undefined;
|
|
@@ -243,7 +243,7 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
243
243
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
244
244
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
245
245
|
deployment_type?: "shared" | "wfp" | undefined;
|
|
246
|
-
provisioning_state?: "pending" | "
|
|
246
|
+
provisioning_state?: "pending" | "failed" | "ready" | undefined;
|
|
247
247
|
provisioning_error?: string | undefined;
|
|
248
248
|
provisioning_state_changed_at?: string | undefined;
|
|
249
249
|
bundle_configuration?: string | undefined;
|
|
@@ -315,7 +315,7 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
315
315
|
} | undefined;
|
|
316
316
|
allow_remember_browser?: boolean | undefined;
|
|
317
317
|
remember_browser_lifetime_in_days?: number | undefined;
|
|
318
|
-
policy?: "
|
|
318
|
+
policy?: "always" | "never" | "all-applications" | "confidence-score" | undefined;
|
|
319
319
|
} | undefined;
|
|
320
320
|
is_control_plane?: boolean | undefined;
|
|
321
321
|
has_children?: boolean | undefined;
|
|
@@ -456,15 +456,15 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
456
456
|
page_background: {
|
|
457
457
|
background_color: string;
|
|
458
458
|
background_image_url: string;
|
|
459
|
-
page_layout: "
|
|
459
|
+
page_layout: "left" | "right" | "center";
|
|
460
460
|
background_color_dark?: string | undefined;
|
|
461
461
|
background_image_url_dark?: string | undefined;
|
|
462
462
|
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
463
463
|
};
|
|
464
464
|
widget: {
|
|
465
|
-
header_text_alignment: "
|
|
465
|
+
header_text_alignment: "left" | "right" | "center";
|
|
466
466
|
logo_height: number;
|
|
467
|
-
logo_position: "none" | "
|
|
467
|
+
logo_position: "none" | "left" | "right" | "center";
|
|
468
468
|
logo_url: string;
|
|
469
469
|
social_buttons_layout: "bottom" | "top";
|
|
470
470
|
logo_url_dark?: string | undefined;
|
|
@@ -697,7 +697,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
697
697
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
698
698
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
699
699
|
deployment_type?: "shared" | "wfp" | undefined;
|
|
700
|
-
provisioning_state?: "pending" | "
|
|
700
|
+
provisioning_state?: "pending" | "failed" | "ready" | undefined;
|
|
701
701
|
provisioning_error?: string | undefined;
|
|
702
702
|
provisioning_state_changed_at?: string | undefined;
|
|
703
703
|
bundle_configuration?: string | undefined;
|
|
@@ -769,7 +769,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
769
769
|
} | undefined;
|
|
770
770
|
allow_remember_browser?: boolean | undefined;
|
|
771
771
|
remember_browser_lifetime_in_days?: number | undefined;
|
|
772
|
-
policy?: "
|
|
772
|
+
policy?: "always" | "never" | "all-applications" | "confidence-score" | undefined;
|
|
773
773
|
} | undefined;
|
|
774
774
|
is_control_plane?: boolean | undefined;
|
|
775
775
|
has_children?: boolean | undefined;
|
|
@@ -43,7 +43,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
43
43
|
hint?: string | undefined;
|
|
44
44
|
messages?: {
|
|
45
45
|
text: string;
|
|
46
|
-
type: "
|
|
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: "
|
|
54
|
+
type: "error" | "success" | "info" | "warning";
|
|
55
55
|
id?: number | undefined;
|
|
56
56
|
}[] | undefined;
|
|
57
57
|
links?: {
|
|
@@ -123,7 +123,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
123
123
|
hint?: string | undefined;
|
|
124
124
|
messages?: {
|
|
125
125
|
text: string;
|
|
126
|
-
type: "
|
|
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: "
|
|
134
|
+
type: "error" | "success" | "info" | "warning";
|
|
135
135
|
id?: number | undefined;
|
|
136
136
|
}[] | undefined;
|
|
137
137
|
links?: {
|
|
@@ -220,7 +220,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
220
220
|
hint?: string | undefined;
|
|
221
221
|
messages?: {
|
|
222
222
|
text: string;
|
|
223
|
-
type: "
|
|
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: "
|
|
231
|
+
type: "error" | "success" | "info" | "warning";
|
|
232
232
|
id?: number | undefined;
|
|
233
233
|
}[] | undefined;
|
|
234
234
|
links?: {
|
|
@@ -335,7 +335,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
335
335
|
hint?: string | undefined;
|
|
336
336
|
messages?: {
|
|
337
337
|
text: string;
|
|
338
|
-
type: "
|
|
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: "
|
|
346
|
+
type: "error" | "success" | "info" | "warning";
|
|
347
347
|
id?: number | undefined;
|
|
348
348
|
}[] | undefined;
|
|
349
349
|
links?: {
|
|
@@ -2,16 +2,90 @@ import type { Context } from "hono";
|
|
|
2
2
|
import type { LoginSession } from "@authhero/adapter-interfaces";
|
|
3
3
|
import type { EnrichedClient } from "../../../helpers/client";
|
|
4
4
|
import type { Bindings, Variables } from "../../../types";
|
|
5
|
+
import type { ScreenContext, ScreenFactory, ScreenResult } from "./types";
|
|
6
|
+
type OtpContext = Context<{
|
|
7
|
+
Bindings: Bindings;
|
|
8
|
+
Variables: Variables;
|
|
9
|
+
}>;
|
|
10
|
+
/**
|
|
11
|
+
* Login OTP codes or magic links (identifier step plus resends) delivered per
|
|
12
|
+
* login session. Further requests are accepted but nothing is sent.
|
|
13
|
+
*
|
|
14
|
+
* Reserved atomically (see reserveLoginSessionCounter), so concurrent requests
|
|
15
|
+
* on one session cannot exceed it on adapters that implement
|
|
16
|
+
* `updateIfStateDataUnchanged`; other adapters fall back to a best-effort
|
|
17
|
+
* read/modify/write. The optional per-recipient rate limit adds a bound
|
|
18
|
+
* across sessions, but it is not configured by default and fails open on
|
|
19
|
+
* adapter errors, so it is not a hard guarantee.
|
|
20
|
+
*/
|
|
21
|
+
export declare const LOGIN_OTP_MAX_SENDS = 5;
|
|
22
|
+
/**
|
|
23
|
+
* Count a login OTP delivery on the login session and consume the optional
|
|
24
|
+
* per-recipient rate limit. Returns false when either limit is reached, or
|
|
25
|
+
* when the session is already finalized; callers then skip delivery but
|
|
26
|
+
* respond as usual, so the response does not reveal the limit or whether
|
|
27
|
+
* the address exists. Counted before sending, so failed sends count too.
|
|
28
|
+
*
|
|
29
|
+
* Order: check the session cap without writing, then the recipient rate
|
|
30
|
+
* limit, then reserve the slot atomically. A request the rate limit rejects
|
|
31
|
+
* does not use up the session's allowance, and a session already at its cap
|
|
32
|
+
* does not consume the recipient's rate limit. Concurrent requests may all
|
|
33
|
+
* pass the first check, but only LOGIN_OTP_MAX_SENDS of them can reserve.
|
|
34
|
+
*/
|
|
35
|
+
export declare function allowLoginOtpSend(ctx: OtpContext, { tenantId, loginSessionId, to, }: {
|
|
36
|
+
tenantId: string;
|
|
37
|
+
loginSessionId: string;
|
|
38
|
+
to: string;
|
|
39
|
+
}): Promise<boolean>;
|
|
5
40
|
/**
|
|
6
41
|
* Create a one-time code bound to the login session and to `to`, and deliver
|
|
7
42
|
* it to the user, either as a code or (for magic-link email connections) as a link.
|
|
43
|
+
*
|
|
44
|
+
* Subject to the per-session send cap and per-recipient rate limit in
|
|
45
|
+
* allowLoginOtpSend; returns false, without sending, when a limit is hit.
|
|
8
46
|
*/
|
|
9
|
-
export declare function sendLoginOtp(ctx:
|
|
10
|
-
Bindings: Bindings;
|
|
11
|
-
Variables: Variables;
|
|
12
|
-
}>, { client, loginSession, to, magicLink, }: {
|
|
47
|
+
export declare function sendLoginOtp(ctx: OtpContext, { client, loginSession, to, magicLink, }: {
|
|
13
48
|
client: EnrichedClient;
|
|
14
49
|
loginSession: LoginSession;
|
|
15
50
|
to: string;
|
|
16
51
|
magicLink: boolean;
|
|
17
|
-
}): Promise<
|
|
52
|
+
}): Promise<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* Re-send the login OTP (code or magic link) for the login session behind
|
|
55
|
+
* `state`, to the username the identifier step stored on it.
|
|
56
|
+
*
|
|
57
|
+
* Only re-sends when a login OTP was issued for this session to the same
|
|
58
|
+
* recipient before. The enumeration-safe stub path in the identifier screens
|
|
59
|
+
* shows the challenge without issuing a code, and a resend must not start
|
|
60
|
+
* delivering to an unknown address either, nor to a new address the session
|
|
61
|
+
* switched to after a code went to an earlier one. Repeated resends are capped by allowLoginOtpSend;
|
|
62
|
+
* past the cap the caller still shows the usual "code sent" message.
|
|
63
|
+
*
|
|
64
|
+
* Returns false when the login session is gone or has no username.
|
|
65
|
+
*/
|
|
66
|
+
export declare function resendLoginOtp(ctx: OtpContext, { client, state, magicLink, }: {
|
|
67
|
+
client: EnrichedClient;
|
|
68
|
+
state: string;
|
|
69
|
+
magicLink: boolean;
|
|
70
|
+
}): Promise<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* POST handler body for the RESEND_BUTTON on the login OTP screens
|
|
73
|
+
* (email-otp-challenge, sms-otp-challenge, magic-link-sent): re-send and
|
|
74
|
+
* re-render the screen with a success or error message. A delivery error is
|
|
75
|
+
* shown as such, except in enumeration-safe mode
|
|
76
|
+
* (client.hide_sign_up_disabled_error), where it gets the usual success
|
|
77
|
+
* message like every other resend.
|
|
78
|
+
*/
|
|
79
|
+
export declare function loginOtpResendResult(context: ScreenContext, { render, magicLink, successText, failedText, expiredText, }: {
|
|
80
|
+
render: ScreenFactory;
|
|
81
|
+
magicLink: boolean;
|
|
82
|
+
successText: string;
|
|
83
|
+
failedText: string;
|
|
84
|
+
expiredText: string;
|
|
85
|
+
}): Promise<{
|
|
86
|
+
screen: ScreenResult;
|
|
87
|
+
} | {
|
|
88
|
+
error: string;
|
|
89
|
+
screen: ScreenResult;
|
|
90
|
+
}>;
|
|
91
|
+
export {};
|
|
@@ -3,9 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Shown after a magic link has been sent to the user's email.
|
|
5
5
|
* Tells the user to check their email and click the link to log in.
|
|
6
|
+
*
|
|
7
|
+
* Corresponds to: /u2/login/magic-link-sent
|
|
6
8
|
*/
|
|
7
|
-
import type { ScreenContext, ScreenResult } from "./types";
|
|
9
|
+
import type { ScreenContext, ScreenResult, ScreenDefinition } from "./types";
|
|
8
10
|
/**
|
|
9
11
|
* Create the magic-link-sent screen
|
|
10
12
|
*/
|
|
11
13
|
export declare function magicLinkSentScreen(context: ScreenContext): Promise<ScreenResult>;
|
|
14
|
+
/**
|
|
15
|
+
* Screen definition for the magic-link-sent screen. The only action is the
|
|
16
|
+
* resend button; any other POST re-renders the screen.
|
|
17
|
+
*/
|
|
18
|
+
export declare const magicLinkSentScreenDefinition: ScreenDefinition;
|