@authhero/adapter-interfaces 0.94.0 → 0.96.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 xe = e.object({
2
+ const ze = e.object({
3
3
  start: e.number(),
4
4
  limit: e.number(),
5
5
  length: e.number()
6
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,8 +23,8 @@ const xe = 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({
26
+ profileData: E.optional()
27
+ }), _ = e.object({
28
28
  email: e.string().optional().transform((t) => t && t.toLowerCase()),
29
29
  username: e.string().optional(),
30
30
  phone_number: e.string().optional(),
@@ -39,7 +39,7 @@ const xe = 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,14 +49,14 @@ const xe = e.object({
49
49
  connection: e.string().default("email"),
50
50
  is_social: e.boolean().optional()
51
51
  }), A = e.object({
52
- ...b.shape,
52
+ ...S.shape,
53
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
- }), Ge = A, Ke = c.extend({
59
+ }), Be = A, We = _.extend({
60
60
  login_count: e.number(),
61
61
  multifactor: e.array(e.string()).optional(),
62
62
  last_ip: e.string().optional(),
@@ -272,15 +272,15 @@ const O = e.object({
272
272
  ...N.shape,
273
273
  created_at: e.string().optional(),
274
274
  updated_at: e.string().optional()
275
- }), Be = e.array(y), a = e.object({
275
+ }), Xe = e.array(y), a = 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 || {});
279
+ var c = /* @__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))(c || {}), p = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(p || {});
280
280
  const r = e.object({
281
281
  id: e.string(),
282
282
  category: e.nativeEnum(p),
283
- type: e.nativeEnum(_)
283
+ type: e.nativeEnum(c)
284
284
  }), R = r.extend({
285
285
  category: e.literal(
286
286
  "BLOCK"
@@ -329,7 +329,7 @@ const r = e.object({
329
329
  config: e.object({
330
330
  text: e.string()
331
331
  }).passthrough()
332
- }), w = r.extend({
332
+ }), j = r.extend({
333
333
  category: e.literal(
334
334
  "FIELD"
335
335
  /* FIELD */
@@ -382,19 +382,19 @@ const r = e.object({
382
382
  label: e.string().optional(),
383
383
  placeholder: e.string().optional()
384
384
  }).passthrough()
385
- }), U = e.object({
385
+ }), w = e.object({
386
386
  id: e.string(),
387
387
  category: e.string(),
388
388
  type: e.string()
389
- }).passthrough(), j = e.union([
389
+ }).passthrough(), k = e.union([
390
390
  R,
391
391
  L,
392
392
  D,
393
- w,
394
- U
393
+ j,
394
+ w
395
395
  ]);
396
- var F = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(F || {});
397
- const k = e.object({
396
+ var U = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(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(j),
406
+ components: e.array(k),
407
407
  next_node: e.string()
408
408
  }).passthrough()
409
409
  }), v = e.object({
@@ -423,7 +423,7 @@ 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({
@@ -447,7 +447,7 @@ const k = e.object({
447
447
  sdkSrc: e.string().optional(),
448
448
  sdk_src: e.string().optional()
449
449
  }).passthrough()
450
- }).passthrough(), We = G.omit({
450
+ }).passthrough(), Ve = G.omit({
451
451
  id: !0,
452
452
  created_at: !0,
453
453
  updated_at: !0
@@ -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
+ }), qe = e.object({
475
475
  colors: e.object({
476
476
  primary: e.string(),
477
477
  page_background: e.object({
@@ -487,7 +487,7 @@ const K = e.object({
487
487
  font: e.object({
488
488
  url: e.string()
489
489
  }).optional()
490
- }), B = e.object({
490
+ }), z = e.object({
491
491
  kid: e.string().optional(),
492
492
  team_id: e.string().optional(),
493
493
  realms: e.string().optional(),
@@ -506,39 +506,148 @@ 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
+ }), B = e.object({
510
510
  id: e.string().optional(),
511
511
  name: e.string(),
512
512
  strategy: e.string(),
513
- options: B.default({}),
513
+ options: z.default({}),
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
519
  created_at: e.string().transform((t) => t === null ? "" : t),
520
520
  updated_at: e.string().transform((t) => t === null ? "" : t)
521
- }).extend(W.shape), X = e.object({
522
- name: e.string(),
521
+ }).extend(B.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((t) => t ?? ""),
643
+ updated_at: e.string().nullable().transform((t) => t ?? ""),
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",
@@ -579,7 +688,7 @@ const q = e.enum([
579
688
  expires_at: e.string(),
580
689
  used_at: e.string().optional(),
581
690
  user_id: e.string().optional()
582
- }), Xe = e.object({
691
+ }), Ye = e.object({
583
692
  ...Y.shape,
584
693
  created_at: e.string()
585
694
  }), Q = e.object({
@@ -610,9 +719,9 @@ const q = e.enum([
610
719
  methods: e.array(J)
611
720
  }).optional(),
612
721
  tls_policy: e.string().optional()
613
- }), Ve = Z.extend({
722
+ }), Qe = Z.extend({
614
723
  tenant_id: e.string()
615
- }), qe = e.object({
724
+ }), Je = e.object({
616
725
  id: e.string(),
617
726
  type: e.literal("submit"),
618
727
  label: e.string(),
@@ -738,7 +847,7 @@ const q = e.enum([
738
847
  style: e.object({ css: e.string().optional() }).optional()
739
848
  }).openapi({
740
849
  description: "Schema for flow-based forms (matches new JSON structure)"
741
- }), Ye = e.object({
850
+ }), Ze = e.object({
742
851
  ...n.shape,
743
852
  ...ee.shape,
744
853
  id: e.string()
@@ -764,7 +873,7 @@ const q = e.enum([
764
873
  ...l,
765
874
  trigger_id: h,
766
875
  form_id: e.string()
767
- }), Qe = e.union([
876
+ }), $e = e.union([
768
877
  te,
769
878
  oe
770
879
  ]), ne = e.object({
@@ -779,7 +888,29 @@ const q = e.enum([
779
888
  ...n.shape,
780
889
  hook_id: e.string(),
781
890
  form_id: e.string()
782
- }), Je = e.union([ne, ie]), ae = e.object({
891
+ }), et = e.union([ne, ie]), ae = e.object({
892
+ name: e.string().optional()
893
+ }), se = e.object({
894
+ email: e.string().optional()
895
+ }), re = e.object({
896
+ organization_id: e.string().max(50),
897
+ inviter: ae,
898
+ invitee: se,
899
+ invitation_url: e.string().url(),
900
+ client_id: e.string(),
901
+ connection_id: e.string().optional(),
902
+ app_metadata: e.record(e.any()).default({}).optional(),
903
+ user_metadata: e.record(e.any()).default({}).optional(),
904
+ ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
905
+ roles: e.array(e.string()).default([]).optional(),
906
+ send_invitation_email: e.boolean().default(!0).optional()
907
+ }), tt = e.object({
908
+ id: e.string(),
909
+ organization_id: e.string().max(50),
910
+ created_at: e.string().datetime(),
911
+ expires_at: e.string().datetime(),
912
+ ticket_id: e.string().optional()
913
+ }).extend(re.shape), le = e.object({
783
914
  alg: e.enum([
784
915
  "RS256",
785
916
  "RS384",
@@ -798,9 +929,9 @@ const q = e.enum([
798
929
  x5t: e.string().optional(),
799
930
  x5c: e.array(e.string()).optional(),
800
931
  use: e.enum(["sig", "enc"]).optional()
801
- }), Ze = e.object({
802
- keys: e.array(ae)
803
- }), $e = e.object({
932
+ }), ot = e.object({
933
+ keys: e.array(le)
934
+ }), nt = e.object({
804
935
  issuer: e.string(),
805
936
  authorization_endpoint: e.string(),
806
937
  token_endpoint: e.string(),
@@ -821,7 +952,7 @@ const q = e.enum([
821
952
  request_uri_parameter_supported: e.boolean(),
822
953
  request_parameter_supported: e.boolean(),
823
954
  token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
824
- }), se = e.object({
955
+ }), _e = e.object({
825
956
  csrf_token: e.string(),
826
957
  auth0Client: e.string().optional(),
827
958
  authParams: K,
@@ -834,14 +965,14 @@ const q = e.enum([
834
965
  login_completed: e.boolean().optional().default(!1)
835
966
  }).openapi({
836
967
  description: "This represents a login sesion"
837
- }), et = e.object({
838
- ...se.shape,
968
+ }), it = e.object({
969
+ ..._e.shape,
839
970
  id: e.string().openapi({
840
971
  description: "This is is used as the state in the universal login"
841
972
  }),
842
973
  created_at: e.string(),
843
974
  updated_at: e.string()
844
- }), re = {
975
+ }), ce = {
845
976
  // Network & System
846
977
  ACLS_SUMMARY: "acls_summary",
847
978
  ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
@@ -1008,17 +1139,17 @@ const q = e.enum([
1008
1139
  WARNING_DURING_LOGIN: "w",
1009
1140
  WARNING_SENDING_NOTIFICATION: "wn",
1010
1141
  WARNING_USER_MANAGEMENT: "wum"
1011
- }, le = e.string().refine(
1012
- (t) => Object.values(re).includes(t),
1142
+ }, pe = e.string().refine(
1143
+ (t) => Object.values(ce).includes(t),
1013
1144
  { message: "Invalid log type" }
1014
- ), ce = e.object({
1145
+ ), de = e.object({
1015
1146
  name: e.string(),
1016
1147
  version: e.string(),
1017
1148
  env: e.object({
1018
1149
  node: e.string().optional()
1019
1150
  }).optional()
1020
- }), tt = e.object({
1021
- type: le,
1151
+ }), at = e.object({
1152
+ type: pe,
1022
1153
  date: e.string(),
1023
1154
  description: e.string().optional(),
1024
1155
  log_id: e.string().optional(),
@@ -1039,23 +1170,23 @@ const q = e.enum([
1039
1170
  strategy: e.string().optional(),
1040
1171
  strategy_type: e.string().optional(),
1041
1172
  hostname: e.string().optional(),
1042
- auth0_client: ce.optional()
1043
- }), _e = e.object({
1173
+ auth0_client: de.optional()
1174
+ }), ge = e.object({
1044
1175
  user_id: e.string(),
1045
1176
  password: e.string(),
1046
1177
  algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id")
1047
- }), ot = e.object({
1048
- ..._e.shape,
1178
+ }), st = e.object({
1179
+ ...ge.shape,
1049
1180
  created_at: e.string(),
1050
1181
  updated_at: e.string()
1051
- }), E = e.object({
1182
+ }), b = e.object({
1052
1183
  initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
1053
1184
  initial_ip: e.string().describe("First IP address associated with this session"),
1054
1185
  initial_asn: e.string().describe("First autonomous system number associated with this session"),
1055
1186
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
1056
1187
  last_ip: e.string().describe("Last IP address from which this user logged in"),
1057
1188
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
1058
- }), pe = e.object({
1189
+ }), ue = e.object({
1059
1190
  id: e.string(),
1060
1191
  revoked_at: e.string().optional(),
1061
1192
  used_at: e.string().optional(),
@@ -1063,17 +1194,17 @@ const q = e.enum([
1063
1194
  expires_at: e.string().optional(),
1064
1195
  login_session_id: e.string(),
1065
1196
  idle_expires_at: e.string().optional(),
1066
- device: E.describe(
1197
+ device: b.describe(
1067
1198
  "Metadata related to the device used in the session"
1068
1199
  ),
1069
1200
  clients: e.array(e.string()).describe("List of client details for the session")
1070
- }), nt = e.object({
1201
+ }), rt = e.object({
1071
1202
  created_at: e.string(),
1072
1203
  updated_at: e.string(),
1073
1204
  authenticated_at: e.string(),
1074
1205
  last_interaction_at: e.string(),
1075
- ...pe.shape
1076
- }), it = e.object({
1206
+ ...ue.shape
1207
+ }), lt = e.object({
1077
1208
  kid: e.string().openapi({ description: "The key id of the signing key" }),
1078
1209
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
1079
1210
  fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
@@ -1099,8 +1230,8 @@ const q = e.enum([
1099
1230
  description: "The type of the signing key"
1100
1231
  })
1101
1232
  });
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({
1233
+ var me = /* @__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))(me || {});
1234
+ const _t = e.object({
1104
1235
  access_token: e.string(),
1105
1236
  id_token: e.string().optional(),
1106
1237
  scope: e.string().optional(),
@@ -1113,7 +1244,7 @@ e.object({
1113
1244
  code: e.string(),
1114
1245
  state: e.string().optional()
1115
1246
  });
1116
- const ge = e.object({
1247
+ const he = e.object({
1117
1248
  button_border_radius: e.number(),
1118
1249
  button_border_weight: e.number(),
1119
1250
  buttons_style: e.enum(["pill", "rounded", "sharp"]),
@@ -1123,7 +1254,7 @@ const ge = e.object({
1123
1254
  show_widget_shadow: e.boolean(),
1124
1255
  widget_border_weight: e.number(),
1125
1256
  widget_corner_radius: e.number()
1126
- }), ue = e.object({
1257
+ }), be = e.object({
1127
1258
  base_focus_color: e.string(),
1128
1259
  base_hover_color: e.string(),
1129
1260
  body_text: e.string(),
@@ -1146,7 +1277,7 @@ const ge = e.object({
1146
1277
  }), o = e.object({
1147
1278
  bold: e.boolean(),
1148
1279
  size: e.number()
1149
- }), me = e.object({
1280
+ }), Ee = e.object({
1150
1281
  body_text: o,
1151
1282
  buttons_text: o,
1152
1283
  font_url: e.string(),
@@ -1156,31 +1287,31 @@ const ge = e.object({
1156
1287
  reference_text_size: e.number(),
1157
1288
  subtitle: o,
1158
1289
  title: o
1159
- }), he = e.object({
1290
+ }), fe = e.object({
1160
1291
  background_color: e.string(),
1161
1292
  background_image_url: e.string(),
1162
1293
  page_layout: e.enum(["center", "left", "right"])
1163
- }), Ee = e.object({
1294
+ }), Se = e.object({
1164
1295
  header_text_alignment: e.enum(["center", "left", "right"]),
1165
1296
  logo_height: e.number(),
1166
1297
  logo_position: e.enum(["center", "left", "none", "right"]),
1167
1298
  logo_url: e.string(),
1168
1299
  social_buttons_layout: e.enum(["bottom", "top"])
1169
- }), Se = e.object({
1170
- borders: ge,
1171
- colors: ue,
1300
+ }), Ae = e.object({
1301
+ borders: he,
1302
+ colors: be,
1172
1303
  displayName: e.string(),
1173
- fonts: me,
1174
- page_background: he,
1175
- widget: Ee
1176
- }), st = Se.extend({
1304
+ fonts: Ee,
1305
+ page_background: fe,
1306
+ widget: Se
1307
+ }), ct = Ae.extend({
1177
1308
  themeId: e.string()
1178
- }), rt = e.object({
1309
+ }), pt = e.object({
1179
1310
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
1180
1311
  identifier_first: e.boolean().default(!0),
1181
1312
  password_first: e.boolean().default(!1),
1182
1313
  webauthn_platform_first_factor: e.boolean()
1183
- }), lt = e.object({
1314
+ }), dt = e.object({
1184
1315
  name: e.string(),
1185
1316
  enabled: e.boolean().optional().default(!0),
1186
1317
  default_from_address: e.string().optional(),
@@ -1210,7 +1341,7 @@ const ge = e.object({
1210
1341
  })
1211
1342
  ]),
1212
1343
  settings: e.object({}).optional()
1213
- }), fe = e.object({
1344
+ }), Ie = e.object({
1214
1345
  // The actual refresh token value (primary key).
1215
1346
  id: e.string(),
1216
1347
  // Link to the session record
@@ -1223,7 +1354,7 @@ const ge = e.object({
1223
1354
  idle_expires_at: e.string().optional(),
1224
1355
  // When the token was last used.
1225
1356
  last_exchanged_at: e.string().optional(),
1226
- device: E,
1357
+ device: b,
1227
1358
  resource_servers: e.array(
1228
1359
  e.object({
1229
1360
  audience: e.string(),
@@ -1231,21 +1362,21 @@ const ge = e.object({
1231
1362
  })
1232
1363
  ),
1233
1364
  rotating: e.boolean()
1234
- }), ct = e.object({
1365
+ }), gt = e.object({
1235
1366
  // When the refresh token record was created.
1236
1367
  created_at: e.string(),
1237
1368
  // Spread in the rest of the refresh token properties.
1238
- ...fe.shape
1239
- }), _t = e.object({
1369
+ ...Ie.shape
1370
+ }), ut = e.object({
1240
1371
  to: e.string(),
1241
1372
  message: e.string()
1242
- }), pt = e.object({
1373
+ }), mt = e.object({
1243
1374
  name: e.string(),
1244
1375
  options: e.object({})
1245
- }), be = e.object({
1376
+ }), Ce = e.object({
1246
1377
  value: e.string(),
1247
1378
  description: e.string().optional()
1248
- }), Ae = e.object({
1379
+ }), Oe = e.object({
1249
1380
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
1250
1381
  enforce_policies: e.boolean().optional(),
1251
1382
  allow_skipping_userinfo: e.boolean().optional(),
@@ -1255,10 +1386,10 @@ const ge = e.object({
1255
1386
  mtls: e.object({
1256
1387
  bound_access_tokens: e.boolean().optional()
1257
1388
  }).optional()
1258
- }), Ie = e.object({
1389
+ }), Te = e.object({
1259
1390
  name: e.string(),
1260
1391
  identifier: e.string(),
1261
- scopes: e.array(be).optional(),
1392
+ scopes: e.array(Ce).optional(),
1262
1393
  signing_alg: e.string().optional(),
1263
1394
  signing_secret: e.string().optional(),
1264
1395
  token_lifetime: e.number().optional(),
@@ -1266,39 +1397,39 @@ const ge = e.object({
1266
1397
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
1267
1398
  allow_offline_access: e.boolean().optional(),
1268
1399
  verificationKey: e.string().optional(),
1269
- options: Ae.optional()
1270
- }), Ce = e.object({
1400
+ options: Oe.optional()
1401
+ }), Ne = e.object({
1271
1402
  id: e.string().optional(),
1272
- ...Ie.shape,
1403
+ ...Te.shape,
1273
1404
  created_at: e.string().optional(),
1274
1405
  updated_at: e.string().optional()
1275
- }), dt = e.array(Ce), Oe = e.object({
1406
+ }), ht = e.array(Ne), ye = e.object({
1276
1407
  role_id: e.string(),
1277
1408
  resource_server_identifier: e.string(),
1278
1409
  permission_name: e.string()
1279
- }), Te = e.object({
1280
- ...Oe.shape,
1410
+ }), Re = e.object({
1411
+ ...ye.shape,
1281
1412
  tenant_id: e.string(),
1282
1413
  created_at: e.string().optional()
1283
- }), gt = e.array(Te), Ne = e.object({
1414
+ }), bt = e.array(Re), Le = e.object({
1284
1415
  role_id: e.string(),
1285
1416
  resource_server_identifier: e.string(),
1286
1417
  resource_server_name: e.string(),
1287
1418
  permission_name: e.string(),
1288
1419
  description: e.string().nullable().optional(),
1289
1420
  created_at: e.string().optional()
1290
- }), ut = e.array(
1291
- Ne
1292
- ), ye = e.object({
1421
+ }), Et = e.array(
1422
+ Le
1423
+ ), De = e.object({
1293
1424
  user_id: e.string(),
1294
1425
  resource_server_identifier: e.string(),
1295
1426
  permission_name: e.string(),
1296
1427
  organization_id: e.string().optional()
1297
- }), Re = e.object({
1298
- ...ye.shape,
1428
+ }), je = e.object({
1429
+ ...De.shape,
1299
1430
  tenant_id: e.string(),
1300
1431
  created_at: e.string().optional()
1301
- }), mt = e.array(Re), Le = e.object({
1432
+ }), ft = e.array(je), we = e.object({
1302
1433
  user_id: e.string(),
1303
1434
  resource_server_identifier: e.string(),
1304
1435
  resource_server_name: e.string(),
@@ -1306,31 +1437,31 @@ const ge = e.object({
1306
1437
  description: e.string().nullable().optional(),
1307
1438
  created_at: e.string().optional(),
1308
1439
  organization_id: e.string().optional()
1309
- }), ht = e.array(
1310
- Le
1311
- ), De = e.object({
1440
+ }), St = e.array(
1441
+ we
1442
+ ), ke = e.object({
1312
1443
  user_id: e.string(),
1313
1444
  role_id: e.string(),
1314
1445
  organization_id: e.string().optional()
1315
- }), we = e.object({
1316
- ...De.shape,
1446
+ }), Ue = e.object({
1447
+ ...ke.shape,
1317
1448
  tenant_id: e.string(),
1318
1449
  created_at: e.string().optional()
1319
- }), Et = e.array(we), Ue = e.object({
1450
+ }), At = e.array(Ue), Fe = e.object({
1320
1451
  name: e.string().min(1).max(50).openapi({
1321
1452
  description: "The name of the role. Cannot include '<' or '>'"
1322
1453
  }),
1323
1454
  description: e.string().max(255).optional().openapi({
1324
1455
  description: "The description of the role"
1325
1456
  })
1326
- }), je = e.object({
1457
+ }), ve = e.object({
1327
1458
  id: e.string().openapi({
1328
1459
  description: "The unique identifier of the role"
1329
1460
  }),
1330
- ...Ue.shape,
1461
+ ...Fe.shape,
1331
1462
  created_at: e.string().optional(),
1332
1463
  updated_at: e.string().optional()
1333
- }), St = e.array(je), Fe = e.object({
1464
+ }), It = e.array(ve), Pe = e.object({
1334
1465
  logo_url: e.string().optional().openapi({
1335
1466
  description: "URL of the organization's logo"
1336
1467
  }),
@@ -1342,7 +1473,7 @@ const ge = e.object({
1342
1473
  description: "Page background color in hex format (e.g., #FFFFFF)"
1343
1474
  })
1344
1475
  }).optional()
1345
- }).optional(), ke = e.object({
1476
+ }).optional(), He = e.object({
1346
1477
  connection_id: e.string().openapi({
1347
1478
  description: "ID of the connection"
1348
1479
  }),
@@ -1355,7 +1486,7 @@ const ge = e.object({
1355
1486
  is_signup_enabled: e.boolean().default(!0).openapi({
1356
1487
  description: "Whether signup is enabled for this connection"
1357
1488
  })
1358
- }), ve = e.object({
1489
+ }), Me = e.object({
1359
1490
  client_credentials: e.object({
1360
1491
  enforce: e.boolean().default(!1).openapi({
1361
1492
  description: "Whether to enforce token quota limits"
@@ -1367,7 +1498,7 @@ const ge = e.object({
1367
1498
  description: "Maximum tokens per hour (0 = unlimited)"
1368
1499
  })
1369
1500
  }).optional()
1370
- }).optional(), Pe = e.object({
1501
+ }).optional(), xe = e.object({
1371
1502
  id: e.string().optional(),
1372
1503
  name: e.string().min(1).openapi({
1373
1504
  description: "The name of the organization"
@@ -1375,30 +1506,30 @@ const ge = e.object({
1375
1506
  display_name: e.string().optional().openapi({
1376
1507
  description: "The display name of the organization"
1377
1508
  }),
1378
- branding: Fe,
1509
+ branding: Pe,
1379
1510
  metadata: e.record(e.any()).default({}).optional().openapi({
1380
1511
  description: "Custom metadata for the organization"
1381
1512
  }),
1382
- enabled_connections: e.array(ke).default([]).optional().openapi({
1513
+ enabled_connections: e.array(He).default([]).optional().openapi({
1383
1514
  description: "List of enabled connections for the organization"
1384
1515
  }),
1385
- token_quota: ve
1386
- }), ft = e.object({
1387
- ...Pe.shape,
1516
+ token_quota: Me
1517
+ }), Ct = e.object({
1518
+ ...xe.shape,
1388
1519
  ...n.shape,
1389
1520
  id: e.string()
1390
- }), He = e.object({
1521
+ }), Ge = e.object({
1391
1522
  user_id: e.string().openapi({
1392
1523
  description: "ID of the user"
1393
1524
  }),
1394
1525
  organization_id: e.string().openapi({
1395
1526
  description: "ID of the organization"
1396
1527
  })
1397
- }), bt = e.object({
1398
- ...He.shape,
1528
+ }), Ot = e.object({
1529
+ ...Ge.shape,
1399
1530
  ...n.shape,
1400
1531
  id: e.string()
1401
- }), At = e.object({
1532
+ }), Tt = e.object({
1402
1533
  // Session settings
1403
1534
  idle_session_lifetime: e.number().optional(),
1404
1535
  session_lifetime: e.number().optional(),
@@ -1468,124 +1599,128 @@ const ge = e.object({
1468
1599
  oidc_logout_prompt_enabled: e.boolean().optional()
1469
1600
  }).optional()
1470
1601
  });
1471
- function It(t) {
1602
+ function Nt(t) {
1472
1603
  const [i, s] = t.split("|");
1473
1604
  if (!i || !s)
1474
1605
  throw new Error(`Invalid user_id: ${t}`);
1475
1606
  return { connection: i, id: s };
1476
1607
  }
1477
1608
  export {
1478
- ce as Auth0Client,
1609
+ de as Auth0Client,
1479
1610
  g as AuthorizationResponseMode,
1480
1611
  d as AuthorizationResponseType,
1481
1612
  u as CodeChallengeMethod,
1482
1613
  p as ComponentCategory,
1483
- _ as ComponentType,
1484
- de as GrantType,
1485
- re as LogTypes,
1486
- F as NodeType,
1487
- We as auth0FlowInsertSchema,
1614
+ c as ComponentType,
1615
+ me as GrantType,
1616
+ ce as LogTypes,
1617
+ U as NodeType,
1618
+ Ve as auth0FlowInsertSchema,
1488
1619
  G as auth0FlowSchema,
1489
- Ge as auth0UserResponseSchema,
1620
+ Be as auth0UserResponseSchema,
1490
1621
  K as authParamsSchema,
1491
- c as baseUserSchema,
1492
- ge as bordersSchema,
1493
- ze as brandingSchema,
1622
+ _ as baseUserSchema,
1623
+ he as bordersSchema,
1624
+ qe as brandingSchema,
1494
1625
  L as buttonComponentSchema,
1495
1626
  N as clientGrantInsertSchema,
1496
- Be as clientGrantListSchema,
1627
+ Xe as clientGrantListSchema,
1497
1628
  y as clientGrantSchema,
1498
1629
  O as clientInsertSchema,
1499
1630
  T as clientSchema,
1500
1631
  Y as codeInsertSchema,
1501
- Xe as codeSchema,
1632
+ Ye as codeSchema,
1502
1633
  q as codeTypeSchema,
1503
- ue as colorsSchema,
1504
- j as componentSchema,
1505
- W as connectionInsertSchema,
1506
- B as connectionOptionsSchema,
1507
- z as connectionSchema,
1634
+ be as colorsSchema,
1635
+ k as componentSchema,
1636
+ B as connectionInsertSchema,
1637
+ z as connectionOptionsSchema,
1638
+ W as connectionSchema,
1508
1639
  a as coordinatesSchema,
1509
1640
  Q as customDomainInsertSchema,
1510
1641
  Z as customDomainSchema,
1511
- Ve as customDomainWithTenantIdSchema,
1512
- lt as emailProviderSchema,
1642
+ Qe as customDomainWithTenantIdSchema,
1643
+ dt as emailProviderSchema,
1513
1644
  x as endingSchema,
1514
- w as fieldComponentSchema,
1645
+ j as fieldComponentSchema,
1515
1646
  v as flowNodeSchema,
1516
1647
  o as fontDetailsSchema,
1517
- me as fontsSchema,
1518
- qe as formControlSchema,
1648
+ Ee as fontsSchema,
1649
+ Je as formControlSchema,
1519
1650
  ee as formInsertSchema,
1520
1651
  $ as formNodeComponentDefinition,
1521
- Ye as formSchema,
1522
- U as genericComponentSchema,
1652
+ Ze as formSchema,
1653
+ w as genericComponentSchema,
1523
1654
  P as genericNodeSchema,
1524
- Qe as hookInsertSchema,
1525
- Je as hookSchema,
1655
+ $e as hookInsertSchema,
1656
+ et as hookSchema,
1526
1657
  f as identitySchema,
1527
- Ze as jwksKeySchema,
1528
- ae as jwksSchema,
1658
+ re as inviteInsertSchema,
1659
+ tt as inviteSchema,
1660
+ se as inviteeSchema,
1661
+ ae as inviterSchema,
1662
+ ot as jwksKeySchema,
1663
+ le as jwksSchema,
1529
1664
  D as legalComponentSchema,
1530
- tt as logSchema,
1531
- se as loginSessionInsertSchema,
1532
- et as loginSessionSchema,
1665
+ at as logSchema,
1666
+ _e as loginSessionInsertSchema,
1667
+ it as loginSessionSchema,
1533
1668
  H as nodeSchema,
1534
- $e as openIDConfigurationSchema,
1535
- Fe as organizationBrandingSchema,
1536
- ke as organizationEnabledConnectionSchema,
1537
- Pe as organizationInsertSchema,
1538
- ft as organizationSchema,
1539
- ve as organizationTokenQuotaSchema,
1540
- he as pageBackgroundSchema,
1541
- It as parseUserId,
1542
- _e as passwordInsertSchema,
1543
- ot as passwordSchema,
1544
- S as profileDataSchema,
1545
- rt as promptSettingSchema,
1546
- fe as refreshTokenInsertSchema,
1547
- ct as refreshTokenSchema,
1548
- Ie as resourceServerInsertSchema,
1549
- dt as resourceServerListSchema,
1550
- Ae as resourceServerOptionsSchema,
1551
- Ce as resourceServerSchema,
1552
- be as resourceServerScopeSchema,
1669
+ nt as openIDConfigurationSchema,
1670
+ Pe as organizationBrandingSchema,
1671
+ He as organizationEnabledConnectionSchema,
1672
+ xe as organizationInsertSchema,
1673
+ Ct as organizationSchema,
1674
+ Me as organizationTokenQuotaSchema,
1675
+ fe as pageBackgroundSchema,
1676
+ Nt as parseUserId,
1677
+ ge as passwordInsertSchema,
1678
+ st as passwordSchema,
1679
+ E as profileDataSchema,
1680
+ pt as promptSettingSchema,
1681
+ Ie as refreshTokenInsertSchema,
1682
+ gt as refreshTokenSchema,
1683
+ Te as resourceServerInsertSchema,
1684
+ ht as resourceServerListSchema,
1685
+ Oe as resourceServerOptionsSchema,
1686
+ Ne as resourceServerSchema,
1687
+ Ce as resourceServerScopeSchema,
1553
1688
  R as richTextComponentSchema,
1554
- Ue as roleInsertSchema,
1555
- St as roleListSchema,
1556
- Oe as rolePermissionInsertSchema,
1557
- gt as rolePermissionListSchema,
1558
- Te as rolePermissionSchema,
1559
- ut as rolePermissionWithDetailsListSchema,
1560
- Ne as rolePermissionWithDetailsSchema,
1561
- je as roleSchema,
1562
- pe as sessionInsertSchema,
1563
- nt as sessionSchema,
1564
- it as signingKeySchema,
1565
- pt as smsProviderSchema,
1566
- _t as smsSendParamsSchema,
1689
+ Fe as roleInsertSchema,
1690
+ It as roleListSchema,
1691
+ ye as rolePermissionInsertSchema,
1692
+ bt as rolePermissionListSchema,
1693
+ Re as rolePermissionSchema,
1694
+ Et as rolePermissionWithDetailsListSchema,
1695
+ Le as rolePermissionWithDetailsSchema,
1696
+ ve as roleSchema,
1697
+ ue as sessionInsertSchema,
1698
+ rt as sessionSchema,
1699
+ lt as signingKeySchema,
1700
+ mt as smsProviderSchema,
1701
+ ut as smsSendParamsSchema,
1567
1702
  M as startSchema,
1568
- k as stepNodeSchema,
1703
+ F as stepNodeSchema,
1569
1704
  X as tenantInsertSchema,
1570
1705
  V as tenantSchema,
1571
- At as tenantSettingsSchema,
1572
- Se as themeInsertSchema,
1573
- st as themeSchema,
1574
- at as tokenResponseSchema,
1575
- xe as totalsSchema,
1576
- b as userInsertSchema,
1577
- He as userOrganizationInsertSchema,
1578
- bt as userOrganizationSchema,
1579
- ye as userPermissionInsertSchema,
1580
- mt as userPermissionListSchema,
1581
- Re as userPermissionSchema,
1582
- ht as userPermissionWithDetailsListSchema,
1583
- Le as userPermissionWithDetailsSchema,
1584
- Ke as userResponseSchema,
1585
- De as userRoleInsertSchema,
1586
- Et as userRoleListSchema,
1587
- we as userRoleSchema,
1706
+ Tt as tenantSettingsSchema,
1707
+ Ae as themeInsertSchema,
1708
+ ct as themeSchema,
1709
+ _t as tokenResponseSchema,
1710
+ ze as totalsSchema,
1711
+ S as userInsertSchema,
1712
+ Ge as userOrganizationInsertSchema,
1713
+ Ot as userOrganizationSchema,
1714
+ De as userPermissionInsertSchema,
1715
+ ft as userPermissionListSchema,
1716
+ je as userPermissionSchema,
1717
+ St as userPermissionWithDetailsListSchema,
1718
+ we as userPermissionWithDetailsSchema,
1719
+ We as userResponseSchema,
1720
+ ke as userRoleInsertSchema,
1721
+ At as userRoleListSchema,
1722
+ Ue as userRoleSchema,
1588
1723
  A as userSchema,
1589
1724
  J as verificationMethodsSchema,
1590
- Ee as widgetSchema
1725
+ Se as widgetSchema
1591
1726
  };