@workflow/world-postgres 5.0.4 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { type StartHook } from '@workflow/world';
1
2
  export declare const schema: import("drizzle-orm/pg-core").PgSchema<"workflow">;
2
3
  export declare const workflowRunStatus: import("drizzle-orm/pg-core").PgEnum<["pending" | "running" | "completed" | "failed" | "cancelled", ...("pending" | "running" | "completed" | "failed" | "cancelled")[]]>;
3
4
  export declare const stepStatus: import("drizzle-orm/pg-core").PgEnum<["pending" | "running" | "completed" | "failed" | "cancelled", ...("pending" | "running" | "completed" | "failed" | "cancelled")[]]>;
@@ -6,6 +7,10 @@ export declare const waitStatus: import("drizzle-orm/pg-core").PgEnum<["complete
6
7
  * Serialization currently uses `any[]`.
7
8
  */
8
9
  export type SerializedContent = any[];
10
+ /** The start Hook a run row keeps: `run.startHook`, without its metadata. */
11
+ export type RunStartHook = Omit<StartHook, 'metadata'> & {
12
+ hookId: string;
13
+ };
9
14
  export declare const runs: import("drizzle-orm/pg-core").PgTableWithColumns<{
10
15
  name: "workflow_runs";
11
16
  schema: "workflow";
@@ -327,13 +332,51 @@ export declare const runs: import("drizzle-orm/pg-core").PgTableWithColumns<{
327
332
  }, {}, {
328
333
  pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
329
334
  }>;
335
+ jobPrefix: import("drizzle-orm/pg-core").PgColumn<{
336
+ name: "job_prefix";
337
+ tableName: "workflow_runs";
338
+ dataType: "string";
339
+ columnType: "PgVarchar";
340
+ data: string;
341
+ driverParam: string;
342
+ notNull: false;
343
+ hasDefault: false;
344
+ isPrimaryKey: false;
345
+ isAutoincrement: false;
346
+ hasRuntimeDefault: false;
347
+ enumValues: [string, ...string[]];
348
+ baseColumn: never;
349
+ identity: undefined;
350
+ generated: undefined;
351
+ }, {}, {
352
+ length: number | undefined;
353
+ }>;
354
+ startHook: import("drizzle-orm/pg-core").PgColumn<{
355
+ name: "start_hook_cbor";
356
+ tableName: "workflow_runs";
357
+ dataType: "custom";
358
+ columnType: "PgCustomColumn";
359
+ data: RunStartHook;
360
+ driverParam: Buffer<ArrayBufferLike>;
361
+ notNull: false;
362
+ hasDefault: false;
363
+ isPrimaryKey: false;
364
+ isAutoincrement: false;
365
+ hasRuntimeDefault: false;
366
+ enumValues: undefined;
367
+ baseColumn: never;
368
+ identity: undefined;
369
+ generated: undefined;
370
+ }, {}, {
371
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
372
+ }>;
330
373
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
331
374
  name: "created_at";
332
375
  tableName: "workflow_runs";
333
- dataType: "date";
334
- columnType: "PgTimestamp";
376
+ dataType: "custom";
377
+ columnType: "PgCustomColumn";
335
378
  data: Date;
336
- driverParam: string;
379
+ driverParam: string | Date;
337
380
  notNull: true;
338
381
  hasDefault: true;
339
382
  isPrimaryKey: false;
@@ -343,14 +386,16 @@ export declare const runs: import("drizzle-orm/pg-core").PgTableWithColumns<{
343
386
  baseColumn: never;
344
387
  identity: undefined;
345
388
  generated: undefined;
346
- }, {}, {}>;
389
+ }, {}, {
390
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
391
+ }>;
347
392
  updatedAt: import("drizzle-orm/pg-core").PgColumn<{
348
393
  name: "updated_at";
349
394
  tableName: "workflow_runs";
350
- dataType: "date";
351
- columnType: "PgTimestamp";
395
+ dataType: "custom";
396
+ columnType: "PgCustomColumn";
352
397
  data: Date;
353
- driverParam: string;
398
+ driverParam: string | Date;
354
399
  notNull: true;
355
400
  hasDefault: true;
356
401
  isPrimaryKey: false;
@@ -360,14 +405,16 @@ export declare const runs: import("drizzle-orm/pg-core").PgTableWithColumns<{
360
405
  baseColumn: never;
361
406
  identity: undefined;
362
407
  generated: undefined;
363
- }, {}, {}>;
408
+ }, {}, {
409
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
410
+ }>;
364
411
  completedAt: import("drizzle-orm/pg-core").PgColumn<{
365
412
  name: "completed_at";
366
413
  tableName: "workflow_runs";
367
- dataType: "date";
368
- columnType: "PgTimestamp";
414
+ dataType: "custom";
415
+ columnType: "PgCustomColumn";
369
416
  data: Date;
370
- driverParam: string;
417
+ driverParam: string | Date;
371
418
  notNull: false;
372
419
  hasDefault: false;
373
420
  isPrimaryKey: false;
@@ -377,14 +424,16 @@ export declare const runs: import("drizzle-orm/pg-core").PgTableWithColumns<{
377
424
  baseColumn: never;
378
425
  identity: undefined;
379
426
  generated: undefined;
380
- }, {}, {}>;
427
+ }, {}, {
428
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
429
+ }>;
381
430
  startedAt: import("drizzle-orm/pg-core").PgColumn<{
382
431
  name: "started_at";
383
432
  tableName: "workflow_runs";
384
- dataType: "date";
385
- columnType: "PgTimestamp";
433
+ dataType: "custom";
434
+ columnType: "PgCustomColumn";
386
435
  data: Date;
387
- driverParam: string;
436
+ driverParam: string | Date;
388
437
  notNull: false;
389
438
  hasDefault: false;
390
439
  isPrimaryKey: false;
@@ -394,14 +443,16 @@ export declare const runs: import("drizzle-orm/pg-core").PgTableWithColumns<{
394
443
  baseColumn: never;
395
444
  identity: undefined;
396
445
  generated: undefined;
397
- }, {}, {}>;
446
+ }, {}, {
447
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
448
+ }>;
398
449
  expiredAt: import("drizzle-orm/pg-core").PgColumn<{
399
450
  name: "expired_at";
400
451
  tableName: "workflow_runs";
401
- dataType: "date";
402
- columnType: "PgTimestamp";
452
+ dataType: "custom";
453
+ columnType: "PgCustomColumn";
403
454
  data: Date;
404
- driverParam: string;
455
+ driverParam: string | Date;
405
456
  notNull: false;
406
457
  hasDefault: false;
407
458
  isPrimaryKey: false;
@@ -411,7 +462,9 @@ export declare const runs: import("drizzle-orm/pg-core").PgTableWithColumns<{
411
462
  baseColumn: never;
412
463
  identity: undefined;
413
464
  generated: undefined;
414
- }, {}, {}>;
465
+ }, {}, {
466
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
467
+ }>;
415
468
  };
416
469
  dialect: "pg";
417
470
  }>;
@@ -480,10 +533,10 @@ export declare const events: import("drizzle-orm/pg-core").PgTableWithColumns<{
480
533
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
481
534
  name: "created_at";
482
535
  tableName: "workflow_events";
483
- dataType: "date";
484
- columnType: "PgTimestamp";
536
+ dataType: "custom";
537
+ columnType: "PgCustomColumn";
485
538
  data: Date;
486
- driverParam: string;
539
+ driverParam: string | Date;
487
540
  notNull: true;
488
541
  hasDefault: true;
489
542
  isPrimaryKey: false;
@@ -493,7 +546,9 @@ export declare const events: import("drizzle-orm/pg-core").PgTableWithColumns<{
493
546
  baseColumn: never;
494
547
  identity: undefined;
495
548
  generated: undefined;
496
- }, {}, {}>;
549
+ }, {}, {
550
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
551
+ }>;
497
552
  runId: import("drizzle-orm/pg-core").PgColumn<{
498
553
  name: "run_id";
499
554
  tableName: "workflow_events";
@@ -661,6 +716,123 @@ export declare const eventSlots: import("drizzle-orm/pg-core").PgTableWithColumn
661
716
  };
662
717
  dialect: "pg";
663
718
  }>;
719
+ /**
720
+ * One immutable `start({ hook })` admission decision per candidate run (see
721
+ * `start-hook.ts` in @workflow/world, and `../start-hook.ts` here).
722
+ *
723
+ * - `accepted` rows are written in the same transaction as the run they
724
+ * admit and its start Hook (an ordinary row in `workflow_hooks`).
725
+ * - `rejected` rows record the owner the candidate lost to, so a later
726
+ * attempt for the same candidate answers the same `conflicting_run_id`
727
+ * even after the owner has released the token.
728
+ *
729
+ * A decision only matters inside its candidate's 24h window: past it, every
730
+ * attempt for the candidate is refused regardless. Admissions delete rows
731
+ * older than that as they go (`created_at` index).
732
+ */
733
+ export declare const startHookAdmissions: import("drizzle-orm/pg-core").PgTableWithColumns<{
734
+ name: "workflow_start_hook_admissions";
735
+ schema: "workflow";
736
+ columns: {
737
+ runId: import("drizzle-orm/pg-core").PgColumn<{
738
+ name: "run_id";
739
+ tableName: "workflow_start_hook_admissions";
740
+ dataType: "string";
741
+ columnType: "PgVarchar";
742
+ data: string;
743
+ driverParam: string;
744
+ notNull: true;
745
+ hasDefault: false;
746
+ isPrimaryKey: true;
747
+ isAutoincrement: false;
748
+ hasRuntimeDefault: false;
749
+ enumValues: [string, ...string[]];
750
+ baseColumn: never;
751
+ identity: undefined;
752
+ generated: undefined;
753
+ }, {}, {
754
+ length: number | undefined;
755
+ }>;
756
+ token: import("drizzle-orm/pg-core").PgColumn<{
757
+ name: "token";
758
+ tableName: "workflow_start_hook_admissions";
759
+ dataType: "string";
760
+ columnType: "PgVarchar";
761
+ data: string;
762
+ driverParam: string;
763
+ notNull: true;
764
+ hasDefault: false;
765
+ isPrimaryKey: false;
766
+ isAutoincrement: false;
767
+ hasRuntimeDefault: false;
768
+ enumValues: [string, ...string[]];
769
+ baseColumn: never;
770
+ identity: undefined;
771
+ generated: undefined;
772
+ }, {}, {
773
+ length: number | undefined;
774
+ }>;
775
+ decision: import("drizzle-orm/pg-core").PgColumn<{
776
+ name: "decision";
777
+ tableName: "workflow_start_hook_admissions";
778
+ dataType: "string";
779
+ columnType: "PgVarchar";
780
+ data: "accepted" | "rejected";
781
+ driverParam: string;
782
+ notNull: true;
783
+ hasDefault: false;
784
+ isPrimaryKey: false;
785
+ isAutoincrement: false;
786
+ hasRuntimeDefault: false;
787
+ enumValues: [string, ...string[]];
788
+ baseColumn: never;
789
+ identity: undefined;
790
+ generated: undefined;
791
+ }, {}, {
792
+ length: number | undefined;
793
+ $type: "accepted" | "rejected";
794
+ }>;
795
+ conflictingRunId: import("drizzle-orm/pg-core").PgColumn<{
796
+ name: "conflicting_run_id";
797
+ tableName: "workflow_start_hook_admissions";
798
+ dataType: "string";
799
+ columnType: "PgVarchar";
800
+ data: string;
801
+ driverParam: string;
802
+ notNull: false;
803
+ hasDefault: false;
804
+ isPrimaryKey: false;
805
+ isAutoincrement: false;
806
+ hasRuntimeDefault: false;
807
+ enumValues: [string, ...string[]];
808
+ baseColumn: never;
809
+ identity: undefined;
810
+ generated: undefined;
811
+ }, {}, {
812
+ length: number | undefined;
813
+ }>;
814
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
815
+ name: "created_at";
816
+ tableName: "workflow_start_hook_admissions";
817
+ dataType: "custom";
818
+ columnType: "PgCustomColumn";
819
+ data: Date;
820
+ driverParam: string | Date;
821
+ notNull: true;
822
+ hasDefault: true;
823
+ isPrimaryKey: false;
824
+ isAutoincrement: false;
825
+ hasRuntimeDefault: false;
826
+ enumValues: undefined;
827
+ baseColumn: never;
828
+ identity: undefined;
829
+ generated: undefined;
830
+ }, {}, {
831
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
832
+ }>;
833
+ };
834
+ dialect: "pg";
835
+ }>;
664
836
  export declare const steps: import("drizzle-orm/pg-core").PgTableWithColumns<{
665
837
  name: "workflow_steps";
666
838
  schema: "workflow";
@@ -871,10 +1043,10 @@ export declare const steps: import("drizzle-orm/pg-core").PgTableWithColumns<{
871
1043
  startedAt: import("drizzle-orm/pg-core").PgColumn<{
872
1044
  name: "started_at";
873
1045
  tableName: "workflow_steps";
874
- dataType: "date";
875
- columnType: "PgTimestamp";
1046
+ dataType: "custom";
1047
+ columnType: "PgCustomColumn";
876
1048
  data: Date;
877
- driverParam: string;
1049
+ driverParam: string | Date;
878
1050
  notNull: false;
879
1051
  hasDefault: false;
880
1052
  isPrimaryKey: false;
@@ -884,14 +1056,16 @@ export declare const steps: import("drizzle-orm/pg-core").PgTableWithColumns<{
884
1056
  baseColumn: never;
885
1057
  identity: undefined;
886
1058
  generated: undefined;
887
- }, {}, {}>;
1059
+ }, {}, {
1060
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1061
+ }>;
888
1062
  completedAt: import("drizzle-orm/pg-core").PgColumn<{
889
1063
  name: "completed_at";
890
1064
  tableName: "workflow_steps";
891
- dataType: "date";
892
- columnType: "PgTimestamp";
1065
+ dataType: "custom";
1066
+ columnType: "PgCustomColumn";
893
1067
  data: Date;
894
- driverParam: string;
1068
+ driverParam: string | Date;
895
1069
  notNull: false;
896
1070
  hasDefault: false;
897
1071
  isPrimaryKey: false;
@@ -901,14 +1075,16 @@ export declare const steps: import("drizzle-orm/pg-core").PgTableWithColumns<{
901
1075
  baseColumn: never;
902
1076
  identity: undefined;
903
1077
  generated: undefined;
904
- }, {}, {}>;
1078
+ }, {}, {
1079
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1080
+ }>;
905
1081
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
906
1082
  name: "created_at";
907
1083
  tableName: "workflow_steps";
908
- dataType: "date";
909
- columnType: "PgTimestamp";
1084
+ dataType: "custom";
1085
+ columnType: "PgCustomColumn";
910
1086
  data: Date;
911
- driverParam: string;
1087
+ driverParam: string | Date;
912
1088
  notNull: true;
913
1089
  hasDefault: true;
914
1090
  isPrimaryKey: false;
@@ -918,14 +1094,16 @@ export declare const steps: import("drizzle-orm/pg-core").PgTableWithColumns<{
918
1094
  baseColumn: never;
919
1095
  identity: undefined;
920
1096
  generated: undefined;
921
- }, {}, {}>;
1097
+ }, {}, {
1098
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1099
+ }>;
922
1100
  updatedAt: import("drizzle-orm/pg-core").PgColumn<{
923
1101
  name: "updated_at";
924
1102
  tableName: "workflow_steps";
925
- dataType: "date";
926
- columnType: "PgTimestamp";
1103
+ dataType: "custom";
1104
+ columnType: "PgCustomColumn";
927
1105
  data: Date;
928
- driverParam: string;
1106
+ driverParam: string | Date;
929
1107
  notNull: true;
930
1108
  hasDefault: true;
931
1109
  isPrimaryKey: false;
@@ -935,14 +1113,16 @@ export declare const steps: import("drizzle-orm/pg-core").PgTableWithColumns<{
935
1113
  baseColumn: never;
936
1114
  identity: undefined;
937
1115
  generated: undefined;
938
- }, {}, {}>;
1116
+ }, {}, {
1117
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1118
+ }>;
939
1119
  retryAfter: import("drizzle-orm/pg-core").PgColumn<{
940
1120
  name: "retry_after";
941
1121
  tableName: "workflow_steps";
942
- dataType: "date";
943
- columnType: "PgTimestamp";
1122
+ dataType: "custom";
1123
+ columnType: "PgCustomColumn";
944
1124
  data: Date;
945
- driverParam: string;
1125
+ driverParam: string | Date;
946
1126
  notNull: false;
947
1127
  hasDefault: false;
948
1128
  isPrimaryKey: false;
@@ -952,7 +1132,9 @@ export declare const steps: import("drizzle-orm/pg-core").PgTableWithColumns<{
952
1132
  baseColumn: never;
953
1133
  identity: undefined;
954
1134
  generated: undefined;
955
- }, {}, {}>;
1135
+ }, {}, {
1136
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1137
+ }>;
956
1138
  specVersion: import("drizzle-orm/pg-core").PgColumn<{
957
1139
  name: "spec_version";
958
1140
  tableName: "workflow_steps";
@@ -1094,10 +1276,10 @@ export declare const hooks: import("drizzle-orm/pg-core").PgTableWithColumns<{
1094
1276
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
1095
1277
  name: "created_at";
1096
1278
  tableName: "workflow_hooks";
1097
- dataType: "date";
1098
- columnType: "PgTimestamp";
1279
+ dataType: "custom";
1280
+ columnType: "PgCustomColumn";
1099
1281
  data: Date;
1100
- driverParam: string;
1282
+ driverParam: string | Date;
1101
1283
  notNull: true;
1102
1284
  hasDefault: true;
1103
1285
  isPrimaryKey: false;
@@ -1107,14 +1289,16 @@ export declare const hooks: import("drizzle-orm/pg-core").PgTableWithColumns<{
1107
1289
  baseColumn: never;
1108
1290
  identity: undefined;
1109
1291
  generated: undefined;
1110
- }, {}, {}>;
1292
+ }, {}, {
1293
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1294
+ }>;
1111
1295
  tokenRetentionUntil: import("drizzle-orm/pg-core").PgColumn<{
1112
1296
  name: "token_retention_until";
1113
1297
  tableName: "workflow_hooks";
1114
- dataType: "date";
1115
- columnType: "PgTimestamp";
1298
+ dataType: "custom";
1299
+ columnType: "PgCustomColumn";
1116
1300
  data: Date;
1117
- driverParam: string;
1301
+ driverParam: string | Date;
1118
1302
  notNull: false;
1119
1303
  hasDefault: false;
1120
1304
  isPrimaryKey: false;
@@ -1124,7 +1308,9 @@ export declare const hooks: import("drizzle-orm/pg-core").PgTableWithColumns<{
1124
1308
  baseColumn: never;
1125
1309
  identity: undefined;
1126
1310
  generated: undefined;
1127
- }, {}, {}>;
1311
+ }, {}, {
1312
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1313
+ }>;
1128
1314
  metadataJson: import("drizzle-orm/pg-core").PgColumn<{
1129
1315
  name: "metadata";
1130
1316
  tableName: "workflow_hooks";
@@ -1267,6 +1453,23 @@ export declare const hooks: import("drizzle-orm/pg-core").PgTableWithColumns<{
1267
1453
  }, {}, {
1268
1454
  pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1269
1455
  }>;
1456
+ claimsToken: import("drizzle-orm/pg-core").PgColumn<{
1457
+ name: "claims_token";
1458
+ tableName: "workflow_hooks";
1459
+ dataType: "boolean";
1460
+ columnType: "PgBoolean";
1461
+ data: boolean;
1462
+ driverParam: boolean;
1463
+ notNull: true;
1464
+ hasDefault: true;
1465
+ isPrimaryKey: false;
1466
+ isAutoincrement: false;
1467
+ hasRuntimeDefault: false;
1468
+ enumValues: undefined;
1469
+ baseColumn: never;
1470
+ identity: undefined;
1471
+ generated: undefined;
1472
+ }, {}, {}>;
1270
1473
  };
1271
1474
  dialect: "pg";
1272
1475
  }>;
@@ -1332,10 +1535,10 @@ export declare const waits: import("drizzle-orm/pg-core").PgTableWithColumns<{
1332
1535
  resumeAt: import("drizzle-orm/pg-core").PgColumn<{
1333
1536
  name: "resume_at";
1334
1537
  tableName: "workflow_waits";
1335
- dataType: "date";
1336
- columnType: "PgTimestamp";
1538
+ dataType: "custom";
1539
+ columnType: "PgCustomColumn";
1337
1540
  data: Date;
1338
- driverParam: string;
1541
+ driverParam: string | Date;
1339
1542
  notNull: false;
1340
1543
  hasDefault: false;
1341
1544
  isPrimaryKey: false;
@@ -1345,14 +1548,16 @@ export declare const waits: import("drizzle-orm/pg-core").PgTableWithColumns<{
1345
1548
  baseColumn: never;
1346
1549
  identity: undefined;
1347
1550
  generated: undefined;
1348
- }, {}, {}>;
1551
+ }, {}, {
1552
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1553
+ }>;
1349
1554
  completedAt: import("drizzle-orm/pg-core").PgColumn<{
1350
1555
  name: "completed_at";
1351
1556
  tableName: "workflow_waits";
1352
- dataType: "date";
1353
- columnType: "PgTimestamp";
1557
+ dataType: "custom";
1558
+ columnType: "PgCustomColumn";
1354
1559
  data: Date;
1355
- driverParam: string;
1560
+ driverParam: string | Date;
1356
1561
  notNull: false;
1357
1562
  hasDefault: false;
1358
1563
  isPrimaryKey: false;
@@ -1362,14 +1567,16 @@ export declare const waits: import("drizzle-orm/pg-core").PgTableWithColumns<{
1362
1567
  baseColumn: never;
1363
1568
  identity: undefined;
1364
1569
  generated: undefined;
1365
- }, {}, {}>;
1570
+ }, {}, {
1571
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1572
+ }>;
1366
1573
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
1367
1574
  name: "created_at";
1368
1575
  tableName: "workflow_waits";
1369
- dataType: "date";
1370
- columnType: "PgTimestamp";
1576
+ dataType: "custom";
1577
+ columnType: "PgCustomColumn";
1371
1578
  data: Date;
1372
- driverParam: string;
1579
+ driverParam: string | Date;
1373
1580
  notNull: true;
1374
1581
  hasDefault: true;
1375
1582
  isPrimaryKey: false;
@@ -1379,14 +1586,16 @@ export declare const waits: import("drizzle-orm/pg-core").PgTableWithColumns<{
1379
1586
  baseColumn: never;
1380
1587
  identity: undefined;
1381
1588
  generated: undefined;
1382
- }, {}, {}>;
1589
+ }, {}, {
1590
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1591
+ }>;
1383
1592
  updatedAt: import("drizzle-orm/pg-core").PgColumn<{
1384
1593
  name: "updated_at";
1385
1594
  tableName: "workflow_waits";
1386
- dataType: "date";
1387
- columnType: "PgTimestamp";
1595
+ dataType: "custom";
1596
+ columnType: "PgCustomColumn";
1388
1597
  data: Date;
1389
- driverParam: string;
1598
+ driverParam: string | Date;
1390
1599
  notNull: true;
1391
1600
  hasDefault: true;
1392
1601
  isPrimaryKey: false;
@@ -1396,7 +1605,9 @@ export declare const waits: import("drizzle-orm/pg-core").PgTableWithColumns<{
1396
1605
  baseColumn: never;
1397
1606
  identity: undefined;
1398
1607
  generated: undefined;
1399
- }, {}, {}>;
1608
+ }, {}, {
1609
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1610
+ }>;
1400
1611
  specVersion: import("drizzle-orm/pg-core").PgColumn<{
1401
1612
  name: "spec_version";
1402
1613
  tableName: "workflow_waits";
@@ -1554,10 +1765,10 @@ export declare const invocations: import("drizzle-orm/pg-core").PgTableWithColum
1554
1765
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
1555
1766
  name: "created_at";
1556
1767
  tableName: "workflow_invocations";
1557
- dataType: "date";
1558
- columnType: "PgTimestamp";
1768
+ dataType: "custom";
1769
+ columnType: "PgCustomColumn";
1559
1770
  data: Date;
1560
- driverParam: string;
1771
+ driverParam: string | Date;
1561
1772
  notNull: true;
1562
1773
  hasDefault: true;
1563
1774
  isPrimaryKey: false;
@@ -1567,14 +1778,16 @@ export declare const invocations: import("drizzle-orm/pg-core").PgTableWithColum
1567
1778
  baseColumn: never;
1568
1779
  identity: undefined;
1569
1780
  generated: undefined;
1570
- }, {}, {}>;
1781
+ }, {}, {
1782
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1783
+ }>;
1571
1784
  respondedAt: import("drizzle-orm/pg-core").PgColumn<{
1572
1785
  name: "responded_at";
1573
1786
  tableName: "workflow_invocations";
1574
- dataType: "date";
1575
- columnType: "PgTimestamp";
1787
+ dataType: "custom";
1788
+ columnType: "PgCustomColumn";
1576
1789
  data: Date;
1577
- driverParam: string;
1790
+ driverParam: string | Date;
1578
1791
  notNull: false;
1579
1792
  hasDefault: false;
1580
1793
  isPrimaryKey: false;
@@ -1584,14 +1797,16 @@ export declare const invocations: import("drizzle-orm/pg-core").PgTableWithColum
1584
1797
  baseColumn: never;
1585
1798
  identity: undefined;
1586
1799
  generated: undefined;
1587
- }, {}, {}>;
1800
+ }, {}, {
1801
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1802
+ }>;
1588
1803
  expiredAt: import("drizzle-orm/pg-core").PgColumn<{
1589
1804
  name: "expired_at";
1590
1805
  tableName: "workflow_invocations";
1591
- dataType: "date";
1592
- columnType: "PgTimestamp";
1806
+ dataType: "custom";
1807
+ columnType: "PgCustomColumn";
1593
1808
  data: Date;
1594
- driverParam: string;
1809
+ driverParam: string | Date;
1595
1810
  notNull: false;
1596
1811
  hasDefault: false;
1597
1812
  isPrimaryKey: false;
@@ -1601,7 +1816,9 @@ export declare const invocations: import("drizzle-orm/pg-core").PgTableWithColum
1601
1816
  baseColumn: never;
1602
1817
  identity: undefined;
1603
1818
  generated: undefined;
1604
- }, {}, {}>;
1819
+ }, {}, {
1820
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1821
+ }>;
1605
1822
  };
1606
1823
  dialect: "pg";
1607
1824
  }>;
@@ -1680,10 +1897,10 @@ export declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns
1680
1897
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
1681
1898
  name: "created_at";
1682
1899
  tableName: "workflow_snapshots";
1683
- dataType: "date";
1684
- columnType: "PgTimestamp";
1900
+ dataType: "custom";
1901
+ columnType: "PgCustomColumn";
1685
1902
  data: Date;
1686
- driverParam: string;
1903
+ driverParam: string | Date;
1687
1904
  notNull: true;
1688
1905
  hasDefault: true;
1689
1906
  isPrimaryKey: false;
@@ -1693,7 +1910,9 @@ export declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns
1693
1910
  baseColumn: never;
1694
1911
  identity: undefined;
1695
1912
  generated: undefined;
1696
- }, {}, {}>;
1913
+ }, {}, {
1914
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
1915
+ }>;
1697
1916
  };
1698
1917
  dialect: "pg";
1699
1918
  }>;
@@ -1781,10 +2000,10 @@ export declare const streams: import("drizzle-orm/pg-core").PgTableWithColumns<{
1781
2000
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
1782
2001
  name: "created_at";
1783
2002
  tableName: "workflow_stream_chunks";
1784
- dataType: "date";
1785
- columnType: "PgTimestamp";
2003
+ dataType: "custom";
2004
+ columnType: "PgCustomColumn";
1786
2005
  data: Date;
1787
- driverParam: string;
2006
+ driverParam: string | Date;
1788
2007
  notNull: true;
1789
2008
  hasDefault: true;
1790
2009
  isPrimaryKey: false;
@@ -1794,7 +2013,9 @@ export declare const streams: import("drizzle-orm/pg-core").PgTableWithColumns<{
1794
2013
  baseColumn: never;
1795
2014
  identity: undefined;
1796
2015
  generated: undefined;
1797
- }, {}, {}>;
2016
+ }, {}, {
2017
+ pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
2018
+ }>;
1798
2019
  eof: import("drizzle-orm/pg-core").PgColumn<{
1799
2020
  name: "eof";
1800
2021
  tableName: "workflow_stream_chunks";