@sequenceholdings/orm 2.11.0 → 2.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +3 -4
  2. package/dist/authoring.d.cts +1 -1
  3. package/dist/authoring.d.ts +1 -1
  4. package/dist/canonical.d.cts +43 -43
  5. package/dist/canonical.d.ts +43 -43
  6. package/dist/cli.cjs +147 -195
  7. package/dist/cli.cjs.map +1 -1
  8. package/dist/cli.js +148 -196
  9. package/dist/cli.js.map +1 -1
  10. package/dist/client.cjs +5 -10
  11. package/dist/client.cjs.map +1 -1
  12. package/dist/client.d.cts +2 -13
  13. package/dist/client.d.ts +2 -13
  14. package/dist/client.js +6 -10
  15. package/dist/client.js.map +1 -1
  16. package/dist/compiler.cjs +14 -67
  17. package/dist/compiler.cjs.map +1 -1
  18. package/dist/compiler.d.cts +6 -17
  19. package/dist/compiler.d.ts +6 -17
  20. package/dist/compiler.js +16 -66
  21. package/dist/compiler.js.map +1 -1
  22. package/dist/index.cjs +242 -189
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +541 -36
  25. package/dist/index.d.ts +541 -36
  26. package/dist/index.js +237 -189
  27. package/dist/index.js.map +1 -1
  28. package/dist/ir.cjs +6 -11
  29. package/dist/ir.cjs.map +1 -1
  30. package/dist/ir.d.cts +61 -64
  31. package/dist/ir.d.ts +61 -64
  32. package/dist/ir.js +6 -11
  33. package/dist/ir.js.map +1 -1
  34. package/dist/predicate-v2.cjs +3 -8
  35. package/dist/predicate-v2.cjs.map +1 -1
  36. package/dist/predicate-v2.js +3 -8
  37. package/dist/predicate-v2.js.map +1 -1
  38. package/dist/sdl.cjs +4 -11
  39. package/dist/sdl.cjs.map +1 -1
  40. package/dist/sdl.d.cts +1 -5
  41. package/dist/sdl.d.ts +1 -5
  42. package/dist/sdl.js +4 -11
  43. package/dist/sdl.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/codegen-gql/server-fns.cjs +1 -1
  46. package/dist/{definition-CevES7lM.d.cts → definition-B99BsOAO.d.cts} +2 -2
  47. package/dist/{definition-CevES7lM.d.ts → definition-B99BsOAO.d.ts} +2 -2
package/dist/ir.d.cts 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";
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">;
@@ -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";
489
487
  insert: "insert";
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";
495
495
  resolvedWrite: "resolvedWrite";
496
496
  }>;
497
497
  resolvedAction: z.ZodOptional<z.ZodEnum<{
498
+ insert: "insert";
498
499
  update: "update";
499
500
  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";
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,8 +676,8 @@ declare const variableIrSchema: z.ZodObject<{
676
676
  bigint: "bigint";
677
677
  boolean: "boolean";
678
678
  date: "date";
679
- text: "text";
680
679
  uuid: "uuid";
680
+ text: "text";
681
681
  integer: "integer";
682
682
  numeric: "numeric";
683
683
  double: "double";
@@ -747,8 +747,8 @@ declare const compiledOperationSchema: z.ZodObject<{
747
747
  bigint: "bigint";
748
748
  boolean: "boolean";
749
749
  date: "date";
750
- text: "text";
751
750
  uuid: "uuid";
751
+ text: "text";
752
752
  integer: "integer";
753
753
  numeric: "numeric";
754
754
  double: "double";
@@ -763,10 +763,9 @@ declare const compiledOperationSchema: z.ZodObject<{
763
763
  }, z.core.$strict>>;
764
764
  irVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
765
765
  name: z.ZodString;
766
- opHash: z.ZodString;
767
766
  kind: z.ZodEnum<{
768
- query: "query";
769
767
  mutation: "mutation";
768
+ query: "query";
770
769
  }>;
771
770
  requires: z.ZodNullable<z.ZodObject<{
772
771
  capability: z.ZodOptional<z.ZodString>;
@@ -780,8 +779,8 @@ declare const compiledOperationSchema: z.ZodObject<{
780
779
  bigint: "bigint";
781
780
  boolean: "boolean";
782
781
  date: "date";
783
- text: "text";
784
782
  uuid: "uuid";
783
+ text: "text";
785
784
  integer: "integer";
786
785
  numeric: "numeric";
787
786
  double: "double";
@@ -864,9 +863,9 @@ declare const compiledOperationSchema: z.ZodObject<{
864
863
  }, z.core.$strip>, z.ZodObject<{
865
864
  kind: z.ZodLiteral<"claim">;
866
865
  key: z.ZodEnum<{
867
- sub: "sub";
868
866
  ext_subject: "ext_subject";
869
867
  ext_email: "ext_email";
868
+ sub: "sub";
870
869
  org: "org";
871
870
  }>;
872
871
  }, z.core.$strip>], "kind">;
@@ -880,9 +879,9 @@ declare const compiledOperationSchema: z.ZodObject<{
880
879
  }, z.core.$strip>, z.ZodObject<{
881
880
  kind: z.ZodLiteral<"claim">;
882
881
  key: z.ZodEnum<{
883
- sub: "sub";
884
882
  ext_subject: "ext_subject";
885
883
  ext_email: "ext_email";
884
+ sub: "sub";
886
885
  org: "org";
887
886
  }>;
888
887
  }, z.core.$strip>], "kind">;
@@ -904,9 +903,9 @@ declare const compiledOperationSchema: z.ZodObject<{
904
903
  }, z.core.$strip>, z.ZodObject<{
905
904
  kind: z.ZodLiteral<"claim">;
906
905
  key: z.ZodEnum<{
907
- sub: "sub";
908
906
  ext_subject: "ext_subject";
909
907
  ext_email: "ext_email";
908
+ sub: "sub";
910
909
  org: "org";
911
910
  }>;
912
911
  }, z.core.$strip>], "kind">;
@@ -929,9 +928,9 @@ declare const compiledOperationSchema: z.ZodObject<{
929
928
  }, z.core.$strip>, z.ZodObject<{
930
929
  kind: z.ZodLiteral<"claim">;
931
930
  key: z.ZodEnum<{
932
- sub: "sub";
933
931
  ext_subject: "ext_subject";
934
932
  ext_email: "ext_email";
933
+ sub: "sub";
935
934
  org: "org";
936
935
  }>;
937
936
  }, z.core.$strip>], "kind">;
@@ -945,9 +944,9 @@ declare const compiledOperationSchema: z.ZodObject<{
945
944
  }, z.core.$strip>, z.ZodObject<{
946
945
  kind: z.ZodLiteral<"claim">;
947
946
  key: z.ZodEnum<{
948
- sub: "sub";
949
947
  ext_subject: "ext_subject";
950
948
  ext_email: "ext_email";
949
+ sub: "sub";
951
950
  org: "org";
952
951
  }>;
953
952
  }, z.core.$strip>], "kind">;
@@ -1012,20 +1011,20 @@ declare const compiledOperationSchema: z.ZodObject<{
1012
1011
  }, z.core.$strip>, z.ZodObject<{
1013
1012
  kind: z.ZodLiteral<"mutation">;
1014
1013
  op: z.ZodEnum<{
1015
- update: "update";
1016
- delete: "delete";
1017
1014
  insert: "insert";
1018
1015
  insertOne: "insertOne";
1016
+ update: "update";
1019
1017
  updateByPk: "updateByPk";
1018
+ delete: "delete";
1020
1019
  deleteByPk: "deleteByPk";
1021
1020
  cowOverride: "cowOverride";
1022
1021
  cowRevert: "cowRevert";
1023
1022
  resolvedWrite: "resolvedWrite";
1024
1023
  }>;
1025
1024
  resolvedAction: z.ZodOptional<z.ZodEnum<{
1025
+ insert: "insert";
1026
1026
  update: "update";
1027
1027
  delete: "delete";
1028
- insert: "insert";
1029
1028
  revert: "revert";
1030
1029
  }>>;
1031
1030
  revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1056,9 +1055,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1056
1055
  }, z.core.$strip>, z.ZodObject<{
1057
1056
  kind: z.ZodLiteral<"claim">;
1058
1057
  key: z.ZodEnum<{
1059
- sub: "sub";
1060
1058
  ext_subject: "ext_subject";
1061
1059
  ext_email: "ext_email";
1060
+ sub: "sub";
1062
1061
  org: "org";
1063
1062
  }>;
1064
1063
  }, z.core.$strip>], "kind">;
@@ -1075,9 +1074,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1075
1074
  }, z.core.$strip>, z.ZodObject<{
1076
1075
  kind: z.ZodLiteral<"claim">;
1077
1076
  key: z.ZodEnum<{
1078
- sub: "sub";
1079
1077
  ext_subject: "ext_subject";
1080
1078
  ext_email: "ext_email";
1079
+ sub: "sub";
1081
1080
  org: "org";
1082
1081
  }>;
1083
1082
  }, z.core.$strip>], "kind">;
@@ -1102,9 +1101,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1102
1101
  }, z.core.$strip>, z.ZodObject<{
1103
1102
  kind: z.ZodLiteral<"claim">;
1104
1103
  key: z.ZodEnum<{
1105
- sub: "sub";
1106
1104
  ext_subject: "ext_subject";
1107
1105
  ext_email: "ext_email";
1106
+ sub: "sub";
1108
1107
  org: "org";
1109
1108
  }>;
1110
1109
  }, z.core.$strip>], "kind">;
@@ -1124,9 +1123,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1124
1123
  }, z.core.$strip>, z.ZodObject<{
1125
1124
  kind: z.ZodLiteral<"claim">;
1126
1125
  key: z.ZodEnum<{
1127
- sub: "sub";
1128
1126
  ext_subject: "ext_subject";
1129
1127
  ext_email: "ext_email";
1128
+ sub: "sub";
1130
1129
  org: "org";
1131
1130
  }>;
1132
1131
  }, z.core.$strip>], "kind">;
@@ -1146,9 +1145,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1146
1145
  }, z.core.$strip>, z.ZodObject<{
1147
1146
  kind: z.ZodLiteral<"claim">;
1148
1147
  key: z.ZodEnum<{
1149
- sub: "sub";
1150
1148
  ext_subject: "ext_subject";
1151
1149
  ext_email: "ext_email";
1150
+ sub: "sub";
1152
1151
  org: "org";
1153
1152
  }>;
1154
1153
  }, z.core.$strip>], "kind">;
@@ -1166,9 +1165,9 @@ declare const compiledOperationSchema: z.ZodObject<{
1166
1165
  }, z.core.$strip>, z.ZodObject<{
1167
1166
  kind: z.ZodLiteral<"claim">;
1168
1167
  key: z.ZodEnum<{
1169
- sub: "sub";
1170
1168
  ext_subject: "ext_subject";
1171
1169
  ext_email: "ext_email";
1170
+ sub: "sub";
1172
1171
  org: "org";
1173
1172
  }>;
1174
1173
  }, z.core.$strip>], "kind">;
@@ -1187,9 +1186,9 @@ type CompiledOperation = z.infer<typeof compiledOperationSchema>;
1187
1186
  declare const resolvedSourceIrSchema: z.ZodObject<{
1188
1187
  name: z.ZodString;
1189
1188
  kind: z.ZodEnum<{
1189
+ prefetch: "prefetch";
1190
1190
  manual: "manual";
1191
1191
  etl: "etl";
1192
- prefetch: "prefetch";
1193
1192
  }>;
1194
1193
  table: z.ZodString;
1195
1194
  columns: z.ZodArray<z.ZodString>;
@@ -1232,9 +1231,9 @@ declare const resolvedMetaIrSchema: z.ZodObject<{
1232
1231
  sources: z.ZodArray<z.ZodObject<{
1233
1232
  name: z.ZodString;
1234
1233
  kind: z.ZodEnum<{
1234
+ prefetch: "prefetch";
1235
1235
  manual: "manual";
1236
1236
  etl: "etl";
1237
- prefetch: "prefetch";
1238
1237
  }>;
1239
1238
  table: z.ZodString;
1240
1239
  columns: z.ZodArray<z.ZodString>;
@@ -1311,8 +1310,8 @@ declare const tableMetaIrSchema: z.ZodObject<{
1311
1310
  bigint: "bigint";
1312
1311
  boolean: "boolean";
1313
1312
  date: "date";
1314
- text: "text";
1315
1313
  uuid: "uuid";
1314
+ text: "text";
1316
1315
  integer: "integer";
1317
1316
  numeric: "numeric";
1318
1317
  double: "double";
@@ -1355,9 +1354,9 @@ declare const tableMetaIrSchema: z.ZodObject<{
1355
1354
  sources: z.ZodArray<z.ZodObject<{
1356
1355
  name: z.ZodString;
1357
1356
  kind: z.ZodEnum<{
1357
+ prefetch: "prefetch";
1358
1358
  manual: "manual";
1359
1359
  etl: "etl";
1360
- prefetch: "prefetch";
1361
1360
  }>;
1362
1361
  table: z.ZodString;
1363
1362
  columns: z.ZodArray<z.ZodString>;
@@ -1414,7 +1413,6 @@ declare const compiledArtifactSchema: z.ZodObject<{
1414
1413
  ownSchemaHash: z.ZodOptional<z.ZodString>;
1415
1414
  dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1416
1415
  readPolicies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>>>;
1417
- opsHash: z.ZodString;
1418
1416
  unbackedTables: z.ZodOptional<z.ZodArray<z.ZodString>>;
1419
1417
  tables: z.ZodRecord<z.ZodString, z.ZodObject<{
1420
1418
  table: z.ZodString;
@@ -1445,8 +1443,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
1445
1443
  bigint: "bigint";
1446
1444
  boolean: "boolean";
1447
1445
  date: "date";
1448
- text: "text";
1449
1446
  uuid: "uuid";
1447
+ text: "text";
1450
1448
  integer: "integer";
1451
1449
  numeric: "numeric";
1452
1450
  double: "double";
@@ -1489,9 +1487,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1489
1487
  sources: z.ZodArray<z.ZodObject<{
1490
1488
  name: z.ZodString;
1491
1489
  kind: z.ZodEnum<{
1490
+ prefetch: "prefetch";
1492
1491
  manual: "manual";
1493
1492
  etl: "etl";
1494
- prefetch: "prefetch";
1495
1493
  }>;
1496
1494
  table: z.ZodString;
1497
1495
  columns: z.ZodArray<z.ZodString>;
@@ -1568,8 +1566,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
1568
1566
  bigint: "bigint";
1569
1567
  boolean: "boolean";
1570
1568
  date: "date";
1571
- text: "text";
1572
1569
  uuid: "uuid";
1570
+ text: "text";
1573
1571
  integer: "integer";
1574
1572
  numeric: "numeric";
1575
1573
  double: "double";
@@ -1584,10 +1582,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1584
1582
  }, z.core.$strict>>;
1585
1583
  irVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
1586
1584
  name: z.ZodString;
1587
- opHash: z.ZodString;
1588
1585
  kind: z.ZodEnum<{
1589
- query: "query";
1590
1586
  mutation: "mutation";
1587
+ query: "query";
1591
1588
  }>;
1592
1589
  requires: z.ZodNullable<z.ZodObject<{
1593
1590
  capability: z.ZodOptional<z.ZodString>;
@@ -1601,8 +1598,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
1601
1598
  bigint: "bigint";
1602
1599
  boolean: "boolean";
1603
1600
  date: "date";
1604
- text: "text";
1605
1601
  uuid: "uuid";
1602
+ text: "text";
1606
1603
  integer: "integer";
1607
1604
  numeric: "numeric";
1608
1605
  double: "double";
@@ -1685,9 +1682,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1685
1682
  }, z.core.$strip>, z.ZodObject<{
1686
1683
  kind: z.ZodLiteral<"claim">;
1687
1684
  key: z.ZodEnum<{
1688
- sub: "sub";
1689
1685
  ext_subject: "ext_subject";
1690
1686
  ext_email: "ext_email";
1687
+ sub: "sub";
1691
1688
  org: "org";
1692
1689
  }>;
1693
1690
  }, z.core.$strip>], "kind">;
@@ -1701,9 +1698,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1701
1698
  }, z.core.$strip>, z.ZodObject<{
1702
1699
  kind: z.ZodLiteral<"claim">;
1703
1700
  key: z.ZodEnum<{
1704
- sub: "sub";
1705
1701
  ext_subject: "ext_subject";
1706
1702
  ext_email: "ext_email";
1703
+ sub: "sub";
1707
1704
  org: "org";
1708
1705
  }>;
1709
1706
  }, z.core.$strip>], "kind">;
@@ -1725,9 +1722,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1725
1722
  }, z.core.$strip>, z.ZodObject<{
1726
1723
  kind: z.ZodLiteral<"claim">;
1727
1724
  key: z.ZodEnum<{
1728
- sub: "sub";
1729
1725
  ext_subject: "ext_subject";
1730
1726
  ext_email: "ext_email";
1727
+ sub: "sub";
1731
1728
  org: "org";
1732
1729
  }>;
1733
1730
  }, z.core.$strip>], "kind">;
@@ -1750,9 +1747,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1750
1747
  }, z.core.$strip>, z.ZodObject<{
1751
1748
  kind: z.ZodLiteral<"claim">;
1752
1749
  key: z.ZodEnum<{
1753
- sub: "sub";
1754
1750
  ext_subject: "ext_subject";
1755
1751
  ext_email: "ext_email";
1752
+ sub: "sub";
1756
1753
  org: "org";
1757
1754
  }>;
1758
1755
  }, z.core.$strip>], "kind">;
@@ -1766,9 +1763,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1766
1763
  }, z.core.$strip>, z.ZodObject<{
1767
1764
  kind: z.ZodLiteral<"claim">;
1768
1765
  key: z.ZodEnum<{
1769
- sub: "sub";
1770
1766
  ext_subject: "ext_subject";
1771
1767
  ext_email: "ext_email";
1768
+ sub: "sub";
1772
1769
  org: "org";
1773
1770
  }>;
1774
1771
  }, z.core.$strip>], "kind">;
@@ -1833,20 +1830,20 @@ declare const compiledArtifactSchema: z.ZodObject<{
1833
1830
  }, z.core.$strip>, z.ZodObject<{
1834
1831
  kind: z.ZodLiteral<"mutation">;
1835
1832
  op: z.ZodEnum<{
1836
- update: "update";
1837
- delete: "delete";
1838
1833
  insert: "insert";
1839
1834
  insertOne: "insertOne";
1835
+ update: "update";
1840
1836
  updateByPk: "updateByPk";
1837
+ delete: "delete";
1841
1838
  deleteByPk: "deleteByPk";
1842
1839
  cowOverride: "cowOverride";
1843
1840
  cowRevert: "cowRevert";
1844
1841
  resolvedWrite: "resolvedWrite";
1845
1842
  }>;
1846
1843
  resolvedAction: z.ZodOptional<z.ZodEnum<{
1844
+ insert: "insert";
1847
1845
  update: "update";
1848
1846
  delete: "delete";
1849
- insert: "insert";
1850
1847
  revert: "revert";
1851
1848
  }>>;
1852
1849
  revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1877,9 +1874,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1877
1874
  }, z.core.$strip>, z.ZodObject<{
1878
1875
  kind: z.ZodLiteral<"claim">;
1879
1876
  key: z.ZodEnum<{
1880
- sub: "sub";
1881
1877
  ext_subject: "ext_subject";
1882
1878
  ext_email: "ext_email";
1879
+ sub: "sub";
1883
1880
  org: "org";
1884
1881
  }>;
1885
1882
  }, z.core.$strip>], "kind">;
@@ -1896,9 +1893,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1896
1893
  }, z.core.$strip>, z.ZodObject<{
1897
1894
  kind: z.ZodLiteral<"claim">;
1898
1895
  key: z.ZodEnum<{
1899
- sub: "sub";
1900
1896
  ext_subject: "ext_subject";
1901
1897
  ext_email: "ext_email";
1898
+ sub: "sub";
1902
1899
  org: "org";
1903
1900
  }>;
1904
1901
  }, z.core.$strip>], "kind">;
@@ -1923,9 +1920,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1923
1920
  }, z.core.$strip>, z.ZodObject<{
1924
1921
  kind: z.ZodLiteral<"claim">;
1925
1922
  key: z.ZodEnum<{
1926
- sub: "sub";
1927
1923
  ext_subject: "ext_subject";
1928
1924
  ext_email: "ext_email";
1925
+ sub: "sub";
1929
1926
  org: "org";
1930
1927
  }>;
1931
1928
  }, z.core.$strip>], "kind">;
@@ -1945,9 +1942,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1945
1942
  }, z.core.$strip>, z.ZodObject<{
1946
1943
  kind: z.ZodLiteral<"claim">;
1947
1944
  key: z.ZodEnum<{
1948
- sub: "sub";
1949
1945
  ext_subject: "ext_subject";
1950
1946
  ext_email: "ext_email";
1947
+ sub: "sub";
1951
1948
  org: "org";
1952
1949
  }>;
1953
1950
  }, z.core.$strip>], "kind">;
@@ -1967,9 +1964,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1967
1964
  }, z.core.$strip>, z.ZodObject<{
1968
1965
  kind: z.ZodLiteral<"claim">;
1969
1966
  key: z.ZodEnum<{
1970
- sub: "sub";
1971
1967
  ext_subject: "ext_subject";
1972
1968
  ext_email: "ext_email";
1969
+ sub: "sub";
1973
1970
  org: "org";
1974
1971
  }>;
1975
1972
  }, z.core.$strip>], "kind">;
@@ -1987,9 +1984,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
1987
1984
  }, z.core.$strip>, z.ZodObject<{
1988
1985
  kind: z.ZodLiteral<"claim">;
1989
1986
  key: z.ZodEnum<{
1990
- sub: "sub";
1991
1987
  ext_subject: "ext_subject";
1992
1988
  ext_email: "ext_email";
1989
+ sub: "sub";
1993
1990
  org: "org";
1994
1991
  }>;
1995
1992
  }, z.core.$strip>], "kind">;
@@ -2016,7 +2013,7 @@ declare class IrVersionError extends Error {
2016
2013
  * the data plane calls this on every artifact load.
2017
2014
  */
2018
2015
  declare function normalizeIr(raw: unknown): CompiledArtifact;
2019
- /** Index an artifact's operations by opHash (the wire selector). */
2020
- declare function indexByHash(artifact: CompiledArtifact): Map<string, CompiledOperation>;
2016
+ /** Index an artifact's operations by name (the namespace-scoped identity). */
2017
+ declare function indexByName(artifact: CompiledArtifact): Map<string, CompiledOperation>;
2021
2018
 
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 };
2019
+ 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, indexByName, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, sqlObjectIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema };