@authhero/adapter-interfaces 0.93.0 → 0.95.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.
@@ -1,12 +1,12 @@
1
1
  import { z as e } from "@hono/zod-openapi";
2
- const Ge = e.object({
2
+ const xe = e.object({
3
3
  start: e.number(),
4
4
  limit: e.number(),
5
5
  length: e.number()
6
- }), i = e.object({
6
+ }), n = e.object({
7
7
  created_at: e.string(),
8
8
  updated_at: e.string()
9
- }), S = e.object({
9
+ }), E = e.object({
10
10
  email: e.string().optional(),
11
11
  email_verified: e.boolean().optional(),
12
12
  name: e.string().optional(),
@@ -23,9 +23,9 @@ const Ge = e.object({
23
23
  access_token: e.string().optional(),
24
24
  access_token_secret: e.string().optional(),
25
25
  refresh_token: e.string().optional(),
26
- profileData: S.optional()
27
- }), c = e.object({
28
- email: e.string().optional().transform((t) => t && t.toLowerCase()),
26
+ profileData: E.optional()
27
+ }), _ = e.object({
28
+ email: e.string().optional().transform((o) => o && o.toLowerCase()),
29
29
  username: e.string().optional(),
30
30
  phone_number: e.string().optional(),
31
31
  given_name: e.string().optional(),
@@ -39,7 +39,7 @@ const Ge = e.object({
39
39
  user_id: e.string().optional(),
40
40
  app_metadata: e.any().default({}).optional(),
41
41
  user_metadata: e.any().default({}).optional()
42
- }), b = c.extend({
42
+ }), S = _.extend({
43
43
  email_verified: e.boolean().default(!1),
44
44
  verify_email: e.boolean().optional(),
45
45
  last_ip: e.string().optional(),
@@ -49,25 +49,25 @@ const Ge = e.object({
49
49
  connection: e.string().default("email"),
50
50
  is_social: e.boolean().optional()
51
51
  }), A = e.object({
52
- ...b.shape,
53
- ...i.shape,
52
+ ...S.shape,
53
+ ...n.shape,
54
54
  user_id: e.string(),
55
55
  is_social: e.boolean(),
56
56
  email: e.string().optional(),
57
57
  login_count: e.number().default(0),
58
58
  identities: e.array(f).optional()
59
- }), xe = A, Ke = c.extend({
59
+ }), Ge = A, Ke = _.extend({
60
60
  login_count: e.number(),
61
61
  multifactor: e.array(e.string()).optional(),
62
62
  last_ip: e.string().optional(),
63
63
  last_login: e.string().optional(),
64
64
  user_id: e.string()
65
65
  }).catchall(e.any()), I = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
66
- let C = (t = 21) => {
67
- let n = "", r = crypto.getRandomValues(new Uint8Array(t));
68
- for (; t--; )
69
- n += I[r[t] & 63];
70
- return n;
66
+ let C = (o = 21) => {
67
+ let i = "", s = crypto.getRandomValues(new Uint8Array(o));
68
+ for (; o--; )
69
+ i += I[s[o] & 63];
70
+ return i;
71
71
  };
72
72
  const O = e.object({
73
73
  client_id: e.string().openapi({
@@ -276,12 +276,12 @@ const O = e.object({
276
276
  x: e.number(),
277
277
  y: e.number()
278
278
  });
279
- var _ = /* @__PURE__ */ ((t) => (t.RICH_TEXT = "RICH_TEXT", t.NEXT_BUTTON = "NEXT_BUTTON", t.BACK_BUTTON = "BACK_BUTTON", t.SUBMIT_BUTTON = "SUBMIT_BUTTON", t.DIVIDER = "DIVIDER", t.TEXT = "TEXT", t.EMAIL = "EMAIL", t.PASSWORD = "PASSWORD", t.NUMBER = "NUMBER", t.PHONE = "PHONE", t.DATE = "DATE", t.CHECKBOX = "CHECKBOX", t.RADIO = "RADIO", t.SELECT = "SELECT", t.HIDDEN = "HIDDEN", t.LEGAL = "LEGAL", t))(_ || {}), p = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(p || {});
280
- const s = e.object({
279
+ var c = /* @__PURE__ */ ((o) => (o.RICH_TEXT = "RICH_TEXT", o.NEXT_BUTTON = "NEXT_BUTTON", o.BACK_BUTTON = "BACK_BUTTON", o.SUBMIT_BUTTON = "SUBMIT_BUTTON", o.DIVIDER = "DIVIDER", o.TEXT = "TEXT", o.EMAIL = "EMAIL", o.PASSWORD = "PASSWORD", o.NUMBER = "NUMBER", o.PHONE = "PHONE", o.DATE = "DATE", o.CHECKBOX = "CHECKBOX", o.RADIO = "RADIO", o.SELECT = "SELECT", o.HIDDEN = "HIDDEN", o.LEGAL = "LEGAL", o))(c || {}), p = /* @__PURE__ */ ((o) => (o.BLOCK = "BLOCK", o.FIELD = "FIELD", o))(p || {});
280
+ const r = e.object({
281
281
  id: e.string(),
282
282
  category: e.nativeEnum(p),
283
- type: e.nativeEnum(_)
284
- }), R = s.extend({
283
+ type: e.nativeEnum(c)
284
+ }), R = r.extend({
285
285
  category: e.literal(
286
286
  "BLOCK"
287
287
  /* BLOCK */
@@ -293,7 +293,7 @@ const s = e.object({
293
293
  config: e.object({
294
294
  content: e.string()
295
295
  }).passthrough()
296
- }), L = s.extend({
296
+ }), L = r.extend({
297
297
  category: e.literal(
298
298
  "BLOCK"
299
299
  /* BLOCK */
@@ -315,7 +315,7 @@ const s = e.object({
315
315
  config: e.object({
316
316
  text: e.string()
317
317
  }).passthrough()
318
- }), D = s.extend({
318
+ }), D = r.extend({
319
319
  category: e.literal(
320
320
  "FIELD"
321
321
  /* FIELD */
@@ -329,7 +329,7 @@ const s = e.object({
329
329
  config: e.object({
330
330
  text: e.string()
331
331
  }).passthrough()
332
- }), U = s.extend({
332
+ }), w = r.extend({
333
333
  category: e.literal(
334
334
  "FIELD"
335
335
  /* FIELD */
@@ -382,19 +382,19 @@ const s = e.object({
382
382
  label: e.string().optional(),
383
383
  placeholder: e.string().optional()
384
384
  }).passthrough()
385
- }), F = e.object({
385
+ }), j = e.object({
386
386
  id: e.string(),
387
387
  category: e.string(),
388
388
  type: e.string()
389
- }).passthrough(), w = e.union([
389
+ }).passthrough(), k = e.union([
390
390
  R,
391
391
  L,
392
392
  D,
393
- U,
394
- F
393
+ w,
394
+ j
395
395
  ]);
396
- var j = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(j || {});
397
- const k = e.object({
396
+ var U = /* @__PURE__ */ ((o) => (o.STEP = "STEP", o.FLOW = "FLOW", o.CONDITION = "CONDITION", o.ACTION = "ACTION", o))(U || {});
397
+ const F = e.object({
398
398
  id: e.string(),
399
399
  type: e.literal(
400
400
  "STEP"
@@ -403,7 +403,7 @@ const k = e.object({
403
403
  coordinates: a,
404
404
  alias: e.string().optional(),
405
405
  config: e.object({
406
- components: e.array(w),
406
+ components: e.array(k),
407
407
  next_node: e.string()
408
408
  }).passthrough()
409
409
  }), v = e.object({
@@ -423,16 +423,16 @@ const k = e.object({
423
423
  type: e.string(),
424
424
  coordinates: a
425
425
  }).passthrough(), H = e.union([
426
- k,
426
+ F,
427
427
  v,
428
428
  P
429
429
  ]), M = e.object({
430
430
  next_node: e.string(),
431
431
  coordinates: a
432
- }).passthrough(), G = e.object({
432
+ }).passthrough(), x = e.object({
433
433
  resume_flow: e.boolean().optional(),
434
434
  coordinates: a
435
- }).passthrough(), x = e.object({
435
+ }).passthrough(), G = e.object({
436
436
  id: e.string(),
437
437
  name: e.string(),
438
438
  languages: e.object({
@@ -440,19 +440,19 @@ const k = e.object({
440
440
  }).passthrough(),
441
441
  nodes: e.array(H),
442
442
  start: M,
443
- ending: G,
443
+ ending: x,
444
444
  created_at: e.string(),
445
445
  updated_at: e.string(),
446
446
  links: e.object({
447
447
  sdkSrc: e.string().optional(),
448
448
  sdk_src: e.string().optional()
449
449
  }).passthrough()
450
- }).passthrough(), We = x.omit({
450
+ }).passthrough(), ze = G.omit({
451
451
  id: !0,
452
452
  created_at: !0,
453
453
  updated_at: !0
454
454
  });
455
- var d = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(d || {}), g = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(g || {}), u = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(u || {});
455
+ var d = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.TOKEN_ID_TOKEN = "token id_token", o.CODE = "code", o))(d || {}), g = /* @__PURE__ */ ((o) => (o.QUERY = "query", o.FRAGMENT = "fragment", o.FORM_POST = "form_post", o.WEB_MESSAGE = "web_message", o.SAML_POST = "saml_post", o))(g || {}), u = /* @__PURE__ */ ((o) => (o.S256 = "S256", o.Plain = "plain", o))(u || {});
456
456
  const K = e.object({
457
457
  client_id: e.string(),
458
458
  act_as: e.string().optional(),
@@ -471,7 +471,7 @@ const K = e.object({
471
471
  ui_locales: e.string().optional(),
472
472
  // The following fields are not available in Auth0
473
473
  vendor_id: e.string().optional()
474
- }), ze = e.object({
474
+ }), We = e.object({
475
475
  colors: e.object({
476
476
  primary: e.string(),
477
477
  page_background: e.object({
@@ -506,7 +506,7 @@ const K = e.object({
506
506
  from: e.string().optional(),
507
507
  twilio_sid: e.string().optional(),
508
508
  twilio_token: e.string().optional()
509
- }), W = e.object({
509
+ }), z = e.object({
510
510
  id: e.string().optional(),
511
511
  name: e.string(),
512
512
  strategy: e.string(),
@@ -514,31 +514,140 @@ const K = e.object({
514
514
  enabled_clients: e.array(e.string()).default([]).optional(),
515
515
  response_type: e.custom().optional(),
516
516
  response_mode: e.custom().optional()
517
- }), z = e.object({
517
+ }), W = e.object({
518
518
  id: e.string(),
519
- created_at: e.string().transform((t) => t === null ? "" : t),
520
- updated_at: e.string().transform((t) => t === null ? "" : t)
521
- }).extend(W.shape), X = e.object({
522
- name: e.string(),
519
+ created_at: e.string().transform((o) => o === null ? "" : o),
520
+ updated_at: e.string().transform((o) => o === null ? "" : o)
521
+ }).extend(z.shape), X = e.object({
522
+ id: e.string().optional(),
523
+ // Basic settings
523
524
  audience: e.string(),
525
+ friendly_name: e.string(),
526
+ // Required - replaces the old 'name' field
527
+ picture_url: e.string().optional(),
528
+ support_email: e.string().optional(),
529
+ support_url: e.string().optional(),
524
530
  sender_email: e.string().email(),
525
531
  sender_name: e.string(),
526
- support_url: e.string().url().optional(),
527
- logo: e.string().url().optional(),
528
- primary_color: e.string().optional(),
529
- secondary_color: e.string().optional(),
530
- language: e.string().optional(),
531
- id: e.string().optional()
532
+ // Tenant Settings fields (merged from TenantSettings)
533
+ // Session settings
534
+ session_lifetime: e.number().optional(),
535
+ idle_session_lifetime: e.number().optional(),
536
+ ephemeral_session_lifetime: e.number().optional(),
537
+ idle_ephemeral_session_lifetime: e.number().optional(),
538
+ session_cookie: e.object({
539
+ mode: e.enum(["persistent", "non-persistent"]).optional()
540
+ }).optional(),
541
+ // Logout settings
542
+ allowed_logout_urls: e.array(e.string()).optional(),
543
+ // Universal Login settings
544
+ default_redirection_uri: e.string().optional(),
545
+ // Advanced settings
546
+ enabled_locales: e.array(e.string()).optional(),
547
+ default_directory: e.string().optional(),
548
+ error_page: e.object({
549
+ html: e.string().optional(),
550
+ show_log_link: e.boolean().optional(),
551
+ url: e.string().optional()
552
+ }).optional(),
553
+ // Flags
554
+ flags: e.object({
555
+ allow_changing_enable_sso: e.boolean().optional(),
556
+ allow_legacy_delegation_grant_types: e.boolean().optional(),
557
+ allow_legacy_ro_grant_types: e.boolean().optional(),
558
+ allow_legacy_tokeninfo_endpoint: e.boolean().optional(),
559
+ change_pwd_flow_v1: e.boolean().optional(),
560
+ custom_domains_provisioning: e.boolean().optional(),
561
+ dashboard_insights_view: e.boolean().optional(),
562
+ dashboard_log_streams_next: e.boolean().optional(),
563
+ disable_clickjack_protection_headers: e.boolean().optional(),
564
+ disable_fields_map_fix: e.boolean().optional(),
565
+ disable_impersonation: e.boolean().optional(),
566
+ disable_management_api_sms_obfuscation: e.boolean().optional(),
567
+ enable_adfs_waad_email_verification: e.boolean().optional(),
568
+ enable_apis_section: e.boolean().optional(),
569
+ enable_client_connections: e.boolean().optional(),
570
+ enable_custom_domain_in_emails: e.boolean().optional(),
571
+ enable_dynamic_client_registration: e.boolean().optional(),
572
+ enable_idtoken_api2: e.boolean().optional(),
573
+ enable_legacy_logs_search_v2: e.boolean().optional(),
574
+ enable_legacy_profile: e.boolean().optional(),
575
+ enable_pipeline2: e.boolean().optional(),
576
+ enable_public_signup_user_exists_error: e.boolean().optional(),
577
+ enable_sso: e.boolean().optional(),
578
+ enforce_client_authentication_on_passwordless_start: e.boolean().optional(),
579
+ genai_trial: e.boolean().optional(),
580
+ improved_signup_bot_detection_in_classic: e.boolean().optional(),
581
+ mfa_show_factor_list_on_enrollment: e.boolean().optional(),
582
+ no_disclose_enterprise_connections: e.boolean().optional(),
583
+ remove_alg_from_jwks: e.boolean().optional(),
584
+ revoke_refresh_token_grant: e.boolean().optional(),
585
+ trust_azure_adfs_email_verified_connection_property: e.boolean().optional(),
586
+ use_scope_descriptions_for_consent: e.boolean().optional()
587
+ }).optional(),
588
+ // Sandbox settings
589
+ sandbox_version: e.string().optional(),
590
+ legacy_sandbox_version: e.string().optional(),
591
+ sandbox_versions_available: e.array(e.string()).optional(),
592
+ // Change password settings
593
+ change_password: e.object({
594
+ enabled: e.boolean().optional(),
595
+ html: e.string().optional()
596
+ }).optional(),
597
+ // Guardian MFA settings
598
+ guardian_mfa_page: e.object({
599
+ enabled: e.boolean().optional(),
600
+ html: e.string().optional()
601
+ }).optional(),
602
+ // Device flow settings
603
+ device_flow: e.object({
604
+ charset: e.enum(["base20", "digits"]).optional(),
605
+ mask: e.string().max(20).optional()
606
+ }).optional(),
607
+ // Default token quota
608
+ default_token_quota: e.object({
609
+ clients: e.object({
610
+ client_credentials: e.record(e.any()).optional()
611
+ }).optional(),
612
+ organizations: e.object({
613
+ client_credentials: e.record(e.any()).optional()
614
+ }).optional()
615
+ }).optional(),
616
+ // Default audience
617
+ default_audience: e.string().optional(),
618
+ // Default organization
619
+ default_organization: e.string().optional(),
620
+ // Session management
621
+ sessions: e.object({
622
+ oidc_logout_prompt_enabled: e.boolean().optional()
623
+ }).optional(),
624
+ // OIDC logout settings
625
+ oidc_logout: e.object({
626
+ rp_logout_end_session_endpoint_discovery: e.boolean().optional()
627
+ }).optional(),
628
+ // Organization settings
629
+ allow_organization_name_in_authentication_api: e.boolean().optional(),
630
+ // MFA settings
631
+ customize_mfa_in_postlogin_action: e.boolean().optional(),
632
+ // ACR values
633
+ acr_values_supported: e.array(e.string()).optional(),
634
+ // mTLS settings
635
+ mtls: e.object({
636
+ enable_endpoint_aliases: e.boolean().optional()
637
+ }).optional(),
638
+ // Authorization settings
639
+ pushed_authorization_requests_supported: e.boolean().optional(),
640
+ authorization_response_iss_parameter_supported: e.boolean().optional()
532
641
  }), V = e.object({
533
- created_at: e.string().transform((t) => t === null ? "" : t),
534
- updated_at: e.string().transform((t) => t === null ? "" : t),
642
+ created_at: e.string().nullable().transform((o) => o ?? ""),
643
+ updated_at: e.string().nullable().transform((o) => o ?? ""),
535
644
  ...X.shape,
536
645
  id: e.string()
537
646
  });
538
647
  e.object({
539
648
  ...T.shape,
540
649
  tenant: V,
541
- connections: e.array(z)
650
+ connections: e.array(W)
542
651
  });
543
652
  const q = e.enum([
544
653
  "password_reset",
@@ -739,7 +848,7 @@ const q = e.enum([
739
848
  }).openapi({
740
849
  description: "Schema for flow-based forms (matches new JSON structure)"
741
850
  }), Ye = e.object({
742
- ...i.shape,
851
+ ...n.shape,
743
852
  ...ee.shape,
744
853
  id: e.string()
745
854
  }), m = e.enum([
@@ -756,30 +865,30 @@ const q = e.enum([
756
865
  synchronous: e.boolean().default(!1),
757
866
  priority: e.number().optional(),
758
867
  hook_id: e.string().optional()
759
- }, te = e.object({
868
+ }, oe = e.object({
760
869
  ...l,
761
870
  trigger_id: m,
762
871
  url: e.string()
763
- }), oe = e.object({
872
+ }), te = e.object({
764
873
  ...l,
765
874
  trigger_id: h,
766
875
  form_id: e.string()
767
876
  }), Qe = e.union([
768
- te,
769
- oe
770
- ]), ie = e.object({
877
+ oe,
878
+ te
879
+ ]), ne = e.object({
771
880
  ...l,
772
881
  trigger_id: m,
773
- ...i.shape,
882
+ ...n.shape,
774
883
  hook_id: e.string(),
775
884
  url: e.string()
776
- }), ne = e.object({
885
+ }), ie = e.object({
777
886
  ...l,
778
887
  trigger_id: h,
779
- ...i.shape,
888
+ ...n.shape,
780
889
  hook_id: e.string(),
781
890
  form_id: e.string()
782
- }), Je = e.union([ie, ne]), ae = e.object({
891
+ }), Je = e.union([ne, ie]), ae = e.object({
783
892
  alg: e.enum([
784
893
  "RS256",
785
894
  "RS384",
@@ -821,7 +930,7 @@ const q = e.enum([
821
930
  request_uri_parameter_supported: e.boolean(),
822
931
  request_parameter_supported: e.boolean(),
823
932
  token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
824
- }), re = e.object({
933
+ }), se = e.object({
825
934
  csrf_token: e.string(),
826
935
  auth0Client: e.string().optional(),
827
936
  authParams: K,
@@ -834,14 +943,14 @@ const q = e.enum([
834
943
  login_completed: e.boolean().optional().default(!1)
835
944
  }).openapi({
836
945
  description: "This represents a login sesion"
837
- }), et = e.object({
838
- ...re.shape,
946
+ }), eo = e.object({
947
+ ...se.shape,
839
948
  id: e.string().openapi({
840
949
  description: "This is is used as the state in the universal login"
841
950
  }),
842
951
  created_at: e.string(),
843
952
  updated_at: e.string()
844
- }), se = {
953
+ }), re = {
845
954
  // Network & System
846
955
  ACLS_SUMMARY: "acls_summary",
847
956
  ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
@@ -1009,15 +1118,15 @@ const q = e.enum([
1009
1118
  WARNING_SENDING_NOTIFICATION: "wn",
1010
1119
  WARNING_USER_MANAGEMENT: "wum"
1011
1120
  }, le = e.string().refine(
1012
- (t) => Object.values(se).includes(t),
1121
+ (o) => Object.values(re).includes(o),
1013
1122
  { message: "Invalid log type" }
1014
- ), ce = e.object({
1123
+ ), _e = e.object({
1015
1124
  name: e.string(),
1016
1125
  version: e.string(),
1017
1126
  env: e.object({
1018
1127
  node: e.string().optional()
1019
1128
  }).optional()
1020
- }), tt = e.object({
1129
+ }), oo = e.object({
1021
1130
  type: le,
1022
1131
  date: e.string(),
1023
1132
  description: e.string().optional(),
@@ -1039,16 +1148,16 @@ const q = e.enum([
1039
1148
  strategy: e.string().optional(),
1040
1149
  strategy_type: e.string().optional(),
1041
1150
  hostname: e.string().optional(),
1042
- auth0_client: ce.optional()
1043
- }), _e = e.object({
1151
+ auth0_client: _e.optional()
1152
+ }), ce = e.object({
1044
1153
  user_id: e.string(),
1045
1154
  password: e.string(),
1046
1155
  algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id")
1047
- }), ot = e.object({
1048
- ..._e.shape,
1156
+ }), to = e.object({
1157
+ ...ce.shape,
1049
1158
  created_at: e.string(),
1050
1159
  updated_at: e.string()
1051
- }), E = e.object({
1160
+ }), b = e.object({
1052
1161
  initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
1053
1162
  initial_ip: e.string().describe("First IP address associated with this session"),
1054
1163
  initial_asn: e.string().describe("First autonomous system number associated with this session"),
@@ -1063,17 +1172,17 @@ const q = e.enum([
1063
1172
  expires_at: e.string().optional(),
1064
1173
  login_session_id: e.string(),
1065
1174
  idle_expires_at: e.string().optional(),
1066
- device: E.describe(
1175
+ device: b.describe(
1067
1176
  "Metadata related to the device used in the session"
1068
1177
  ),
1069
1178
  clients: e.array(e.string()).describe("List of client details for the session")
1070
- }), it = e.object({
1179
+ }), no = e.object({
1071
1180
  created_at: e.string(),
1072
1181
  updated_at: e.string(),
1073
1182
  authenticated_at: e.string(),
1074
1183
  last_interaction_at: e.string(),
1075
1184
  ...pe.shape
1076
- }), nt = e.object({
1185
+ }), io = e.object({
1077
1186
  kid: e.string().openapi({ description: "The key id of the signing key" }),
1078
1187
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
1079
1188
  fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
@@ -1099,8 +1208,8 @@ const q = e.enum([
1099
1208
  description: "The type of the signing key"
1100
1209
  })
1101
1210
  });
1102
- var de = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", t))(de || {});
1103
- const at = e.object({
1211
+ var de = /* @__PURE__ */ ((o) => (o.RefreshToken = "refresh_token", o.AuthorizationCode = "authorization_code", o.ClientCredential = "client_credentials", o.Passwordless = "passwordless", o.Password = "password", o.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", o))(de || {});
1212
+ const ao = e.object({
1104
1213
  access_token: e.string(),
1105
1214
  id_token: e.string().optional(),
1106
1215
  scope: e.string().optional(),
@@ -1143,44 +1252,44 @@ const ge = e.object({
1143
1252
  success: e.string(),
1144
1253
  widget_background: e.string(),
1145
1254
  widget_border: e.string()
1146
- }), o = e.object({
1255
+ }), t = e.object({
1147
1256
  bold: e.boolean(),
1148
1257
  size: e.number()
1149
1258
  }), me = e.object({
1150
- body_text: o,
1151
- buttons_text: o,
1259
+ body_text: t,
1260
+ buttons_text: t,
1152
1261
  font_url: e.string(),
1153
- input_labels: o,
1154
- links: o,
1262
+ input_labels: t,
1263
+ links: t,
1155
1264
  links_style: e.enum(["normal", "underlined"]),
1156
1265
  reference_text_size: e.number(),
1157
- subtitle: o,
1158
- title: o
1266
+ subtitle: t,
1267
+ title: t
1159
1268
  }), he = e.object({
1160
1269
  background_color: e.string(),
1161
1270
  background_image_url: e.string(),
1162
1271
  page_layout: e.enum(["center", "left", "right"])
1163
- }), Ee = e.object({
1272
+ }), be = e.object({
1164
1273
  header_text_alignment: e.enum(["center", "left", "right"]),
1165
1274
  logo_height: e.number(),
1166
1275
  logo_position: e.enum(["center", "left", "none", "right"]),
1167
1276
  logo_url: e.string(),
1168
1277
  social_buttons_layout: e.enum(["bottom", "top"])
1169
- }), Se = e.object({
1278
+ }), Ee = e.object({
1170
1279
  borders: ge,
1171
1280
  colors: ue,
1172
1281
  displayName: e.string(),
1173
1282
  fonts: me,
1174
1283
  page_background: he,
1175
- widget: Ee
1176
- }), rt = Se.extend({
1284
+ widget: be
1285
+ }), so = Ee.extend({
1177
1286
  themeId: e.string()
1178
- }), st = e.object({
1287
+ }), ro = e.object({
1179
1288
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
1180
1289
  identifier_first: e.boolean().default(!0),
1181
1290
  password_first: e.boolean().default(!1),
1182
1291
  webauthn_platform_first_factor: e.boolean()
1183
- }), lt = e.object({
1292
+ }), lo = e.object({
1184
1293
  name: e.string(),
1185
1294
  enabled: e.boolean().optional().default(!0),
1186
1295
  default_from_address: e.string().optional(),
@@ -1223,7 +1332,7 @@ const ge = e.object({
1223
1332
  idle_expires_at: e.string().optional(),
1224
1333
  // When the token was last used.
1225
1334
  last_exchanged_at: e.string().optional(),
1226
- device: E,
1335
+ device: b,
1227
1336
  resource_servers: e.array(
1228
1337
  e.object({
1229
1338
  audience: e.string(),
@@ -1231,18 +1340,18 @@ const ge = e.object({
1231
1340
  })
1232
1341
  ),
1233
1342
  rotating: e.boolean()
1234
- }), ct = e.object({
1343
+ }), _o = e.object({
1235
1344
  // When the refresh token record was created.
1236
1345
  created_at: e.string(),
1237
1346
  // Spread in the rest of the refresh token properties.
1238
1347
  ...fe.shape
1239
- }), _t = e.object({
1348
+ }), co = e.object({
1240
1349
  to: e.string(),
1241
1350
  message: e.string()
1242
- }), pt = e.object({
1351
+ }), po = e.object({
1243
1352
  name: e.string(),
1244
1353
  options: e.object({})
1245
- }), be = e.object({
1354
+ }), Se = e.object({
1246
1355
  value: e.string(),
1247
1356
  description: e.string().optional()
1248
1357
  }), Ae = e.object({
@@ -1258,7 +1367,7 @@ const ge = e.object({
1258
1367
  }), Ie = e.object({
1259
1368
  name: e.string(),
1260
1369
  identifier: e.string(),
1261
- scopes: e.array(be).optional(),
1370
+ scopes: e.array(Se).optional(),
1262
1371
  signing_alg: e.string().optional(),
1263
1372
  signing_secret: e.string().optional(),
1264
1373
  token_lifetime: e.number().optional(),
@@ -1272,7 +1381,7 @@ const ge = e.object({
1272
1381
  ...Ie.shape,
1273
1382
  created_at: e.string().optional(),
1274
1383
  updated_at: e.string().optional()
1275
- }), dt = e.array(Ce), Oe = e.object({
1384
+ }), go = e.array(Ce), Oe = e.object({
1276
1385
  role_id: e.string(),
1277
1386
  resource_server_identifier: e.string(),
1278
1387
  permission_name: e.string()
@@ -1280,14 +1389,14 @@ const ge = e.object({
1280
1389
  ...Oe.shape,
1281
1390
  tenant_id: e.string(),
1282
1391
  created_at: e.string().optional()
1283
- }), gt = e.array(Te), Ne = e.object({
1392
+ }), uo = e.array(Te), Ne = e.object({
1284
1393
  role_id: e.string(),
1285
1394
  resource_server_identifier: e.string(),
1286
1395
  resource_server_name: e.string(),
1287
1396
  permission_name: e.string(),
1288
1397
  description: e.string().nullable().optional(),
1289
1398
  created_at: e.string().optional()
1290
- }), ut = e.array(
1399
+ }), mo = e.array(
1291
1400
  Ne
1292
1401
  ), ye = e.object({
1293
1402
  user_id: e.string(),
@@ -1298,7 +1407,7 @@ const ge = e.object({
1298
1407
  ...ye.shape,
1299
1408
  tenant_id: e.string(),
1300
1409
  created_at: e.string().optional()
1301
- }), mt = e.array(Re), Le = e.object({
1410
+ }), ho = e.array(Re), Le = e.object({
1302
1411
  user_id: e.string(),
1303
1412
  resource_server_identifier: e.string(),
1304
1413
  resource_server_name: e.string(),
@@ -1306,31 +1415,31 @@ const ge = e.object({
1306
1415
  description: e.string().nullable().optional(),
1307
1416
  created_at: e.string().optional(),
1308
1417
  organization_id: e.string().optional()
1309
- }), ht = e.array(
1418
+ }), bo = e.array(
1310
1419
  Le
1311
1420
  ), De = e.object({
1312
1421
  user_id: e.string(),
1313
1422
  role_id: e.string(),
1314
1423
  organization_id: e.string().optional()
1315
- }), Ue = e.object({
1424
+ }), we = e.object({
1316
1425
  ...De.shape,
1317
1426
  tenant_id: e.string(),
1318
1427
  created_at: e.string().optional()
1319
- }), Et = e.array(Ue), Fe = e.object({
1428
+ }), Eo = e.array(we), je = e.object({
1320
1429
  name: e.string().min(1).max(50).openapi({
1321
1430
  description: "The name of the role. Cannot include '<' or '>'"
1322
1431
  }),
1323
1432
  description: e.string().max(255).optional().openapi({
1324
1433
  description: "The description of the role"
1325
1434
  })
1326
- }), we = e.object({
1435
+ }), ke = e.object({
1327
1436
  id: e.string().openapi({
1328
1437
  description: "The unique identifier of the role"
1329
1438
  }),
1330
- ...Fe.shape,
1439
+ ...je.shape,
1331
1440
  created_at: e.string().optional(),
1332
1441
  updated_at: e.string().optional()
1333
- }), St = e.array(we), je = e.object({
1442
+ }), fo = e.array(ke), Ue = e.object({
1334
1443
  logo_url: e.string().optional().openapi({
1335
1444
  description: "URL of the organization's logo"
1336
1445
  }),
@@ -1342,7 +1451,7 @@ const ge = e.object({
1342
1451
  description: "Page background color in hex format (e.g., #FFFFFF)"
1343
1452
  })
1344
1453
  }).optional()
1345
- }).optional(), ke = e.object({
1454
+ }).optional(), Fe = e.object({
1346
1455
  connection_id: e.string().openapi({
1347
1456
  description: "ID of the connection"
1348
1457
  }),
@@ -1375,17 +1484,17 @@ const ge = e.object({
1375
1484
  display_name: e.string().optional().openapi({
1376
1485
  description: "The display name of the organization"
1377
1486
  }),
1378
- branding: je,
1487
+ branding: Ue,
1379
1488
  metadata: e.record(e.any()).default({}).optional().openapi({
1380
1489
  description: "Custom metadata for the organization"
1381
1490
  }),
1382
- enabled_connections: e.array(ke).default([]).optional().openapi({
1491
+ enabled_connections: e.array(Fe).default([]).optional().openapi({
1383
1492
  description: "List of enabled connections for the organization"
1384
1493
  }),
1385
1494
  token_quota: ve
1386
- }), ft = e.object({
1495
+ }), So = e.object({
1387
1496
  ...Pe.shape,
1388
- ...i.shape,
1497
+ ...n.shape,
1389
1498
  id: e.string()
1390
1499
  }), He = e.object({
1391
1500
  user_id: e.string().openapi({
@@ -1394,34 +1503,103 @@ const ge = e.object({
1394
1503
  organization_id: e.string().openapi({
1395
1504
  description: "ID of the organization"
1396
1505
  })
1397
- }), bt = e.object({
1506
+ }), Ao = e.object({
1398
1507
  ...He.shape,
1399
- ...i.shape,
1508
+ ...n.shape,
1400
1509
  id: e.string()
1510
+ }), Io = e.object({
1511
+ // Session settings
1512
+ idle_session_lifetime: e.number().optional(),
1513
+ session_lifetime: e.number().optional(),
1514
+ session_cookie: e.object({
1515
+ mode: e.enum(["persistent", "non-persistent"]).optional()
1516
+ }).optional(),
1517
+ // MFA settings
1518
+ enable_client_connections: e.boolean().optional(),
1519
+ // Universal Login settings
1520
+ default_redirection_uri: e.string().optional(),
1521
+ // Advanced settings
1522
+ enabled_locales: e.array(e.string()).optional(),
1523
+ default_directory: e.string().optional(),
1524
+ error_page: e.object({
1525
+ html: e.string().optional(),
1526
+ show_log_link: e.boolean().optional(),
1527
+ url: e.string().optional()
1528
+ }).optional(),
1529
+ // Flags
1530
+ flags: e.object({
1531
+ allow_legacy_delegation_grant_types: e.boolean().optional(),
1532
+ allow_legacy_ro_grant_types: e.boolean().optional(),
1533
+ allow_legacy_tokeninfo_endpoint: e.boolean().optional(),
1534
+ disable_clickjack_protection_headers: e.boolean().optional(),
1535
+ enable_apis_section: e.boolean().optional(),
1536
+ enable_client_connections: e.boolean().optional(),
1537
+ enable_custom_domain_in_emails: e.boolean().optional(),
1538
+ enable_dynamic_client_registration: e.boolean().optional(),
1539
+ enable_idtoken_api2: e.boolean().optional(),
1540
+ enable_legacy_logs_search_v2: e.boolean().optional(),
1541
+ enable_legacy_profile: e.boolean().optional(),
1542
+ enable_pipeline2: e.boolean().optional(),
1543
+ enable_public_signup_user_exists_error: e.boolean().optional(),
1544
+ use_scope_descriptions_for_consent: e.boolean().optional(),
1545
+ disable_management_api_sms_obfuscation: e.boolean().optional(),
1546
+ enable_adfs_waad_email_verification: e.boolean().optional(),
1547
+ revoke_refresh_token_grant: e.boolean().optional(),
1548
+ dashboard_log_streams_next: e.boolean().optional(),
1549
+ dashboard_insights_view: e.boolean().optional(),
1550
+ disable_fields_map_fix: e.boolean().optional(),
1551
+ mfa_show_factor_list_on_enrollment: e.boolean().optional()
1552
+ }).optional(),
1553
+ // Additional settings
1554
+ friendly_name: e.string().optional(),
1555
+ picture_url: e.string().optional(),
1556
+ support_email: e.string().optional(),
1557
+ support_url: e.string().optional(),
1558
+ // Sandbox settings
1559
+ sandbox_version: e.string().optional(),
1560
+ sandbox_versions_available: e.array(e.string()).optional(),
1561
+ // Change password settings
1562
+ change_password: e.object({
1563
+ enabled: e.boolean(),
1564
+ html: e.string()
1565
+ }).optional(),
1566
+ // Guardian MFA settings
1567
+ guardian_mfa_page: e.object({
1568
+ enabled: e.boolean(),
1569
+ html: e.string()
1570
+ }).optional(),
1571
+ // Default audience
1572
+ default_audience: e.string().optional(),
1573
+ // Default directory
1574
+ default_organization: e.string().optional(),
1575
+ // Session management
1576
+ sessions: e.object({
1577
+ oidc_logout_prompt_enabled: e.boolean().optional()
1578
+ }).optional()
1401
1579
  });
1402
- function At(t) {
1403
- const [n, r] = t.split("|");
1404
- if (!n || !r)
1405
- throw new Error(`Invalid user_id: ${t}`);
1406
- return { connection: n, id: r };
1580
+ function Co(o) {
1581
+ const [i, s] = o.split("|");
1582
+ if (!i || !s)
1583
+ throw new Error(`Invalid user_id: ${o}`);
1584
+ return { connection: i, id: s };
1407
1585
  }
1408
1586
  export {
1409
- ce as Auth0Client,
1587
+ _e as Auth0Client,
1410
1588
  g as AuthorizationResponseMode,
1411
1589
  d as AuthorizationResponseType,
1412
1590
  u as CodeChallengeMethod,
1413
1591
  p as ComponentCategory,
1414
- _ as ComponentType,
1592
+ c as ComponentType,
1415
1593
  de as GrantType,
1416
- se as LogTypes,
1417
- j as NodeType,
1418
- We as auth0FlowInsertSchema,
1419
- x as auth0FlowSchema,
1420
- xe as auth0UserResponseSchema,
1594
+ re as LogTypes,
1595
+ U as NodeType,
1596
+ ze as auth0FlowInsertSchema,
1597
+ G as auth0FlowSchema,
1598
+ Ge as auth0UserResponseSchema,
1421
1599
  K as authParamsSchema,
1422
- c as baseUserSchema,
1600
+ _ as baseUserSchema,
1423
1601
  ge as bordersSchema,
1424
- ze as brandingSchema,
1602
+ We as brandingSchema,
1425
1603
  L as buttonComponentSchema,
1426
1604
  N as clientGrantInsertSchema,
1427
1605
  Be as clientGrantListSchema,
@@ -1432,25 +1610,25 @@ export {
1432
1610
  Xe as codeSchema,
1433
1611
  q as codeTypeSchema,
1434
1612
  ue as colorsSchema,
1435
- w as componentSchema,
1436
- W as connectionInsertSchema,
1613
+ k as componentSchema,
1614
+ z as connectionInsertSchema,
1437
1615
  B as connectionOptionsSchema,
1438
- z as connectionSchema,
1616
+ W as connectionSchema,
1439
1617
  a as coordinatesSchema,
1440
1618
  Q as customDomainInsertSchema,
1441
1619
  Z as customDomainSchema,
1442
1620
  Ve as customDomainWithTenantIdSchema,
1443
- lt as emailProviderSchema,
1444
- G as endingSchema,
1445
- U as fieldComponentSchema,
1621
+ lo as emailProviderSchema,
1622
+ x as endingSchema,
1623
+ w as fieldComponentSchema,
1446
1624
  v as flowNodeSchema,
1447
- o as fontDetailsSchema,
1625
+ t as fontDetailsSchema,
1448
1626
  me as fontsSchema,
1449
1627
  qe as formControlSchema,
1450
1628
  ee as formInsertSchema,
1451
1629
  $ as formNodeComponentDefinition,
1452
1630
  Ye as formSchema,
1453
- F as genericComponentSchema,
1631
+ j as genericComponentSchema,
1454
1632
  P as genericNodeSchema,
1455
1633
  Qe as hookInsertSchema,
1456
1634
  Je as hookSchema,
@@ -1458,64 +1636,65 @@ export {
1458
1636
  Ze as jwksKeySchema,
1459
1637
  ae as jwksSchema,
1460
1638
  D as legalComponentSchema,
1461
- tt as logSchema,
1462
- re as loginSessionInsertSchema,
1463
- et as loginSessionSchema,
1639
+ oo as logSchema,
1640
+ se as loginSessionInsertSchema,
1641
+ eo as loginSessionSchema,
1464
1642
  H as nodeSchema,
1465
1643
  $e as openIDConfigurationSchema,
1466
- je as organizationBrandingSchema,
1467
- ke as organizationEnabledConnectionSchema,
1644
+ Ue as organizationBrandingSchema,
1645
+ Fe as organizationEnabledConnectionSchema,
1468
1646
  Pe as organizationInsertSchema,
1469
- ft as organizationSchema,
1647
+ So as organizationSchema,
1470
1648
  ve as organizationTokenQuotaSchema,
1471
1649
  he as pageBackgroundSchema,
1472
- At as parseUserId,
1473
- _e as passwordInsertSchema,
1474
- ot as passwordSchema,
1475
- S as profileDataSchema,
1476
- st as promptSettingSchema,
1650
+ Co as parseUserId,
1651
+ ce as passwordInsertSchema,
1652
+ to as passwordSchema,
1653
+ E as profileDataSchema,
1654
+ ro as promptSettingSchema,
1477
1655
  fe as refreshTokenInsertSchema,
1478
- ct as refreshTokenSchema,
1656
+ _o as refreshTokenSchema,
1479
1657
  Ie as resourceServerInsertSchema,
1480
- dt as resourceServerListSchema,
1658
+ go as resourceServerListSchema,
1481
1659
  Ae as resourceServerOptionsSchema,
1482
1660
  Ce as resourceServerSchema,
1483
- be as resourceServerScopeSchema,
1661
+ Se as resourceServerScopeSchema,
1484
1662
  R as richTextComponentSchema,
1485
- Fe as roleInsertSchema,
1486
- St as roleListSchema,
1663
+ je as roleInsertSchema,
1664
+ fo as roleListSchema,
1487
1665
  Oe as rolePermissionInsertSchema,
1488
- gt as rolePermissionListSchema,
1666
+ uo as rolePermissionListSchema,
1489
1667
  Te as rolePermissionSchema,
1490
- ut as rolePermissionWithDetailsListSchema,
1668
+ mo as rolePermissionWithDetailsListSchema,
1491
1669
  Ne as rolePermissionWithDetailsSchema,
1492
- we as roleSchema,
1670
+ ke as roleSchema,
1493
1671
  pe as sessionInsertSchema,
1494
- it as sessionSchema,
1495
- nt as signingKeySchema,
1496
- pt as smsProviderSchema,
1497
- _t as smsSendParamsSchema,
1672
+ no as sessionSchema,
1673
+ io as signingKeySchema,
1674
+ po as smsProviderSchema,
1675
+ co as smsSendParamsSchema,
1498
1676
  M as startSchema,
1499
- k as stepNodeSchema,
1677
+ F as stepNodeSchema,
1500
1678
  X as tenantInsertSchema,
1501
1679
  V as tenantSchema,
1502
- Se as themeInsertSchema,
1503
- rt as themeSchema,
1504
- at as tokenResponseSchema,
1505
- Ge as totalsSchema,
1506
- b as userInsertSchema,
1680
+ Io as tenantSettingsSchema,
1681
+ Ee as themeInsertSchema,
1682
+ so as themeSchema,
1683
+ ao as tokenResponseSchema,
1684
+ xe as totalsSchema,
1685
+ S as userInsertSchema,
1507
1686
  He as userOrganizationInsertSchema,
1508
- bt as userOrganizationSchema,
1687
+ Ao as userOrganizationSchema,
1509
1688
  ye as userPermissionInsertSchema,
1510
- mt as userPermissionListSchema,
1689
+ ho as userPermissionListSchema,
1511
1690
  Re as userPermissionSchema,
1512
- ht as userPermissionWithDetailsListSchema,
1691
+ bo as userPermissionWithDetailsListSchema,
1513
1692
  Le as userPermissionWithDetailsSchema,
1514
1693
  Ke as userResponseSchema,
1515
1694
  De as userRoleInsertSchema,
1516
- Et as userRoleListSchema,
1517
- Ue as userRoleSchema,
1695
+ Eo as userRoleListSchema,
1696
+ we as userRoleSchema,
1518
1697
  A as userSchema,
1519
1698
  J as verificationMethodsSchema,
1520
- Ee as widgetSchema
1699
+ be as widgetSchema
1521
1700
  };