@authhero/drizzle 0.22.3 → 0.23.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.
@@ -8,6 +8,13 @@
8
8
  "when": 1770276509080,
9
9
  "tag": "0000_blushing_makkari",
10
10
  "breakpoints": true
11
+ },
12
+ {
13
+ "idx": 1,
14
+ "version": "6",
15
+ "when": 1771349192482,
16
+ "tag": "0001_numerous_miss_america",
17
+ "breakpoints": true
11
18
  }
12
19
  ]
13
20
  }
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.22.3",
14
+ "version": "0.23.0",
15
15
  "files": [
16
16
  "dist",
17
17
  "src/schema",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "drizzle-orm": "^0.44.2",
44
- "@authhero/adapter-interfaces": "0.133.0"
44
+ "@authhero/adapter-interfaces": "0.134.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "tsc && vite build",
@@ -239,7 +239,7 @@ export const hooks = sqliteTable("hooks", {
239
239
  tenant_id: text("tenant_id", { length: 191 })
240
240
  .notNull()
241
241
  .references(() => tenants.id, { onDelete: "cascade" }),
242
- url: text("url", { length: 512 }).notNull(),
242
+ url: text("url", { length: 512 }), // nullable - only required for webhook type hooks
243
243
  trigger_id: text("trigger_id", { length: 255 }).notNull(),
244
244
  enabled: integer("enabled", { mode: "boolean" }).notNull(),
245
245
  created_at: text("created_at", { length: 35 }).notNull(),
@@ -248,8 +248,7 @@ export const hooks = sqliteTable("hooks", {
248
248
  .notNull()
249
249
  .default(false),
250
250
  priority: integer("priority"),
251
- form_id: text("form_id"),
252
- url_tmp: text("url_tmp", { length: 512 }),
251
+ form_id: text("form_id"), // only required for form type hooks
253
252
  });
254
253
 
255
254
  export const keys = sqliteTable("keys", {