@wordrhyme/db 0.1.0-alpha.14

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 (98) hide show
  1. package/README.md +66 -0
  2. package/dist/acl-policy.d.ts +86 -0
  3. package/dist/acl-policy.d.ts.map +1 -0
  4. package/dist/chunk-3TTVLSF5.js +3390 -0
  5. package/dist/chunk-3TTVLSF5.js.map +1 -0
  6. package/dist/chunk-DCJM6GN5.js +264 -0
  7. package/dist/chunk-DCJM6GN5.js.map +1 -0
  8. package/dist/chunk-KWWJRUIK.js +54 -0
  9. package/dist/chunk-KWWJRUIK.js.map +1 -0
  10. package/dist/chunk-XAIEVBMU.js +212 -0
  11. package/dist/chunk-XAIEVBMU.js.map +1 -0
  12. package/dist/delete-policy.d.ts +11 -0
  13. package/dist/delete-policy.d.ts.map +1 -0
  14. package/dist/index.d.ts +31 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +545 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/plugin.d.ts +110 -0
  19. package/dist/plugin.d.ts.map +1 -0
  20. package/dist/plugin.js +21 -0
  21. package/dist/plugin.js.map +1 -0
  22. package/dist/relations/index.d.ts +105 -0
  23. package/dist/relations/index.d.ts.map +1 -0
  24. package/dist/relations/index.js +9 -0
  25. package/dist/relations/index.js.map +1 -0
  26. package/dist/schema/action-journal.d.ts +386 -0
  27. package/dist/schema/action-journal.d.ts.map +1 -0
  28. package/dist/schema/audit-archive.d.ts +934 -0
  29. package/dist/schema/audit-archive.d.ts.map +1 -0
  30. package/dist/schema/audit-events.d.ts +502 -0
  31. package/dist/schema/audit-events.d.ts.map +1 -0
  32. package/dist/schema/audit-logs.d.ts +418 -0
  33. package/dist/schema/audit-logs.d.ts.map +1 -0
  34. package/dist/schema/auth.d.ts +2727 -0
  35. package/dist/schema/auth.d.ts.map +1 -0
  36. package/dist/schema/billing.d.ts +3969 -0
  37. package/dist/schema/billing.d.ts.map +1 -0
  38. package/dist/schema/common.d.ts +87 -0
  39. package/dist/schema/common.d.ts.map +1 -0
  40. package/dist/schema/currency.d.ts +791 -0
  41. package/dist/schema/currency.d.ts.map +1 -0
  42. package/dist/schema/entity-extensions.d.ts +314 -0
  43. package/dist/schema/entity-extensions.d.ts.map +1 -0
  44. package/dist/schema/entity-ownerships.d.ts +862 -0
  45. package/dist/schema/entity-ownerships.d.ts.map +1 -0
  46. package/dist/schema/feature-flags.d.ts +770 -0
  47. package/dist/schema/feature-flags.d.ts.map +1 -0
  48. package/dist/schema/geo.d.ts +824 -0
  49. package/dist/schema/geo.d.ts.map +1 -0
  50. package/dist/schema/i18n.d.ts +1109 -0
  51. package/dist/schema/i18n.d.ts.map +1 -0
  52. package/dist/schema/index.d.ts +43 -0
  53. package/dist/schema/index.d.ts.map +1 -0
  54. package/dist/schema/index.js +507 -0
  55. package/dist/schema/index.js.map +1 -0
  56. package/dist/schema/media.d.ts +1147 -0
  57. package/dist/schema/media.d.ts.map +1 -0
  58. package/dist/schema/menus.d.ts +636 -0
  59. package/dist/schema/menus.d.ts.map +1 -0
  60. package/dist/schema/notification-channels.d.ts +288 -0
  61. package/dist/schema/notification-channels.d.ts.map +1 -0
  62. package/dist/schema/notification-preferences.d.ts +300 -0
  63. package/dist/schema/notification-preferences.d.ts.map +1 -0
  64. package/dist/schema/notification-templates.d.ts +476 -0
  65. package/dist/schema/notification-templates.d.ts.map +1 -0
  66. package/dist/schema/notifications.d.ts +1139 -0
  67. package/dist/schema/notifications.d.ts.map +1 -0
  68. package/dist/schema/permission-fields.d.ts +96 -0
  69. package/dist/schema/permission-fields.d.ts.map +1 -0
  70. package/dist/schema/permissions.d.ts +173 -0
  71. package/dist/schema/permissions.d.ts.map +1 -0
  72. package/dist/schema/plugin-migrations.d.ts +204 -0
  73. package/dist/schema/plugin-migrations.d.ts.map +1 -0
  74. package/dist/schema/plugins.d.ts +1977 -0
  75. package/dist/schema/plugins.d.ts.map +1 -0
  76. package/dist/schema/relationships.d.ts +221 -0
  77. package/dist/schema/relationships.d.ts.map +1 -0
  78. package/dist/schema/role-permissions.d.ts +305 -0
  79. package/dist/schema/role-permissions.d.ts.map +1 -0
  80. package/dist/schema/roles.d.ts +260 -0
  81. package/dist/schema/roles.d.ts.map +1 -0
  82. package/dist/schema/scheduled-tasks.d.ts +1334 -0
  83. package/dist/schema/scheduled-tasks.d.ts.map +1 -0
  84. package/dist/schema/settings.d.ts +819 -0
  85. package/dist/schema/settings.d.ts.map +1 -0
  86. package/dist/schema/site-presentation.d.ts +1587 -0
  87. package/dist/schema/site-presentation.d.ts.map +1 -0
  88. package/dist/schema/teams.d.ts +381 -0
  89. package/dist/schema/teams.d.ts.map +1 -0
  90. package/dist/schema/web-design.d.ts +1542 -0
  91. package/dist/schema/web-design.d.ts.map +1 -0
  92. package/dist/schema/webhooks.d.ts +1016 -0
  93. package/dist/schema/webhooks.d.ts.map +1 -0
  94. package/dist/zod/index.d.ts +2 -0
  95. package/dist/zod/index.d.ts.map +1 -0
  96. package/dist/zod/index.js +6 -0
  97. package/dist/zod/index.js.map +1 -0
  98. package/package.json +63 -0
@@ -0,0 +1,1139 @@
1
+ /**
2
+ * Notification priority levels
3
+ */
4
+ export type NotificationPriority = 'low' | 'normal' | 'high' | 'urgent';
5
+ /**
6
+ * Legacy Notification type (kept for backward compatibility)
7
+ * @deprecated Use NotificationTypeEnum instead
8
+ */
9
+ export type NotificationType = 'info' | 'success' | 'warning' | 'error';
10
+ /**
11
+ * Notification Type Enum - Strong typing for notification categories
12
+ * Following Actor-Action-Object pattern
13
+ */
14
+ export declare const NotificationTypeEnum: {
15
+ readonly SYSTEM_ALERT: "system_alert";
16
+ readonly SYSTEM_WARNING: "system_warning";
17
+ readonly TASK_ASSIGNED: "task_assigned";
18
+ readonly TASK_COMPLETED: "task_completed";
19
+ readonly EXPORT_READY: "export_ready";
20
+ readonly COMMENT_ADDED: "comment_added";
21
+ readonly COMMENT_REPLIED: "comment_replied";
22
+ readonly MENTIONED: "mentioned";
23
+ readonly POST_LIKED: "post_liked";
24
+ readonly POST_COMMENTED: "post_commented";
25
+ readonly USER_FOLLOWED: "user_followed";
26
+ };
27
+ export type NotificationTypeEnumValue = (typeof NotificationTypeEnum)[keyof typeof NotificationTypeEnum];
28
+ /**
29
+ * Notification Source - who triggered the notification
30
+ */
31
+ export type NotificationSource = 'system' | 'plugin' | 'user';
32
+ /**
33
+ * Notification Category - determines retention and view strategy
34
+ */
35
+ export type NotificationCategory = 'system' | 'collaboration' | 'social';
36
+ /**
37
+ * Visual Priority - determines UI styling
38
+ */
39
+ export type VisualPriority = 'high' | 'medium' | 'low';
40
+ /**
41
+ * Aggregation Strategy for plugin notifications
42
+ */
43
+ export type AggregationStrategy = 'none' | 'by_target' | 'by_actor' | 'by_type';
44
+ /**
45
+ * Actor information for notification
46
+ */
47
+ export interface NotificationActor {
48
+ id: string;
49
+ type: 'user' | 'system' | 'plugin';
50
+ name: string;
51
+ avatarUrl?: string;
52
+ }
53
+ /**
54
+ * Target object for notification
55
+ */
56
+ export interface NotificationTarget {
57
+ type: string;
58
+ id: string;
59
+ url?: string | undefined;
60
+ previewImage?: string | undefined;
61
+ }
62
+ /**
63
+ * Channel decision trace for debugging
64
+ */
65
+ export interface ChannelDecisionTrace {
66
+ channel: string;
67
+ included: boolean;
68
+ reason: string;
69
+ }
70
+ /**
71
+ * Notifications Table
72
+ *
73
+ * Stores in-app notifications for users.
74
+ * Supports unified notification contract for SaaS + Social scenarios.
75
+ */
76
+ export declare const notifications: import("drizzle-orm/pg-core").PgTableWithColumns<{
77
+ name: "notifications";
78
+ schema: undefined;
79
+ columns: {
80
+ id: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasRuntimeDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, {
81
+ name: string;
82
+ tableName: "notifications";
83
+ dataType: "string";
84
+ data: string;
85
+ driverParam: string;
86
+ notNull: true;
87
+ hasDefault: true;
88
+ isPrimaryKey: false;
89
+ isAutoincrement: false;
90
+ hasRuntimeDefault: false;
91
+ enumValues: undefined;
92
+ identity: undefined;
93
+ generated: undefined;
94
+ }>;
95
+ userId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
96
+ name: string;
97
+ tableName: "notifications";
98
+ dataType: "string";
99
+ data: string;
100
+ driverParam: string;
101
+ notNull: true;
102
+ hasDefault: false;
103
+ isPrimaryKey: false;
104
+ isAutoincrement: false;
105
+ hasRuntimeDefault: false;
106
+ enumValues: undefined;
107
+ identity: undefined;
108
+ generated: undefined;
109
+ }>;
110
+ organizationId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
111
+ name: string;
112
+ tableName: "notifications";
113
+ dataType: "string";
114
+ data: string;
115
+ driverParam: string;
116
+ notNull: true;
117
+ hasDefault: false;
118
+ isPrimaryKey: false;
119
+ isAutoincrement: false;
120
+ hasRuntimeDefault: false;
121
+ enumValues: undefined;
122
+ identity: undefined;
123
+ generated: undefined;
124
+ }>;
125
+ actorId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
126
+ name: string;
127
+ tableName: "notifications";
128
+ dataType: "string";
129
+ data: string;
130
+ driverParam: string;
131
+ notNull: false;
132
+ hasDefault: false;
133
+ isPrimaryKey: false;
134
+ isAutoincrement: false;
135
+ hasRuntimeDefault: false;
136
+ enumValues: undefined;
137
+ identity: undefined;
138
+ generated: undefined;
139
+ }>;
140
+ entityId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
141
+ name: string;
142
+ tableName: "notifications";
143
+ dataType: "string";
144
+ data: string;
145
+ driverParam: string;
146
+ notNull: false;
147
+ hasDefault: false;
148
+ isPrimaryKey: false;
149
+ isAutoincrement: false;
150
+ hasRuntimeDefault: false;
151
+ enumValues: undefined;
152
+ identity: undefined;
153
+ generated: undefined;
154
+ }>;
155
+ entityType: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
156
+ name: string;
157
+ tableName: "notifications";
158
+ dataType: "string";
159
+ data: string;
160
+ driverParam: string;
161
+ notNull: false;
162
+ hasDefault: false;
163
+ isPrimaryKey: false;
164
+ isAutoincrement: false;
165
+ hasRuntimeDefault: false;
166
+ enumValues: undefined;
167
+ identity: undefined;
168
+ generated: undefined;
169
+ }>;
170
+ templateKey: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
171
+ name: string;
172
+ tableName: "notifications";
173
+ dataType: "string";
174
+ data: string;
175
+ driverParam: string;
176
+ notNull: false;
177
+ hasDefault: false;
178
+ isPrimaryKey: false;
179
+ isAutoincrement: false;
180
+ hasRuntimeDefault: false;
181
+ enumValues: undefined;
182
+ identity: undefined;
183
+ generated: undefined;
184
+ }>;
185
+ templateVariables: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, Record<string, unknown>>, {
186
+ name: string;
187
+ tableName: "notifications";
188
+ dataType: "object json";
189
+ data: Record<string, unknown>;
190
+ driverParam: unknown;
191
+ notNull: false;
192
+ hasDefault: false;
193
+ isPrimaryKey: false;
194
+ isAutoincrement: false;
195
+ hasRuntimeDefault: false;
196
+ enumValues: undefined;
197
+ identity: undefined;
198
+ generated: undefined;
199
+ }>;
200
+ type: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, NotificationType>, {
201
+ name: string;
202
+ tableName: "notifications";
203
+ dataType: "string";
204
+ data: NotificationType;
205
+ driverParam: string;
206
+ notNull: true;
207
+ hasDefault: false;
208
+ isPrimaryKey: false;
209
+ isAutoincrement: false;
210
+ hasRuntimeDefault: false;
211
+ enumValues: undefined;
212
+ identity: undefined;
213
+ generated: undefined;
214
+ }>;
215
+ title: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
216
+ name: string;
217
+ tableName: "notifications";
218
+ dataType: "string";
219
+ data: string;
220
+ driverParam: string;
221
+ notNull: true;
222
+ hasDefault: false;
223
+ isPrimaryKey: false;
224
+ isAutoincrement: false;
225
+ hasRuntimeDefault: false;
226
+ enumValues: undefined;
227
+ identity: undefined;
228
+ generated: undefined;
229
+ }>;
230
+ message: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
231
+ name: string;
232
+ tableName: "notifications";
233
+ dataType: "string";
234
+ data: string;
235
+ driverParam: string;
236
+ notNull: true;
237
+ hasDefault: false;
238
+ isPrimaryKey: false;
239
+ isAutoincrement: false;
240
+ hasRuntimeDefault: false;
241
+ enumValues: undefined;
242
+ identity: undefined;
243
+ generated: undefined;
244
+ }>;
245
+ link: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
246
+ name: string;
247
+ tableName: "notifications";
248
+ dataType: "string";
249
+ data: string;
250
+ driverParam: string;
251
+ notNull: false;
252
+ hasDefault: false;
253
+ isPrimaryKey: false;
254
+ isAutoincrement: false;
255
+ hasRuntimeDefault: false;
256
+ enumValues: undefined;
257
+ identity: undefined;
258
+ generated: undefined;
259
+ }>;
260
+ read: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
261
+ name: string;
262
+ tableName: "notifications";
263
+ dataType: "boolean";
264
+ data: boolean;
265
+ driverParam: boolean;
266
+ notNull: true;
267
+ hasDefault: true;
268
+ isPrimaryKey: false;
269
+ isAutoincrement: false;
270
+ hasRuntimeDefault: false;
271
+ enumValues: undefined;
272
+ identity: undefined;
273
+ generated: undefined;
274
+ }>;
275
+ archived: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
276
+ name: string;
277
+ tableName: "notifications";
278
+ dataType: "boolean";
279
+ data: boolean;
280
+ driverParam: boolean;
281
+ notNull: true;
282
+ hasDefault: true;
283
+ isPrimaryKey: false;
284
+ isAutoincrement: false;
285
+ hasRuntimeDefault: false;
286
+ enumValues: undefined;
287
+ identity: undefined;
288
+ generated: undefined;
289
+ }>;
290
+ channelsSent: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, string[]>, {
291
+ name: string;
292
+ tableName: "notifications";
293
+ dataType: "object json";
294
+ data: string[];
295
+ driverParam: unknown;
296
+ notNull: false;
297
+ hasDefault: false;
298
+ isPrimaryKey: false;
299
+ isAutoincrement: false;
300
+ hasRuntimeDefault: false;
301
+ enumValues: undefined;
302
+ identity: undefined;
303
+ generated: undefined;
304
+ }>;
305
+ channelsFailed: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, string[]>, {
306
+ name: string;
307
+ tableName: "notifications";
308
+ dataType: "object json";
309
+ data: string[];
310
+ driverParam: unknown;
311
+ notNull: false;
312
+ hasDefault: false;
313
+ isPrimaryKey: false;
314
+ isAutoincrement: false;
315
+ hasRuntimeDefault: false;
316
+ enumValues: undefined;
317
+ identity: undefined;
318
+ generated: undefined;
319
+ }>;
320
+ emailSent: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
321
+ name: string;
322
+ tableName: "notifications";
323
+ dataType: "boolean";
324
+ data: boolean;
325
+ driverParam: boolean;
326
+ notNull: true;
327
+ hasDefault: true;
328
+ isPrimaryKey: false;
329
+ isAutoincrement: false;
330
+ hasRuntimeDefault: false;
331
+ enumValues: undefined;
332
+ identity: undefined;
333
+ generated: undefined;
334
+ }>;
335
+ emailSentAt: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTimestampBuilder, {
336
+ name: string;
337
+ tableName: "notifications";
338
+ dataType: "object date";
339
+ data: Date;
340
+ driverParam: string;
341
+ notNull: false;
342
+ hasDefault: false;
343
+ isPrimaryKey: false;
344
+ isAutoincrement: false;
345
+ hasRuntimeDefault: false;
346
+ enumValues: undefined;
347
+ identity: undefined;
348
+ generated: undefined;
349
+ }>;
350
+ groupKey: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
351
+ name: string;
352
+ tableName: "notifications";
353
+ dataType: "string";
354
+ data: string;
355
+ driverParam: string;
356
+ notNull: false;
357
+ hasDefault: false;
358
+ isPrimaryKey: false;
359
+ isAutoincrement: false;
360
+ hasRuntimeDefault: false;
361
+ enumValues: undefined;
362
+ identity: undefined;
363
+ generated: undefined;
364
+ }>;
365
+ groupCount: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgIntegerBuilder>>, {
366
+ name: string;
367
+ tableName: "notifications";
368
+ dataType: "number int32";
369
+ data: number;
370
+ driverParam: string | number;
371
+ notNull: true;
372
+ hasDefault: true;
373
+ isPrimaryKey: false;
374
+ isAutoincrement: false;
375
+ hasRuntimeDefault: false;
376
+ enumValues: undefined;
377
+ identity: undefined;
378
+ generated: undefined;
379
+ }>;
380
+ idempotencyKey: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
381
+ name: string;
382
+ tableName: "notifications";
383
+ dataType: "string";
384
+ data: string;
385
+ driverParam: string;
386
+ notNull: false;
387
+ hasDefault: false;
388
+ isPrimaryKey: false;
389
+ isAutoincrement: false;
390
+ hasRuntimeDefault: false;
391
+ enumValues: undefined;
392
+ identity: undefined;
393
+ generated: undefined;
394
+ }>;
395
+ sourcePluginId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
396
+ name: string;
397
+ tableName: "notifications";
398
+ dataType: "string";
399
+ data: string;
400
+ driverParam: string;
401
+ notNull: false;
402
+ hasDefault: false;
403
+ isPrimaryKey: false;
404
+ isAutoincrement: false;
405
+ hasRuntimeDefault: false;
406
+ enumValues: undefined;
407
+ identity: undefined;
408
+ generated: undefined;
409
+ }>;
410
+ priority: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, NotificationPriority>, {
411
+ name: string;
412
+ tableName: "notifications";
413
+ dataType: "string";
414
+ data: NotificationPriority;
415
+ driverParam: string;
416
+ notNull: true;
417
+ hasDefault: true;
418
+ isPrimaryKey: false;
419
+ isAutoincrement: false;
420
+ hasRuntimeDefault: false;
421
+ enumValues: undefined;
422
+ identity: undefined;
423
+ generated: undefined;
424
+ }>;
425
+ source: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, NotificationSource>, {
426
+ name: string;
427
+ tableName: "notifications";
428
+ dataType: "string";
429
+ data: NotificationSource;
430
+ driverParam: string;
431
+ notNull: true;
432
+ hasDefault: true;
433
+ isPrimaryKey: false;
434
+ isAutoincrement: false;
435
+ hasRuntimeDefault: false;
436
+ enumValues: undefined;
437
+ identity: undefined;
438
+ generated: undefined;
439
+ }>;
440
+ category: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, NotificationCategory>, {
441
+ name: string;
442
+ tableName: "notifications";
443
+ dataType: "string";
444
+ data: NotificationCategory;
445
+ driverParam: string;
446
+ notNull: true;
447
+ hasDefault: true;
448
+ isPrimaryKey: false;
449
+ isAutoincrement: false;
450
+ hasRuntimeDefault: false;
451
+ enumValues: undefined;
452
+ identity: undefined;
453
+ generated: undefined;
454
+ }>;
455
+ latestActors: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, NotificationActor[]>>, {
456
+ name: string;
457
+ tableName: "notifications";
458
+ dataType: "object json";
459
+ data: NotificationActor[];
460
+ driverParam: unknown;
461
+ notNull: false;
462
+ hasDefault: true;
463
+ isPrimaryKey: false;
464
+ isAutoincrement: false;
465
+ hasRuntimeDefault: false;
466
+ enumValues: undefined;
467
+ identity: undefined;
468
+ generated: undefined;
469
+ }>;
470
+ pinned: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
471
+ name: string;
472
+ tableName: "notifications";
473
+ dataType: "boolean";
474
+ data: boolean;
475
+ driverParam: boolean;
476
+ notNull: true;
477
+ hasDefault: true;
478
+ isPrimaryKey: false;
479
+ isAutoincrement: false;
480
+ hasRuntimeDefault: false;
481
+ enumValues: undefined;
482
+ identity: undefined;
483
+ generated: undefined;
484
+ }>;
485
+ visualPriority: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, VisualPriority>, {
486
+ name: string;
487
+ tableName: "notifications";
488
+ dataType: "string";
489
+ data: VisualPriority;
490
+ driverParam: string;
491
+ notNull: true;
492
+ hasDefault: true;
493
+ isPrimaryKey: false;
494
+ isAutoincrement: false;
495
+ hasRuntimeDefault: false;
496
+ enumValues: undefined;
497
+ identity: undefined;
498
+ generated: undefined;
499
+ }>;
500
+ actor: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, NotificationActor>, {
501
+ name: string;
502
+ tableName: "notifications";
503
+ dataType: "object json";
504
+ data: NotificationActor;
505
+ driverParam: unknown;
506
+ notNull: false;
507
+ hasDefault: false;
508
+ isPrimaryKey: false;
509
+ isAutoincrement: false;
510
+ hasRuntimeDefault: false;
511
+ enumValues: undefined;
512
+ identity: undefined;
513
+ generated: undefined;
514
+ }>;
515
+ target: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, NotificationTarget>, {
516
+ name: string;
517
+ tableName: "notifications";
518
+ dataType: "object json";
519
+ data: NotificationTarget;
520
+ driverParam: unknown;
521
+ notNull: false;
522
+ hasDefault: false;
523
+ isPrimaryKey: false;
524
+ isAutoincrement: false;
525
+ hasRuntimeDefault: false;
526
+ enumValues: undefined;
527
+ identity: undefined;
528
+ generated: undefined;
529
+ }>;
530
+ aggregationStrategy: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, AggregationStrategy>, {
531
+ name: string;
532
+ tableName: "notifications";
533
+ dataType: "string";
534
+ data: AggregationStrategy;
535
+ driverParam: string;
536
+ notNull: true;
537
+ hasDefault: true;
538
+ isPrimaryKey: false;
539
+ isAutoincrement: false;
540
+ hasRuntimeDefault: false;
541
+ enumValues: undefined;
542
+ identity: undefined;
543
+ generated: undefined;
544
+ }>;
545
+ metadata: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, {
546
+ [key: string]: unknown;
547
+ decisionTrace?: ChannelDecisionTrace[];
548
+ }>, {
549
+ name: string;
550
+ tableName: "notifications";
551
+ dataType: "object json";
552
+ data: {
553
+ [key: string]: unknown;
554
+ decisionTrace?: ChannelDecisionTrace[];
555
+ };
556
+ driverParam: unknown;
557
+ notNull: false;
558
+ hasDefault: false;
559
+ isPrimaryKey: false;
560
+ isAutoincrement: false;
561
+ hasRuntimeDefault: false;
562
+ enumValues: undefined;
563
+ identity: undefined;
564
+ generated: undefined;
565
+ }>;
566
+ createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
567
+ name: string;
568
+ tableName: "notifications";
569
+ dataType: "object date";
570
+ data: Date;
571
+ driverParam: string;
572
+ notNull: true;
573
+ hasDefault: true;
574
+ isPrimaryKey: false;
575
+ isAutoincrement: false;
576
+ hasRuntimeDefault: false;
577
+ enumValues: undefined;
578
+ identity: undefined;
579
+ generated: undefined;
580
+ }>;
581
+ expiresAt: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTimestampBuilder, {
582
+ name: string;
583
+ tableName: "notifications";
584
+ dataType: "object date";
585
+ data: Date;
586
+ driverParam: string;
587
+ notNull: false;
588
+ hasDefault: false;
589
+ isPrimaryKey: false;
590
+ isAutoincrement: false;
591
+ hasRuntimeDefault: false;
592
+ enumValues: undefined;
593
+ identity: undefined;
594
+ generated: undefined;
595
+ }>;
596
+ };
597
+ dialect: "pg";
598
+ }>;
599
+ export declare const notificationSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
600
+ id: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasRuntimeDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, {
601
+ name: string;
602
+ tableName: "notifications";
603
+ dataType: "string";
604
+ data: string;
605
+ driverParam: string;
606
+ notNull: true;
607
+ hasDefault: true;
608
+ isPrimaryKey: false;
609
+ isAutoincrement: false;
610
+ hasRuntimeDefault: false;
611
+ enumValues: undefined;
612
+ identity: undefined;
613
+ generated: undefined;
614
+ }>;
615
+ userId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
616
+ name: string;
617
+ tableName: "notifications";
618
+ dataType: "string";
619
+ data: string;
620
+ driverParam: string;
621
+ notNull: true;
622
+ hasDefault: false;
623
+ isPrimaryKey: false;
624
+ isAutoincrement: false;
625
+ hasRuntimeDefault: false;
626
+ enumValues: undefined;
627
+ identity: undefined;
628
+ generated: undefined;
629
+ }>;
630
+ organizationId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
631
+ name: string;
632
+ tableName: "notifications";
633
+ dataType: "string";
634
+ data: string;
635
+ driverParam: string;
636
+ notNull: true;
637
+ hasDefault: false;
638
+ isPrimaryKey: false;
639
+ isAutoincrement: false;
640
+ hasRuntimeDefault: false;
641
+ enumValues: undefined;
642
+ identity: undefined;
643
+ generated: undefined;
644
+ }>;
645
+ actorId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
646
+ name: string;
647
+ tableName: "notifications";
648
+ dataType: "string";
649
+ data: string;
650
+ driverParam: string;
651
+ notNull: false;
652
+ hasDefault: false;
653
+ isPrimaryKey: false;
654
+ isAutoincrement: false;
655
+ hasRuntimeDefault: false;
656
+ enumValues: undefined;
657
+ identity: undefined;
658
+ generated: undefined;
659
+ }>;
660
+ entityId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
661
+ name: string;
662
+ tableName: "notifications";
663
+ dataType: "string";
664
+ data: string;
665
+ driverParam: string;
666
+ notNull: false;
667
+ hasDefault: false;
668
+ isPrimaryKey: false;
669
+ isAutoincrement: false;
670
+ hasRuntimeDefault: false;
671
+ enumValues: undefined;
672
+ identity: undefined;
673
+ generated: undefined;
674
+ }>;
675
+ entityType: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
676
+ name: string;
677
+ tableName: "notifications";
678
+ dataType: "string";
679
+ data: string;
680
+ driverParam: string;
681
+ notNull: false;
682
+ hasDefault: false;
683
+ isPrimaryKey: false;
684
+ isAutoincrement: false;
685
+ hasRuntimeDefault: false;
686
+ enumValues: undefined;
687
+ identity: undefined;
688
+ generated: undefined;
689
+ }>;
690
+ templateKey: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
691
+ name: string;
692
+ tableName: "notifications";
693
+ dataType: "string";
694
+ data: string;
695
+ driverParam: string;
696
+ notNull: false;
697
+ hasDefault: false;
698
+ isPrimaryKey: false;
699
+ isAutoincrement: false;
700
+ hasRuntimeDefault: false;
701
+ enumValues: undefined;
702
+ identity: undefined;
703
+ generated: undefined;
704
+ }>;
705
+ templateVariables: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, Record<string, unknown>>, {
706
+ name: string;
707
+ tableName: "notifications";
708
+ dataType: "object json";
709
+ data: Record<string, unknown>;
710
+ driverParam: unknown;
711
+ notNull: false;
712
+ hasDefault: false;
713
+ isPrimaryKey: false;
714
+ isAutoincrement: false;
715
+ hasRuntimeDefault: false;
716
+ enumValues: undefined;
717
+ identity: undefined;
718
+ generated: undefined;
719
+ }>;
720
+ type: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, NotificationType>, {
721
+ name: string;
722
+ tableName: "notifications";
723
+ dataType: "string";
724
+ data: NotificationType;
725
+ driverParam: string;
726
+ notNull: true;
727
+ hasDefault: false;
728
+ isPrimaryKey: false;
729
+ isAutoincrement: false;
730
+ hasRuntimeDefault: false;
731
+ enumValues: undefined;
732
+ identity: undefined;
733
+ generated: undefined;
734
+ }>;
735
+ title: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
736
+ name: string;
737
+ tableName: "notifications";
738
+ dataType: "string";
739
+ data: string;
740
+ driverParam: string;
741
+ notNull: true;
742
+ hasDefault: false;
743
+ isPrimaryKey: false;
744
+ isAutoincrement: false;
745
+ hasRuntimeDefault: false;
746
+ enumValues: undefined;
747
+ identity: undefined;
748
+ generated: undefined;
749
+ }>;
750
+ message: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
751
+ name: string;
752
+ tableName: "notifications";
753
+ dataType: "string";
754
+ data: string;
755
+ driverParam: string;
756
+ notNull: true;
757
+ hasDefault: false;
758
+ isPrimaryKey: false;
759
+ isAutoincrement: false;
760
+ hasRuntimeDefault: false;
761
+ enumValues: undefined;
762
+ identity: undefined;
763
+ generated: undefined;
764
+ }>;
765
+ link: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
766
+ name: string;
767
+ tableName: "notifications";
768
+ dataType: "string";
769
+ data: string;
770
+ driverParam: string;
771
+ notNull: false;
772
+ hasDefault: false;
773
+ isPrimaryKey: false;
774
+ isAutoincrement: false;
775
+ hasRuntimeDefault: false;
776
+ enumValues: undefined;
777
+ identity: undefined;
778
+ generated: undefined;
779
+ }>;
780
+ read: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
781
+ name: string;
782
+ tableName: "notifications";
783
+ dataType: "boolean";
784
+ data: boolean;
785
+ driverParam: boolean;
786
+ notNull: true;
787
+ hasDefault: true;
788
+ isPrimaryKey: false;
789
+ isAutoincrement: false;
790
+ hasRuntimeDefault: false;
791
+ enumValues: undefined;
792
+ identity: undefined;
793
+ generated: undefined;
794
+ }>;
795
+ archived: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
796
+ name: string;
797
+ tableName: "notifications";
798
+ dataType: "boolean";
799
+ data: boolean;
800
+ driverParam: boolean;
801
+ notNull: true;
802
+ hasDefault: true;
803
+ isPrimaryKey: false;
804
+ isAutoincrement: false;
805
+ hasRuntimeDefault: false;
806
+ enumValues: undefined;
807
+ identity: undefined;
808
+ generated: undefined;
809
+ }>;
810
+ channelsSent: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, string[]>, {
811
+ name: string;
812
+ tableName: "notifications";
813
+ dataType: "object json";
814
+ data: string[];
815
+ driverParam: unknown;
816
+ notNull: false;
817
+ hasDefault: false;
818
+ isPrimaryKey: false;
819
+ isAutoincrement: false;
820
+ hasRuntimeDefault: false;
821
+ enumValues: undefined;
822
+ identity: undefined;
823
+ generated: undefined;
824
+ }>;
825
+ channelsFailed: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, string[]>, {
826
+ name: string;
827
+ tableName: "notifications";
828
+ dataType: "object json";
829
+ data: string[];
830
+ driverParam: unknown;
831
+ notNull: false;
832
+ hasDefault: false;
833
+ isPrimaryKey: false;
834
+ isAutoincrement: false;
835
+ hasRuntimeDefault: false;
836
+ enumValues: undefined;
837
+ identity: undefined;
838
+ generated: undefined;
839
+ }>;
840
+ emailSent: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
841
+ name: string;
842
+ tableName: "notifications";
843
+ dataType: "boolean";
844
+ data: boolean;
845
+ driverParam: boolean;
846
+ notNull: true;
847
+ hasDefault: true;
848
+ isPrimaryKey: false;
849
+ isAutoincrement: false;
850
+ hasRuntimeDefault: false;
851
+ enumValues: undefined;
852
+ identity: undefined;
853
+ generated: undefined;
854
+ }>;
855
+ emailSentAt: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTimestampBuilder, {
856
+ name: string;
857
+ tableName: "notifications";
858
+ dataType: "object date";
859
+ data: Date;
860
+ driverParam: string;
861
+ notNull: false;
862
+ hasDefault: false;
863
+ isPrimaryKey: false;
864
+ isAutoincrement: false;
865
+ hasRuntimeDefault: false;
866
+ enumValues: undefined;
867
+ identity: undefined;
868
+ generated: undefined;
869
+ }>;
870
+ groupKey: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
871
+ name: string;
872
+ tableName: "notifications";
873
+ dataType: "string";
874
+ data: string;
875
+ driverParam: string;
876
+ notNull: false;
877
+ hasDefault: false;
878
+ isPrimaryKey: false;
879
+ isAutoincrement: false;
880
+ hasRuntimeDefault: false;
881
+ enumValues: undefined;
882
+ identity: undefined;
883
+ generated: undefined;
884
+ }>;
885
+ groupCount: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgIntegerBuilder>>, {
886
+ name: string;
887
+ tableName: "notifications";
888
+ dataType: "number int32";
889
+ data: number;
890
+ driverParam: string | number;
891
+ notNull: true;
892
+ hasDefault: true;
893
+ isPrimaryKey: false;
894
+ isAutoincrement: false;
895
+ hasRuntimeDefault: false;
896
+ enumValues: undefined;
897
+ identity: undefined;
898
+ generated: undefined;
899
+ }>;
900
+ idempotencyKey: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
901
+ name: string;
902
+ tableName: "notifications";
903
+ dataType: "string";
904
+ data: string;
905
+ driverParam: string;
906
+ notNull: false;
907
+ hasDefault: false;
908
+ isPrimaryKey: false;
909
+ isAutoincrement: false;
910
+ hasRuntimeDefault: false;
911
+ enumValues: undefined;
912
+ identity: undefined;
913
+ generated: undefined;
914
+ }>;
915
+ sourcePluginId: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
916
+ name: string;
917
+ tableName: "notifications";
918
+ dataType: "string";
919
+ data: string;
920
+ driverParam: string;
921
+ notNull: false;
922
+ hasDefault: false;
923
+ isPrimaryKey: false;
924
+ isAutoincrement: false;
925
+ hasRuntimeDefault: false;
926
+ enumValues: undefined;
927
+ identity: undefined;
928
+ generated: undefined;
929
+ }>;
930
+ priority: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, NotificationPriority>, {
931
+ name: string;
932
+ tableName: "notifications";
933
+ dataType: "string";
934
+ data: NotificationPriority;
935
+ driverParam: string;
936
+ notNull: true;
937
+ hasDefault: true;
938
+ isPrimaryKey: false;
939
+ isAutoincrement: false;
940
+ hasRuntimeDefault: false;
941
+ enumValues: undefined;
942
+ identity: undefined;
943
+ generated: undefined;
944
+ }>;
945
+ source: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, NotificationSource>, {
946
+ name: string;
947
+ tableName: "notifications";
948
+ dataType: "string";
949
+ data: NotificationSource;
950
+ driverParam: string;
951
+ notNull: true;
952
+ hasDefault: true;
953
+ isPrimaryKey: false;
954
+ isAutoincrement: false;
955
+ hasRuntimeDefault: false;
956
+ enumValues: undefined;
957
+ identity: undefined;
958
+ generated: undefined;
959
+ }>;
960
+ category: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, NotificationCategory>, {
961
+ name: string;
962
+ tableName: "notifications";
963
+ dataType: "string";
964
+ data: NotificationCategory;
965
+ driverParam: string;
966
+ notNull: true;
967
+ hasDefault: true;
968
+ isPrimaryKey: false;
969
+ isAutoincrement: false;
970
+ hasRuntimeDefault: false;
971
+ enumValues: undefined;
972
+ identity: undefined;
973
+ generated: undefined;
974
+ }>;
975
+ latestActors: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, NotificationActor[]>>, {
976
+ name: string;
977
+ tableName: "notifications";
978
+ dataType: "object json";
979
+ data: NotificationActor[];
980
+ driverParam: unknown;
981
+ notNull: false;
982
+ hasDefault: true;
983
+ isPrimaryKey: false;
984
+ isAutoincrement: false;
985
+ hasRuntimeDefault: false;
986
+ enumValues: undefined;
987
+ identity: undefined;
988
+ generated: undefined;
989
+ }>;
990
+ pinned: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
991
+ name: string;
992
+ tableName: "notifications";
993
+ dataType: "boolean";
994
+ data: boolean;
995
+ driverParam: boolean;
996
+ notNull: true;
997
+ hasDefault: true;
998
+ isPrimaryKey: false;
999
+ isAutoincrement: false;
1000
+ hasRuntimeDefault: false;
1001
+ enumValues: undefined;
1002
+ identity: undefined;
1003
+ generated: undefined;
1004
+ }>;
1005
+ visualPriority: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, VisualPriority>, {
1006
+ name: string;
1007
+ tableName: "notifications";
1008
+ dataType: "string";
1009
+ data: VisualPriority;
1010
+ driverParam: string;
1011
+ notNull: true;
1012
+ hasDefault: true;
1013
+ isPrimaryKey: false;
1014
+ isAutoincrement: false;
1015
+ hasRuntimeDefault: false;
1016
+ enumValues: undefined;
1017
+ identity: undefined;
1018
+ generated: undefined;
1019
+ }>;
1020
+ actor: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, NotificationActor>, {
1021
+ name: string;
1022
+ tableName: "notifications";
1023
+ dataType: "object json";
1024
+ data: NotificationActor;
1025
+ driverParam: unknown;
1026
+ notNull: false;
1027
+ hasDefault: false;
1028
+ isPrimaryKey: false;
1029
+ isAutoincrement: false;
1030
+ hasRuntimeDefault: false;
1031
+ enumValues: undefined;
1032
+ identity: undefined;
1033
+ generated: undefined;
1034
+ }>;
1035
+ target: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, NotificationTarget>, {
1036
+ name: string;
1037
+ tableName: "notifications";
1038
+ dataType: "object json";
1039
+ data: NotificationTarget;
1040
+ driverParam: unknown;
1041
+ notNull: false;
1042
+ hasDefault: false;
1043
+ isPrimaryKey: false;
1044
+ isAutoincrement: false;
1045
+ hasRuntimeDefault: false;
1046
+ enumValues: undefined;
1047
+ identity: undefined;
1048
+ generated: undefined;
1049
+ }>;
1050
+ aggregationStrategy: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, AggregationStrategy>, {
1051
+ name: string;
1052
+ tableName: "notifications";
1053
+ dataType: "string";
1054
+ data: AggregationStrategy;
1055
+ driverParam: string;
1056
+ notNull: true;
1057
+ hasDefault: true;
1058
+ isPrimaryKey: false;
1059
+ isAutoincrement: false;
1060
+ hasRuntimeDefault: false;
1061
+ enumValues: undefined;
1062
+ identity: undefined;
1063
+ generated: undefined;
1064
+ }>;
1065
+ metadata: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, {
1066
+ [key: string]: unknown;
1067
+ decisionTrace?: ChannelDecisionTrace[];
1068
+ }>, {
1069
+ name: string;
1070
+ tableName: "notifications";
1071
+ dataType: "object json";
1072
+ data: {
1073
+ [key: string]: unknown;
1074
+ decisionTrace?: ChannelDecisionTrace[];
1075
+ };
1076
+ driverParam: unknown;
1077
+ notNull: false;
1078
+ hasDefault: false;
1079
+ isPrimaryKey: false;
1080
+ isAutoincrement: false;
1081
+ hasRuntimeDefault: false;
1082
+ enumValues: undefined;
1083
+ identity: undefined;
1084
+ generated: undefined;
1085
+ }>;
1086
+ createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
1087
+ name: string;
1088
+ tableName: "notifications";
1089
+ dataType: "object date";
1090
+ data: Date;
1091
+ driverParam: string;
1092
+ notNull: true;
1093
+ hasDefault: true;
1094
+ isPrimaryKey: false;
1095
+ isAutoincrement: false;
1096
+ hasRuntimeDefault: false;
1097
+ enumValues: undefined;
1098
+ identity: undefined;
1099
+ generated: undefined;
1100
+ }>;
1101
+ expiresAt: import("drizzle-orm/pg-core").PgBuildColumn<"notifications", import("drizzle-orm/pg-core").PgTimestampBuilder, {
1102
+ name: string;
1103
+ tableName: "notifications";
1104
+ dataType: "object date";
1105
+ data: Date;
1106
+ driverParam: string;
1107
+ notNull: false;
1108
+ hasDefault: false;
1109
+ isPrimaryKey: false;
1110
+ isAutoincrement: false;
1111
+ hasRuntimeDefault: false;
1112
+ enumValues: undefined;
1113
+ identity: undefined;
1114
+ generated: undefined;
1115
+ }>;
1116
+ }, undefined, undefined>;
1117
+ export type Notification = typeof notifications.$inferSelect;
1118
+ export type InsertNotification = typeof notifications.$inferInsert;
1119
+ /**
1120
+ * Grouped notification response for API
1121
+ */
1122
+ export interface GroupedNotification {
1123
+ id: string;
1124
+ type: NotificationType | NotificationTypeEnumValue;
1125
+ actor: NotificationActor;
1126
+ title: string;
1127
+ body?: string;
1128
+ target: NotificationTarget;
1129
+ groupInfo?: {
1130
+ key: string;
1131
+ count: number;
1132
+ latestActors: NotificationActor[];
1133
+ };
1134
+ read: boolean;
1135
+ pinned: boolean;
1136
+ visualPriority: VisualPriority;
1137
+ createdAt: Date;
1138
+ }
1139
+ //# sourceMappingURL=notifications.d.ts.map