circuit-json 0.0.326 → 0.0.328

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -690,80 +690,90 @@ var source_port = z38.object({
690
690
  });
691
691
  expectTypesMatch(true);
692
692
 
693
- // src/source/source_trace.ts
693
+ // src/source/source_component_internal_connection.ts
694
694
  import { z as z39 } from "zod";
695
- var source_trace = z39.object({
696
- type: z39.literal("source_trace"),
697
- source_trace_id: z39.string(),
698
- connected_source_port_ids: z39.array(z39.string()),
699
- connected_source_net_ids: z39.array(z39.string()),
700
- subcircuit_id: z39.string().optional(),
701
- subcircuit_connectivity_map_key: z39.string().optional(),
702
- max_length: z39.number().optional(),
703
- min_trace_thickness: z39.number().optional(),
704
- display_name: z39.string().optional()
695
+ var source_component_internal_connection = z39.object({
696
+ type: z39.literal("source_component_internal_connection"),
697
+ source_component_internal_connection_id: z39.string(),
698
+ source_component_id: z39.string(),
699
+ source_port_ids: z39.array(z39.string())
705
700
  });
706
701
  expectTypesMatch(true);
707
702
 
708
- // src/source/source_group.ts
703
+ // src/source/source_trace.ts
709
704
  import { z as z40 } from "zod";
710
- var source_group = z40.object({
711
- type: z40.literal("source_group"),
712
- source_group_id: z40.string(),
705
+ var source_trace = z40.object({
706
+ type: z40.literal("source_trace"),
707
+ source_trace_id: z40.string(),
708
+ connected_source_port_ids: z40.array(z40.string()),
709
+ connected_source_net_ids: z40.array(z40.string()),
713
710
  subcircuit_id: z40.string().optional(),
714
- parent_subcircuit_id: z40.string().optional(),
715
- parent_source_group_id: z40.string().optional(),
716
- is_subcircuit: z40.boolean().optional(),
717
- show_as_schematic_box: z40.boolean().optional(),
718
- name: z40.string().optional(),
719
- was_automatically_named: z40.boolean().optional()
711
+ subcircuit_connectivity_map_key: z40.string().optional(),
712
+ max_length: z40.number().optional(),
713
+ min_trace_thickness: z40.number().optional(),
714
+ display_name: z40.string().optional()
720
715
  });
721
716
  expectTypesMatch(true);
722
717
 
723
- // src/source/source_net.ts
718
+ // src/source/source_group.ts
724
719
  import { z as z41 } from "zod";
725
- var source_net = z41.object({
726
- type: z41.literal("source_net"),
727
- source_net_id: z41.string(),
728
- name: z41.string(),
729
- member_source_group_ids: z41.array(z41.string()),
730
- is_power: z41.boolean().optional(),
731
- is_ground: z41.boolean().optional(),
732
- is_digital_signal: z41.boolean().optional(),
733
- is_analog_signal: z41.boolean().optional(),
734
- is_positive_voltage_source: z41.boolean().optional(),
735
- trace_width: z41.number().optional(),
720
+ var source_group = z41.object({
721
+ type: z41.literal("source_group"),
722
+ source_group_id: z41.string(),
736
723
  subcircuit_id: z41.string().optional(),
737
- subcircuit_connectivity_map_key: z41.string().optional()
724
+ parent_subcircuit_id: z41.string().optional(),
725
+ parent_source_group_id: z41.string().optional(),
726
+ is_subcircuit: z41.boolean().optional(),
727
+ show_as_schematic_box: z41.boolean().optional(),
728
+ name: z41.string().optional(),
729
+ was_automatically_named: z41.boolean().optional()
738
730
  });
739
731
  expectTypesMatch(true);
740
732
 
741
- // src/source/source_board.ts
733
+ // src/source/source_net.ts
742
734
  import { z as z42 } from "zod";
743
- var source_board = z42.object({
744
- type: z42.literal("source_board"),
745
- source_board_id: z42.string(),
746
- source_group_id: z42.string(),
747
- title: z42.string().optional()
748
- }).describe("Defines a board in the source domain");
735
+ var source_net = z42.object({
736
+ type: z42.literal("source_net"),
737
+ source_net_id: z42.string(),
738
+ name: z42.string(),
739
+ member_source_group_ids: z42.array(z42.string()),
740
+ is_power: z42.boolean().optional(),
741
+ is_ground: z42.boolean().optional(),
742
+ is_digital_signal: z42.boolean().optional(),
743
+ is_analog_signal: z42.boolean().optional(),
744
+ is_positive_voltage_source: z42.boolean().optional(),
745
+ trace_width: z42.number().optional(),
746
+ subcircuit_id: z42.string().optional(),
747
+ subcircuit_connectivity_map_key: z42.string().optional()
748
+ });
749
749
  expectTypesMatch(true);
750
750
 
751
- // src/source/source_pcb_ground_plane.ts
751
+ // src/source/source_board.ts
752
752
  import { z as z43 } from "zod";
753
- var source_pcb_ground_plane = z43.object({
754
- type: z43.literal("source_pcb_ground_plane"),
755
- source_pcb_ground_plane_id: z43.string(),
753
+ var source_board = z43.object({
754
+ type: z43.literal("source_board"),
755
+ source_board_id: z43.string(),
756
756
  source_group_id: z43.string(),
757
- source_net_id: z43.string(),
758
- subcircuit_id: z43.string().optional()
757
+ title: z43.string().optional()
758
+ }).describe("Defines a board in the source domain");
759
+ expectTypesMatch(true);
760
+
761
+ // src/source/source_pcb_ground_plane.ts
762
+ import { z as z44 } from "zod";
763
+ var source_pcb_ground_plane = z44.object({
764
+ type: z44.literal("source_pcb_ground_plane"),
765
+ source_pcb_ground_plane_id: z44.string(),
766
+ source_group_id: z44.string(),
767
+ source_net_id: z44.string(),
768
+ subcircuit_id: z44.string().optional()
759
769
  }).describe("Defines a ground plane in the source domain");
760
770
  expectTypesMatch(true);
761
771
 
762
772
  // src/source/source_manually_placed_via.ts
763
- import { z as z45 } from "zod";
773
+ import { z as z46 } from "zod";
764
774
 
765
775
  // src/pcb/properties/layer_ref.ts
766
- import { z as z44 } from "zod";
776
+ import { z as z45 } from "zod";
767
777
  var all_layers = [
768
778
  "top",
769
779
  "bottom",
@@ -774,9 +784,9 @@ var all_layers = [
774
784
  "inner5",
775
785
  "inner6"
776
786
  ];
777
- var layer_string = z44.enum(all_layers);
787
+ var layer_string = z45.enum(all_layers);
778
788
  var layer_ref = layer_string.or(
779
- z44.object({
789
+ z45.object({
780
790
  name: layer_string
781
791
  })
782
792
  ).transform((layer) => {
@@ -786,253 +796,253 @@ var layer_ref = layer_string.or(
786
796
  return layer.name;
787
797
  });
788
798
  expectTypesMatch(true);
789
- var visible_layer = z44.enum(["top", "bottom"]);
799
+ var visible_layer = z45.enum(["top", "bottom"]);
790
800
 
791
801
  // src/source/source_manually_placed_via.ts
792
- var source_manually_placed_via = z45.object({
793
- type: z45.literal("source_manually_placed_via"),
794
- source_manually_placed_via_id: z45.string(),
795
- source_group_id: z45.string(),
796
- source_net_id: z45.string(),
797
- subcircuit_id: z45.string().optional(),
798
- source_trace_id: z45.string().optional()
802
+ var source_manually_placed_via = z46.object({
803
+ type: z46.literal("source_manually_placed_via"),
804
+ source_manually_placed_via_id: z46.string(),
805
+ source_group_id: z46.string(),
806
+ source_net_id: z46.string(),
807
+ subcircuit_id: z46.string().optional(),
808
+ source_trace_id: z46.string().optional()
799
809
  }).describe("Defines a via that is manually placed in the source domain");
800
810
  expectTypesMatch(true);
801
811
 
802
812
  // src/source/source_pin_must_be_connected_error.ts
803
- import { z as z46 } from "zod";
804
- var source_pin_must_be_connected_error = z46.object({
805
- type: z46.literal("source_pin_must_be_connected_error"),
813
+ import { z as z47 } from "zod";
814
+ var source_pin_must_be_connected_error = z47.object({
815
+ type: z47.literal("source_pin_must_be_connected_error"),
806
816
  source_pin_must_be_connected_error_id: getZodPrefixedIdWithDefault(
807
817
  "source_pin_must_be_connected_error"
808
818
  ),
809
- error_type: z46.literal("source_pin_must_be_connected_error").default("source_pin_must_be_connected_error"),
810
- message: z46.string(),
811
- source_component_id: z46.string(),
812
- source_port_id: z46.string(),
813
- subcircuit_id: z46.string().optional()
819
+ error_type: z47.literal("source_pin_must_be_connected_error").default("source_pin_must_be_connected_error"),
820
+ message: z47.string(),
821
+ source_component_id: z47.string(),
822
+ source_port_id: z47.string(),
823
+ subcircuit_id: z47.string().optional()
814
824
  }).describe(
815
825
  "Error emitted when a pin with mustBeConnected attribute is not connected to any trace"
816
826
  );
817
827
  expectTypesMatch(true);
818
828
 
819
829
  // src/source/unknown_error_finding_part.ts
820
- import { z as z47 } from "zod";
821
- var unknown_error_finding_part = z47.object({
822
- type: z47.literal("unknown_error_finding_part"),
830
+ import { z as z48 } from "zod";
831
+ var unknown_error_finding_part = z48.object({
832
+ type: z48.literal("unknown_error_finding_part"),
823
833
  unknown_error_finding_part_id: getZodPrefixedIdWithDefault(
824
834
  "unknown_error_finding_part"
825
835
  ),
826
- error_type: z47.literal("unknown_error_finding_part").default("unknown_error_finding_part"),
827
- message: z47.string(),
828
- source_component_id: z47.string().optional(),
829
- subcircuit_id: z47.string().optional()
836
+ error_type: z48.literal("unknown_error_finding_part").default("unknown_error_finding_part"),
837
+ message: z48.string(),
838
+ source_component_id: z48.string().optional(),
839
+ subcircuit_id: z48.string().optional()
830
840
  }).describe(
831
841
  "Error emitted when an unexpected error occurs while finding a part"
832
842
  );
833
843
  expectTypesMatch(true);
834
844
 
835
845
  // src/schematic/schematic_box.ts
836
- import { z as z48 } from "zod";
837
- var schematic_box = z48.object({
838
- type: z48.literal("schematic_box"),
839
- schematic_component_id: z48.string().optional(),
846
+ import { z as z49 } from "zod";
847
+ var schematic_box = z49.object({
848
+ type: z49.literal("schematic_box"),
849
+ schematic_component_id: z49.string().optional(),
840
850
  width: distance,
841
851
  height: distance,
842
- is_dashed: z48.boolean().default(false),
852
+ is_dashed: z49.boolean().default(false),
843
853
  x: distance,
844
854
  y: distance,
845
- subcircuit_id: z48.string().optional()
855
+ subcircuit_id: z49.string().optional()
846
856
  }).describe("Draws a box on the schematic");
847
857
  expectTypesMatch(true);
848
858
 
849
859
  // src/schematic/schematic_path.ts
850
- import { z as z49 } from "zod";
851
- var schematic_path = z49.object({
852
- type: z49.literal("schematic_path"),
853
- schematic_component_id: z49.string(),
854
- fill_color: z49.enum(["red", "blue"]).optional(),
855
- is_filled: z49.boolean().optional(),
856
- points: z49.array(point),
857
- subcircuit_id: z49.string().optional()
860
+ import { z as z50 } from "zod";
861
+ var schematic_path = z50.object({
862
+ type: z50.literal("schematic_path"),
863
+ schematic_component_id: z50.string(),
864
+ fill_color: z50.enum(["red", "blue"]).optional(),
865
+ is_filled: z50.boolean().optional(),
866
+ points: z50.array(point),
867
+ subcircuit_id: z50.string().optional()
858
868
  });
859
869
  expectTypesMatch(true);
860
870
 
861
871
  // src/schematic/schematic_component.ts
862
- import { z as z50 } from "zod";
863
- var schematic_pin_styles = z50.record(
864
- z50.object({
872
+ import { z as z51 } from "zod";
873
+ var schematic_pin_styles = z51.record(
874
+ z51.object({
865
875
  left_margin: length.optional(),
866
876
  right_margin: length.optional(),
867
877
  top_margin: length.optional(),
868
878
  bottom_margin: length.optional()
869
879
  })
870
880
  );
871
- var schematic_component_port_arrangement_by_size = z50.object({
872
- left_size: z50.number(),
873
- right_size: z50.number(),
874
- top_size: z50.number().optional(),
875
- bottom_size: z50.number().optional()
881
+ var schematic_component_port_arrangement_by_size = z51.object({
882
+ left_size: z51.number(),
883
+ right_size: z51.number(),
884
+ top_size: z51.number().optional(),
885
+ bottom_size: z51.number().optional()
876
886
  });
877
887
  expectTypesMatch(true);
878
- var schematic_component_port_arrangement_by_sides = z50.object({
879
- left_side: z50.object({
880
- pins: z50.array(z50.number()),
888
+ var schematic_component_port_arrangement_by_sides = z51.object({
889
+ left_side: z51.object({
890
+ pins: z51.array(z51.number()),
881
891
  // @ts-ignore
882
- direction: z50.enum(["top-to-bottom", "bottom-to-top"]).optional()
892
+ direction: z51.enum(["top-to-bottom", "bottom-to-top"]).optional()
883
893
  }).optional(),
884
- right_side: z50.object({
885
- pins: z50.array(z50.number()),
894
+ right_side: z51.object({
895
+ pins: z51.array(z51.number()),
886
896
  // @ts-ignore
887
- direction: z50.enum(["top-to-bottom", "bottom-to-top"]).optional()
897
+ direction: z51.enum(["top-to-bottom", "bottom-to-top"]).optional()
888
898
  }).optional(),
889
- top_side: z50.object({
890
- pins: z50.array(z50.number()),
899
+ top_side: z51.object({
900
+ pins: z51.array(z51.number()),
891
901
  // @ts-ignore
892
- direction: z50.enum(["left-to-right", "right-to-left"]).optional()
902
+ direction: z51.enum(["left-to-right", "right-to-left"]).optional()
893
903
  }).optional(),
894
- bottom_side: z50.object({
895
- pins: z50.array(z50.number()),
904
+ bottom_side: z51.object({
905
+ pins: z51.array(z51.number()),
896
906
  // @ts-ignore
897
- direction: z50.enum(["left-to-right", "right-to-left"]).optional()
907
+ direction: z51.enum(["left-to-right", "right-to-left"]).optional()
898
908
  }).optional()
899
909
  });
900
910
  expectTypesMatch(true);
901
- var port_arrangement = z50.union([
911
+ var port_arrangement = z51.union([
902
912
  schematic_component_port_arrangement_by_size,
903
913
  schematic_component_port_arrangement_by_sides
904
914
  ]);
905
- var schematic_component = z50.object({
906
- type: z50.literal("schematic_component"),
915
+ var schematic_component = z51.object({
916
+ type: z51.literal("schematic_component"),
907
917
  size,
908
918
  center: point,
909
- source_component_id: z50.string().optional(),
910
- schematic_component_id: z50.string(),
919
+ source_component_id: z51.string().optional(),
920
+ schematic_component_id: z51.string(),
911
921
  pin_spacing: length.optional(),
912
922
  pin_styles: schematic_pin_styles.optional(),
913
923
  box_width: length.optional(),
914
- symbol_name: z50.string().optional(),
924
+ symbol_name: z51.string().optional(),
915
925
  port_arrangement: port_arrangement.optional(),
916
- port_labels: z50.record(z50.string()).optional(),
917
- symbol_display_value: z50.string().optional(),
918
- subcircuit_id: z50.string().optional(),
919
- schematic_group_id: z50.string().optional(),
920
- is_schematic_group: z50.boolean().optional(),
921
- source_group_id: z50.string().optional(),
922
- is_box_with_pins: z50.boolean().optional().default(true)
926
+ port_labels: z51.record(z51.string()).optional(),
927
+ symbol_display_value: z51.string().optional(),
928
+ subcircuit_id: z51.string().optional(),
929
+ schematic_group_id: z51.string().optional(),
930
+ is_schematic_group: z51.boolean().optional(),
931
+ source_group_id: z51.string().optional(),
932
+ is_box_with_pins: z51.boolean().optional().default(true)
923
933
  });
924
934
  expectTypesMatch(true);
925
935
 
926
936
  // src/schematic/schematic_line.ts
927
- import { z as z51 } from "zod";
928
- var schematic_line = z51.object({
929
- type: z51.literal("schematic_line"),
937
+ import { z as z52 } from "zod";
938
+ var schematic_line = z52.object({
939
+ type: z52.literal("schematic_line"),
930
940
  schematic_line_id: getZodPrefixedIdWithDefault("schematic_line"),
931
- schematic_component_id: z51.string(),
941
+ schematic_component_id: z52.string(),
932
942
  x1: distance,
933
943
  y1: distance,
934
944
  x2: distance,
935
945
  y2: distance,
936
946
  stroke_width: distance.nullable().optional(),
937
- color: z51.string().default("#000000"),
938
- is_dashed: z51.boolean().default(false),
939
- subcircuit_id: z51.string().optional()
947
+ color: z52.string().default("#000000"),
948
+ is_dashed: z52.boolean().default(false),
949
+ subcircuit_id: z52.string().optional()
940
950
  }).describe("Draws a styled line on the schematic");
941
951
  expectTypesMatch(true);
942
952
 
943
953
  // src/schematic/schematic_rect.ts
944
- import { z as z52 } from "zod";
945
- var schematic_rect = z52.object({
946
- type: z52.literal("schematic_rect"),
954
+ import { z as z53 } from "zod";
955
+ var schematic_rect = z53.object({
956
+ type: z53.literal("schematic_rect"),
947
957
  schematic_rect_id: getZodPrefixedIdWithDefault("schematic_rect"),
948
- schematic_component_id: z52.string(),
958
+ schematic_component_id: z53.string(),
949
959
  center: point,
950
960
  width: distance,
951
961
  height: distance,
952
962
  rotation: rotation.default(0),
953
963
  stroke_width: distance.nullable().optional(),
954
- color: z52.string().default("#000000"),
955
- is_filled: z52.boolean().default(false),
956
- fill_color: z52.string().optional(),
957
- is_dashed: z52.boolean().default(false),
958
- subcircuit_id: z52.string().optional()
964
+ color: z53.string().default("#000000"),
965
+ is_filled: z53.boolean().default(false),
966
+ fill_color: z53.string().optional(),
967
+ is_dashed: z53.boolean().default(false),
968
+ subcircuit_id: z53.string().optional()
959
969
  }).describe("Draws a styled rectangle on the schematic");
960
970
  expectTypesMatch(true);
961
971
 
962
972
  // src/schematic/schematic_circle.ts
963
- import { z as z53 } from "zod";
964
- var schematic_circle = z53.object({
965
- type: z53.literal("schematic_circle"),
973
+ import { z as z54 } from "zod";
974
+ var schematic_circle = z54.object({
975
+ type: z54.literal("schematic_circle"),
966
976
  schematic_circle_id: getZodPrefixedIdWithDefault("schematic_circle"),
967
- schematic_component_id: z53.string(),
977
+ schematic_component_id: z54.string(),
968
978
  center: point,
969
979
  radius: distance,
970
980
  stroke_width: distance.nullable().optional(),
971
- color: z53.string().default("#000000"),
972
- is_filled: z53.boolean().default(false),
973
- fill_color: z53.string().optional(),
974
- is_dashed: z53.boolean().default(false),
975
- subcircuit_id: z53.string().optional()
981
+ color: z54.string().default("#000000"),
982
+ is_filled: z54.boolean().default(false),
983
+ fill_color: z54.string().optional(),
984
+ is_dashed: z54.boolean().default(false),
985
+ subcircuit_id: z54.string().optional()
976
986
  }).describe("Draws a styled circle on the schematic");
977
987
  expectTypesMatch(true);
978
988
 
979
989
  // src/schematic/schematic_arc.ts
980
- import { z as z54 } from "zod";
981
- var schematic_arc = z54.object({
982
- type: z54.literal("schematic_arc"),
990
+ import { z as z55 } from "zod";
991
+ var schematic_arc = z55.object({
992
+ type: z55.literal("schematic_arc"),
983
993
  schematic_arc_id: getZodPrefixedIdWithDefault("schematic_arc"),
984
- schematic_component_id: z54.string(),
994
+ schematic_component_id: z55.string(),
985
995
  center: point,
986
996
  radius: distance,
987
997
  start_angle_degrees: rotation,
988
998
  end_angle_degrees: rotation,
989
- direction: z54.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
999
+ direction: z55.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
990
1000
  stroke_width: distance.nullable().optional(),
991
- color: z54.string().default("#000000"),
992
- is_dashed: z54.boolean().default(false),
993
- subcircuit_id: z54.string().optional()
1001
+ color: z55.string().default("#000000"),
1002
+ is_dashed: z55.boolean().default(false),
1003
+ subcircuit_id: z55.string().optional()
994
1004
  }).describe("Draws a styled arc on the schematic");
995
1005
  expectTypesMatch(true);
996
1006
 
997
1007
  // src/schematic/schematic_trace.ts
998
- import { z as z55 } from "zod";
999
- var schematic_trace = z55.object({
1000
- type: z55.literal("schematic_trace"),
1001
- schematic_trace_id: z55.string(),
1002
- source_trace_id: z55.string().optional(),
1003
- junctions: z55.array(
1004
- z55.object({
1005
- x: z55.number(),
1006
- y: z55.number()
1008
+ import { z as z56 } from "zod";
1009
+ var schematic_trace = z56.object({
1010
+ type: z56.literal("schematic_trace"),
1011
+ schematic_trace_id: z56.string(),
1012
+ source_trace_id: z56.string().optional(),
1013
+ junctions: z56.array(
1014
+ z56.object({
1015
+ x: z56.number(),
1016
+ y: z56.number()
1007
1017
  })
1008
1018
  ),
1009
- edges: z55.array(
1010
- z55.object({
1011
- from: z55.object({
1012
- x: z55.number(),
1013
- y: z55.number()
1019
+ edges: z56.array(
1020
+ z56.object({
1021
+ from: z56.object({
1022
+ x: z56.number(),
1023
+ y: z56.number()
1014
1024
  }),
1015
- to: z55.object({
1016
- x: z55.number(),
1017
- y: z55.number()
1025
+ to: z56.object({
1026
+ x: z56.number(),
1027
+ y: z56.number()
1018
1028
  }),
1019
- is_crossing: z55.boolean().optional(),
1020
- from_schematic_port_id: z55.string().optional(),
1021
- to_schematic_port_id: z55.string().optional()
1029
+ is_crossing: z56.boolean().optional(),
1030
+ from_schematic_port_id: z56.string().optional(),
1031
+ to_schematic_port_id: z56.string().optional()
1022
1032
  })
1023
1033
  ),
1024
- subcircuit_id: z55.string().optional(),
1034
+ subcircuit_id: z56.string().optional(),
1025
1035
  // TODO: make required in a future release
1026
- subcircuit_connectivity_map_key: z55.string().optional()
1036
+ subcircuit_connectivity_map_key: z56.string().optional()
1027
1037
  });
1028
1038
  expectTypesMatch(true);
1029
1039
 
1030
1040
  // src/schematic/schematic_text.ts
1031
- import { z as z57 } from "zod";
1041
+ import { z as z58 } from "zod";
1032
1042
 
1033
1043
  // src/common/FivePointAnchor.ts
1034
- import { z as z56 } from "zod";
1035
- var fivePointAnchor = z56.enum([
1044
+ import { z as z57 } from "zod";
1045
+ var fivePointAnchor = z57.enum([
1036
1046
  "center",
1037
1047
  "left",
1038
1048
  "right",
@@ -1042,111 +1052,111 @@ var fivePointAnchor = z56.enum([
1042
1052
  expectTypesMatch(true);
1043
1053
 
1044
1054
  // src/schematic/schematic_text.ts
1045
- var schematic_text = z57.object({
1046
- type: z57.literal("schematic_text"),
1047
- schematic_component_id: z57.string().optional(),
1048
- schematic_text_id: z57.string(),
1049
- text: z57.string(),
1050
- font_size: z57.number().default(0.18),
1051
- position: z57.object({
1055
+ var schematic_text = z58.object({
1056
+ type: z58.literal("schematic_text"),
1057
+ schematic_component_id: z58.string().optional(),
1058
+ schematic_text_id: z58.string(),
1059
+ text: z58.string(),
1060
+ font_size: z58.number().default(0.18),
1061
+ position: z58.object({
1052
1062
  x: distance,
1053
1063
  y: distance
1054
1064
  }),
1055
- rotation: z57.number().default(0),
1056
- anchor: z57.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
1057
- color: z57.string().default("#000000"),
1058
- subcircuit_id: z57.string().optional()
1065
+ rotation: z58.number().default(0),
1066
+ anchor: z58.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
1067
+ color: z58.string().default("#000000"),
1068
+ subcircuit_id: z58.string().optional()
1059
1069
  });
1060
1070
  expectTypesMatch(true);
1061
1071
 
1062
1072
  // src/schematic/schematic_port.ts
1063
- import { z as z58 } from "zod";
1064
- var schematic_port = z58.object({
1065
- type: z58.literal("schematic_port"),
1066
- schematic_port_id: z58.string(),
1067
- source_port_id: z58.string(),
1068
- schematic_component_id: z58.string().optional(),
1073
+ import { z as z59 } from "zod";
1074
+ var schematic_port = z59.object({
1075
+ type: z59.literal("schematic_port"),
1076
+ schematic_port_id: z59.string(),
1077
+ source_port_id: z59.string(),
1078
+ schematic_component_id: z59.string().optional(),
1069
1079
  center: point,
1070
- facing_direction: z58.enum(["up", "down", "left", "right"]).optional(),
1071
- distance_from_component_edge: z58.number().optional(),
1072
- side_of_component: z58.enum(["top", "bottom", "left", "right"]).optional(),
1073
- true_ccw_index: z58.number().optional(),
1074
- pin_number: z58.number().optional(),
1075
- display_pin_label: z58.string().optional(),
1076
- subcircuit_id: z58.string().optional(),
1077
- is_connected: z58.boolean().optional(),
1078
- has_input_arrow: z58.boolean().optional(),
1079
- has_output_arrow: z58.boolean().optional()
1080
+ facing_direction: z59.enum(["up", "down", "left", "right"]).optional(),
1081
+ distance_from_component_edge: z59.number().optional(),
1082
+ side_of_component: z59.enum(["top", "bottom", "left", "right"]).optional(),
1083
+ true_ccw_index: z59.number().optional(),
1084
+ pin_number: z59.number().optional(),
1085
+ display_pin_label: z59.string().optional(),
1086
+ subcircuit_id: z59.string().optional(),
1087
+ is_connected: z59.boolean().optional(),
1088
+ has_input_arrow: z59.boolean().optional(),
1089
+ has_output_arrow: z59.boolean().optional()
1080
1090
  }).describe("Defines a port on a schematic component");
1081
1091
  expectTypesMatch(true);
1082
1092
 
1083
1093
  // src/schematic/schematic_net_label.ts
1084
- import { z as z59 } from "zod";
1085
- var schematic_net_label = z59.object({
1086
- type: z59.literal("schematic_net_label"),
1094
+ import { z as z60 } from "zod";
1095
+ var schematic_net_label = z60.object({
1096
+ type: z60.literal("schematic_net_label"),
1087
1097
  schematic_net_label_id: getZodPrefixedIdWithDefault("schematic_net_label"),
1088
- schematic_trace_id: z59.string().optional(),
1089
- source_trace_id: z59.string().optional(),
1090
- source_net_id: z59.string(),
1098
+ schematic_trace_id: z60.string().optional(),
1099
+ source_trace_id: z60.string().optional(),
1100
+ source_net_id: z60.string(),
1091
1101
  center: point,
1092
1102
  anchor_position: point.optional(),
1093
- anchor_side: z59.enum(["top", "bottom", "left", "right"]),
1094
- text: z59.string(),
1095
- symbol_name: z59.string().optional(),
1096
- is_movable: z59.boolean().optional(),
1097
- subcircuit_id: z59.string().optional()
1103
+ anchor_side: z60.enum(["top", "bottom", "left", "right"]),
1104
+ text: z60.string(),
1105
+ symbol_name: z60.string().optional(),
1106
+ is_movable: z60.boolean().optional(),
1107
+ subcircuit_id: z60.string().optional()
1098
1108
  });
1099
1109
  expectTypesMatch(true);
1100
1110
 
1101
1111
  // src/schematic/schematic_error.ts
1102
- import { z as z60 } from "zod";
1103
- var schematic_error = z60.object({
1104
- type: z60.literal("schematic_error"),
1105
- schematic_error_id: z60.string(),
1112
+ import { z as z61 } from "zod";
1113
+ var schematic_error = z61.object({
1114
+ type: z61.literal("schematic_error"),
1115
+ schematic_error_id: z61.string(),
1106
1116
  // eventually each error type should be broken out into a dir of files
1107
- error_type: z60.literal("schematic_port_not_found").default("schematic_port_not_found"),
1108
- message: z60.string(),
1109
- subcircuit_id: z60.string().optional()
1117
+ error_type: z61.literal("schematic_port_not_found").default("schematic_port_not_found"),
1118
+ message: z61.string(),
1119
+ subcircuit_id: z61.string().optional()
1110
1120
  }).describe("Defines a schematic error on the schematic");
1111
1121
  expectTypesMatch(true);
1112
1122
 
1113
1123
  // src/schematic/schematic_layout_error.ts
1114
- import { z as z61 } from "zod";
1115
- var schematic_layout_error = z61.object({
1116
- type: z61.literal("schematic_layout_error"),
1124
+ import { z as z62 } from "zod";
1125
+ var schematic_layout_error = z62.object({
1126
+ type: z62.literal("schematic_layout_error"),
1117
1127
  schematic_layout_error_id: getZodPrefixedIdWithDefault(
1118
1128
  "schematic_layout_error"
1119
1129
  ),
1120
- error_type: z61.literal("schematic_layout_error").default("schematic_layout_error"),
1121
- message: z61.string(),
1122
- source_group_id: z61.string(),
1123
- schematic_group_id: z61.string(),
1124
- subcircuit_id: z61.string().optional()
1130
+ error_type: z62.literal("schematic_layout_error").default("schematic_layout_error"),
1131
+ message: z62.string(),
1132
+ source_group_id: z62.string(),
1133
+ schematic_group_id: z62.string(),
1134
+ subcircuit_id: z62.string().optional()
1125
1135
  }).describe("Error emitted when schematic layout fails for a group");
1126
1136
  expectTypesMatch(true);
1127
1137
 
1128
1138
  // src/schematic/schematic_debug_object.ts
1129
- import { z as z62 } from "zod";
1130
- var schematic_debug_object_base = z62.object({
1131
- type: z62.literal("schematic_debug_object"),
1132
- label: z62.string().optional(),
1133
- subcircuit_id: z62.string().optional()
1139
+ import { z as z63 } from "zod";
1140
+ var schematic_debug_object_base = z63.object({
1141
+ type: z63.literal("schematic_debug_object"),
1142
+ label: z63.string().optional(),
1143
+ subcircuit_id: z63.string().optional()
1134
1144
  });
1135
1145
  var schematic_debug_rect = schematic_debug_object_base.extend({
1136
- shape: z62.literal("rect"),
1146
+ shape: z63.literal("rect"),
1137
1147
  center: point,
1138
1148
  size
1139
1149
  });
1140
1150
  var schematic_debug_line = schematic_debug_object_base.extend({
1141
- shape: z62.literal("line"),
1151
+ shape: z63.literal("line"),
1142
1152
  start: point,
1143
1153
  end: point
1144
1154
  });
1145
1155
  var schematic_debug_point = schematic_debug_object_base.extend({
1146
- shape: z62.literal("point"),
1156
+ shape: z63.literal("point"),
1147
1157
  center: point
1148
1158
  });
1149
- var schematic_debug_object = z62.discriminatedUnion("shape", [
1159
+ var schematic_debug_object = z63.discriminatedUnion("shape", [
1150
1160
  schematic_debug_rect,
1151
1161
  schematic_debug_line,
1152
1162
  schematic_debug_point
@@ -1154,268 +1164,268 @@ var schematic_debug_object = z62.discriminatedUnion("shape", [
1154
1164
  expectTypesMatch(true);
1155
1165
 
1156
1166
  // src/schematic/schematic_voltage_probe.ts
1157
- import { z as z63 } from "zod";
1158
- var schematic_voltage_probe = z63.object({
1159
- type: z63.literal("schematic_voltage_probe"),
1160
- schematic_voltage_probe_id: z63.string(),
1161
- source_component_id: z63.string().optional(),
1162
- name: z63.string().optional(),
1167
+ import { z as z64 } from "zod";
1168
+ var schematic_voltage_probe = z64.object({
1169
+ type: z64.literal("schematic_voltage_probe"),
1170
+ schematic_voltage_probe_id: z64.string(),
1171
+ source_component_id: z64.string().optional(),
1172
+ name: z64.string().optional(),
1163
1173
  position: point,
1164
- schematic_trace_id: z63.string(),
1174
+ schematic_trace_id: z64.string(),
1165
1175
  voltage: voltage.optional(),
1166
- subcircuit_id: z63.string().optional(),
1167
- color: z63.string().optional()
1176
+ subcircuit_id: z64.string().optional(),
1177
+ color: z64.string().optional()
1168
1178
  }).describe("Defines a voltage probe measurement point on a schematic trace");
1169
1179
  expectTypesMatch(true);
1170
1180
 
1171
1181
  // src/schematic/schematic_manual_edit_conflict_warning.ts
1172
- import { z as z64 } from "zod";
1173
- var schematic_manual_edit_conflict_warning = z64.object({
1174
- type: z64.literal("schematic_manual_edit_conflict_warning"),
1182
+ import { z as z65 } from "zod";
1183
+ var schematic_manual_edit_conflict_warning = z65.object({
1184
+ type: z65.literal("schematic_manual_edit_conflict_warning"),
1175
1185
  schematic_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
1176
1186
  "schematic_manual_edit_conflict_warning"
1177
1187
  ),
1178
- warning_type: z64.literal("schematic_manual_edit_conflict_warning").default("schematic_manual_edit_conflict_warning"),
1179
- message: z64.string(),
1180
- schematic_component_id: z64.string(),
1181
- schematic_group_id: z64.string().optional(),
1182
- subcircuit_id: z64.string().optional(),
1183
- source_component_id: z64.string()
1188
+ warning_type: z65.literal("schematic_manual_edit_conflict_warning").default("schematic_manual_edit_conflict_warning"),
1189
+ message: z65.string(),
1190
+ schematic_component_id: z65.string(),
1191
+ schematic_group_id: z65.string().optional(),
1192
+ subcircuit_id: z65.string().optional(),
1193
+ source_component_id: z65.string()
1184
1194
  }).describe(
1185
1195
  "Warning emitted when a component has both manual placement and explicit schX/schY coordinates"
1186
1196
  );
1187
1197
  expectTypesMatch(true);
1188
1198
 
1189
1199
  // src/schematic/schematic_group.ts
1190
- import { z as z65 } from "zod";
1191
- var schematic_group = z65.object({
1192
- type: z65.literal("schematic_group"),
1200
+ import { z as z66 } from "zod";
1201
+ var schematic_group = z66.object({
1202
+ type: z66.literal("schematic_group"),
1193
1203
  schematic_group_id: getZodPrefixedIdWithDefault("schematic_group"),
1194
- source_group_id: z65.string(),
1195
- is_subcircuit: z65.boolean().optional(),
1196
- subcircuit_id: z65.string().optional(),
1204
+ source_group_id: z66.string(),
1205
+ is_subcircuit: z66.boolean().optional(),
1206
+ subcircuit_id: z66.string().optional(),
1197
1207
  width: length,
1198
1208
  height: length,
1199
1209
  center: point,
1200
- schematic_component_ids: z65.array(z65.string()),
1201
- show_as_schematic_box: z65.boolean().optional(),
1202
- name: z65.string().optional(),
1203
- description: z65.string().optional()
1210
+ schematic_component_ids: z66.array(z66.string()),
1211
+ show_as_schematic_box: z66.boolean().optional(),
1212
+ name: z66.string().optional(),
1213
+ description: z66.string().optional()
1204
1214
  }).describe("Defines a group of components on the schematic");
1205
1215
  expectTypesMatch(true);
1206
1216
 
1207
1217
  // src/schematic/schematic_table.ts
1208
- import { z as z66 } from "zod";
1209
- var schematic_table = z66.object({
1210
- type: z66.literal("schematic_table"),
1218
+ import { z as z67 } from "zod";
1219
+ var schematic_table = z67.object({
1220
+ type: z67.literal("schematic_table"),
1211
1221
  schematic_table_id: getZodPrefixedIdWithDefault("schematic_table"),
1212
1222
  anchor_position: point,
1213
- column_widths: z66.array(distance),
1214
- row_heights: z66.array(distance),
1223
+ column_widths: z67.array(distance),
1224
+ row_heights: z67.array(distance),
1215
1225
  cell_padding: distance.optional(),
1216
1226
  border_width: distance.optional(),
1217
- subcircuit_id: z66.string().optional(),
1218
- schematic_component_id: z66.string().optional(),
1227
+ subcircuit_id: z67.string().optional(),
1228
+ schematic_component_id: z67.string().optional(),
1219
1229
  anchor: ninePointAnchor.optional()
1220
1230
  }).describe("Defines a table on the schematic");
1221
1231
  expectTypesMatch(true);
1222
1232
 
1223
1233
  // src/schematic/schematic_table_cell.ts
1224
- import { z as z67 } from "zod";
1225
- var schematic_table_cell = z67.object({
1226
- type: z67.literal("schematic_table_cell"),
1234
+ import { z as z68 } from "zod";
1235
+ var schematic_table_cell = z68.object({
1236
+ type: z68.literal("schematic_table_cell"),
1227
1237
  schematic_table_cell_id: getZodPrefixedIdWithDefault(
1228
1238
  "schematic_table_cell"
1229
1239
  ),
1230
- schematic_table_id: z67.string(),
1231
- start_row_index: z67.number(),
1232
- end_row_index: z67.number(),
1233
- start_column_index: z67.number(),
1234
- end_column_index: z67.number(),
1235
- text: z67.string().optional(),
1240
+ schematic_table_id: z68.string(),
1241
+ start_row_index: z68.number(),
1242
+ end_row_index: z68.number(),
1243
+ start_column_index: z68.number(),
1244
+ end_column_index: z68.number(),
1245
+ text: z68.string().optional(),
1236
1246
  center: point,
1237
1247
  width: distance,
1238
1248
  height: distance,
1239
- horizontal_align: z67.enum(["left", "center", "right"]).optional(),
1240
- vertical_align: z67.enum(["top", "middle", "bottom"]).optional(),
1249
+ horizontal_align: z68.enum(["left", "center", "right"]).optional(),
1250
+ vertical_align: z68.enum(["top", "middle", "bottom"]).optional(),
1241
1251
  font_size: distance.optional(),
1242
- subcircuit_id: z67.string().optional()
1252
+ subcircuit_id: z68.string().optional()
1243
1253
  }).describe("Defines a cell within a schematic_table");
1244
1254
  expectTypesMatch(true);
1245
1255
 
1246
1256
  // src/schematic/schematic_sheet.ts
1247
- import { z as z68 } from "zod";
1248
- var schematic_sheet = z68.object({
1249
- type: z68.literal("schematic_sheet"),
1257
+ import { z as z69 } from "zod";
1258
+ var schematic_sheet = z69.object({
1259
+ type: z69.literal("schematic_sheet"),
1250
1260
  schematic_sheet_id: getZodPrefixedIdWithDefault("schematic_sheet"),
1251
- name: z68.string().optional(),
1252
- subcircuit_id: z68.string().optional()
1261
+ name: z69.string().optional(),
1262
+ subcircuit_id: z69.string().optional()
1253
1263
  }).describe(
1254
1264
  "Defines a schematic sheet or page that components can be placed on"
1255
1265
  );
1256
1266
  expectTypesMatch(true);
1257
1267
 
1258
1268
  // src/pcb/properties/brep.ts
1259
- import { z as z69 } from "zod";
1260
- var point_with_bulge = z69.object({
1269
+ import { z as z70 } from "zod";
1270
+ var point_with_bulge = z70.object({
1261
1271
  x: distance,
1262
1272
  y: distance,
1263
- bulge: z69.number().optional()
1273
+ bulge: z70.number().optional()
1264
1274
  });
1265
1275
  expectTypesMatch(true);
1266
- var ring = z69.object({
1267
- vertices: z69.array(point_with_bulge)
1276
+ var ring = z70.object({
1277
+ vertices: z70.array(point_with_bulge)
1268
1278
  });
1269
1279
  expectTypesMatch(true);
1270
- var brep_shape = z69.object({
1280
+ var brep_shape = z70.object({
1271
1281
  outer_ring: ring,
1272
- inner_rings: z69.array(ring).default([])
1282
+ inner_rings: z70.array(ring).default([])
1273
1283
  });
1274
1284
  expectTypesMatch(true);
1275
1285
 
1276
1286
  // src/pcb/properties/pcb_route_hints.ts
1277
- import { z as z70 } from "zod";
1278
- var pcb_route_hint = z70.object({
1287
+ import { z as z71 } from "zod";
1288
+ var pcb_route_hint = z71.object({
1279
1289
  x: distance,
1280
1290
  y: distance,
1281
- via: z70.boolean().optional(),
1291
+ via: z71.boolean().optional(),
1282
1292
  via_to_layer: layer_ref.optional()
1283
1293
  });
1284
- var pcb_route_hints = z70.array(pcb_route_hint);
1294
+ var pcb_route_hints = z71.array(pcb_route_hint);
1285
1295
  expectTypesMatch(true);
1286
1296
  expectTypesMatch(true);
1287
1297
 
1288
1298
  // src/pcb/properties/route_hint_point.ts
1289
- import { z as z71 } from "zod";
1290
- var route_hint_point = z71.object({
1299
+ import { z as z72 } from "zod";
1300
+ var route_hint_point = z72.object({
1291
1301
  x: distance,
1292
1302
  y: distance,
1293
- via: z71.boolean().optional(),
1303
+ via: z72.boolean().optional(),
1294
1304
  to_layer: layer_ref.optional(),
1295
1305
  trace_width: distance.optional()
1296
1306
  });
1297
1307
  expectTypesMatch(true);
1298
1308
 
1299
1309
  // src/pcb/pcb_component.ts
1300
- import { z as z72 } from "zod";
1301
- var pcb_component = z72.object({
1302
- type: z72.literal("pcb_component"),
1310
+ import { z as z73 } from "zod";
1311
+ var pcb_component = z73.object({
1312
+ type: z73.literal("pcb_component"),
1303
1313
  pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
1304
- source_component_id: z72.string(),
1314
+ source_component_id: z73.string(),
1305
1315
  center: point,
1306
1316
  layer: layer_ref,
1307
1317
  rotation,
1308
1318
  width: length,
1309
1319
  height: length,
1310
- do_not_place: z72.boolean().optional(),
1311
- subcircuit_id: z72.string().optional(),
1312
- pcb_group_id: z72.string().optional(),
1313
- position_mode: z72.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
1314
- positioned_relative_to_pcb_group_id: z72.string().optional(),
1315
- obstructs_within_bounds: z72.boolean().default(true).describe(
1320
+ do_not_place: z73.boolean().optional(),
1321
+ subcircuit_id: z73.string().optional(),
1322
+ pcb_group_id: z73.string().optional(),
1323
+ position_mode: z73.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
1324
+ positioned_relative_to_pcb_group_id: z73.string().optional(),
1325
+ obstructs_within_bounds: z73.boolean().default(true).describe(
1316
1326
  "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"
1317
1327
  )
1318
1328
  }).describe("Defines a component on the PCB");
1319
1329
  expectTypesMatch(true);
1320
1330
 
1321
1331
  // src/pcb/pcb_hole.ts
1322
- import { z as z73 } from "zod";
1323
- var pcb_hole_circle = z73.object({
1324
- type: z73.literal("pcb_hole"),
1332
+ import { z as z74 } from "zod";
1333
+ var pcb_hole_circle = z74.object({
1334
+ type: z74.literal("pcb_hole"),
1325
1335
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
1326
- pcb_group_id: z73.string().optional(),
1327
- subcircuit_id: z73.string().optional(),
1328
- hole_shape: z73.literal("circle"),
1329
- hole_diameter: z73.number(),
1336
+ pcb_group_id: z74.string().optional(),
1337
+ subcircuit_id: z74.string().optional(),
1338
+ hole_shape: z74.literal("circle"),
1339
+ hole_diameter: z74.number(),
1330
1340
  x: distance,
1331
1341
  y: distance,
1332
- is_covered_with_solder_mask: z73.boolean().optional(),
1333
- soldermask_margin: z73.number().optional()
1342
+ is_covered_with_solder_mask: z74.boolean().optional(),
1343
+ soldermask_margin: z74.number().optional()
1334
1344
  });
1335
1345
  var pcb_hole_circle_shape = pcb_hole_circle.describe(
1336
1346
  "Defines a circular hole on the PCB"
1337
1347
  );
1338
1348
  expectTypesMatch(true);
1339
- var pcb_hole_rect = z73.object({
1340
- type: z73.literal("pcb_hole"),
1349
+ var pcb_hole_rect = z74.object({
1350
+ type: z74.literal("pcb_hole"),
1341
1351
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
1342
- pcb_group_id: z73.string().optional(),
1343
- subcircuit_id: z73.string().optional(),
1344
- hole_shape: z73.literal("rect"),
1345
- hole_width: z73.number(),
1346
- hole_height: z73.number(),
1352
+ pcb_group_id: z74.string().optional(),
1353
+ subcircuit_id: z74.string().optional(),
1354
+ hole_shape: z74.literal("rect"),
1355
+ hole_width: z74.number(),
1356
+ hole_height: z74.number(),
1347
1357
  x: distance,
1348
1358
  y: distance,
1349
- is_covered_with_solder_mask: z73.boolean().optional(),
1350
- soldermask_margin: z73.number().optional()
1359
+ is_covered_with_solder_mask: z74.boolean().optional(),
1360
+ soldermask_margin: z74.number().optional()
1351
1361
  });
1352
1362
  var pcb_hole_rect_shape = pcb_hole_rect.describe(
1353
1363
  "Defines a rectangular (square-capable) hole on the PCB. Use equal width/height for square."
1354
1364
  );
1355
1365
  expectTypesMatch(true);
1356
- var pcb_hole_circle_or_square = z73.object({
1357
- type: z73.literal("pcb_hole"),
1366
+ var pcb_hole_circle_or_square = z74.object({
1367
+ type: z74.literal("pcb_hole"),
1358
1368
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
1359
- pcb_group_id: z73.string().optional(),
1360
- subcircuit_id: z73.string().optional(),
1361
- hole_shape: z73.enum(["circle", "square"]),
1362
- hole_diameter: z73.number(),
1369
+ pcb_group_id: z74.string().optional(),
1370
+ subcircuit_id: z74.string().optional(),
1371
+ hole_shape: z74.enum(["circle", "square"]),
1372
+ hole_diameter: z74.number(),
1363
1373
  x: distance,
1364
1374
  y: distance,
1365
- is_covered_with_solder_mask: z73.boolean().optional(),
1366
- soldermask_margin: z73.number().optional()
1375
+ is_covered_with_solder_mask: z74.boolean().optional(),
1376
+ soldermask_margin: z74.number().optional()
1367
1377
  });
1368
1378
  var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
1369
1379
  "Defines a circular or square hole on the PCB"
1370
1380
  );
1371
1381
  expectTypesMatch(true);
1372
- var pcb_hole_oval = z73.object({
1373
- type: z73.literal("pcb_hole"),
1382
+ var pcb_hole_oval = z74.object({
1383
+ type: z74.literal("pcb_hole"),
1374
1384
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
1375
- pcb_group_id: z73.string().optional(),
1376
- subcircuit_id: z73.string().optional(),
1377
- hole_shape: z73.literal("oval"),
1378
- hole_width: z73.number(),
1379
- hole_height: z73.number(),
1385
+ pcb_group_id: z74.string().optional(),
1386
+ subcircuit_id: z74.string().optional(),
1387
+ hole_shape: z74.literal("oval"),
1388
+ hole_width: z74.number(),
1389
+ hole_height: z74.number(),
1380
1390
  x: distance,
1381
1391
  y: distance,
1382
- is_covered_with_solder_mask: z73.boolean().optional(),
1383
- soldermask_margin: z73.number().optional()
1392
+ is_covered_with_solder_mask: z74.boolean().optional(),
1393
+ soldermask_margin: z74.number().optional()
1384
1394
  });
1385
1395
  var pcb_hole_oval_shape = pcb_hole_oval.describe(
1386
1396
  "Defines an oval hole on the PCB"
1387
1397
  );
1388
1398
  expectTypesMatch(true);
1389
- var pcb_hole_pill = z73.object({
1390
- type: z73.literal("pcb_hole"),
1399
+ var pcb_hole_pill = z74.object({
1400
+ type: z74.literal("pcb_hole"),
1391
1401
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
1392
- pcb_group_id: z73.string().optional(),
1393
- subcircuit_id: z73.string().optional(),
1394
- hole_shape: z73.literal("pill"),
1395
- hole_width: z73.number(),
1396
- hole_height: z73.number(),
1402
+ pcb_group_id: z74.string().optional(),
1403
+ subcircuit_id: z74.string().optional(),
1404
+ hole_shape: z74.literal("pill"),
1405
+ hole_width: z74.number(),
1406
+ hole_height: z74.number(),
1397
1407
  x: distance,
1398
1408
  y: distance,
1399
- is_covered_with_solder_mask: z73.boolean().optional(),
1400
- soldermask_margin: z73.number().optional()
1409
+ is_covered_with_solder_mask: z74.boolean().optional(),
1410
+ soldermask_margin: z74.number().optional()
1401
1411
  });
1402
1412
  var pcb_hole_pill_shape = pcb_hole_pill.describe(
1403
1413
  "Defines a pill-shaped hole on the PCB"
1404
1414
  );
1405
1415
  expectTypesMatch(true);
1406
- var pcb_hole_rotated_pill = z73.object({
1407
- type: z73.literal("pcb_hole"),
1416
+ var pcb_hole_rotated_pill = z74.object({
1417
+ type: z74.literal("pcb_hole"),
1408
1418
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
1409
- pcb_group_id: z73.string().optional(),
1410
- subcircuit_id: z73.string().optional(),
1411
- hole_shape: z73.literal("rotated_pill"),
1412
- hole_width: z73.number(),
1413
- hole_height: z73.number(),
1419
+ pcb_group_id: z74.string().optional(),
1420
+ subcircuit_id: z74.string().optional(),
1421
+ hole_shape: z74.literal("rotated_pill"),
1422
+ hole_width: z74.number(),
1423
+ hole_height: z74.number(),
1414
1424
  x: distance,
1415
1425
  y: distance,
1416
1426
  ccw_rotation: rotation,
1417
- is_covered_with_solder_mask: z73.boolean().optional(),
1418
- soldermask_margin: z73.number().optional()
1427
+ is_covered_with_solder_mask: z74.boolean().optional(),
1428
+ soldermask_margin: z74.number().optional()
1419
1429
  });
1420
1430
  var pcb_hole_rotated_pill_shape = pcb_hole_rotated_pill.describe(
1421
1431
  "Defines a rotated pill-shaped hole on the PCB"
@@ -1424,144 +1434,145 @@ expectTypesMatch(true);
1424
1434
  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);
1425
1435
 
1426
1436
  // src/pcb/pcb_plated_hole.ts
1427
- import { z as z74 } from "zod";
1428
- var pcb_plated_hole_circle = z74.object({
1429
- type: z74.literal("pcb_plated_hole"),
1430
- shape: z74.literal("circle"),
1431
- pcb_group_id: z74.string().optional(),
1432
- subcircuit_id: z74.string().optional(),
1433
- outer_diameter: z74.number(),
1434
- hole_diameter: z74.number(),
1437
+ import { z as z75 } from "zod";
1438
+ var pcb_plated_hole_circle = z75.object({
1439
+ type: z75.literal("pcb_plated_hole"),
1440
+ shape: z75.literal("circle"),
1441
+ pcb_group_id: z75.string().optional(),
1442
+ subcircuit_id: z75.string().optional(),
1443
+ outer_diameter: z75.number(),
1444
+ hole_diameter: z75.number(),
1445
+ is_covered_with_solder_mask: z75.boolean().optional(),
1435
1446
  x: distance,
1436
1447
  y: distance,
1437
- layers: z74.array(layer_ref),
1438
- port_hints: z74.array(z74.string()).optional(),
1439
- pcb_component_id: z74.string().optional(),
1440
- pcb_port_id: z74.string().optional(),
1448
+ layers: z75.array(layer_ref),
1449
+ port_hints: z75.array(z75.string()).optional(),
1450
+ pcb_component_id: z75.string().optional(),
1451
+ pcb_port_id: z75.string().optional(),
1441
1452
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
1442
- soldermask_margin: z74.number().optional()
1453
+ soldermask_margin: z75.number().optional()
1443
1454
  });
1444
- var pcb_plated_hole_oval = z74.object({
1445
- type: z74.literal("pcb_plated_hole"),
1446
- shape: z74.enum(["oval", "pill"]),
1447
- pcb_group_id: z74.string().optional(),
1448
- subcircuit_id: z74.string().optional(),
1449
- outer_width: z74.number(),
1450
- outer_height: z74.number(),
1451
- hole_width: z74.number(),
1452
- hole_height: z74.number(),
1453
- is_covered_with_solder_mask: z74.boolean().optional(),
1455
+ var pcb_plated_hole_oval = z75.object({
1456
+ type: z75.literal("pcb_plated_hole"),
1457
+ shape: z75.enum(["oval", "pill"]),
1458
+ pcb_group_id: z75.string().optional(),
1459
+ subcircuit_id: z75.string().optional(),
1460
+ outer_width: z75.number(),
1461
+ outer_height: z75.number(),
1462
+ hole_width: z75.number(),
1463
+ hole_height: z75.number(),
1464
+ is_covered_with_solder_mask: z75.boolean().optional(),
1454
1465
  x: distance,
1455
1466
  y: distance,
1456
1467
  ccw_rotation: rotation,
1457
- layers: z74.array(layer_ref),
1458
- port_hints: z74.array(z74.string()).optional(),
1459
- pcb_component_id: z74.string().optional(),
1460
- pcb_port_id: z74.string().optional(),
1468
+ layers: z75.array(layer_ref),
1469
+ port_hints: z75.array(z75.string()).optional(),
1470
+ pcb_component_id: z75.string().optional(),
1471
+ pcb_port_id: z75.string().optional(),
1461
1472
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
1462
- soldermask_margin: z74.number().optional()
1473
+ soldermask_margin: z75.number().optional()
1463
1474
  });
1464
- var pcb_circular_hole_with_rect_pad = z74.object({
1465
- type: z74.literal("pcb_plated_hole"),
1466
- shape: z74.literal("circular_hole_with_rect_pad"),
1467
- pcb_group_id: z74.string().optional(),
1468
- subcircuit_id: z74.string().optional(),
1469
- hole_shape: z74.literal("circle"),
1470
- pad_shape: z74.literal("rect"),
1471
- hole_diameter: z74.number(),
1472
- rect_pad_width: z74.number(),
1473
- rect_pad_height: z74.number(),
1474
- rect_border_radius: z74.number().optional(),
1475
+ var pcb_circular_hole_with_rect_pad = z75.object({
1476
+ type: z75.literal("pcb_plated_hole"),
1477
+ shape: z75.literal("circular_hole_with_rect_pad"),
1478
+ pcb_group_id: z75.string().optional(),
1479
+ subcircuit_id: z75.string().optional(),
1480
+ hole_shape: z75.literal("circle"),
1481
+ pad_shape: z75.literal("rect"),
1482
+ hole_diameter: z75.number(),
1483
+ rect_pad_width: z75.number(),
1484
+ rect_pad_height: z75.number(),
1485
+ rect_border_radius: z75.number().optional(),
1475
1486
  hole_offset_x: distance.default(0),
1476
1487
  hole_offset_y: distance.default(0),
1477
- is_covered_with_solder_mask: z74.boolean().optional(),
1488
+ is_covered_with_solder_mask: z75.boolean().optional(),
1478
1489
  x: distance,
1479
1490
  y: distance,
1480
- layers: z74.array(layer_ref),
1481
- port_hints: z74.array(z74.string()).optional(),
1482
- pcb_component_id: z74.string().optional(),
1483
- pcb_port_id: z74.string().optional(),
1491
+ layers: z75.array(layer_ref),
1492
+ port_hints: z75.array(z75.string()).optional(),
1493
+ pcb_component_id: z75.string().optional(),
1494
+ pcb_port_id: z75.string().optional(),
1484
1495
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
1485
- soldermask_margin: z74.number().optional()
1496
+ soldermask_margin: z75.number().optional()
1486
1497
  });
1487
- var pcb_pill_hole_with_rect_pad = z74.object({
1488
- type: z74.literal("pcb_plated_hole"),
1489
- shape: z74.literal("pill_hole_with_rect_pad"),
1490
- pcb_group_id: z74.string().optional(),
1491
- subcircuit_id: z74.string().optional(),
1492
- hole_shape: z74.literal("pill"),
1493
- pad_shape: z74.literal("rect"),
1494
- hole_width: z74.number(),
1495
- hole_height: z74.number(),
1496
- rect_pad_width: z74.number(),
1497
- rect_pad_height: z74.number(),
1498
- rect_border_radius: z74.number().optional(),
1498
+ var pcb_pill_hole_with_rect_pad = z75.object({
1499
+ type: z75.literal("pcb_plated_hole"),
1500
+ shape: z75.literal("pill_hole_with_rect_pad"),
1501
+ pcb_group_id: z75.string().optional(),
1502
+ subcircuit_id: z75.string().optional(),
1503
+ hole_shape: z75.literal("pill"),
1504
+ pad_shape: z75.literal("rect"),
1505
+ hole_width: z75.number(),
1506
+ hole_height: z75.number(),
1507
+ rect_pad_width: z75.number(),
1508
+ rect_pad_height: z75.number(),
1509
+ rect_border_radius: z75.number().optional(),
1499
1510
  hole_offset_x: distance.default(0),
1500
1511
  hole_offset_y: distance.default(0),
1501
- is_covered_with_solder_mask: z74.boolean().optional(),
1512
+ is_covered_with_solder_mask: z75.boolean().optional(),
1502
1513
  x: distance,
1503
1514
  y: distance,
1504
- layers: z74.array(layer_ref),
1505
- port_hints: z74.array(z74.string()).optional(),
1506
- pcb_component_id: z74.string().optional(),
1507
- pcb_port_id: z74.string().optional(),
1515
+ layers: z75.array(layer_ref),
1516
+ port_hints: z75.array(z75.string()).optional(),
1517
+ pcb_component_id: z75.string().optional(),
1518
+ pcb_port_id: z75.string().optional(),
1508
1519
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
1509
- soldermask_margin: z74.number().optional()
1520
+ soldermask_margin: z75.number().optional()
1510
1521
  });
1511
- var pcb_rotated_pill_hole_with_rect_pad = z74.object({
1512
- type: z74.literal("pcb_plated_hole"),
1513
- shape: z74.literal("rotated_pill_hole_with_rect_pad"),
1514
- pcb_group_id: z74.string().optional(),
1515
- subcircuit_id: z74.string().optional(),
1516
- hole_shape: z74.literal("rotated_pill"),
1517
- pad_shape: z74.literal("rect"),
1518
- hole_width: z74.number(),
1519
- hole_height: z74.number(),
1522
+ var pcb_rotated_pill_hole_with_rect_pad = z75.object({
1523
+ type: z75.literal("pcb_plated_hole"),
1524
+ shape: z75.literal("rotated_pill_hole_with_rect_pad"),
1525
+ pcb_group_id: z75.string().optional(),
1526
+ subcircuit_id: z75.string().optional(),
1527
+ hole_shape: z75.literal("rotated_pill"),
1528
+ pad_shape: z75.literal("rect"),
1529
+ hole_width: z75.number(),
1530
+ hole_height: z75.number(),
1520
1531
  hole_ccw_rotation: rotation,
1521
- rect_pad_width: z74.number(),
1522
- rect_pad_height: z74.number(),
1523
- rect_border_radius: z74.number().optional(),
1532
+ rect_pad_width: z75.number(),
1533
+ rect_pad_height: z75.number(),
1534
+ rect_border_radius: z75.number().optional(),
1524
1535
  rect_ccw_rotation: rotation,
1525
1536
  hole_offset_x: distance.default(0),
1526
1537
  hole_offset_y: distance.default(0),
1527
- is_covered_with_solder_mask: z74.boolean().optional(),
1538
+ is_covered_with_solder_mask: z75.boolean().optional(),
1528
1539
  x: distance,
1529
1540
  y: distance,
1530
- layers: z74.array(layer_ref),
1531
- port_hints: z74.array(z74.string()).optional(),
1532
- pcb_component_id: z74.string().optional(),
1533
- pcb_port_id: z74.string().optional(),
1541
+ layers: z75.array(layer_ref),
1542
+ port_hints: z75.array(z75.string()).optional(),
1543
+ pcb_component_id: z75.string().optional(),
1544
+ pcb_port_id: z75.string().optional(),
1534
1545
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
1535
- soldermask_margin: z74.number().optional()
1546
+ soldermask_margin: z75.number().optional()
1536
1547
  });
1537
- var pcb_hole_with_polygon_pad = z74.object({
1538
- type: z74.literal("pcb_plated_hole"),
1539
- shape: z74.literal("hole_with_polygon_pad"),
1540
- pcb_group_id: z74.string().optional(),
1541
- subcircuit_id: z74.string().optional(),
1542
- hole_shape: z74.enum(["circle", "oval", "pill", "rotated_pill"]),
1543
- hole_diameter: z74.number().optional(),
1544
- hole_width: z74.number().optional(),
1545
- hole_height: z74.number().optional(),
1546
- pad_outline: z74.array(
1547
- z74.object({
1548
+ var pcb_hole_with_polygon_pad = z75.object({
1549
+ type: z75.literal("pcb_plated_hole"),
1550
+ shape: z75.literal("hole_with_polygon_pad"),
1551
+ pcb_group_id: z75.string().optional(),
1552
+ subcircuit_id: z75.string().optional(),
1553
+ hole_shape: z75.enum(["circle", "oval", "pill", "rotated_pill"]),
1554
+ hole_diameter: z75.number().optional(),
1555
+ hole_width: z75.number().optional(),
1556
+ hole_height: z75.number().optional(),
1557
+ pad_outline: z75.array(
1558
+ z75.object({
1548
1559
  x: distance,
1549
1560
  y: distance
1550
1561
  })
1551
1562
  ).min(3),
1552
1563
  hole_offset_x: distance.default(0),
1553
1564
  hole_offset_y: distance.default(0),
1554
- is_covered_with_solder_mask: z74.boolean().optional(),
1565
+ is_covered_with_solder_mask: z75.boolean().optional(),
1555
1566
  x: distance,
1556
1567
  y: distance,
1557
- layers: z74.array(layer_ref),
1558
- port_hints: z74.array(z74.string()).optional(),
1559
- pcb_component_id: z74.string().optional(),
1560
- pcb_port_id: z74.string().optional(),
1568
+ layers: z75.array(layer_ref),
1569
+ port_hints: z75.array(z75.string()).optional(),
1570
+ pcb_component_id: z75.string().optional(),
1571
+ pcb_port_id: z75.string().optional(),
1561
1572
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
1562
- soldermask_margin: z74.number().optional()
1573
+ soldermask_margin: z75.number().optional()
1563
1574
  });
1564
- var pcb_plated_hole = z74.union([
1575
+ var pcb_plated_hole = z75.union([
1565
1576
  pcb_plated_hole_circle,
1566
1577
  pcb_plated_hole_oval,
1567
1578
  pcb_circular_hole_with_rect_pad,
@@ -1579,130 +1590,130 @@ expectTypesMatch(true);
1579
1590
  expectTypesMatch(true);
1580
1591
 
1581
1592
  // src/pcb/pcb_port.ts
1582
- import { z as z75 } from "zod";
1583
- var pcb_port = z75.object({
1584
- type: z75.literal("pcb_port"),
1593
+ import { z as z76 } from "zod";
1594
+ var pcb_port = z76.object({
1595
+ type: z76.literal("pcb_port"),
1585
1596
  pcb_port_id: getZodPrefixedIdWithDefault("pcb_port"),
1586
- pcb_group_id: z75.string().optional(),
1587
- subcircuit_id: z75.string().optional(),
1588
- source_port_id: z75.string(),
1589
- pcb_component_id: z75.string().optional(),
1597
+ pcb_group_id: z76.string().optional(),
1598
+ subcircuit_id: z76.string().optional(),
1599
+ source_port_id: z76.string(),
1600
+ pcb_component_id: z76.string().optional(),
1590
1601
  x: distance,
1591
1602
  y: distance,
1592
- layers: z75.array(layer_ref),
1593
- is_board_pinout: z75.boolean().optional()
1603
+ layers: z76.array(layer_ref),
1604
+ is_board_pinout: z76.boolean().optional()
1594
1605
  }).describe("Defines a port on the PCB");
1595
1606
  expectTypesMatch(true);
1596
1607
 
1597
1608
  // src/pcb/pcb_smtpad.ts
1598
- import { z as z76 } from "zod";
1599
- var pcb_smtpad_circle = z76.object({
1600
- type: z76.literal("pcb_smtpad"),
1601
- shape: z76.literal("circle"),
1609
+ import { z as z77 } from "zod";
1610
+ var pcb_smtpad_circle = z77.object({
1611
+ type: z77.literal("pcb_smtpad"),
1612
+ shape: z77.literal("circle"),
1602
1613
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1603
- pcb_group_id: z76.string().optional(),
1604
- subcircuit_id: z76.string().optional(),
1614
+ pcb_group_id: z77.string().optional(),
1615
+ subcircuit_id: z77.string().optional(),
1605
1616
  x: distance,
1606
1617
  y: distance,
1607
- radius: z76.number(),
1618
+ radius: z77.number(),
1608
1619
  layer: layer_ref,
1609
- port_hints: z76.array(z76.string()).optional(),
1610
- pcb_component_id: z76.string().optional(),
1611
- pcb_port_id: z76.string().optional(),
1612
- is_covered_with_solder_mask: z76.boolean().optional(),
1613
- soldermask_margin: z76.number().optional()
1620
+ port_hints: z77.array(z77.string()).optional(),
1621
+ pcb_component_id: z77.string().optional(),
1622
+ pcb_port_id: z77.string().optional(),
1623
+ is_covered_with_solder_mask: z77.boolean().optional(),
1624
+ soldermask_margin: z77.number().optional()
1614
1625
  });
1615
- var pcb_smtpad_rect = z76.object({
1616
- type: z76.literal("pcb_smtpad"),
1617
- shape: z76.literal("rect"),
1626
+ var pcb_smtpad_rect = z77.object({
1627
+ type: z77.literal("pcb_smtpad"),
1628
+ shape: z77.literal("rect"),
1618
1629
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1619
- pcb_group_id: z76.string().optional(),
1620
- subcircuit_id: z76.string().optional(),
1630
+ pcb_group_id: z77.string().optional(),
1631
+ subcircuit_id: z77.string().optional(),
1621
1632
  x: distance,
1622
1633
  y: distance,
1623
- width: z76.number(),
1624
- height: z76.number(),
1625
- rect_border_radius: z76.number().optional(),
1626
- corner_radius: z76.number().optional(),
1634
+ width: z77.number(),
1635
+ height: z77.number(),
1636
+ rect_border_radius: z77.number().optional(),
1637
+ corner_radius: z77.number().optional(),
1627
1638
  layer: layer_ref,
1628
- port_hints: z76.array(z76.string()).optional(),
1629
- pcb_component_id: z76.string().optional(),
1630
- pcb_port_id: z76.string().optional(),
1631
- is_covered_with_solder_mask: z76.boolean().optional(),
1632
- soldermask_margin: z76.number().optional()
1639
+ port_hints: z77.array(z77.string()).optional(),
1640
+ pcb_component_id: z77.string().optional(),
1641
+ pcb_port_id: z77.string().optional(),
1642
+ is_covered_with_solder_mask: z77.boolean().optional(),
1643
+ soldermask_margin: z77.number().optional()
1633
1644
  });
1634
- var pcb_smtpad_rotated_rect = z76.object({
1635
- type: z76.literal("pcb_smtpad"),
1636
- shape: z76.literal("rotated_rect"),
1645
+ var pcb_smtpad_rotated_rect = z77.object({
1646
+ type: z77.literal("pcb_smtpad"),
1647
+ shape: z77.literal("rotated_rect"),
1637
1648
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1638
- pcb_group_id: z76.string().optional(),
1639
- subcircuit_id: z76.string().optional(),
1649
+ pcb_group_id: z77.string().optional(),
1650
+ subcircuit_id: z77.string().optional(),
1640
1651
  x: distance,
1641
1652
  y: distance,
1642
- width: z76.number(),
1643
- height: z76.number(),
1644
- rect_border_radius: z76.number().optional(),
1645
- corner_radius: z76.number().optional(),
1653
+ width: z77.number(),
1654
+ height: z77.number(),
1655
+ rect_border_radius: z77.number().optional(),
1656
+ corner_radius: z77.number().optional(),
1646
1657
  ccw_rotation: rotation,
1647
1658
  layer: layer_ref,
1648
- port_hints: z76.array(z76.string()).optional(),
1649
- pcb_component_id: z76.string().optional(),
1650
- pcb_port_id: z76.string().optional(),
1651
- is_covered_with_solder_mask: z76.boolean().optional(),
1652
- soldermask_margin: z76.number().optional()
1659
+ port_hints: z77.array(z77.string()).optional(),
1660
+ pcb_component_id: z77.string().optional(),
1661
+ pcb_port_id: z77.string().optional(),
1662
+ is_covered_with_solder_mask: z77.boolean().optional(),
1663
+ soldermask_margin: z77.number().optional()
1653
1664
  });
1654
- var pcb_smtpad_pill = z76.object({
1655
- type: z76.literal("pcb_smtpad"),
1656
- shape: z76.literal("pill"),
1665
+ var pcb_smtpad_pill = z77.object({
1666
+ type: z77.literal("pcb_smtpad"),
1667
+ shape: z77.literal("pill"),
1657
1668
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1658
- pcb_group_id: z76.string().optional(),
1659
- subcircuit_id: z76.string().optional(),
1669
+ pcb_group_id: z77.string().optional(),
1670
+ subcircuit_id: z77.string().optional(),
1660
1671
  x: distance,
1661
1672
  y: distance,
1662
- width: z76.number(),
1663
- height: z76.number(),
1664
- radius: z76.number(),
1673
+ width: z77.number(),
1674
+ height: z77.number(),
1675
+ radius: z77.number(),
1665
1676
  layer: layer_ref,
1666
- port_hints: z76.array(z76.string()).optional(),
1667
- pcb_component_id: z76.string().optional(),
1668
- pcb_port_id: z76.string().optional(),
1669
- is_covered_with_solder_mask: z76.boolean().optional(),
1670
- soldermask_margin: z76.number().optional()
1677
+ port_hints: z77.array(z77.string()).optional(),
1678
+ pcb_component_id: z77.string().optional(),
1679
+ pcb_port_id: z77.string().optional(),
1680
+ is_covered_with_solder_mask: z77.boolean().optional(),
1681
+ soldermask_margin: z77.number().optional()
1671
1682
  });
1672
- var pcb_smtpad_rotated_pill = z76.object({
1673
- type: z76.literal("pcb_smtpad"),
1674
- shape: z76.literal("rotated_pill"),
1683
+ var pcb_smtpad_rotated_pill = z77.object({
1684
+ type: z77.literal("pcb_smtpad"),
1685
+ shape: z77.literal("rotated_pill"),
1675
1686
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1676
- pcb_group_id: z76.string().optional(),
1677
- subcircuit_id: z76.string().optional(),
1687
+ pcb_group_id: z77.string().optional(),
1688
+ subcircuit_id: z77.string().optional(),
1678
1689
  x: distance,
1679
1690
  y: distance,
1680
- width: z76.number(),
1681
- height: z76.number(),
1682
- radius: z76.number(),
1691
+ width: z77.number(),
1692
+ height: z77.number(),
1693
+ radius: z77.number(),
1683
1694
  ccw_rotation: rotation,
1684
1695
  layer: layer_ref,
1685
- port_hints: z76.array(z76.string()).optional(),
1686
- pcb_component_id: z76.string().optional(),
1687
- pcb_port_id: z76.string().optional(),
1688
- is_covered_with_solder_mask: z76.boolean().optional(),
1689
- soldermask_margin: z76.number().optional()
1696
+ port_hints: z77.array(z77.string()).optional(),
1697
+ pcb_component_id: z77.string().optional(),
1698
+ pcb_port_id: z77.string().optional(),
1699
+ is_covered_with_solder_mask: z77.boolean().optional(),
1700
+ soldermask_margin: z77.number().optional()
1690
1701
  });
1691
- var pcb_smtpad_polygon = z76.object({
1692
- type: z76.literal("pcb_smtpad"),
1693
- shape: z76.literal("polygon"),
1702
+ var pcb_smtpad_polygon = z77.object({
1703
+ type: z77.literal("pcb_smtpad"),
1704
+ shape: z77.literal("polygon"),
1694
1705
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1695
- pcb_group_id: z76.string().optional(),
1696
- subcircuit_id: z76.string().optional(),
1697
- points: z76.array(point),
1706
+ pcb_group_id: z77.string().optional(),
1707
+ subcircuit_id: z77.string().optional(),
1708
+ points: z77.array(point),
1698
1709
  layer: layer_ref,
1699
- port_hints: z76.array(z76.string()).optional(),
1700
- pcb_component_id: z76.string().optional(),
1701
- pcb_port_id: z76.string().optional(),
1702
- is_covered_with_solder_mask: z76.boolean().optional(),
1703
- soldermask_margin: z76.number().optional()
1710
+ port_hints: z77.array(z77.string()).optional(),
1711
+ pcb_component_id: z77.string().optional(),
1712
+ pcb_port_id: z77.string().optional(),
1713
+ is_covered_with_solder_mask: z77.boolean().optional(),
1714
+ soldermask_margin: z77.number().optional()
1704
1715
  });
1705
- var pcb_smtpad = z76.discriminatedUnion("shape", [
1716
+ var pcb_smtpad = z77.discriminatedUnion("shape", [
1706
1717
  pcb_smtpad_circle,
1707
1718
  pcb_smtpad_rect,
1708
1719
  pcb_smtpad_rotated_rect,
@@ -1718,79 +1729,79 @@ expectTypesMatch(true);
1718
1729
  expectTypesMatch(true);
1719
1730
 
1720
1731
  // src/pcb/pcb_solder_paste.ts
1721
- import { z as z77 } from "zod";
1722
- var pcb_solder_paste_circle = z77.object({
1723
- type: z77.literal("pcb_solder_paste"),
1724
- shape: z77.literal("circle"),
1732
+ import { z as z78 } from "zod";
1733
+ var pcb_solder_paste_circle = z78.object({
1734
+ type: z78.literal("pcb_solder_paste"),
1735
+ shape: z78.literal("circle"),
1725
1736
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1726
- pcb_group_id: z77.string().optional(),
1727
- subcircuit_id: z77.string().optional(),
1737
+ pcb_group_id: z78.string().optional(),
1738
+ subcircuit_id: z78.string().optional(),
1728
1739
  x: distance,
1729
1740
  y: distance,
1730
- radius: z77.number(),
1741
+ radius: z78.number(),
1731
1742
  layer: layer_ref,
1732
- pcb_component_id: z77.string().optional(),
1733
- pcb_smtpad_id: z77.string().optional()
1743
+ pcb_component_id: z78.string().optional(),
1744
+ pcb_smtpad_id: z78.string().optional()
1734
1745
  });
1735
- var pcb_solder_paste_rect = z77.object({
1736
- type: z77.literal("pcb_solder_paste"),
1737
- shape: z77.literal("rect"),
1746
+ var pcb_solder_paste_rect = z78.object({
1747
+ type: z78.literal("pcb_solder_paste"),
1748
+ shape: z78.literal("rect"),
1738
1749
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1739
- pcb_group_id: z77.string().optional(),
1740
- subcircuit_id: z77.string().optional(),
1750
+ pcb_group_id: z78.string().optional(),
1751
+ subcircuit_id: z78.string().optional(),
1741
1752
  x: distance,
1742
1753
  y: distance,
1743
- width: z77.number(),
1744
- height: z77.number(),
1754
+ width: z78.number(),
1755
+ height: z78.number(),
1745
1756
  layer: layer_ref,
1746
- pcb_component_id: z77.string().optional(),
1747
- pcb_smtpad_id: z77.string().optional()
1757
+ pcb_component_id: z78.string().optional(),
1758
+ pcb_smtpad_id: z78.string().optional()
1748
1759
  });
1749
- var pcb_solder_paste_pill = z77.object({
1750
- type: z77.literal("pcb_solder_paste"),
1751
- shape: z77.literal("pill"),
1760
+ var pcb_solder_paste_pill = z78.object({
1761
+ type: z78.literal("pcb_solder_paste"),
1762
+ shape: z78.literal("pill"),
1752
1763
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1753
- pcb_group_id: z77.string().optional(),
1754
- subcircuit_id: z77.string().optional(),
1764
+ pcb_group_id: z78.string().optional(),
1765
+ subcircuit_id: z78.string().optional(),
1755
1766
  x: distance,
1756
1767
  y: distance,
1757
- width: z77.number(),
1758
- height: z77.number(),
1759
- radius: z77.number(),
1768
+ width: z78.number(),
1769
+ height: z78.number(),
1770
+ radius: z78.number(),
1760
1771
  layer: layer_ref,
1761
- pcb_component_id: z77.string().optional(),
1762
- pcb_smtpad_id: z77.string().optional()
1772
+ pcb_component_id: z78.string().optional(),
1773
+ pcb_smtpad_id: z78.string().optional()
1763
1774
  });
1764
- var pcb_solder_paste_rotated_rect = z77.object({
1765
- type: z77.literal("pcb_solder_paste"),
1766
- shape: z77.literal("rotated_rect"),
1775
+ var pcb_solder_paste_rotated_rect = z78.object({
1776
+ type: z78.literal("pcb_solder_paste"),
1777
+ shape: z78.literal("rotated_rect"),
1767
1778
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1768
- pcb_group_id: z77.string().optional(),
1769
- subcircuit_id: z77.string().optional(),
1779
+ pcb_group_id: z78.string().optional(),
1780
+ subcircuit_id: z78.string().optional(),
1770
1781
  x: distance,
1771
1782
  y: distance,
1772
- width: z77.number(),
1773
- height: z77.number(),
1783
+ width: z78.number(),
1784
+ height: z78.number(),
1774
1785
  ccw_rotation: distance,
1775
1786
  layer: layer_ref,
1776
- pcb_component_id: z77.string().optional(),
1777
- pcb_smtpad_id: z77.string().optional()
1787
+ pcb_component_id: z78.string().optional(),
1788
+ pcb_smtpad_id: z78.string().optional()
1778
1789
  });
1779
- var pcb_solder_paste_oval = z77.object({
1780
- type: z77.literal("pcb_solder_paste"),
1781
- shape: z77.literal("oval"),
1790
+ var pcb_solder_paste_oval = z78.object({
1791
+ type: z78.literal("pcb_solder_paste"),
1792
+ shape: z78.literal("oval"),
1782
1793
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1783
- pcb_group_id: z77.string().optional(),
1784
- subcircuit_id: z77.string().optional(),
1794
+ pcb_group_id: z78.string().optional(),
1795
+ subcircuit_id: z78.string().optional(),
1785
1796
  x: distance,
1786
1797
  y: distance,
1787
- width: z77.number(),
1788
- height: z77.number(),
1798
+ width: z78.number(),
1799
+ height: z78.number(),
1789
1800
  layer: layer_ref,
1790
- pcb_component_id: z77.string().optional(),
1791
- pcb_smtpad_id: z77.string().optional()
1801
+ pcb_component_id: z78.string().optional(),
1802
+ pcb_smtpad_id: z78.string().optional()
1792
1803
  });
1793
- var pcb_solder_paste = z77.union([
1804
+ var pcb_solder_paste = z78.union([
1794
1805
  pcb_solder_paste_circle,
1795
1806
  pcb_solder_paste_rect,
1796
1807
  pcb_solder_paste_pill,
@@ -1806,146 +1817,146 @@ expectTypesMatch(
1806
1817
  expectTypesMatch(true);
1807
1818
 
1808
1819
  // src/pcb/pcb_text.ts
1809
- import { z as z78 } from "zod";
1810
- var pcb_text = z78.object({
1811
- type: z78.literal("pcb_text"),
1820
+ import { z as z79 } from "zod";
1821
+ var pcb_text = z79.object({
1822
+ type: z79.literal("pcb_text"),
1812
1823
  pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
1813
- pcb_group_id: z78.string().optional(),
1814
- subcircuit_id: z78.string().optional(),
1815
- text: z78.string(),
1824
+ pcb_group_id: z79.string().optional(),
1825
+ subcircuit_id: z79.string().optional(),
1826
+ text: z79.string(),
1816
1827
  center: point,
1817
1828
  layer: layer_ref,
1818
1829
  width: length,
1819
1830
  height: length,
1820
- lines: z78.number(),
1831
+ lines: z79.number(),
1821
1832
  // @ts-ignore
1822
- align: z78.enum(["bottom-left"])
1833
+ align: z79.enum(["bottom-left"])
1823
1834
  }).describe("Defines text on the PCB");
1824
1835
  expectTypesMatch(true);
1825
1836
 
1826
1837
  // src/pcb/pcb_trace.ts
1827
- import { z as z79 } from "zod";
1828
- var pcb_trace_route_point_wire = z79.object({
1829
- route_type: z79.literal("wire"),
1838
+ import { z as z80 } from "zod";
1839
+ var pcb_trace_route_point_wire = z80.object({
1840
+ route_type: z80.literal("wire"),
1830
1841
  x: distance,
1831
1842
  y: distance,
1832
1843
  width: distance,
1833
- start_pcb_port_id: z79.string().optional(),
1834
- end_pcb_port_id: z79.string().optional(),
1844
+ start_pcb_port_id: z80.string().optional(),
1845
+ end_pcb_port_id: z80.string().optional(),
1835
1846
  layer: layer_ref
1836
1847
  });
1837
- var pcb_trace_route_point_via = z79.object({
1838
- route_type: z79.literal("via"),
1848
+ var pcb_trace_route_point_via = z80.object({
1849
+ route_type: z80.literal("via"),
1839
1850
  x: distance,
1840
1851
  y: distance,
1841
1852
  hole_diameter: distance.optional(),
1842
1853
  outer_diameter: distance.optional(),
1843
- from_layer: z79.string(),
1844
- to_layer: z79.string()
1854
+ from_layer: z80.string(),
1855
+ to_layer: z80.string()
1845
1856
  });
1846
- var pcb_trace_route_point = z79.union([
1857
+ var pcb_trace_route_point = z80.union([
1847
1858
  pcb_trace_route_point_wire,
1848
1859
  pcb_trace_route_point_via
1849
1860
  ]);
1850
- var pcb_trace = z79.object({
1851
- type: z79.literal("pcb_trace"),
1852
- source_trace_id: z79.string().optional(),
1853
- pcb_component_id: z79.string().optional(),
1861
+ var pcb_trace = z80.object({
1862
+ type: z80.literal("pcb_trace"),
1863
+ source_trace_id: z80.string().optional(),
1864
+ pcb_component_id: z80.string().optional(),
1854
1865
  pcb_trace_id: getZodPrefixedIdWithDefault("pcb_trace"),
1855
- pcb_group_id: z79.string().optional(),
1856
- subcircuit_id: z79.string().optional(),
1857
- route_thickness_mode: z79.enum(["constant", "interpolated"]).default("constant").optional(),
1858
- route_order_index: z79.number().optional(),
1859
- should_round_corners: z79.boolean().optional(),
1860
- trace_length: z79.number().optional(),
1861
- highlight_color: z79.string().optional(),
1862
- route: z79.array(pcb_trace_route_point)
1866
+ pcb_group_id: z80.string().optional(),
1867
+ subcircuit_id: z80.string().optional(),
1868
+ route_thickness_mode: z80.enum(["constant", "interpolated"]).default("constant").optional(),
1869
+ route_order_index: z80.number().optional(),
1870
+ should_round_corners: z80.boolean().optional(),
1871
+ trace_length: z80.number().optional(),
1872
+ highlight_color: z80.string().optional(),
1873
+ route: z80.array(pcb_trace_route_point)
1863
1874
  }).describe("Defines a trace on the PCB");
1864
1875
  expectTypesMatch(true);
1865
1876
  expectTypesMatch(true);
1866
1877
 
1867
1878
  // src/pcb/pcb_trace_error.ts
1868
- import { z as z80 } from "zod";
1869
- var pcb_trace_error = z80.object({
1870
- type: z80.literal("pcb_trace_error"),
1879
+ import { z as z81 } from "zod";
1880
+ var pcb_trace_error = z81.object({
1881
+ type: z81.literal("pcb_trace_error"),
1871
1882
  pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
1872
- error_type: z80.literal("pcb_trace_error").default("pcb_trace_error"),
1873
- message: z80.string(),
1883
+ error_type: z81.literal("pcb_trace_error").default("pcb_trace_error"),
1884
+ message: z81.string(),
1874
1885
  center: point.optional(),
1875
- pcb_trace_id: z80.string(),
1876
- source_trace_id: z80.string(),
1877
- pcb_component_ids: z80.array(z80.string()),
1878
- pcb_port_ids: z80.array(z80.string()),
1879
- subcircuit_id: z80.string().optional()
1886
+ pcb_trace_id: z81.string(),
1887
+ source_trace_id: z81.string(),
1888
+ pcb_component_ids: z81.array(z81.string()),
1889
+ pcb_port_ids: z81.array(z81.string()),
1890
+ subcircuit_id: z81.string().optional()
1880
1891
  }).describe("Defines a trace error on the PCB");
1881
1892
  expectTypesMatch(true);
1882
1893
 
1883
1894
  // src/pcb/pcb_trace_missing_error.ts
1884
- import { z as z81 } from "zod";
1885
- var pcb_trace_missing_error = z81.object({
1886
- type: z81.literal("pcb_trace_missing_error"),
1895
+ import { z as z82 } from "zod";
1896
+ var pcb_trace_missing_error = z82.object({
1897
+ type: z82.literal("pcb_trace_missing_error"),
1887
1898
  pcb_trace_missing_error_id: getZodPrefixedIdWithDefault(
1888
1899
  "pcb_trace_missing_error"
1889
1900
  ),
1890
- error_type: z81.literal("pcb_trace_missing_error").default("pcb_trace_missing_error"),
1891
- message: z81.string(),
1901
+ error_type: z82.literal("pcb_trace_missing_error").default("pcb_trace_missing_error"),
1902
+ message: z82.string(),
1892
1903
  center: point.optional(),
1893
- source_trace_id: z81.string(),
1894
- pcb_component_ids: z81.array(z81.string()),
1895
- pcb_port_ids: z81.array(z81.string()),
1896
- subcircuit_id: z81.string().optional()
1904
+ source_trace_id: z82.string(),
1905
+ pcb_component_ids: z82.array(z82.string()),
1906
+ pcb_port_ids: z82.array(z82.string()),
1907
+ subcircuit_id: z82.string().optional()
1897
1908
  }).describe(
1898
1909
  "Defines an error when a source trace has no corresponding PCB trace"
1899
1910
  );
1900
1911
  expectTypesMatch(true);
1901
1912
 
1902
1913
  // src/pcb/pcb_port_not_matched_error.ts
1903
- import { z as z82 } from "zod";
1904
- var pcb_port_not_matched_error = z82.object({
1905
- type: z82.literal("pcb_port_not_matched_error"),
1914
+ import { z as z83 } from "zod";
1915
+ var pcb_port_not_matched_error = z83.object({
1916
+ type: z83.literal("pcb_port_not_matched_error"),
1906
1917
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
1907
- error_type: z82.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
1908
- message: z82.string(),
1909
- pcb_component_ids: z82.array(z82.string()),
1910
- subcircuit_id: z82.string().optional()
1918
+ error_type: z83.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
1919
+ message: z83.string(),
1920
+ pcb_component_ids: z83.array(z83.string()),
1921
+ subcircuit_id: z83.string().optional()
1911
1922
  }).describe("Defines a trace error on the PCB where a port is not matched");
1912
1923
  expectTypesMatch(true);
1913
1924
 
1914
1925
  // src/pcb/pcb_port_not_connected_error.ts
1915
- import { z as z83 } from "zod";
1916
- var pcb_port_not_connected_error = z83.object({
1917
- type: z83.literal("pcb_port_not_connected_error"),
1926
+ import { z as z84 } from "zod";
1927
+ var pcb_port_not_connected_error = z84.object({
1928
+ type: z84.literal("pcb_port_not_connected_error"),
1918
1929
  pcb_port_not_connected_error_id: getZodPrefixedIdWithDefault(
1919
1930
  "pcb_port_not_connected_error"
1920
1931
  ),
1921
- error_type: z83.literal("pcb_port_not_connected_error").default("pcb_port_not_connected_error"),
1922
- message: z83.string(),
1923
- pcb_port_ids: z83.array(z83.string()),
1924
- pcb_component_ids: z83.array(z83.string()),
1925
- subcircuit_id: z83.string().optional()
1932
+ error_type: z84.literal("pcb_port_not_connected_error").default("pcb_port_not_connected_error"),
1933
+ message: z84.string(),
1934
+ pcb_port_ids: z84.array(z84.string()),
1935
+ pcb_component_ids: z84.array(z84.string()),
1936
+ subcircuit_id: z84.string().optional()
1926
1937
  }).describe("Defines an error when a pcb port is not connected to any trace");
1927
1938
  expectTypesMatch(
1928
1939
  true
1929
1940
  );
1930
1941
 
1931
1942
  // src/pcb/pcb_net.ts
1932
- import { z as z84 } from "zod";
1933
- var pcb_net = z84.object({
1934
- type: z84.literal("pcb_net"),
1943
+ import { z as z85 } from "zod";
1944
+ var pcb_net = z85.object({
1945
+ type: z85.literal("pcb_net"),
1935
1946
  pcb_net_id: getZodPrefixedIdWithDefault("pcb_net"),
1936
- source_net_id: z84.string().optional(),
1937
- highlight_color: z84.string().optional()
1947
+ source_net_id: z85.string().optional(),
1948
+ highlight_color: z85.string().optional()
1938
1949
  }).describe("Defines a net on the PCB");
1939
1950
  expectTypesMatch(true);
1940
1951
 
1941
1952
  // src/pcb/pcb_via.ts
1942
- import { z as z85 } from "zod";
1943
- var pcb_via = z85.object({
1944
- type: z85.literal("pcb_via"),
1953
+ import { z as z86 } from "zod";
1954
+ var pcb_via = z86.object({
1955
+ type: z86.literal("pcb_via"),
1945
1956
  pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
1946
- pcb_group_id: z85.string().optional(),
1947
- subcircuit_id: z85.string().optional(),
1948
- subcircuit_connectivity_map_key: z85.string().optional(),
1957
+ pcb_group_id: z86.string().optional(),
1958
+ subcircuit_id: z86.string().optional(),
1959
+ subcircuit_connectivity_map_key: z86.string().optional(),
1949
1960
  x: distance,
1950
1961
  y: distance,
1951
1962
  outer_diameter: distance.default("0.6mm"),
@@ -1954,76 +1965,76 @@ var pcb_via = z85.object({
1954
1965
  from_layer: layer_ref.optional(),
1955
1966
  /** @deprecated */
1956
1967
  to_layer: layer_ref.optional(),
1957
- layers: z85.array(layer_ref),
1958
- pcb_trace_id: z85.string().optional(),
1959
- net_is_assignable: z85.boolean().optional(),
1960
- net_assigned: z85.boolean().optional(),
1961
- is_tented: z85.boolean().optional()
1968
+ layers: z86.array(layer_ref),
1969
+ pcb_trace_id: z86.string().optional(),
1970
+ net_is_assignable: z86.boolean().optional(),
1971
+ net_assigned: z86.boolean().optional(),
1972
+ is_tented: z86.boolean().optional()
1962
1973
  }).describe("Defines a via on the PCB");
1963
1974
  expectTypesMatch(true);
1964
1975
 
1965
1976
  // src/pcb/pcb_board.ts
1966
- import { z as z86 } from "zod";
1967
- var pcb_board = z86.object({
1968
- type: z86.literal("pcb_board"),
1977
+ import { z as z87 } from "zod";
1978
+ var pcb_board = z87.object({
1979
+ type: z87.literal("pcb_board"),
1969
1980
  pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
1970
- pcb_panel_id: z86.string().optional(),
1971
- is_subcircuit: z86.boolean().optional(),
1972
- subcircuit_id: z86.string().optional(),
1981
+ pcb_panel_id: z87.string().optional(),
1982
+ is_subcircuit: z87.boolean().optional(),
1983
+ subcircuit_id: z87.string().optional(),
1973
1984
  width: length.optional(),
1974
1985
  height: length.optional(),
1975
1986
  center: point,
1976
1987
  thickness: length.optional().default(1.4),
1977
- num_layers: z86.number().optional().default(4),
1978
- outline: z86.array(point).optional(),
1979
- shape: z86.enum(["rect", "polygon"]).optional(),
1980
- material: z86.enum(["fr4", "fr1"]).default("fr4")
1988
+ num_layers: z87.number().optional().default(4),
1989
+ outline: z87.array(point).optional(),
1990
+ shape: z87.enum(["rect", "polygon"]).optional(),
1991
+ material: z87.enum(["fr4", "fr1"]).default("fr4")
1981
1992
  }).describe("Defines the board outline of the PCB");
1982
1993
  expectTypesMatch(true);
1983
1994
 
1984
1995
  // src/pcb/pcb_panel.ts
1985
- import { z as z87 } from "zod";
1986
- var pcb_panel = z87.object({
1987
- type: z87.literal("pcb_panel"),
1996
+ import { z as z88 } from "zod";
1997
+ var pcb_panel = z88.object({
1998
+ type: z88.literal("pcb_panel"),
1988
1999
  pcb_panel_id: getZodPrefixedIdWithDefault("pcb_panel"),
1989
2000
  width: length,
1990
2001
  height: length,
1991
2002
  center: point,
1992
- covered_with_solder_mask: z87.boolean().optional().default(true)
2003
+ covered_with_solder_mask: z88.boolean().optional().default(true)
1993
2004
  }).describe("Defines a PCB panel that can contain multiple boards");
1994
2005
  expectTypesMatch(true);
1995
2006
 
1996
2007
  // src/pcb/pcb_placement_error.ts
1997
- import { z as z88 } from "zod";
1998
- var pcb_placement_error = z88.object({
1999
- type: z88.literal("pcb_placement_error"),
2008
+ import { z as z89 } from "zod";
2009
+ var pcb_placement_error = z89.object({
2010
+ type: z89.literal("pcb_placement_error"),
2000
2011
  pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
2001
- error_type: z88.literal("pcb_placement_error").default("pcb_placement_error"),
2002
- message: z88.string(),
2003
- subcircuit_id: z88.string().optional()
2012
+ error_type: z89.literal("pcb_placement_error").default("pcb_placement_error"),
2013
+ message: z89.string(),
2014
+ subcircuit_id: z89.string().optional()
2004
2015
  }).describe("Defines a placement error on the PCB");
2005
2016
  expectTypesMatch(true);
2006
2017
 
2007
2018
  // src/pcb/pcb_trace_hint.ts
2008
- import { z as z89 } from "zod";
2009
- var pcb_trace_hint = z89.object({
2010
- type: z89.literal("pcb_trace_hint"),
2019
+ import { z as z90 } from "zod";
2020
+ var pcb_trace_hint = z90.object({
2021
+ type: z90.literal("pcb_trace_hint"),
2011
2022
  pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
2012
- pcb_port_id: z89.string(),
2013
- pcb_component_id: z89.string(),
2014
- route: z89.array(route_hint_point),
2015
- subcircuit_id: z89.string().optional()
2023
+ pcb_port_id: z90.string(),
2024
+ pcb_component_id: z90.string(),
2025
+ route: z90.array(route_hint_point),
2026
+ subcircuit_id: z90.string().optional()
2016
2027
  }).describe("A hint that can be used during generation of a PCB trace");
2017
2028
  expectTypesMatch(true);
2018
2029
 
2019
2030
  // src/pcb/pcb_silkscreen_line.ts
2020
- import { z as z90 } from "zod";
2021
- var pcb_silkscreen_line = z90.object({
2022
- type: z90.literal("pcb_silkscreen_line"),
2031
+ import { z as z91 } from "zod";
2032
+ var pcb_silkscreen_line = z91.object({
2033
+ type: z91.literal("pcb_silkscreen_line"),
2023
2034
  pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
2024
- pcb_component_id: z90.string(),
2025
- pcb_group_id: z90.string().optional(),
2026
- subcircuit_id: z90.string().optional(),
2035
+ pcb_component_id: z91.string(),
2036
+ pcb_group_id: z91.string().optional(),
2037
+ subcircuit_id: z91.string().optional(),
2027
2038
  stroke_width: distance.default("0.1mm"),
2028
2039
  x1: distance,
2029
2040
  y1: distance,
@@ -2034,32 +2045,32 @@ var pcb_silkscreen_line = z90.object({
2034
2045
  expectTypesMatch(true);
2035
2046
 
2036
2047
  // src/pcb/pcb_silkscreen_path.ts
2037
- import { z as z91 } from "zod";
2038
- var pcb_silkscreen_path = z91.object({
2039
- type: z91.literal("pcb_silkscreen_path"),
2048
+ import { z as z92 } from "zod";
2049
+ var pcb_silkscreen_path = z92.object({
2050
+ type: z92.literal("pcb_silkscreen_path"),
2040
2051
  pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
2041
- pcb_component_id: z91.string(),
2042
- pcb_group_id: z91.string().optional(),
2043
- subcircuit_id: z91.string().optional(),
2052
+ pcb_component_id: z92.string(),
2053
+ pcb_group_id: z92.string().optional(),
2054
+ subcircuit_id: z92.string().optional(),
2044
2055
  layer: visible_layer,
2045
- route: z91.array(point),
2056
+ route: z92.array(point),
2046
2057
  stroke_width: length
2047
2058
  }).describe("Defines a silkscreen path on the PCB");
2048
2059
  expectTypesMatch(true);
2049
2060
 
2050
2061
  // src/pcb/pcb_silkscreen_text.ts
2051
- import { z as z92 } from "zod";
2052
- var pcb_silkscreen_text = z92.object({
2053
- type: z92.literal("pcb_silkscreen_text"),
2062
+ import { z as z93 } from "zod";
2063
+ var pcb_silkscreen_text = z93.object({
2064
+ type: z93.literal("pcb_silkscreen_text"),
2054
2065
  pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
2055
- pcb_group_id: z92.string().optional(),
2056
- subcircuit_id: z92.string().optional(),
2057
- font: z92.literal("tscircuit2024").default("tscircuit2024"),
2066
+ pcb_group_id: z93.string().optional(),
2067
+ subcircuit_id: z93.string().optional(),
2068
+ font: z93.literal("tscircuit2024").default("tscircuit2024"),
2058
2069
  font_size: distance.default("0.2mm"),
2059
- pcb_component_id: z92.string(),
2060
- text: z92.string(),
2061
- is_knockout: z92.boolean().default(false).optional(),
2062
- knockout_padding: z92.object({
2070
+ pcb_component_id: z93.string(),
2071
+ text: z93.string(),
2072
+ is_knockout: z93.boolean().default(false).optional(),
2073
+ knockout_padding: z93.object({
2063
2074
  left: length,
2064
2075
  top: length,
2065
2076
  bottom: length,
@@ -2070,27 +2081,27 @@ var pcb_silkscreen_text = z92.object({
2070
2081
  bottom: "0.2mm",
2071
2082
  right: "0.2mm"
2072
2083
  }).optional(),
2073
- ccw_rotation: z92.number().optional(),
2084
+ ccw_rotation: z93.number().optional(),
2074
2085
  layer: layer_ref,
2075
- is_mirrored: z92.boolean().default(false).optional(),
2086
+ is_mirrored: z93.boolean().default(false).optional(),
2076
2087
  anchor_position: point.default({ x: 0, y: 0 }),
2077
2088
  anchor_alignment: ninePointAnchor.default("center")
2078
2089
  }).describe("Defines silkscreen text on the PCB");
2079
2090
  expectTypesMatch(true);
2080
2091
 
2081
2092
  // src/pcb/pcb_copper_text.ts
2082
- import { z as z93 } from "zod";
2083
- var pcb_copper_text = z93.object({
2084
- type: z93.literal("pcb_copper_text"),
2093
+ import { z as z94 } from "zod";
2094
+ var pcb_copper_text = z94.object({
2095
+ type: z94.literal("pcb_copper_text"),
2085
2096
  pcb_copper_text_id: getZodPrefixedIdWithDefault("pcb_copper_text"),
2086
- pcb_group_id: z93.string().optional(),
2087
- subcircuit_id: z93.string().optional(),
2088
- font: z93.literal("tscircuit2024").default("tscircuit2024"),
2097
+ pcb_group_id: z94.string().optional(),
2098
+ subcircuit_id: z94.string().optional(),
2099
+ font: z94.literal("tscircuit2024").default("tscircuit2024"),
2089
2100
  font_size: distance.default("0.2mm"),
2090
- pcb_component_id: z93.string(),
2091
- text: z93.string(),
2092
- is_knockout: z93.boolean().default(false).optional(),
2093
- knockout_padding: z93.object({
2101
+ pcb_component_id: z94.string(),
2102
+ text: z94.string(),
2103
+ is_knockout: z94.boolean().default(false).optional(),
2104
+ knockout_padding: z94.object({
2094
2105
  left: length,
2095
2106
  top: length,
2096
2107
  bottom: length,
@@ -2101,44 +2112,44 @@ var pcb_copper_text = z93.object({
2101
2112
  bottom: "0.2mm",
2102
2113
  right: "0.2mm"
2103
2114
  }).optional(),
2104
- ccw_rotation: z93.number().optional(),
2115
+ ccw_rotation: z94.number().optional(),
2105
2116
  layer: layer_ref,
2106
- is_mirrored: z93.boolean().default(false).optional(),
2117
+ is_mirrored: z94.boolean().default(false).optional(),
2107
2118
  anchor_position: point.default({ x: 0, y: 0 }),
2108
2119
  anchor_alignment: ninePointAnchor.default("center")
2109
2120
  }).describe("Defines copper text on the PCB");
2110
2121
  expectTypesMatch(true);
2111
2122
 
2112
2123
  // src/pcb/pcb_silkscreen_rect.ts
2113
- import { z as z94 } from "zod";
2114
- var pcb_silkscreen_rect = z94.object({
2115
- type: z94.literal("pcb_silkscreen_rect"),
2124
+ import { z as z95 } from "zod";
2125
+ var pcb_silkscreen_rect = z95.object({
2126
+ type: z95.literal("pcb_silkscreen_rect"),
2116
2127
  pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
2117
- pcb_component_id: z94.string(),
2118
- pcb_group_id: z94.string().optional(),
2119
- subcircuit_id: z94.string().optional(),
2128
+ pcb_component_id: z95.string(),
2129
+ pcb_group_id: z95.string().optional(),
2130
+ subcircuit_id: z95.string().optional(),
2120
2131
  center: point,
2121
2132
  width: length,
2122
2133
  height: length,
2123
2134
  layer: layer_ref,
2124
2135
  stroke_width: length.default("1mm"),
2125
2136
  corner_radius: length.optional(),
2126
- is_filled: z94.boolean().default(true).optional(),
2127
- has_stroke: z94.boolean().optional(),
2128
- is_stroke_dashed: z94.boolean().optional()
2137
+ is_filled: z95.boolean().default(true).optional(),
2138
+ has_stroke: z95.boolean().optional(),
2139
+ is_stroke_dashed: z95.boolean().optional()
2129
2140
  }).describe("Defines a silkscreen rect on the PCB");
2130
2141
  expectTypesMatch(true);
2131
2142
 
2132
2143
  // src/pcb/pcb_silkscreen_circle.ts
2133
- import { z as z95 } from "zod";
2134
- var pcb_silkscreen_circle = z95.object({
2135
- type: z95.literal("pcb_silkscreen_circle"),
2144
+ import { z as z96 } from "zod";
2145
+ var pcb_silkscreen_circle = z96.object({
2146
+ type: z96.literal("pcb_silkscreen_circle"),
2136
2147
  pcb_silkscreen_circle_id: getZodPrefixedIdWithDefault(
2137
2148
  "pcb_silkscreen_circle"
2138
2149
  ),
2139
- pcb_component_id: z95.string(),
2140
- pcb_group_id: z95.string().optional(),
2141
- subcircuit_id: z95.string().optional(),
2150
+ pcb_component_id: z96.string(),
2151
+ pcb_group_id: z96.string().optional(),
2152
+ subcircuit_id: z96.string().optional(),
2142
2153
  center: point,
2143
2154
  radius: length,
2144
2155
  layer: visible_layer,
@@ -2147,13 +2158,13 @@ var pcb_silkscreen_circle = z95.object({
2147
2158
  expectTypesMatch(true);
2148
2159
 
2149
2160
  // src/pcb/pcb_silkscreen_oval.ts
2150
- import { z as z96 } from "zod";
2151
- var pcb_silkscreen_oval = z96.object({
2152
- type: z96.literal("pcb_silkscreen_oval"),
2161
+ import { z as z97 } from "zod";
2162
+ var pcb_silkscreen_oval = z97.object({
2163
+ type: z97.literal("pcb_silkscreen_oval"),
2153
2164
  pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
2154
- pcb_component_id: z96.string(),
2155
- pcb_group_id: z96.string().optional(),
2156
- subcircuit_id: z96.string().optional(),
2165
+ pcb_component_id: z97.string(),
2166
+ pcb_group_id: z97.string().optional(),
2167
+ subcircuit_id: z97.string().optional(),
2157
2168
  center: point,
2158
2169
  radius_x: distance,
2159
2170
  radius_y: distance,
@@ -2162,257 +2173,257 @@ var pcb_silkscreen_oval = z96.object({
2162
2173
  expectTypesMatch(true);
2163
2174
 
2164
2175
  // src/pcb/pcb_fabrication_note_text.ts
2165
- import { z as z97 } from "zod";
2166
- var pcb_fabrication_note_text = z97.object({
2167
- type: z97.literal("pcb_fabrication_note_text"),
2176
+ import { z as z98 } from "zod";
2177
+ var pcb_fabrication_note_text = z98.object({
2178
+ type: z98.literal("pcb_fabrication_note_text"),
2168
2179
  pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
2169
2180
  "pcb_fabrication_note_text"
2170
2181
  ),
2171
- subcircuit_id: z97.string().optional(),
2172
- pcb_group_id: z97.string().optional(),
2173
- font: z97.literal("tscircuit2024").default("tscircuit2024"),
2182
+ subcircuit_id: z98.string().optional(),
2183
+ pcb_group_id: z98.string().optional(),
2184
+ font: z98.literal("tscircuit2024").default("tscircuit2024"),
2174
2185
  font_size: distance.default("1mm"),
2175
- pcb_component_id: z97.string(),
2176
- text: z97.string(),
2186
+ pcb_component_id: z98.string(),
2187
+ text: z98.string(),
2177
2188
  layer: visible_layer,
2178
2189
  anchor_position: point.default({ x: 0, y: 0 }),
2179
- anchor_alignment: z97.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
2180
- color: z97.string().optional()
2190
+ anchor_alignment: z98.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
2191
+ color: z98.string().optional()
2181
2192
  }).describe(
2182
2193
  "Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
2183
2194
  );
2184
2195
  expectTypesMatch(true);
2185
2196
 
2186
2197
  // src/pcb/pcb_fabrication_note_path.ts
2187
- import { z as z98 } from "zod";
2188
- var pcb_fabrication_note_path = z98.object({
2189
- type: z98.literal("pcb_fabrication_note_path"),
2198
+ import { z as z99 } from "zod";
2199
+ var pcb_fabrication_note_path = z99.object({
2200
+ type: z99.literal("pcb_fabrication_note_path"),
2190
2201
  pcb_fabrication_note_path_id: getZodPrefixedIdWithDefault(
2191
2202
  "pcb_fabrication_note_path"
2192
2203
  ),
2193
- pcb_component_id: z98.string(),
2194
- subcircuit_id: z98.string().optional(),
2204
+ pcb_component_id: z99.string(),
2205
+ subcircuit_id: z99.string().optional(),
2195
2206
  layer: layer_ref,
2196
- route: z98.array(point),
2207
+ route: z99.array(point),
2197
2208
  stroke_width: length,
2198
- color: z98.string().optional()
2209
+ color: z99.string().optional()
2199
2210
  }).describe(
2200
2211
  "Defines a fabrication path on the PCB for fabricators or assemblers"
2201
2212
  );
2202
2213
  expectTypesMatch(true);
2203
2214
 
2204
2215
  // src/pcb/pcb_fabrication_note_rect.ts
2205
- import { z as z99 } from "zod";
2206
- var pcb_fabrication_note_rect = z99.object({
2207
- type: z99.literal("pcb_fabrication_note_rect"),
2216
+ import { z as z100 } from "zod";
2217
+ var pcb_fabrication_note_rect = z100.object({
2218
+ type: z100.literal("pcb_fabrication_note_rect"),
2208
2219
  pcb_fabrication_note_rect_id: getZodPrefixedIdWithDefault(
2209
2220
  "pcb_fabrication_note_rect"
2210
2221
  ),
2211
- pcb_component_id: z99.string(),
2212
- pcb_group_id: z99.string().optional(),
2213
- subcircuit_id: z99.string().optional(),
2222
+ pcb_component_id: z100.string(),
2223
+ pcb_group_id: z100.string().optional(),
2224
+ subcircuit_id: z100.string().optional(),
2214
2225
  center: point,
2215
2226
  width: length,
2216
2227
  height: length,
2217
2228
  layer: visible_layer,
2218
2229
  stroke_width: length.default("0.1mm"),
2219
2230
  corner_radius: length.optional(),
2220
- is_filled: z99.boolean().optional(),
2221
- has_stroke: z99.boolean().optional(),
2222
- is_stroke_dashed: z99.boolean().optional(),
2223
- color: z99.string().optional()
2231
+ is_filled: z100.boolean().optional(),
2232
+ has_stroke: z100.boolean().optional(),
2233
+ is_stroke_dashed: z100.boolean().optional(),
2234
+ color: z100.string().optional()
2224
2235
  }).describe("Defines a fabrication note rectangle on the PCB");
2225
2236
  expectTypesMatch(true);
2226
2237
 
2227
2238
  // src/pcb/pcb_fabrication_note_dimension.ts
2228
- import { z as z100 } from "zod";
2229
- var pcb_fabrication_note_dimension = z100.object({
2230
- type: z100.literal("pcb_fabrication_note_dimension"),
2239
+ import { z as z101 } from "zod";
2240
+ var pcb_fabrication_note_dimension = z101.object({
2241
+ type: z101.literal("pcb_fabrication_note_dimension"),
2231
2242
  pcb_fabrication_note_dimension_id: getZodPrefixedIdWithDefault(
2232
2243
  "pcb_fabrication_note_dimension"
2233
2244
  ),
2234
- pcb_component_id: z100.string(),
2235
- pcb_group_id: z100.string().optional(),
2236
- subcircuit_id: z100.string().optional(),
2245
+ pcb_component_id: z101.string(),
2246
+ pcb_group_id: z101.string().optional(),
2247
+ subcircuit_id: z101.string().optional(),
2237
2248
  layer: visible_layer,
2238
2249
  from: point,
2239
2250
  to: point,
2240
- text: z100.string().optional(),
2241
- text_ccw_rotation: z100.number().optional(),
2251
+ text: z101.string().optional(),
2252
+ text_ccw_rotation: z101.number().optional(),
2242
2253
  offset: length.optional(),
2243
2254
  offset_distance: length.optional(),
2244
- offset_direction: z100.object({
2245
- x: z100.number(),
2246
- y: z100.number()
2255
+ offset_direction: z101.object({
2256
+ x: z101.number(),
2257
+ y: z101.number()
2247
2258
  }).optional(),
2248
- font: z100.literal("tscircuit2024").default("tscircuit2024"),
2259
+ font: z101.literal("tscircuit2024").default("tscircuit2024"),
2249
2260
  font_size: length.default("1mm"),
2250
- color: z100.string().optional(),
2261
+ color: z101.string().optional(),
2251
2262
  arrow_size: length.default("1mm")
2252
2263
  }).describe("Defines a measurement annotation within PCB fabrication notes");
2253
2264
  expectTypesMatch(true);
2254
2265
 
2255
2266
  // src/pcb/pcb_note_text.ts
2256
- import { z as z101 } from "zod";
2257
- var pcb_note_text = z101.object({
2258
- type: z101.literal("pcb_note_text"),
2259
- pcb_note_text_id: getZodPrefixedIdWithDefault("pcb_note_text"),
2260
- pcb_component_id: z101.string().optional(),
2261
- pcb_group_id: z101.string().optional(),
2262
- subcircuit_id: z101.string().optional(),
2263
- name: z101.string().optional(),
2264
- font: z101.literal("tscircuit2024").default("tscircuit2024"),
2265
- font_size: distance.default("1mm"),
2266
- text: z101.string().optional(),
2267
- anchor_position: point.default({ x: 0, y: 0 }),
2268
- anchor_alignment: z101.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
2269
- color: z101.string().optional()
2270
- }).describe("Defines a documentation note in text on the PCB");
2271
- expectTypesMatch(true);
2272
-
2273
- // src/pcb/pcb_note_rect.ts
2274
2267
  import { z as z102 } from "zod";
2275
- var pcb_note_rect = z102.object({
2276
- type: z102.literal("pcb_note_rect"),
2277
- pcb_note_rect_id: getZodPrefixedIdWithDefault("pcb_note_rect"),
2268
+ var pcb_note_text = z102.object({
2269
+ type: z102.literal("pcb_note_text"),
2270
+ pcb_note_text_id: getZodPrefixedIdWithDefault("pcb_note_text"),
2278
2271
  pcb_component_id: z102.string().optional(),
2279
2272
  pcb_group_id: z102.string().optional(),
2280
2273
  subcircuit_id: z102.string().optional(),
2281
2274
  name: z102.string().optional(),
2275
+ font: z102.literal("tscircuit2024").default("tscircuit2024"),
2276
+ font_size: distance.default("1mm"),
2282
2277
  text: z102.string().optional(),
2283
- center: point,
2284
- width: length,
2285
- height: length,
2286
- stroke_width: length.default("0.1mm"),
2287
- corner_radius: length.optional(),
2288
- is_filled: z102.boolean().optional(),
2289
- has_stroke: z102.boolean().optional(),
2290
- is_stroke_dashed: z102.boolean().optional(),
2278
+ anchor_position: point.default({ x: 0, y: 0 }),
2279
+ anchor_alignment: z102.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
2291
2280
  color: z102.string().optional()
2292
- }).describe("Defines a rectangular documentation note on the PCB");
2281
+ }).describe("Defines a documentation note in text on the PCB");
2293
2282
  expectTypesMatch(true);
2294
2283
 
2295
- // src/pcb/pcb_note_path.ts
2284
+ // src/pcb/pcb_note_rect.ts
2296
2285
  import { z as z103 } from "zod";
2297
- var pcb_note_path = z103.object({
2298
- type: z103.literal("pcb_note_path"),
2299
- pcb_note_path_id: getZodPrefixedIdWithDefault("pcb_note_path"),
2286
+ var pcb_note_rect = z103.object({
2287
+ type: z103.literal("pcb_note_rect"),
2288
+ pcb_note_rect_id: getZodPrefixedIdWithDefault("pcb_note_rect"),
2300
2289
  pcb_component_id: z103.string().optional(),
2301
2290
  pcb_group_id: z103.string().optional(),
2302
2291
  subcircuit_id: z103.string().optional(),
2303
2292
  name: z103.string().optional(),
2304
2293
  text: z103.string().optional(),
2305
- route: z103.array(point),
2294
+ center: point,
2295
+ width: length,
2296
+ height: length,
2306
2297
  stroke_width: length.default("0.1mm"),
2298
+ corner_radius: length.optional(),
2299
+ is_filled: z103.boolean().optional(),
2300
+ has_stroke: z103.boolean().optional(),
2301
+ is_stroke_dashed: z103.boolean().optional(),
2307
2302
  color: z103.string().optional()
2308
- }).describe("Defines a polyline documentation note on the PCB");
2303
+ }).describe("Defines a rectangular documentation note on the PCB");
2309
2304
  expectTypesMatch(true);
2310
2305
 
2311
- // src/pcb/pcb_note_line.ts
2306
+ // src/pcb/pcb_note_path.ts
2312
2307
  import { z as z104 } from "zod";
2313
- var pcb_note_line = z104.object({
2314
- type: z104.literal("pcb_note_line"),
2315
- pcb_note_line_id: getZodPrefixedIdWithDefault("pcb_note_line"),
2308
+ var pcb_note_path = z104.object({
2309
+ type: z104.literal("pcb_note_path"),
2310
+ pcb_note_path_id: getZodPrefixedIdWithDefault("pcb_note_path"),
2316
2311
  pcb_component_id: z104.string().optional(),
2317
2312
  pcb_group_id: z104.string().optional(),
2318
2313
  subcircuit_id: z104.string().optional(),
2319
2314
  name: z104.string().optional(),
2320
2315
  text: z104.string().optional(),
2316
+ route: z104.array(point),
2317
+ stroke_width: length.default("0.1mm"),
2318
+ color: z104.string().optional()
2319
+ }).describe("Defines a polyline documentation note on the PCB");
2320
+ expectTypesMatch(true);
2321
+
2322
+ // src/pcb/pcb_note_line.ts
2323
+ import { z as z105 } from "zod";
2324
+ var pcb_note_line = z105.object({
2325
+ type: z105.literal("pcb_note_line"),
2326
+ pcb_note_line_id: getZodPrefixedIdWithDefault("pcb_note_line"),
2327
+ pcb_component_id: z105.string().optional(),
2328
+ pcb_group_id: z105.string().optional(),
2329
+ subcircuit_id: z105.string().optional(),
2330
+ name: z105.string().optional(),
2331
+ text: z105.string().optional(),
2321
2332
  x1: distance,
2322
2333
  y1: distance,
2323
2334
  x2: distance,
2324
2335
  y2: distance,
2325
2336
  stroke_width: distance.default("0.1mm"),
2326
- color: z104.string().optional(),
2327
- is_dashed: z104.boolean().optional()
2337
+ color: z105.string().optional(),
2338
+ is_dashed: z105.boolean().optional()
2328
2339
  }).describe("Defines a straight documentation note line on the PCB");
2329
2340
  expectTypesMatch(true);
2330
2341
 
2331
2342
  // src/pcb/pcb_note_dimension.ts
2332
- import { z as z105 } from "zod";
2333
- var pcb_note_dimension = z105.object({
2334
- type: z105.literal("pcb_note_dimension"),
2343
+ import { z as z106 } from "zod";
2344
+ var pcb_note_dimension = z106.object({
2345
+ type: z106.literal("pcb_note_dimension"),
2335
2346
  pcb_note_dimension_id: getZodPrefixedIdWithDefault("pcb_note_dimension"),
2336
- pcb_component_id: z105.string().optional(),
2337
- pcb_group_id: z105.string().optional(),
2338
- subcircuit_id: z105.string().optional(),
2339
- name: z105.string().optional(),
2347
+ pcb_component_id: z106.string().optional(),
2348
+ pcb_group_id: z106.string().optional(),
2349
+ subcircuit_id: z106.string().optional(),
2350
+ name: z106.string().optional(),
2340
2351
  from: point,
2341
2352
  to: point,
2342
- text: z105.string().optional(),
2343
- text_ccw_rotation: z105.number().optional(),
2353
+ text: z106.string().optional(),
2354
+ text_ccw_rotation: z106.number().optional(),
2344
2355
  offset_distance: length.optional(),
2345
- offset_direction: z105.object({
2346
- x: z105.number(),
2347
- y: z105.number()
2356
+ offset_direction: z106.object({
2357
+ x: z106.number(),
2358
+ y: z106.number()
2348
2359
  }).optional(),
2349
- font: z105.literal("tscircuit2024").default("tscircuit2024"),
2360
+ font: z106.literal("tscircuit2024").default("tscircuit2024"),
2350
2361
  font_size: length.default("1mm"),
2351
- color: z105.string().optional(),
2362
+ color: z106.string().optional(),
2352
2363
  arrow_size: length.default("1mm")
2353
2364
  }).describe("Defines a measurement annotation within PCB documentation notes");
2354
2365
  expectTypesMatch(true);
2355
2366
 
2356
2367
  // src/pcb/pcb_footprint_overlap_error.ts
2357
- import { z as z106 } from "zod";
2358
- var pcb_footprint_overlap_error = z106.object({
2359
- type: z106.literal("pcb_footprint_overlap_error"),
2368
+ import { z as z107 } from "zod";
2369
+ var pcb_footprint_overlap_error = z107.object({
2370
+ type: z107.literal("pcb_footprint_overlap_error"),
2360
2371
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
2361
- error_type: z106.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
2362
- message: z106.string(),
2363
- pcb_smtpad_ids: z106.array(z106.string()).optional(),
2364
- pcb_plated_hole_ids: z106.array(z106.string()).optional(),
2365
- pcb_hole_ids: z106.array(z106.string()).optional(),
2366
- pcb_keepout_ids: z106.array(z106.string()).optional()
2372
+ error_type: z107.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
2373
+ message: z107.string(),
2374
+ pcb_smtpad_ids: z107.array(z107.string()).optional(),
2375
+ pcb_plated_hole_ids: z107.array(z107.string()).optional(),
2376
+ pcb_hole_ids: z107.array(z107.string()).optional(),
2377
+ pcb_keepout_ids: z107.array(z107.string()).optional()
2367
2378
  }).describe("Error emitted when a pcb footprint overlaps with another element");
2368
2379
  expectTypesMatch(
2369
2380
  true
2370
2381
  );
2371
2382
 
2372
2383
  // src/pcb/pcb_keepout.ts
2373
- import { z as z107 } from "zod";
2374
- var pcb_keepout = z107.object({
2375
- type: z107.literal("pcb_keepout"),
2376
- shape: z107.literal("rect"),
2377
- pcb_group_id: z107.string().optional(),
2378
- subcircuit_id: z107.string().optional(),
2384
+ import { z as z108 } from "zod";
2385
+ var pcb_keepout = z108.object({
2386
+ type: z108.literal("pcb_keepout"),
2387
+ shape: z108.literal("rect"),
2388
+ pcb_group_id: z108.string().optional(),
2389
+ subcircuit_id: z108.string().optional(),
2379
2390
  center: point,
2380
2391
  width: distance,
2381
2392
  height: distance,
2382
- pcb_keepout_id: z107.string(),
2383
- layers: z107.array(z107.string()),
2393
+ pcb_keepout_id: z108.string(),
2394
+ layers: z108.array(z108.string()),
2384
2395
  // Specify layers where the keepout applies
2385
- description: z107.string().optional()
2396
+ description: z108.string().optional()
2386
2397
  // Optional description of the keepout
2387
2398
  }).or(
2388
- z107.object({
2389
- type: z107.literal("pcb_keepout"),
2390
- shape: z107.literal("circle"),
2391
- pcb_group_id: z107.string().optional(),
2392
- subcircuit_id: z107.string().optional(),
2399
+ z108.object({
2400
+ type: z108.literal("pcb_keepout"),
2401
+ shape: z108.literal("circle"),
2402
+ pcb_group_id: z108.string().optional(),
2403
+ subcircuit_id: z108.string().optional(),
2393
2404
  center: point,
2394
2405
  radius: distance,
2395
- pcb_keepout_id: z107.string(),
2396
- layers: z107.array(z107.string()),
2406
+ pcb_keepout_id: z108.string(),
2407
+ layers: z108.array(z108.string()),
2397
2408
  // Specify layers where the keepout applies
2398
- description: z107.string().optional()
2409
+ description: z108.string().optional()
2399
2410
  // Optional description of the keepout
2400
2411
  })
2401
2412
  );
2402
2413
  expectTypesMatch(true);
2403
2414
 
2404
2415
  // src/pcb/pcb_cutout.ts
2405
- import { z as z108 } from "zod";
2406
- var pcb_cutout_base = z108.object({
2407
- type: z108.literal("pcb_cutout"),
2416
+ import { z as z109 } from "zod";
2417
+ var pcb_cutout_base = z109.object({
2418
+ type: z109.literal("pcb_cutout"),
2408
2419
  pcb_cutout_id: getZodPrefixedIdWithDefault("pcb_cutout"),
2409
- pcb_group_id: z108.string().optional(),
2410
- subcircuit_id: z108.string().optional(),
2411
- pcb_board_id: z108.string().optional(),
2412
- pcb_panel_id: z108.string().optional()
2420
+ pcb_group_id: z109.string().optional(),
2421
+ subcircuit_id: z109.string().optional(),
2422
+ pcb_board_id: z109.string().optional(),
2423
+ pcb_panel_id: z109.string().optional()
2413
2424
  });
2414
2425
  var pcb_cutout_rect = pcb_cutout_base.extend({
2415
- shape: z108.literal("rect"),
2426
+ shape: z109.literal("rect"),
2416
2427
  center: point,
2417
2428
  width: length,
2418
2429
  height: length,
@@ -2421,26 +2432,26 @@ var pcb_cutout_rect = pcb_cutout_base.extend({
2421
2432
  });
2422
2433
  expectTypesMatch(true);
2423
2434
  var pcb_cutout_circle = pcb_cutout_base.extend({
2424
- shape: z108.literal("circle"),
2435
+ shape: z109.literal("circle"),
2425
2436
  center: point,
2426
2437
  radius: length
2427
2438
  });
2428
2439
  expectTypesMatch(true);
2429
2440
  var pcb_cutout_polygon = pcb_cutout_base.extend({
2430
- shape: z108.literal("polygon"),
2431
- points: z108.array(point)
2441
+ shape: z109.literal("polygon"),
2442
+ points: z109.array(point)
2432
2443
  });
2433
2444
  expectTypesMatch(true);
2434
2445
  var pcb_cutout_path = pcb_cutout_base.extend({
2435
- shape: z108.literal("path"),
2436
- route: z108.array(point),
2446
+ shape: z109.literal("path"),
2447
+ route: z109.array(point),
2437
2448
  slot_width: length,
2438
2449
  slot_length: length.optional(),
2439
2450
  space_between_slots: length.optional(),
2440
2451
  slot_corner_radius: length.optional()
2441
2452
  });
2442
2453
  expectTypesMatch(true);
2443
- var pcb_cutout = z108.discriminatedUnion("shape", [
2454
+ var pcb_cutout = z109.discriminatedUnion("shape", [
2444
2455
  pcb_cutout_rect,
2445
2456
  pcb_cutout_circle,
2446
2457
  pcb_cutout_polygon,
@@ -2449,121 +2460,121 @@ var pcb_cutout = z108.discriminatedUnion("shape", [
2449
2460
  expectTypesMatch(true);
2450
2461
 
2451
2462
  // src/pcb/pcb_missing_footprint_error.ts
2452
- import { z as z109 } from "zod";
2453
- var pcb_missing_footprint_error = z109.object({
2454
- type: z109.literal("pcb_missing_footprint_error"),
2463
+ import { z as z110 } from "zod";
2464
+ var pcb_missing_footprint_error = z110.object({
2465
+ type: z110.literal("pcb_missing_footprint_error"),
2455
2466
  pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
2456
2467
  "pcb_missing_footprint_error"
2457
2468
  ),
2458
- pcb_group_id: z109.string().optional(),
2459
- subcircuit_id: z109.string().optional(),
2460
- error_type: z109.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
2461
- source_component_id: z109.string(),
2462
- message: z109.string()
2469
+ pcb_group_id: z110.string().optional(),
2470
+ subcircuit_id: z110.string().optional(),
2471
+ error_type: z110.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
2472
+ source_component_id: z110.string(),
2473
+ message: z110.string()
2463
2474
  }).describe("Defines a missing footprint error on the PCB");
2464
2475
  expectTypesMatch(
2465
2476
  true
2466
2477
  );
2467
2478
 
2468
2479
  // src/pcb/external_footprint_load_error.ts
2469
- import { z as z110 } from "zod";
2470
- var external_footprint_load_error = z110.object({
2471
- type: z110.literal("external_footprint_load_error"),
2480
+ import { z as z111 } from "zod";
2481
+ var external_footprint_load_error = z111.object({
2482
+ type: z111.literal("external_footprint_load_error"),
2472
2483
  external_footprint_load_error_id: getZodPrefixedIdWithDefault(
2473
2484
  "external_footprint_load_error"
2474
2485
  ),
2475
- pcb_component_id: z110.string(),
2476
- source_component_id: z110.string(),
2477
- pcb_group_id: z110.string().optional(),
2478
- subcircuit_id: z110.string().optional(),
2479
- footprinter_string: z110.string().optional(),
2480
- error_type: z110.literal("external_footprint_load_error").default("external_footprint_load_error"),
2481
- message: z110.string()
2486
+ pcb_component_id: z111.string(),
2487
+ source_component_id: z111.string(),
2488
+ pcb_group_id: z111.string().optional(),
2489
+ subcircuit_id: z111.string().optional(),
2490
+ footprinter_string: z111.string().optional(),
2491
+ error_type: z111.literal("external_footprint_load_error").default("external_footprint_load_error"),
2492
+ message: z111.string()
2482
2493
  }).describe("Defines an error when an external footprint fails to load");
2483
2494
  expectTypesMatch(true);
2484
2495
 
2485
2496
  // src/pcb/circuit_json_footprint_load_error.ts
2486
- import { z as z111 } from "zod";
2487
- var circuit_json_footprint_load_error = z111.object({
2488
- type: z111.literal("circuit_json_footprint_load_error"),
2497
+ import { z as z112 } from "zod";
2498
+ var circuit_json_footprint_load_error = z112.object({
2499
+ type: z112.literal("circuit_json_footprint_load_error"),
2489
2500
  circuit_json_footprint_load_error_id: getZodPrefixedIdWithDefault(
2490
2501
  "circuit_json_footprint_load_error"
2491
2502
  ),
2492
- pcb_component_id: z111.string(),
2493
- source_component_id: z111.string(),
2494
- pcb_group_id: z111.string().optional(),
2495
- subcircuit_id: z111.string().optional(),
2496
- error_type: z111.literal("circuit_json_footprint_load_error").default("circuit_json_footprint_load_error"),
2497
- message: z111.string(),
2498
- circuit_json: z111.array(z111.any()).optional()
2503
+ pcb_component_id: z112.string(),
2504
+ source_component_id: z112.string(),
2505
+ pcb_group_id: z112.string().optional(),
2506
+ subcircuit_id: z112.string().optional(),
2507
+ error_type: z112.literal("circuit_json_footprint_load_error").default("circuit_json_footprint_load_error"),
2508
+ message: z112.string(),
2509
+ circuit_json: z112.array(z112.any()).optional()
2499
2510
  }).describe("Defines an error when a circuit JSON footprint fails to load");
2500
2511
  expectTypesMatch(true);
2501
2512
 
2502
2513
  // src/pcb/pcb_group.ts
2503
- import { z as z112 } from "zod";
2504
- var pcb_group = z112.object({
2505
- type: z112.literal("pcb_group"),
2514
+ import { z as z113 } from "zod";
2515
+ var pcb_group = z113.object({
2516
+ type: z113.literal("pcb_group"),
2506
2517
  pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
2507
- source_group_id: z112.string(),
2508
- is_subcircuit: z112.boolean().optional(),
2509
- subcircuit_id: z112.string().optional(),
2518
+ source_group_id: z113.string(),
2519
+ is_subcircuit: z113.boolean().optional(),
2520
+ subcircuit_id: z113.string().optional(),
2510
2521
  width: length.optional(),
2511
2522
  height: length.optional(),
2512
2523
  center: point,
2513
- outline: z112.array(point).optional(),
2524
+ outline: z113.array(point).optional(),
2514
2525
  anchor_position: point.optional(),
2515
- anchor_alignment: z112.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
2516
- pcb_component_ids: z112.array(z112.string()),
2517
- child_layout_mode: z112.enum(["packed", "none"]).optional(),
2518
- name: z112.string().optional(),
2519
- description: z112.string().optional(),
2520
- layout_mode: z112.string().optional(),
2521
- autorouter_configuration: z112.object({
2526
+ anchor_alignment: z113.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
2527
+ pcb_component_ids: z113.array(z113.string()),
2528
+ child_layout_mode: z113.enum(["packed", "none"]).optional(),
2529
+ name: z113.string().optional(),
2530
+ description: z113.string().optional(),
2531
+ layout_mode: z113.string().optional(),
2532
+ autorouter_configuration: z113.object({
2522
2533
  trace_clearance: length
2523
2534
  }).optional(),
2524
- autorouter_used_string: z112.string().optional()
2535
+ autorouter_used_string: z113.string().optional()
2525
2536
  }).describe("Defines a group of components on the PCB");
2526
2537
  expectTypesMatch(true);
2527
2538
 
2528
2539
  // src/pcb/pcb_autorouting_error.ts
2529
- import { z as z113 } from "zod";
2530
- var pcb_autorouting_error = z113.object({
2531
- type: z113.literal("pcb_autorouting_error"),
2540
+ import { z as z114 } from "zod";
2541
+ var pcb_autorouting_error = z114.object({
2542
+ type: z114.literal("pcb_autorouting_error"),
2532
2543
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
2533
- error_type: z113.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
2534
- message: z113.string(),
2535
- subcircuit_id: z113.string().optional()
2544
+ error_type: z114.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
2545
+ message: z114.string(),
2546
+ subcircuit_id: z114.string().optional()
2536
2547
  }).describe("The autorouting has failed to route a portion of the board");
2537
2548
  expectTypesMatch(true);
2538
2549
 
2539
2550
  // src/pcb/pcb_manual_edit_conflict_warning.ts
2540
- import { z as z114 } from "zod";
2541
- var pcb_manual_edit_conflict_warning = z114.object({
2542
- type: z114.literal("pcb_manual_edit_conflict_warning"),
2551
+ import { z as z115 } from "zod";
2552
+ var pcb_manual_edit_conflict_warning = z115.object({
2553
+ type: z115.literal("pcb_manual_edit_conflict_warning"),
2543
2554
  pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
2544
2555
  "pcb_manual_edit_conflict_warning"
2545
2556
  ),
2546
- warning_type: z114.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
2547
- message: z114.string(),
2548
- pcb_component_id: z114.string(),
2549
- pcb_group_id: z114.string().optional(),
2550
- subcircuit_id: z114.string().optional(),
2551
- source_component_id: z114.string()
2557
+ warning_type: z115.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
2558
+ message: z115.string(),
2559
+ pcb_component_id: z115.string(),
2560
+ pcb_group_id: z115.string().optional(),
2561
+ subcircuit_id: z115.string().optional(),
2562
+ source_component_id: z115.string()
2552
2563
  }).describe(
2553
2564
  "Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
2554
2565
  );
2555
2566
  expectTypesMatch(true);
2556
2567
 
2557
2568
  // src/pcb/pcb_breakout_point.ts
2558
- import { z as z115 } from "zod";
2559
- var pcb_breakout_point = z115.object({
2560
- type: z115.literal("pcb_breakout_point"),
2569
+ import { z as z116 } from "zod";
2570
+ var pcb_breakout_point = z116.object({
2571
+ type: z116.literal("pcb_breakout_point"),
2561
2572
  pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
2562
- pcb_group_id: z115.string(),
2563
- subcircuit_id: z115.string().optional(),
2564
- source_trace_id: z115.string().optional(),
2565
- source_port_id: z115.string().optional(),
2566
- source_net_id: z115.string().optional(),
2573
+ pcb_group_id: z116.string(),
2574
+ subcircuit_id: z116.string().optional(),
2575
+ source_trace_id: z116.string().optional(),
2576
+ source_port_id: z116.string().optional(),
2577
+ source_net_id: z116.string().optional(),
2567
2578
  x: distance,
2568
2579
  y: distance
2569
2580
  }).describe(
@@ -2572,61 +2583,61 @@ var pcb_breakout_point = z115.object({
2572
2583
  expectTypesMatch(true);
2573
2584
 
2574
2585
  // src/pcb/pcb_ground_plane.ts
2575
- import { z as z116 } from "zod";
2576
- var pcb_ground_plane = z116.object({
2577
- type: z116.literal("pcb_ground_plane"),
2586
+ import { z as z117 } from "zod";
2587
+ var pcb_ground_plane = z117.object({
2588
+ type: z117.literal("pcb_ground_plane"),
2578
2589
  pcb_ground_plane_id: getZodPrefixedIdWithDefault("pcb_ground_plane"),
2579
- source_pcb_ground_plane_id: z116.string(),
2580
- source_net_id: z116.string(),
2581
- pcb_group_id: z116.string().optional(),
2582
- subcircuit_id: z116.string().optional()
2590
+ source_pcb_ground_plane_id: z117.string(),
2591
+ source_net_id: z117.string(),
2592
+ pcb_group_id: z117.string().optional(),
2593
+ subcircuit_id: z117.string().optional()
2583
2594
  }).describe("Defines a ground plane on the PCB");
2584
2595
  expectTypesMatch(true);
2585
2596
 
2586
2597
  // src/pcb/pcb_ground_plane_region.ts
2587
- import { z as z117 } from "zod";
2588
- var pcb_ground_plane_region = z117.object({
2589
- type: z117.literal("pcb_ground_plane_region"),
2598
+ import { z as z118 } from "zod";
2599
+ var pcb_ground_plane_region = z118.object({
2600
+ type: z118.literal("pcb_ground_plane_region"),
2590
2601
  pcb_ground_plane_region_id: getZodPrefixedIdWithDefault(
2591
2602
  "pcb_ground_plane_region"
2592
2603
  ),
2593
- pcb_ground_plane_id: z117.string(),
2594
- pcb_group_id: z117.string().optional(),
2595
- subcircuit_id: z117.string().optional(),
2604
+ pcb_ground_plane_id: z118.string(),
2605
+ pcb_group_id: z118.string().optional(),
2606
+ subcircuit_id: z118.string().optional(),
2596
2607
  layer: layer_ref,
2597
- points: z117.array(point)
2608
+ points: z118.array(point)
2598
2609
  }).describe("Defines a polygon region of a ground plane");
2599
2610
  expectTypesMatch(true);
2600
2611
 
2601
2612
  // src/pcb/pcb_thermal_spoke.ts
2602
- import { z as z118 } from "zod";
2603
- var pcb_thermal_spoke = z118.object({
2604
- type: z118.literal("pcb_thermal_spoke"),
2613
+ import { z as z119 } from "zod";
2614
+ var pcb_thermal_spoke = z119.object({
2615
+ type: z119.literal("pcb_thermal_spoke"),
2605
2616
  pcb_thermal_spoke_id: getZodPrefixedIdWithDefault("pcb_thermal_spoke"),
2606
- pcb_ground_plane_id: z118.string(),
2607
- shape: z118.string(),
2608
- spoke_count: z118.number(),
2617
+ pcb_ground_plane_id: z119.string(),
2618
+ shape: z119.string(),
2619
+ spoke_count: z119.number(),
2609
2620
  spoke_thickness: distance,
2610
2621
  spoke_inner_diameter: distance,
2611
2622
  spoke_outer_diameter: distance,
2612
- pcb_plated_hole_id: z118.string().optional(),
2613
- subcircuit_id: z118.string().optional()
2623
+ pcb_plated_hole_id: z119.string().optional(),
2624
+ subcircuit_id: z119.string().optional()
2614
2625
  }).describe("Pattern for connecting a ground plane to a plated hole");
2615
2626
  expectTypesMatch(true);
2616
2627
 
2617
2628
  // src/pcb/pcb_copper_pour.ts
2618
- import { z as z119 } from "zod";
2619
- var pcb_copper_pour_base = z119.object({
2620
- type: z119.literal("pcb_copper_pour"),
2629
+ import { z as z120 } from "zod";
2630
+ var pcb_copper_pour_base = z120.object({
2631
+ type: z120.literal("pcb_copper_pour"),
2621
2632
  pcb_copper_pour_id: getZodPrefixedIdWithDefault("pcb_copper_pour"),
2622
- pcb_group_id: z119.string().optional(),
2623
- subcircuit_id: z119.string().optional(),
2633
+ pcb_group_id: z120.string().optional(),
2634
+ subcircuit_id: z120.string().optional(),
2624
2635
  layer: layer_ref,
2625
- source_net_id: z119.string().optional(),
2626
- covered_with_solder_mask: z119.boolean().optional().default(true)
2636
+ source_net_id: z120.string().optional(),
2637
+ covered_with_solder_mask: z120.boolean().optional().default(true)
2627
2638
  });
2628
2639
  var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
2629
- shape: z119.literal("rect"),
2640
+ shape: z120.literal("rect"),
2630
2641
  center: point,
2631
2642
  width: length,
2632
2643
  height: length,
@@ -2634,16 +2645,16 @@ var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
2634
2645
  });
2635
2646
  expectTypesMatch(true);
2636
2647
  var pcb_copper_pour_brep = pcb_copper_pour_base.extend({
2637
- shape: z119.literal("brep"),
2648
+ shape: z120.literal("brep"),
2638
2649
  brep_shape
2639
2650
  });
2640
2651
  expectTypesMatch(true);
2641
2652
  var pcb_copper_pour_polygon = pcb_copper_pour_base.extend({
2642
- shape: z119.literal("polygon"),
2643
- points: z119.array(point)
2653
+ shape: z120.literal("polygon"),
2654
+ points: z120.array(point)
2644
2655
  });
2645
2656
  expectTypesMatch(true);
2646
- var pcb_copper_pour = z119.discriminatedUnion("shape", [
2657
+ var pcb_copper_pour = z120.discriminatedUnion("shape", [
2647
2658
  pcb_copper_pour_rect,
2648
2659
  pcb_copper_pour_brep,
2649
2660
  pcb_copper_pour_polygon
@@ -2651,148 +2662,148 @@ var pcb_copper_pour = z119.discriminatedUnion("shape", [
2651
2662
  expectTypesMatch(true);
2652
2663
 
2653
2664
  // src/pcb/pcb_component_outside_board_error.ts
2654
- import { z as z120 } from "zod";
2655
- var pcb_component_outside_board_error = z120.object({
2656
- type: z120.literal("pcb_component_outside_board_error"),
2665
+ import { z as z121 } from "zod";
2666
+ var pcb_component_outside_board_error = z121.object({
2667
+ type: z121.literal("pcb_component_outside_board_error"),
2657
2668
  pcb_component_outside_board_error_id: getZodPrefixedIdWithDefault(
2658
2669
  "pcb_component_outside_board_error"
2659
2670
  ),
2660
- error_type: z120.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
2661
- message: z120.string(),
2662
- pcb_component_id: z120.string(),
2663
- pcb_board_id: z120.string(),
2671
+ error_type: z121.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
2672
+ message: z121.string(),
2673
+ pcb_component_id: z121.string(),
2674
+ pcb_board_id: z121.string(),
2664
2675
  component_center: point,
2665
- component_bounds: z120.object({
2666
- min_x: z120.number(),
2667
- max_x: z120.number(),
2668
- min_y: z120.number(),
2669
- max_y: z120.number()
2676
+ component_bounds: z121.object({
2677
+ min_x: z121.number(),
2678
+ max_x: z121.number(),
2679
+ min_y: z121.number(),
2680
+ max_y: z121.number()
2670
2681
  }),
2671
- subcircuit_id: z120.string().optional(),
2672
- source_component_id: z120.string().optional()
2682
+ subcircuit_id: z121.string().optional(),
2683
+ source_component_id: z121.string().optional()
2673
2684
  }).describe(
2674
2685
  "Error emitted when a PCB component is placed outside the board boundaries"
2675
2686
  );
2676
2687
  expectTypesMatch(true);
2677
2688
 
2678
2689
  // src/pcb/pcb_component_invalid_layer_error.ts
2679
- import { z as z121 } from "zod";
2680
- var pcb_component_invalid_layer_error = z121.object({
2681
- type: z121.literal("pcb_component_invalid_layer_error"),
2690
+ import { z as z122 } from "zod";
2691
+ var pcb_component_invalid_layer_error = z122.object({
2692
+ type: z122.literal("pcb_component_invalid_layer_error"),
2682
2693
  pcb_component_invalid_layer_error_id: getZodPrefixedIdWithDefault(
2683
2694
  "pcb_component_invalid_layer_error"
2684
2695
  ),
2685
- error_type: z121.literal("pcb_component_invalid_layer_error").default("pcb_component_invalid_layer_error"),
2686
- message: z121.string(),
2687
- pcb_component_id: z121.string().optional(),
2688
- source_component_id: z121.string(),
2696
+ error_type: z122.literal("pcb_component_invalid_layer_error").default("pcb_component_invalid_layer_error"),
2697
+ message: z122.string(),
2698
+ pcb_component_id: z122.string().optional(),
2699
+ source_component_id: z122.string(),
2689
2700
  layer: layer_ref,
2690
- subcircuit_id: z121.string().optional()
2701
+ subcircuit_id: z122.string().optional()
2691
2702
  }).describe(
2692
2703
  "Error emitted when a component is placed on an invalid layer (components can only be on 'top' or 'bottom' layers)"
2693
2704
  );
2694
2705
  expectTypesMatch(true);
2695
2706
 
2696
2707
  // src/pcb/pcb_via_clearance_error.ts
2697
- import { z as z122 } from "zod";
2698
- var pcb_via_clearance_error = z122.object({
2699
- type: z122.literal("pcb_via_clearance_error"),
2708
+ import { z as z123 } from "zod";
2709
+ var pcb_via_clearance_error = z123.object({
2710
+ type: z123.literal("pcb_via_clearance_error"),
2700
2711
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
2701
- error_type: z122.literal("pcb_via_clearance_error").default("pcb_via_clearance_error"),
2702
- message: z122.string(),
2703
- pcb_via_ids: z122.array(z122.string()).min(2),
2712
+ error_type: z123.literal("pcb_via_clearance_error").default("pcb_via_clearance_error"),
2713
+ message: z123.string(),
2714
+ pcb_via_ids: z123.array(z123.string()).min(2),
2704
2715
  minimum_clearance: distance.optional(),
2705
2716
  actual_clearance: distance.optional(),
2706
- pcb_center: z122.object({
2707
- x: z122.number().optional(),
2708
- y: z122.number().optional()
2717
+ pcb_center: z123.object({
2718
+ x: z123.number().optional(),
2719
+ y: z123.number().optional()
2709
2720
  }).optional(),
2710
- subcircuit_id: z122.string().optional()
2721
+ subcircuit_id: z123.string().optional()
2711
2722
  }).describe("Error emitted when vias are closer than the allowed clearance");
2712
2723
  expectTypesMatch(true);
2713
2724
 
2714
2725
  // src/pcb/pcb_courtyard_rect.ts
2715
- import { z as z123 } from "zod";
2716
- var pcb_courtyard_rect = z123.object({
2717
- type: z123.literal("pcb_courtyard_rect"),
2726
+ import { z as z124 } from "zod";
2727
+ var pcb_courtyard_rect = z124.object({
2728
+ type: z124.literal("pcb_courtyard_rect"),
2718
2729
  pcb_courtyard_rect_id: getZodPrefixedIdWithDefault("pcb_courtyard_rect"),
2719
- pcb_component_id: z123.string(),
2720
- pcb_group_id: z123.string().optional(),
2721
- subcircuit_id: z123.string().optional(),
2730
+ pcb_component_id: z124.string(),
2731
+ pcb_group_id: z124.string().optional(),
2732
+ subcircuit_id: z124.string().optional(),
2722
2733
  center: point,
2723
2734
  width: length,
2724
2735
  height: length,
2725
2736
  layer: visible_layer,
2726
- color: z123.string().optional()
2737
+ color: z124.string().optional()
2727
2738
  }).describe("Defines a courtyard rectangle on the PCB");
2728
2739
  expectTypesMatch(true);
2729
2740
 
2730
2741
  // src/pcb/pcb_courtyard_outline.ts
2731
- import { z as z124 } from "zod";
2732
- var pcb_courtyard_outline = z124.object({
2733
- type: z124.literal("pcb_courtyard_outline"),
2742
+ import { z as z125 } from "zod";
2743
+ var pcb_courtyard_outline = z125.object({
2744
+ type: z125.literal("pcb_courtyard_outline"),
2734
2745
  pcb_courtyard_outline_id: getZodPrefixedIdWithDefault(
2735
2746
  "pcb_courtyard_outline"
2736
2747
  ),
2737
- pcb_component_id: z124.string(),
2738
- pcb_group_id: z124.string().optional(),
2739
- subcircuit_id: z124.string().optional(),
2748
+ pcb_component_id: z125.string(),
2749
+ pcb_group_id: z125.string().optional(),
2750
+ subcircuit_id: z125.string().optional(),
2740
2751
  layer: visible_layer,
2741
- outline: z124.array(point).min(2),
2752
+ outline: z125.array(point).min(2),
2742
2753
  stroke_width: length.default("0.1mm"),
2743
- is_closed: z124.boolean().optional(),
2744
- is_stroke_dashed: z124.boolean().optional(),
2745
- color: z124.string().optional()
2754
+ is_closed: z125.boolean().optional(),
2755
+ is_stroke_dashed: z125.boolean().optional(),
2756
+ color: z125.string().optional()
2746
2757
  }).describe("Defines a courtyard outline on the PCB");
2747
2758
  expectTypesMatch(true);
2748
2759
 
2749
2760
  // src/pcb/pcb_courtyard_polygon.ts
2750
- import { z as z125 } from "zod";
2751
- var pcb_courtyard_polygon = z125.object({
2752
- type: z125.literal("pcb_courtyard_polygon"),
2761
+ import { z as z126 } from "zod";
2762
+ var pcb_courtyard_polygon = z126.object({
2763
+ type: z126.literal("pcb_courtyard_polygon"),
2753
2764
  pcb_courtyard_polygon_id: getZodPrefixedIdWithDefault(
2754
2765
  "pcb_courtyard_polygon"
2755
2766
  ),
2756
- pcb_component_id: z125.string(),
2757
- pcb_group_id: z125.string().optional(),
2758
- subcircuit_id: z125.string().optional(),
2767
+ pcb_component_id: z126.string(),
2768
+ pcb_group_id: z126.string().optional(),
2769
+ subcircuit_id: z126.string().optional(),
2759
2770
  layer: visible_layer,
2760
- points: z125.array(point).min(3),
2761
- color: z125.string().optional()
2771
+ points: z126.array(point).min(3),
2772
+ color: z126.string().optional()
2762
2773
  }).describe("Defines a courtyard polygon on the PCB");
2763
2774
  expectTypesMatch(true);
2764
2775
 
2765
2776
  // src/cad/cad_component.ts
2766
- import { z as z126 } from "zod";
2767
- var cad_component = z126.object({
2768
- type: z126.literal("cad_component"),
2769
- cad_component_id: z126.string(),
2770
- pcb_component_id: z126.string(),
2771
- source_component_id: z126.string(),
2777
+ import { z as z127 } from "zod";
2778
+ var cad_component = z127.object({
2779
+ type: z127.literal("cad_component"),
2780
+ cad_component_id: z127.string(),
2781
+ pcb_component_id: z127.string(),
2782
+ source_component_id: z127.string(),
2772
2783
  position: point3,
2773
2784
  rotation: point3.optional(),
2774
2785
  size: point3.optional(),
2775
2786
  layer: layer_ref.optional(),
2776
- subcircuit_id: z126.string().optional(),
2787
+ subcircuit_id: z127.string().optional(),
2777
2788
  // These are all ways to generate/load the 3d model
2778
- footprinter_string: z126.string().optional(),
2779
- model_obj_url: z126.string().optional(),
2780
- model_stl_url: z126.string().optional(),
2781
- model_3mf_url: z126.string().optional(),
2782
- model_gltf_url: z126.string().optional(),
2783
- model_glb_url: z126.string().optional(),
2784
- model_step_url: z126.string().optional(),
2785
- model_wrl_url: z126.string().optional(),
2786
- model_unit_to_mm_scale_factor: z126.number().optional(),
2787
- model_jscad: z126.any().optional(),
2788
- show_as_translucent_model: z126.boolean().optional()
2789
+ footprinter_string: z127.string().optional(),
2790
+ model_obj_url: z127.string().optional(),
2791
+ model_stl_url: z127.string().optional(),
2792
+ model_3mf_url: z127.string().optional(),
2793
+ model_gltf_url: z127.string().optional(),
2794
+ model_glb_url: z127.string().optional(),
2795
+ model_step_url: z127.string().optional(),
2796
+ model_wrl_url: z127.string().optional(),
2797
+ model_unit_to_mm_scale_factor: z127.number().optional(),
2798
+ model_jscad: z127.any().optional(),
2799
+ show_as_translucent_model: z127.boolean().optional()
2789
2800
  }).describe("Defines a component on the PCB");
2790
2801
  expectTypesMatch(true);
2791
2802
 
2792
2803
  // src/simulation/simulation_voltage_source.ts
2793
- import { z as z127 } from "zod";
2794
- var wave_shape = z127.enum(["sinewave", "square", "triangle", "sawtooth"]);
2795
- var percentage = z127.union([z127.string(), z127.number()]).transform((val) => {
2804
+ import { z as z128 } from "zod";
2805
+ var wave_shape = z128.enum(["sinewave", "square", "triangle", "sawtooth"]);
2806
+ var percentage = z128.union([z128.string(), z128.number()]).transform((val) => {
2796
2807
  if (typeof val === "string") {
2797
2808
  if (val.endsWith("%")) {
2798
2809
  return parseFloat(val.slice(0, -1)) / 100;
@@ -2801,30 +2812,30 @@ var percentage = z127.union([z127.string(), z127.number()]).transform((val) => {
2801
2812
  }
2802
2813
  return val;
2803
2814
  }).pipe(
2804
- z127.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
2815
+ z128.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
2805
2816
  );
2806
- var simulation_dc_voltage_source = z127.object({
2807
- type: z127.literal("simulation_voltage_source"),
2817
+ var simulation_dc_voltage_source = z128.object({
2818
+ type: z128.literal("simulation_voltage_source"),
2808
2819
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
2809
2820
  "simulation_voltage_source"
2810
2821
  ),
2811
- is_dc_source: z127.literal(true).optional().default(true),
2812
- positive_source_port_id: z127.string().optional(),
2813
- negative_source_port_id: z127.string().optional(),
2814
- positive_source_net_id: z127.string().optional(),
2815
- negative_source_net_id: z127.string().optional(),
2822
+ is_dc_source: z128.literal(true).optional().default(true),
2823
+ positive_source_port_id: z128.string().optional(),
2824
+ negative_source_port_id: z128.string().optional(),
2825
+ positive_source_net_id: z128.string().optional(),
2826
+ negative_source_net_id: z128.string().optional(),
2816
2827
  voltage
2817
2828
  }).describe("Defines a DC voltage source for simulation");
2818
- var simulation_ac_voltage_source = z127.object({
2819
- type: z127.literal("simulation_voltage_source"),
2829
+ var simulation_ac_voltage_source = z128.object({
2830
+ type: z128.literal("simulation_voltage_source"),
2820
2831
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
2821
2832
  "simulation_voltage_source"
2822
2833
  ),
2823
- is_dc_source: z127.literal(false),
2824
- terminal1_source_port_id: z127.string().optional(),
2825
- terminal2_source_port_id: z127.string().optional(),
2826
- terminal1_source_net_id: z127.string().optional(),
2827
- terminal2_source_net_id: z127.string().optional(),
2834
+ is_dc_source: z128.literal(false),
2835
+ terminal1_source_port_id: z128.string().optional(),
2836
+ terminal2_source_port_id: z128.string().optional(),
2837
+ terminal1_source_net_id: z128.string().optional(),
2838
+ terminal2_source_net_id: z128.string().optional(),
2828
2839
  voltage: voltage.optional(),
2829
2840
  frequency: frequency.optional(),
2830
2841
  peak_to_peak_voltage: voltage.optional(),
@@ -2832,25 +2843,25 @@ var simulation_ac_voltage_source = z127.object({
2832
2843
  phase: rotation.optional(),
2833
2844
  duty_cycle: percentage.optional()
2834
2845
  }).describe("Defines an AC voltage source for simulation");
2835
- var simulation_voltage_source = z127.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
2846
+ var simulation_voltage_source = z128.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
2836
2847
  expectTypesMatch(true);
2837
2848
  expectTypesMatch(true);
2838
2849
  expectTypesMatch(true);
2839
2850
 
2840
2851
  // src/simulation/simulation_experiment.ts
2841
- import { z as z128 } from "zod";
2842
- var experiment_type = z128.union([
2843
- z128.literal("spice_dc_sweep"),
2844
- z128.literal("spice_dc_operating_point"),
2845
- z128.literal("spice_transient_analysis"),
2846
- z128.literal("spice_ac_analysis")
2852
+ import { z as z129 } from "zod";
2853
+ var experiment_type = z129.union([
2854
+ z129.literal("spice_dc_sweep"),
2855
+ z129.literal("spice_dc_operating_point"),
2856
+ z129.literal("spice_transient_analysis"),
2857
+ z129.literal("spice_ac_analysis")
2847
2858
  ]);
2848
- var simulation_experiment = z128.object({
2849
- type: z128.literal("simulation_experiment"),
2859
+ var simulation_experiment = z129.object({
2860
+ type: z129.literal("simulation_experiment"),
2850
2861
  simulation_experiment_id: getZodPrefixedIdWithDefault(
2851
2862
  "simulation_experiment"
2852
2863
  ),
2853
- name: z128.string(),
2864
+ name: z129.string(),
2854
2865
  experiment_type,
2855
2866
  time_per_step: duration_ms.optional(),
2856
2867
  start_time_ms: ms.optional(),
@@ -2859,53 +2870,53 @@ var simulation_experiment = z128.object({
2859
2870
  expectTypesMatch(true);
2860
2871
 
2861
2872
  // src/simulation/simulation_transient_voltage_graph.ts
2862
- import { z as z129 } from "zod";
2863
- var simulation_transient_voltage_graph = z129.object({
2864
- type: z129.literal("simulation_transient_voltage_graph"),
2873
+ import { z as z130 } from "zod";
2874
+ var simulation_transient_voltage_graph = z130.object({
2875
+ type: z130.literal("simulation_transient_voltage_graph"),
2865
2876
  simulation_transient_voltage_graph_id: getZodPrefixedIdWithDefault(
2866
2877
  "simulation_transient_voltage_graph"
2867
2878
  ),
2868
- simulation_experiment_id: z129.string(),
2869
- timestamps_ms: z129.array(z129.number()).optional(),
2870
- voltage_levels: z129.array(z129.number()),
2871
- source_component_id: z129.string().optional(),
2872
- subcircuit_connectivity_map_key: z129.string().optional(),
2879
+ simulation_experiment_id: z130.string(),
2880
+ timestamps_ms: z130.array(z130.number()).optional(),
2881
+ voltage_levels: z130.array(z130.number()),
2882
+ source_component_id: z130.string().optional(),
2883
+ subcircuit_connectivity_map_key: z130.string().optional(),
2873
2884
  time_per_step: duration_ms,
2874
2885
  start_time_ms: ms,
2875
2886
  end_time_ms: ms,
2876
- name: z129.string().optional(),
2877
- color: z129.string().optional()
2887
+ name: z130.string().optional(),
2888
+ color: z130.string().optional()
2878
2889
  }).describe("Stores voltage measurements over time for a simulation");
2879
2890
  expectTypesMatch(true);
2880
2891
 
2881
2892
  // src/simulation/simulation_switch.ts
2882
- import { z as z130 } from "zod";
2883
- var simulation_switch = z130.object({
2884
- type: z130.literal("simulation_switch"),
2893
+ import { z as z131 } from "zod";
2894
+ var simulation_switch = z131.object({
2895
+ type: z131.literal("simulation_switch"),
2885
2896
  simulation_switch_id: getZodPrefixedIdWithDefault("simulation_switch"),
2886
- source_component_id: z130.string().optional(),
2897
+ source_component_id: z131.string().optional(),
2887
2898
  closes_at: ms.optional(),
2888
2899
  opens_at: ms.optional(),
2889
- starts_closed: z130.boolean().optional(),
2900
+ starts_closed: z131.boolean().optional(),
2890
2901
  switching_frequency: frequency.optional()
2891
2902
  }).describe("Defines a switch for simulation timing control");
2892
2903
  expectTypesMatch(true);
2893
2904
 
2894
2905
  // src/simulation/simulation_voltage_probe.ts
2895
- import { z as z131 } from "zod";
2896
- var simulation_voltage_probe = z131.object({
2897
- type: z131.literal("simulation_voltage_probe"),
2906
+ import { z as z132 } from "zod";
2907
+ var simulation_voltage_probe = z132.object({
2908
+ type: z132.literal("simulation_voltage_probe"),
2898
2909
  simulation_voltage_probe_id: getZodPrefixedIdWithDefault(
2899
2910
  "simulation_voltage_probe"
2900
2911
  ),
2901
- source_component_id: z131.string().optional(),
2902
- name: z131.string().optional(),
2903
- signal_input_source_port_id: z131.string().optional(),
2904
- signal_input_source_net_id: z131.string().optional(),
2905
- reference_input_source_port_id: z131.string().optional(),
2906
- reference_input_source_net_id: z131.string().optional(),
2907
- subcircuit_id: z131.string().optional(),
2908
- color: z131.string().optional()
2912
+ source_component_id: z132.string().optional(),
2913
+ name: z132.string().optional(),
2914
+ signal_input_source_port_id: z132.string().optional(),
2915
+ signal_input_source_net_id: z132.string().optional(),
2916
+ reference_input_source_port_id: z132.string().optional(),
2917
+ reference_input_source_net_id: z132.string().optional(),
2918
+ subcircuit_id: z132.string().optional(),
2919
+ color: z132.string().optional()
2909
2920
  }).describe(
2910
2921
  "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."
2911
2922
  ).superRefine((data, ctx) => {
@@ -2915,20 +2926,20 @@ var simulation_voltage_probe = z131.object({
2915
2926
  const has_nets = !!data.signal_input_source_net_id || !!data.reference_input_source_net_id;
2916
2927
  if (has_ports && has_nets) {
2917
2928
  ctx.addIssue({
2918
- code: z131.ZodIssueCode.custom,
2929
+ code: z132.ZodIssueCode.custom,
2919
2930
  message: "Cannot mix port and net connections in a differential probe."
2920
2931
  });
2921
2932
  } else if (has_ports) {
2922
2933
  if (!data.signal_input_source_port_id || !data.reference_input_source_port_id) {
2923
2934
  ctx.addIssue({
2924
- code: z131.ZodIssueCode.custom,
2935
+ code: z132.ZodIssueCode.custom,
2925
2936
  message: "Differential port probe requires both signal_input_source_port_id and reference_input_source_port_id."
2926
2937
  });
2927
2938
  }
2928
2939
  } else if (has_nets) {
2929
2940
  if (!data.signal_input_source_net_id || !data.reference_input_source_net_id) {
2930
2941
  ctx.addIssue({
2931
- code: z131.ZodIssueCode.custom,
2942
+ code: z132.ZodIssueCode.custom,
2932
2943
  message: "Differential net probe requires both signal_input_source_net_id and reference_input_source_net_id."
2933
2944
  });
2934
2945
  }
@@ -2936,7 +2947,7 @@ var simulation_voltage_probe = z131.object({
2936
2947
  } else {
2937
2948
  if (!!data.signal_input_source_port_id === !!data.signal_input_source_net_id) {
2938
2949
  ctx.addIssue({
2939
- code: z131.ZodIssueCode.custom,
2950
+ code: z132.ZodIssueCode.custom,
2940
2951
  message: "A voltage probe must have exactly one of signal_input_source_port_id or signal_input_source_net_id."
2941
2952
  });
2942
2953
  }
@@ -2945,24 +2956,25 @@ var simulation_voltage_probe = z131.object({
2945
2956
  expectTypesMatch(true);
2946
2957
 
2947
2958
  // src/simulation/simulation_unknown_experiment_error.ts
2948
- import { z as z132 } from "zod";
2949
- var simulation_unknown_experiment_error = z132.object({
2950
- type: z132.literal("simulation_unknown_experiment_error"),
2959
+ import { z as z133 } from "zod";
2960
+ var simulation_unknown_experiment_error = z133.object({
2961
+ type: z133.literal("simulation_unknown_experiment_error"),
2951
2962
  simulation_unknown_experiment_error_id: getZodPrefixedIdWithDefault(
2952
2963
  "simulation_unknown_experiment_error"
2953
2964
  ),
2954
- error_type: z132.literal("simulation_unknown_experiment_error").default("simulation_unknown_experiment_error"),
2955
- message: z132.string(),
2956
- simulation_experiment_id: z132.string().optional(),
2957
- subcircuit_id: z132.string().optional()
2965
+ error_type: z133.literal("simulation_unknown_experiment_error").default("simulation_unknown_experiment_error"),
2966
+ message: z133.string(),
2967
+ simulation_experiment_id: z133.string().optional(),
2968
+ subcircuit_id: z133.string().optional()
2958
2969
  }).describe("An unknown error occurred during the simulation experiment.");
2959
2970
  expectTypesMatch(true);
2960
2971
 
2961
2972
  // src/any_circuit_element.ts
2962
- import { z as z133 } from "zod";
2963
- var any_circuit_element = z133.union([
2973
+ import { z as z134 } from "zod";
2974
+ var any_circuit_element = z134.union([
2964
2975
  source_trace,
2965
2976
  source_port,
2977
+ source_component_internal_connection,
2966
2978
  any_source_component,
2967
2979
  source_net,
2968
2980
  source_group,
@@ -3218,6 +3230,7 @@ export {
3218
3230
  size,
3219
3231
  source_board,
3220
3232
  source_component_base,
3233
+ source_component_internal_connection,
3221
3234
  source_failed_to_create_component_error,
3222
3235
  source_group,
3223
3236
  source_interconnect,