@sequenceholdings/orm 2.8.5 → 2.10.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 (56) hide show
  1. package/dist/authoring.cjs.map +1 -1
  2. package/dist/authoring.d.cts +2 -2
  3. package/dist/authoring.d.ts +2 -2
  4. package/dist/authoring.js.map +1 -1
  5. package/dist/canonical.cjs.map +1 -1
  6. package/dist/canonical.d.cts +72 -72
  7. package/dist/canonical.d.ts +72 -72
  8. package/dist/canonical.js.map +1 -1
  9. package/dist/cli.cjs +122 -68
  10. package/dist/cli.cjs.map +1 -1
  11. package/dist/cli.d.cts +32 -1
  12. package/dist/cli.d.ts +32 -1
  13. package/dist/cli.js +117 -69
  14. package/dist/cli.js.map +1 -1
  15. package/dist/client.cjs.map +1 -1
  16. package/dist/client.d.cts +1 -1
  17. package/dist/client.d.ts +1 -1
  18. package/dist/client.js.map +1 -1
  19. package/dist/compiler.cjs +259 -18
  20. package/dist/compiler.cjs.map +1 -1
  21. package/dist/compiler.d.cts +183 -3
  22. package/dist/compiler.d.ts +183 -3
  23. package/dist/compiler.js +254 -19
  24. package/dist/compiler.js.map +1 -1
  25. package/dist/{constants-Dou1RkTo.d.cts → constants-D2o0vK6U.d.cts} +8 -1
  26. package/dist/{constants-Dou1RkTo.d.ts → constants-D2o0vK6U.d.ts} +8 -1
  27. package/dist/dynamic-input.d.cts +1 -1
  28. package/dist/dynamic-input.d.ts +1 -1
  29. package/dist/index.cjs +53 -31
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +61 -60
  32. package/dist/index.d.ts +61 -60
  33. package/dist/index.js +51 -32
  34. package/dist/index.js.map +1 -1
  35. package/dist/ir.cjs +9 -7
  36. package/dist/ir.cjs.map +1 -1
  37. package/dist/ir.d.cts +85 -74
  38. package/dist/ir.d.ts +85 -74
  39. package/dist/ir.js +9 -8
  40. package/dist/ir.js.map +1 -1
  41. package/dist/predicate-v2.cjs +9 -7
  42. package/dist/predicate-v2.cjs.map +1 -1
  43. package/dist/predicate-v2.d.cts +3 -1
  44. package/dist/predicate-v2.d.ts +3 -1
  45. package/dist/predicate-v2.js +9 -7
  46. package/dist/predicate-v2.js.map +1 -1
  47. package/dist/sdl.cjs +8 -7
  48. package/dist/sdl.cjs.map +1 -1
  49. package/dist/sdl.d.cts +1 -1
  50. package/dist/sdl.d.ts +1 -1
  51. package/dist/sdl.js +8 -7
  52. package/dist/sdl.js.map +1 -1
  53. package/package.json +3 -3
  54. package/templates/orm-namespace/package.json +2 -1
  55. package/dist/{definition-DjfC7Lll.d.cts → definition-B99BsOAO.d.cts} +4 -4
  56. package/dist/{definition-DjfC7Lll.d.ts → definition-B99BsOAO.d.ts} +4 -4
package/dist/ir.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export { C as CELLS_FIELD, a as CELL_PARTS, b as CellPart, c as cellColumnName } from './constants-Dou1RkTo.cjs';
2
+ export { C as CELLS_FIELD, a as CELL_PARTS, b as CellPart, c as cellColumnName } from './constants-D2o0vK6U.cjs';
3
3
 
4
4
  /**
5
5
  * Compiled-operation IR — THE frozen contract between the GraphQL compiler
@@ -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";
72
71
  ext_subject: "ext_subject";
73
72
  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";
237
236
  ext_subject: "ext_subject";
238
237
  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";
253
252
  ext_subject: "ext_subject";
254
253
  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";
340
339
  ext_subject: "ext_subject";
341
340
  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";
356
355
  ext_subject: "ext_subject";
357
356
  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";
380
379
  ext_subject: "ext_subject";
381
380
  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";
405
404
  ext_subject: "ext_subject";
406
405
  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";
421
420
  ext_subject: "ext_subject";
422
421
  ext_email: "ext_email";
422
+ sub: "sub";
423
423
  org: "org";
424
424
  }>;
425
425
  }, z.core.$strip>], "kind">;
@@ -485,10 +485,10 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
485
485
  kind: z.ZodLiteral<"mutation">;
486
486
  op: z.ZodEnum<{
487
487
  insert: "insert";
488
- update: "update";
489
- delete: "delete";
490
488
  insertOne: "insertOne";
489
+ update: "update";
491
490
  updateByPk: "updateByPk";
491
+ delete: "delete";
492
492
  deleteByPk: "deleteByPk";
493
493
  cowOverride: "cowOverride";
494
494
  cowRevert: "cowRevert";
@@ -497,8 +497,8 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
497
497
  resolvedAction: z.ZodOptional<z.ZodEnum<{
498
498
  insert: "insert";
499
499
  update: "update";
500
- revert: "revert";
501
500
  delete: "delete";
501
+ revert: "revert";
502
502
  }>>;
503
503
  revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
504
504
  writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -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";
532
531
  ext_subject: "ext_subject";
533
532
  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";
551
550
  ext_subject: "ext_subject";
552
551
  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";
578
577
  ext_subject: "ext_subject";
579
578
  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";
600
599
  ext_subject: "ext_subject";
601
600
  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";
622
621
  ext_subject: "ext_subject";
623
622
  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";
642
641
  ext_subject: "ext_subject";
643
642
  ext_email: "ext_email";
643
+ sub: "sub";
644
644
  org: "org";
645
645
  }>;
646
646
  }, z.core.$strip>], "kind">;
@@ -676,13 +676,13 @@ declare const variableIrSchema: z.ZodObject<{
676
676
  bigint: "bigint";
677
677
  boolean: "boolean";
678
678
  date: "date";
679
- text: "text";
680
- timestamptz: "timestamptz";
681
- jsonb: "jsonb";
682
679
  uuid: "uuid";
680
+ text: "text";
683
681
  integer: "integer";
684
682
  numeric: "numeric";
685
683
  double: "double";
684
+ timestamptz: "timestamptz";
685
+ jsonb: "jsonb";
686
686
  }>;
687
687
  }, z.core.$strip>, z.ZodObject<{
688
688
  kind: z.ZodLiteral<"enum">;
@@ -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,13 +747,13 @@ declare const compiledOperationSchema: z.ZodObject<{
736
747
  bigint: "bigint";
737
748
  boolean: "boolean";
738
749
  date: "date";
739
- text: "text";
740
- timestamptz: "timestamptz";
741
- jsonb: "jsonb";
742
750
  uuid: "uuid";
751
+ text: "text";
743
752
  integer: "integer";
744
753
  numeric: "numeric";
745
754
  double: "double";
755
+ timestamptz: "timestamptz";
756
+ jsonb: "jsonb";
746
757
  }>;
747
758
  nullable: z.ZodBoolean;
748
759
  }, z.core.$strip>>;
@@ -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
- query: "query";
758
768
  mutation: "mutation";
769
+ query: "query";
759
770
  }>;
760
771
  requires: z.ZodNullable<z.ZodObject<{
761
772
  capability: z.ZodOptional<z.ZodString>;
@@ -769,13 +780,13 @@ declare const compiledOperationSchema: z.ZodObject<{
769
780
  bigint: "bigint";
770
781
  boolean: "boolean";
771
782
  date: "date";
772
- text: "text";
773
- timestamptz: "timestamptz";
774
- jsonb: "jsonb";
775
783
  uuid: "uuid";
784
+ text: "text";
776
785
  integer: "integer";
777
786
  numeric: "numeric";
778
787
  double: "double";
788
+ timestamptz: "timestamptz";
789
+ jsonb: "jsonb";
779
790
  }>;
780
791
  }, z.core.$strip>, z.ZodObject<{
781
792
  kind: z.ZodLiteral<"enum">;
@@ -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<{
856
- sub: "sub";
857
867
  ext_subject: "ext_subject";
858
868
  ext_email: "ext_email";
869
+ 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<{
872
- sub: "sub";
873
883
  ext_subject: "ext_subject";
874
884
  ext_email: "ext_email";
885
+ 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<{
896
- sub: "sub";
897
907
  ext_subject: "ext_subject";
898
908
  ext_email: "ext_email";
909
+ 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<{
921
- sub: "sub";
922
932
  ext_subject: "ext_subject";
923
933
  ext_email: "ext_email";
934
+ 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<{
937
- sub: "sub";
938
948
  ext_subject: "ext_subject";
939
949
  ext_email: "ext_email";
950
+ sub: "sub";
940
951
  org: "org";
941
952
  }>;
942
953
  }, z.core.$strip>], "kind">;
@@ -1002,10 +1013,10 @@ declare const compiledOperationSchema: z.ZodObject<{
1002
1013
  kind: z.ZodLiteral<"mutation">;
1003
1014
  op: z.ZodEnum<{
1004
1015
  insert: "insert";
1005
- update: "update";
1006
- delete: "delete";
1007
1016
  insertOne: "insertOne";
1017
+ update: "update";
1008
1018
  updateByPk: "updateByPk";
1019
+ delete: "delete";
1009
1020
  deleteByPk: "deleteByPk";
1010
1021
  cowOverride: "cowOverride";
1011
1022
  cowRevert: "cowRevert";
@@ -1014,8 +1025,8 @@ declare const compiledOperationSchema: z.ZodObject<{
1014
1025
  resolvedAction: z.ZodOptional<z.ZodEnum<{
1015
1026
  insert: "insert";
1016
1027
  update: "update";
1017
- revert: "revert";
1018
1028
  delete: "delete";
1029
+ revert: "revert";
1019
1030
  }>>;
1020
1031
  revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
1021
1032
  writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -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<{
1048
- sub: "sub";
1049
1059
  ext_subject: "ext_subject";
1050
1060
  ext_email: "ext_email";
1061
+ 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<{
1067
- sub: "sub";
1068
1078
  ext_subject: "ext_subject";
1069
1079
  ext_email: "ext_email";
1080
+ 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<{
1094
- sub: "sub";
1095
1105
  ext_subject: "ext_subject";
1096
1106
  ext_email: "ext_email";
1107
+ 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<{
1116
- sub: "sub";
1117
1127
  ext_subject: "ext_subject";
1118
1128
  ext_email: "ext_email";
1129
+ 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<{
1138
- sub: "sub";
1139
1149
  ext_subject: "ext_subject";
1140
1150
  ext_email: "ext_email";
1151
+ 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<{
1158
- sub: "sub";
1159
1169
  ext_subject: "ext_subject";
1160
1170
  ext_email: "ext_email";
1171
+ 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<{
1190
+ prefetch: "prefetch";
1179
1191
  manual: "manual";
1180
1192
  etl: "etl";
1181
- 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<{
1235
+ prefetch: "prefetch";
1224
1236
  manual: "manual";
1225
1237
  etl: "etl";
1226
- prefetch: "prefetch";
1227
1238
  }>;
1228
1239
  table: z.ZodString;
1229
1240
  columns: z.ZodArray<z.ZodString>;
@@ -1300,13 +1311,13 @@ declare const tableMetaIrSchema: z.ZodObject<{
1300
1311
  bigint: "bigint";
1301
1312
  boolean: "boolean";
1302
1313
  date: "date";
1303
- text: "text";
1304
- timestamptz: "timestamptz";
1305
- jsonb: "jsonb";
1306
1314
  uuid: "uuid";
1315
+ text: "text";
1307
1316
  integer: "integer";
1308
1317
  numeric: "numeric";
1309
1318
  double: "double";
1319
+ timestamptz: "timestamptz";
1320
+ jsonb: "jsonb";
1310
1321
  }>, z.ZodObject<{
1311
1322
  enum: z.ZodString;
1312
1323
  values: z.ZodArray<z.ZodString>;
@@ -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<{
1358
+ prefetch: "prefetch";
1347
1359
  manual: "manual";
1348
1360
  etl: "etl";
1349
- prefetch: "prefetch";
1350
1361
  }>;
1351
1362
  table: z.ZodString;
1352
1363
  columns: z.ZodArray<z.ZodString>;
@@ -1434,13 +1445,13 @@ declare const compiledArtifactSchema: z.ZodObject<{
1434
1445
  bigint: "bigint";
1435
1446
  boolean: "boolean";
1436
1447
  date: "date";
1437
- text: "text";
1438
- timestamptz: "timestamptz";
1439
- jsonb: "jsonb";
1440
1448
  uuid: "uuid";
1449
+ text: "text";
1441
1450
  integer: "integer";
1442
1451
  numeric: "numeric";
1443
1452
  double: "double";
1453
+ timestamptz: "timestamptz";
1454
+ jsonb: "jsonb";
1444
1455
  }>, z.ZodObject<{
1445
1456
  enum: z.ZodString;
1446
1457
  values: z.ZodArray<z.ZodString>;
@@ -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<{
1492
+ prefetch: "prefetch";
1481
1493
  manual: "manual";
1482
1494
  etl: "etl";
1483
- prefetch: "prefetch";
1484
1495
  }>;
1485
1496
  table: z.ZodString;
1486
1497
  columns: z.ZodArray<z.ZodString>;
@@ -1557,13 +1568,13 @@ declare const compiledArtifactSchema: z.ZodObject<{
1557
1568
  bigint: "bigint";
1558
1569
  boolean: "boolean";
1559
1570
  date: "date";
1560
- text: "text";
1561
- timestamptz: "timestamptz";
1562
- jsonb: "jsonb";
1563
1571
  uuid: "uuid";
1572
+ text: "text";
1564
1573
  integer: "integer";
1565
1574
  numeric: "numeric";
1566
1575
  double: "double";
1576
+ timestamptz: "timestamptz";
1577
+ jsonb: "jsonb";
1567
1578
  }>;
1568
1579
  nullable: z.ZodBoolean;
1569
1580
  }, z.core.$strip>>;
@@ -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
- query: "query";
1579
1589
  mutation: "mutation";
1590
+ query: "query";
1580
1591
  }>;
1581
1592
  requires: z.ZodNullable<z.ZodObject<{
1582
1593
  capability: z.ZodOptional<z.ZodString>;
@@ -1590,13 +1601,13 @@ declare const compiledArtifactSchema: z.ZodObject<{
1590
1601
  bigint: "bigint";
1591
1602
  boolean: "boolean";
1592
1603
  date: "date";
1593
- text: "text";
1594
- timestamptz: "timestamptz";
1595
- jsonb: "jsonb";
1596
1604
  uuid: "uuid";
1605
+ text: "text";
1597
1606
  integer: "integer";
1598
1607
  numeric: "numeric";
1599
1608
  double: "double";
1609
+ timestamptz: "timestamptz";
1610
+ jsonb: "jsonb";
1600
1611
  }>;
1601
1612
  }, z.core.$strip>, z.ZodObject<{
1602
1613
  kind: z.ZodLiteral<"enum">;
@@ -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<{
1677
- sub: "sub";
1678
1688
  ext_subject: "ext_subject";
1679
1689
  ext_email: "ext_email";
1690
+ 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<{
1693
- sub: "sub";
1694
1704
  ext_subject: "ext_subject";
1695
1705
  ext_email: "ext_email";
1706
+ 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<{
1717
- sub: "sub";
1718
1728
  ext_subject: "ext_subject";
1719
1729
  ext_email: "ext_email";
1730
+ 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<{
1742
- sub: "sub";
1743
1753
  ext_subject: "ext_subject";
1744
1754
  ext_email: "ext_email";
1755
+ 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<{
1758
- sub: "sub";
1759
1769
  ext_subject: "ext_subject";
1760
1770
  ext_email: "ext_email";
1771
+ sub: "sub";
1761
1772
  org: "org";
1762
1773
  }>;
1763
1774
  }, z.core.$strip>], "kind">;
@@ -1823,10 +1834,10 @@ declare const compiledArtifactSchema: z.ZodObject<{
1823
1834
  kind: z.ZodLiteral<"mutation">;
1824
1835
  op: z.ZodEnum<{
1825
1836
  insert: "insert";
1826
- update: "update";
1827
- delete: "delete";
1828
1837
  insertOne: "insertOne";
1838
+ update: "update";
1829
1839
  updateByPk: "updateByPk";
1840
+ delete: "delete";
1830
1841
  deleteByPk: "deleteByPk";
1831
1842
  cowOverride: "cowOverride";
1832
1843
  cowRevert: "cowRevert";
@@ -1835,8 +1846,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
1835
1846
  resolvedAction: z.ZodOptional<z.ZodEnum<{
1836
1847
  insert: "insert";
1837
1848
  update: "update";
1838
- revert: "revert";
1839
1849
  delete: "delete";
1850
+ revert: "revert";
1840
1851
  }>>;
1841
1852
  revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
1842
1853
  writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -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<{
1869
- sub: "sub";
1870
1880
  ext_subject: "ext_subject";
1871
1881
  ext_email: "ext_email";
1882
+ 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<{
1888
- sub: "sub";
1889
1899
  ext_subject: "ext_subject";
1890
1900
  ext_email: "ext_email";
1901
+ 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<{
1915
- sub: "sub";
1916
1926
  ext_subject: "ext_subject";
1917
1927
  ext_email: "ext_email";
1928
+ 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<{
1937
- sub: "sub";
1938
1948
  ext_subject: "ext_subject";
1939
1949
  ext_email: "ext_email";
1950
+ 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<{
1959
- sub: "sub";
1960
1970
  ext_subject: "ext_subject";
1961
1971
  ext_email: "ext_email";
1972
+ 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<{
1979
- sub: "sub";
1980
1990
  ext_subject: "ext_subject";
1981
1991
  ext_email: "ext_email";
1992
+ 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 };