@sequenceholdings/orm 2.6.1 → 2.7.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 (48) hide show
  1. package/README.md +76 -2
  2. package/dist/authoring.d.cts +1 -1
  3. package/dist/authoring.d.ts +1 -1
  4. package/dist/canonical.d.cts +71 -71
  5. package/dist/canonical.d.ts +71 -71
  6. package/dist/cli.cjs +81 -29
  7. package/dist/cli.cjs.map +1 -1
  8. package/dist/cli.js +81 -29
  9. package/dist/cli.js.map +1 -1
  10. package/dist/client.cjs +79 -13
  11. package/dist/client.cjs.map +1 -1
  12. package/dist/client.d.cts +26 -4
  13. package/dist/client.d.ts +26 -4
  14. package/dist/client.js +79 -13
  15. package/dist/client.js.map +1 -1
  16. package/dist/compiler.cjs +68 -29
  17. package/dist/compiler.cjs.map +1 -1
  18. package/dist/compiler.d.cts +1 -1
  19. package/dist/compiler.d.ts +1 -1
  20. package/dist/compiler.js +68 -29
  21. package/dist/compiler.js.map +1 -1
  22. package/dist/index.cjs +73 -4
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +63 -61
  25. package/dist/index.d.ts +63 -61
  26. package/dist/index.js +72 -5
  27. package/dist/index.js.map +1 -1
  28. package/dist/ir.cjs +19 -3
  29. package/dist/ir.cjs.map +1 -1
  30. package/dist/ir.d.cts +83 -76
  31. package/dist/ir.d.ts +83 -76
  32. package/dist/ir.js +18 -4
  33. package/dist/ir.js.map +1 -1
  34. package/dist/predicate-v2.cjs +24 -2
  35. package/dist/predicate-v2.cjs.map +1 -1
  36. package/dist/predicate-v2.d.cts +4 -0
  37. package/dist/predicate-v2.d.ts +4 -0
  38. package/dist/predicate-v2.js +24 -2
  39. package/dist/predicate-v2.js.map +1 -1
  40. package/dist/sdl.cjs +16 -2
  41. package/dist/sdl.cjs.map +1 -1
  42. package/dist/sdl.js +16 -2
  43. package/dist/sdl.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/codegen-gql/preset.cjs +45 -8
  46. package/templates/orm-namespace/codegen.ts +5 -0
  47. package/dist/{definition-B99BsOAO.d.cts → definition-DjfC7Lll.d.cts} +4 -4
  48. package/dist/{definition-B99BsOAO.d.ts → definition-DjfC7Lll.d.ts} +4 -4
package/dist/ir.d.ts CHANGED
@@ -24,14 +24,17 @@ export { C as CELLS_FIELD, a as CELL_PARTS, b as CellPart, c as cellColumnName }
24
24
  */
25
25
 
26
26
  /** Maximum supported version; emit the oldest version that preserves semantics. */
27
- declare const IR_VERSION: 5;
27
+ declare const IR_VERSION: 6;
28
28
  declare const LEGACY_IR_VERSION: 1;
29
29
  declare const GUARDED_IR_VERSION: 2;
30
30
  /** Older v2 executors must not strip namespace-scoped authorization. */
31
31
  declare const COMPOSED_IR_VERSION: 3;
32
32
  declare const SQL_IR_VERSION: 4;
33
33
  declare const RUNTIME_SQL_IR_VERSION: 5;
34
- declare const irVersionSchema: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
34
+ declare const SERVICE_PRINCIPAL_IR_VERSION: 6;
35
+ declare const irVersionSchema: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
36
+ /** Every carrier of a service identity predicate must require the new executor. */
37
+ declare function usesServicePrincipal(value: unknown): boolean;
35
38
  /** Keep v1 artifact identity when assembling only legacy operations from registry rows. */
36
39
  declare function requiredArtifactIrVersion(operations: readonly unknown[]): z.infer<typeof irVersionSchema>;
37
40
  /**
@@ -65,9 +68,9 @@ declare const valueIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
65
68
  }, z.core.$strip>, z.ZodObject<{
66
69
  kind: z.ZodLiteral<"claim">;
67
70
  key: z.ZodEnum<{
71
+ sub: "sub";
68
72
  ext_subject: "ext_subject";
69
73
  ext_email: "ext_email";
70
- sub: "sub";
71
74
  org: "org";
72
75
  }>;
73
76
  }, z.core.$strip>], "kind">;
@@ -113,6 +116,8 @@ type PredIr = {
113
116
  kind: 'role';
114
117
  key: string;
115
118
  namespace?: string;
119
+ } | {
120
+ kind: 'servicePrincipal';
116
121
  }
117
122
  /** §4f: a client-supplied BoolExp variable lands here, validated + lowered at runtime. */
118
123
  | {
@@ -228,9 +233,9 @@ declare const prefetchPlanIrSchema: z.ZodObject<{
228
233
  }, z.core.$strip>, z.ZodObject<{
229
234
  kind: z.ZodLiteral<"claim">;
230
235
  key: z.ZodEnum<{
236
+ sub: "sub";
231
237
  ext_subject: "ext_subject";
232
238
  ext_email: "ext_email";
233
- sub: "sub";
234
239
  org: "org";
235
240
  }>;
236
241
  }, z.core.$strip>], "kind">;
@@ -244,9 +249,9 @@ declare const prefetchPlanIrSchema: z.ZodObject<{
244
249
  }, z.core.$strip>, z.ZodObject<{
245
250
  kind: z.ZodLiteral<"claim">;
246
251
  key: z.ZodEnum<{
252
+ sub: "sub";
247
253
  ext_subject: "ext_subject";
248
254
  ext_email: "ext_email";
249
- sub: "sub";
250
255
  org: "org";
251
256
  }>;
252
257
  }, z.core.$strip>], "kind">;
@@ -331,9 +336,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
331
336
  }, z.core.$strip>, z.ZodObject<{
332
337
  kind: z.ZodLiteral<"claim">;
333
338
  key: z.ZodEnum<{
339
+ sub: "sub";
334
340
  ext_subject: "ext_subject";
335
341
  ext_email: "ext_email";
336
- sub: "sub";
337
342
  org: "org";
338
343
  }>;
339
344
  }, z.core.$strip>], "kind">;
@@ -347,9 +352,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
347
352
  }, z.core.$strip>, z.ZodObject<{
348
353
  kind: z.ZodLiteral<"claim">;
349
354
  key: z.ZodEnum<{
355
+ sub: "sub";
350
356
  ext_subject: "ext_subject";
351
357
  ext_email: "ext_email";
352
- sub: "sub";
353
358
  org: "org";
354
359
  }>;
355
360
  }, z.core.$strip>], "kind">;
@@ -371,9 +376,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
371
376
  }, z.core.$strip>, z.ZodObject<{
372
377
  kind: z.ZodLiteral<"claim">;
373
378
  key: z.ZodEnum<{
379
+ sub: "sub";
374
380
  ext_subject: "ext_subject";
375
381
  ext_email: "ext_email";
376
- sub: "sub";
377
382
  org: "org";
378
383
  }>;
379
384
  }, z.core.$strip>], "kind">;
@@ -396,9 +401,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
396
401
  }, z.core.$strip>, z.ZodObject<{
397
402
  kind: z.ZodLiteral<"claim">;
398
403
  key: z.ZodEnum<{
404
+ sub: "sub";
399
405
  ext_subject: "ext_subject";
400
406
  ext_email: "ext_email";
401
- sub: "sub";
402
407
  org: "org";
403
408
  }>;
404
409
  }, z.core.$strip>], "kind">;
@@ -412,9 +417,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
412
417
  }, z.core.$strip>, z.ZodObject<{
413
418
  kind: z.ZodLiteral<"claim">;
414
419
  key: z.ZodEnum<{
420
+ sub: "sub";
415
421
  ext_subject: "ext_subject";
416
422
  ext_email: "ext_email";
417
- sub: "sub";
418
423
  org: "org";
419
424
  }>;
420
425
  }, z.core.$strip>], "kind">;
@@ -480,10 +485,10 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
480
485
  kind: z.ZodLiteral<"mutation">;
481
486
  op: z.ZodEnum<{
482
487
  insert: "insert";
483
- insertOne: "insertOne";
484
488
  update: "update";
485
- updateByPk: "updateByPk";
486
489
  delete: "delete";
490
+ insertOne: "insertOne";
491
+ updateByPk: "updateByPk";
487
492
  deleteByPk: "deleteByPk";
488
493
  cowOverride: "cowOverride";
489
494
  cowRevert: "cowRevert";
@@ -492,8 +497,8 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
492
497
  resolvedAction: z.ZodOptional<z.ZodEnum<{
493
498
  insert: "insert";
494
499
  update: "update";
495
- delete: "delete";
496
500
  revert: "revert";
501
+ delete: "delete";
497
502
  }>>;
498
503
  revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
499
504
  writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -523,9 +528,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
523
528
  }, z.core.$strip>, z.ZodObject<{
524
529
  kind: z.ZodLiteral<"claim">;
525
530
  key: z.ZodEnum<{
531
+ sub: "sub";
526
532
  ext_subject: "ext_subject";
527
533
  ext_email: "ext_email";
528
- sub: "sub";
529
534
  org: "org";
530
535
  }>;
531
536
  }, z.core.$strip>], "kind">;
@@ -542,9 +547,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
542
547
  }, z.core.$strip>, z.ZodObject<{
543
548
  kind: z.ZodLiteral<"claim">;
544
549
  key: z.ZodEnum<{
550
+ sub: "sub";
545
551
  ext_subject: "ext_subject";
546
552
  ext_email: "ext_email";
547
- sub: "sub";
548
553
  org: "org";
549
554
  }>;
550
555
  }, z.core.$strip>], "kind">;
@@ -569,9 +574,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
569
574
  }, z.core.$strip>, z.ZodObject<{
570
575
  kind: z.ZodLiteral<"claim">;
571
576
  key: z.ZodEnum<{
577
+ sub: "sub";
572
578
  ext_subject: "ext_subject";
573
579
  ext_email: "ext_email";
574
- sub: "sub";
575
580
  org: "org";
576
581
  }>;
577
582
  }, z.core.$strip>], "kind">;
@@ -591,9 +596,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
591
596
  }, z.core.$strip>, z.ZodObject<{
592
597
  kind: z.ZodLiteral<"claim">;
593
598
  key: z.ZodEnum<{
599
+ sub: "sub";
594
600
  ext_subject: "ext_subject";
595
601
  ext_email: "ext_email";
596
- sub: "sub";
597
602
  org: "org";
598
603
  }>;
599
604
  }, z.core.$strip>], "kind">;
@@ -613,9 +618,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
613
618
  }, z.core.$strip>, z.ZodObject<{
614
619
  kind: z.ZodLiteral<"claim">;
615
620
  key: z.ZodEnum<{
621
+ sub: "sub";
616
622
  ext_subject: "ext_subject";
617
623
  ext_email: "ext_email";
618
- sub: "sub";
619
624
  org: "org";
620
625
  }>;
621
626
  }, z.core.$strip>], "kind">;
@@ -633,9 +638,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
633
638
  }, z.core.$strip>, z.ZodObject<{
634
639
  kind: z.ZodLiteral<"claim">;
635
640
  key: z.ZodEnum<{
641
+ sub: "sub";
636
642
  ext_subject: "ext_subject";
637
643
  ext_email: "ext_email";
638
- sub: "sub";
639
644
  org: "org";
640
645
  }>;
641
646
  }, z.core.$strip>], "kind">;
@@ -671,13 +676,13 @@ declare const variableIrSchema: z.ZodObject<{
671
676
  bigint: "bigint";
672
677
  boolean: "boolean";
673
678
  date: "date";
674
- uuid: "uuid";
675
679
  text: "text";
680
+ timestamptz: "timestamptz";
681
+ jsonb: "jsonb";
682
+ uuid: "uuid";
676
683
  integer: "integer";
677
684
  numeric: "numeric";
678
685
  double: "double";
679
- timestamptz: "timestamptz";
680
- jsonb: "jsonb";
681
686
  }>;
682
687
  }, z.core.$strip>, z.ZodObject<{
683
688
  kind: z.ZodLiteral<"enum">;
@@ -731,12 +736,13 @@ declare const compiledOperationSchema: z.ZodObject<{
731
736
  bigint: "bigint";
732
737
  boolean: "boolean";
733
738
  date: "date";
734
- uuid: "uuid";
735
739
  text: "text";
740
+ timestamptz: "timestamptz";
741
+ jsonb: "jsonb";
742
+ uuid: "uuid";
736
743
  integer: "integer";
737
744
  numeric: "numeric";
738
745
  double: "double";
739
- timestamptz: "timestamptz";
740
746
  }>;
741
747
  nullable: z.ZodBoolean;
742
748
  }, z.core.$strip>>;
@@ -744,12 +750,12 @@ declare const compiledOperationSchema: z.ZodObject<{
744
750
  read: z.ZodArray<z.ZodString>;
745
751
  maxRows: z.ZodNumber;
746
752
  }, z.core.$strict>>;
747
- irVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
753
+ irVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
748
754
  name: z.ZodString;
749
755
  opHash: z.ZodString;
750
756
  kind: z.ZodEnum<{
751
- mutation: "mutation";
752
757
  query: "query";
758
+ mutation: "mutation";
753
759
  }>;
754
760
  requires: z.ZodNullable<z.ZodObject<{
755
761
  capability: z.ZodOptional<z.ZodString>;
@@ -763,13 +769,13 @@ declare const compiledOperationSchema: z.ZodObject<{
763
769
  bigint: "bigint";
764
770
  boolean: "boolean";
765
771
  date: "date";
766
- uuid: "uuid";
767
772
  text: "text";
773
+ timestamptz: "timestamptz";
774
+ jsonb: "jsonb";
775
+ uuid: "uuid";
768
776
  integer: "integer";
769
777
  numeric: "numeric";
770
778
  double: "double";
771
- timestamptz: "timestamptz";
772
- jsonb: "jsonb";
773
779
  }>;
774
780
  }, z.core.$strip>, z.ZodObject<{
775
781
  kind: z.ZodLiteral<"enum">;
@@ -847,9 +853,9 @@ declare const compiledOperationSchema: z.ZodObject<{
847
853
  }, z.core.$strip>, z.ZodObject<{
848
854
  kind: z.ZodLiteral<"claim">;
849
855
  key: z.ZodEnum<{
856
+ sub: "sub";
850
857
  ext_subject: "ext_subject";
851
858
  ext_email: "ext_email";
852
- sub: "sub";
853
859
  org: "org";
854
860
  }>;
855
861
  }, z.core.$strip>], "kind">;
@@ -863,9 +869,9 @@ declare const compiledOperationSchema: z.ZodObject<{
863
869
  }, z.core.$strip>, z.ZodObject<{
864
870
  kind: z.ZodLiteral<"claim">;
865
871
  key: z.ZodEnum<{
872
+ sub: "sub";
866
873
  ext_subject: "ext_subject";
867
874
  ext_email: "ext_email";
868
- sub: "sub";
869
875
  org: "org";
870
876
  }>;
871
877
  }, z.core.$strip>], "kind">;
@@ -887,9 +893,9 @@ declare const compiledOperationSchema: z.ZodObject<{
887
893
  }, z.core.$strip>, z.ZodObject<{
888
894
  kind: z.ZodLiteral<"claim">;
889
895
  key: z.ZodEnum<{
896
+ sub: "sub";
890
897
  ext_subject: "ext_subject";
891
898
  ext_email: "ext_email";
892
- sub: "sub";
893
899
  org: "org";
894
900
  }>;
895
901
  }, z.core.$strip>], "kind">;
@@ -912,9 +918,9 @@ declare const compiledOperationSchema: z.ZodObject<{
912
918
  }, z.core.$strip>, z.ZodObject<{
913
919
  kind: z.ZodLiteral<"claim">;
914
920
  key: z.ZodEnum<{
921
+ sub: "sub";
915
922
  ext_subject: "ext_subject";
916
923
  ext_email: "ext_email";
917
- sub: "sub";
918
924
  org: "org";
919
925
  }>;
920
926
  }, z.core.$strip>], "kind">;
@@ -928,9 +934,9 @@ declare const compiledOperationSchema: z.ZodObject<{
928
934
  }, z.core.$strip>, z.ZodObject<{
929
935
  kind: z.ZodLiteral<"claim">;
930
936
  key: z.ZodEnum<{
937
+ sub: "sub";
931
938
  ext_subject: "ext_subject";
932
939
  ext_email: "ext_email";
933
- sub: "sub";
934
940
  org: "org";
935
941
  }>;
936
942
  }, z.core.$strip>], "kind">;
@@ -996,10 +1002,10 @@ declare const compiledOperationSchema: z.ZodObject<{
996
1002
  kind: z.ZodLiteral<"mutation">;
997
1003
  op: z.ZodEnum<{
998
1004
  insert: "insert";
999
- insertOne: "insertOne";
1000
1005
  update: "update";
1001
- updateByPk: "updateByPk";
1002
1006
  delete: "delete";
1007
+ insertOne: "insertOne";
1008
+ updateByPk: "updateByPk";
1003
1009
  deleteByPk: "deleteByPk";
1004
1010
  cowOverride: "cowOverride";
1005
1011
  cowRevert: "cowRevert";
@@ -1008,8 +1014,8 @@ declare const compiledOperationSchema: z.ZodObject<{
1008
1014
  resolvedAction: z.ZodOptional<z.ZodEnum<{
1009
1015
  insert: "insert";
1010
1016
  update: "update";
1011
- delete: "delete";
1012
1017
  revert: "revert";
1018
+ delete: "delete";
1013
1019
  }>>;
1014
1020
  revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
1015
1021
  writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1039,9 +1045,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1039
1045
  }, z.core.$strip>, z.ZodObject<{
1040
1046
  kind: z.ZodLiteral<"claim">;
1041
1047
  key: z.ZodEnum<{
1048
+ sub: "sub";
1042
1049
  ext_subject: "ext_subject";
1043
1050
  ext_email: "ext_email";
1044
- sub: "sub";
1045
1051
  org: "org";
1046
1052
  }>;
1047
1053
  }, z.core.$strip>], "kind">;
@@ -1058,9 +1064,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1058
1064
  }, z.core.$strip>, z.ZodObject<{
1059
1065
  kind: z.ZodLiteral<"claim">;
1060
1066
  key: z.ZodEnum<{
1067
+ sub: "sub";
1061
1068
  ext_subject: "ext_subject";
1062
1069
  ext_email: "ext_email";
1063
- sub: "sub";
1064
1070
  org: "org";
1065
1071
  }>;
1066
1072
  }, z.core.$strip>], "kind">;
@@ -1085,9 +1091,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1085
1091
  }, z.core.$strip>, z.ZodObject<{
1086
1092
  kind: z.ZodLiteral<"claim">;
1087
1093
  key: z.ZodEnum<{
1094
+ sub: "sub";
1088
1095
  ext_subject: "ext_subject";
1089
1096
  ext_email: "ext_email";
1090
- sub: "sub";
1091
1097
  org: "org";
1092
1098
  }>;
1093
1099
  }, z.core.$strip>], "kind">;
@@ -1107,9 +1113,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1107
1113
  }, z.core.$strip>, z.ZodObject<{
1108
1114
  kind: z.ZodLiteral<"claim">;
1109
1115
  key: z.ZodEnum<{
1116
+ sub: "sub";
1110
1117
  ext_subject: "ext_subject";
1111
1118
  ext_email: "ext_email";
1112
- sub: "sub";
1113
1119
  org: "org";
1114
1120
  }>;
1115
1121
  }, z.core.$strip>], "kind">;
@@ -1129,9 +1135,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1129
1135
  }, z.core.$strip>, z.ZodObject<{
1130
1136
  kind: z.ZodLiteral<"claim">;
1131
1137
  key: z.ZodEnum<{
1138
+ sub: "sub";
1132
1139
  ext_subject: "ext_subject";
1133
1140
  ext_email: "ext_email";
1134
- sub: "sub";
1135
1141
  org: "org";
1136
1142
  }>;
1137
1143
  }, z.core.$strip>], "kind">;
@@ -1149,9 +1155,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1149
1155
  }, z.core.$strip>, z.ZodObject<{
1150
1156
  kind: z.ZodLiteral<"claim">;
1151
1157
  key: z.ZodEnum<{
1158
+ sub: "sub";
1152
1159
  ext_subject: "ext_subject";
1153
1160
  ext_email: "ext_email";
1154
- sub: "sub";
1155
1161
  org: "org";
1156
1162
  }>;
1157
1163
  }, z.core.$strip>], "kind">;
@@ -1170,8 +1176,8 @@ type CompiledOperation = z.infer<typeof compiledOperationSchema>;
1170
1176
  declare const resolvedSourceIrSchema: z.ZodObject<{
1171
1177
  name: z.ZodString;
1172
1178
  kind: z.ZodEnum<{
1173
- prefetch: "prefetch";
1174
1179
  manual: "manual";
1180
+ prefetch: "prefetch";
1175
1181
  etl: "etl";
1176
1182
  }>;
1177
1183
  table: z.ZodString;
@@ -1215,8 +1221,8 @@ declare const resolvedMetaIrSchema: z.ZodObject<{
1215
1221
  sources: z.ZodArray<z.ZodObject<{
1216
1222
  name: z.ZodString;
1217
1223
  kind: z.ZodEnum<{
1218
- prefetch: "prefetch";
1219
1224
  manual: "manual";
1225
+ prefetch: "prefetch";
1220
1226
  etl: "etl";
1221
1227
  }>;
1222
1228
  table: z.ZodString;
@@ -1294,13 +1300,13 @@ declare const tableMetaIrSchema: z.ZodObject<{
1294
1300
  bigint: "bigint";
1295
1301
  boolean: "boolean";
1296
1302
  date: "date";
1297
- uuid: "uuid";
1298
1303
  text: "text";
1304
+ timestamptz: "timestamptz";
1305
+ jsonb: "jsonb";
1306
+ uuid: "uuid";
1299
1307
  integer: "integer";
1300
1308
  numeric: "numeric";
1301
1309
  double: "double";
1302
- timestamptz: "timestamptz";
1303
- jsonb: "jsonb";
1304
1310
  }>, z.ZodObject<{
1305
1311
  enum: z.ZodString;
1306
1312
  values: z.ZodArray<z.ZodString>;
@@ -1338,8 +1344,8 @@ declare const tableMetaIrSchema: z.ZodObject<{
1338
1344
  sources: z.ZodArray<z.ZodObject<{
1339
1345
  name: z.ZodString;
1340
1346
  kind: z.ZodEnum<{
1341
- prefetch: "prefetch";
1342
1347
  manual: "manual";
1348
+ prefetch: "prefetch";
1343
1349
  etl: "etl";
1344
1350
  }>;
1345
1351
  table: z.ZodString;
@@ -1391,7 +1397,7 @@ declare const tableMetaIrSchema: z.ZodObject<{
1391
1397
  }, z.core.$strip>;
1392
1398
  type TableMetaIr = z.infer<typeof tableMetaIrSchema>;
1393
1399
  declare const compiledArtifactSchema: z.ZodObject<{
1394
- irVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
1400
+ irVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
1395
1401
  namespace: z.ZodString;
1396
1402
  schemaHash: z.ZodString;
1397
1403
  ownSchemaHash: z.ZodOptional<z.ZodString>;
@@ -1428,13 +1434,13 @@ declare const compiledArtifactSchema: z.ZodObject<{
1428
1434
  bigint: "bigint";
1429
1435
  boolean: "boolean";
1430
1436
  date: "date";
1431
- uuid: "uuid";
1432
1437
  text: "text";
1438
+ timestamptz: "timestamptz";
1439
+ jsonb: "jsonb";
1440
+ uuid: "uuid";
1433
1441
  integer: "integer";
1434
1442
  numeric: "numeric";
1435
1443
  double: "double";
1436
- timestamptz: "timestamptz";
1437
- jsonb: "jsonb";
1438
1444
  }>, z.ZodObject<{
1439
1445
  enum: z.ZodString;
1440
1446
  values: z.ZodArray<z.ZodString>;
@@ -1472,8 +1478,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
1472
1478
  sources: z.ZodArray<z.ZodObject<{
1473
1479
  name: z.ZodString;
1474
1480
  kind: z.ZodEnum<{
1475
- prefetch: "prefetch";
1476
1481
  manual: "manual";
1482
+ prefetch: "prefetch";
1477
1483
  etl: "etl";
1478
1484
  }>;
1479
1485
  table: z.ZodString;
@@ -1551,12 +1557,13 @@ declare const compiledArtifactSchema: z.ZodObject<{
1551
1557
  bigint: "bigint";
1552
1558
  boolean: "boolean";
1553
1559
  date: "date";
1554
- uuid: "uuid";
1555
1560
  text: "text";
1561
+ timestamptz: "timestamptz";
1562
+ jsonb: "jsonb";
1563
+ uuid: "uuid";
1556
1564
  integer: "integer";
1557
1565
  numeric: "numeric";
1558
1566
  double: "double";
1559
- timestamptz: "timestamptz";
1560
1567
  }>;
1561
1568
  nullable: z.ZodBoolean;
1562
1569
  }, z.core.$strip>>;
@@ -1564,12 +1571,12 @@ declare const compiledArtifactSchema: z.ZodObject<{
1564
1571
  read: z.ZodArray<z.ZodString>;
1565
1572
  maxRows: z.ZodNumber;
1566
1573
  }, z.core.$strict>>;
1567
- irVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
1574
+ irVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
1568
1575
  name: z.ZodString;
1569
1576
  opHash: z.ZodString;
1570
1577
  kind: z.ZodEnum<{
1571
- mutation: "mutation";
1572
1578
  query: "query";
1579
+ mutation: "mutation";
1573
1580
  }>;
1574
1581
  requires: z.ZodNullable<z.ZodObject<{
1575
1582
  capability: z.ZodOptional<z.ZodString>;
@@ -1583,13 +1590,13 @@ declare const compiledArtifactSchema: z.ZodObject<{
1583
1590
  bigint: "bigint";
1584
1591
  boolean: "boolean";
1585
1592
  date: "date";
1586
- uuid: "uuid";
1587
1593
  text: "text";
1594
+ timestamptz: "timestamptz";
1595
+ jsonb: "jsonb";
1596
+ uuid: "uuid";
1588
1597
  integer: "integer";
1589
1598
  numeric: "numeric";
1590
1599
  double: "double";
1591
- timestamptz: "timestamptz";
1592
- jsonb: "jsonb";
1593
1600
  }>;
1594
1601
  }, z.core.$strip>, z.ZodObject<{
1595
1602
  kind: z.ZodLiteral<"enum">;
@@ -1667,9 +1674,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1667
1674
  }, z.core.$strip>, z.ZodObject<{
1668
1675
  kind: z.ZodLiteral<"claim">;
1669
1676
  key: z.ZodEnum<{
1677
+ sub: "sub";
1670
1678
  ext_subject: "ext_subject";
1671
1679
  ext_email: "ext_email";
1672
- sub: "sub";
1673
1680
  org: "org";
1674
1681
  }>;
1675
1682
  }, z.core.$strip>], "kind">;
@@ -1683,9 +1690,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1683
1690
  }, z.core.$strip>, z.ZodObject<{
1684
1691
  kind: z.ZodLiteral<"claim">;
1685
1692
  key: z.ZodEnum<{
1693
+ sub: "sub";
1686
1694
  ext_subject: "ext_subject";
1687
1695
  ext_email: "ext_email";
1688
- sub: "sub";
1689
1696
  org: "org";
1690
1697
  }>;
1691
1698
  }, z.core.$strip>], "kind">;
@@ -1707,9 +1714,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1707
1714
  }, z.core.$strip>, z.ZodObject<{
1708
1715
  kind: z.ZodLiteral<"claim">;
1709
1716
  key: z.ZodEnum<{
1717
+ sub: "sub";
1710
1718
  ext_subject: "ext_subject";
1711
1719
  ext_email: "ext_email";
1712
- sub: "sub";
1713
1720
  org: "org";
1714
1721
  }>;
1715
1722
  }, z.core.$strip>], "kind">;
@@ -1732,9 +1739,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1732
1739
  }, z.core.$strip>, z.ZodObject<{
1733
1740
  kind: z.ZodLiteral<"claim">;
1734
1741
  key: z.ZodEnum<{
1742
+ sub: "sub";
1735
1743
  ext_subject: "ext_subject";
1736
1744
  ext_email: "ext_email";
1737
- sub: "sub";
1738
1745
  org: "org";
1739
1746
  }>;
1740
1747
  }, z.core.$strip>], "kind">;
@@ -1748,9 +1755,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1748
1755
  }, z.core.$strip>, z.ZodObject<{
1749
1756
  kind: z.ZodLiteral<"claim">;
1750
1757
  key: z.ZodEnum<{
1758
+ sub: "sub";
1751
1759
  ext_subject: "ext_subject";
1752
1760
  ext_email: "ext_email";
1753
- sub: "sub";
1754
1761
  org: "org";
1755
1762
  }>;
1756
1763
  }, z.core.$strip>], "kind">;
@@ -1816,10 +1823,10 @@ declare const compiledArtifactSchema: z.ZodObject<{
1816
1823
  kind: z.ZodLiteral<"mutation">;
1817
1824
  op: z.ZodEnum<{
1818
1825
  insert: "insert";
1819
- insertOne: "insertOne";
1820
1826
  update: "update";
1821
- updateByPk: "updateByPk";
1822
1827
  delete: "delete";
1828
+ insertOne: "insertOne";
1829
+ updateByPk: "updateByPk";
1823
1830
  deleteByPk: "deleteByPk";
1824
1831
  cowOverride: "cowOverride";
1825
1832
  cowRevert: "cowRevert";
@@ -1828,8 +1835,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
1828
1835
  resolvedAction: z.ZodOptional<z.ZodEnum<{
1829
1836
  insert: "insert";
1830
1837
  update: "update";
1831
- delete: "delete";
1832
1838
  revert: "revert";
1839
+ delete: "delete";
1833
1840
  }>>;
1834
1841
  revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
1835
1842
  writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1859,9 +1866,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1859
1866
  }, z.core.$strip>, z.ZodObject<{
1860
1867
  kind: z.ZodLiteral<"claim">;
1861
1868
  key: z.ZodEnum<{
1869
+ sub: "sub";
1862
1870
  ext_subject: "ext_subject";
1863
1871
  ext_email: "ext_email";
1864
- sub: "sub";
1865
1872
  org: "org";
1866
1873
  }>;
1867
1874
  }, z.core.$strip>], "kind">;
@@ -1878,9 +1885,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1878
1885
  }, z.core.$strip>, z.ZodObject<{
1879
1886
  kind: z.ZodLiteral<"claim">;
1880
1887
  key: z.ZodEnum<{
1888
+ sub: "sub";
1881
1889
  ext_subject: "ext_subject";
1882
1890
  ext_email: "ext_email";
1883
- sub: "sub";
1884
1891
  org: "org";
1885
1892
  }>;
1886
1893
  }, z.core.$strip>], "kind">;
@@ -1905,9 +1912,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1905
1912
  }, z.core.$strip>, z.ZodObject<{
1906
1913
  kind: z.ZodLiteral<"claim">;
1907
1914
  key: z.ZodEnum<{
1915
+ sub: "sub";
1908
1916
  ext_subject: "ext_subject";
1909
1917
  ext_email: "ext_email";
1910
- sub: "sub";
1911
1918
  org: "org";
1912
1919
  }>;
1913
1920
  }, z.core.$strip>], "kind">;
@@ -1927,9 +1934,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1927
1934
  }, z.core.$strip>, z.ZodObject<{
1928
1935
  kind: z.ZodLiteral<"claim">;
1929
1936
  key: z.ZodEnum<{
1937
+ sub: "sub";
1930
1938
  ext_subject: "ext_subject";
1931
1939
  ext_email: "ext_email";
1932
- sub: "sub";
1933
1940
  org: "org";
1934
1941
  }>;
1935
1942
  }, z.core.$strip>], "kind">;
@@ -1949,9 +1956,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1949
1956
  }, z.core.$strip>, z.ZodObject<{
1950
1957
  kind: z.ZodLiteral<"claim">;
1951
1958
  key: z.ZodEnum<{
1959
+ sub: "sub";
1952
1960
  ext_subject: "ext_subject";
1953
1961
  ext_email: "ext_email";
1954
- sub: "sub";
1955
1962
  org: "org";
1956
1963
  }>;
1957
1964
  }, z.core.$strip>], "kind">;
@@ -1969,9 +1976,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1969
1976
  }, z.core.$strip>, z.ZodObject<{
1970
1977
  kind: z.ZodLiteral<"claim">;
1971
1978
  key: z.ZodEnum<{
1979
+ sub: "sub";
1972
1980
  ext_subject: "ext_subject";
1973
1981
  ext_email: "ext_email";
1974
- sub: "sub";
1975
1982
  org: "org";
1976
1983
  }>;
1977
1984
  }, z.core.$strip>], "kind">;
@@ -2001,4 +2008,4 @@ declare function normalizeIr(raw: unknown): CompiledArtifact;
2001
2008
  /** Index an artifact's operations by opHash (the wire selector). */
2002
2009
  declare function indexByHash(artifact: CompiledArtifact): Map<string, CompiledOperation>;
2003
2010
 
2004
- 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, 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, valueIrSchema, variableDefaultIrSchema, variableIrSchema };
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 };