authhero 9.36.0 → 9.38.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-ce8560f6.entry.js → p-32247347.entry.js} +1 -1
- package/dist/assets/u/widget/p-3f908508.entry.js +1 -0
- package/dist/assets/u/widget/p-Wx4M-olY.js +2 -0
- package/dist/authhero.cjs +165 -141
- package/dist/authhero.d.ts +633 -331
- package/dist/authhero.mjs +19149 -16716
- package/dist/{mfa-DPwn1ajo.js → mfa-DBhvi2B5.js} +1 -1
- package/dist/{mfa-B044FRjD.mjs → mfa-DnCary4g.mjs} +19 -19
- package/dist/{mfa-attempts-DGOLb2oh.mjs → mfa-attempts-BK-gWrgJ.mjs} +5161 -5045
- package/dist/mfa-attempts-C5kobAHS.js +275 -0
- package/dist/{passkey-enrollment-BDboqoaP.js → passkey-enrollment-CmKahPq7.js} +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/email-verification.d.ts +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +2 -2
- package/dist/types/generated/locale-types.d.ts +87 -0
- package/dist/types/helpers/anchor-client.d.ts +16 -0
- package/dist/types/helpers/database-connection-scope.d.ts +48 -18
- package/dist/types/helpers/dcr/audience-policy.d.ts +13 -0
- package/dist/types/helpers/dcr/client-registration.d.ts +81 -0
- package/dist/types/helpers/dcr/constraint-enforcement.d.ts +1 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +18 -1
- package/dist/types/helpers/dcr/mint-iat.d.ts +4 -1
- package/dist/types/helpers/dcr/mint-token.d.ts +4 -0
- package/dist/types/helpers/dcr/presets.d.ts +34 -0
- package/dist/types/helpers/dcr/uri-policy.d.ts +34 -0
- package/dist/types/helpers/default-destinations.d.ts +14 -0
- package/dist/types/helpers/firehose-client.d.ts +29 -0
- package/dist/types/helpers/outbox-destinations/log-streams.d.ts +21 -1
- package/dist/types/helpers/password-connection.d.ts +3 -1
- package/dist/types/helpers/prompt-partials.d.ts +1 -1
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/run-outbox-relay.d.ts +9 -2
- package/dist/types/helpers/self-service-tickets.d.ts +34 -0
- package/dist/types/helpers/users.d.ts +17 -2
- package/dist/types/index.d.ts +565 -271
- package/dist/types/routes/auth-api/authenticate.d.ts +1 -1
- package/dist/types/routes/auth-api/dbconnections.d.ts +2 -2
- package/dist/types/routes/auth-api/index.d.ts +38 -23
- package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
- package/dist/types/routes/auth-api/register/index.d.ts +15 -0
- package/dist/types/routes/auth-api/token.d.ts +10 -10
- package/dist/types/routes/management-api/action-executions.d.ts +2 -2
- package/dist/types/routes/management-api/actions.d.ts +9 -9
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding-preview.d.ts +9 -1
- package/dist/types/routes/management-api/branding.d.ts +105 -1
- package/dist/types/routes/management-api/client-registration-tokens.d.ts +149 -0
- package/dist/types/routes/management-api/clients.d.ts +8 -8
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/email-templates.d.ts +20 -20
- package/dist/types/routes/management-api/emails.d.ts +2 -2
- package/dist/types/routes/management-api/failed-events.d.ts +4 -4
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/hook-code.d.ts +2 -2
- package/dist/types/routes/management-api/hooks.d.ts +4 -4
- package/dist/types/routes/management-api/index.d.ts +482 -233
- package/dist/types/routes/management-api/keys.d.ts +4 -4
- package/dist/types/routes/management-api/log-streams.d.ts +12 -12
- 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 +8 -8
- package/dist/types/routes/management-api/roles.d.ts +1 -1
- package/dist/types/routes/management-api/self-service-profiles.d.ts +7 -7
- package/dist/types/routes/management-api/tenant-operations.d.ts +10 -10
- package/dist/types/routes/management-api/tenants.d.ts +29 -29
- package/dist/types/routes/management-api/themes.d.ts +69 -0
- package/dist/types/routes/management-api/users.d.ts +16 -16
- package/dist/types/routes/universal-login/common.d.ts +52 -0
- package/dist/types/routes/universal-login/dark-theme.d.ts +25 -0
- package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
- package/dist/types/routes/universal-login/form-node.d.ts +4 -4
- package/dist/types/routes/universal-login/index.d.ts +4 -4
- package/dist/types/routes/universal-login/legal-links.d.ts +18 -0
- package/dist/types/routes/universal-login/screen-prompt-map.d.ts +31 -0
- package/dist/types/routes/universal-login/screens/connect-authz.d.ts +9 -0
- package/dist/types/routes/universal-login/screens/login-partials.d.ts +9 -1
- package/dist/types/routes/universal-login/screens/self-service-app.d.ts +46 -0
- package/dist/types/routes/universal-login/u2-form-node.d.ts +2 -2
- package/dist/types/routes/universal-login/u2-index.d.ts +35 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +35 -5
- package/dist/types/routes/universal-login/u2-widget-page.d.ts +6 -1
- package/dist/types/routes/universal-login/universal-login-template.d.ts +1 -0
- package/dist/types/state-machines/login-session.d.ts +19 -1
- package/dist/types/types/Bindings.d.ts +2 -0
- package/package.json +7 -6
- package/dist/assets/u/widget/p-FUW5zvoZ.js +0 -2
- package/dist/assets/u/widget/p-c6ec4c36.entry.js +0 -1
- package/dist/mfa-attempts-BiU_pMOV.js +0 -275
|
@@ -218,17 +218,44 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
218
218
|
};
|
|
219
219
|
} & {
|
|
220
220
|
json: {
|
|
221
|
+
mfa?: {
|
|
222
|
+
policy?: "never" | "always" | "all-applications" | "confidence-score" | undefined;
|
|
223
|
+
factors?: {
|
|
224
|
+
sms?: boolean | undefined;
|
|
225
|
+
otp?: boolean | undefined;
|
|
226
|
+
email?: boolean | undefined;
|
|
227
|
+
push_notification?: boolean | undefined;
|
|
228
|
+
webauthn_roaming?: boolean | undefined;
|
|
229
|
+
webauthn_platform?: boolean | undefined;
|
|
230
|
+
recovery_code?: boolean | undefined;
|
|
231
|
+
duo?: boolean | undefined;
|
|
232
|
+
} | undefined;
|
|
233
|
+
sms_provider?: {
|
|
234
|
+
provider?: "twilio" | "vonage" | "aws_sns" | "phone_message_hook" | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
twilio?: {
|
|
237
|
+
sid?: string | undefined;
|
|
238
|
+
auth_token?: string | undefined;
|
|
239
|
+
from?: string | undefined;
|
|
240
|
+
messaging_service_sid?: string | undefined;
|
|
241
|
+
} | undefined;
|
|
242
|
+
phone_message?: {
|
|
243
|
+
message?: string | undefined;
|
|
244
|
+
} | undefined;
|
|
245
|
+
allow_remember_browser?: boolean | undefined;
|
|
246
|
+
remember_browser_lifetime_in_days?: number | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
id?: string | undefined;
|
|
221
249
|
allowed_logout_urls?: string[] | undefined;
|
|
222
250
|
oidc_logout?: {
|
|
223
251
|
rp_logout_end_session_endpoint_discovery?: boolean | undefined;
|
|
224
252
|
} | undefined;
|
|
225
253
|
default_organization?: string | undefined;
|
|
226
|
-
id?: string | undefined;
|
|
227
|
-
audience?: string | undefined;
|
|
228
254
|
parent_tenant_id?: string | null | undefined;
|
|
229
255
|
config_sync?: "inherit-on-read" | "synced" | "detached" | null | undefined;
|
|
230
256
|
config_sync_hash?: string | null | undefined;
|
|
231
257
|
config_synced_at?: string | null | undefined;
|
|
258
|
+
audience?: string | undefined;
|
|
232
259
|
friendly_name?: string | undefined;
|
|
233
260
|
picture_url?: string | undefined;
|
|
234
261
|
support_email?: string | undefined;
|
|
@@ -373,33 +400,6 @@ export declare const tenantRoutes: OpenAPIHono<{
|
|
|
373
400
|
} | undefined;
|
|
374
401
|
} | undefined;
|
|
375
402
|
} | undefined;
|
|
376
|
-
mfa?: {
|
|
377
|
-
policy?: "never" | "always" | "all-applications" | "confidence-score" | undefined;
|
|
378
|
-
factors?: {
|
|
379
|
-
sms?: boolean | undefined;
|
|
380
|
-
otp?: boolean | undefined;
|
|
381
|
-
email?: boolean | undefined;
|
|
382
|
-
push_notification?: boolean | undefined;
|
|
383
|
-
webauthn_roaming?: boolean | undefined;
|
|
384
|
-
webauthn_platform?: boolean | undefined;
|
|
385
|
-
recovery_code?: boolean | undefined;
|
|
386
|
-
duo?: boolean | undefined;
|
|
387
|
-
} | undefined;
|
|
388
|
-
sms_provider?: {
|
|
389
|
-
provider?: "twilio" | "vonage" | "aws_sns" | "phone_message_hook" | undefined;
|
|
390
|
-
} | undefined;
|
|
391
|
-
twilio?: {
|
|
392
|
-
sid?: string | undefined;
|
|
393
|
-
auth_token?: string | undefined;
|
|
394
|
-
from?: string | undefined;
|
|
395
|
-
messaging_service_sid?: string | undefined;
|
|
396
|
-
} | undefined;
|
|
397
|
-
phone_message?: {
|
|
398
|
-
message?: string | undefined;
|
|
399
|
-
} | undefined;
|
|
400
|
-
allow_remember_browser?: boolean | undefined;
|
|
401
|
-
remember_browser_lifetime_in_days?: number | undefined;
|
|
402
|
-
} | undefined;
|
|
403
403
|
};
|
|
404
404
|
};
|
|
405
405
|
output: {
|
|
@@ -78,6 +78,8 @@ export declare const themesRoutes: OpenAPIHono<{
|
|
|
78
78
|
background_color: string;
|
|
79
79
|
background_image_url: string;
|
|
80
80
|
page_layout: "center" | "left" | "right";
|
|
81
|
+
background_color_dark?: string | undefined;
|
|
82
|
+
background_image_url_dark?: string | undefined;
|
|
81
83
|
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
82
84
|
};
|
|
83
85
|
widget: {
|
|
@@ -86,8 +88,29 @@ export declare const themesRoutes: OpenAPIHono<{
|
|
|
86
88
|
logo_position: "none" | "center" | "left" | "right";
|
|
87
89
|
logo_url: string;
|
|
88
90
|
social_buttons_layout: "bottom" | "top";
|
|
91
|
+
logo_url_dark?: string | undefined;
|
|
89
92
|
};
|
|
90
93
|
themeId: string;
|
|
94
|
+
colors_dark?: {
|
|
95
|
+
error?: string | undefined;
|
|
96
|
+
success?: string | undefined;
|
|
97
|
+
header?: string | undefined;
|
|
98
|
+
base_focus_color?: string | undefined;
|
|
99
|
+
base_hover_color?: string | undefined;
|
|
100
|
+
body_text?: string | undefined;
|
|
101
|
+
icons?: string | undefined;
|
|
102
|
+
input_background?: string | undefined;
|
|
103
|
+
input_border?: string | undefined;
|
|
104
|
+
input_filled_text?: string | undefined;
|
|
105
|
+
input_labels_placeholders?: string | undefined;
|
|
106
|
+
links_focused_components?: string | undefined;
|
|
107
|
+
primary_button?: string | undefined;
|
|
108
|
+
primary_button_label?: string | undefined;
|
|
109
|
+
secondary_button_border?: string | undefined;
|
|
110
|
+
secondary_button_label?: string | undefined;
|
|
111
|
+
widget_background?: string | undefined;
|
|
112
|
+
widget_border?: string | undefined;
|
|
113
|
+
} | undefined;
|
|
91
114
|
};
|
|
92
115
|
outputFormat: "json";
|
|
93
116
|
status: 200;
|
|
@@ -168,6 +191,8 @@ export declare const themesRoutes: OpenAPIHono<{
|
|
|
168
191
|
background_color: string;
|
|
169
192
|
background_image_url: string;
|
|
170
193
|
page_layout: "center" | "left" | "right";
|
|
194
|
+
background_color_dark?: string | undefined;
|
|
195
|
+
background_image_url_dark?: string | undefined;
|
|
171
196
|
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
172
197
|
};
|
|
173
198
|
widget: {
|
|
@@ -176,8 +201,29 @@ export declare const themesRoutes: OpenAPIHono<{
|
|
|
176
201
|
logo_position: "none" | "center" | "left" | "right";
|
|
177
202
|
logo_url: string;
|
|
178
203
|
social_buttons_layout: "bottom" | "top";
|
|
204
|
+
logo_url_dark?: string | undefined;
|
|
179
205
|
};
|
|
180
206
|
themeId: string;
|
|
207
|
+
colors_dark?: {
|
|
208
|
+
error?: string | undefined;
|
|
209
|
+
success?: string | undefined;
|
|
210
|
+
header?: string | undefined;
|
|
211
|
+
base_focus_color?: string | undefined;
|
|
212
|
+
base_hover_color?: string | undefined;
|
|
213
|
+
body_text?: string | undefined;
|
|
214
|
+
icons?: string | undefined;
|
|
215
|
+
input_background?: string | undefined;
|
|
216
|
+
input_border?: string | undefined;
|
|
217
|
+
input_filled_text?: string | undefined;
|
|
218
|
+
input_labels_placeholders?: string | undefined;
|
|
219
|
+
links_focused_components?: string | undefined;
|
|
220
|
+
primary_button?: string | undefined;
|
|
221
|
+
primary_button_label?: string | undefined;
|
|
222
|
+
secondary_button_border?: string | undefined;
|
|
223
|
+
secondary_button_label?: string | undefined;
|
|
224
|
+
widget_background?: string | undefined;
|
|
225
|
+
widget_border?: string | undefined;
|
|
226
|
+
} | undefined;
|
|
181
227
|
};
|
|
182
228
|
};
|
|
183
229
|
output: {
|
|
@@ -247,6 +293,8 @@ export declare const themesRoutes: OpenAPIHono<{
|
|
|
247
293
|
background_color: string;
|
|
248
294
|
background_image_url: string;
|
|
249
295
|
page_layout: "center" | "left" | "right";
|
|
296
|
+
background_color_dark?: string | undefined;
|
|
297
|
+
background_image_url_dark?: string | undefined;
|
|
250
298
|
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
251
299
|
};
|
|
252
300
|
widget: {
|
|
@@ -255,8 +303,29 @@ export declare const themesRoutes: OpenAPIHono<{
|
|
|
255
303
|
logo_position: "none" | "center" | "left" | "right";
|
|
256
304
|
logo_url: string;
|
|
257
305
|
social_buttons_layout: "bottom" | "top";
|
|
306
|
+
logo_url_dark?: string | undefined;
|
|
258
307
|
};
|
|
259
308
|
themeId: string;
|
|
309
|
+
colors_dark?: {
|
|
310
|
+
error?: string | undefined;
|
|
311
|
+
success?: string | undefined;
|
|
312
|
+
header?: string | undefined;
|
|
313
|
+
base_focus_color?: string | undefined;
|
|
314
|
+
base_hover_color?: string | undefined;
|
|
315
|
+
body_text?: string | undefined;
|
|
316
|
+
icons?: string | undefined;
|
|
317
|
+
input_background?: string | undefined;
|
|
318
|
+
input_border?: string | undefined;
|
|
319
|
+
input_filled_text?: string | undefined;
|
|
320
|
+
input_labels_placeholders?: string | undefined;
|
|
321
|
+
links_focused_components?: string | undefined;
|
|
322
|
+
primary_button?: string | undefined;
|
|
323
|
+
primary_button_label?: string | undefined;
|
|
324
|
+
secondary_button_border?: string | undefined;
|
|
325
|
+
secondary_button_label?: string | undefined;
|
|
326
|
+
widget_background?: string | undefined;
|
|
327
|
+
widget_border?: string | undefined;
|
|
328
|
+
} | undefined;
|
|
260
329
|
};
|
|
261
330
|
outputFormat: "json";
|
|
262
331
|
status: 200;
|
|
@@ -890,11 +890,11 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
890
890
|
};
|
|
891
891
|
};
|
|
892
892
|
output: {
|
|
893
|
+
id: string;
|
|
893
894
|
client_id: string;
|
|
894
895
|
user_id: string;
|
|
895
896
|
created_at: string;
|
|
896
897
|
rotating: boolean;
|
|
897
|
-
id: string;
|
|
898
898
|
device: {
|
|
899
899
|
initial_user_agent: string;
|
|
900
900
|
initial_ip: string;
|
|
@@ -925,12 +925,15 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
925
925
|
idle_expires_at?: string | undefined;
|
|
926
926
|
last_exchanged_at?: string | undefined;
|
|
927
927
|
}[] | {
|
|
928
|
+
start: number;
|
|
929
|
+
limit: number;
|
|
930
|
+
length: number;
|
|
928
931
|
tokens: {
|
|
932
|
+
id: string;
|
|
929
933
|
client_id: string;
|
|
930
934
|
user_id: string;
|
|
931
935
|
created_at: string;
|
|
932
936
|
rotating: boolean;
|
|
933
|
-
id: string;
|
|
934
937
|
device: {
|
|
935
938
|
initial_user_agent: string;
|
|
936
939
|
initial_ip: string;
|
|
@@ -961,17 +964,15 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
961
964
|
idle_expires_at?: string | undefined;
|
|
962
965
|
last_exchanged_at?: string | undefined;
|
|
963
966
|
}[];
|
|
967
|
+
total?: number | undefined;
|
|
964
968
|
next?: string | undefined;
|
|
965
969
|
} | {
|
|
966
|
-
start: number;
|
|
967
|
-
limit: number;
|
|
968
|
-
length: number;
|
|
969
970
|
tokens: {
|
|
971
|
+
id: string;
|
|
970
972
|
client_id: string;
|
|
971
973
|
user_id: string;
|
|
972
974
|
created_at: string;
|
|
973
975
|
rotating: boolean;
|
|
974
|
-
id: string;
|
|
975
976
|
device: {
|
|
976
977
|
initial_user_agent: string;
|
|
977
978
|
initial_ip: string;
|
|
@@ -1002,7 +1003,6 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1002
1003
|
idle_expires_at?: string | undefined;
|
|
1003
1004
|
last_exchanged_at?: string | undefined;
|
|
1004
1005
|
}[];
|
|
1005
|
-
total?: number | undefined;
|
|
1006
1006
|
next?: string | undefined;
|
|
1007
1007
|
};
|
|
1008
1008
|
outputFormat: "json";
|
|
@@ -1040,7 +1040,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1040
1040
|
};
|
|
1041
1041
|
output: {};
|
|
1042
1042
|
outputFormat: string;
|
|
1043
|
-
status:
|
|
1043
|
+
status: 404;
|
|
1044
1044
|
} | {
|
|
1045
1045
|
input: {
|
|
1046
1046
|
param: {
|
|
@@ -1053,7 +1053,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1053
1053
|
};
|
|
1054
1054
|
output: {};
|
|
1055
1055
|
outputFormat: string;
|
|
1056
|
-
status:
|
|
1056
|
+
status: 204;
|
|
1057
1057
|
};
|
|
1058
1058
|
};
|
|
1059
1059
|
} & {
|
|
@@ -1081,7 +1081,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1081
1081
|
};
|
|
1082
1082
|
};
|
|
1083
1083
|
output: {
|
|
1084
|
-
type: "i" | "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" | "
|
|
1084
|
+
type: "i" | "fn" | "s" | "gd_start_enroll_failed" | "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" | "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_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" | "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;
|
|
@@ -1116,11 +1116,8 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1116
1116
|
continent_code: string;
|
|
1117
1117
|
} | undefined;
|
|
1118
1118
|
}[] | {
|
|
1119
|
-
start: number;
|
|
1120
|
-
limit: number;
|
|
1121
|
-
length: number;
|
|
1122
1119
|
logs: {
|
|
1123
|
-
type: "i" | "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" | "
|
|
1120
|
+
type: "i" | "fn" | "s" | "gd_start_enroll_failed" | "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" | "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_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" | "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";
|
|
1124
1121
|
date: string;
|
|
1125
1122
|
isMobile: boolean;
|
|
1126
1123
|
log_id: string;
|
|
@@ -1155,11 +1152,13 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1155
1152
|
continent_code: string;
|
|
1156
1153
|
} | undefined;
|
|
1157
1154
|
}[];
|
|
1158
|
-
total?: number | undefined;
|
|
1159
1155
|
next?: string | undefined;
|
|
1160
1156
|
} | {
|
|
1157
|
+
start: number;
|
|
1158
|
+
limit: number;
|
|
1159
|
+
length: number;
|
|
1161
1160
|
logs: {
|
|
1162
|
-
type: "i" | "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" | "
|
|
1161
|
+
type: "i" | "fn" | "s" | "gd_start_enroll_failed" | "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" | "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_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" | "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";
|
|
1163
1162
|
date: string;
|
|
1164
1163
|
isMobile: boolean;
|
|
1165
1164
|
log_id: string;
|
|
@@ -1194,6 +1193,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1194
1193
|
continent_code: string;
|
|
1195
1194
|
} | undefined;
|
|
1196
1195
|
}[];
|
|
1196
|
+
total?: number | undefined;
|
|
1197
1197
|
next?: string | undefined;
|
|
1198
1198
|
};
|
|
1199
1199
|
outputFormat: "json";
|
|
@@ -72,6 +72,8 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
72
72
|
background_color: string;
|
|
73
73
|
background_image_url: string;
|
|
74
74
|
page_layout: "center" | "left" | "right";
|
|
75
|
+
background_color_dark?: string | undefined;
|
|
76
|
+
background_image_url_dark?: string | undefined;
|
|
75
77
|
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
76
78
|
};
|
|
77
79
|
widget: {
|
|
@@ -80,8 +82,29 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
80
82
|
logo_position: "none" | "center" | "left" | "right";
|
|
81
83
|
logo_url: string;
|
|
82
84
|
social_buttons_layout: "bottom" | "top";
|
|
85
|
+
logo_url_dark?: string | undefined;
|
|
83
86
|
};
|
|
84
87
|
themeId: string;
|
|
88
|
+
colors_dark?: {
|
|
89
|
+
error?: string | undefined;
|
|
90
|
+
success?: string | undefined;
|
|
91
|
+
header?: string | undefined;
|
|
92
|
+
base_focus_color?: string | undefined;
|
|
93
|
+
base_hover_color?: string | undefined;
|
|
94
|
+
body_text?: string | undefined;
|
|
95
|
+
icons?: string | undefined;
|
|
96
|
+
input_background?: string | undefined;
|
|
97
|
+
input_border?: string | undefined;
|
|
98
|
+
input_filled_text?: string | undefined;
|
|
99
|
+
input_labels_placeholders?: string | undefined;
|
|
100
|
+
links_focused_components?: string | undefined;
|
|
101
|
+
primary_button?: string | undefined;
|
|
102
|
+
primary_button_label?: string | undefined;
|
|
103
|
+
secondary_button_border?: string | undefined;
|
|
104
|
+
secondary_button_label?: string | undefined;
|
|
105
|
+
widget_background?: string | undefined;
|
|
106
|
+
widget_border?: string | undefined;
|
|
107
|
+
} | undefined;
|
|
85
108
|
};
|
|
86
109
|
branding: {
|
|
87
110
|
favicon_url: string | undefined;
|
|
@@ -95,11 +118,14 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
95
118
|
} | undefined;
|
|
96
119
|
} | undefined;
|
|
97
120
|
logo_url?: string | undefined;
|
|
121
|
+
favicon_url_dark?: string | undefined;
|
|
98
122
|
powered_by_logo_url?: string | undefined;
|
|
99
123
|
font?: {
|
|
100
124
|
url: string;
|
|
101
125
|
} | undefined;
|
|
102
126
|
dark_mode?: "dark" | "light" | "auto" | undefined;
|
|
127
|
+
terms_url?: string | undefined;
|
|
128
|
+
privacy_url?: string | undefined;
|
|
103
129
|
scope?: "local" | "shared" | "platform" | undefined;
|
|
104
130
|
override?: "none" | "secrets" | "fields" | undefined;
|
|
105
131
|
enforce?: boolean | undefined;
|
|
@@ -431,6 +457,8 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
431
457
|
background_color: string;
|
|
432
458
|
background_image_url: string;
|
|
433
459
|
page_layout: "center" | "left" | "right";
|
|
460
|
+
background_color_dark?: string | undefined;
|
|
461
|
+
background_image_url_dark?: string | undefined;
|
|
434
462
|
logo_placement?: "none" | "widget" | "chip" | undefined;
|
|
435
463
|
};
|
|
436
464
|
widget: {
|
|
@@ -439,8 +467,29 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
439
467
|
logo_position: "none" | "center" | "left" | "right";
|
|
440
468
|
logo_url: string;
|
|
441
469
|
social_buttons_layout: "bottom" | "top";
|
|
470
|
+
logo_url_dark?: string | undefined;
|
|
442
471
|
};
|
|
443
472
|
themeId: string;
|
|
473
|
+
colors_dark?: {
|
|
474
|
+
error?: string | undefined;
|
|
475
|
+
success?: string | undefined;
|
|
476
|
+
header?: string | undefined;
|
|
477
|
+
base_focus_color?: string | undefined;
|
|
478
|
+
base_hover_color?: string | undefined;
|
|
479
|
+
body_text?: string | undefined;
|
|
480
|
+
icons?: string | undefined;
|
|
481
|
+
input_background?: string | undefined;
|
|
482
|
+
input_border?: string | undefined;
|
|
483
|
+
input_filled_text?: string | undefined;
|
|
484
|
+
input_labels_placeholders?: string | undefined;
|
|
485
|
+
links_focused_components?: string | undefined;
|
|
486
|
+
primary_button?: string | undefined;
|
|
487
|
+
primary_button_label?: string | undefined;
|
|
488
|
+
secondary_button_border?: string | undefined;
|
|
489
|
+
secondary_button_label?: string | undefined;
|
|
490
|
+
widget_background?: string | undefined;
|
|
491
|
+
widget_border?: string | undefined;
|
|
492
|
+
} | undefined;
|
|
444
493
|
};
|
|
445
494
|
branding: {
|
|
446
495
|
favicon_url: string | undefined;
|
|
@@ -454,11 +503,14 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
454
503
|
} | undefined;
|
|
455
504
|
} | undefined;
|
|
456
505
|
logo_url?: string | undefined;
|
|
506
|
+
favicon_url_dark?: string | undefined;
|
|
457
507
|
powered_by_logo_url?: string | undefined;
|
|
458
508
|
font?: {
|
|
459
509
|
url: string;
|
|
460
510
|
} | undefined;
|
|
461
511
|
dark_mode?: "dark" | "light" | "auto" | undefined;
|
|
512
|
+
terms_url?: string | undefined;
|
|
513
|
+
privacy_url?: string | undefined;
|
|
462
514
|
scope?: "local" | "shared" | "platform" | undefined;
|
|
463
515
|
override?: "none" | "secrets" | "fields" | undefined;
|
|
464
516
|
enforce?: boolean | undefined;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ColorsDark } from "@authhero/widget/page-chrome";
|
|
2
|
+
export declare function sanitizeColorsDark(colorsDark: any): ColorsDark | undefined;
|
|
3
|
+
export type DarkPageInputs = {
|
|
4
|
+
/** Sanitized explicit dark colour overrides. */
|
|
5
|
+
colorsDark?: ColorsDark;
|
|
6
|
+
/** Light brand link colour, so derived dark keeps it. */
|
|
7
|
+
linkColor?: string;
|
|
8
|
+
/** CSS `background` for the dark scheme; undefined = same as light. */
|
|
9
|
+
darkBackground?: string;
|
|
10
|
+
/** Logo for the light scheme (theme wins over branding). */
|
|
11
|
+
logoUrl: string | null;
|
|
12
|
+
/** Logo for the dark scheme, only when the theme defines one. */
|
|
13
|
+
logoUrlDark: string | null;
|
|
14
|
+
hasDarkLogo: boolean;
|
|
15
|
+
/** Any page background image, light or dark (drives the chip surface). */
|
|
16
|
+
hasBgImage: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare function resolveDarkPageInputs(theme: any, branding: {
|
|
19
|
+
logo_url?: string;
|
|
20
|
+
} | null | undefined, themePageBackground?: {
|
|
21
|
+
background_color?: string;
|
|
22
|
+
background_image_url?: string;
|
|
23
|
+
background_color_dark?: string;
|
|
24
|
+
background_image_url_dark?: string;
|
|
25
|
+
}): DarkPageInputs;
|
|
@@ -173,7 +173,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
173
173
|
};
|
|
174
174
|
output: {};
|
|
175
175
|
outputFormat: string;
|
|
176
|
-
status:
|
|
176
|
+
status: 404;
|
|
177
177
|
} | {
|
|
178
178
|
input: {
|
|
179
179
|
query: {
|
|
@@ -188,7 +188,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
188
188
|
};
|
|
189
189
|
output: {};
|
|
190
190
|
outputFormat: string;
|
|
191
|
-
status:
|
|
191
|
+
status: 400;
|
|
192
192
|
} | {
|
|
193
193
|
input: {
|
|
194
194
|
query: {
|
|
@@ -282,7 +282,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
282
282
|
};
|
|
283
283
|
output: {};
|
|
284
284
|
outputFormat: string;
|
|
285
|
-
status:
|
|
285
|
+
status: 404;
|
|
286
286
|
} | {
|
|
287
287
|
input: {
|
|
288
288
|
param: {
|
|
@@ -300,7 +300,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
300
300
|
};
|
|
301
301
|
output: {};
|
|
302
302
|
outputFormat: string;
|
|
303
|
-
status:
|
|
303
|
+
status: 400;
|
|
304
304
|
} | {
|
|
305
305
|
input: {
|
|
306
306
|
param: {
|
|
@@ -18,7 +18,7 @@ export declare const formNodeRoutes: OpenAPIHono<{
|
|
|
18
18
|
};
|
|
19
19
|
output: {};
|
|
20
20
|
outputFormat: string;
|
|
21
|
-
status:
|
|
21
|
+
status: 404;
|
|
22
22
|
} | {
|
|
23
23
|
input: {
|
|
24
24
|
param: {
|
|
@@ -32,7 +32,7 @@ export declare const formNodeRoutes: OpenAPIHono<{
|
|
|
32
32
|
};
|
|
33
33
|
output: {};
|
|
34
34
|
outputFormat: string;
|
|
35
|
-
status:
|
|
35
|
+
status: 200;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
} & {
|
|
@@ -52,7 +52,7 @@ export declare const formNodeRoutes: OpenAPIHono<{
|
|
|
52
52
|
};
|
|
53
53
|
output: {};
|
|
54
54
|
outputFormat: string;
|
|
55
|
-
status:
|
|
55
|
+
status: 404;
|
|
56
56
|
} | {
|
|
57
57
|
input: {
|
|
58
58
|
param: {
|
|
@@ -68,7 +68,7 @@ export declare const formNodeRoutes: OpenAPIHono<{
|
|
|
68
68
|
};
|
|
69
69
|
output: {};
|
|
70
70
|
outputFormat: string;
|
|
71
|
-
status:
|
|
71
|
+
status: 200;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
}, "/">;
|
|
@@ -63,7 +63,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
63
63
|
};
|
|
64
64
|
output: {};
|
|
65
65
|
outputFormat: string;
|
|
66
|
-
status:
|
|
66
|
+
status: 404;
|
|
67
67
|
} | {
|
|
68
68
|
input: {
|
|
69
69
|
param: {
|
|
@@ -77,7 +77,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
77
77
|
};
|
|
78
78
|
output: {};
|
|
79
79
|
outputFormat: string;
|
|
80
|
-
status:
|
|
80
|
+
status: 200;
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
83
|
} & {
|
|
@@ -97,7 +97,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
97
97
|
};
|
|
98
98
|
output: {};
|
|
99
99
|
outputFormat: string;
|
|
100
|
-
status:
|
|
100
|
+
status: 404;
|
|
101
101
|
} | {
|
|
102
102
|
input: {
|
|
103
103
|
param: {
|
|
@@ -113,7 +113,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
113
113
|
};
|
|
114
114
|
output: {};
|
|
115
115
|
outputFormat: string;
|
|
116
|
-
status:
|
|
116
|
+
status: 200;
|
|
117
117
|
};
|
|
118
118
|
};
|
|
119
119
|
}, "/forms"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Branding } from "@authhero/adapter-interfaces";
|
|
2
|
+
export interface LegalUrls {
|
|
3
|
+
/** Terms-of-service link (or the legacy combined "terms" link). */
|
|
4
|
+
termsAndConditionsUrl?: string;
|
|
5
|
+
privacyUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The terms and privacy URLs for a client, from its `client_metadata`:
|
|
9
|
+
* `tos_uri` / `policy_uri` (the DCR names), with the older single
|
|
10
|
+
* `termsAndConditionsUrl` kept as the terms fallback so existing clients
|
|
11
|
+
* render as before. Unusable values are omitted.
|
|
12
|
+
*/
|
|
13
|
+
export declare function clientLegalUrls(metadata: Record<string, string | undefined> | undefined): LegalUrls;
|
|
14
|
+
/**
|
|
15
|
+
* Fill whatever the client left unset from the tenant's branding defaults
|
|
16
|
+
* (`terms_url`, `privacy_url`). A client value always wins.
|
|
17
|
+
*/
|
|
18
|
+
export declare function withTenantLegalDefaults(legal: LegalUrls, branding: Pick<Branding, "terms_url" | "privacy_url"> | null | undefined): LegalUrls;
|
|
@@ -1,2 +1,33 @@
|
|
|
1
1
|
import type { PromptScreen } from "@authhero/adapter-interfaces";
|
|
2
|
+
/**
|
|
3
|
+
* Screens that render tenant prompt partials (Auth0-style HTML injected at the
|
|
4
|
+
* form insertion points), and where to find them. Partials are stored per
|
|
5
|
+
* prompt and keyed by screen name; the prompt is usually the one the screen
|
|
6
|
+
* uses for custom text (`SCREEN_TO_PROMPT_MAP`), except where Auth0 stores
|
|
7
|
+
* partials elsewhere, and `key` is the screen name under it.
|
|
8
|
+
* `key` follows Auth0's screen names where there is an equivalent and is the
|
|
9
|
+
* u2 screen id otherwise.
|
|
10
|
+
*
|
|
11
|
+
* `identifier`, `enter-password`, `login` and `signup` read their partials
|
|
12
|
+
* themselves (they validate and prefill them); the rest are attached by
|
|
13
|
+
* `withPromptPartials` in the screen registry.
|
|
14
|
+
*
|
|
15
|
+
* Not listed on purpose: the account/self-service screens, the connect and
|
|
16
|
+
* device-flow screens, consent, invitations and passkeys. They either have no
|
|
17
|
+
* Auth0 prompt-partials equivalent or are not part of the sign-in form flow.
|
|
18
|
+
*/
|
|
19
|
+
export interface PromptPartialsTarget {
|
|
20
|
+
prompt: string;
|
|
21
|
+
key: string;
|
|
22
|
+
/**
|
|
23
|
+
* Prompts read when `prompt` has nothing for `key`. The partials API also
|
|
24
|
+
* accepts Auth0's screen names as prompt names, so a tenant may have stored
|
|
25
|
+
* the same partials under e.g. `login-passwordless-email-code`.
|
|
26
|
+
*/
|
|
27
|
+
fallbackPrompts?: string[];
|
|
28
|
+
}
|
|
29
|
+
/** Where `withPromptPartials` finds the partials for a screen, if it has any. */
|
|
30
|
+
export declare function getPartialsTargetForScreen(screenId: string): PromptPartialsTarget | undefined;
|
|
31
|
+
/** Screen ids attached by `withPromptPartials`. */
|
|
32
|
+
export declare function listPartialsScreenIds(): string[];
|
|
2
33
|
export declare function getPromptScreenForScreen(screenId: string): PromptScreen | undefined;
|