@authhero/adapter-interfaces 1.15.0 → 1.16.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.
@@ -20,10 +20,10 @@ const r = e.object({
20
20
  runtime: e.string().max(50).optional(),
21
21
  dependencies: e.array(Q).optional(),
22
22
  secrets: e.array($).optional()
23
- }), Wo = w.partial().extend({
23
+ }), Ko = w.partial().extend({
24
24
  status: e.enum(["draft", "built"]).optional(),
25
25
  deployed_at: e.string().optional()
26
- }), Ko = w.extend({
26
+ }), zo = w.extend({
27
27
  id: e.string(),
28
28
  tenant_id: e.string(),
29
29
  status: e.enum(["draft", "built"]).default("built"),
@@ -97,15 +97,15 @@ const r = e.object({
97
97
  hostname: e.string(),
98
98
  is_mobile: e.boolean().optional(),
99
99
  timestamp: e.string()
100
- }), zo = re.extend({
100
+ }), qo = re.extend({
101
101
  id: e.string()
102
- }), qo = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), Xo = e.enum([
102
+ }), Xo = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), Vo = e.enum([
103
103
  "CREATE_USER",
104
104
  "GET_USER",
105
105
  "UPDATE_USER",
106
106
  "SEND_REQUEST",
107
107
  "SEND_EMAIL"
108
- ]), Vo = e.enum(["VERIFY_EMAIL"]), se = e.object({
108
+ ]), Yo = e.enum(["VERIFY_EMAIL"]), se = e.object({
109
109
  require_mx_record: e.boolean().optional(),
110
110
  block_aliases: e.boolean().optional(),
111
111
  block_free_emails: e.boolean().optional(),
@@ -162,13 +162,13 @@ const r = e.object({
162
162
  actions: e.array(_e).optional().default([]).openapi({
163
163
  description: "The list of actions to execute in sequence"
164
164
  })
165
- }), Yo = ge.extend({
165
+ }), Zo = ge.extend({
166
166
  ...r.shape,
167
167
  id: e.string().openapi({
168
168
  description: "Unique identifier for the flow",
169
169
  example: "af_12tMpdJ3iek7svMyZkSh5M"
170
170
  })
171
- }), Zo = e.object({
171
+ }), Qo = e.object({
172
172
  page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
173
173
  description: "The page number where 0 is the first page"
174
174
  }),
@@ -184,7 +184,7 @@ const r = e.object({
184
184
  q: e.string().optional().openapi({
185
185
  description: "A lucene query string used to filter the results"
186
186
  })
187
- }), Qo = e.object({
187
+ }), $o = e.object({
188
188
  start: e.number(),
189
189
  limit: e.number(),
190
190
  length: e.number(),
@@ -290,9 +290,9 @@ const r = e.object({
290
290
  email: e.string().optional(),
291
291
  login_count: e.number().default(0),
292
292
  identities: e.array(me).optional()
293
- }), $o = fe.omit({
293
+ }), Jo = fe.omit({
294
294
  registration_completed_at: !0
295
- }), Jo = j.extend({
295
+ }), en = j.extend({
296
296
  login_count: e.number(),
297
297
  multifactor: e.array(e.string()).optional(),
298
298
  last_ip: e.string().optional(),
@@ -523,7 +523,7 @@ const ye = e.object({
523
523
  user_linking_mode: e.enum(["builtin", "off"]).optional().openapi({
524
524
  description: "Per-client override for the built-in email-based user-linking path. `builtin` runs the legacy in-process linking at user creation/email update. `off` disables the legacy path; linking only happens if the tenant has enabled the `account-linking` template hook. When unset, the service-level `userLinkingMode` default applies."
525
525
  })
526
- }), en = e.object({
526
+ }), tn = e.object({
527
527
  created_at: e.string(),
528
528
  updated_at: e.string(),
529
529
  ...ye.shape,
@@ -562,7 +562,7 @@ const ye = e.object({
562
562
  ...Ae.shape,
563
563
  created_at: e.string().optional(),
564
564
  updated_at: e.string().optional()
565
- }), tn = e.array(Ie), Ce = e.enum(["iat", "rat"]), Te = e.object({
565
+ }), on = e.array(Ie), Ce = e.enum(["iat", "rat"]), Te = e.object({
566
566
  id: e.string(),
567
567
  token_hash: e.string(),
568
568
  type: Ce,
@@ -571,7 +571,7 @@ const ye = e.object({
571
571
  constraints: e.record(e.unknown()).optional(),
572
572
  single_use: e.boolean().default(!1),
573
573
  expires_at: e.string().optional()
574
- }), on = e.object({
574
+ }), nn = e.object({
575
575
  created_at: e.string(),
576
576
  used_at: e.string().optional(),
577
577
  revoked_at: e.string().optional(),
@@ -774,12 +774,12 @@ const De = e.object({
774
774
  sdkSrc: e.string().optional(),
775
775
  sdk_src: e.string().optional()
776
776
  }).passthrough()
777
- }).passthrough(), nn = He.omit({
777
+ }).passthrough(), an = He.omit({
778
778
  id: !0,
779
779
  created_at: !0,
780
780
  updated_at: !0
781
781
  });
782
- var v = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.ID_TOKEN = "id_token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(v || {}), D = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(D || {}), L = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(L || {});
782
+ var v = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.ID_TOKEN = "id_token", t.TOKEN_ID_TOKEN = "id_token token", t.CODE = "code", t))(v || {}), D = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(D || {}), L = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(L || {});
783
783
  const Ge = e.object({
784
784
  client_id: e.string(),
785
785
  act_as: e.string().optional(),
@@ -804,7 +804,7 @@ const Ge = e.object({
804
804
  acr_values: e.string().optional(),
805
805
  // The following fields are not available in Auth0
806
806
  vendor_id: e.string().optional()
807
- }), an = e.object({
807
+ }), rn = e.object({
808
808
  colors: e.object({
809
809
  primary: e.string(),
810
810
  // Auth0 supports either a hex color string ("#ffffff") or a gradient
@@ -868,7 +868,7 @@ const Ge = e.object({
868
868
  expires_at: e.string(),
869
869
  used_at: e.string().optional(),
870
870
  user_id: e.string().optional()
871
- }), rn = e.object({
871
+ }), sn = e.object({
872
872
  ...We.shape,
873
873
  created_at: e.string()
874
874
  }), Ke = e.object({
@@ -1021,7 +1021,7 @@ const ze = e.object({
1021
1021
  show_as_button: e.boolean().optional(),
1022
1022
  metadata: e.record(e.any()).optional(),
1023
1023
  is_system: e.boolean().optional()
1024
- }), sn = e.object({
1024
+ }), ln = e.object({
1025
1025
  id: e.string(),
1026
1026
  created_at: e.string().transform((t) => t === null ? "" : t),
1027
1027
  updated_at: e.string().transform((t) => t === null ? "" : t)
@@ -1060,7 +1060,7 @@ const ze = e.object({
1060
1060
  methods: e.array(Xe)
1061
1061
  }).optional(),
1062
1062
  tls_policy: e.string().optional()
1063
- }), ln = Ve.extend({
1063
+ }), pn = Ve.extend({
1064
1064
  tenant_id: e.string()
1065
1065
  }), O = e.object({
1066
1066
  id: e.string(),
@@ -1329,7 +1329,7 @@ const ze = e.object({
1329
1329
  It,
1330
1330
  Ct,
1331
1331
  Tt
1332
- ]), pn = /* @__PURE__ */ new Set([
1332
+ ]), cn = /* @__PURE__ */ new Set([
1333
1333
  "BOOLEAN",
1334
1334
  "CARDS",
1335
1335
  "CHOICE",
@@ -1343,7 +1343,7 @@ const ze = e.object({
1343
1343
  "TEL",
1344
1344
  "TEXT",
1345
1345
  "URL"
1346
- ]), cn = e.object({
1346
+ ]), dn = e.object({
1347
1347
  id: e.string(),
1348
1348
  type: e.literal("submit"),
1349
1349
  label: e.string(),
@@ -1428,7 +1428,7 @@ const ze = e.object({
1428
1428
  }).optional()
1429
1429
  }).openapi({
1430
1430
  description: "Schema for flow-based forms (matches Auth0 Forms structure)"
1431
- }), dn = e.object({
1431
+ }), _n = e.object({
1432
1432
  ...r.shape,
1433
1433
  ...Rt.shape,
1434
1434
  id: e.string()
@@ -1441,7 +1441,7 @@ const ze = e.object({
1441
1441
  text: e.string(),
1442
1442
  href: e.string(),
1443
1443
  linkText: e.string().optional()
1444
- }), _n = e.object({
1444
+ }), gn = e.object({
1445
1445
  /** Screen identifier for CSS targeting (e.g., 'identifier', 'enter-password', 'signup') */
1446
1446
  name: e.string().optional(),
1447
1447
  action: e.string(),
@@ -1454,13 +1454,13 @@ const ze = e.object({
1454
1454
  /** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
1455
1455
  footer: e.string().optional()
1456
1456
  });
1457
- function gn(t) {
1457
+ function un(t) {
1458
1458
  return t.category === "BLOCK";
1459
1459
  }
1460
- function un(t) {
1460
+ function mn(t) {
1461
1461
  return t.category === "WIDGET";
1462
1462
  }
1463
- function mn(t) {
1463
+ function hn(t) {
1464
1464
  return t.category === "FIELD";
1465
1465
  }
1466
1466
  const x = e.enum([
@@ -1493,7 +1493,7 @@ const x = e.enum([
1493
1493
  "ensure-username",
1494
1494
  "set-preferred-username",
1495
1495
  "account-linking"
1496
- ]), hn = {
1496
+ ]), bn = {
1497
1497
  "ensure-username": {
1498
1498
  name: "Ensure Username",
1499
1499
  description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
@@ -1546,7 +1546,7 @@ const x = e.enum([
1546
1546
  ...p,
1547
1547
  trigger_id: M,
1548
1548
  code_id: e.string()
1549
- }), bn = e.union([
1549
+ }), fn = e.union([
1550
1550
  Dt,
1551
1551
  Lt,
1552
1552
  Ut,
@@ -1575,7 +1575,7 @@ const x = e.enum([
1575
1575
  ...r.shape,
1576
1576
  hook_id: e.string(),
1577
1577
  code_id: e.string()
1578
- }), fn = e.union([
1578
+ }), En = e.union([
1579
1579
  Ft,
1580
1580
  Pt,
1581
1581
  Mt,
@@ -1583,7 +1583,7 @@ const x = e.enum([
1583
1583
  ]), Gt = e.object({
1584
1584
  code: e.string().max(1e5),
1585
1585
  secrets: e.record(e.string()).optional()
1586
- }), En = Gt.extend({
1586
+ }), Sn = Gt.extend({
1587
1587
  id: e.string(),
1588
1588
  tenant_id: e.string(),
1589
1589
  ...r.shape
@@ -1603,7 +1603,7 @@ const x = e.enum([
1603
1603
  ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
1604
1604
  roles: e.array(e.string()).default([]).optional(),
1605
1605
  send_invitation_email: e.boolean().default(!0).optional()
1606
- }), Sn = e.object({
1606
+ }), yn = e.object({
1607
1607
  id: e.string(),
1608
1608
  organization_id: e.string().max(50),
1609
1609
  created_at: e.string().datetime(),
@@ -1648,15 +1648,13 @@ const x = e.enum([
1648
1648
  path: [n],
1649
1649
  message: `EC JWK is missing required member '${n}'`
1650
1650
  });
1651
- }), yn = e.object({
1652
- keys: e.array(zt)
1653
1651
  }), An = e.object({
1652
+ keys: e.array(zt)
1653
+ }), In = e.object({
1654
1654
  issuer: e.string(),
1655
1655
  authorization_endpoint: e.string(),
1656
1656
  token_endpoint: e.string(),
1657
- device_authorization_endpoint: e.string(),
1658
1657
  userinfo_endpoint: e.string(),
1659
- mfa_challenge_endpoint: e.string(),
1660
1658
  jwks_uri: e.string(),
1661
1659
  registration_endpoint: e.string().optional(),
1662
1660
  revocation_endpoint: e.string(),
@@ -1705,7 +1703,7 @@ const qt = e.nativeEnum(G), Xt = e.object({
1705
1703
  // ISO timestamp persisted for audit/metadata; not used to reject resumed sessions
1706
1704
  }).openapi({
1707
1705
  description: "This represents a login sesion"
1708
- }), In = e.object({
1706
+ }), Cn = e.object({
1709
1707
  ...Vt.shape,
1710
1708
  id: e.string().openapi({
1711
1709
  description: "This is is used as the state in the universal login"
@@ -1925,7 +1923,7 @@ const qt = e.nativeEnum(G), Xt = e.object({
1925
1923
  auth0_client: Qt.optional(),
1926
1924
  log_id: e.string().optional(),
1927
1925
  location_info: $t.optional()
1928
- }), Cn = e.object({
1926
+ }), Tn = e.object({
1929
1927
  ...Jt.shape,
1930
1928
  log_id: e.string()
1931
1929
  }), eo = e.enum([
@@ -1949,7 +1947,7 @@ const qt = e.nativeEnum(G), Xt = e.object({
1949
1947
  sink: e.record(e.string(), e.unknown()),
1950
1948
  filters: e.array(to).optional(),
1951
1949
  isPriority: e.boolean().optional()
1952
- }), Tn = oo.extend({
1950
+ }), On = oo.extend({
1953
1951
  id: e.string(),
1954
1952
  status: B,
1955
1953
  created_at: e.string().optional(),
@@ -1997,7 +1995,7 @@ const qt = e.nativeEnum(G), Xt = e.object({
1997
1995
  password: e.string(),
1998
1996
  algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
1999
1997
  is_current: e.boolean().default(!0)
2000
- }), On = so.extend({
1998
+ }), Nn = so.extend({
2001
1999
  id: e.string(),
2002
2000
  created_at: e.string(),
2003
2001
  updated_at: e.string()
@@ -2020,14 +2018,17 @@ const qt = e.nativeEnum(G), Xt = e.object({
2020
2018
  "Metadata related to the device used in the session"
2021
2019
  ),
2022
2020
  clients: e.array(e.string()).describe("List of client details for the session")
2023
- }), Nn = e.object({
2021
+ }), wn = e.object({
2024
2022
  created_at: e.string(),
2025
2023
  updated_at: e.string(),
2026
2024
  authenticated_at: e.string(),
2027
2025
  last_interaction_at: e.string(),
2028
2026
  ...lo.shape
2029
- }), wn = e.object({
2027
+ }), jn = e.object({
2030
2028
  kid: e.string().openapi({ description: "The key id of the signing key" }),
2029
+ tenant_id: e.string().optional().openapi({
2030
+ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped."
2031
+ }),
2031
2032
  cert: e.string().openapi({ description: "The public certificate of the signing key" }),
2032
2033
  fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
2033
2034
  thumbprint: e.string().openapi({ description: "The cert thumbprint" }),
@@ -2236,14 +2237,14 @@ const qt = e.nativeEnum(G), Xt = e.object({
2236
2237
  message: e.string().optional()
2237
2238
  }).optional()
2238
2239
  }).optional()
2239
- }), jn = e.object({
2240
+ }), Rn = e.object({
2240
2241
  created_at: e.string().nullable().transform((t) => t ?? ""),
2241
2242
  updated_at: e.string().nullable().transform((t) => t ?? ""),
2242
2243
  ...po.shape,
2243
2244
  id: e.string()
2244
2245
  });
2245
2246
  var co = /* @__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))(co || {});
2246
- const Rn = e.object({
2247
+ const kn = e.object({
2247
2248
  access_token: e.string(),
2248
2249
  id_token: e.string().optional(),
2249
2250
  scope: e.string().optional(),
@@ -2325,20 +2326,43 @@ const _o = e.object({
2325
2326
  fonts: uo,
2326
2327
  page_background: mo,
2327
2328
  widget: ho
2328
- }), kn = bo.extend({
2329
+ }), vn = bo.extend({
2329
2330
  themeId: e.string()
2330
- }), vn = e.object({
2331
+ }), Dn = e.object({
2331
2332
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
2332
2333
  identifier_first: e.boolean().default(!0),
2333
2334
  password_first: e.boolean().default(!1),
2334
2335
  webauthn_platform_first_factor: e.boolean()
2335
- }), Dn = e.object({
2336
+ }), Ln = e.object({
2336
2337
  name: e.string(),
2337
2338
  enabled: e.boolean().optional().default(!0),
2338
2339
  default_from_address: e.string().optional(),
2339
2340
  credentials: e.record(e.string(), e.unknown()),
2340
2341
  settings: e.object({}).optional()
2341
- }), fo = e.object({
2342
+ }), fo = e.enum([
2343
+ "verify_email",
2344
+ "verify_email_by_code",
2345
+ "reset_email",
2346
+ "reset_email_by_code",
2347
+ "welcome_email",
2348
+ "blocked_account",
2349
+ "stolen_credentials",
2350
+ "enrollment_email",
2351
+ "mfa_oob_code",
2352
+ "change_password",
2353
+ "password_reset",
2354
+ "user_invitation"
2355
+ ]), Un = e.object({
2356
+ template: fo,
2357
+ body: e.string(),
2358
+ from: e.string(),
2359
+ subject: e.string(),
2360
+ syntax: e.literal("liquid").default("liquid"),
2361
+ resultUrl: e.string().optional(),
2362
+ urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
2363
+ includeEmailInRedirect: e.boolean().default(!1),
2364
+ enabled: e.boolean().default(!0)
2365
+ }), Eo = e.object({
2342
2366
  // Internal primary key (ULID). Never sent to clients in the new wire format.
2343
2367
  id: e.string(),
2344
2368
  // Link to the login session
@@ -2372,23 +2396,23 @@ const _o = e.object({
2372
2396
  // ISO of the *first* rotation. Anchors the leeway window so siblings minted
2373
2397
  // within the window don't extend the parent's exposure.
2374
2398
  rotated_at: e.string().optional()
2375
- }), Ln = e.object({
2399
+ }), xn = e.object({
2376
2400
  // When the refresh token record was created.
2377
2401
  created_at: e.string(),
2378
2402
  // When the token was explicitly revoked (null = still active).
2379
2403
  revoked_at: e.string().optional(),
2380
2404
  // Spread in the rest of the refresh token properties.
2381
- ...fo.shape
2382
- }), Un = e.object({
2405
+ ...Eo.shape
2406
+ }), Fn = e.object({
2383
2407
  to: e.string(),
2384
2408
  message: e.string()
2385
- }), xn = e.object({
2409
+ }), Pn = e.object({
2386
2410
  name: e.string(),
2387
2411
  options: e.object({})
2388
- }), Eo = e.object({
2412
+ }), So = e.object({
2389
2413
  value: e.string(),
2390
2414
  description: e.string().optional()
2391
- }), So = e.object({
2415
+ }), yo = e.object({
2392
2416
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
2393
2417
  enforce_policies: e.boolean().optional(),
2394
2418
  allow_skipping_userinfo: e.boolean().optional(),
@@ -2398,11 +2422,11 @@ const _o = e.object({
2398
2422
  mtls: e.object({
2399
2423
  bound_access_tokens: e.boolean().optional()
2400
2424
  }).optional()
2401
- }), yo = e.object({
2425
+ }), Ao = e.object({
2402
2426
  id: e.string().optional(),
2403
2427
  name: e.string(),
2404
2428
  identifier: e.string(),
2405
- scopes: e.array(Eo).optional(),
2429
+ scopes: e.array(So).optional(),
2406
2430
  signing_alg: e.string().optional(),
2407
2431
  signing_secret: e.string().optional(),
2408
2432
  token_lifetime: e.number().default(86400),
@@ -2410,30 +2434,30 @@ const _o = e.object({
2410
2434
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
2411
2435
  allow_offline_access: e.boolean().optional(),
2412
2436
  verificationKey: e.string().optional(),
2413
- options: So.optional(),
2437
+ options: yo.optional(),
2414
2438
  is_system: e.boolean().optional(),
2415
2439
  metadata: e.record(e.any()).optional()
2416
- }), Ao = e.object({
2417
- ...yo.shape,
2440
+ }), Io = e.object({
2441
+ ...Ao.shape,
2418
2442
  created_at: e.string().optional(),
2419
2443
  updated_at: e.string().optional()
2420
- }), Fn = e.array(Ao), Io = e.object({
2444
+ }), Mn = e.array(Io), Co = e.object({
2421
2445
  role_id: e.string(),
2422
2446
  resource_server_identifier: e.string(),
2423
2447
  permission_name: e.string()
2424
- }), Co = e.object({
2425
- ...Io.shape,
2448
+ }), To = e.object({
2449
+ ...Co.shape,
2426
2450
  created_at: e.string()
2427
- }), Pn = e.array(Co), To = e.object({
2451
+ }), Hn = e.array(To), Oo = e.object({
2428
2452
  user_id: e.string(),
2429
2453
  resource_server_identifier: e.string(),
2430
2454
  permission_name: e.string(),
2431
2455
  organization_id: e.string().optional()
2432
- }), Oo = e.object({
2433
- ...To.shape,
2456
+ }), No = e.object({
2457
+ ...Oo.shape,
2434
2458
  tenant_id: e.string(),
2435
2459
  created_at: e.string().optional()
2436
- }), Mn = e.array(Oo), No = e.object({
2460
+ }), Gn = e.array(No), wo = e.object({
2437
2461
  user_id: e.string(),
2438
2462
  resource_server_identifier: e.string(),
2439
2463
  resource_server_name: e.string(),
@@ -2441,17 +2465,17 @@ const _o = e.object({
2441
2465
  description: e.string().nullable().optional(),
2442
2466
  created_at: e.string().optional(),
2443
2467
  organization_id: e.string().optional()
2444
- }), Hn = e.array(
2445
- No
2446
- ), wo = e.object({
2468
+ }), Bn = e.array(
2469
+ wo
2470
+ ), jo = e.object({
2447
2471
  user_id: e.string(),
2448
2472
  role_id: e.string(),
2449
2473
  organization_id: e.string().optional()
2450
- }), jo = e.object({
2451
- ...wo.shape,
2474
+ }), Ro = e.object({
2475
+ ...jo.shape,
2452
2476
  tenant_id: e.string(),
2453
2477
  created_at: e.string().optional()
2454
- }), Gn = e.array(jo), Ro = e.object({
2478
+ }), Wn = e.array(Ro), ko = e.object({
2455
2479
  id: e.string().optional().openapi({
2456
2480
  description: "The unique identifier of the role. If not provided, one will be generated."
2457
2481
  }),
@@ -2465,13 +2489,13 @@ const _o = e.object({
2465
2489
  metadata: e.record(e.any()).optional().openapi({
2466
2490
  description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."
2467
2491
  })
2468
- }), ko = Ro.extend({
2492
+ }), vo = ko.extend({
2469
2493
  id: e.string().openapi({
2470
2494
  description: "The unique identifier of the role"
2471
2495
  }),
2472
2496
  created_at: e.string().optional(),
2473
2497
  updated_at: e.string().optional()
2474
- }), Bn = e.array(ko), vo = e.object({
2498
+ }), Kn = e.array(vo), Do = e.object({
2475
2499
  logo_url: e.string().optional().openapi({
2476
2500
  description: "URL of the organization's logo"
2477
2501
  }),
@@ -2483,7 +2507,7 @@ const _o = e.object({
2483
2507
  description: "Page background color in hex format (e.g., #FFFFFF)"
2484
2508
  })
2485
2509
  }).optional()
2486
- }).optional(), Do = e.object({
2510
+ }).optional(), Lo = e.object({
2487
2511
  connection_id: e.string().openapi({
2488
2512
  description: "ID of the connection"
2489
2513
  }),
@@ -2496,7 +2520,7 @@ const _o = e.object({
2496
2520
  is_signup_enabled: e.boolean().default(!0).openapi({
2497
2521
  description: "Whether signup is enabled for this connection"
2498
2522
  })
2499
- }), Lo = e.object({
2523
+ }), Uo = e.object({
2500
2524
  client_credentials: e.object({
2501
2525
  enforce: e.boolean().default(!1).openapi({
2502
2526
  description: "Whether to enforce token quota limits"
@@ -2508,7 +2532,7 @@ const _o = e.object({
2508
2532
  description: "Maximum tokens per hour (0 = unlimited)"
2509
2533
  })
2510
2534
  }).optional()
2511
- }).optional(), Uo = e.object({
2535
+ }).optional(), xo = e.object({
2512
2536
  id: e.string().optional(),
2513
2537
  name: e.string().min(1).regex(/^[a-z0-9_-]+$/, {
2514
2538
  message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"
@@ -2518,31 +2542,31 @@ const _o = e.object({
2518
2542
  display_name: e.string().optional().openapi({
2519
2543
  description: "The display name of the organization"
2520
2544
  }),
2521
- branding: vo,
2545
+ branding: Do,
2522
2546
  metadata: e.record(e.any()).default({}).optional().openapi({
2523
2547
  description: "Custom metadata for the organization"
2524
2548
  }),
2525
- enabled_connections: e.array(Do).default([]).optional().openapi({
2549
+ enabled_connections: e.array(Lo).default([]).optional().openapi({
2526
2550
  description: "List of enabled connections for the organization"
2527
2551
  }),
2528
- token_quota: Lo
2529
- }), Wn = e.object({
2530
- ...Uo.shape,
2552
+ token_quota: Uo
2553
+ }), zn = e.object({
2554
+ ...xo.shape,
2531
2555
  ...r.shape,
2532
2556
  id: e.string(),
2533
2557
  // Override name to be lenient when reading from database (to support existing uppercase names)
2534
2558
  name: e.string().min(1).openapi({
2535
2559
  description: "The name of the organization"
2536
2560
  })
2537
- }), xo = e.object({
2561
+ }), Fo = e.object({
2538
2562
  connection_id: e.string().openapi({
2539
2563
  description: "ID of the tenant-level connection to enable for the org."
2540
2564
  }),
2541
2565
  assign_membership_on_login: e.boolean().optional().default(!1),
2542
2566
  show_as_button: e.boolean().optional().default(!0),
2543
2567
  is_signup_enabled: e.boolean().optional().default(!0)
2544
- }), Fo = e.object({
2545
- ...xo.shape,
2568
+ }), Po = e.object({
2569
+ ...Fo.shape,
2546
2570
  // Auth0 includes the embedded connection in GET responses.
2547
2571
  connection: e.object({
2548
2572
  name: e.string().optional(),
@@ -2550,20 +2574,20 @@ const _o = e.object({
2550
2574
  }).optional(),
2551
2575
  created_at: e.string().optional(),
2552
2576
  updated_at: e.string().optional()
2553
- }), Kn = e.array(
2554
- Fo
2555
- ), Po = e.object({
2577
+ }), qn = e.array(
2578
+ Po
2579
+ ), Mo = e.object({
2556
2580
  user_id: e.string().openapi({
2557
2581
  description: "ID of the user"
2558
2582
  }),
2559
2583
  organization_id: e.string().openapi({
2560
2584
  description: "ID of the organization"
2561
2585
  })
2562
- }), zn = e.object({
2563
- ...Po.shape,
2586
+ }), Xn = e.object({
2587
+ ...Mo.shape,
2564
2588
  ...r.shape,
2565
2589
  id: e.string()
2566
- }), qn = e.object({
2590
+ }), Vn = e.object({
2567
2591
  // Session settings
2568
2592
  idle_session_lifetime: e.number().default(72),
2569
2593
  session_lifetime: e.number().default(168),
@@ -2663,7 +2687,7 @@ const _o = e.object({
2663
2687
  message: e.string().optional()
2664
2688
  }).optional()
2665
2689
  }).optional()
2666
- }), Xn = e.object({
2690
+ }), Yn = e.object({
2667
2691
  date: e.string().openapi({
2668
2692
  description: "Date these events occurred in ISO 8601 format",
2669
2693
  example: "2025-12-19"
@@ -2688,10 +2712,10 @@ const _o = e.object({
2688
2712
  description: "Approximate date and time the first event occurred in ISO 8601 format",
2689
2713
  example: "2025-12-19T00:00:00.000Z"
2690
2714
  })
2691
- }), Vn = e.number().openapi({
2715
+ }), Zn = e.number().openapi({
2692
2716
  description: "Number of active users in the last 30 days",
2693
2717
  example: 1234
2694
- }), Mo = e.enum([
2718
+ }), Ho = e.enum([
2695
2719
  "login",
2696
2720
  "login-id",
2697
2721
  "login-password",
@@ -2720,17 +2744,17 @@ const _o = e.object({
2720
2744
  "custom-form",
2721
2745
  "login-passwordless",
2722
2746
  "mfa-login-options"
2723
- ]), Ho = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2747
+ ]), Go = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2724
2748
  type: "object",
2725
2749
  additionalProperties: {
2726
2750
  type: "object",
2727
2751
  additionalProperties: { type: "string" }
2728
2752
  }
2729
- }), Yn = e.object({
2730
- prompt: Mo,
2753
+ }), Qn = e.object({
2754
+ prompt: Ho,
2731
2755
  language: e.string(),
2732
- custom_text: Ho
2733
- }), Zn = {
2756
+ custom_text: Go
2757
+ }), $n = {
2734
2758
  EMAIL: "email",
2735
2759
  SMS: "sms",
2736
2760
  USERNAME_PASSWORD: "Username-Password-Authentication",
@@ -2746,11 +2770,11 @@ const _o = e.object({
2746
2770
  WAAD: "waad",
2747
2771
  ADFS: "adfs",
2748
2772
  AUTH0: "auth0"
2749
- }, Qn = {
2773
+ }, Jn = {
2750
2774
  DATABASE: "database",
2751
2775
  SOCIAL: "social",
2752
2776
  PASSWORDLESS: "passwordless"
2753
- }, Go = e.enum([
2777
+ }, Bo = e.enum([
2754
2778
  "phone",
2755
2779
  "totp",
2756
2780
  "email",
@@ -2760,7 +2784,7 @@ const _o = e.object({
2760
2784
  "passkey"
2761
2785
  ]), K = e.object({
2762
2786
  user_id: e.string(),
2763
- type: Go,
2787
+ type: Bo,
2764
2788
  // Phone-specific
2765
2789
  phone_number: e.string().optional(),
2766
2790
  // TOTP-specific
@@ -2794,19 +2818,19 @@ function z(t, o) {
2794
2818
  path: ["public_key"]
2795
2819
  }));
2796
2820
  }
2797
- const $n = K.superRefine(z), Jn = e.object({
2821
+ const ei = K.superRefine(z), ti = e.object({
2798
2822
  ...K.shape,
2799
2823
  id: e.string(),
2800
2824
  created_at: e.string(),
2801
2825
  updated_at: e.string()
2802
2826
  }).superRefine(z);
2803
- function ei(t) {
2827
+ function oi(t) {
2804
2828
  const [o, n] = t.split("|");
2805
2829
  if (!o || !n)
2806
2830
  throw new Error(`Invalid user_id: ${t}`);
2807
2831
  return { connection: o, id: n };
2808
2832
  }
2809
- function ti(t) {
2833
+ function ni(t) {
2810
2834
  const {
2811
2835
  primary: o,
2812
2836
  secondaries: n,
@@ -2847,10 +2871,10 @@ function ti(t) {
2847
2871
  };
2848
2872
  return new Proxy(o, S);
2849
2873
  }
2850
- function oi(t) {
2874
+ function ii(t) {
2851
2875
  return t;
2852
2876
  }
2853
- function ni(t) {
2877
+ function ai(t) {
2854
2878
  var S, c, a, d, _, y, g, s, b, A, f, I;
2855
2879
  const o = t == null ? void 0 : t.options;
2856
2880
  if (!o)
@@ -2877,199 +2901,201 @@ function ni(t) {
2877
2901
  usernameMaxLength: ((I = (f = o.validation) == null ? void 0 : f.username) == null ? void 0 : I.max) ?? 15
2878
2902
  };
2879
2903
  }
2880
- function ii(t) {
2904
+ function ri(t) {
2881
2905
  return typeof t == "object" && t !== null && !Array.isArray(t);
2882
2906
  }
2883
2907
  export {
2884
- Xo as Auth0ActionEnum,
2908
+ Vo as Auth0ActionEnum,
2885
2909
  Qt as Auth0Client,
2886
2910
  D as AuthorizationResponseMode,
2887
2911
  v as AuthorizationResponseType,
2888
2912
  L as CodeChallengeMethod,
2889
2913
  k as ComponentCategory,
2890
2914
  R as ComponentType,
2891
- Vo as EmailActionEnum,
2892
- pn as FORM_FIELD_TYPES,
2893
- qo as FlowActionTypeEnum,
2915
+ Yo as EmailActionEnum,
2916
+ cn as FORM_FIELD_TYPES,
2917
+ Xo as FlowActionTypeEnum,
2894
2918
  co as GrantType,
2895
2919
  $t as LocationInfo,
2896
2920
  Yt as LogTypes,
2897
2921
  G as LoginSessionState,
2898
2922
  ve as NodeType,
2899
2923
  ce as RedirectTargetEnum,
2900
- Zn as Strategy,
2901
- Qn as StrategyType,
2924
+ $n as Strategy,
2925
+ Jn as StrategyType,
2902
2926
  Q as actionDependencySchema,
2903
2927
  w as actionInsertSchema,
2904
2928
  Ue as actionNodeSchema,
2905
- Ko as actionSchema,
2929
+ zo as actionSchema,
2906
2930
  $ as actionSecretSchema,
2907
2931
  Z as actionTriggerSchema,
2908
- Wo as actionUpdateSchema,
2909
- Vn as activeUsersResponseSchema,
2932
+ Ko as actionUpdateSchema,
2933
+ Zn as activeUsersResponseSchema,
2910
2934
  ee as actorSchema,
2911
2935
  he as addressSchema,
2912
2936
  ro as attackProtectionSchema,
2913
2937
  J as auditCategorySchema,
2914
2938
  re as auditEventInsertSchema,
2915
- zo as auditEventSchema,
2939
+ qo as auditEventSchema,
2916
2940
  ae as auth0ClientSchema,
2917
- nn as auth0FlowInsertSchema,
2941
+ an as auth0FlowInsertSchema,
2918
2942
  He as auth0FlowSchema,
2919
- Zo as auth0QuerySchema,
2943
+ Qo as auth0QuerySchema,
2920
2944
  le as auth0UpdateUserActionSchema,
2921
- $o as auth0UserResponseSchema,
2945
+ Jo as auth0UserResponseSchema,
2922
2946
  Ge as authParamsSchema,
2923
- $n as authenticationMethodInsertSchema,
2924
- Jn as authenticationMethodSchema,
2925
- Go as authenticationMethodTypeSchema,
2947
+ ei as authenticationMethodInsertSchema,
2948
+ ti as authenticationMethodSchema,
2949
+ Bo as authenticationMethodTypeSchema,
2926
2950
  j as baseUserSchema,
2927
2951
  It as blockComponentSchema,
2928
2952
  _o as bordersSchema,
2929
- an as brandingSchema,
2953
+ rn as brandingSchema,
2930
2954
  no as breachedPasswordDetectionSchema,
2931
2955
  io as bruteForceProtectionSchema,
2932
2956
  Ne as buttonComponentSchema,
2933
2957
  Ae as clientGrantInsertSchema,
2934
- tn as clientGrantListSchema,
2958
+ on as clientGrantListSchema,
2935
2959
  Ie as clientGrantSchema,
2936
2960
  ye as clientInsertSchema,
2937
2961
  Te as clientRegistrationTokenInsertSchema,
2938
- on as clientRegistrationTokenSchema,
2962
+ nn as clientRegistrationTokenSchema,
2939
2963
  Ce as clientRegistrationTokenTypeSchema,
2940
- en as clientSchema,
2964
+ tn as clientSchema,
2941
2965
  We as codeInsertSchema,
2942
- rn as codeSchema,
2966
+ sn as codeSchema,
2943
2967
  Be as codeTypeSchema,
2944
2968
  go as colorsSchema,
2945
2969
  kt as componentMessageSchema,
2946
2970
  ke as componentSchema,
2947
2971
  ze as connectionInsertSchema,
2948
2972
  Ke as connectionOptionsSchema,
2949
- sn as connectionSchema,
2973
+ ln as connectionSchema,
2950
2974
  m as coordinatesSchema,
2951
- ti as createPassthroughAdapter,
2952
- oi as createWriteOnlyAdapter,
2975
+ ni as createPassthroughAdapter,
2976
+ ii as createWriteOnlyAdapter,
2953
2977
  qe as customDomainInsertSchema,
2954
2978
  Ve as customDomainSchema,
2955
- ln as customDomainWithTenantIdSchema,
2956
- Yn as customTextEntrySchema,
2957
- Ho as customTextSchema,
2958
- Xn as dailyStatsSchema,
2959
- Dn as emailProviderSchema,
2979
+ pn as customDomainWithTenantIdSchema,
2980
+ Qn as customTextEntrySchema,
2981
+ Go as customTextSchema,
2982
+ Yn as dailyStatsSchema,
2983
+ Ln as emailProviderSchema,
2984
+ fo as emailTemplateNameSchema,
2985
+ Un as emailTemplateSchema,
2960
2986
  se as emailVerificationRulesSchema,
2961
2987
  pe as emailVerifyActionSchema,
2962
2988
  Me as endingSchema,
2963
2989
  Tt as fieldComponentSchema,
2964
2990
  _e as flowActionStepSchema,
2965
2991
  ge as flowInsertSchema,
2966
- Yo as flowSchema,
2992
+ Zo as flowSchema,
2967
2993
  je as flowsFieldComponentSchema,
2968
2994
  Le as flowsFlowNodeSchema,
2969
2995
  De as flowsStepNodeSchema,
2970
2996
  u as fontDetailsSchema,
2971
2997
  uo as fontsSchema,
2972
- cn as formControlSchema,
2998
+ dn as formControlSchema,
2973
2999
  Rt as formInsertSchema,
2974
3000
  U as formNodeComponentDefinition,
2975
3001
  jt as formNodeSchema,
2976
- dn as formSchema,
3002
+ _n as formSchema,
2977
3003
  Re as genericComponentSchema,
2978
3004
  xe as genericNodeSchema,
2979
- ni as getConnectionIdentifierConfig,
3005
+ ai as getConnectionIdentifierConfig,
2980
3006
  Gt as hookCodeInsertSchema,
2981
- En as hookCodeSchema,
2982
- bn as hookInsertSchema,
2983
- fn as hookSchema,
3007
+ Sn as hookCodeSchema,
3008
+ fn as hookInsertSchema,
3009
+ En as hookSchema,
2984
3010
  H as hookTemplateId,
2985
- hn as hookTemplates,
3011
+ bn as hookTemplates,
2986
3012
  me as identitySchema,
2987
3013
  Kt as inviteInsertSchema,
2988
- Sn as inviteSchema,
3014
+ yn as inviteSchema,
2989
3015
  Wt as inviteeSchema,
2990
3016
  Bt as inviterSchema,
2991
- gn as isBlockComponent,
2992
- mn as isFieldComponent,
2993
- ii as isPlainObject,
2994
- un as isWidgetComponent,
2995
- yn as jwksKeySchema,
3017
+ un as isBlockComponent,
3018
+ hn as isFieldComponent,
3019
+ ri as isPlainObject,
3020
+ mn as isWidgetComponent,
3021
+ An as jwksKeySchema,
2996
3022
  zt as jwksSchema,
2997
3023
  we as legalComponentSchema,
2998
3024
  ie as locationInfoSchema,
2999
3025
  Jt as logInsertSchema,
3000
- Cn as logSchema,
3026
+ Tn as logSchema,
3001
3027
  to as logStreamFilterSchema,
3002
3028
  oo as logStreamInsertSchema,
3003
- Tn as logStreamSchema,
3029
+ On as logStreamSchema,
3004
3030
  B as logStreamStatusSchema,
3005
3031
  eo as logStreamTypeSchema,
3006
3032
  Xt as loginSessionAuthStrategySchema,
3007
3033
  Vt as loginSessionInsertSchema,
3008
- In as loginSessionSchema,
3034
+ Cn as loginSessionSchema,
3009
3035
  qt as loginSessionStateSchema,
3010
3036
  Fe as nodeSchema,
3011
- An as openIDConfigurationSchema,
3012
- vo as organizationBrandingSchema,
3013
- xo as organizationConnectionInsertSchema,
3014
- Kn as organizationConnectionListSchema,
3015
- Fo as organizationConnectionSchema,
3016
- Do as organizationEnabledConnectionSchema,
3017
- Uo as organizationInsertSchema,
3018
- Wn as organizationSchema,
3019
- Lo as organizationTokenQuotaSchema,
3037
+ In as openIDConfigurationSchema,
3038
+ Do as organizationBrandingSchema,
3039
+ Fo as organizationConnectionInsertSchema,
3040
+ qn as organizationConnectionListSchema,
3041
+ Po as organizationConnectionSchema,
3042
+ Lo as organizationEnabledConnectionSchema,
3043
+ xo as organizationInsertSchema,
3044
+ zn as organizationSchema,
3045
+ Uo as organizationTokenQuotaSchema,
3020
3046
  mo as pageBackgroundSchema,
3021
- ei as parseUserId,
3047
+ oi as parseUserId,
3022
3048
  so as passwordInsertSchema,
3023
- On as passwordSchema,
3049
+ Nn as passwordSchema,
3024
3050
  ue as profileDataSchema,
3025
- Mo as promptScreenSchema,
3026
- vn as promptSettingSchema,
3051
+ Ho as promptScreenSchema,
3052
+ Dn as promptSettingSchema,
3027
3053
  de as redirectActionSchema,
3028
- fo as refreshTokenInsertSchema,
3029
- Ln as refreshTokenSchema,
3054
+ Eo as refreshTokenInsertSchema,
3055
+ xn as refreshTokenSchema,
3030
3056
  oe as requestContextSchema,
3031
- yo as resourceServerInsertSchema,
3032
- Fn as resourceServerListSchema,
3033
- So as resourceServerOptionsSchema,
3034
- Ao as resourceServerSchema,
3035
- Eo as resourceServerScopeSchema,
3057
+ Ao as resourceServerInsertSchema,
3058
+ Mn as resourceServerListSchema,
3059
+ yo as resourceServerOptionsSchema,
3060
+ Io as resourceServerSchema,
3061
+ So as resourceServerScopeSchema,
3036
3062
  ne as responseContextSchema,
3037
3063
  Oe as richTextComponentSchema,
3038
- Ro as roleInsertSchema,
3039
- Bn as roleListSchema,
3040
- Io as rolePermissionInsertSchema,
3041
- Pn as rolePermissionListSchema,
3042
- Co as rolePermissionSchema,
3043
- ko as roleSchema,
3064
+ ko as roleInsertSchema,
3065
+ Kn as roleListSchema,
3066
+ Co as rolePermissionInsertSchema,
3067
+ Hn as rolePermissionListSchema,
3068
+ To as rolePermissionSchema,
3069
+ vo as roleSchema,
3044
3070
  vt as screenLinkSchema,
3045
3071
  lo as sessionInsertSchema,
3046
- Nn as sessionSchema,
3047
- wn as signingKeySchema,
3048
- xn as smsProviderSchema,
3049
- Un as smsSendParamsSchema,
3072
+ wn as sessionSchema,
3073
+ jn as signingKeySchema,
3074
+ Pn as smsProviderSchema,
3075
+ Fn as smsSendParamsSchema,
3050
3076
  Pe as startSchema,
3051
3077
  ao as suspiciousIpThrottlingSchema,
3052
3078
  te as targetSchema,
3053
3079
  po as tenantInsertSchema,
3054
- jn as tenantSchema,
3055
- qn as tenantSettingsSchema,
3080
+ Rn as tenantSchema,
3081
+ Vn as tenantSettingsSchema,
3056
3082
  bo as themeInsertSchema,
3057
- kn as themeSchema,
3058
- Rn as tokenResponseSchema,
3059
- Qo as totalsSchema,
3060
- _n as uiScreenSchema,
3083
+ vn as themeSchema,
3084
+ kn as tokenResponseSchema,
3085
+ $o as totalsSchema,
3086
+ gn as uiScreenSchema,
3061
3087
  be as userInsertSchema,
3062
- Po as userOrganizationInsertSchema,
3063
- zn as userOrganizationSchema,
3064
- To as userPermissionInsertSchema,
3065
- Mn as userPermissionListSchema,
3066
- Oo as userPermissionSchema,
3067
- Hn as userPermissionWithDetailsListSchema,
3068
- No as userPermissionWithDetailsSchema,
3069
- Jo as userResponseSchema,
3070
- wo as userRoleInsertSchema,
3071
- Gn as userRoleListSchema,
3072
- jo as userRoleSchema,
3088
+ Mo as userOrganizationInsertSchema,
3089
+ Xn as userOrganizationSchema,
3090
+ Oo as userPermissionInsertSchema,
3091
+ Gn as userPermissionListSchema,
3092
+ No as userPermissionSchema,
3093
+ Bn as userPermissionWithDetailsListSchema,
3094
+ wo as userPermissionWithDetailsSchema,
3095
+ en as userResponseSchema,
3096
+ jo as userRoleInsertSchema,
3097
+ Wn as userRoleListSchema,
3098
+ Ro as userRoleSchema,
3073
3099
  fe as userSchema,
3074
3100
  Xe as verificationMethodsSchema,
3075
3101
  Ct as widgetComponentSchema,