@authhero/drizzle 1.2.0 → 1.3.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.
@@ -36,6 +36,13 @@
36
36
  "when": 1786377042191,
37
37
  "tag": "0004_action_executions_created_at_index",
38
38
  "breakpoints": true
39
+ },
40
+ {
41
+ "idx": 5,
42
+ "version": "6",
43
+ "when": 1786446917782,
44
+ "tag": "0005_page_hooks",
45
+ "breakpoints": true
39
46
  }
40
47
  ]
41
48
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "1.2.0",
14
+ "version": "1.3.0",
15
15
  "files": [
16
16
  "dist",
17
17
  "src/schema",
@@ -35,8 +35,8 @@
35
35
  "dependencies": {
36
36
  "drizzle-orm": "^0.45.2",
37
37
  "nanoid": "^5.1.11",
38
- "@authhero/adapter-interfaces": "4.5.0",
39
- "@authhero/proxy": "0.10.2"
38
+ "@authhero/adapter-interfaces": "4.6.0",
39
+ "@authhero/proxy": "0.10.3"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@hono/zod-openapi": "^1.4.0",
@@ -287,6 +287,8 @@ export const hooks = sqliteTable(
287
287
  form_id: text("form_id", { length: 128 }), // only required for form type hooks
288
288
  template_id: text("template_id", { length: 64 }), // only required for template type hooks
289
289
  code_id: text("code_id", { length: 21 }), // only required for code type hooks
290
+ page_id: text("page_id", { length: 64 }), // only required for page type hooks
291
+ permission_required: text("permission_required", { length: 255 }), // optional gate for page type hooks
290
292
  metadata: text("metadata"), // JSON property bag (inheritable flag, template options)
291
293
  },
292
294
  (table) => [index("hooks_tenant_id_idx").on(table.tenant_id)],