circuit-json 0.0.154 → 0.0.156

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
@@ -746,8 +746,25 @@ var schematic_voltage_probe = z42.object({
746
746
  }).describe("Defines a voltage probe measurement point on a schematic trace");
747
747
  expectTypesMatch(true);
748
748
 
749
- // src/pcb/properties/layer_ref.ts
749
+ // src/schematic/schematic_manual_edit_conflict_warning.ts
750
750
  import { z as z43 } from "zod";
751
+ var schematic_manual_edit_conflict_warning = z43.object({
752
+ type: z43.literal("schematic_manual_edit_conflict_warning"),
753
+ schematic_warning_id: getZodPrefixedIdWithDefault(
754
+ "schematic_manual_edit_conflict_warning"
755
+ ),
756
+ message: z43.string(),
757
+ schematic_component_id: z43.string(),
758
+ schematic_group_id: z43.string().optional(),
759
+ subcircuit_id: z43.string().optional(),
760
+ source_component_id: z43.string()
761
+ }).describe(
762
+ "Warning emitted when a component has both manual placement and explicit schX/schY coordinates"
763
+ );
764
+ expectTypesMatch(true);
765
+
766
+ // src/pcb/properties/layer_ref.ts
767
+ import { z as z44 } from "zod";
751
768
  var all_layers = [
752
769
  "top",
753
770
  "bottom",
@@ -758,9 +775,9 @@ var all_layers = [
758
775
  "inner5",
759
776
  "inner6"
760
777
  ];
761
- var layer_string = z43.enum(all_layers);
778
+ var layer_string = z44.enum(all_layers);
762
779
  var layer_ref = layer_string.or(
763
- z43.object({
780
+ z44.object({
764
781
  name: layer_string
765
782
  })
766
783
  ).transform((layer) => {
@@ -769,52 +786,52 @@ var layer_ref = layer_string.or(
769
786
  }
770
787
  return layer.name;
771
788
  });
772
- var visible_layer = z43.enum(["top", "bottom"]);
789
+ var visible_layer = z44.enum(["top", "bottom"]);
773
790
 
774
791
  // src/pcb/properties/pcb_route_hints.ts
775
- import { z as z44 } from "zod";
776
- var pcb_route_hint = z44.object({
792
+ import { z as z45 } from "zod";
793
+ var pcb_route_hint = z45.object({
777
794
  x: distance,
778
795
  y: distance,
779
- via: z44.boolean().optional(),
796
+ via: z45.boolean().optional(),
780
797
  via_to_layer: layer_ref.optional()
781
798
  });
782
- var pcb_route_hints = z44.array(pcb_route_hint);
799
+ var pcb_route_hints = z45.array(pcb_route_hint);
783
800
 
784
801
  // src/pcb/properties/route_hint_point.ts
785
- import { z as z45 } from "zod";
786
- var route_hint_point = z45.object({
802
+ import { z as z46 } from "zod";
803
+ var route_hint_point = z46.object({
787
804
  x: distance,
788
805
  y: distance,
789
- via: z45.boolean().optional(),
806
+ via: z46.boolean().optional(),
790
807
  to_layer: layer_ref.optional(),
791
808
  trace_width: distance.optional()
792
809
  });
793
810
 
794
811
  // src/pcb/pcb_component.ts
795
- import { z as z46 } from "zod";
796
- var pcb_component = z46.object({
797
- type: z46.literal("pcb_component"),
812
+ import { z as z47 } from "zod";
813
+ var pcb_component = z47.object({
814
+ type: z47.literal("pcb_component"),
798
815
  pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
799
- source_component_id: z46.string(),
816
+ source_component_id: z47.string(),
800
817
  center: point,
801
818
  layer: layer_ref,
802
819
  rotation,
803
820
  width: length,
804
821
  height: length,
805
- subcircuit_id: z46.string().optional()
822
+ subcircuit_id: z47.string().optional()
806
823
  }).describe("Defines a component on the PCB");
807
824
  expectTypesMatch(true);
808
825
 
809
826
  // src/pcb/pcb_hole.ts
810
- import { z as z47 } from "zod";
811
- var pcb_hole_circle_or_square = z47.object({
812
- type: z47.literal("pcb_hole"),
827
+ import { z as z48 } from "zod";
828
+ var pcb_hole_circle_or_square = z48.object({
829
+ type: z48.literal("pcb_hole"),
813
830
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
814
- pcb_group_id: z47.string().optional(),
815
- subcircuit_id: z47.string().optional(),
816
- hole_shape: z47.enum(["circle", "square"]),
817
- hole_diameter: z47.number(),
831
+ pcb_group_id: z48.string().optional(),
832
+ subcircuit_id: z48.string().optional(),
833
+ hole_shape: z48.enum(["circle", "square"]),
834
+ hole_diameter: z48.number(),
818
835
  x: distance,
819
836
  y: distance
820
837
  });
@@ -822,14 +839,14 @@ var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
822
839
  "Defines a circular or square hole on the PCB"
823
840
  );
824
841
  expectTypesMatch(true);
825
- var pcb_hole_oval = z47.object({
826
- type: z47.literal("pcb_hole"),
842
+ var pcb_hole_oval = z48.object({
843
+ type: z48.literal("pcb_hole"),
827
844
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
828
- pcb_group_id: z47.string().optional(),
829
- subcircuit_id: z47.string().optional(),
830
- hole_shape: z47.literal("oval"),
831
- hole_width: z47.number(),
832
- hole_height: z47.number(),
845
+ pcb_group_id: z48.string().optional(),
846
+ subcircuit_id: z48.string().optional(),
847
+ hole_shape: z48.literal("oval"),
848
+ hole_width: z48.number(),
849
+ hole_height: z48.number(),
833
850
  x: distance,
834
851
  y: distance
835
852
  });
@@ -840,77 +857,77 @@ expectTypesMatch(true);
840
857
  var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval);
841
858
 
842
859
  // src/pcb/pcb_plated_hole.ts
843
- import { z as z48 } from "zod";
844
- var pcb_plated_hole_circle = z48.object({
845
- type: z48.literal("pcb_plated_hole"),
846
- shape: z48.literal("circle"),
847
- pcb_group_id: z48.string().optional(),
848
- subcircuit_id: z48.string().optional(),
849
- outer_diameter: z48.number(),
850
- hole_diameter: z48.number(),
860
+ import { z as z49 } from "zod";
861
+ var pcb_plated_hole_circle = z49.object({
862
+ type: z49.literal("pcb_plated_hole"),
863
+ shape: z49.literal("circle"),
864
+ pcb_group_id: z49.string().optional(),
865
+ subcircuit_id: z49.string().optional(),
866
+ outer_diameter: z49.number(),
867
+ hole_diameter: z49.number(),
851
868
  x: distance,
852
869
  y: distance,
853
- layers: z48.array(layer_ref),
854
- port_hints: z48.array(z48.string()).optional(),
855
- pcb_component_id: z48.string().optional(),
856
- pcb_port_id: z48.string().optional(),
870
+ layers: z49.array(layer_ref),
871
+ port_hints: z49.array(z49.string()).optional(),
872
+ pcb_component_id: z49.string().optional(),
873
+ pcb_port_id: z49.string().optional(),
857
874
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
858
875
  });
859
- var pcb_plated_hole_oval = z48.object({
860
- type: z48.literal("pcb_plated_hole"),
861
- shape: z48.enum(["oval", "pill"]),
862
- pcb_group_id: z48.string().optional(),
863
- subcircuit_id: z48.string().optional(),
864
- outer_width: z48.number(),
865
- outer_height: z48.number(),
866
- hole_width: z48.number(),
867
- hole_height: z48.number(),
876
+ var pcb_plated_hole_oval = z49.object({
877
+ type: z49.literal("pcb_plated_hole"),
878
+ shape: z49.enum(["oval", "pill"]),
879
+ pcb_group_id: z49.string().optional(),
880
+ subcircuit_id: z49.string().optional(),
881
+ outer_width: z49.number(),
882
+ outer_height: z49.number(),
883
+ hole_width: z49.number(),
884
+ hole_height: z49.number(),
868
885
  x: distance,
869
886
  y: distance,
870
- layers: z48.array(layer_ref),
871
- port_hints: z48.array(z48.string()).optional(),
872
- pcb_component_id: z48.string().optional(),
873
- pcb_port_id: z48.string().optional(),
887
+ layers: z49.array(layer_ref),
888
+ port_hints: z49.array(z49.string()).optional(),
889
+ pcb_component_id: z49.string().optional(),
890
+ pcb_port_id: z49.string().optional(),
874
891
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
875
892
  });
876
- var pcb_circular_hole_with_rect_pad = z48.object({
877
- type: z48.literal("pcb_plated_hole"),
878
- shape: z48.literal("circular_hole_with_rect_pad"),
879
- pcb_group_id: z48.string().optional(),
880
- subcircuit_id: z48.string().optional(),
881
- hole_shape: z48.literal("circle"),
882
- pad_shape: z48.literal("rect"),
883
- hole_diameter: z48.number(),
884
- rect_pad_width: z48.number(),
885
- rect_pad_height: z48.number(),
893
+ var pcb_circular_hole_with_rect_pad = z49.object({
894
+ type: z49.literal("pcb_plated_hole"),
895
+ shape: z49.literal("circular_hole_with_rect_pad"),
896
+ pcb_group_id: z49.string().optional(),
897
+ subcircuit_id: z49.string().optional(),
898
+ hole_shape: z49.literal("circle"),
899
+ pad_shape: z49.literal("rect"),
900
+ hole_diameter: z49.number(),
901
+ rect_pad_width: z49.number(),
902
+ rect_pad_height: z49.number(),
886
903
  x: distance,
887
904
  y: distance,
888
- layers: z48.array(layer_ref),
889
- port_hints: z48.array(z48.string()).optional(),
890
- pcb_component_id: z48.string().optional(),
891
- pcb_port_id: z48.string().optional(),
905
+ layers: z49.array(layer_ref),
906
+ port_hints: z49.array(z49.string()).optional(),
907
+ pcb_component_id: z49.string().optional(),
908
+ pcb_port_id: z49.string().optional(),
892
909
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
893
910
  });
894
- var pcb_pill_hole_with_rect_pad = z48.object({
895
- type: z48.literal("pcb_plated_hole"),
896
- shape: z48.literal("pill_hole_with_rect_pad"),
897
- pcb_group_id: z48.string().optional(),
898
- subcircuit_id: z48.string().optional(),
899
- hole_shape: z48.literal("pill"),
900
- pad_shape: z48.literal("rect"),
901
- hole_width: z48.number(),
902
- hole_height: z48.number(),
903
- rect_pad_width: z48.number(),
904
- rect_pad_height: z48.number(),
911
+ var pcb_pill_hole_with_rect_pad = z49.object({
912
+ type: z49.literal("pcb_plated_hole"),
913
+ shape: z49.literal("pill_hole_with_rect_pad"),
914
+ pcb_group_id: z49.string().optional(),
915
+ subcircuit_id: z49.string().optional(),
916
+ hole_shape: z49.literal("pill"),
917
+ pad_shape: z49.literal("rect"),
918
+ hole_width: z49.number(),
919
+ hole_height: z49.number(),
920
+ rect_pad_width: z49.number(),
921
+ rect_pad_height: z49.number(),
905
922
  x: distance,
906
923
  y: distance,
907
- layers: z48.array(layer_ref),
908
- port_hints: z48.array(z48.string()).optional(),
909
- pcb_component_id: z48.string().optional(),
910
- pcb_port_id: z48.string().optional(),
924
+ layers: z49.array(layer_ref),
925
+ port_hints: z49.array(z49.string()).optional(),
926
+ pcb_component_id: z49.string().optional(),
927
+ pcb_port_id: z49.string().optional(),
911
928
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
912
929
  });
913
- var pcb_plated_hole = z48.union([
930
+ var pcb_plated_hole = z49.union([
914
931
  pcb_plated_hole_circle,
915
932
  pcb_plated_hole_oval,
916
933
  pcb_circular_hole_with_rect_pad
@@ -922,84 +939,84 @@ expectTypesMatch(true);
922
939
  expectTypesMatch(true);
923
940
 
924
941
  // src/pcb/pcb_port.ts
925
- import { z as z49 } from "zod";
926
- var pcb_port = z49.object({
927
- type: z49.literal("pcb_port"),
942
+ import { z as z50 } from "zod";
943
+ var pcb_port = z50.object({
944
+ type: z50.literal("pcb_port"),
928
945
  pcb_port_id: getZodPrefixedIdWithDefault("pcb_port"),
929
- pcb_group_id: z49.string().optional(),
930
- subcircuit_id: z49.string().optional(),
931
- source_port_id: z49.string(),
932
- pcb_component_id: z49.string(),
946
+ pcb_group_id: z50.string().optional(),
947
+ subcircuit_id: z50.string().optional(),
948
+ source_port_id: z50.string(),
949
+ pcb_component_id: z50.string(),
933
950
  x: distance,
934
951
  y: distance,
935
- layers: z49.array(layer_ref)
952
+ layers: z50.array(layer_ref)
936
953
  }).describe("Defines a port on the PCB");
937
954
  expectTypesMatch(true);
938
955
 
939
956
  // src/pcb/pcb_smtpad.ts
940
- import { z as z50 } from "zod";
941
- var pcb_smtpad_circle = z50.object({
942
- type: z50.literal("pcb_smtpad"),
943
- shape: z50.literal("circle"),
957
+ import { z as z51 } from "zod";
958
+ var pcb_smtpad_circle = z51.object({
959
+ type: z51.literal("pcb_smtpad"),
960
+ shape: z51.literal("circle"),
944
961
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
945
- pcb_group_id: z50.string().optional(),
946
- subcircuit_id: z50.string().optional(),
962
+ pcb_group_id: z51.string().optional(),
963
+ subcircuit_id: z51.string().optional(),
947
964
  x: distance,
948
965
  y: distance,
949
- radius: z50.number(),
966
+ radius: z51.number(),
950
967
  layer: layer_ref,
951
- port_hints: z50.array(z50.string()).optional(),
952
- pcb_component_id: z50.string().optional(),
953
- pcb_port_id: z50.string().optional()
968
+ port_hints: z51.array(z51.string()).optional(),
969
+ pcb_component_id: z51.string().optional(),
970
+ pcb_port_id: z51.string().optional()
954
971
  });
955
- var pcb_smtpad_rect = z50.object({
956
- type: z50.literal("pcb_smtpad"),
957
- shape: z50.literal("rect"),
972
+ var pcb_smtpad_rect = z51.object({
973
+ type: z51.literal("pcb_smtpad"),
974
+ shape: z51.literal("rect"),
958
975
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
959
- pcb_group_id: z50.string().optional(),
960
- subcircuit_id: z50.string().optional(),
976
+ pcb_group_id: z51.string().optional(),
977
+ subcircuit_id: z51.string().optional(),
961
978
  x: distance,
962
979
  y: distance,
963
- width: z50.number(),
964
- height: z50.number(),
980
+ width: z51.number(),
981
+ height: z51.number(),
965
982
  layer: layer_ref,
966
- port_hints: z50.array(z50.string()).optional(),
967
- pcb_component_id: z50.string().optional(),
968
- pcb_port_id: z50.string().optional()
983
+ port_hints: z51.array(z51.string()).optional(),
984
+ pcb_component_id: z51.string().optional(),
985
+ pcb_port_id: z51.string().optional()
969
986
  });
970
- var pcb_smtpad_rotated_rect = z50.object({
971
- type: z50.literal("pcb_smtpad"),
972
- shape: z50.literal("rotated_rect"),
987
+ var pcb_smtpad_rotated_rect = z51.object({
988
+ type: z51.literal("pcb_smtpad"),
989
+ shape: z51.literal("rotated_rect"),
973
990
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
974
- pcb_group_id: z50.string().optional(),
975
- subcircuit_id: z50.string().optional(),
991
+ pcb_group_id: z51.string().optional(),
992
+ subcircuit_id: z51.string().optional(),
976
993
  x: distance,
977
994
  y: distance,
978
- width: z50.number(),
979
- height: z50.number(),
995
+ width: z51.number(),
996
+ height: z51.number(),
980
997
  ccw_rotation: rotation,
981
998
  layer: layer_ref,
982
- port_hints: z50.array(z50.string()).optional(),
983
- pcb_component_id: z50.string().optional(),
984
- pcb_port_id: z50.string().optional()
999
+ port_hints: z51.array(z51.string()).optional(),
1000
+ pcb_component_id: z51.string().optional(),
1001
+ pcb_port_id: z51.string().optional()
985
1002
  });
986
- var pcb_smtpad_pill = z50.object({
987
- type: z50.literal("pcb_smtpad"),
988
- shape: z50.literal("pill"),
1003
+ var pcb_smtpad_pill = z51.object({
1004
+ type: z51.literal("pcb_smtpad"),
1005
+ shape: z51.literal("pill"),
989
1006
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
990
- pcb_group_id: z50.string().optional(),
991
- subcircuit_id: z50.string().optional(),
1007
+ pcb_group_id: z51.string().optional(),
1008
+ subcircuit_id: z51.string().optional(),
992
1009
  x: distance,
993
1010
  y: distance,
994
- width: z50.number(),
995
- height: z50.number(),
996
- radius: z50.number(),
1011
+ width: z51.number(),
1012
+ height: z51.number(),
1013
+ radius: z51.number(),
997
1014
  layer: layer_ref,
998
- port_hints: z50.array(z50.string()).optional(),
999
- pcb_component_id: z50.string().optional(),
1000
- pcb_port_id: z50.string().optional()
1015
+ port_hints: z51.array(z51.string()).optional(),
1016
+ pcb_component_id: z51.string().optional(),
1017
+ pcb_port_id: z51.string().optional()
1001
1018
  });
1002
- var pcb_smtpad = z50.union([
1019
+ var pcb_smtpad = z51.union([
1003
1020
  pcb_smtpad_circle,
1004
1021
  pcb_smtpad_rect,
1005
1022
  pcb_smtpad_rotated_rect,
@@ -1011,106 +1028,106 @@ expectTypesMatch(true);
1011
1028
  expectTypesMatch(true);
1012
1029
 
1013
1030
  // src/pcb/pcb_solder_paste.ts
1014
- import { z as z51 } from "zod";
1015
- var pcb_solder_paste_circle = z51.object({
1016
- type: z51.literal("pcb_solder_paste"),
1017
- shape: z51.literal("circle"),
1031
+ import { z as z52 } from "zod";
1032
+ var pcb_solder_paste_circle = z52.object({
1033
+ type: z52.literal("pcb_solder_paste"),
1034
+ shape: z52.literal("circle"),
1018
1035
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1019
- pcb_group_id: z51.string().optional(),
1020
- subcircuit_id: z51.string().optional(),
1036
+ pcb_group_id: z52.string().optional(),
1037
+ subcircuit_id: z52.string().optional(),
1021
1038
  x: distance,
1022
1039
  y: distance,
1023
- radius: z51.number(),
1040
+ radius: z52.number(),
1024
1041
  layer: layer_ref,
1025
- pcb_component_id: z51.string().optional(),
1026
- pcb_smtpad_id: z51.string().optional()
1042
+ pcb_component_id: z52.string().optional(),
1043
+ pcb_smtpad_id: z52.string().optional()
1027
1044
  });
1028
- var pcb_solder_paste_rect = z51.object({
1029
- type: z51.literal("pcb_solder_paste"),
1030
- shape: z51.literal("rect"),
1045
+ var pcb_solder_paste_rect = z52.object({
1046
+ type: z52.literal("pcb_solder_paste"),
1047
+ shape: z52.literal("rect"),
1031
1048
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1032
- pcb_group_id: z51.string().optional(),
1033
- subcircuit_id: z51.string().optional(),
1049
+ pcb_group_id: z52.string().optional(),
1050
+ subcircuit_id: z52.string().optional(),
1034
1051
  x: distance,
1035
1052
  y: distance,
1036
- width: z51.number(),
1037
- height: z51.number(),
1053
+ width: z52.number(),
1054
+ height: z52.number(),
1038
1055
  layer: layer_ref,
1039
- pcb_component_id: z51.string().optional(),
1040
- pcb_smtpad_id: z51.string().optional()
1056
+ pcb_component_id: z52.string().optional(),
1057
+ pcb_smtpad_id: z52.string().optional()
1041
1058
  });
1042
- var pcb_solder_paste = z51.union([pcb_solder_paste_circle, pcb_solder_paste_rect]).describe("Defines solderpaste on the PCB");
1059
+ var pcb_solder_paste = z52.union([pcb_solder_paste_circle, pcb_solder_paste_rect]).describe("Defines solderpaste on the PCB");
1043
1060
  expectTypesMatch(true);
1044
1061
  expectTypesMatch(true);
1045
1062
 
1046
1063
  // src/pcb/pcb_text.ts
1047
- import { z as z52 } from "zod";
1048
- var pcb_text = z52.object({
1049
- type: z52.literal("pcb_text"),
1064
+ import { z as z53 } from "zod";
1065
+ var pcb_text = z53.object({
1066
+ type: z53.literal("pcb_text"),
1050
1067
  pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
1051
- pcb_group_id: z52.string().optional(),
1052
- subcircuit_id: z52.string().optional(),
1053
- text: z52.string(),
1068
+ pcb_group_id: z53.string().optional(),
1069
+ subcircuit_id: z53.string().optional(),
1070
+ text: z53.string(),
1054
1071
  center: point,
1055
1072
  layer: layer_ref,
1056
1073
  width: length,
1057
1074
  height: length,
1058
- lines: z52.number(),
1075
+ lines: z53.number(),
1059
1076
  // @ts-ignore
1060
- align: z52.enum(["bottom-left"])
1077
+ align: z53.enum(["bottom-left"])
1061
1078
  }).describe("Defines text on the PCB");
1062
1079
  expectTypesMatch(true);
1063
1080
 
1064
1081
  // src/pcb/pcb_trace.ts
1065
- import { z as z53 } from "zod";
1066
- var pcb_trace_route_point_wire = z53.object({
1067
- route_type: z53.literal("wire"),
1082
+ import { z as z54 } from "zod";
1083
+ var pcb_trace_route_point_wire = z54.object({
1084
+ route_type: z54.literal("wire"),
1068
1085
  x: distance,
1069
1086
  y: distance,
1070
1087
  width: distance,
1071
- start_pcb_port_id: z53.string().optional(),
1072
- end_pcb_port_id: z53.string().optional(),
1088
+ start_pcb_port_id: z54.string().optional(),
1089
+ end_pcb_port_id: z54.string().optional(),
1073
1090
  layer: layer_ref
1074
1091
  });
1075
- var pcb_trace_route_point_via = z53.object({
1076
- route_type: z53.literal("via"),
1092
+ var pcb_trace_route_point_via = z54.object({
1093
+ route_type: z54.literal("via"),
1077
1094
  x: distance,
1078
1095
  y: distance,
1079
- from_layer: z53.string(),
1080
- to_layer: z53.string()
1096
+ from_layer: z54.string(),
1097
+ to_layer: z54.string()
1081
1098
  });
1082
- var pcb_trace_route_point = z53.union([
1099
+ var pcb_trace_route_point = z54.union([
1083
1100
  pcb_trace_route_point_wire,
1084
1101
  pcb_trace_route_point_via
1085
1102
  ]);
1086
- var pcb_trace = z53.object({
1087
- type: z53.literal("pcb_trace"),
1088
- source_trace_id: z53.string().optional(),
1089
- pcb_component_id: z53.string().optional(),
1103
+ var pcb_trace = z54.object({
1104
+ type: z54.literal("pcb_trace"),
1105
+ source_trace_id: z54.string().optional(),
1106
+ pcb_component_id: z54.string().optional(),
1090
1107
  pcb_trace_id: getZodPrefixedIdWithDefault("pcb_trace"),
1091
- pcb_group_id: z53.string().optional(),
1092
- subcircuit_id: z53.string().optional(),
1093
- route_thickness_mode: z53.enum(["constant", "interpolated"]).default("constant").optional(),
1094
- route_order_index: z53.number().optional(),
1095
- should_round_corners: z53.boolean().optional(),
1096
- trace_length: z53.number().optional(),
1097
- route: z53.array(
1098
- z53.union([
1099
- z53.object({
1100
- route_type: z53.literal("wire"),
1108
+ pcb_group_id: z54.string().optional(),
1109
+ subcircuit_id: z54.string().optional(),
1110
+ route_thickness_mode: z54.enum(["constant", "interpolated"]).default("constant").optional(),
1111
+ route_order_index: z54.number().optional(),
1112
+ should_round_corners: z54.boolean().optional(),
1113
+ trace_length: z54.number().optional(),
1114
+ route: z54.array(
1115
+ z54.union([
1116
+ z54.object({
1117
+ route_type: z54.literal("wire"),
1101
1118
  x: distance,
1102
1119
  y: distance,
1103
1120
  width: distance,
1104
- start_pcb_port_id: z53.string().optional(),
1105
- end_pcb_port_id: z53.string().optional(),
1121
+ start_pcb_port_id: z54.string().optional(),
1122
+ end_pcb_port_id: z54.string().optional(),
1106
1123
  layer: layer_ref
1107
1124
  }),
1108
- z53.object({
1109
- route_type: z53.literal("via"),
1125
+ z54.object({
1126
+ route_type: z54.literal("via"),
1110
1127
  x: distance,
1111
1128
  y: distance,
1112
- from_layer: z53.string(),
1113
- to_layer: z53.string()
1129
+ from_layer: z54.string(),
1130
+ to_layer: z54.string()
1114
1131
  })
1115
1132
  ])
1116
1133
  )
@@ -1119,37 +1136,37 @@ expectTypesMatch(true);
1119
1136
  expectTypesMatch(true);
1120
1137
 
1121
1138
  // src/pcb/pcb_trace_error.ts
1122
- import { z as z54 } from "zod";
1123
- var pcb_trace_error = z54.object({
1124
- type: z54.literal("pcb_trace_error"),
1139
+ import { z as z55 } from "zod";
1140
+ var pcb_trace_error = z55.object({
1141
+ type: z55.literal("pcb_trace_error"),
1125
1142
  pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
1126
- error_type: z54.literal("pcb_trace_error"),
1127
- message: z54.string(),
1143
+ error_type: z55.literal("pcb_trace_error"),
1144
+ message: z55.string(),
1128
1145
  center: point.optional(),
1129
- pcb_trace_id: z54.string(),
1130
- source_trace_id: z54.string(),
1131
- pcb_component_ids: z54.array(z54.string()),
1132
- pcb_port_ids: z54.array(z54.string())
1146
+ pcb_trace_id: z55.string(),
1147
+ source_trace_id: z55.string(),
1148
+ pcb_component_ids: z55.array(z55.string()),
1149
+ pcb_port_ids: z55.array(z55.string())
1133
1150
  }).describe("Defines a trace error on the PCB");
1134
1151
  expectTypesMatch(true);
1135
1152
 
1136
1153
  // src/pcb/pcb_port_not_matched_error.ts
1137
- import { z as z55 } from "zod";
1138
- var pcb_port_not_matched_error = z55.object({
1139
- type: z55.literal("pcb_port_not_matched_error"),
1154
+ import { z as z56 } from "zod";
1155
+ var pcb_port_not_matched_error = z56.object({
1156
+ type: z56.literal("pcb_port_not_matched_error"),
1140
1157
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
1141
- message: z55.string(),
1142
- pcb_component_ids: z55.array(z55.string())
1158
+ message: z56.string(),
1159
+ pcb_component_ids: z56.array(z56.string())
1143
1160
  }).describe("Defines a trace error on the PCB where a port is not matched");
1144
1161
  expectTypesMatch(true);
1145
1162
 
1146
1163
  // src/pcb/pcb_via.ts
1147
- import { z as z56 } from "zod";
1148
- var pcb_via = z56.object({
1149
- type: z56.literal("pcb_via"),
1164
+ import { z as z57 } from "zod";
1165
+ var pcb_via = z57.object({
1166
+ type: z57.literal("pcb_via"),
1150
1167
  pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
1151
- pcb_group_id: z56.string().optional(),
1152
- subcircuit_id: z56.string().optional(),
1168
+ pcb_group_id: z57.string().optional(),
1169
+ subcircuit_id: z57.string().optional(),
1153
1170
  x: distance,
1154
1171
  y: distance,
1155
1172
  outer_diameter: distance.default("0.6mm"),
@@ -1158,56 +1175,56 @@ var pcb_via = z56.object({
1158
1175
  from_layer: layer_ref.optional(),
1159
1176
  /** @deprecated */
1160
1177
  to_layer: layer_ref.optional(),
1161
- layers: z56.array(layer_ref),
1162
- pcb_trace_id: z56.string().optional()
1178
+ layers: z57.array(layer_ref),
1179
+ pcb_trace_id: z57.string().optional()
1163
1180
  }).describe("Defines a via on the PCB");
1164
1181
  expectTypesMatch(true);
1165
1182
 
1166
1183
  // src/pcb/pcb_board.ts
1167
- import { z as z57 } from "zod";
1168
- var pcb_board = z57.object({
1169
- type: z57.literal("pcb_board"),
1184
+ import { z as z58 } from "zod";
1185
+ var pcb_board = z58.object({
1186
+ type: z58.literal("pcb_board"),
1170
1187
  pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
1171
- is_subcircuit: z57.boolean().optional(),
1172
- subcircuit_id: z57.string().optional(),
1188
+ is_subcircuit: z58.boolean().optional(),
1189
+ subcircuit_id: z58.string().optional(),
1173
1190
  width: length,
1174
1191
  height: length,
1175
1192
  center: point,
1176
1193
  thickness: length.optional().default(1.4),
1177
- num_layers: z57.number().optional().default(4),
1178
- outline: z57.array(point).optional(),
1179
- material: z57.enum(["fr4", "fr1"]).default("fr4")
1194
+ num_layers: z58.number().optional().default(4),
1195
+ outline: z58.array(point).optional(),
1196
+ material: z58.enum(["fr4", "fr1"]).default("fr4")
1180
1197
  }).describe("Defines the board outline of the PCB");
1181
1198
  expectTypesMatch(true);
1182
1199
 
1183
1200
  // src/pcb/pcb_placement_error.ts
1184
- import { z as z58 } from "zod";
1185
- var pcb_placement_error = z58.object({
1186
- type: z58.literal("pcb_placement_error"),
1201
+ import { z as z59 } from "zod";
1202
+ var pcb_placement_error = z59.object({
1203
+ type: z59.literal("pcb_placement_error"),
1187
1204
  pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
1188
- message: z58.string()
1205
+ message: z59.string()
1189
1206
  }).describe("Defines a placement error on the PCB");
1190
1207
  expectTypesMatch(true);
1191
1208
 
1192
1209
  // src/pcb/pcb_trace_hint.ts
1193
- import { z as z59 } from "zod";
1194
- var pcb_trace_hint = z59.object({
1195
- type: z59.literal("pcb_trace_hint"),
1210
+ import { z as z60 } from "zod";
1211
+ var pcb_trace_hint = z60.object({
1212
+ type: z60.literal("pcb_trace_hint"),
1196
1213
  pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
1197
- pcb_port_id: z59.string(),
1198
- pcb_component_id: z59.string(),
1199
- route: z59.array(route_hint_point)
1214
+ pcb_port_id: z60.string(),
1215
+ pcb_component_id: z60.string(),
1216
+ route: z60.array(route_hint_point)
1200
1217
  }).describe("A hint that can be used during generation of a PCB trace");
1201
1218
  expectTypesMatch(true);
1202
1219
 
1203
1220
  // src/pcb/pcb_silkscreen_line.ts
1204
- import { z as z60 } from "zod";
1205
- var pcb_silkscreen_line = z60.object({
1206
- type: z60.literal("pcb_silkscreen_line"),
1221
+ import { z as z61 } from "zod";
1222
+ var pcb_silkscreen_line = z61.object({
1223
+ type: z61.literal("pcb_silkscreen_line"),
1207
1224
  pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
1208
- pcb_component_id: z60.string(),
1209
- pcb_group_id: z60.string().optional(),
1210
- subcircuit_id: z60.string().optional(),
1225
+ pcb_component_id: z61.string(),
1226
+ pcb_group_id: z61.string().optional(),
1227
+ subcircuit_id: z61.string().optional(),
1211
1228
  stroke_width: distance.default("0.1mm"),
1212
1229
  x1: distance,
1213
1230
  y1: distance,
@@ -1218,46 +1235,46 @@ var pcb_silkscreen_line = z60.object({
1218
1235
  expectTypesMatch(true);
1219
1236
 
1220
1237
  // src/pcb/pcb_silkscreen_path.ts
1221
- import { z as z61 } from "zod";
1222
- var pcb_silkscreen_path = z61.object({
1223
- type: z61.literal("pcb_silkscreen_path"),
1238
+ import { z as z62 } from "zod";
1239
+ var pcb_silkscreen_path = z62.object({
1240
+ type: z62.literal("pcb_silkscreen_path"),
1224
1241
  pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
1225
- pcb_component_id: z61.string(),
1226
- pcb_group_id: z61.string().optional(),
1227
- subcircuit_id: z61.string().optional(),
1242
+ pcb_component_id: z62.string(),
1243
+ pcb_group_id: z62.string().optional(),
1244
+ subcircuit_id: z62.string().optional(),
1228
1245
  layer: visible_layer,
1229
- route: z61.array(point),
1246
+ route: z62.array(point),
1230
1247
  stroke_width: length
1231
1248
  }).describe("Defines a silkscreen path on the PCB");
1232
1249
  expectTypesMatch(true);
1233
1250
 
1234
1251
  // src/pcb/pcb_silkscreen_text.ts
1235
- import { z as z62 } from "zod";
1236
- var pcb_silkscreen_text = z62.object({
1237
- type: z62.literal("pcb_silkscreen_text"),
1252
+ import { z as z63 } from "zod";
1253
+ var pcb_silkscreen_text = z63.object({
1254
+ type: z63.literal("pcb_silkscreen_text"),
1238
1255
  pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
1239
- pcb_group_id: z62.string().optional(),
1240
- subcircuit_id: z62.string().optional(),
1241
- font: z62.literal("tscircuit2024").default("tscircuit2024"),
1256
+ pcb_group_id: z63.string().optional(),
1257
+ subcircuit_id: z63.string().optional(),
1258
+ font: z63.literal("tscircuit2024").default("tscircuit2024"),
1242
1259
  font_size: distance.default("0.2mm"),
1243
- pcb_component_id: z62.string(),
1244
- text: z62.string(),
1245
- ccw_rotation: z62.number().optional(),
1260
+ pcb_component_id: z63.string(),
1261
+ text: z63.string(),
1262
+ ccw_rotation: z63.number().optional(),
1246
1263
  layer: layer_ref,
1247
- is_mirrored: z62.boolean().default(false).optional(),
1264
+ is_mirrored: z63.boolean().default(false).optional(),
1248
1265
  anchor_position: point.default({ x: 0, y: 0 }),
1249
- anchor_alignment: z62.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center")
1266
+ anchor_alignment: z63.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center")
1250
1267
  }).describe("Defines silkscreen text on the PCB");
1251
1268
  expectTypesMatch(true);
1252
1269
 
1253
1270
  // src/pcb/pcb_silkscreen_rect.ts
1254
- import { z as z63 } from "zod";
1255
- var pcb_silkscreen_rect = z63.object({
1256
- type: z63.literal("pcb_silkscreen_rect"),
1271
+ import { z as z64 } from "zod";
1272
+ var pcb_silkscreen_rect = z64.object({
1273
+ type: z64.literal("pcb_silkscreen_rect"),
1257
1274
  pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
1258
- pcb_component_id: z63.string(),
1259
- pcb_group_id: z63.string().optional(),
1260
- subcircuit_id: z63.string().optional(),
1275
+ pcb_component_id: z64.string(),
1276
+ pcb_group_id: z64.string().optional(),
1277
+ subcircuit_id: z64.string().optional(),
1261
1278
  center: point,
1262
1279
  width: length,
1263
1280
  height: length,
@@ -1267,15 +1284,15 @@ var pcb_silkscreen_rect = z63.object({
1267
1284
  expectTypesMatch(true);
1268
1285
 
1269
1286
  // src/pcb/pcb_silkscreen_circle.ts
1270
- import { z as z64 } from "zod";
1271
- var pcb_silkscreen_circle = z64.object({
1272
- type: z64.literal("pcb_silkscreen_circle"),
1287
+ import { z as z65 } from "zod";
1288
+ var pcb_silkscreen_circle = z65.object({
1289
+ type: z65.literal("pcb_silkscreen_circle"),
1273
1290
  pcb_silkscreen_circle_id: getZodPrefixedIdWithDefault(
1274
1291
  "pcb_silkscreen_circle"
1275
1292
  ),
1276
- pcb_component_id: z64.string(),
1277
- pcb_group_id: z64.string().optional(),
1278
- subcircuit_id: z64.string().optional(),
1293
+ pcb_component_id: z65.string(),
1294
+ pcb_group_id: z65.string().optional(),
1295
+ subcircuit_id: z65.string().optional(),
1279
1296
  center: point,
1280
1297
  radius: length,
1281
1298
  layer: visible_layer,
@@ -1284,13 +1301,13 @@ var pcb_silkscreen_circle = z64.object({
1284
1301
  expectTypesMatch(true);
1285
1302
 
1286
1303
  // src/pcb/pcb_silkscreen_oval.ts
1287
- import { z as z65 } from "zod";
1288
- var pcb_silkscreen_oval = z65.object({
1289
- type: z65.literal("pcb_silkscreen_oval"),
1304
+ import { z as z66 } from "zod";
1305
+ var pcb_silkscreen_oval = z66.object({
1306
+ type: z66.literal("pcb_silkscreen_oval"),
1290
1307
  pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
1291
- pcb_component_id: z65.string(),
1292
- pcb_group_id: z65.string().optional(),
1293
- subcircuit_id: z65.string().optional(),
1308
+ pcb_component_id: z66.string(),
1309
+ pcb_group_id: z66.string().optional(),
1310
+ subcircuit_id: z66.string().optional(),
1294
1311
  center: point,
1295
1312
  radius_x: distance,
1296
1313
  radius_y: distance,
@@ -1299,156 +1316,156 @@ var pcb_silkscreen_oval = z65.object({
1299
1316
  expectTypesMatch(true);
1300
1317
 
1301
1318
  // src/pcb/pcb_fabrication_note_text.ts
1302
- import { z as z66 } from "zod";
1303
- var pcb_fabrication_note_text = z66.object({
1304
- type: z66.literal("pcb_fabrication_note_text"),
1319
+ import { z as z67 } from "zod";
1320
+ var pcb_fabrication_note_text = z67.object({
1321
+ type: z67.literal("pcb_fabrication_note_text"),
1305
1322
  pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
1306
1323
  "pcb_fabrication_note_text"
1307
1324
  ),
1308
- subcircuit_id: z66.string().optional(),
1309
- pcb_group_id: z66.string().optional(),
1310
- font: z66.literal("tscircuit2024").default("tscircuit2024"),
1325
+ subcircuit_id: z67.string().optional(),
1326
+ pcb_group_id: z67.string().optional(),
1327
+ font: z67.literal("tscircuit2024").default("tscircuit2024"),
1311
1328
  font_size: distance.default("1mm"),
1312
- pcb_component_id: z66.string(),
1313
- text: z66.string(),
1329
+ pcb_component_id: z67.string(),
1330
+ text: z67.string(),
1314
1331
  layer: visible_layer,
1315
1332
  anchor_position: point.default({ x: 0, y: 0 }),
1316
- anchor_alignment: z66.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
1317
- color: z66.string().optional()
1333
+ anchor_alignment: z67.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
1334
+ color: z67.string().optional()
1318
1335
  }).describe(
1319
1336
  "Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
1320
1337
  );
1321
1338
  expectTypesMatch(true);
1322
1339
 
1323
1340
  // src/pcb/pcb_fabrication_note_path.ts
1324
- import { z as z67 } from "zod";
1325
- var pcb_fabrication_note_path = z67.object({
1326
- type: z67.literal("pcb_fabrication_note_path"),
1341
+ import { z as z68 } from "zod";
1342
+ var pcb_fabrication_note_path = z68.object({
1343
+ type: z68.literal("pcb_fabrication_note_path"),
1327
1344
  pcb_fabrication_note_path_id: getZodPrefixedIdWithDefault(
1328
1345
  "pcb_fabrication_note_path"
1329
1346
  ),
1330
- pcb_component_id: z67.string(),
1331
- subcircuit_id: z67.string().optional(),
1347
+ pcb_component_id: z68.string(),
1348
+ subcircuit_id: z68.string().optional(),
1332
1349
  layer: layer_ref,
1333
- route: z67.array(point),
1350
+ route: z68.array(point),
1334
1351
  stroke_width: length,
1335
- color: z67.string().optional()
1352
+ color: z68.string().optional()
1336
1353
  }).describe(
1337
1354
  "Defines a fabrication path on the PCB for fabricators or assemblers"
1338
1355
  );
1339
1356
  expectTypesMatch(true);
1340
1357
 
1341
1358
  // src/pcb/pcb_keepout.ts
1342
- import { z as z68 } from "zod";
1343
- var pcb_keepout = z68.object({
1344
- type: z68.literal("pcb_keepout"),
1345
- shape: z68.literal("rect"),
1346
- pcb_group_id: z68.string().optional(),
1347
- subcircuit_id: z68.string().optional(),
1359
+ import { z as z69 } from "zod";
1360
+ var pcb_keepout = z69.object({
1361
+ type: z69.literal("pcb_keepout"),
1362
+ shape: z69.literal("rect"),
1363
+ pcb_group_id: z69.string().optional(),
1364
+ subcircuit_id: z69.string().optional(),
1348
1365
  center: point,
1349
1366
  width: distance,
1350
1367
  height: distance,
1351
- pcb_keepout_id: z68.string(),
1352
- layers: z68.array(z68.string()),
1368
+ pcb_keepout_id: z69.string(),
1369
+ layers: z69.array(z69.string()),
1353
1370
  // Specify layers where the keepout applies
1354
- description: z68.string().optional()
1371
+ description: z69.string().optional()
1355
1372
  // Optional description of the keepout
1356
1373
  }).or(
1357
- z68.object({
1358
- type: z68.literal("pcb_keepout"),
1359
- shape: z68.literal("circle"),
1360
- pcb_group_id: z68.string().optional(),
1361
- subcircuit_id: z68.string().optional(),
1374
+ z69.object({
1375
+ type: z69.literal("pcb_keepout"),
1376
+ shape: z69.literal("circle"),
1377
+ pcb_group_id: z69.string().optional(),
1378
+ subcircuit_id: z69.string().optional(),
1362
1379
  center: point,
1363
1380
  radius: distance,
1364
- pcb_keepout_id: z68.string(),
1365
- layers: z68.array(z68.string()),
1381
+ pcb_keepout_id: z69.string(),
1382
+ layers: z69.array(z69.string()),
1366
1383
  // Specify layers where the keepout applies
1367
- description: z68.string().optional()
1384
+ description: z69.string().optional()
1368
1385
  // Optional description of the keepout
1369
1386
  })
1370
1387
  );
1371
1388
 
1372
1389
  // src/pcb/pcb_missing_footprint_error.ts
1373
- import { z as z69 } from "zod";
1374
- var pcb_missing_footprint_error = z69.object({
1375
- type: z69.literal("pcb_missing_footprint_error"),
1390
+ import { z as z70 } from "zod";
1391
+ var pcb_missing_footprint_error = z70.object({
1392
+ type: z70.literal("pcb_missing_footprint_error"),
1376
1393
  pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
1377
1394
  "pcb_missing_footprint_error"
1378
1395
  ),
1379
- pcb_group_id: z69.string().optional(),
1380
- subcircuit_id: z69.string().optional(),
1381
- error_type: z69.literal("pcb_missing_footprint_error"),
1382
- source_component_id: z69.string(),
1383
- message: z69.string()
1396
+ pcb_group_id: z70.string().optional(),
1397
+ subcircuit_id: z70.string().optional(),
1398
+ error_type: z70.literal("pcb_missing_footprint_error"),
1399
+ source_component_id: z70.string(),
1400
+ message: z70.string()
1384
1401
  }).describe("Defines a missing footprint error on the PCB");
1385
1402
  expectTypesMatch(
1386
1403
  true
1387
1404
  );
1388
1405
 
1389
1406
  // src/pcb/pcb_manual_edit_conflict_error.ts
1390
- import { z as z70 } from "zod";
1391
- var pcb_manual_edit_conflict_error = z70.object({
1392
- type: z70.literal("pcb_manual_edit_conflict_error"),
1407
+ import { z as z71 } from "zod";
1408
+ var pcb_manual_edit_conflict_error = z71.object({
1409
+ type: z71.literal("pcb_manual_edit_conflict_error"),
1393
1410
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_manual_edit_conflict_error"),
1394
- message: z70.string(),
1395
- pcb_component_id: z70.string(),
1396
- pcb_group_id: z70.string().optional(),
1397
- subcircuit_id: z70.string().optional(),
1398
- source_component_id: z70.string()
1411
+ message: z71.string(),
1412
+ pcb_component_id: z71.string(),
1413
+ pcb_group_id: z71.string().optional(),
1414
+ subcircuit_id: z71.string().optional(),
1415
+ source_component_id: z71.string()
1399
1416
  }).describe(
1400
1417
  "Error emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
1401
1418
  );
1402
1419
  expectTypesMatch(true);
1403
1420
 
1404
1421
  // src/pcb/pcb_group.ts
1405
- import { z as z71 } from "zod";
1406
- var pcb_group = z71.object({
1407
- type: z71.literal("pcb_group"),
1422
+ import { z as z72 } from "zod";
1423
+ var pcb_group = z72.object({
1424
+ type: z72.literal("pcb_group"),
1408
1425
  pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
1409
- source_group_id: z71.string(),
1410
- is_subcircuit: z71.boolean().optional(),
1411
- subcircuit_id: z71.string().optional(),
1426
+ source_group_id: z72.string(),
1427
+ is_subcircuit: z72.boolean().optional(),
1428
+ subcircuit_id: z72.string().optional(),
1412
1429
  width: length,
1413
1430
  height: length,
1414
1431
  center: point,
1415
- pcb_component_ids: z71.array(z71.string()),
1416
- name: z71.string().optional(),
1417
- description: z71.string().optional()
1432
+ pcb_component_ids: z72.array(z72.string()),
1433
+ name: z72.string().optional(),
1434
+ description: z72.string().optional()
1418
1435
  }).describe("Defines a group of components on the PCB");
1419
1436
  expectTypesMatch(true);
1420
1437
 
1421
1438
  // src/pcb/pcb_autorouting_error.ts
1422
- import { z as z72 } from "zod";
1423
- var pcb_autorouting_error = z72.object({
1424
- type: z72.literal("pcb_autorouting_error"),
1439
+ import { z as z73 } from "zod";
1440
+ var pcb_autorouting_error = z73.object({
1441
+ type: z73.literal("pcb_autorouting_error"),
1425
1442
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
1426
- message: z72.string()
1443
+ message: z73.string()
1427
1444
  }).describe("The autorouting has failed to route a portion of the board");
1428
1445
  expectTypesMatch(true);
1429
1446
 
1430
1447
  // src/cad/cad_component.ts
1431
- import { z as z73 } from "zod";
1432
- var cad_component = z73.object({
1433
- type: z73.literal("cad_component"),
1434
- cad_component_id: z73.string(),
1435
- pcb_component_id: z73.string(),
1436
- source_component_id: z73.string(),
1448
+ import { z as z74 } from "zod";
1449
+ var cad_component = z74.object({
1450
+ type: z74.literal("cad_component"),
1451
+ cad_component_id: z74.string(),
1452
+ pcb_component_id: z74.string(),
1453
+ source_component_id: z74.string(),
1437
1454
  position: point3,
1438
1455
  rotation: point3.optional(),
1439
1456
  size: point3.optional(),
1440
1457
  layer: layer_ref.optional(),
1441
1458
  // These are all ways to generate/load the 3d model
1442
- footprinter_string: z73.string().optional(),
1443
- model_obj_url: z73.string().optional(),
1444
- model_stl_url: z73.string().optional(),
1445
- model_3mf_url: z73.string().optional(),
1446
- model_jscad: z73.any().optional()
1459
+ footprinter_string: z74.string().optional(),
1460
+ model_obj_url: z74.string().optional(),
1461
+ model_stl_url: z74.string().optional(),
1462
+ model_3mf_url: z74.string().optional(),
1463
+ model_jscad: z74.any().optional()
1447
1464
  }).describe("Defines a component on the PCB");
1448
1465
 
1449
1466
  // src/any_circuit_element.ts
1450
- import { z as z74 } from "zod";
1451
- var any_circuit_element = z74.union([
1467
+ import { z as z75 } from "zod";
1468
+ var any_circuit_element = z75.union([
1452
1469
  source_trace,
1453
1470
  source_port,
1454
1471
  any_source_component,
@@ -1509,6 +1526,7 @@ var any_circuit_element = z74.union([
1509
1526
  schematic_net_label,
1510
1527
  schematic_debug_object,
1511
1528
  schematic_voltage_probe,
1529
+ schematic_manual_edit_conflict_warning,
1512
1530
  cad_component
1513
1531
  ]);
1514
1532
  var any_soup_element = any_circuit_element;
@@ -1582,6 +1600,7 @@ export {
1582
1600
  schematic_debug_rect,
1583
1601
  schematic_error,
1584
1602
  schematic_line,
1603
+ schematic_manual_edit_conflict_warning,
1585
1604
  schematic_net_label,
1586
1605
  schematic_path,
1587
1606
  schematic_pin_styles,