@authhero/adapter-interfaces 1.4.1 → 1.5.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.
@@ -18,10 +18,10 @@ const s = e.object({
18
18
  runtime: e.string().max(50).optional(),
19
19
  dependencies: e.array(Y).optional(),
20
20
  secrets: e.array(Q).optional()
21
- }), jo = N.partial().extend({
21
+ }), Ro = N.partial().extend({
22
22
  status: e.enum(["draft", "built"]).optional(),
23
23
  deployed_at: e.string().optional()
24
- }), Ro = N.extend({
24
+ }), Do = N.extend({
25
25
  id: e.string(),
26
26
  tenant_id: e.string(),
27
27
  status: e.enum(["draft", "built"]).default("built"),
@@ -93,15 +93,15 @@ const s = e.object({
93
93
  hostname: e.string(),
94
94
  is_mobile: e.boolean().optional(),
95
95
  timestamp: e.string()
96
- }), Do = ie.extend({
96
+ }), Lo = ie.extend({
97
97
  id: e.string()
98
- }), Lo = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), vo = e.enum([
98
+ }), vo = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), ko = e.enum([
99
99
  "CREATE_USER",
100
100
  "GET_USER",
101
101
  "UPDATE_USER",
102
102
  "SEND_REQUEST",
103
103
  "SEND_EMAIL"
104
- ]), ko = e.enum(["VERIFY_EMAIL"]), ae = e.object({
104
+ ]), Uo = e.enum(["VERIFY_EMAIL"]), ae = e.object({
105
105
  require_mx_record: e.boolean().optional(),
106
106
  block_aliases: e.boolean().optional(),
107
107
  block_free_emails: e.boolean().optional(),
@@ -158,13 +158,13 @@ const s = e.object({
158
158
  actions: e.array(pe).optional().default([]).openapi({
159
159
  description: "The list of actions to execute in sequence"
160
160
  })
161
- }), Uo = _e.extend({
161
+ }), Fo = _e.extend({
162
162
  ...s.shape,
163
163
  id: e.string().openapi({
164
164
  description: "Unique identifier for the flow",
165
165
  example: "af_12tMpdJ3iek7svMyZkSh5M"
166
166
  })
167
- }), Fo = e.object({
167
+ }), xo = e.object({
168
168
  page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
169
169
  description: "The page number where 0 is the first page"
170
170
  }),
@@ -180,7 +180,7 @@ const s = e.object({
180
180
  q: e.string().optional().openapi({
181
181
  description: "A lucene query string used to filter the results"
182
182
  })
183
- }), xo = e.object({
183
+ }), Po = e.object({
184
184
  start: e.number(),
185
185
  limit: e.number(),
186
186
  length: e.number(),
@@ -286,9 +286,9 @@ const s = e.object({
286
286
  email: e.string().optional(),
287
287
  login_count: e.number().default(0),
288
288
  identities: e.array(ge).optional()
289
- }), Po = he.omit({
289
+ }), Mo = he.omit({
290
290
  registration_completed_at: !0
291
- }), Mo = w.extend({
291
+ }), Ho = w.extend({
292
292
  login_count: e.number(),
293
293
  multifactor: e.array(e.string()).optional(),
294
294
  last_ip: e.string().optional(),
@@ -474,7 +474,7 @@ const Ee = e.object({
474
474
  description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
475
475
  }),
476
476
  token_quota: e.record(e.any()).default({}).optional()
477
- }), Ho = e.object({
477
+ }), Go = e.object({
478
478
  created_at: e.string(),
479
479
  updated_at: e.string(),
480
480
  ...Ee.shape
@@ -510,7 +510,7 @@ const Ee = e.object({
510
510
  ...Se.shape,
511
511
  created_at: e.string().optional(),
512
512
  updated_at: e.string().optional()
513
- }), Go = e.array(Ae), m = e.object({
513
+ }), Bo = e.array(Ae), m = e.object({
514
514
  x: e.number(),
515
515
  y: e.number()
516
516
  });
@@ -708,7 +708,7 @@ const je = e.object({
708
708
  sdkSrc: e.string().optional(),
709
709
  sdk_src: e.string().optional()
710
710
  }).passthrough()
711
- }).passthrough(), Bo = Fe.omit({
711
+ }).passthrough(), Wo = Fe.omit({
712
712
  id: !0,
713
713
  created_at: !0,
714
714
  updated_at: !0
@@ -738,7 +738,7 @@ const xe = e.object({
738
738
  acr_values: e.string().optional(),
739
739
  // The following fields are not available in Auth0
740
740
  vendor_id: e.string().optional()
741
- }), Wo = e.object({
741
+ }), Ko = e.object({
742
742
  colors: e.object({
743
743
  primary: e.string(),
744
744
  page_background: e.object({
@@ -797,7 +797,7 @@ const xe = e.object({
797
797
  expires_at: e.string(),
798
798
  used_at: e.string().optional(),
799
799
  user_id: e.string().optional()
800
- }), Ko = e.object({
800
+ }), zo = e.object({
801
801
  ...Me.shape,
802
802
  created_at: e.string()
803
803
  }), He = e.object({
@@ -925,7 +925,7 @@ const xe = e.object({
925
925
  show_as_button: e.boolean().optional(),
926
926
  metadata: e.record(e.any()).optional(),
927
927
  is_system: e.boolean().optional()
928
- }), zo = e.object({
928
+ }), qo = e.object({
929
929
  id: e.string(),
930
930
  created_at: e.string().transform((t) => t === null ? "" : t),
931
931
  updated_at: e.string().transform((t) => t === null ? "" : t)
@@ -964,7 +964,7 @@ const xe = e.object({
964
964
  methods: e.array(We)
965
965
  }).optional(),
966
966
  tls_policy: e.string().optional()
967
- }), qo = Ke.extend({
967
+ }), Xo = Ke.extend({
968
968
  tenant_id: e.string()
969
969
  }), C = e.object({
970
970
  id: e.string(),
@@ -1233,7 +1233,7 @@ const xe = e.object({
1233
1233
  Et,
1234
1234
  St,
1235
1235
  At
1236
- ]), Xo = /* @__PURE__ */ new Set([
1236
+ ]), Vo = /* @__PURE__ */ new Set([
1237
1237
  "BOOLEAN",
1238
1238
  "CARDS",
1239
1239
  "CHOICE",
@@ -1247,7 +1247,7 @@ const xe = e.object({
1247
1247
  "TEL",
1248
1248
  "TEXT",
1249
1249
  "URL"
1250
- ]), Vo = e.object({
1250
+ ]), Yo = e.object({
1251
1251
  id: e.string(),
1252
1252
  type: e.literal("submit"),
1253
1253
  label: e.string(),
@@ -1332,7 +1332,7 @@ const xe = e.object({
1332
1332
  }).optional()
1333
1333
  }).openapi({
1334
1334
  description: "Schema for flow-based forms (matches Auth0 Forms structure)"
1335
- }), Yo = e.object({
1335
+ }), Qo = e.object({
1336
1336
  ...s.shape,
1337
1337
  ...Ot.shape,
1338
1338
  id: e.string()
@@ -1345,7 +1345,7 @@ const xe = e.object({
1345
1345
  text: e.string(),
1346
1346
  href: e.string(),
1347
1347
  linkText: e.string().optional()
1348
- }), Qo = e.object({
1348
+ }), Zo = e.object({
1349
1349
  /** Screen identifier for CSS targeting (e.g., 'identifier', 'enter-password', 'signup') */
1350
1350
  name: e.string().optional(),
1351
1351
  action: e.string(),
@@ -1358,13 +1358,13 @@ const xe = e.object({
1358
1358
  /** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
1359
1359
  footer: e.string().optional()
1360
1360
  });
1361
- function Zo(t) {
1361
+ function $o(t) {
1362
1362
  return t.category === "BLOCK";
1363
1363
  }
1364
- function $o(t) {
1364
+ function Jo(t) {
1365
1365
  return t.category === "WIDGET";
1366
1366
  }
1367
- function Jo(t) {
1367
+ function en(t) {
1368
1368
  return t.category === "FIELD";
1369
1369
  }
1370
1370
  const U = e.enum([
@@ -1393,7 +1393,7 @@ const U = e.enum([
1393
1393
  ]), M = e.enum([
1394
1394
  "ensure-username",
1395
1395
  "set-preferred-username"
1396
- ]), en = {
1396
+ ]), tn = {
1397
1397
  "ensure-username": {
1398
1398
  name: "Ensure Username",
1399
1399
  description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
@@ -1425,7 +1425,7 @@ const U = e.enum([
1425
1425
  ...c,
1426
1426
  trigger_id: P,
1427
1427
  code_id: e.string()
1428
- }), tn = e.union([
1428
+ }), on = e.union([
1429
1429
  jt,
1430
1430
  Rt,
1431
1431
  Dt,
@@ -1454,7 +1454,7 @@ const U = e.enum([
1454
1454
  ...s.shape,
1455
1455
  hook_id: e.string(),
1456
1456
  code_id: e.string()
1457
- }), on = e.union([
1457
+ }), nn = e.union([
1458
1458
  vt,
1459
1459
  kt,
1460
1460
  Ut,
@@ -1462,7 +1462,7 @@ const U = e.enum([
1462
1462
  ]), xt = e.object({
1463
1463
  code: e.string().max(1e5),
1464
1464
  secrets: e.record(e.string()).optional()
1465
- }), nn = xt.extend({
1465
+ }), an = xt.extend({
1466
1466
  id: e.string(),
1467
1467
  tenant_id: e.string(),
1468
1468
  ...s.shape
@@ -1482,7 +1482,7 @@ const U = e.enum([
1482
1482
  ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
1483
1483
  roles: e.array(e.string()).default([]).optional(),
1484
1484
  send_invitation_email: e.boolean().default(!0).optional()
1485
- }), an = e.object({
1485
+ }), sn = e.object({
1486
1486
  id: e.string(),
1487
1487
  organization_id: e.string().max(50),
1488
1488
  created_at: e.string().datetime(),
@@ -1507,9 +1507,9 @@ const U = e.enum([
1507
1507
  x5t: e.string().optional(),
1508
1508
  x5c: e.array(e.string()).optional(),
1509
1509
  use: e.enum(["sig", "enc"]).optional()
1510
- }), sn = e.object({
1511
- keys: e.array(Gt)
1512
1510
  }), rn = e.object({
1511
+ keys: e.array(Gt)
1512
+ }), ln = e.object({
1513
1513
  issuer: e.string(),
1514
1514
  authorization_endpoint: e.string(),
1515
1515
  token_endpoint: e.string(),
@@ -1533,6 +1533,9 @@ const U = e.enum([
1533
1533
  });
1534
1534
  var H = /* @__PURE__ */ ((t) => (t.PENDING = "pending", t.AUTHENTICATED = "authenticated", t.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", t.AWAITING_MFA = "awaiting_mfa", t.AWAITING_HOOK = "awaiting_hook", t.AWAITING_CONTINUATION = "awaiting_continuation", t.COMPLETED = "completed", t.FAILED = "failed", t.EXPIRED = "expired", t))(H || {});
1535
1535
  const Bt = e.nativeEnum(H), Wt = e.object({
1536
+ strategy: e.string(),
1537
+ strategy_type: e.string()
1538
+ }), Kt = e.object({
1536
1539
  csrf_token: e.string(),
1537
1540
  auth0Client: e.string().optional(),
1538
1541
  authParams: xe,
@@ -1551,18 +1554,21 @@ const Bt = e.nativeEnum(H), Wt = e.object({
1551
1554
  failure_reason: e.string().optional(),
1552
1555
  user_id: e.string().optional(),
1553
1556
  // Set once user is authenticated
1554
- auth_connection: e.string().optional()
1557
+ auth_connection: e.string().optional(),
1555
1558
  // The connection used to authenticate (may differ from primary user's connection)
1559
+ auth_strategy: Wt.optional(),
1560
+ authenticated_at: e.string().optional()
1561
+ // ISO timestamp persisted for audit/metadata; not used to reject resumed sessions
1556
1562
  }).openapi({
1557
1563
  description: "This represents a login sesion"
1558
- }), ln = e.object({
1559
- ...Wt.shape,
1564
+ }), cn = e.object({
1565
+ ...Kt.shape,
1560
1566
  id: e.string().openapi({
1561
1567
  description: "This is is used as the state in the universal login"
1562
1568
  }),
1563
1569
  created_at: e.string(),
1564
1570
  updated_at: e.string()
1565
- }), Kt = {
1571
+ }), zt = {
1566
1572
  // Network & System
1567
1573
  ACLS_SUMMARY: "acls_summary",
1568
1574
  ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
@@ -1734,24 +1740,24 @@ const Bt = e.nativeEnum(H), Wt = e.object({
1734
1740
  WARNING_DURING_LOGIN: "w",
1735
1741
  WARNING_SENDING_NOTIFICATION: "wn",
1736
1742
  WARNING_USER_MANAGEMENT: "wum"
1737
- }, zt = e.string().refine(
1738
- (t) => Object.values(Kt).includes(t),
1743
+ }, qt = e.string().refine(
1744
+ (t) => Object.values(zt).includes(t),
1739
1745
  { message: "Invalid log type" }
1740
- ), qt = e.object({
1746
+ ), Xt = e.object({
1741
1747
  name: e.string(),
1742
1748
  version: e.string(),
1743
1749
  env: e.object({
1744
1750
  node: e.string().optional()
1745
1751
  }).optional()
1746
- }), Xt = e.object({
1752
+ }), Vt = e.object({
1747
1753
  country_code: e.string().length(2),
1748
1754
  city_name: e.string(),
1749
1755
  latitude: e.string(),
1750
1756
  longitude: e.string(),
1751
1757
  time_zone: e.string(),
1752
1758
  continent_code: e.string()
1753
- }), Vt = e.object({
1754
- type: zt,
1759
+ }), Yt = e.object({
1760
+ type: qt,
1755
1761
  date: e.string(),
1756
1762
  description: e.string().optional(),
1757
1763
  ip: e.string().optional(),
@@ -1770,19 +1776,19 @@ const Bt = e.nativeEnum(H), Wt = e.object({
1770
1776
  strategy: e.string().optional(),
1771
1777
  strategy_type: e.string().optional(),
1772
1778
  hostname: e.string().optional(),
1773
- auth0_client: qt.optional(),
1779
+ auth0_client: Xt.optional(),
1774
1780
  log_id: e.string().optional(),
1775
- location_info: Xt.optional()
1776
- }), cn = e.object({
1777
- ...Vt.shape,
1781
+ location_info: Vt.optional()
1782
+ }), pn = e.object({
1783
+ ...Yt.shape,
1778
1784
  log_id: e.string()
1779
- }), Yt = e.object({
1785
+ }), Qt = e.object({
1780
1786
  id: e.string().optional(),
1781
1787
  user_id: e.string(),
1782
1788
  password: e.string(),
1783
1789
  algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
1784
1790
  is_current: e.boolean().default(!0)
1785
- }), pn = Yt.extend({
1791
+ }), _n = Qt.extend({
1786
1792
  id: e.string(),
1787
1793
  created_at: e.string(),
1788
1794
  updated_at: e.string()
@@ -1793,7 +1799,7 @@ const Bt = e.nativeEnum(H), Wt = e.object({
1793
1799
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
1794
1800
  last_ip: e.string().describe("Last IP address from which this user logged in"),
1795
1801
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
1796
- }), Qt = e.object({
1802
+ }), Zt = e.object({
1797
1803
  id: e.string(),
1798
1804
  revoked_at: e.string().optional(),
1799
1805
  used_at: e.string().optional(),
@@ -1805,13 +1811,13 @@ const Bt = e.nativeEnum(H), Wt = e.object({
1805
1811
  "Metadata related to the device used in the session"
1806
1812
  ),
1807
1813
  clients: e.array(e.string()).describe("List of client details for the session")
1808
- }), _n = e.object({
1814
+ }), dn = e.object({
1809
1815
  created_at: e.string(),
1810
1816
  updated_at: e.string(),
1811
1817
  authenticated_at: e.string(),
1812
1818
  last_interaction_at: e.string(),
1813
- ...Qt.shape
1814
- }), dn = e.object({
1819
+ ...Zt.shape
1820
+ }), gn = e.object({
1815
1821
  kid: e.string().openapi({ description: "The key id of the signing key" }),
1816
1822
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
1817
1823
  fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
@@ -1836,7 +1842,7 @@ const Bt = e.nativeEnum(H), Wt = e.object({
1836
1842
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({
1837
1843
  description: "The type of the signing key"
1838
1844
  })
1839
- }), Zt = e.object({
1845
+ }), $t = e.object({
1840
1846
  id: e.string().optional(),
1841
1847
  // Basic settings
1842
1848
  audience: e.string(),
@@ -1991,14 +1997,14 @@ const Bt = e.nativeEnum(H), Wt = e.object({
1991
1997
  message: e.string().optional()
1992
1998
  }).optional()
1993
1999
  }).optional()
1994
- }), gn = e.object({
2000
+ }), un = e.object({
1995
2001
  created_at: e.string().nullable().transform((t) => t ?? ""),
1996
2002
  updated_at: e.string().nullable().transform((t) => t ?? ""),
1997
- ...Zt.shape,
2003
+ ...$t.shape,
1998
2004
  id: e.string()
1999
2005
  });
2000
- var $t = /* @__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))($t || {});
2001
- const un = e.object({
2006
+ var Jt = /* @__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))(Jt || {});
2007
+ const mn = e.object({
2002
2008
  access_token: e.string(),
2003
2009
  id_token: e.string().optional(),
2004
2010
  scope: e.string().optional(),
@@ -2011,7 +2017,7 @@ e.object({
2011
2017
  code: e.string(),
2012
2018
  state: e.string().optional()
2013
2019
  });
2014
- const Jt = e.object({
2020
+ const eo = e.object({
2015
2021
  button_border_radius: e.number(),
2016
2022
  button_border_weight: e.number(),
2017
2023
  buttons_style: e.enum(["pill", "rounded", "sharp"]),
@@ -2021,7 +2027,7 @@ const Jt = e.object({
2021
2027
  show_widget_shadow: e.boolean(),
2022
2028
  widget_border_weight: e.number(),
2023
2029
  widget_corner_radius: e.number()
2024
- }), eo = e.object({
2030
+ }), to = e.object({
2025
2031
  base_focus_color: e.string(),
2026
2032
  base_hover_color: e.string(),
2027
2033
  body_text: e.string(),
@@ -2044,7 +2050,7 @@ const Jt = e.object({
2044
2050
  }), u = e.object({
2045
2051
  bold: e.boolean(),
2046
2052
  size: e.number()
2047
- }), to = e.object({
2053
+ }), oo = e.object({
2048
2054
  body_text: u,
2049
2055
  buttons_text: u,
2050
2056
  font_url: e.string(),
@@ -2054,31 +2060,31 @@ const Jt = e.object({
2054
2060
  reference_text_size: e.number(),
2055
2061
  subtitle: u,
2056
2062
  title: u
2057
- }), oo = e.object({
2063
+ }), no = e.object({
2058
2064
  background_color: e.string(),
2059
2065
  background_image_url: e.string(),
2060
2066
  page_layout: e.enum(["center", "left", "right"])
2061
- }), no = e.object({
2067
+ }), io = e.object({
2062
2068
  header_text_alignment: e.enum(["center", "left", "right"]),
2063
2069
  logo_height: e.number(),
2064
2070
  logo_position: e.enum(["center", "left", "none", "right"]),
2065
2071
  logo_url: e.string(),
2066
2072
  social_buttons_layout: e.enum(["bottom", "top"])
2067
- }), io = e.object({
2068
- borders: Jt,
2069
- colors: eo,
2073
+ }), ao = e.object({
2074
+ borders: eo,
2075
+ colors: to,
2070
2076
  displayName: e.string(),
2071
- fonts: to,
2072
- page_background: oo,
2073
- widget: no
2074
- }), mn = io.extend({
2077
+ fonts: oo,
2078
+ page_background: no,
2079
+ widget: io
2080
+ }), hn = ao.extend({
2075
2081
  themeId: e.string()
2076
- }), hn = e.object({
2082
+ }), bn = e.object({
2077
2083
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
2078
2084
  identifier_first: e.boolean().default(!0),
2079
2085
  password_first: e.boolean().default(!1),
2080
2086
  webauthn_platform_first_factor: e.boolean()
2081
- }), bn = e.object({
2087
+ }), fn = e.object({
2082
2088
  name: e.string(),
2083
2089
  enabled: e.boolean().optional().default(!0),
2084
2090
  default_from_address: e.string().optional(),
@@ -2108,7 +2114,7 @@ const Jt = e.object({
2108
2114
  })
2109
2115
  ]),
2110
2116
  settings: e.object({}).optional()
2111
- }), ao = e.object({
2117
+ }), so = e.object({
2112
2118
  // The actual refresh token value (primary key).
2113
2119
  id: e.string(),
2114
2120
  // Link to the login session
@@ -2129,21 +2135,21 @@ const Jt = e.object({
2129
2135
  })
2130
2136
  ),
2131
2137
  rotating: e.boolean()
2132
- }), fn = e.object({
2138
+ }), En = e.object({
2133
2139
  // When the refresh token record was created.
2134
2140
  created_at: e.string(),
2135
2141
  // Spread in the rest of the refresh token properties.
2136
- ...ao.shape
2137
- }), En = e.object({
2142
+ ...so.shape
2143
+ }), Sn = e.object({
2138
2144
  to: e.string(),
2139
2145
  message: e.string()
2140
- }), Sn = e.object({
2146
+ }), An = e.object({
2141
2147
  name: e.string(),
2142
2148
  options: e.object({})
2143
- }), so = e.object({
2149
+ }), ro = e.object({
2144
2150
  value: e.string(),
2145
2151
  description: e.string().optional()
2146
- }), ro = e.object({
2152
+ }), lo = e.object({
2147
2153
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
2148
2154
  enforce_policies: e.boolean().optional(),
2149
2155
  allow_skipping_userinfo: e.boolean().optional(),
@@ -2153,11 +2159,11 @@ const Jt = e.object({
2153
2159
  mtls: e.object({
2154
2160
  bound_access_tokens: e.boolean().optional()
2155
2161
  }).optional()
2156
- }), lo = e.object({
2162
+ }), co = e.object({
2157
2163
  id: e.string().optional(),
2158
2164
  name: e.string(),
2159
2165
  identifier: e.string(),
2160
- scopes: e.array(so).optional(),
2166
+ scopes: e.array(ro).optional(),
2161
2167
  signing_alg: e.string().optional(),
2162
2168
  signing_secret: e.string().optional(),
2163
2169
  token_lifetime: e.number().default(86400),
@@ -2165,30 +2171,30 @@ const Jt = e.object({
2165
2171
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
2166
2172
  allow_offline_access: e.boolean().optional(),
2167
2173
  verificationKey: e.string().optional(),
2168
- options: ro.optional(),
2174
+ options: lo.optional(),
2169
2175
  is_system: e.boolean().optional(),
2170
2176
  metadata: e.record(e.any()).optional()
2171
- }), co = e.object({
2172
- ...lo.shape,
2177
+ }), po = e.object({
2178
+ ...co.shape,
2173
2179
  created_at: e.string().optional(),
2174
2180
  updated_at: e.string().optional()
2175
- }), An = e.array(co), po = e.object({
2181
+ }), yn = e.array(po), _o = e.object({
2176
2182
  role_id: e.string(),
2177
2183
  resource_server_identifier: e.string(),
2178
2184
  permission_name: e.string()
2179
- }), _o = e.object({
2180
- ...po.shape,
2185
+ }), go = e.object({
2186
+ ..._o.shape,
2181
2187
  created_at: e.string()
2182
- }), yn = e.array(_o), go = e.object({
2188
+ }), In = e.array(go), uo = e.object({
2183
2189
  user_id: e.string(),
2184
2190
  resource_server_identifier: e.string(),
2185
2191
  permission_name: e.string(),
2186
2192
  organization_id: e.string().optional()
2187
- }), uo = e.object({
2188
- ...go.shape,
2193
+ }), mo = e.object({
2194
+ ...uo.shape,
2189
2195
  tenant_id: e.string(),
2190
2196
  created_at: e.string().optional()
2191
- }), In = e.array(uo), mo = e.object({
2197
+ }), Cn = e.array(mo), ho = e.object({
2192
2198
  user_id: e.string(),
2193
2199
  resource_server_identifier: e.string(),
2194
2200
  resource_server_name: e.string(),
@@ -2196,17 +2202,17 @@ const Jt = e.object({
2196
2202
  description: e.string().nullable().optional(),
2197
2203
  created_at: e.string().optional(),
2198
2204
  organization_id: e.string().optional()
2199
- }), Cn = e.array(
2200
- mo
2201
- ), ho = e.object({
2205
+ }), Tn = e.array(
2206
+ ho
2207
+ ), bo = e.object({
2202
2208
  user_id: e.string(),
2203
2209
  role_id: e.string(),
2204
2210
  organization_id: e.string().optional()
2205
- }), bo = e.object({
2206
- ...ho.shape,
2211
+ }), fo = e.object({
2212
+ ...bo.shape,
2207
2213
  tenant_id: e.string(),
2208
2214
  created_at: e.string().optional()
2209
- }), Tn = e.array(bo), fo = e.object({
2215
+ }), On = e.array(fo), Eo = e.object({
2210
2216
  id: e.string().optional().openapi({
2211
2217
  description: "The unique identifier of the role. If not provided, one will be generated."
2212
2218
  }),
@@ -2220,13 +2226,13 @@ const Jt = e.object({
2220
2226
  metadata: e.record(e.any()).optional().openapi({
2221
2227
  description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."
2222
2228
  })
2223
- }), Eo = fo.extend({
2229
+ }), So = Eo.extend({
2224
2230
  id: e.string().openapi({
2225
2231
  description: "The unique identifier of the role"
2226
2232
  }),
2227
2233
  created_at: e.string().optional(),
2228
2234
  updated_at: e.string().optional()
2229
- }), On = e.array(Eo), So = e.object({
2235
+ }), Nn = e.array(So), Ao = e.object({
2230
2236
  logo_url: e.string().optional().openapi({
2231
2237
  description: "URL of the organization's logo"
2232
2238
  }),
@@ -2238,7 +2244,7 @@ const Jt = e.object({
2238
2244
  description: "Page background color in hex format (e.g., #FFFFFF)"
2239
2245
  })
2240
2246
  }).optional()
2241
- }).optional(), Ao = e.object({
2247
+ }).optional(), yo = e.object({
2242
2248
  connection_id: e.string().openapi({
2243
2249
  description: "ID of the connection"
2244
2250
  }),
@@ -2251,7 +2257,7 @@ const Jt = e.object({
2251
2257
  is_signup_enabled: e.boolean().default(!0).openapi({
2252
2258
  description: "Whether signup is enabled for this connection"
2253
2259
  })
2254
- }), yo = e.object({
2260
+ }), Io = e.object({
2255
2261
  client_credentials: e.object({
2256
2262
  enforce: e.boolean().default(!1).openapi({
2257
2263
  description: "Whether to enforce token quota limits"
@@ -2263,7 +2269,7 @@ const Jt = e.object({
2263
2269
  description: "Maximum tokens per hour (0 = unlimited)"
2264
2270
  })
2265
2271
  }).optional()
2266
- }).optional(), Io = e.object({
2272
+ }).optional(), Co = e.object({
2267
2273
  id: e.string().optional(),
2268
2274
  name: e.string().min(1).regex(/^[a-z0-9_-]+$/, {
2269
2275
  message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"
@@ -2273,34 +2279,34 @@ const Jt = e.object({
2273
2279
  display_name: e.string().optional().openapi({
2274
2280
  description: "The display name of the organization"
2275
2281
  }),
2276
- branding: So,
2282
+ branding: Ao,
2277
2283
  metadata: e.record(e.any()).default({}).optional().openapi({
2278
2284
  description: "Custom metadata for the organization"
2279
2285
  }),
2280
- enabled_connections: e.array(Ao).default([]).optional().openapi({
2286
+ enabled_connections: e.array(yo).default([]).optional().openapi({
2281
2287
  description: "List of enabled connections for the organization"
2282
2288
  }),
2283
- token_quota: yo
2284
- }), Nn = e.object({
2285
- ...Io.shape,
2289
+ token_quota: Io
2290
+ }), wn = e.object({
2291
+ ...Co.shape,
2286
2292
  ...s.shape,
2287
2293
  id: e.string(),
2288
2294
  // Override name to be lenient when reading from database (to support existing uppercase names)
2289
2295
  name: e.string().min(1).openapi({
2290
2296
  description: "The name of the organization"
2291
2297
  })
2292
- }), Co = e.object({
2298
+ }), To = e.object({
2293
2299
  user_id: e.string().openapi({
2294
2300
  description: "ID of the user"
2295
2301
  }),
2296
2302
  organization_id: e.string().openapi({
2297
2303
  description: "ID of the organization"
2298
2304
  })
2299
- }), wn = e.object({
2300
- ...Co.shape,
2305
+ }), jn = e.object({
2306
+ ...To.shape,
2301
2307
  ...s.shape,
2302
2308
  id: e.string()
2303
- }), jn = e.object({
2309
+ }), Rn = e.object({
2304
2310
  // Session settings
2305
2311
  idle_session_lifetime: e.number().default(72),
2306
2312
  session_lifetime: e.number().default(168),
@@ -2400,7 +2406,7 @@ const Jt = e.object({
2400
2406
  message: e.string().optional()
2401
2407
  }).optional()
2402
2408
  }).optional()
2403
- }), Rn = e.object({
2409
+ }), Dn = e.object({
2404
2410
  date: e.string().openapi({
2405
2411
  description: "Date these events occurred in ISO 8601 format",
2406
2412
  example: "2025-12-19"
@@ -2425,10 +2431,10 @@ const Jt = e.object({
2425
2431
  description: "Approximate date and time the first event occurred in ISO 8601 format",
2426
2432
  example: "2025-12-19T00:00:00.000Z"
2427
2433
  })
2428
- }), Dn = e.number().openapi({
2434
+ }), Ln = e.number().openapi({
2429
2435
  description: "Number of active users in the last 30 days",
2430
2436
  example: 1234
2431
- }), To = e.enum([
2437
+ }), Oo = e.enum([
2432
2438
  "login",
2433
2439
  "login-id",
2434
2440
  "login-password",
@@ -2457,17 +2463,17 @@ const Jt = e.object({
2457
2463
  "custom-form",
2458
2464
  "login-passwordless",
2459
2465
  "mfa-login-options"
2460
- ]), Oo = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2466
+ ]), No = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2461
2467
  type: "object",
2462
2468
  additionalProperties: {
2463
2469
  type: "object",
2464
2470
  additionalProperties: { type: "string" }
2465
2471
  }
2466
- }), Ln = e.object({
2467
- prompt: To,
2472
+ }), vn = e.object({
2473
+ prompt: Oo,
2468
2474
  language: e.string(),
2469
- custom_text: Oo
2470
- }), vn = {
2475
+ custom_text: No
2476
+ }), kn = {
2471
2477
  EMAIL: "email",
2472
2478
  SMS: "sms",
2473
2479
  USERNAME_PASSWORD: "Username-Password-Authentication",
@@ -2482,11 +2488,11 @@ const Jt = e.object({
2482
2488
  SAMLP: "samlp",
2483
2489
  WAAD: "waad",
2484
2490
  ADFS: "adfs"
2485
- }, kn = {
2491
+ }, Un = {
2486
2492
  DATABASE: "database",
2487
2493
  SOCIAL: "social",
2488
2494
  PASSWORDLESS: "passwordless"
2489
- }, No = e.enum([
2495
+ }, wo = e.enum([
2490
2496
  "phone",
2491
2497
  "totp",
2492
2498
  "email",
@@ -2496,7 +2502,7 @@ const Jt = e.object({
2496
2502
  "passkey"
2497
2503
  ]), B = e.object({
2498
2504
  user_id: e.string(),
2499
- type: No,
2505
+ type: wo,
2500
2506
  // Phone-specific
2501
2507
  phone_number: e.string().optional(),
2502
2508
  // TOTP-specific
@@ -2530,19 +2536,19 @@ function W(t, o) {
2530
2536
  path: ["public_key"]
2531
2537
  }));
2532
2538
  }
2533
- const Un = B.superRefine(W), Fn = e.object({
2539
+ const Fn = B.superRefine(W), xn = e.object({
2534
2540
  ...B.shape,
2535
2541
  id: e.string(),
2536
2542
  created_at: e.string(),
2537
2543
  updated_at: e.string()
2538
2544
  }).superRefine(W);
2539
- function xn(t) {
2545
+ function Pn(t) {
2540
2546
  const [o, i] = t.split("|");
2541
2547
  if (!o || !i)
2542
2548
  throw new Error(`Invalid user_id: ${t}`);
2543
2549
  return { connection: o, id: i };
2544
2550
  }
2545
- function Pn(t) {
2551
+ function Mn(t) {
2546
2552
  const {
2547
2553
  primary: o,
2548
2554
  secondaries: i,
@@ -2583,10 +2589,10 @@ function Pn(t) {
2583
2589
  };
2584
2590
  return new Proxy(o, E);
2585
2591
  }
2586
- function Mn(t) {
2592
+ function Hn(t) {
2587
2593
  return t;
2588
2594
  }
2589
- function Hn(t) {
2595
+ function Gn(t) {
2590
2596
  var E, p, a, _, d, S, g, r, h, A, b, y;
2591
2597
  const o = t == null ? void 0 : t.options;
2592
2598
  if (!o)
@@ -2614,180 +2620,181 @@ function Hn(t) {
2614
2620
  };
2615
2621
  }
2616
2622
  export {
2617
- vo as Auth0ActionEnum,
2618
- qt as Auth0Client,
2623
+ ko as Auth0ActionEnum,
2624
+ Xt as Auth0Client,
2619
2625
  L as AuthorizationResponseMode,
2620
2626
  D as AuthorizationResponseType,
2621
2627
  v as CodeChallengeMethod,
2622
2628
  R as ComponentCategory,
2623
2629
  j as ComponentType,
2624
- ko as EmailActionEnum,
2625
- Xo as FORM_FIELD_TYPES,
2626
- Lo as FlowActionTypeEnum,
2627
- $t as GrantType,
2628
- Xt as LocationInfo,
2629
- Kt as LogTypes,
2630
+ Uo as EmailActionEnum,
2631
+ Vo as FORM_FIELD_TYPES,
2632
+ vo as FlowActionTypeEnum,
2633
+ Jt as GrantType,
2634
+ Vt as LocationInfo,
2635
+ zt as LogTypes,
2630
2636
  H as LoginSessionState,
2631
2637
  we as NodeType,
2632
2638
  le as RedirectTargetEnum,
2633
- vn as Strategy,
2634
- kn as StrategyType,
2639
+ kn as Strategy,
2640
+ Un as StrategyType,
2635
2641
  Y as actionDependencySchema,
2636
2642
  N as actionInsertSchema,
2637
2643
  De as actionNodeSchema,
2638
- Ro as actionSchema,
2644
+ Do as actionSchema,
2639
2645
  Q as actionSecretSchema,
2640
2646
  V as actionTriggerSchema,
2641
- jo as actionUpdateSchema,
2642
- Dn as activeUsersResponseSchema,
2647
+ Ro as actionUpdateSchema,
2648
+ Ln as activeUsersResponseSchema,
2643
2649
  $ as actorSchema,
2644
2650
  ue as addressSchema,
2645
2651
  Z as auditCategorySchema,
2646
2652
  ie as auditEventInsertSchema,
2647
- Do as auditEventSchema,
2653
+ Lo as auditEventSchema,
2648
2654
  ne as auth0ClientSchema,
2649
- Bo as auth0FlowInsertSchema,
2655
+ Wo as auth0FlowInsertSchema,
2650
2656
  Fe as auth0FlowSchema,
2651
- Fo as auth0QuerySchema,
2657
+ xo as auth0QuerySchema,
2652
2658
  se as auth0UpdateUserActionSchema,
2653
- Po as auth0UserResponseSchema,
2659
+ Mo as auth0UserResponseSchema,
2654
2660
  xe as authParamsSchema,
2655
- Un as authenticationMethodInsertSchema,
2656
- Fn as authenticationMethodSchema,
2657
- No as authenticationMethodTypeSchema,
2661
+ Fn as authenticationMethodInsertSchema,
2662
+ xn as authenticationMethodSchema,
2663
+ wo as authenticationMethodTypeSchema,
2658
2664
  w as baseUserSchema,
2659
2665
  Et as blockComponentSchema,
2660
- Jt as bordersSchema,
2661
- Wo as brandingSchema,
2666
+ eo as bordersSchema,
2667
+ Ko as brandingSchema,
2662
2668
  Ie as buttonComponentSchema,
2663
2669
  Se as clientGrantInsertSchema,
2664
- Go as clientGrantListSchema,
2670
+ Bo as clientGrantListSchema,
2665
2671
  Ae as clientGrantSchema,
2666
2672
  Ee as clientInsertSchema,
2667
- Ho as clientSchema,
2673
+ Go as clientSchema,
2668
2674
  Me as codeInsertSchema,
2669
- Ko as codeSchema,
2675
+ zo as codeSchema,
2670
2676
  Pe as codeTypeSchema,
2671
- eo as colorsSchema,
2677
+ to as colorsSchema,
2672
2678
  Nt as componentMessageSchema,
2673
2679
  Ne as componentSchema,
2674
2680
  Ge as connectionInsertSchema,
2675
2681
  He as connectionOptionsSchema,
2676
- zo as connectionSchema,
2682
+ qo as connectionSchema,
2677
2683
  m as coordinatesSchema,
2678
- Pn as createPassthroughAdapter,
2679
- Mn as createWriteOnlyAdapter,
2684
+ Mn as createPassthroughAdapter,
2685
+ Hn as createWriteOnlyAdapter,
2680
2686
  Be as customDomainInsertSchema,
2681
2687
  Ke as customDomainSchema,
2682
- qo as customDomainWithTenantIdSchema,
2683
- Ln as customTextEntrySchema,
2684
- Oo as customTextSchema,
2685
- Rn as dailyStatsSchema,
2686
- bn as emailProviderSchema,
2688
+ Xo as customDomainWithTenantIdSchema,
2689
+ vn as customTextEntrySchema,
2690
+ No as customTextSchema,
2691
+ Dn as dailyStatsSchema,
2692
+ fn as emailProviderSchema,
2687
2693
  ae as emailVerificationRulesSchema,
2688
2694
  re as emailVerifyActionSchema,
2689
2695
  Ue as endingSchema,
2690
2696
  At as fieldComponentSchema,
2691
2697
  pe as flowActionStepSchema,
2692
2698
  _e as flowInsertSchema,
2693
- Uo as flowSchema,
2699
+ Fo as flowSchema,
2694
2700
  Te as flowsFieldComponentSchema,
2695
2701
  Re as flowsFlowNodeSchema,
2696
2702
  je as flowsStepNodeSchema,
2697
2703
  u as fontDetailsSchema,
2698
- to as fontsSchema,
2699
- Vo as formControlSchema,
2704
+ oo as fontsSchema,
2705
+ Yo as formControlSchema,
2700
2706
  Ot as formInsertSchema,
2701
2707
  k as formNodeComponentDefinition,
2702
2708
  Tt as formNodeSchema,
2703
- Yo as formSchema,
2709
+ Qo as formSchema,
2704
2710
  Oe as genericComponentSchema,
2705
2711
  Le as genericNodeSchema,
2706
- Hn as getConnectionIdentifierConfig,
2712
+ Gn as getConnectionIdentifierConfig,
2707
2713
  xt as hookCodeInsertSchema,
2708
- nn as hookCodeSchema,
2709
- tn as hookInsertSchema,
2710
- on as hookSchema,
2714
+ an as hookCodeSchema,
2715
+ on as hookInsertSchema,
2716
+ nn as hookSchema,
2711
2717
  M as hookTemplateId,
2712
- en as hookTemplates,
2718
+ tn as hookTemplates,
2713
2719
  ge as identitySchema,
2714
2720
  Ht as inviteInsertSchema,
2715
- an as inviteSchema,
2721
+ sn as inviteSchema,
2716
2722
  Mt as inviteeSchema,
2717
2723
  Pt as inviterSchema,
2718
- Zo as isBlockComponent,
2719
- Jo as isFieldComponent,
2720
- $o as isWidgetComponent,
2721
- sn as jwksKeySchema,
2724
+ $o as isBlockComponent,
2725
+ en as isFieldComponent,
2726
+ Jo as isWidgetComponent,
2727
+ rn as jwksKeySchema,
2722
2728
  Gt as jwksSchema,
2723
2729
  Ce as legalComponentSchema,
2724
2730
  oe as locationInfoSchema,
2725
- Vt as logInsertSchema,
2726
- cn as logSchema,
2727
- Wt as loginSessionInsertSchema,
2728
- ln as loginSessionSchema,
2731
+ Yt as logInsertSchema,
2732
+ pn as logSchema,
2733
+ Wt as loginSessionAuthStrategySchema,
2734
+ Kt as loginSessionInsertSchema,
2735
+ cn as loginSessionSchema,
2729
2736
  Bt as loginSessionStateSchema,
2730
2737
  ve as nodeSchema,
2731
- rn as openIDConfigurationSchema,
2732
- So as organizationBrandingSchema,
2733
- Ao as organizationEnabledConnectionSchema,
2734
- Io as organizationInsertSchema,
2735
- Nn as organizationSchema,
2736
- yo as organizationTokenQuotaSchema,
2737
- oo as pageBackgroundSchema,
2738
- xn as parseUserId,
2739
- Yt as passwordInsertSchema,
2740
- pn as passwordSchema,
2738
+ ln as openIDConfigurationSchema,
2739
+ Ao as organizationBrandingSchema,
2740
+ yo as organizationEnabledConnectionSchema,
2741
+ Co as organizationInsertSchema,
2742
+ wn as organizationSchema,
2743
+ Io as organizationTokenQuotaSchema,
2744
+ no as pageBackgroundSchema,
2745
+ Pn as parseUserId,
2746
+ Qt as passwordInsertSchema,
2747
+ _n as passwordSchema,
2741
2748
  de as profileDataSchema,
2742
- To as promptScreenSchema,
2743
- hn as promptSettingSchema,
2749
+ Oo as promptScreenSchema,
2750
+ bn as promptSettingSchema,
2744
2751
  ce as redirectActionSchema,
2745
- ao as refreshTokenInsertSchema,
2746
- fn as refreshTokenSchema,
2752
+ so as refreshTokenInsertSchema,
2753
+ En as refreshTokenSchema,
2747
2754
  ee as requestContextSchema,
2748
- lo as resourceServerInsertSchema,
2749
- An as resourceServerListSchema,
2750
- ro as resourceServerOptionsSchema,
2751
- co as resourceServerSchema,
2752
- so as resourceServerScopeSchema,
2755
+ co as resourceServerInsertSchema,
2756
+ yn as resourceServerListSchema,
2757
+ lo as resourceServerOptionsSchema,
2758
+ po as resourceServerSchema,
2759
+ ro as resourceServerScopeSchema,
2753
2760
  te as responseContextSchema,
2754
2761
  ye as richTextComponentSchema,
2755
- fo as roleInsertSchema,
2756
- On as roleListSchema,
2757
- po as rolePermissionInsertSchema,
2758
- yn as rolePermissionListSchema,
2759
- _o as rolePermissionSchema,
2760
- Eo as roleSchema,
2762
+ Eo as roleInsertSchema,
2763
+ Nn as roleListSchema,
2764
+ _o as rolePermissionInsertSchema,
2765
+ In as rolePermissionListSchema,
2766
+ go as rolePermissionSchema,
2767
+ So as roleSchema,
2761
2768
  wt as screenLinkSchema,
2762
- Qt as sessionInsertSchema,
2763
- _n as sessionSchema,
2764
- dn as signingKeySchema,
2765
- Sn as smsProviderSchema,
2766
- En as smsSendParamsSchema,
2769
+ Zt as sessionInsertSchema,
2770
+ dn as sessionSchema,
2771
+ gn as signingKeySchema,
2772
+ An as smsProviderSchema,
2773
+ Sn as smsSendParamsSchema,
2767
2774
  ke as startSchema,
2768
2775
  J as targetSchema,
2769
- Zt as tenantInsertSchema,
2770
- gn as tenantSchema,
2771
- jn as tenantSettingsSchema,
2772
- io as themeInsertSchema,
2773
- mn as themeSchema,
2774
- un as tokenResponseSchema,
2775
- xo as totalsSchema,
2776
- Qo as uiScreenSchema,
2776
+ $t as tenantInsertSchema,
2777
+ un as tenantSchema,
2778
+ Rn as tenantSettingsSchema,
2779
+ ao as themeInsertSchema,
2780
+ hn as themeSchema,
2781
+ mn as tokenResponseSchema,
2782
+ Po as totalsSchema,
2783
+ Zo as uiScreenSchema,
2777
2784
  me as userInsertSchema,
2778
- Co as userOrganizationInsertSchema,
2779
- wn as userOrganizationSchema,
2780
- go as userPermissionInsertSchema,
2781
- In as userPermissionListSchema,
2782
- uo as userPermissionSchema,
2783
- Cn as userPermissionWithDetailsListSchema,
2784
- mo as userPermissionWithDetailsSchema,
2785
- Mo as userResponseSchema,
2786
- ho as userRoleInsertSchema,
2787
- Tn as userRoleListSchema,
2788
- bo as userRoleSchema,
2785
+ To as userOrganizationInsertSchema,
2786
+ jn as userOrganizationSchema,
2787
+ uo as userPermissionInsertSchema,
2788
+ Cn as userPermissionListSchema,
2789
+ mo as userPermissionSchema,
2790
+ Tn as userPermissionWithDetailsListSchema,
2791
+ ho as userPermissionWithDetailsSchema,
2792
+ Ho as userResponseSchema,
2793
+ bo as userRoleInsertSchema,
2794
+ On as userRoleListSchema,
2795
+ fo as userRoleSchema,
2789
2796
  he as userSchema,
2790
2797
  We as verificationMethodsSchema,
2791
2798
  St as widgetComponentSchema,
2792
- no as widgetSchema
2799
+ io as widgetSchema
2793
2800
  };