authhero 9.34.0 → 9.36.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.
Files changed (65) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +105 -104
  3. package/dist/authhero.d.ts +304 -220
  4. package/dist/authhero.mjs +16782 -15989
  5. package/dist/{mfa-CDFRupfM.mjs → mfa-B044FRjD.mjs} +18 -18
  6. package/dist/{mfa-DF3O3Z8H.js → mfa-DPwn1ajo.js} +1 -1
  7. package/dist/mfa-attempts-BiU_pMOV.js +275 -0
  8. package/dist/{mfa-attempts-C06Bkdy9.mjs → mfa-attempts-DGOLb2oh.mjs} +6417 -6092
  9. package/dist/{passkey-enrollment-RGw-WaSq.js → passkey-enrollment-BDboqoaP.js} +1 -1
  10. package/dist/tsconfig.types.tsbuildinfo +1 -1
  11. package/dist/types/authentication-flows/passwordless.d.ts +6 -412
  12. package/dist/types/emails/from-address.d.ts +21 -0
  13. package/dist/types/errors/management-api-error.d.ts +3 -0
  14. package/dist/types/helpers/branding-assets.d.ts +28 -0
  15. package/dist/types/helpers/client.d.ts +5 -2
  16. package/dist/types/helpers/database-connection-scope.d.ts +67 -0
  17. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  18. package/dist/types/helpers/link-candidates.d.ts +7 -1
  19. package/dist/types/helpers/reserved-claims.d.ts +2 -2
  20. package/dist/types/helpers/self-service-connections.d.ts +42 -0
  21. package/dist/types/helpers/sso-access-tickets.d.ts +18 -0
  22. package/dist/types/helpers/users.d.ts +29 -4
  23. package/dist/types/index.d.ts +298 -217
  24. package/dist/types/routes/assets.d.ts +11 -0
  25. package/dist/types/routes/auth-api/device.d.ts +8 -8
  26. package/dist/types/routes/auth-api/index.d.ts +40 -38
  27. package/dist/types/routes/auth-api/passwordless.d.ts +14 -12
  28. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  29. package/dist/types/routes/auth-api/revoke.d.ts +6 -6
  30. package/dist/types/routes/auth-api/token.d.ts +10 -10
  31. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  32. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  33. package/dist/types/routes/management-api/branding-uploads.d.ts +85 -0
  34. package/dist/types/routes/management-api/branding.d.ts +92 -13
  35. package/dist/types/routes/management-api/clients.d.ts +32 -32
  36. package/dist/types/routes/management-api/connections.d.ts +24 -24
  37. package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
  38. package/dist/types/routes/management-api/email-templates.d.ts +18 -18
  39. package/dist/types/routes/management-api/failed-events.d.ts +2 -2
  40. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  41. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  42. package/dist/types/routes/management-api/hook-code.d.ts +2 -2
  43. package/dist/types/routes/management-api/index.d.ts +251 -172
  44. package/dist/types/routes/management-api/keys.d.ts +8 -8
  45. package/dist/types/routes/management-api/log-streams.d.ts +6 -6
  46. package/dist/types/routes/management-api/logs.d.ts +4 -4
  47. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  48. package/dist/types/routes/management-api/organizations.d.ts +4 -4
  49. package/dist/types/routes/management-api/prompts.d.ts +6 -6
  50. package/dist/types/routes/management-api/self-service-profiles.d.ts +345 -0
  51. package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
  52. package/dist/types/routes/management-api/tenant-operations.d.ts +10 -10
  53. package/dist/types/routes/management-api/tenants.d.ts +13 -13
  54. package/dist/types/routes/management-api/themes.d.ts +9 -9
  55. package/dist/types/routes/management-api/users.d.ts +29 -29
  56. package/dist/types/routes/universal-login/common.d.ts +12 -828
  57. package/dist/types/routes/universal-login/identifier.d.ts +2 -2
  58. package/dist/types/routes/universal-login/index.d.ts +2 -2
  59. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  60. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  61. package/dist/types/state-machines/login-session.d.ts +1 -1
  62. package/dist/types/types/Bindings.d.ts +1 -0
  63. package/dist/types/utils/username-password-provider.d.ts +14 -3
  64. package/package.json +6 -6
  65. package/dist/mfa-attempts-BOWgbEPg.js +0 -275
@@ -71,13 +71,13 @@ export declare function initJSXRoute(ctx: Context<{
71
71
  page_background: {
72
72
  background_color: string;
73
73
  background_image_url: string;
74
- page_layout: "left" | "right" | "center";
74
+ page_layout: "center" | "left" | "right";
75
75
  logo_placement?: "none" | "widget" | "chip" | undefined;
76
76
  };
77
77
  widget: {
78
- header_text_alignment: "left" | "right" | "center";
78
+ header_text_alignment: "center" | "left" | "right";
79
79
  logo_height: number;
80
- logo_position: "none" | "left" | "right" | "center";
80
+ logo_position: "none" | "center" | "left" | "right";
81
81
  logo_url: string;
82
82
  social_buttons_layout: "bottom" | "top";
83
83
  };
@@ -104,416 +104,7 @@ export declare function initJSXRoute(ctx: Context<{
104
104
  override?: "none" | "secrets" | "fields" | undefined;
105
105
  enforce?: boolean | undefined;
106
106
  } | null;
107
- client: {
108
- created_at: string;
109
- updated_at: string;
110
- name: string;
111
- global: boolean;
112
- is_first_party: boolean;
113
- oidc_conformant: boolean;
114
- auth0_conformant: boolean;
115
- sso: boolean;
116
- sso_disabled: boolean;
117
- cross_origin_authentication: boolean;
118
- custom_login_page_on: boolean;
119
- require_pushed_authorization_requests: boolean;
120
- require_proof_of_possession: boolean;
121
- client_id: string;
122
- tenant: {
123
- created_at: string;
124
- updated_at: string;
125
- friendly_name: string;
126
- id: string;
127
- parent_tenant_id?: string | null | undefined;
128
- config_sync?: "inherit-on-read" | "synced" | "detached" | null | undefined;
129
- config_sync_hash?: string | null | undefined;
130
- config_synced_at?: string | null | undefined;
131
- audience?: string | undefined;
132
- picture_url?: string | undefined;
133
- support_email?: string | undefined;
134
- support_url?: string | undefined;
135
- sender_email?: string | undefined;
136
- sender_name?: string | undefined;
137
- session_lifetime?: number | undefined;
138
- idle_session_lifetime?: number | undefined;
139
- ephemeral_session_lifetime?: number | undefined;
140
- idle_ephemeral_session_lifetime?: number | undefined;
141
- session_cookie?: {
142
- mode?: "persistent" | "non-persistent" | undefined;
143
- } | undefined;
144
- allowed_logout_urls?: string[] | undefined;
145
- default_redirection_uri?: string | undefined;
146
- default_client_id?: string | undefined;
147
- enabled_locales?: string[] | undefined;
148
- default_directory?: string | undefined;
149
- error_page?: {
150
- html?: string | undefined;
151
- show_log_link?: boolean | undefined;
152
- url?: string | undefined;
153
- } | null | undefined;
154
- flags?: {
155
- allow_changing_enable_sso?: boolean | undefined;
156
- allow_legacy_delegation_grant_types?: boolean | undefined;
157
- allow_legacy_ro_grant_types?: boolean | undefined;
158
- allow_legacy_tokeninfo_endpoint?: boolean | undefined;
159
- change_pwd_flow_v1?: boolean | undefined;
160
- client_id_metadata_document_registration?: boolean | undefined;
161
- custom_domains_provisioning?: boolean | undefined;
162
- dashboard_insights_view?: boolean | undefined;
163
- dashboard_log_streams_next?: boolean | undefined;
164
- disable_clickjack_protection_headers?: boolean | undefined;
165
- disable_fields_map_fix?: boolean | undefined;
166
- disable_impersonation?: boolean | undefined;
167
- disable_management_api_sms_obfuscation?: boolean | undefined;
168
- enable_adfs_waad_email_verification?: boolean | undefined;
169
- enable_apis_section?: boolean | undefined;
170
- enable_client_connections?: boolean | undefined;
171
- enable_custom_domain_in_emails?: boolean | undefined;
172
- enable_dynamic_client_registration?: boolean | undefined;
173
- dcr_require_initial_access_token?: boolean | undefined;
174
- dcr_allowed_grant_types?: string[] | undefined;
175
- allow_http_return_to?: string[] | undefined;
176
- enable_idtoken_api2?: boolean | undefined;
177
- enable_legacy_logs_search_v2?: boolean | undefined;
178
- enable_legacy_profile?: boolean | undefined;
179
- enable_pipeline2?: boolean | undefined;
180
- enable_public_signup_user_exists_error?: boolean | undefined;
181
- enable_sso?: boolean | undefined;
182
- enforce_client_authentication_on_passwordless_start?: boolean | undefined;
183
- genai_trial?: boolean | undefined;
184
- improved_signup_bot_detection_in_classic?: boolean | undefined;
185
- mfa_show_factor_list_on_enrollment?: boolean | undefined;
186
- no_disclose_enterprise_connections?: boolean | undefined;
187
- remove_alg_from_jwks?: boolean | undefined;
188
- revoke_refresh_token_grant?: boolean | undefined;
189
- trust_azure_adfs_email_verified_connection_property?: boolean | undefined;
190
- use_scope_descriptions_for_consent?: boolean | undefined;
191
- inherit_global_permissions_in_organizations?: boolean | undefined;
192
- restrict_undefined_scopes?: boolean | undefined;
193
- } | undefined;
194
- sandbox_version?: string | undefined;
195
- legacy_sandbox_version?: string | undefined;
196
- sandbox_versions_available?: string[] | undefined;
197
- change_password?: {
198
- enabled?: boolean | undefined;
199
- html?: string | undefined;
200
- } | undefined;
201
- guardian_mfa_page?: {
202
- enabled?: boolean | undefined;
203
- html?: string | undefined;
204
- } | undefined;
205
- device_flow?: {
206
- charset?: "base20" | "digits" | undefined;
207
- mask?: string | undefined;
208
- } | undefined;
209
- default_token_quota?: {
210
- clients?: {
211
- client_credentials?: Record<string, any> | undefined;
212
- } | undefined;
213
- organizations?: {
214
- client_credentials?: Record<string, any> | undefined;
215
- } | undefined;
216
- } | null | undefined;
217
- default_audience?: string | undefined;
218
- default_organization?: string | undefined;
219
- sessions?: {
220
- oidc_logout_prompt_enabled?: boolean | undefined;
221
- } | undefined;
222
- oidc_logout?: {
223
- rp_logout_end_session_endpoint_discovery?: boolean | undefined;
224
- } | undefined;
225
- allow_organization_name_in_authentication_api?: boolean | undefined;
226
- customize_mfa_in_postlogin_action?: boolean | undefined;
227
- acr_values_supported?: string[] | undefined;
228
- mtls?: {
229
- enable_endpoint_aliases?: boolean | undefined;
230
- } | null | undefined;
231
- pushed_authorization_requests_supported?: boolean | undefined;
232
- authorization_response_iss_parameter_supported?: boolean | undefined;
233
- deployment_type?: "shared" | "wfp" | undefined;
234
- provisioning_state?: "pending" | "ready" | "failed" | undefined;
235
- provisioning_error?: string | undefined;
236
- provisioning_state_changed_at?: string | undefined;
237
- bundle_configuration?: string | undefined;
238
- worker_version?: string | undefined;
239
- database_version?: string | undefined;
240
- worker_script_name?: string | undefined;
241
- storage_kind?: "own_d1" | "existing_d1" | "shared_planetscale" | undefined;
242
- d1_database_id?: string | undefined;
243
- attack_protection?: {
244
- breached_password_detection?: {
245
- enabled?: boolean | undefined;
246
- shields?: string[] | undefined;
247
- admin_notification_frequency?: string[] | undefined;
248
- method?: string | undefined;
249
- stage?: {
250
- "pre-user-registration"?: {
251
- shields?: string[] | undefined;
252
- } | undefined;
253
- "pre-change-password"?: {
254
- shields?: string[] | undefined;
255
- } | undefined;
256
- } | undefined;
257
- } | undefined;
258
- brute_force_protection?: {
259
- enabled?: boolean | undefined;
260
- shields?: string[] | undefined;
261
- allowlist?: string[] | undefined;
262
- mode?: string | undefined;
263
- max_attempts?: number | undefined;
264
- } | undefined;
265
- suspicious_ip_throttling?: {
266
- enabled?: boolean | undefined;
267
- shields?: string[] | undefined;
268
- allowlist?: string[] | undefined;
269
- stage?: {
270
- "pre-login"?: {
271
- max_attempts?: number | undefined;
272
- rate?: number | undefined;
273
- } | undefined;
274
- "pre-user-registration"?: {
275
- max_attempts?: number | undefined;
276
- rate?: number | undefined;
277
- } | undefined;
278
- } | undefined;
279
- } | undefined;
280
- } | undefined;
281
- mfa?: {
282
- factors?: {
283
- sms: boolean;
284
- otp: boolean;
285
- email: boolean;
286
- push_notification: boolean;
287
- webauthn_roaming: boolean;
288
- webauthn_platform: boolean;
289
- recovery_code: boolean;
290
- duo: boolean;
291
- } | undefined;
292
- sms_provider?: {
293
- provider?: "twilio" | "vonage" | "aws_sns" | "phone_message_hook" | undefined;
294
- } | undefined;
295
- twilio?: {
296
- sid?: string | undefined;
297
- auth_token?: string | undefined;
298
- from?: string | undefined;
299
- messaging_service_sid?: string | undefined;
300
- } | undefined;
301
- phone_message?: {
302
- message?: string | undefined;
303
- } | undefined;
304
- allow_remember_browser?: boolean | undefined;
305
- remember_browser_lifetime_in_days?: number | undefined;
306
- policy?: "never" | "always" | "all-applications" | "confidence-score" | undefined;
307
- } | undefined;
308
- is_control_plane?: boolean | undefined;
309
- has_children?: boolean | undefined;
310
- };
311
- connections: {
312
- created_at: string;
313
- updated_at: string;
314
- name: string;
315
- strategy: string;
316
- options: {
317
- kid?: string | undefined;
318
- team_id?: string | undefined;
319
- realms?: string | undefined;
320
- authentication_method?: string | undefined;
321
- client_id?: string | undefined;
322
- client_secret?: string | undefined;
323
- app_secret?: string | undefined;
324
- scope?: string | undefined;
325
- client_secret_hint?: string | undefined;
326
- app_secret_hint?: string | undefined;
327
- twilio_token_hint?: string | undefined;
328
- authorization_endpoint?: string | undefined;
329
- token_endpoint?: string | undefined;
330
- userinfo_endpoint?: string | undefined;
331
- jwks_uri?: string | undefined;
332
- discovery_url?: string | undefined;
333
- issuer?: string | undefined;
334
- token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | undefined;
335
- provider?: string | undefined;
336
- from?: string | undefined;
337
- twilio_sid?: string | undefined;
338
- twilio_token?: string | undefined;
339
- icon_url?: string | undefined;
340
- domain_aliases?: string[] | undefined;
341
- callback_url?: string | undefined;
342
- passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
343
- password_complexity_options?: {
344
- min_length?: number | undefined;
345
- } | undefined;
346
- password_history?: {
347
- enable?: boolean | undefined;
348
- size?: number | undefined;
349
- } | undefined;
350
- password_no_personal_info?: {
351
- enable?: boolean | undefined;
352
- } | undefined;
353
- password_dictionary?: {
354
- enable?: boolean | undefined;
355
- dictionary?: string[] | undefined;
356
- } | undefined;
357
- disable_signup?: boolean | undefined;
358
- brute_force_protection?: boolean | undefined;
359
- import_mode?: boolean | undefined;
360
- configuration?: {
361
- token_endpoint?: string | undefined;
362
- userinfo_endpoint?: string | undefined;
363
- client_id?: string | undefined;
364
- client_secret?: string | undefined;
365
- client_secret_hint?: string | undefined;
366
- realm?: string | undefined;
367
- } | undefined;
368
- attributes?: {
369
- email?: {
370
- identifier?: {
371
- active?: boolean | undefined;
372
- } | undefined;
373
- signup?: {
374
- status?: "required" | "optional" | "disabled" | undefined;
375
- verification?: {
376
- active?: boolean | undefined;
377
- } | undefined;
378
- } | undefined;
379
- validation?: {
380
- allowed?: boolean | undefined;
381
- } | undefined;
382
- unique?: boolean | undefined;
383
- profile_required?: boolean | undefined;
384
- verification_method?: "link" | "code" | undefined;
385
- } | undefined;
386
- username?: {
387
- identifier?: {
388
- active?: boolean | undefined;
389
- } | undefined;
390
- signup?: {
391
- status?: "required" | "optional" | "disabled" | undefined;
392
- } | undefined;
393
- validation?: {
394
- max_length?: number | undefined;
395
- min_length?: number | undefined;
396
- allowed_types?: {
397
- email?: boolean | undefined;
398
- phone_number?: boolean | undefined;
399
- } | undefined;
400
- } | undefined;
401
- profile_required?: boolean | undefined;
402
- } | undefined;
403
- phone_number?: {
404
- identifier?: {
405
- active?: boolean | undefined;
406
- } | undefined;
407
- signup?: {
408
- status?: "required" | "optional" | "disabled" | undefined;
409
- } | undefined;
410
- } | undefined;
411
- } | undefined;
412
- authentication_methods?: {
413
- password?: {
414
- enabled?: boolean | undefined;
415
- } | undefined;
416
- passkey?: {
417
- enabled?: boolean | undefined;
418
- } | undefined;
419
- } | undefined;
420
- passkey_options?: {
421
- challenge_ui?: "both" | "autofill" | "button" | undefined;
422
- local_enrollment_enabled?: boolean | undefined;
423
- progressive_enrollment_enabled?: boolean | undefined;
424
- } | undefined;
425
- requires_username?: boolean | undefined;
426
- validation?: {
427
- username?: {
428
- min?: number | undefined;
429
- max?: number | undefined;
430
- } | undefined;
431
- } | undefined;
432
- set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
433
- };
434
- scope?: "local" | "shared" | "platform" | undefined;
435
- override?: "none" | "secrets" | "fields" | undefined;
436
- enforce?: boolean | undefined;
437
- id?: string | undefined;
438
- display_name?: string | undefined;
439
- enabled_clients?: string[] | undefined;
440
- response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
441
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
442
- is_domain_connection?: boolean | undefined;
443
- show_as_button?: boolean | undefined;
444
- metadata?: Record<string, any> | undefined;
445
- is_system?: boolean | undefined;
446
- }[];
447
- description?: string | undefined;
448
- client_secret?: string | undefined;
449
- app_type?: "resource_server" | "native" | "spa" | "regular_web" | "non_interactive" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
450
- logo_uri?: string | undefined;
451
- callbacks?: string[] | undefined;
452
- allowed_origins?: string[] | undefined;
453
- web_origins?: string[] | undefined;
454
- client_aliases?: string[] | undefined;
455
- allowed_clients?: string[] | undefined;
456
- allowed_logout_urls?: string[] | undefined;
457
- session_transfer?: {
458
- [x: string]: unknown;
459
- can_create_session_transfer_token?: boolean | undefined;
460
- enforce_cascade_revocation?: boolean | undefined;
461
- allowed_authentication_methods?: ("query" | "cookie")[] | undefined;
462
- enforce_device_binding?: "none" | "ip" | "asn" | undefined;
463
- allow_refresh_token?: boolean | undefined;
464
- enforce_online_refresh_tokens?: boolean | undefined;
465
- allow_onward_transfer?: boolean | undefined;
466
- trust_forwarded_ip?: boolean | undefined;
467
- } | undefined;
468
- oidc_logout?: {
469
- [x: string]: unknown;
470
- backchannel_logout_urls?: string[] | undefined;
471
- backchannel_logout_initiators?: {
472
- [x: string]: unknown;
473
- mode?: "custom" | "all" | undefined;
474
- selected_initiators?: string[] | undefined;
475
- } | undefined;
476
- } | undefined;
477
- grant_types?: string[] | undefined;
478
- jwt_configuration?: Record<string, any> | undefined;
479
- signing_keys?: Record<string, any>[] | undefined;
480
- encryption_key?: Record<string, any> | undefined;
481
- cross_origin_loc?: string | undefined;
482
- custom_login_page?: string | undefined;
483
- custom_login_page_preview?: string | undefined;
484
- form_template?: string | undefined;
485
- addons?: Record<string, any> | undefined;
486
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "private_key_jwt" | "client_secret_jwt" | undefined;
487
- client_metadata?: Record<string, string> | undefined;
488
- hide_sign_up_disabled_error?: boolean | undefined;
489
- mobile?: Record<string, any> | undefined;
490
- initiate_login_uri?: string | undefined;
491
- native_social_login?: Record<string, any> | undefined;
492
- refresh_token?: {
493
- rotation_type?: "rotating" | "non-rotating" | undefined;
494
- leeway?: number | undefined;
495
- expiration_type?: "expiring" | "non-expiring" | undefined;
496
- token_lifetime?: number | undefined;
497
- infinite_token_lifetime?: boolean | undefined;
498
- idle_token_lifetime?: number | undefined;
499
- infinite_idle_token_lifetime?: boolean | undefined;
500
- } | undefined;
501
- default_organization?: Record<string, any> | undefined;
502
- organization_usage?: "deny" | "allow" | "require" | undefined;
503
- organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
504
- client_authentication_methods?: Record<string, any> | undefined;
505
- signed_request_object?: Record<string, any> | undefined;
506
- compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
507
- par_request_expiry?: number | undefined;
508
- token_quota?: Record<string, any> | undefined;
509
- owner_user_id?: string | undefined;
510
- registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
511
- registration_metadata?: Record<string, any> | undefined;
512
- token_exchange?: {
513
- allow_any_profile_of_type?: "custom_authentication"[] | undefined;
514
- } | undefined;
515
- user_linking_mode?: "builtin" | "off" | undefined;
516
- };
107
+ client: EnrichedClient;
517
108
  tenant: {
518
109
  created_at: string;
519
110
  updated_at: string;
@@ -527,7 +118,7 @@ export declare function initJSXRoute(ctx: Context<{
527
118
  picture_url?: string | undefined;
528
119
  support_email?: string | undefined;
529
120
  support_url?: string | undefined;
530
- sender_email?: string | undefined;
121
+ sender_email?: string | null | undefined;
531
122
  sender_name?: string | undefined;
532
123
  session_lifetime?: number | undefined;
533
124
  idle_session_lifetime?: number | undefined;
@@ -735,6 +326,7 @@ export declare function initJSXRoute(ctx: Context<{
735
326
  values?: unknown[] | undefined;
736
327
  } | null> | undefined;
737
328
  } | undefined;
329
+ connection?: string | undefined;
738
330
  vendor_id?: string | undefined;
739
331
  };
740
332
  expires_at: string;
@@ -838,13 +430,13 @@ export declare function initJSXRouteWithSession(ctx: Context<{
838
430
  page_background: {
839
431
  background_color: string;
840
432
  background_image_url: string;
841
- page_layout: "left" | "right" | "center";
433
+ page_layout: "center" | "left" | "right";
842
434
  logo_placement?: "none" | "widget" | "chip" | undefined;
843
435
  };
844
436
  widget: {
845
- header_text_alignment: "left" | "right" | "center";
437
+ header_text_alignment: "center" | "left" | "right";
846
438
  logo_height: number;
847
- logo_position: "none" | "left" | "right" | "center";
439
+ logo_position: "none" | "center" | "left" | "right";
848
440
  logo_url: string;
849
441
  social_buttons_layout: "bottom" | "top";
850
442
  };
@@ -871,416 +463,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
871
463
  override?: "none" | "secrets" | "fields" | undefined;
872
464
  enforce?: boolean | undefined;
873
465
  } | null;
874
- client: {
875
- created_at: string;
876
- updated_at: string;
877
- name: string;
878
- global: boolean;
879
- is_first_party: boolean;
880
- oidc_conformant: boolean;
881
- auth0_conformant: boolean;
882
- sso: boolean;
883
- sso_disabled: boolean;
884
- cross_origin_authentication: boolean;
885
- custom_login_page_on: boolean;
886
- require_pushed_authorization_requests: boolean;
887
- require_proof_of_possession: boolean;
888
- client_id: string;
889
- tenant: {
890
- created_at: string;
891
- updated_at: string;
892
- friendly_name: string;
893
- id: string;
894
- parent_tenant_id?: string | null | undefined;
895
- config_sync?: "inherit-on-read" | "synced" | "detached" | null | undefined;
896
- config_sync_hash?: string | null | undefined;
897
- config_synced_at?: string | null | undefined;
898
- audience?: string | undefined;
899
- picture_url?: string | undefined;
900
- support_email?: string | undefined;
901
- support_url?: string | undefined;
902
- sender_email?: string | undefined;
903
- sender_name?: string | undefined;
904
- session_lifetime?: number | undefined;
905
- idle_session_lifetime?: number | undefined;
906
- ephemeral_session_lifetime?: number | undefined;
907
- idle_ephemeral_session_lifetime?: number | undefined;
908
- session_cookie?: {
909
- mode?: "persistent" | "non-persistent" | undefined;
910
- } | undefined;
911
- allowed_logout_urls?: string[] | undefined;
912
- default_redirection_uri?: string | undefined;
913
- default_client_id?: string | undefined;
914
- enabled_locales?: string[] | undefined;
915
- default_directory?: string | undefined;
916
- error_page?: {
917
- html?: string | undefined;
918
- show_log_link?: boolean | undefined;
919
- url?: string | undefined;
920
- } | null | undefined;
921
- flags?: {
922
- allow_changing_enable_sso?: boolean | undefined;
923
- allow_legacy_delegation_grant_types?: boolean | undefined;
924
- allow_legacy_ro_grant_types?: boolean | undefined;
925
- allow_legacy_tokeninfo_endpoint?: boolean | undefined;
926
- change_pwd_flow_v1?: boolean | undefined;
927
- client_id_metadata_document_registration?: boolean | undefined;
928
- custom_domains_provisioning?: boolean | undefined;
929
- dashboard_insights_view?: boolean | undefined;
930
- dashboard_log_streams_next?: boolean | undefined;
931
- disable_clickjack_protection_headers?: boolean | undefined;
932
- disable_fields_map_fix?: boolean | undefined;
933
- disable_impersonation?: boolean | undefined;
934
- disable_management_api_sms_obfuscation?: boolean | undefined;
935
- enable_adfs_waad_email_verification?: boolean | undefined;
936
- enable_apis_section?: boolean | undefined;
937
- enable_client_connections?: boolean | undefined;
938
- enable_custom_domain_in_emails?: boolean | undefined;
939
- enable_dynamic_client_registration?: boolean | undefined;
940
- dcr_require_initial_access_token?: boolean | undefined;
941
- dcr_allowed_grant_types?: string[] | undefined;
942
- allow_http_return_to?: string[] | undefined;
943
- enable_idtoken_api2?: boolean | undefined;
944
- enable_legacy_logs_search_v2?: boolean | undefined;
945
- enable_legacy_profile?: boolean | undefined;
946
- enable_pipeline2?: boolean | undefined;
947
- enable_public_signup_user_exists_error?: boolean | undefined;
948
- enable_sso?: boolean | undefined;
949
- enforce_client_authentication_on_passwordless_start?: boolean | undefined;
950
- genai_trial?: boolean | undefined;
951
- improved_signup_bot_detection_in_classic?: boolean | undefined;
952
- mfa_show_factor_list_on_enrollment?: boolean | undefined;
953
- no_disclose_enterprise_connections?: boolean | undefined;
954
- remove_alg_from_jwks?: boolean | undefined;
955
- revoke_refresh_token_grant?: boolean | undefined;
956
- trust_azure_adfs_email_verified_connection_property?: boolean | undefined;
957
- use_scope_descriptions_for_consent?: boolean | undefined;
958
- inherit_global_permissions_in_organizations?: boolean | undefined;
959
- restrict_undefined_scopes?: boolean | undefined;
960
- } | undefined;
961
- sandbox_version?: string | undefined;
962
- legacy_sandbox_version?: string | undefined;
963
- sandbox_versions_available?: string[] | undefined;
964
- change_password?: {
965
- enabled?: boolean | undefined;
966
- html?: string | undefined;
967
- } | undefined;
968
- guardian_mfa_page?: {
969
- enabled?: boolean | undefined;
970
- html?: string | undefined;
971
- } | undefined;
972
- device_flow?: {
973
- charset?: "base20" | "digits" | undefined;
974
- mask?: string | undefined;
975
- } | undefined;
976
- default_token_quota?: {
977
- clients?: {
978
- client_credentials?: Record<string, any> | undefined;
979
- } | undefined;
980
- organizations?: {
981
- client_credentials?: Record<string, any> | undefined;
982
- } | undefined;
983
- } | null | undefined;
984
- default_audience?: string | undefined;
985
- default_organization?: string | undefined;
986
- sessions?: {
987
- oidc_logout_prompt_enabled?: boolean | undefined;
988
- } | undefined;
989
- oidc_logout?: {
990
- rp_logout_end_session_endpoint_discovery?: boolean | undefined;
991
- } | undefined;
992
- allow_organization_name_in_authentication_api?: boolean | undefined;
993
- customize_mfa_in_postlogin_action?: boolean | undefined;
994
- acr_values_supported?: string[] | undefined;
995
- mtls?: {
996
- enable_endpoint_aliases?: boolean | undefined;
997
- } | null | undefined;
998
- pushed_authorization_requests_supported?: boolean | undefined;
999
- authorization_response_iss_parameter_supported?: boolean | undefined;
1000
- deployment_type?: "shared" | "wfp" | undefined;
1001
- provisioning_state?: "pending" | "ready" | "failed" | undefined;
1002
- provisioning_error?: string | undefined;
1003
- provisioning_state_changed_at?: string | undefined;
1004
- bundle_configuration?: string | undefined;
1005
- worker_version?: string | undefined;
1006
- database_version?: string | undefined;
1007
- worker_script_name?: string | undefined;
1008
- storage_kind?: "own_d1" | "existing_d1" | "shared_planetscale" | undefined;
1009
- d1_database_id?: string | undefined;
1010
- attack_protection?: {
1011
- breached_password_detection?: {
1012
- enabled?: boolean | undefined;
1013
- shields?: string[] | undefined;
1014
- admin_notification_frequency?: string[] | undefined;
1015
- method?: string | undefined;
1016
- stage?: {
1017
- "pre-user-registration"?: {
1018
- shields?: string[] | undefined;
1019
- } | undefined;
1020
- "pre-change-password"?: {
1021
- shields?: string[] | undefined;
1022
- } | undefined;
1023
- } | undefined;
1024
- } | undefined;
1025
- brute_force_protection?: {
1026
- enabled?: boolean | undefined;
1027
- shields?: string[] | undefined;
1028
- allowlist?: string[] | undefined;
1029
- mode?: string | undefined;
1030
- max_attempts?: number | undefined;
1031
- } | undefined;
1032
- suspicious_ip_throttling?: {
1033
- enabled?: boolean | undefined;
1034
- shields?: string[] | undefined;
1035
- allowlist?: string[] | undefined;
1036
- stage?: {
1037
- "pre-login"?: {
1038
- max_attempts?: number | undefined;
1039
- rate?: number | undefined;
1040
- } | undefined;
1041
- "pre-user-registration"?: {
1042
- max_attempts?: number | undefined;
1043
- rate?: number | undefined;
1044
- } | undefined;
1045
- } | undefined;
1046
- } | undefined;
1047
- } | undefined;
1048
- mfa?: {
1049
- factors?: {
1050
- sms: boolean;
1051
- otp: boolean;
1052
- email: boolean;
1053
- push_notification: boolean;
1054
- webauthn_roaming: boolean;
1055
- webauthn_platform: boolean;
1056
- recovery_code: boolean;
1057
- duo: boolean;
1058
- } | undefined;
1059
- sms_provider?: {
1060
- provider?: "twilio" | "vonage" | "aws_sns" | "phone_message_hook" | undefined;
1061
- } | undefined;
1062
- twilio?: {
1063
- sid?: string | undefined;
1064
- auth_token?: string | undefined;
1065
- from?: string | undefined;
1066
- messaging_service_sid?: string | undefined;
1067
- } | undefined;
1068
- phone_message?: {
1069
- message?: string | undefined;
1070
- } | undefined;
1071
- allow_remember_browser?: boolean | undefined;
1072
- remember_browser_lifetime_in_days?: number | undefined;
1073
- policy?: "never" | "always" | "all-applications" | "confidence-score" | undefined;
1074
- } | undefined;
1075
- is_control_plane?: boolean | undefined;
1076
- has_children?: boolean | undefined;
1077
- };
1078
- connections: {
1079
- created_at: string;
1080
- updated_at: string;
1081
- name: string;
1082
- strategy: string;
1083
- options: {
1084
- kid?: string | undefined;
1085
- team_id?: string | undefined;
1086
- realms?: string | undefined;
1087
- authentication_method?: string | undefined;
1088
- client_id?: string | undefined;
1089
- client_secret?: string | undefined;
1090
- app_secret?: string | undefined;
1091
- scope?: string | undefined;
1092
- client_secret_hint?: string | undefined;
1093
- app_secret_hint?: string | undefined;
1094
- twilio_token_hint?: string | undefined;
1095
- authorization_endpoint?: string | undefined;
1096
- token_endpoint?: string | undefined;
1097
- userinfo_endpoint?: string | undefined;
1098
- jwks_uri?: string | undefined;
1099
- discovery_url?: string | undefined;
1100
- issuer?: string | undefined;
1101
- token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | undefined;
1102
- provider?: string | undefined;
1103
- from?: string | undefined;
1104
- twilio_sid?: string | undefined;
1105
- twilio_token?: string | undefined;
1106
- icon_url?: string | undefined;
1107
- domain_aliases?: string[] | undefined;
1108
- callback_url?: string | undefined;
1109
- passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
1110
- password_complexity_options?: {
1111
- min_length?: number | undefined;
1112
- } | undefined;
1113
- password_history?: {
1114
- enable?: boolean | undefined;
1115
- size?: number | undefined;
1116
- } | undefined;
1117
- password_no_personal_info?: {
1118
- enable?: boolean | undefined;
1119
- } | undefined;
1120
- password_dictionary?: {
1121
- enable?: boolean | undefined;
1122
- dictionary?: string[] | undefined;
1123
- } | undefined;
1124
- disable_signup?: boolean | undefined;
1125
- brute_force_protection?: boolean | undefined;
1126
- import_mode?: boolean | undefined;
1127
- configuration?: {
1128
- token_endpoint?: string | undefined;
1129
- userinfo_endpoint?: string | undefined;
1130
- client_id?: string | undefined;
1131
- client_secret?: string | undefined;
1132
- client_secret_hint?: string | undefined;
1133
- realm?: string | undefined;
1134
- } | undefined;
1135
- attributes?: {
1136
- email?: {
1137
- identifier?: {
1138
- active?: boolean | undefined;
1139
- } | undefined;
1140
- signup?: {
1141
- status?: "required" | "optional" | "disabled" | undefined;
1142
- verification?: {
1143
- active?: boolean | undefined;
1144
- } | undefined;
1145
- } | undefined;
1146
- validation?: {
1147
- allowed?: boolean | undefined;
1148
- } | undefined;
1149
- unique?: boolean | undefined;
1150
- profile_required?: boolean | undefined;
1151
- verification_method?: "link" | "code" | undefined;
1152
- } | undefined;
1153
- username?: {
1154
- identifier?: {
1155
- active?: boolean | undefined;
1156
- } | undefined;
1157
- signup?: {
1158
- status?: "required" | "optional" | "disabled" | undefined;
1159
- } | undefined;
1160
- validation?: {
1161
- max_length?: number | undefined;
1162
- min_length?: number | undefined;
1163
- allowed_types?: {
1164
- email?: boolean | undefined;
1165
- phone_number?: boolean | undefined;
1166
- } | undefined;
1167
- } | undefined;
1168
- profile_required?: boolean | undefined;
1169
- } | undefined;
1170
- phone_number?: {
1171
- identifier?: {
1172
- active?: boolean | undefined;
1173
- } | undefined;
1174
- signup?: {
1175
- status?: "required" | "optional" | "disabled" | undefined;
1176
- } | undefined;
1177
- } | undefined;
1178
- } | undefined;
1179
- authentication_methods?: {
1180
- password?: {
1181
- enabled?: boolean | undefined;
1182
- } | undefined;
1183
- passkey?: {
1184
- enabled?: boolean | undefined;
1185
- } | undefined;
1186
- } | undefined;
1187
- passkey_options?: {
1188
- challenge_ui?: "both" | "autofill" | "button" | undefined;
1189
- local_enrollment_enabled?: boolean | undefined;
1190
- progressive_enrollment_enabled?: boolean | undefined;
1191
- } | undefined;
1192
- requires_username?: boolean | undefined;
1193
- validation?: {
1194
- username?: {
1195
- min?: number | undefined;
1196
- max?: number | undefined;
1197
- } | undefined;
1198
- } | undefined;
1199
- set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
1200
- };
1201
- scope?: "local" | "shared" | "platform" | undefined;
1202
- override?: "none" | "secrets" | "fields" | undefined;
1203
- enforce?: boolean | undefined;
1204
- id?: string | undefined;
1205
- display_name?: string | undefined;
1206
- enabled_clients?: string[] | undefined;
1207
- response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
1208
- response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
1209
- is_domain_connection?: boolean | undefined;
1210
- show_as_button?: boolean | undefined;
1211
- metadata?: Record<string, any> | undefined;
1212
- is_system?: boolean | undefined;
1213
- }[];
1214
- description?: string | undefined;
1215
- client_secret?: string | undefined;
1216
- app_type?: "resource_server" | "native" | "spa" | "regular_web" | "non_interactive" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
1217
- logo_uri?: string | undefined;
1218
- callbacks?: string[] | undefined;
1219
- allowed_origins?: string[] | undefined;
1220
- web_origins?: string[] | undefined;
1221
- client_aliases?: string[] | undefined;
1222
- allowed_clients?: string[] | undefined;
1223
- allowed_logout_urls?: string[] | undefined;
1224
- session_transfer?: {
1225
- [x: string]: unknown;
1226
- can_create_session_transfer_token?: boolean | undefined;
1227
- enforce_cascade_revocation?: boolean | undefined;
1228
- allowed_authentication_methods?: ("query" | "cookie")[] | undefined;
1229
- enforce_device_binding?: "none" | "ip" | "asn" | undefined;
1230
- allow_refresh_token?: boolean | undefined;
1231
- enforce_online_refresh_tokens?: boolean | undefined;
1232
- allow_onward_transfer?: boolean | undefined;
1233
- trust_forwarded_ip?: boolean | undefined;
1234
- } | undefined;
1235
- oidc_logout?: {
1236
- [x: string]: unknown;
1237
- backchannel_logout_urls?: string[] | undefined;
1238
- backchannel_logout_initiators?: {
1239
- [x: string]: unknown;
1240
- mode?: "custom" | "all" | undefined;
1241
- selected_initiators?: string[] | undefined;
1242
- } | undefined;
1243
- } | undefined;
1244
- grant_types?: string[] | undefined;
1245
- jwt_configuration?: Record<string, any> | undefined;
1246
- signing_keys?: Record<string, any>[] | undefined;
1247
- encryption_key?: Record<string, any> | undefined;
1248
- cross_origin_loc?: string | undefined;
1249
- custom_login_page?: string | undefined;
1250
- custom_login_page_preview?: string | undefined;
1251
- form_template?: string | undefined;
1252
- addons?: Record<string, any> | undefined;
1253
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "private_key_jwt" | "client_secret_jwt" | undefined;
1254
- client_metadata?: Record<string, string> | undefined;
1255
- hide_sign_up_disabled_error?: boolean | undefined;
1256
- mobile?: Record<string, any> | undefined;
1257
- initiate_login_uri?: string | undefined;
1258
- native_social_login?: Record<string, any> | undefined;
1259
- refresh_token?: {
1260
- rotation_type?: "rotating" | "non-rotating" | undefined;
1261
- leeway?: number | undefined;
1262
- expiration_type?: "expiring" | "non-expiring" | undefined;
1263
- token_lifetime?: number | undefined;
1264
- infinite_token_lifetime?: boolean | undefined;
1265
- idle_token_lifetime?: number | undefined;
1266
- infinite_idle_token_lifetime?: boolean | undefined;
1267
- } | undefined;
1268
- default_organization?: Record<string, any> | undefined;
1269
- organization_usage?: "deny" | "allow" | "require" | undefined;
1270
- organization_require_behavior?: "no_prompt" | "pre_login_prompt" | "post_login_prompt" | undefined;
1271
- client_authentication_methods?: Record<string, any> | undefined;
1272
- signed_request_object?: Record<string, any> | undefined;
1273
- compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
1274
- par_request_expiry?: number | undefined;
1275
- token_quota?: Record<string, any> | undefined;
1276
- owner_user_id?: string | undefined;
1277
- registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
1278
- registration_metadata?: Record<string, any> | undefined;
1279
- token_exchange?: {
1280
- allow_any_profile_of_type?: "custom_authentication"[] | undefined;
1281
- } | undefined;
1282
- user_linking_mode?: "builtin" | "off" | undefined;
1283
- };
466
+ client: EnrichedClient;
1284
467
  user: {
1285
468
  connection: string;
1286
469
  email_verified: boolean;
@@ -1363,7 +546,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1363
546
  picture_url?: string | undefined;
1364
547
  support_email?: string | undefined;
1365
548
  support_url?: string | undefined;
1366
- sender_email?: string | undefined;
549
+ sender_email?: string | null | undefined;
1367
550
  sender_name?: string | undefined;
1368
551
  session_lifetime?: number | undefined;
1369
552
  idle_session_lifetime?: number | undefined;
@@ -1571,6 +754,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
1571
754
  values?: unknown[] | undefined;
1572
755
  } | null> | undefined;
1573
756
  } | undefined;
757
+ connection?: string | undefined;
1574
758
  vendor_id?: string | undefined;
1575
759
  };
1576
760
  expires_at: string;