circuit-json 0.0.228 → 0.0.229

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.
package/dist/index.mjs CHANGED
@@ -1526,13 +1526,28 @@ var pcb_port_not_matched_error = z68.object({
1526
1526
  }).describe("Defines a trace error on the PCB where a port is not matched");
1527
1527
  expectTypesMatch(true);
1528
1528
 
1529
- // src/pcb/pcb_via.ts
1529
+ // src/pcb/pcb_port_not_connected_error.ts
1530
1530
  import { z as z69 } from "zod";
1531
- var pcb_via = z69.object({
1532
- type: z69.literal("pcb_via"),
1531
+ var pcb_port_not_connected_error = z69.object({
1532
+ type: z69.literal("pcb_port_not_connected_error"),
1533
+ pcb_error_id: getZodPrefixedIdWithDefault("pcb_port_not_connected_error"),
1534
+ error_type: z69.literal("pcb_port_not_connected_error").default("pcb_port_not_connected_error"),
1535
+ message: z69.string(),
1536
+ pcb_port_ids: z69.array(z69.string()),
1537
+ pcb_component_ids: z69.array(z69.string()),
1538
+ subcircuit_id: z69.string().optional()
1539
+ }).describe("Defines an error when a pcb port is not connected to any trace");
1540
+ expectTypesMatch(
1541
+ true
1542
+ );
1543
+
1544
+ // src/pcb/pcb_via.ts
1545
+ import { z as z70 } from "zod";
1546
+ var pcb_via = z70.object({
1547
+ type: z70.literal("pcb_via"),
1533
1548
  pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
1534
- pcb_group_id: z69.string().optional(),
1535
- subcircuit_id: z69.string().optional(),
1549
+ pcb_group_id: z70.string().optional(),
1550
+ subcircuit_id: z70.string().optional(),
1536
1551
  x: distance,
1537
1552
  y: distance,
1538
1553
  outer_diameter: distance.default("0.6mm"),
@@ -1541,59 +1556,59 @@ var pcb_via = z69.object({
1541
1556
  from_layer: layer_ref.optional(),
1542
1557
  /** @deprecated */
1543
1558
  to_layer: layer_ref.optional(),
1544
- layers: z69.array(layer_ref),
1545
- pcb_trace_id: z69.string().optional()
1559
+ layers: z70.array(layer_ref),
1560
+ pcb_trace_id: z70.string().optional()
1546
1561
  }).describe("Defines a via on the PCB");
1547
1562
  expectTypesMatch(true);
1548
1563
 
1549
1564
  // src/pcb/pcb_board.ts
1550
- import { z as z70 } from "zod";
1551
- var pcb_board = z70.object({
1552
- type: z70.literal("pcb_board"),
1565
+ import { z as z71 } from "zod";
1566
+ var pcb_board = z71.object({
1567
+ type: z71.literal("pcb_board"),
1553
1568
  pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
1554
- is_subcircuit: z70.boolean().optional(),
1555
- subcircuit_id: z70.string().optional(),
1569
+ is_subcircuit: z71.boolean().optional(),
1570
+ subcircuit_id: z71.string().optional(),
1556
1571
  width: length,
1557
1572
  height: length,
1558
1573
  center: point,
1559
1574
  thickness: length.optional().default(1.4),
1560
- num_layers: z70.number().optional().default(4),
1561
- outline: z70.array(point).optional(),
1562
- material: z70.enum(["fr4", "fr1"]).default("fr4")
1575
+ num_layers: z71.number().optional().default(4),
1576
+ outline: z71.array(point).optional(),
1577
+ material: z71.enum(["fr4", "fr1"]).default("fr4")
1563
1578
  }).describe("Defines the board outline of the PCB");
1564
1579
  expectTypesMatch(true);
1565
1580
 
1566
1581
  // src/pcb/pcb_placement_error.ts
1567
- import { z as z71 } from "zod";
1568
- var pcb_placement_error = z71.object({
1569
- type: z71.literal("pcb_placement_error"),
1582
+ import { z as z72 } from "zod";
1583
+ var pcb_placement_error = z72.object({
1584
+ type: z72.literal("pcb_placement_error"),
1570
1585
  pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
1571
- error_type: z71.literal("pcb_placement_error").default("pcb_placement_error"),
1572
- message: z71.string(),
1573
- subcircuit_id: z71.string().optional()
1586
+ error_type: z72.literal("pcb_placement_error").default("pcb_placement_error"),
1587
+ message: z72.string(),
1588
+ subcircuit_id: z72.string().optional()
1574
1589
  }).describe("Defines a placement error on the PCB");
1575
1590
  expectTypesMatch(true);
1576
1591
 
1577
1592
  // src/pcb/pcb_trace_hint.ts
1578
- import { z as z72 } from "zod";
1579
- var pcb_trace_hint = z72.object({
1580
- type: z72.literal("pcb_trace_hint"),
1593
+ import { z as z73 } from "zod";
1594
+ var pcb_trace_hint = z73.object({
1595
+ type: z73.literal("pcb_trace_hint"),
1581
1596
  pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
1582
- pcb_port_id: z72.string(),
1583
- pcb_component_id: z72.string(),
1584
- route: z72.array(route_hint_point),
1585
- subcircuit_id: z72.string().optional()
1597
+ pcb_port_id: z73.string(),
1598
+ pcb_component_id: z73.string(),
1599
+ route: z73.array(route_hint_point),
1600
+ subcircuit_id: z73.string().optional()
1586
1601
  }).describe("A hint that can be used during generation of a PCB trace");
1587
1602
  expectTypesMatch(true);
1588
1603
 
1589
1604
  // src/pcb/pcb_silkscreen_line.ts
1590
- import { z as z73 } from "zod";
1591
- var pcb_silkscreen_line = z73.object({
1592
- type: z73.literal("pcb_silkscreen_line"),
1605
+ import { z as z74 } from "zod";
1606
+ var pcb_silkscreen_line = z74.object({
1607
+ type: z74.literal("pcb_silkscreen_line"),
1593
1608
  pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
1594
- pcb_component_id: z73.string(),
1595
- pcb_group_id: z73.string().optional(),
1596
- subcircuit_id: z73.string().optional(),
1609
+ pcb_component_id: z74.string(),
1610
+ pcb_group_id: z74.string().optional(),
1611
+ subcircuit_id: z74.string().optional(),
1597
1612
  stroke_width: distance.default("0.1mm"),
1598
1613
  x1: distance,
1599
1614
  y1: distance,
@@ -1604,67 +1619,67 @@ var pcb_silkscreen_line = z73.object({
1604
1619
  expectTypesMatch(true);
1605
1620
 
1606
1621
  // src/pcb/pcb_silkscreen_path.ts
1607
- import { z as z74 } from "zod";
1608
- var pcb_silkscreen_path = z74.object({
1609
- type: z74.literal("pcb_silkscreen_path"),
1622
+ import { z as z75 } from "zod";
1623
+ var pcb_silkscreen_path = z75.object({
1624
+ type: z75.literal("pcb_silkscreen_path"),
1610
1625
  pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
1611
- pcb_component_id: z74.string(),
1612
- pcb_group_id: z74.string().optional(),
1613
- subcircuit_id: z74.string().optional(),
1626
+ pcb_component_id: z75.string(),
1627
+ pcb_group_id: z75.string().optional(),
1628
+ subcircuit_id: z75.string().optional(),
1614
1629
  layer: visible_layer,
1615
- route: z74.array(point),
1630
+ route: z75.array(point),
1616
1631
  stroke_width: length
1617
1632
  }).describe("Defines a silkscreen path on the PCB");
1618
1633
  expectTypesMatch(true);
1619
1634
 
1620
1635
  // src/pcb/pcb_silkscreen_text.ts
1621
- import { z as z75 } from "zod";
1622
- var pcb_silkscreen_text = z75.object({
1623
- type: z75.literal("pcb_silkscreen_text"),
1636
+ import { z as z76 } from "zod";
1637
+ var pcb_silkscreen_text = z76.object({
1638
+ type: z76.literal("pcb_silkscreen_text"),
1624
1639
  pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
1625
- pcb_group_id: z75.string().optional(),
1626
- subcircuit_id: z75.string().optional(),
1627
- font: z75.literal("tscircuit2024").default("tscircuit2024"),
1640
+ pcb_group_id: z76.string().optional(),
1641
+ subcircuit_id: z76.string().optional(),
1642
+ font: z76.literal("tscircuit2024").default("tscircuit2024"),
1628
1643
  font_size: distance.default("0.2mm"),
1629
- pcb_component_id: z75.string(),
1630
- text: z75.string(),
1631
- ccw_rotation: z75.number().optional(),
1644
+ pcb_component_id: z76.string(),
1645
+ text: z76.string(),
1646
+ ccw_rotation: z76.number().optional(),
1632
1647
  layer: layer_ref,
1633
- is_mirrored: z75.boolean().default(false).optional(),
1648
+ is_mirrored: z76.boolean().default(false).optional(),
1634
1649
  anchor_position: point.default({ x: 0, y: 0 }),
1635
1650
  anchor_alignment: ninePointAnchor.default("center")
1636
1651
  }).describe("Defines silkscreen text on the PCB");
1637
1652
  expectTypesMatch(true);
1638
1653
 
1639
1654
  // src/pcb/pcb_silkscreen_rect.ts
1640
- import { z as z76 } from "zod";
1641
- var pcb_silkscreen_rect = z76.object({
1642
- type: z76.literal("pcb_silkscreen_rect"),
1655
+ import { z as z77 } from "zod";
1656
+ var pcb_silkscreen_rect = z77.object({
1657
+ type: z77.literal("pcb_silkscreen_rect"),
1643
1658
  pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
1644
- pcb_component_id: z76.string(),
1645
- pcb_group_id: z76.string().optional(),
1646
- subcircuit_id: z76.string().optional(),
1659
+ pcb_component_id: z77.string(),
1660
+ pcb_group_id: z77.string().optional(),
1661
+ subcircuit_id: z77.string().optional(),
1647
1662
  center: point,
1648
1663
  width: length,
1649
1664
  height: length,
1650
1665
  layer: layer_ref,
1651
1666
  stroke_width: length.default("1mm"),
1652
- is_filled: z76.boolean().default(true).optional(),
1653
- has_stroke: z76.boolean().optional(),
1654
- is_stroke_dashed: z76.boolean().optional()
1667
+ is_filled: z77.boolean().default(true).optional(),
1668
+ has_stroke: z77.boolean().optional(),
1669
+ is_stroke_dashed: z77.boolean().optional()
1655
1670
  }).describe("Defines a silkscreen rect on the PCB");
1656
1671
  expectTypesMatch(true);
1657
1672
 
1658
1673
  // src/pcb/pcb_silkscreen_circle.ts
1659
- import { z as z77 } from "zod";
1660
- var pcb_silkscreen_circle = z77.object({
1661
- type: z77.literal("pcb_silkscreen_circle"),
1674
+ import { z as z78 } from "zod";
1675
+ var pcb_silkscreen_circle = z78.object({
1676
+ type: z78.literal("pcb_silkscreen_circle"),
1662
1677
  pcb_silkscreen_circle_id: getZodPrefixedIdWithDefault(
1663
1678
  "pcb_silkscreen_circle"
1664
1679
  ),
1665
- pcb_component_id: z77.string(),
1666
- pcb_group_id: z77.string().optional(),
1667
- subcircuit_id: z77.string().optional(),
1680
+ pcb_component_id: z78.string(),
1681
+ pcb_group_id: z78.string().optional(),
1682
+ subcircuit_id: z78.string().optional(),
1668
1683
  center: point,
1669
1684
  radius: length,
1670
1685
  layer: visible_layer,
@@ -1673,13 +1688,13 @@ var pcb_silkscreen_circle = z77.object({
1673
1688
  expectTypesMatch(true);
1674
1689
 
1675
1690
  // src/pcb/pcb_silkscreen_oval.ts
1676
- import { z as z78 } from "zod";
1677
- var pcb_silkscreen_oval = z78.object({
1678
- type: z78.literal("pcb_silkscreen_oval"),
1691
+ import { z as z79 } from "zod";
1692
+ var pcb_silkscreen_oval = z79.object({
1693
+ type: z79.literal("pcb_silkscreen_oval"),
1679
1694
  pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
1680
- pcb_component_id: z78.string(),
1681
- pcb_group_id: z78.string().optional(),
1682
- subcircuit_id: z78.string().optional(),
1695
+ pcb_component_id: z79.string(),
1696
+ pcb_group_id: z79.string().optional(),
1697
+ subcircuit_id: z79.string().optional(),
1683
1698
  center: point,
1684
1699
  radius_x: distance,
1685
1700
  radius_y: distance,
@@ -1688,103 +1703,103 @@ var pcb_silkscreen_oval = z78.object({
1688
1703
  expectTypesMatch(true);
1689
1704
 
1690
1705
  // src/pcb/pcb_fabrication_note_text.ts
1691
- import { z as z79 } from "zod";
1692
- var pcb_fabrication_note_text = z79.object({
1693
- type: z79.literal("pcb_fabrication_note_text"),
1706
+ import { z as z80 } from "zod";
1707
+ var pcb_fabrication_note_text = z80.object({
1708
+ type: z80.literal("pcb_fabrication_note_text"),
1694
1709
  pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
1695
1710
  "pcb_fabrication_note_text"
1696
1711
  ),
1697
- subcircuit_id: z79.string().optional(),
1698
- pcb_group_id: z79.string().optional(),
1699
- font: z79.literal("tscircuit2024").default("tscircuit2024"),
1712
+ subcircuit_id: z80.string().optional(),
1713
+ pcb_group_id: z80.string().optional(),
1714
+ font: z80.literal("tscircuit2024").default("tscircuit2024"),
1700
1715
  font_size: distance.default("1mm"),
1701
- pcb_component_id: z79.string(),
1702
- text: z79.string(),
1716
+ pcb_component_id: z80.string(),
1717
+ text: z80.string(),
1703
1718
  layer: visible_layer,
1704
1719
  anchor_position: point.default({ x: 0, y: 0 }),
1705
- anchor_alignment: z79.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
1706
- color: z79.string().optional()
1720
+ anchor_alignment: z80.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
1721
+ color: z80.string().optional()
1707
1722
  }).describe(
1708
1723
  "Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
1709
1724
  );
1710
1725
  expectTypesMatch(true);
1711
1726
 
1712
1727
  // src/pcb/pcb_fabrication_note_path.ts
1713
- import { z as z80 } from "zod";
1714
- var pcb_fabrication_note_path = z80.object({
1715
- type: z80.literal("pcb_fabrication_note_path"),
1728
+ import { z as z81 } from "zod";
1729
+ var pcb_fabrication_note_path = z81.object({
1730
+ type: z81.literal("pcb_fabrication_note_path"),
1716
1731
  pcb_fabrication_note_path_id: getZodPrefixedIdWithDefault(
1717
1732
  "pcb_fabrication_note_path"
1718
1733
  ),
1719
- pcb_component_id: z80.string(),
1720
- subcircuit_id: z80.string().optional(),
1734
+ pcb_component_id: z81.string(),
1735
+ subcircuit_id: z81.string().optional(),
1721
1736
  layer: layer_ref,
1722
- route: z80.array(point),
1737
+ route: z81.array(point),
1723
1738
  stroke_width: length,
1724
- color: z80.string().optional()
1739
+ color: z81.string().optional()
1725
1740
  }).describe(
1726
1741
  "Defines a fabrication path on the PCB for fabricators or assemblers"
1727
1742
  );
1728
1743
  expectTypesMatch(true);
1729
1744
 
1730
1745
  // src/pcb/pcb_footprint_overlap_error.ts
1731
- import { z as z81 } from "zod";
1732
- var pcb_footprint_overlap_error = z81.object({
1733
- type: z81.literal("pcb_footprint_overlap_error"),
1746
+ import { z as z82 } from "zod";
1747
+ var pcb_footprint_overlap_error = z82.object({
1748
+ type: z82.literal("pcb_footprint_overlap_error"),
1734
1749
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
1735
- error_type: z81.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
1736
- message: z81.string(),
1737
- pcb_smtpad_ids: z81.array(z81.string()).optional(),
1738
- pcb_plated_hole_ids: z81.array(z81.string()).optional(),
1739
- pcb_hole_ids: z81.array(z81.string()).optional(),
1740
- pcb_keepout_ids: z81.array(z81.string()).optional()
1750
+ error_type: z82.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
1751
+ message: z82.string(),
1752
+ pcb_smtpad_ids: z82.array(z82.string()).optional(),
1753
+ pcb_plated_hole_ids: z82.array(z82.string()).optional(),
1754
+ pcb_hole_ids: z82.array(z82.string()).optional(),
1755
+ pcb_keepout_ids: z82.array(z82.string()).optional()
1741
1756
  }).describe("Error emitted when a pcb footprint overlaps with another element");
1742
1757
  expectTypesMatch(
1743
1758
  true
1744
1759
  );
1745
1760
 
1746
1761
  // src/pcb/pcb_keepout.ts
1747
- import { z as z82 } from "zod";
1748
- var pcb_keepout = z82.object({
1749
- type: z82.literal("pcb_keepout"),
1750
- shape: z82.literal("rect"),
1751
- pcb_group_id: z82.string().optional(),
1752
- subcircuit_id: z82.string().optional(),
1762
+ import { z as z83 } from "zod";
1763
+ var pcb_keepout = z83.object({
1764
+ type: z83.literal("pcb_keepout"),
1765
+ shape: z83.literal("rect"),
1766
+ pcb_group_id: z83.string().optional(),
1767
+ subcircuit_id: z83.string().optional(),
1753
1768
  center: point,
1754
1769
  width: distance,
1755
1770
  height: distance,
1756
- pcb_keepout_id: z82.string(),
1757
- layers: z82.array(z82.string()),
1771
+ pcb_keepout_id: z83.string(),
1772
+ layers: z83.array(z83.string()),
1758
1773
  // Specify layers where the keepout applies
1759
- description: z82.string().optional()
1774
+ description: z83.string().optional()
1760
1775
  // Optional description of the keepout
1761
1776
  }).or(
1762
- z82.object({
1763
- type: z82.literal("pcb_keepout"),
1764
- shape: z82.literal("circle"),
1765
- pcb_group_id: z82.string().optional(),
1766
- subcircuit_id: z82.string().optional(),
1777
+ z83.object({
1778
+ type: z83.literal("pcb_keepout"),
1779
+ shape: z83.literal("circle"),
1780
+ pcb_group_id: z83.string().optional(),
1781
+ subcircuit_id: z83.string().optional(),
1767
1782
  center: point,
1768
1783
  radius: distance,
1769
- pcb_keepout_id: z82.string(),
1770
- layers: z82.array(z82.string()),
1784
+ pcb_keepout_id: z83.string(),
1785
+ layers: z83.array(z83.string()),
1771
1786
  // Specify layers where the keepout applies
1772
- description: z82.string().optional()
1787
+ description: z83.string().optional()
1773
1788
  // Optional description of the keepout
1774
1789
  })
1775
1790
  );
1776
1791
  expectTypesMatch(true);
1777
1792
 
1778
1793
  // src/pcb/pcb_cutout.ts
1779
- import { z as z83 } from "zod";
1780
- var pcb_cutout_base = z83.object({
1781
- type: z83.literal("pcb_cutout"),
1794
+ import { z as z84 } from "zod";
1795
+ var pcb_cutout_base = z84.object({
1796
+ type: z84.literal("pcb_cutout"),
1782
1797
  pcb_cutout_id: getZodPrefixedIdWithDefault("pcb_cutout"),
1783
- pcb_group_id: z83.string().optional(),
1784
- subcircuit_id: z83.string().optional()
1798
+ pcb_group_id: z84.string().optional(),
1799
+ subcircuit_id: z84.string().optional()
1785
1800
  });
1786
1801
  var pcb_cutout_rect = pcb_cutout_base.extend({
1787
- shape: z83.literal("rect"),
1802
+ shape: z84.literal("rect"),
1788
1803
  center: point,
1789
1804
  width: length,
1790
1805
  height: length,
@@ -1792,17 +1807,17 @@ var pcb_cutout_rect = pcb_cutout_base.extend({
1792
1807
  });
1793
1808
  expectTypesMatch(true);
1794
1809
  var pcb_cutout_circle = pcb_cutout_base.extend({
1795
- shape: z83.literal("circle"),
1810
+ shape: z84.literal("circle"),
1796
1811
  center: point,
1797
1812
  radius: length
1798
1813
  });
1799
1814
  expectTypesMatch(true);
1800
1815
  var pcb_cutout_polygon = pcb_cutout_base.extend({
1801
- shape: z83.literal("polygon"),
1802
- points: z83.array(point)
1816
+ shape: z84.literal("polygon"),
1817
+ points: z84.array(point)
1803
1818
  });
1804
1819
  expectTypesMatch(true);
1805
- var pcb_cutout = z83.discriminatedUnion("shape", [
1820
+ var pcb_cutout = z84.discriminatedUnion("shape", [
1806
1821
  pcb_cutout_rect,
1807
1822
  pcb_cutout_circle,
1808
1823
  pcb_cutout_polygon
@@ -1810,83 +1825,83 @@ var pcb_cutout = z83.discriminatedUnion("shape", [
1810
1825
  expectTypesMatch(true);
1811
1826
 
1812
1827
  // src/pcb/pcb_missing_footprint_error.ts
1813
- import { z as z84 } from "zod";
1814
- var pcb_missing_footprint_error = z84.object({
1815
- type: z84.literal("pcb_missing_footprint_error"),
1828
+ import { z as z85 } from "zod";
1829
+ var pcb_missing_footprint_error = z85.object({
1830
+ type: z85.literal("pcb_missing_footprint_error"),
1816
1831
  pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
1817
1832
  "pcb_missing_footprint_error"
1818
1833
  ),
1819
- pcb_group_id: z84.string().optional(),
1820
- subcircuit_id: z84.string().optional(),
1821
- error_type: z84.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
1822
- source_component_id: z84.string(),
1823
- message: z84.string()
1834
+ pcb_group_id: z85.string().optional(),
1835
+ subcircuit_id: z85.string().optional(),
1836
+ error_type: z85.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
1837
+ source_component_id: z85.string(),
1838
+ message: z85.string()
1824
1839
  }).describe("Defines a missing footprint error on the PCB");
1825
1840
  expectTypesMatch(
1826
1841
  true
1827
1842
  );
1828
1843
 
1829
1844
  // src/pcb/pcb_group.ts
1830
- import { z as z85 } from "zod";
1831
- var pcb_group = z85.object({
1832
- type: z85.literal("pcb_group"),
1845
+ import { z as z86 } from "zod";
1846
+ var pcb_group = z86.object({
1847
+ type: z86.literal("pcb_group"),
1833
1848
  pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
1834
- source_group_id: z85.string(),
1835
- is_subcircuit: z85.boolean().optional(),
1836
- subcircuit_id: z85.string().optional(),
1849
+ source_group_id: z86.string(),
1850
+ is_subcircuit: z86.boolean().optional(),
1851
+ subcircuit_id: z86.string().optional(),
1837
1852
  width: length,
1838
1853
  height: length,
1839
1854
  center: point,
1840
- pcb_component_ids: z85.array(z85.string()),
1841
- name: z85.string().optional(),
1842
- description: z85.string().optional(),
1843
- layout_mode: z85.string().optional(),
1844
- autorouter_configuration: z85.object({
1855
+ pcb_component_ids: z86.array(z86.string()),
1856
+ name: z86.string().optional(),
1857
+ description: z86.string().optional(),
1858
+ layout_mode: z86.string().optional(),
1859
+ autorouter_configuration: z86.object({
1845
1860
  trace_clearance: length
1846
1861
  }).optional(),
1847
- autorouter_used_string: z85.string().optional()
1862
+ autorouter_used_string: z86.string().optional()
1848
1863
  }).describe("Defines a group of components on the PCB");
1849
1864
  expectTypesMatch(true);
1850
1865
 
1851
1866
  // src/pcb/pcb_autorouting_error.ts
1852
- import { z as z86 } from "zod";
1853
- var pcb_autorouting_error = z86.object({
1854
- type: z86.literal("pcb_autorouting_error"),
1867
+ import { z as z87 } from "zod";
1868
+ var pcb_autorouting_error = z87.object({
1869
+ type: z87.literal("pcb_autorouting_error"),
1855
1870
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
1856
- error_type: z86.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
1857
- message: z86.string(),
1858
- subcircuit_id: z86.string().optional()
1871
+ error_type: z87.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
1872
+ message: z87.string(),
1873
+ subcircuit_id: z87.string().optional()
1859
1874
  }).describe("The autorouting has failed to route a portion of the board");
1860
1875
  expectTypesMatch(true);
1861
1876
 
1862
1877
  // src/pcb/pcb_manual_edit_conflict_warning.ts
1863
- import { z as z87 } from "zod";
1864
- var pcb_manual_edit_conflict_warning = z87.object({
1865
- type: z87.literal("pcb_manual_edit_conflict_warning"),
1878
+ import { z as z88 } from "zod";
1879
+ var pcb_manual_edit_conflict_warning = z88.object({
1880
+ type: z88.literal("pcb_manual_edit_conflict_warning"),
1866
1881
  pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
1867
1882
  "pcb_manual_edit_conflict_warning"
1868
1883
  ),
1869
- warning_type: z87.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
1870
- message: z87.string(),
1871
- pcb_component_id: z87.string(),
1872
- pcb_group_id: z87.string().optional(),
1873
- subcircuit_id: z87.string().optional(),
1874
- source_component_id: z87.string()
1884
+ warning_type: z88.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
1885
+ message: z88.string(),
1886
+ pcb_component_id: z88.string(),
1887
+ pcb_group_id: z88.string().optional(),
1888
+ subcircuit_id: z88.string().optional(),
1889
+ source_component_id: z88.string()
1875
1890
  }).describe(
1876
1891
  "Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
1877
1892
  );
1878
1893
  expectTypesMatch(true);
1879
1894
 
1880
1895
  // src/pcb/pcb_breakout_point.ts
1881
- import { z as z88 } from "zod";
1882
- var pcb_breakout_point = z88.object({
1883
- type: z88.literal("pcb_breakout_point"),
1896
+ import { z as z89 } from "zod";
1897
+ var pcb_breakout_point = z89.object({
1898
+ type: z89.literal("pcb_breakout_point"),
1884
1899
  pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
1885
- pcb_group_id: z88.string(),
1886
- subcircuit_id: z88.string().optional(),
1887
- source_trace_id: z88.string().optional(),
1888
- source_port_id: z88.string().optional(),
1889
- source_net_id: z88.string().optional(),
1900
+ pcb_group_id: z89.string(),
1901
+ subcircuit_id: z89.string().optional(),
1902
+ source_trace_id: z89.string().optional(),
1903
+ source_port_id: z89.string().optional(),
1904
+ source_net_id: z89.string().optional(),
1890
1905
  x: distance,
1891
1906
  y: distance
1892
1907
  }).describe(
@@ -1895,87 +1910,87 @@ var pcb_breakout_point = z88.object({
1895
1910
  expectTypesMatch(true);
1896
1911
 
1897
1912
  // src/pcb/pcb_ground_plane.ts
1898
- import { z as z89 } from "zod";
1899
- var pcb_ground_plane = z89.object({
1900
- type: z89.literal("pcb_ground_plane"),
1913
+ import { z as z90 } from "zod";
1914
+ var pcb_ground_plane = z90.object({
1915
+ type: z90.literal("pcb_ground_plane"),
1901
1916
  pcb_ground_plane_id: getZodPrefixedIdWithDefault("pcb_ground_plane"),
1902
- source_pcb_ground_plane_id: z89.string(),
1903
- source_net_id: z89.string(),
1904
- pcb_group_id: z89.string().optional(),
1905
- subcircuit_id: z89.string().optional()
1917
+ source_pcb_ground_plane_id: z90.string(),
1918
+ source_net_id: z90.string(),
1919
+ pcb_group_id: z90.string().optional(),
1920
+ subcircuit_id: z90.string().optional()
1906
1921
  }).describe("Defines a ground plane on the PCB");
1907
1922
  expectTypesMatch(true);
1908
1923
 
1909
1924
  // src/pcb/pcb_ground_plane_region.ts
1910
- import { z as z90 } from "zod";
1911
- var pcb_ground_plane_region = z90.object({
1912
- type: z90.literal("pcb_ground_plane_region"),
1925
+ import { z as z91 } from "zod";
1926
+ var pcb_ground_plane_region = z91.object({
1927
+ type: z91.literal("pcb_ground_plane_region"),
1913
1928
  pcb_ground_plane_region_id: getZodPrefixedIdWithDefault(
1914
1929
  "pcb_ground_plane_region"
1915
1930
  ),
1916
- pcb_ground_plane_id: z90.string(),
1917
- pcb_group_id: z90.string().optional(),
1918
- subcircuit_id: z90.string().optional(),
1931
+ pcb_ground_plane_id: z91.string(),
1932
+ pcb_group_id: z91.string().optional(),
1933
+ subcircuit_id: z91.string().optional(),
1919
1934
  layer: layer_ref,
1920
- points: z90.array(point)
1935
+ points: z91.array(point)
1921
1936
  }).describe("Defines a polygon region of a ground plane");
1922
1937
  expectTypesMatch(true);
1923
1938
 
1924
1939
  // src/pcb/pcb_thermal_spoke.ts
1925
- import { z as z91 } from "zod";
1926
- var pcb_thermal_spoke = z91.object({
1927
- type: z91.literal("pcb_thermal_spoke"),
1940
+ import { z as z92 } from "zod";
1941
+ var pcb_thermal_spoke = z92.object({
1942
+ type: z92.literal("pcb_thermal_spoke"),
1928
1943
  pcb_thermal_spoke_id: getZodPrefixedIdWithDefault("pcb_thermal_spoke"),
1929
- pcb_ground_plane_id: z91.string(),
1930
- shape: z91.string(),
1931
- spoke_count: z91.number(),
1944
+ pcb_ground_plane_id: z92.string(),
1945
+ shape: z92.string(),
1946
+ spoke_count: z92.number(),
1932
1947
  spoke_thickness: distance,
1933
1948
  spoke_inner_diameter: distance,
1934
1949
  spoke_outer_diameter: distance,
1935
- pcb_plated_hole_id: z91.string().optional(),
1936
- subcircuit_id: z91.string().optional()
1950
+ pcb_plated_hole_id: z92.string().optional(),
1951
+ subcircuit_id: z92.string().optional()
1937
1952
  }).describe("Pattern for connecting a ground plane to a plated hole");
1938
1953
  expectTypesMatch(true);
1939
1954
 
1940
1955
  // src/cad/cad_component.ts
1941
- import { z as z92 } from "zod";
1942
- var cad_component = z92.object({
1943
- type: z92.literal("cad_component"),
1944
- cad_component_id: z92.string(),
1945
- pcb_component_id: z92.string(),
1946
- source_component_id: z92.string(),
1956
+ import { z as z93 } from "zod";
1957
+ var cad_component = z93.object({
1958
+ type: z93.literal("cad_component"),
1959
+ cad_component_id: z93.string(),
1960
+ pcb_component_id: z93.string(),
1961
+ source_component_id: z93.string(),
1947
1962
  position: point3,
1948
1963
  rotation: point3.optional(),
1949
1964
  size: point3.optional(),
1950
1965
  layer: layer_ref.optional(),
1951
- subcircuit_id: z92.string().optional(),
1966
+ subcircuit_id: z93.string().optional(),
1952
1967
  // These are all ways to generate/load the 3d model
1953
- footprinter_string: z92.string().optional(),
1954
- model_obj_url: z92.string().optional(),
1955
- model_stl_url: z92.string().optional(),
1956
- model_3mf_url: z92.string().optional(),
1957
- model_jscad: z92.any().optional()
1968
+ footprinter_string: z93.string().optional(),
1969
+ model_obj_url: z93.string().optional(),
1970
+ model_stl_url: z93.string().optional(),
1971
+ model_3mf_url: z93.string().optional(),
1972
+ model_jscad: z93.any().optional()
1958
1973
  }).describe("Defines a component on the PCB");
1959
1974
  expectTypesMatch(true);
1960
1975
 
1961
1976
  // src/simulation/simulation_voltage_source.ts
1962
- import { z as z93 } from "zod";
1963
- var simulation_voltage_source = z93.object({
1964
- type: z93.literal("simulation_voltage_source"),
1977
+ import { z as z94 } from "zod";
1978
+ var simulation_voltage_source = z94.object({
1979
+ type: z94.literal("simulation_voltage_source"),
1965
1980
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
1966
1981
  "simulation_voltage_source"
1967
1982
  ),
1968
- positive_source_port_id: z93.string(),
1969
- negative_source_port_id: z93.string(),
1970
- positive_source_net_id: z93.string(),
1971
- negative_source_net_id: z93.string(),
1983
+ positive_source_port_id: z94.string(),
1984
+ negative_source_port_id: z94.string(),
1985
+ positive_source_net_id: z94.string(),
1986
+ negative_source_net_id: z94.string(),
1972
1987
  voltage
1973
1988
  }).describe("Defines a voltage source for simulation");
1974
1989
  expectTypesMatch(true);
1975
1990
 
1976
1991
  // src/any_circuit_element.ts
1977
- import { z as z94 } from "zod";
1978
- var any_circuit_element = z94.union([
1992
+ import { z as z95 } from "zod";
1993
+ var any_circuit_element = z95.union([
1979
1994
  source_trace,
1980
1995
  source_port,
1981
1996
  any_source_component,
@@ -2025,6 +2040,7 @@ var any_circuit_element = z94.union([
2025
2040
  pcb_trace_missing_error,
2026
2041
  pcb_placement_error,
2027
2042
  pcb_port_not_matched_error,
2043
+ pcb_port_not_connected_error,
2028
2044
  pcb_fabrication_note_path,
2029
2045
  pcb_fabrication_note_text,
2030
2046
  pcb_autorouting_error,
@@ -2096,6 +2112,7 @@ export {
2096
2112
  pcb_placement_error,
2097
2113
  pcb_plated_hole,
2098
2114
  pcb_port,
2115
+ pcb_port_not_connected_error,
2099
2116
  pcb_port_not_matched_error,
2100
2117
  pcb_route_hint,
2101
2118
  pcb_route_hints,