@authhero/adapter-interfaces 1.12.0 → 1.14.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,14 @@ 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(),
896
+ // Per-connection redirect_uri sent to the upstream IdP. When unset, the
897
+ // strategy falls back to the legacy `${authUrl}callback`. Lets operators
898
+ // migrate connections to a new callback path (e.g. `/login/callback`)
899
+ // gradually — the value must be registered as an allowed redirect URI at
900
+ // the upstream IdP.
901
+ callback_url: e.string().url().optional(),
888
902
  // Password policy options for Username-Password-Authentication connections
889
903
  passwordPolicy: e.enum(["none", "low", "fair", "good", "excellent"]).optional(),
890
904
  password_complexity_options: e.object({
@@ -984,21 +998,21 @@ function T(t) {
984
998
  return t.filter((o) => o !== null).map(T);
985
999
  if (t && typeof t == "object") {
986
1000
  const o = {};
987
- for (const [i, h] of Object.entries(t))
988
- h !== null && (o[i] = T(h));
1001
+ for (const [n, h] of Object.entries(t))
1002
+ h !== null && (o[n] = T(h));
989
1003
  return o;
990
1004
  }
991
1005
  return t;
992
1006
  }
993
1007
  }
994
- const Ke = e.object({
1008
+ const ze = e.object({
995
1009
  id: e.string().optional(),
996
1010
  name: e.string(),
997
1011
  display_name: e.string().optional(),
998
1012
  strategy: e.string(),
999
1013
  options: e.preprocess(
1000
1014
  (t) => t === null ? {} : T(t),
1001
- ze
1015
+ Ke
1002
1016
  ).default({}),
1003
1017
  enabled_clients: e.array(e.string()).default([]).optional(),
1004
1018
  response_type: e.custom().optional(),
@@ -1011,7 +1025,7 @@ const Ke = e.object({
1011
1025
  id: e.string(),
1012
1026
  created_at: e.string().transform((t) => t === null ? "" : t),
1013
1027
  updated_at: e.string().transform((t) => t === null ? "" : t)
1014
- }).extend(Ke.shape), qe = e.object({
1028
+ }).extend(ze.shape), qe = e.object({
1015
1029
  domain: e.string(),
1016
1030
  custom_domain_id: e.string().optional(),
1017
1031
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -1059,12 +1073,12 @@ const Ke = e.object({
1059
1073
  config: e.object({
1060
1074
  text: e.string().optional()
1061
1075
  }).optional()
1062
- }), Qe = l.extend({
1076
+ }), Ze = l.extend({
1063
1077
  type: e.literal("HTML"),
1064
1078
  config: e.object({
1065
1079
  content: e.string().optional()
1066
1080
  }).optional()
1067
- }), Ze = l.extend({
1081
+ }), Qe = l.extend({
1068
1082
  type: e.literal("IMAGE"),
1069
1083
  config: e.object({
1070
1084
  src: e.string().optional(),
@@ -1120,7 +1134,7 @@ const Ke = e.object({
1120
1134
  config: e.object({
1121
1135
  site_key: e.string().optional()
1122
1136
  })
1123
- }), n = O.extend({
1137
+ }), i = O.extend({
1124
1138
  category: e.literal("FIELD").optional(),
1125
1139
  label: e.string().min(1).optional(),
1126
1140
  hint: e.string().min(1).max(500).optional(),
@@ -1133,12 +1147,12 @@ const Ke = e.object({
1133
1147
  ).optional(),
1134
1148
  required: e.boolean().optional(),
1135
1149
  sensitive: e.boolean().optional()
1136
- }), rt = n.extend({
1150
+ }), rt = i.extend({
1137
1151
  type: e.literal("BOOLEAN"),
1138
1152
  config: e.object({
1139
1153
  default_value: e.boolean().optional()
1140
1154
  }).optional()
1141
- }), st = n.extend({
1155
+ }), st = i.extend({
1142
1156
  type: e.literal("CARDS"),
1143
1157
  config: e.object({
1144
1158
  options: e.array(
@@ -1151,7 +1165,7 @@ const Ke = e.object({
1151
1165
  ).optional(),
1152
1166
  multi_select: e.boolean().optional()
1153
1167
  }).optional()
1154
- }), lt = n.extend({
1168
+ }), lt = i.extend({
1155
1169
  type: e.literal("CHOICE"),
1156
1170
  config: e.object({
1157
1171
  options: e.array(
@@ -1164,7 +1178,7 @@ const Ke = e.object({
1164
1178
  multiple: e.boolean().optional(),
1165
1179
  default_value: e.union([e.string(), e.array(e.string())]).optional()
1166
1180
  }).optional()
1167
- }), pt = n.extend({
1181
+ }), pt = i.extend({
1168
1182
  type: e.literal("CUSTOM"),
1169
1183
  config: e.object({
1170
1184
  component: e.string().optional(),
@@ -1172,7 +1186,7 @@ const Ke = e.object({
1172
1186
  schema: e.record(e.any()).optional(),
1173
1187
  code: e.string().optional()
1174
1188
  })
1175
- }), ct = n.extend({
1189
+ }), ct = i.extend({
1176
1190
  type: e.literal("DATE"),
1177
1191
  config: e.object({
1178
1192
  format: e.string().optional(),
@@ -1180,7 +1194,7 @@ const Ke = e.object({
1180
1194
  max: e.string().optional(),
1181
1195
  default_value: e.string().optional()
1182
1196
  }).optional()
1183
- }), dt = n.extend({
1197
+ }), dt = i.extend({
1184
1198
  type: e.literal("DROPDOWN"),
1185
1199
  config: e.object({
1186
1200
  options: e.array(
@@ -1194,26 +1208,26 @@ const Ke = e.object({
1194
1208
  multiple: e.boolean().optional(),
1195
1209
  default_value: e.union([e.string(), e.array(e.string())]).optional()
1196
1210
  }).optional()
1197
- }), _t = n.extend({
1211
+ }), _t = i.extend({
1198
1212
  type: e.literal("EMAIL"),
1199
1213
  config: e.object({
1200
1214
  placeholder: e.string().optional(),
1201
1215
  default_value: e.string().optional()
1202
1216
  }).optional()
1203
- }), gt = n.extend({
1217
+ }), gt = i.extend({
1204
1218
  type: e.literal("FILE"),
1205
1219
  config: e.object({
1206
1220
  accept: e.string().optional(),
1207
1221
  max_size: e.number().optional(),
1208
1222
  multiple: e.boolean().optional()
1209
1223
  }).optional()
1210
- }), ut = n.extend({
1224
+ }), ut = i.extend({
1211
1225
  type: e.literal("LEGAL"),
1212
1226
  config: e.object({
1213
1227
  text: e.string(),
1214
1228
  html: e.boolean().optional()
1215
1229
  }).optional()
1216
- }), mt = n.extend({
1230
+ }), mt = i.extend({
1217
1231
  type: e.literal("NUMBER"),
1218
1232
  config: e.object({
1219
1233
  placeholder: e.string().optional(),
@@ -1222,7 +1236,7 @@ const Ke = e.object({
1222
1236
  step: e.number().optional(),
1223
1237
  default_value: e.string().optional()
1224
1238
  }).optional()
1225
- }), ht = n.extend({
1239
+ }), ht = i.extend({
1226
1240
  type: e.literal("PASSWORD"),
1227
1241
  config: e.object({
1228
1242
  placeholder: e.string().optional(),
@@ -1231,13 +1245,13 @@ const Ke = e.object({
1231
1245
  forgot_password_link: e.string().optional(),
1232
1246
  default_value: e.string().optional()
1233
1247
  }).optional()
1234
- }), bt = n.extend({
1248
+ }), bt = i.extend({
1235
1249
  type: e.literal("PAYMENT"),
1236
1250
  config: e.object({
1237
1251
  provider: e.string().optional(),
1238
1252
  currency: e.string().optional()
1239
1253
  }).optional()
1240
- }), ft = n.extend({
1254
+ }), ft = i.extend({
1241
1255
  type: e.literal("SOCIAL"),
1242
1256
  config: e.object({
1243
1257
  providers: e.array(e.string()).optional(),
@@ -1252,7 +1266,7 @@ const Ke = e.object({
1252
1266
  })
1253
1267
  ).optional()
1254
1268
  }).optional()
1255
- }), Et = n.extend({
1269
+ }), Et = i.extend({
1256
1270
  type: e.literal("TEL"),
1257
1271
  config: e.object({
1258
1272
  placeholder: e.string().optional(),
@@ -1260,7 +1274,7 @@ const Ke = e.object({
1260
1274
  default_value: e.string().optional(),
1261
1275
  allow_email: e.boolean().optional()
1262
1276
  }).optional()
1263
- }), St = n.extend({
1277
+ }), St = i.extend({
1264
1278
  type: e.literal("TEXT"),
1265
1279
  config: e.object({
1266
1280
  placeholder: e.string().optional(),
@@ -1268,13 +1282,13 @@ const Ke = e.object({
1268
1282
  max_length: e.number().optional(),
1269
1283
  default_value: e.string().optional()
1270
1284
  }).optional()
1271
- }), yt = n.extend({
1285
+ }), yt = i.extend({
1272
1286
  type: e.literal("COUNTRY"),
1273
1287
  config: e.object({
1274
1288
  placeholder: e.string().optional(),
1275
1289
  default_value: e.string().optional()
1276
1290
  }).optional()
1277
- }), At = n.extend({
1291
+ }), At = i.extend({
1278
1292
  type: e.literal("URL"),
1279
1293
  config: e.object({
1280
1294
  placeholder: e.string().optional(),
@@ -1282,8 +1296,8 @@ const Ke = e.object({
1282
1296
  }).optional()
1283
1297
  }), It = e.discriminatedUnion("type", [
1284
1298
  Ye,
1285
- Qe,
1286
1299
  Ze,
1300
+ Qe,
1287
1301
  $e,
1288
1302
  Je,
1289
1303
  et,
@@ -1422,7 +1436,7 @@ const Ke = e.object({
1422
1436
  id: e.number().optional(),
1423
1437
  text: e.string(),
1424
1438
  type: e.enum(["info", "error", "success", "warning"])
1425
- }), Dt = e.object({
1439
+ }), vt = e.object({
1426
1440
  id: e.string().optional(),
1427
1441
  text: e.string(),
1428
1442
  href: e.string(),
@@ -1436,7 +1450,7 @@ const Ke = e.object({
1436
1450
  description: e.string().optional(),
1437
1451
  components: e.array(U),
1438
1452
  messages: e.array(kt).optional(),
1439
- links: e.array(Dt).optional(),
1453
+ links: e.array(vt).optional(),
1440
1454
  /** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
1441
1455
  footer: e.string().optional()
1442
1456
  });
@@ -1516,7 +1530,7 @@ const x = e.enum([
1516
1530
  * Everything else is opaque to the runtime. Persisted as JSON.
1517
1531
  */
1518
1532
  metadata: e.record(e.unknown()).optional()
1519
- }, vt = e.object({
1533
+ }, Dt = e.object({
1520
1534
  ...p,
1521
1535
  trigger_id: x,
1522
1536
  url: e.string()
@@ -1533,7 +1547,7 @@ const x = e.enum([
1533
1547
  trigger_id: M,
1534
1548
  code_id: e.string()
1535
1549
  }), bn = e.union([
1536
- vt,
1550
+ Dt,
1537
1551
  Lt,
1538
1552
  Ut,
1539
1553
  xt
@@ -1577,7 +1591,7 @@ const x = e.enum([
1577
1591
  name: e.string().optional()
1578
1592
  }), Wt = e.object({
1579
1593
  email: e.string().optional()
1580
- }), zt = e.object({
1594
+ }), Kt = e.object({
1581
1595
  organization_id: e.string().max(50),
1582
1596
  inviter: Bt,
1583
1597
  invitee: Wt,
@@ -1595,7 +1609,7 @@ const x = e.enum([
1595
1609
  created_at: e.string().datetime(),
1596
1610
  expires_at: e.string().datetime(),
1597
1611
  ticket_id: e.string().optional()
1598
- }).extend(zt.shape), Kt = e.object({
1612
+ }).extend(Kt.shape), zt = e.object({
1599
1613
  alg: e.enum([
1600
1614
  "RS256",
1601
1615
  "RS384",
@@ -1607,15 +1621,35 @@ const x = e.enum([
1607
1621
  "HS384",
1608
1622
  "HS512"
1609
1623
  ]),
1610
- e: e.string(),
1611
1624
  kid: e.string(),
1612
1625
  kty: e.enum(["RSA", "EC", "oct"]),
1613
- n: e.string(),
1626
+ use: e.enum(["sig", "enc"]).optional(),
1627
+ // RSA-specific public-key members (RFC 7518 §6.3.1).
1628
+ n: e.string().optional(),
1629
+ e: e.string().optional(),
1630
+ // EC-specific public-key members (RFC 7518 §6.2.1).
1631
+ crv: e.string().optional(),
1632
+ x: e.string().optional(),
1633
+ y: e.string().optional(),
1614
1634
  x5t: e.string().optional(),
1615
- x5c: e.array(e.string()).optional(),
1616
- use: e.enum(["sig", "enc"]).optional()
1635
+ x5c: e.array(e.string()).optional()
1636
+ }).superRefine((t, o) => {
1637
+ if (t.kty === "RSA")
1638
+ for (const n of ["n", "e"])
1639
+ t[n] || o.addIssue({
1640
+ code: e.ZodIssueCode.custom,
1641
+ path: [n],
1642
+ message: `RSA JWK is missing required member '${n}'`
1643
+ });
1644
+ else if (t.kty === "EC")
1645
+ for (const n of ["crv", "x", "y"])
1646
+ t[n] || o.addIssue({
1647
+ code: e.ZodIssueCode.custom,
1648
+ path: [n],
1649
+ message: `EC JWK is missing required member '${n}'`
1650
+ });
1617
1651
  }), yn = e.object({
1618
- keys: e.array(Kt)
1652
+ keys: e.array(zt)
1619
1653
  }), An = e.object({
1620
1654
  issuer: e.string(),
1621
1655
  authorization_endpoint: e.string(),
@@ -1638,6 +1672,7 @@ const x = e.enum([
1638
1672
  claims_supported: e.array(e.string()),
1639
1673
  request_uri_parameter_supported: e.boolean(),
1640
1674
  request_parameter_supported: e.boolean(),
1675
+ request_object_signing_alg_values_supported: e.array(e.string()).optional(),
1641
1676
  token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
1642
1677
  });
1643
1678
  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 +1886,10 @@ const qt = e.nativeEnum(G), Xt = e.object({
1851
1886
  WARNING_DURING_LOGIN: "w",
1852
1887
  WARNING_SENDING_NOTIFICATION: "wn",
1853
1888
  WARNING_USER_MANAGEMENT: "wum"
1854
- }, Qt = e.string().refine(
1889
+ }, Zt = e.string().refine(
1855
1890
  (t) => Object.values(Yt).includes(t),
1856
1891
  { message: "Invalid log type" }
1857
- ), Zt = e.object({
1892
+ ), Qt = e.object({
1858
1893
  name: e.string(),
1859
1894
  version: e.string(),
1860
1895
  env: e.object({
@@ -1868,7 +1903,7 @@ const qt = e.nativeEnum(G), Xt = e.object({
1868
1903
  time_zone: e.string(),
1869
1904
  continent_code: e.string()
1870
1905
  }), Jt = e.object({
1871
- type: Qt,
1906
+ type: Zt,
1872
1907
  date: e.string(),
1873
1908
  description: e.string().optional(),
1874
1909
  ip: e.string().optional(),
@@ -1887,7 +1922,7 @@ const qt = e.nativeEnum(G), Xt = e.object({
1887
1922
  strategy: e.string().optional(),
1888
1923
  strategy_type: e.string().optional(),
1889
1924
  hostname: e.string().optional(),
1890
- auth0_client: Zt.optional(),
1925
+ auth0_client: Qt.optional(),
1891
1926
  log_id: e.string().optional(),
1892
1927
  location_info: $t.optional()
1893
1928
  }), Cn = e.object({
@@ -2292,12 +2327,12 @@ const _o = e.object({
2292
2327
  widget: ho
2293
2328
  }), kn = bo.extend({
2294
2329
  themeId: e.string()
2295
- }), Dn = e.object({
2330
+ }), vn = e.object({
2296
2331
  universal_login_experience: e.enum(["new", "classic"]).default("new"),
2297
2332
  identifier_first: e.boolean().default(!0),
2298
2333
  password_first: e.boolean().default(!1),
2299
2334
  webauthn_platform_first_factor: e.boolean()
2300
- }), vn = e.object({
2335
+ }), Dn = e.object({
2301
2336
  name: e.string(),
2302
2337
  enabled: e.boolean().optional().default(!0),
2303
2338
  default_from_address: e.string().optional(),
@@ -2436,7 +2471,7 @@ const _o = e.object({
2436
2471
  }),
2437
2472
  created_at: e.string().optional(),
2438
2473
  updated_at: e.string().optional()
2439
- }), Bn = e.array(ko), Do = e.object({
2474
+ }), Bn = e.array(ko), vo = e.object({
2440
2475
  logo_url: e.string().optional().openapi({
2441
2476
  description: "URL of the organization's logo"
2442
2477
  }),
@@ -2448,7 +2483,7 @@ const _o = e.object({
2448
2483
  description: "Page background color in hex format (e.g., #FFFFFF)"
2449
2484
  })
2450
2485
  }).optional()
2451
- }).optional(), vo = e.object({
2486
+ }).optional(), Do = e.object({
2452
2487
  connection_id: e.string().openapi({
2453
2488
  description: "ID of the connection"
2454
2489
  }),
@@ -2483,11 +2518,11 @@ const _o = e.object({
2483
2518
  display_name: e.string().optional().openapi({
2484
2519
  description: "The display name of the organization"
2485
2520
  }),
2486
- branding: Do,
2521
+ branding: vo,
2487
2522
  metadata: e.record(e.any()).default({}).optional().openapi({
2488
2523
  description: "Custom metadata for the organization"
2489
2524
  }),
2490
- enabled_connections: e.array(vo).default([]).optional().openapi({
2525
+ enabled_connections: e.array(Do).default([]).optional().openapi({
2491
2526
  description: "List of enabled connections for the organization"
2492
2527
  }),
2493
2528
  token_quota: Lo
@@ -2515,7 +2550,7 @@ const _o = e.object({
2515
2550
  }).optional(),
2516
2551
  created_at: e.string().optional(),
2517
2552
  updated_at: e.string().optional()
2518
- }), zn = e.array(
2553
+ }), Kn = e.array(
2519
2554
  Fo
2520
2555
  ), Po = e.object({
2521
2556
  user_id: e.string().openapi({
@@ -2524,7 +2559,7 @@ const _o = e.object({
2524
2559
  organization_id: e.string().openapi({
2525
2560
  description: "ID of the organization"
2526
2561
  })
2527
- }), Kn = e.object({
2562
+ }), zn = e.object({
2528
2563
  ...Po.shape,
2529
2564
  ...r.shape,
2530
2565
  id: e.string()
@@ -2695,7 +2730,7 @@ const _o = e.object({
2695
2730
  prompt: Mo,
2696
2731
  language: e.string(),
2697
2732
  custom_text: Ho
2698
- }), Qn = {
2733
+ }), Zn = {
2699
2734
  EMAIL: "email",
2700
2735
  SMS: "sms",
2701
2736
  USERNAME_PASSWORD: "Username-Password-Authentication",
@@ -2710,7 +2745,7 @@ const _o = e.object({
2710
2745
  SAMLP: "samlp",
2711
2746
  WAAD: "waad",
2712
2747
  ADFS: "adfs"
2713
- }, Zn = {
2748
+ }, Qn = {
2714
2749
  DATABASE: "database",
2715
2750
  SOCIAL: "social",
2716
2751
  PASSWORDLESS: "passwordless"
@@ -2722,7 +2757,7 @@ const _o = e.object({
2722
2757
  "webauthn-roaming",
2723
2758
  "webauthn-platform",
2724
2759
  "passkey"
2725
- ]), z = e.object({
2760
+ ]), K = e.object({
2726
2761
  user_id: e.string(),
2727
2762
  type: Go,
2728
2763
  // Phone-specific
@@ -2739,7 +2774,7 @@ const _o = e.object({
2739
2774
  // Common
2740
2775
  confirmed: e.boolean().default(!1)
2741
2776
  });
2742
- function K(t, o) {
2777
+ function z(t, o) {
2743
2778
  t.type === "phone" && !t.phone_number && o.addIssue({
2744
2779
  code: e.ZodIssueCode.custom,
2745
2780
  message: "phone_number is required when type is 'phone'",
@@ -2758,22 +2793,22 @@ function K(t, o) {
2758
2793
  path: ["public_key"]
2759
2794
  }));
2760
2795
  }
2761
- const $n = z.superRefine(K), Jn = e.object({
2762
- ...z.shape,
2796
+ const $n = K.superRefine(z), Jn = e.object({
2797
+ ...K.shape,
2763
2798
  id: e.string(),
2764
2799
  created_at: e.string(),
2765
2800
  updated_at: e.string()
2766
- }).superRefine(K);
2801
+ }).superRefine(z);
2767
2802
  function ei(t) {
2768
- const [o, i] = t.split("|");
2769
- if (!o || !i)
2803
+ const [o, n] = t.split("|");
2804
+ if (!o || !n)
2770
2805
  throw new Error(`Invalid user_id: ${t}`);
2771
- return { connection: o, id: i };
2806
+ return { connection: o, id: n };
2772
2807
  }
2773
2808
  function ti(t) {
2774
2809
  const {
2775
2810
  primary: o,
2776
- secondaries: i,
2811
+ secondaries: n,
2777
2812
  syncMethods: h = ["create", "rawCreate", "update", "remove", "delete", "set"]
2778
2813
  } = t, S = {
2779
2814
  get(c, a) {
@@ -2782,7 +2817,7 @@ function ti(t) {
2782
2817
  const d = c[a];
2783
2818
  return typeof d != "function" ? d : h.includes(a) ? async (..._) => {
2784
2819
  const y = await d.apply(c, _), g = [];
2785
- for (const s of i) {
2820
+ for (const s of n) {
2786
2821
  const b = s.adapter[a];
2787
2822
  if (typeof b != "function")
2788
2823
  continue;
@@ -2824,9 +2859,9 @@ function ni(t) {
2824
2859
  usernameMinLength: 1,
2825
2860
  usernameMaxLength: 15
2826
2861
  };
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;
2862
+ const n = o.attributes;
2863
+ if (n) {
2864
+ 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
2865
  return {
2831
2866
  usernameIdentifierActive: q,
2832
2867
  emailIdentifierActive: X,
@@ -2846,9 +2881,9 @@ function ii(t) {
2846
2881
  }
2847
2882
  export {
2848
2883
  Xo as Auth0ActionEnum,
2849
- Zt as Auth0Client,
2850
- v as AuthorizationResponseMode,
2851
- D as AuthorizationResponseType,
2884
+ Qt as Auth0Client,
2885
+ D as AuthorizationResponseMode,
2886
+ v as AuthorizationResponseType,
2852
2887
  L as CodeChallengeMethod,
2853
2888
  k as ComponentCategory,
2854
2889
  R as ComponentType,
@@ -2859,16 +2894,16 @@ export {
2859
2894
  $t as LocationInfo,
2860
2895
  Yt as LogTypes,
2861
2896
  G as LoginSessionState,
2862
- De as NodeType,
2897
+ ve as NodeType,
2863
2898
  ce as RedirectTargetEnum,
2864
- Qn as Strategy,
2865
- Zn as StrategyType,
2866
- Z as actionDependencySchema,
2899
+ Zn as Strategy,
2900
+ Qn as StrategyType,
2901
+ Q as actionDependencySchema,
2867
2902
  w as actionInsertSchema,
2868
2903
  Ue as actionNodeSchema,
2869
- zo as actionSchema,
2904
+ Ko as actionSchema,
2870
2905
  $ as actionSecretSchema,
2871
- Q as actionTriggerSchema,
2906
+ Z as actionTriggerSchema,
2872
2907
  Wo as actionUpdateSchema,
2873
2908
  Vn as activeUsersResponseSchema,
2874
2909
  ee as actorSchema,
@@ -2876,11 +2911,11 @@ export {
2876
2911
  ro as attackProtectionSchema,
2877
2912
  J as auditCategorySchema,
2878
2913
  re as auditEventInsertSchema,
2879
- Ko as auditEventSchema,
2914
+ zo as auditEventSchema,
2880
2915
  ae as auth0ClientSchema,
2881
2916
  nn as auth0FlowInsertSchema,
2882
2917
  He as auth0FlowSchema,
2883
- Qo as auth0QuerySchema,
2918
+ Zo as auth0QuerySchema,
2884
2919
  le as auth0UpdateUserActionSchema,
2885
2920
  $o as auth0UserResponseSchema,
2886
2921
  Ge as authParamsSchema,
@@ -2908,8 +2943,8 @@ export {
2908
2943
  go as colorsSchema,
2909
2944
  kt as componentMessageSchema,
2910
2945
  ke as componentSchema,
2911
- Ke as connectionInsertSchema,
2912
- ze as connectionOptionsSchema,
2946
+ ze as connectionInsertSchema,
2947
+ Ke as connectionOptionsSchema,
2913
2948
  sn as connectionSchema,
2914
2949
  m as coordinatesSchema,
2915
2950
  ti as createPassthroughAdapter,
@@ -2920,7 +2955,7 @@ export {
2920
2955
  Yn as customTextEntrySchema,
2921
2956
  Ho as customTextSchema,
2922
2957
  Xn as dailyStatsSchema,
2923
- vn as emailProviderSchema,
2958
+ Dn as emailProviderSchema,
2924
2959
  se as emailVerificationRulesSchema,
2925
2960
  pe as emailVerifyActionSchema,
2926
2961
  Me as endingSchema,
@@ -2930,7 +2965,7 @@ export {
2930
2965
  Yo as flowSchema,
2931
2966
  je as flowsFieldComponentSchema,
2932
2967
  Le as flowsFlowNodeSchema,
2933
- ve as flowsStepNodeSchema,
2968
+ De as flowsStepNodeSchema,
2934
2969
  u as fontDetailsSchema,
2935
2970
  uo as fontsSchema,
2936
2971
  cn as formControlSchema,
@@ -2948,7 +2983,7 @@ export {
2948
2983
  H as hookTemplateId,
2949
2984
  hn as hookTemplates,
2950
2985
  me as identitySchema,
2951
- zt as inviteInsertSchema,
2986
+ Kt as inviteInsertSchema,
2952
2987
  Sn as inviteSchema,
2953
2988
  Wt as inviteeSchema,
2954
2989
  Bt as inviterSchema,
@@ -2957,7 +2992,7 @@ export {
2957
2992
  ii as isPlainObject,
2958
2993
  un as isWidgetComponent,
2959
2994
  yn as jwksKeySchema,
2960
- Kt as jwksSchema,
2995
+ zt as jwksSchema,
2961
2996
  we as legalComponentSchema,
2962
2997
  ie as locationInfoSchema,
2963
2998
  Jt as logInsertSchema,
@@ -2973,11 +3008,11 @@ export {
2973
3008
  qt as loginSessionStateSchema,
2974
3009
  Fe as nodeSchema,
2975
3010
  An as openIDConfigurationSchema,
2976
- Do as organizationBrandingSchema,
3011
+ vo as organizationBrandingSchema,
2977
3012
  xo as organizationConnectionInsertSchema,
2978
- zn as organizationConnectionListSchema,
3013
+ Kn as organizationConnectionListSchema,
2979
3014
  Fo as organizationConnectionSchema,
2980
- vo as organizationEnabledConnectionSchema,
3015
+ Do as organizationEnabledConnectionSchema,
2981
3016
  Uo as organizationInsertSchema,
2982
3017
  Wn as organizationSchema,
2983
3018
  Lo as organizationTokenQuotaSchema,
@@ -2987,7 +3022,7 @@ export {
2987
3022
  On as passwordSchema,
2988
3023
  ue as profileDataSchema,
2989
3024
  Mo as promptScreenSchema,
2990
- Dn as promptSettingSchema,
3025
+ vn as promptSettingSchema,
2991
3026
  de as redirectActionSchema,
2992
3027
  fo as refreshTokenInsertSchema,
2993
3028
  Ln as refreshTokenSchema,
@@ -3005,7 +3040,7 @@ export {
3005
3040
  Pn as rolePermissionListSchema,
3006
3041
  Co as rolePermissionSchema,
3007
3042
  ko as roleSchema,
3008
- Dt as screenLinkSchema,
3043
+ vt as screenLinkSchema,
3009
3044
  lo as sessionInsertSchema,
3010
3045
  Nn as sessionSchema,
3011
3046
  wn as signingKeySchema,
@@ -3020,11 +3055,11 @@ export {
3020
3055
  bo as themeInsertSchema,
3021
3056
  kn as themeSchema,
3022
3057
  Rn as tokenResponseSchema,
3023
- Zo as totalsSchema,
3058
+ Qo as totalsSchema,
3024
3059
  _n as uiScreenSchema,
3025
3060
  be as userInsertSchema,
3026
3061
  Po as userOrganizationInsertSchema,
3027
- Kn as userOrganizationSchema,
3062
+ zn as userOrganizationSchema,
3028
3063
  To as userPermissionInsertSchema,
3029
3064
  Mn as userPermissionListSchema,
3030
3065
  Oo as userPermissionSchema,