@authhero/adapter-interfaces 1.12.0 → 1.13.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 r = e.object({
3
3
  created_at: e.string(),
4
4
  updated_at: e.string()
5
- }), Q = e.object({
5
+ }), Z = e.object({
6
6
  id: e.string(),
7
7
  version: e.string().optional()
8
- }), Z = e.object({
8
+ }), Q = e.object({
9
9
  name: e.string(),
10
10
  version: e.string()
11
11
  }), $ = e.object({
@@ -16,14 +16,14 @@ const r = 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(Q).optional(),
19
+ supported_triggers: e.array(Z).optional(),
20
20
  runtime: e.string().max(50).optional(),
21
- dependencies: e.array(Z).optional(),
21
+ dependencies: e.array(Q).optional(),
22
22
  secrets: e.array($).optional()
23
23
  }), Wo = w.partial().extend({
24
24
  status: e.enum(["draft", "built"]).optional(),
25
25
  deployed_at: e.string().optional()
26
- }), zo = w.extend({
26
+ }), Ko = w.extend({
27
27
  id: e.string(),
28
28
  tenant_id: e.string(),
29
29
  status: e.enum(["draft", "built"]).default("built"),
@@ -97,7 +97,7 @@ const r = e.object({
97
97
  hostname: e.string(),
98
98
  is_mobile: e.boolean().optional(),
99
99
  timestamp: e.string()
100
- }), Ko = re.extend({
100
+ }), zo = re.extend({
101
101
  id: e.string()
102
102
  }), qo = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), Xo = e.enum([
103
103
  "CREATE_USER",
@@ -168,7 +168,7 @@ const r = e.object({
168
168
  description: "Unique identifier for the flow",
169
169
  example: "af_12tMpdJ3iek7svMyZkSh5M"
170
170
  })
171
- }), Qo = e.object({
171
+ }), Zo = e.object({
172
172
  page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
173
173
  description: "The page number where 0 is the first page"
174
174
  }),
@@ -184,7 +184,7 @@ const r = e.object({
184
184
  q: e.string().optional().openapi({
185
185
  description: "A lucene query string used to filter the results"
186
186
  })
187
- }), Zo = e.object({
187
+ }), Qo = e.object({
188
188
  start: e.number(),
189
189
  limit: e.number(),
190
190
  length: e.number(),
@@ -300,9 +300,9 @@ const r = e.object({
300
300
  user_id: e.string()
301
301
  }).catchall(e.any());
302
302
  let Ee = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Se = (t = 21) => {
303
- let o = "", i = crypto.getRandomValues(new Uint8Array(t |= 0));
303
+ let o = "", n = crypto.getRandomValues(new Uint8Array(t |= 0));
304
304
  for (; t--; )
305
- o += Ee[i[t] & 63];
305
+ o += Ee[n[t] & 63];
306
306
  return o;
307
307
  };
308
308
  const ye = e.object({
@@ -428,8 +428,14 @@ const ye = e.object({
428
428
  addons: e.record(e.any()).default({}).optional().openapi({
429
429
  description: "Addons enabled for this client and their associated configurations."
430
430
  }),
431
- token_endpoint_auth_method: e.enum(["none", "client_secret_post", "client_secret_basic"]).default("client_secret_basic").optional().openapi({
432
- description: "Defines the requested authentication method for the token endpoint. Can be none (public client without a client secret), client_secret_post (client uses HTTP POST parameters), or client_secret_basic (client uses HTTP Basic)."
431
+ token_endpoint_auth_method: e.enum([
432
+ "none",
433
+ "client_secret_post",
434
+ "client_secret_basic",
435
+ "client_secret_jwt",
436
+ "private_key_jwt"
437
+ ]).default("client_secret_basic").optional().openapi({
438
+ description: "Defines the requested authentication method for the token endpoint. `none` (public client), `client_secret_post` / `client_secret_basic` (HTTP POST / Basic), `client_secret_jwt` (RFC 7523 HMAC assertion using client_secret), or `private_key_jwt` (RFC 7523 asymmetric assertion verified against the client's `jwks` / `jwks_uri`)."
433
439
  }),
434
440
  client_metadata: e.record(e.string().max(255)).default({}).optional().openapi({
435
441
  description: 'Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?"/()<>@ [Tab][Space]'
@@ -691,8 +697,8 @@ const C = e.object({
691
697
  je,
692
698
  Re
693
699
  ]);
694
- var De = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(De || {});
695
- const ve = e.object({
700
+ var ve = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(ve || {});
701
+ const De = e.object({
696
702
  id: e.string(),
697
703
  type: e.literal(
698
704
  "STEP"
@@ -743,7 +749,7 @@ const ve = e.object({
743
749
  type: e.string(),
744
750
  coordinates: m
745
751
  }).passthrough(), Fe = e.union([
746
- ve,
752
+ De,
747
753
  Le,
748
754
  Ue,
749
755
  xe
@@ -773,12 +779,12 @@ const ve = e.object({
773
779
  created_at: !0,
774
780
  updated_at: !0
775
781
  });
776
- var D = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.ID_TOKEN = "id_token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(D || {}), v = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(v || {}), L = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(L || {});
782
+ var v = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.ID_TOKEN = "id_token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(v || {}), D = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(D || {}), L = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(L || {});
777
783
  const Ge = e.object({
778
784
  client_id: e.string(),
779
785
  act_as: e.string().optional(),
780
- response_type: e.nativeEnum(D).optional(),
781
- response_mode: e.nativeEnum(v).optional(),
786
+ response_type: e.nativeEnum(v).optional(),
787
+ response_mode: e.nativeEnum(D).optional(),
782
788
  redirect_uri: e.string().optional(),
783
789
  audience: e.string().optional(),
784
790
  organization: e.string().optional(),
@@ -865,7 +871,7 @@ const Ge = e.object({
865
871
  }), rn = e.object({
866
872
  ...We.shape,
867
873
  created_at: e.string()
868
- }), ze = e.object({
874
+ }), Ke = e.object({
869
875
  kid: e.string().optional(),
870
876
  team_id: e.string().optional(),
871
877
  realms: e.string().optional(),
@@ -885,6 +891,8 @@ const Ge = e.object({
885
891
  twilio_sid: e.string().optional(),
886
892
  twilio_token: e.string().optional(),
887
893
  icon_url: e.string().optional(),
894
+ // Email domains that route to this connection via Home Realm Discovery
895
+ domain_aliases: e.array(e.string()).optional(),
888
896
  // Password policy options for Username-Password-Authentication connections
889
897
  passwordPolicy: e.enum(["none", "low", "fair", "good", "excellent"]).optional(),
890
898
  password_complexity_options: e.object({
@@ -984,21 +992,21 @@ function T(t) {
984
992
  return t.filter((o) => o !== null).map(T);
985
993
  if (t && typeof t == "object") {
986
994
  const o = {};
987
- for (const [i, h] of Object.entries(t))
988
- h !== null && (o[i] = T(h));
995
+ for (const [n, h] of Object.entries(t))
996
+ h !== null && (o[n] = T(h));
989
997
  return o;
990
998
  }
991
999
  return t;
992
1000
  }
993
1001
  }
994
- const Ke = e.object({
1002
+ const ze = e.object({
995
1003
  id: e.string().optional(),
996
1004
  name: e.string(),
997
1005
  display_name: e.string().optional(),
998
1006
  strategy: e.string(),
999
1007
  options: e.preprocess(
1000
1008
  (t) => t === null ? {} : T(t),
1001
- ze
1009
+ Ke
1002
1010
  ).default({}),
1003
1011
  enabled_clients: e.array(e.string()).default([]).optional(),
1004
1012
  response_type: e.custom().optional(),
@@ -1011,7 +1019,7 @@ const Ke = e.object({
1011
1019
  id: e.string(),
1012
1020
  created_at: e.string().transform((t) => t === null ? "" : t),
1013
1021
  updated_at: e.string().transform((t) => t === null ? "" : t)
1014
- }).extend(Ke.shape), qe = e.object({
1022
+ }).extend(ze.shape), qe = e.object({
1015
1023
  domain: e.string(),
1016
1024
  custom_domain_id: e.string().optional(),
1017
1025
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -1059,12 +1067,12 @@ const Ke = e.object({
1059
1067
  config: e.object({
1060
1068
  text: e.string().optional()
1061
1069
  }).optional()
1062
- }), Qe = l.extend({
1070
+ }), Ze = l.extend({
1063
1071
  type: e.literal("HTML"),
1064
1072
  config: e.object({
1065
1073
  content: e.string().optional()
1066
1074
  }).optional()
1067
- }), Ze = l.extend({
1075
+ }), Qe = l.extend({
1068
1076
  type: e.literal("IMAGE"),
1069
1077
  config: e.object({
1070
1078
  src: e.string().optional(),
@@ -1120,7 +1128,7 @@ const Ke = e.object({
1120
1128
  config: e.object({
1121
1129
  site_key: e.string().optional()
1122
1130
  })
1123
- }), n = O.extend({
1131
+ }), i = O.extend({
1124
1132
  category: e.literal("FIELD").optional(),
1125
1133
  label: e.string().min(1).optional(),
1126
1134
  hint: e.string().min(1).max(500).optional(),
@@ -1133,12 +1141,12 @@ const Ke = e.object({
1133
1141
  ).optional(),
1134
1142
  required: e.boolean().optional(),
1135
1143
  sensitive: e.boolean().optional()
1136
- }), rt = n.extend({
1144
+ }), rt = i.extend({
1137
1145
  type: e.literal("BOOLEAN"),
1138
1146
  config: e.object({
1139
1147
  default_value: e.boolean().optional()
1140
1148
  }).optional()
1141
- }), st = n.extend({
1149
+ }), st = i.extend({
1142
1150
  type: e.literal("CARDS"),
1143
1151
  config: e.object({
1144
1152
  options: e.array(
@@ -1151,7 +1159,7 @@ const Ke = e.object({
1151
1159
  ).optional(),
1152
1160
  multi_select: e.boolean().optional()
1153
1161
  }).optional()
1154
- }), lt = n.extend({
1162
+ }), lt = i.extend({
1155
1163
  type: e.literal("CHOICE"),
1156
1164
  config: e.object({
1157
1165
  options: e.array(
@@ -1164,7 +1172,7 @@ const Ke = e.object({
1164
1172
  multiple: e.boolean().optional(),
1165
1173
  default_value: e.union([e.string(), e.array(e.string())]).optional()
1166
1174
  }).optional()
1167
- }), pt = n.extend({
1175
+ }), pt = i.extend({
1168
1176
  type: e.literal("CUSTOM"),
1169
1177
  config: e.object({
1170
1178
  component: e.string().optional(),
@@ -1172,7 +1180,7 @@ const Ke = e.object({
1172
1180
  schema: e.record(e.any()).optional(),
1173
1181
  code: e.string().optional()
1174
1182
  })
1175
- }), ct = n.extend({
1183
+ }), ct = i.extend({
1176
1184
  type: e.literal("DATE"),
1177
1185
  config: e.object({
1178
1186
  format: e.string().optional(),
@@ -1180,7 +1188,7 @@ const Ke = e.object({
1180
1188
  max: e.string().optional(),
1181
1189
  default_value: e.string().optional()
1182
1190
  }).optional()
1183
- }), dt = n.extend({
1191
+ }), dt = i.extend({
1184
1192
  type: e.literal("DROPDOWN"),
1185
1193
  config: e.object({
1186
1194
  options: e.array(
@@ -1194,26 +1202,26 @@ const Ke = e.object({
1194
1202
  multiple: e.boolean().optional(),
1195
1203
  default_value: e.union([e.string(), e.array(e.string())]).optional()
1196
1204
  }).optional()
1197
- }), _t = n.extend({
1205
+ }), _t = i.extend({
1198
1206
  type: e.literal("EMAIL"),
1199
1207
  config: e.object({
1200
1208
  placeholder: e.string().optional(),
1201
1209
  default_value: e.string().optional()
1202
1210
  }).optional()
1203
- }), gt = n.extend({
1211
+ }), gt = i.extend({
1204
1212
  type: e.literal("FILE"),
1205
1213
  config: e.object({
1206
1214
  accept: e.string().optional(),
1207
1215
  max_size: e.number().optional(),
1208
1216
  multiple: e.boolean().optional()
1209
1217
  }).optional()
1210
- }), ut = n.extend({
1218
+ }), ut = i.extend({
1211
1219
  type: e.literal("LEGAL"),
1212
1220
  config: e.object({
1213
1221
  text: e.string(),
1214
1222
  html: e.boolean().optional()
1215
1223
  }).optional()
1216
- }), mt = n.extend({
1224
+ }), mt = i.extend({
1217
1225
  type: e.literal("NUMBER"),
1218
1226
  config: e.object({
1219
1227
  placeholder: e.string().optional(),
@@ -1222,7 +1230,7 @@ const Ke = e.object({
1222
1230
  step: e.number().optional(),
1223
1231
  default_value: e.string().optional()
1224
1232
  }).optional()
1225
- }), ht = n.extend({
1233
+ }), ht = i.extend({
1226
1234
  type: e.literal("PASSWORD"),
1227
1235
  config: e.object({
1228
1236
  placeholder: e.string().optional(),
@@ -1231,13 +1239,13 @@ const Ke = e.object({
1231
1239
  forgot_password_link: e.string().optional(),
1232
1240
  default_value: e.string().optional()
1233
1241
  }).optional()
1234
- }), bt = n.extend({
1242
+ }), bt = i.extend({
1235
1243
  type: e.literal("PAYMENT"),
1236
1244
  config: e.object({
1237
1245
  provider: e.string().optional(),
1238
1246
  currency: e.string().optional()
1239
1247
  }).optional()
1240
- }), ft = n.extend({
1248
+ }), ft = i.extend({
1241
1249
  type: e.literal("SOCIAL"),
1242
1250
  config: e.object({
1243
1251
  providers: e.array(e.string()).optional(),
@@ -1252,7 +1260,7 @@ const Ke = e.object({
1252
1260
  })
1253
1261
  ).optional()
1254
1262
  }).optional()
1255
- }), Et = n.extend({
1263
+ }), Et = i.extend({
1256
1264
  type: e.literal("TEL"),
1257
1265
  config: e.object({
1258
1266
  placeholder: e.string().optional(),
@@ -1260,7 +1268,7 @@ const Ke = e.object({
1260
1268
  default_value: e.string().optional(),
1261
1269
  allow_email: e.boolean().optional()
1262
1270
  }).optional()
1263
- }), St = n.extend({
1271
+ }), St = i.extend({
1264
1272
  type: e.literal("TEXT"),
1265
1273
  config: e.object({
1266
1274
  placeholder: e.string().optional(),
@@ -1268,13 +1276,13 @@ const Ke = e.object({
1268
1276
  max_length: e.number().optional(),
1269
1277
  default_value: e.string().optional()
1270
1278
  }).optional()
1271
- }), yt = n.extend({
1279
+ }), yt = i.extend({
1272
1280
  type: e.literal("COUNTRY"),
1273
1281
  config: e.object({
1274
1282
  placeholder: e.string().optional(),
1275
1283
  default_value: e.string().optional()
1276
1284
  }).optional()
1277
- }), At = n.extend({
1285
+ }), At = i.extend({
1278
1286
  type: e.literal("URL"),
1279
1287
  config: e.object({
1280
1288
  placeholder: e.string().optional(),
@@ -1282,8 +1290,8 @@ const Ke = e.object({
1282
1290
  }).optional()
1283
1291
  }), It = e.discriminatedUnion("type", [
1284
1292
  Ye,
1285
- Qe,
1286
1293
  Ze,
1294
+ Qe,
1287
1295
  $e,
1288
1296
  Je,
1289
1297
  et,
@@ -1422,7 +1430,7 @@ const Ke = e.object({
1422
1430
  id: e.number().optional(),
1423
1431
  text: e.string(),
1424
1432
  type: e.enum(["info", "error", "success", "warning"])
1425
- }), Dt = e.object({
1433
+ }), vt = e.object({
1426
1434
  id: e.string().optional(),
1427
1435
  text: e.string(),
1428
1436
  href: e.string(),
@@ -1436,7 +1444,7 @@ const Ke = e.object({
1436
1444
  description: e.string().optional(),
1437
1445
  components: e.array(U),
1438
1446
  messages: e.array(kt).optional(),
1439
- links: e.array(Dt).optional(),
1447
+ links: e.array(vt).optional(),
1440
1448
  /** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
1441
1449
  footer: e.string().optional()
1442
1450
  });
@@ -1516,7 +1524,7 @@ const x = e.enum([
1516
1524
  * Everything else is opaque to the runtime. Persisted as JSON.
1517
1525
  */
1518
1526
  metadata: e.record(e.unknown()).optional()
1519
- }, vt = e.object({
1527
+ }, Dt = e.object({
1520
1528
  ...p,
1521
1529
  trigger_id: x,
1522
1530
  url: e.string()
@@ -1533,7 +1541,7 @@ const x = e.enum([
1533
1541
  trigger_id: M,
1534
1542
  code_id: e.string()
1535
1543
  }), bn = e.union([
1536
- vt,
1544
+ Dt,
1537
1545
  Lt,
1538
1546
  Ut,
1539
1547
  xt
@@ -1577,7 +1585,7 @@ const x = e.enum([
1577
1585
  name: e.string().optional()
1578
1586
  }), Wt = e.object({
1579
1587
  email: e.string().optional()
1580
- }), zt = e.object({
1588
+ }), Kt = e.object({
1581
1589
  organization_id: e.string().max(50),
1582
1590
  inviter: Bt,
1583
1591
  invitee: Wt,
@@ -1595,7 +1603,7 @@ const x = e.enum([
1595
1603
  created_at: e.string().datetime(),
1596
1604
  expires_at: e.string().datetime(),
1597
1605
  ticket_id: e.string().optional()
1598
- }).extend(zt.shape), Kt = e.object({
1606
+ }).extend(Kt.shape), zt = e.object({
1599
1607
  alg: e.enum([
1600
1608
  "RS256",
1601
1609
  "RS384",
@@ -1607,15 +1615,35 @@ const x = e.enum([
1607
1615
  "HS384",
1608
1616
  "HS512"
1609
1617
  ]),
1610
- e: e.string(),
1611
1618
  kid: e.string(),
1612
1619
  kty: e.enum(["RSA", "EC", "oct"]),
1613
- n: e.string(),
1620
+ use: e.enum(["sig", "enc"]).optional(),
1621
+ // RSA-specific public-key members (RFC 7518 §6.3.1).
1622
+ n: e.string().optional(),
1623
+ e: e.string().optional(),
1624
+ // EC-specific public-key members (RFC 7518 §6.2.1).
1625
+ crv: e.string().optional(),
1626
+ x: e.string().optional(),
1627
+ y: e.string().optional(),
1614
1628
  x5t: e.string().optional(),
1615
- x5c: e.array(e.string()).optional(),
1616
- use: e.enum(["sig", "enc"]).optional()
1629
+ x5c: e.array(e.string()).optional()
1630
+ }).superRefine((t, o) => {
1631
+ if (t.kty === "RSA")
1632
+ for (const n of ["n", "e"])
1633
+ t[n] || o.addIssue({
1634
+ code: e.ZodIssueCode.custom,
1635
+ path: [n],
1636
+ message: `RSA JWK is missing required member '${n}'`
1637
+ });
1638
+ else if (t.kty === "EC")
1639
+ for (const n of ["crv", "x", "y"])
1640
+ t[n] || o.addIssue({
1641
+ code: e.ZodIssueCode.custom,
1642
+ path: [n],
1643
+ message: `EC JWK is missing required member '${n}'`
1644
+ });
1617
1645
  }), yn = e.object({
1618
- keys: e.array(Kt)
1646
+ keys: e.array(zt)
1619
1647
  }), An = e.object({
1620
1648
  issuer: e.string(),
1621
1649
  authorization_endpoint: e.string(),
@@ -1638,6 +1666,7 @@ const x = e.enum([
1638
1666
  claims_supported: e.array(e.string()),
1639
1667
  request_uri_parameter_supported: e.boolean(),
1640
1668
  request_parameter_supported: e.boolean(),
1669
+ request_object_signing_alg_values_supported: e.array(e.string()).optional(),
1641
1670
  token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
1642
1671
  });
1643
1672
  var G = /* @__PURE__ */ ((t) => (t.PENDING = "pending", t.AUTHENTICATED = "authenticated", t.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", t.AWAITING_MFA = "awaiting_mfa", t.AWAITING_HOOK = "awaiting_hook", t.AWAITING_CONTINUATION = "awaiting_continuation", t.COMPLETED = "completed", t.FAILED = "failed", t.EXPIRED = "expired", t))(G || {});
@@ -1851,10 +1880,10 @@ const qt = e.nativeEnum(G), Xt = e.object({
1851
1880
  WARNING_DURING_LOGIN: "w",
1852
1881
  WARNING_SENDING_NOTIFICATION: "wn",
1853
1882
  WARNING_USER_MANAGEMENT: "wum"
1854
- }, Qt = e.string().refine(
1883
+ }, Zt = e.string().refine(
1855
1884
  (t) => Object.values(Yt).includes(t),
1856
1885
  { message: "Invalid log type" }
1857
- ), Zt = e.object({
1886
+ ), Qt = e.object({
1858
1887
  name: e.string(),
1859
1888
  version: e.string(),
1860
1889
  env: e.object({
@@ -1868,7 +1897,7 @@ const qt = e.nativeEnum(G), Xt = e.object({
1868
1897
  time_zone: e.string(),
1869
1898
  continent_code: e.string()
1870
1899
  }), Jt = e.object({
1871
- type: Qt,
1900
+ type: Zt,
1872
1901
  date: e.string(),
1873
1902
  description: e.string().optional(),
1874
1903
  ip: e.string().optional(),
@@ -1887,7 +1916,7 @@ const qt = e.nativeEnum(G), Xt = e.object({
1887
1916
  strategy: e.string().optional(),
1888
1917
  strategy_type: e.string().optional(),
1889
1918
  hostname: e.string().optional(),
1890
- auth0_client: Zt.optional(),
1919
+ auth0_client: Qt.optional(),
1891
1920
  log_id: e.string().optional(),
1892
1921
  location_info: $t.optional()
1893
1922
  }), Cn = e.object({
@@ -2292,12 +2321,12 @@ const _o = e.object({
2292
2321
  widget: ho
2293
2322
  }), kn = bo.extend({
2294
2323
  themeId: e.string()
2295
- }), Dn = e.object({
2324
+ }), vn = e.object({
2296
2325
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
2297
2326
  identifier_first: e.boolean().default(!0),
2298
2327
  password_first: e.boolean().default(!1),
2299
2328
  webauthn_platform_first_factor: e.boolean()
2300
- }), vn = e.object({
2329
+ }), Dn = e.object({
2301
2330
  name: e.string(),
2302
2331
  enabled: e.boolean().optional().default(!0),
2303
2332
  default_from_address: e.string().optional(),
@@ -2436,7 +2465,7 @@ const _o = e.object({
2436
2465
  }),
2437
2466
  created_at: e.string().optional(),
2438
2467
  updated_at: e.string().optional()
2439
- }), Bn = e.array(ko), Do = e.object({
2468
+ }), Bn = e.array(ko), vo = e.object({
2440
2469
  logo_url: e.string().optional().openapi({
2441
2470
  description: "URL of the organization's logo"
2442
2471
  }),
@@ -2448,7 +2477,7 @@ const _o = e.object({
2448
2477
  description: "Page background color in hex format (e.g., #FFFFFF)"
2449
2478
  })
2450
2479
  }).optional()
2451
- }).optional(), vo = e.object({
2480
+ }).optional(), Do = e.object({
2452
2481
  connection_id: e.string().openapi({
2453
2482
  description: "ID of the connection"
2454
2483
  }),
@@ -2483,11 +2512,11 @@ const _o = e.object({
2483
2512
  display_name: e.string().optional().openapi({
2484
2513
  description: "The display name of the organization"
2485
2514
  }),
2486
- branding: Do,
2515
+ branding: vo,
2487
2516
  metadata: e.record(e.any()).default({}).optional().openapi({
2488
2517
  description: "Custom metadata for the organization"
2489
2518
  }),
2490
- enabled_connections: e.array(vo).default([]).optional().openapi({
2519
+ enabled_connections: e.array(Do).default([]).optional().openapi({
2491
2520
  description: "List of enabled connections for the organization"
2492
2521
  }),
2493
2522
  token_quota: Lo
@@ -2515,7 +2544,7 @@ const _o = e.object({
2515
2544
  }).optional(),
2516
2545
  created_at: e.string().optional(),
2517
2546
  updated_at: e.string().optional()
2518
- }), zn = e.array(
2547
+ }), Kn = e.array(
2519
2548
  Fo
2520
2549
  ), Po = e.object({
2521
2550
  user_id: e.string().openapi({
@@ -2524,7 +2553,7 @@ const _o = e.object({
2524
2553
  organization_id: e.string().openapi({
2525
2554
  description: "ID of the organization"
2526
2555
  })
2527
- }), Kn = e.object({
2556
+ }), zn = e.object({
2528
2557
  ...Po.shape,
2529
2558
  ...r.shape,
2530
2559
  id: e.string()
@@ -2695,7 +2724,7 @@ const _o = e.object({
2695
2724
  prompt: Mo,
2696
2725
  language: e.string(),
2697
2726
  custom_text: Ho
2698
- }), Qn = {
2727
+ }), Zn = {
2699
2728
  EMAIL: "email",
2700
2729
  SMS: "sms",
2701
2730
  USERNAME_PASSWORD: "Username-Password-Authentication",
@@ -2710,7 +2739,7 @@ const _o = e.object({
2710
2739
  SAMLP: "samlp",
2711
2740
  WAAD: "waad",
2712
2741
  ADFS: "adfs"
2713
- }, Zn = {
2742
+ }, Qn = {
2714
2743
  DATABASE: "database",
2715
2744
  SOCIAL: "social",
2716
2745
  PASSWORDLESS: "passwordless"
@@ -2722,7 +2751,7 @@ const _o = e.object({
2722
2751
  "webauthn-roaming",
2723
2752
  "webauthn-platform",
2724
2753
  "passkey"
2725
- ]), z = e.object({
2754
+ ]), K = e.object({
2726
2755
  user_id: e.string(),
2727
2756
  type: Go,
2728
2757
  // Phone-specific
@@ -2739,7 +2768,7 @@ const _o = e.object({
2739
2768
  // Common
2740
2769
  confirmed: e.boolean().default(!1)
2741
2770
  });
2742
- function K(t, o) {
2771
+ function z(t, o) {
2743
2772
  t.type === "phone" && !t.phone_number && o.addIssue({
2744
2773
  code: e.ZodIssueCode.custom,
2745
2774
  message: "phone_number is required when type is 'phone'",
@@ -2758,22 +2787,22 @@ function K(t, o) {
2758
2787
  path: ["public_key"]
2759
2788
  }));
2760
2789
  }
2761
- const $n = z.superRefine(K), Jn = e.object({
2762
- ...z.shape,
2790
+ const $n = K.superRefine(z), Jn = e.object({
2791
+ ...K.shape,
2763
2792
  id: e.string(),
2764
2793
  created_at: e.string(),
2765
2794
  updated_at: e.string()
2766
- }).superRefine(K);
2795
+ }).superRefine(z);
2767
2796
  function ei(t) {
2768
- const [o, i] = t.split("|");
2769
- if (!o || !i)
2797
+ const [o, n] = t.split("|");
2798
+ if (!o || !n)
2770
2799
  throw new Error(`Invalid user_id: ${t}`);
2771
- return { connection: o, id: i };
2800
+ return { connection: o, id: n };
2772
2801
  }
2773
2802
  function ti(t) {
2774
2803
  const {
2775
2804
  primary: o,
2776
- secondaries: i,
2805
+ secondaries: n,
2777
2806
  syncMethods: h = ["create", "rawCreate", "update", "remove", "delete", "set"]
2778
2807
  } = t, S = {
2779
2808
  get(c, a) {
@@ -2782,7 +2811,7 @@ function ti(t) {
2782
2811
  const d = c[a];
2783
2812
  return typeof d != "function" ? d : h.includes(a) ? async (..._) => {
2784
2813
  const y = await d.apply(c, _), g = [];
2785
- for (const s of i) {
2814
+ for (const s of n) {
2786
2815
  const b = s.adapter[a];
2787
2816
  if (typeof b != "function")
2788
2817
  continue;
@@ -2824,9 +2853,9 @@ function ni(t) {
2824
2853
  usernameMinLength: 1,
2825
2854
  usernameMaxLength: 15
2826
2855
  };
2827
- const i = o.attributes;
2828
- if (i) {
2829
- const q = ((c = (S = i.username) == null ? void 0 : S.identifier) == null ? void 0 : c.active) === !0, X = ((d = (a = i.email) == null ? void 0 : a.identifier) == null ? void 0 : d.active) !== !1, V = ((y = (_ = i.username) == null ? void 0 : _.validation) == null ? void 0 : y.min_length) ?? 1, Y = ((s = (g = i.username) == null ? void 0 : g.validation) == null ? void 0 : s.max_length) ?? 15;
2856
+ const n = o.attributes;
2857
+ if (n) {
2858
+ const q = ((c = (S = n.username) == null ? void 0 : S.identifier) == null ? void 0 : c.active) === !0, X = ((d = (a = n.email) == null ? void 0 : a.identifier) == null ? void 0 : d.active) !== !1, V = ((y = (_ = n.username) == null ? void 0 : _.validation) == null ? void 0 : y.min_length) ?? 1, Y = ((s = (g = n.username) == null ? void 0 : g.validation) == null ? void 0 : s.max_length) ?? 15;
2830
2859
  return {
2831
2860
  usernameIdentifierActive: q,
2832
2861
  emailIdentifierActive: X,
@@ -2846,9 +2875,9 @@ function ii(t) {
2846
2875
  }
2847
2876
  export {
2848
2877
  Xo as Auth0ActionEnum,
2849
- Zt as Auth0Client,
2850
- v as AuthorizationResponseMode,
2851
- D as AuthorizationResponseType,
2878
+ Qt as Auth0Client,
2879
+ D as AuthorizationResponseMode,
2880
+ v as AuthorizationResponseType,
2852
2881
  L as CodeChallengeMethod,
2853
2882
  k as ComponentCategory,
2854
2883
  R as ComponentType,
@@ -2859,16 +2888,16 @@ export {
2859
2888
  $t as LocationInfo,
2860
2889
  Yt as LogTypes,
2861
2890
  G as LoginSessionState,
2862
- De as NodeType,
2891
+ ve as NodeType,
2863
2892
  ce as RedirectTargetEnum,
2864
- Qn as Strategy,
2865
- Zn as StrategyType,
2866
- Z as actionDependencySchema,
2893
+ Zn as Strategy,
2894
+ Qn as StrategyType,
2895
+ Q as actionDependencySchema,
2867
2896
  w as actionInsertSchema,
2868
2897
  Ue as actionNodeSchema,
2869
- zo as actionSchema,
2898
+ Ko as actionSchema,
2870
2899
  $ as actionSecretSchema,
2871
- Q as actionTriggerSchema,
2900
+ Z as actionTriggerSchema,
2872
2901
  Wo as actionUpdateSchema,
2873
2902
  Vn as activeUsersResponseSchema,
2874
2903
  ee as actorSchema,
@@ -2876,11 +2905,11 @@ export {
2876
2905
  ro as attackProtectionSchema,
2877
2906
  J as auditCategorySchema,
2878
2907
  re as auditEventInsertSchema,
2879
- Ko as auditEventSchema,
2908
+ zo as auditEventSchema,
2880
2909
  ae as auth0ClientSchema,
2881
2910
  nn as auth0FlowInsertSchema,
2882
2911
  He as auth0FlowSchema,
2883
- Qo as auth0QuerySchema,
2912
+ Zo as auth0QuerySchema,
2884
2913
  le as auth0UpdateUserActionSchema,
2885
2914
  $o as auth0UserResponseSchema,
2886
2915
  Ge as authParamsSchema,
@@ -2908,8 +2937,8 @@ export {
2908
2937
  go as colorsSchema,
2909
2938
  kt as componentMessageSchema,
2910
2939
  ke as componentSchema,
2911
- Ke as connectionInsertSchema,
2912
- ze as connectionOptionsSchema,
2940
+ ze as connectionInsertSchema,
2941
+ Ke as connectionOptionsSchema,
2913
2942
  sn as connectionSchema,
2914
2943
  m as coordinatesSchema,
2915
2944
  ti as createPassthroughAdapter,
@@ -2920,7 +2949,7 @@ export {
2920
2949
  Yn as customTextEntrySchema,
2921
2950
  Ho as customTextSchema,
2922
2951
  Xn as dailyStatsSchema,
2923
- vn as emailProviderSchema,
2952
+ Dn as emailProviderSchema,
2924
2953
  se as emailVerificationRulesSchema,
2925
2954
  pe as emailVerifyActionSchema,
2926
2955
  Me as endingSchema,
@@ -2930,7 +2959,7 @@ export {
2930
2959
  Yo as flowSchema,
2931
2960
  je as flowsFieldComponentSchema,
2932
2961
  Le as flowsFlowNodeSchema,
2933
- ve as flowsStepNodeSchema,
2962
+ De as flowsStepNodeSchema,
2934
2963
  u as fontDetailsSchema,
2935
2964
  uo as fontsSchema,
2936
2965
  cn as formControlSchema,
@@ -2948,7 +2977,7 @@ export {
2948
2977
  H as hookTemplateId,
2949
2978
  hn as hookTemplates,
2950
2979
  me as identitySchema,
2951
- zt as inviteInsertSchema,
2980
+ Kt as inviteInsertSchema,
2952
2981
  Sn as inviteSchema,
2953
2982
  Wt as inviteeSchema,
2954
2983
  Bt as inviterSchema,
@@ -2957,7 +2986,7 @@ export {
2957
2986
  ii as isPlainObject,
2958
2987
  un as isWidgetComponent,
2959
2988
  yn as jwksKeySchema,
2960
- Kt as jwksSchema,
2989
+ zt as jwksSchema,
2961
2990
  we as legalComponentSchema,
2962
2991
  ie as locationInfoSchema,
2963
2992
  Jt as logInsertSchema,
@@ -2973,11 +3002,11 @@ export {
2973
3002
  qt as loginSessionStateSchema,
2974
3003
  Fe as nodeSchema,
2975
3004
  An as openIDConfigurationSchema,
2976
- Do as organizationBrandingSchema,
3005
+ vo as organizationBrandingSchema,
2977
3006
  xo as organizationConnectionInsertSchema,
2978
- zn as organizationConnectionListSchema,
3007
+ Kn as organizationConnectionListSchema,
2979
3008
  Fo as organizationConnectionSchema,
2980
- vo as organizationEnabledConnectionSchema,
3009
+ Do as organizationEnabledConnectionSchema,
2981
3010
  Uo as organizationInsertSchema,
2982
3011
  Wn as organizationSchema,
2983
3012
  Lo as organizationTokenQuotaSchema,
@@ -2987,7 +3016,7 @@ export {
2987
3016
  On as passwordSchema,
2988
3017
  ue as profileDataSchema,
2989
3018
  Mo as promptScreenSchema,
2990
- Dn as promptSettingSchema,
3019
+ vn as promptSettingSchema,
2991
3020
  de as redirectActionSchema,
2992
3021
  fo as refreshTokenInsertSchema,
2993
3022
  Ln as refreshTokenSchema,
@@ -3005,7 +3034,7 @@ export {
3005
3034
  Pn as rolePermissionListSchema,
3006
3035
  Co as rolePermissionSchema,
3007
3036
  ko as roleSchema,
3008
- Dt as screenLinkSchema,
3037
+ vt as screenLinkSchema,
3009
3038
  lo as sessionInsertSchema,
3010
3039
  Nn as sessionSchema,
3011
3040
  wn as signingKeySchema,
@@ -3020,11 +3049,11 @@ export {
3020
3049
  bo as themeInsertSchema,
3021
3050
  kn as themeSchema,
3022
3051
  Rn as tokenResponseSchema,
3023
- Zo as totalsSchema,
3052
+ Qo as totalsSchema,
3024
3053
  _n as uiScreenSchema,
3025
3054
  be as userInsertSchema,
3026
3055
  Po as userOrganizationInsertSchema,
3027
- Kn as userOrganizationSchema,
3056
+ zn as userOrganizationSchema,
3028
3057
  To as userPermissionInsertSchema,
3029
3058
  Mn as userPermissionListSchema,
3030
3059
  Oo as userPermissionSchema,