@authhero/adapter-interfaces 0.145.0 → 0.147.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.
@@ -411,10 +411,10 @@ const ie = e.object({
411
411
  x: e.number(),
412
412
  y: e.number()
413
413
  });
414
- var R = /* @__PURE__ */ ((o) => (o.RICH_TEXT = "RICH_TEXT", o.NEXT_BUTTON = "NEXT_BUTTON", o.BACK_BUTTON = "BACK_BUTTON", o.SUBMIT_BUTTON = "SUBMIT_BUTTON", o.DIVIDER = "DIVIDER", o.TEXT = "TEXT", o.EMAIL = "EMAIL", o.PASSWORD = "PASSWORD", o.NUMBER = "NUMBER", o.PHONE = "PHONE", o.DATE = "DATE", o.CHECKBOX = "CHECKBOX", o.RADIO = "RADIO", o.SELECT = "SELECT", o.HIDDEN = "HIDDEN", o.LEGAL = "LEGAL", o))(R || {}), j = /* @__PURE__ */ ((o) => (o.BLOCK = "BLOCK", o.FIELD = "FIELD", o))(j || {});
414
+ var R = /* @__PURE__ */ ((o) => (o.RICH_TEXT = "RICH_TEXT", o.NEXT_BUTTON = "NEXT_BUTTON", o.BACK_BUTTON = "BACK_BUTTON", o.SUBMIT_BUTTON = "SUBMIT_BUTTON", o.DIVIDER = "DIVIDER", o.TEXT = "TEXT", o.EMAIL = "EMAIL", o.PASSWORD = "PASSWORD", o.NUMBER = "NUMBER", o.PHONE = "PHONE", o.DATE = "DATE", o.CHECKBOX = "CHECKBOX", o.RADIO = "RADIO", o.SELECT = "SELECT", o.HIDDEN = "HIDDEN", o.LEGAL = "LEGAL", o))(R || {}), w = /* @__PURE__ */ ((o) => (o.BLOCK = "BLOCK", o.FIELD = "FIELD", o))(w || {});
415
415
  const y = e.object({
416
416
  id: e.string(),
417
- category: e.nativeEnum(j),
417
+ category: e.nativeEnum(w),
418
418
  type: e.nativeEnum(R)
419
419
  }), se = y.extend({
420
420
  category: e.literal(
@@ -610,11 +610,11 @@ const ue = e.object({
610
610
  created_at: !0,
611
611
  updated_at: !0
612
612
  });
613
- var w = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.ID_TOKEN = "id_token", o.TOKEN_ID_TOKEN = "token id_token", o.CODE = "code", o))(w || {}), D = /* @__PURE__ */ ((o) => (o.QUERY = "query", o.FRAGMENT = "fragment", o.FORM_POST = "form_post", o.WEB_MESSAGE = "web_message", o.SAML_POST = "saml_post", o))(D || {}), L = /* @__PURE__ */ ((o) => (o.S256 = "S256", o.Plain = "plain", o))(L || {});
613
+ var j = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.ID_TOKEN = "id_token", o.TOKEN_ID_TOKEN = "token id_token", o.CODE = "code", o))(j || {}), D = /* @__PURE__ */ ((o) => (o.QUERY = "query", o.FRAGMENT = "fragment", o.FORM_POST = "form_post", o.WEB_MESSAGE = "web_message", o.SAML_POST = "saml_post", o))(D || {}), L = /* @__PURE__ */ ((o) => (o.S256 = "S256", o.Plain = "plain", o))(L || {});
614
614
  const Ie = e.object({
615
615
  client_id: e.string(),
616
616
  act_as: e.string().optional(),
617
- response_type: e.nativeEnum(w).optional(),
617
+ response_type: e.nativeEnum(j).optional(),
618
618
  response_mode: e.nativeEnum(D).optional(),
619
619
  redirect_uri: e.string().optional(),
620
620
  audience: e.string().optional(),
@@ -693,7 +693,7 @@ const Ie = e.object({
693
693
  }), At = e.object({
694
694
  ...Ce.shape,
695
695
  created_at: e.string()
696
- }), Te = e.object({
696
+ }), Oe = e.object({
697
697
  kid: e.string().optional(),
698
698
  team_id: e.string().optional(),
699
699
  realms: e.string().optional(),
@@ -805,12 +805,12 @@ const Ie = e.object({
805
805
  }).optional(),
806
806
  // Controls when root user attributes are updated from external IdP
807
807
  set_user_root_attributes: e.enum(["on_each_login", "on_first_login", "never_on_login"]).optional()
808
- }), Oe = e.object({
808
+ }), Te = e.object({
809
809
  id: e.string().optional(),
810
810
  name: e.string(),
811
811
  display_name: e.string().optional(),
812
812
  strategy: e.string(),
813
- options: Te.default({}),
813
+ options: Oe.default({}),
814
814
  enabled_clients: e.array(e.string()).default([]).optional(),
815
815
  response_type: e.custom().optional(),
816
816
  response_mode: e.custom().optional(),
@@ -822,7 +822,7 @@ const Ie = e.object({
822
822
  id: e.string(),
823
823
  created_at: e.string().transform((o) => o === null ? "" : o),
824
824
  updated_at: e.string().transform((o) => o === null ? "" : o)
825
- }).extend(Oe.shape), Ne = e.object({
825
+ }).extend(Te.shape), Ne = e.object({
826
826
  domain: e.string(),
827
827
  custom_domain_id: e.string().optional(),
828
828
  type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
@@ -847,7 +847,7 @@ const Ie = e.object({
847
847
  http_body: e.string(),
848
848
  http_url: e.string()
849
849
  })
850
- ]), je = e.object({
850
+ ]), we = e.object({
851
851
  ...Ne.shape,
852
852
  custom_domain_id: e.string(),
853
853
  primary: e.boolean(),
@@ -857,7 +857,7 @@ const Ie = e.object({
857
857
  methods: e.array(Re)
858
858
  }).optional(),
859
859
  tls_policy: e.string().optional()
860
- }), yt = je.extend({
860
+ }), yt = we.extend({
861
861
  tenant_id: e.string()
862
862
  }), C = e.object({
863
863
  id: e.string(),
@@ -865,7 +865,7 @@ const Ie = e.object({
865
865
  visible: e.boolean().optional().default(!0)
866
866
  }), l = C.extend({
867
867
  category: e.literal("BLOCK").optional()
868
- }), we = l.extend({
868
+ }), je = l.extend({
869
869
  type: e.literal("DIVIDER"),
870
870
  config: e.object({
871
871
  text: e.string().optional()
@@ -910,23 +910,23 @@ const Ie = e.object({
910
910
  config: e.object({
911
911
  content: e.string().optional()
912
912
  }).optional()
913
- }), T = C.extend({
913
+ }), O = C.extend({
914
914
  category: e.literal("WIDGET").optional(),
915
915
  label: e.string().min(1).optional(),
916
916
  hint: e.string().min(1).max(500).optional(),
917
917
  required: e.boolean().optional(),
918
918
  sensitive: e.boolean().optional()
919
- }), Pe = T.extend({
919
+ }), Pe = O.extend({
920
920
  type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
921
921
  config: e.object({
922
922
  credential_type: e.string().optional()
923
923
  })
924
- }), Me = T.extend({
924
+ }), Me = O.extend({
925
925
  type: e.literal("GMAPS_ADDRESS"),
926
926
  config: e.object({
927
927
  api_key: e.string().optional()
928
928
  })
929
- }), He = T.extend({
929
+ }), He = O.extend({
930
930
  type: e.literal("RECAPTCHA"),
931
931
  config: e.object({
932
932
  site_key: e.string().optional()
@@ -1058,7 +1058,8 @@ const Ie = e.object({
1058
1058
  name: e.string(),
1059
1059
  strategy: e.string().optional(),
1060
1060
  display_name: e.string().optional(),
1061
- icon_url: e.string().optional()
1061
+ icon_url: e.string().optional(),
1062
+ href: e.string().optional()
1062
1063
  })
1063
1064
  ).optional()
1064
1065
  }).optional()
@@ -1067,7 +1068,8 @@ const Ie = e.object({
1067
1068
  config: e.object({
1068
1069
  placeholder: e.string().optional(),
1069
1070
  default_country: e.string().optional(),
1070
- default_value: e.string().optional()
1071
+ default_value: e.string().optional(),
1072
+ allow_email: e.boolean().optional()
1071
1073
  }).optional()
1072
1074
  }), oo = t.extend({
1073
1075
  type: e.literal("TEXT"),
@@ -1084,7 +1086,7 @@ const Ie = e.object({
1084
1086
  default_value: e.string().optional()
1085
1087
  }).optional()
1086
1088
  }), no = e.discriminatedUnion("type", [
1087
- we,
1089
+ je,
1088
1090
  De,
1089
1091
  Le,
1090
1092
  ve,
@@ -1130,7 +1132,7 @@ const Ie = e.object({
1130
1132
  "TEL",
1131
1133
  "TEXT",
1132
1134
  "URL"
1133
- ]), Tt = e.object({
1135
+ ]), Ot = e.object({
1134
1136
  id: e.string(),
1135
1137
  type: e.literal("submit"),
1136
1138
  label: e.string(),
@@ -1215,7 +1217,7 @@ const Ie = e.object({
1215
1217
  }).optional()
1216
1218
  }).openapi({
1217
1219
  description: "Schema for flow-based forms (matches Auth0 Forms structure)"
1218
- }), Ot = e.object({
1220
+ }), Tt = e.object({
1219
1221
  ...s.shape,
1220
1222
  ...co.shape,
1221
1223
  id: e.string()
@@ -1244,10 +1246,10 @@ const Ie = e.object({
1244
1246
  function Rt(o) {
1245
1247
  return o.category === "BLOCK";
1246
1248
  }
1247
- function jt(o) {
1249
+ function wt(o) {
1248
1250
  return o.category === "WIDGET";
1249
1251
  }
1250
- function wt(o) {
1252
+ function jt(o) {
1251
1253
  return o.category === "FIELD";
1252
1254
  }
1253
1255
  const k = e.enum([
@@ -1391,7 +1393,7 @@ const k = e.enum([
1391
1393
  token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
1392
1394
  });
1393
1395
  var P = /* @__PURE__ */ ((o) => (o.PENDING = "pending", o.AUTHENTICATED = "authenticated", o.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", o.AWAITING_HOOK = "awaiting_hook", o.AWAITING_CONTINUATION = "awaiting_continuation", o.COMPLETED = "completed", o.FAILED = "failed", o.EXPIRED = "expired", o))(P || {});
1394
- const Co = e.nativeEnum(P), To = e.object({
1396
+ const Co = e.nativeEnum(P), Oo = e.object({
1395
1397
  csrf_token: e.string(),
1396
1398
  auth0Client: e.string().optional(),
1397
1399
  authParams: Ie,
@@ -1415,13 +1417,13 @@ const Co = e.nativeEnum(P), To = e.object({
1415
1417
  }).openapi({
1416
1418
  description: "This represents a login sesion"
1417
1419
  }), xt = e.object({
1418
- ...To.shape,
1420
+ ...Oo.shape,
1419
1421
  id: e.string().openapi({
1420
1422
  description: "This is is used as the state in the universal login"
1421
1423
  }),
1422
1424
  created_at: e.string(),
1423
1425
  updated_at: e.string()
1424
- }), Oo = {
1426
+ }), To = {
1425
1427
  // Network & System
1426
1428
  ACLS_SUMMARY: "acls_summary",
1427
1429
  ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
@@ -1593,7 +1595,7 @@ const Co = e.nativeEnum(P), To = e.object({
1593
1595
  WARNING_SENDING_NOTIFICATION: "wn",
1594
1596
  WARNING_USER_MANAGEMENT: "wum"
1595
1597
  }, No = e.string().refine(
1596
- (o) => Object.values(Oo).includes(o),
1598
+ (o) => Object.values(To).includes(o),
1597
1599
  { message: "Invalid log type" }
1598
1600
  ), Ro = e.object({
1599
1601
  name: e.string(),
@@ -1601,14 +1603,14 @@ const Co = e.nativeEnum(P), To = e.object({
1601
1603
  env: e.object({
1602
1604
  node: e.string().optional()
1603
1605
  }).optional()
1604
- }), jo = e.object({
1606
+ }), wo = e.object({
1605
1607
  country_code: e.string().length(2),
1606
1608
  city_name: e.string(),
1607
1609
  latitude: e.string(),
1608
1610
  longitude: e.string(),
1609
1611
  time_zone: e.string(),
1610
1612
  continent_code: e.string()
1611
- }), wo = e.object({
1613
+ }), jo = e.object({
1612
1614
  type: No,
1613
1615
  date: e.string(),
1614
1616
  description: e.string().optional(),
@@ -1630,9 +1632,9 @@ const Co = e.nativeEnum(P), To = e.object({
1630
1632
  hostname: e.string().optional(),
1631
1633
  auth0_client: Ro.optional(),
1632
1634
  log_id: e.string().optional(),
1633
- location_info: jo.optional()
1635
+ location_info: wo.optional()
1634
1636
  }), Pt = e.object({
1635
- ...wo.shape,
1637
+ ...jo.shape,
1636
1638
  log_id: e.string()
1637
1639
  }), Do = e.object({
1638
1640
  id: e.string().optional(),
@@ -2309,7 +2311,8 @@ const Uo = e.object({
2309
2311
  "common",
2310
2312
  "passkeys",
2311
2313
  "captcha",
2312
- "custom-form"
2314
+ "custom-form",
2315
+ "login-passwordless"
2313
2316
  ]), st = e.record(e.string(), e.record(e.string(), e.string())).openapi({
2314
2317
  type: "object",
2315
2318
  additionalProperties: {
@@ -2320,24 +2323,43 @@ const Uo = e.object({
2320
2323
  prompt: rt,
2321
2324
  language: e.string(),
2322
2325
  custom_text: st
2323
- });
2324
- function pn(o) {
2326
+ }), pn = {
2327
+ EMAIL: "email",
2328
+ SMS: "sms",
2329
+ USERNAME_PASSWORD: "Username-Password-Authentication",
2330
+ GOOGLE_OAUTH2: "google-oauth2",
2331
+ APPLE: "apple",
2332
+ FACEBOOK: "facebook",
2333
+ GITHUB: "github",
2334
+ MICROSOFT: "microsoft",
2335
+ VIPPS: "vipps",
2336
+ OIDC: "oidc",
2337
+ OAUTH2: "oauth2",
2338
+ SAMLP: "samlp",
2339
+ WAAD: "waad",
2340
+ ADFS: "adfs"
2341
+ }, cn = {
2342
+ DATABASE: "database",
2343
+ SOCIAL: "social",
2344
+ PASSWORDLESS: "passwordless"
2345
+ };
2346
+ function _n(o) {
2325
2347
  const [n, i] = o.split("|");
2326
2348
  if (!n || !i)
2327
2349
  throw new Error(`Invalid user_id: ${o}`);
2328
2350
  return { connection: n, id: i };
2329
2351
  }
2330
- function cn(o) {
2352
+ function dn(o) {
2331
2353
  const {
2332
2354
  primary: n,
2333
2355
  secondaries: i,
2334
- syncMethods: O = ["create", "update", "remove", "delete", "set"]
2356
+ syncMethods: T = ["create", "update", "remove", "delete", "set"]
2335
2357
  } = o, E = {
2336
2358
  get(p, a) {
2337
2359
  if (typeof a == "symbol")
2338
2360
  return p[a];
2339
2361
  const c = p[a];
2340
- return typeof c != "function" ? c : O.includes(a) ? async (..._) => {
2362
+ return typeof c != "function" ? c : T.includes(a) ? async (..._) => {
2341
2363
  const S = await c.apply(p, _), d = [];
2342
2364
  for (const r of i) {
2343
2365
  const h = r.adapter[a];
@@ -2368,10 +2390,10 @@ function cn(o) {
2368
2390
  };
2369
2391
  return new Proxy(n, E);
2370
2392
  }
2371
- function _n(o) {
2393
+ function gn(o) {
2372
2394
  return o;
2373
2395
  }
2374
- function dn(o) {
2396
+ function un(o) {
2375
2397
  var E, p, a, c, _, S, d, r, h, A, b, I;
2376
2398
  const n = o == null ? void 0 : o.options;
2377
2399
  if (!n)
@@ -2402,19 +2424,21 @@ export {
2402
2424
  ct as Auth0ActionEnum,
2403
2425
  Ro as Auth0Client,
2404
2426
  D as AuthorizationResponseMode,
2405
- w as AuthorizationResponseType,
2427
+ j as AuthorizationResponseType,
2406
2428
  L as CodeChallengeMethod,
2407
- j as ComponentCategory,
2429
+ w as ComponentCategory,
2408
2430
  R as ComponentType,
2409
2431
  _t as EmailActionEnum,
2410
2432
  Ct as FORM_FIELD_TYPES,
2411
2433
  pt as FlowActionTypeEnum,
2412
2434
  ko as GrantType,
2413
- jo as LocationInfo,
2414
- Oo as LogTypes,
2435
+ wo as LocationInfo,
2436
+ To as LogTypes,
2415
2437
  P as LoginSessionState,
2416
2438
  ge as NodeType,
2417
2439
  q as RedirectTargetEnum,
2440
+ pn as Strategy,
2441
+ cn as StrategyType,
2418
2442
  he as actionNodeSchema,
2419
2443
  sn as activeUsersResponseSchema,
2420
2444
  $ as addressSchema,
@@ -2440,14 +2464,14 @@ export {
2440
2464
  Fo as colorsSchema,
2441
2465
  _o as componentMessageSchema,
2442
2466
  de as componentSchema,
2443
- Oe as connectionInsertSchema,
2444
- Te as connectionOptionsSchema,
2467
+ Te as connectionInsertSchema,
2468
+ Oe as connectionOptionsSchema,
2445
2469
  It as connectionSchema,
2446
2470
  u as coordinatesSchema,
2447
- cn as createPassthroughAdapter,
2448
- _n as createWriteOnlyAdapter,
2471
+ dn as createPassthroughAdapter,
2472
+ gn as createWriteOnlyAdapter,
2449
2473
  Ne as customDomainInsertSchema,
2450
- je as customDomainSchema,
2474
+ we as customDomainSchema,
2451
2475
  yt as customDomainWithTenantIdSchema,
2452
2476
  ln as customTextEntrySchema,
2453
2477
  st as customTextSchema,
@@ -2465,14 +2489,14 @@ export {
2465
2489
  ue as flowsStepNodeSchema,
2466
2490
  g as fontDetailsSchema,
2467
2491
  xo as fontsSchema,
2468
- Tt as formControlSchema,
2492
+ Ot as formControlSchema,
2469
2493
  co as formInsertSchema,
2470
2494
  v as formNodeComponentDefinition,
2471
2495
  po as formNodeSchema,
2472
- Ot as formSchema,
2496
+ Tt as formSchema,
2473
2497
  _e as genericComponentSchema,
2474
2498
  be as genericNodeSchema,
2475
- dn as getConnectionIdentifierConfig,
2499
+ un as getConnectionIdentifierConfig,
2476
2500
  Lt as hookInsertSchema,
2477
2501
  vt as hookSchema,
2478
2502
  x as hookTemplateId,
@@ -2483,14 +2507,14 @@ export {
2483
2507
  Ao as inviteeSchema,
2484
2508
  So as inviterSchema,
2485
2509
  Rt as isBlockComponent,
2486
- wt as isFieldComponent,
2487
- jt as isWidgetComponent,
2510
+ jt as isFieldComponent,
2511
+ wt as isWidgetComponent,
2488
2512
  Ut as jwksKeySchema,
2489
2513
  yo as jwksSchema,
2490
2514
  pe as legalComponentSchema,
2491
- wo as logInsertSchema,
2515
+ jo as logInsertSchema,
2492
2516
  Pt as logSchema,
2493
- To as loginSessionInsertSchema,
2517
+ Oo as loginSessionInsertSchema,
2494
2518
  xt as loginSessionSchema,
2495
2519
  Co as loginSessionStateSchema,
2496
2520
  fe as nodeSchema,
@@ -2501,7 +2525,7 @@ export {
2501
2525
  tn as organizationSchema,
2502
2526
  nt as organizationTokenQuotaSchema,
2503
2527
  Po as pageBackgroundSchema,
2504
- pn as parseUserId,
2528
+ _n as parseUserId,
2505
2529
  Do as passwordInsertSchema,
2506
2530
  Mt as passwordSchema,
2507
2531
  J as profileDataSchema,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.145.0",
14
+ "version": "0.147.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],