@authhero/adapter-interfaces 2.4.0 → 2.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.
@@ -2,10 +2,10 @@ import { z as e } from "@hono/zod-openapi";
2
2
  const s = e.object({
3
3
  created_at: e.string(),
4
4
  updated_at: e.string()
5
- }), F = e.object({
5
+ }), D = e.object({
6
6
  id: e.string(),
7
7
  version: e.string().optional()
8
- }), D = e.object({
8
+ }), F = e.object({
9
9
  name: e.string(),
10
10
  version: e.string()
11
11
  }), U = e.object({
@@ -16,9 +16,9 @@ const s = e.object({
16
16
  }), w = e.object({
17
17
  name: e.string().max(255),
18
18
  code: e.string().max(1e5),
19
- supported_triggers: e.array(F).optional(),
19
+ supported_triggers: e.array(D).optional(),
20
20
  runtime: e.string().max(50).optional(),
21
- dependencies: e.array(D).optional(),
21
+ dependencies: e.array(F).optional(),
22
22
  secrets: e.array(U).optional(),
23
23
  // Marks this action as a shared template owned by the control-plane tenant.
24
24
  // Other tenants can opt-in by creating a row with the same `name` and
@@ -85,9 +85,9 @@ const s = e.object({
85
85
  action_id: e.string(),
86
86
  code: e.string().max(1e5),
87
87
  runtime: e.string().max(50).optional(),
88
- dependencies: e.array(D).optional(),
88
+ dependencies: e.array(F).optional(),
89
89
  secrets: e.array(U).optional(),
90
- supported_triggers: e.array(F).optional(),
90
+ supported_triggers: e.array(D).optional(),
91
91
  deployed: e.boolean().default(!0)
92
92
  }), _n = le.extend({
93
93
  id: e.string(),
@@ -208,19 +208,19 @@ const s = e.object({
208
208
  description: "Custom URL to redirect to when target is 'custom'"
209
209
  })
210
210
  })
211
- }), Ie = e.union([
211
+ }), Ce = e.union([
212
212
  he,
213
213
  be,
214
214
  fe
215
- ]), Ce = e.object({
215
+ ]), Ie = e.object({
216
216
  name: e.string().min(1).max(150).openapi({
217
217
  description: "The name of the flow"
218
218
  }),
219
219
  // Actions is an array of action steps (Auth0 stores as JSON blob)
220
- actions: e.array(Ie).optional().default([]).openapi({
220
+ actions: e.array(Ce).optional().default([]).openapi({
221
221
  description: "The list of actions to execute in sequence"
222
222
  })
223
- }), En = Ce.extend({
223
+ }), En = Ie.extend({
224
224
  ...s.shape,
225
225
  id: e.string().openapi({
226
226
  description: "Unique identifier for the flow",
@@ -357,13 +357,13 @@ const s = e.object({
357
357
  last_login: e.string().optional(),
358
358
  user_id: e.string()
359
359
  }).catchall(e.any());
360
- let Le = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Fe = (o = 21) => {
360
+ let Le = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", De = (o = 21) => {
361
361
  let n = "", i = crypto.getRandomValues(new Uint8Array(o |= 0));
362
362
  for (; o--; )
363
363
  n += Le[i[o] & 63];
364
364
  return n;
365
365
  };
366
- const De = e.object({
366
+ const Fe = e.object({
367
367
  client_id: e.string().optional().openapi({
368
368
  description: "ID of this client. Generated server-side if omitted (Auth0 behavior)."
369
369
  }),
@@ -376,7 +376,7 @@ const De = e.object({
376
376
  global: e.boolean().default(!1).openapi({
377
377
  description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
378
378
  }),
379
- client_secret: e.string().default(() => Fe()).optional().openapi({
379
+ client_secret: e.string().default(() => De()).optional().openapi({
380
380
  description: "Client secret (which you must not make public)."
381
381
  }),
382
382
  app_type: e.enum([
@@ -587,7 +587,7 @@ const De = e.object({
587
587
  }), fn = e.object({
588
588
  created_at: e.string(),
589
589
  updated_at: e.string(),
590
- ...De.shape,
590
+ ...Fe.shape,
591
591
  // Insert allows omitting (server-generated to match Auth0). The read schema
592
592
  // always has it — the row in storage is non-null.
593
593
  client_id: e.string()
@@ -623,7 +623,7 @@ const De = e.object({
623
623
  ...Ue.shape,
624
624
  created_at: e.string().optional(),
625
625
  updated_at: e.string().optional()
626
- }), In = e.array(we), ke = e.enum(["iat", "rat"]), je = e.object({
626
+ }), Cn = e.array(we), ke = e.enum(["iat", "rat"]), je = e.object({
627
627
  id: e.string(),
628
628
  token_hash: e.string(),
629
629
  type: ke,
@@ -632,7 +632,7 @@ const De = e.object({
632
632
  constraints: e.record(e.unknown()).optional(),
633
633
  single_use: e.boolean().default(!1),
634
634
  expires_at: e.string().optional()
635
- }), Cn = e.object({
635
+ }), In = e.object({
636
636
  created_at: e.string(),
637
637
  used_at: e.string().optional(),
638
638
  revoked_at: e.string().optional(),
@@ -658,7 +658,7 @@ const T = e.object({
658
658
  config: e.object({
659
659
  content: e.string()
660
660
  }).passthrough()
661
- }), ve = T.extend({
661
+ }), Pe = T.extend({
662
662
  category: e.literal(
663
663
  "BLOCK"
664
664
  /* BLOCK */
@@ -680,7 +680,7 @@ const T = e.object({
680
680
  config: e.object({
681
681
  text: e.string()
682
682
  }).passthrough()
683
- }), Pe = T.extend({
683
+ }), ve = T.extend({
684
684
  category: e.literal(
685
685
  "FIELD"
686
686
  /* FIELD */
@@ -753,13 +753,13 @@ const T = e.object({
753
753
  type: e.string()
754
754
  }).passthrough(), Ge = e.union([
755
755
  Me,
756
- ve,
757
756
  Pe,
757
+ ve,
758
758
  xe,
759
759
  He
760
760
  ]);
761
- var Be = /* @__PURE__ */ ((o) => (o.STEP = "STEP", o.FLOW = "FLOW", o.CONDITION = "CONDITION", o.ACTION = "ACTION", o))(Be || {});
762
- const Ke = e.object({
761
+ var We = /* @__PURE__ */ ((o) => (o.STEP = "STEP", o.FLOW = "FLOW", o.CONDITION = "CONDITION", o.ACTION = "ACTION", o))(We || {});
762
+ const Be = e.object({
763
763
  id: e.string(),
764
764
  type: e.literal(
765
765
  "STEP"
@@ -771,7 +771,7 @@ const Ke = e.object({
771
771
  components: e.array(Ge),
772
772
  next_node: e.string()
773
773
  }).passthrough()
774
- }), We = e.object({
774
+ }), Ke = e.object({
775
775
  id: e.string(),
776
776
  type: e.literal(
777
777
  "FLOW"
@@ -810,8 +810,8 @@ const Ke = e.object({
810
810
  type: e.string(),
811
811
  coordinates: E
812
812
  }).passthrough(), qe = e.union([
813
+ Be,
813
814
  Ke,
814
- We,
815
815
  Ve,
816
816
  Xe
817
817
  ]), ze = e.object({
@@ -840,7 +840,7 @@ const Ke = e.object({
840
840
  created_at: !0,
841
841
  updated_at: !0
842
842
  });
843
- var v = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.ID_TOKEN = "id_token", o.TOKEN_ID_TOKEN = "id_token token", o.CODE = "code", o.CODE_ID_TOKEN = "code id_token", o.CODE_TOKEN = "code token", o.CODE_ID_TOKEN_TOKEN = "code id_token token", o))(v || {}), P = /* @__PURE__ */ ((o) => (o.QUERY = "query", o.FRAGMENT = "fragment", o.FORM_POST = "form_post", o.WEB_MESSAGE = "web_message", o.SAML_POST = "saml_post", o))(P || {}), x = /* @__PURE__ */ ((o) => (o.S256 = "S256", o.Plain = "plain", o))(x || {});
843
+ var P = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.ID_TOKEN = "id_token", o.TOKEN_ID_TOKEN = "id_token token", o.CODE = "code", o.CODE_ID_TOKEN = "code id_token", o.CODE_TOKEN = "code token", o.CODE_ID_TOKEN_TOKEN = "code id_token token", o))(P || {}), v = /* @__PURE__ */ ((o) => (o.QUERY = "query", o.FRAGMENT = "fragment", o.FORM_POST = "form_post", o.WEB_MESSAGE = "web_message", o.SAML_POST = "saml_post", o))(v || {}), x = /* @__PURE__ */ ((o) => (o.S256 = "S256", o.Plain = "plain", o))(x || {});
844
844
  const L = e.union([
845
845
  e.null(),
846
846
  e.object({
@@ -854,8 +854,8 @@ const L = e.union([
854
854
  }), Je = e.object({
855
855
  client_id: e.string(),
856
856
  act_as: e.string().optional(),
857
- response_type: e.nativeEnum(v).optional(),
858
- response_mode: e.nativeEnum(P).optional(),
857
+ response_type: e.nativeEnum(P).optional(),
858
+ response_mode: e.nativeEnum(v).optional(),
859
859
  redirect_uri: e.string().optional(),
860
860
  audience: e.string().optional(),
861
861
  organization: e.string().optional(),
@@ -1290,7 +1290,7 @@ const ot = e.object({
1290
1290
  max: e.string().optional(),
1291
1291
  default_value: e.string().optional()
1292
1292
  }).optional()
1293
- }), It = a.extend({
1293
+ }), Ct = a.extend({
1294
1294
  type: e.literal("DROPDOWN"),
1295
1295
  config: e.object({
1296
1296
  options: e.array(
@@ -1304,7 +1304,7 @@ const ot = e.object({
1304
1304
  multiple: e.boolean().optional(),
1305
1305
  default_value: e.union([e.string(), e.array(e.string())]).optional()
1306
1306
  }).optional()
1307
- }), Ct = a.extend({
1307
+ }), It = a.extend({
1308
1308
  type: e.literal("EMAIL"),
1309
1309
  config: e.object({
1310
1310
  placeholder: e.string().optional(),
@@ -1362,7 +1362,7 @@ const ot = e.object({
1362
1362
  })
1363
1363
  ).optional()
1364
1364
  }).optional()
1365
- }), Ft = a.extend({
1365
+ }), Dt = a.extend({
1366
1366
  type: e.literal("TEL"),
1367
1367
  config: e.object({
1368
1368
  placeholder: e.string().optional(),
@@ -1370,7 +1370,7 @@ const ot = e.object({
1370
1370
  default_value: e.string().optional(),
1371
1371
  allow_email: e.boolean().optional()
1372
1372
  }).optional()
1373
- }), Dt = a.extend({
1373
+ }), Ft = a.extend({
1374
1374
  type: e.literal("TEXT"),
1375
1375
  config: e.object({
1376
1376
  placeholder: e.string().optional(),
@@ -1410,16 +1410,16 @@ const ot = e.object({
1410
1410
  Ut,
1411
1411
  At,
1412
1412
  ft,
1413
- It,
1414
1413
  Ct,
1414
+ It,
1415
1415
  Ot,
1416
1416
  Tt,
1417
1417
  Nt,
1418
1418
  yt,
1419
1419
  Rt,
1420
1420
  Lt,
1421
- Ft,
1422
1421
  Dt,
1422
+ Ft,
1423
1423
  wt
1424
1424
  ]), H = e.union([
1425
1425
  kt,
@@ -1439,7 +1439,7 @@ const ot = e.object({
1439
1439
  "TEL",
1440
1440
  "TEXT",
1441
1441
  "URL"
1442
- ]), Fn = e.object({
1442
+ ]), Dn = e.object({
1443
1443
  id: e.string(),
1444
1444
  type: e.literal("submit"),
1445
1445
  label: e.string(),
@@ -1451,7 +1451,7 @@ const ot = e.object({
1451
1451
  }), A = e.object({
1452
1452
  x: e.number(),
1453
1453
  y: e.number()
1454
- }), vt = e.object({
1454
+ }), Pt = e.object({
1455
1455
  id: e.string(),
1456
1456
  type: e.literal("FLOW"),
1457
1457
  coordinates: A,
@@ -1460,7 +1460,7 @@ const ot = e.object({
1460
1460
  flow_id: e.string().max(30),
1461
1461
  next_node: e.string().optional()
1462
1462
  })
1463
- }), Pt = e.object({
1463
+ }), vt = e.object({
1464
1464
  id: e.string(),
1465
1465
  type: e.literal("ROUTER"),
1466
1466
  coordinates: A,
@@ -1486,8 +1486,8 @@ const ot = e.object({
1486
1486
  next_node: e.string().optional()
1487
1487
  })
1488
1488
  }), Ht = e.discriminatedUnion("type", [
1489
- vt,
1490
1489
  Pt,
1490
+ vt,
1491
1491
  xt
1492
1492
  ]), Gt = e.object({
1493
1493
  name: e.string().openapi({
@@ -1524,15 +1524,15 @@ const ot = e.object({
1524
1524
  }).optional()
1525
1525
  }).openapi({
1526
1526
  description: "Schema for flow-based forms (matches Auth0 Forms structure)"
1527
- }), Dn = e.object({
1527
+ }), Fn = e.object({
1528
1528
  ...s.shape,
1529
1529
  ...Gt.shape,
1530
1530
  id: e.string()
1531
- }), Bt = e.object({
1531
+ }), Wt = e.object({
1532
1532
  id: e.number().optional(),
1533
1533
  text: e.string(),
1534
1534
  type: e.enum(["info", "error", "success", "warning"])
1535
- }), Kt = e.object({
1535
+ }), Bt = e.object({
1536
1536
  id: e.string().optional(),
1537
1537
  text: e.string(),
1538
1538
  href: e.string(),
@@ -1545,8 +1545,8 @@ const ot = e.object({
1545
1545
  title: e.string().optional(),
1546
1546
  description: e.string().optional(),
1547
1547
  components: e.array(H),
1548
- messages: e.array(Bt).optional(),
1549
- links: e.array(Kt).optional(),
1548
+ messages: e.array(Wt).optional(),
1549
+ links: e.array(Bt).optional(),
1550
1550
  /** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
1551
1551
  footer: e.string().optional()
1552
1552
  });
@@ -1568,19 +1568,19 @@ const G = e.enum([
1568
1568
  "pre-user-deletion",
1569
1569
  "post-user-deletion"
1570
1570
  // Potentially other triggers specific to webhooks in the future
1571
- ]), B = e.enum([
1571
+ ]), W = e.enum([
1572
1572
  "pre-user-registration",
1573
1573
  "post-user-registration",
1574
1574
  "post-user-login",
1575
1575
  "validate-registration-username",
1576
1576
  "pre-user-deletion",
1577
1577
  "post-user-deletion"
1578
- ]), K = e.enum([
1578
+ ]), B = e.enum([
1579
1579
  "post-user-login",
1580
1580
  "post-user-registration",
1581
1581
  "post-user-update",
1582
1582
  "credentials-exchange"
1583
- ]), W = e.enum([
1583
+ ]), K = e.enum([
1584
1584
  "post-user-login",
1585
1585
  "credentials-exchange",
1586
1586
  "pre-user-registration",
@@ -1626,24 +1626,24 @@ const G = e.enum([
1626
1626
  * Everything else is opaque to the runtime. Persisted as JSON.
1627
1627
  */
1628
1628
  metadata: e.record(e.unknown()).optional()
1629
- }, Wt = e.object({
1629
+ }, Kt = e.object({
1630
1630
  ...p,
1631
1631
  trigger_id: G,
1632
1632
  url: e.string()
1633
1633
  }), Vt = e.object({
1634
1634
  ...p,
1635
- trigger_id: B,
1635
+ trigger_id: W,
1636
1636
  form_id: e.string()
1637
1637
  }), Xt = e.object({
1638
1638
  ...p,
1639
- trigger_id: K,
1639
+ trigger_id: B,
1640
1640
  template_id: V
1641
1641
  }), qt = e.object({
1642
1642
  ...p,
1643
- trigger_id: W,
1643
+ trigger_id: K,
1644
1644
  code_id: e.string()
1645
- }), vn = e.union([
1646
- Wt,
1645
+ }), Pn = e.union([
1646
+ Kt,
1647
1647
  Vt,
1648
1648
  Xt,
1649
1649
  qt
@@ -1655,23 +1655,23 @@ const G = e.enum([
1655
1655
  url: e.string()
1656
1656
  }), Yt = e.object({
1657
1657
  ...p,
1658
- trigger_id: B,
1658
+ trigger_id: W,
1659
1659
  ...s.shape,
1660
1660
  hook_id: e.string(),
1661
1661
  form_id: e.string()
1662
1662
  }), Qt = e.object({
1663
1663
  ...p,
1664
- trigger_id: K,
1664
+ trigger_id: B,
1665
1665
  ...s.shape,
1666
1666
  hook_id: e.string(),
1667
1667
  template_id: V
1668
1668
  }), Zt = e.object({
1669
1669
  ...p,
1670
- trigger_id: W,
1670
+ trigger_id: K,
1671
1671
  ...s.shape,
1672
1672
  hook_id: e.string(),
1673
1673
  code_id: e.string()
1674
- }), Pn = e.union([
1674
+ }), vn = e.union([
1675
1675
  zt,
1676
1676
  Yt,
1677
1677
  Qt,
@@ -1688,6 +1688,7 @@ const G = e.enum([
1688
1688
  }), eo = e.object({
1689
1689
  email: e.string().optional()
1690
1690
  }), to = e.object({
1691
+ id: e.string().optional(),
1691
1692
  organization_id: e.string().max(50),
1692
1693
  inviter: $t,
1693
1694
  invitee: eo,
@@ -1705,7 +1706,7 @@ const G = e.enum([
1705
1706
  created_at: e.string().datetime(),
1706
1707
  expires_at: e.string().datetime(),
1707
1708
  ticket_id: e.string().optional()
1708
- }).extend(to.shape), oo = e.object({
1709
+ }).extend(to.omit({ id: !0 }).shape), oo = e.object({
1709
1710
  alg: e.enum([
1710
1711
  "RS256",
1711
1712
  "RS384",
@@ -1746,7 +1747,7 @@ const G = e.enum([
1746
1747
  });
1747
1748
  }), Gn = e.object({
1748
1749
  keys: e.array(oo)
1749
- }), Bn = e.object({
1750
+ }), Wn = e.object({
1750
1751
  issuer: e.string(),
1751
1752
  authorization_endpoint: e.string(),
1752
1753
  token_endpoint: e.string(),
@@ -1800,7 +1801,7 @@ const no = e.nativeEnum(X), io = e.object({
1800
1801
  // ISO timestamp persisted for audit/metadata; not used to reject resumed sessions
1801
1802
  }).openapi({
1802
1803
  description: "This represents a login sesion"
1803
- }), Kn = e.object({
1804
+ }), Bn = e.object({
1804
1805
  ...ao.shape,
1805
1806
  id: e.string().openapi({
1806
1807
  description: "This is is used as the state in the universal login"
@@ -1952,6 +1953,7 @@ const no = e.nativeEnum(X), io = e.object({
1952
1953
  SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN: "sens",
1953
1954
  SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN: "seoobft",
1954
1955
  SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN: "seotpft",
1956
+ SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN: "sepotpft",
1955
1957
  SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN: "sepft",
1956
1958
  SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN: "sepkoobft",
1957
1959
  SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN: "sepkotpft",
@@ -2116,6 +2118,7 @@ const no = e.nativeEnum(X), io = e.object({
2116
2118
  [t.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Success Exchange Native Social Login",
2117
2119
  [t.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Password OOB for Access Token",
2118
2120
  [t.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Password OTP for Access Token",
2121
+ [t.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passwordless OTP for Access Token",
2119
2122
  [t.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Success Exchange Password for Access Token",
2120
2123
  [t.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OOB for Access Token",
2121
2124
  [t.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OTP for Access Token",
@@ -2148,10 +2151,10 @@ const no = e.nativeEnum(X), io = e.object({
2148
2151
  }, lo = (() => {
2149
2152
  const o = {};
2150
2153
  for (const [n, i] of Object.entries(t))
2151
- n.startsWith("SUCCESS_") || n.startsWith("SUCCESSFUL_") || n.startsWith("SUCCESSFULLY_") ? o[i] = "success" : n.startsWith("FAILED_") || n.startsWith("ERROR_") || n.startsWith("BREACHED_") || n.startsWith("BLOCKED_") || n === "MFA_AUTH_FAILED" || n === "MFA_AUTH_REJECTED" || n === "MFA_RECOVERY_FAILED" || n === "MFA_ENROLLMENT_FAILED" || n === "EMAIL_VERIFICATION_FAILED" || n === "WEBAUTHN_CHALLENGE_FAILED" || n === "WEBAUTHN_ENROLLMENT_FAILED" || n === "PASSKEY_CHALLENGE_FAILED" || n === "FLOWS_EXECUTION_FAILED" || n === "FORMS_SUBMISSION_FAILED" || n === "CIBA_EXCHANGE_FAILED" || n === "CIBA_START_FAILED" || n === "ACTIONS_EXECUTION_FAILED" || n === "RICH_CONSENTS_ACCESS_ERROR" || n === "USER_CANCELED_DEVICE_CONFIRMATION" || n === "TOO_MANY_MFA_FAILURES" || n === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || n === "API_LIMIT" || n === "MAX_AMOUNT_OF_AUTHENTICATORS" ? o[i] = "failure" : n.startsWith("WARNING_") || n === "API_LIMIT_WARNING" || n === "DEPRECATION_NOTICE" || n === "PRE_LOGIN_ASSESSMENT" ? o[i] = "warning" : n === "CODE_SENT" || n === "CODE_LINK_SENT" || n === "MFA_EMAIL_SENT" || n === "MFA_SMS_SENT" || n === "EMAIL_VERIFICATION_SENT" || n === "PUSH_NOTIFICATION_SENT" ? o[i] = "code_sent" : n === "INFORMATION" || n === "INFORMATION_FROM_SS_SSO_OPERATION" || n === "MANAGEMENT_API_READ_OPERATION" || n === "APPI" || n === "ACLS_SUMMARY" || n === "ORGANIZATION_MEMBER_ADDED" ? o[i] = "info" : o[i] = "other";
2154
+ n.startsWith("SUCCESS_") || n.startsWith("SUCCESSFUL_") || n.startsWith("SUCCESSFULLY_") || n.endsWith("_SUCCEEDED") || n.endsWith("_COMPLETED") ? o[i] = "success" : n.startsWith("FAILED_") || n.startsWith("ERROR_") || n.startsWith("BREACHED_") || n.startsWith("BLOCKED_") || n === "MFA_AUTH_FAILED" || n === "MFA_AUTH_REJECTED" || n === "MFA_RECOVERY_FAILED" || n === "MFA_ENROLLMENT_FAILED" || n === "EMAIL_VERIFICATION_FAILED" || n === "WEBAUTHN_CHALLENGE_FAILED" || n === "WEBAUTHN_ENROLLMENT_FAILED" || n === "PASSKEY_CHALLENGE_FAILED" || n === "FLOWS_EXECUTION_FAILED" || n === "FORMS_SUBMISSION_FAILED" || n === "CIBA_EXCHANGE_FAILED" || n === "CIBA_START_FAILED" || n === "ACTIONS_EXECUTION_FAILED" || n === "RICH_CONSENTS_ACCESS_ERROR" || n === "USER_CANCELED_DEVICE_CONFIRMATION" || n === "TOO_MANY_MFA_FAILURES" || n === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || n === "API_LIMIT" || n === "MAX_AMOUNT_OF_AUTHENTICATORS" ? o[i] = "failure" : n.startsWith("WARNING_") || n === "API_LIMIT_WARNING" || n === "DEPRECATION_NOTICE" || n === "PRE_LOGIN_ASSESSMENT" ? o[i] = "warning" : n === "CODE_SENT" || n === "CODE_LINK_SENT" || n === "MFA_EMAIL_SENT" || n === "MFA_SMS_SENT" || n === "EMAIL_VERIFICATION_SENT" || n === "PUSH_NOTIFICATION_SENT" ? o[i] = "code_sent" : n === "INFORMATION" || n === "INFORMATION_FROM_SS_SSO_OPERATION" || n === "MANAGEMENT_API_READ_OPERATION" || n === "APPI" || n === "ACLS_SUMMARY" || n === "ORGANIZATION_MEMBER_ADDED" ? o[i] = "info" : o[i] = "other";
2152
2155
  return o;
2153
2156
  })();
2154
- function Wn(o) {
2157
+ function Kn(o) {
2155
2158
  return ro[o] ?? o;
2156
2159
  }
2157
2160
  function Vn(o) {
@@ -2273,17 +2276,17 @@ const co = e.object({
2273
2276
  rate: e.number().optional()
2274
2277
  }).optional()
2275
2278
  }).optional()
2276
- }), Io = e.object({
2279
+ }), Co = e.object({
2277
2280
  breached_password_detection: bo.optional(),
2278
2281
  brute_force_protection: Ao.optional(),
2279
2282
  suspicious_ip_throttling: fo.optional()
2280
- }), Co = e.object({
2283
+ }), Io = e.object({
2281
2284
  id: e.string().optional(),
2282
2285
  user_id: e.string(),
2283
2286
  password: e.string(),
2284
2287
  algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
2285
2288
  is_current: e.boolean().default(!0)
2286
- }), Yn = Co.extend({
2289
+ }), Yn = Io.extend({
2287
2290
  id: e.string(),
2288
2291
  created_at: e.string(),
2289
2292
  updated_at: e.string()
@@ -2493,7 +2496,7 @@ const co = e.object({
2493
2496
  pushed_authorization_requests_supported: e.boolean().optional(),
2494
2497
  authorization_response_iss_parameter_supported: e.boolean().optional(),
2495
2498
  // Attack-protection config (singleton, exposed via /api/v2/attack-protection)
2496
- attack_protection: Io.optional(),
2499
+ attack_protection: Co.optional(),
2497
2500
  // Guardian MFA Factors configuration (internal storage, exposed via /guardian API)
2498
2501
  mfa: e.object({
2499
2502
  // MFA policy: "never" = MFA disabled, "always" = MFA required for all logins
@@ -2593,7 +2596,7 @@ const yo = e.object({
2593
2596
  reference_text_size: e.number(),
2594
2597
  subtitle: m,
2595
2598
  title: m
2596
- }), Fo = e.object({
2599
+ }), Do = e.object({
2597
2600
  background_color: e.string(),
2598
2601
  background_image_url: e.string(),
2599
2602
  page_layout: e.enum(["center", "left", "right"]),
@@ -2606,7 +2609,7 @@ const yo = e.object({
2606
2609
  * Optional for backwards compatibility; absent values mean "widget".
2607
2610
  */
2608
2611
  logo_placement: e.enum(["widget", "chip", "none"]).optional()
2609
- }), Do = e.object({
2612
+ }), Fo = e.object({
2610
2613
  header_text_alignment: e.enum(["center", "left", "right"]),
2611
2614
  logo_height: e.number(),
2612
2615
  logo_position: e.enum(["center", "left", "none", "right"]),
@@ -2617,8 +2620,8 @@ const yo = e.object({
2617
2620
  colors: Ro,
2618
2621
  displayName: e.string(),
2619
2622
  fonts: Lo,
2620
- page_background: Fo,
2621
- widget: Do
2623
+ page_background: Do,
2624
+ widget: Fo
2622
2625
  }), ei = Uo.extend({
2623
2626
  themeId: e.string()
2624
2627
  }), ti = e.object({
@@ -2715,7 +2718,7 @@ const yo = e.object({
2715
2718
  mtls: e.object({
2716
2719
  bound_access_tokens: e.boolean().optional()
2717
2720
  }).optional()
2718
- }), vo = e.object({
2721
+ }), Po = e.object({
2719
2722
  id: e.string().optional(),
2720
2723
  name: e.string(),
2721
2724
  identifier: e.string(),
@@ -2730,11 +2733,11 @@ const yo = e.object({
2730
2733
  options: Mo.optional(),
2731
2734
  is_system: e.boolean().optional(),
2732
2735
  metadata: e.record(e.any()).optional()
2733
- }), Po = e.object({
2734
- ...vo.shape,
2736
+ }), vo = e.object({
2737
+ ...Po.shape,
2735
2738
  created_at: e.string().optional(),
2736
2739
  updated_at: e.string().optional()
2737
- }), ri = e.array(Po), xo = e.object({
2740
+ }), ri = e.array(vo), xo = e.object({
2738
2741
  role_id: e.string(),
2739
2742
  resource_server_identifier: e.string(),
2740
2743
  permission_name: e.string()
@@ -2746,11 +2749,11 @@ const yo = e.object({
2746
2749
  resource_server_identifier: e.string(),
2747
2750
  permission_name: e.string(),
2748
2751
  organization_id: e.string().optional()
2749
- }), Bo = e.object({
2752
+ }), Wo = e.object({
2750
2753
  ...Go.shape,
2751
2754
  tenant_id: e.string(),
2752
2755
  created_at: e.string().optional()
2753
- }), ci = e.array(Bo), Ko = e.object({
2756
+ }), ci = e.array(Wo), Bo = e.object({
2754
2757
  user_id: e.string(),
2755
2758
  resource_server_identifier: e.string(),
2756
2759
  resource_server_name: e.string(),
@@ -2759,13 +2762,13 @@ const yo = e.object({
2759
2762
  created_at: e.string().optional(),
2760
2763
  organization_id: e.string().optional()
2761
2764
  }), pi = e.array(
2762
- Ko
2763
- ), Wo = e.object({
2765
+ Bo
2766
+ ), Ko = e.object({
2764
2767
  user_id: e.string(),
2765
2768
  role_id: e.string(),
2766
2769
  organization_id: e.string().optional()
2767
2770
  }), Vo = e.object({
2768
- ...Wo.shape,
2771
+ ...Ko.shape,
2769
2772
  tenant_id: e.string(),
2770
2773
  created_at: e.string().optional()
2771
2774
  }), _i = e.array(Vo), Xo = e.object({
@@ -3020,7 +3023,7 @@ const yo = e.object({
3020
3023
  "client_id",
3021
3024
  "user_type",
3022
3025
  "event"
3023
- ]), Ii = e.enum([
3026
+ ]), Ci = e.enum([
3024
3027
  "password",
3025
3028
  "social",
3026
3029
  "passwordless",
@@ -3032,7 +3035,7 @@ const yo = e.object({
3032
3035
  elapsed: e.number(),
3033
3036
  rows_read: e.number().optional(),
3034
3037
  bytes_read: e.number().optional()
3035
- }), Ci = e.object({
3038
+ }), Ii = e.object({
3036
3039
  meta: e.array(tn),
3037
3040
  data: e.array(e.record(e.string(), e.any())),
3038
3041
  rows: e.number(),
@@ -3152,7 +3155,7 @@ function Li(o) {
3152
3155
  throw new Error(`Invalid user_id: ${o}`);
3153
3156
  return { connection: n, id: i };
3154
3157
  }
3155
- function Fi(o) {
3158
+ function Di(o) {
3156
3159
  const {
3157
3160
  primary: n,
3158
3161
  secondaries: i,
@@ -3163,12 +3166,12 @@ function Fi(o) {
3163
3166
  return _[r];
3164
3167
  const d = _[r];
3165
3168
  return typeof d != "function" ? d : S.includes(r) ? async (...g) => {
3166
- const I = await d.apply(_, g), u = [];
3169
+ const C = await d.apply(_, g), u = [];
3167
3170
  for (const l of i) {
3168
3171
  const h = l.adapter[r];
3169
3172
  if (typeof h != "function")
3170
3173
  continue;
3171
- const C = (async () => {
3174
+ const I = (async () => {
3172
3175
  try {
3173
3176
  await h.apply(l.adapter, g);
3174
3177
  } catch (b) {
@@ -3185,19 +3188,19 @@ function Fi(o) {
3185
3188
  }
3186
3189
  }
3187
3190
  })();
3188
- l.blocking && u.push(C);
3191
+ l.blocking && u.push(I);
3189
3192
  }
3190
- return u.length > 0 && await Promise.all(u), I;
3193
+ return u.length > 0 && await Promise.all(u), C;
3191
3194
  } : d.bind(_);
3192
3195
  }
3193
3196
  };
3194
3197
  return new Proxy(n, f);
3195
3198
  }
3196
- function Di(o) {
3199
+ function Fi(o) {
3197
3200
  return o;
3198
3201
  }
3199
3202
  function Ui(o) {
3200
- var f, _, r, d, g, I, u, l, h, C, b, O;
3203
+ var f, _, r, d, g, C, u, l, h, I, b, O;
3201
3204
  const n = o == null ? void 0 : o.options;
3202
3205
  if (!n)
3203
3206
  return {
@@ -3208,7 +3211,7 @@ function Ui(o) {
3208
3211
  };
3209
3212
  const i = n.attributes;
3210
3213
  if (i) {
3211
- const Z = ((_ = (f = i.username) == null ? void 0 : f.identifier) == null ? void 0 : _.active) === !0, J = ((d = (r = i.email) == null ? void 0 : r.identifier) == null ? void 0 : d.active) !== !1, $ = ((I = (g = i.username) == null ? void 0 : g.validation) == null ? void 0 : I.min_length) ?? 1, ee = ((l = (u = i.username) == null ? void 0 : u.validation) == null ? void 0 : l.max_length) ?? 15;
3214
+ const Z = ((_ = (f = i.username) == null ? void 0 : f.identifier) == null ? void 0 : _.active) === !0, J = ((d = (r = i.email) == null ? void 0 : r.identifier) == null ? void 0 : d.active) !== !1, $ = ((C = (g = i.username) == null ? void 0 : g.validation) == null ? void 0 : C.min_length) ?? 1, ee = ((l = (u = i.username) == null ? void 0 : u.validation) == null ? void 0 : l.max_length) ?? 15;
3212
3215
  return {
3213
3216
  usernameIdentifierActive: Z,
3214
3217
  emailIdentifierActive: J,
@@ -3219,7 +3222,7 @@ function Ui(o) {
3219
3222
  return {
3220
3223
  usernameIdentifierActive: n.requires_username === !0,
3221
3224
  emailIdentifierActive: !0,
3222
- usernameMinLength: ((C = (h = n.validation) == null ? void 0 : h.username) == null ? void 0 : C.min) ?? 1,
3225
+ usernameMinLength: ((I = (h = n.validation) == null ? void 0 : h.username) == null ? void 0 : I.min) ?? 1,
3223
3226
  usernameMaxLength: ((O = (b = n.validation) == null ? void 0 : b.username) == null ? void 0 : O.max) ?? 15
3224
3227
  };
3225
3228
  }
@@ -3229,8 +3232,8 @@ function wi(o) {
3229
3232
  export {
3230
3233
  un as Auth0ActionEnum,
3231
3234
  co as Auth0Client,
3232
- P as AuthorizationResponseMode,
3233
- v as AuthorizationResponseType,
3235
+ v as AuthorizationResponseMode,
3236
+ P as AuthorizationResponseType,
3234
3237
  x as CodeChallengeMethod,
3235
3238
  M as ComponentCategory,
3236
3239
  j as ComponentType,
@@ -3241,11 +3244,11 @@ export {
3241
3244
  po as LocationInfo,
3242
3245
  t as LogTypes,
3243
3246
  X as LoginSessionState,
3244
- Be as NodeType,
3247
+ We as NodeType,
3245
3248
  Ae as RedirectTargetEnum,
3246
3249
  Ti as Strategy,
3247
3250
  Ni as StrategyType,
3248
- D as actionDependencySchema,
3251
+ F as actionDependencySchema,
3249
3252
  ne as actionExecutionErrorSchema,
3250
3253
  pn as actionExecutionInsertSchema,
3251
3254
  ae as actionExecutionLogEntrySchema,
@@ -3258,7 +3261,7 @@ export {
3258
3261
  Ve as actionNodeSchema,
3259
3262
  cn as actionSchema,
3260
3263
  U as actionSecretSchema,
3261
- F as actionTriggerSchema,
3264
+ D as actionTriggerSchema,
3262
3265
  ln as actionUpdateSchema,
3263
3266
  le as actionVersionInsertSchema,
3264
3267
  _n as actionVersionSchema,
@@ -3268,11 +3271,11 @@ export {
3268
3271
  tn as analyticsColumnMetaSchema,
3269
3272
  fi as analyticsGroupBySchema,
3270
3273
  Ai as analyticsIntervalSchema,
3271
- Ci as analyticsQueryResponseSchema,
3274
+ Ii as analyticsQueryResponseSchema,
3272
3275
  bi as analyticsResourceSchema,
3273
3276
  on as analyticsStatisticsSchema,
3274
- Ii as analyticsUserTypeSchema,
3275
- Io as attackProtectionSchema,
3277
+ Ci as analyticsUserTypeSchema,
3278
+ Co as attackProtectionSchema,
3276
3279
  ce as auditCategorySchema,
3277
3280
  Ee as auditEventInsertSchema,
3278
3281
  dn as auditEventSchema,
@@ -3292,28 +3295,28 @@ export {
3292
3295
  Tn as brandingSchema,
3293
3296
  bo as breachedPasswordDetectionSchema,
3294
3297
  Ao as bruteForceProtectionSchema,
3295
- ve as buttonComponentSchema,
3298
+ Pe as buttonComponentSchema,
3296
3299
  Ze as claimsRequestSchema,
3297
3300
  Ue as clientGrantInsertSchema,
3298
- In as clientGrantListSchema,
3301
+ Cn as clientGrantListSchema,
3299
3302
  we as clientGrantSchema,
3300
- De as clientInsertSchema,
3303
+ Fe as clientInsertSchema,
3301
3304
  je as clientRegistrationTokenInsertSchema,
3302
- Cn as clientRegistrationTokenSchema,
3305
+ In as clientRegistrationTokenSchema,
3303
3306
  ke as clientRegistrationTokenTypeSchema,
3304
3307
  fn as clientSchema,
3305
3308
  et as codeInsertSchema,
3306
3309
  Nn as codeSchema,
3307
3310
  $e as codeTypeSchema,
3308
3311
  Ro as colorsSchema,
3309
- Bt as componentMessageSchema,
3312
+ Wt as componentMessageSchema,
3310
3313
  Ge as componentSchema,
3311
3314
  ot as connectionInsertSchema,
3312
3315
  tt as connectionOptionsSchema,
3313
3316
  yn as connectionSchema,
3314
3317
  E as coordinatesSchema,
3315
- Fi as createPassthroughAdapter,
3316
- Di as createWriteOnlyAdapter,
3318
+ Di as createPassthroughAdapter,
3319
+ Fi as createWriteOnlyAdapter,
3317
3320
  nt as customDomainInsertSchema,
3318
3321
  at as customDomainSchema,
3319
3322
  Rn as customDomainWithTenantIdSchema,
@@ -3327,28 +3330,28 @@ export {
3327
3330
  be as emailVerifyActionSchema,
3328
3331
  Ye as endingSchema,
3329
3332
  Mt as fieldComponentSchema,
3330
- Ie as flowActionStepSchema,
3331
- Ce as flowInsertSchema,
3333
+ Ce as flowActionStepSchema,
3334
+ Ie as flowInsertSchema,
3332
3335
  En as flowSchema,
3333
3336
  xe as flowsFieldComponentSchema,
3334
- We as flowsFlowNodeSchema,
3335
- Ke as flowsStepNodeSchema,
3337
+ Ke as flowsFlowNodeSchema,
3338
+ Be as flowsStepNodeSchema,
3336
3339
  m as fontDetailsSchema,
3337
3340
  Lo as fontsSchema,
3338
- Fn as formControlSchema,
3341
+ Dn as formControlSchema,
3339
3342
  Gt as formInsertSchema,
3340
3343
  H as formNodeComponentDefinition,
3341
3344
  Ht as formNodeSchema,
3342
- Dn as formSchema,
3345
+ Fn as formSchema,
3343
3346
  He as genericComponentSchema,
3344
3347
  Xe as genericNodeSchema,
3345
3348
  Ui as getConnectionIdentifierConfig,
3346
3349
  Vn as getLogTypeCategory,
3347
- Wn as getLogTypeDescription,
3350
+ Kn as getLogTypeDescription,
3348
3351
  Jt as hookCodeInsertSchema,
3349
3352
  xn as hookCodeSchema,
3350
- vn as hookInsertSchema,
3351
- Pn as hookSchema,
3353
+ Pn as hookInsertSchema,
3354
+ vn as hookSchema,
3352
3355
  V as hookTemplateId,
3353
3356
  Mn as hookTemplates,
3354
3357
  Te as identitySchema,
@@ -3362,7 +3365,7 @@ export {
3362
3365
  kn as isWidgetComponent,
3363
3366
  Gn as jwksKeySchema,
3364
3367
  oo as jwksSchema,
3365
- Pe as legalComponentSchema,
3368
+ ve as legalComponentSchema,
3366
3369
  ue as locationInfoSchema,
3367
3370
  _o as logInsertSchema,
3368
3371
  Xn as logSchema,
@@ -3375,14 +3378,14 @@ export {
3375
3378
  ro as logTypeDescriptions,
3376
3379
  io as loginSessionAuthStrategySchema,
3377
3380
  ao as loginSessionInsertSchema,
3378
- Kn as loginSessionSchema,
3381
+ Bn as loginSessionSchema,
3379
3382
  no as loginSessionStateSchema,
3380
3383
  Eo as migrationProviderTypeSchema,
3381
3384
  So as migrationSourceCredentialsSchema,
3382
3385
  ho as migrationSourceInsertSchema,
3383
3386
  zn as migrationSourceSchema,
3384
3387
  qe as nodeSchema,
3385
- Bn as openIDConfigurationSchema,
3388
+ Wn as openIDConfigurationSchema,
3386
3389
  zo as organizationBrandingSchema,
3387
3390
  Jo as organizationConnectionInsertSchema,
3388
3391
  ui as organizationConnectionListSchema,
@@ -3391,9 +3394,9 @@ export {
3391
3394
  Zo as organizationInsertSchema,
3392
3395
  gi as organizationSchema,
3393
3396
  Qo as organizationTokenQuotaSchema,
3394
- Fo as pageBackgroundSchema,
3397
+ Do as pageBackgroundSchema,
3395
3398
  Li as parseUserId,
3396
- Co as passwordInsertSchema,
3399
+ Io as passwordInsertSchema,
3397
3400
  Yn as passwordSchema,
3398
3401
  Oe as profileDataSchema,
3399
3402
  nn as promptScreenSchema,
@@ -3402,10 +3405,10 @@ export {
3402
3405
  ko as refreshTokenInsertSchema,
3403
3406
  ii as refreshTokenSchema,
3404
3407
  de as requestContextSchema,
3405
- vo as resourceServerInsertSchema,
3408
+ Po as resourceServerInsertSchema,
3406
3409
  ri as resourceServerListSchema,
3407
3410
  Mo as resourceServerOptionsSchema,
3408
- Po as resourceServerSchema,
3411
+ vo as resourceServerSchema,
3409
3412
  jo as resourceServerScopeSchema,
3410
3413
  ge as responseContextSchema,
3411
3414
  Me as richTextComponentSchema,
@@ -3415,7 +3418,7 @@ export {
3415
3418
  li as rolePermissionListSchema,
3416
3419
  Ho as rolePermissionSchema,
3417
3420
  qo as roleSchema,
3418
- Kt as screenLinkSchema,
3421
+ Bt as screenLinkSchema,
3419
3422
  Oo as sessionInsertSchema,
3420
3423
  Qn as sessionSchema,
3421
3424
  Zn as signingKeySchema,
@@ -3437,15 +3440,15 @@ export {
3437
3440
  mi as userOrganizationSchema,
3438
3441
  Go as userPermissionInsertSchema,
3439
3442
  ci as userPermissionListSchema,
3440
- Bo as userPermissionSchema,
3443
+ Wo as userPermissionSchema,
3441
3444
  pi as userPermissionWithDetailsListSchema,
3442
- Ko as userPermissionWithDetailsSchema,
3445
+ Bo as userPermissionWithDetailsSchema,
3443
3446
  An as userResponseSchema,
3444
- Wo as userRoleInsertSchema,
3447
+ Ko as userRoleInsertSchema,
3445
3448
  _i as userRoleListSchema,
3446
3449
  Vo as userRoleSchema,
3447
3450
  Re as userSchema,
3448
3451
  it as verificationMethodsSchema,
3449
3452
  jt as widgetComponentSchema,
3450
- Do as widgetSchema
3453
+ Fo as widgetSchema
3451
3454
  };