@sequenceholdings/orm 2.8.5 → 2.9.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/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 +93 -53
  10. package/dist/cli.cjs.map +1 -1
  11. package/dist/cli.d.cts +23 -1
  12. package/dist/cli.d.ts +23 -1
  13. package/dist/cli.js +90 -54
  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 +1 -1
  20. package/dist/compiler.cjs.map +1 -1
  21. package/dist/compiler.d.cts +2 -2
  22. package/dist/compiler.d.ts +2 -2
  23. package/dist/compiler.js +1 -1
  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 +44 -24
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +60 -59
  32. package/dist/index.d.ts +60 -59
  33. package/dist/index.js +43 -25
  34. package/dist/index.js.map +1 -1
  35. package/dist/ir.cjs.map +1 -1
  36. package/dist/ir.d.cts +73 -73
  37. package/dist/ir.d.ts +73 -73
  38. package/dist/ir.js.map +1 -1
  39. package/dist/predicate-v2.cjs.map +1 -1
  40. package/dist/predicate-v2.d.cts +1 -1
  41. package/dist/predicate-v2.d.ts +1 -1
  42. package/dist/predicate-v2.js.map +1 -1
  43. package/dist/sdl.cjs.map +1 -1
  44. package/dist/sdl.d.cts +1 -1
  45. package/dist/sdl.d.ts +1 -1
  46. package/dist/sdl.js.map +1 -1
  47. package/package.json +3 -3
  48. package/templates/orm-namespace/package.json +2 -1
  49. package/dist/{definition-DjfC7Lll.d.cts → definition-B99BsOAO.d.cts} +4 -4
  50. package/dist/{definition-DjfC7Lll.d.ts → definition-B99BsOAO.d.ts} +4 -4
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { b as CellPart } from './constants-Dou1RkTo.cjs';
2
+ import { b as CellPart } from './constants-D2o0vK6U.cjs';
3
3
  export { P as PolicyExpression, p as policyExpressionSchema, a as policyVariantSchema } from './policy-1iZbGnZZ.cjs';
4
4
 
5
5
  /** Authored intent only. Operation compilation validates reach; it never adds declarations. */
@@ -102,9 +102,9 @@ type CanonicalFetchShape = z.infer<typeof canonicalFetchShapeSchema>;
102
102
  declare const canonicalResolvedSourceSchema: z.ZodObject<{
103
103
  name: z.ZodString;
104
104
  kind: z.ZodEnum<{
105
+ prefetch: "prefetch";
105
106
  manual: "manual";
106
107
  etl: "etl";
107
- prefetch: "prefetch";
108
108
  }>;
109
109
  table: z.ZodString;
110
110
  columns: z.ZodArray<z.ZodString>;
@@ -160,9 +160,9 @@ declare const canonicalResolvedSchema: z.ZodObject<{
160
160
  sources: z.ZodArray<z.ZodObject<{
161
161
  name: z.ZodString;
162
162
  kind: z.ZodEnum<{
163
+ prefetch: "prefetch";
163
164
  manual: "manual";
164
165
  etl: "etl";
165
- prefetch: "prefetch";
166
166
  }>;
167
167
  table: z.ZodString;
168
168
  columns: z.ZodArray<z.ZodString>;
@@ -326,13 +326,13 @@ declare const canonicalColumnSchema: z.ZodObject<{
326
326
  bigint: "bigint";
327
327
  boolean: "boolean";
328
328
  date: "date";
329
- text: "text";
330
- timestamptz: "timestamptz";
331
- jsonb: "jsonb";
332
329
  uuid: "uuid";
330
+ text: "text";
333
331
  integer: "integer";
334
332
  numeric: "numeric";
335
333
  double: "double";
334
+ timestamptz: "timestamptz";
335
+ jsonb: "jsonb";
336
336
  }>, z.ZodObject<{
337
337
  enum: z.ZodString;
338
338
  }, z.core.$strip>]>;
@@ -354,10 +354,10 @@ declare const canonicalColumnSchema: z.ZodObject<{
354
354
  of: z.ZodString;
355
355
  part: z.ZodEnum<{
356
356
  at: "at";
357
- by: "by";
358
- rev: "rev";
359
357
  source: "source";
358
+ by: "by";
360
359
  conflicts: "conflicts";
360
+ rev: "rev";
361
361
  }>;
362
362
  }, z.core.$strict>>;
363
363
  }, z.core.$strip>;
@@ -461,21 +461,21 @@ declare const canonicalActionSchema: z.ZodObject<{
461
461
  bigint: "bigint";
462
462
  boolean: "boolean";
463
463
  date: "date";
464
- text: "text";
465
- timestamptz: "timestamptz";
466
- jsonb: "jsonb";
467
464
  uuid: "uuid";
465
+ text: "text";
468
466
  integer: "integer";
469
467
  numeric: "numeric";
470
468
  double: "double";
469
+ timestamptz: "timestamptz";
470
+ jsonb: "jsonb";
471
471
  }>;
472
472
  nullable: z.ZodDefault<z.ZodBoolean>;
473
473
  }, z.core.$strip>>>;
474
474
  executes: z.ZodString;
475
475
  returns: z.ZodDefault<z.ZodEnum<{
476
476
  rows: "rows";
477
- rowsAffected: "rowsAffected";
478
477
  scalar: "scalar";
478
+ rowsAffected: "rowsAffected";
479
479
  }>>;
480
480
  audit: z.ZodOptional<z.ZodObject<{
481
481
  action: z.ZodString;
@@ -541,13 +541,13 @@ declare const canonicalTableSchema: z.ZodObject<{
541
541
  bigint: "bigint";
542
542
  boolean: "boolean";
543
543
  date: "date";
544
- text: "text";
545
- timestamptz: "timestamptz";
546
- jsonb: "jsonb";
547
544
  uuid: "uuid";
545
+ text: "text";
548
546
  integer: "integer";
549
547
  numeric: "numeric";
550
548
  double: "double";
549
+ timestamptz: "timestamptz";
550
+ jsonb: "jsonb";
551
551
  }>, z.ZodObject<{
552
552
  enum: z.ZodString;
553
553
  }, z.core.$strip>]>;
@@ -569,10 +569,10 @@ declare const canonicalTableSchema: z.ZodObject<{
569
569
  of: z.ZodString;
570
570
  part: z.ZodEnum<{
571
571
  at: "at";
572
- by: "by";
573
- rev: "rev";
574
572
  source: "source";
573
+ by: "by";
575
574
  conflicts: "conflicts";
575
+ rev: "rev";
576
576
  }>;
577
577
  }, z.core.$strict>>;
578
578
  }, z.core.$strip>>>;
@@ -656,21 +656,21 @@ declare const canonicalTableSchema: z.ZodObject<{
656
656
  bigint: "bigint";
657
657
  boolean: "boolean";
658
658
  date: "date";
659
- text: "text";
660
- timestamptz: "timestamptz";
661
- jsonb: "jsonb";
662
659
  uuid: "uuid";
660
+ text: "text";
663
661
  integer: "integer";
664
662
  numeric: "numeric";
665
663
  double: "double";
664
+ timestamptz: "timestamptz";
665
+ jsonb: "jsonb";
666
666
  }>;
667
667
  nullable: z.ZodDefault<z.ZodBoolean>;
668
668
  }, z.core.$strip>>>;
669
669
  executes: z.ZodString;
670
670
  returns: z.ZodDefault<z.ZodEnum<{
671
671
  rows: "rows";
672
- rowsAffected: "rowsAffected";
673
672
  scalar: "scalar";
673
+ rowsAffected: "rowsAffected";
674
674
  }>>;
675
675
  audit: z.ZodOptional<z.ZodObject<{
676
676
  action: z.ZodString;
@@ -727,13 +727,13 @@ declare const canonicalViewSchema: z.ZodObject<{
727
727
  bigint: "bigint";
728
728
  boolean: "boolean";
729
729
  date: "date";
730
- text: "text";
731
- timestamptz: "timestamptz";
732
- jsonb: "jsonb";
733
730
  uuid: "uuid";
731
+ text: "text";
734
732
  integer: "integer";
735
733
  numeric: "numeric";
736
734
  double: "double";
735
+ timestamptz: "timestamptz";
736
+ jsonb: "jsonb";
737
737
  }>, z.ZodObject<{
738
738
  enum: z.ZodString;
739
739
  }, z.core.$strip>]>;
@@ -755,10 +755,10 @@ declare const canonicalViewSchema: z.ZodObject<{
755
755
  of: z.ZodString;
756
756
  part: z.ZodEnum<{
757
757
  at: "at";
758
- by: "by";
759
- rev: "rev";
760
758
  source: "source";
759
+ by: "by";
761
760
  conflicts: "conflicts";
761
+ rev: "rev";
762
762
  }>;
763
763
  }, z.core.$strict>>;
764
764
  }, z.core.$strip>>;
@@ -807,9 +807,9 @@ declare const canonicalViewSchema: z.ZodObject<{
807
807
  sources: z.ZodArray<z.ZodObject<{
808
808
  name: z.ZodString;
809
809
  kind: z.ZodEnum<{
810
+ prefetch: "prefetch";
810
811
  manual: "manual";
811
812
  etl: "etl";
812
- prefetch: "prefetch";
813
813
  }>;
814
814
  table: z.ZodString;
815
815
  columns: z.ZodArray<z.ZodString>;
@@ -949,13 +949,13 @@ declare const localDefinitionSchema: z.ZodObject<{
949
949
  bigint: "bigint";
950
950
  boolean: "boolean";
951
951
  date: "date";
952
- text: "text";
953
- timestamptz: "timestamptz";
954
- jsonb: "jsonb";
955
952
  uuid: "uuid";
953
+ text: "text";
956
954
  integer: "integer";
957
955
  numeric: "numeric";
958
956
  double: "double";
957
+ timestamptz: "timestamptz";
958
+ jsonb: "jsonb";
959
959
  }>, z.ZodObject<{
960
960
  enum: z.ZodString;
961
961
  }, z.core.$strip>]>;
@@ -977,10 +977,10 @@ declare const localDefinitionSchema: z.ZodObject<{
977
977
  of: z.ZodString;
978
978
  part: z.ZodEnum<{
979
979
  at: "at";
980
- by: "by";
981
- rev: "rev";
982
980
  source: "source";
981
+ by: "by";
983
982
  conflicts: "conflicts";
983
+ rev: "rev";
984
984
  }>;
985
985
  }, z.core.$strict>>;
986
986
  }, z.core.$strip>>>;
@@ -1064,21 +1064,21 @@ declare const localDefinitionSchema: z.ZodObject<{
1064
1064
  bigint: "bigint";
1065
1065
  boolean: "boolean";
1066
1066
  date: "date";
1067
- text: "text";
1068
- timestamptz: "timestamptz";
1069
- jsonb: "jsonb";
1070
1067
  uuid: "uuid";
1068
+ text: "text";
1071
1069
  integer: "integer";
1072
1070
  numeric: "numeric";
1073
1071
  double: "double";
1072
+ timestamptz: "timestamptz";
1073
+ jsonb: "jsonb";
1074
1074
  }>;
1075
1075
  nullable: z.ZodDefault<z.ZodBoolean>;
1076
1076
  }, z.core.$strip>>>;
1077
1077
  executes: z.ZodString;
1078
1078
  returns: z.ZodDefault<z.ZodEnum<{
1079
1079
  rows: "rows";
1080
- rowsAffected: "rowsAffected";
1081
1080
  scalar: "scalar";
1081
+ rowsAffected: "rowsAffected";
1082
1082
  }>>;
1083
1083
  audit: z.ZodOptional<z.ZodObject<{
1084
1084
  action: z.ZodString;
@@ -1134,13 +1134,13 @@ declare const localDefinitionSchema: z.ZodObject<{
1134
1134
  bigint: "bigint";
1135
1135
  boolean: "boolean";
1136
1136
  date: "date";
1137
- text: "text";
1138
- timestamptz: "timestamptz";
1139
- jsonb: "jsonb";
1140
1137
  uuid: "uuid";
1138
+ text: "text";
1141
1139
  integer: "integer";
1142
1140
  numeric: "numeric";
1143
1141
  double: "double";
1142
+ timestamptz: "timestamptz";
1143
+ jsonb: "jsonb";
1144
1144
  }>, z.ZodObject<{
1145
1145
  enum: z.ZodString;
1146
1146
  }, z.core.$strip>]>;
@@ -1162,10 +1162,10 @@ declare const localDefinitionSchema: z.ZodObject<{
1162
1162
  of: z.ZodString;
1163
1163
  part: z.ZodEnum<{
1164
1164
  at: "at";
1165
- by: "by";
1166
- rev: "rev";
1167
1165
  source: "source";
1166
+ by: "by";
1168
1167
  conflicts: "conflicts";
1168
+ rev: "rev";
1169
1169
  }>;
1170
1170
  }, z.core.$strict>>;
1171
1171
  }, z.core.$strip>>;
@@ -1214,9 +1214,9 @@ declare const localDefinitionSchema: z.ZodObject<{
1214
1214
  sources: z.ZodArray<z.ZodObject<{
1215
1215
  name: z.ZodString;
1216
1216
  kind: z.ZodEnum<{
1217
+ prefetch: "prefetch";
1217
1218
  manual: "manual";
1218
1219
  etl: "etl";
1219
- prefetch: "prefetch";
1220
1220
  }>;
1221
1221
  table: z.ZodString;
1222
1222
  columns: z.ZodArray<z.ZodString>;
@@ -1339,13 +1339,13 @@ declare const canonicalDefinitionSchema: z.ZodObject<{
1339
1339
  bigint: "bigint";
1340
1340
  boolean: "boolean";
1341
1341
  date: "date";
1342
- text: "text";
1343
- timestamptz: "timestamptz";
1344
- jsonb: "jsonb";
1345
1342
  uuid: "uuid";
1343
+ text: "text";
1346
1344
  integer: "integer";
1347
1345
  numeric: "numeric";
1348
1346
  double: "double";
1347
+ timestamptz: "timestamptz";
1348
+ jsonb: "jsonb";
1349
1349
  }>, z.ZodObject<{
1350
1350
  enum: z.ZodString;
1351
1351
  }, z.core.$strip>]>;
@@ -1367,10 +1367,10 @@ declare const canonicalDefinitionSchema: z.ZodObject<{
1367
1367
  of: z.ZodString;
1368
1368
  part: z.ZodEnum<{
1369
1369
  at: "at";
1370
- by: "by";
1371
- rev: "rev";
1372
1370
  source: "source";
1371
+ by: "by";
1373
1372
  conflicts: "conflicts";
1373
+ rev: "rev";
1374
1374
  }>;
1375
1375
  }, z.core.$strict>>;
1376
1376
  }, z.core.$strip>>>;
@@ -1454,21 +1454,21 @@ declare const canonicalDefinitionSchema: z.ZodObject<{
1454
1454
  bigint: "bigint";
1455
1455
  boolean: "boolean";
1456
1456
  date: "date";
1457
- text: "text";
1458
- timestamptz: "timestamptz";
1459
- jsonb: "jsonb";
1460
1457
  uuid: "uuid";
1458
+ text: "text";
1461
1459
  integer: "integer";
1462
1460
  numeric: "numeric";
1463
1461
  double: "double";
1462
+ timestamptz: "timestamptz";
1463
+ jsonb: "jsonb";
1464
1464
  }>;
1465
1465
  nullable: z.ZodDefault<z.ZodBoolean>;
1466
1466
  }, z.core.$strip>>>;
1467
1467
  executes: z.ZodString;
1468
1468
  returns: z.ZodDefault<z.ZodEnum<{
1469
1469
  rows: "rows";
1470
- rowsAffected: "rowsAffected";
1471
1470
  scalar: "scalar";
1471
+ rowsAffected: "rowsAffected";
1472
1472
  }>>;
1473
1473
  audit: z.ZodOptional<z.ZodObject<{
1474
1474
  action: z.ZodString;
@@ -1524,13 +1524,13 @@ declare const canonicalDefinitionSchema: z.ZodObject<{
1524
1524
  bigint: "bigint";
1525
1525
  boolean: "boolean";
1526
1526
  date: "date";
1527
- text: "text";
1528
- timestamptz: "timestamptz";
1529
- jsonb: "jsonb";
1530
1527
  uuid: "uuid";
1528
+ text: "text";
1531
1529
  integer: "integer";
1532
1530
  numeric: "numeric";
1533
1531
  double: "double";
1532
+ timestamptz: "timestamptz";
1533
+ jsonb: "jsonb";
1534
1534
  }>, z.ZodObject<{
1535
1535
  enum: z.ZodString;
1536
1536
  }, z.core.$strip>]>;
@@ -1552,10 +1552,10 @@ declare const canonicalDefinitionSchema: z.ZodObject<{
1552
1552
  of: z.ZodString;
1553
1553
  part: z.ZodEnum<{
1554
1554
  at: "at";
1555
- by: "by";
1556
- rev: "rev";
1557
1555
  source: "source";
1556
+ by: "by";
1558
1557
  conflicts: "conflicts";
1558
+ rev: "rev";
1559
1559
  }>;
1560
1560
  }, z.core.$strict>>;
1561
1561
  }, z.core.$strip>>;
@@ -1604,9 +1604,9 @@ declare const canonicalDefinitionSchema: z.ZodObject<{
1604
1604
  sources: z.ZodArray<z.ZodObject<{
1605
1605
  name: z.ZodString;
1606
1606
  kind: z.ZodEnum<{
1607
+ prefetch: "prefetch";
1607
1608
  manual: "manual";
1608
1609
  etl: "etl";
1609
- prefetch: "prefetch";
1610
1610
  }>;
1611
1611
  table: z.ZodString;
1612
1612
  columns: z.ZodArray<z.ZodString>;
@@ -1728,13 +1728,13 @@ declare const canonicalDefinitionSchema: z.ZodObject<{
1728
1728
  bigint: "bigint";
1729
1729
  boolean: "boolean";
1730
1730
  date: "date";
1731
- text: "text";
1732
- timestamptz: "timestamptz";
1733
- jsonb: "jsonb";
1734
1731
  uuid: "uuid";
1732
+ text: "text";
1735
1733
  integer: "integer";
1736
1734
  numeric: "numeric";
1737
1735
  double: "double";
1736
+ timestamptz: "timestamptz";
1737
+ jsonb: "jsonb";
1738
1738
  }>, z.ZodObject<{
1739
1739
  enum: z.ZodString;
1740
1740
  }, z.core.$strip>]>;
@@ -1756,10 +1756,10 @@ declare const canonicalDefinitionSchema: z.ZodObject<{
1756
1756
  of: z.ZodString;
1757
1757
  part: z.ZodEnum<{
1758
1758
  at: "at";
1759
- by: "by";
1760
- rev: "rev";
1761
1759
  source: "source";
1760
+ by: "by";
1762
1761
  conflicts: "conflicts";
1762
+ rev: "rev";
1763
1763
  }>;
1764
1764
  }, z.core.$strict>>;
1765
1765
  }, z.core.$strip>>>;
@@ -1843,21 +1843,21 @@ declare const canonicalDefinitionSchema: z.ZodObject<{
1843
1843
  bigint: "bigint";
1844
1844
  boolean: "boolean";
1845
1845
  date: "date";
1846
- text: "text";
1847
- timestamptz: "timestamptz";
1848
- jsonb: "jsonb";
1849
1846
  uuid: "uuid";
1847
+ text: "text";
1850
1848
  integer: "integer";
1851
1849
  numeric: "numeric";
1852
1850
  double: "double";
1851
+ timestamptz: "timestamptz";
1852
+ jsonb: "jsonb";
1853
1853
  }>;
1854
1854
  nullable: z.ZodDefault<z.ZodBoolean>;
1855
1855
  }, z.core.$strip>>>;
1856
1856
  executes: z.ZodString;
1857
1857
  returns: z.ZodDefault<z.ZodEnum<{
1858
1858
  rows: "rows";
1859
- rowsAffected: "rowsAffected";
1860
1859
  scalar: "scalar";
1860
+ rowsAffected: "rowsAffected";
1861
1861
  }>>;
1862
1862
  audit: z.ZodOptional<z.ZodObject<{
1863
1863
  action: z.ZodString;
@@ -1913,13 +1913,13 @@ declare const canonicalDefinitionSchema: z.ZodObject<{
1913
1913
  bigint: "bigint";
1914
1914
  boolean: "boolean";
1915
1915
  date: "date";
1916
- text: "text";
1917
- timestamptz: "timestamptz";
1918
- jsonb: "jsonb";
1919
1916
  uuid: "uuid";
1917
+ text: "text";
1920
1918
  integer: "integer";
1921
1919
  numeric: "numeric";
1922
1920
  double: "double";
1921
+ timestamptz: "timestamptz";
1922
+ jsonb: "jsonb";
1923
1923
  }>, z.ZodObject<{
1924
1924
  enum: z.ZodString;
1925
1925
  }, z.core.$strip>]>;
@@ -1941,10 +1941,10 @@ declare const canonicalDefinitionSchema: z.ZodObject<{
1941
1941
  of: z.ZodString;
1942
1942
  part: z.ZodEnum<{
1943
1943
  at: "at";
1944
- by: "by";
1945
- rev: "rev";
1946
1944
  source: "source";
1945
+ by: "by";
1947
1946
  conflicts: "conflicts";
1947
+ rev: "rev";
1948
1948
  }>;
1949
1949
  }, z.core.$strict>>;
1950
1950
  }, z.core.$strip>>;
@@ -1993,9 +1993,9 @@ declare const canonicalDefinitionSchema: z.ZodObject<{
1993
1993
  sources: z.ZodArray<z.ZodObject<{
1994
1994
  name: z.ZodString;
1995
1995
  kind: z.ZodEnum<{
1996
+ prefetch: "prefetch";
1996
1997
  manual: "manual";
1997
1998
  etl: "etl";
1998
- prefetch: "prefetch";
1999
1999
  }>;
2000
2000
  table: z.ZodString;
2001
2001
  columns: z.ZodArray<z.ZodString>;