authhero 9.39.0 → 9.40.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-603aa8fa.entry.js +1 -0
- package/dist/assets/u/widget/p-d0eb5acc.entry.js +1 -0
- package/dist/authhero.cjs +172 -167
- package/dist/authhero.d.ts +533 -441
- package/dist/authhero.mjs +13325 -12051
- package/dist/{mfa-Dh6nNiRX.js → mfa-BlaRHQgI.js} +2 -2
- package/dist/{mfa-DMThiuUR.mjs → mfa-Ddp9JT1l.mjs} +38 -38
- package/dist/{mfa-attempts-O0x4jJzl.mjs → mfa-attempts-YsmteBp0.mjs} +6705 -6193
- package/dist/mfa-attempts-bPJnyu2c.js +385 -0
- package/dist/{passkey-enrollment-CSeOQWv1.js → passkey-enrollment-CLg7RteL.js} +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/common.d.ts +4 -1
- package/dist/types/generated/locale-types.d.ts +39 -0
- package/dist/types/helpers/client.d.ts +1 -0
- package/dist/types/helpers/code-recipient.d.ts +37 -0
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/hooks/helpers/action-users.d.ts +56 -0
- package/dist/types/hooks/helpers/post-login-account-linking.d.ts +18 -4
- package/dist/types/hooks/lifecycle-codehooks.d.ts +2 -2
- package/dist/types/hooks/pre-screen.d.ts +114 -0
- package/dist/types/index.d.ts +461 -415
- package/dist/types/routes/auth-api/device.d.ts +8 -8
- package/dist/types/routes/auth-api/index.d.ts +12 -12
- package/dist/types/routes/auth-api/passwordless.d.ts +6 -6
- package/dist/types/routes/auth-api/revoke.d.ts +6 -6
- package/dist/types/routes/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/action-triggers.d.ts +2 -2
- package/dist/types/routes/management-api/actions.d.ts +13 -13
- 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 +21 -21
- package/dist/types/routes/management-api/clients.d.ts +12 -10
- package/dist/types/routes/management-api/connections.d.ts +14 -8
- package/dist/types/routes/management-api/emails.d.ts +6 -6
- package/dist/types/routes/management-api/forms.d.ts +24 -0
- package/dist/types/routes/management-api/guardian.d.ts +1 -1
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/hooks.d.ts +42 -42
- package/dist/types/routes/management-api/index.d.ts +430 -398
- package/dist/types/routes/management-api/jobs.d.ts +2 -2
- package/dist/types/routes/management-api/keys.d.ts +12 -12
- package/dist/types/routes/management-api/log-streams.d.ts +12 -12
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +6 -6
- package/dist/types/routes/management-api/prompts.d.ts +8 -8
- package/dist/types/routes/management-api/resource-servers.d.ts +8 -8
- package/dist/types/routes/management-api/rollouts.d.ts +6 -6
- package/dist/types/routes/management-api/self-service-profiles.d.ts +9 -9
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenant-members.d.ts +8 -8
- package/dist/types/routes/management-api/tenant-operations.d.ts +4 -4
- package/dist/types/routes/management-api/tenants.d.ts +10 -10
- package/dist/types/routes/management-api/themes.d.ts +9 -9
- package/dist/types/routes/management-api/users.d.ts +21 -21
- package/dist/types/routes/universal-login/common.d.ts +10 -10
- package/dist/types/routes/universal-login/pre-screen-gates.d.ts +31 -0
- package/dist/types/routes/universal-login/screens/account-change-email.d.ts +52 -0
- package/dist/types/routes/universal-login/screens/account-helpers.d.ts +19 -24
- package/dist/types/routes/universal-login/screens/account.d.ts +6 -0
- package/dist/types/routes/universal-login/screens/index.d.ts +4 -2
- package/dist/types/routes/universal-login/screens/invalid-session.d.ts +10 -0
- package/dist/types/routes/universal-login/screens/login-otp.d.ts +2 -2
- package/dist/types/routes/universal-login/screens/signup.d.ts +0 -3
- package/dist/types/routes/universal-login/screens/social-connections.d.ts +31 -0
- package/dist/types/routes/universal-login/screens/types.d.ts +3 -0
- package/dist/types/routes/universal-login/u2-index.d.ts +19 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-widget-page.d.ts +1 -4
- package/dist/types/state-machines/login-session.d.ts +13 -1
- package/dist/types/types/Hooks.d.ts +62 -17
- package/dist/types/utils/embedded-browser.d.ts +4 -0
- package/package.json +6 -6
- package/dist/assets/u/widget/p-32247347.entry.js +0 -1
- package/dist/assets/u/widget/p-3f908508.entry.js +0 -1
- package/dist/mfa-attempts-BaKbuGvZ.js +0 -321
|
@@ -25,7 +25,7 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
25
25
|
$get: {
|
|
26
26
|
input: {
|
|
27
27
|
query: {
|
|
28
|
-
status?: "
|
|
28
|
+
status?: "pending" | "failed" | "succeeded" | undefined;
|
|
29
29
|
page?: unknown;
|
|
30
30
|
per_page?: unknown;
|
|
31
31
|
};
|
|
@@ -43,7 +43,7 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
43
43
|
};
|
|
44
44
|
id: string;
|
|
45
45
|
tenant_id: string;
|
|
46
|
-
status: "
|
|
46
|
+
status: "pending" | "failed" | "succeeded";
|
|
47
47
|
created_at: string;
|
|
48
48
|
updated_at: string;
|
|
49
49
|
result?: {
|
|
@@ -200,7 +200,7 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
200
200
|
};
|
|
201
201
|
output: {
|
|
202
202
|
id: string;
|
|
203
|
-
status: "
|
|
203
|
+
status: "pending" | "failed" | "succeeded";
|
|
204
204
|
};
|
|
205
205
|
outputFormat: "json";
|
|
206
206
|
status: 202;
|
|
@@ -233,7 +233,7 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
233
233
|
};
|
|
234
234
|
output: {
|
|
235
235
|
id: string;
|
|
236
|
-
status: "
|
|
236
|
+
status: "pending" | "failed" | "succeeded";
|
|
237
237
|
};
|
|
238
238
|
outputFormat: "json";
|
|
239
239
|
status: 202;
|
|
@@ -306,7 +306,7 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
306
306
|
};
|
|
307
307
|
output: {
|
|
308
308
|
id: string;
|
|
309
|
-
status: "
|
|
309
|
+
status: "pending" | "failed" | "succeeded";
|
|
310
310
|
};
|
|
311
311
|
outputFormat: "json";
|
|
312
312
|
status: 202;
|
|
@@ -339,7 +339,7 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
339
339
|
};
|
|
340
340
|
output: {
|
|
341
341
|
id: string;
|
|
342
|
-
status: "
|
|
342
|
+
status: "pending" | "failed" | "succeeded";
|
|
343
343
|
};
|
|
344
344
|
outputFormat: "json";
|
|
345
345
|
status: 202;
|
|
@@ -407,7 +407,7 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
407
407
|
};
|
|
408
408
|
output: {
|
|
409
409
|
id: string;
|
|
410
|
-
status: "
|
|
410
|
+
status: "pending" | "failed" | "succeeded";
|
|
411
411
|
};
|
|
412
412
|
outputFormat: "json";
|
|
413
413
|
status: 202;
|
|
@@ -448,7 +448,7 @@ export declare function createTenantMembersRoutes(getBackend: GetTenantMembersBa
|
|
|
448
448
|
};
|
|
449
449
|
output: {
|
|
450
450
|
id: string;
|
|
451
|
-
status: "
|
|
451
|
+
status: "pending" | "failed" | "succeeded";
|
|
452
452
|
};
|
|
453
453
|
outputFormat: "json";
|
|
454
454
|
status: 202;
|
|
@@ -20,7 +20,7 @@ export declare const operationRoutes: OpenAPIHono<{
|
|
|
20
20
|
kind: "upgrade" | "backup" | "provision" | "seed" | "deprovision" | "users_import" | "sync-defaults" | "detach" | "tenant-members-request";
|
|
21
21
|
engine: string;
|
|
22
22
|
id: string;
|
|
23
|
-
status: "
|
|
23
|
+
status: "pending" | "failed" | "succeeded" | "running" | "cancelled";
|
|
24
24
|
created_at: string;
|
|
25
25
|
updated_at: string;
|
|
26
26
|
events: {
|
|
@@ -67,7 +67,7 @@ export declare const tenantOperationsRoutes: OpenAPIHono<{
|
|
|
67
67
|
page?: unknown;
|
|
68
68
|
per_page?: unknown;
|
|
69
69
|
kind?: "upgrade" | "backup" | "provision" | "seed" | "deprovision" | "users_import" | "sync-defaults" | "detach" | "tenant-members-request" | undefined;
|
|
70
|
-
status?: "
|
|
70
|
+
status?: "pending" | "failed" | "succeeded" | "running" | "cancelled" | undefined;
|
|
71
71
|
rollout_id?: string | undefined;
|
|
72
72
|
};
|
|
73
73
|
} & {
|
|
@@ -81,7 +81,7 @@ export declare const tenantOperationsRoutes: OpenAPIHono<{
|
|
|
81
81
|
kind: "upgrade" | "backup" | "provision" | "seed" | "deprovision" | "users_import" | "sync-defaults" | "detach" | "tenant-members-request";
|
|
82
82
|
engine: string;
|
|
83
83
|
id: string;
|
|
84
|
-
status: "
|
|
84
|
+
status: "pending" | "failed" | "succeeded" | "running" | "cancelled";
|
|
85
85
|
created_at: string;
|
|
86
86
|
updated_at: string;
|
|
87
87
|
rollout_id?: string | null | undefined;
|
|
@@ -132,7 +132,7 @@ export declare const tenantOperationsRoutes: OpenAPIHono<{
|
|
|
132
132
|
kind: "upgrade" | "backup" | "provision" | "seed" | "deprovision" | "users_import" | "sync-defaults" | "detach" | "tenant-members-request";
|
|
133
133
|
engine: string;
|
|
134
134
|
id: string;
|
|
135
|
-
status: "
|
|
135
|
+
status: "pending" | "failed" | "succeeded" | "running" | "cancelled";
|
|
136
136
|
created_at: string;
|
|
137
137
|
updated_at: string;
|
|
138
138
|
rollout_id?: string | null | undefined;
|
|
@@ -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?: "
|
|
131
|
+
provisioning_state?: "pending" | "ready" | "failed" | undefined;
|
|
132
132
|
provisioning_error?: string | undefined;
|
|
133
133
|
provisioning_state_changed_at?: string | undefined;
|
|
134
134
|
bundle_configuration?: string | undefined;
|
|
@@ -218,12 +218,17 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
218
218
|
};
|
|
219
219
|
} & {
|
|
220
220
|
json: {
|
|
221
|
+
allowed_logout_urls?: string[] | undefined;
|
|
222
|
+
oidc_logout?: {
|
|
223
|
+
rp_logout_end_session_endpoint_discovery?: boolean | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
default_organization?: string | undefined;
|
|
226
|
+
audience?: string | undefined;
|
|
221
227
|
id?: string | undefined;
|
|
222
228
|
parent_tenant_id?: string | null | undefined;
|
|
223
229
|
config_sync?: "inherit-on-read" | "synced" | "detached" | null | undefined;
|
|
224
230
|
config_sync_hash?: string | null | undefined;
|
|
225
231
|
config_synced_at?: string | null | undefined;
|
|
226
|
-
audience?: string | undefined;
|
|
227
232
|
friendly_name?: string | undefined;
|
|
228
233
|
picture_url?: string | undefined;
|
|
229
234
|
support_email?: string | undefined;
|
|
@@ -237,7 +242,6 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
237
242
|
session_cookie?: {
|
|
238
243
|
mode?: "persistent" | "non-persistent" | undefined;
|
|
239
244
|
} | undefined;
|
|
240
|
-
allowed_logout_urls?: string[] | undefined;
|
|
241
245
|
default_redirection_uri?: string | undefined;
|
|
242
246
|
default_client_id?: string | undefined;
|
|
243
247
|
enabled_locales?: string[] | undefined;
|
|
@@ -311,13 +315,9 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
311
315
|
} | undefined;
|
|
312
316
|
} | null | undefined;
|
|
313
317
|
default_audience?: string | undefined;
|
|
314
|
-
default_organization?: string | undefined;
|
|
315
318
|
sessions?: {
|
|
316
319
|
oidc_logout_prompt_enabled?: boolean | undefined;
|
|
317
320
|
} | undefined;
|
|
318
|
-
oidc_logout?: {
|
|
319
|
-
rp_logout_end_session_endpoint_discovery?: 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?: "
|
|
330
|
+
provisioning_state?: "pending" | "ready" | "failed" | undefined;
|
|
331
331
|
provisioning_error?: string | undefined;
|
|
332
332
|
provisioning_state_changed_at?: string | undefined;
|
|
333
333
|
bundle_configuration?: string | 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?: "
|
|
521
|
+
provisioning_state?: "pending" | "ready" | "failed" | undefined;
|
|
522
522
|
provisioning_error?: string | undefined;
|
|
523
523
|
provisioning_state_changed_at?: string | undefined;
|
|
524
524
|
bundle_configuration?: string | 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?: "
|
|
730
|
+
provisioning_state?: "pending" | "ready" | "failed" | undefined;
|
|
731
731
|
provisioning_error?: string | undefined;
|
|
732
732
|
provisioning_state_changed_at?: string | undefined;
|
|
733
733
|
bundle_configuration?: string | 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: "center" | "left" | "right";
|
|
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: "center" | "left" | "right";
|
|
87
87
|
logo_height: number;
|
|
88
|
-
logo_position: "none" | "
|
|
88
|
+
logo_position: "none" | "center" | "left" | "right";
|
|
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: "center" | "left" | "right";
|
|
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: "center" | "left" | "right";
|
|
200
200
|
logo_height: number;
|
|
201
|
-
logo_position: "none" | "
|
|
201
|
+
logo_position: "none" | "center" | "left" | "right";
|
|
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: "center" | "left" | "right";
|
|
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: "center" | "left" | "right";
|
|
302
302
|
logo_height: number;
|
|
303
|
-
logo_position: "none" | "
|
|
303
|
+
logo_position: "none" | "center" | "left" | "right";
|
|
304
304
|
logo_url: string;
|
|
305
305
|
social_buttons_layout: "bottom" | "top";
|
|
306
306
|
logo_url_dark?: string | undefined;
|
|
@@ -890,10 +890,10 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
890
890
|
};
|
|
891
891
|
};
|
|
892
892
|
output: {
|
|
893
|
+
user_id: string;
|
|
893
894
|
id: string;
|
|
894
895
|
created_at: string;
|
|
895
896
|
client_id: string;
|
|
896
|
-
user_id: string;
|
|
897
897
|
rotating: boolean;
|
|
898
898
|
login_id: string;
|
|
899
899
|
device: {
|
|
@@ -908,11 +908,6 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
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
911
|
expires_at?: string | undefined;
|
|
917
912
|
session_id?: string | undefined;
|
|
918
913
|
auth_connection?: string | undefined;
|
|
@@ -920,6 +915,11 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
920
915
|
strategy: string;
|
|
921
916
|
strategy_type: string;
|
|
922
917
|
} | undefined;
|
|
918
|
+
session_transfer?: {
|
|
919
|
+
client_id: string;
|
|
920
|
+
family_id: string;
|
|
921
|
+
cascade_revocation: boolean;
|
|
922
|
+
} | undefined;
|
|
923
923
|
organization?: string | undefined;
|
|
924
924
|
revoked_at?: string | undefined;
|
|
925
925
|
idle_expires_at?: string | undefined;
|
|
@@ -929,10 +929,10 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
929
929
|
limit: number;
|
|
930
930
|
length: number;
|
|
931
931
|
tokens: {
|
|
932
|
+
user_id: string;
|
|
932
933
|
id: string;
|
|
933
934
|
created_at: string;
|
|
934
935
|
client_id: string;
|
|
935
|
-
user_id: string;
|
|
936
936
|
rotating: boolean;
|
|
937
937
|
login_id: string;
|
|
938
938
|
device: {
|
|
@@ -947,11 +947,6 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
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
950
|
expires_at?: string | undefined;
|
|
956
951
|
session_id?: string | undefined;
|
|
957
952
|
auth_connection?: string | undefined;
|
|
@@ -959,6 +954,11 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
959
954
|
strategy: string;
|
|
960
955
|
strategy_type: string;
|
|
961
956
|
} | undefined;
|
|
957
|
+
session_transfer?: {
|
|
958
|
+
client_id: string;
|
|
959
|
+
family_id: string;
|
|
960
|
+
cascade_revocation: boolean;
|
|
961
|
+
} | undefined;
|
|
962
962
|
organization?: string | undefined;
|
|
963
963
|
revoked_at?: string | undefined;
|
|
964
964
|
idle_expires_at?: string | undefined;
|
|
@@ -968,10 +968,10 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
968
968
|
next?: string | undefined;
|
|
969
969
|
} | {
|
|
970
970
|
tokens: {
|
|
971
|
+
user_id: string;
|
|
971
972
|
id: string;
|
|
972
973
|
created_at: string;
|
|
973
974
|
client_id: string;
|
|
974
|
-
user_id: string;
|
|
975
975
|
rotating: boolean;
|
|
976
976
|
login_id: string;
|
|
977
977
|
device: {
|
|
@@ -986,11 +986,6 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
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
989
|
expires_at?: string | undefined;
|
|
995
990
|
session_id?: string | undefined;
|
|
996
991
|
auth_connection?: string | undefined;
|
|
@@ -998,6 +993,11 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
998
993
|
strategy: string;
|
|
999
994
|
strategy_type: string;
|
|
1000
995
|
} | undefined;
|
|
996
|
+
session_transfer?: {
|
|
997
|
+
client_id: string;
|
|
998
|
+
family_id: string;
|
|
999
|
+
cascade_revocation: boolean;
|
|
1000
|
+
} | undefined;
|
|
1001
1001
|
organization?: string | undefined;
|
|
1002
1002
|
revoked_at?: string | undefined;
|
|
1003
1003
|
idle_expires_at?: string | undefined;
|
|
@@ -1081,7 +1081,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1081
1081
|
};
|
|
1082
1082
|
};
|
|
1083
1083
|
output: {
|
|
1084
|
-
type: "
|
|
1084
|
+
type: "cs" | "fi" | "sv" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "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" | "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" | "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: "cs" | "fi" | "sv" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "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" | "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" | "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: "cs" | "fi" | "sv" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "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" | "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" | "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: "center" | "left" | "right";
|
|
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: "center" | "left" | "right";
|
|
81
81
|
logo_height: number;
|
|
82
|
-
logo_position: "none" | "
|
|
82
|
+
logo_position: "none" | "center" | "left" | "right";
|
|
83
83
|
logo_url: string;
|
|
84
84
|
social_buttons_layout: "bottom" | "top";
|
|
85
85
|
logo_url_dark?: string | undefined;
|
|
@@ -127,7 +127,7 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
127
127
|
terms_url?: string | undefined;
|
|
128
128
|
privacy_url?: string | undefined;
|
|
129
129
|
scope?: "local" | "shared" | "platform" | undefined;
|
|
130
|
-
override?: "
|
|
130
|
+
override?: "none" | "secrets" | "fields" | undefined;
|
|
131
131
|
enforce?: boolean | undefined;
|
|
132
132
|
} | null;
|
|
133
133
|
client: EnrichedClient;
|
|
@@ -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?: "
|
|
246
|
+
provisioning_state?: "pending" | "ready" | "failed" | undefined;
|
|
247
247
|
provisioning_error?: string | undefined;
|
|
248
248
|
provisioning_state_changed_at?: string | undefined;
|
|
249
249
|
bundle_configuration?: string | 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: "center" | "left" | "right";
|
|
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: "center" | "left" | "right";
|
|
466
466
|
logo_height: number;
|
|
467
|
-
logo_position: "none" | "
|
|
467
|
+
logo_position: "none" | "center" | "left" | "right";
|
|
468
468
|
logo_url: string;
|
|
469
469
|
social_buttons_layout: "bottom" | "top";
|
|
470
470
|
logo_url_dark?: string | undefined;
|
|
@@ -512,7 +512,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
512
512
|
terms_url?: string | undefined;
|
|
513
513
|
privacy_url?: string | undefined;
|
|
514
514
|
scope?: "local" | "shared" | "platform" | undefined;
|
|
515
|
-
override?: "
|
|
515
|
+
override?: "none" | "secrets" | "fields" | undefined;
|
|
516
516
|
enforce?: boolean | undefined;
|
|
517
517
|
} | null;
|
|
518
518
|
client: EnrichedClient;
|
|
@@ -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?: "
|
|
700
|
+
provisioning_state?: "pending" | "ready" | "failed" | undefined;
|
|
701
701
|
provisioning_error?: string | undefined;
|
|
702
702
|
provisioning_state_changed_at?: string | undefined;
|
|
703
703
|
bundle_configuration?: string | undefined;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiring of the `pre-screen` trigger into universal login. Every u2 screen in
|
|
3
|
+
* the registry and the classic `/u` pages with the same screen fire it before
|
|
4
|
+
* the screen is shown (`render`) and when it is submitted (`submit`), so a
|
|
5
|
+
* direct POST can't skip a submit-time denial.
|
|
6
|
+
*/
|
|
7
|
+
import { MiddlewareHandler } from "hono";
|
|
8
|
+
import { Bindings, Variables } from "../../types";
|
|
9
|
+
import type { ScreenDefinition } from "./screens/types";
|
|
10
|
+
/** The pre-screen screen name of a u2 screen id, if it is gated. */
|
|
11
|
+
export declare function getPreScreenName(screenId: string): string | undefined;
|
|
12
|
+
/** u2 screen ids that fire `pre-screen`. */
|
|
13
|
+
export declare function listPreScreenScreenIds(): string[];
|
|
14
|
+
/**
|
|
15
|
+
* Fire `pre-screen` for a u2 screen: `render` before its GET factory runs and
|
|
16
|
+
* `submit` before its POST handler. The screen a POST answers with (the next
|
|
17
|
+
* step, e.g. identifier → email code, or the same screen again) fires
|
|
18
|
+
* `render` too, since it is shown without a GET of its own.
|
|
19
|
+
*/
|
|
20
|
+
export declare function withPreScreen(screenId: string, definition: ScreenDefinition): ScreenDefinition;
|
|
21
|
+
/**
|
|
22
|
+
* Fire `pre-screen` for a classic `/u` page: `render` on GET and `submit` on
|
|
23
|
+
* POST, before the route handler. Requests without a login session (`state`)
|
|
24
|
+
* are left to the route, which rejects them.
|
|
25
|
+
*/
|
|
26
|
+
export declare function preScreenMiddleware(screenId: string, options?: {
|
|
27
|
+
submit?: boolean;
|
|
28
|
+
}): MiddlewareHandler<{
|
|
29
|
+
Bindings: Bindings;
|
|
30
|
+
Variables: Variables;
|
|
31
|
+
}>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Change email screens - the u2 equivalent of /u/account/change-email,
|
|
3
|
+
* /u/account/change-email-verify and /u/account/change-email-confirmation.
|
|
4
|
+
*
|
|
5
|
+
* 1. account-change-email: the user enters a new address and a one-time code
|
|
6
|
+
* is emailed to it.
|
|
7
|
+
* 2. account-change-email-verify: the user enters the code; the address is
|
|
8
|
+
* changed (and marked verified) on the user and its linked identities, and
|
|
9
|
+
* a confirmation with a continue link is shown.
|
|
10
|
+
*
|
|
11
|
+
* Both work from a signed-in session (`/u2/account`, `screen_hint=change-email`)
|
|
12
|
+
* and mid-login, when a form hook redirects to change-email: the login session
|
|
13
|
+
* then carries the `change-email` continuation scope and the user comes from
|
|
14
|
+
* it instead of a session cookie, as on /u.
|
|
15
|
+
*
|
|
16
|
+
* Unlike /u, the new address is stored with the code rather than passed in the
|
|
17
|
+
* URL, so the address that ends up on the account is the one the code was sent
|
|
18
|
+
* to. Whether an address is taken is only revealed after the code for it has
|
|
19
|
+
* been entered, i.e. to someone who controls that inbox.
|
|
20
|
+
*
|
|
21
|
+
* Corresponds to: /u2/account/change-email and /u2/account/change-email/verify
|
|
22
|
+
*/
|
|
23
|
+
import type { DataAdapters, LoginSession, Session, User } from "@authhero/adapter-interfaces";
|
|
24
|
+
import type { ScreenContext, ScreenDefinition, ScreenResult } from "./types";
|
|
25
|
+
/**
|
|
26
|
+
* Every user matching `q`, page by page. The offset listing returns linked
|
|
27
|
+
* identities as rows of their own, so a single page can be filled by the
|
|
28
|
+
* user's own identities and hide another owner.
|
|
29
|
+
*/
|
|
30
|
+
export declare function listAllUsers(users: DataAdapters["users"], tenantId: string, q: string, pageSize?: number): Promise<User[]>;
|
|
31
|
+
/** Whether a user outside this account (the user and its linked identities) has `email`. */
|
|
32
|
+
export declare function isEmailTakenOutsideAccount(users: DataAdapters["users"], tenantId: string, email: string, userId: string, pageSize?: number): Promise<boolean>;
|
|
33
|
+
/**
|
|
34
|
+
* The user whose email is being changed. Mid-login (a form hook sent the user
|
|
35
|
+
* here, or to the account hub which links here) the login session's
|
|
36
|
+
* continuation scope authorizes the page and names the user; otherwise a
|
|
37
|
+
* signed-in session cookie is required.
|
|
38
|
+
*
|
|
39
|
+
* `continuationScope` is `change-email` when the hook targeted this page and
|
|
40
|
+
* `account` when the user came from the account hub mid-login.
|
|
41
|
+
*/
|
|
42
|
+
export declare function resolveChangeEmailUser(context: ScreenContext): Promise<{
|
|
43
|
+
user: User;
|
|
44
|
+
session: Session | null;
|
|
45
|
+
loginSession: LoginSession;
|
|
46
|
+
isContinuation: boolean;
|
|
47
|
+
continuationScope?: string;
|
|
48
|
+
}>;
|
|
49
|
+
export declare function accountChangeEmailScreen(context: ScreenContext): Promise<ScreenResult>;
|
|
50
|
+
export declare const accountChangeEmailScreenDefinition: ScreenDefinition;
|
|
51
|
+
export declare function accountChangeEmailVerifyScreen(context: ScreenContext): Promise<ScreenResult>;
|
|
52
|
+
export declare const accountChangeEmailVerifyScreenDefinition: ScreenDefinition;
|