easyeda 0.0.233 → 0.0.235

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