@authhero/adapter-interfaces 0.103.0 → 0.104.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.
@@ -298,7 +298,7 @@ const r = e.object({
298
298
  id: e.string(),
299
299
  category: e.nativeEnum(p),
300
300
  type: e.nativeEnum(c)
301
- }), R = r.extend({
301
+ }), L = r.extend({
302
302
  category: e.literal(
303
303
  "BLOCK"
304
304
  /* BLOCK */
@@ -310,7 +310,7 @@ const r = e.object({
310
310
  config: e.object({
311
311
  content: e.string()
312
312
  }).passthrough()
313
- }), L = r.extend({
313
+ }), R = r.extend({
314
314
  category: e.literal(
315
315
  "BLOCK"
316
316
  /* BLOCK */
@@ -404,14 +404,14 @@ const r = e.object({
404
404
  category: e.string(),
405
405
  type: e.string()
406
406
  }).passthrough(), k = e.union([
407
- R,
408
407
  L,
408
+ R,
409
409
  D,
410
410
  w,
411
411
  j
412
412
  ]);
413
- var U = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(U || {});
414
- const F = e.object({
413
+ var F = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(F || {});
414
+ const U = e.object({
415
415
  id: e.string(),
416
416
  type: e.literal(
417
417
  "STEP"
@@ -440,7 +440,7 @@ const F = e.object({
440
440
  type: e.string(),
441
441
  coordinates: a
442
442
  }).passthrough(), x = e.union([
443
- F,
443
+ U,
444
444
  v,
445
445
  P
446
446
  ]), H = e.object({
@@ -755,6 +755,7 @@ const q = e.enum([
755
755
  }), $ = e.discriminatedUnion("type", [
756
756
  e.object({
757
757
  id: e.string(),
758
+ category: e.literal("BLOCK").optional(),
758
759
  type: e.literal("RICH_TEXT"),
759
760
  config: e.object({
760
761
  content: e.string()
@@ -764,6 +765,7 @@ const q = e.enum([
764
765
  }),
765
766
  e.object({
766
767
  id: e.string(),
768
+ category: e.literal("FIELD").optional(),
767
769
  type: e.literal("LEGAL"),
768
770
  config: e.object({
769
771
  text: e.string(),
@@ -775,6 +777,7 @@ const q = e.enum([
775
777
  }),
776
778
  e.object({
777
779
  id: e.string(),
780
+ category: e.literal("FIELD").optional(),
778
781
  type: e.literal("TEXT"),
779
782
  config: e.object({
780
783
  placeholder: e.string().optional(),
@@ -787,6 +790,7 @@ const q = e.enum([
787
790
  }),
788
791
  e.object({
789
792
  id: e.string(),
793
+ category: e.literal("BLOCK").optional(),
790
794
  type: e.literal("NEXT_BUTTON"),
791
795
  config: e.object({
792
796
  text: e.string().optional()
@@ -818,7 +822,7 @@ const q = e.enum([
818
822
  alias: e.string().min(1).max(150).optional(),
819
823
  config: e.object({
820
824
  flow_id: e.string().max(30),
821
- next_node: e.string()
825
+ next_node: e.string().optional()
822
826
  })
823
827
  }),
824
828
  // ROUTER node
@@ -836,7 +840,7 @@ const q = e.enum([
836
840
  next_node: e.string()
837
841
  })
838
842
  ),
839
- fallback: e.array(e.string())
843
+ fallback: e.string()
840
844
  })
841
845
  }),
842
846
  // STEP node
@@ -847,7 +851,7 @@ const q = e.enum([
847
851
  alias: e.string().min(1).max(150).optional(),
848
852
  config: e.object({
849
853
  components: e.array($),
850
- next_node: e.string()
854
+ next_node: e.string().optional()
851
855
  })
852
856
  })
853
857
  ])
@@ -1438,17 +1442,17 @@ const Ee = e.object({
1438
1442
  allow_offline_access: e.boolean().optional(),
1439
1443
  verificationKey: e.string().optional(),
1440
1444
  options: ye.optional()
1441
- }), Re = e.object({
1445
+ }), Le = e.object({
1442
1446
  id: e.string().optional(),
1443
1447
  ...Ne.shape,
1444
1448
  created_at: e.string().optional(),
1445
1449
  updated_at: e.string().optional()
1446
- }), Et = e.array(Re), Le = e.object({
1450
+ }), Et = e.array(Le), Re = e.object({
1447
1451
  role_id: e.string(),
1448
1452
  resource_server_identifier: e.string(),
1449
1453
  permission_name: e.string()
1450
1454
  }), De = e.object({
1451
- ...Le.shape,
1455
+ ...Re.shape,
1452
1456
  created_at: e.string()
1453
1457
  }), ft = e.array(De), we = e.object({
1454
1458
  user_id: e.string(),
@@ -1469,15 +1473,15 @@ const Ee = e.object({
1469
1473
  organization_id: e.string().optional()
1470
1474
  }), At = e.array(
1471
1475
  ke
1472
- ), Ue = e.object({
1476
+ ), Fe = e.object({
1473
1477
  user_id: e.string(),
1474
1478
  role_id: e.string(),
1475
1479
  organization_id: e.string().optional()
1476
- }), Fe = e.object({
1477
- ...Ue.shape,
1480
+ }), Ue = e.object({
1481
+ ...Fe.shape,
1478
1482
  tenant_id: e.string(),
1479
1483
  created_at: e.string().optional()
1480
- }), It = e.array(Fe), ve = e.object({
1484
+ }), It = e.array(Ue), ve = e.object({
1481
1485
  name: e.string().min(1).max(50).openapi({
1482
1486
  description: "The name of the role. Cannot include '<' or '>'"
1483
1487
  }),
@@ -1645,7 +1649,7 @@ export {
1645
1649
  be as GrantType,
1646
1650
  ge as LocationInfo,
1647
1651
  ce as LogTypes,
1648
- U as NodeType,
1652
+ F as NodeType,
1649
1653
  Ye as auth0FlowInsertSchema,
1650
1654
  G as auth0FlowSchema,
1651
1655
  Be as auth0QuerySchema,
@@ -1654,7 +1658,7 @@ export {
1654
1658
  _ as baseUserSchema,
1655
1659
  Ee as bordersSchema,
1656
1660
  Qe as brandingSchema,
1657
- L as buttonComponentSchema,
1661
+ R as buttonComponentSchema,
1658
1662
  y as clientGrantInsertSchema,
1659
1663
  qe as clientGrantListSchema,
1660
1664
  N as clientGrantSchema,
@@ -1716,12 +1720,12 @@ export {
1716
1720
  Ne as resourceServerInsertSchema,
1717
1721
  Et as resourceServerListSchema,
1718
1722
  ye as resourceServerOptionsSchema,
1719
- Re as resourceServerSchema,
1723
+ Le as resourceServerSchema,
1720
1724
  Te as resourceServerScopeSchema,
1721
- R as richTextComponentSchema,
1725
+ L as richTextComponentSchema,
1722
1726
  ve as roleInsertSchema,
1723
1727
  Ct as roleListSchema,
1724
- Le as rolePermissionInsertSchema,
1728
+ Re as rolePermissionInsertSchema,
1725
1729
  ft as rolePermissionListSchema,
1726
1730
  De as rolePermissionSchema,
1727
1731
  Pe as roleSchema,
@@ -1731,7 +1735,7 @@ export {
1731
1735
  bt as smsProviderSchema,
1732
1736
  ht as smsSendParamsSchema,
1733
1737
  H as startSchema,
1734
- F as stepNodeSchema,
1738
+ U as stepNodeSchema,
1735
1739
  X as tenantInsertSchema,
1736
1740
  V as tenantSchema,
1737
1741
  yt as tenantSettingsSchema,
@@ -1748,9 +1752,9 @@ export {
1748
1752
  At as userPermissionWithDetailsListSchema,
1749
1753
  ke as userPermissionWithDetailsSchema,
1750
1754
  Ve as userResponseSchema,
1751
- Ue as userRoleInsertSchema,
1755
+ Fe as userRoleInsertSchema,
1752
1756
  It as userRoleListSchema,
1753
- Fe as userRoleSchema,
1757
+ Ue as userRoleSchema,
1754
1758
  A as userSchema,
1755
1759
  J as verificationMethodsSchema,
1756
1760
  Ie as widgetSchema
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.103.0",
14
+ "version": "0.104.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],