@storyshelf/db-sqlite 0.7.0 → 0.9.0-next-d2cc082

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.
Files changed (74) hide show
  1. package/dist/better-sqlite3.d.mts +0 -2
  2. package/dist/better-sqlite3.mjs +2 -3
  3. package/dist/bun-sqlite.d.mts +0 -2
  4. package/dist/bun-sqlite.mjs +2 -3
  5. package/dist/d1.d.mts +0 -2
  6. package/dist/d1.mjs +2 -3
  7. package/dist/ddl.d.mts +1 -3
  8. package/dist/ddl.mjs +22 -2
  9. package/dist/ddl.mjs.map +1 -1
  10. package/dist/drizzle-factory.d.mts +0 -2
  11. package/dist/drizzle-factory.mjs +6 -3
  12. package/dist/drizzle-factory.mjs.map +1 -1
  13. package/dist/ensure-db-dir.mjs +2 -4
  14. package/dist/ensure-db-dir.mjs.map +1 -1
  15. package/dist/index.d.mts +4 -3
  16. package/dist/index.mjs +3 -4
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/schema/baseline.d.mts +33 -16
  19. package/dist/schema/baseline.mjs +2 -2
  20. package/dist/schema/baseline.mjs.map +1 -1
  21. package/dist/schema/build-component.d.mts +9 -11
  22. package/dist/schema/build-component.mjs +1 -2
  23. package/dist/schema/build-review.d.mts +7 -9
  24. package/dist/schema/build-review.mjs +1 -2
  25. package/dist/schema/build.d.mts +43 -25
  26. package/dist/schema/build.mjs +2 -2
  27. package/dist/schema/build.mjs.map +1 -1
  28. package/dist/schema/capture-attempt.d.mts +25 -27
  29. package/dist/schema/capture-attempt.mjs +1 -2
  30. package/dist/schema/capture-job.d.mts +0 -2
  31. package/dist/schema/capture-job.mjs +1 -2
  32. package/dist/schema/capture-shard.d.mts +15 -17
  33. package/dist/schema/capture-shard.mjs +1 -2
  34. package/dist/schema/comment.d.mts +12 -14
  35. package/dist/schema/comment.mjs +1 -2
  36. package/dist/schema/connection.d.mts +10 -12
  37. package/dist/schema/connection.mjs +1 -2
  38. package/dist/schema/content-refs.d.mts +0 -2
  39. package/dist/schema/content-refs.mjs +1 -2
  40. package/dist/schema/design.d.mts +53 -35
  41. package/dist/schema/design.mjs +2 -2
  42. package/dist/schema/design.mjs.map +1 -1
  43. package/dist/schema/insight.d.mts +36 -38
  44. package/dist/schema/insight.mjs +1 -2
  45. package/dist/schema/label.d.mts +15 -17
  46. package/dist/schema/label.mjs +1 -2
  47. package/dist/schema/member.d.mts +7 -9
  48. package/dist/schema/member.mjs +1 -2
  49. package/dist/schema/notification.d.mts +20 -22
  50. package/dist/schema/notification.mjs +1 -2
  51. package/dist/schema/project-group-mapping.d.mts +6 -8
  52. package/dist/schema/project-group-mapping.mjs +1 -2
  53. package/dist/schema/project.d.mts +0 -2
  54. package/dist/schema/project.mjs +1 -2
  55. package/dist/schema/site-setting.d.mts +0 -2
  56. package/dist/schema/site-setting.mjs +1 -2
  57. package/dist/schema/snapshot.d.mts +91 -33
  58. package/dist/schema/snapshot.mjs +4 -2
  59. package/dist/schema/snapshot.mjs.map +1 -1
  60. package/dist/schema/token.d.mts +8 -10
  61. package/dist/schema/token.mjs +1 -2
  62. package/dist/schema/usage.d.mts +15 -17
  63. package/dist/schema/usage.mjs +1 -2
  64. package/dist/schema/user-invite.d.mts +7 -9
  65. package/dist/schema/user-invite.mjs +1 -2
  66. package/dist/schema/user.d.mts +0 -2
  67. package/dist/schema/user.mjs +1 -2
  68. package/dist/schema/webhook.d.mts +8 -10
  69. package/dist/schema/webhook.mjs +1 -2
  70. package/dist/schema.d.mts +0 -2
  71. package/dist/schema.mjs +1 -2
  72. package/dist/turso.d.mts +0 -2
  73. package/dist/turso.mjs +2 -3
  74. package/package.json +4 -13
@@ -1,12 +1,11 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/schema/notification.d.ts
4
3
  /** Narrow `notification_channels` table definition. */
5
- declare const notificationChannels: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
4
+ declare const notificationChannels: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
6
5
  name: "notification_channels";
7
6
  schema: undefined;
8
7
  columns: {
9
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
8
+ id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
10
9
  name: "id";
11
10
  tableName: "notification_channels";
12
11
  dataType: "string";
@@ -25,7 +24,7 @@ declare const notificationChannels: import("drizzle-orm/sqlite-core").SQLiteTabl
25
24
  }, {}, {
26
25
  length: number | undefined;
27
26
  }>;
28
- projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
27
+ projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
29
28
  name: "project_id";
30
29
  tableName: "notification_channels";
31
30
  dataType: "string";
@@ -44,7 +43,7 @@ declare const notificationChannels: import("drizzle-orm/sqlite-core").SQLiteTabl
44
43
  }, {}, {
45
44
  length: number | undefined;
46
45
  }>;
47
- provider: import("drizzle-orm/sqlite-core").SQLiteColumn<{
46
+ provider: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
48
47
  name: "provider";
49
48
  tableName: "notification_channels";
50
49
  dataType: "string";
@@ -63,7 +62,7 @@ declare const notificationChannels: import("drizzle-orm/sqlite-core").SQLiteTabl
63
62
  }, {}, {
64
63
  length: number | undefined;
65
64
  }>;
66
- config: import("drizzle-orm/sqlite-core").SQLiteColumn<{
65
+ config: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
67
66
  name: "config";
68
67
  tableName: "notification_channels";
69
68
  dataType: "string";
@@ -82,7 +81,7 @@ declare const notificationChannels: import("drizzle-orm/sqlite-core").SQLiteTabl
82
81
  }, {}, {
83
82
  length: number | undefined;
84
83
  }>;
85
- secretEncrypted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
84
+ secretEncrypted: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
86
85
  name: "secret_encrypted";
87
86
  tableName: "notification_channels";
88
87
  dataType: "string";
@@ -101,7 +100,7 @@ declare const notificationChannels: import("drizzle-orm/sqlite-core").SQLiteTabl
101
100
  }, {}, {
102
101
  length: number | undefined;
103
102
  }>;
104
- events: import("drizzle-orm/sqlite-core").SQLiteColumn<{
103
+ events: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
105
104
  name: "events";
106
105
  tableName: "notification_channels";
107
106
  dataType: "string";
@@ -120,7 +119,7 @@ declare const notificationChannels: import("drizzle-orm/sqlite-core").SQLiteTabl
120
119
  }, {}, {
121
120
  length: number | undefined;
122
121
  }>;
123
- enabled: import("drizzle-orm/sqlite-core").SQLiteColumn<{
122
+ enabled: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
124
123
  name: "enabled";
125
124
  tableName: "notification_channels";
126
125
  dataType: "boolean";
@@ -137,7 +136,7 @@ declare const notificationChannels: import("drizzle-orm/sqlite-core").SQLiteTabl
137
136
  identity: undefined;
138
137
  generated: undefined;
139
138
  }, {}, {}>;
140
- lastError: import("drizzle-orm/sqlite-core").SQLiteColumn<{
139
+ lastError: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
141
140
  name: "last_error";
142
141
  tableName: "notification_channels";
143
142
  dataType: "string";
@@ -156,7 +155,7 @@ declare const notificationChannels: import("drizzle-orm/sqlite-core").SQLiteTabl
156
155
  }, {}, {
157
156
  length: number | undefined;
158
157
  }>;
159
- lastErrorAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
158
+ lastErrorAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
160
159
  name: "last_error_at";
161
160
  tableName: "notification_channels";
162
161
  dataType: "string";
@@ -175,7 +174,7 @@ declare const notificationChannels: import("drizzle-orm/sqlite-core").SQLiteTabl
175
174
  }, {}, {
176
175
  length: number | undefined;
177
176
  }>;
178
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
177
+ createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
179
178
  name: "created_at";
180
179
  tableName: "notification_channels";
181
180
  dataType: "string";
@@ -194,7 +193,7 @@ declare const notificationChannels: import("drizzle-orm/sqlite-core").SQLiteTabl
194
193
  }, {}, {
195
194
  length: number | undefined;
196
195
  }>;
197
- updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
196
+ updatedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
198
197
  name: "updated_at";
199
198
  tableName: "notification_channels";
200
199
  dataType: "string";
@@ -217,11 +216,11 @@ declare const notificationChannels: import("drizzle-orm/sqlite-core").SQLiteTabl
217
216
  dialect: 'sqlite';
218
217
  }>;
219
218
  /** Narrow `notification_subscriptions` table definition. */
220
- declare const notificationSubscriptions: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
219
+ declare const notificationSubscriptions: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
221
220
  name: "notification_subscriptions";
222
221
  schema: undefined;
223
222
  columns: {
224
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
223
+ id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
225
224
  name: "id";
226
225
  tableName: "notification_subscriptions";
227
226
  dataType: "string";
@@ -240,7 +239,7 @@ declare const notificationSubscriptions: import("drizzle-orm/sqlite-core").SQLit
240
239
  }, {}, {
241
240
  length: number | undefined;
242
241
  }>;
243
- projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
242
+ projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
244
243
  name: "project_id";
245
244
  tableName: "notification_subscriptions";
246
245
  dataType: "string";
@@ -259,7 +258,7 @@ declare const notificationSubscriptions: import("drizzle-orm/sqlite-core").SQLit
259
258
  }, {}, {
260
259
  length: number | undefined;
261
260
  }>;
262
- userId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
261
+ userId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
263
262
  name: "user_id";
264
263
  tableName: "notification_subscriptions";
265
264
  dataType: "string";
@@ -278,7 +277,7 @@ declare const notificationSubscriptions: import("drizzle-orm/sqlite-core").SQLit
278
277
  }, {}, {
279
278
  length: number | undefined;
280
279
  }>;
281
- events: import("drizzle-orm/sqlite-core").SQLiteColumn<{
280
+ events: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
282
281
  name: "events";
283
282
  tableName: "notification_subscriptions";
284
283
  dataType: "string";
@@ -297,7 +296,7 @@ declare const notificationSubscriptions: import("drizzle-orm/sqlite-core").SQLit
297
296
  }, {}, {
298
297
  length: number | undefined;
299
298
  }>;
300
- via: import("drizzle-orm/sqlite-core").SQLiteColumn<{
299
+ via: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
301
300
  name: "via";
302
301
  tableName: "notification_subscriptions";
303
302
  dataType: "string";
@@ -316,7 +315,7 @@ declare const notificationSubscriptions: import("drizzle-orm/sqlite-core").SQLit
316
315
  }, {}, {
317
316
  length: number | undefined;
318
317
  }>;
319
- enabled: import("drizzle-orm/sqlite-core").SQLiteColumn<{
318
+ enabled: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
320
319
  name: "enabled";
321
320
  tableName: "notification_subscriptions";
322
321
  dataType: "boolean";
@@ -333,7 +332,7 @@ declare const notificationSubscriptions: import("drizzle-orm/sqlite-core").SQLit
333
332
  identity: undefined;
334
333
  generated: undefined;
335
334
  }, {}, {}>;
336
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
335
+ createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
337
336
  name: "created_at";
338
337
  tableName: "notification_subscriptions";
339
338
  dataType: "string";
@@ -379,6 +378,5 @@ interface NotificationSubscription {
379
378
  enabled: boolean;
380
379
  createdAt: string;
381
380
  }
382
- //#endregion
383
381
  export { NotificationChannel, NotificationSubscription, notificationChannels, notificationSubscriptions };
384
382
  //# sourceMappingURL=notification.d.mts.map
@@ -4,7 +4,7 @@ import.meta.url;
4
4
  import { projects } from "./project.mjs";
5
5
  import { users } from "./user.mjs";
6
6
  import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
7
- //#region src/schema/notification.ts
7
+ // src/schema/notification.ts
8
8
  /** Narrow `notification_channels` table definition. */
9
9
  const notificationChannels = sqliteTable("notification_channels", {
10
10
  id: text("id").primaryKey(),
@@ -29,7 +29,6 @@ const notificationSubscriptions = sqliteTable("notification_subscriptions", {
29
29
  enabled: integer("enabled", { mode: "boolean" }).notNull().default(true),
30
30
  createdAt: text("created_at").notNull()
31
31
  });
32
- //#endregion
33
32
  export { notificationChannels, notificationSubscriptions };
34
33
 
35
34
  //# sourceMappingURL=notification.mjs.map
@@ -1,13 +1,12 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
3
  import { ProjectRole } from "@storyshelf/core/types";
4
- //#region src/schema/project-group-mapping.d.ts
5
4
  /** Narrow `project_group_mappings` table definition. */
6
- declare const projectGroupMappings: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
5
+ declare const projectGroupMappings: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
7
6
  name: "project_group_mappings";
8
7
  schema: undefined;
9
8
  columns: {
10
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
9
+ id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
11
10
  name: "id";
12
11
  tableName: "project_group_mappings";
13
12
  dataType: "string";
@@ -26,7 +25,7 @@ declare const projectGroupMappings: import("drizzle-orm/sqlite-core").SQLiteTabl
26
25
  }, {}, {
27
26
  length: number | undefined;
28
27
  }>;
29
- projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
28
+ projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
30
29
  name: "project_id";
31
30
  tableName: "project_group_mappings";
32
31
  dataType: "string";
@@ -45,7 +44,7 @@ declare const projectGroupMappings: import("drizzle-orm/sqlite-core").SQLiteTabl
45
44
  }, {}, {
46
45
  length: number | undefined;
47
46
  }>;
48
- groupName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
47
+ groupName: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
49
48
  name: "group_name";
50
49
  tableName: "project_group_mappings";
51
50
  dataType: "string";
@@ -64,7 +63,7 @@ declare const projectGroupMappings: import("drizzle-orm/sqlite-core").SQLiteTabl
64
63
  }, {}, {
65
64
  length: number | undefined;
66
65
  }>;
67
- role: import("drizzle-orm/sqlite-core").SQLiteColumn<{
66
+ role: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
68
67
  name: "role";
69
68
  tableName: "project_group_mappings";
70
69
  dataType: "string";
@@ -84,7 +83,7 @@ declare const projectGroupMappings: import("drizzle-orm/sqlite-core").SQLiteTabl
84
83
  length: number | undefined;
85
84
  $type: "admin" | "approver" | "developer" | "viewer";
86
85
  }>;
87
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
86
+ createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
88
87
  name: "created_at";
89
88
  tableName: "project_group_mappings";
90
89
  dataType: "string";
@@ -114,6 +113,5 @@ interface ProjectGroupMapping {
114
113
  role: ProjectRole;
115
114
  createdAt: string;
116
115
  }
117
- //#endregion
118
116
  export { ProjectGroupMapping, projectGroupMappings };
119
117
  //# sourceMappingURL=project-group-mapping.d.mts.map
@@ -3,7 +3,7 @@ import "node:url";
3
3
  import.meta.url;
4
4
  import { projects } from "./project.mjs";
5
5
  import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
6
- //#region src/schema/project-group-mapping.ts
6
+ // src/schema/project-group-mapping.ts
7
7
  /** Narrow `project_group_mappings` table definition. */
8
8
  const projectGroupMappings = sqliteTable("project_group_mappings", {
9
9
  id: text("id").primaryKey(),
@@ -12,7 +12,6 @@ const projectGroupMappings = sqliteTable("project_group_mappings", {
12
12
  role: text("role").$type().notNull().default("viewer"),
13
13
  createdAt: text("created_at").notNull()
14
14
  }, (t) => [uniqueIndex("project_group_mappings_project_group_idx").on(t.projectId, t.groupName)]);
15
- //#endregion
16
15
  export { projectGroupMappings };
17
16
 
18
17
  //# sourceMappingURL=project-group-mapping.mjs.map
@@ -1,6 +1,5 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/schema/project.d.ts
4
3
  /** Narrow `projects` table definition. */
5
4
  declare const projects: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
6
5
  name: "projects";
@@ -485,6 +484,5 @@ interface StorybookMeta {
485
484
  packagePath?: string;
486
485
  previewParameters?: Record<string, unknown>;
487
486
  }
488
- //#endregion
489
487
  export { Project, StorybookMeta, projects };
490
488
  //# sourceMappingURL=project.d.mts.map
@@ -2,7 +2,7 @@ import "node:path";
2
2
  import "node:url";
3
3
  import.meta.url;
4
4
  import { integer, real, sqliteTable, text } from "drizzle-orm/sqlite-core";
5
- //#region src/schema/project.ts
5
+ // src/schema/project.ts
6
6
  /** Narrow `projects` table definition. */
7
7
  const projects = sqliteTable("projects", {
8
8
  id: text("id").primaryKey(),
@@ -30,7 +30,6 @@ const projects = sqliteTable("projects", {
30
30
  createdAt: text("created_at").notNull(),
31
31
  updatedAt: text("updated_at").notNull()
32
32
  });
33
- //#endregion
34
33
  export { projects };
35
34
 
36
35
  //# sourceMappingURL=project.mjs.map
@@ -1,6 +1,5 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/schema/site-setting.d.ts
4
3
  /** Narrow `site_settings` table definition: key-value facts the app learns at runtime. */
5
4
  declare const siteSettings: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
6
5
  name: "site_settings";
@@ -104,6 +103,5 @@ declare const siteSettings: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
104
103
  };
105
104
  dialect: 'sqlite';
106
105
  }>;
107
- //#endregion
108
106
  export { siteSettings };
109
107
  //# sourceMappingURL=site-setting.d.mts.map
@@ -2,7 +2,7 @@ import "node:path";
2
2
  import "node:url";
3
3
  import.meta.url;
4
4
  import { sqliteTable, text } from "drizzle-orm/sqlite-core";
5
- //#region src/schema/site-setting.ts
5
+ // src/schema/site-setting.ts
6
6
  /** Narrow `site_settings` table definition: key-value facts the app learns at runtime. */
7
7
  const siteSettings = sqliteTable("site_settings", {
8
8
  id: text("id").primaryKey(),
@@ -11,7 +11,6 @@ const siteSettings = sqliteTable("site_settings", {
11
11
  createdAt: text("created_at").notNull(),
12
12
  updatedAt: text("updated_at").notNull()
13
13
  });
14
- //#endregion
15
14
  export { siteSettings };
16
15
 
17
16
  //# sourceMappingURL=site-setting.mjs.map
@@ -1,13 +1,12 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
3
  import { SnapshotStatus } from "@storyshelf/core/types";
4
- //#region src/schema/snapshot.d.ts
5
4
  /** Narrow `snapshots` table definition. */
6
- declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
5
+ declare const snapshots: import("drizzle-orm/sqlite-core/table.js").SQLiteTableWithColumns<{
7
6
  name: "snapshots";
8
7
  schema: undefined;
9
8
  columns: {
10
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
9
+ id: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
11
10
  name: "id";
12
11
  tableName: "snapshots";
13
12
  dataType: "string";
@@ -26,7 +25,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
26
25
  }, {}, {
27
26
  length: number | undefined;
28
27
  }>;
29
- projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
28
+ projectId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
30
29
  name: "project_id";
31
30
  tableName: "snapshots";
32
31
  dataType: "string";
@@ -45,7 +44,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
45
44
  }, {}, {
46
45
  length: number | undefined;
47
46
  }>;
48
- buildId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
47
+ buildId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
49
48
  name: "build_id";
50
49
  tableName: "snapshots";
51
50
  dataType: "string";
@@ -64,7 +63,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
64
63
  }, {}, {
65
64
  length: number | undefined;
66
65
  }>;
67
- storyId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
66
+ storyId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
68
67
  name: "story_id";
69
68
  tableName: "snapshots";
70
69
  dataType: "string";
@@ -83,7 +82,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
83
82
  }, {}, {
84
83
  length: number | undefined;
85
84
  }>;
86
- storyName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
85
+ storyName: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
87
86
  name: "story_name";
88
87
  tableName: "snapshots";
89
88
  dataType: "string";
@@ -102,7 +101,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
102
101
  }, {}, {
103
102
  length: number | undefined;
104
103
  }>;
105
- storyTitle: import("drizzle-orm/sqlite-core").SQLiteColumn<{
104
+ storyTitle: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
106
105
  name: "story_title";
107
106
  tableName: "snapshots";
108
107
  dataType: "string";
@@ -121,7 +120,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
121
120
  }, {}, {
122
121
  length: number | undefined;
123
122
  }>;
124
- storyImportPath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
123
+ storyImportPath: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
125
124
  name: "story_import_path";
126
125
  tableName: "snapshots";
127
126
  dataType: "string";
@@ -140,7 +139,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
140
139
  }, {}, {
141
140
  length: number | undefined;
142
141
  }>;
143
- designUrl: import("drizzle-orm/sqlite-core").SQLiteColumn<{
142
+ designUrl: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
144
143
  name: "design_url";
145
144
  tableName: "snapshots";
146
145
  dataType: "string";
@@ -159,7 +158,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
159
158
  }, {}, {
160
159
  length: number | undefined;
161
160
  }>;
162
- viewportName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
161
+ viewportName: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
163
162
  name: "viewport_name";
164
163
  tableName: "snapshots";
165
164
  dataType: "string";
@@ -178,7 +177,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
178
177
  }, {}, {
179
178
  length: number | undefined;
180
179
  }>;
181
- viewportWidth: import("drizzle-orm/sqlite-core").SQLiteColumn<{
180
+ viewportWidth: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
182
181
  name: "viewport_width";
183
182
  tableName: "snapshots";
184
183
  dataType: "number";
@@ -195,7 +194,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
195
194
  identity: undefined;
196
195
  generated: undefined;
197
196
  }, {}, {}>;
198
- viewportHeight: import("drizzle-orm/sqlite-core").SQLiteColumn<{
197
+ viewportHeight: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
199
198
  name: "viewport_height";
200
199
  tableName: "snapshots";
201
200
  dataType: "number";
@@ -212,7 +211,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
212
211
  identity: undefined;
213
212
  generated: undefined;
214
213
  }, {}, {}>;
215
- screenshotPath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
214
+ screenshotPath: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
216
215
  name: "screenshot_path";
217
216
  tableName: "snapshots";
218
217
  dataType: "string";
@@ -231,7 +230,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
231
230
  }, {}, {
232
231
  length: number | undefined;
233
232
  }>;
234
- diffPath: import("drizzle-orm/sqlite-core").SQLiteColumn<{
233
+ diffPath: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
235
234
  name: "diff_path";
236
235
  tableName: "snapshots";
237
236
  dataType: "string";
@@ -250,7 +249,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
250
249
  }, {}, {
251
250
  length: number | undefined;
252
251
  }>;
253
- diffPixels: import("drizzle-orm/sqlite-core").SQLiteColumn<{
252
+ diffPixels: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
254
253
  name: "diff_pixels";
255
254
  tableName: "snapshots";
256
255
  dataType: "number";
@@ -267,7 +266,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
267
266
  identity: undefined;
268
267
  generated: undefined;
269
268
  }, {}, {}>;
270
- diffRatio: import("drizzle-orm/sqlite-core").SQLiteColumn<{
269
+ diffRatio: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
271
270
  name: "diff_ratio";
272
271
  tableName: "snapshots";
273
272
  dataType: "number";
@@ -284,7 +283,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
284
283
  identity: undefined;
285
284
  generated: undefined;
286
285
  }, {}, {}>;
287
- diffPassed: import("drizzle-orm/sqlite-core").SQLiteColumn<{
286
+ diffPassed: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
288
287
  name: "diff_passed";
289
288
  tableName: "snapshots";
290
289
  dataType: "boolean";
@@ -301,7 +300,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
301
300
  identity: undefined;
302
301
  generated: undefined;
303
302
  }, {}, {}>;
304
- status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
303
+ status: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
305
304
  name: "status";
306
305
  tableName: "snapshots";
307
306
  dataType: "string";
@@ -321,7 +320,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
321
320
  length: number | undefined;
322
321
  $type: "approved" | "changed" | "new" | "pending" | "rejected" | "unchanged";
323
322
  }>;
324
- reviewedBy: import("drizzle-orm/sqlite-core").SQLiteColumn<{
323
+ reviewedBy: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
325
324
  name: "reviewed_by";
326
325
  tableName: "snapshots";
327
326
  dataType: "string";
@@ -340,7 +339,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
340
339
  }, {}, {
341
340
  length: number | undefined;
342
341
  }>;
343
- reviewedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
342
+ reviewedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
344
343
  name: "reviewed_at";
345
344
  tableName: "snapshots";
346
345
  dataType: "string";
@@ -359,7 +358,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
359
358
  }, {}, {
360
359
  length: number | undefined;
361
360
  }>;
362
- infraHash: import("drizzle-orm/sqlite-core").SQLiteColumn<{
361
+ infraHash: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
363
362
  name: "infra_hash";
364
363
  tableName: "snapshots";
365
364
  dataType: "string";
@@ -378,7 +377,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
378
377
  }, {}, {
379
378
  length: number | undefined;
380
379
  }>;
381
- envChange: import("drizzle-orm/sqlite-core").SQLiteColumn<{
380
+ envChange: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
382
381
  name: "env_change";
383
382
  tableName: "snapshots";
384
383
  dataType: "string";
@@ -397,7 +396,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
397
396
  }, {}, {
398
397
  length: number | undefined;
399
398
  }>;
400
- inherited: import("drizzle-orm/sqlite-core").SQLiteColumn<{
399
+ inherited: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
401
400
  name: "inherited";
402
401
  tableName: "snapshots";
403
402
  dataType: "boolean";
@@ -414,7 +413,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
414
413
  identity: undefined;
415
414
  generated: undefined;
416
415
  }, {}, {}>;
417
- baselineId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
416
+ baselineId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
418
417
  name: "baseline_id";
419
418
  tableName: "snapshots";
420
419
  dataType: "string";
@@ -433,7 +432,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
433
432
  }, {}, {
434
433
  length: number | undefined;
435
434
  }>;
436
- baselineVersion: import("drizzle-orm/sqlite-core").SQLiteColumn<{
435
+ baselineVersion: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
437
436
  name: "baseline_version";
438
437
  tableName: "snapshots";
439
438
  dataType: "string";
@@ -452,7 +451,64 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
452
451
  }, {}, {
453
452
  length: number | undefined;
454
453
  }>;
455
- mode: import("drizzle-orm/sqlite-core").SQLiteColumn<{
454
+ sourceBuildId: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
455
+ name: "source_build_id";
456
+ tableName: "snapshots";
457
+ dataType: "string";
458
+ columnType: "SQLiteText";
459
+ data: string;
460
+ driverParam: string;
461
+ notNull: false;
462
+ hasDefault: false;
463
+ isPrimaryKey: false;
464
+ isAutoincrement: false;
465
+ hasRuntimeDefault: false;
466
+ enumValues: [string, ...string[]];
467
+ baseColumn: never;
468
+ identity: undefined;
469
+ generated: undefined;
470
+ }, {}, {
471
+ length: number | undefined;
472
+ }>;
473
+ comparisonImagePath: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
474
+ name: "comparison_image_path";
475
+ tableName: "snapshots";
476
+ dataType: "string";
477
+ columnType: "SQLiteText";
478
+ data: string;
479
+ driverParam: string;
480
+ notNull: false;
481
+ hasDefault: false;
482
+ isPrimaryKey: false;
483
+ isAutoincrement: false;
484
+ hasRuntimeDefault: false;
485
+ enumValues: [string, ...string[]];
486
+ baseColumn: never;
487
+ identity: undefined;
488
+ generated: undefined;
489
+ }, {}, {
490
+ length: number | undefined;
491
+ }>;
492
+ comparisonMetadata: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
493
+ name: "comparison_metadata";
494
+ tableName: "snapshots";
495
+ dataType: "string";
496
+ columnType: "SQLiteText";
497
+ data: string;
498
+ driverParam: string;
499
+ notNull: false;
500
+ hasDefault: false;
501
+ isPrimaryKey: false;
502
+ isAutoincrement: false;
503
+ hasRuntimeDefault: false;
504
+ enumValues: [string, ...string[]];
505
+ baseColumn: never;
506
+ identity: undefined;
507
+ generated: undefined;
508
+ }, {}, {
509
+ length: number | undefined;
510
+ }>;
511
+ mode: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
456
512
  name: "mode";
457
513
  tableName: "snapshots";
458
514
  dataType: "string";
@@ -471,7 +527,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
471
527
  }, {}, {
472
528
  length: number | undefined;
473
529
  }>;
474
- browser: import("drizzle-orm/sqlite-core").SQLiteColumn<{
530
+ browser: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
475
531
  name: "browser";
476
532
  tableName: "snapshots";
477
533
  dataType: "string";
@@ -490,7 +546,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
490
546
  }, {}, {
491
547
  length: number | undefined;
492
548
  }>;
493
- durationMs: import("drizzle-orm/sqlite-core").SQLiteColumn<{
549
+ durationMs: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
494
550
  name: "duration_ms";
495
551
  tableName: "snapshots";
496
552
  dataType: "number";
@@ -507,7 +563,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
507
563
  identity: undefined;
508
564
  generated: undefined;
509
565
  }, {}, {}>;
510
- a11yViolations: import("drizzle-orm/sqlite-core").SQLiteColumn<{
566
+ a11yViolations: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
511
567
  name: "a11y_violations";
512
568
  tableName: "snapshots";
513
569
  dataType: "string";
@@ -526,7 +582,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
526
582
  }, {}, {
527
583
  length: number | undefined;
528
584
  }>;
529
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
585
+ createdAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
530
586
  name: "created_at";
531
587
  tableName: "snapshots";
532
588
  dataType: "string";
@@ -545,7 +601,7 @@ declare const snapshots: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
545
601
  }, {}, {
546
602
  length: number | undefined;
547
603
  }>;
548
- updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
604
+ updatedAt: import("drizzle-orm/sqlite-core/index.js").SQLiteColumn<{
549
605
  name: "updated_at";
550
606
  tableName: "snapshots";
551
607
  dataType: "string";
@@ -593,6 +649,9 @@ interface Snapshot {
593
649
  inherited: boolean;
594
650
  baselineId: string | null;
595
651
  baselineVersion: string | null;
652
+ sourceBuildId: string | null;
653
+ comparisonImagePath: string | null;
654
+ comparisonMetadata: string | null;
596
655
  mode: string | null;
597
656
  browser: string;
598
657
  durationMs: number | null;
@@ -600,6 +659,5 @@ interface Snapshot {
600
659
  createdAt: string;
601
660
  updatedAt: string;
602
661
  }
603
- //#endregion
604
662
  export { Snapshot, snapshots };
605
663
  //# sourceMappingURL=snapshot.d.mts.map