authhero 0.138.0 → 0.139.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.
package/dist/authhero.mjs CHANGED
@@ -1683,6 +1683,7 @@ const l1 = a.object({
1683
1683
  /* FLOW */
1684
1684
  ),
1685
1685
  coordinates: _i,
1686
+ alias: a.string().optional(),
1686
1687
  config: a.object({
1687
1688
  flow_id: a.string(),
1688
1689
  next_node: a.string()
@@ -1910,11 +1911,10 @@ const y1 = a.enum([
1910
1911
  id: a.string(),
1911
1912
  type: a.literal("FLOW"),
1912
1913
  coordinates: a.object({ x: a.number(), y: a.number() }),
1913
- alias: a.string().min(1).max(150),
1914
+ alias: a.string().min(1).max(150).optional(),
1914
1915
  config: a.object({
1915
1916
  flow_id: a.string().max(30),
1916
- next_node: a.array(a.string())
1917
- // Accepts string[] (forms-custom-identifier or "$ending")
1917
+ next_node: a.string()
1918
1918
  })
1919
1919
  }),
1920
1920
  // ROUTER node
@@ -1927,10 +1927,10 @@ const y1 = a.enum([
1927
1927
  rules: a.array(
1928
1928
  a.object({
1929
1929
  id: a.string(),
1930
- alias: a.string().min(1).max(150),
1930
+ alias: a.string().min(1).max(150).optional(),
1931
1931
  condition: a.any(),
1932
1932
  // condition is required but type is not specified
1933
- next_node: a.array(a.string())
1933
+ next_node: a.string()
1934
1934
  })
1935
1935
  ),
1936
1936
  fallback: a.array(a.string())
@@ -1941,18 +1941,18 @@ const y1 = a.enum([
1941
1941
  id: a.string(),
1942
1942
  type: a.literal("STEP"),
1943
1943
  coordinates: a.object({ x: a.number(), y: a.number() }),
1944
- alias: a.string().min(1).max(150),
1944
+ alias: a.string().min(1).max(150).optional(),
1945
1945
  config: a.object({
1946
1946
  components: a.array(a.any()),
1947
1947
  // components is an array of objects, structure not specified
1948
- next_node: a.array(a.string())
1948
+ next_node: a.string()
1949
1949
  })
1950
1950
  })
1951
1951
  ])
1952
1952
  ).optional(),
1953
1953
  start: a.object({
1954
1954
  hidden_fields: a.array(a.object({ key: a.string(), value: a.string() })).optional(),
1955
- next_node: a.array(a.string()).optional(),
1955
+ next_node: a.string().optional(),
1956
1956
  coordinates: a.object({ x: a.number(), y: a.number() }).optional()
1957
1957
  }).optional(),
1958
1958
  ending: a.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authhero",
3
- "version": "0.138.0",
3
+ "version": "0.139.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -36,7 +36,7 @@
36
36
  "vite": "^5.4.11",
37
37
  "vite-plugin-dts": "^4.3.0",
38
38
  "vitest": "^2.1.5",
39
- "@authhero/kysely-adapter": "^10.12.0"
39
+ "@authhero/kysely-adapter": "^10.13.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "@peculiar/x509": "^1.12.3",
@@ -49,7 +49,7 @@
49
49
  "libphonenumber-js": "^1.12.8",
50
50
  "nanoid": "^5.0.8",
51
51
  "oslo": "^1.2.1",
52
- "@authhero/adapter-interfaces": "^0.62.0"
52
+ "@authhero/adapter-interfaces": "^0.63.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@hono/zod-openapi": "^0.19.2",