@authhero/adapter-interfaces 2.0.0 → 2.1.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.
@@ -28,10 +28,10 @@ const a = e.object({
28
28
  // read through from the control-plane system action with a matching name.
29
29
  // The local `secrets` still override (local-first then upstream fallback).
30
30
  inherit: e.boolean().optional()
31
- }), en = v.partial().extend({
31
+ }), sn = v.partial().extend({
32
32
  status: e.enum(["draft", "built"]).optional(),
33
33
  deployed_at: e.string().optional()
34
- }), tn = v.extend({
34
+ }), rn = v.extend({
35
35
  id: e.string(),
36
36
  tenant_id: e.string(),
37
37
  status: e.enum(["draft", "built"]).default("built"),
@@ -68,7 +68,7 @@ const a = e.object({
68
68
  action_name: e.string(),
69
69
  lines: e.array(ie)
70
70
  })
71
- ), re = e.object({
71
+ ), se = e.object({
72
72
  id: e.string(),
73
73
  tenant_id: e.string(),
74
74
  trigger_id: ee,
@@ -77,11 +77,11 @@ const a = e.object({
77
77
  logs: ae.optional(),
78
78
  created_at: e.string(),
79
79
  updated_at: e.string()
80
- }), on = re.omit({
80
+ }), ln = se.omit({
81
81
  tenant_id: !0,
82
82
  created_at: !0,
83
83
  updated_at: !0
84
- }), se = e.object({
84
+ }), re = e.object({
85
85
  action_id: e.string(),
86
86
  code: e.string().max(1e5),
87
87
  runtime: e.string().max(50).optional(),
@@ -89,7 +89,7 @@ const a = e.object({
89
89
  secrets: e.array(R).optional(),
90
90
  supported_triggers: e.array(j).optional(),
91
91
  deployed: e.boolean().default(!0)
92
- }), nn = se.extend({
92
+ }), cn = re.extend({
93
93
  id: e.string(),
94
94
  tenant_id: e.string(),
95
95
  number: e.number().int(),
@@ -155,15 +155,15 @@ const a = e.object({
155
155
  hostname: e.string(),
156
156
  is_mobile: e.boolean().optional(),
157
157
  timestamp: e.string()
158
- }), an = me.extend({
158
+ }), pn = me.extend({
159
159
  id: e.string()
160
- }), rn = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), sn = e.enum([
160
+ }), dn = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), _n = e.enum([
161
161
  "CREATE_USER",
162
162
  "GET_USER",
163
163
  "UPDATE_USER",
164
164
  "SEND_REQUEST",
165
165
  "SEND_EMAIL"
166
- ]), ln = e.enum(["VERIFY_EMAIL"]), he = e.object({
166
+ ]), gn = e.enum(["VERIFY_EMAIL"]), he = e.object({
167
167
  require_mx_record: e.boolean().optional(),
168
168
  block_aliases: e.boolean().optional(),
169
169
  block_free_emails: e.boolean().optional(),
@@ -193,7 +193,7 @@ const a = e.object({
193
193
  email: e.string(),
194
194
  rules: he.optional()
195
195
  })
196
- }), Ee = e.enum(["change-email", "account", "custom"]), Se = e.object({
196
+ }), Se = e.enum(["change-email", "account", "custom"]), Ee = e.object({
197
197
  id: e.string(),
198
198
  alias: e.string().max(100).optional(),
199
199
  type: e.literal("REDIRECT"),
@@ -201,7 +201,7 @@ const a = e.object({
201
201
  allow_failure: e.boolean().optional(),
202
202
  mask_output: e.boolean().optional(),
203
203
  params: e.object({
204
- target: Ee.openapi({
204
+ target: Se.openapi({
205
205
  description: "The predefined target to redirect to, or 'custom' for a custom URL"
206
206
  }),
207
207
  custom_url: e.string().optional().openapi({
@@ -211,7 +211,7 @@ const a = e.object({
211
211
  }), ye = e.union([
212
212
  be,
213
213
  fe,
214
- Se
214
+ Ee
215
215
  ]), Ae = e.object({
216
216
  name: e.string().min(1).max(150).openapi({
217
217
  description: "The name of the flow"
@@ -220,13 +220,13 @@ const a = e.object({
220
220
  actions: e.array(ye).optional().default([]).openapi({
221
221
  description: "The list of actions to execute in sequence"
222
222
  })
223
- }), cn = Ae.extend({
223
+ }), un = Ae.extend({
224
224
  ...a.shape,
225
225
  id: e.string().openapi({
226
226
  description: "Unique identifier for the flow",
227
227
  example: "af_12tMpdJ3iek7svMyZkSh5M"
228
228
  })
229
- }), pn = e.object({
229
+ }), mn = e.object({
230
230
  page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
231
231
  description: "The page number where 0 is the first page"
232
232
  }),
@@ -242,7 +242,7 @@ const a = e.object({
242
242
  q: e.string().optional().openapi({
243
243
  description: "A lucene query string used to filter the results"
244
244
  })
245
- }), dn = e.object({
245
+ }), hn = e.object({
246
246
  start: e.number(),
247
247
  limit: e.number(),
248
248
  length: e.number(),
@@ -339,7 +339,7 @@ const a = e.object({
339
339
  hash: e.string(),
340
340
  algorithm: e.string()
341
341
  }).optional()
342
- }), Ne = e.object({
342
+ }), we = e.object({
343
343
  ...Oe.omit({ password: !0 }).shape,
344
344
  ...a.shape,
345
345
  user_id: e.string(),
@@ -348,19 +348,19 @@ const a = e.object({
348
348
  email: e.string().optional(),
349
349
  login_count: e.number().default(0),
350
350
  identities: e.array(Ce).optional()
351
- }), _n = Ne.omit({
351
+ }), bn = we.omit({
352
352
  registration_completed_at: !0
353
- }), gn = D.extend({
353
+ }), fn = D.extend({
354
354
  login_count: e.number(),
355
355
  multifactor: e.array(e.string()).optional(),
356
356
  last_ip: e.string().optional(),
357
357
  last_login: e.string().optional(),
358
358
  user_id: e.string()
359
359
  }).catchall(e.any());
360
- let we = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", je = (t = 21) => {
360
+ let Ne = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", je = (t = 21) => {
361
361
  let o = "", n = crypto.getRandomValues(new Uint8Array(t |= 0));
362
362
  for (; t--; )
363
- o += we[n[t] & 63];
363
+ o += Ne[n[t] & 63];
364
364
  return o;
365
365
  };
366
366
  const ke = e.object({
@@ -584,7 +584,7 @@ const ke = e.object({
584
584
  user_linking_mode: e.enum(["builtin", "off"]).optional().openapi({
585
585
  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."
586
586
  })
587
- }), un = e.object({
587
+ }), Sn = e.object({
588
588
  created_at: e.string(),
589
589
  updated_at: e.string(),
590
590
  ...ke.shape,
@@ -623,7 +623,7 @@ const ke = e.object({
623
623
  ...Re.shape,
624
624
  created_at: e.string().optional(),
625
625
  updated_at: e.string().optional()
626
- }), mn = e.array(ve), De = e.enum(["iat", "rat"]), Le = e.object({
626
+ }), En = e.array(ve), De = e.enum(["iat", "rat"]), Le = e.object({
627
627
  id: e.string(),
628
628
  token_hash: e.string(),
629
629
  type: De,
@@ -632,7 +632,7 @@ const ke = 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
- }), hn = e.object({
635
+ }), yn = e.object({
636
636
  created_at: e.string(),
637
637
  used_at: e.string().optional(),
638
638
  revoked_at: e.string().optional(),
@@ -835,13 +835,13 @@ const Be = e.object({
835
835
  sdkSrc: e.string().optional(),
836
836
  sdk_src: e.string().optional()
837
837
  }).passthrough()
838
- }).passthrough(), bn = Ye.omit({
838
+ }).passthrough(), An = Ye.omit({
839
839
  id: !0,
840
840
  created_at: !0,
841
841
  updated_at: !0
842
842
  });
843
843
  var U = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.ID_TOKEN = "id_token", t.TOKEN_ID_TOKEN = "id_token token", t.CODE = "code", t.CODE_ID_TOKEN = "code id_token", t.CODE_TOKEN = "code token", t.CODE_ID_TOKEN_TOKEN = "code id_token token", t))(U || {}), F = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(F || {}), P = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(P || {});
844
- const w = e.union([
844
+ const N = e.union([
845
845
  e.null(),
846
846
  e.object({
847
847
  essential: e.boolean().optional(),
@@ -849,8 +849,8 @@ const w = e.union([
849
849
  values: e.array(e.unknown()).optional()
850
850
  })
851
851
  ]).nullable(), Ze = e.object({
852
- userinfo: e.record(e.string(), w).optional(),
853
- id_token: e.record(e.string(), w).optional()
852
+ userinfo: e.record(e.string(), N).optional(),
853
+ id_token: e.record(e.string(), N).optional()
854
854
  }), Qe = e.object({
855
855
  client_id: e.string(),
856
856
  act_as: e.string().optional(),
@@ -878,7 +878,7 @@ const w = e.union([
878
878
  claims: Ze.optional(),
879
879
  // The following fields are not available in Auth0
880
880
  vendor_id: e.string().optional()
881
- }), fn = e.object({
881
+ }), In = e.object({
882
882
  colors: e.object({
883
883
  primary: e.string(),
884
884
  // Auth0 supports either a hex color string ("#ffffff") or a gradient
@@ -946,7 +946,7 @@ const w = e.union([
946
946
  expires_at: e.string(),
947
947
  used_at: e.string().optional(),
948
948
  user_id: e.string().optional()
949
- }), En = e.object({
949
+ }), Cn = e.object({
950
950
  ...Je.shape,
951
951
  created_at: e.string()
952
952
  }), et = e.object({
@@ -1114,7 +1114,7 @@ const tt = e.object({
1114
1114
  show_as_button: e.boolean().optional(),
1115
1115
  metadata: e.record(e.any()).optional(),
1116
1116
  is_system: e.boolean().optional()
1117
- }), Sn = e.object({
1117
+ }), Tn = e.object({
1118
1118
  id: e.string(),
1119
1119
  created_at: e.string().transform((t) => t === null ? "" : t),
1120
1120
  updated_at: e.string().transform((t) => t === null ? "" : t)
@@ -1153,7 +1153,7 @@ const tt = e.object({
1153
1153
  methods: e.array(nt)
1154
1154
  }).optional(),
1155
1155
  tls_policy: e.string().optional()
1156
- }), yn = it.extend({
1156
+ }), On = it.extend({
1157
1157
  tenant_id: e.string()
1158
1158
  }), O = e.object({
1159
1159
  id: e.string(),
@@ -1166,12 +1166,12 @@ const tt = e.object({
1166
1166
  config: e.object({
1167
1167
  text: e.string().optional()
1168
1168
  }).optional()
1169
- }), rt = l.extend({
1169
+ }), st = l.extend({
1170
1170
  type: e.literal("HTML"),
1171
1171
  config: e.object({
1172
1172
  content: e.string().optional()
1173
1173
  }).optional()
1174
- }), st = l.extend({
1174
+ }), rt = l.extend({
1175
1175
  type: e.literal("IMAGE"),
1176
1176
  config: e.object({
1177
1177
  src: e.string().optional(),
@@ -1206,23 +1206,23 @@ const tt = e.object({
1206
1206
  config: e.object({
1207
1207
  content: e.string().optional()
1208
1208
  }).optional()
1209
- }), N = O.extend({
1209
+ }), w = O.extend({
1210
1210
  category: e.literal("WIDGET").optional(),
1211
1211
  label: e.string().min(1).optional(),
1212
1212
  hint: e.string().min(1).max(500).optional(),
1213
1213
  required: e.boolean().optional(),
1214
1214
  sensitive: e.boolean().optional()
1215
- }), gt = N.extend({
1215
+ }), gt = w.extend({
1216
1216
  type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
1217
1217
  config: e.object({
1218
1218
  credential_type: e.string().optional()
1219
1219
  })
1220
- }), ut = N.extend({
1220
+ }), ut = w.extend({
1221
1221
  type: e.literal("GMAPS_ADDRESS"),
1222
1222
  config: e.object({
1223
1223
  api_key: e.string().optional()
1224
1224
  })
1225
- }), mt = N.extend({
1225
+ }), mt = w.extend({
1226
1226
  type: e.literal("RECAPTCHA"),
1227
1227
  config: e.object({
1228
1228
  site_key: e.string().optional()
@@ -1271,7 +1271,7 @@ const tt = e.object({
1271
1271
  multiple: e.boolean().optional(),
1272
1272
  default_value: e.union([e.string(), e.array(e.string())]).optional()
1273
1273
  }).optional()
1274
- }), Et = i.extend({
1274
+ }), St = i.extend({
1275
1275
  type: e.literal("CUSTOM"),
1276
1276
  config: e.object({
1277
1277
  component: e.string().optional(),
@@ -1279,7 +1279,7 @@ const tt = e.object({
1279
1279
  schema: e.record(e.any()).optional(),
1280
1280
  code: e.string().optional()
1281
1281
  })
1282
- }), St = i.extend({
1282
+ }), Et = i.extend({
1283
1283
  type: e.literal("DATE"),
1284
1284
  config: e.object({
1285
1285
  format: e.string().optional(),
@@ -1338,13 +1338,13 @@ const tt = e.object({
1338
1338
  forgot_password_link: e.string().optional(),
1339
1339
  default_value: e.string().optional()
1340
1340
  }).optional()
1341
- }), Nt = i.extend({
1341
+ }), wt = i.extend({
1342
1342
  type: e.literal("PAYMENT"),
1343
1343
  config: e.object({
1344
1344
  provider: e.string().optional(),
1345
1345
  currency: e.string().optional()
1346
1346
  }).optional()
1347
- }), wt = i.extend({
1347
+ }), Nt = i.extend({
1348
1348
  type: e.literal("SOCIAL"),
1349
1349
  config: e.object({
1350
1350
  providers: e.array(e.string()).optional(),
@@ -1389,8 +1389,8 @@ const tt = e.object({
1389
1389
  }).optional()
1390
1390
  }), Dt = e.discriminatedUnion("type", [
1391
1391
  at,
1392
- rt,
1393
1392
  st,
1393
+ rt,
1394
1394
  lt,
1395
1395
  ct,
1396
1396
  pt,
@@ -1405,16 +1405,16 @@ const tt = e.object({
1405
1405
  bt,
1406
1406
  ft,
1407
1407
  Rt,
1408
- Et,
1409
1408
  St,
1409
+ Et,
1410
1410
  yt,
1411
1411
  At,
1412
1412
  It,
1413
1413
  Ct,
1414
1414
  Tt,
1415
1415
  Ot,
1416
- Nt,
1417
1416
  wt,
1417
+ Nt,
1418
1418
  jt,
1419
1419
  kt,
1420
1420
  vt
@@ -1422,7 +1422,7 @@ const tt = e.object({
1422
1422
  Dt,
1423
1423
  Lt,
1424
1424
  xt
1425
- ]), An = /* @__PURE__ */ new Set([
1425
+ ]), wn = /* @__PURE__ */ new Set([
1426
1426
  "BOOLEAN",
1427
1427
  "CARDS",
1428
1428
  "CHOICE",
@@ -1436,7 +1436,7 @@ const tt = e.object({
1436
1436
  "TEL",
1437
1437
  "TEXT",
1438
1438
  "URL"
1439
- ]), In = e.object({
1439
+ ]), Nn = e.object({
1440
1440
  id: e.string(),
1441
1441
  type: e.literal("submit"),
1442
1442
  label: e.string(),
@@ -1445,13 +1445,13 @@ const tt = e.object({
1445
1445
  order: e.number().optional(),
1446
1446
  visible: e.boolean().optional().default(!0),
1447
1447
  customizations: e.record(e.string(), e.any()).optional()
1448
- }), E = e.object({
1448
+ }), S = e.object({
1449
1449
  x: e.number(),
1450
1450
  y: e.number()
1451
1451
  }), Ut = e.object({
1452
1452
  id: e.string(),
1453
1453
  type: e.literal("FLOW"),
1454
- coordinates: E,
1454
+ coordinates: S,
1455
1455
  alias: e.string().min(1).max(150).optional(),
1456
1456
  config: e.object({
1457
1457
  flow_id: e.string().max(30),
@@ -1460,7 +1460,7 @@ const tt = e.object({
1460
1460
  }), Ft = e.object({
1461
1461
  id: e.string(),
1462
1462
  type: e.literal("ROUTER"),
1463
- coordinates: E,
1463
+ coordinates: S,
1464
1464
  alias: e.string().min(1).max(150),
1465
1465
  config: e.object({
1466
1466
  rules: e.array(
@@ -1476,7 +1476,7 @@ const tt = e.object({
1476
1476
  }), Pt = e.object({
1477
1477
  id: e.string(),
1478
1478
  type: e.literal("STEP"),
1479
- coordinates: E,
1479
+ coordinates: S,
1480
1480
  alias: e.string().min(1).max(150).optional(),
1481
1481
  config: e.object({
1482
1482
  components: e.array(M),
@@ -1503,7 +1503,7 @@ const tt = e.object({
1503
1503
  start: e.object({
1504
1504
  hidden_fields: e.array(e.object({ key: e.string(), value: e.string() })).optional(),
1505
1505
  next_node: e.string().optional(),
1506
- coordinates: E.optional()
1506
+ coordinates: S.optional()
1507
1507
  }).optional(),
1508
1508
  ending: e.object({
1509
1509
  redirection: e.object({
@@ -1511,7 +1511,7 @@ const tt = e.object({
1511
1511
  target: e.string().optional()
1512
1512
  }).optional(),
1513
1513
  after_submit: e.object({ flow_id: e.string().optional() }).optional(),
1514
- coordinates: E.optional(),
1514
+ coordinates: S.optional(),
1515
1515
  resume_flow: e.boolean().optional()
1516
1516
  }).optional(),
1517
1517
  style: e.object({ css: e.string().optional() }).optional(),
@@ -1521,7 +1521,7 @@ const tt = e.object({
1521
1521
  }).optional()
1522
1522
  }).openapi({
1523
1523
  description: "Schema for flow-based forms (matches Auth0 Forms structure)"
1524
- }), Cn = e.object({
1524
+ }), jn = e.object({
1525
1525
  ...a.shape,
1526
1526
  ...Ht.shape,
1527
1527
  id: e.string()
@@ -1534,7 +1534,7 @@ const tt = e.object({
1534
1534
  text: e.string(),
1535
1535
  href: e.string(),
1536
1536
  linkText: e.string().optional()
1537
- }), Tn = e.object({
1537
+ }), kn = e.object({
1538
1538
  /** Screen identifier for CSS targeting (e.g., 'identifier', 'enter-password', 'signup') */
1539
1539
  name: e.string().optional(),
1540
1540
  action: e.string(),
@@ -1547,13 +1547,13 @@ const tt = e.object({
1547
1547
  /** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
1548
1548
  footer: e.string().optional()
1549
1549
  });
1550
- function On(t) {
1550
+ function Rn(t) {
1551
1551
  return t.category === "BLOCK";
1552
1552
  }
1553
- function Nn(t) {
1553
+ function vn(t) {
1554
1554
  return t.category === "WIDGET";
1555
1555
  }
1556
- function wn(t) {
1556
+ function Dn(t) {
1557
1557
  return t.category === "FIELD";
1558
1558
  }
1559
1559
  const H = e.enum([
@@ -1586,7 +1586,7 @@ const H = e.enum([
1586
1586
  "ensure-username",
1587
1587
  "set-preferred-username",
1588
1588
  "account-linking"
1589
- ]), jn = {
1589
+ ]), Ln = {
1590
1590
  "ensure-username": {
1591
1591
  name: "Ensure Username",
1592
1592
  description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
@@ -1639,7 +1639,7 @@ const H = e.enum([
1639
1639
  ...c,
1640
1640
  trigger_id: W,
1641
1641
  code_id: e.string()
1642
- }), kn = e.union([
1642
+ }), xn = e.union([
1643
1643
  Wt,
1644
1644
  Kt,
1645
1645
  zt,
@@ -1668,7 +1668,7 @@ const H = e.enum([
1668
1668
  ...a.shape,
1669
1669
  hook_id: e.string(),
1670
1670
  code_id: e.string()
1671
- }), Rn = e.union([
1671
+ }), Un = e.union([
1672
1672
  Xt,
1673
1673
  Vt,
1674
1674
  Yt,
@@ -1676,7 +1676,7 @@ const H = e.enum([
1676
1676
  ]), Qt = e.object({
1677
1677
  code: e.string().max(1e5),
1678
1678
  secrets: e.record(e.string()).optional()
1679
- }), vn = Qt.extend({
1679
+ }), Fn = Qt.extend({
1680
1680
  id: e.string(),
1681
1681
  tenant_id: e.string(),
1682
1682
  ...a.shape
@@ -1696,7 +1696,7 @@ const H = e.enum([
1696
1696
  ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
1697
1697
  roles: e.array(e.string()).default([]).optional(),
1698
1698
  send_invitation_email: e.boolean().default(!0).optional()
1699
- }), Dn = e.object({
1699
+ }), Pn = e.object({
1700
1700
  id: e.string(),
1701
1701
  organization_id: e.string().max(50),
1702
1702
  created_at: e.string().datetime(),
@@ -1741,9 +1741,9 @@ const H = e.enum([
1741
1741
  path: [n],
1742
1742
  message: `EC JWK is missing required member '${n}'`
1743
1743
  });
1744
- }), Ln = e.object({
1744
+ }), Mn = e.object({
1745
1745
  keys: e.array(to)
1746
- }), xn = e.object({
1746
+ }), Hn = e.object({
1747
1747
  issuer: e.string(),
1748
1748
  authorization_endpoint: e.string(),
1749
1749
  token_endpoint: e.string(),
@@ -1797,7 +1797,7 @@ const oo = e.nativeEnum(z), no = e.object({
1797
1797
  // ISO timestamp persisted for audit/metadata; not used to reject resumed sessions
1798
1798
  }).openapi({
1799
1799
  description: "This represents a login sesion"
1800
- }), Un = e.object({
1800
+ }), Gn = e.object({
1801
1801
  ...io.shape,
1802
1802
  id: e.string().openapi({
1803
1803
  description: "This is is used as the state in the universal login"
@@ -1978,10 +1978,10 @@ const oo = e.nativeEnum(z), no = e.object({
1978
1978
  WARNING_DURING_LOGIN: "w",
1979
1979
  WARNING_SENDING_NOTIFICATION: "wn",
1980
1980
  WARNING_USER_MANAGEMENT: "wum"
1981
- }, ro = e.string().refine(
1981
+ }, so = e.string().refine(
1982
1982
  (t) => Object.values(ao).includes(t),
1983
1983
  { message: "Invalid log type" }
1984
- ), so = e.object({
1984
+ ), ro = e.object({
1985
1985
  name: e.string(),
1986
1986
  version: e.string(),
1987
1987
  env: e.object({
@@ -1995,7 +1995,7 @@ const oo = e.nativeEnum(z), no = e.object({
1995
1995
  time_zone: e.string(),
1996
1996
  continent_code: e.string()
1997
1997
  }), co = e.object({
1998
- type: ro,
1998
+ type: so,
1999
1999
  date: e.string(),
2000
2000
  description: e.string().optional(),
2001
2001
  ip: e.string().optional(),
@@ -2014,10 +2014,10 @@ const oo = e.nativeEnum(z), no = e.object({
2014
2014
  strategy: e.string().optional(),
2015
2015
  strategy_type: e.string().optional(),
2016
2016
  hostname: e.string().optional(),
2017
- auth0_client: so.optional(),
2017
+ auth0_client: ro.optional(),
2018
2018
  log_id: e.string().optional(),
2019
2019
  location_info: lo.optional()
2020
- }), Fn = e.object({
2020
+ }), Bn = e.object({
2021
2021
  ...co.shape,
2022
2022
  log_id: e.string()
2023
2023
  }), po = e.enum([
@@ -2027,11 +2027,7 @@ const oo = e.nativeEnum(z), no = e.object({
2027
2027
  "splunk",
2028
2028
  "datadog",
2029
2029
  "sumo"
2030
- ]), q = e.enum([
2031
- "active",
2032
- "paused",
2033
- "suspended"
2034
- ]), _o = e.object({
2030
+ ]), q = e.enum(["active", "paused", "suspended"]), _o = e.object({
2035
2031
  type: e.string(),
2036
2032
  name: e.string()
2037
2033
  }), go = e.object({
@@ -2041,12 +2037,34 @@ const oo = e.nativeEnum(z), no = e.object({
2041
2037
  sink: e.record(e.string(), e.unknown()),
2042
2038
  filters: e.array(_o).optional(),
2043
2039
  isPriority: e.boolean().optional()
2044
- }), Pn = go.extend({
2040
+ }), Wn = go.extend({
2045
2041
  id: e.string(),
2046
2042
  status: q,
2047
2043
  created_at: e.string().optional(),
2048
2044
  updated_at: e.string().optional()
2049
- }), uo = e.object({
2045
+ }), uo = e.enum([
2046
+ "auth0",
2047
+ "cognito",
2048
+ "okta",
2049
+ "oidc"
2050
+ ]), mo = e.object({
2051
+ domain: e.string(),
2052
+ client_id: e.string(),
2053
+ client_secret: e.string(),
2054
+ audience: e.string().optional(),
2055
+ scope: e.string().optional()
2056
+ }), ho = e.object({
2057
+ id: e.string().optional(),
2058
+ name: e.string(),
2059
+ provider: uo,
2060
+ connection: e.string(),
2061
+ enabled: e.boolean().default(!0),
2062
+ credentials: mo
2063
+ }), Kn = e.object({
2064
+ id: e.string(),
2065
+ created_at: e.string(),
2066
+ updated_at: e.string()
2067
+ }).extend(ho.shape), bo = e.object({
2050
2068
  enabled: e.boolean().optional(),
2051
2069
  shields: e.array(e.string()).optional(),
2052
2070
  admin_notification_frequency: e.array(e.string()).optional(),
@@ -2059,13 +2077,13 @@ const oo = e.nativeEnum(z), no = e.object({
2059
2077
  shields: e.array(e.string()).optional()
2060
2078
  }).optional()
2061
2079
  }).optional()
2062
- }), mo = e.object({
2080
+ }), fo = e.object({
2063
2081
  enabled: e.boolean().optional(),
2064
2082
  shields: e.array(e.string()).optional(),
2065
2083
  allowlist: e.array(e.string()).optional(),
2066
2084
  mode: e.string().optional(),
2067
2085
  max_attempts: e.number().optional()
2068
- }), ho = e.object({
2086
+ }), So = e.object({
2069
2087
  enabled: e.boolean().optional(),
2070
2088
  shields: e.array(e.string()).optional(),
2071
2089
  allowlist: e.array(e.string()).optional(),
@@ -2079,17 +2097,17 @@ const oo = e.nativeEnum(z), no = e.object({
2079
2097
  rate: e.number().optional()
2080
2098
  }).optional()
2081
2099
  }).optional()
2082
- }), bo = e.object({
2083
- breached_password_detection: uo.optional(),
2084
- brute_force_protection: mo.optional(),
2085
- suspicious_ip_throttling: ho.optional()
2086
- }), fo = e.object({
2100
+ }), Eo = e.object({
2101
+ breached_password_detection: bo.optional(),
2102
+ brute_force_protection: fo.optional(),
2103
+ suspicious_ip_throttling: So.optional()
2104
+ }), yo = e.object({
2087
2105
  id: e.string().optional(),
2088
2106
  user_id: e.string(),
2089
2107
  password: e.string(),
2090
2108
  algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
2091
2109
  is_current: e.boolean().default(!0)
2092
- }), Mn = fo.extend({
2110
+ }), zn = yo.extend({
2093
2111
  id: e.string(),
2094
2112
  created_at: e.string(),
2095
2113
  updated_at: e.string()
@@ -2100,7 +2118,7 @@ const oo = e.nativeEnum(z), no = e.object({
2100
2118
  last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
2101
2119
  last_ip: e.string().describe("Last IP address from which this user logged in"),
2102
2120
  last_asn: e.string().describe("Last autonomous system number from which this user logged in")
2103
- }), Eo = e.object({
2121
+ }), Ao = e.object({
2104
2122
  id: e.string(),
2105
2123
  revoked_at: e.string().optional(),
2106
2124
  used_at: e.string().optional(),
@@ -2112,13 +2130,13 @@ const oo = e.nativeEnum(z), no = e.object({
2112
2130
  "Metadata related to the device used in the session"
2113
2131
  ),
2114
2132
  clients: e.array(e.string()).describe("List of client details for the session")
2115
- }), Hn = e.object({
2133
+ }), qn = e.object({
2116
2134
  created_at: e.string(),
2117
2135
  updated_at: e.string(),
2118
2136
  authenticated_at: e.string(),
2119
2137
  last_interaction_at: e.string(),
2120
- ...Eo.shape
2121
- }), Gn = e.object({
2138
+ ...Ao.shape
2139
+ }), Xn = e.object({
2122
2140
  kid: e.string().openapi({ description: "The key id of the signing key" }),
2123
2141
  tenant_id: e.string().optional().openapi({
2124
2142
  description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped."
@@ -2146,7 +2164,7 @@ const oo = e.nativeEnum(z), no = e.object({
2146
2164
  type: e.enum(["jwt_signing", "saml_encryption"]).openapi({
2147
2165
  description: "The type of the signing key"
2148
2166
  })
2149
- }), So = e.object({
2167
+ }), Io = e.object({
2150
2168
  id: e.string().optional(),
2151
2169
  // Basic settings
2152
2170
  audience: e.string(),
@@ -2299,7 +2317,7 @@ const oo = e.nativeEnum(z), no = e.object({
2299
2317
  pushed_authorization_requests_supported: e.boolean().optional(),
2300
2318
  authorization_response_iss_parameter_supported: e.boolean().optional(),
2301
2319
  // Attack-protection config (singleton, exposed via /api/v2/attack-protection)
2302
- attack_protection: bo.optional(),
2320
+ attack_protection: Eo.optional(),
2303
2321
  // Guardian MFA Factors configuration (internal storage, exposed via /guardian API)
2304
2322
  mfa: e.object({
2305
2323
  // MFA policy: "never" = MFA disabled, "always" = MFA required for all logins
@@ -2331,14 +2349,14 @@ const oo = e.nativeEnum(z), no = e.object({
2331
2349
  message: e.string().optional()
2332
2350
  }).optional()
2333
2351
  }).optional()
2334
- }), Bn = e.object({
2352
+ }), Vn = e.object({
2335
2353
  created_at: e.string().nullable().transform((t) => t ?? ""),
2336
2354
  updated_at: e.string().nullable().transform((t) => t ?? ""),
2337
- ...So.shape,
2355
+ ...Io.shape,
2338
2356
  id: e.string()
2339
2357
  });
2340
- var yo = /* @__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))(yo || {});
2341
- const Wn = e.object({
2358
+ 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 || {});
2359
+ const Yn = e.object({
2342
2360
  access_token: e.string(),
2343
2361
  id_token: e.string().optional(),
2344
2362
  scope: e.string().optional(),
@@ -2351,7 +2369,7 @@ e.object({
2351
2369
  code: e.string(),
2352
2370
  state: e.string().optional()
2353
2371
  });
2354
- const Ao = e.object({
2372
+ const To = e.object({
2355
2373
  button_border_radius: e.number(),
2356
2374
  button_border_weight: e.number(),
2357
2375
  buttons_style: e.enum(["pill", "rounded", "sharp"]),
@@ -2361,7 +2379,7 @@ const Ao = e.object({
2361
2379
  show_widget_shadow: e.boolean(),
2362
2380
  widget_border_weight: e.number(),
2363
2381
  widget_corner_radius: e.number()
2364
- }), Io = e.object({
2382
+ }), Oo = e.object({
2365
2383
  base_focus_color: e.string(),
2366
2384
  base_hover_color: e.string(),
2367
2385
  body_text: e.string(),
@@ -2384,7 +2402,7 @@ const Ao = e.object({
2384
2402
  }), u = e.object({
2385
2403
  bold: e.boolean(),
2386
2404
  size: e.number()
2387
- }), Co = e.object({
2405
+ }), wo = e.object({
2388
2406
  body_text: u,
2389
2407
  buttons_text: u,
2390
2408
  font_url: e.string(),
@@ -2394,7 +2412,7 @@ const Ao = e.object({
2394
2412
  reference_text_size: e.number(),
2395
2413
  subtitle: u,
2396
2414
  title: u
2397
- }), To = e.object({
2415
+ }), No = e.object({
2398
2416
  background_color: e.string(),
2399
2417
  background_image_url: e.string(),
2400
2418
  page_layout: e.enum(["center", "left", "right"]),
@@ -2407,33 +2425,33 @@ const Ao = e.object({
2407
2425
  * Optional for backwards compatibility; absent values mean "widget".
2408
2426
  */
2409
2427
  logo_placement: e.enum(["widget", "chip", "none"]).optional()
2410
- }), Oo = e.object({
2428
+ }), jo = e.object({
2411
2429
  header_text_alignment: e.enum(["center", "left", "right"]),
2412
2430
  logo_height: e.number(),
2413
2431
  logo_position: e.enum(["center", "left", "none", "right"]),
2414
2432
  logo_url: e.string(),
2415
2433
  social_buttons_layout: e.enum(["bottom", "top"])
2416
- }), No = e.object({
2417
- borders: Ao,
2418
- colors: Io,
2434
+ }), ko = e.object({
2435
+ borders: To,
2436
+ colors: Oo,
2419
2437
  displayName: e.string(),
2420
- fonts: Co,
2421
- page_background: To,
2422
- widget: Oo
2423
- }), Kn = No.extend({
2438
+ fonts: wo,
2439
+ page_background: No,
2440
+ widget: jo
2441
+ }), Zn = ko.extend({
2424
2442
  themeId: e.string()
2425
- }), zn = e.object({
2443
+ }), Qn = e.object({
2426
2444
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
2427
2445
  identifier_first: e.boolean().default(!0),
2428
2446
  password_first: e.boolean().default(!1),
2429
2447
  webauthn_platform_first_factor: e.boolean()
2430
- }), qn = e.object({
2448
+ }), $n = e.object({
2431
2449
  name: e.string(),
2432
2450
  enabled: e.boolean().optional().default(!0),
2433
2451
  default_from_address: e.string().optional(),
2434
2452
  credentials: e.record(e.string(), e.unknown()),
2435
2453
  settings: e.object({}).optional()
2436
- }), wo = e.enum([
2454
+ }), Ro = e.enum([
2437
2455
  "verify_email",
2438
2456
  "verify_email_by_code",
2439
2457
  "reset_email",
@@ -2446,8 +2464,8 @@ const Ao = e.object({
2446
2464
  "change_password",
2447
2465
  "password_reset",
2448
2466
  "user_invitation"
2449
- ]), Xn = e.object({
2450
- template: wo,
2467
+ ]), Jn = e.object({
2468
+ template: Ro,
2451
2469
  body: e.string(),
2452
2470
  from: e.string(),
2453
2471
  subject: e.string(),
@@ -2456,7 +2474,7 @@ const Ao = e.object({
2456
2474
  urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
2457
2475
  includeEmailInRedirect: e.boolean().default(!1),
2458
2476
  enabled: e.boolean().default(!0)
2459
- }), jo = e.object({
2477
+ }), vo = e.object({
2460
2478
  // Internal primary key (ULID). Never sent to clients in the new wire format.
2461
2479
  id: e.string(),
2462
2480
  // Link to the login session
@@ -2490,23 +2508,23 @@ const Ao = e.object({
2490
2508
  // ISO of the *first* rotation. Anchors the leeway window so siblings minted
2491
2509
  // within the window don't extend the parent's exposure.
2492
2510
  rotated_at: e.string().optional()
2493
- }), Vn = e.object({
2511
+ }), ei = e.object({
2494
2512
  // When the refresh token record was created.
2495
2513
  created_at: e.string(),
2496
2514
  // When the token was explicitly revoked (null = still active).
2497
2515
  revoked_at: e.string().optional(),
2498
2516
  // Spread in the rest of the refresh token properties.
2499
- ...jo.shape
2500
- }), Yn = e.object({
2517
+ ...vo.shape
2518
+ }), ti = e.object({
2501
2519
  to: e.string(),
2502
2520
  message: e.string()
2503
- }), Zn = e.object({
2521
+ }), oi = e.object({
2504
2522
  name: e.string(),
2505
2523
  options: e.object({})
2506
- }), ko = e.object({
2524
+ }), Do = e.object({
2507
2525
  value: e.string(),
2508
2526
  description: e.string().optional()
2509
- }), Ro = e.object({
2527
+ }), Lo = e.object({
2510
2528
  token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
2511
2529
  enforce_policies: e.boolean().optional(),
2512
2530
  allow_skipping_userinfo: e.boolean().optional(),
@@ -2516,11 +2534,11 @@ const Ao = e.object({
2516
2534
  mtls: e.object({
2517
2535
  bound_access_tokens: e.boolean().optional()
2518
2536
  }).optional()
2519
- }), vo = e.object({
2537
+ }), xo = e.object({
2520
2538
  id: e.string().optional(),
2521
2539
  name: e.string(),
2522
2540
  identifier: e.string(),
2523
- scopes: e.array(ko).optional(),
2541
+ scopes: e.array(Do).optional(),
2524
2542
  signing_alg: e.string().optional(),
2525
2543
  signing_secret: e.string().optional(),
2526
2544
  token_lifetime: e.number().default(86400),
@@ -2528,30 +2546,30 @@ const Ao = e.object({
2528
2546
  skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
2529
2547
  allow_offline_access: e.boolean().optional(),
2530
2548
  verificationKey: e.string().optional(),
2531
- options: Ro.optional(),
2549
+ options: Lo.optional(),
2532
2550
  is_system: e.boolean().optional(),
2533
2551
  metadata: e.record(e.any()).optional()
2534
- }), Do = e.object({
2535
- ...vo.shape,
2552
+ }), Uo = e.object({
2553
+ ...xo.shape,
2536
2554
  created_at: e.string().optional(),
2537
2555
  updated_at: e.string().optional()
2538
- }), Qn = e.array(Do), Lo = e.object({
2556
+ }), ni = e.array(Uo), Fo = e.object({
2539
2557
  role_id: e.string(),
2540
2558
  resource_server_identifier: e.string(),
2541
2559
  permission_name: e.string()
2542
- }), xo = e.object({
2543
- ...Lo.shape,
2560
+ }), Po = e.object({
2561
+ ...Fo.shape,
2544
2562
  created_at: e.string()
2545
- }), $n = e.array(xo), Uo = e.object({
2563
+ }), ii = e.array(Po), Mo = e.object({
2546
2564
  user_id: e.string(),
2547
2565
  resource_server_identifier: e.string(),
2548
2566
  permission_name: e.string(),
2549
2567
  organization_id: e.string().optional()
2550
- }), Fo = e.object({
2551
- ...Uo.shape,
2568
+ }), Ho = e.object({
2569
+ ...Mo.shape,
2552
2570
  tenant_id: e.string(),
2553
2571
  created_at: e.string().optional()
2554
- }), Jn = e.array(Fo), Po = e.object({
2572
+ }), ai = e.array(Ho), Go = e.object({
2555
2573
  user_id: e.string(),
2556
2574
  resource_server_identifier: e.string(),
2557
2575
  resource_server_name: e.string(),
@@ -2559,17 +2577,17 @@ const Ao = e.object({
2559
2577
  description: e.string().nullable().optional(),
2560
2578
  created_at: e.string().optional(),
2561
2579
  organization_id: e.string().optional()
2562
- }), ei = e.array(
2563
- Po
2564
- ), Mo = e.object({
2580
+ }), si = e.array(
2581
+ Go
2582
+ ), Bo = e.object({
2565
2583
  user_id: e.string(),
2566
2584
  role_id: e.string(),
2567
2585
  organization_id: e.string().optional()
2568
- }), Ho = e.object({
2569
- ...Mo.shape,
2586
+ }), Wo = e.object({
2587
+ ...Bo.shape,
2570
2588
  tenant_id: e.string(),
2571
2589
  created_at: e.string().optional()
2572
- }), ti = e.array(Ho), Go = e.object({
2590
+ }), ri = e.array(Wo), Ko = e.object({
2573
2591
  id: e.string().optional().openapi({
2574
2592
  description: "The unique identifier of the role. If not provided, one will be generated."
2575
2593
  }),
@@ -2583,13 +2601,13 @@ const Ao = e.object({
2583
2601
  metadata: e.record(e.any()).optional().openapi({
2584
2602
  description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."
2585
2603
  })
2586
- }), Bo = Go.extend({
2604
+ }), zo = Ko.extend({
2587
2605
  id: e.string().openapi({
2588
2606
  description: "The unique identifier of the role"
2589
2607
  }),
2590
2608
  created_at: e.string().optional(),
2591
2609
  updated_at: e.string().optional()
2592
- }), oi = e.array(Bo), Wo = e.object({
2610
+ }), li = e.array(zo), qo = e.object({
2593
2611
  logo_url: e.string().optional().openapi({
2594
2612
  description: "URL of the organization's logo"
2595
2613
  }),
@@ -2601,7 +2619,7 @@ const Ao = e.object({
2601
2619
  description: "Page background color in hex format (e.g., #FFFFFF)"
2602
2620
  })
2603
2621
  }).optional()
2604
- }).optional(), Ko = e.object({
2622
+ }).optional(), Xo = e.object({
2605
2623
  connection_id: e.string().openapi({
2606
2624
  description: "ID of the connection"
2607
2625
  }),
@@ -2614,7 +2632,7 @@ const Ao = e.object({
2614
2632
  is_signup_enabled: e.boolean().default(!0).openapi({
2615
2633
  description: "Whether signup is enabled for this connection"
2616
2634
  })
2617
- }), zo = e.object({
2635
+ }), Vo = e.object({
2618
2636
  client_credentials: e.object({
2619
2637
  enforce: e.boolean().default(!1).openapi({
2620
2638
  description: "Whether to enforce token quota limits"
@@ -2626,7 +2644,7 @@ const Ao = e.object({
2626
2644
  description: "Maximum tokens per hour (0 = unlimited)"
2627
2645
  })
2628
2646
  }).optional()
2629
- }).optional(), qo = e.object({
2647
+ }).optional(), Yo = e.object({
2630
2648
  id: e.string().optional(),
2631
2649
  name: e.string().min(1).regex(/^[a-z0-9_-]+$/, {
2632
2650
  message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"
@@ -2636,31 +2654,31 @@ const Ao = e.object({
2636
2654
  display_name: e.string().optional().openapi({
2637
2655
  description: "The display name of the organization"
2638
2656
  }),
2639
- branding: Wo,
2657
+ branding: qo,
2640
2658
  metadata: e.record(e.any()).default({}).optional().openapi({
2641
2659
  description: "Custom metadata for the organization"
2642
2660
  }),
2643
- enabled_connections: e.array(Ko).default([]).optional().openapi({
2661
+ enabled_connections: e.array(Xo).default([]).optional().openapi({
2644
2662
  description: "List of enabled connections for the organization"
2645
2663
  }),
2646
- token_quota: zo
2647
- }), ni = e.object({
2648
- ...qo.shape,
2664
+ token_quota: Vo
2665
+ }), ci = e.object({
2666
+ ...Yo.shape,
2649
2667
  ...a.shape,
2650
2668
  id: e.string(),
2651
2669
  // Override name to be lenient when reading from database (to support existing uppercase names)
2652
2670
  name: e.string().min(1).openapi({
2653
2671
  description: "The name of the organization"
2654
2672
  })
2655
- }), Xo = e.object({
2673
+ }), Zo = e.object({
2656
2674
  connection_id: e.string().openapi({
2657
2675
  description: "ID of the tenant-level connection to enable for the org."
2658
2676
  }),
2659
2677
  assign_membership_on_login: e.boolean().optional().default(!1),
2660
2678
  show_as_button: e.boolean().optional().default(!0),
2661
2679
  is_signup_enabled: e.boolean().optional().default(!0)
2662
- }), Vo = e.object({
2663
- ...Xo.shape,
2680
+ }), Qo = e.object({
2681
+ ...Zo.shape,
2664
2682
  // Auth0 includes the embedded connection in GET responses.
2665
2683
  connection: e.object({
2666
2684
  name: e.string().optional(),
@@ -2668,20 +2686,20 @@ const Ao = e.object({
2668
2686
  }).optional(),
2669
2687
  created_at: e.string().optional(),
2670
2688
  updated_at: e.string().optional()
2671
- }), ii = e.array(
2672
- Vo
2673
- ), Yo = e.object({
2689
+ }), pi = e.array(
2690
+ Qo
2691
+ ), $o = e.object({
2674
2692
  user_id: e.string().openapi({
2675
2693
  description: "ID of the user"
2676
2694
  }),
2677
2695
  organization_id: e.string().openapi({
2678
2696
  description: "ID of the organization"
2679
2697
  })
2680
- }), ai = e.object({
2681
- ...Yo.shape,
2698
+ }), di = e.object({
2699
+ ...$o.shape,
2682
2700
  ...a.shape,
2683
2701
  id: e.string()
2684
- }), ri = e.object({
2702
+ }), _i = e.object({
2685
2703
  // Session settings
2686
2704
  idle_session_lifetime: e.number().default(72),
2687
2705
  session_lifetime: e.number().default(168),
@@ -2781,7 +2799,7 @@ const Ao = e.object({
2781
2799
  message: e.string().optional()
2782
2800
  }).optional()
2783
2801
  }).optional()
2784
- }), si = e.object({
2802
+ }), gi = e.object({
2785
2803
  date: e.string().openapi({
2786
2804
  description: "Date these events occurred in ISO 8601 format",
2787
2805
  example: "2025-12-19"
@@ -2806,10 +2824,40 @@ const Ao = e.object({
2806
2824
  description: "Approximate date and time the first event occurred in ISO 8601 format",
2807
2825
  example: "2025-12-19T00:00:00.000Z"
2808
2826
  })
2809
- }), li = e.number().openapi({
2827
+ }), ui = e.number().openapi({
2810
2828
  description: "Number of active users in the last 30 days",
2811
2829
  example: 1234
2812
- }), Zo = e.enum([
2830
+ }), mi = e.enum([
2831
+ "active-users",
2832
+ "logins",
2833
+ "signups",
2834
+ "refresh-tokens",
2835
+ "sessions"
2836
+ ]), hi = e.enum(["hour", "day", "week", "month"]), bi = e.enum([
2837
+ "time",
2838
+ "connection",
2839
+ "client_id",
2840
+ "user_type",
2841
+ "event"
2842
+ ]), fi = e.enum([
2843
+ "password",
2844
+ "social",
2845
+ "passwordless",
2846
+ "enterprise"
2847
+ ]), Jo = e.object({
2848
+ name: e.string(),
2849
+ type: e.string()
2850
+ }), en = e.object({
2851
+ elapsed: e.number(),
2852
+ rows_read: e.number().optional(),
2853
+ bytes_read: e.number().optional()
2854
+ }), Si = e.object({
2855
+ meta: e.array(Jo),
2856
+ data: e.array(e.record(e.string(), e.any())),
2857
+ rows: e.number(),
2858
+ rows_before_limit_at_least: e.number().optional(),
2859
+ statistics: en.optional()
2860
+ }), tn = e.enum([
2813
2861
  "login",
2814
2862
  "login-id",
2815
2863
  "login-password",
@@ -2838,17 +2886,17 @@ const Ao = e.object({
2838
2886
  "custom-form",
2839
2887
  "login-passwordless",
2840
2888
  "mfa-login-options"
2841
- ]), Qo = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2889
+ ]), on = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2842
2890
  type: "object",
2843
2891
  additionalProperties: {
2844
2892
  type: "object",
2845
2893
  additionalProperties: { type: "string" }
2846
2894
  }
2847
- }), ci = e.object({
2848
- prompt: Zo,
2895
+ }), Ei = e.object({
2896
+ prompt: tn,
2849
2897
  language: e.string(),
2850
- custom_text: Qo
2851
- }), pi = {
2898
+ custom_text: on
2899
+ }), yi = {
2852
2900
  EMAIL: "email",
2853
2901
  SMS: "sms",
2854
2902
  USERNAME_PASSWORD: "Username-Password-Authentication",
@@ -2863,11 +2911,11 @@ const Ao = e.object({
2863
2911
  SAMLP: "samlp",
2864
2912
  WAAD: "waad",
2865
2913
  ADFS: "adfs"
2866
- }, di = {
2914
+ }, Ai = {
2867
2915
  DATABASE: "database",
2868
2916
  SOCIAL: "social",
2869
2917
  PASSWORDLESS: "passwordless"
2870
- }, $o = e.enum([
2918
+ }, nn = e.enum([
2871
2919
  "phone",
2872
2920
  "totp",
2873
2921
  "email",
@@ -2877,7 +2925,7 @@ const Ao = e.object({
2877
2925
  "passkey"
2878
2926
  ]), V = e.object({
2879
2927
  user_id: e.string(),
2880
- type: $o,
2928
+ type: nn,
2881
2929
  // Phone-specific
2882
2930
  phone_number: e.string().optional(),
2883
2931
  // TOTP-specific
@@ -2911,64 +2959,64 @@ function Y(t, o) {
2911
2959
  path: ["public_key"]
2912
2960
  }));
2913
2961
  }
2914
- const _i = V.superRefine(Y), gi = e.object({
2962
+ const Ii = V.superRefine(Y), Ci = e.object({
2915
2963
  ...V.shape,
2916
2964
  id: e.string(),
2917
2965
  created_at: e.string(),
2918
2966
  updated_at: e.string()
2919
2967
  }).superRefine(Y);
2920
- function ui(t) {
2968
+ function Ti(t) {
2921
2969
  const [o, n] = t.split("|");
2922
2970
  if (!o || !n)
2923
2971
  throw new Error(`Invalid user_id: ${t}`);
2924
2972
  return { connection: o, id: n };
2925
2973
  }
2926
- function mi(t) {
2974
+ function Oi(t) {
2927
2975
  const {
2928
2976
  primary: o,
2929
2977
  secondaries: n,
2930
2978
  syncMethods: h = ["create", "rawCreate", "update", "remove", "delete", "set"]
2931
- } = t, S = {
2932
- get(p, r) {
2933
- if (typeof r == "symbol")
2934
- return p[r];
2935
- const d = p[r];
2936
- return typeof d != "function" ? d : h.includes(r) ? async (..._) => {
2979
+ } = t, E = {
2980
+ get(p, s) {
2981
+ if (typeof s == "symbol")
2982
+ return p[s];
2983
+ const d = p[s];
2984
+ return typeof d != "function" ? d : h.includes(s) ? async (..._) => {
2937
2985
  const y = await d.apply(p, _), g = [];
2938
- for (const s of n) {
2939
- const b = s.adapter[r];
2986
+ for (const r of n) {
2987
+ const b = r.adapter[s];
2940
2988
  if (typeof b != "function")
2941
2989
  continue;
2942
2990
  const A = (async () => {
2943
2991
  try {
2944
- await b.apply(s.adapter, _);
2992
+ await b.apply(r.adapter, _);
2945
2993
  } catch (f) {
2946
2994
  try {
2947
- s.onError ? s.onError(f, r, _) : console.error(
2948
- `Passthrough adapter: secondary write failed for ${r}:`,
2995
+ r.onError ? r.onError(f, s, _) : console.error(
2996
+ `Passthrough adapter: secondary write failed for ${s}:`,
2949
2997
  f
2950
2998
  );
2951
2999
  } catch (I) {
2952
3000
  console.error(
2953
- `Passthrough adapter: onError handler threw for ${r}:`,
3001
+ `Passthrough adapter: onError handler threw for ${s}:`,
2954
3002
  I
2955
3003
  );
2956
3004
  }
2957
3005
  }
2958
3006
  })();
2959
- s.blocking && g.push(A);
3007
+ r.blocking && g.push(A);
2960
3008
  }
2961
3009
  return g.length > 0 && await Promise.all(g), y;
2962
3010
  } : d.bind(p);
2963
3011
  }
2964
3012
  };
2965
- return new Proxy(o, S);
3013
+ return new Proxy(o, E);
2966
3014
  }
2967
- function hi(t) {
3015
+ function wi(t) {
2968
3016
  return t;
2969
3017
  }
2970
- function bi(t) {
2971
- var S, p, r, d, _, y, g, s, b, A, f, I;
3018
+ function Ni(t) {
3019
+ var E, p, s, d, _, y, g, r, b, A, f, I;
2972
3020
  const o = t == null ? void 0 : t.options;
2973
3021
  if (!o)
2974
3022
  return {
@@ -2979,7 +3027,7 @@ function bi(t) {
2979
3027
  };
2980
3028
  const n = o.attributes;
2981
3029
  if (n) {
2982
- const Z = ((p = (S = n.username) == null ? void 0 : S.identifier) == null ? void 0 : p.active) === !0, Q = ((d = (r = n.email) == null ? void 0 : r.identifier) == null ? void 0 : d.active) !== !1, $ = ((y = (_ = n.username) == null ? void 0 : _.validation) == null ? void 0 : y.min_length) ?? 1, J = ((s = (g = n.username) == null ? void 0 : g.validation) == null ? void 0 : s.max_length) ?? 15;
3030
+ const Z = ((p = (E = n.username) == null ? void 0 : E.identifier) == null ? void 0 : p.active) === !0, Q = ((d = (s = n.email) == null ? void 0 : s.identifier) == null ? void 0 : d.active) !== !1, $ = ((y = (_ = n.username) == null ? void 0 : _.validation) == null ? void 0 : y.min_length) ?? 1, J = ((r = (g = n.username) == null ? void 0 : g.validation) == null ? void 0 : r.max_length) ?? 15;
2983
3031
  return {
2984
3032
  usernameIdentifierActive: Z,
2985
3033
  emailIdentifierActive: Q,
@@ -2994,214 +3042,225 @@ function bi(t) {
2994
3042
  usernameMaxLength: ((I = (f = o.validation) == null ? void 0 : f.username) == null ? void 0 : I.max) ?? 15
2995
3043
  };
2996
3044
  }
2997
- function fi(t) {
3045
+ function ji(t) {
2998
3046
  return typeof t == "object" && t !== null && !Array.isArray(t);
2999
3047
  }
3000
3048
  export {
3001
- sn as Auth0ActionEnum,
3002
- so as Auth0Client,
3049
+ _n as Auth0ActionEnum,
3050
+ ro as Auth0Client,
3003
3051
  F as AuthorizationResponseMode,
3004
3052
  U as AuthorizationResponseType,
3005
3053
  P as CodeChallengeMethod,
3006
3054
  x as ComponentCategory,
3007
3055
  L as ComponentType,
3008
- ln as EmailActionEnum,
3009
- An as FORM_FIELD_TYPES,
3010
- rn as FlowActionTypeEnum,
3011
- yo as GrantType,
3056
+ gn as EmailActionEnum,
3057
+ wn as FORM_FIELD_TYPES,
3058
+ dn as FlowActionTypeEnum,
3059
+ Co as GrantType,
3012
3060
  lo as LocationInfo,
3013
3061
  ao as LogTypes,
3014
3062
  z as LoginSessionState,
3015
3063
  Ge as NodeType,
3016
- Ee as RedirectTargetEnum,
3017
- pi as Strategy,
3018
- di as StrategyType,
3064
+ Se as RedirectTargetEnum,
3065
+ yi as Strategy,
3066
+ Ai as StrategyType,
3019
3067
  k as actionDependencySchema,
3020
3068
  oe as actionExecutionErrorSchema,
3021
- on as actionExecutionInsertSchema,
3069
+ ln as actionExecutionInsertSchema,
3022
3070
  ie as actionExecutionLogEntrySchema,
3023
3071
  ae as actionExecutionLogsSchema,
3024
3072
  ne as actionExecutionResultSchema,
3025
- re as actionExecutionSchema,
3073
+ se as actionExecutionSchema,
3026
3074
  te as actionExecutionStatusSchema,
3027
3075
  ee as actionExecutionTriggerIdSchema,
3028
3076
  v as actionInsertSchema,
3029
3077
  Ke as actionNodeSchema,
3030
- tn as actionSchema,
3078
+ rn as actionSchema,
3031
3079
  R as actionSecretSchema,
3032
3080
  j as actionTriggerSchema,
3033
- en as actionUpdateSchema,
3034
- se as actionVersionInsertSchema,
3035
- nn as actionVersionSchema,
3036
- li as activeUsersResponseSchema,
3081
+ sn as actionUpdateSchema,
3082
+ re as actionVersionInsertSchema,
3083
+ cn as actionVersionSchema,
3084
+ ui as activeUsersResponseSchema,
3037
3085
  ce as actorSchema,
3038
3086
  Te as addressSchema,
3039
- bo as attackProtectionSchema,
3087
+ Jo as analyticsColumnMetaSchema,
3088
+ bi as analyticsGroupBySchema,
3089
+ hi as analyticsIntervalSchema,
3090
+ Si as analyticsQueryResponseSchema,
3091
+ mi as analyticsResourceSchema,
3092
+ en as analyticsStatisticsSchema,
3093
+ fi as analyticsUserTypeSchema,
3094
+ Eo as attackProtectionSchema,
3040
3095
  le as auditCategorySchema,
3041
3096
  me as auditEventInsertSchema,
3042
- an as auditEventSchema,
3097
+ pn as auditEventSchema,
3043
3098
  ue as auth0ClientSchema,
3044
- bn as auth0FlowInsertSchema,
3099
+ An as auth0FlowInsertSchema,
3045
3100
  Ye as auth0FlowSchema,
3046
- pn as auth0QuerySchema,
3101
+ mn as auth0QuerySchema,
3047
3102
  be as auth0UpdateUserActionSchema,
3048
- _n as auth0UserResponseSchema,
3103
+ bn as auth0UserResponseSchema,
3049
3104
  Qe as authParamsSchema,
3050
- _i as authenticationMethodInsertSchema,
3051
- gi as authenticationMethodSchema,
3052
- $o as authenticationMethodTypeSchema,
3105
+ Ii as authenticationMethodInsertSchema,
3106
+ Ci as authenticationMethodSchema,
3107
+ nn as authenticationMethodTypeSchema,
3053
3108
  D as baseUserSchema,
3054
3109
  Dt as blockComponentSchema,
3055
- Ao as bordersSchema,
3056
- fn as brandingSchema,
3057
- uo as breachedPasswordDetectionSchema,
3058
- mo as bruteForceProtectionSchema,
3110
+ To as bordersSchema,
3111
+ In as brandingSchema,
3112
+ bo as breachedPasswordDetectionSchema,
3113
+ fo as bruteForceProtectionSchema,
3059
3114
  Ue as buttonComponentSchema,
3060
3115
  Ze as claimsRequestSchema,
3061
3116
  Re as clientGrantInsertSchema,
3062
- mn as clientGrantListSchema,
3117
+ En as clientGrantListSchema,
3063
3118
  ve as clientGrantSchema,
3064
3119
  ke as clientInsertSchema,
3065
3120
  Le as clientRegistrationTokenInsertSchema,
3066
- hn as clientRegistrationTokenSchema,
3121
+ yn as clientRegistrationTokenSchema,
3067
3122
  De as clientRegistrationTokenTypeSchema,
3068
- un as clientSchema,
3123
+ Sn as clientSchema,
3069
3124
  Je as codeInsertSchema,
3070
- En as codeSchema,
3125
+ Cn as codeSchema,
3071
3126
  $e as codeTypeSchema,
3072
- Io as colorsSchema,
3127
+ Oo as colorsSchema,
3073
3128
  Gt as componentMessageSchema,
3074
3129
  He as componentSchema,
3075
3130
  tt as connectionInsertSchema,
3076
3131
  et as connectionOptionsSchema,
3077
- Sn as connectionSchema,
3132
+ Tn as connectionSchema,
3078
3133
  m as coordinatesSchema,
3079
- mi as createPassthroughAdapter,
3080
- hi as createWriteOnlyAdapter,
3134
+ Oi as createPassthroughAdapter,
3135
+ wi as createWriteOnlyAdapter,
3081
3136
  ot as customDomainInsertSchema,
3082
3137
  it as customDomainSchema,
3083
- yn as customDomainWithTenantIdSchema,
3084
- ci as customTextEntrySchema,
3085
- Qo as customTextSchema,
3086
- si as dailyStatsSchema,
3087
- qn as emailProviderSchema,
3088
- wo as emailTemplateNameSchema,
3089
- Xn as emailTemplateSchema,
3138
+ On as customDomainWithTenantIdSchema,
3139
+ Ei as customTextEntrySchema,
3140
+ on as customTextSchema,
3141
+ gi as dailyStatsSchema,
3142
+ $n as emailProviderSchema,
3143
+ Ro as emailTemplateNameSchema,
3144
+ Jn as emailTemplateSchema,
3090
3145
  he as emailVerificationRulesSchema,
3091
3146
  fe as emailVerifyActionSchema,
3092
3147
  Ve as endingSchema,
3093
3148
  xt as fieldComponentSchema,
3094
3149
  ye as flowActionStepSchema,
3095
3150
  Ae as flowInsertSchema,
3096
- cn as flowSchema,
3151
+ un as flowSchema,
3097
3152
  Pe as flowsFieldComponentSchema,
3098
3153
  We as flowsFlowNodeSchema,
3099
3154
  Be as flowsStepNodeSchema,
3100
3155
  u as fontDetailsSchema,
3101
- Co as fontsSchema,
3102
- In as formControlSchema,
3156
+ wo as fontsSchema,
3157
+ Nn as formControlSchema,
3103
3158
  Ht as formInsertSchema,
3104
3159
  M as formNodeComponentDefinition,
3105
3160
  Mt as formNodeSchema,
3106
- Cn as formSchema,
3161
+ jn as formSchema,
3107
3162
  Me as genericComponentSchema,
3108
3163
  ze as genericNodeSchema,
3109
- bi as getConnectionIdentifierConfig,
3164
+ Ni as getConnectionIdentifierConfig,
3110
3165
  Qt as hookCodeInsertSchema,
3111
- vn as hookCodeSchema,
3112
- kn as hookInsertSchema,
3113
- Rn as hookSchema,
3166
+ Fn as hookCodeSchema,
3167
+ xn as hookInsertSchema,
3168
+ Un as hookSchema,
3114
3169
  K as hookTemplateId,
3115
- jn as hookTemplates,
3170
+ Ln as hookTemplates,
3116
3171
  Ce as identitySchema,
3117
3172
  eo as inviteInsertSchema,
3118
- Dn as inviteSchema,
3173
+ Pn as inviteSchema,
3119
3174
  Jt as inviteeSchema,
3120
3175
  $t as inviterSchema,
3121
- On as isBlockComponent,
3122
- wn as isFieldComponent,
3123
- fi as isPlainObject,
3124
- Nn as isWidgetComponent,
3125
- Ln as jwksKeySchema,
3176
+ Rn as isBlockComponent,
3177
+ Dn as isFieldComponent,
3178
+ ji as isPlainObject,
3179
+ vn as isWidgetComponent,
3180
+ Mn as jwksKeySchema,
3126
3181
  to as jwksSchema,
3127
3182
  Fe as legalComponentSchema,
3128
3183
  ge as locationInfoSchema,
3129
3184
  co as logInsertSchema,
3130
- Fn as logSchema,
3185
+ Bn as logSchema,
3131
3186
  _o as logStreamFilterSchema,
3132
3187
  go as logStreamInsertSchema,
3133
- Pn as logStreamSchema,
3188
+ Wn as logStreamSchema,
3134
3189
  q as logStreamStatusSchema,
3135
3190
  po as logStreamTypeSchema,
3136
3191
  no as loginSessionAuthStrategySchema,
3137
3192
  io as loginSessionInsertSchema,
3138
- Un as loginSessionSchema,
3193
+ Gn as loginSessionSchema,
3139
3194
  oo as loginSessionStateSchema,
3195
+ uo as migrationProviderTypeSchema,
3196
+ mo as migrationSourceCredentialsSchema,
3197
+ ho as migrationSourceInsertSchema,
3198
+ Kn as migrationSourceSchema,
3140
3199
  qe as nodeSchema,
3141
- xn as openIDConfigurationSchema,
3142
- Wo as organizationBrandingSchema,
3143
- Xo as organizationConnectionInsertSchema,
3144
- ii as organizationConnectionListSchema,
3145
- Vo as organizationConnectionSchema,
3146
- Ko as organizationEnabledConnectionSchema,
3147
- qo as organizationInsertSchema,
3148
- ni as organizationSchema,
3149
- zo as organizationTokenQuotaSchema,
3150
- To as pageBackgroundSchema,
3151
- ui as parseUserId,
3152
- fo as passwordInsertSchema,
3153
- Mn as passwordSchema,
3200
+ Hn as openIDConfigurationSchema,
3201
+ qo as organizationBrandingSchema,
3202
+ Zo as organizationConnectionInsertSchema,
3203
+ pi as organizationConnectionListSchema,
3204
+ Qo as organizationConnectionSchema,
3205
+ Xo as organizationEnabledConnectionSchema,
3206
+ Yo as organizationInsertSchema,
3207
+ ci as organizationSchema,
3208
+ Vo as organizationTokenQuotaSchema,
3209
+ No as pageBackgroundSchema,
3210
+ Ti as parseUserId,
3211
+ yo as passwordInsertSchema,
3212
+ zn as passwordSchema,
3154
3213
  Ie as profileDataSchema,
3155
- Zo as promptScreenSchema,
3156
- zn as promptSettingSchema,
3157
- Se as redirectActionSchema,
3158
- jo as refreshTokenInsertSchema,
3159
- Vn as refreshTokenSchema,
3214
+ tn as promptScreenSchema,
3215
+ Qn as promptSettingSchema,
3216
+ Ee as redirectActionSchema,
3217
+ vo as refreshTokenInsertSchema,
3218
+ ei as refreshTokenSchema,
3160
3219
  de as requestContextSchema,
3161
- vo as resourceServerInsertSchema,
3162
- Qn as resourceServerListSchema,
3163
- Ro as resourceServerOptionsSchema,
3164
- Do as resourceServerSchema,
3165
- ko as resourceServerScopeSchema,
3220
+ xo as resourceServerInsertSchema,
3221
+ ni as resourceServerListSchema,
3222
+ Lo as resourceServerOptionsSchema,
3223
+ Uo as resourceServerSchema,
3224
+ Do as resourceServerScopeSchema,
3166
3225
  _e as responseContextSchema,
3167
3226
  xe as richTextComponentSchema,
3168
- Go as roleInsertSchema,
3169
- oi as roleListSchema,
3170
- Lo as rolePermissionInsertSchema,
3171
- $n as rolePermissionListSchema,
3172
- xo as rolePermissionSchema,
3173
- Bo as roleSchema,
3227
+ Ko as roleInsertSchema,
3228
+ li as roleListSchema,
3229
+ Fo as rolePermissionInsertSchema,
3230
+ ii as rolePermissionListSchema,
3231
+ Po as rolePermissionSchema,
3232
+ zo as roleSchema,
3174
3233
  Bt as screenLinkSchema,
3175
- Eo as sessionInsertSchema,
3176
- Hn as sessionSchema,
3177
- Gn as signingKeySchema,
3178
- Zn as smsProviderSchema,
3179
- Yn as smsSendParamsSchema,
3234
+ Ao as sessionInsertSchema,
3235
+ qn as sessionSchema,
3236
+ Xn as signingKeySchema,
3237
+ oi as smsProviderSchema,
3238
+ ti as smsSendParamsSchema,
3180
3239
  Xe as startSchema,
3181
- ho as suspiciousIpThrottlingSchema,
3240
+ So as suspiciousIpThrottlingSchema,
3182
3241
  pe as targetSchema,
3183
- So as tenantInsertSchema,
3184
- Bn as tenantSchema,
3185
- ri as tenantSettingsSchema,
3186
- No as themeInsertSchema,
3187
- Kn as themeSchema,
3188
- Wn as tokenResponseSchema,
3189
- dn as totalsSchema,
3190
- Tn as uiScreenSchema,
3242
+ Io as tenantInsertSchema,
3243
+ Vn as tenantSchema,
3244
+ _i as tenantSettingsSchema,
3245
+ ko as themeInsertSchema,
3246
+ Zn as themeSchema,
3247
+ Yn as tokenResponseSchema,
3248
+ hn as totalsSchema,
3249
+ kn as uiScreenSchema,
3191
3250
  Oe as userInsertSchema,
3192
- Yo as userOrganizationInsertSchema,
3193
- ai as userOrganizationSchema,
3194
- Uo as userPermissionInsertSchema,
3195
- Jn as userPermissionListSchema,
3196
- Fo as userPermissionSchema,
3197
- ei as userPermissionWithDetailsListSchema,
3198
- Po as userPermissionWithDetailsSchema,
3199
- gn as userResponseSchema,
3200
- Mo as userRoleInsertSchema,
3201
- ti as userRoleListSchema,
3202
- Ho as userRoleSchema,
3203
- Ne as userSchema,
3251
+ $o as userOrganizationInsertSchema,
3252
+ di as userOrganizationSchema,
3253
+ Mo as userPermissionInsertSchema,
3254
+ ai as userPermissionListSchema,
3255
+ Ho as userPermissionSchema,
3256
+ si as userPermissionWithDetailsListSchema,
3257
+ Go as userPermissionWithDetailsSchema,
3258
+ fn as userResponseSchema,
3259
+ Bo as userRoleInsertSchema,
3260
+ ri as userRoleListSchema,
3261
+ Wo as userRoleSchema,
3262
+ we as userSchema,
3204
3263
  nt as verificationMethodsSchema,
3205
3264
  Lt as widgetComponentSchema,
3206
- Oo as widgetSchema
3265
+ jo as widgetSchema
3207
3266
  };