easyeda 0.0.235 → 0.0.237

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.
@@ -835,7 +835,6 @@ __export(dist_exports, {
835
835
  pcb_courtyard_rect: () => pcb_courtyard_rect,
836
836
  pcb_cutout: () => pcb_cutout,
837
837
  pcb_cutout_circle: () => pcb_cutout_circle,
838
- pcb_cutout_path: () => pcb_cutout_path,
839
838
  pcb_cutout_polygon: () => pcb_cutout_polygon,
840
839
  pcb_cutout_rect: () => pcb_cutout_rect,
841
840
  pcb_fabrication_note_dimension: () => pcb_fabrication_note_dimension,
@@ -848,10 +847,8 @@ __export(dist_exports, {
848
847
  pcb_group: () => pcb_group,
849
848
  pcb_hole: () => pcb_hole,
850
849
  pcb_hole_circle_or_square_shape: () => pcb_hole_circle_or_square_shape,
851
- pcb_hole_circle_shape: () => pcb_hole_circle_shape,
852
850
  pcb_hole_oval_shape: () => pcb_hole_oval_shape,
853
851
  pcb_hole_pill_shape: () => pcb_hole_pill_shape,
854
- pcb_hole_rect_shape: () => pcb_hole_rect_shape,
855
852
  pcb_hole_rotated_pill_shape: () => pcb_hole_rotated_pill_shape,
856
853
  pcb_keepout: () => pcb_keepout,
857
854
  pcb_manual_edit_conflict_warning: () => pcb_manual_edit_conflict_warning,
@@ -932,22 +929,18 @@ __export(dist_exports, {
932
929
  simulation_experiment: () => simulation_experiment,
933
930
  simulation_switch: () => simulation_switch,
934
931
  simulation_transient_voltage_graph: () => simulation_transient_voltage_graph,
935
- simulation_unknown_experiment_error: () => simulation_unknown_experiment_error,
936
932
  simulation_voltage_probe: () => simulation_voltage_probe,
937
933
  simulation_voltage_source: () => simulation_voltage_source,
938
934
  size: () => size,
939
935
  source_board: () => source_board,
940
936
  source_component_base: () => source_component_base,
941
- source_component_internal_connection: () => source_component_internal_connection,
942
937
  source_failed_to_create_component_error: () => source_failed_to_create_component_error,
943
938
  source_group: () => source_group,
944
- source_interconnect: () => source_interconnect,
945
939
  source_manually_placed_via: () => source_manually_placed_via,
946
940
  source_missing_property_error: () => source_missing_property_error,
947
941
  source_net: () => source_net,
948
942
  source_pcb_ground_plane: () => source_pcb_ground_plane,
949
943
  source_pin_missing_trace_warning: () => source_pin_missing_trace_warning,
950
- source_pin_must_be_connected_error: () => source_pin_must_be_connected_error,
951
944
  source_port: () => source_port,
952
945
  source_project_metadata: () => source_project_metadata,
953
946
  source_property_ignored_warning: () => source_property_ignored_warning,
@@ -970,7 +963,6 @@ __export(dist_exports, {
970
963
  source_simple_switch: () => source_simple_switch,
971
964
  source_simple_test_point: () => source_simple_test_point,
972
965
  source_simple_transistor: () => source_simple_transistor,
973
- source_simple_voltage_probe: () => source_simple_voltage_probe,
974
966
  source_trace: () => source_trace,
975
967
  source_trace_not_connected_error: () => source_trace_not_connected_error,
976
968
  supplier_name: () => supplier_name,
@@ -996,7 +988,7 @@ import { z as z12 } from "zod";
996
988
  import { z as z13 } from "zod";
997
989
  import { z as z14 } from "zod";
998
990
  import { z as z15 } from "zod";
999
- import { z as z37 } from "zod";
991
+ import { z as z35 } from "zod";
1000
992
  import { z as z16 } from "zod";
1001
993
  import { z as z17 } from "zod";
1002
994
  import { z as z18 } from "zod";
@@ -1016,29 +1008,29 @@ import { z as z31 } from "zod";
1016
1008
  import { z as z32 } from "zod";
1017
1009
  import { z as z33 } from "zod";
1018
1010
  import { z as z34 } from "zod";
1019
- import { z as z35 } from "zod";
1020
1011
  import { z as z36 } from "zod";
1012
+ import { z as z37 } from "zod";
1021
1013
  import { z as z38 } from "zod";
1022
1014
  import { z as z39 } from "zod";
1023
1015
  import { z as z40 } from "zod";
1024
1016
  import { z as z41 } from "zod";
1025
- import { z as z42 } from "zod";
1026
1017
  import { z as z43 } from "zod";
1018
+ import { z as z42 } from "zod";
1027
1019
  import { z as z44 } from "zod";
1028
- import { z as z46 } from "zod";
1029
1020
  import { z as z45 } from "zod";
1021
+ import { z as z46 } from "zod";
1030
1022
  import { z as z47 } from "zod";
1031
1023
  import { z as z48 } from "zod";
1032
1024
  import { z as z49 } from "zod";
1033
1025
  import { z as z50 } from "zod";
1034
1026
  import { z as z51 } from "zod";
1035
1027
  import { z as z52 } from "zod";
1036
- import { z as z53 } from "zod";
1037
1028
  import { z as z54 } from "zod";
1029
+ import { z as z53 } from "zod";
1038
1030
  import { z as z55 } from "zod";
1039
1031
  import { z as z56 } from "zod";
1040
- import { z as z58 } from "zod";
1041
1032
  import { z as z57 } from "zod";
1033
+ import { z as z58 } from "zod";
1042
1034
  import { z as z59 } from "zod";
1043
1035
  import { z as z60 } from "zod";
1044
1036
  import { z as z61 } from "zod";
@@ -1110,11 +1102,6 @@ import { z as z126 } from "zod";
1110
1102
  import { z as z127 } from "zod";
1111
1103
  import { z as z128 } from "zod";
1112
1104
  import { z as z129 } from "zod";
1113
- import { z as z130 } from "zod";
1114
- import { z as z131 } from "zod";
1115
- import { z as z132 } from "zod";
1116
- import { z as z133 } from "zod";
1117
- import { z as z134 } from "zod";
1118
1105
  var unitMappings = {
1119
1106
  Hz: {
1120
1107
  baseUnit: "Hz",
@@ -1629,17 +1616,7 @@ var source_pin_missing_trace_warning = z34.object({
1629
1616
  "Warning emitted when a source component pin is missing a trace connection"
1630
1617
  );
1631
1618
  expectTypesMatch(true);
1632
- var source_simple_voltage_probe = source_component_base.extend({
1633
- ftype: z35.literal("simple_voltage_probe")
1634
- });
1635
- expectTypesMatch(
1636
- true
1637
- );
1638
- var source_interconnect = source_component_base.extend({
1639
- ftype: z36.literal("interconnect")
1640
- });
1641
- expectTypesMatch(true);
1642
- var any_source_component = z37.union([
1619
+ var any_source_component = z35.union([
1643
1620
  source_simple_resistor,
1644
1621
  source_simple_capacitor,
1645
1622
  source_simple_diode,
@@ -1660,8 +1637,6 @@ var any_source_component = z37.union([
1660
1637
  source_simple_test_point,
1661
1638
  source_simple_mosfet,
1662
1639
  source_simple_fuse,
1663
- source_simple_voltage_probe,
1664
- source_interconnect,
1665
1640
  source_project_metadata,
1666
1641
  source_missing_property_error,
1667
1642
  source_failed_to_create_component_error,
@@ -1670,78 +1645,70 @@ var any_source_component = z37.union([
1670
1645
  source_pin_missing_trace_warning
1671
1646
  ]);
1672
1647
  expectTypesMatch(true);
1673
- var source_port = z38.object({
1674
- type: z38.literal("source_port"),
1675
- pin_number: z38.number().optional(),
1676
- port_hints: z38.array(z38.string()).optional(),
1677
- name: z38.string(),
1678
- source_port_id: z38.string(),
1679
- source_component_id: z38.string().optional(),
1680
- source_group_id: z38.string().optional(),
1681
- subcircuit_id: z38.string().optional(),
1682
- subcircuit_connectivity_map_key: z38.string().optional(),
1683
- must_be_connected: z38.boolean().optional()
1684
- });
1685
- expectTypesMatch(true);
1686
- var source_component_internal_connection = z39.object({
1687
- type: z39.literal("source_component_internal_connection"),
1688
- source_component_internal_connection_id: z39.string(),
1689
- source_component_id: z39.string(),
1690
- source_port_ids: z39.array(z39.string())
1648
+ var source_port = z36.object({
1649
+ type: z36.literal("source_port"),
1650
+ pin_number: z36.number().optional(),
1651
+ port_hints: z36.array(z36.string()).optional(),
1652
+ name: z36.string(),
1653
+ source_port_id: z36.string(),
1654
+ source_component_id: z36.string().optional(),
1655
+ source_group_id: z36.string().optional(),
1656
+ subcircuit_id: z36.string().optional(),
1657
+ subcircuit_connectivity_map_key: z36.string().optional()
1691
1658
  });
1692
1659
  expectTypesMatch(true);
1693
- var source_trace = z40.object({
1694
- type: z40.literal("source_trace"),
1695
- source_trace_id: z40.string(),
1696
- connected_source_port_ids: z40.array(z40.string()),
1697
- connected_source_net_ids: z40.array(z40.string()),
1698
- subcircuit_id: z40.string().optional(),
1699
- subcircuit_connectivity_map_key: z40.string().optional(),
1700
- max_length: z40.number().optional(),
1701
- min_trace_thickness: z40.number().optional(),
1702
- display_name: z40.string().optional()
1660
+ var source_trace = z37.object({
1661
+ type: z37.literal("source_trace"),
1662
+ source_trace_id: z37.string(),
1663
+ connected_source_port_ids: z37.array(z37.string()),
1664
+ connected_source_net_ids: z37.array(z37.string()),
1665
+ subcircuit_id: z37.string().optional(),
1666
+ subcircuit_connectivity_map_key: z37.string().optional(),
1667
+ max_length: z37.number().optional(),
1668
+ min_trace_thickness: z37.number().optional(),
1669
+ display_name: z37.string().optional()
1703
1670
  });
1704
1671
  expectTypesMatch(true);
1705
- var source_group = z41.object({
1706
- type: z41.literal("source_group"),
1707
- source_group_id: z41.string(),
1708
- subcircuit_id: z41.string().optional(),
1709
- parent_subcircuit_id: z41.string().optional(),
1710
- parent_source_group_id: z41.string().optional(),
1711
- is_subcircuit: z41.boolean().optional(),
1712
- show_as_schematic_box: z41.boolean().optional(),
1713
- name: z41.string().optional(),
1714
- was_automatically_named: z41.boolean().optional()
1672
+ var source_group = z38.object({
1673
+ type: z38.literal("source_group"),
1674
+ source_group_id: z38.string(),
1675
+ subcircuit_id: z38.string().optional(),
1676
+ parent_subcircuit_id: z38.string().optional(),
1677
+ parent_source_group_id: z38.string().optional(),
1678
+ is_subcircuit: z38.boolean().optional(),
1679
+ show_as_schematic_box: z38.boolean().optional(),
1680
+ name: z38.string().optional(),
1681
+ was_automatically_named: z38.boolean().optional()
1715
1682
  });
1716
1683
  expectTypesMatch(true);
1717
- var source_net = z42.object({
1718
- type: z42.literal("source_net"),
1719
- source_net_id: z42.string(),
1720
- name: z42.string(),
1721
- member_source_group_ids: z42.array(z42.string()),
1722
- is_power: z42.boolean().optional(),
1723
- is_ground: z42.boolean().optional(),
1724
- is_digital_signal: z42.boolean().optional(),
1725
- is_analog_signal: z42.boolean().optional(),
1726
- is_positive_voltage_source: z42.boolean().optional(),
1727
- trace_width: z42.number().optional(),
1728
- subcircuit_id: z42.string().optional(),
1729
- subcircuit_connectivity_map_key: z42.string().optional()
1684
+ var source_net = z39.object({
1685
+ type: z39.literal("source_net"),
1686
+ source_net_id: z39.string(),
1687
+ name: z39.string(),
1688
+ member_source_group_ids: z39.array(z39.string()),
1689
+ is_power: z39.boolean().optional(),
1690
+ is_ground: z39.boolean().optional(),
1691
+ is_digital_signal: z39.boolean().optional(),
1692
+ is_analog_signal: z39.boolean().optional(),
1693
+ is_positive_voltage_source: z39.boolean().optional(),
1694
+ trace_width: z39.number().optional(),
1695
+ subcircuit_id: z39.string().optional(),
1696
+ subcircuit_connectivity_map_key: z39.string().optional()
1730
1697
  });
1731
1698
  expectTypesMatch(true);
1732
- var source_board = z43.object({
1733
- type: z43.literal("source_board"),
1734
- source_board_id: z43.string(),
1735
- source_group_id: z43.string(),
1736
- title: z43.string().optional()
1699
+ var source_board = z40.object({
1700
+ type: z40.literal("source_board"),
1701
+ source_board_id: z40.string(),
1702
+ source_group_id: z40.string(),
1703
+ title: z40.string().optional()
1737
1704
  }).describe("Defines a board in the source domain");
1738
1705
  expectTypesMatch(true);
1739
- var source_pcb_ground_plane = z44.object({
1740
- type: z44.literal("source_pcb_ground_plane"),
1741
- source_pcb_ground_plane_id: z44.string(),
1742
- source_group_id: z44.string(),
1743
- source_net_id: z44.string(),
1744
- subcircuit_id: z44.string().optional()
1706
+ var source_pcb_ground_plane = z41.object({
1707
+ type: z41.literal("source_pcb_ground_plane"),
1708
+ source_pcb_ground_plane_id: z41.string(),
1709
+ source_group_id: z41.string(),
1710
+ source_net_id: z41.string(),
1711
+ subcircuit_id: z41.string().optional()
1745
1712
  }).describe("Defines a ground plane in the source domain");
1746
1713
  expectTypesMatch(true);
1747
1714
  var all_layers = [
@@ -1754,9 +1721,9 @@ var all_layers = [
1754
1721
  "inner5",
1755
1722
  "inner6"
1756
1723
  ];
1757
- var layer_string = z45.enum(all_layers);
1724
+ var layer_string = z42.enum(all_layers);
1758
1725
  var layer_ref = layer_string.or(
1759
- z45.object({
1726
+ z42.object({
1760
1727
  name: layer_string
1761
1728
  })
1762
1729
  ).transform((layer) => {
@@ -1766,215 +1733,201 @@ var layer_ref = layer_string.or(
1766
1733
  return layer.name;
1767
1734
  });
1768
1735
  expectTypesMatch(true);
1769
- var visible_layer = z45.enum(["top", "bottom"]);
1770
- var source_manually_placed_via = z46.object({
1771
- type: z46.literal("source_manually_placed_via"),
1772
- source_manually_placed_via_id: z46.string(),
1773
- source_group_id: z46.string(),
1774
- source_net_id: z46.string(),
1775
- subcircuit_id: z46.string().optional(),
1776
- source_trace_id: z46.string().optional()
1736
+ var visible_layer = z42.enum(["top", "bottom"]);
1737
+ var source_manually_placed_via = z43.object({
1738
+ type: z43.literal("source_manually_placed_via"),
1739
+ source_manually_placed_via_id: z43.string(),
1740
+ source_group_id: z43.string(),
1741
+ source_net_id: z43.string(),
1742
+ subcircuit_id: z43.string().optional(),
1743
+ source_trace_id: z43.string().optional()
1777
1744
  }).describe("Defines a via that is manually placed in the source domain");
1778
1745
  expectTypesMatch(true);
1779
- var source_pin_must_be_connected_error = z47.object({
1780
- type: z47.literal("source_pin_must_be_connected_error"),
1781
- source_pin_must_be_connected_error_id: getZodPrefixedIdWithDefault(
1782
- "source_pin_must_be_connected_error"
1783
- ),
1784
- error_type: z47.literal("source_pin_must_be_connected_error").default("source_pin_must_be_connected_error"),
1785
- message: z47.string(),
1786
- source_component_id: z47.string(),
1787
- source_port_id: z47.string(),
1788
- subcircuit_id: z47.string().optional()
1789
- }).describe(
1790
- "Error emitted when a pin with mustBeConnected attribute is not connected to any trace"
1791
- );
1792
- expectTypesMatch(true);
1793
- var unknown_error_finding_part = z48.object({
1794
- type: z48.literal("unknown_error_finding_part"),
1746
+ var unknown_error_finding_part = z44.object({
1747
+ type: z44.literal("unknown_error_finding_part"),
1795
1748
  unknown_error_finding_part_id: getZodPrefixedIdWithDefault(
1796
1749
  "unknown_error_finding_part"
1797
1750
  ),
1798
- error_type: z48.literal("unknown_error_finding_part").default("unknown_error_finding_part"),
1799
- message: z48.string(),
1800
- source_component_id: z48.string().optional(),
1801
- subcircuit_id: z48.string().optional()
1751
+ error_type: z44.literal("unknown_error_finding_part").default("unknown_error_finding_part"),
1752
+ message: z44.string(),
1753
+ source_component_id: z44.string().optional(),
1754
+ subcircuit_id: z44.string().optional()
1802
1755
  }).describe(
1803
1756
  "Error emitted when an unexpected error occurs while finding a part"
1804
1757
  );
1805
1758
  expectTypesMatch(true);
1806
- var schematic_box = z49.object({
1807
- type: z49.literal("schematic_box"),
1808
- schematic_component_id: z49.string().optional(),
1759
+ var schematic_box = z45.object({
1760
+ type: z45.literal("schematic_box"),
1761
+ schematic_component_id: z45.string().optional(),
1809
1762
  width: distance,
1810
1763
  height: distance,
1811
- is_dashed: z49.boolean().default(false),
1764
+ is_dashed: z45.boolean().default(false),
1812
1765
  x: distance,
1813
1766
  y: distance,
1814
- subcircuit_id: z49.string().optional()
1767
+ subcircuit_id: z45.string().optional()
1815
1768
  }).describe("Draws a box on the schematic");
1816
1769
  expectTypesMatch(true);
1817
- var schematic_path = z50.object({
1818
- type: z50.literal("schematic_path"),
1819
- schematic_component_id: z50.string(),
1820
- fill_color: z50.enum(["red", "blue"]).optional(),
1821
- is_filled: z50.boolean().optional(),
1822
- points: z50.array(point),
1823
- subcircuit_id: z50.string().optional()
1770
+ var schematic_path = z46.object({
1771
+ type: z46.literal("schematic_path"),
1772
+ schematic_component_id: z46.string(),
1773
+ fill_color: z46.enum(["red", "blue"]).optional(),
1774
+ is_filled: z46.boolean().optional(),
1775
+ points: z46.array(point),
1776
+ subcircuit_id: z46.string().optional()
1824
1777
  });
1825
1778
  expectTypesMatch(true);
1826
- var schematic_pin_styles = z51.record(
1827
- z51.object({
1779
+ var schematic_pin_styles = z47.record(
1780
+ z47.object({
1828
1781
  left_margin: length.optional(),
1829
1782
  right_margin: length.optional(),
1830
1783
  top_margin: length.optional(),
1831
1784
  bottom_margin: length.optional()
1832
1785
  })
1833
1786
  );
1834
- var schematic_component_port_arrangement_by_size = z51.object({
1835
- left_size: z51.number(),
1836
- right_size: z51.number(),
1837
- top_size: z51.number().optional(),
1838
- bottom_size: z51.number().optional()
1787
+ var schematic_component_port_arrangement_by_size = z47.object({
1788
+ left_size: z47.number(),
1789
+ right_size: z47.number(),
1790
+ top_size: z47.number().optional(),
1791
+ bottom_size: z47.number().optional()
1839
1792
  });
1840
1793
  expectTypesMatch(true);
1841
- var schematic_component_port_arrangement_by_sides = z51.object({
1842
- left_side: z51.object({
1843
- pins: z51.array(z51.number()),
1794
+ var schematic_component_port_arrangement_by_sides = z47.object({
1795
+ left_side: z47.object({
1796
+ pins: z47.array(z47.number()),
1844
1797
  // @ts-ignore
1845
- direction: z51.enum(["top-to-bottom", "bottom-to-top"]).optional()
1798
+ direction: z47.enum(["top-to-bottom", "bottom-to-top"]).optional()
1846
1799
  }).optional(),
1847
- right_side: z51.object({
1848
- pins: z51.array(z51.number()),
1800
+ right_side: z47.object({
1801
+ pins: z47.array(z47.number()),
1849
1802
  // @ts-ignore
1850
- direction: z51.enum(["top-to-bottom", "bottom-to-top"]).optional()
1803
+ direction: z47.enum(["top-to-bottom", "bottom-to-top"]).optional()
1851
1804
  }).optional(),
1852
- top_side: z51.object({
1853
- pins: z51.array(z51.number()),
1805
+ top_side: z47.object({
1806
+ pins: z47.array(z47.number()),
1854
1807
  // @ts-ignore
1855
- direction: z51.enum(["left-to-right", "right-to-left"]).optional()
1808
+ direction: z47.enum(["left-to-right", "right-to-left"]).optional()
1856
1809
  }).optional(),
1857
- bottom_side: z51.object({
1858
- pins: z51.array(z51.number()),
1810
+ bottom_side: z47.object({
1811
+ pins: z47.array(z47.number()),
1859
1812
  // @ts-ignore
1860
- direction: z51.enum(["left-to-right", "right-to-left"]).optional()
1813
+ direction: z47.enum(["left-to-right", "right-to-left"]).optional()
1861
1814
  }).optional()
1862
1815
  });
1863
1816
  expectTypesMatch(true);
1864
- var port_arrangement = z51.union([
1817
+ var port_arrangement = z47.union([
1865
1818
  schematic_component_port_arrangement_by_size,
1866
1819
  schematic_component_port_arrangement_by_sides
1867
1820
  ]);
1868
- var schematic_component = z51.object({
1869
- type: z51.literal("schematic_component"),
1821
+ var schematic_component = z47.object({
1822
+ type: z47.literal("schematic_component"),
1870
1823
  size,
1871
1824
  center: point,
1872
- source_component_id: z51.string().optional(),
1873
- schematic_component_id: z51.string(),
1825
+ source_component_id: z47.string().optional(),
1826
+ schematic_component_id: z47.string(),
1874
1827
  pin_spacing: length.optional(),
1875
1828
  pin_styles: schematic_pin_styles.optional(),
1876
1829
  box_width: length.optional(),
1877
- symbol_name: z51.string().optional(),
1830
+ symbol_name: z47.string().optional(),
1878
1831
  port_arrangement: port_arrangement.optional(),
1879
- port_labels: z51.record(z51.string()).optional(),
1880
- symbol_display_value: z51.string().optional(),
1881
- subcircuit_id: z51.string().optional(),
1882
- schematic_group_id: z51.string().optional(),
1883
- is_schematic_group: z51.boolean().optional(),
1884
- source_group_id: z51.string().optional(),
1885
- is_box_with_pins: z51.boolean().optional().default(true)
1832
+ port_labels: z47.record(z47.string()).optional(),
1833
+ symbol_display_value: z47.string().optional(),
1834
+ subcircuit_id: z47.string().optional(),
1835
+ schematic_group_id: z47.string().optional(),
1836
+ is_schematic_group: z47.boolean().optional(),
1837
+ source_group_id: z47.string().optional(),
1838
+ is_box_with_pins: z47.boolean().optional().default(true)
1886
1839
  });
1887
1840
  expectTypesMatch(true);
1888
- var schematic_line = z52.object({
1889
- type: z52.literal("schematic_line"),
1841
+ var schematic_line = z48.object({
1842
+ type: z48.literal("schematic_line"),
1890
1843
  schematic_line_id: getZodPrefixedIdWithDefault("schematic_line"),
1891
- schematic_component_id: z52.string(),
1844
+ schematic_component_id: z48.string(),
1892
1845
  x1: distance,
1893
1846
  y1: distance,
1894
1847
  x2: distance,
1895
1848
  y2: distance,
1896
1849
  stroke_width: distance.nullable().optional(),
1897
- color: z52.string().default("#000000"),
1898
- is_dashed: z52.boolean().default(false),
1899
- subcircuit_id: z52.string().optional()
1850
+ color: z48.string().default("#000000"),
1851
+ is_dashed: z48.boolean().default(false),
1852
+ subcircuit_id: z48.string().optional()
1900
1853
  }).describe("Draws a styled line on the schematic");
1901
1854
  expectTypesMatch(true);
1902
- var schematic_rect = z53.object({
1903
- type: z53.literal("schematic_rect"),
1855
+ var schematic_rect = z49.object({
1856
+ type: z49.literal("schematic_rect"),
1904
1857
  schematic_rect_id: getZodPrefixedIdWithDefault("schematic_rect"),
1905
- schematic_component_id: z53.string(),
1858
+ schematic_component_id: z49.string(),
1906
1859
  center: point,
1907
1860
  width: distance,
1908
1861
  height: distance,
1909
1862
  rotation: rotation.default(0),
1910
1863
  stroke_width: distance.nullable().optional(),
1911
- color: z53.string().default("#000000"),
1912
- is_filled: z53.boolean().default(false),
1913
- fill_color: z53.string().optional(),
1914
- is_dashed: z53.boolean().default(false),
1915
- subcircuit_id: z53.string().optional()
1864
+ color: z49.string().default("#000000"),
1865
+ is_filled: z49.boolean().default(false),
1866
+ fill_color: z49.string().optional(),
1867
+ is_dashed: z49.boolean().default(false),
1868
+ subcircuit_id: z49.string().optional()
1916
1869
  }).describe("Draws a styled rectangle on the schematic");
1917
1870
  expectTypesMatch(true);
1918
- var schematic_circle = z54.object({
1919
- type: z54.literal("schematic_circle"),
1871
+ var schematic_circle = z50.object({
1872
+ type: z50.literal("schematic_circle"),
1920
1873
  schematic_circle_id: getZodPrefixedIdWithDefault("schematic_circle"),
1921
- schematic_component_id: z54.string(),
1874
+ schematic_component_id: z50.string(),
1922
1875
  center: point,
1923
1876
  radius: distance,
1924
1877
  stroke_width: distance.nullable().optional(),
1925
- color: z54.string().default("#000000"),
1926
- is_filled: z54.boolean().default(false),
1927
- fill_color: z54.string().optional(),
1928
- is_dashed: z54.boolean().default(false),
1929
- subcircuit_id: z54.string().optional()
1878
+ color: z50.string().default("#000000"),
1879
+ is_filled: z50.boolean().default(false),
1880
+ fill_color: z50.string().optional(),
1881
+ is_dashed: z50.boolean().default(false),
1882
+ subcircuit_id: z50.string().optional()
1930
1883
  }).describe("Draws a styled circle on the schematic");
1931
1884
  expectTypesMatch(true);
1932
- var schematic_arc = z55.object({
1933
- type: z55.literal("schematic_arc"),
1885
+ var schematic_arc = z51.object({
1886
+ type: z51.literal("schematic_arc"),
1934
1887
  schematic_arc_id: getZodPrefixedIdWithDefault("schematic_arc"),
1935
- schematic_component_id: z55.string(),
1888
+ schematic_component_id: z51.string(),
1936
1889
  center: point,
1937
1890
  radius: distance,
1938
1891
  start_angle_degrees: rotation,
1939
1892
  end_angle_degrees: rotation,
1940
- direction: z55.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
1893
+ direction: z51.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
1941
1894
  stroke_width: distance.nullable().optional(),
1942
- color: z55.string().default("#000000"),
1943
- is_dashed: z55.boolean().default(false),
1944
- subcircuit_id: z55.string().optional()
1895
+ color: z51.string().default("#000000"),
1896
+ is_dashed: z51.boolean().default(false),
1897
+ subcircuit_id: z51.string().optional()
1945
1898
  }).describe("Draws a styled arc on the schematic");
1946
1899
  expectTypesMatch(true);
1947
- var schematic_trace = z56.object({
1948
- type: z56.literal("schematic_trace"),
1949
- schematic_trace_id: z56.string(),
1950
- source_trace_id: z56.string().optional(),
1951
- junctions: z56.array(
1952
- z56.object({
1953
- x: z56.number(),
1954
- y: z56.number()
1900
+ var schematic_trace = z52.object({
1901
+ type: z52.literal("schematic_trace"),
1902
+ schematic_trace_id: z52.string(),
1903
+ source_trace_id: z52.string().optional(),
1904
+ junctions: z52.array(
1905
+ z52.object({
1906
+ x: z52.number(),
1907
+ y: z52.number()
1955
1908
  })
1956
1909
  ),
1957
- edges: z56.array(
1958
- z56.object({
1959
- from: z56.object({
1960
- x: z56.number(),
1961
- y: z56.number()
1910
+ edges: z52.array(
1911
+ z52.object({
1912
+ from: z52.object({
1913
+ x: z52.number(),
1914
+ y: z52.number()
1962
1915
  }),
1963
- to: z56.object({
1964
- x: z56.number(),
1965
- y: z56.number()
1916
+ to: z52.object({
1917
+ x: z52.number(),
1918
+ y: z52.number()
1966
1919
  }),
1967
- is_crossing: z56.boolean().optional(),
1968
- from_schematic_port_id: z56.string().optional(),
1969
- to_schematic_port_id: z56.string().optional()
1920
+ is_crossing: z52.boolean().optional(),
1921
+ from_schematic_port_id: z52.string().optional(),
1922
+ to_schematic_port_id: z52.string().optional()
1970
1923
  })
1971
1924
  ),
1972
- subcircuit_id: z56.string().optional(),
1925
+ subcircuit_id: z52.string().optional(),
1973
1926
  // TODO: make required in a future release
1974
- subcircuit_connectivity_map_key: z56.string().optional()
1927
+ subcircuit_connectivity_map_key: z52.string().optional()
1975
1928
  });
1976
1929
  expectTypesMatch(true);
1977
- var fivePointAnchor = z57.enum([
1930
+ var fivePointAnchor = z53.enum([
1978
1931
  "center",
1979
1932
  "left",
1980
1933
  "right",
@@ -1982,482 +1935,398 @@ var fivePointAnchor = z57.enum([
1982
1935
  "bottom"
1983
1936
  ]);
1984
1937
  expectTypesMatch(true);
1985
- var schematic_text = z58.object({
1986
- type: z58.literal("schematic_text"),
1987
- schematic_component_id: z58.string().optional(),
1988
- schematic_text_id: z58.string(),
1989
- text: z58.string(),
1990
- font_size: z58.number().default(0.18),
1991
- position: z58.object({
1938
+ var schematic_text = z54.object({
1939
+ type: z54.literal("schematic_text"),
1940
+ schematic_component_id: z54.string().optional(),
1941
+ schematic_text_id: z54.string(),
1942
+ text: z54.string(),
1943
+ font_size: z54.number().default(0.18),
1944
+ position: z54.object({
1992
1945
  x: distance,
1993
1946
  y: distance
1994
1947
  }),
1995
- rotation: z58.number().default(0),
1996
- anchor: z58.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
1997
- color: z58.string().default("#000000"),
1998
- subcircuit_id: z58.string().optional()
1948
+ rotation: z54.number().default(0),
1949
+ anchor: z54.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
1950
+ color: z54.string().default("#000000"),
1951
+ subcircuit_id: z54.string().optional()
1999
1952
  });
2000
1953
  expectTypesMatch(true);
2001
- var schematic_port = z59.object({
2002
- type: z59.literal("schematic_port"),
2003
- schematic_port_id: z59.string(),
2004
- source_port_id: z59.string(),
2005
- schematic_component_id: z59.string().optional(),
1954
+ var schematic_port = z55.object({
1955
+ type: z55.literal("schematic_port"),
1956
+ schematic_port_id: z55.string(),
1957
+ source_port_id: z55.string(),
1958
+ schematic_component_id: z55.string().optional(),
2006
1959
  center: point,
2007
- facing_direction: z59.enum(["up", "down", "left", "right"]).optional(),
2008
- distance_from_component_edge: z59.number().optional(),
2009
- side_of_component: z59.enum(["top", "bottom", "left", "right"]).optional(),
2010
- true_ccw_index: z59.number().optional(),
2011
- pin_number: z59.number().optional(),
2012
- display_pin_label: z59.string().optional(),
2013
- subcircuit_id: z59.string().optional(),
2014
- is_connected: z59.boolean().optional(),
2015
- has_input_arrow: z59.boolean().optional(),
2016
- has_output_arrow: z59.boolean().optional()
1960
+ facing_direction: z55.enum(["up", "down", "left", "right"]).optional(),
1961
+ distance_from_component_edge: z55.number().optional(),
1962
+ side_of_component: z55.enum(["top", "bottom", "left", "right"]).optional(),
1963
+ true_ccw_index: z55.number().optional(),
1964
+ pin_number: z55.number().optional(),
1965
+ display_pin_label: z55.string().optional(),
1966
+ subcircuit_id: z55.string().optional(),
1967
+ is_connected: z55.boolean().optional(),
1968
+ has_input_arrow: z55.boolean().optional(),
1969
+ has_output_arrow: z55.boolean().optional()
2017
1970
  }).describe("Defines a port on a schematic component");
2018
1971
  expectTypesMatch(true);
2019
- var schematic_net_label = z60.object({
2020
- type: z60.literal("schematic_net_label"),
1972
+ var schematic_net_label = z56.object({
1973
+ type: z56.literal("schematic_net_label"),
2021
1974
  schematic_net_label_id: getZodPrefixedIdWithDefault("schematic_net_label"),
2022
- schematic_trace_id: z60.string().optional(),
2023
- source_trace_id: z60.string().optional(),
2024
- source_net_id: z60.string(),
1975
+ schematic_trace_id: z56.string().optional(),
1976
+ source_trace_id: z56.string().optional(),
1977
+ source_net_id: z56.string(),
2025
1978
  center: point,
2026
1979
  anchor_position: point.optional(),
2027
- anchor_side: z60.enum(["top", "bottom", "left", "right"]),
2028
- text: z60.string(),
2029
- symbol_name: z60.string().optional(),
2030
- is_movable: z60.boolean().optional(),
2031
- subcircuit_id: z60.string().optional()
1980
+ anchor_side: z56.enum(["top", "bottom", "left", "right"]),
1981
+ text: z56.string(),
1982
+ symbol_name: z56.string().optional(),
1983
+ is_movable: z56.boolean().optional(),
1984
+ subcircuit_id: z56.string().optional()
2032
1985
  });
2033
1986
  expectTypesMatch(true);
2034
- var schematic_error = z61.object({
2035
- type: z61.literal("schematic_error"),
2036
- schematic_error_id: z61.string(),
1987
+ var schematic_error = z57.object({
1988
+ type: z57.literal("schematic_error"),
1989
+ schematic_error_id: z57.string(),
2037
1990
  // eventually each error type should be broken out into a dir of files
2038
- error_type: z61.literal("schematic_port_not_found").default("schematic_port_not_found"),
2039
- message: z61.string(),
2040
- subcircuit_id: z61.string().optional()
1991
+ error_type: z57.literal("schematic_port_not_found").default("schematic_port_not_found"),
1992
+ message: z57.string(),
1993
+ subcircuit_id: z57.string().optional()
2041
1994
  }).describe("Defines a schematic error on the schematic");
2042
1995
  expectTypesMatch(true);
2043
- var schematic_layout_error = z62.object({
2044
- type: z62.literal("schematic_layout_error"),
1996
+ var schematic_layout_error = z58.object({
1997
+ type: z58.literal("schematic_layout_error"),
2045
1998
  schematic_layout_error_id: getZodPrefixedIdWithDefault(
2046
1999
  "schematic_layout_error"
2047
2000
  ),
2048
- error_type: z62.literal("schematic_layout_error").default("schematic_layout_error"),
2049
- message: z62.string(),
2050
- source_group_id: z62.string(),
2051
- schematic_group_id: z62.string(),
2052
- subcircuit_id: z62.string().optional()
2001
+ error_type: z58.literal("schematic_layout_error").default("schematic_layout_error"),
2002
+ message: z58.string(),
2003
+ source_group_id: z58.string(),
2004
+ schematic_group_id: z58.string(),
2005
+ subcircuit_id: z58.string().optional()
2053
2006
  }).describe("Error emitted when schematic layout fails for a group");
2054
2007
  expectTypesMatch(true);
2055
- var schematic_debug_object_base = z63.object({
2056
- type: z63.literal("schematic_debug_object"),
2057
- label: z63.string().optional(),
2058
- subcircuit_id: z63.string().optional()
2008
+ var schematic_debug_object_base = z59.object({
2009
+ type: z59.literal("schematic_debug_object"),
2010
+ label: z59.string().optional(),
2011
+ subcircuit_id: z59.string().optional()
2059
2012
  });
2060
2013
  var schematic_debug_rect = schematic_debug_object_base.extend({
2061
- shape: z63.literal("rect"),
2014
+ shape: z59.literal("rect"),
2062
2015
  center: point,
2063
2016
  size
2064
2017
  });
2065
2018
  var schematic_debug_line = schematic_debug_object_base.extend({
2066
- shape: z63.literal("line"),
2019
+ shape: z59.literal("line"),
2067
2020
  start: point,
2068
2021
  end: point
2069
2022
  });
2070
2023
  var schematic_debug_point = schematic_debug_object_base.extend({
2071
- shape: z63.literal("point"),
2024
+ shape: z59.literal("point"),
2072
2025
  center: point
2073
2026
  });
2074
- var schematic_debug_object = z63.discriminatedUnion("shape", [
2027
+ var schematic_debug_object = z59.discriminatedUnion("shape", [
2075
2028
  schematic_debug_rect,
2076
2029
  schematic_debug_line,
2077
2030
  schematic_debug_point
2078
2031
  ]);
2079
2032
  expectTypesMatch(true);
2080
- var schematic_voltage_probe = z64.object({
2081
- type: z64.literal("schematic_voltage_probe"),
2082
- schematic_voltage_probe_id: z64.string(),
2083
- source_component_id: z64.string().optional(),
2084
- name: z64.string().optional(),
2033
+ var schematic_voltage_probe = z60.object({
2034
+ type: z60.literal("schematic_voltage_probe"),
2035
+ schematic_voltage_probe_id: z60.string(),
2085
2036
  position: point,
2086
- schematic_trace_id: z64.string(),
2037
+ schematic_trace_id: z60.string(),
2087
2038
  voltage: voltage.optional(),
2088
- subcircuit_id: z64.string().optional(),
2089
- color: z64.string().optional()
2039
+ subcircuit_id: z60.string().optional()
2090
2040
  }).describe("Defines a voltage probe measurement point on a schematic trace");
2091
2041
  expectTypesMatch(true);
2092
- var schematic_manual_edit_conflict_warning = z65.object({
2093
- type: z65.literal("schematic_manual_edit_conflict_warning"),
2042
+ var schematic_manual_edit_conflict_warning = z61.object({
2043
+ type: z61.literal("schematic_manual_edit_conflict_warning"),
2094
2044
  schematic_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
2095
2045
  "schematic_manual_edit_conflict_warning"
2096
2046
  ),
2097
- warning_type: z65.literal("schematic_manual_edit_conflict_warning").default("schematic_manual_edit_conflict_warning"),
2098
- message: z65.string(),
2099
- schematic_component_id: z65.string(),
2100
- schematic_group_id: z65.string().optional(),
2101
- subcircuit_id: z65.string().optional(),
2102
- source_component_id: z65.string()
2047
+ warning_type: z61.literal("schematic_manual_edit_conflict_warning").default("schematic_manual_edit_conflict_warning"),
2048
+ message: z61.string(),
2049
+ schematic_component_id: z61.string(),
2050
+ schematic_group_id: z61.string().optional(),
2051
+ subcircuit_id: z61.string().optional(),
2052
+ source_component_id: z61.string()
2103
2053
  }).describe(
2104
2054
  "Warning emitted when a component has both manual placement and explicit schX/schY coordinates"
2105
2055
  );
2106
2056
  expectTypesMatch(true);
2107
- var schematic_group = z66.object({
2108
- type: z66.literal("schematic_group"),
2057
+ var schematic_group = z62.object({
2058
+ type: z62.literal("schematic_group"),
2109
2059
  schematic_group_id: getZodPrefixedIdWithDefault("schematic_group"),
2110
- source_group_id: z66.string(),
2111
- is_subcircuit: z66.boolean().optional(),
2112
- subcircuit_id: z66.string().optional(),
2060
+ source_group_id: z62.string(),
2061
+ is_subcircuit: z62.boolean().optional(),
2062
+ subcircuit_id: z62.string().optional(),
2113
2063
  width: length,
2114
2064
  height: length,
2115
2065
  center: point,
2116
- schematic_component_ids: z66.array(z66.string()),
2117
- show_as_schematic_box: z66.boolean().optional(),
2118
- name: z66.string().optional(),
2119
- description: z66.string().optional()
2066
+ schematic_component_ids: z62.array(z62.string()),
2067
+ show_as_schematic_box: z62.boolean().optional(),
2068
+ name: z62.string().optional(),
2069
+ description: z62.string().optional()
2120
2070
  }).describe("Defines a group of components on the schematic");
2121
2071
  expectTypesMatch(true);
2122
- var schematic_table = z67.object({
2123
- type: z67.literal("schematic_table"),
2072
+ var schematic_table = z63.object({
2073
+ type: z63.literal("schematic_table"),
2124
2074
  schematic_table_id: getZodPrefixedIdWithDefault("schematic_table"),
2125
2075
  anchor_position: point,
2126
- column_widths: z67.array(distance),
2127
- row_heights: z67.array(distance),
2076
+ column_widths: z63.array(distance),
2077
+ row_heights: z63.array(distance),
2128
2078
  cell_padding: distance.optional(),
2129
2079
  border_width: distance.optional(),
2130
- subcircuit_id: z67.string().optional(),
2131
- schematic_component_id: z67.string().optional(),
2080
+ subcircuit_id: z63.string().optional(),
2081
+ schematic_component_id: z63.string().optional(),
2132
2082
  anchor: ninePointAnchor.optional()
2133
2083
  }).describe("Defines a table on the schematic");
2134
2084
  expectTypesMatch(true);
2135
- var schematic_table_cell = z68.object({
2136
- type: z68.literal("schematic_table_cell"),
2085
+ var schematic_table_cell = z64.object({
2086
+ type: z64.literal("schematic_table_cell"),
2137
2087
  schematic_table_cell_id: getZodPrefixedIdWithDefault(
2138
2088
  "schematic_table_cell"
2139
2089
  ),
2140
- schematic_table_id: z68.string(),
2141
- start_row_index: z68.number(),
2142
- end_row_index: z68.number(),
2143
- start_column_index: z68.number(),
2144
- end_column_index: z68.number(),
2145
- text: z68.string().optional(),
2090
+ schematic_table_id: z64.string(),
2091
+ start_row_index: z64.number(),
2092
+ end_row_index: z64.number(),
2093
+ start_column_index: z64.number(),
2094
+ end_column_index: z64.number(),
2095
+ text: z64.string().optional(),
2146
2096
  center: point,
2147
2097
  width: distance,
2148
2098
  height: distance,
2149
- horizontal_align: z68.enum(["left", "center", "right"]).optional(),
2150
- vertical_align: z68.enum(["top", "middle", "bottom"]).optional(),
2099
+ horizontal_align: z64.enum(["left", "center", "right"]).optional(),
2100
+ vertical_align: z64.enum(["top", "middle", "bottom"]).optional(),
2151
2101
  font_size: distance.optional(),
2152
- subcircuit_id: z68.string().optional()
2102
+ subcircuit_id: z64.string().optional()
2153
2103
  }).describe("Defines a cell within a schematic_table");
2154
2104
  expectTypesMatch(true);
2155
- var schematic_sheet = z69.object({
2156
- type: z69.literal("schematic_sheet"),
2105
+ var schematic_sheet = z65.object({
2106
+ type: z65.literal("schematic_sheet"),
2157
2107
  schematic_sheet_id: getZodPrefixedIdWithDefault("schematic_sheet"),
2158
- name: z69.string().optional(),
2159
- subcircuit_id: z69.string().optional()
2108
+ name: z65.string().optional(),
2109
+ subcircuit_id: z65.string().optional()
2160
2110
  }).describe(
2161
2111
  "Defines a schematic sheet or page that components can be placed on"
2162
2112
  );
2163
2113
  expectTypesMatch(true);
2164
- var point_with_bulge = z70.object({
2114
+ var point_with_bulge = z66.object({
2165
2115
  x: distance,
2166
2116
  y: distance,
2167
- bulge: z70.number().optional()
2117
+ bulge: z66.number().optional()
2168
2118
  });
2169
2119
  expectTypesMatch(true);
2170
- var ring = z70.object({
2171
- vertices: z70.array(point_with_bulge)
2120
+ var ring = z66.object({
2121
+ vertices: z66.array(point_with_bulge)
2172
2122
  });
2173
2123
  expectTypesMatch(true);
2174
- var brep_shape = z70.object({
2124
+ var brep_shape = z66.object({
2175
2125
  outer_ring: ring,
2176
- inner_rings: z70.array(ring).default([])
2126
+ inner_rings: z66.array(ring).default([])
2177
2127
  });
2178
2128
  expectTypesMatch(true);
2179
- var pcb_route_hint = z71.object({
2129
+ var pcb_route_hint = z67.object({
2180
2130
  x: distance,
2181
2131
  y: distance,
2182
- via: z71.boolean().optional(),
2132
+ via: z67.boolean().optional(),
2183
2133
  via_to_layer: layer_ref.optional()
2184
2134
  });
2185
- var pcb_route_hints = z71.array(pcb_route_hint);
2135
+ var pcb_route_hints = z67.array(pcb_route_hint);
2186
2136
  expectTypesMatch(true);
2187
2137
  expectTypesMatch(true);
2188
- var route_hint_point = z72.object({
2138
+ var route_hint_point = z68.object({
2189
2139
  x: distance,
2190
2140
  y: distance,
2191
- via: z72.boolean().optional(),
2141
+ via: z68.boolean().optional(),
2192
2142
  to_layer: layer_ref.optional(),
2193
2143
  trace_width: distance.optional()
2194
2144
  });
2195
2145
  expectTypesMatch(true);
2196
- var pcb_component = z73.object({
2197
- type: z73.literal("pcb_component"),
2146
+ var pcb_component = z69.object({
2147
+ type: z69.literal("pcb_component"),
2198
2148
  pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
2199
- source_component_id: z73.string(),
2149
+ source_component_id: z69.string(),
2200
2150
  center: point,
2201
2151
  layer: layer_ref,
2202
2152
  rotation,
2203
2153
  width: length,
2204
2154
  height: length,
2205
- do_not_place: z73.boolean().optional(),
2206
- subcircuit_id: z73.string().optional(),
2207
- pcb_group_id: z73.string().optional(),
2208
- position_mode: z73.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
2209
- positioned_relative_to_pcb_group_id: z73.string().optional(),
2210
- obstructs_within_bounds: z73.boolean().default(true).describe(
2155
+ do_not_place: z69.boolean().optional(),
2156
+ subcircuit_id: z69.string().optional(),
2157
+ pcb_group_id: z69.string().optional(),
2158
+ obstructs_within_bounds: z69.boolean().default(true).describe(
2211
2159
  "Does this component take up all the space within its bounds on a layer. This is generally true except for when separated pin headers are being represented by a single component (in which case, chips can be placed between the pin headers) or for tall modules where chips fit underneath"
2212
2160
  )
2213
2161
  }).describe("Defines a component on the PCB");
2214
2162
  expectTypesMatch(true);
2215
- var pcb_hole_circle = z74.object({
2216
- type: z74.literal("pcb_hole"),
2217
- pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
2218
- pcb_group_id: z74.string().optional(),
2219
- subcircuit_id: z74.string().optional(),
2220
- hole_shape: z74.literal("circle"),
2221
- hole_diameter: z74.number(),
2222
- x: distance,
2223
- y: distance,
2224
- is_covered_with_solder_mask: z74.boolean().optional(),
2225
- soldermask_margin: z74.number().optional()
2226
- });
2227
- var pcb_hole_circle_shape = pcb_hole_circle.describe(
2228
- "Defines a circular hole on the PCB"
2229
- );
2230
- expectTypesMatch(true);
2231
- var pcb_hole_rect = z74.object({
2232
- type: z74.literal("pcb_hole"),
2163
+ var pcb_hole_circle_or_square = z70.object({
2164
+ type: z70.literal("pcb_hole"),
2233
2165
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
2234
- pcb_group_id: z74.string().optional(),
2235
- subcircuit_id: z74.string().optional(),
2236
- hole_shape: z74.literal("rect"),
2237
- hole_width: z74.number(),
2238
- hole_height: z74.number(),
2166
+ pcb_group_id: z70.string().optional(),
2167
+ subcircuit_id: z70.string().optional(),
2168
+ hole_shape: z70.enum(["circle", "square"]),
2169
+ hole_diameter: z70.number(),
2239
2170
  x: distance,
2240
- y: distance,
2241
- is_covered_with_solder_mask: z74.boolean().optional(),
2242
- soldermask_margin: z74.number().optional()
2243
- });
2244
- var pcb_hole_rect_shape = pcb_hole_rect.describe(
2245
- "Defines a rectangular (square-capable) hole on the PCB. Use equal width/height for square."
2246
- );
2247
- expectTypesMatch(true);
2248
- var pcb_hole_circle_or_square = z74.object({
2249
- type: z74.literal("pcb_hole"),
2250
- pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
2251
- pcb_group_id: z74.string().optional(),
2252
- subcircuit_id: z74.string().optional(),
2253
- hole_shape: z74.enum(["circle", "square"]),
2254
- hole_diameter: z74.number(),
2255
- x: distance,
2256
- y: distance,
2257
- is_covered_with_solder_mask: z74.boolean().optional(),
2258
- soldermask_margin: z74.number().optional()
2171
+ y: distance
2259
2172
  });
2260
2173
  var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
2261
2174
  "Defines a circular or square hole on the PCB"
2262
2175
  );
2263
2176
  expectTypesMatch(true);
2264
- var pcb_hole_oval = z74.object({
2265
- type: z74.literal("pcb_hole"),
2177
+ var pcb_hole_oval = z70.object({
2178
+ type: z70.literal("pcb_hole"),
2266
2179
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
2267
- pcb_group_id: z74.string().optional(),
2268
- subcircuit_id: z74.string().optional(),
2269
- hole_shape: z74.literal("oval"),
2270
- hole_width: z74.number(),
2271
- hole_height: z74.number(),
2180
+ pcb_group_id: z70.string().optional(),
2181
+ subcircuit_id: z70.string().optional(),
2182
+ hole_shape: z70.literal("oval"),
2183
+ hole_width: z70.number(),
2184
+ hole_height: z70.number(),
2272
2185
  x: distance,
2273
- y: distance,
2274
- is_covered_with_solder_mask: z74.boolean().optional(),
2275
- soldermask_margin: z74.number().optional()
2186
+ y: distance
2276
2187
  });
2277
2188
  var pcb_hole_oval_shape = pcb_hole_oval.describe(
2278
2189
  "Defines an oval hole on the PCB"
2279
2190
  );
2280
2191
  expectTypesMatch(true);
2281
- var pcb_hole_pill = z74.object({
2282
- type: z74.literal("pcb_hole"),
2192
+ var pcb_hole_pill = z70.object({
2193
+ type: z70.literal("pcb_hole"),
2283
2194
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
2284
- pcb_group_id: z74.string().optional(),
2285
- subcircuit_id: z74.string().optional(),
2286
- hole_shape: z74.literal("pill"),
2287
- hole_width: z74.number(),
2288
- hole_height: z74.number(),
2195
+ pcb_group_id: z70.string().optional(),
2196
+ subcircuit_id: z70.string().optional(),
2197
+ hole_shape: z70.literal("pill"),
2198
+ hole_width: z70.number(),
2199
+ hole_height: z70.number(),
2289
2200
  x: distance,
2290
- y: distance,
2291
- is_covered_with_solder_mask: z74.boolean().optional(),
2292
- soldermask_margin: z74.number().optional()
2201
+ y: distance
2293
2202
  });
2294
2203
  var pcb_hole_pill_shape = pcb_hole_pill.describe(
2295
2204
  "Defines a pill-shaped hole on the PCB"
2296
2205
  );
2297
2206
  expectTypesMatch(true);
2298
- var pcb_hole_rotated_pill = z74.object({
2299
- type: z74.literal("pcb_hole"),
2207
+ var pcb_hole_rotated_pill = z70.object({
2208
+ type: z70.literal("pcb_hole"),
2300
2209
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
2301
- pcb_group_id: z74.string().optional(),
2302
- subcircuit_id: z74.string().optional(),
2303
- hole_shape: z74.literal("rotated_pill"),
2304
- hole_width: z74.number(),
2305
- hole_height: z74.number(),
2210
+ pcb_group_id: z70.string().optional(),
2211
+ subcircuit_id: z70.string().optional(),
2212
+ hole_shape: z70.literal("rotated_pill"),
2213
+ hole_width: z70.number(),
2214
+ hole_height: z70.number(),
2306
2215
  x: distance,
2307
2216
  y: distance,
2308
- ccw_rotation: rotation,
2309
- is_covered_with_solder_mask: z74.boolean().optional(),
2310
- soldermask_margin: z74.number().optional()
2217
+ ccw_rotation: rotation
2311
2218
  });
2312
2219
  var pcb_hole_rotated_pill_shape = pcb_hole_rotated_pill.describe(
2313
2220
  "Defines a rotated pill-shaped hole on the PCB"
2314
2221
  );
2315
2222
  expectTypesMatch(true);
2316
- var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval).or(pcb_hole_pill).or(pcb_hole_rotated_pill).or(pcb_hole_circle).or(pcb_hole_rect);
2317
- var pcb_plated_hole_circle = z75.object({
2318
- type: z75.literal("pcb_plated_hole"),
2319
- shape: z75.literal("circle"),
2320
- pcb_group_id: z75.string().optional(),
2321
- subcircuit_id: z75.string().optional(),
2322
- outer_diameter: z75.number(),
2323
- hole_diameter: z75.number(),
2324
- is_covered_with_solder_mask: z75.boolean().optional(),
2223
+ var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval).or(pcb_hole_pill).or(pcb_hole_rotated_pill);
2224
+ var pcb_plated_hole_circle = z71.object({
2225
+ type: z71.literal("pcb_plated_hole"),
2226
+ shape: z71.literal("circle"),
2227
+ pcb_group_id: z71.string().optional(),
2228
+ subcircuit_id: z71.string().optional(),
2229
+ outer_diameter: z71.number(),
2230
+ hole_diameter: z71.number(),
2325
2231
  x: distance,
2326
2232
  y: distance,
2327
- layers: z75.array(layer_ref),
2328
- port_hints: z75.array(z75.string()).optional(),
2329
- pcb_component_id: z75.string().optional(),
2330
- pcb_port_id: z75.string().optional(),
2331
- pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
2332
- soldermask_margin: z75.number().optional()
2233
+ layers: z71.array(layer_ref),
2234
+ port_hints: z71.array(z71.string()).optional(),
2235
+ pcb_component_id: z71.string().optional(),
2236
+ pcb_port_id: z71.string().optional(),
2237
+ pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
2333
2238
  });
2334
- var pcb_plated_hole_oval = z75.object({
2335
- type: z75.literal("pcb_plated_hole"),
2336
- shape: z75.enum(["oval", "pill"]),
2337
- pcb_group_id: z75.string().optional(),
2338
- subcircuit_id: z75.string().optional(),
2339
- outer_width: z75.number(),
2340
- outer_height: z75.number(),
2341
- hole_width: z75.number(),
2342
- hole_height: z75.number(),
2343
- is_covered_with_solder_mask: z75.boolean().optional(),
2239
+ var pcb_plated_hole_oval = z71.object({
2240
+ type: z71.literal("pcb_plated_hole"),
2241
+ shape: z71.enum(["oval", "pill"]),
2242
+ pcb_group_id: z71.string().optional(),
2243
+ subcircuit_id: z71.string().optional(),
2244
+ outer_width: z71.number(),
2245
+ outer_height: z71.number(),
2246
+ hole_width: z71.number(),
2247
+ hole_height: z71.number(),
2344
2248
  x: distance,
2345
2249
  y: distance,
2346
2250
  ccw_rotation: rotation,
2347
- layers: z75.array(layer_ref),
2348
- port_hints: z75.array(z75.string()).optional(),
2349
- pcb_component_id: z75.string().optional(),
2350
- pcb_port_id: z75.string().optional(),
2351
- pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
2352
- soldermask_margin: z75.number().optional()
2251
+ layers: z71.array(layer_ref),
2252
+ port_hints: z71.array(z71.string()).optional(),
2253
+ pcb_component_id: z71.string().optional(),
2254
+ pcb_port_id: z71.string().optional(),
2255
+ pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
2353
2256
  });
2354
- var pcb_circular_hole_with_rect_pad = z75.object({
2355
- type: z75.literal("pcb_plated_hole"),
2356
- shape: z75.literal("circular_hole_with_rect_pad"),
2357
- pcb_group_id: z75.string().optional(),
2358
- subcircuit_id: z75.string().optional(),
2359
- hole_shape: z75.literal("circle"),
2360
- pad_shape: z75.literal("rect"),
2361
- hole_diameter: z75.number(),
2362
- rect_pad_width: z75.number(),
2363
- rect_pad_height: z75.number(),
2364
- rect_border_radius: z75.number().optional(),
2257
+ var pcb_circular_hole_with_rect_pad = z71.object({
2258
+ type: z71.literal("pcb_plated_hole"),
2259
+ shape: z71.literal("circular_hole_with_rect_pad"),
2260
+ pcb_group_id: z71.string().optional(),
2261
+ subcircuit_id: z71.string().optional(),
2262
+ hole_shape: z71.literal("circle"),
2263
+ pad_shape: z71.literal("rect"),
2264
+ hole_diameter: z71.number(),
2265
+ rect_pad_width: z71.number(),
2266
+ rect_pad_height: z71.number(),
2267
+ rect_border_radius: z71.number().optional(),
2365
2268
  hole_offset_x: distance.default(0),
2366
2269
  hole_offset_y: distance.default(0),
2367
- is_covered_with_solder_mask: z75.boolean().optional(),
2368
2270
  x: distance,
2369
2271
  y: distance,
2370
- layers: z75.array(layer_ref),
2371
- port_hints: z75.array(z75.string()).optional(),
2372
- pcb_component_id: z75.string().optional(),
2373
- pcb_port_id: z75.string().optional(),
2374
- pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
2375
- soldermask_margin: z75.number().optional()
2272
+ layers: z71.array(layer_ref),
2273
+ port_hints: z71.array(z71.string()).optional(),
2274
+ pcb_component_id: z71.string().optional(),
2275
+ pcb_port_id: z71.string().optional(),
2276
+ pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
2376
2277
  });
2377
- var pcb_pill_hole_with_rect_pad = z75.object({
2378
- type: z75.literal("pcb_plated_hole"),
2379
- shape: z75.literal("pill_hole_with_rect_pad"),
2380
- pcb_group_id: z75.string().optional(),
2381
- subcircuit_id: z75.string().optional(),
2382
- hole_shape: z75.literal("pill"),
2383
- pad_shape: z75.literal("rect"),
2384
- hole_width: z75.number(),
2385
- hole_height: z75.number(),
2386
- rect_pad_width: z75.number(),
2387
- rect_pad_height: z75.number(),
2388
- rect_border_radius: z75.number().optional(),
2278
+ var pcb_pill_hole_with_rect_pad = z71.object({
2279
+ type: z71.literal("pcb_plated_hole"),
2280
+ shape: z71.literal("pill_hole_with_rect_pad"),
2281
+ pcb_group_id: z71.string().optional(),
2282
+ subcircuit_id: z71.string().optional(),
2283
+ hole_shape: z71.literal("pill"),
2284
+ pad_shape: z71.literal("rect"),
2285
+ hole_width: z71.number(),
2286
+ hole_height: z71.number(),
2287
+ rect_pad_width: z71.number(),
2288
+ rect_pad_height: z71.number(),
2289
+ rect_border_radius: z71.number().optional(),
2389
2290
  hole_offset_x: distance.default(0),
2390
2291
  hole_offset_y: distance.default(0),
2391
- is_covered_with_solder_mask: z75.boolean().optional(),
2392
2292
  x: distance,
2393
2293
  y: distance,
2394
- layers: z75.array(layer_ref),
2395
- port_hints: z75.array(z75.string()).optional(),
2396
- pcb_component_id: z75.string().optional(),
2397
- pcb_port_id: z75.string().optional(),
2398
- pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
2399
- soldermask_margin: z75.number().optional()
2294
+ layers: z71.array(layer_ref),
2295
+ port_hints: z71.array(z71.string()).optional(),
2296
+ pcb_component_id: z71.string().optional(),
2297
+ pcb_port_id: z71.string().optional(),
2298
+ pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
2400
2299
  });
2401
- var pcb_rotated_pill_hole_with_rect_pad = z75.object({
2402
- type: z75.literal("pcb_plated_hole"),
2403
- shape: z75.literal("rotated_pill_hole_with_rect_pad"),
2404
- pcb_group_id: z75.string().optional(),
2405
- subcircuit_id: z75.string().optional(),
2406
- hole_shape: z75.literal("rotated_pill"),
2407
- pad_shape: z75.literal("rect"),
2408
- hole_width: z75.number(),
2409
- hole_height: z75.number(),
2300
+ var pcb_rotated_pill_hole_with_rect_pad = z71.object({
2301
+ type: z71.literal("pcb_plated_hole"),
2302
+ shape: z71.literal("rotated_pill_hole_with_rect_pad"),
2303
+ pcb_group_id: z71.string().optional(),
2304
+ subcircuit_id: z71.string().optional(),
2305
+ hole_shape: z71.literal("rotated_pill"),
2306
+ pad_shape: z71.literal("rect"),
2307
+ hole_width: z71.number(),
2308
+ hole_height: z71.number(),
2410
2309
  hole_ccw_rotation: rotation,
2411
- rect_pad_width: z75.number(),
2412
- rect_pad_height: z75.number(),
2413
- rect_border_radius: z75.number().optional(),
2310
+ rect_pad_width: z71.number(),
2311
+ rect_pad_height: z71.number(),
2312
+ rect_border_radius: z71.number().optional(),
2414
2313
  rect_ccw_rotation: rotation,
2415
2314
  hole_offset_x: distance.default(0),
2416
2315
  hole_offset_y: distance.default(0),
2417
- is_covered_with_solder_mask: z75.boolean().optional(),
2418
2316
  x: distance,
2419
2317
  y: distance,
2420
- layers: z75.array(layer_ref),
2421
- port_hints: z75.array(z75.string()).optional(),
2422
- pcb_component_id: z75.string().optional(),
2423
- pcb_port_id: z75.string().optional(),
2424
- pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
2425
- soldermask_margin: z75.number().optional()
2318
+ layers: z71.array(layer_ref),
2319
+ port_hints: z71.array(z71.string()).optional(),
2320
+ pcb_component_id: z71.string().optional(),
2321
+ pcb_port_id: z71.string().optional(),
2322
+ pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
2426
2323
  });
2427
- var pcb_hole_with_polygon_pad = z75.object({
2428
- type: z75.literal("pcb_plated_hole"),
2429
- shape: z75.literal("hole_with_polygon_pad"),
2430
- pcb_group_id: z75.string().optional(),
2431
- subcircuit_id: z75.string().optional(),
2432
- hole_shape: z75.enum(["circle", "oval", "pill", "rotated_pill"]),
2433
- hole_diameter: z75.number().optional(),
2434
- hole_width: z75.number().optional(),
2435
- hole_height: z75.number().optional(),
2436
- pad_outline: z75.array(
2437
- z75.object({
2438
- x: distance,
2439
- y: distance
2440
- })
2441
- ).min(3),
2442
- hole_offset_x: distance.default(0),
2443
- hole_offset_y: distance.default(0),
2444
- is_covered_with_solder_mask: z75.boolean().optional(),
2445
- x: distance,
2446
- y: distance,
2447
- layers: z75.array(layer_ref),
2448
- port_hints: z75.array(z75.string()).optional(),
2449
- pcb_component_id: z75.string().optional(),
2450
- pcb_port_id: z75.string().optional(),
2451
- pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
2452
- soldermask_margin: z75.number().optional()
2453
- });
2454
- var pcb_plated_hole = z75.union([
2324
+ var pcb_plated_hole = z71.union([
2455
2325
  pcb_plated_hole_circle,
2456
2326
  pcb_plated_hole_oval,
2457
2327
  pcb_circular_hole_with_rect_pad,
2458
2328
  pcb_pill_hole_with_rect_pad,
2459
- pcb_rotated_pill_hole_with_rect_pad,
2460
- pcb_hole_with_polygon_pad
2329
+ pcb_rotated_pill_hole_with_rect_pad
2461
2330
  ]);
2462
2331
  expectTypesMatch(
2463
2332
  true
@@ -2466,127 +2335,120 @@ expectTypesMatch(true);
2466
2335
  expectTypesMatch(true);
2467
2336
  expectTypesMatch(true);
2468
2337
  expectTypesMatch(true);
2469
- expectTypesMatch(true);
2470
- var pcb_port = z76.object({
2471
- type: z76.literal("pcb_port"),
2338
+ var pcb_port = z72.object({
2339
+ type: z72.literal("pcb_port"),
2472
2340
  pcb_port_id: getZodPrefixedIdWithDefault("pcb_port"),
2473
- pcb_group_id: z76.string().optional(),
2474
- subcircuit_id: z76.string().optional(),
2475
- source_port_id: z76.string(),
2476
- pcb_component_id: z76.string().optional(),
2341
+ pcb_group_id: z72.string().optional(),
2342
+ subcircuit_id: z72.string().optional(),
2343
+ source_port_id: z72.string(),
2344
+ pcb_component_id: z72.string().optional(),
2477
2345
  x: distance,
2478
2346
  y: distance,
2479
- layers: z76.array(layer_ref),
2480
- is_board_pinout: z76.boolean().optional()
2347
+ layers: z72.array(layer_ref),
2348
+ is_board_pinout: z72.boolean().optional()
2481
2349
  }).describe("Defines a port on the PCB");
2482
2350
  expectTypesMatch(true);
2483
- var pcb_smtpad_circle = z77.object({
2484
- type: z77.literal("pcb_smtpad"),
2485
- shape: z77.literal("circle"),
2351
+ var pcb_smtpad_circle = z73.object({
2352
+ type: z73.literal("pcb_smtpad"),
2353
+ shape: z73.literal("circle"),
2486
2354
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
2487
- pcb_group_id: z77.string().optional(),
2488
- subcircuit_id: z77.string().optional(),
2355
+ pcb_group_id: z73.string().optional(),
2356
+ subcircuit_id: z73.string().optional(),
2489
2357
  x: distance,
2490
2358
  y: distance,
2491
- radius: z77.number(),
2359
+ radius: z73.number(),
2492
2360
  layer: layer_ref,
2493
- port_hints: z77.array(z77.string()).optional(),
2494
- pcb_component_id: z77.string().optional(),
2495
- pcb_port_id: z77.string().optional(),
2496
- is_covered_with_solder_mask: z77.boolean().optional(),
2497
- soldermask_margin: z77.number().optional()
2361
+ port_hints: z73.array(z73.string()).optional(),
2362
+ pcb_component_id: z73.string().optional(),
2363
+ pcb_port_id: z73.string().optional(),
2364
+ is_covered_with_solder_mask: z73.boolean().optional()
2498
2365
  });
2499
- var pcb_smtpad_rect = z77.object({
2500
- type: z77.literal("pcb_smtpad"),
2501
- shape: z77.literal("rect"),
2366
+ var pcb_smtpad_rect = z73.object({
2367
+ type: z73.literal("pcb_smtpad"),
2368
+ shape: z73.literal("rect"),
2502
2369
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
2503
- pcb_group_id: z77.string().optional(),
2504
- subcircuit_id: z77.string().optional(),
2370
+ pcb_group_id: z73.string().optional(),
2371
+ subcircuit_id: z73.string().optional(),
2505
2372
  x: distance,
2506
2373
  y: distance,
2507
- width: z77.number(),
2508
- height: z77.number(),
2509
- rect_border_radius: z77.number().optional(),
2510
- corner_radius: z77.number().optional(),
2374
+ width: z73.number(),
2375
+ height: z73.number(),
2376
+ rect_border_radius: z73.number().optional(),
2377
+ corner_radius: z73.number().optional(),
2511
2378
  layer: layer_ref,
2512
- port_hints: z77.array(z77.string()).optional(),
2513
- pcb_component_id: z77.string().optional(),
2514
- pcb_port_id: z77.string().optional(),
2515
- is_covered_with_solder_mask: z77.boolean().optional(),
2516
- soldermask_margin: z77.number().optional()
2379
+ port_hints: z73.array(z73.string()).optional(),
2380
+ pcb_component_id: z73.string().optional(),
2381
+ pcb_port_id: z73.string().optional(),
2382
+ is_covered_with_solder_mask: z73.boolean().optional()
2517
2383
  });
2518
- var pcb_smtpad_rotated_rect = z77.object({
2519
- type: z77.literal("pcb_smtpad"),
2520
- shape: z77.literal("rotated_rect"),
2384
+ var pcb_smtpad_rotated_rect = z73.object({
2385
+ type: z73.literal("pcb_smtpad"),
2386
+ shape: z73.literal("rotated_rect"),
2521
2387
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
2522
- pcb_group_id: z77.string().optional(),
2523
- subcircuit_id: z77.string().optional(),
2388
+ pcb_group_id: z73.string().optional(),
2389
+ subcircuit_id: z73.string().optional(),
2524
2390
  x: distance,
2525
2391
  y: distance,
2526
- width: z77.number(),
2527
- height: z77.number(),
2528
- rect_border_radius: z77.number().optional(),
2529
- corner_radius: z77.number().optional(),
2392
+ width: z73.number(),
2393
+ height: z73.number(),
2394
+ rect_border_radius: z73.number().optional(),
2395
+ corner_radius: z73.number().optional(),
2530
2396
  ccw_rotation: rotation,
2531
2397
  layer: layer_ref,
2532
- port_hints: z77.array(z77.string()).optional(),
2533
- pcb_component_id: z77.string().optional(),
2534
- pcb_port_id: z77.string().optional(),
2535
- is_covered_with_solder_mask: z77.boolean().optional(),
2536
- soldermask_margin: z77.number().optional()
2398
+ port_hints: z73.array(z73.string()).optional(),
2399
+ pcb_component_id: z73.string().optional(),
2400
+ pcb_port_id: z73.string().optional(),
2401
+ is_covered_with_solder_mask: z73.boolean().optional()
2537
2402
  });
2538
- var pcb_smtpad_pill = z77.object({
2539
- type: z77.literal("pcb_smtpad"),
2540
- shape: z77.literal("pill"),
2403
+ var pcb_smtpad_pill = z73.object({
2404
+ type: z73.literal("pcb_smtpad"),
2405
+ shape: z73.literal("pill"),
2541
2406
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
2542
- pcb_group_id: z77.string().optional(),
2543
- subcircuit_id: z77.string().optional(),
2407
+ pcb_group_id: z73.string().optional(),
2408
+ subcircuit_id: z73.string().optional(),
2544
2409
  x: distance,
2545
2410
  y: distance,
2546
- width: z77.number(),
2547
- height: z77.number(),
2548
- radius: z77.number(),
2411
+ width: z73.number(),
2412
+ height: z73.number(),
2413
+ radius: z73.number(),
2549
2414
  layer: layer_ref,
2550
- port_hints: z77.array(z77.string()).optional(),
2551
- pcb_component_id: z77.string().optional(),
2552
- pcb_port_id: z77.string().optional(),
2553
- is_covered_with_solder_mask: z77.boolean().optional(),
2554
- soldermask_margin: z77.number().optional()
2415
+ port_hints: z73.array(z73.string()).optional(),
2416
+ pcb_component_id: z73.string().optional(),
2417
+ pcb_port_id: z73.string().optional(),
2418
+ is_covered_with_solder_mask: z73.boolean().optional()
2555
2419
  });
2556
- var pcb_smtpad_rotated_pill = z77.object({
2557
- type: z77.literal("pcb_smtpad"),
2558
- shape: z77.literal("rotated_pill"),
2420
+ var pcb_smtpad_rotated_pill = z73.object({
2421
+ type: z73.literal("pcb_smtpad"),
2422
+ shape: z73.literal("rotated_pill"),
2559
2423
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
2560
- pcb_group_id: z77.string().optional(),
2561
- subcircuit_id: z77.string().optional(),
2424
+ pcb_group_id: z73.string().optional(),
2425
+ subcircuit_id: z73.string().optional(),
2562
2426
  x: distance,
2563
2427
  y: distance,
2564
- width: z77.number(),
2565
- height: z77.number(),
2566
- radius: z77.number(),
2428
+ width: z73.number(),
2429
+ height: z73.number(),
2430
+ radius: z73.number(),
2567
2431
  ccw_rotation: rotation,
2568
2432
  layer: layer_ref,
2569
- port_hints: z77.array(z77.string()).optional(),
2570
- pcb_component_id: z77.string().optional(),
2571
- pcb_port_id: z77.string().optional(),
2572
- is_covered_with_solder_mask: z77.boolean().optional(),
2573
- soldermask_margin: z77.number().optional()
2433
+ port_hints: z73.array(z73.string()).optional(),
2434
+ pcb_component_id: z73.string().optional(),
2435
+ pcb_port_id: z73.string().optional(),
2436
+ is_covered_with_solder_mask: z73.boolean().optional()
2574
2437
  });
2575
- var pcb_smtpad_polygon = z77.object({
2576
- type: z77.literal("pcb_smtpad"),
2577
- shape: z77.literal("polygon"),
2438
+ var pcb_smtpad_polygon = z73.object({
2439
+ type: z73.literal("pcb_smtpad"),
2440
+ shape: z73.literal("polygon"),
2578
2441
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
2579
- pcb_group_id: z77.string().optional(),
2580
- subcircuit_id: z77.string().optional(),
2581
- points: z77.array(point),
2442
+ pcb_group_id: z73.string().optional(),
2443
+ subcircuit_id: z73.string().optional(),
2444
+ points: z73.array(point),
2582
2445
  layer: layer_ref,
2583
- port_hints: z77.array(z77.string()).optional(),
2584
- pcb_component_id: z77.string().optional(),
2585
- pcb_port_id: z77.string().optional(),
2586
- is_covered_with_solder_mask: z77.boolean().optional(),
2587
- soldermask_margin: z77.number().optional()
2446
+ port_hints: z73.array(z73.string()).optional(),
2447
+ pcb_component_id: z73.string().optional(),
2448
+ pcb_port_id: z73.string().optional(),
2449
+ is_covered_with_solder_mask: z73.boolean().optional()
2588
2450
  });
2589
- var pcb_smtpad = z77.discriminatedUnion("shape", [
2451
+ var pcb_smtpad = z73.discriminatedUnion("shape", [
2590
2452
  pcb_smtpad_circle,
2591
2453
  pcb_smtpad_rect,
2592
2454
  pcb_smtpad_rotated_rect,
@@ -2600,78 +2462,78 @@ expectTypesMatch(true);
2600
2462
  expectTypesMatch(true);
2601
2463
  expectTypesMatch(true);
2602
2464
  expectTypesMatch(true);
2603
- var pcb_solder_paste_circle = z78.object({
2604
- type: z78.literal("pcb_solder_paste"),
2605
- shape: z78.literal("circle"),
2465
+ var pcb_solder_paste_circle = z74.object({
2466
+ type: z74.literal("pcb_solder_paste"),
2467
+ shape: z74.literal("circle"),
2606
2468
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
2607
- pcb_group_id: z78.string().optional(),
2608
- subcircuit_id: z78.string().optional(),
2469
+ pcb_group_id: z74.string().optional(),
2470
+ subcircuit_id: z74.string().optional(),
2609
2471
  x: distance,
2610
2472
  y: distance,
2611
- radius: z78.number(),
2473
+ radius: z74.number(),
2612
2474
  layer: layer_ref,
2613
- pcb_component_id: z78.string().optional(),
2614
- pcb_smtpad_id: z78.string().optional()
2475
+ pcb_component_id: z74.string().optional(),
2476
+ pcb_smtpad_id: z74.string().optional()
2615
2477
  });
2616
- var pcb_solder_paste_rect = z78.object({
2617
- type: z78.literal("pcb_solder_paste"),
2618
- shape: z78.literal("rect"),
2478
+ var pcb_solder_paste_rect = z74.object({
2479
+ type: z74.literal("pcb_solder_paste"),
2480
+ shape: z74.literal("rect"),
2619
2481
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
2620
- pcb_group_id: z78.string().optional(),
2621
- subcircuit_id: z78.string().optional(),
2482
+ pcb_group_id: z74.string().optional(),
2483
+ subcircuit_id: z74.string().optional(),
2622
2484
  x: distance,
2623
2485
  y: distance,
2624
- width: z78.number(),
2625
- height: z78.number(),
2486
+ width: z74.number(),
2487
+ height: z74.number(),
2626
2488
  layer: layer_ref,
2627
- pcb_component_id: z78.string().optional(),
2628
- pcb_smtpad_id: z78.string().optional()
2489
+ pcb_component_id: z74.string().optional(),
2490
+ pcb_smtpad_id: z74.string().optional()
2629
2491
  });
2630
- var pcb_solder_paste_pill = z78.object({
2631
- type: z78.literal("pcb_solder_paste"),
2632
- shape: z78.literal("pill"),
2492
+ var pcb_solder_paste_pill = z74.object({
2493
+ type: z74.literal("pcb_solder_paste"),
2494
+ shape: z74.literal("pill"),
2633
2495
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
2634
- pcb_group_id: z78.string().optional(),
2635
- subcircuit_id: z78.string().optional(),
2496
+ pcb_group_id: z74.string().optional(),
2497
+ subcircuit_id: z74.string().optional(),
2636
2498
  x: distance,
2637
2499
  y: distance,
2638
- width: z78.number(),
2639
- height: z78.number(),
2640
- radius: z78.number(),
2500
+ width: z74.number(),
2501
+ height: z74.number(),
2502
+ radius: z74.number(),
2641
2503
  layer: layer_ref,
2642
- pcb_component_id: z78.string().optional(),
2643
- pcb_smtpad_id: z78.string().optional()
2504
+ pcb_component_id: z74.string().optional(),
2505
+ pcb_smtpad_id: z74.string().optional()
2644
2506
  });
2645
- var pcb_solder_paste_rotated_rect = z78.object({
2646
- type: z78.literal("pcb_solder_paste"),
2647
- shape: z78.literal("rotated_rect"),
2507
+ var pcb_solder_paste_rotated_rect = z74.object({
2508
+ type: z74.literal("pcb_solder_paste"),
2509
+ shape: z74.literal("rotated_rect"),
2648
2510
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
2649
- pcb_group_id: z78.string().optional(),
2650
- subcircuit_id: z78.string().optional(),
2511
+ pcb_group_id: z74.string().optional(),
2512
+ subcircuit_id: z74.string().optional(),
2651
2513
  x: distance,
2652
2514
  y: distance,
2653
- width: z78.number(),
2654
- height: z78.number(),
2515
+ width: z74.number(),
2516
+ height: z74.number(),
2655
2517
  ccw_rotation: distance,
2656
2518
  layer: layer_ref,
2657
- pcb_component_id: z78.string().optional(),
2658
- pcb_smtpad_id: z78.string().optional()
2519
+ pcb_component_id: z74.string().optional(),
2520
+ pcb_smtpad_id: z74.string().optional()
2659
2521
  });
2660
- var pcb_solder_paste_oval = z78.object({
2661
- type: z78.literal("pcb_solder_paste"),
2662
- shape: z78.literal("oval"),
2522
+ var pcb_solder_paste_oval = z74.object({
2523
+ type: z74.literal("pcb_solder_paste"),
2524
+ shape: z74.literal("oval"),
2663
2525
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
2664
- pcb_group_id: z78.string().optional(),
2665
- subcircuit_id: z78.string().optional(),
2526
+ pcb_group_id: z74.string().optional(),
2527
+ subcircuit_id: z74.string().optional(),
2666
2528
  x: distance,
2667
2529
  y: distance,
2668
- width: z78.number(),
2669
- height: z78.number(),
2530
+ width: z74.number(),
2531
+ height: z74.number(),
2670
2532
  layer: layer_ref,
2671
- pcb_component_id: z78.string().optional(),
2672
- pcb_smtpad_id: z78.string().optional()
2533
+ pcb_component_id: z74.string().optional(),
2534
+ pcb_smtpad_id: z74.string().optional()
2673
2535
  });
2674
- var pcb_solder_paste = z78.union([
2536
+ var pcb_solder_paste = z74.union([
2675
2537
  pcb_solder_paste_circle,
2676
2538
  pcb_solder_paste_rect,
2677
2539
  pcb_solder_paste_pill,
@@ -2685,124 +2547,123 @@ expectTypesMatch(
2685
2547
  true
2686
2548
  );
2687
2549
  expectTypesMatch(true);
2688
- var pcb_text = z79.object({
2689
- type: z79.literal("pcb_text"),
2550
+ var pcb_text = z75.object({
2551
+ type: z75.literal("pcb_text"),
2690
2552
  pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
2691
- pcb_group_id: z79.string().optional(),
2692
- subcircuit_id: z79.string().optional(),
2693
- text: z79.string(),
2553
+ pcb_group_id: z75.string().optional(),
2554
+ subcircuit_id: z75.string().optional(),
2555
+ text: z75.string(),
2694
2556
  center: point,
2695
2557
  layer: layer_ref,
2696
2558
  width: length,
2697
2559
  height: length,
2698
- lines: z79.number(),
2560
+ lines: z75.number(),
2699
2561
  // @ts-ignore
2700
- align: z79.enum(["bottom-left"])
2562
+ align: z75.enum(["bottom-left"])
2701
2563
  }).describe("Defines text on the PCB");
2702
2564
  expectTypesMatch(true);
2703
- var pcb_trace_route_point_wire = z80.object({
2704
- route_type: z80.literal("wire"),
2565
+ var pcb_trace_route_point_wire = z76.object({
2566
+ route_type: z76.literal("wire"),
2705
2567
  x: distance,
2706
2568
  y: distance,
2707
2569
  width: distance,
2708
- start_pcb_port_id: z80.string().optional(),
2709
- end_pcb_port_id: z80.string().optional(),
2570
+ start_pcb_port_id: z76.string().optional(),
2571
+ end_pcb_port_id: z76.string().optional(),
2710
2572
  layer: layer_ref
2711
2573
  });
2712
- var pcb_trace_route_point_via = z80.object({
2713
- route_type: z80.literal("via"),
2574
+ var pcb_trace_route_point_via = z76.object({
2575
+ route_type: z76.literal("via"),
2714
2576
  x: distance,
2715
2577
  y: distance,
2716
2578
  hole_diameter: distance.optional(),
2717
2579
  outer_diameter: distance.optional(),
2718
- from_layer: z80.string(),
2719
- to_layer: z80.string()
2580
+ from_layer: z76.string(),
2581
+ to_layer: z76.string()
2720
2582
  });
2721
- var pcb_trace_route_point = z80.union([
2583
+ var pcb_trace_route_point = z76.union([
2722
2584
  pcb_trace_route_point_wire,
2723
2585
  pcb_trace_route_point_via
2724
2586
  ]);
2725
- var pcb_trace = z80.object({
2726
- type: z80.literal("pcb_trace"),
2727
- source_trace_id: z80.string().optional(),
2728
- pcb_component_id: z80.string().optional(),
2587
+ var pcb_trace = z76.object({
2588
+ type: z76.literal("pcb_trace"),
2589
+ source_trace_id: z76.string().optional(),
2590
+ pcb_component_id: z76.string().optional(),
2729
2591
  pcb_trace_id: getZodPrefixedIdWithDefault("pcb_trace"),
2730
- pcb_group_id: z80.string().optional(),
2731
- subcircuit_id: z80.string().optional(),
2732
- route_thickness_mode: z80.enum(["constant", "interpolated"]).default("constant").optional(),
2733
- route_order_index: z80.number().optional(),
2734
- should_round_corners: z80.boolean().optional(),
2735
- trace_length: z80.number().optional(),
2736
- highlight_color: z80.string().optional(),
2737
- route: z80.array(pcb_trace_route_point)
2592
+ pcb_group_id: z76.string().optional(),
2593
+ subcircuit_id: z76.string().optional(),
2594
+ route_thickness_mode: z76.enum(["constant", "interpolated"]).default("constant").optional(),
2595
+ route_order_index: z76.number().optional(),
2596
+ should_round_corners: z76.boolean().optional(),
2597
+ trace_length: z76.number().optional(),
2598
+ highlight_color: z76.string().optional(),
2599
+ route: z76.array(pcb_trace_route_point)
2738
2600
  }).describe("Defines a trace on the PCB");
2739
2601
  expectTypesMatch(true);
2740
2602
  expectTypesMatch(true);
2741
- var pcb_trace_error = z81.object({
2742
- type: z81.literal("pcb_trace_error"),
2603
+ var pcb_trace_error = z77.object({
2604
+ type: z77.literal("pcb_trace_error"),
2743
2605
  pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
2744
- error_type: z81.literal("pcb_trace_error").default("pcb_trace_error"),
2745
- message: z81.string(),
2606
+ error_type: z77.literal("pcb_trace_error").default("pcb_trace_error"),
2607
+ message: z77.string(),
2746
2608
  center: point.optional(),
2747
- pcb_trace_id: z81.string(),
2748
- source_trace_id: z81.string(),
2749
- pcb_component_ids: z81.array(z81.string()),
2750
- pcb_port_ids: z81.array(z81.string()),
2751
- subcircuit_id: z81.string().optional()
2609
+ pcb_trace_id: z77.string(),
2610
+ source_trace_id: z77.string(),
2611
+ pcb_component_ids: z77.array(z77.string()),
2612
+ pcb_port_ids: z77.array(z77.string()),
2613
+ subcircuit_id: z77.string().optional()
2752
2614
  }).describe("Defines a trace error on the PCB");
2753
2615
  expectTypesMatch(true);
2754
- var pcb_trace_missing_error = z82.object({
2755
- type: z82.literal("pcb_trace_missing_error"),
2616
+ var pcb_trace_missing_error = z78.object({
2617
+ type: z78.literal("pcb_trace_missing_error"),
2756
2618
  pcb_trace_missing_error_id: getZodPrefixedIdWithDefault(
2757
2619
  "pcb_trace_missing_error"
2758
2620
  ),
2759
- error_type: z82.literal("pcb_trace_missing_error").default("pcb_trace_missing_error"),
2760
- message: z82.string(),
2621
+ error_type: z78.literal("pcb_trace_missing_error").default("pcb_trace_missing_error"),
2622
+ message: z78.string(),
2761
2623
  center: point.optional(),
2762
- source_trace_id: z82.string(),
2763
- pcb_component_ids: z82.array(z82.string()),
2764
- pcb_port_ids: z82.array(z82.string()),
2765
- subcircuit_id: z82.string().optional()
2624
+ source_trace_id: z78.string(),
2625
+ pcb_component_ids: z78.array(z78.string()),
2626
+ pcb_port_ids: z78.array(z78.string()),
2627
+ subcircuit_id: z78.string().optional()
2766
2628
  }).describe(
2767
2629
  "Defines an error when a source trace has no corresponding PCB trace"
2768
2630
  );
2769
2631
  expectTypesMatch(true);
2770
- var pcb_port_not_matched_error = z83.object({
2771
- type: z83.literal("pcb_port_not_matched_error"),
2632
+ var pcb_port_not_matched_error = z79.object({
2633
+ type: z79.literal("pcb_port_not_matched_error"),
2772
2634
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
2773
- error_type: z83.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
2774
- message: z83.string(),
2775
- pcb_component_ids: z83.array(z83.string()),
2776
- subcircuit_id: z83.string().optional()
2635
+ error_type: z79.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
2636
+ message: z79.string(),
2637
+ pcb_component_ids: z79.array(z79.string()),
2638
+ subcircuit_id: z79.string().optional()
2777
2639
  }).describe("Defines a trace error on the PCB where a port is not matched");
2778
2640
  expectTypesMatch(true);
2779
- var pcb_port_not_connected_error = z84.object({
2780
- type: z84.literal("pcb_port_not_connected_error"),
2641
+ var pcb_port_not_connected_error = z80.object({
2642
+ type: z80.literal("pcb_port_not_connected_error"),
2781
2643
  pcb_port_not_connected_error_id: getZodPrefixedIdWithDefault(
2782
2644
  "pcb_port_not_connected_error"
2783
2645
  ),
2784
- error_type: z84.literal("pcb_port_not_connected_error").default("pcb_port_not_connected_error"),
2785
- message: z84.string(),
2786
- pcb_port_ids: z84.array(z84.string()),
2787
- pcb_component_ids: z84.array(z84.string()),
2788
- subcircuit_id: z84.string().optional()
2646
+ error_type: z80.literal("pcb_port_not_connected_error").default("pcb_port_not_connected_error"),
2647
+ message: z80.string(),
2648
+ pcb_port_ids: z80.array(z80.string()),
2649
+ pcb_component_ids: z80.array(z80.string()),
2650
+ subcircuit_id: z80.string().optional()
2789
2651
  }).describe("Defines an error when a pcb port is not connected to any trace");
2790
2652
  expectTypesMatch(
2791
2653
  true
2792
2654
  );
2793
- var pcb_net = z85.object({
2794
- type: z85.literal("pcb_net"),
2655
+ var pcb_net = z81.object({
2656
+ type: z81.literal("pcb_net"),
2795
2657
  pcb_net_id: getZodPrefixedIdWithDefault("pcb_net"),
2796
- source_net_id: z85.string().optional(),
2797
- highlight_color: z85.string().optional()
2658
+ source_net_id: z81.string().optional(),
2659
+ highlight_color: z81.string().optional()
2798
2660
  }).describe("Defines a net on the PCB");
2799
2661
  expectTypesMatch(true);
2800
- var pcb_via = z86.object({
2801
- type: z86.literal("pcb_via"),
2662
+ var pcb_via = z82.object({
2663
+ type: z82.literal("pcb_via"),
2802
2664
  pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
2803
- pcb_group_id: z86.string().optional(),
2804
- subcircuit_id: z86.string().optional(),
2805
- subcircuit_connectivity_map_key: z86.string().optional(),
2665
+ pcb_group_id: z82.string().optional(),
2666
+ subcircuit_id: z82.string().optional(),
2806
2667
  x: distance,
2807
2668
  y: distance,
2808
2669
  outer_diameter: distance.default("0.6mm"),
@@ -2811,61 +2672,56 @@ var pcb_via = z86.object({
2811
2672
  from_layer: layer_ref.optional(),
2812
2673
  /** @deprecated */
2813
2674
  to_layer: layer_ref.optional(),
2814
- layers: z86.array(layer_ref),
2815
- pcb_trace_id: z86.string().optional(),
2816
- net_is_assignable: z86.boolean().optional(),
2817
- net_assigned: z86.boolean().optional(),
2818
- is_tented: z86.boolean().optional()
2675
+ layers: z82.array(layer_ref),
2676
+ pcb_trace_id: z82.string().optional()
2819
2677
  }).describe("Defines a via on the PCB");
2820
2678
  expectTypesMatch(true);
2821
- var pcb_board = z87.object({
2822
- type: z87.literal("pcb_board"),
2679
+ var pcb_board = z83.object({
2680
+ type: z83.literal("pcb_board"),
2823
2681
  pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
2824
- pcb_panel_id: z87.string().optional(),
2825
- is_subcircuit: z87.boolean().optional(),
2826
- subcircuit_id: z87.string().optional(),
2827
- width: length.optional(),
2828
- height: length.optional(),
2682
+ pcb_panel_id: z83.string().optional(),
2683
+ is_subcircuit: z83.boolean().optional(),
2684
+ subcircuit_id: z83.string().optional(),
2685
+ width: length,
2686
+ height: length,
2829
2687
  center: point,
2830
2688
  thickness: length.optional().default(1.4),
2831
- num_layers: z87.number().optional().default(4),
2832
- outline: z87.array(point).optional(),
2833
- shape: z87.enum(["rect", "polygon"]).optional(),
2834
- material: z87.enum(["fr4", "fr1"]).default("fr4")
2689
+ num_layers: z83.number().optional().default(4),
2690
+ outline: z83.array(point).optional(),
2691
+ material: z83.enum(["fr4", "fr1"]).default("fr4")
2835
2692
  }).describe("Defines the board outline of the PCB");
2836
2693
  expectTypesMatch(true);
2837
- var pcb_panel = z88.object({
2838
- type: z88.literal("pcb_panel"),
2694
+ var pcb_panel = z84.object({
2695
+ type: z84.literal("pcb_panel"),
2839
2696
  pcb_panel_id: getZodPrefixedIdWithDefault("pcb_panel"),
2840
2697
  width: length,
2841
2698
  height: length,
2842
- center: point,
2843
- covered_with_solder_mask: z88.boolean().optional().default(true)
2699
+ covered_with_solder_mask: z84.boolean().optional().default(true)
2844
2700
  }).describe("Defines a PCB panel that can contain multiple boards");
2845
2701
  expectTypesMatch(true);
2846
- var pcb_placement_error = z89.object({
2847
- type: z89.literal("pcb_placement_error"),
2702
+ var pcb_placement_error = z85.object({
2703
+ type: z85.literal("pcb_placement_error"),
2848
2704
  pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
2849
- error_type: z89.literal("pcb_placement_error").default("pcb_placement_error"),
2850
- message: z89.string(),
2851
- subcircuit_id: z89.string().optional()
2705
+ error_type: z85.literal("pcb_placement_error").default("pcb_placement_error"),
2706
+ message: z85.string(),
2707
+ subcircuit_id: z85.string().optional()
2852
2708
  }).describe("Defines a placement error on the PCB");
2853
2709
  expectTypesMatch(true);
2854
- var pcb_trace_hint = z90.object({
2855
- type: z90.literal("pcb_trace_hint"),
2710
+ var pcb_trace_hint = z86.object({
2711
+ type: z86.literal("pcb_trace_hint"),
2856
2712
  pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
2857
- pcb_port_id: z90.string(),
2858
- pcb_component_id: z90.string(),
2859
- route: z90.array(route_hint_point),
2860
- subcircuit_id: z90.string().optional()
2713
+ pcb_port_id: z86.string(),
2714
+ pcb_component_id: z86.string(),
2715
+ route: z86.array(route_hint_point),
2716
+ subcircuit_id: z86.string().optional()
2861
2717
  }).describe("A hint that can be used during generation of a PCB trace");
2862
2718
  expectTypesMatch(true);
2863
- var pcb_silkscreen_line = z91.object({
2864
- type: z91.literal("pcb_silkscreen_line"),
2719
+ var pcb_silkscreen_line = z87.object({
2720
+ type: z87.literal("pcb_silkscreen_line"),
2865
2721
  pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
2866
- pcb_component_id: z91.string(),
2867
- pcb_group_id: z91.string().optional(),
2868
- subcircuit_id: z91.string().optional(),
2722
+ pcb_component_id: z87.string(),
2723
+ pcb_group_id: z87.string().optional(),
2724
+ subcircuit_id: z87.string().optional(),
2869
2725
  stroke_width: distance.default("0.1mm"),
2870
2726
  x1: distance,
2871
2727
  y1: distance,
@@ -2874,28 +2730,28 @@ var pcb_silkscreen_line = z91.object({
2874
2730
  layer: visible_layer
2875
2731
  }).describe("Defines a silkscreen line on the PCB");
2876
2732
  expectTypesMatch(true);
2877
- var pcb_silkscreen_path = z92.object({
2878
- type: z92.literal("pcb_silkscreen_path"),
2733
+ var pcb_silkscreen_path = z88.object({
2734
+ type: z88.literal("pcb_silkscreen_path"),
2879
2735
  pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
2880
- pcb_component_id: z92.string(),
2881
- pcb_group_id: z92.string().optional(),
2882
- subcircuit_id: z92.string().optional(),
2736
+ pcb_component_id: z88.string(),
2737
+ pcb_group_id: z88.string().optional(),
2738
+ subcircuit_id: z88.string().optional(),
2883
2739
  layer: visible_layer,
2884
- route: z92.array(point),
2740
+ route: z88.array(point),
2885
2741
  stroke_width: length
2886
2742
  }).describe("Defines a silkscreen path on the PCB");
2887
2743
  expectTypesMatch(true);
2888
- var pcb_silkscreen_text = z93.object({
2889
- type: z93.literal("pcb_silkscreen_text"),
2744
+ var pcb_silkscreen_text = z89.object({
2745
+ type: z89.literal("pcb_silkscreen_text"),
2890
2746
  pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
2891
- pcb_group_id: z93.string().optional(),
2892
- subcircuit_id: z93.string().optional(),
2893
- font: z93.literal("tscircuit2024").default("tscircuit2024"),
2747
+ pcb_group_id: z89.string().optional(),
2748
+ subcircuit_id: z89.string().optional(),
2749
+ font: z89.literal("tscircuit2024").default("tscircuit2024"),
2894
2750
  font_size: distance.default("0.2mm"),
2895
- pcb_component_id: z93.string(),
2896
- text: z93.string(),
2897
- is_knockout: z93.boolean().default(false).optional(),
2898
- knockout_padding: z93.object({
2751
+ pcb_component_id: z89.string(),
2752
+ text: z89.string(),
2753
+ is_knockout: z89.boolean().default(false).optional(),
2754
+ knockout_padding: z89.object({
2899
2755
  left: length,
2900
2756
  top: length,
2901
2757
  bottom: length,
@@ -2906,24 +2762,24 @@ var pcb_silkscreen_text = z93.object({
2906
2762
  bottom: "0.2mm",
2907
2763
  right: "0.2mm"
2908
2764
  }).optional(),
2909
- ccw_rotation: z93.number().optional(),
2765
+ ccw_rotation: z89.number().optional(),
2910
2766
  layer: layer_ref,
2911
- is_mirrored: z93.boolean().default(false).optional(),
2767
+ is_mirrored: z89.boolean().default(false).optional(),
2912
2768
  anchor_position: point.default({ x: 0, y: 0 }),
2913
2769
  anchor_alignment: ninePointAnchor.default("center")
2914
2770
  }).describe("Defines silkscreen text on the PCB");
2915
2771
  expectTypesMatch(true);
2916
- var pcb_copper_text = z94.object({
2917
- type: z94.literal("pcb_copper_text"),
2772
+ var pcb_copper_text = z90.object({
2773
+ type: z90.literal("pcb_copper_text"),
2918
2774
  pcb_copper_text_id: getZodPrefixedIdWithDefault("pcb_copper_text"),
2919
- pcb_group_id: z94.string().optional(),
2920
- subcircuit_id: z94.string().optional(),
2921
- font: z94.literal("tscircuit2024").default("tscircuit2024"),
2775
+ pcb_group_id: z90.string().optional(),
2776
+ subcircuit_id: z90.string().optional(),
2777
+ font: z90.literal("tscircuit2024").default("tscircuit2024"),
2922
2778
  font_size: distance.default("0.2mm"),
2923
- pcb_component_id: z94.string(),
2924
- text: z94.string(),
2925
- is_knockout: z94.boolean().default(false).optional(),
2926
- knockout_padding: z94.object({
2779
+ pcb_component_id: z90.string(),
2780
+ text: z90.string(),
2781
+ is_knockout: z90.boolean().default(false).optional(),
2782
+ knockout_padding: z90.object({
2927
2783
  left: length,
2928
2784
  top: length,
2929
2785
  bottom: length,
@@ -2934,454 +2790,439 @@ var pcb_copper_text = z94.object({
2934
2790
  bottom: "0.2mm",
2935
2791
  right: "0.2mm"
2936
2792
  }).optional(),
2937
- ccw_rotation: z94.number().optional(),
2793
+ ccw_rotation: z90.number().optional(),
2938
2794
  layer: layer_ref,
2939
- is_mirrored: z94.boolean().default(false).optional(),
2795
+ is_mirrored: z90.boolean().default(false).optional(),
2940
2796
  anchor_position: point.default({ x: 0, y: 0 }),
2941
2797
  anchor_alignment: ninePointAnchor.default("center")
2942
2798
  }).describe("Defines copper text on the PCB");
2943
2799
  expectTypesMatch(true);
2944
- var pcb_silkscreen_rect = z95.object({
2945
- type: z95.literal("pcb_silkscreen_rect"),
2800
+ var pcb_silkscreen_rect = z91.object({
2801
+ type: z91.literal("pcb_silkscreen_rect"),
2946
2802
  pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
2947
- pcb_component_id: z95.string(),
2948
- pcb_group_id: z95.string().optional(),
2949
- subcircuit_id: z95.string().optional(),
2803
+ pcb_component_id: z91.string(),
2804
+ pcb_group_id: z91.string().optional(),
2805
+ subcircuit_id: z91.string().optional(),
2950
2806
  center: point,
2951
2807
  width: length,
2952
2808
  height: length,
2953
2809
  layer: layer_ref,
2954
2810
  stroke_width: length.default("1mm"),
2955
2811
  corner_radius: length.optional(),
2956
- is_filled: z95.boolean().default(true).optional(),
2957
- has_stroke: z95.boolean().optional(),
2958
- is_stroke_dashed: z95.boolean().optional()
2812
+ is_filled: z91.boolean().default(true).optional(),
2813
+ has_stroke: z91.boolean().optional(),
2814
+ is_stroke_dashed: z91.boolean().optional()
2959
2815
  }).describe("Defines a silkscreen rect on the PCB");
2960
2816
  expectTypesMatch(true);
2961
- var pcb_silkscreen_circle = z96.object({
2962
- type: z96.literal("pcb_silkscreen_circle"),
2817
+ var pcb_silkscreen_circle = z92.object({
2818
+ type: z92.literal("pcb_silkscreen_circle"),
2963
2819
  pcb_silkscreen_circle_id: getZodPrefixedIdWithDefault(
2964
2820
  "pcb_silkscreen_circle"
2965
2821
  ),
2966
- pcb_component_id: z96.string(),
2967
- pcb_group_id: z96.string().optional(),
2968
- subcircuit_id: z96.string().optional(),
2822
+ pcb_component_id: z92.string(),
2823
+ pcb_group_id: z92.string().optional(),
2824
+ subcircuit_id: z92.string().optional(),
2969
2825
  center: point,
2970
2826
  radius: length,
2971
2827
  layer: visible_layer,
2972
2828
  stroke_width: length.default("1mm")
2973
2829
  }).describe("Defines a silkscreen circle on the PCB");
2974
2830
  expectTypesMatch(true);
2975
- var pcb_silkscreen_oval = z97.object({
2976
- type: z97.literal("pcb_silkscreen_oval"),
2831
+ var pcb_silkscreen_oval = z93.object({
2832
+ type: z93.literal("pcb_silkscreen_oval"),
2977
2833
  pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
2978
- pcb_component_id: z97.string(),
2979
- pcb_group_id: z97.string().optional(),
2980
- subcircuit_id: z97.string().optional(),
2834
+ pcb_component_id: z93.string(),
2835
+ pcb_group_id: z93.string().optional(),
2836
+ subcircuit_id: z93.string().optional(),
2981
2837
  center: point,
2982
2838
  radius_x: distance,
2983
2839
  radius_y: distance,
2984
2840
  layer: visible_layer
2985
2841
  }).describe("Defines a silkscreen oval on the PCB");
2986
2842
  expectTypesMatch(true);
2987
- var pcb_fabrication_note_text = z98.object({
2988
- type: z98.literal("pcb_fabrication_note_text"),
2843
+ var pcb_fabrication_note_text = z94.object({
2844
+ type: z94.literal("pcb_fabrication_note_text"),
2989
2845
  pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
2990
2846
  "pcb_fabrication_note_text"
2991
2847
  ),
2992
- subcircuit_id: z98.string().optional(),
2993
- pcb_group_id: z98.string().optional(),
2994
- font: z98.literal("tscircuit2024").default("tscircuit2024"),
2848
+ subcircuit_id: z94.string().optional(),
2849
+ pcb_group_id: z94.string().optional(),
2850
+ font: z94.literal("tscircuit2024").default("tscircuit2024"),
2995
2851
  font_size: distance.default("1mm"),
2996
- pcb_component_id: z98.string(),
2997
- text: z98.string(),
2852
+ pcb_component_id: z94.string(),
2853
+ text: z94.string(),
2998
2854
  layer: visible_layer,
2999
2855
  anchor_position: point.default({ x: 0, y: 0 }),
3000
- anchor_alignment: z98.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
3001
- color: z98.string().optional()
2856
+ anchor_alignment: z94.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
2857
+ color: z94.string().optional()
3002
2858
  }).describe(
3003
2859
  "Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
3004
2860
  );
3005
2861
  expectTypesMatch(true);
3006
- var pcb_fabrication_note_path = z99.object({
3007
- type: z99.literal("pcb_fabrication_note_path"),
2862
+ var pcb_fabrication_note_path = z95.object({
2863
+ type: z95.literal("pcb_fabrication_note_path"),
3008
2864
  pcb_fabrication_note_path_id: getZodPrefixedIdWithDefault(
3009
2865
  "pcb_fabrication_note_path"
3010
2866
  ),
3011
- pcb_component_id: z99.string(),
3012
- subcircuit_id: z99.string().optional(),
2867
+ pcb_component_id: z95.string(),
2868
+ subcircuit_id: z95.string().optional(),
3013
2869
  layer: layer_ref,
3014
- route: z99.array(point),
2870
+ route: z95.array(point),
3015
2871
  stroke_width: length,
3016
- color: z99.string().optional()
2872
+ color: z95.string().optional()
3017
2873
  }).describe(
3018
2874
  "Defines a fabrication path on the PCB for fabricators or assemblers"
3019
2875
  );
3020
2876
  expectTypesMatch(true);
3021
- var pcb_fabrication_note_rect = z100.object({
3022
- type: z100.literal("pcb_fabrication_note_rect"),
2877
+ var pcb_fabrication_note_rect = z96.object({
2878
+ type: z96.literal("pcb_fabrication_note_rect"),
3023
2879
  pcb_fabrication_note_rect_id: getZodPrefixedIdWithDefault(
3024
2880
  "pcb_fabrication_note_rect"
3025
2881
  ),
3026
- pcb_component_id: z100.string(),
3027
- pcb_group_id: z100.string().optional(),
3028
- subcircuit_id: z100.string().optional(),
2882
+ pcb_component_id: z96.string(),
2883
+ pcb_group_id: z96.string().optional(),
2884
+ subcircuit_id: z96.string().optional(),
3029
2885
  center: point,
3030
2886
  width: length,
3031
2887
  height: length,
3032
2888
  layer: visible_layer,
3033
2889
  stroke_width: length.default("0.1mm"),
3034
2890
  corner_radius: length.optional(),
3035
- is_filled: z100.boolean().optional(),
3036
- has_stroke: z100.boolean().optional(),
3037
- is_stroke_dashed: z100.boolean().optional(),
3038
- color: z100.string().optional()
2891
+ is_filled: z96.boolean().optional(),
2892
+ has_stroke: z96.boolean().optional(),
2893
+ is_stroke_dashed: z96.boolean().optional(),
2894
+ color: z96.string().optional()
3039
2895
  }).describe("Defines a fabrication note rectangle on the PCB");
3040
2896
  expectTypesMatch(true);
3041
- var pcb_fabrication_note_dimension = z101.object({
3042
- type: z101.literal("pcb_fabrication_note_dimension"),
2897
+ var pcb_fabrication_note_dimension = z97.object({
2898
+ type: z97.literal("pcb_fabrication_note_dimension"),
3043
2899
  pcb_fabrication_note_dimension_id: getZodPrefixedIdWithDefault(
3044
2900
  "pcb_fabrication_note_dimension"
3045
2901
  ),
3046
- pcb_component_id: z101.string(),
3047
- pcb_group_id: z101.string().optional(),
3048
- subcircuit_id: z101.string().optional(),
2902
+ pcb_component_id: z97.string(),
2903
+ pcb_group_id: z97.string().optional(),
2904
+ subcircuit_id: z97.string().optional(),
3049
2905
  layer: visible_layer,
3050
2906
  from: point,
3051
2907
  to: point,
3052
- text: z101.string().optional(),
3053
- text_ccw_rotation: z101.number().optional(),
2908
+ text: z97.string().optional(),
2909
+ text_ccw_rotation: z97.number().optional(),
3054
2910
  offset: length.optional(),
3055
2911
  offset_distance: length.optional(),
3056
- offset_direction: z101.object({
3057
- x: z101.number(),
3058
- y: z101.number()
2912
+ offset_direction: z97.object({
2913
+ x: z97.number(),
2914
+ y: z97.number()
3059
2915
  }).optional(),
3060
- font: z101.literal("tscircuit2024").default("tscircuit2024"),
2916
+ font: z97.literal("tscircuit2024").default("tscircuit2024"),
3061
2917
  font_size: length.default("1mm"),
3062
- color: z101.string().optional(),
2918
+ color: z97.string().optional(),
3063
2919
  arrow_size: length.default("1mm")
3064
2920
  }).describe("Defines a measurement annotation within PCB fabrication notes");
3065
2921
  expectTypesMatch(true);
3066
- var pcb_note_text = z102.object({
3067
- type: z102.literal("pcb_note_text"),
2922
+ var pcb_note_text = z98.object({
2923
+ type: z98.literal("pcb_note_text"),
3068
2924
  pcb_note_text_id: getZodPrefixedIdWithDefault("pcb_note_text"),
3069
- pcb_component_id: z102.string().optional(),
3070
- pcb_group_id: z102.string().optional(),
3071
- subcircuit_id: z102.string().optional(),
3072
- name: z102.string().optional(),
3073
- font: z102.literal("tscircuit2024").default("tscircuit2024"),
2925
+ pcb_component_id: z98.string().optional(),
2926
+ pcb_group_id: z98.string().optional(),
2927
+ subcircuit_id: z98.string().optional(),
2928
+ name: z98.string().optional(),
2929
+ font: z98.literal("tscircuit2024").default("tscircuit2024"),
3074
2930
  font_size: distance.default("1mm"),
3075
- text: z102.string().optional(),
2931
+ text: z98.string().optional(),
3076
2932
  anchor_position: point.default({ x: 0, y: 0 }),
3077
- anchor_alignment: z102.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
3078
- color: z102.string().optional()
2933
+ anchor_alignment: z98.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
2934
+ color: z98.string().optional()
3079
2935
  }).describe("Defines a documentation note in text on the PCB");
3080
2936
  expectTypesMatch(true);
3081
- var pcb_note_rect = z103.object({
3082
- type: z103.literal("pcb_note_rect"),
2937
+ var pcb_note_rect = z99.object({
2938
+ type: z99.literal("pcb_note_rect"),
3083
2939
  pcb_note_rect_id: getZodPrefixedIdWithDefault("pcb_note_rect"),
3084
- pcb_component_id: z103.string().optional(),
3085
- pcb_group_id: z103.string().optional(),
3086
- subcircuit_id: z103.string().optional(),
3087
- name: z103.string().optional(),
3088
- text: z103.string().optional(),
2940
+ pcb_component_id: z99.string().optional(),
2941
+ pcb_group_id: z99.string().optional(),
2942
+ subcircuit_id: z99.string().optional(),
2943
+ name: z99.string().optional(),
2944
+ text: z99.string().optional(),
3089
2945
  center: point,
3090
2946
  width: length,
3091
2947
  height: length,
3092
2948
  stroke_width: length.default("0.1mm"),
3093
2949
  corner_radius: length.optional(),
3094
- is_filled: z103.boolean().optional(),
3095
- has_stroke: z103.boolean().optional(),
3096
- is_stroke_dashed: z103.boolean().optional(),
3097
- color: z103.string().optional()
2950
+ is_filled: z99.boolean().optional(),
2951
+ has_stroke: z99.boolean().optional(),
2952
+ is_stroke_dashed: z99.boolean().optional(),
2953
+ color: z99.string().optional()
3098
2954
  }).describe("Defines a rectangular documentation note on the PCB");
3099
2955
  expectTypesMatch(true);
3100
- var pcb_note_path = z104.object({
3101
- type: z104.literal("pcb_note_path"),
2956
+ var pcb_note_path = z100.object({
2957
+ type: z100.literal("pcb_note_path"),
3102
2958
  pcb_note_path_id: getZodPrefixedIdWithDefault("pcb_note_path"),
3103
- pcb_component_id: z104.string().optional(),
3104
- pcb_group_id: z104.string().optional(),
3105
- subcircuit_id: z104.string().optional(),
3106
- name: z104.string().optional(),
3107
- text: z104.string().optional(),
3108
- route: z104.array(point),
2959
+ pcb_component_id: z100.string().optional(),
2960
+ pcb_group_id: z100.string().optional(),
2961
+ subcircuit_id: z100.string().optional(),
2962
+ name: z100.string().optional(),
2963
+ text: z100.string().optional(),
2964
+ route: z100.array(point),
3109
2965
  stroke_width: length.default("0.1mm"),
3110
- color: z104.string().optional()
2966
+ color: z100.string().optional()
3111
2967
  }).describe("Defines a polyline documentation note on the PCB");
3112
2968
  expectTypesMatch(true);
3113
- var pcb_note_line = z105.object({
3114
- type: z105.literal("pcb_note_line"),
2969
+ var pcb_note_line = z101.object({
2970
+ type: z101.literal("pcb_note_line"),
3115
2971
  pcb_note_line_id: getZodPrefixedIdWithDefault("pcb_note_line"),
3116
- pcb_component_id: z105.string().optional(),
3117
- pcb_group_id: z105.string().optional(),
3118
- subcircuit_id: z105.string().optional(),
3119
- name: z105.string().optional(),
3120
- text: z105.string().optional(),
2972
+ pcb_component_id: z101.string().optional(),
2973
+ pcb_group_id: z101.string().optional(),
2974
+ subcircuit_id: z101.string().optional(),
2975
+ name: z101.string().optional(),
2976
+ text: z101.string().optional(),
3121
2977
  x1: distance,
3122
2978
  y1: distance,
3123
2979
  x2: distance,
3124
2980
  y2: distance,
3125
2981
  stroke_width: distance.default("0.1mm"),
3126
- color: z105.string().optional(),
3127
- is_dashed: z105.boolean().optional()
2982
+ color: z101.string().optional(),
2983
+ is_dashed: z101.boolean().optional()
3128
2984
  }).describe("Defines a straight documentation note line on the PCB");
3129
2985
  expectTypesMatch(true);
3130
- var pcb_note_dimension = z106.object({
3131
- type: z106.literal("pcb_note_dimension"),
2986
+ var pcb_note_dimension = z102.object({
2987
+ type: z102.literal("pcb_note_dimension"),
3132
2988
  pcb_note_dimension_id: getZodPrefixedIdWithDefault("pcb_note_dimension"),
3133
- pcb_component_id: z106.string().optional(),
3134
- pcb_group_id: z106.string().optional(),
3135
- subcircuit_id: z106.string().optional(),
3136
- name: z106.string().optional(),
2989
+ pcb_component_id: z102.string().optional(),
2990
+ pcb_group_id: z102.string().optional(),
2991
+ subcircuit_id: z102.string().optional(),
2992
+ name: z102.string().optional(),
3137
2993
  from: point,
3138
2994
  to: point,
3139
- text: z106.string().optional(),
3140
- text_ccw_rotation: z106.number().optional(),
2995
+ text: z102.string().optional(),
2996
+ text_ccw_rotation: z102.number().optional(),
3141
2997
  offset_distance: length.optional(),
3142
- offset_direction: z106.object({
3143
- x: z106.number(),
3144
- y: z106.number()
2998
+ offset_direction: z102.object({
2999
+ x: z102.number(),
3000
+ y: z102.number()
3145
3001
  }).optional(),
3146
- font: z106.literal("tscircuit2024").default("tscircuit2024"),
3002
+ font: z102.literal("tscircuit2024").default("tscircuit2024"),
3147
3003
  font_size: length.default("1mm"),
3148
- color: z106.string().optional(),
3004
+ color: z102.string().optional(),
3149
3005
  arrow_size: length.default("1mm")
3150
3006
  }).describe("Defines a measurement annotation within PCB documentation notes");
3151
3007
  expectTypesMatch(true);
3152
- var pcb_footprint_overlap_error = z107.object({
3153
- type: z107.literal("pcb_footprint_overlap_error"),
3008
+ var pcb_footprint_overlap_error = z103.object({
3009
+ type: z103.literal("pcb_footprint_overlap_error"),
3154
3010
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
3155
- error_type: z107.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
3156
- message: z107.string(),
3157
- pcb_smtpad_ids: z107.array(z107.string()).optional(),
3158
- pcb_plated_hole_ids: z107.array(z107.string()).optional(),
3159
- pcb_hole_ids: z107.array(z107.string()).optional(),
3160
- pcb_keepout_ids: z107.array(z107.string()).optional()
3011
+ error_type: z103.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
3012
+ message: z103.string(),
3013
+ pcb_smtpad_ids: z103.array(z103.string()).optional(),
3014
+ pcb_plated_hole_ids: z103.array(z103.string()).optional(),
3015
+ pcb_hole_ids: z103.array(z103.string()).optional(),
3016
+ pcb_keepout_ids: z103.array(z103.string()).optional()
3161
3017
  }).describe("Error emitted when a pcb footprint overlaps with another element");
3162
3018
  expectTypesMatch(
3163
3019
  true
3164
3020
  );
3165
- var pcb_keepout = z108.object({
3166
- type: z108.literal("pcb_keepout"),
3167
- shape: z108.literal("rect"),
3168
- pcb_group_id: z108.string().optional(),
3169
- subcircuit_id: z108.string().optional(),
3021
+ var pcb_keepout = z104.object({
3022
+ type: z104.literal("pcb_keepout"),
3023
+ shape: z104.literal("rect"),
3024
+ pcb_group_id: z104.string().optional(),
3025
+ subcircuit_id: z104.string().optional(),
3170
3026
  center: point,
3171
3027
  width: distance,
3172
3028
  height: distance,
3173
- pcb_keepout_id: z108.string(),
3174
- layers: z108.array(z108.string()),
3029
+ pcb_keepout_id: z104.string(),
3030
+ layers: z104.array(z104.string()),
3175
3031
  // Specify layers where the keepout applies
3176
- description: z108.string().optional()
3032
+ description: z104.string().optional()
3177
3033
  // Optional description of the keepout
3178
3034
  }).or(
3179
- z108.object({
3180
- type: z108.literal("pcb_keepout"),
3181
- shape: z108.literal("circle"),
3182
- pcb_group_id: z108.string().optional(),
3183
- subcircuit_id: z108.string().optional(),
3035
+ z104.object({
3036
+ type: z104.literal("pcb_keepout"),
3037
+ shape: z104.literal("circle"),
3038
+ pcb_group_id: z104.string().optional(),
3039
+ subcircuit_id: z104.string().optional(),
3184
3040
  center: point,
3185
3041
  radius: distance,
3186
- pcb_keepout_id: z108.string(),
3187
- layers: z108.array(z108.string()),
3042
+ pcb_keepout_id: z104.string(),
3043
+ layers: z104.array(z104.string()),
3188
3044
  // Specify layers where the keepout applies
3189
- description: z108.string().optional()
3045
+ description: z104.string().optional()
3190
3046
  // Optional description of the keepout
3191
3047
  })
3192
3048
  );
3193
3049
  expectTypesMatch(true);
3194
- var pcb_cutout_base = z109.object({
3195
- type: z109.literal("pcb_cutout"),
3050
+ var pcb_cutout_base = z105.object({
3051
+ type: z105.literal("pcb_cutout"),
3196
3052
  pcb_cutout_id: getZodPrefixedIdWithDefault("pcb_cutout"),
3197
- pcb_group_id: z109.string().optional(),
3198
- subcircuit_id: z109.string().optional(),
3199
- pcb_board_id: z109.string().optional(),
3200
- pcb_panel_id: z109.string().optional()
3053
+ pcb_group_id: z105.string().optional(),
3054
+ subcircuit_id: z105.string().optional()
3201
3055
  });
3202
3056
  var pcb_cutout_rect = pcb_cutout_base.extend({
3203
- shape: z109.literal("rect"),
3057
+ shape: z105.literal("rect"),
3204
3058
  center: point,
3205
3059
  width: length,
3206
3060
  height: length,
3207
- rotation: rotation.optional(),
3208
- corner_radius: length.optional()
3061
+ rotation: rotation.optional()
3209
3062
  });
3210
3063
  expectTypesMatch(true);
3211
3064
  var pcb_cutout_circle = pcb_cutout_base.extend({
3212
- shape: z109.literal("circle"),
3065
+ shape: z105.literal("circle"),
3213
3066
  center: point,
3214
3067
  radius: length
3215
3068
  });
3216
3069
  expectTypesMatch(true);
3217
3070
  var pcb_cutout_polygon = pcb_cutout_base.extend({
3218
- shape: z109.literal("polygon"),
3219
- points: z109.array(point)
3071
+ shape: z105.literal("polygon"),
3072
+ points: z105.array(point)
3220
3073
  });
3221
3074
  expectTypesMatch(true);
3222
- var pcb_cutout_path = pcb_cutout_base.extend({
3223
- shape: z109.literal("path"),
3224
- route: z109.array(point),
3225
- slot_width: length,
3226
- slot_length: length.optional(),
3227
- space_between_slots: length.optional(),
3228
- slot_corner_radius: length.optional()
3229
- });
3230
- expectTypesMatch(true);
3231
- var pcb_cutout = z109.discriminatedUnion("shape", [
3075
+ var pcb_cutout = z105.discriminatedUnion("shape", [
3232
3076
  pcb_cutout_rect,
3233
3077
  pcb_cutout_circle,
3234
- pcb_cutout_polygon,
3235
- pcb_cutout_path
3078
+ pcb_cutout_polygon
3236
3079
  ]).describe("Defines a cutout on the PCB, removing board material.");
3237
3080
  expectTypesMatch(true);
3238
- var pcb_missing_footprint_error = z110.object({
3239
- type: z110.literal("pcb_missing_footprint_error"),
3081
+ var pcb_missing_footprint_error = z106.object({
3082
+ type: z106.literal("pcb_missing_footprint_error"),
3240
3083
  pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
3241
3084
  "pcb_missing_footprint_error"
3242
3085
  ),
3243
- pcb_group_id: z110.string().optional(),
3244
- subcircuit_id: z110.string().optional(),
3245
- error_type: z110.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
3246
- source_component_id: z110.string(),
3247
- message: z110.string()
3086
+ pcb_group_id: z106.string().optional(),
3087
+ subcircuit_id: z106.string().optional(),
3088
+ error_type: z106.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
3089
+ source_component_id: z106.string(),
3090
+ message: z106.string()
3248
3091
  }).describe("Defines a missing footprint error on the PCB");
3249
3092
  expectTypesMatch(
3250
3093
  true
3251
3094
  );
3252
- var external_footprint_load_error = z111.object({
3253
- type: z111.literal("external_footprint_load_error"),
3095
+ var external_footprint_load_error = z107.object({
3096
+ type: z107.literal("external_footprint_load_error"),
3254
3097
  external_footprint_load_error_id: getZodPrefixedIdWithDefault(
3255
3098
  "external_footprint_load_error"
3256
3099
  ),
3257
- pcb_component_id: z111.string(),
3258
- source_component_id: z111.string(),
3259
- pcb_group_id: z111.string().optional(),
3260
- subcircuit_id: z111.string().optional(),
3261
- footprinter_string: z111.string().optional(),
3262
- error_type: z111.literal("external_footprint_load_error").default("external_footprint_load_error"),
3263
- message: z111.string()
3100
+ pcb_component_id: z107.string(),
3101
+ source_component_id: z107.string(),
3102
+ pcb_group_id: z107.string().optional(),
3103
+ subcircuit_id: z107.string().optional(),
3104
+ footprinter_string: z107.string().optional(),
3105
+ error_type: z107.literal("external_footprint_load_error").default("external_footprint_load_error"),
3106
+ message: z107.string()
3264
3107
  }).describe("Defines an error when an external footprint fails to load");
3265
3108
  expectTypesMatch(true);
3266
- var circuit_json_footprint_load_error = z112.object({
3267
- type: z112.literal("circuit_json_footprint_load_error"),
3109
+ var circuit_json_footprint_load_error = z108.object({
3110
+ type: z108.literal("circuit_json_footprint_load_error"),
3268
3111
  circuit_json_footprint_load_error_id: getZodPrefixedIdWithDefault(
3269
3112
  "circuit_json_footprint_load_error"
3270
3113
  ),
3271
- pcb_component_id: z112.string(),
3272
- source_component_id: z112.string(),
3273
- pcb_group_id: z112.string().optional(),
3274
- subcircuit_id: z112.string().optional(),
3275
- error_type: z112.literal("circuit_json_footprint_load_error").default("circuit_json_footprint_load_error"),
3276
- message: z112.string(),
3277
- circuit_json: z112.array(z112.any()).optional()
3114
+ pcb_component_id: z108.string(),
3115
+ source_component_id: z108.string(),
3116
+ pcb_group_id: z108.string().optional(),
3117
+ subcircuit_id: z108.string().optional(),
3118
+ error_type: z108.literal("circuit_json_footprint_load_error").default("circuit_json_footprint_load_error"),
3119
+ message: z108.string(),
3120
+ circuit_json: z108.array(z108.any()).optional()
3278
3121
  }).describe("Defines an error when a circuit JSON footprint fails to load");
3279
3122
  expectTypesMatch(true);
3280
- var pcb_group = z113.object({
3281
- type: z113.literal("pcb_group"),
3123
+ var pcb_group = z109.object({
3124
+ type: z109.literal("pcb_group"),
3282
3125
  pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
3283
- source_group_id: z113.string(),
3284
- is_subcircuit: z113.boolean().optional(),
3285
- subcircuit_id: z113.string().optional(),
3126
+ source_group_id: z109.string(),
3127
+ is_subcircuit: z109.boolean().optional(),
3128
+ subcircuit_id: z109.string().optional(),
3286
3129
  width: length.optional(),
3287
3130
  height: length.optional(),
3288
3131
  center: point,
3289
- outline: z113.array(point).optional(),
3132
+ outline: z109.array(point).optional(),
3290
3133
  anchor_position: point.optional(),
3291
- anchor_alignment: z113.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
3292
- pcb_component_ids: z113.array(z113.string()),
3293
- child_layout_mode: z113.enum(["packed", "none"]).optional(),
3294
- name: z113.string().optional(),
3295
- description: z113.string().optional(),
3296
- layout_mode: z113.string().optional(),
3297
- autorouter_configuration: z113.object({
3134
+ anchor_alignment: z109.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
3135
+ pcb_component_ids: z109.array(z109.string()),
3136
+ name: z109.string().optional(),
3137
+ description: z109.string().optional(),
3138
+ layout_mode: z109.string().optional(),
3139
+ autorouter_configuration: z109.object({
3298
3140
  trace_clearance: length
3299
3141
  }).optional(),
3300
- autorouter_used_string: z113.string().optional()
3142
+ autorouter_used_string: z109.string().optional()
3301
3143
  }).describe("Defines a group of components on the PCB");
3302
3144
  expectTypesMatch(true);
3303
- var pcb_autorouting_error = z114.object({
3304
- type: z114.literal("pcb_autorouting_error"),
3145
+ var pcb_autorouting_error = z110.object({
3146
+ type: z110.literal("pcb_autorouting_error"),
3305
3147
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
3306
- error_type: z114.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
3307
- message: z114.string(),
3308
- subcircuit_id: z114.string().optional()
3148
+ error_type: z110.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
3149
+ message: z110.string(),
3150
+ subcircuit_id: z110.string().optional()
3309
3151
  }).describe("The autorouting has failed to route a portion of the board");
3310
3152
  expectTypesMatch(true);
3311
- var pcb_manual_edit_conflict_warning = z115.object({
3312
- type: z115.literal("pcb_manual_edit_conflict_warning"),
3153
+ var pcb_manual_edit_conflict_warning = z111.object({
3154
+ type: z111.literal("pcb_manual_edit_conflict_warning"),
3313
3155
  pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
3314
3156
  "pcb_manual_edit_conflict_warning"
3315
3157
  ),
3316
- warning_type: z115.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
3317
- message: z115.string(),
3318
- pcb_component_id: z115.string(),
3319
- pcb_group_id: z115.string().optional(),
3320
- subcircuit_id: z115.string().optional(),
3321
- source_component_id: z115.string()
3158
+ warning_type: z111.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
3159
+ message: z111.string(),
3160
+ pcb_component_id: z111.string(),
3161
+ pcb_group_id: z111.string().optional(),
3162
+ subcircuit_id: z111.string().optional(),
3163
+ source_component_id: z111.string()
3322
3164
  }).describe(
3323
3165
  "Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
3324
3166
  );
3325
3167
  expectTypesMatch(true);
3326
- var pcb_breakout_point = z116.object({
3327
- type: z116.literal("pcb_breakout_point"),
3168
+ var pcb_breakout_point = z112.object({
3169
+ type: z112.literal("pcb_breakout_point"),
3328
3170
  pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
3329
- pcb_group_id: z116.string(),
3330
- subcircuit_id: z116.string().optional(),
3331
- source_trace_id: z116.string().optional(),
3332
- source_port_id: z116.string().optional(),
3333
- source_net_id: z116.string().optional(),
3171
+ pcb_group_id: z112.string(),
3172
+ subcircuit_id: z112.string().optional(),
3173
+ source_trace_id: z112.string().optional(),
3174
+ source_port_id: z112.string().optional(),
3175
+ source_net_id: z112.string().optional(),
3334
3176
  x: distance,
3335
3177
  y: distance
3336
3178
  }).describe(
3337
3179
  "Defines a routing target within a pcb_group for a source_trace or source_net"
3338
3180
  );
3339
3181
  expectTypesMatch(true);
3340
- var pcb_ground_plane = z117.object({
3341
- type: z117.literal("pcb_ground_plane"),
3182
+ var pcb_ground_plane = z113.object({
3183
+ type: z113.literal("pcb_ground_plane"),
3342
3184
  pcb_ground_plane_id: getZodPrefixedIdWithDefault("pcb_ground_plane"),
3343
- source_pcb_ground_plane_id: z117.string(),
3344
- source_net_id: z117.string(),
3345
- pcb_group_id: z117.string().optional(),
3346
- subcircuit_id: z117.string().optional()
3185
+ source_pcb_ground_plane_id: z113.string(),
3186
+ source_net_id: z113.string(),
3187
+ pcb_group_id: z113.string().optional(),
3188
+ subcircuit_id: z113.string().optional()
3347
3189
  }).describe("Defines a ground plane on the PCB");
3348
3190
  expectTypesMatch(true);
3349
- var pcb_ground_plane_region = z118.object({
3350
- type: z118.literal("pcb_ground_plane_region"),
3191
+ var pcb_ground_plane_region = z114.object({
3192
+ type: z114.literal("pcb_ground_plane_region"),
3351
3193
  pcb_ground_plane_region_id: getZodPrefixedIdWithDefault(
3352
3194
  "pcb_ground_plane_region"
3353
3195
  ),
3354
- pcb_ground_plane_id: z118.string(),
3355
- pcb_group_id: z118.string().optional(),
3356
- subcircuit_id: z118.string().optional(),
3196
+ pcb_ground_plane_id: z114.string(),
3197
+ pcb_group_id: z114.string().optional(),
3198
+ subcircuit_id: z114.string().optional(),
3357
3199
  layer: layer_ref,
3358
- points: z118.array(point)
3200
+ points: z114.array(point)
3359
3201
  }).describe("Defines a polygon region of a ground plane");
3360
3202
  expectTypesMatch(true);
3361
- var pcb_thermal_spoke = z119.object({
3362
- type: z119.literal("pcb_thermal_spoke"),
3203
+ var pcb_thermal_spoke = z115.object({
3204
+ type: z115.literal("pcb_thermal_spoke"),
3363
3205
  pcb_thermal_spoke_id: getZodPrefixedIdWithDefault("pcb_thermal_spoke"),
3364
- pcb_ground_plane_id: z119.string(),
3365
- shape: z119.string(),
3366
- spoke_count: z119.number(),
3206
+ pcb_ground_plane_id: z115.string(),
3207
+ shape: z115.string(),
3208
+ spoke_count: z115.number(),
3367
3209
  spoke_thickness: distance,
3368
3210
  spoke_inner_diameter: distance,
3369
3211
  spoke_outer_diameter: distance,
3370
- pcb_plated_hole_id: z119.string().optional(),
3371
- subcircuit_id: z119.string().optional()
3212
+ pcb_plated_hole_id: z115.string().optional(),
3213
+ subcircuit_id: z115.string().optional()
3372
3214
  }).describe("Pattern for connecting a ground plane to a plated hole");
3373
3215
  expectTypesMatch(true);
3374
- var pcb_copper_pour_base = z120.object({
3375
- type: z120.literal("pcb_copper_pour"),
3216
+ var pcb_copper_pour_base = z116.object({
3217
+ type: z116.literal("pcb_copper_pour"),
3376
3218
  pcb_copper_pour_id: getZodPrefixedIdWithDefault("pcb_copper_pour"),
3377
- pcb_group_id: z120.string().optional(),
3378
- subcircuit_id: z120.string().optional(),
3219
+ pcb_group_id: z116.string().optional(),
3220
+ subcircuit_id: z116.string().optional(),
3379
3221
  layer: layer_ref,
3380
- source_net_id: z120.string().optional(),
3381
- covered_with_solder_mask: z120.boolean().optional().default(true)
3222
+ source_net_id: z116.string().optional()
3382
3223
  });
3383
3224
  var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
3384
- shape: z120.literal("rect"),
3225
+ shape: z116.literal("rect"),
3385
3226
  center: point,
3386
3227
  width: length,
3387
3228
  height: length,
@@ -3389,141 +3230,140 @@ var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
3389
3230
  });
3390
3231
  expectTypesMatch(true);
3391
3232
  var pcb_copper_pour_brep = pcb_copper_pour_base.extend({
3392
- shape: z120.literal("brep"),
3233
+ shape: z116.literal("brep"),
3393
3234
  brep_shape
3394
3235
  });
3395
3236
  expectTypesMatch(true);
3396
3237
  var pcb_copper_pour_polygon = pcb_copper_pour_base.extend({
3397
- shape: z120.literal("polygon"),
3398
- points: z120.array(point)
3238
+ shape: z116.literal("polygon"),
3239
+ points: z116.array(point)
3399
3240
  });
3400
3241
  expectTypesMatch(true);
3401
- var pcb_copper_pour = z120.discriminatedUnion("shape", [
3242
+ var pcb_copper_pour = z116.discriminatedUnion("shape", [
3402
3243
  pcb_copper_pour_rect,
3403
3244
  pcb_copper_pour_brep,
3404
3245
  pcb_copper_pour_polygon
3405
3246
  ]).describe("Defines a copper pour on the PCB.");
3406
3247
  expectTypesMatch(true);
3407
- var pcb_component_outside_board_error = z121.object({
3408
- type: z121.literal("pcb_component_outside_board_error"),
3248
+ var pcb_component_outside_board_error = z117.object({
3249
+ type: z117.literal("pcb_component_outside_board_error"),
3409
3250
  pcb_component_outside_board_error_id: getZodPrefixedIdWithDefault(
3410
3251
  "pcb_component_outside_board_error"
3411
3252
  ),
3412
- error_type: z121.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
3413
- message: z121.string(),
3414
- pcb_component_id: z121.string(),
3415
- pcb_board_id: z121.string(),
3253
+ error_type: z117.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
3254
+ message: z117.string(),
3255
+ pcb_component_id: z117.string(),
3256
+ pcb_board_id: z117.string(),
3416
3257
  component_center: point,
3417
- component_bounds: z121.object({
3418
- min_x: z121.number(),
3419
- max_x: z121.number(),
3420
- min_y: z121.number(),
3421
- max_y: z121.number()
3258
+ component_bounds: z117.object({
3259
+ min_x: z117.number(),
3260
+ max_x: z117.number(),
3261
+ min_y: z117.number(),
3262
+ max_y: z117.number()
3422
3263
  }),
3423
- subcircuit_id: z121.string().optional(),
3424
- source_component_id: z121.string().optional()
3264
+ subcircuit_id: z117.string().optional(),
3265
+ source_component_id: z117.string().optional()
3425
3266
  }).describe(
3426
3267
  "Error emitted when a PCB component is placed outside the board boundaries"
3427
3268
  );
3428
3269
  expectTypesMatch(true);
3429
- var pcb_component_invalid_layer_error = z122.object({
3430
- type: z122.literal("pcb_component_invalid_layer_error"),
3270
+ var pcb_component_invalid_layer_error = z118.object({
3271
+ type: z118.literal("pcb_component_invalid_layer_error"),
3431
3272
  pcb_component_invalid_layer_error_id: getZodPrefixedIdWithDefault(
3432
3273
  "pcb_component_invalid_layer_error"
3433
3274
  ),
3434
- error_type: z122.literal("pcb_component_invalid_layer_error").default("pcb_component_invalid_layer_error"),
3435
- message: z122.string(),
3436
- pcb_component_id: z122.string().optional(),
3437
- source_component_id: z122.string(),
3275
+ error_type: z118.literal("pcb_component_invalid_layer_error").default("pcb_component_invalid_layer_error"),
3276
+ message: z118.string(),
3277
+ pcb_component_id: z118.string().optional(),
3278
+ source_component_id: z118.string(),
3438
3279
  layer: layer_ref,
3439
- subcircuit_id: z122.string().optional()
3280
+ subcircuit_id: z118.string().optional()
3440
3281
  }).describe(
3441
3282
  "Error emitted when a component is placed on an invalid layer (components can only be on 'top' or 'bottom' layers)"
3442
3283
  );
3443
3284
  expectTypesMatch(true);
3444
- var pcb_via_clearance_error = z123.object({
3445
- type: z123.literal("pcb_via_clearance_error"),
3285
+ var pcb_via_clearance_error = z119.object({
3286
+ type: z119.literal("pcb_via_clearance_error"),
3446
3287
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
3447
- error_type: z123.literal("pcb_via_clearance_error").default("pcb_via_clearance_error"),
3448
- message: z123.string(),
3449
- pcb_via_ids: z123.array(z123.string()).min(2),
3288
+ error_type: z119.literal("pcb_via_clearance_error").default("pcb_via_clearance_error"),
3289
+ message: z119.string(),
3290
+ pcb_via_ids: z119.array(z119.string()).min(2),
3450
3291
  minimum_clearance: distance.optional(),
3451
3292
  actual_clearance: distance.optional(),
3452
- pcb_center: z123.object({
3453
- x: z123.number().optional(),
3454
- y: z123.number().optional()
3293
+ pcb_center: z119.object({
3294
+ x: z119.number().optional(),
3295
+ y: z119.number().optional()
3455
3296
  }).optional(),
3456
- subcircuit_id: z123.string().optional()
3297
+ subcircuit_id: z119.string().optional()
3457
3298
  }).describe("Error emitted when vias are closer than the allowed clearance");
3458
3299
  expectTypesMatch(true);
3459
- var pcb_courtyard_rect = z124.object({
3460
- type: z124.literal("pcb_courtyard_rect"),
3300
+ var pcb_courtyard_rect = z120.object({
3301
+ type: z120.literal("pcb_courtyard_rect"),
3461
3302
  pcb_courtyard_rect_id: getZodPrefixedIdWithDefault("pcb_courtyard_rect"),
3462
- pcb_component_id: z124.string(),
3463
- pcb_group_id: z124.string().optional(),
3464
- subcircuit_id: z124.string().optional(),
3303
+ pcb_component_id: z120.string(),
3304
+ pcb_group_id: z120.string().optional(),
3305
+ subcircuit_id: z120.string().optional(),
3465
3306
  center: point,
3466
3307
  width: length,
3467
3308
  height: length,
3468
3309
  layer: visible_layer,
3469
- color: z124.string().optional()
3310
+ color: z120.string().optional()
3470
3311
  }).describe("Defines a courtyard rectangle on the PCB");
3471
3312
  expectTypesMatch(true);
3472
- var pcb_courtyard_outline = z125.object({
3473
- type: z125.literal("pcb_courtyard_outline"),
3313
+ var pcb_courtyard_outline = z121.object({
3314
+ type: z121.literal("pcb_courtyard_outline"),
3474
3315
  pcb_courtyard_outline_id: getZodPrefixedIdWithDefault(
3475
3316
  "pcb_courtyard_outline"
3476
3317
  ),
3477
- pcb_component_id: z125.string(),
3478
- pcb_group_id: z125.string().optional(),
3479
- subcircuit_id: z125.string().optional(),
3318
+ pcb_component_id: z121.string(),
3319
+ pcb_group_id: z121.string().optional(),
3320
+ subcircuit_id: z121.string().optional(),
3480
3321
  layer: visible_layer,
3481
- outline: z125.array(point).min(2),
3322
+ outline: z121.array(point).min(2),
3482
3323
  stroke_width: length.default("0.1mm"),
3483
- is_closed: z125.boolean().optional(),
3484
- is_stroke_dashed: z125.boolean().optional(),
3485
- color: z125.string().optional()
3324
+ is_closed: z121.boolean().optional(),
3325
+ is_stroke_dashed: z121.boolean().optional(),
3326
+ color: z121.string().optional()
3486
3327
  }).describe("Defines a courtyard outline on the PCB");
3487
3328
  expectTypesMatch(true);
3488
- var pcb_courtyard_polygon = z126.object({
3489
- type: z126.literal("pcb_courtyard_polygon"),
3329
+ var pcb_courtyard_polygon = z122.object({
3330
+ type: z122.literal("pcb_courtyard_polygon"),
3490
3331
  pcb_courtyard_polygon_id: getZodPrefixedIdWithDefault(
3491
3332
  "pcb_courtyard_polygon"
3492
3333
  ),
3493
- pcb_component_id: z126.string(),
3494
- pcb_group_id: z126.string().optional(),
3495
- subcircuit_id: z126.string().optional(),
3334
+ pcb_component_id: z122.string(),
3335
+ pcb_group_id: z122.string().optional(),
3336
+ subcircuit_id: z122.string().optional(),
3496
3337
  layer: visible_layer,
3497
- points: z126.array(point).min(3),
3498
- color: z126.string().optional()
3338
+ points: z122.array(point).min(3),
3339
+ color: z122.string().optional()
3499
3340
  }).describe("Defines a courtyard polygon on the PCB");
3500
3341
  expectTypesMatch(true);
3501
- var cad_component = z127.object({
3502
- type: z127.literal("cad_component"),
3503
- cad_component_id: z127.string(),
3504
- pcb_component_id: z127.string(),
3505
- source_component_id: z127.string(),
3342
+ var cad_component = z123.object({
3343
+ type: z123.literal("cad_component"),
3344
+ cad_component_id: z123.string(),
3345
+ pcb_component_id: z123.string(),
3346
+ source_component_id: z123.string(),
3506
3347
  position: point3,
3507
3348
  rotation: point3.optional(),
3508
3349
  size: point3.optional(),
3509
3350
  layer: layer_ref.optional(),
3510
- subcircuit_id: z127.string().optional(),
3351
+ subcircuit_id: z123.string().optional(),
3511
3352
  // These are all ways to generate/load the 3d model
3512
- footprinter_string: z127.string().optional(),
3513
- model_obj_url: z127.string().optional(),
3514
- model_stl_url: z127.string().optional(),
3515
- model_3mf_url: z127.string().optional(),
3516
- model_gltf_url: z127.string().optional(),
3517
- model_glb_url: z127.string().optional(),
3518
- model_step_url: z127.string().optional(),
3519
- model_wrl_url: z127.string().optional(),
3520
- model_unit_to_mm_scale_factor: z127.number().optional(),
3521
- model_jscad: z127.any().optional(),
3522
- show_as_translucent_model: z127.boolean().optional()
3353
+ footprinter_string: z123.string().optional(),
3354
+ model_obj_url: z123.string().optional(),
3355
+ model_stl_url: z123.string().optional(),
3356
+ model_3mf_url: z123.string().optional(),
3357
+ model_gltf_url: z123.string().optional(),
3358
+ model_glb_url: z123.string().optional(),
3359
+ model_step_url: z123.string().optional(),
3360
+ model_wrl_url: z123.string().optional(),
3361
+ model_unit_to_mm_scale_factor: z123.number().optional(),
3362
+ model_jscad: z123.any().optional()
3523
3363
  }).describe("Defines a component on the PCB");
3524
3364
  expectTypesMatch(true);
3525
- var wave_shape = z128.enum(["sinewave", "square", "triangle", "sawtooth"]);
3526
- var percentage = z128.union([z128.string(), z128.number()]).transform((val) => {
3365
+ var wave_shape = z124.enum(["sinewave", "square", "triangle", "sawtooth"]);
3366
+ var percentage = z124.union([z124.string(), z124.number()]).transform((val) => {
3527
3367
  if (typeof val === "string") {
3528
3368
  if (val.endsWith("%")) {
3529
3369
  return parseFloat(val.slice(0, -1)) / 100;
@@ -3532,30 +3372,30 @@ var percentage = z128.union([z128.string(), z128.number()]).transform((val) => {
3532
3372
  }
3533
3373
  return val;
3534
3374
  }).pipe(
3535
- z128.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
3375
+ z124.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
3536
3376
  );
3537
- var simulation_dc_voltage_source = z128.object({
3538
- type: z128.literal("simulation_voltage_source"),
3377
+ var simulation_dc_voltage_source = z124.object({
3378
+ type: z124.literal("simulation_voltage_source"),
3539
3379
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
3540
3380
  "simulation_voltage_source"
3541
3381
  ),
3542
- is_dc_source: z128.literal(true).optional().default(true),
3543
- positive_source_port_id: z128.string().optional(),
3544
- negative_source_port_id: z128.string().optional(),
3545
- positive_source_net_id: z128.string().optional(),
3546
- negative_source_net_id: z128.string().optional(),
3382
+ is_dc_source: z124.literal(true).optional().default(true),
3383
+ positive_source_port_id: z124.string().optional(),
3384
+ negative_source_port_id: z124.string().optional(),
3385
+ positive_source_net_id: z124.string().optional(),
3386
+ negative_source_net_id: z124.string().optional(),
3547
3387
  voltage
3548
3388
  }).describe("Defines a DC voltage source for simulation");
3549
- var simulation_ac_voltage_source = z128.object({
3550
- type: z128.literal("simulation_voltage_source"),
3389
+ var simulation_ac_voltage_source = z124.object({
3390
+ type: z124.literal("simulation_voltage_source"),
3551
3391
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
3552
3392
  "simulation_voltage_source"
3553
3393
  ),
3554
- is_dc_source: z128.literal(false),
3555
- terminal1_source_port_id: z128.string().optional(),
3556
- terminal2_source_port_id: z128.string().optional(),
3557
- terminal1_source_net_id: z128.string().optional(),
3558
- terminal2_source_net_id: z128.string().optional(),
3394
+ is_dc_source: z124.literal(false),
3395
+ terminal1_source_port_id: z124.string().optional(),
3396
+ terminal2_source_port_id: z124.string().optional(),
3397
+ terminal1_source_net_id: z124.string().optional(),
3398
+ terminal2_source_net_id: z124.string().optional(),
3559
3399
  voltage: voltage.optional(),
3560
3400
  frequency: frequency.optional(),
3561
3401
  peak_to_peak_voltage: voltage.optional(),
@@ -3563,120 +3403,76 @@ var simulation_ac_voltage_source = z128.object({
3563
3403
  phase: rotation.optional(),
3564
3404
  duty_cycle: percentage.optional()
3565
3405
  }).describe("Defines an AC voltage source for simulation");
3566
- var simulation_voltage_source = z128.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
3406
+ var simulation_voltage_source = z124.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
3567
3407
  expectTypesMatch(true);
3568
3408
  expectTypesMatch(true);
3569
3409
  expectTypesMatch(true);
3570
- var experiment_type = z129.union([
3571
- z129.literal("spice_dc_sweep"),
3572
- z129.literal("spice_dc_operating_point"),
3573
- z129.literal("spice_transient_analysis"),
3574
- z129.literal("spice_ac_analysis")
3410
+ var experiment_type = z125.union([
3411
+ z125.literal("spice_dc_sweep"),
3412
+ z125.literal("spice_dc_operating_point"),
3413
+ z125.literal("spice_transient_analysis"),
3414
+ z125.literal("spice_ac_analysis")
3575
3415
  ]);
3576
- var simulation_experiment = z129.object({
3577
- type: z129.literal("simulation_experiment"),
3416
+ var simulation_experiment = z125.object({
3417
+ type: z125.literal("simulation_experiment"),
3578
3418
  simulation_experiment_id: getZodPrefixedIdWithDefault(
3579
3419
  "simulation_experiment"
3580
3420
  ),
3581
- name: z129.string(),
3421
+ name: z125.string(),
3582
3422
  experiment_type,
3583
3423
  time_per_step: duration_ms.optional(),
3584
3424
  start_time_ms: ms.optional(),
3585
3425
  end_time_ms: ms.optional()
3586
3426
  }).describe("Defines a simulation experiment configuration");
3587
3427
  expectTypesMatch(true);
3588
- var simulation_transient_voltage_graph = z130.object({
3589
- type: z130.literal("simulation_transient_voltage_graph"),
3428
+ var simulation_transient_voltage_graph = z126.object({
3429
+ type: z126.literal("simulation_transient_voltage_graph"),
3590
3430
  simulation_transient_voltage_graph_id: getZodPrefixedIdWithDefault(
3591
3431
  "simulation_transient_voltage_graph"
3592
3432
  ),
3593
- simulation_experiment_id: z130.string(),
3594
- timestamps_ms: z130.array(z130.number()).optional(),
3595
- voltage_levels: z130.array(z130.number()),
3596
- source_component_id: z130.string().optional(),
3597
- subcircuit_connectivity_map_key: z130.string().optional(),
3433
+ simulation_experiment_id: z126.string(),
3434
+ timestamps_ms: z126.array(z126.number()).optional(),
3435
+ voltage_levels: z126.array(z126.number()),
3436
+ schematic_voltage_probe_id: z126.string().optional(),
3437
+ simulation_voltage_probe_id: z126.string().optional(),
3438
+ subcircuit_connectivity_map_key: z126.string().optional(),
3598
3439
  time_per_step: duration_ms,
3599
3440
  start_time_ms: ms,
3600
3441
  end_time_ms: ms,
3601
- name: z130.string().optional(),
3602
- color: z130.string().optional()
3442
+ name: z126.string().optional()
3603
3443
  }).describe("Stores voltage measurements over time for a simulation");
3604
3444
  expectTypesMatch(true);
3605
- var simulation_switch = z131.object({
3606
- type: z131.literal("simulation_switch"),
3445
+ var simulation_switch = z127.object({
3446
+ type: z127.literal("simulation_switch"),
3607
3447
  simulation_switch_id: getZodPrefixedIdWithDefault("simulation_switch"),
3608
- source_component_id: z131.string().optional(),
3448
+ source_component_id: z127.string().optional(),
3609
3449
  closes_at: ms.optional(),
3610
3450
  opens_at: ms.optional(),
3611
- starts_closed: z131.boolean().optional(),
3451
+ starts_closed: z127.boolean().optional(),
3612
3452
  switching_frequency: frequency.optional()
3613
3453
  }).describe("Defines a switch for simulation timing control");
3614
3454
  expectTypesMatch(true);
3615
- var simulation_voltage_probe = z132.object({
3616
- type: z132.literal("simulation_voltage_probe"),
3455
+ var simulation_voltage_probe = z128.object({
3456
+ type: z128.literal("simulation_voltage_probe"),
3617
3457
  simulation_voltage_probe_id: getZodPrefixedIdWithDefault(
3618
3458
  "simulation_voltage_probe"
3619
3459
  ),
3620
- source_component_id: z132.string().optional(),
3621
- name: z132.string().optional(),
3622
- signal_input_source_port_id: z132.string().optional(),
3623
- signal_input_source_net_id: z132.string().optional(),
3624
- reference_input_source_port_id: z132.string().optional(),
3625
- reference_input_source_net_id: z132.string().optional(),
3626
- subcircuit_id: z132.string().optional(),
3627
- color: z132.string().optional()
3460
+ source_port_id: z128.string().optional(),
3461
+ source_net_id: z128.string().optional(),
3462
+ name: z128.string().optional(),
3463
+ subcircuit_id: z128.string().optional()
3628
3464
  }).describe(
3629
- "Defines a voltage probe for simulation. If a reference input is not provided, it measures against ground. If a reference input is provided, it measures the differential voltage between two points."
3630
- ).superRefine((data, ctx) => {
3631
- const is_differential = data.reference_input_source_port_id || data.reference_input_source_net_id;
3632
- if (is_differential) {
3633
- const has_ports = !!data.signal_input_source_port_id || !!data.reference_input_source_port_id;
3634
- const has_nets = !!data.signal_input_source_net_id || !!data.reference_input_source_net_id;
3635
- if (has_ports && has_nets) {
3636
- ctx.addIssue({
3637
- code: z132.ZodIssueCode.custom,
3638
- message: "Cannot mix port and net connections in a differential probe."
3639
- });
3640
- } else if (has_ports) {
3641
- if (!data.signal_input_source_port_id || !data.reference_input_source_port_id) {
3642
- ctx.addIssue({
3643
- code: z132.ZodIssueCode.custom,
3644
- message: "Differential port probe requires both signal_input_source_port_id and reference_input_source_port_id."
3645
- });
3646
- }
3647
- } else if (has_nets) {
3648
- if (!data.signal_input_source_net_id || !data.reference_input_source_net_id) {
3649
- ctx.addIssue({
3650
- code: z132.ZodIssueCode.custom,
3651
- message: "Differential net probe requires both signal_input_source_net_id and reference_input_source_net_id."
3652
- });
3653
- }
3654
- }
3655
- } else {
3656
- if (!!data.signal_input_source_port_id === !!data.signal_input_source_net_id) {
3657
- ctx.addIssue({
3658
- code: z132.ZodIssueCode.custom,
3659
- message: "A voltage probe must have exactly one of signal_input_source_port_id or signal_input_source_net_id."
3660
- });
3661
- }
3465
+ "Defines a voltage probe for simulation, connected to a port or a net"
3466
+ ).refine(
3467
+ (data) => Boolean(data.source_port_id) !== Boolean(data.source_net_id),
3468
+ {
3469
+ message: "Exactly one of source_port_id or source_net_id must be provided to simulation_voltage_probe"
3662
3470
  }
3663
- });
3664
- expectTypesMatch(true);
3665
- var simulation_unknown_experiment_error = z133.object({
3666
- type: z133.literal("simulation_unknown_experiment_error"),
3667
- simulation_unknown_experiment_error_id: getZodPrefixedIdWithDefault(
3668
- "simulation_unknown_experiment_error"
3669
- ),
3670
- error_type: z133.literal("simulation_unknown_experiment_error").default("simulation_unknown_experiment_error"),
3671
- message: z133.string(),
3672
- simulation_experiment_id: z133.string().optional(),
3673
- subcircuit_id: z133.string().optional()
3674
- }).describe("An unknown error occurred during the simulation experiment.");
3471
+ );
3675
3472
  expectTypesMatch(true);
3676
- var any_circuit_element = z134.union([
3473
+ var any_circuit_element = z129.union([
3677
3474
  source_trace,
3678
3475
  source_port,
3679
- source_component_internal_connection,
3680
3476
  any_source_component,
3681
3477
  source_net,
3682
3478
  source_group,
@@ -3703,7 +3499,6 @@ var any_circuit_element = z134.union([
3703
3499
  source_project_metadata,
3704
3500
  source_trace_not_connected_error,
3705
3501
  source_pin_missing_trace_warning,
3706
- source_pin_must_be_connected_error,
3707
3502
  unknown_error_finding_part,
3708
3503
  pcb_component,
3709
3504
  pcb_hole,
@@ -3784,8 +3579,7 @@ var any_circuit_element = z134.union([
3784
3579
  simulation_experiment,
3785
3580
  simulation_transient_voltage_graph,
3786
3581
  simulation_switch,
3787
- simulation_voltage_probe,
3788
- simulation_unknown_experiment_error
3582
+ simulation_voltage_probe
3789
3583
  ]);
3790
3584
  var any_soup_element = any_circuit_element;
3791
3585
  expectTypesMatch(true);
@@ -6017,10 +5811,10 @@ var re = e({ primitives: [...Object.values(sh), ...Object.values(mh), { type: "t
6017
5811
  var Zp = E(re);
6018
5812
  var { paths: nh, texts: zg, bounds: Qp, refblocks: Kp, circles: fh } = gt;
6019
5813
  var ta = e({ primitives: [...Object.values(nh), ...Object.values(fh), { type: "text", text: "{REF}", x: 0, y: 0.2594553499999995 }], ports: [{ ...Kp.left1, labels: ["1"] }, { ...Kp.right1, labels: ["2"] }], center: { x: Qp.centerX, y: Qp.centerY } }).rotateRightFacingSymbol("up").labelPort("left1", ["1"]).labelPort("right1", ["2"]).changeTextAnchor("{REF}", "middle_right").build();
6020
- var z135 = { paths: { path27: { type: "path", points: [{ x: 0.55, y: 0.02 }, { x: 0.07, y: 0.02 }], color: "primary", fill: false }, path28: { type: "path", points: [{ x: -0.09, y: 0.02 }, { x: -0.55, y: 0.02 }], color: "primary", fill: false }, path29: { type: "path", points: [{ x: 0.07, y: 0.28 }, { x: 0.07, y: -0.25 }], color: "primary", fill: false }, path30: { type: "path", points: [{ x: -0.09, y: 0.28 }, { x: -0.09, y: -0.25 }], color: "primary", fill: false } }, texts: { top1: { type: "text", text: "{REF}", x: -0.01, y: 0.42 }, bottom1: { type: "text", text: "{VAL}", x: 0, y: -0.42 } }, refblocks: { left1: { x: -0.55, y: 0.02 }, right1: { x: 0.55, y: 0.02 } }, bounds: { minX: -0.58, maxX: 0.58, minY: -0.42, maxY: 0.42, width: 1.16, height: 0.84, centerX: 0, centerY: 0 }, circles: {} };
6021
- var { paths: ch, texts: Cg, bounds: oe, refblocks: ea, circles: dh } = z135;
5814
+ var z130 = { paths: { path27: { type: "path", points: [{ x: 0.55, y: 0.02 }, { x: 0.07, y: 0.02 }], color: "primary", fill: false }, path28: { type: "path", points: [{ x: -0.09, y: 0.02 }, { x: -0.55, y: 0.02 }], color: "primary", fill: false }, path29: { type: "path", points: [{ x: 0.07, y: 0.28 }, { x: 0.07, y: -0.25 }], color: "primary", fill: false }, path30: { type: "path", points: [{ x: -0.09, y: 0.28 }, { x: -0.09, y: -0.25 }], color: "primary", fill: false } }, texts: { top1: { type: "text", text: "{REF}", x: -0.01, y: 0.42 }, bottom1: { type: "text", text: "{VAL}", x: 0, y: -0.42 } }, refblocks: { left1: { x: -0.55, y: 0.02 }, right1: { x: 0.55, y: 0.02 } }, bounds: { minX: -0.58, maxX: 0.58, minY: -0.42, maxY: 0.42, width: 1.16, height: 0.84, centerX: 0, centerY: 0 }, circles: {} };
5815
+ var { paths: ch, texts: Cg, bounds: oe, refblocks: ea, circles: dh } = z130;
6022
5816
  var ra = e({ primitives: [...Object.values(ch), ...Object.values(dh), { type: "text", text: "{REF}", x: -0.2, y: 0.115 }, { type: "text", text: "{VAL}", x: 0.2, y: 0.115 }], ports: [{ ...ea.left1, labels: ["1"] }, { ...ea.right1, labels: ["2"] }], size: { width: oe.width, height: oe.height }, center: { x: oe.centerX, y: oe.centerY } }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "bottom_left").build();
6023
- var oa = e(z135).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["2", "neg"]).labelPort("right1", ["1", "pos"]).changeTextAnchor("{REF}", "middle_bottom").build();
5817
+ var oa = e(z130).changeTextAnchor("{VAL}", "middle_top").rotateRightFacingSymbol("right").labelPort("left1", ["2", "neg"]).labelPort("right1", ["1", "pos"]).changeTextAnchor("{REF}", "middle_bottom").build();
6024
5818
  var O = { paths: { "path27-5": { type: "path", points: [{ x: 0.45, y: 0.02 }, { x: 0, y: 0.02 }], color: "primary", fill: false }, "path28-5": { type: "path", points: [{ x: -0.09, y: 0.02 }, { x: -0.54, y: 0.02 }], color: "primary", fill: false }, "path30-7": { type: "path", points: [{ x: 0, y: 0.28 }, { x: 0, y: -0.25 }], color: "primary", fill: false }, path8704: { type: "path", points: [{ x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.24 }, { x: -0.14, y: -0.23 }, { x: -0.14, y: -0.23 }, { x: -0.14, y: -0.23 }, { x: -0.14, y: -0.23 }, { x: -0.13, y: -0.23 }, { x: -0.13, y: -0.23 }, { x: -0.13, y: -0.23 }, { x: -0.13, y: -0.23 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.22 }, { x: -0.13, y: -0.21 }, { x: -0.13, y: -0.21 }, { x: -0.13, y: -0.21 }, { x: -0.12, y: -0.21 }, { x: -0.12, y: -0.21 }, { x: -0.12, y: -0.21 }, { x: -0.12, y: -0.21 }, { x: -0.12, y: -0.21 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.2 }, { x: -0.12, y: -0.19 }, { x: -0.12, y: -0.19 }, { x: -0.12, y: -0.19 }, { x: -0.12, y: -0.19 }, { x: -0.11, y: -0.19 }, { x: -0.11, y: -0.19 }, { x: -0.11, y: -0.19 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.18 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.11, y: -0.17 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.16 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.15 }, { x: -0.1, y: -0.14 }, { x: -0.1, y: -0.14 }, { x: -0.1, y: -0.14 }, { x: -0.1, y: -0.14 }, { x: -0.1, y: -0.14 }, { x: -0.1, y: -0.14 }, { x: -0.1, y: -0.14 }, { x: -0.09, y: -0.14 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.13 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.12 }, { x: -0.09, y: -0.11 }, { x: -0.09, y: -0.11 }, { x: -0.09, y: -0.11 }, { x: -0.09, y: -0.11 }, { x: -0.09, y: -0.11 }, { x: -0.09, y: -0.11 }, { x: -0.09, y: -0.1 }, { x: -0.09, y: -0.1 }, { x: -0.09, y: -0.1 }, { x: -0.09, y: -0.1 }, { x: -0.09, y: -0.1 }, { x: -0.09, y: -0.1 }, { x: -0.08, y: -0.09 }, { x: -0.08, y: -0.09 }, { x: -0.08, y: -0.09 }, { x: -0.08, y: -0.09 }, { x: -0.08, y: -0.09 }, { x: -0.08, y: -0.09 }, { x: -0.08, y: -0.08 }, { x: -0.08, y: -0.08 }, { x: -0.08, y: -0.08 }, { x: -0.08, y: -0.08 }, { x: -0.08, y: -0.08 }, { x: -0.08, y: -0.08 }, { x: -0.08, y: -0.07 }, { x: -0.08, y: -0.07 }, { x: -0.08, y: -0.07 }, { x: -0.08, y: -0.07 }, { x: -0.08, y: -0.07 }, { x: -0.08, y: -0.07 }, { x: -0.08, y: -0.06 }, { x: -0.08, y: -0.06 }, { x: -0.08, y: -0.06 }, { x: -0.08, y: -0.06 }, { x: -0.08, y: -0.06 }, { x: -0.08, y: -0.05 }, { x: -0.08, y: -0.05 }, { x: -0.08, y: -0.05 }, { x: -0.08, y: -0.05 }, { x: -0.08, y: -0.05 }, { x: -0.08, y: -0.05 }, { x: -0.08, y: -0.04 }, { x: -0.08, y: -0.04 }, { x: -0.08, y: -0.04 }, { x: -0.08, y: -0.04 }, { x: -0.08, y: -0.04 }, { x: -0.08, y: -0.04 }, { x: -0.08, y: -0.03 }, { x: -0.08, y: -0.03 }, { x: -0.08, y: -0.03 }, { x: -0.08, y: -0.03 }, { x: -0.08, y: -0.03 }, { x: -0.08, y: -0.03 }, { x: -0.08, y: -0.02 }, { x: -0.08, y: -0.02 }, { x: -0.08, y: -0.02 }, { x: -0.08, y: -0.02 }, { x: -0.08, y: -0.02 }, { x: -0.08, y: -0.02 }, { x: -0.08, y: -0.01 }, { x: -0.08, y: -0.01 }, { x: -0.08, y: -0.01 }, { x: -0.08, y: -0.01 }, { x: -0.08, y: -0.01 }, { x: -0.08, y: 0 }, { x: -0.08, y: 0 }, { x: -0.08, y: 0 }, { x: -0.08, y: 0 }, { x: -0.08, y: 0 }, { x: -0.08, y: 0 }, { x: -0.08, y: 0.01 }, { x: -0.07, y: 0.01 }, { x: -0.07, y: 0.01 }, { x: -0.07, y: 0.01 }, { x: -0.07, y: 0.01 }, { x: -0.07, y: 0.01 }, { x: -0.08, y: 0.02 }, { x: -0.08, y: 0.02 }, { x: -0.08, y: 0.02 }, { x: -0.08, y: 0.02 }, { x: -0.08, y: 0.02 }, { x: -0.08, y: 0.02 }, { x: -0.08, y: 0.03 }, { x: -0.08, y: 0.03 }, { x: -0.08, y: 0.03 }, { x: -0.08, y: 0.03 }, { x: -0.08, y: 0.03 }, { x: -0.08, y: 0.03 }, { x: -0.08, y: 0.04 }, { x: -0.08, y: 0.04 }, { x: -0.08, y: 0.04 }, { x: -0.08, y: 0.04 }, { x: -0.08, y: 0.04 }, { x: -0.08, y: 0.05 }, { x: -0.08, y: 0.05 }, { x: -0.08, y: 0.05 }, { x: -0.08, y: 0.05 }, { x: -0.08, y: 0.05 }, { x: -0.08, y: 0.05 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.06 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.07 }, { x: -0.08, y: 0.08 }, { x: -0.08, y: 0.08 }, { x: -0.08, y: 0.08 }, { x: -0.08, y: 0.08 }, { x: -0.08, y: 0.08 }, { x: -0.08, y: 0.08 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.09 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.1 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.11 }, { x: -0.08, y: 0.12 }, { x: -0.08, y: 0.12 }, { x: -0.08, y: 0.12 }, { x: -0.08, y: 0.12 }, { x: -0.09, y: 0.12 }, { x: -0.09, y: 0.12 }, { x: -0.09, y: 0.12 }, { x: -0.09, y: 0.13 }, { x: -0.09, y: 0.13 }, { x: -0.09, y: 0.13 }, { x: -0.09, y: 0.13 }, { x: -0.09, y: 0.13 }, { x: -0.09, y: 0.13 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.14 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.15 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.16 }, { x: -0.09, y: 0.17 }, { x: -0.09, y: 0.17 }, { x: -0.1, y: 0.17 }, { x: -0.1, y: 0.17 }, { x: -0.1, y: 0.17 }, { x: -0.1, y: 0.17 }, { x: -0.1, y: 0.17 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.18 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.19 }, { x: -0.1, y: 0.2 }, { x: -0.1, y: 0.2 }, { x: -0.1, y: 0.2 }, { x: -0.1, y: 0.2 }, { x: -0.1, y: 0.2 }, { x: -0.1, y: 0.2 }, { x: -0.11, y: 0.2 }, { x: -0.11, y: 0.2 }, { x: -0.11, y: 0.2 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.21 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.22 }, { x: -0.11, y: 0.23 }, { x: -0.11, y: 0.23 }, { x: -0.11, y: 0.23 }, { x: -0.11, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.23 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.24 }, { x: -0.12, y: 0.25 }, { x: -0.12, y: 0.25 }, { x: -0.12, y: 0.25 }, { x: -0.12, y: 0.25 }, { x: -0.12, y: 0.25 }, { x: -0.12, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.25 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.26 }, { x: -0.13, y: 0.27 }, { x: -0.13, y: 0.27 }, { x: -0.13, y: 0.27 }, { x: -0.13, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.27 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }, { x: -0.14, y: 0.28 }], color: "primary", fill: false }, "rect1577-4": { type: "path", points: [{ x: 0.26, y: 0.25 }, { x: 0.12, y: 0.25 }, { x: 0.12, y: 0.25 }, { x: 0.26, y: 0.25 }], color: "primary", fill: true }, "rect1577-4-7": { type: "path", points: [{ x: 0.2, y: 0.32 }, { x: 0.2, y: 0.18 }, { x: 0.19, y: 0.18 }, { x: 0.19, y: 0.32 }], color: "primary", fill: true } }, texts: { top1: { type: "text", text: "{REF}", x: -0.01, y: 0.42 }, bottom1: { type: "text", text: "{VAL}", x: 0, y: -0.42 } }, refblocks: { left1: { x: -0.54, y: 0.02 }, right1: { x: 0.45, y: 0.02 } }, bounds: { minX: -0.58, maxX: 0.58, minY: -0.42, maxY: 0.42, width: 1.16, height: 0.84, centerX: 0, centerY: 0 }, circles: {} };
6025
5819
  var { paths: _h, texts: Wg, bounds: ie, refblocks: ia, circles: gh } = O;
6026
5820
  var la = e({ primitives: [...Object.values(_h), ...Object.values(gh), { type: "text", text: "{REF}", x: 0.1, y: -0.2094553499999995 }, { type: "text", text: "{VAL}", x: -0.2, y: -0.2094553499999995 }], ports: [{ ...ia.left1, labels: ["2", "neg"] }, { ...ia.right1, labels: ["1", "pos"] }], size: { width: ie.width, height: ie.height }, center: { x: ie.centerX, y: ie.centerY } }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("up").changeTextAnchor("{REF}", "bottom_left").build();
@@ -6029,8 +5823,8 @@ var { paths: uh, texts: r3, bounds: le, refblocks: aa, circles: vh } = O;
6029
5823
  var ya = e({ primitives: [...Object.values(uh), ...Object.values(vh), { type: "text", text: "{REF}", x: 0, y: -0.4094553499999995 }, { type: "text", text: "{VAL}", x: -0, y: 0.4094553499999995 }], ports: [{ ...aa.left1, labels: ["2", "neg"] }, { ...aa.right1, labels: ["1", "pos"] }], size: { width: le.width, height: le.height }, center: { x: le.centerX, y: le.centerY } }).changeTextAnchor("{VAL}", "middle_bottom").rotateRightFacingSymbol("left").changeTextAnchor("{REF}", "middle_bottom").build();
6030
5824
  var { paths: wh, texts: p3, bounds: pe, refblocks: xa, circles: Ah } = O;
6031
5825
  var sa = e({ primitives: [...Object.values(wh), ...Object.values(Ah), { type: "text", text: "{REF}", x: -0.2, y: 0.2094553499999995 }, { type: "text", text: "{VAL}", x: 0.3, y: 0.2094553499999995 }], ports: [{ ...xa.left1, labels: ["2", "neg"] }, { ...xa.right1, labels: ["1", "pos"] }], size: { width: pe.width, height: pe.height }, center: { x: pe.centerX, y: pe.centerY } }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("down").changeTextAnchor("{REF}", "bottom_left").build();
6032
- var ma = e(z135).rotateRightFacingSymbol("right").changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "middle_bottom").build();
6033
- var { paths: Ph, texts: f3, bounds: ae, refblocks: na, circles: Sh } = z135;
5826
+ var ma = e(z130).rotateRightFacingSymbol("right").changeTextAnchor("{VAL}", "middle_top").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "middle_bottom").build();
5827
+ var { paths: Ph, texts: f3, bounds: ae, refblocks: na, circles: Sh } = z130;
6034
5828
  var fa = e({ primitives: [...Object.values(Ph), ...Object.values(Sh), { type: "text", text: "{REF}", x: 0.2, y: -0.095 }, { type: "text", text: "{VAL}", x: -0.2, y: -0.095 }], ports: [{ ...na.left1, labels: ["1"] }, { ...na.right1, labels: ["2"] }], size: { width: ae.width, height: ae.height }, center: { x: ae.centerX, y: ae.centerY } }).changeTextAnchor("{VAL}", "top_left").rotateRightFacingSymbol("up").labelPort("left1", ["1", "pos"]).labelPort("right1", ["2", "neg"]).changeTextAnchor("{REF}", "bottom_left").build();
6035
5829
  var A = { paths: { path11: { type: "path", points: [{ x: -0.54, y: 0.03 }, { x: -0.3, y: 0.03 }], color: "primary", fill: false }, path12: { type: "path", points: [{ x: 0.29, y: 0.03 }, { x: 0.54, y: 0.03 }], color: "primary", fill: false }, path2: { type: "path", points: [{ x: 0.29, y: 0.29 }, { x: 0.29, y: -0.23 }], color: "primary", fill: false } }, texts: { top1: { type: "text", text: "{REF}", x: -0.02, y: 0.37 }, bottom1: { type: "text", text: "{VAL}", x: -0.01, y: -0.37 } }, refblocks: { left1: { x: -0.54, y: 0.03 }, right1: { x: 0.54, y: 0.03 } }, bounds: { minX: -0.57, maxX: 0.57, minY: -0.37, maxY: 0.37, width: 1.14, height: 0.74, centerX: 0, centerY: 0 }, circles: { path1: { type: "circle", x: 0, y: 0.04, radius: 0.29, color: "primary", fill: false } } };
6036
5830
  var { paths: Rh, texts: _3, bounds: ye, refblocks: ha, circles: Th } = A;
@@ -7924,4 +7718,4 @@ svgson/dist/svgson.umd.js:
7924
7718
  * @license MIT
7925
7719
  *)
7926
7720
  */
7927
- //# sourceMappingURL=chunk-3LTFTYMU.js.map
7721
+ //# sourceMappingURL=chunk-6S7LH5YP.js.map