@valbuild/shared 0.67.1 → 0.68.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.
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
- import { type ModuleFilePath, type PatchId } from "@valbuild/core";
3
- declare const PatchId: z.ZodEffects<z.ZodString, PatchId, string>;
2
+ import { type ModuleFilePath } from "@valbuild/core";
4
3
  declare const ModuleFilePath: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
5
4
  declare const cookies: z.ZodUnion<[z.ZodLiteral<"val_session">, z.ZodLiteral<"val_enable">, z.ZodLiteral<"val_state">]>;
6
5
  type Cookies = z.infer<typeof cookies>;
@@ -1165,7 +1164,7 @@ export declare const Api: {
1165
1164
  type: z.ZodUnion<[z.ZodLiteral<"request-again">, z.ZodLiteral<"no-change">, z.ZodLiteral<"did-change">]>;
1166
1165
  baseSha: z.ZodString;
1167
1166
  schemaSha: z.ZodString;
1168
- patches: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
1167
+ patches: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
1169
1168
  config: z.ZodObject<{
1170
1169
  project: z.ZodOptional<z.ZodString>;
1171
1170
  root: z.ZodOptional<z.ZodString>;
@@ -1199,7 +1198,7 @@ export declare const Api: {
1199
1198
  type: "request-again" | "no-change" | "did-change";
1200
1199
  schemaSha: string;
1201
1200
  baseSha: string;
1202
- patches: PatchId[];
1201
+ patches: import("@valbuild/core").PatchId[];
1203
1202
  config: {
1204
1203
  project?: string | undefined;
1205
1204
  root?: string | undefined;
@@ -1230,7 +1229,7 @@ export declare const Api: {
1230
1229
  baseSha: z.ZodString;
1231
1230
  schemaSha: z.ZodString;
1232
1231
  commitSha: z.ZodString;
1233
- patches: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
1232
+ patches: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
1234
1233
  config: z.ZodObject<{
1235
1234
  project: z.ZodOptional<z.ZodString>;
1236
1235
  root: z.ZodOptional<z.ZodString>;
@@ -1264,7 +1263,7 @@ export declare const Api: {
1264
1263
  type: "use-websocket";
1265
1264
  schemaSha: string;
1266
1265
  baseSha: string;
1267
- patches: PatchId[];
1266
+ patches: import("@valbuild/core").PatchId[];
1268
1267
  config: {
1269
1268
  project?: string | undefined;
1270
1269
  root?: string | undefined;
@@ -1301,7 +1300,7 @@ export declare const Api: {
1301
1300
  type: "request-again" | "no-change" | "did-change";
1302
1301
  schemaSha: string;
1303
1302
  baseSha: string;
1304
- patches: PatchId[];
1303
+ patches: import("@valbuild/core").PatchId[];
1305
1304
  config: {
1306
1305
  project?: string | undefined;
1307
1306
  root?: string | undefined;
@@ -1315,7 +1314,7 @@ export declare const Api: {
1315
1314
  type: "use-websocket";
1316
1315
  schemaSha: string;
1317
1316
  baseSha: string;
1318
- patches: PatchId[];
1317
+ patches: import("@valbuild/core").PatchId[];
1319
1318
  config: {
1320
1319
  project?: string | undefined;
1321
1320
  root?: string | undefined;
@@ -1366,11 +1365,11 @@ export declare const Api: {
1366
1365
  }>]>;
1367
1366
  };
1368
1367
  };
1369
- "/patches/~": {
1368
+ "/patches": {
1370
1369
  DELETE: {
1371
1370
  req: {
1372
1371
  query: {
1373
- id: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
1372
+ id: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
1374
1373
  };
1375
1374
  cookies: {
1376
1375
  val_session: z.ZodOptional<z.ZodString>;
@@ -1399,56 +1398,337 @@ export declare const Api: {
1399
1398
  status: z.ZodLiteral<500>;
1400
1399
  json: z.ZodObject<{
1401
1400
  message: z.ZodString;
1402
- details: z.ZodRecord<z.ZodEffects<z.ZodString, PatchId, string>, z.ZodObject<{
1401
+ errors: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1402
+ patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
1403
1403
  message: z.ZodString;
1404
1404
  }, "strip", z.ZodTypeAny, {
1405
1405
  message: string;
1406
+ patchId: string & {
1407
+ VAL_DATA_TYPE: "PatchId";
1408
+ };
1406
1409
  }, {
1407
1410
  message: string;
1408
- }>>;
1411
+ patchId: string;
1412
+ }>, z.ZodObject<{
1413
+ parentPatchId: z.ZodString;
1414
+ message: z.ZodString;
1415
+ }, "strip", z.ZodTypeAny, {
1416
+ message: string;
1417
+ parentPatchId: string;
1418
+ }, {
1419
+ message: string;
1420
+ parentPatchId: string;
1421
+ }>]>, "many">;
1409
1422
  }, "strip", z.ZodTypeAny, {
1410
1423
  message: string;
1411
- details: Partial<Record<PatchId, {
1424
+ errors: ({
1412
1425
  message: string;
1413
- }>>;
1426
+ patchId: string & {
1427
+ VAL_DATA_TYPE: "PatchId";
1428
+ };
1429
+ } | {
1430
+ message: string;
1431
+ parentPatchId: string;
1432
+ })[];
1414
1433
  }, {
1415
1434
  message: string;
1416
- details: Record<string, {
1435
+ errors: ({
1417
1436
  message: string;
1418
- }>;
1437
+ patchId: string;
1438
+ } | {
1439
+ message: string;
1440
+ parentPatchId: string;
1441
+ })[];
1419
1442
  }>;
1420
1443
  }, "strip", z.ZodTypeAny, {
1421
1444
  status: 500;
1422
1445
  json: {
1423
1446
  message: string;
1424
- details: Partial<Record<PatchId, {
1447
+ errors: ({
1425
1448
  message: string;
1426
- }>>;
1449
+ patchId: string & {
1450
+ VAL_DATA_TYPE: "PatchId";
1451
+ };
1452
+ } | {
1453
+ message: string;
1454
+ parentPatchId: string;
1455
+ })[];
1427
1456
  };
1428
1457
  }, {
1429
1458
  status: 500;
1430
1459
  json: {
1431
1460
  message: string;
1432
- details: Record<string, {
1461
+ errors: ({
1433
1462
  message: string;
1434
- }>;
1463
+ patchId: string;
1464
+ } | {
1465
+ message: string;
1466
+ parentPatchId: string;
1467
+ })[];
1435
1468
  };
1436
1469
  }>, z.ZodObject<{
1437
1470
  status: z.ZodLiteral<200>;
1438
- json: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
1471
+ json: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
1439
1472
  }, "strip", z.ZodTypeAny, {
1440
1473
  status: 200;
1441
- json: PatchId[];
1474
+ json: import("@valbuild/core").PatchId[];
1442
1475
  }, {
1443
1476
  status: 200;
1444
1477
  json: string[];
1445
1478
  }>]>;
1446
1479
  };
1480
+ PUT: {
1481
+ req: {
1482
+ body: z.ZodObject<{
1483
+ parentRef: z.ZodUnion<[z.ZodObject<{
1484
+ type: z.ZodLiteral<"head">;
1485
+ headBaseSha: z.ZodString;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ type: "head";
1488
+ headBaseSha: string;
1489
+ }, {
1490
+ type: "head";
1491
+ headBaseSha: string;
1492
+ }>, z.ZodObject<{
1493
+ type: z.ZodLiteral<"patch">;
1494
+ patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
1495
+ }, "strip", z.ZodTypeAny, {
1496
+ type: "patch";
1497
+ patchId: string & {
1498
+ VAL_DATA_TYPE: "PatchId";
1499
+ };
1500
+ }, {
1501
+ type: "patch";
1502
+ patchId: string;
1503
+ }>]>;
1504
+ patches: z.ZodArray<z.ZodObject<{
1505
+ path: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
1506
+ patch: z.ZodType<import("@valbuild/core/patch").Patch, z.ZodTypeDef, import("@valbuild/core/patch").Patch>;
1507
+ }, "strip", z.ZodTypeAny, {
1508
+ path: string & {
1509
+ VAL_DATA_TYPE: "ModuleFilePath";
1510
+ };
1511
+ patch: import("@valbuild/core/patch").Patch;
1512
+ }, {
1513
+ path: string;
1514
+ patch: import("@valbuild/core/patch").Patch;
1515
+ }>, "many">;
1516
+ }, "strip", z.ZodTypeAny, {
1517
+ patches: {
1518
+ path: string & {
1519
+ VAL_DATA_TYPE: "ModuleFilePath";
1520
+ };
1521
+ patch: import("@valbuild/core/patch").Patch;
1522
+ }[];
1523
+ parentRef: {
1524
+ type: "head";
1525
+ headBaseSha: string;
1526
+ } | {
1527
+ type: "patch";
1528
+ patchId: string & {
1529
+ VAL_DATA_TYPE: "PatchId";
1530
+ };
1531
+ };
1532
+ }, {
1533
+ patches: {
1534
+ path: string;
1535
+ patch: import("@valbuild/core/patch").Patch;
1536
+ }[];
1537
+ parentRef: {
1538
+ type: "head";
1539
+ headBaseSha: string;
1540
+ } | {
1541
+ type: "patch";
1542
+ patchId: string;
1543
+ };
1544
+ }>;
1545
+ cookies: {
1546
+ val_session: z.ZodOptional<z.ZodString>;
1547
+ };
1548
+ };
1549
+ res: z.ZodUnion<[z.ZodObject<{
1550
+ status: z.ZodLiteral<401>;
1551
+ json: z.ZodObject<{
1552
+ message: z.ZodString;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ message: string;
1555
+ }, {
1556
+ message: string;
1557
+ }>;
1558
+ }, "strip", z.ZodTypeAny, {
1559
+ status: 401;
1560
+ json: {
1561
+ message: string;
1562
+ };
1563
+ }, {
1564
+ status: 401;
1565
+ json: {
1566
+ message: string;
1567
+ };
1568
+ }>, z.ZodObject<{
1569
+ status: z.ZodLiteral<409>;
1570
+ json: z.ZodObject<{
1571
+ type: z.ZodLiteral<"patch-head-conflict">;
1572
+ message: z.ZodString;
1573
+ }, "strip", z.ZodTypeAny, {
1574
+ message: string;
1575
+ type: "patch-head-conflict";
1576
+ }, {
1577
+ message: string;
1578
+ type: "patch-head-conflict";
1579
+ }>;
1580
+ }, "strip", z.ZodTypeAny, {
1581
+ status: 409;
1582
+ json: {
1583
+ message: string;
1584
+ type: "patch-head-conflict";
1585
+ };
1586
+ }, {
1587
+ status: 409;
1588
+ json: {
1589
+ message: string;
1590
+ type: "patch-head-conflict";
1591
+ };
1592
+ }>, z.ZodObject<{
1593
+ status: z.ZodLiteral<400>;
1594
+ json: z.ZodObject<{
1595
+ type: z.ZodLiteral<"patch-error">;
1596
+ message: z.ZodString;
1597
+ errors: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodArray<z.ZodObject<{
1598
+ error: z.ZodObject<{
1599
+ message: z.ZodString;
1600
+ }, "strip", z.ZodTypeAny, {
1601
+ message: string;
1602
+ }, {
1603
+ message: string;
1604
+ }>;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ error: {
1607
+ message: string;
1608
+ };
1609
+ }, {
1610
+ error: {
1611
+ message: string;
1612
+ };
1613
+ }>, "many">>;
1614
+ }, "strip", z.ZodTypeAny, {
1615
+ message: string;
1616
+ type: "patch-error";
1617
+ errors: Partial<Record<ModuleFilePath, {
1618
+ error: {
1619
+ message: string;
1620
+ };
1621
+ }[]>>;
1622
+ }, {
1623
+ message: string;
1624
+ type: "patch-error";
1625
+ errors: Record<string, {
1626
+ error: {
1627
+ message: string;
1628
+ };
1629
+ }[]>;
1630
+ }>;
1631
+ }, "strip", z.ZodTypeAny, {
1632
+ status: 400;
1633
+ json: {
1634
+ message: string;
1635
+ type: "patch-error";
1636
+ errors: Partial<Record<ModuleFilePath, {
1637
+ error: {
1638
+ message: string;
1639
+ };
1640
+ }[]>>;
1641
+ };
1642
+ }, {
1643
+ status: 400;
1644
+ json: {
1645
+ message: string;
1646
+ type: "patch-error";
1647
+ errors: Record<string, {
1648
+ error: {
1649
+ message: string;
1650
+ };
1651
+ }[]>;
1652
+ };
1653
+ }>, z.ZodObject<{
1654
+ status: z.ZodLiteral<200>;
1655
+ json: z.ZodObject<{
1656
+ newPatchIds: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
1657
+ parentRef: z.ZodUnion<[z.ZodObject<{
1658
+ type: z.ZodLiteral<"head">;
1659
+ headBaseSha: z.ZodString;
1660
+ }, "strip", z.ZodTypeAny, {
1661
+ type: "head";
1662
+ headBaseSha: string;
1663
+ }, {
1664
+ type: "head";
1665
+ headBaseSha: string;
1666
+ }>, z.ZodObject<{
1667
+ type: z.ZodLiteral<"patch">;
1668
+ patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
1669
+ }, "strip", z.ZodTypeAny, {
1670
+ type: "patch";
1671
+ patchId: string & {
1672
+ VAL_DATA_TYPE: "PatchId";
1673
+ };
1674
+ }, {
1675
+ type: "patch";
1676
+ patchId: string;
1677
+ }>]>;
1678
+ }, "strip", z.ZodTypeAny, {
1679
+ parentRef: {
1680
+ type: "head";
1681
+ headBaseSha: string;
1682
+ } | {
1683
+ type: "patch";
1684
+ patchId: string & {
1685
+ VAL_DATA_TYPE: "PatchId";
1686
+ };
1687
+ };
1688
+ newPatchIds: import("@valbuild/core").PatchId[];
1689
+ }, {
1690
+ parentRef: {
1691
+ type: "head";
1692
+ headBaseSha: string;
1693
+ } | {
1694
+ type: "patch";
1695
+ patchId: string;
1696
+ };
1697
+ newPatchIds: string[];
1698
+ }>;
1699
+ }, "strip", z.ZodTypeAny, {
1700
+ status: 200;
1701
+ json: {
1702
+ parentRef: {
1703
+ type: "head";
1704
+ headBaseSha: string;
1705
+ } | {
1706
+ type: "patch";
1707
+ patchId: string & {
1708
+ VAL_DATA_TYPE: "PatchId";
1709
+ };
1710
+ };
1711
+ newPatchIds: import("@valbuild/core").PatchId[];
1712
+ };
1713
+ }, {
1714
+ status: 200;
1715
+ json: {
1716
+ parentRef: {
1717
+ type: "head";
1718
+ headBaseSha: string;
1719
+ } | {
1720
+ type: "patch";
1721
+ patchId: string;
1722
+ };
1723
+ newPatchIds: string[];
1724
+ };
1725
+ }>]>;
1726
+ };
1447
1727
  GET: {
1448
1728
  req: {
1449
1729
  query: {
1450
1730
  author: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1451
- patch_id: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">>;
1731
+ patch_id: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">>;
1452
1732
  module_file_path: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, ModuleFilePath, string>, "many">>;
1453
1733
  omit_patch: z.ZodOptional<z.ZodBoolean>;
1454
1734
  };
@@ -1479,46 +1759,119 @@ export declare const Api: {
1479
1759
  status: z.ZodLiteral<500>;
1480
1760
  json: z.ZodObject<{
1481
1761
  message: z.ZodString;
1482
- details: z.ZodRecord<z.ZodEffects<z.ZodString, PatchId, string>, z.ZodObject<{
1762
+ patchErrors: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1763
+ patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
1483
1764
  message: z.ZodString;
1484
1765
  }, "strip", z.ZodTypeAny, {
1485
1766
  message: string;
1767
+ patchId: string & {
1768
+ VAL_DATA_TYPE: "PatchId";
1769
+ };
1486
1770
  }, {
1487
1771
  message: string;
1488
- }>>;
1772
+ patchId: string;
1773
+ }>, z.ZodObject<{
1774
+ parentPatchId: z.ZodString;
1775
+ message: z.ZodString;
1776
+ }, "strip", z.ZodTypeAny, {
1777
+ message: string;
1778
+ parentPatchId: string;
1779
+ }, {
1780
+ message: string;
1781
+ parentPatchId: string;
1782
+ }>]>, "many">;
1489
1783
  }, "strip", z.ZodTypeAny, {
1490
1784
  message: string;
1491
- details: Partial<Record<PatchId, {
1785
+ patchErrors: ({
1492
1786
  message: string;
1493
- }>>;
1787
+ patchId: string & {
1788
+ VAL_DATA_TYPE: "PatchId";
1789
+ };
1790
+ } | {
1791
+ message: string;
1792
+ parentPatchId: string;
1793
+ })[];
1494
1794
  }, {
1495
1795
  message: string;
1496
- details: Record<string, {
1796
+ patchErrors: ({
1497
1797
  message: string;
1498
- }>;
1798
+ patchId: string;
1799
+ } | {
1800
+ message: string;
1801
+ parentPatchId: string;
1802
+ })[];
1499
1803
  }>;
1500
1804
  }, "strip", z.ZodTypeAny, {
1501
1805
  status: 500;
1502
1806
  json: {
1503
1807
  message: string;
1504
- details: Partial<Record<PatchId, {
1808
+ patchErrors: ({
1505
1809
  message: string;
1506
- }>>;
1810
+ patchId: string & {
1811
+ VAL_DATA_TYPE: "PatchId";
1812
+ };
1813
+ } | {
1814
+ message: string;
1815
+ parentPatchId: string;
1816
+ })[];
1507
1817
  };
1508
1818
  }, {
1509
1819
  status: 500;
1510
1820
  json: {
1511
1821
  message: string;
1512
- details: Record<string, {
1822
+ patchErrors: ({
1823
+ message: string;
1824
+ patchId: string;
1825
+ } | {
1826
+ message: string;
1827
+ parentPatchId: string;
1828
+ })[];
1829
+ };
1830
+ }>, z.ZodObject<{
1831
+ status: z.ZodLiteral<500>;
1832
+ json: z.ZodObject<{
1833
+ message: z.ZodString;
1834
+ error: z.ZodObject<{
1835
+ message: z.ZodString;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ message: string;
1838
+ }, {
1513
1839
  message: string;
1514
1840
  }>;
1841
+ }, "strip", z.ZodTypeAny, {
1842
+ message: string;
1843
+ error: {
1844
+ message: string;
1845
+ };
1846
+ }, {
1847
+ message: string;
1848
+ error: {
1849
+ message: string;
1850
+ };
1851
+ }>;
1852
+ }, "strip", z.ZodTypeAny, {
1853
+ status: 500;
1854
+ json: {
1855
+ message: string;
1856
+ error: {
1857
+ message: string;
1858
+ };
1859
+ };
1860
+ }, {
1861
+ status: 500;
1862
+ json: {
1863
+ message: string;
1864
+ error: {
1865
+ message: string;
1866
+ };
1515
1867
  };
1516
1868
  }>, z.ZodObject<{
1517
1869
  status: z.ZodLiteral<200>;
1518
1870
  json: z.ZodObject<{
1519
- patches: z.ZodRecord<z.ZodEffects<z.ZodString, PatchId, string>, z.ZodObject<{
1871
+ patches: z.ZodArray<z.ZodObject<{
1520
1872
  path: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
1521
1873
  patch: z.ZodOptional<z.ZodType<import("@valbuild/core/patch").Patch, z.ZodTypeDef, import("@valbuild/core/patch").Patch>>;
1874
+ patchId: z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>;
1522
1875
  createdAt: z.ZodString;
1523
1876
  authorId: z.ZodNullable<z.ZodString>;
1524
1877
  appliedAt: z.ZodNullable<z.ZodObject<{
@@ -1548,6 +1901,9 @@ export declare const Api: {
1548
1901
  path: string & {
1549
1902
  VAL_DATA_TYPE: "ModuleFilePath";
1550
1903
  };
1904
+ patchId: string & {
1905
+ VAL_DATA_TYPE: "PatchId";
1906
+ };
1551
1907
  createdAt: string;
1552
1908
  authorId: string | null;
1553
1909
  appliedAt: {
@@ -1560,6 +1916,7 @@ export declare const Api: {
1560
1916
  patch?: import("@valbuild/core/patch").Patch | undefined;
1561
1917
  }, {
1562
1918
  path: string;
1919
+ patchId: string;
1563
1920
  createdAt: string;
1564
1921
  authorId: string | null;
1565
1922
  appliedAt: {
@@ -1570,7 +1927,8 @@ export declare const Api: {
1570
1927
  } | undefined;
1571
1928
  } | null;
1572
1929
  patch?: import("@valbuild/core/patch").Patch | undefined;
1573
- }>>;
1930
+ }>, "many">;
1931
+ baseSha: z.ZodString;
1574
1932
  error: z.ZodOptional<z.ZodObject<{
1575
1933
  message: z.ZodString;
1576
1934
  }, "strip", z.ZodTypeAny, {
@@ -1578,7 +1936,7 @@ export declare const Api: {
1578
1936
  }, {
1579
1937
  message: string;
1580
1938
  }>>;
1581
- errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, PatchId, string>, z.ZodObject<{
1939
+ errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, z.ZodObject<{
1582
1940
  message: z.ZodString;
1583
1941
  }, "strip", z.ZodTypeAny, {
1584
1942
  message: string;
@@ -1586,10 +1944,14 @@ export declare const Api: {
1586
1944
  message: string;
1587
1945
  }>>>;
1588
1946
  }, "strip", z.ZodTypeAny, {
1589
- patches: Partial<Record<PatchId, {
1947
+ baseSha: string;
1948
+ patches: {
1590
1949
  path: string & {
1591
1950
  VAL_DATA_TYPE: "ModuleFilePath";
1592
1951
  };
1952
+ patchId: string & {
1953
+ VAL_DATA_TYPE: "PatchId";
1954
+ };
1593
1955
  createdAt: string;
1594
1956
  authorId: string | null;
1595
1957
  appliedAt: {
@@ -1600,16 +1962,18 @@ export declare const Api: {
1600
1962
  } | undefined;
1601
1963
  } | null;
1602
1964
  patch?: import("@valbuild/core/patch").Patch | undefined;
1603
- }>>;
1965
+ }[];
1966
+ errors?: Partial<Record<import("@valbuild/core").PatchId, {
1967
+ message: string;
1968
+ }>> | undefined;
1604
1969
  error?: {
1605
1970
  message: string;
1606
1971
  } | undefined;
1607
- errors?: Partial<Record<PatchId, {
1608
- message: string;
1609
- }>> | undefined;
1610
1972
  }, {
1611
- patches: Record<string, {
1973
+ baseSha: string;
1974
+ patches: {
1612
1975
  path: string;
1976
+ patchId: string;
1613
1977
  createdAt: string;
1614
1978
  authorId: string | null;
1615
1979
  appliedAt: {
@@ -1620,21 +1984,25 @@ export declare const Api: {
1620
1984
  } | undefined;
1621
1985
  } | null;
1622
1986
  patch?: import("@valbuild/core/patch").Patch | undefined;
1623
- }>;
1624
- error?: {
1625
- message: string;
1626
- } | undefined;
1987
+ }[];
1627
1988
  errors?: Record<string, {
1628
1989
  message: string;
1629
1990
  }> | undefined;
1991
+ error?: {
1992
+ message: string;
1993
+ } | undefined;
1630
1994
  }>;
1631
1995
  }, "strip", z.ZodTypeAny, {
1632
1996
  status: 200;
1633
1997
  json: {
1634
- patches: Partial<Record<PatchId, {
1998
+ baseSha: string;
1999
+ patches: {
1635
2000
  path: string & {
1636
2001
  VAL_DATA_TYPE: "ModuleFilePath";
1637
2002
  };
2003
+ patchId: string & {
2004
+ VAL_DATA_TYPE: "PatchId";
2005
+ };
1638
2006
  createdAt: string;
1639
2007
  authorId: string | null;
1640
2008
  appliedAt: {
@@ -1645,19 +2013,21 @@ export declare const Api: {
1645
2013
  } | undefined;
1646
2014
  } | null;
1647
2015
  patch?: import("@valbuild/core/patch").Patch | undefined;
1648
- }>>;
2016
+ }[];
2017
+ errors?: Partial<Record<import("@valbuild/core").PatchId, {
2018
+ message: string;
2019
+ }>> | undefined;
1649
2020
  error?: {
1650
2021
  message: string;
1651
2022
  } | undefined;
1652
- errors?: Partial<Record<PatchId, {
1653
- message: string;
1654
- }>> | undefined;
1655
2023
  };
1656
2024
  }, {
1657
2025
  status: 200;
1658
2026
  json: {
1659
- patches: Record<string, {
2027
+ baseSha: string;
2028
+ patches: {
1660
2029
  path: string;
2030
+ patchId: string;
1661
2031
  createdAt: string;
1662
2032
  authorId: string | null;
1663
2033
  appliedAt: {
@@ -1668,13 +2038,13 @@ export declare const Api: {
1668
2038
  } | undefined;
1669
2039
  } | null;
1670
2040
  patch?: import("@valbuild/core/patch").Patch | undefined;
1671
- }>;
1672
- error?: {
1673
- message: string;
1674
- } | undefined;
2041
+ }[];
1675
2042
  errors?: Record<string, {
1676
2043
  message: string;
1677
- }> | undefined;
2044
+ }> | undefined;
2045
+ error?: {
2046
+ message: string;
2047
+ } | undefined;
1678
2048
  };
1679
2049
  }>]>;
1680
2050
  };
@@ -1815,38 +2185,16 @@ export declare const Api: {
1815
2185
  }>]>;
1816
2186
  };
1817
2187
  };
1818
- "/sources": {
2188
+ "/sources/~": {
1819
2189
  PUT: {
1820
2190
  req: {
1821
2191
  path: z.ZodOptional<z.ZodString>;
1822
2192
  body: z.ZodOptional<z.ZodObject<{
1823
- patchIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">>;
1824
- addPatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
1825
- path: z.ZodEffects<z.ZodString, ModuleFilePath, string>;
1826
- patch: z.ZodType<import("@valbuild/core/patch").Patch, z.ZodTypeDef, import("@valbuild/core/patch").Patch>;
1827
- }, "strip", z.ZodTypeAny, {
1828
- path: string & {
1829
- VAL_DATA_TYPE: "ModuleFilePath";
1830
- };
1831
- patch: import("@valbuild/core/patch").Patch;
1832
- }, {
1833
- path: string;
1834
- patch: import("@valbuild/core/patch").Patch;
1835
- }>, "many">>;
2193
+ patchIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">>;
1836
2194
  }, "strip", z.ZodTypeAny, {
1837
- patchIds?: PatchId[] | undefined;
1838
- addPatches?: {
1839
- path: string & {
1840
- VAL_DATA_TYPE: "ModuleFilePath";
1841
- };
1842
- patch: import("@valbuild/core/patch").Patch;
1843
- }[] | undefined;
2195
+ patchIds?: import("@valbuild/core").PatchId[] | undefined;
1844
2196
  }, {
1845
2197
  patchIds?: string[] | undefined;
1846
- addPatches?: {
1847
- path: string;
1848
- patch: import("@valbuild/core/patch").Patch;
1849
- }[] | undefined;
1850
2198
  }>>;
1851
2199
  query: {
1852
2200
  validate_all: z.ZodOptional<z.ZodBoolean>;
@@ -1895,25 +2243,6 @@ export declare const Api: {
1895
2243
  json: {
1896
2244
  message: string;
1897
2245
  };
1898
- }>, z.ZodObject<{
1899
- status: z.ZodLiteral<409>;
1900
- json: z.ZodObject<{
1901
- message: z.ZodString;
1902
- }, "strip", z.ZodTypeAny, {
1903
- message: string;
1904
- }, {
1905
- message: string;
1906
- }>;
1907
- }, "strip", z.ZodTypeAny, {
1908
- status: 409;
1909
- json: {
1910
- message: string;
1911
- };
1912
- }, {
1913
- status: 409;
1914
- json: {
1915
- message: string;
1916
- };
1917
2246
  }>, z.ZodObject<{
1918
2247
  status: z.ZodLiteral<500>;
1919
2248
  json: z.ZodObject<{
@@ -1973,6 +2302,25 @@ export declare const Api: {
1973
2302
  path?: string | undefined;
1974
2303
  }[];
1975
2304
  };
2305
+ }>, z.ZodObject<{
2306
+ status: z.ZodLiteral<409>;
2307
+ json: z.ZodObject<{
2308
+ message: z.ZodString;
2309
+ }, "strip", z.ZodTypeAny, {
2310
+ message: string;
2311
+ }, {
2312
+ message: string;
2313
+ }>;
2314
+ }, "strip", z.ZodTypeAny, {
2315
+ status: 409;
2316
+ json: {
2317
+ message: string;
2318
+ };
2319
+ }, {
2320
+ status: 409;
2321
+ json: {
2322
+ message: string;
2323
+ };
1976
2324
  }>, z.ZodObject<{
1977
2325
  status: z.ZodLiteral<400>;
1978
2326
  json: z.ZodObject<{
@@ -2018,228 +2366,6 @@ export declare const Api: {
2018
2366
  path?: string | undefined;
2019
2367
  }[];
2020
2368
  };
2021
- }>, z.ZodObject<{
2022
- status: z.ZodLiteral<400>;
2023
- json: z.ZodObject<{
2024
- type: z.ZodLiteral<"patch-error">;
2025
- message: z.ZodString;
2026
- schemaSha: z.ZodString;
2027
- modules: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodObject<{
2028
- source: z.ZodAny;
2029
- patches: z.ZodOptional<z.ZodObject<{
2030
- applied: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
2031
- skipped: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">>;
2032
- errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, PatchId, string>, z.ZodObject<{
2033
- message: z.ZodString;
2034
- }, "strip", z.ZodTypeAny, {
2035
- message: string;
2036
- }, {
2037
- message: string;
2038
- }>>>;
2039
- }, "strip", z.ZodTypeAny, {
2040
- applied: PatchId[];
2041
- errors?: Partial<Record<PatchId, {
2042
- message: string;
2043
- }>> | undefined;
2044
- skipped?: PatchId[] | undefined;
2045
- }, {
2046
- applied: string[];
2047
- errors?: Record<string, {
2048
- message: string;
2049
- }> | undefined;
2050
- skipped?: string[] | undefined;
2051
- }>>;
2052
- validationErrors: z.ZodOptional<z.ZodRecord<z.ZodType<import("@valbuild/core").SourcePath, z.ZodTypeDef, unknown>, z.ZodArray<z.ZodObject<{
2053
- message: z.ZodString;
2054
- value: z.ZodOptional<z.ZodUnknown>;
2055
- fatal: z.ZodOptional<z.ZodBoolean>;
2056
- fixes: z.ZodOptional<z.ZodArray<z.ZodType<"image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata", z.ZodTypeDef, "image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata">, "many">>;
2057
- }, "strip", z.ZodTypeAny, {
2058
- message: string;
2059
- value?: unknown;
2060
- fatal?: boolean | undefined;
2061
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2062
- }, {
2063
- message: string;
2064
- value?: unknown;
2065
- fatal?: boolean | undefined;
2066
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2067
- }>, "many">>>;
2068
- }, "strip", z.ZodTypeAny, {
2069
- patches?: {
2070
- applied: PatchId[];
2071
- errors?: Partial<Record<PatchId, {
2072
- message: string;
2073
- }>> | undefined;
2074
- skipped?: PatchId[] | undefined;
2075
- } | undefined;
2076
- source?: any;
2077
- validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
2078
- message: string;
2079
- value?: unknown;
2080
- fatal?: boolean | undefined;
2081
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2082
- }[]>> | undefined;
2083
- }, {
2084
- patches?: {
2085
- applied: string[];
2086
- errors?: Record<string, {
2087
- message: string;
2088
- }> | undefined;
2089
- skipped?: string[] | undefined;
2090
- } | undefined;
2091
- source?: any;
2092
- validationErrors?: Record<unknown, {
2093
- message: string;
2094
- value?: unknown;
2095
- fatal?: boolean | undefined;
2096
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2097
- }[]> | undefined;
2098
- }>>;
2099
- errors: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodArray<z.ZodObject<{
2100
- patchId: z.ZodEffects<z.ZodString, PatchId, string>;
2101
- skipped: z.ZodBoolean;
2102
- error: z.ZodObject<{
2103
- message: z.ZodString;
2104
- }, "strip", z.ZodTypeAny, {
2105
- message: string;
2106
- }, {
2107
- message: string;
2108
- }>;
2109
- }, "strip", z.ZodTypeAny, {
2110
- error: {
2111
- message: string;
2112
- };
2113
- skipped: boolean;
2114
- patchId: string & {
2115
- VAL_DATA_TYPE: "PatchId";
2116
- };
2117
- }, {
2118
- error: {
2119
- message: string;
2120
- };
2121
- skipped: boolean;
2122
- patchId: string;
2123
- }>, "many">>;
2124
- }, "strip", z.ZodTypeAny, {
2125
- message: string;
2126
- type: "patch-error";
2127
- schemaSha: string;
2128
- errors: Partial<Record<ModuleFilePath, {
2129
- error: {
2130
- message: string;
2131
- };
2132
- skipped: boolean;
2133
- patchId: string & {
2134
- VAL_DATA_TYPE: "PatchId";
2135
- };
2136
- }[]>>;
2137
- modules: Partial<Record<ModuleFilePath, {
2138
- patches?: {
2139
- applied: PatchId[];
2140
- errors?: Partial<Record<PatchId, {
2141
- message: string;
2142
- }>> | undefined;
2143
- skipped?: PatchId[] | undefined;
2144
- } | undefined;
2145
- source?: any;
2146
- validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
2147
- message: string;
2148
- value?: unknown;
2149
- fatal?: boolean | undefined;
2150
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2151
- }[]>> | undefined;
2152
- }>>;
2153
- }, {
2154
- message: string;
2155
- type: "patch-error";
2156
- schemaSha: string;
2157
- errors: Record<string, {
2158
- error: {
2159
- message: string;
2160
- };
2161
- skipped: boolean;
2162
- patchId: string;
2163
- }[]>;
2164
- modules: Record<string, {
2165
- patches?: {
2166
- applied: string[];
2167
- errors?: Record<string, {
2168
- message: string;
2169
- }> | undefined;
2170
- skipped?: string[] | undefined;
2171
- } | undefined;
2172
- source?: any;
2173
- validationErrors?: Record<unknown, {
2174
- message: string;
2175
- value?: unknown;
2176
- fatal?: boolean | undefined;
2177
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2178
- }[]> | undefined;
2179
- }>;
2180
- }>;
2181
- }, "strip", z.ZodTypeAny, {
2182
- status: 400;
2183
- json: {
2184
- message: string;
2185
- type: "patch-error";
2186
- schemaSha: string;
2187
- errors: Partial<Record<ModuleFilePath, {
2188
- error: {
2189
- message: string;
2190
- };
2191
- skipped: boolean;
2192
- patchId: string & {
2193
- VAL_DATA_TYPE: "PatchId";
2194
- };
2195
- }[]>>;
2196
- modules: Partial<Record<ModuleFilePath, {
2197
- patches?: {
2198
- applied: PatchId[];
2199
- errors?: Partial<Record<PatchId, {
2200
- message: string;
2201
- }>> | undefined;
2202
- skipped?: PatchId[] | undefined;
2203
- } | undefined;
2204
- source?: any;
2205
- validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
2206
- message: string;
2207
- value?: unknown;
2208
- fatal?: boolean | undefined;
2209
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2210
- }[]>> | undefined;
2211
- }>>;
2212
- };
2213
- }, {
2214
- status: 400;
2215
- json: {
2216
- message: string;
2217
- type: "patch-error";
2218
- schemaSha: string;
2219
- errors: Record<string, {
2220
- error: {
2221
- message: string;
2222
- };
2223
- skipped: boolean;
2224
- patchId: string;
2225
- }[]>;
2226
- modules: Record<string, {
2227
- patches?: {
2228
- applied: string[];
2229
- errors?: Record<string, {
2230
- message: string;
2231
- }> | undefined;
2232
- skipped?: string[] | undefined;
2233
- } | undefined;
2234
- source?: any;
2235
- validationErrors?: Record<unknown, {
2236
- message: string;
2237
- value?: unknown;
2238
- fatal?: boolean | undefined;
2239
- fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2240
- }[]> | undefined;
2241
- }>;
2242
- };
2243
2369
  }>, z.ZodObject<{
2244
2370
  status: z.ZodLiteral<200>;
2245
2371
  json: z.ZodObject<{
@@ -2247,9 +2373,9 @@ export declare const Api: {
2247
2373
  modules: z.ZodRecord<z.ZodEffects<z.ZodString, ModuleFilePath, string>, z.ZodObject<{
2248
2374
  source: z.ZodAny;
2249
2375
  patches: z.ZodOptional<z.ZodObject<{
2250
- applied: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
2251
- skipped: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">>;
2252
- errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, PatchId, string>, z.ZodObject<{
2376
+ applied: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
2377
+ skipped: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">>;
2378
+ errors: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, z.ZodObject<{
2253
2379
  message: z.ZodString;
2254
2380
  }, "strip", z.ZodTypeAny, {
2255
2381
  message: string;
@@ -2257,11 +2383,11 @@ export declare const Api: {
2257
2383
  message: string;
2258
2384
  }>>>;
2259
2385
  }, "strip", z.ZodTypeAny, {
2260
- applied: PatchId[];
2261
- errors?: Partial<Record<PatchId, {
2386
+ applied: import("@valbuild/core").PatchId[];
2387
+ errors?: Partial<Record<import("@valbuild/core").PatchId, {
2262
2388
  message: string;
2263
2389
  }>> | undefined;
2264
- skipped?: PatchId[] | undefined;
2390
+ skipped?: import("@valbuild/core").PatchId[] | undefined;
2265
2391
  }, {
2266
2392
  applied: string[];
2267
2393
  errors?: Record<string, {
@@ -2287,11 +2413,11 @@ export declare const Api: {
2287
2413
  }>, "many">>>;
2288
2414
  }, "strip", z.ZodTypeAny, {
2289
2415
  patches?: {
2290
- applied: PatchId[];
2291
- errors?: Partial<Record<PatchId, {
2416
+ applied: import("@valbuild/core").PatchId[];
2417
+ errors?: Partial<Record<import("@valbuild/core").PatchId, {
2292
2418
  message: string;
2293
2419
  }>> | undefined;
2294
- skipped?: PatchId[] | undefined;
2420
+ skipped?: import("@valbuild/core").PatchId[] | undefined;
2295
2421
  } | undefined;
2296
2422
  source?: any;
2297
2423
  validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
@@ -2316,16 +2442,15 @@ export declare const Api: {
2316
2442
  fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2317
2443
  }[]> | undefined;
2318
2444
  }>>;
2319
- newPatchIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">>;
2320
2445
  }, "strip", z.ZodTypeAny, {
2321
2446
  schemaSha: string;
2322
2447
  modules: Partial<Record<ModuleFilePath, {
2323
2448
  patches?: {
2324
- applied: PatchId[];
2325
- errors?: Partial<Record<PatchId, {
2449
+ applied: import("@valbuild/core").PatchId[];
2450
+ errors?: Partial<Record<import("@valbuild/core").PatchId, {
2326
2451
  message: string;
2327
2452
  }>> | undefined;
2328
- skipped?: PatchId[] | undefined;
2453
+ skipped?: import("@valbuild/core").PatchId[] | undefined;
2329
2454
  } | undefined;
2330
2455
  source?: any;
2331
2456
  validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
@@ -2335,7 +2460,6 @@ export declare const Api: {
2335
2460
  fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2336
2461
  }[]>> | undefined;
2337
2462
  }>>;
2338
- newPatchIds?: PatchId[] | undefined;
2339
2463
  }, {
2340
2464
  schemaSha: string;
2341
2465
  modules: Record<string, {
@@ -2354,7 +2478,6 @@ export declare const Api: {
2354
2478
  fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2355
2479
  }[]> | undefined;
2356
2480
  }>;
2357
- newPatchIds?: string[] | undefined;
2358
2481
  }>;
2359
2482
  }, "strip", z.ZodTypeAny, {
2360
2483
  status: 200;
@@ -2362,11 +2485,11 @@ export declare const Api: {
2362
2485
  schemaSha: string;
2363
2486
  modules: Partial<Record<ModuleFilePath, {
2364
2487
  patches?: {
2365
- applied: PatchId[];
2366
- errors?: Partial<Record<PatchId, {
2488
+ applied: import("@valbuild/core").PatchId[];
2489
+ errors?: Partial<Record<import("@valbuild/core").PatchId, {
2367
2490
  message: string;
2368
2491
  }>> | undefined;
2369
- skipped?: PatchId[] | undefined;
2492
+ skipped?: import("@valbuild/core").PatchId[] | undefined;
2370
2493
  } | undefined;
2371
2494
  source?: any;
2372
2495
  validationErrors?: Partial<Record<import("@valbuild/core").SourcePath, {
@@ -2376,7 +2499,6 @@ export declare const Api: {
2376
2499
  fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2377
2500
  }[]>> | undefined;
2378
2501
  }>>;
2379
- newPatchIds?: PatchId[] | undefined;
2380
2502
  };
2381
2503
  }, {
2382
2504
  status: 200;
@@ -2398,7 +2520,6 @@ export declare const Api: {
2398
2520
  fixes?: ("image:change-extension" | "image:add-metadata" | "image:check-metadata" | "file:change-extension" | "file:add-metadata" | "file:check-metadata")[] | undefined;
2399
2521
  }[]> | undefined;
2400
2522
  }>;
2401
- newPatchIds?: string[] | undefined;
2402
2523
  };
2403
2524
  }>]>;
2404
2525
  };
@@ -2407,9 +2528,9 @@ export declare const Api: {
2407
2528
  POST: {
2408
2529
  req: {
2409
2530
  body: z.ZodObject<{
2410
- patchIds: z.ZodArray<z.ZodEffects<z.ZodString, PatchId, string>, "many">;
2531
+ patchIds: z.ZodArray<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>, "many">;
2411
2532
  }, "strip", z.ZodTypeAny, {
2412
- patchIds: PatchId[];
2533
+ patchIds: import("@valbuild/core").PatchId[];
2413
2534
  }, {
2414
2535
  patchIds: string[];
2415
2536
  }>;
@@ -2572,7 +2693,7 @@ export declare const Api: {
2572
2693
  req: {
2573
2694
  path: z.ZodString;
2574
2695
  query: {
2575
- patch_id: z.ZodOptional<z.ZodEffects<z.ZodString, PatchId, string>>;
2696
+ patch_id: z.ZodOptional<z.ZodEffects<z.ZodString, import("@valbuild/core").PatchId, string>>;
2576
2697
  };
2577
2698
  };
2578
2699
  res: z.ZodUnion<[z.ZodObject<{