authhero 9.10.0 → 9.11.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/index.esm.js +1 -1
- package/dist/authhero.cjs +146 -146
- package/dist/authhero.d.ts +341 -119
- package/dist/authhero.mjs +15107 -14199
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/run-retention.d.ts +5 -0
- package/dist/types/helpers/users-import/map.d.ts +128 -0
- package/dist/types/helpers/users-import/process.d.ts +95 -0
- package/dist/types/helpers/users-import-cleanup.d.ts +26 -0
- package/dist/types/index.d.ts +238 -115
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +9 -9
- package/dist/types/routes/management-api/client-grants.d.ts +9 -9
- package/dist/types/routes/management-api/failed-events.d.ts +2 -2
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/index.d.ts +194 -75
- package/dist/types/routes/management-api/jobs.d.ts +133 -0
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/organizations.d.ts +1 -1
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenant-operations.d.ts +33 -9
- package/dist/types/routes/management-api/users.d.ts +2 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
- package/dist/types/state-machines/login-session.d.ts +1 -1
- package/dist/types/types/AuthHeroConfig.d.ts +13 -0
- package/dist/types/types/Bindings.d.ts +2 -0
- package/dist/types/types/auth0/UserImport.d.ts +317 -0
- package/package.json +6 -6
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
+
import { Bindings, Variables } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Auth0's documented ceiling for a users-import file. Kept as the default
|
|
5
|
+
* rather than a hard constant so an operator running a large migration can
|
|
6
|
+
* raise it, while any Auth0-shaped client sees identical behaviour.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_MAX_IMPORT_BYTES: number;
|
|
9
|
+
/** Auth0 allows two concurrent import jobs per tenant. */
|
|
10
|
+
export declare const DEFAULT_MAX_CONCURRENT_IMPORT_JOBS = 2;
|
|
11
|
+
export declare const jobsRoutes: OpenAPIHono<{
|
|
12
|
+
Bindings: Bindings;
|
|
13
|
+
Variables: Variables;
|
|
14
|
+
}, {
|
|
15
|
+
"/users-imports": {
|
|
16
|
+
$post: {
|
|
17
|
+
input: {
|
|
18
|
+
header: {
|
|
19
|
+
"tenant-id"?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
} & {
|
|
22
|
+
form: {
|
|
23
|
+
users: any;
|
|
24
|
+
connection_id: string;
|
|
25
|
+
upsert?: string | boolean | undefined;
|
|
26
|
+
external_id?: string | undefined;
|
|
27
|
+
send_completion_email?: string | boolean | undefined;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
output: {
|
|
31
|
+
id: string;
|
|
32
|
+
type: string;
|
|
33
|
+
status: "pending" | "failed" | "completed";
|
|
34
|
+
created_at?: string | undefined;
|
|
35
|
+
connection_id?: string | undefined;
|
|
36
|
+
external_id?: string | undefined;
|
|
37
|
+
percentage_done?: number | undefined;
|
|
38
|
+
time_left_seconds?: number | undefined;
|
|
39
|
+
status_details?: string | undefined;
|
|
40
|
+
summary?: {
|
|
41
|
+
failed: number;
|
|
42
|
+
updated: number;
|
|
43
|
+
inserted: number;
|
|
44
|
+
total: number;
|
|
45
|
+
} | undefined;
|
|
46
|
+
};
|
|
47
|
+
outputFormat: "json";
|
|
48
|
+
status: 202;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
} & {
|
|
52
|
+
"/:id": {
|
|
53
|
+
$get: {
|
|
54
|
+
input: {
|
|
55
|
+
param: {
|
|
56
|
+
id: string;
|
|
57
|
+
};
|
|
58
|
+
} & {
|
|
59
|
+
header: {
|
|
60
|
+
"tenant-id"?: string | undefined;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
output: {
|
|
64
|
+
id: string;
|
|
65
|
+
type: string;
|
|
66
|
+
status: "pending" | "failed" | "completed";
|
|
67
|
+
created_at?: string | undefined;
|
|
68
|
+
connection_id?: string | undefined;
|
|
69
|
+
external_id?: string | undefined;
|
|
70
|
+
percentage_done?: number | undefined;
|
|
71
|
+
time_left_seconds?: number | undefined;
|
|
72
|
+
status_details?: string | undefined;
|
|
73
|
+
summary?: {
|
|
74
|
+
failed: number;
|
|
75
|
+
updated: number;
|
|
76
|
+
inserted: number;
|
|
77
|
+
total: number;
|
|
78
|
+
} | undefined;
|
|
79
|
+
};
|
|
80
|
+
outputFormat: "json";
|
|
81
|
+
status: 200;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
} & {
|
|
85
|
+
"/:id/errors": {
|
|
86
|
+
$get: {
|
|
87
|
+
input: {
|
|
88
|
+
param: {
|
|
89
|
+
id: string;
|
|
90
|
+
};
|
|
91
|
+
} & {
|
|
92
|
+
query: {
|
|
93
|
+
page?: unknown;
|
|
94
|
+
per_page?: unknown;
|
|
95
|
+
};
|
|
96
|
+
} & {
|
|
97
|
+
header: {
|
|
98
|
+
"tenant-id"?: string | undefined;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
output: {};
|
|
102
|
+
outputFormat: string;
|
|
103
|
+
status: 204;
|
|
104
|
+
} | {
|
|
105
|
+
input: {
|
|
106
|
+
param: {
|
|
107
|
+
id: string;
|
|
108
|
+
};
|
|
109
|
+
} & {
|
|
110
|
+
query: {
|
|
111
|
+
page?: unknown;
|
|
112
|
+
per_page?: unknown;
|
|
113
|
+
};
|
|
114
|
+
} & {
|
|
115
|
+
header: {
|
|
116
|
+
"tenant-id"?: string | undefined;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
output: {
|
|
120
|
+
user: {
|
|
121
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
122
|
+
};
|
|
123
|
+
errors: {
|
|
124
|
+
code: string;
|
|
125
|
+
message: string;
|
|
126
|
+
path?: string | undefined;
|
|
127
|
+
}[];
|
|
128
|
+
}[];
|
|
129
|
+
outputFormat: "json";
|
|
130
|
+
status: 200;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
}, "/">;
|
|
@@ -24,7 +24,7 @@ export declare const logRoutes: OpenAPIHono<{
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
output: {
|
|
27
|
-
type: "fn" | "i" | "
|
|
27
|
+
type: "fn" | "i" | "sui" | "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" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "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: "fn" | "i" | "
|
|
66
|
+
type: "fn" | "i" | "sui" | "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" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "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: "fn" | "i" | "
|
|
105
|
+
type: "fn" | "i" | "sui" | "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" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "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: "fn" | "i" | "
|
|
159
|
+
type: "fn" | "i" | "sui" | "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" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "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;
|
|
@@ -736,9 +736,9 @@ export declare const organizationRoutes: OpenAPIHono<{
|
|
|
736
736
|
email?: string | undefined;
|
|
737
737
|
};
|
|
738
738
|
id?: string | undefined;
|
|
739
|
-
connection_id?: string | undefined;
|
|
740
739
|
app_metadata?: Record<string, any> | undefined;
|
|
741
740
|
user_metadata?: Record<string, any> | undefined;
|
|
741
|
+
connection_id?: string | undefined;
|
|
742
742
|
roles?: string[] | undefined;
|
|
743
743
|
ttl_sec?: number | undefined;
|
|
744
744
|
send_invitation_email?: boolean | undefined;
|
|
@@ -52,7 +52,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
output: {
|
|
55
|
-
prompt: "
|
|
55
|
+
prompt: "signup" | "status" | "mfa" | "organizations" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
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: "signup" | "status" | "mfa" | "organizations" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
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: "signup" | "status" | "mfa" | "organizations" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
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: "signup" | "status" | "mfa" | "organizations" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
140
140
|
language: string;
|
|
141
141
|
};
|
|
142
142
|
} & {
|
|
@@ -8,8 +8,8 @@ export declare const tenantExportImportRoutes: OpenAPIHono<{
|
|
|
8
8
|
$get: {
|
|
9
9
|
input: {
|
|
10
10
|
query: {
|
|
11
|
-
include_password_hashes?: "
|
|
12
|
-
gzip?: "
|
|
11
|
+
include_password_hashes?: "true" | "false" | undefined;
|
|
12
|
+
gzip?: "true" | "false" | undefined;
|
|
13
13
|
};
|
|
14
14
|
} & {
|
|
15
15
|
header: {
|
|
@@ -22,8 +22,8 @@ export declare const tenantExportImportRoutes: OpenAPIHono<{
|
|
|
22
22
|
} | {
|
|
23
23
|
input: {
|
|
24
24
|
query: {
|
|
25
|
-
include_password_hashes?: "
|
|
26
|
-
gzip?: "
|
|
25
|
+
include_password_hashes?: "true" | "false" | undefined;
|
|
26
|
+
gzip?: "true" | "false" | undefined;
|
|
27
27
|
};
|
|
28
28
|
} & {
|
|
29
29
|
header: {
|
|
@@ -42,7 +42,7 @@ export declare const tenantExportImportRoutes: OpenAPIHono<{
|
|
|
42
42
|
$post: {
|
|
43
43
|
input: {
|
|
44
44
|
query: {
|
|
45
|
-
include_password_hashes?: "
|
|
45
|
+
include_password_hashes?: "true" | "false" | undefined;
|
|
46
46
|
};
|
|
47
47
|
} & {
|
|
48
48
|
header: {
|
|
@@ -17,8 +17,8 @@ export declare const operationRoutes: OpenAPIHono<{
|
|
|
17
17
|
};
|
|
18
18
|
output: {
|
|
19
19
|
tenant_id: string | null;
|
|
20
|
-
kind: "provision" | "seed" | "upgrade" | "backup" | "deprovision";
|
|
21
|
-
engine:
|
|
20
|
+
kind: "provision" | "seed" | "upgrade" | "backup" | "deprovision" | "users_import";
|
|
21
|
+
engine: string;
|
|
22
22
|
id: string;
|
|
23
23
|
status: "pending" | "failed" | "running" | "succeeded" | "cancelled";
|
|
24
24
|
created_at: string;
|
|
@@ -26,7 +26,7 @@ export declare const operationRoutes: OpenAPIHono<{
|
|
|
26
26
|
events: {
|
|
27
27
|
operation_id: string;
|
|
28
28
|
step: string;
|
|
29
|
-
outcome: "failed" | "succeeded" | "
|
|
29
|
+
outcome: "failed" | "succeeded" | "skipped" | "started" | "retried" | "reconciled";
|
|
30
30
|
attempt: number;
|
|
31
31
|
id: string;
|
|
32
32
|
created_at: string;
|
|
@@ -39,8 +39,16 @@ export declare const operationRoutes: OpenAPIHono<{
|
|
|
39
39
|
target_worker_version?: string | null | undefined;
|
|
40
40
|
target_database_version?: string | null | undefined;
|
|
41
41
|
initiated_by?: string | null | undefined;
|
|
42
|
+
input?: {
|
|
43
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
44
|
+
} | null | undefined;
|
|
42
45
|
current_step?: string | null | undefined;
|
|
43
46
|
error?: string | null | undefined;
|
|
47
|
+
result?: {
|
|
48
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
49
|
+
} | null | undefined;
|
|
50
|
+
claimed_by?: string | null | undefined;
|
|
51
|
+
claim_expires_at?: string | null | undefined;
|
|
44
52
|
finished_at?: string | null | undefined;
|
|
45
53
|
};
|
|
46
54
|
outputFormat: "json";
|
|
@@ -58,7 +66,7 @@ export declare const tenantOperationsRoutes: OpenAPIHono<{
|
|
|
58
66
|
query: {
|
|
59
67
|
page?: unknown;
|
|
60
68
|
per_page?: unknown;
|
|
61
|
-
kind?: "provision" | "seed" | "upgrade" | "backup" | "deprovision" | undefined;
|
|
69
|
+
kind?: "provision" | "seed" | "upgrade" | "backup" | "deprovision" | "users_import" | undefined;
|
|
62
70
|
status?: "pending" | "failed" | "running" | "succeeded" | "cancelled" | undefined;
|
|
63
71
|
};
|
|
64
72
|
} & {
|
|
@@ -69,8 +77,8 @@ export declare const tenantOperationsRoutes: OpenAPIHono<{
|
|
|
69
77
|
output: {
|
|
70
78
|
operations: {
|
|
71
79
|
tenant_id: string | null;
|
|
72
|
-
kind: "provision" | "seed" | "upgrade" | "backup" | "deprovision";
|
|
73
|
-
engine:
|
|
80
|
+
kind: "provision" | "seed" | "upgrade" | "backup" | "deprovision" | "users_import";
|
|
81
|
+
engine: string;
|
|
74
82
|
id: string;
|
|
75
83
|
status: "pending" | "failed" | "running" | "succeeded" | "cancelled";
|
|
76
84
|
created_at: string;
|
|
@@ -80,8 +88,16 @@ export declare const tenantOperationsRoutes: OpenAPIHono<{
|
|
|
80
88
|
target_worker_version?: string | null | undefined;
|
|
81
89
|
target_database_version?: string | null | undefined;
|
|
82
90
|
initiated_by?: string | null | undefined;
|
|
91
|
+
input?: {
|
|
92
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
93
|
+
} | null | undefined;
|
|
83
94
|
current_step?: string | null | undefined;
|
|
84
95
|
error?: string | null | undefined;
|
|
96
|
+
result?: {
|
|
97
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
98
|
+
} | null | undefined;
|
|
99
|
+
claimed_by?: string | null | undefined;
|
|
100
|
+
claim_expires_at?: string | null | undefined;
|
|
85
101
|
finished_at?: string | null | undefined;
|
|
86
102
|
}[];
|
|
87
103
|
start: number;
|
|
@@ -101,13 +117,13 @@ export declare const tenantOperationsRoutes: OpenAPIHono<{
|
|
|
101
117
|
};
|
|
102
118
|
} & {
|
|
103
119
|
json: {
|
|
104
|
-
kind: "provision" | "seed" | "upgrade" | "backup" | "deprovision";
|
|
120
|
+
kind: "provision" | "seed" | "upgrade" | "backup" | "deprovision" | "users_import";
|
|
105
121
|
};
|
|
106
122
|
};
|
|
107
123
|
output: {
|
|
108
124
|
tenant_id: string | null;
|
|
109
|
-
kind: "provision" | "seed" | "upgrade" | "backup" | "deprovision";
|
|
110
|
-
engine:
|
|
125
|
+
kind: "provision" | "seed" | "upgrade" | "backup" | "deprovision" | "users_import";
|
|
126
|
+
engine: string;
|
|
111
127
|
id: string;
|
|
112
128
|
status: "pending" | "failed" | "running" | "succeeded" | "cancelled";
|
|
113
129
|
created_at: string;
|
|
@@ -117,8 +133,16 @@ export declare const tenantOperationsRoutes: OpenAPIHono<{
|
|
|
117
133
|
target_worker_version?: string | null | undefined;
|
|
118
134
|
target_database_version?: string | null | undefined;
|
|
119
135
|
initiated_by?: string | null | undefined;
|
|
136
|
+
input?: {
|
|
137
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
138
|
+
} | null | undefined;
|
|
120
139
|
current_step?: string | null | undefined;
|
|
121
140
|
error?: string | null | undefined;
|
|
141
|
+
result?: {
|
|
142
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
143
|
+
} | null | undefined;
|
|
144
|
+
claimed_by?: string | null | undefined;
|
|
145
|
+
claim_expires_at?: string | null | undefined;
|
|
122
146
|
finished_at?: string | null | undefined;
|
|
123
147
|
};
|
|
124
148
|
outputFormat: "json";
|
|
@@ -963,7 +963,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
963
963
|
};
|
|
964
964
|
};
|
|
965
965
|
output: {
|
|
966
|
-
type: "fn" | "i" | "
|
|
966
|
+
type: "fn" | "i" | "sui" | "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" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "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: "fn" | "i" | "
|
|
1005
|
+
type: "fn" | "i" | "sui" | "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" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "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;
|
|
@@ -27,7 +27,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
27
27
|
output: {
|
|
28
28
|
screen: {
|
|
29
29
|
action: string;
|
|
30
|
-
method: "
|
|
30
|
+
method: "GET" | "POST";
|
|
31
31
|
components: {
|
|
32
32
|
id: string;
|
|
33
33
|
type: string;
|
|
@@ -107,7 +107,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
107
107
|
output: {
|
|
108
108
|
screen: {
|
|
109
109
|
action: string;
|
|
110
|
-
method: "
|
|
110
|
+
method: "GET" | "POST";
|
|
111
111
|
components: {
|
|
112
112
|
id: string;
|
|
113
113
|
type: string;
|
|
@@ -204,7 +204,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
204
204
|
output: {
|
|
205
205
|
screen: {
|
|
206
206
|
action: string;
|
|
207
|
-
method: "
|
|
207
|
+
method: "GET" | "POST";
|
|
208
208
|
components: {
|
|
209
209
|
id: string;
|
|
210
210
|
type: string;
|
|
@@ -319,7 +319,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
319
319
|
output: {
|
|
320
320
|
screen: {
|
|
321
321
|
action: string;
|
|
322
|
-
method: "
|
|
322
|
+
method: "GET" | "POST";
|
|
323
323
|
components: {
|
|
324
324
|
id: string;
|
|
325
325
|
type: string;
|
|
@@ -140,7 +140,7 @@ export declare const loginSessionMachine: import("xstate").StateMachine<LoginSes
|
|
|
140
140
|
} | {
|
|
141
141
|
type: "setFailureReason";
|
|
142
142
|
params: import("xstate").NonReducibleUnknown;
|
|
143
|
-
}, never, never, "pending" | "failed" | "expired" | "authenticated" | "awaiting_email_verification" | "awaiting_mfa" | "awaiting_consent" | "awaiting_hook" | "awaiting_continuation"
|
|
143
|
+
}, never, never, "pending" | "failed" | "completed" | "expired" | "authenticated" | "awaiting_email_verification" | "awaiting_mfa" | "awaiting_consent" | "awaiting_hook" | "awaiting_continuation", string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
144
144
|
id: "loginSession";
|
|
145
145
|
states: {
|
|
146
146
|
readonly pending: {};
|
|
@@ -484,6 +484,19 @@ export interface AuthHeroConfig {
|
|
|
484
484
|
* satisfy this shape.
|
|
485
485
|
*/
|
|
486
486
|
tenantOperationExecutor?: TenantOperationExecutorBinding;
|
|
487
|
+
/**
|
|
488
|
+
* Maximum accepted size of a bulk user-import file, in bytes
|
|
489
|
+
* (`POST /api/v2/jobs/users-imports`). Defaults to Auth0's documented
|
|
490
|
+
* 500 KB, so any Auth0-shaped client sees identical behaviour. Raise it
|
|
491
|
+
* only for a migration you control end to end — a larger file means more
|
|
492
|
+
* rows staged inside a single request.
|
|
493
|
+
*/
|
|
494
|
+
usersImportMaxBytes?: number;
|
|
495
|
+
/**
|
|
496
|
+
* Maximum bulk user-import jobs a single tenant may have in flight.
|
|
497
|
+
* Defaults to Auth0's limit of 2; further submissions get a 429.
|
|
498
|
+
*/
|
|
499
|
+
usersImportMaxConcurrentJobs?: number;
|
|
487
500
|
/**
|
|
488
501
|
* Optional powered-by logo to display at the bottom left of the login widget.
|
|
489
502
|
* This is only configurable in code, not stored in the database.
|
|
@@ -35,6 +35,8 @@ export type Bindings = {
|
|
|
35
35
|
webhookInvoker?: WebhookInvoker;
|
|
36
36
|
tenantUpgrade?: (tenantId: string) => Promise<void>;
|
|
37
37
|
tenantOperationExecutor?: TenantOperationExecutorBinding;
|
|
38
|
+
usersImportMaxBytes?: number;
|
|
39
|
+
usersImportMaxConcurrentJobs?: number;
|
|
38
40
|
outbox?: OutboxConfig;
|
|
39
41
|
userLinkingMode?: UserLinkingModeOption;
|
|
40
42
|
usernamePasswordProvider?: UsernamePasswordProviderResolver;
|