@authhero/adapter-interfaces 1.4.1 → 1.6.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,23 @@ 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(),
2141
+ // When the token was explicitly revoked (null = still active).
2142
+ revoked_at: e.string().optional(),
2135
2143
  // Spread in the rest of the refresh token properties.
2136
- ...ao.shape
2137
- }), En = e.object({
2144
+ ...so.shape
2145
+ }), Sn = e.object({
2138
2146
  to: e.string(),
2139
2147
  message: e.string()
2140
- }), Sn = e.object({
2148
+ }), An = e.object({
2141
2149
  name: e.string(),
2142
2150
  options: e.object({})
2143
- }), so = e.object({
2151
+ }), ro = e.object({
2144
2152
  value: e.string(),
2145
2153
  description: e.string().optional()
2146
- }), ro = e.object({
2154
+ }), lo = e.object({
2147
2155
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
2148
2156
  enforce_policies: e.boolean().optional(),
2149
2157
  allow_skipping_userinfo: e.boolean().optional(),
@@ -2153,11 +2161,11 @@ const Jt = e.object({
2153
2161
  mtls: e.object({
2154
2162
  bound_access_tokens: e.boolean().optional()
2155
2163
  }).optional()
2156
- }), lo = e.object({
2164
+ }), co = e.object({
2157
2165
  id: e.string().optional(),
2158
2166
  name: e.string(),
2159
2167
  identifier: e.string(),
2160
- scopes: e.array(so).optional(),
2168
+ scopes: e.array(ro).optional(),
2161
2169
  signing_alg: e.string().optional(),
2162
2170
  signing_secret: e.string().optional(),
2163
2171
  token_lifetime: e.number().default(86400),
@@ -2165,30 +2173,30 @@ const Jt = e.object({
2165
2173
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
2166
2174
  allow_offline_access: e.boolean().optional(),
2167
2175
  verificationKey: e.string().optional(),
2168
- options: ro.optional(),
2176
+ options: lo.optional(),
2169
2177
  is_system: e.boolean().optional(),
2170
2178
  metadata: e.record(e.any()).optional()
2171
- }), co = e.object({
2172
- ...lo.shape,
2179
+ }), po = e.object({
2180
+ ...co.shape,
2173
2181
  created_at: e.string().optional(),
2174
2182
  updated_at: e.string().optional()
2175
- }), An = e.array(co), po = e.object({
2183
+ }), yn = e.array(po), _o = e.object({
2176
2184
  role_id: e.string(),
2177
2185
  resource_server_identifier: e.string(),
2178
2186
  permission_name: e.string()
2179
- }), _o = e.object({
2180
- ...po.shape,
2187
+ }), go = e.object({
2188
+ ..._o.shape,
2181
2189
  created_at: e.string()
2182
- }), yn = e.array(_o), go = e.object({
2190
+ }), In = e.array(go), uo = e.object({
2183
2191
  user_id: e.string(),
2184
2192
  resource_server_identifier: e.string(),
2185
2193
  permission_name: e.string(),
2186
2194
  organization_id: e.string().optional()
2187
- }), uo = e.object({
2188
- ...go.shape,
2195
+ }), mo = e.object({
2196
+ ...uo.shape,
2189
2197
  tenant_id: e.string(),
2190
2198
  created_at: e.string().optional()
2191
- }), In = e.array(uo), mo = e.object({
2199
+ }), Cn = e.array(mo), ho = e.object({
2192
2200
  user_id: e.string(),
2193
2201
  resource_server_identifier: e.string(),
2194
2202
  resource_server_name: e.string(),
@@ -2196,17 +2204,17 @@ const Jt = e.object({
2196
2204
  description: e.string().nullable().optional(),
2197
2205
  created_at: e.string().optional(),
2198
2206
  organization_id: e.string().optional()
2199
- }), Cn = e.array(
2200
- mo
2201
- ), ho = e.object({
2207
+ }), Tn = e.array(
2208
+ ho
2209
+ ), bo = e.object({
2202
2210
  user_id: e.string(),
2203
2211
  role_id: e.string(),
2204
2212
  organization_id: e.string().optional()
2205
- }), bo = e.object({
2206
- ...ho.shape,
2213
+ }), fo = e.object({
2214
+ ...bo.shape,
2207
2215
  tenant_id: e.string(),
2208
2216
  created_at: e.string().optional()
2209
- }), Tn = e.array(bo), fo = e.object({
2217
+ }), On = e.array(fo), Eo = e.object({
2210
2218
  id: e.string().optional().openapi({
2211
2219
  description: "The unique identifier of the role. If not provided, one will be generated."
2212
2220
  }),
@@ -2220,13 +2228,13 @@ const Jt = e.object({
2220
2228
  metadata: e.record(e.any()).optional().openapi({
2221
2229
  description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."
2222
2230
  })
2223
- }), Eo = fo.extend({
2231
+ }), So = Eo.extend({
2224
2232
  id: e.string().openapi({
2225
2233
  description: "The unique identifier of the role"
2226
2234
  }),
2227
2235
  created_at: e.string().optional(),
2228
2236
  updated_at: e.string().optional()
2229
- }), On = e.array(Eo), So = e.object({
2237
+ }), Nn = e.array(So), Ao = e.object({
2230
2238
  logo_url: e.string().optional().openapi({
2231
2239
  description: "URL of the organization's logo"
2232
2240
  }),
@@ -2238,7 +2246,7 @@ const Jt = e.object({
2238
2246
  description: "Page background color in hex format (e.g., #FFFFFF)"
2239
2247
  })
2240
2248
  }).optional()
2241
- }).optional(), Ao = e.object({
2249
+ }).optional(), yo = e.object({
2242
2250
  connection_id: e.string().openapi({
2243
2251
  description: "ID of the connection"
2244
2252
  }),
@@ -2251,7 +2259,7 @@ const Jt = e.object({
2251
2259
  is_signup_enabled: e.boolean().default(!0).openapi({
2252
2260
  description: "Whether signup is enabled for this connection"
2253
2261
  })
2254
- }), yo = e.object({
2262
+ }), Io = e.object({
2255
2263
  client_credentials: e.object({
2256
2264
  enforce: e.boolean().default(!1).openapi({
2257
2265
  description: "Whether to enforce token quota limits"
@@ -2263,7 +2271,7 @@ const Jt = e.object({
2263
2271
  description: "Maximum tokens per hour (0 = unlimited)"
2264
2272
  })
2265
2273
  }).optional()
2266
- }).optional(), Io = e.object({
2274
+ }).optional(), Co = e.object({
2267
2275
  id: e.string().optional(),
2268
2276
  name: e.string().min(1).regex(/^[a-z0-9_-]+$/, {
2269
2277
  message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"
@@ -2273,34 +2281,34 @@ const Jt = e.object({
2273
2281
  display_name: e.string().optional().openapi({
2274
2282
  description: "The display name of the organization"
2275
2283
  }),
2276
- branding: So,
2284
+ branding: Ao,
2277
2285
  metadata: e.record(e.any()).default({}).optional().openapi({
2278
2286
  description: "Custom metadata for the organization"
2279
2287
  }),
2280
- enabled_connections: e.array(Ao).default([]).optional().openapi({
2288
+ enabled_connections: e.array(yo).default([]).optional().openapi({
2281
2289
  description: "List of enabled connections for the organization"
2282
2290
  }),
2283
- token_quota: yo
2284
- }), Nn = e.object({
2285
- ...Io.shape,
2291
+ token_quota: Io
2292
+ }), wn = e.object({
2293
+ ...Co.shape,
2286
2294
  ...s.shape,
2287
2295
  id: e.string(),
2288
2296
  // Override name to be lenient when reading from database (to support existing uppercase names)
2289
2297
  name: e.string().min(1).openapi({
2290
2298
  description: "The name of the organization"
2291
2299
  })
2292
- }), Co = e.object({
2300
+ }), To = e.object({
2293
2301
  user_id: e.string().openapi({
2294
2302
  description: "ID of the user"
2295
2303
  }),
2296
2304
  organization_id: e.string().openapi({
2297
2305
  description: "ID of the organization"
2298
2306
  })
2299
- }), wn = e.object({
2300
- ...Co.shape,
2307
+ }), jn = e.object({
2308
+ ...To.shape,
2301
2309
  ...s.shape,
2302
2310
  id: e.string()
2303
- }), jn = e.object({
2311
+ }), Rn = e.object({
2304
2312
  // Session settings
2305
2313
  idle_session_lifetime: e.number().default(72),
2306
2314
  session_lifetime: e.number().default(168),
@@ -2400,7 +2408,7 @@ const Jt = e.object({
2400
2408
  message: e.string().optional()
2401
2409
  }).optional()
2402
2410
  }).optional()
2403
- }), Rn = e.object({
2411
+ }), Dn = e.object({
2404
2412
  date: e.string().openapi({
2405
2413
  description: "Date these events occurred in ISO 8601 format",
2406
2414
  example: "2025-12-19"
@@ -2425,10 +2433,10 @@ const Jt = e.object({
2425
2433
  description: "Approximate date and time the first event occurred in ISO 8601 format",
2426
2434
  example: "2025-12-19T00:00:00.000Z"
2427
2435
  })
2428
- }), Dn = e.number().openapi({
2436
+ }), Ln = e.number().openapi({
2429
2437
  description: "Number of active users in the last 30 days",
2430
2438
  example: 1234
2431
- }), To = e.enum([
2439
+ }), Oo = e.enum([
2432
2440
  "login",
2433
2441
  "login-id",
2434
2442
  "login-password",
@@ -2457,17 +2465,17 @@ const Jt = e.object({
2457
2465
  "custom-form",
2458
2466
  "login-passwordless",
2459
2467
  "mfa-login-options"
2460
- ]), Oo = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2468
+ ]), No = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2461
2469
  type: "object",
2462
2470
  additionalProperties: {
2463
2471
  type: "object",
2464
2472
  additionalProperties: { type: "string" }
2465
2473
  }
2466
- }), Ln = e.object({
2467
- prompt: To,
2474
+ }), vn = e.object({
2475
+ prompt: Oo,
2468
2476
  language: e.string(),
2469
- custom_text: Oo
2470
- }), vn = {
2477
+ custom_text: No
2478
+ }), kn = {
2471
2479
  EMAIL: "email",
2472
2480
  SMS: "sms",
2473
2481
  USERNAME_PASSWORD: "Username-Password-Authentication",
@@ -2482,11 +2490,11 @@ const Jt = e.object({
2482
2490
  SAMLP: "samlp",
2483
2491
  WAAD: "waad",
2484
2492
  ADFS: "adfs"
2485
- }, kn = {
2493
+ }, Un = {
2486
2494
  DATABASE: "database",
2487
2495
  SOCIAL: "social",
2488
2496
  PASSWORDLESS: "passwordless"
2489
- }, No = e.enum([
2497
+ }, wo = e.enum([
2490
2498
  "phone",
2491
2499
  "totp",
2492
2500
  "email",
@@ -2496,7 +2504,7 @@ const Jt = e.object({
2496
2504
  "passkey"
2497
2505
  ]), B = e.object({
2498
2506
  user_id: e.string(),
2499
- type: No,
2507
+ type: wo,
2500
2508
  // Phone-specific
2501
2509
  phone_number: e.string().optional(),
2502
2510
  // TOTP-specific
@@ -2530,19 +2538,19 @@ function W(t, o) {
2530
2538
  path: ["public_key"]
2531
2539
  }));
2532
2540
  }
2533
- const Un = B.superRefine(W), Fn = e.object({
2541
+ const Fn = B.superRefine(W), xn = e.object({
2534
2542
  ...B.shape,
2535
2543
  id: e.string(),
2536
2544
  created_at: e.string(),
2537
2545
  updated_at: e.string()
2538
2546
  }).superRefine(W);
2539
- function xn(t) {
2547
+ function Pn(t) {
2540
2548
  const [o, i] = t.split("|");
2541
2549
  if (!o || !i)
2542
2550
  throw new Error(`Invalid user_id: ${t}`);
2543
2551
  return { connection: o, id: i };
2544
2552
  }
2545
- function Pn(t) {
2553
+ function Mn(t) {
2546
2554
  const {
2547
2555
  primary: o,
2548
2556
  secondaries: i,
@@ -2583,10 +2591,10 @@ function Pn(t) {
2583
2591
  };
2584
2592
  return new Proxy(o, E);
2585
2593
  }
2586
- function Mn(t) {
2594
+ function Hn(t) {
2587
2595
  return t;
2588
2596
  }
2589
- function Hn(t) {
2597
+ function Gn(t) {
2590
2598
  var E, p, a, _, d, S, g, r, h, A, b, y;
2591
2599
  const o = t == null ? void 0 : t.options;
2592
2600
  if (!o)
@@ -2614,180 +2622,181 @@ function Hn(t) {
2614
2622
  };
2615
2623
  }
2616
2624
  export {
2617
- vo as Auth0ActionEnum,
2618
- qt as Auth0Client,
2625
+ ko as Auth0ActionEnum,
2626
+ Xt as Auth0Client,
2619
2627
  L as AuthorizationResponseMode,
2620
2628
  D as AuthorizationResponseType,
2621
2629
  v as CodeChallengeMethod,
2622
2630
  R as ComponentCategory,
2623
2631
  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,
2632
+ Uo as EmailActionEnum,
2633
+ Vo as FORM_FIELD_TYPES,
2634
+ vo as FlowActionTypeEnum,
2635
+ Jt as GrantType,
2636
+ Vt as LocationInfo,
2637
+ zt as LogTypes,
2630
2638
  H as LoginSessionState,
2631
2639
  we as NodeType,
2632
2640
  le as RedirectTargetEnum,
2633
- vn as Strategy,
2634
- kn as StrategyType,
2641
+ kn as Strategy,
2642
+ Un as StrategyType,
2635
2643
  Y as actionDependencySchema,
2636
2644
  N as actionInsertSchema,
2637
2645
  De as actionNodeSchema,
2638
- Ro as actionSchema,
2646
+ Do as actionSchema,
2639
2647
  Q as actionSecretSchema,
2640
2648
  V as actionTriggerSchema,
2641
- jo as actionUpdateSchema,
2642
- Dn as activeUsersResponseSchema,
2649
+ Ro as actionUpdateSchema,
2650
+ Ln as activeUsersResponseSchema,
2643
2651
  $ as actorSchema,
2644
2652
  ue as addressSchema,
2645
2653
  Z as auditCategorySchema,
2646
2654
  ie as auditEventInsertSchema,
2647
- Do as auditEventSchema,
2655
+ Lo as auditEventSchema,
2648
2656
  ne as auth0ClientSchema,
2649
- Bo as auth0FlowInsertSchema,
2657
+ Wo as auth0FlowInsertSchema,
2650
2658
  Fe as auth0FlowSchema,
2651
- Fo as auth0QuerySchema,
2659
+ xo as auth0QuerySchema,
2652
2660
  se as auth0UpdateUserActionSchema,
2653
- Po as auth0UserResponseSchema,
2661
+ Mo as auth0UserResponseSchema,
2654
2662
  xe as authParamsSchema,
2655
- Un as authenticationMethodInsertSchema,
2656
- Fn as authenticationMethodSchema,
2657
- No as authenticationMethodTypeSchema,
2663
+ Fn as authenticationMethodInsertSchema,
2664
+ xn as authenticationMethodSchema,
2665
+ wo as authenticationMethodTypeSchema,
2658
2666
  w as baseUserSchema,
2659
2667
  Et as blockComponentSchema,
2660
- Jt as bordersSchema,
2661
- Wo as brandingSchema,
2668
+ eo as bordersSchema,
2669
+ Ko as brandingSchema,
2662
2670
  Ie as buttonComponentSchema,
2663
2671
  Se as clientGrantInsertSchema,
2664
- Go as clientGrantListSchema,
2672
+ Bo as clientGrantListSchema,
2665
2673
  Ae as clientGrantSchema,
2666
2674
  Ee as clientInsertSchema,
2667
- Ho as clientSchema,
2675
+ Go as clientSchema,
2668
2676
  Me as codeInsertSchema,
2669
- Ko as codeSchema,
2677
+ zo as codeSchema,
2670
2678
  Pe as codeTypeSchema,
2671
- eo as colorsSchema,
2679
+ to as colorsSchema,
2672
2680
  Nt as componentMessageSchema,
2673
2681
  Ne as componentSchema,
2674
2682
  Ge as connectionInsertSchema,
2675
2683
  He as connectionOptionsSchema,
2676
- zo as connectionSchema,
2684
+ qo as connectionSchema,
2677
2685
  m as coordinatesSchema,
2678
- Pn as createPassthroughAdapter,
2679
- Mn as createWriteOnlyAdapter,
2686
+ Mn as createPassthroughAdapter,
2687
+ Hn as createWriteOnlyAdapter,
2680
2688
  Be as customDomainInsertSchema,
2681
2689
  Ke as customDomainSchema,
2682
- qo as customDomainWithTenantIdSchema,
2683
- Ln as customTextEntrySchema,
2684
- Oo as customTextSchema,
2685
- Rn as dailyStatsSchema,
2686
- bn as emailProviderSchema,
2690
+ Xo as customDomainWithTenantIdSchema,
2691
+ vn as customTextEntrySchema,
2692
+ No as customTextSchema,
2693
+ Dn as dailyStatsSchema,
2694
+ fn as emailProviderSchema,
2687
2695
  ae as emailVerificationRulesSchema,
2688
2696
  re as emailVerifyActionSchema,
2689
2697
  Ue as endingSchema,
2690
2698
  At as fieldComponentSchema,
2691
2699
  pe as flowActionStepSchema,
2692
2700
  _e as flowInsertSchema,
2693
- Uo as flowSchema,
2701
+ Fo as flowSchema,
2694
2702
  Te as flowsFieldComponentSchema,
2695
2703
  Re as flowsFlowNodeSchema,
2696
2704
  je as flowsStepNodeSchema,
2697
2705
  u as fontDetailsSchema,
2698
- to as fontsSchema,
2699
- Vo as formControlSchema,
2706
+ oo as fontsSchema,
2707
+ Yo as formControlSchema,
2700
2708
  Ot as formInsertSchema,
2701
2709
  k as formNodeComponentDefinition,
2702
2710
  Tt as formNodeSchema,
2703
- Yo as formSchema,
2711
+ Qo as formSchema,
2704
2712
  Oe as genericComponentSchema,
2705
2713
  Le as genericNodeSchema,
2706
- Hn as getConnectionIdentifierConfig,
2714
+ Gn as getConnectionIdentifierConfig,
2707
2715
  xt as hookCodeInsertSchema,
2708
- nn as hookCodeSchema,
2709
- tn as hookInsertSchema,
2710
- on as hookSchema,
2716
+ an as hookCodeSchema,
2717
+ on as hookInsertSchema,
2718
+ nn as hookSchema,
2711
2719
  M as hookTemplateId,
2712
- en as hookTemplates,
2720
+ tn as hookTemplates,
2713
2721
  ge as identitySchema,
2714
2722
  Ht as inviteInsertSchema,
2715
- an as inviteSchema,
2723
+ sn as inviteSchema,
2716
2724
  Mt as inviteeSchema,
2717
2725
  Pt as inviterSchema,
2718
- Zo as isBlockComponent,
2719
- Jo as isFieldComponent,
2720
- $o as isWidgetComponent,
2721
- sn as jwksKeySchema,
2726
+ $o as isBlockComponent,
2727
+ en as isFieldComponent,
2728
+ Jo as isWidgetComponent,
2729
+ rn as jwksKeySchema,
2722
2730
  Gt as jwksSchema,
2723
2731
  Ce as legalComponentSchema,
2724
2732
  oe as locationInfoSchema,
2725
- Vt as logInsertSchema,
2726
- cn as logSchema,
2727
- Wt as loginSessionInsertSchema,
2728
- ln as loginSessionSchema,
2733
+ Yt as logInsertSchema,
2734
+ pn as logSchema,
2735
+ Wt as loginSessionAuthStrategySchema,
2736
+ Kt as loginSessionInsertSchema,
2737
+ cn as loginSessionSchema,
2729
2738
  Bt as loginSessionStateSchema,
2730
2739
  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,
2740
+ ln as openIDConfigurationSchema,
2741
+ Ao as organizationBrandingSchema,
2742
+ yo as organizationEnabledConnectionSchema,
2743
+ Co as organizationInsertSchema,
2744
+ wn as organizationSchema,
2745
+ Io as organizationTokenQuotaSchema,
2746
+ no as pageBackgroundSchema,
2747
+ Pn as parseUserId,
2748
+ Qt as passwordInsertSchema,
2749
+ _n as passwordSchema,
2741
2750
  de as profileDataSchema,
2742
- To as promptScreenSchema,
2743
- hn as promptSettingSchema,
2751
+ Oo as promptScreenSchema,
2752
+ bn as promptSettingSchema,
2744
2753
  ce as redirectActionSchema,
2745
- ao as refreshTokenInsertSchema,
2746
- fn as refreshTokenSchema,
2754
+ so as refreshTokenInsertSchema,
2755
+ En as refreshTokenSchema,
2747
2756
  ee as requestContextSchema,
2748
- lo as resourceServerInsertSchema,
2749
- An as resourceServerListSchema,
2750
- ro as resourceServerOptionsSchema,
2751
- co as resourceServerSchema,
2752
- so as resourceServerScopeSchema,
2757
+ co as resourceServerInsertSchema,
2758
+ yn as resourceServerListSchema,
2759
+ lo as resourceServerOptionsSchema,
2760
+ po as resourceServerSchema,
2761
+ ro as resourceServerScopeSchema,
2753
2762
  te as responseContextSchema,
2754
2763
  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,
2764
+ Eo as roleInsertSchema,
2765
+ Nn as roleListSchema,
2766
+ _o as rolePermissionInsertSchema,
2767
+ In as rolePermissionListSchema,
2768
+ go as rolePermissionSchema,
2769
+ So as roleSchema,
2761
2770
  wt as screenLinkSchema,
2762
- Qt as sessionInsertSchema,
2763
- _n as sessionSchema,
2764
- dn as signingKeySchema,
2765
- Sn as smsProviderSchema,
2766
- En as smsSendParamsSchema,
2771
+ Zt as sessionInsertSchema,
2772
+ dn as sessionSchema,
2773
+ gn as signingKeySchema,
2774
+ An as smsProviderSchema,
2775
+ Sn as smsSendParamsSchema,
2767
2776
  ke as startSchema,
2768
2777
  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,
2778
+ $t as tenantInsertSchema,
2779
+ un as tenantSchema,
2780
+ Rn as tenantSettingsSchema,
2781
+ ao as themeInsertSchema,
2782
+ hn as themeSchema,
2783
+ mn as tokenResponseSchema,
2784
+ Po as totalsSchema,
2785
+ Zo as uiScreenSchema,
2777
2786
  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,
2787
+ To as userOrganizationInsertSchema,
2788
+ jn as userOrganizationSchema,
2789
+ uo as userPermissionInsertSchema,
2790
+ Cn as userPermissionListSchema,
2791
+ mo as userPermissionSchema,
2792
+ Tn as userPermissionWithDetailsListSchema,
2793
+ ho as userPermissionWithDetailsSchema,
2794
+ Ho as userResponseSchema,
2795
+ bo as userRoleInsertSchema,
2796
+ On as userRoleListSchema,
2797
+ fo as userRoleSchema,
2789
2798
  he as userSchema,
2790
2799
  We as verificationMethodsSchema,
2791
2800
  St as widgetComponentSchema,
2792
- no as widgetSchema
2801
+ io as widgetSchema
2793
2802
  };