@workflow/world-postgres 5.0.0-beta.9 → 5.0.1

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 (58) hide show
  1. package/README.md +307 -34
  2. package/bin/setup-deprecated.js +20 -0
  3. package/dist/config.d.ts +16 -0
  4. package/dist/config.d.ts.map +1 -1
  5. package/dist/config.js +1 -1
  6. package/dist/drizzle/schema.d.ts +467 -5
  7. package/dist/drizzle/schema.d.ts.map +1 -1
  8. package/dist/drizzle/schema.js +108 -14
  9. package/dist/executor.d.ts +8 -0
  10. package/dist/executor.d.ts.map +1 -0
  11. package/dist/executor.js +79 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +40 -15
  14. package/dist/invocation-notifications.d.ts +23 -0
  15. package/dist/invocation-notifications.d.ts.map +1 -0
  16. package/dist/invocation-notifications.js +156 -0
  17. package/dist/invocation-retention.d.ts +11 -0
  18. package/dist/invocation-retention.d.ts.map +1 -0
  19. package/dist/invocation-retention.js +14 -0
  20. package/dist/invocations.d.ts +24 -0
  21. package/dist/invocations.d.ts.map +1 -0
  22. package/dist/invocations.js +208 -0
  23. package/dist/message.d.ts +1 -0
  24. package/dist/message.d.ts.map +1 -1
  25. package/dist/message.js +5 -3
  26. package/dist/queue.d.ts +32 -8
  27. package/dist/queue.d.ts.map +1 -1
  28. package/dist/queue.js +468 -97
  29. package/dist/retention.d.ts +66 -0
  30. package/dist/retention.d.ts.map +1 -0
  31. package/dist/retention.js +152 -0
  32. package/dist/run-status.d.ts +54 -0
  33. package/dist/run-status.d.ts.map +1 -0
  34. package/dist/run-status.js +138 -0
  35. package/dist/snapshots.d.ts +23 -0
  36. package/dist/snapshots.d.ts.map +1 -0
  37. package/dist/snapshots.js +64 -0
  38. package/dist/storage.d.ts +8 -1
  39. package/dist/storage.d.ts.map +1 -1
  40. package/dist/storage.js +1613 -319
  41. package/dist/streamer.d.ts.map +1 -1
  42. package/dist/streamer.js +109 -41
  43. package/dist/zod.d.ts.map +1 -1
  44. package/dist/zod.js +3 -3
  45. package/package.json +17 -14
  46. package/src/drizzle/migrations/0014_add_attr_set_event_unique_index.sql +5 -0
  47. package/src/drizzle/migrations/0015_move_enums_to_workflow_schema.sql +75 -0
  48. package/src/drizzle/migrations/0016_add_encryption_public_key.sql +1 -0
  49. package/src/drizzle/migrations/0017_add_hook_resume_context.sql +1 -0
  50. package/src/drizzle/migrations/0018_add_hook_token_retention.sql +1 -0
  51. package/src/drizzle/migrations/0019_add_event_slots.sql +74 -0
  52. package/src/drizzle/migrations/0020_add_invocations.sql +13 -0
  53. package/src/drizzle/migrations/0021_invocation_identity_retention.sql +19 -0
  54. package/src/drizzle/migrations/0022_invocation_outcomes.sql +3 -0
  55. package/src/drizzle/migrations/0023_add_hook_claimed_from.sql +1 -0
  56. package/src/drizzle/migrations/0024_add_dynamic_workflow_code.sql +1 -0
  57. package/src/drizzle/migrations/0025_add_snapshots_table.sql +6 -0
  58. package/src/drizzle/migrations/meta/_journal.json +84 -0
@@ -1,11 +1,11 @@
1
+ export declare const schema: import("drizzle-orm/pg-core").PgSchema<"workflow">;
1
2
  export declare const workflowRunStatus: import("drizzle-orm/pg-core").PgEnum<["pending" | "running" | "completed" | "failed" | "cancelled", ...("pending" | "running" | "completed" | "failed" | "cancelled")[]]>;
2
3
  export declare const stepStatus: import("drizzle-orm/pg-core").PgEnum<["pending" | "running" | "completed" | "failed" | "cancelled", ...("pending" | "running" | "completed" | "failed" | "cancelled")[]]>;
3
4
  export declare const waitStatus: import("drizzle-orm/pg-core").PgEnum<["completed" | "waiting", ...("completed" | "waiting")[]]>;
4
5
  /**
5
- * Sadly we do `any[]` right now
6
+ * Serialization currently uses `any[]`.
6
7
  */
7
8
  export type SerializedContent = any[];
8
- export declare const schema: import("drizzle-orm/pg-core").PgSchema<"workflow">;
9
9
  export declare const runs: import("drizzle-orm/pg-core").PgTableWithColumns<{
10
10
  name: "workflow_runs";
11
11
  schema: "workflow";
@@ -289,6 +289,44 @@ export declare const runs: import("drizzle-orm/pg-core").PgTableWithColumns<{
289
289
  }, {}, {
290
290
  $type: Record<string, string>;
291
291
  }>;
292
+ encryptionPublicKey: import("drizzle-orm/pg-core").PgColumn<{
293
+ name: "encryption_public_key";
294
+ tableName: "workflow_runs";
295
+ dataType: "string";
296
+ columnType: "PgVarchar";
297
+ data: string;
298
+ driverParam: string;
299
+ notNull: false;
300
+ hasDefault: false;
301
+ isPrimaryKey: false;
302
+ isAutoincrement: false;
303
+ hasRuntimeDefault: false;
304
+ enumValues: [string, ...string[]];
305
+ baseColumn: never;
306
+ identity: undefined;
307
+ generated: undefined;
308
+ }, {}, {
309
+ length: number | undefined;
310
+ }>;
311
+ dynamicWorkflowCode: import("drizzle-orm/pg-core").PgColumn<{
312
+ name: "dynamic_workflow_code_cbor";
313
+ tableName: "workflow_runs";
314
+ dataType: "custom";
315
+ columnType: "PgCustomColumn";
316
+ data: unknown;
317
+ driverParam: Buffer<ArrayBufferLike>;
318
+ notNull: false;
319
+ hasDefault: false;
320
+ isPrimaryKey: false;
321
+ isAutoincrement: false;
322
+ hasRuntimeDefault: false;
323
+ enumValues: undefined;
324
+ baseColumn: never;
325
+ identity: undefined;
326
+ generated: undefined;
327
+ }, {}, {
328
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
329
+ }>;
292
330
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
293
331
  name: "created_at";
294
332
  tableName: "workflow_runs";
@@ -390,7 +428,7 @@ export declare const events: import("drizzle-orm/pg-core").PgTableWithColumns<{
390
428
  driverParam: string;
391
429
  notNull: true;
392
430
  hasDefault: false;
393
- isPrimaryKey: true;
431
+ isPrimaryKey: false;
394
432
  isAutoincrement: false;
395
433
  hasRuntimeDefault: false;
396
434
  enumValues: [string, ...string[]];
@@ -405,7 +443,7 @@ export declare const events: import("drizzle-orm/pg-core").PgTableWithColumns<{
405
443
  tableName: "workflow_events";
406
444
  dataType: "string";
407
445
  columnType: "PgVarchar";
408
- data: "run_created" | "run_started" | "run_completed" | "run_failed" | "run_cancelled" | "step_created" | "step_completed" | "step_failed" | "step_retrying" | "step_started" | "hook_created" | "hook_received" | "hook_disposed" | "hook_conflict" | "wait_created" | "wait_completed";
446
+ data: "run_created" | "run_started" | "run_completed" | "run_failed" | "run_cancelled" | "attr_set" | "step_created" | "step_completed" | "step_failed" | "step_retrying" | "step_started" | "hook_created" | "hook_received" | "hook_disposed" | "hook_conflict" | "wait_created" | "wait_completed" | "noop";
409
447
  driverParam: string;
410
448
  notNull: true;
411
449
  hasDefault: false;
@@ -418,7 +456,7 @@ export declare const events: import("drizzle-orm/pg-core").PgTableWithColumns<{
418
456
  generated: undefined;
419
457
  }, {}, {
420
458
  length: number | undefined;
421
- $type: "run_created" | "run_started" | "run_completed" | "run_failed" | "run_cancelled" | "step_created" | "step_completed" | "step_failed" | "step_retrying" | "step_started" | "hook_created" | "hook_received" | "hook_disposed" | "hook_conflict" | "wait_created" | "wait_completed";
459
+ $type: "run_created" | "run_started" | "run_completed" | "run_failed" | "run_cancelled" | "attr_set" | "step_created" | "step_completed" | "step_failed" | "step_retrying" | "step_started" | "hook_created" | "hook_received" | "hook_disposed" | "hook_conflict" | "wait_created" | "wait_completed" | "noop";
422
460
  }>;
423
461
  correlationId: import("drizzle-orm/pg-core").PgColumn<{
424
462
  name: "correlation_id";
@@ -528,6 +566,81 @@ export declare const events: import("drizzle-orm/pg-core").PgTableWithColumns<{
528
566
  identity: undefined;
529
567
  generated: undefined;
530
568
  }, {}, {}>;
569
+ resumeId: import("drizzle-orm/pg-core").PgColumn<{
570
+ name: "resume_id";
571
+ tableName: "workflow_events";
572
+ dataType: "string";
573
+ columnType: "PgVarchar";
574
+ data: string;
575
+ driverParam: string;
576
+ notNull: false;
577
+ hasDefault: false;
578
+ isPrimaryKey: false;
579
+ isAutoincrement: false;
580
+ hasRuntimeDefault: false;
581
+ enumValues: [string, ...string[]];
582
+ baseColumn: never;
583
+ identity: undefined;
584
+ generated: undefined;
585
+ }, {}, {
586
+ length: number | undefined;
587
+ }>;
588
+ resumePayloadDigest: import("drizzle-orm/pg-core").PgColumn<{
589
+ name: "resume_payload_digest";
590
+ tableName: "workflow_events";
591
+ dataType: "string";
592
+ columnType: "PgVarchar";
593
+ data: string;
594
+ driverParam: string;
595
+ notNull: false;
596
+ hasDefault: false;
597
+ isPrimaryKey: false;
598
+ isAutoincrement: false;
599
+ hasRuntimeDefault: false;
600
+ enumValues: [string, ...string[]];
601
+ baseColumn: never;
602
+ identity: undefined;
603
+ generated: undefined;
604
+ }, {}, {
605
+ length: number | undefined;
606
+ }>;
607
+ };
608
+ dialect: "pg";
609
+ }>;
610
+ /**
611
+ * Which runs are slot-numbered. A row exists iff the run is, so its absence is
612
+ * exactly the "this run predates slots, keep minting ULIDs" signal, so no scan
613
+ * of the event log is needed to tell the two schemes apart.
614
+ *
615
+ * A marker, not a counter. Positions are allocated by the insert that occupies
616
+ * them (`MAX(slot) + 1` read from the log inside the INSERT), so nothing is
617
+ * handed out ahead of the write that uses it and a write that fails leaves the
618
+ * position free for the next one. A counter here would instead burn a position
619
+ * per failed write, and every such hole is permanent.
620
+ */
621
+ export declare const eventSlots: import("drizzle-orm/pg-core").PgTableWithColumns<{
622
+ name: "workflow_event_slots";
623
+ schema: "workflow";
624
+ columns: {
625
+ runId: import("drizzle-orm/pg-core").PgColumn<{
626
+ name: "run_id";
627
+ tableName: "workflow_event_slots";
628
+ dataType: "string";
629
+ columnType: "PgVarchar";
630
+ data: string;
631
+ driverParam: string;
632
+ notNull: true;
633
+ hasDefault: false;
634
+ isPrimaryKey: true;
635
+ isAutoincrement: false;
636
+ hasRuntimeDefault: false;
637
+ enumValues: [string, ...string[]];
638
+ baseColumn: never;
639
+ identity: undefined;
640
+ generated: undefined;
641
+ }, {}, {
642
+ length: number | undefined;
643
+ }>;
531
644
  };
532
645
  dialect: "pg";
533
646
  }>;
@@ -978,6 +1091,23 @@ export declare const hooks: import("drizzle-orm/pg-core").PgTableWithColumns<{
978
1091
  identity: undefined;
979
1092
  generated: undefined;
980
1093
  }, {}, {}>;
1094
+ tokenRetentionUntil: import("drizzle-orm/pg-core").PgColumn<{
1095
+ name: "token_retention_until";
1096
+ tableName: "workflow_hooks";
1097
+ dataType: "date";
1098
+ columnType: "PgTimestamp";
1099
+ data: Date;
1100
+ driverParam: string;
1101
+ notNull: false;
1102
+ hasDefault: false;
1103
+ isPrimaryKey: false;
1104
+ isAutoincrement: false;
1105
+ hasRuntimeDefault: false;
1106
+ enumValues: undefined;
1107
+ baseColumn: never;
1108
+ identity: undefined;
1109
+ generated: undefined;
1110
+ }, {}, {}>;
981
1111
  metadataJson: import("drizzle-orm/pg-core").PgColumn<{
982
1112
  name: "metadata";
983
1113
  tableName: "workflow_hooks";
@@ -1067,6 +1197,58 @@ export declare const hooks: import("drizzle-orm/pg-core").PgTableWithColumns<{
1067
1197
  identity: undefined;
1068
1198
  generated: undefined;
1069
1199
  }, {}, {}>;
1200
+ resumeContext: import("drizzle-orm/pg-core").PgColumn<{
1201
+ name: "resume_context";
1202
+ tableName: "workflow_hooks";
1203
+ dataType: "custom";
1204
+ columnType: "PgCustomColumn";
1205
+ data: {
1206
+ deploymentId: string;
1207
+ workflowName: string;
1208
+ runSpecVersion?: number | undefined;
1209
+ workflowCoreVersion?: string | undefined;
1210
+ traceCarrier?: Record<string, string> | undefined;
1211
+ encryptionPublicKey?: string | undefined;
1212
+ hookResumeInputVersion?: number | undefined;
1213
+ };
1214
+ driverParam: Buffer<ArrayBufferLike>;
1215
+ notNull: false;
1216
+ hasDefault: false;
1217
+ isPrimaryKey: false;
1218
+ isAutoincrement: false;
1219
+ hasRuntimeDefault: false;
1220
+ enumValues: undefined;
1221
+ baseColumn: never;
1222
+ identity: undefined;
1223
+ generated: undefined;
1224
+ }, {}, {
1225
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1226
+ }>;
1227
+ claimedFrom: import("drizzle-orm/pg-core").PgColumn<{
1228
+ name: "claimed_from";
1229
+ tableName: "workflow_hooks";
1230
+ dataType: "custom";
1231
+ columnType: "PgCustomColumn";
1232
+ data: {
1233
+ runId: string;
1234
+ hookId: string;
1235
+ workflowName?: string | undefined;
1236
+ deploymentId?: string | undefined;
1237
+ runSpecVersion?: number | undefined;
1238
+ };
1239
+ driverParam: Buffer<ArrayBufferLike>;
1240
+ notNull: false;
1241
+ hasDefault: false;
1242
+ isPrimaryKey: false;
1243
+ isAutoincrement: false;
1244
+ hasRuntimeDefault: false;
1245
+ enumValues: undefined;
1246
+ baseColumn: never;
1247
+ identity: undefined;
1248
+ generated: undefined;
1249
+ }, {}, {
1250
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1251
+ }>;
1070
1252
  };
1071
1253
  dialect: "pg";
1072
1254
  }>;
@@ -1217,6 +1399,286 @@ export declare const waits: import("drizzle-orm/pg-core").PgTableWithColumns<{
1217
1399
  };
1218
1400
  dialect: "pg";
1219
1401
  }>;
1402
+ /** Store invocation inputs and outcomes separately from workflow events. */
1403
+ export declare const invocations: import("drizzle-orm/pg-core").PgTableWithColumns<{
1404
+ name: "workflow_invocations";
1405
+ schema: "workflow";
1406
+ columns: {
1407
+ sequence: import("drizzle-orm/pg-core").PgColumn<{
1408
+ name: "sequence";
1409
+ tableName: "workflow_invocations";
1410
+ dataType: "number";
1411
+ columnType: "PgBigSerial53";
1412
+ data: number;
1413
+ driverParam: number;
1414
+ notNull: true;
1415
+ hasDefault: true;
1416
+ isPrimaryKey: false;
1417
+ isAutoincrement: false;
1418
+ hasRuntimeDefault: false;
1419
+ enumValues: undefined;
1420
+ baseColumn: never;
1421
+ identity: undefined;
1422
+ generated: undefined;
1423
+ }, {}, {}>;
1424
+ runId: import("drizzle-orm/pg-core").PgColumn<{
1425
+ name: "run_id";
1426
+ tableName: "workflow_invocations";
1427
+ dataType: "string";
1428
+ columnType: "PgVarchar";
1429
+ data: string;
1430
+ driverParam: string;
1431
+ notNull: true;
1432
+ hasDefault: false;
1433
+ isPrimaryKey: false;
1434
+ isAutoincrement: false;
1435
+ hasRuntimeDefault: false;
1436
+ enumValues: [string, ...string[]];
1437
+ baseColumn: never;
1438
+ identity: undefined;
1439
+ generated: undefined;
1440
+ }, {}, {
1441
+ length: number | undefined;
1442
+ }>;
1443
+ requestId: import("drizzle-orm/pg-core").PgColumn<{
1444
+ name: "request_id";
1445
+ tableName: "workflow_invocations";
1446
+ dataType: "string";
1447
+ columnType: "PgVarchar";
1448
+ data: string;
1449
+ driverParam: string;
1450
+ notNull: true;
1451
+ hasDefault: false;
1452
+ isPrimaryKey: false;
1453
+ isAutoincrement: false;
1454
+ hasRuntimeDefault: false;
1455
+ enumValues: [string, ...string[]];
1456
+ baseColumn: never;
1457
+ identity: undefined;
1458
+ generated: undefined;
1459
+ }, {}, {
1460
+ length: number | undefined;
1461
+ }>;
1462
+ payload: import("drizzle-orm/pg-core").PgColumn<{
1463
+ name: "payload";
1464
+ tableName: "workflow_invocations";
1465
+ dataType: "custom";
1466
+ columnType: "PgCustomColumn";
1467
+ data: Buffer<ArrayBufferLike>;
1468
+ driverParam: unknown;
1469
+ notNull: false;
1470
+ hasDefault: false;
1471
+ isPrimaryKey: false;
1472
+ isAutoincrement: false;
1473
+ hasRuntimeDefault: false;
1474
+ enumValues: undefined;
1475
+ baseColumn: never;
1476
+ identity: undefined;
1477
+ generated: undefined;
1478
+ }, {}, {
1479
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1480
+ }>;
1481
+ fingerprint: import("drizzle-orm/pg-core").PgColumn<{
1482
+ name: "fingerprint";
1483
+ tableName: "workflow_invocations";
1484
+ dataType: "string";
1485
+ columnType: "PgVarchar";
1486
+ data: string;
1487
+ driverParam: string;
1488
+ notNull: false;
1489
+ hasDefault: false;
1490
+ isPrimaryKey: false;
1491
+ isAutoincrement: false;
1492
+ hasRuntimeDefault: false;
1493
+ enumValues: [string, ...string[]];
1494
+ baseColumn: never;
1495
+ identity: undefined;
1496
+ generated: undefined;
1497
+ }, {}, {
1498
+ length: number | undefined;
1499
+ }>;
1500
+ result: import("drizzle-orm/pg-core").PgColumn<{
1501
+ name: "result";
1502
+ tableName: "workflow_invocations";
1503
+ dataType: "custom";
1504
+ columnType: "PgCustomColumn";
1505
+ data: Buffer<ArrayBufferLike>;
1506
+ driverParam: unknown;
1507
+ notNull: false;
1508
+ hasDefault: false;
1509
+ isPrimaryKey: false;
1510
+ isAutoincrement: false;
1511
+ hasRuntimeDefault: false;
1512
+ enumValues: undefined;
1513
+ baseColumn: never;
1514
+ identity: undefined;
1515
+ generated: undefined;
1516
+ }, {}, {
1517
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1518
+ }>;
1519
+ resultVersion: import("drizzle-orm/pg-core").PgColumn<{
1520
+ name: "result_version";
1521
+ tableName: "workflow_invocations";
1522
+ dataType: "number";
1523
+ columnType: "PgInteger";
1524
+ data: number;
1525
+ driverParam: string | number;
1526
+ notNull: true;
1527
+ hasDefault: true;
1528
+ isPrimaryKey: false;
1529
+ isAutoincrement: false;
1530
+ hasRuntimeDefault: false;
1531
+ enumValues: undefined;
1532
+ baseColumn: never;
1533
+ identity: undefined;
1534
+ generated: undefined;
1535
+ }, {}, {}>;
1536
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
1537
+ name: "created_at";
1538
+ tableName: "workflow_invocations";
1539
+ dataType: "date";
1540
+ columnType: "PgTimestamp";
1541
+ data: Date;
1542
+ driverParam: string;
1543
+ notNull: true;
1544
+ hasDefault: true;
1545
+ isPrimaryKey: false;
1546
+ isAutoincrement: false;
1547
+ hasRuntimeDefault: false;
1548
+ enumValues: undefined;
1549
+ baseColumn: never;
1550
+ identity: undefined;
1551
+ generated: undefined;
1552
+ }, {}, {}>;
1553
+ respondedAt: import("drizzle-orm/pg-core").PgColumn<{
1554
+ name: "responded_at";
1555
+ tableName: "workflow_invocations";
1556
+ dataType: "date";
1557
+ columnType: "PgTimestamp";
1558
+ data: Date;
1559
+ driverParam: string;
1560
+ notNull: false;
1561
+ hasDefault: false;
1562
+ isPrimaryKey: false;
1563
+ isAutoincrement: false;
1564
+ hasRuntimeDefault: false;
1565
+ enumValues: undefined;
1566
+ baseColumn: never;
1567
+ identity: undefined;
1568
+ generated: undefined;
1569
+ }, {}, {}>;
1570
+ expiredAt: import("drizzle-orm/pg-core").PgColumn<{
1571
+ name: "expired_at";
1572
+ tableName: "workflow_invocations";
1573
+ dataType: "date";
1574
+ columnType: "PgTimestamp";
1575
+ data: Date;
1576
+ driverParam: string;
1577
+ notNull: false;
1578
+ hasDefault: false;
1579
+ isPrimaryKey: false;
1580
+ isAutoincrement: false;
1581
+ hasRuntimeDefault: false;
1582
+ enumValues: undefined;
1583
+ baseColumn: never;
1584
+ identity: undefined;
1585
+ generated: undefined;
1586
+ }, {}, {}>;
1587
+ };
1588
+ dialect: "pg";
1589
+ }>;
1590
+ /**
1591
+ * VM snapshots for VM-memory snapshotting.
1592
+ *
1593
+ * Each row is a 1-to-1 mapping with a workflow run — a snapshot captures
1594
+ * the QuickJS VM state at a suspension point so execution can resume from
1595
+ * there without replaying the full event log.
1596
+ *
1597
+ * The binary data is stored as opaque bytes in the `data` column (the SDK
1598
+ * applies compression/encryption before handing bytes to the world).
1599
+ * Metadata (`eventsCursor`, `createdAt`) lives alongside for cheap loads.
1600
+ */
1601
+ export declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
1602
+ name: "workflow_snapshots";
1603
+ schema: "workflow";
1604
+ columns: {
1605
+ runId: import("drizzle-orm/pg-core").PgColumn<{
1606
+ name: "run_id";
1607
+ tableName: "workflow_snapshots";
1608
+ dataType: "string";
1609
+ columnType: "PgVarchar";
1610
+ data: string;
1611
+ driverParam: string;
1612
+ notNull: true;
1613
+ hasDefault: false;
1614
+ isPrimaryKey: true;
1615
+ isAutoincrement: false;
1616
+ hasRuntimeDefault: false;
1617
+ enumValues: [string, ...string[]];
1618
+ baseColumn: never;
1619
+ identity: undefined;
1620
+ generated: undefined;
1621
+ }, {}, {
1622
+ length: number | undefined;
1623
+ }>;
1624
+ data: import("drizzle-orm/pg-core").PgColumn<{
1625
+ name: "data";
1626
+ tableName: "workflow_snapshots";
1627
+ dataType: "custom";
1628
+ columnType: "PgCustomColumn";
1629
+ data: Buffer<ArrayBufferLike>;
1630
+ driverParam: unknown;
1631
+ notNull: true;
1632
+ hasDefault: false;
1633
+ isPrimaryKey: false;
1634
+ isAutoincrement: false;
1635
+ hasRuntimeDefault: false;
1636
+ enumValues: undefined;
1637
+ baseColumn: never;
1638
+ identity: undefined;
1639
+ generated: undefined;
1640
+ }, {}, {
1641
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1642
+ }>;
1643
+ eventsCursor: import("drizzle-orm/pg-core").PgColumn<{
1644
+ name: "events_cursor";
1645
+ tableName: "workflow_snapshots";
1646
+ dataType: "string";
1647
+ columnType: "PgVarchar";
1648
+ data: string;
1649
+ driverParam: string;
1650
+ notNull: false;
1651
+ hasDefault: false;
1652
+ isPrimaryKey: false;
1653
+ isAutoincrement: false;
1654
+ hasRuntimeDefault: false;
1655
+ enumValues: [string, ...string[]];
1656
+ baseColumn: never;
1657
+ identity: undefined;
1658
+ generated: undefined;
1659
+ }, {}, {
1660
+ length: number | undefined;
1661
+ }>;
1662
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
1663
+ name: "created_at";
1664
+ tableName: "workflow_snapshots";
1665
+ dataType: "date";
1666
+ columnType: "PgTimestamp";
1667
+ data: Date;
1668
+ driverParam: string;
1669
+ notNull: true;
1670
+ hasDefault: true;
1671
+ isPrimaryKey: false;
1672
+ isAutoincrement: false;
1673
+ hasRuntimeDefault: false;
1674
+ enumValues: undefined;
1675
+ baseColumn: never;
1676
+ identity: undefined;
1677
+ generated: undefined;
1678
+ }, {}, {}>;
1679
+ };
1680
+ dialect: "pg";
1681
+ }>;
1220
1682
  export declare const streams: import("drizzle-orm/pg-core").PgTableWithColumns<{
1221
1683
  name: "workflow_stream_chunks";
1222
1684
  schema: "workflow";
@@ -1 +1 @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