@sequenceholdings/orm 2.9.0 → 2.11.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.
Files changed (50) hide show
  1. package/README.md +71 -0
  2. package/dist/authoring.cjs +796 -7
  3. package/dist/authoring.cjs.map +1 -1
  4. package/dist/authoring.d.cts +11 -2
  5. package/dist/authoring.d.ts +11 -2
  6. package/dist/authoring.js +796 -7
  7. package/dist/authoring.js.map +1 -1
  8. package/dist/canonical.cjs +777 -6
  9. package/dist/canonical.cjs.map +1 -1
  10. package/dist/canonical.d.cts +43 -43
  11. package/dist/canonical.d.ts +43 -43
  12. package/dist/canonical.js +777 -6
  13. package/dist/canonical.js.map +1 -1
  14. package/dist/cli.cjs +7585 -7512
  15. package/dist/cli.cjs.map +1 -1
  16. package/dist/cli.d.cts +10 -1
  17. package/dist/cli.d.ts +10 -1
  18. package/dist/cli.js +7584 -7513
  19. package/dist/cli.js.map +1 -1
  20. package/dist/compiler.cjs +1059 -50
  21. package/dist/compiler.cjs.map +1 -1
  22. package/dist/compiler.d.cts +182 -2
  23. package/dist/compiler.d.ts +182 -2
  24. package/dist/compiler.js +1054 -51
  25. package/dist/compiler.js.map +1 -1
  26. package/dist/index.cjs +3720 -3447
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +96 -31
  29. package/dist/index.d.ts +96 -31
  30. package/dist/index.js +3714 -3446
  31. package/dist/index.js.map +1 -1
  32. package/dist/ir.cjs +787 -14
  33. package/dist/ir.cjs.map +1 -1
  34. package/dist/ir.d.cts +70 -59
  35. package/dist/ir.d.ts +70 -59
  36. package/dist/ir.js +787 -15
  37. package/dist/ir.js.map +1 -1
  38. package/dist/predicate-v2.cjs +802 -30
  39. package/dist/predicate-v2.cjs.map +1 -1
  40. package/dist/predicate-v2.d.cts +2 -0
  41. package/dist/predicate-v2.d.ts +2 -0
  42. package/dist/predicate-v2.js +802 -30
  43. package/dist/predicate-v2.js.map +1 -1
  44. package/dist/sdl.cjs +794 -24
  45. package/dist/sdl.cjs.map +1 -1
  46. package/dist/sdl.js +794 -24
  47. package/dist/sdl.js.map +1 -1
  48. package/package.json +1 -1
  49. package/dist/{definition-B99BsOAO.d.cts → definition-CevES7lM.d.cts} +2 -2
  50. package/dist/{definition-B99BsOAO.d.ts → definition-CevES7lM.d.ts} +2 -2
package/dist/ir.d.ts CHANGED
@@ -68,9 +68,9 @@ declare const valueIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
68
68
  }, z.core.$strip>, z.ZodObject<{
69
69
  kind: z.ZodLiteral<"claim">;
70
70
  key: z.ZodEnum<{
71
+ sub: "sub";
71
72
  ext_subject: "ext_subject";
72
73
  ext_email: "ext_email";
73
- sub: "sub";
74
74
  org: "org";
75
75
  }>;
76
76
  }, z.core.$strip>], "kind">;
@@ -233,9 +233,9 @@ declare const prefetchPlanIrSchema: z.ZodObject<{
233
233
  }, z.core.$strip>, z.ZodObject<{
234
234
  kind: z.ZodLiteral<"claim">;
235
235
  key: z.ZodEnum<{
236
+ sub: "sub";
236
237
  ext_subject: "ext_subject";
237
238
  ext_email: "ext_email";
238
- sub: "sub";
239
239
  org: "org";
240
240
  }>;
241
241
  }, z.core.$strip>], "kind">;
@@ -249,9 +249,9 @@ declare const prefetchPlanIrSchema: z.ZodObject<{
249
249
  }, z.core.$strip>, z.ZodObject<{
250
250
  kind: z.ZodLiteral<"claim">;
251
251
  key: z.ZodEnum<{
252
+ sub: "sub";
252
253
  ext_subject: "ext_subject";
253
254
  ext_email: "ext_email";
254
- sub: "sub";
255
255
  org: "org";
256
256
  }>;
257
257
  }, z.core.$strip>], "kind">;
@@ -336,9 +336,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
336
336
  }, z.core.$strip>, z.ZodObject<{
337
337
  kind: z.ZodLiteral<"claim">;
338
338
  key: z.ZodEnum<{
339
+ sub: "sub";
339
340
  ext_subject: "ext_subject";
340
341
  ext_email: "ext_email";
341
- sub: "sub";
342
342
  org: "org";
343
343
  }>;
344
344
  }, z.core.$strip>], "kind">;
@@ -352,9 +352,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
352
352
  }, z.core.$strip>, z.ZodObject<{
353
353
  kind: z.ZodLiteral<"claim">;
354
354
  key: z.ZodEnum<{
355
+ sub: "sub";
355
356
  ext_subject: "ext_subject";
356
357
  ext_email: "ext_email";
357
- sub: "sub";
358
358
  org: "org";
359
359
  }>;
360
360
  }, z.core.$strip>], "kind">;
@@ -376,9 +376,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
376
376
  }, z.core.$strip>, z.ZodObject<{
377
377
  kind: z.ZodLiteral<"claim">;
378
378
  key: z.ZodEnum<{
379
+ sub: "sub";
379
380
  ext_subject: "ext_subject";
380
381
  ext_email: "ext_email";
381
- sub: "sub";
382
382
  org: "org";
383
383
  }>;
384
384
  }, z.core.$strip>], "kind">;
@@ -401,9 +401,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
401
401
  }, z.core.$strip>, z.ZodObject<{
402
402
  kind: z.ZodLiteral<"claim">;
403
403
  key: z.ZodEnum<{
404
+ sub: "sub";
404
405
  ext_subject: "ext_subject";
405
406
  ext_email: "ext_email";
406
- sub: "sub";
407
407
  org: "org";
408
408
  }>;
409
409
  }, z.core.$strip>], "kind">;
@@ -417,9 +417,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
417
417
  }, z.core.$strip>, z.ZodObject<{
418
418
  kind: z.ZodLiteral<"claim">;
419
419
  key: z.ZodEnum<{
420
+ sub: "sub";
420
421
  ext_subject: "ext_subject";
421
422
  ext_email: "ext_email";
422
- sub: "sub";
423
423
  org: "org";
424
424
  }>;
425
425
  }, z.core.$strip>], "kind">;
@@ -484,20 +484,20 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
484
484
  }, z.core.$strip>, z.ZodObject<{
485
485
  kind: z.ZodLiteral<"mutation">;
486
486
  op: z.ZodEnum<{
487
+ update: "update";
488
+ delete: "delete";
487
489
  insert: "insert";
488
490
  insertOne: "insertOne";
489
- update: "update";
490
491
  updateByPk: "updateByPk";
491
- delete: "delete";
492
492
  deleteByPk: "deleteByPk";
493
493
  cowOverride: "cowOverride";
494
494
  cowRevert: "cowRevert";
495
495
  resolvedWrite: "resolvedWrite";
496
496
  }>;
497
497
  resolvedAction: z.ZodOptional<z.ZodEnum<{
498
- insert: "insert";
499
498
  update: "update";
500
499
  delete: "delete";
500
+ insert: "insert";
501
501
  revert: "revert";
502
502
  }>>;
503
503
  revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -528,9 +528,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
528
528
  }, z.core.$strip>, z.ZodObject<{
529
529
  kind: z.ZodLiteral<"claim">;
530
530
  key: z.ZodEnum<{
531
+ sub: "sub";
531
532
  ext_subject: "ext_subject";
532
533
  ext_email: "ext_email";
533
- sub: "sub";
534
534
  org: "org";
535
535
  }>;
536
536
  }, z.core.$strip>], "kind">;
@@ -547,9 +547,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
547
547
  }, z.core.$strip>, z.ZodObject<{
548
548
  kind: z.ZodLiteral<"claim">;
549
549
  key: z.ZodEnum<{
550
+ sub: "sub";
550
551
  ext_subject: "ext_subject";
551
552
  ext_email: "ext_email";
552
- sub: "sub";
553
553
  org: "org";
554
554
  }>;
555
555
  }, z.core.$strip>], "kind">;
@@ -574,9 +574,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
574
574
  }, z.core.$strip>, z.ZodObject<{
575
575
  kind: z.ZodLiteral<"claim">;
576
576
  key: z.ZodEnum<{
577
+ sub: "sub";
577
578
  ext_subject: "ext_subject";
578
579
  ext_email: "ext_email";
579
- sub: "sub";
580
580
  org: "org";
581
581
  }>;
582
582
  }, z.core.$strip>], "kind">;
@@ -596,9 +596,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
596
596
  }, z.core.$strip>, z.ZodObject<{
597
597
  kind: z.ZodLiteral<"claim">;
598
598
  key: z.ZodEnum<{
599
+ sub: "sub";
599
600
  ext_subject: "ext_subject";
600
601
  ext_email: "ext_email";
601
- sub: "sub";
602
602
  org: "org";
603
603
  }>;
604
604
  }, z.core.$strip>], "kind">;
@@ -618,9 +618,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
618
618
  }, z.core.$strip>, z.ZodObject<{
619
619
  kind: z.ZodLiteral<"claim">;
620
620
  key: z.ZodEnum<{
621
+ sub: "sub";
621
622
  ext_subject: "ext_subject";
622
623
  ext_email: "ext_email";
623
- sub: "sub";
624
624
  org: "org";
625
625
  }>;
626
626
  }, z.core.$strip>], "kind">;
@@ -638,9 +638,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
638
638
  }, z.core.$strip>, z.ZodObject<{
639
639
  kind: z.ZodLiteral<"claim">;
640
640
  key: z.ZodEnum<{
641
+ sub: "sub";
641
642
  ext_subject: "ext_subject";
642
643
  ext_email: "ext_email";
643
- sub: "sub";
644
644
  org: "org";
645
645
  }>;
646
646
  }, z.core.$strip>], "kind">;
@@ -676,8 +676,8 @@ declare const variableIrSchema: z.ZodObject<{
676
676
  bigint: "bigint";
677
677
  boolean: "boolean";
678
678
  date: "date";
679
- uuid: "uuid";
680
679
  text: "text";
680
+ uuid: "uuid";
681
681
  integer: "integer";
682
682
  numeric: "numeric";
683
683
  double: "double";
@@ -708,6 +708,17 @@ declare const variableIrSchema: z.ZodObject<{
708
708
  }, z.core.$strip>>;
709
709
  }, z.core.$strip>;
710
710
  type VariableIr = z.infer<typeof variableIrSchema>;
711
+ declare const sqlObjectIrSchema: z.ZodObject<{
712
+ ref: z.ZodString;
713
+ table: z.ZodString;
714
+ columns: z.ZodArray<z.ZodObject<{
715
+ name: z.ZodString;
716
+ nullable: z.ZodBoolean;
717
+ type: z.ZodString;
718
+ }, z.core.$strip>>;
719
+ scan: z.ZodString;
720
+ read: z.ZodArray<z.ZodString>;
721
+ }, z.core.$strict>;
711
722
  declare const compiledOperationSchema: z.ZodObject<{
712
723
  language: z.ZodOptional<z.ZodLiteral<"sql">>;
713
724
  sqlQuery: z.ZodOptional<z.ZodObject<{
@@ -736,8 +747,8 @@ declare const compiledOperationSchema: z.ZodObject<{
736
747
  bigint: "bigint";
737
748
  boolean: "boolean";
738
749
  date: "date";
739
- uuid: "uuid";
740
750
  text: "text";
751
+ uuid: "uuid";
741
752
  integer: "integer";
742
753
  numeric: "numeric";
743
754
  double: "double";
@@ -754,8 +765,8 @@ declare const compiledOperationSchema: z.ZodObject<{
754
765
  name: z.ZodString;
755
766
  opHash: z.ZodString;
756
767
  kind: z.ZodEnum<{
757
- mutation: "mutation";
758
768
  query: "query";
769
+ mutation: "mutation";
759
770
  }>;
760
771
  requires: z.ZodNullable<z.ZodObject<{
761
772
  capability: z.ZodOptional<z.ZodString>;
@@ -769,8 +780,8 @@ declare const compiledOperationSchema: z.ZodObject<{
769
780
  bigint: "bigint";
770
781
  boolean: "boolean";
771
782
  date: "date";
772
- uuid: "uuid";
773
783
  text: "text";
784
+ uuid: "uuid";
774
785
  integer: "integer";
775
786
  numeric: "numeric";
776
787
  double: "double";
@@ -853,9 +864,9 @@ declare const compiledOperationSchema: z.ZodObject<{
853
864
  }, z.core.$strip>, z.ZodObject<{
854
865
  kind: z.ZodLiteral<"claim">;
855
866
  key: z.ZodEnum<{
867
+ sub: "sub";
856
868
  ext_subject: "ext_subject";
857
869
  ext_email: "ext_email";
858
- sub: "sub";
859
870
  org: "org";
860
871
  }>;
861
872
  }, z.core.$strip>], "kind">;
@@ -869,9 +880,9 @@ declare const compiledOperationSchema: z.ZodObject<{
869
880
  }, z.core.$strip>, z.ZodObject<{
870
881
  kind: z.ZodLiteral<"claim">;
871
882
  key: z.ZodEnum<{
883
+ sub: "sub";
872
884
  ext_subject: "ext_subject";
873
885
  ext_email: "ext_email";
874
- sub: "sub";
875
886
  org: "org";
876
887
  }>;
877
888
  }, z.core.$strip>], "kind">;
@@ -893,9 +904,9 @@ declare const compiledOperationSchema: z.ZodObject<{
893
904
  }, z.core.$strip>, z.ZodObject<{
894
905
  kind: z.ZodLiteral<"claim">;
895
906
  key: z.ZodEnum<{
907
+ sub: "sub";
896
908
  ext_subject: "ext_subject";
897
909
  ext_email: "ext_email";
898
- sub: "sub";
899
910
  org: "org";
900
911
  }>;
901
912
  }, z.core.$strip>], "kind">;
@@ -918,9 +929,9 @@ declare const compiledOperationSchema: z.ZodObject<{
918
929
  }, z.core.$strip>, z.ZodObject<{
919
930
  kind: z.ZodLiteral<"claim">;
920
931
  key: z.ZodEnum<{
932
+ sub: "sub";
921
933
  ext_subject: "ext_subject";
922
934
  ext_email: "ext_email";
923
- sub: "sub";
924
935
  org: "org";
925
936
  }>;
926
937
  }, z.core.$strip>], "kind">;
@@ -934,9 +945,9 @@ declare const compiledOperationSchema: z.ZodObject<{
934
945
  }, z.core.$strip>, z.ZodObject<{
935
946
  kind: z.ZodLiteral<"claim">;
936
947
  key: z.ZodEnum<{
948
+ sub: "sub";
937
949
  ext_subject: "ext_subject";
938
950
  ext_email: "ext_email";
939
- sub: "sub";
940
951
  org: "org";
941
952
  }>;
942
953
  }, z.core.$strip>], "kind">;
@@ -1001,20 +1012,20 @@ declare const compiledOperationSchema: z.ZodObject<{
1001
1012
  }, z.core.$strip>, z.ZodObject<{
1002
1013
  kind: z.ZodLiteral<"mutation">;
1003
1014
  op: z.ZodEnum<{
1015
+ update: "update";
1016
+ delete: "delete";
1004
1017
  insert: "insert";
1005
1018
  insertOne: "insertOne";
1006
- update: "update";
1007
1019
  updateByPk: "updateByPk";
1008
- delete: "delete";
1009
1020
  deleteByPk: "deleteByPk";
1010
1021
  cowOverride: "cowOverride";
1011
1022
  cowRevert: "cowRevert";
1012
1023
  resolvedWrite: "resolvedWrite";
1013
1024
  }>;
1014
1025
  resolvedAction: z.ZodOptional<z.ZodEnum<{
1015
- insert: "insert";
1016
1026
  update: "update";
1017
1027
  delete: "delete";
1028
+ insert: "insert";
1018
1029
  revert: "revert";
1019
1030
  }>>;
1020
1031
  revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1045,9 +1056,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1045
1056
  }, z.core.$strip>, z.ZodObject<{
1046
1057
  kind: z.ZodLiteral<"claim">;
1047
1058
  key: z.ZodEnum<{
1059
+ sub: "sub";
1048
1060
  ext_subject: "ext_subject";
1049
1061
  ext_email: "ext_email";
1050
- sub: "sub";
1051
1062
  org: "org";
1052
1063
  }>;
1053
1064
  }, z.core.$strip>], "kind">;
@@ -1064,9 +1075,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1064
1075
  }, z.core.$strip>, z.ZodObject<{
1065
1076
  kind: z.ZodLiteral<"claim">;
1066
1077
  key: z.ZodEnum<{
1078
+ sub: "sub";
1067
1079
  ext_subject: "ext_subject";
1068
1080
  ext_email: "ext_email";
1069
- sub: "sub";
1070
1081
  org: "org";
1071
1082
  }>;
1072
1083
  }, z.core.$strip>], "kind">;
@@ -1091,9 +1102,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1091
1102
  }, z.core.$strip>, z.ZodObject<{
1092
1103
  kind: z.ZodLiteral<"claim">;
1093
1104
  key: z.ZodEnum<{
1105
+ sub: "sub";
1094
1106
  ext_subject: "ext_subject";
1095
1107
  ext_email: "ext_email";
1096
- sub: "sub";
1097
1108
  org: "org";
1098
1109
  }>;
1099
1110
  }, z.core.$strip>], "kind">;
@@ -1113,9 +1124,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1113
1124
  }, z.core.$strip>, z.ZodObject<{
1114
1125
  kind: z.ZodLiteral<"claim">;
1115
1126
  key: z.ZodEnum<{
1127
+ sub: "sub";
1116
1128
  ext_subject: "ext_subject";
1117
1129
  ext_email: "ext_email";
1118
- sub: "sub";
1119
1130
  org: "org";
1120
1131
  }>;
1121
1132
  }, z.core.$strip>], "kind">;
@@ -1135,9 +1146,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1135
1146
  }, z.core.$strip>, z.ZodObject<{
1136
1147
  kind: z.ZodLiteral<"claim">;
1137
1148
  key: z.ZodEnum<{
1149
+ sub: "sub";
1138
1150
  ext_subject: "ext_subject";
1139
1151
  ext_email: "ext_email";
1140
- sub: "sub";
1141
1152
  org: "org";
1142
1153
  }>;
1143
1154
  }, z.core.$strip>], "kind">;
@@ -1155,9 +1166,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1155
1166
  }, z.core.$strip>, z.ZodObject<{
1156
1167
  kind: z.ZodLiteral<"claim">;
1157
1168
  key: z.ZodEnum<{
1169
+ sub: "sub";
1158
1170
  ext_subject: "ext_subject";
1159
1171
  ext_email: "ext_email";
1160
- sub: "sub";
1161
1172
  org: "org";
1162
1173
  }>;
1163
1174
  }, z.core.$strip>], "kind">;
@@ -1176,9 +1187,9 @@ type CompiledOperation = z.infer<typeof compiledOperationSchema>;
1176
1187
  declare const resolvedSourceIrSchema: z.ZodObject<{
1177
1188
  name: z.ZodString;
1178
1189
  kind: z.ZodEnum<{
1179
- prefetch: "prefetch";
1180
1190
  manual: "manual";
1181
1191
  etl: "etl";
1192
+ prefetch: "prefetch";
1182
1193
  }>;
1183
1194
  table: z.ZodString;
1184
1195
  columns: z.ZodArray<z.ZodString>;
@@ -1221,9 +1232,9 @@ declare const resolvedMetaIrSchema: z.ZodObject<{
1221
1232
  sources: z.ZodArray<z.ZodObject<{
1222
1233
  name: z.ZodString;
1223
1234
  kind: z.ZodEnum<{
1224
- prefetch: "prefetch";
1225
1235
  manual: "manual";
1226
1236
  etl: "etl";
1237
+ prefetch: "prefetch";
1227
1238
  }>;
1228
1239
  table: z.ZodString;
1229
1240
  columns: z.ZodArray<z.ZodString>;
@@ -1300,8 +1311,8 @@ declare const tableMetaIrSchema: z.ZodObject<{
1300
1311
  bigint: "bigint";
1301
1312
  boolean: "boolean";
1302
1313
  date: "date";
1303
- uuid: "uuid";
1304
1314
  text: "text";
1315
+ uuid: "uuid";
1305
1316
  integer: "integer";
1306
1317
  numeric: "numeric";
1307
1318
  double: "double";
@@ -1344,9 +1355,9 @@ declare const tableMetaIrSchema: z.ZodObject<{
1344
1355
  sources: z.ZodArray<z.ZodObject<{
1345
1356
  name: z.ZodString;
1346
1357
  kind: z.ZodEnum<{
1347
- prefetch: "prefetch";
1348
1358
  manual: "manual";
1349
1359
  etl: "etl";
1360
+ prefetch: "prefetch";
1350
1361
  }>;
1351
1362
  table: z.ZodString;
1352
1363
  columns: z.ZodArray<z.ZodString>;
@@ -1434,8 +1445,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
1434
1445
  bigint: "bigint";
1435
1446
  boolean: "boolean";
1436
1447
  date: "date";
1437
- uuid: "uuid";
1438
1448
  text: "text";
1449
+ uuid: "uuid";
1439
1450
  integer: "integer";
1440
1451
  numeric: "numeric";
1441
1452
  double: "double";
@@ -1478,9 +1489,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1478
1489
  sources: z.ZodArray<z.ZodObject<{
1479
1490
  name: z.ZodString;
1480
1491
  kind: z.ZodEnum<{
1481
- prefetch: "prefetch";
1482
1492
  manual: "manual";
1483
1493
  etl: "etl";
1494
+ prefetch: "prefetch";
1484
1495
  }>;
1485
1496
  table: z.ZodString;
1486
1497
  columns: z.ZodArray<z.ZodString>;
@@ -1557,8 +1568,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
1557
1568
  bigint: "bigint";
1558
1569
  boolean: "boolean";
1559
1570
  date: "date";
1560
- uuid: "uuid";
1561
1571
  text: "text";
1572
+ uuid: "uuid";
1562
1573
  integer: "integer";
1563
1574
  numeric: "numeric";
1564
1575
  double: "double";
@@ -1575,8 +1586,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
1575
1586
  name: z.ZodString;
1576
1587
  opHash: z.ZodString;
1577
1588
  kind: z.ZodEnum<{
1578
- mutation: "mutation";
1579
1589
  query: "query";
1590
+ mutation: "mutation";
1580
1591
  }>;
1581
1592
  requires: z.ZodNullable<z.ZodObject<{
1582
1593
  capability: z.ZodOptional<z.ZodString>;
@@ -1590,8 +1601,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
1590
1601
  bigint: "bigint";
1591
1602
  boolean: "boolean";
1592
1603
  date: "date";
1593
- uuid: "uuid";
1594
1604
  text: "text";
1605
+ uuid: "uuid";
1595
1606
  integer: "integer";
1596
1607
  numeric: "numeric";
1597
1608
  double: "double";
@@ -1674,9 +1685,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1674
1685
  }, z.core.$strip>, z.ZodObject<{
1675
1686
  kind: z.ZodLiteral<"claim">;
1676
1687
  key: z.ZodEnum<{
1688
+ sub: "sub";
1677
1689
  ext_subject: "ext_subject";
1678
1690
  ext_email: "ext_email";
1679
- sub: "sub";
1680
1691
  org: "org";
1681
1692
  }>;
1682
1693
  }, z.core.$strip>], "kind">;
@@ -1690,9 +1701,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1690
1701
  }, z.core.$strip>, z.ZodObject<{
1691
1702
  kind: z.ZodLiteral<"claim">;
1692
1703
  key: z.ZodEnum<{
1704
+ sub: "sub";
1693
1705
  ext_subject: "ext_subject";
1694
1706
  ext_email: "ext_email";
1695
- sub: "sub";
1696
1707
  org: "org";
1697
1708
  }>;
1698
1709
  }, z.core.$strip>], "kind">;
@@ -1714,9 +1725,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1714
1725
  }, z.core.$strip>, z.ZodObject<{
1715
1726
  kind: z.ZodLiteral<"claim">;
1716
1727
  key: z.ZodEnum<{
1728
+ sub: "sub";
1717
1729
  ext_subject: "ext_subject";
1718
1730
  ext_email: "ext_email";
1719
- sub: "sub";
1720
1731
  org: "org";
1721
1732
  }>;
1722
1733
  }, z.core.$strip>], "kind">;
@@ -1739,9 +1750,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1739
1750
  }, z.core.$strip>, z.ZodObject<{
1740
1751
  kind: z.ZodLiteral<"claim">;
1741
1752
  key: z.ZodEnum<{
1753
+ sub: "sub";
1742
1754
  ext_subject: "ext_subject";
1743
1755
  ext_email: "ext_email";
1744
- sub: "sub";
1745
1756
  org: "org";
1746
1757
  }>;
1747
1758
  }, z.core.$strip>], "kind">;
@@ -1755,9 +1766,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1755
1766
  }, z.core.$strip>, z.ZodObject<{
1756
1767
  kind: z.ZodLiteral<"claim">;
1757
1768
  key: z.ZodEnum<{
1769
+ sub: "sub";
1758
1770
  ext_subject: "ext_subject";
1759
1771
  ext_email: "ext_email";
1760
- sub: "sub";
1761
1772
  org: "org";
1762
1773
  }>;
1763
1774
  }, z.core.$strip>], "kind">;
@@ -1822,20 +1833,20 @@ declare const compiledArtifactSchema: z.ZodObject<{
1822
1833
  }, z.core.$strip>, z.ZodObject<{
1823
1834
  kind: z.ZodLiteral<"mutation">;
1824
1835
  op: z.ZodEnum<{
1836
+ update: "update";
1837
+ delete: "delete";
1825
1838
  insert: "insert";
1826
1839
  insertOne: "insertOne";
1827
- update: "update";
1828
1840
  updateByPk: "updateByPk";
1829
- delete: "delete";
1830
1841
  deleteByPk: "deleteByPk";
1831
1842
  cowOverride: "cowOverride";
1832
1843
  cowRevert: "cowRevert";
1833
1844
  resolvedWrite: "resolvedWrite";
1834
1845
  }>;
1835
1846
  resolvedAction: z.ZodOptional<z.ZodEnum<{
1836
- insert: "insert";
1837
1847
  update: "update";
1838
1848
  delete: "delete";
1849
+ insert: "insert";
1839
1850
  revert: "revert";
1840
1851
  }>>;
1841
1852
  revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1866,9 +1877,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1866
1877
  }, z.core.$strip>, z.ZodObject<{
1867
1878
  kind: z.ZodLiteral<"claim">;
1868
1879
  key: z.ZodEnum<{
1880
+ sub: "sub";
1869
1881
  ext_subject: "ext_subject";
1870
1882
  ext_email: "ext_email";
1871
- sub: "sub";
1872
1883
  org: "org";
1873
1884
  }>;
1874
1885
  }, z.core.$strip>], "kind">;
@@ -1885,9 +1896,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1885
1896
  }, z.core.$strip>, z.ZodObject<{
1886
1897
  kind: z.ZodLiteral<"claim">;
1887
1898
  key: z.ZodEnum<{
1899
+ sub: "sub";
1888
1900
  ext_subject: "ext_subject";
1889
1901
  ext_email: "ext_email";
1890
- sub: "sub";
1891
1902
  org: "org";
1892
1903
  }>;
1893
1904
  }, z.core.$strip>], "kind">;
@@ -1912,9 +1923,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1912
1923
  }, z.core.$strip>, z.ZodObject<{
1913
1924
  kind: z.ZodLiteral<"claim">;
1914
1925
  key: z.ZodEnum<{
1926
+ sub: "sub";
1915
1927
  ext_subject: "ext_subject";
1916
1928
  ext_email: "ext_email";
1917
- sub: "sub";
1918
1929
  org: "org";
1919
1930
  }>;
1920
1931
  }, z.core.$strip>], "kind">;
@@ -1934,9 +1945,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1934
1945
  }, z.core.$strip>, z.ZodObject<{
1935
1946
  kind: z.ZodLiteral<"claim">;
1936
1947
  key: z.ZodEnum<{
1948
+ sub: "sub";
1937
1949
  ext_subject: "ext_subject";
1938
1950
  ext_email: "ext_email";
1939
- sub: "sub";
1940
1951
  org: "org";
1941
1952
  }>;
1942
1953
  }, z.core.$strip>], "kind">;
@@ -1956,9 +1967,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1956
1967
  }, z.core.$strip>, z.ZodObject<{
1957
1968
  kind: z.ZodLiteral<"claim">;
1958
1969
  key: z.ZodEnum<{
1970
+ sub: "sub";
1959
1971
  ext_subject: "ext_subject";
1960
1972
  ext_email: "ext_email";
1961
- sub: "sub";
1962
1973
  org: "org";
1963
1974
  }>;
1964
1975
  }, z.core.$strip>], "kind">;
@@ -1976,9 +1987,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1976
1987
  }, z.core.$strip>, z.ZodObject<{
1977
1988
  kind: z.ZodLiteral<"claim">;
1978
1989
  key: z.ZodEnum<{
1990
+ sub: "sub";
1979
1991
  ext_subject: "ext_subject";
1980
1992
  ext_email: "ext_email";
1981
- sub: "sub";
1982
1993
  org: "org";
1983
1994
  }>;
1984
1995
  }, z.core.$strip>], "kind">;
@@ -2008,4 +2019,4 @@ declare function normalizeIr(raw: unknown): CompiledArtifact;
2008
2019
  /** Index an artifact's operations by opHash (the wire selector). */
2009
2020
  declare function indexByHash(artifact: CompiledArtifact): Map<string, CompiledOperation>;
2010
2021
 
2011
- export { CLAIMS_CONTRACT, CMP_OPS, COMPOSED_IR_VERSION, type CellSelectionIr, type ClaimKey, type CmpOp, type CompiledArtifact, type CompiledOperation, DATE_BUCKETS, type DateBucket, EXTERNAL_POLICY_CLAIM_KEYS, type ExternalPolicyClaimKey, GUARDED_IR_VERSION, type GroupByKeyIr, INPUT_REF_KINDS, IR_VERSION, type InputRefKind, IrVersionError, LEGACY_IR_VERSION, type LimitIr, type OrderIr, type PredIr, type PrefetchPlanIr, RUNTIME_SQL_IR_VERSION, type ResolvedMetaIr, type ResolvedSourceIr, type RootIr, SERVICE_PRINCIPAL_IR_VERSION, SQL_IR_VERSION, type SelectionIr, type TableMetaIr, type ValueIr, type VariableDefaultIr, type VariableIr, compiledArtifactSchema, compiledOperationSchema, indexByHash, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema };
2022
+ export { CLAIMS_CONTRACT, CMP_OPS, COMPOSED_IR_VERSION, type CellSelectionIr, type ClaimKey, type CmpOp, type CompiledArtifact, type CompiledOperation, DATE_BUCKETS, type DateBucket, EXTERNAL_POLICY_CLAIM_KEYS, type ExternalPolicyClaimKey, GUARDED_IR_VERSION, type GroupByKeyIr, INPUT_REF_KINDS, IR_VERSION, type InputRefKind, IrVersionError, LEGACY_IR_VERSION, type LimitIr, type OrderIr, type PredIr, type PrefetchPlanIr, RUNTIME_SQL_IR_VERSION, type ResolvedMetaIr, type ResolvedSourceIr, type RootIr, SERVICE_PRINCIPAL_IR_VERSION, SQL_IR_VERSION, type SelectionIr, type TableMetaIr, type ValueIr, type VariableDefaultIr, type VariableIr, compiledArtifactSchema, compiledOperationSchema, indexByHash, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, sqlObjectIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema };