circuit-json 0.0.257 → 0.0.259

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
@@ -848,54 +848,112 @@ expectTypesMatch(true);
848
848
  import { z as z46 } from "zod";
849
849
  var schematic_line = z46.object({
850
850
  type: z46.literal("schematic_line"),
851
+ schematic_line_id: getZodPrefixedIdWithDefault("schematic_line"),
851
852
  schematic_component_id: z46.string(),
852
853
  x1: distance,
853
- x2: distance,
854
854
  y1: distance,
855
+ x2: distance,
855
856
  y2: distance,
857
+ stroke_width: distance.nullable().optional(),
858
+ color: z46.string().default("#000000"),
859
+ is_dashed: z46.boolean().default(false),
856
860
  subcircuit_id: z46.string().optional()
857
- });
861
+ }).describe("Draws a styled line on the schematic");
858
862
  expectTypesMatch(true);
859
863
 
860
- // src/schematic/schematic_trace.ts
864
+ // src/schematic/schematic_rect.ts
861
865
  import { z as z47 } from "zod";
862
- var schematic_trace = z47.object({
863
- type: z47.literal("schematic_trace"),
864
- schematic_trace_id: z47.string(),
865
- source_trace_id: z47.string().optional(),
866
- junctions: z47.array(
867
- z47.object({
868
- x: z47.number(),
869
- y: z47.number()
866
+ var schematic_rect = z47.object({
867
+ type: z47.literal("schematic_rect"),
868
+ schematic_rect_id: getZodPrefixedIdWithDefault("schematic_rect"),
869
+ schematic_component_id: z47.string(),
870
+ center: point,
871
+ width: distance,
872
+ height: distance,
873
+ rotation: rotation.default(0),
874
+ stroke_width: distance.nullable().optional(),
875
+ color: z47.string().default("#000000"),
876
+ is_filled: z47.boolean().default(false),
877
+ fill_color: z47.string().optional(),
878
+ is_dashed: z47.boolean().default(false),
879
+ subcircuit_id: z47.string().optional()
880
+ }).describe("Draws a styled rectangle on the schematic");
881
+ expectTypesMatch(true);
882
+
883
+ // src/schematic/schematic_circle.ts
884
+ import { z as z48 } from "zod";
885
+ var schematic_circle = z48.object({
886
+ type: z48.literal("schematic_circle"),
887
+ schematic_circle_id: getZodPrefixedIdWithDefault("schematic_circle"),
888
+ schematic_component_id: z48.string(),
889
+ center: point,
890
+ radius: distance,
891
+ stroke_width: distance.nullable().optional(),
892
+ color: z48.string().default("#000000"),
893
+ is_filled: z48.boolean().default(false),
894
+ fill_color: z48.string().optional(),
895
+ is_dashed: z48.boolean().default(false),
896
+ subcircuit_id: z48.string().optional()
897
+ }).describe("Draws a styled circle on the schematic");
898
+ expectTypesMatch(true);
899
+
900
+ // src/schematic/schematic_arc.ts
901
+ import { z as z49 } from "zod";
902
+ var schematic_arc = z49.object({
903
+ type: z49.literal("schematic_arc"),
904
+ schematic_arc_id: getZodPrefixedIdWithDefault("schematic_arc"),
905
+ schematic_component_id: z49.string(),
906
+ center: point,
907
+ radius: distance,
908
+ start_angle_degrees: rotation,
909
+ end_angle_degrees: rotation,
910
+ direction: z49.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
911
+ stroke_width: distance.nullable().optional(),
912
+ color: z49.string().default("#000000"),
913
+ is_dashed: z49.boolean().default(false),
914
+ subcircuit_id: z49.string().optional()
915
+ }).describe("Draws a styled arc on the schematic");
916
+ expectTypesMatch(true);
917
+
918
+ // src/schematic/schematic_trace.ts
919
+ import { z as z50 } from "zod";
920
+ var schematic_trace = z50.object({
921
+ type: z50.literal("schematic_trace"),
922
+ schematic_trace_id: z50.string(),
923
+ source_trace_id: z50.string().optional(),
924
+ junctions: z50.array(
925
+ z50.object({
926
+ x: z50.number(),
927
+ y: z50.number()
870
928
  })
871
929
  ),
872
- edges: z47.array(
873
- z47.object({
874
- from: z47.object({
875
- x: z47.number(),
876
- y: z47.number()
930
+ edges: z50.array(
931
+ z50.object({
932
+ from: z50.object({
933
+ x: z50.number(),
934
+ y: z50.number()
877
935
  }),
878
- to: z47.object({
879
- x: z47.number(),
880
- y: z47.number()
936
+ to: z50.object({
937
+ x: z50.number(),
938
+ y: z50.number()
881
939
  }),
882
- is_crossing: z47.boolean().optional(),
883
- from_schematic_port_id: z47.string().optional(),
884
- to_schematic_port_id: z47.string().optional()
940
+ is_crossing: z50.boolean().optional(),
941
+ from_schematic_port_id: z50.string().optional(),
942
+ to_schematic_port_id: z50.string().optional()
885
943
  })
886
944
  ),
887
- subcircuit_id: z47.string().optional(),
945
+ subcircuit_id: z50.string().optional(),
888
946
  // TODO: make required in a future release
889
- subcircuit_connectivity_map_key: z47.string().optional()
947
+ subcircuit_connectivity_map_key: z50.string().optional()
890
948
  });
891
949
  expectTypesMatch(true);
892
950
 
893
951
  // src/schematic/schematic_text.ts
894
- import { z as z49 } from "zod";
952
+ import { z as z52 } from "zod";
895
953
 
896
954
  // src/common/FivePointAnchor.ts
897
- import { z as z48 } from "zod";
898
- var fivePointAnchor = z48.enum([
955
+ import { z as z51 } from "zod";
956
+ var fivePointAnchor = z51.enum([
899
957
  "center",
900
958
  "left",
901
959
  "right",
@@ -905,111 +963,111 @@ var fivePointAnchor = z48.enum([
905
963
  expectTypesMatch(true);
906
964
 
907
965
  // src/schematic/schematic_text.ts
908
- var schematic_text = z49.object({
909
- type: z49.literal("schematic_text"),
910
- schematic_component_id: z49.string().optional(),
911
- schematic_text_id: z49.string(),
912
- text: z49.string(),
913
- font_size: z49.number().default(0.18),
914
- position: z49.object({
966
+ var schematic_text = z52.object({
967
+ type: z52.literal("schematic_text"),
968
+ schematic_component_id: z52.string().optional(),
969
+ schematic_text_id: z52.string(),
970
+ text: z52.string(),
971
+ font_size: z52.number().default(0.18),
972
+ position: z52.object({
915
973
  x: distance,
916
974
  y: distance
917
975
  }),
918
- rotation: z49.number().default(0),
919
- anchor: z49.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
920
- color: z49.string().default("#000000"),
921
- subcircuit_id: z49.string().optional()
976
+ rotation: z52.number().default(0),
977
+ anchor: z52.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
978
+ color: z52.string().default("#000000"),
979
+ subcircuit_id: z52.string().optional()
922
980
  });
923
981
  expectTypesMatch(true);
924
982
 
925
983
  // src/schematic/schematic_port.ts
926
- import { z as z50 } from "zod";
927
- var schematic_port = z50.object({
928
- type: z50.literal("schematic_port"),
929
- schematic_port_id: z50.string(),
930
- source_port_id: z50.string(),
931
- schematic_component_id: z50.string().optional(),
984
+ import { z as z53 } from "zod";
985
+ var schematic_port = z53.object({
986
+ type: z53.literal("schematic_port"),
987
+ schematic_port_id: z53.string(),
988
+ source_port_id: z53.string(),
989
+ schematic_component_id: z53.string().optional(),
932
990
  center: point,
933
- facing_direction: z50.enum(["up", "down", "left", "right"]).optional(),
934
- distance_from_component_edge: z50.number().optional(),
935
- side_of_component: z50.enum(["top", "bottom", "left", "right"]).optional(),
936
- true_ccw_index: z50.number().optional(),
937
- pin_number: z50.number().optional(),
938
- display_pin_label: z50.string().optional(),
939
- subcircuit_id: z50.string().optional(),
940
- is_connected: z50.boolean().optional(),
941
- has_input_arrow: z50.boolean().optional(),
942
- has_output_arrow: z50.boolean().optional()
991
+ facing_direction: z53.enum(["up", "down", "left", "right"]).optional(),
992
+ distance_from_component_edge: z53.number().optional(),
993
+ side_of_component: z53.enum(["top", "bottom", "left", "right"]).optional(),
994
+ true_ccw_index: z53.number().optional(),
995
+ pin_number: z53.number().optional(),
996
+ display_pin_label: z53.string().optional(),
997
+ subcircuit_id: z53.string().optional(),
998
+ is_connected: z53.boolean().optional(),
999
+ has_input_arrow: z53.boolean().optional(),
1000
+ has_output_arrow: z53.boolean().optional()
943
1001
  }).describe("Defines a port on a schematic component");
944
1002
  expectTypesMatch(true);
945
1003
 
946
1004
  // src/schematic/schematic_net_label.ts
947
- import { z as z51 } from "zod";
948
- var schematic_net_label = z51.object({
949
- type: z51.literal("schematic_net_label"),
1005
+ import { z as z54 } from "zod";
1006
+ var schematic_net_label = z54.object({
1007
+ type: z54.literal("schematic_net_label"),
950
1008
  schematic_net_label_id: getZodPrefixedIdWithDefault("schematic_net_label"),
951
- schematic_trace_id: z51.string().optional(),
952
- source_trace_id: z51.string().optional(),
953
- source_net_id: z51.string(),
1009
+ schematic_trace_id: z54.string().optional(),
1010
+ source_trace_id: z54.string().optional(),
1011
+ source_net_id: z54.string(),
954
1012
  center: point,
955
1013
  anchor_position: point.optional(),
956
- anchor_side: z51.enum(["top", "bottom", "left", "right"]),
957
- text: z51.string(),
958
- symbol_name: z51.string().optional(),
959
- is_movable: z51.boolean().optional(),
960
- subcircuit_id: z51.string().optional()
1014
+ anchor_side: z54.enum(["top", "bottom", "left", "right"]),
1015
+ text: z54.string(),
1016
+ symbol_name: z54.string().optional(),
1017
+ is_movable: z54.boolean().optional(),
1018
+ subcircuit_id: z54.string().optional()
961
1019
  });
962
1020
  expectTypesMatch(true);
963
1021
 
964
1022
  // src/schematic/schematic_error.ts
965
- import { z as z52 } from "zod";
966
- var schematic_error = z52.object({
967
- type: z52.literal("schematic_error"),
968
- schematic_error_id: z52.string(),
1023
+ import { z as z55 } from "zod";
1024
+ var schematic_error = z55.object({
1025
+ type: z55.literal("schematic_error"),
1026
+ schematic_error_id: z55.string(),
969
1027
  // eventually each error type should be broken out into a dir of files
970
- error_type: z52.literal("schematic_port_not_found").default("schematic_port_not_found"),
971
- message: z52.string(),
972
- subcircuit_id: z52.string().optional()
1028
+ error_type: z55.literal("schematic_port_not_found").default("schematic_port_not_found"),
1029
+ message: z55.string(),
1030
+ subcircuit_id: z55.string().optional()
973
1031
  }).describe("Defines a schematic error on the schematic");
974
1032
  expectTypesMatch(true);
975
1033
 
976
1034
  // src/schematic/schematic_layout_error.ts
977
- import { z as z53 } from "zod";
978
- var schematic_layout_error = z53.object({
979
- type: z53.literal("schematic_layout_error"),
1035
+ import { z as z56 } from "zod";
1036
+ var schematic_layout_error = z56.object({
1037
+ type: z56.literal("schematic_layout_error"),
980
1038
  schematic_layout_error_id: getZodPrefixedIdWithDefault(
981
1039
  "schematic_layout_error"
982
1040
  ),
983
- error_type: z53.literal("schematic_layout_error").default("schematic_layout_error"),
984
- message: z53.string(),
985
- source_group_id: z53.string(),
986
- schematic_group_id: z53.string(),
987
- subcircuit_id: z53.string().optional()
1041
+ error_type: z56.literal("schematic_layout_error").default("schematic_layout_error"),
1042
+ message: z56.string(),
1043
+ source_group_id: z56.string(),
1044
+ schematic_group_id: z56.string(),
1045
+ subcircuit_id: z56.string().optional()
988
1046
  }).describe("Error emitted when schematic layout fails for a group");
989
1047
  expectTypesMatch(true);
990
1048
 
991
1049
  // src/schematic/schematic_debug_object.ts
992
- import { z as z54 } from "zod";
993
- var schematic_debug_object_base = z54.object({
994
- type: z54.literal("schematic_debug_object"),
995
- label: z54.string().optional(),
996
- subcircuit_id: z54.string().optional()
1050
+ import { z as z57 } from "zod";
1051
+ var schematic_debug_object_base = z57.object({
1052
+ type: z57.literal("schematic_debug_object"),
1053
+ label: z57.string().optional(),
1054
+ subcircuit_id: z57.string().optional()
997
1055
  });
998
1056
  var schematic_debug_rect = schematic_debug_object_base.extend({
999
- shape: z54.literal("rect"),
1057
+ shape: z57.literal("rect"),
1000
1058
  center: point,
1001
1059
  size
1002
1060
  });
1003
1061
  var schematic_debug_line = schematic_debug_object_base.extend({
1004
- shape: z54.literal("line"),
1062
+ shape: z57.literal("line"),
1005
1063
  start: point,
1006
1064
  end: point
1007
1065
  });
1008
1066
  var schematic_debug_point = schematic_debug_object_base.extend({
1009
- shape: z54.literal("point"),
1067
+ shape: z57.literal("point"),
1010
1068
  center: point
1011
1069
  });
1012
- var schematic_debug_object = z54.discriminatedUnion("shape", [
1070
+ var schematic_debug_object = z57.discriminatedUnion("shape", [
1013
1071
  schematic_debug_rect,
1014
1072
  schematic_debug_line,
1015
1073
  schematic_debug_point
@@ -1017,158 +1075,158 @@ var schematic_debug_object = z54.discriminatedUnion("shape", [
1017
1075
  expectTypesMatch(true);
1018
1076
 
1019
1077
  // src/schematic/schematic_voltage_probe.ts
1020
- import { z as z55 } from "zod";
1021
- var schematic_voltage_probe = z55.object({
1022
- type: z55.literal("schematic_voltage_probe"),
1023
- schematic_voltage_probe_id: z55.string(),
1078
+ import { z as z58 } from "zod";
1079
+ var schematic_voltage_probe = z58.object({
1080
+ type: z58.literal("schematic_voltage_probe"),
1081
+ schematic_voltage_probe_id: z58.string(),
1024
1082
  position: point,
1025
- schematic_trace_id: z55.string(),
1083
+ schematic_trace_id: z58.string(),
1026
1084
  voltage: voltage.optional(),
1027
- subcircuit_id: z55.string().optional()
1085
+ subcircuit_id: z58.string().optional()
1028
1086
  }).describe("Defines a voltage probe measurement point on a schematic trace");
1029
1087
  expectTypesMatch(true);
1030
1088
 
1031
1089
  // src/schematic/schematic_manual_edit_conflict_warning.ts
1032
- import { z as z56 } from "zod";
1033
- var schematic_manual_edit_conflict_warning = z56.object({
1034
- type: z56.literal("schematic_manual_edit_conflict_warning"),
1090
+ import { z as z59 } from "zod";
1091
+ var schematic_manual_edit_conflict_warning = z59.object({
1092
+ type: z59.literal("schematic_manual_edit_conflict_warning"),
1035
1093
  schematic_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
1036
1094
  "schematic_manual_edit_conflict_warning"
1037
1095
  ),
1038
- warning_type: z56.literal("schematic_manual_edit_conflict_warning").default("schematic_manual_edit_conflict_warning"),
1039
- message: z56.string(),
1040
- schematic_component_id: z56.string(),
1041
- schematic_group_id: z56.string().optional(),
1042
- subcircuit_id: z56.string().optional(),
1043
- source_component_id: z56.string()
1096
+ warning_type: z59.literal("schematic_manual_edit_conflict_warning").default("schematic_manual_edit_conflict_warning"),
1097
+ message: z59.string(),
1098
+ schematic_component_id: z59.string(),
1099
+ schematic_group_id: z59.string().optional(),
1100
+ subcircuit_id: z59.string().optional(),
1101
+ source_component_id: z59.string()
1044
1102
  }).describe(
1045
1103
  "Warning emitted when a component has both manual placement and explicit schX/schY coordinates"
1046
1104
  );
1047
1105
  expectTypesMatch(true);
1048
1106
 
1049
1107
  // src/schematic/schematic_group.ts
1050
- import { z as z57 } from "zod";
1051
- var schematic_group = z57.object({
1052
- type: z57.literal("schematic_group"),
1108
+ import { z as z60 } from "zod";
1109
+ var schematic_group = z60.object({
1110
+ type: z60.literal("schematic_group"),
1053
1111
  schematic_group_id: getZodPrefixedIdWithDefault("schematic_group"),
1054
- source_group_id: z57.string(),
1055
- is_subcircuit: z57.boolean().optional(),
1056
- subcircuit_id: z57.string().optional(),
1112
+ source_group_id: z60.string(),
1113
+ is_subcircuit: z60.boolean().optional(),
1114
+ subcircuit_id: z60.string().optional(),
1057
1115
  width: length,
1058
1116
  height: length,
1059
1117
  center: point,
1060
- schematic_component_ids: z57.array(z57.string()),
1061
- show_as_schematic_box: z57.boolean().optional(),
1062
- name: z57.string().optional(),
1063
- description: z57.string().optional()
1118
+ schematic_component_ids: z60.array(z60.string()),
1119
+ show_as_schematic_box: z60.boolean().optional(),
1120
+ name: z60.string().optional(),
1121
+ description: z60.string().optional()
1064
1122
  }).describe("Defines a group of components on the schematic");
1065
1123
  expectTypesMatch(true);
1066
1124
 
1067
1125
  // src/schematic/schematic_table.ts
1068
- import { z as z58 } from "zod";
1069
- var schematic_table = z58.object({
1070
- type: z58.literal("schematic_table"),
1126
+ import { z as z61 } from "zod";
1127
+ var schematic_table = z61.object({
1128
+ type: z61.literal("schematic_table"),
1071
1129
  schematic_table_id: getZodPrefixedIdWithDefault("schematic_table"),
1072
1130
  anchor_position: point,
1073
- column_widths: z58.array(distance),
1074
- row_heights: z58.array(distance),
1131
+ column_widths: z61.array(distance),
1132
+ row_heights: z61.array(distance),
1075
1133
  cell_padding: distance.optional(),
1076
1134
  border_width: distance.optional(),
1077
- subcircuit_id: z58.string().optional(),
1078
- schematic_component_id: z58.string().optional(),
1135
+ subcircuit_id: z61.string().optional(),
1136
+ schematic_component_id: z61.string().optional(),
1079
1137
  anchor: ninePointAnchor.optional()
1080
1138
  }).describe("Defines a table on the schematic");
1081
1139
  expectTypesMatch(true);
1082
1140
 
1083
1141
  // src/schematic/schematic_table_cell.ts
1084
- import { z as z59 } from "zod";
1085
- var schematic_table_cell = z59.object({
1086
- type: z59.literal("schematic_table_cell"),
1142
+ import { z as z62 } from "zod";
1143
+ var schematic_table_cell = z62.object({
1144
+ type: z62.literal("schematic_table_cell"),
1087
1145
  schematic_table_cell_id: getZodPrefixedIdWithDefault(
1088
1146
  "schematic_table_cell"
1089
1147
  ),
1090
- schematic_table_id: z59.string(),
1091
- start_row_index: z59.number(),
1092
- end_row_index: z59.number(),
1093
- start_column_index: z59.number(),
1094
- end_column_index: z59.number(),
1095
- text: z59.string().optional(),
1148
+ schematic_table_id: z62.string(),
1149
+ start_row_index: z62.number(),
1150
+ end_row_index: z62.number(),
1151
+ start_column_index: z62.number(),
1152
+ end_column_index: z62.number(),
1153
+ text: z62.string().optional(),
1096
1154
  center: point,
1097
1155
  width: distance,
1098
1156
  height: distance,
1099
- horizontal_align: z59.enum(["left", "center", "right"]).optional(),
1100
- vertical_align: z59.enum(["top", "middle", "bottom"]).optional(),
1157
+ horizontal_align: z62.enum(["left", "center", "right"]).optional(),
1158
+ vertical_align: z62.enum(["top", "middle", "bottom"]).optional(),
1101
1159
  font_size: distance.optional(),
1102
- subcircuit_id: z59.string().optional()
1160
+ subcircuit_id: z62.string().optional()
1103
1161
  }).describe("Defines a cell within a schematic_table");
1104
1162
  expectTypesMatch(true);
1105
1163
 
1106
1164
  // src/pcb/properties/brep.ts
1107
- import { z as z60 } from "zod";
1108
- var point_with_bulge = z60.object({
1165
+ import { z as z63 } from "zod";
1166
+ var point_with_bulge = z63.object({
1109
1167
  x: distance,
1110
1168
  y: distance,
1111
- bulge: z60.number().optional()
1169
+ bulge: z63.number().optional()
1112
1170
  });
1113
1171
  expectTypesMatch(true);
1114
- var ring = z60.object({
1115
- vertices: z60.array(point_with_bulge)
1172
+ var ring = z63.object({
1173
+ vertices: z63.array(point_with_bulge)
1116
1174
  });
1117
1175
  expectTypesMatch(true);
1118
- var brep_shape = z60.object({
1176
+ var brep_shape = z63.object({
1119
1177
  outer_ring: ring,
1120
- inner_rings: z60.array(ring).default([])
1178
+ inner_rings: z63.array(ring).default([])
1121
1179
  });
1122
1180
  expectTypesMatch(true);
1123
1181
 
1124
1182
  // src/pcb/properties/pcb_route_hints.ts
1125
- import { z as z61 } from "zod";
1126
- var pcb_route_hint = z61.object({
1183
+ import { z as z64 } from "zod";
1184
+ var pcb_route_hint = z64.object({
1127
1185
  x: distance,
1128
1186
  y: distance,
1129
- via: z61.boolean().optional(),
1187
+ via: z64.boolean().optional(),
1130
1188
  via_to_layer: layer_ref.optional()
1131
1189
  });
1132
- var pcb_route_hints = z61.array(pcb_route_hint);
1190
+ var pcb_route_hints = z64.array(pcb_route_hint);
1133
1191
  expectTypesMatch(true);
1134
1192
  expectTypesMatch(true);
1135
1193
 
1136
1194
  // src/pcb/properties/route_hint_point.ts
1137
- import { z as z62 } from "zod";
1138
- var route_hint_point = z62.object({
1195
+ import { z as z65 } from "zod";
1196
+ var route_hint_point = z65.object({
1139
1197
  x: distance,
1140
1198
  y: distance,
1141
- via: z62.boolean().optional(),
1199
+ via: z65.boolean().optional(),
1142
1200
  to_layer: layer_ref.optional(),
1143
1201
  trace_width: distance.optional()
1144
1202
  });
1145
1203
  expectTypesMatch(true);
1146
1204
 
1147
1205
  // src/pcb/pcb_component.ts
1148
- import { z as z63 } from "zod";
1149
- var pcb_component = z63.object({
1150
- type: z63.literal("pcb_component"),
1206
+ import { z as z66 } from "zod";
1207
+ var pcb_component = z66.object({
1208
+ type: z66.literal("pcb_component"),
1151
1209
  pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
1152
- source_component_id: z63.string(),
1210
+ source_component_id: z66.string(),
1153
1211
  center: point,
1154
1212
  layer: layer_ref,
1155
1213
  rotation,
1156
1214
  width: length,
1157
1215
  height: length,
1158
- subcircuit_id: z63.string().optional(),
1159
- pcb_group_id: z63.string().optional()
1216
+ subcircuit_id: z66.string().optional(),
1217
+ pcb_group_id: z66.string().optional()
1160
1218
  }).describe("Defines a component on the PCB");
1161
1219
  expectTypesMatch(true);
1162
1220
 
1163
1221
  // src/pcb/pcb_hole.ts
1164
- import { z as z64 } from "zod";
1165
- var pcb_hole_circle_or_square = z64.object({
1166
- type: z64.literal("pcb_hole"),
1222
+ import { z as z67 } from "zod";
1223
+ var pcb_hole_circle_or_square = z67.object({
1224
+ type: z67.literal("pcb_hole"),
1167
1225
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
1168
- pcb_group_id: z64.string().optional(),
1169
- subcircuit_id: z64.string().optional(),
1170
- hole_shape: z64.enum(["circle", "square"]),
1171
- hole_diameter: z64.number(),
1226
+ pcb_group_id: z67.string().optional(),
1227
+ subcircuit_id: z67.string().optional(),
1228
+ hole_shape: z67.enum(["circle", "square"]),
1229
+ hole_diameter: z67.number(),
1172
1230
  x: distance,
1173
1231
  y: distance
1174
1232
  });
@@ -1176,14 +1234,14 @@ var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
1176
1234
  "Defines a circular or square hole on the PCB"
1177
1235
  );
1178
1236
  expectTypesMatch(true);
1179
- var pcb_hole_oval = z64.object({
1180
- type: z64.literal("pcb_hole"),
1237
+ var pcb_hole_oval = z67.object({
1238
+ type: z67.literal("pcb_hole"),
1181
1239
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
1182
- pcb_group_id: z64.string().optional(),
1183
- subcircuit_id: z64.string().optional(),
1184
- hole_shape: z64.literal("oval"),
1185
- hole_width: z64.number(),
1186
- hole_height: z64.number(),
1240
+ pcb_group_id: z67.string().optional(),
1241
+ subcircuit_id: z67.string().optional(),
1242
+ hole_shape: z67.literal("oval"),
1243
+ hole_width: z67.number(),
1244
+ hole_height: z67.number(),
1187
1245
  x: distance,
1188
1246
  y: distance
1189
1247
  });
@@ -1194,108 +1252,108 @@ expectTypesMatch(true);
1194
1252
  var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval);
1195
1253
 
1196
1254
  // src/pcb/pcb_plated_hole.ts
1197
- import { z as z65 } from "zod";
1198
- var pcb_plated_hole_circle = z65.object({
1199
- type: z65.literal("pcb_plated_hole"),
1200
- shape: z65.literal("circle"),
1201
- pcb_group_id: z65.string().optional(),
1202
- subcircuit_id: z65.string().optional(),
1203
- outer_diameter: z65.number(),
1204
- hole_diameter: z65.number(),
1255
+ import { z as z68 } from "zod";
1256
+ var pcb_plated_hole_circle = z68.object({
1257
+ type: z68.literal("pcb_plated_hole"),
1258
+ shape: z68.literal("circle"),
1259
+ pcb_group_id: z68.string().optional(),
1260
+ subcircuit_id: z68.string().optional(),
1261
+ outer_diameter: z68.number(),
1262
+ hole_diameter: z68.number(),
1205
1263
  x: distance,
1206
1264
  y: distance,
1207
- layers: z65.array(layer_ref),
1208
- port_hints: z65.array(z65.string()).optional(),
1209
- pcb_component_id: z65.string().optional(),
1210
- pcb_port_id: z65.string().optional(),
1265
+ layers: z68.array(layer_ref),
1266
+ port_hints: z68.array(z68.string()).optional(),
1267
+ pcb_component_id: z68.string().optional(),
1268
+ pcb_port_id: z68.string().optional(),
1211
1269
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1212
1270
  });
1213
- var pcb_plated_hole_oval = z65.object({
1214
- type: z65.literal("pcb_plated_hole"),
1215
- shape: z65.enum(["oval", "pill"]),
1216
- pcb_group_id: z65.string().optional(),
1217
- subcircuit_id: z65.string().optional(),
1218
- outer_width: z65.number(),
1219
- outer_height: z65.number(),
1220
- hole_width: z65.number(),
1221
- hole_height: z65.number(),
1271
+ var pcb_plated_hole_oval = z68.object({
1272
+ type: z68.literal("pcb_plated_hole"),
1273
+ shape: z68.enum(["oval", "pill"]),
1274
+ pcb_group_id: z68.string().optional(),
1275
+ subcircuit_id: z68.string().optional(),
1276
+ outer_width: z68.number(),
1277
+ outer_height: z68.number(),
1278
+ hole_width: z68.number(),
1279
+ hole_height: z68.number(),
1222
1280
  x: distance,
1223
1281
  y: distance,
1224
1282
  ccw_rotation: rotation,
1225
- layers: z65.array(layer_ref),
1226
- port_hints: z65.array(z65.string()).optional(),
1227
- pcb_component_id: z65.string().optional(),
1228
- pcb_port_id: z65.string().optional(),
1283
+ layers: z68.array(layer_ref),
1284
+ port_hints: z68.array(z68.string()).optional(),
1285
+ pcb_component_id: z68.string().optional(),
1286
+ pcb_port_id: z68.string().optional(),
1229
1287
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1230
1288
  });
1231
- var pcb_circular_hole_with_rect_pad = z65.object({
1232
- type: z65.literal("pcb_plated_hole"),
1233
- shape: z65.literal("circular_hole_with_rect_pad"),
1234
- pcb_group_id: z65.string().optional(),
1235
- subcircuit_id: z65.string().optional(),
1236
- hole_shape: z65.literal("circle"),
1237
- pad_shape: z65.literal("rect"),
1238
- hole_diameter: z65.number(),
1239
- rect_pad_width: z65.number(),
1240
- rect_pad_height: z65.number(),
1241
- rect_border_radius: z65.number().optional(),
1289
+ var pcb_circular_hole_with_rect_pad = z68.object({
1290
+ type: z68.literal("pcb_plated_hole"),
1291
+ shape: z68.literal("circular_hole_with_rect_pad"),
1292
+ pcb_group_id: z68.string().optional(),
1293
+ subcircuit_id: z68.string().optional(),
1294
+ hole_shape: z68.literal("circle"),
1295
+ pad_shape: z68.literal("rect"),
1296
+ hole_diameter: z68.number(),
1297
+ rect_pad_width: z68.number(),
1298
+ rect_pad_height: z68.number(),
1299
+ rect_border_radius: z68.number().optional(),
1242
1300
  hole_offset_x: distance.default(0),
1243
1301
  hole_offset_y: distance.default(0),
1244
1302
  x: distance,
1245
1303
  y: distance,
1246
- layers: z65.array(layer_ref),
1247
- port_hints: z65.array(z65.string()).optional(),
1248
- pcb_component_id: z65.string().optional(),
1249
- pcb_port_id: z65.string().optional(),
1304
+ layers: z68.array(layer_ref),
1305
+ port_hints: z68.array(z68.string()).optional(),
1306
+ pcb_component_id: z68.string().optional(),
1307
+ pcb_port_id: z68.string().optional(),
1250
1308
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1251
1309
  });
1252
- var pcb_pill_hole_with_rect_pad = z65.object({
1253
- type: z65.literal("pcb_plated_hole"),
1254
- shape: z65.literal("pill_hole_with_rect_pad"),
1255
- pcb_group_id: z65.string().optional(),
1256
- subcircuit_id: z65.string().optional(),
1257
- hole_shape: z65.literal("pill"),
1258
- pad_shape: z65.literal("rect"),
1259
- hole_width: z65.number(),
1260
- hole_height: z65.number(),
1261
- rect_pad_width: z65.number(),
1262
- rect_pad_height: z65.number(),
1263
- rect_border_radius: z65.number().optional(),
1310
+ var pcb_pill_hole_with_rect_pad = z68.object({
1311
+ type: z68.literal("pcb_plated_hole"),
1312
+ shape: z68.literal("pill_hole_with_rect_pad"),
1313
+ pcb_group_id: z68.string().optional(),
1314
+ subcircuit_id: z68.string().optional(),
1315
+ hole_shape: z68.literal("pill"),
1316
+ pad_shape: z68.literal("rect"),
1317
+ hole_width: z68.number(),
1318
+ hole_height: z68.number(),
1319
+ rect_pad_width: z68.number(),
1320
+ rect_pad_height: z68.number(),
1321
+ rect_border_radius: z68.number().optional(),
1264
1322
  hole_offset_x: distance.default(0),
1265
1323
  hole_offset_y: distance.default(0),
1266
1324
  x: distance,
1267
1325
  y: distance,
1268
- layers: z65.array(layer_ref),
1269
- port_hints: z65.array(z65.string()).optional(),
1270
- pcb_component_id: z65.string().optional(),
1271
- pcb_port_id: z65.string().optional(),
1326
+ layers: z68.array(layer_ref),
1327
+ port_hints: z68.array(z68.string()).optional(),
1328
+ pcb_component_id: z68.string().optional(),
1329
+ pcb_port_id: z68.string().optional(),
1272
1330
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1273
1331
  });
1274
- var pcb_rotated_pill_hole_with_rect_pad = z65.object({
1275
- type: z65.literal("pcb_plated_hole"),
1276
- shape: z65.literal("rotated_pill_hole_with_rect_pad"),
1277
- pcb_group_id: z65.string().optional(),
1278
- subcircuit_id: z65.string().optional(),
1279
- hole_shape: z65.literal("rotated_pill"),
1280
- pad_shape: z65.literal("rect"),
1281
- hole_width: z65.number(),
1282
- hole_height: z65.number(),
1332
+ var pcb_rotated_pill_hole_with_rect_pad = z68.object({
1333
+ type: z68.literal("pcb_plated_hole"),
1334
+ shape: z68.literal("rotated_pill_hole_with_rect_pad"),
1335
+ pcb_group_id: z68.string().optional(),
1336
+ subcircuit_id: z68.string().optional(),
1337
+ hole_shape: z68.literal("rotated_pill"),
1338
+ pad_shape: z68.literal("rect"),
1339
+ hole_width: z68.number(),
1340
+ hole_height: z68.number(),
1283
1341
  hole_ccw_rotation: rotation,
1284
- rect_pad_width: z65.number(),
1285
- rect_pad_height: z65.number(),
1286
- rect_border_radius: z65.number().optional(),
1342
+ rect_pad_width: z68.number(),
1343
+ rect_pad_height: z68.number(),
1344
+ rect_border_radius: z68.number().optional(),
1287
1345
  rect_ccw_rotation: rotation,
1288
1346
  hole_offset_x: distance.default(0),
1289
1347
  hole_offset_y: distance.default(0),
1290
1348
  x: distance,
1291
1349
  y: distance,
1292
- layers: z65.array(layer_ref),
1293
- port_hints: z65.array(z65.string()).optional(),
1294
- pcb_component_id: z65.string().optional(),
1295
- pcb_port_id: z65.string().optional(),
1350
+ layers: z68.array(layer_ref),
1351
+ port_hints: z68.array(z68.string()).optional(),
1352
+ pcb_component_id: z68.string().optional(),
1353
+ pcb_port_id: z68.string().optional(),
1296
1354
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1297
1355
  });
1298
- var pcb_plated_hole = z65.union([
1356
+ var pcb_plated_hole = z68.union([
1299
1357
  pcb_plated_hole_circle,
1300
1358
  pcb_plated_hole_oval,
1301
1359
  pcb_circular_hole_with_rect_pad,
@@ -1311,122 +1369,122 @@ expectTypesMatch(true);
1311
1369
  expectTypesMatch(true);
1312
1370
 
1313
1371
  // src/pcb/pcb_port.ts
1314
- import { z as z66 } from "zod";
1315
- var pcb_port = z66.object({
1316
- type: z66.literal("pcb_port"),
1372
+ import { z as z69 } from "zod";
1373
+ var pcb_port = z69.object({
1374
+ type: z69.literal("pcb_port"),
1317
1375
  pcb_port_id: getZodPrefixedIdWithDefault("pcb_port"),
1318
- pcb_group_id: z66.string().optional(),
1319
- subcircuit_id: z66.string().optional(),
1320
- source_port_id: z66.string(),
1321
- pcb_component_id: z66.string(),
1376
+ pcb_group_id: z69.string().optional(),
1377
+ subcircuit_id: z69.string().optional(),
1378
+ source_port_id: z69.string(),
1379
+ pcb_component_id: z69.string(),
1322
1380
  x: distance,
1323
1381
  y: distance,
1324
- layers: z66.array(layer_ref),
1325
- is_board_pinout: z66.boolean().optional()
1382
+ layers: z69.array(layer_ref),
1383
+ is_board_pinout: z69.boolean().optional()
1326
1384
  }).describe("Defines a port on the PCB");
1327
1385
  expectTypesMatch(true);
1328
1386
 
1329
1387
  // src/pcb/pcb_smtpad.ts
1330
- import { z as z67 } from "zod";
1331
- var pcb_smtpad_circle = z67.object({
1332
- type: z67.literal("pcb_smtpad"),
1333
- shape: z67.literal("circle"),
1388
+ import { z as z70 } from "zod";
1389
+ var pcb_smtpad_circle = z70.object({
1390
+ type: z70.literal("pcb_smtpad"),
1391
+ shape: z70.literal("circle"),
1334
1392
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1335
- pcb_group_id: z67.string().optional(),
1336
- subcircuit_id: z67.string().optional(),
1393
+ pcb_group_id: z70.string().optional(),
1394
+ subcircuit_id: z70.string().optional(),
1337
1395
  x: distance,
1338
1396
  y: distance,
1339
- radius: z67.number(),
1397
+ radius: z70.number(),
1340
1398
  layer: layer_ref,
1341
- port_hints: z67.array(z67.string()).optional(),
1342
- pcb_component_id: z67.string().optional(),
1343
- pcb_port_id: z67.string().optional(),
1344
- is_covered_with_solder_mask: z67.boolean().optional()
1345
- });
1346
- var pcb_smtpad_rect = z67.object({
1347
- type: z67.literal("pcb_smtpad"),
1348
- shape: z67.literal("rect"),
1399
+ port_hints: z70.array(z70.string()).optional(),
1400
+ pcb_component_id: z70.string().optional(),
1401
+ pcb_port_id: z70.string().optional(),
1402
+ is_covered_with_solder_mask: z70.boolean().optional()
1403
+ });
1404
+ var pcb_smtpad_rect = z70.object({
1405
+ type: z70.literal("pcb_smtpad"),
1406
+ shape: z70.literal("rect"),
1349
1407
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1350
- pcb_group_id: z67.string().optional(),
1351
- subcircuit_id: z67.string().optional(),
1408
+ pcb_group_id: z70.string().optional(),
1409
+ subcircuit_id: z70.string().optional(),
1352
1410
  x: distance,
1353
1411
  y: distance,
1354
- width: z67.number(),
1355
- height: z67.number(),
1356
- rect_border_radius: z67.number().optional(),
1412
+ width: z70.number(),
1413
+ height: z70.number(),
1414
+ rect_border_radius: z70.number().optional(),
1357
1415
  layer: layer_ref,
1358
- port_hints: z67.array(z67.string()).optional(),
1359
- pcb_component_id: z67.string().optional(),
1360
- pcb_port_id: z67.string().optional(),
1361
- is_covered_with_solder_mask: z67.boolean().optional()
1362
- });
1363
- var pcb_smtpad_rotated_rect = z67.object({
1364
- type: z67.literal("pcb_smtpad"),
1365
- shape: z67.literal("rotated_rect"),
1416
+ port_hints: z70.array(z70.string()).optional(),
1417
+ pcb_component_id: z70.string().optional(),
1418
+ pcb_port_id: z70.string().optional(),
1419
+ is_covered_with_solder_mask: z70.boolean().optional()
1420
+ });
1421
+ var pcb_smtpad_rotated_rect = z70.object({
1422
+ type: z70.literal("pcb_smtpad"),
1423
+ shape: z70.literal("rotated_rect"),
1366
1424
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1367
- pcb_group_id: z67.string().optional(),
1368
- subcircuit_id: z67.string().optional(),
1425
+ pcb_group_id: z70.string().optional(),
1426
+ subcircuit_id: z70.string().optional(),
1369
1427
  x: distance,
1370
1428
  y: distance,
1371
- width: z67.number(),
1372
- height: z67.number(),
1373
- rect_border_radius: z67.number().optional(),
1429
+ width: z70.number(),
1430
+ height: z70.number(),
1431
+ rect_border_radius: z70.number().optional(),
1374
1432
  ccw_rotation: rotation,
1375
1433
  layer: layer_ref,
1376
- port_hints: z67.array(z67.string()).optional(),
1377
- pcb_component_id: z67.string().optional(),
1378
- pcb_port_id: z67.string().optional(),
1379
- is_covered_with_solder_mask: z67.boolean().optional()
1380
- });
1381
- var pcb_smtpad_pill = z67.object({
1382
- type: z67.literal("pcb_smtpad"),
1383
- shape: z67.literal("pill"),
1434
+ port_hints: z70.array(z70.string()).optional(),
1435
+ pcb_component_id: z70.string().optional(),
1436
+ pcb_port_id: z70.string().optional(),
1437
+ is_covered_with_solder_mask: z70.boolean().optional()
1438
+ });
1439
+ var pcb_smtpad_pill = z70.object({
1440
+ type: z70.literal("pcb_smtpad"),
1441
+ shape: z70.literal("pill"),
1384
1442
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1385
- pcb_group_id: z67.string().optional(),
1386
- subcircuit_id: z67.string().optional(),
1443
+ pcb_group_id: z70.string().optional(),
1444
+ subcircuit_id: z70.string().optional(),
1387
1445
  x: distance,
1388
1446
  y: distance,
1389
- width: z67.number(),
1390
- height: z67.number(),
1391
- radius: z67.number(),
1447
+ width: z70.number(),
1448
+ height: z70.number(),
1449
+ radius: z70.number(),
1392
1450
  layer: layer_ref,
1393
- port_hints: z67.array(z67.string()).optional(),
1394
- pcb_component_id: z67.string().optional(),
1395
- pcb_port_id: z67.string().optional(),
1396
- is_covered_with_solder_mask: z67.boolean().optional()
1397
- });
1398
- var pcb_smtpad_rotated_pill = z67.object({
1399
- type: z67.literal("pcb_smtpad"),
1400
- shape: z67.literal("rotated_pill"),
1451
+ port_hints: z70.array(z70.string()).optional(),
1452
+ pcb_component_id: z70.string().optional(),
1453
+ pcb_port_id: z70.string().optional(),
1454
+ is_covered_with_solder_mask: z70.boolean().optional()
1455
+ });
1456
+ var pcb_smtpad_rotated_pill = z70.object({
1457
+ type: z70.literal("pcb_smtpad"),
1458
+ shape: z70.literal("rotated_pill"),
1401
1459
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1402
- pcb_group_id: z67.string().optional(),
1403
- subcircuit_id: z67.string().optional(),
1460
+ pcb_group_id: z70.string().optional(),
1461
+ subcircuit_id: z70.string().optional(),
1404
1462
  x: distance,
1405
1463
  y: distance,
1406
- width: z67.number(),
1407
- height: z67.number(),
1408
- radius: z67.number(),
1464
+ width: z70.number(),
1465
+ height: z70.number(),
1466
+ radius: z70.number(),
1409
1467
  ccw_rotation: rotation,
1410
1468
  layer: layer_ref,
1411
- port_hints: z67.array(z67.string()).optional(),
1412
- pcb_component_id: z67.string().optional(),
1413
- pcb_port_id: z67.string().optional(),
1414
- is_covered_with_solder_mask: z67.boolean().optional()
1415
- });
1416
- var pcb_smtpad_polygon = z67.object({
1417
- type: z67.literal("pcb_smtpad"),
1418
- shape: z67.literal("polygon"),
1469
+ port_hints: z70.array(z70.string()).optional(),
1470
+ pcb_component_id: z70.string().optional(),
1471
+ pcb_port_id: z70.string().optional(),
1472
+ is_covered_with_solder_mask: z70.boolean().optional()
1473
+ });
1474
+ var pcb_smtpad_polygon = z70.object({
1475
+ type: z70.literal("pcb_smtpad"),
1476
+ shape: z70.literal("polygon"),
1419
1477
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1420
- pcb_group_id: z67.string().optional(),
1421
- subcircuit_id: z67.string().optional(),
1422
- points: z67.array(point),
1478
+ pcb_group_id: z70.string().optional(),
1479
+ subcircuit_id: z70.string().optional(),
1480
+ points: z70.array(point),
1423
1481
  layer: layer_ref,
1424
- port_hints: z67.array(z67.string()).optional(),
1425
- pcb_component_id: z67.string().optional(),
1426
- pcb_port_id: z67.string().optional(),
1427
- is_covered_with_solder_mask: z67.boolean().optional()
1482
+ port_hints: z70.array(z70.string()).optional(),
1483
+ pcb_component_id: z70.string().optional(),
1484
+ pcb_port_id: z70.string().optional(),
1485
+ is_covered_with_solder_mask: z70.boolean().optional()
1428
1486
  });
1429
- var pcb_smtpad = z67.discriminatedUnion("shape", [
1487
+ var pcb_smtpad = z70.discriminatedUnion("shape", [
1430
1488
  pcb_smtpad_circle,
1431
1489
  pcb_smtpad_rect,
1432
1490
  pcb_smtpad_rotated_rect,
@@ -1442,79 +1500,79 @@ expectTypesMatch(true);
1442
1500
  expectTypesMatch(true);
1443
1501
 
1444
1502
  // src/pcb/pcb_solder_paste.ts
1445
- import { z as z68 } from "zod";
1446
- var pcb_solder_paste_circle = z68.object({
1447
- type: z68.literal("pcb_solder_paste"),
1448
- shape: z68.literal("circle"),
1503
+ import { z as z71 } from "zod";
1504
+ var pcb_solder_paste_circle = z71.object({
1505
+ type: z71.literal("pcb_solder_paste"),
1506
+ shape: z71.literal("circle"),
1449
1507
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1450
- pcb_group_id: z68.string().optional(),
1451
- subcircuit_id: z68.string().optional(),
1508
+ pcb_group_id: z71.string().optional(),
1509
+ subcircuit_id: z71.string().optional(),
1452
1510
  x: distance,
1453
1511
  y: distance,
1454
- radius: z68.number(),
1512
+ radius: z71.number(),
1455
1513
  layer: layer_ref,
1456
- pcb_component_id: z68.string().optional(),
1457
- pcb_smtpad_id: z68.string().optional()
1514
+ pcb_component_id: z71.string().optional(),
1515
+ pcb_smtpad_id: z71.string().optional()
1458
1516
  });
1459
- var pcb_solder_paste_rect = z68.object({
1460
- type: z68.literal("pcb_solder_paste"),
1461
- shape: z68.literal("rect"),
1517
+ var pcb_solder_paste_rect = z71.object({
1518
+ type: z71.literal("pcb_solder_paste"),
1519
+ shape: z71.literal("rect"),
1462
1520
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1463
- pcb_group_id: z68.string().optional(),
1464
- subcircuit_id: z68.string().optional(),
1521
+ pcb_group_id: z71.string().optional(),
1522
+ subcircuit_id: z71.string().optional(),
1465
1523
  x: distance,
1466
1524
  y: distance,
1467
- width: z68.number(),
1468
- height: z68.number(),
1525
+ width: z71.number(),
1526
+ height: z71.number(),
1469
1527
  layer: layer_ref,
1470
- pcb_component_id: z68.string().optional(),
1471
- pcb_smtpad_id: z68.string().optional()
1528
+ pcb_component_id: z71.string().optional(),
1529
+ pcb_smtpad_id: z71.string().optional()
1472
1530
  });
1473
- var pcb_solder_paste_pill = z68.object({
1474
- type: z68.literal("pcb_solder_paste"),
1475
- shape: z68.literal("pill"),
1531
+ var pcb_solder_paste_pill = z71.object({
1532
+ type: z71.literal("pcb_solder_paste"),
1533
+ shape: z71.literal("pill"),
1476
1534
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1477
- pcb_group_id: z68.string().optional(),
1478
- subcircuit_id: z68.string().optional(),
1535
+ pcb_group_id: z71.string().optional(),
1536
+ subcircuit_id: z71.string().optional(),
1479
1537
  x: distance,
1480
1538
  y: distance,
1481
- width: z68.number(),
1482
- height: z68.number(),
1483
- radius: z68.number(),
1539
+ width: z71.number(),
1540
+ height: z71.number(),
1541
+ radius: z71.number(),
1484
1542
  layer: layer_ref,
1485
- pcb_component_id: z68.string().optional(),
1486
- pcb_smtpad_id: z68.string().optional()
1543
+ pcb_component_id: z71.string().optional(),
1544
+ pcb_smtpad_id: z71.string().optional()
1487
1545
  });
1488
- var pcb_solder_paste_rotated_rect = z68.object({
1489
- type: z68.literal("pcb_solder_paste"),
1490
- shape: z68.literal("rotated_rect"),
1546
+ var pcb_solder_paste_rotated_rect = z71.object({
1547
+ type: z71.literal("pcb_solder_paste"),
1548
+ shape: z71.literal("rotated_rect"),
1491
1549
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1492
- pcb_group_id: z68.string().optional(),
1493
- subcircuit_id: z68.string().optional(),
1550
+ pcb_group_id: z71.string().optional(),
1551
+ subcircuit_id: z71.string().optional(),
1494
1552
  x: distance,
1495
1553
  y: distance,
1496
- width: z68.number(),
1497
- height: z68.number(),
1554
+ width: z71.number(),
1555
+ height: z71.number(),
1498
1556
  ccw_rotation: distance,
1499
1557
  layer: layer_ref,
1500
- pcb_component_id: z68.string().optional(),
1501
- pcb_smtpad_id: z68.string().optional()
1558
+ pcb_component_id: z71.string().optional(),
1559
+ pcb_smtpad_id: z71.string().optional()
1502
1560
  });
1503
- var pcb_solder_paste_oval = z68.object({
1504
- type: z68.literal("pcb_solder_paste"),
1505
- shape: z68.literal("oval"),
1561
+ var pcb_solder_paste_oval = z71.object({
1562
+ type: z71.literal("pcb_solder_paste"),
1563
+ shape: z71.literal("oval"),
1506
1564
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1507
- pcb_group_id: z68.string().optional(),
1508
- subcircuit_id: z68.string().optional(),
1565
+ pcb_group_id: z71.string().optional(),
1566
+ subcircuit_id: z71.string().optional(),
1509
1567
  x: distance,
1510
1568
  y: distance,
1511
- width: z68.number(),
1512
- height: z68.number(),
1569
+ width: z71.number(),
1570
+ height: z71.number(),
1513
1571
  layer: layer_ref,
1514
- pcb_component_id: z68.string().optional(),
1515
- pcb_smtpad_id: z68.string().optional()
1572
+ pcb_component_id: z71.string().optional(),
1573
+ pcb_smtpad_id: z71.string().optional()
1516
1574
  });
1517
- var pcb_solder_paste = z68.union([
1575
+ var pcb_solder_paste = z71.union([
1518
1576
  pcb_solder_paste_circle,
1519
1577
  pcb_solder_paste_rect,
1520
1578
  pcb_solder_paste_pill,
@@ -1530,134 +1588,134 @@ expectTypesMatch(
1530
1588
  expectTypesMatch(true);
1531
1589
 
1532
1590
  // src/pcb/pcb_text.ts
1533
- import { z as z69 } from "zod";
1534
- var pcb_text = z69.object({
1535
- type: z69.literal("pcb_text"),
1591
+ import { z as z72 } from "zod";
1592
+ var pcb_text = z72.object({
1593
+ type: z72.literal("pcb_text"),
1536
1594
  pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
1537
- pcb_group_id: z69.string().optional(),
1538
- subcircuit_id: z69.string().optional(),
1539
- text: z69.string(),
1595
+ pcb_group_id: z72.string().optional(),
1596
+ subcircuit_id: z72.string().optional(),
1597
+ text: z72.string(),
1540
1598
  center: point,
1541
1599
  layer: layer_ref,
1542
1600
  width: length,
1543
1601
  height: length,
1544
- lines: z69.number(),
1602
+ lines: z72.number(),
1545
1603
  // @ts-ignore
1546
- align: z69.enum(["bottom-left"])
1604
+ align: z72.enum(["bottom-left"])
1547
1605
  }).describe("Defines text on the PCB");
1548
1606
  expectTypesMatch(true);
1549
1607
 
1550
1608
  // src/pcb/pcb_trace.ts
1551
- import { z as z70 } from "zod";
1552
- var pcb_trace_route_point_wire = z70.object({
1553
- route_type: z70.literal("wire"),
1609
+ import { z as z73 } from "zod";
1610
+ var pcb_trace_route_point_wire = z73.object({
1611
+ route_type: z73.literal("wire"),
1554
1612
  x: distance,
1555
1613
  y: distance,
1556
1614
  width: distance,
1557
- start_pcb_port_id: z70.string().optional(),
1558
- end_pcb_port_id: z70.string().optional(),
1615
+ start_pcb_port_id: z73.string().optional(),
1616
+ end_pcb_port_id: z73.string().optional(),
1559
1617
  layer: layer_ref
1560
1618
  });
1561
- var pcb_trace_route_point_via = z70.object({
1562
- route_type: z70.literal("via"),
1619
+ var pcb_trace_route_point_via = z73.object({
1620
+ route_type: z73.literal("via"),
1563
1621
  x: distance,
1564
1622
  y: distance,
1565
1623
  hole_diameter: distance.optional(),
1566
1624
  outer_diameter: distance.optional(),
1567
- from_layer: z70.string(),
1568
- to_layer: z70.string()
1625
+ from_layer: z73.string(),
1626
+ to_layer: z73.string()
1569
1627
  });
1570
- var pcb_trace_route_point = z70.union([
1628
+ var pcb_trace_route_point = z73.union([
1571
1629
  pcb_trace_route_point_wire,
1572
1630
  pcb_trace_route_point_via
1573
1631
  ]);
1574
- var pcb_trace = z70.object({
1575
- type: z70.literal("pcb_trace"),
1576
- source_trace_id: z70.string().optional(),
1577
- pcb_component_id: z70.string().optional(),
1632
+ var pcb_trace = z73.object({
1633
+ type: z73.literal("pcb_trace"),
1634
+ source_trace_id: z73.string().optional(),
1635
+ pcb_component_id: z73.string().optional(),
1578
1636
  pcb_trace_id: getZodPrefixedIdWithDefault("pcb_trace"),
1579
- pcb_group_id: z70.string().optional(),
1580
- subcircuit_id: z70.string().optional(),
1581
- route_thickness_mode: z70.enum(["constant", "interpolated"]).default("constant").optional(),
1582
- route_order_index: z70.number().optional(),
1583
- should_round_corners: z70.boolean().optional(),
1584
- trace_length: z70.number().optional(),
1585
- route: z70.array(pcb_trace_route_point)
1637
+ pcb_group_id: z73.string().optional(),
1638
+ subcircuit_id: z73.string().optional(),
1639
+ route_thickness_mode: z73.enum(["constant", "interpolated"]).default("constant").optional(),
1640
+ route_order_index: z73.number().optional(),
1641
+ should_round_corners: z73.boolean().optional(),
1642
+ trace_length: z73.number().optional(),
1643
+ route: z73.array(pcb_trace_route_point)
1586
1644
  }).describe("Defines a trace on the PCB");
1587
1645
  expectTypesMatch(true);
1588
1646
  expectTypesMatch(true);
1589
1647
 
1590
1648
  // src/pcb/pcb_trace_error.ts
1591
- import { z as z71 } from "zod";
1592
- var pcb_trace_error = z71.object({
1593
- type: z71.literal("pcb_trace_error"),
1649
+ import { z as z74 } from "zod";
1650
+ var pcb_trace_error = z74.object({
1651
+ type: z74.literal("pcb_trace_error"),
1594
1652
  pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
1595
- error_type: z71.literal("pcb_trace_error").default("pcb_trace_error"),
1596
- message: z71.string(),
1653
+ error_type: z74.literal("pcb_trace_error").default("pcb_trace_error"),
1654
+ message: z74.string(),
1597
1655
  center: point.optional(),
1598
- pcb_trace_id: z71.string(),
1599
- source_trace_id: z71.string(),
1600
- pcb_component_ids: z71.array(z71.string()),
1601
- pcb_port_ids: z71.array(z71.string()),
1602
- subcircuit_id: z71.string().optional()
1656
+ pcb_trace_id: z74.string(),
1657
+ source_trace_id: z74.string(),
1658
+ pcb_component_ids: z74.array(z74.string()),
1659
+ pcb_port_ids: z74.array(z74.string()),
1660
+ subcircuit_id: z74.string().optional()
1603
1661
  }).describe("Defines a trace error on the PCB");
1604
1662
  expectTypesMatch(true);
1605
1663
 
1606
1664
  // src/pcb/pcb_trace_missing_error.ts
1607
- import { z as z72 } from "zod";
1608
- var pcb_trace_missing_error = z72.object({
1609
- type: z72.literal("pcb_trace_missing_error"),
1665
+ import { z as z75 } from "zod";
1666
+ var pcb_trace_missing_error = z75.object({
1667
+ type: z75.literal("pcb_trace_missing_error"),
1610
1668
  pcb_trace_missing_error_id: getZodPrefixedIdWithDefault(
1611
1669
  "pcb_trace_missing_error"
1612
1670
  ),
1613
- error_type: z72.literal("pcb_trace_missing_error").default("pcb_trace_missing_error"),
1614
- message: z72.string(),
1671
+ error_type: z75.literal("pcb_trace_missing_error").default("pcb_trace_missing_error"),
1672
+ message: z75.string(),
1615
1673
  center: point.optional(),
1616
- source_trace_id: z72.string(),
1617
- pcb_component_ids: z72.array(z72.string()),
1618
- pcb_port_ids: z72.array(z72.string()),
1619
- subcircuit_id: z72.string().optional()
1674
+ source_trace_id: z75.string(),
1675
+ pcb_component_ids: z75.array(z75.string()),
1676
+ pcb_port_ids: z75.array(z75.string()),
1677
+ subcircuit_id: z75.string().optional()
1620
1678
  }).describe(
1621
1679
  "Defines an error when a source trace has no corresponding PCB trace"
1622
1680
  );
1623
1681
  expectTypesMatch(true);
1624
1682
 
1625
1683
  // src/pcb/pcb_port_not_matched_error.ts
1626
- import { z as z73 } from "zod";
1627
- var pcb_port_not_matched_error = z73.object({
1628
- type: z73.literal("pcb_port_not_matched_error"),
1684
+ import { z as z76 } from "zod";
1685
+ var pcb_port_not_matched_error = z76.object({
1686
+ type: z76.literal("pcb_port_not_matched_error"),
1629
1687
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
1630
- error_type: z73.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
1631
- message: z73.string(),
1632
- pcb_component_ids: z73.array(z73.string()),
1633
- subcircuit_id: z73.string().optional()
1688
+ error_type: z76.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
1689
+ message: z76.string(),
1690
+ pcb_component_ids: z76.array(z76.string()),
1691
+ subcircuit_id: z76.string().optional()
1634
1692
  }).describe("Defines a trace error on the PCB where a port is not matched");
1635
1693
  expectTypesMatch(true);
1636
1694
 
1637
1695
  // src/pcb/pcb_port_not_connected_error.ts
1638
- import { z as z74 } from "zod";
1639
- var pcb_port_not_connected_error = z74.object({
1640
- type: z74.literal("pcb_port_not_connected_error"),
1696
+ import { z as z77 } from "zod";
1697
+ var pcb_port_not_connected_error = z77.object({
1698
+ type: z77.literal("pcb_port_not_connected_error"),
1641
1699
  pcb_port_not_connected_error_id: getZodPrefixedIdWithDefault(
1642
1700
  "pcb_port_not_connected_error"
1643
1701
  ),
1644
- error_type: z74.literal("pcb_port_not_connected_error").default("pcb_port_not_connected_error"),
1645
- message: z74.string(),
1646
- pcb_port_ids: z74.array(z74.string()),
1647
- pcb_component_ids: z74.array(z74.string()),
1648
- subcircuit_id: z74.string().optional()
1702
+ error_type: z77.literal("pcb_port_not_connected_error").default("pcb_port_not_connected_error"),
1703
+ message: z77.string(),
1704
+ pcb_port_ids: z77.array(z77.string()),
1705
+ pcb_component_ids: z77.array(z77.string()),
1706
+ subcircuit_id: z77.string().optional()
1649
1707
  }).describe("Defines an error when a pcb port is not connected to any trace");
1650
1708
  expectTypesMatch(
1651
1709
  true
1652
1710
  );
1653
1711
 
1654
1712
  // src/pcb/pcb_via.ts
1655
- import { z as z75 } from "zod";
1656
- var pcb_via = z75.object({
1657
- type: z75.literal("pcb_via"),
1713
+ import { z as z78 } from "zod";
1714
+ var pcb_via = z78.object({
1715
+ type: z78.literal("pcb_via"),
1658
1716
  pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
1659
- pcb_group_id: z75.string().optional(),
1660
- subcircuit_id: z75.string().optional(),
1717
+ pcb_group_id: z78.string().optional(),
1718
+ subcircuit_id: z78.string().optional(),
1661
1719
  x: distance,
1662
1720
  y: distance,
1663
1721
  outer_diameter: distance.default("0.6mm"),
@@ -1666,59 +1724,59 @@ var pcb_via = z75.object({
1666
1724
  from_layer: layer_ref.optional(),
1667
1725
  /** @deprecated */
1668
1726
  to_layer: layer_ref.optional(),
1669
- layers: z75.array(layer_ref),
1670
- pcb_trace_id: z75.string().optional()
1727
+ layers: z78.array(layer_ref),
1728
+ pcb_trace_id: z78.string().optional()
1671
1729
  }).describe("Defines a via on the PCB");
1672
1730
  expectTypesMatch(true);
1673
1731
 
1674
1732
  // src/pcb/pcb_board.ts
1675
- import { z as z76 } from "zod";
1676
- var pcb_board = z76.object({
1677
- type: z76.literal("pcb_board"),
1733
+ import { z as z79 } from "zod";
1734
+ var pcb_board = z79.object({
1735
+ type: z79.literal("pcb_board"),
1678
1736
  pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
1679
- is_subcircuit: z76.boolean().optional(),
1680
- subcircuit_id: z76.string().optional(),
1737
+ is_subcircuit: z79.boolean().optional(),
1738
+ subcircuit_id: z79.string().optional(),
1681
1739
  width: length,
1682
1740
  height: length,
1683
1741
  center: point,
1684
1742
  thickness: length.optional().default(1.4),
1685
- num_layers: z76.number().optional().default(4),
1686
- outline: z76.array(point).optional(),
1687
- material: z76.enum(["fr4", "fr1"]).default("fr4")
1743
+ num_layers: z79.number().optional().default(4),
1744
+ outline: z79.array(point).optional(),
1745
+ material: z79.enum(["fr4", "fr1"]).default("fr4")
1688
1746
  }).describe("Defines the board outline of the PCB");
1689
1747
  expectTypesMatch(true);
1690
1748
 
1691
1749
  // src/pcb/pcb_placement_error.ts
1692
- import { z as z77 } from "zod";
1693
- var pcb_placement_error = z77.object({
1694
- type: z77.literal("pcb_placement_error"),
1750
+ import { z as z80 } from "zod";
1751
+ var pcb_placement_error = z80.object({
1752
+ type: z80.literal("pcb_placement_error"),
1695
1753
  pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
1696
- error_type: z77.literal("pcb_placement_error").default("pcb_placement_error"),
1697
- message: z77.string(),
1698
- subcircuit_id: z77.string().optional()
1754
+ error_type: z80.literal("pcb_placement_error").default("pcb_placement_error"),
1755
+ message: z80.string(),
1756
+ subcircuit_id: z80.string().optional()
1699
1757
  }).describe("Defines a placement error on the PCB");
1700
1758
  expectTypesMatch(true);
1701
1759
 
1702
1760
  // src/pcb/pcb_trace_hint.ts
1703
- import { z as z78 } from "zod";
1704
- var pcb_trace_hint = z78.object({
1705
- type: z78.literal("pcb_trace_hint"),
1761
+ import { z as z81 } from "zod";
1762
+ var pcb_trace_hint = z81.object({
1763
+ type: z81.literal("pcb_trace_hint"),
1706
1764
  pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
1707
- pcb_port_id: z78.string(),
1708
- pcb_component_id: z78.string(),
1709
- route: z78.array(route_hint_point),
1710
- subcircuit_id: z78.string().optional()
1765
+ pcb_port_id: z81.string(),
1766
+ pcb_component_id: z81.string(),
1767
+ route: z81.array(route_hint_point),
1768
+ subcircuit_id: z81.string().optional()
1711
1769
  }).describe("A hint that can be used during generation of a PCB trace");
1712
1770
  expectTypesMatch(true);
1713
1771
 
1714
1772
  // src/pcb/pcb_silkscreen_line.ts
1715
- import { z as z79 } from "zod";
1716
- var pcb_silkscreen_line = z79.object({
1717
- type: z79.literal("pcb_silkscreen_line"),
1773
+ import { z as z82 } from "zod";
1774
+ var pcb_silkscreen_line = z82.object({
1775
+ type: z82.literal("pcb_silkscreen_line"),
1718
1776
  pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
1719
- pcb_component_id: z79.string(),
1720
- pcb_group_id: z79.string().optional(),
1721
- subcircuit_id: z79.string().optional(),
1777
+ pcb_component_id: z82.string(),
1778
+ pcb_group_id: z82.string().optional(),
1779
+ subcircuit_id: z82.string().optional(),
1722
1780
  stroke_width: distance.default("0.1mm"),
1723
1781
  x1: distance,
1724
1782
  y1: distance,
@@ -1729,32 +1787,32 @@ var pcb_silkscreen_line = z79.object({
1729
1787
  expectTypesMatch(true);
1730
1788
 
1731
1789
  // src/pcb/pcb_silkscreen_path.ts
1732
- import { z as z80 } from "zod";
1733
- var pcb_silkscreen_path = z80.object({
1734
- type: z80.literal("pcb_silkscreen_path"),
1790
+ import { z as z83 } from "zod";
1791
+ var pcb_silkscreen_path = z83.object({
1792
+ type: z83.literal("pcb_silkscreen_path"),
1735
1793
  pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
1736
- pcb_component_id: z80.string(),
1737
- pcb_group_id: z80.string().optional(),
1738
- subcircuit_id: z80.string().optional(),
1794
+ pcb_component_id: z83.string(),
1795
+ pcb_group_id: z83.string().optional(),
1796
+ subcircuit_id: z83.string().optional(),
1739
1797
  layer: visible_layer,
1740
- route: z80.array(point),
1798
+ route: z83.array(point),
1741
1799
  stroke_width: length
1742
1800
  }).describe("Defines a silkscreen path on the PCB");
1743
1801
  expectTypesMatch(true);
1744
1802
 
1745
1803
  // src/pcb/pcb_silkscreen_text.ts
1746
- import { z as z81 } from "zod";
1747
- var pcb_silkscreen_text = z81.object({
1748
- type: z81.literal("pcb_silkscreen_text"),
1804
+ import { z as z84 } from "zod";
1805
+ var pcb_silkscreen_text = z84.object({
1806
+ type: z84.literal("pcb_silkscreen_text"),
1749
1807
  pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
1750
- pcb_group_id: z81.string().optional(),
1751
- subcircuit_id: z81.string().optional(),
1752
- font: z81.literal("tscircuit2024").default("tscircuit2024"),
1808
+ pcb_group_id: z84.string().optional(),
1809
+ subcircuit_id: z84.string().optional(),
1810
+ font: z84.literal("tscircuit2024").default("tscircuit2024"),
1753
1811
  font_size: distance.default("0.2mm"),
1754
- pcb_component_id: z81.string(),
1755
- text: z81.string(),
1756
- is_knockout: z81.boolean().default(false).optional(),
1757
- knockout_padding: z81.object({
1812
+ pcb_component_id: z84.string(),
1813
+ text: z84.string(),
1814
+ is_knockout: z84.boolean().default(false).optional(),
1815
+ knockout_padding: z84.object({
1758
1816
  left: length,
1759
1817
  top: length,
1760
1818
  bottom: length,
@@ -1765,43 +1823,43 @@ var pcb_silkscreen_text = z81.object({
1765
1823
  bottom: "0.2mm",
1766
1824
  right: "0.2mm"
1767
1825
  }).optional(),
1768
- ccw_rotation: z81.number().optional(),
1826
+ ccw_rotation: z84.number().optional(),
1769
1827
  layer: layer_ref,
1770
- is_mirrored: z81.boolean().default(false).optional(),
1828
+ is_mirrored: z84.boolean().default(false).optional(),
1771
1829
  anchor_position: point.default({ x: 0, y: 0 }),
1772
1830
  anchor_alignment: ninePointAnchor.default("center")
1773
1831
  }).describe("Defines silkscreen text on the PCB");
1774
1832
  expectTypesMatch(true);
1775
1833
 
1776
1834
  // src/pcb/pcb_silkscreen_rect.ts
1777
- import { z as z82 } from "zod";
1778
- var pcb_silkscreen_rect = z82.object({
1779
- type: z82.literal("pcb_silkscreen_rect"),
1835
+ import { z as z85 } from "zod";
1836
+ var pcb_silkscreen_rect = z85.object({
1837
+ type: z85.literal("pcb_silkscreen_rect"),
1780
1838
  pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
1781
- pcb_component_id: z82.string(),
1782
- pcb_group_id: z82.string().optional(),
1783
- subcircuit_id: z82.string().optional(),
1839
+ pcb_component_id: z85.string(),
1840
+ pcb_group_id: z85.string().optional(),
1841
+ subcircuit_id: z85.string().optional(),
1784
1842
  center: point,
1785
1843
  width: length,
1786
1844
  height: length,
1787
1845
  layer: layer_ref,
1788
1846
  stroke_width: length.default("1mm"),
1789
- is_filled: z82.boolean().default(true).optional(),
1790
- has_stroke: z82.boolean().optional(),
1791
- is_stroke_dashed: z82.boolean().optional()
1847
+ is_filled: z85.boolean().default(true).optional(),
1848
+ has_stroke: z85.boolean().optional(),
1849
+ is_stroke_dashed: z85.boolean().optional()
1792
1850
  }).describe("Defines a silkscreen rect on the PCB");
1793
1851
  expectTypesMatch(true);
1794
1852
 
1795
1853
  // src/pcb/pcb_silkscreen_circle.ts
1796
- import { z as z83 } from "zod";
1797
- var pcb_silkscreen_circle = z83.object({
1798
- type: z83.literal("pcb_silkscreen_circle"),
1854
+ import { z as z86 } from "zod";
1855
+ var pcb_silkscreen_circle = z86.object({
1856
+ type: z86.literal("pcb_silkscreen_circle"),
1799
1857
  pcb_silkscreen_circle_id: getZodPrefixedIdWithDefault(
1800
1858
  "pcb_silkscreen_circle"
1801
1859
  ),
1802
- pcb_component_id: z83.string(),
1803
- pcb_group_id: z83.string().optional(),
1804
- subcircuit_id: z83.string().optional(),
1860
+ pcb_component_id: z86.string(),
1861
+ pcb_group_id: z86.string().optional(),
1862
+ subcircuit_id: z86.string().optional(),
1805
1863
  center: point,
1806
1864
  radius: length,
1807
1865
  layer: visible_layer,
@@ -1810,13 +1868,13 @@ var pcb_silkscreen_circle = z83.object({
1810
1868
  expectTypesMatch(true);
1811
1869
 
1812
1870
  // src/pcb/pcb_silkscreen_oval.ts
1813
- import { z as z84 } from "zod";
1814
- var pcb_silkscreen_oval = z84.object({
1815
- type: z84.literal("pcb_silkscreen_oval"),
1871
+ import { z as z87 } from "zod";
1872
+ var pcb_silkscreen_oval = z87.object({
1873
+ type: z87.literal("pcb_silkscreen_oval"),
1816
1874
  pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
1817
- pcb_component_id: z84.string(),
1818
- pcb_group_id: z84.string().optional(),
1819
- subcircuit_id: z84.string().optional(),
1875
+ pcb_component_id: z87.string(),
1876
+ pcb_group_id: z87.string().optional(),
1877
+ subcircuit_id: z87.string().optional(),
1820
1878
  center: point,
1821
1879
  radius_x: distance,
1822
1880
  radius_y: distance,
@@ -1825,103 +1883,103 @@ var pcb_silkscreen_oval = z84.object({
1825
1883
  expectTypesMatch(true);
1826
1884
 
1827
1885
  // src/pcb/pcb_fabrication_note_text.ts
1828
- import { z as z85 } from "zod";
1829
- var pcb_fabrication_note_text = z85.object({
1830
- type: z85.literal("pcb_fabrication_note_text"),
1886
+ import { z as z88 } from "zod";
1887
+ var pcb_fabrication_note_text = z88.object({
1888
+ type: z88.literal("pcb_fabrication_note_text"),
1831
1889
  pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
1832
1890
  "pcb_fabrication_note_text"
1833
1891
  ),
1834
- subcircuit_id: z85.string().optional(),
1835
- pcb_group_id: z85.string().optional(),
1836
- font: z85.literal("tscircuit2024").default("tscircuit2024"),
1892
+ subcircuit_id: z88.string().optional(),
1893
+ pcb_group_id: z88.string().optional(),
1894
+ font: z88.literal("tscircuit2024").default("tscircuit2024"),
1837
1895
  font_size: distance.default("1mm"),
1838
- pcb_component_id: z85.string(),
1839
- text: z85.string(),
1896
+ pcb_component_id: z88.string(),
1897
+ text: z88.string(),
1840
1898
  layer: visible_layer,
1841
1899
  anchor_position: point.default({ x: 0, y: 0 }),
1842
- anchor_alignment: z85.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
1843
- color: z85.string().optional()
1900
+ anchor_alignment: z88.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
1901
+ color: z88.string().optional()
1844
1902
  }).describe(
1845
1903
  "Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
1846
1904
  );
1847
1905
  expectTypesMatch(true);
1848
1906
 
1849
1907
  // src/pcb/pcb_fabrication_note_path.ts
1850
- import { z as z86 } from "zod";
1851
- var pcb_fabrication_note_path = z86.object({
1852
- type: z86.literal("pcb_fabrication_note_path"),
1908
+ import { z as z89 } from "zod";
1909
+ var pcb_fabrication_note_path = z89.object({
1910
+ type: z89.literal("pcb_fabrication_note_path"),
1853
1911
  pcb_fabrication_note_path_id: getZodPrefixedIdWithDefault(
1854
1912
  "pcb_fabrication_note_path"
1855
1913
  ),
1856
- pcb_component_id: z86.string(),
1857
- subcircuit_id: z86.string().optional(),
1914
+ pcb_component_id: z89.string(),
1915
+ subcircuit_id: z89.string().optional(),
1858
1916
  layer: layer_ref,
1859
- route: z86.array(point),
1917
+ route: z89.array(point),
1860
1918
  stroke_width: length,
1861
- color: z86.string().optional()
1919
+ color: z89.string().optional()
1862
1920
  }).describe(
1863
1921
  "Defines a fabrication path on the PCB for fabricators or assemblers"
1864
1922
  );
1865
1923
  expectTypesMatch(true);
1866
1924
 
1867
1925
  // src/pcb/pcb_footprint_overlap_error.ts
1868
- import { z as z87 } from "zod";
1869
- var pcb_footprint_overlap_error = z87.object({
1870
- type: z87.literal("pcb_footprint_overlap_error"),
1926
+ import { z as z90 } from "zod";
1927
+ var pcb_footprint_overlap_error = z90.object({
1928
+ type: z90.literal("pcb_footprint_overlap_error"),
1871
1929
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
1872
- error_type: z87.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
1873
- message: z87.string(),
1874
- pcb_smtpad_ids: z87.array(z87.string()).optional(),
1875
- pcb_plated_hole_ids: z87.array(z87.string()).optional(),
1876
- pcb_hole_ids: z87.array(z87.string()).optional(),
1877
- pcb_keepout_ids: z87.array(z87.string()).optional()
1930
+ error_type: z90.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
1931
+ message: z90.string(),
1932
+ pcb_smtpad_ids: z90.array(z90.string()).optional(),
1933
+ pcb_plated_hole_ids: z90.array(z90.string()).optional(),
1934
+ pcb_hole_ids: z90.array(z90.string()).optional(),
1935
+ pcb_keepout_ids: z90.array(z90.string()).optional()
1878
1936
  }).describe("Error emitted when a pcb footprint overlaps with another element");
1879
1937
  expectTypesMatch(
1880
1938
  true
1881
1939
  );
1882
1940
 
1883
1941
  // src/pcb/pcb_keepout.ts
1884
- import { z as z88 } from "zod";
1885
- var pcb_keepout = z88.object({
1886
- type: z88.literal("pcb_keepout"),
1887
- shape: z88.literal("rect"),
1888
- pcb_group_id: z88.string().optional(),
1889
- subcircuit_id: z88.string().optional(),
1942
+ import { z as z91 } from "zod";
1943
+ var pcb_keepout = z91.object({
1944
+ type: z91.literal("pcb_keepout"),
1945
+ shape: z91.literal("rect"),
1946
+ pcb_group_id: z91.string().optional(),
1947
+ subcircuit_id: z91.string().optional(),
1890
1948
  center: point,
1891
1949
  width: distance,
1892
1950
  height: distance,
1893
- pcb_keepout_id: z88.string(),
1894
- layers: z88.array(z88.string()),
1951
+ pcb_keepout_id: z91.string(),
1952
+ layers: z91.array(z91.string()),
1895
1953
  // Specify layers where the keepout applies
1896
- description: z88.string().optional()
1954
+ description: z91.string().optional()
1897
1955
  // Optional description of the keepout
1898
1956
  }).or(
1899
- z88.object({
1900
- type: z88.literal("pcb_keepout"),
1901
- shape: z88.literal("circle"),
1902
- pcb_group_id: z88.string().optional(),
1903
- subcircuit_id: z88.string().optional(),
1957
+ z91.object({
1958
+ type: z91.literal("pcb_keepout"),
1959
+ shape: z91.literal("circle"),
1960
+ pcb_group_id: z91.string().optional(),
1961
+ subcircuit_id: z91.string().optional(),
1904
1962
  center: point,
1905
1963
  radius: distance,
1906
- pcb_keepout_id: z88.string(),
1907
- layers: z88.array(z88.string()),
1964
+ pcb_keepout_id: z91.string(),
1965
+ layers: z91.array(z91.string()),
1908
1966
  // Specify layers where the keepout applies
1909
- description: z88.string().optional()
1967
+ description: z91.string().optional()
1910
1968
  // Optional description of the keepout
1911
1969
  })
1912
1970
  );
1913
1971
  expectTypesMatch(true);
1914
1972
 
1915
1973
  // src/pcb/pcb_cutout.ts
1916
- import { z as z89 } from "zod";
1917
- var pcb_cutout_base = z89.object({
1918
- type: z89.literal("pcb_cutout"),
1974
+ import { z as z92 } from "zod";
1975
+ var pcb_cutout_base = z92.object({
1976
+ type: z92.literal("pcb_cutout"),
1919
1977
  pcb_cutout_id: getZodPrefixedIdWithDefault("pcb_cutout"),
1920
- pcb_group_id: z89.string().optional(),
1921
- subcircuit_id: z89.string().optional()
1978
+ pcb_group_id: z92.string().optional(),
1979
+ subcircuit_id: z92.string().optional()
1922
1980
  });
1923
1981
  var pcb_cutout_rect = pcb_cutout_base.extend({
1924
- shape: z89.literal("rect"),
1982
+ shape: z92.literal("rect"),
1925
1983
  center: point,
1926
1984
  width: length,
1927
1985
  height: length,
@@ -1929,17 +1987,17 @@ var pcb_cutout_rect = pcb_cutout_base.extend({
1929
1987
  });
1930
1988
  expectTypesMatch(true);
1931
1989
  var pcb_cutout_circle = pcb_cutout_base.extend({
1932
- shape: z89.literal("circle"),
1990
+ shape: z92.literal("circle"),
1933
1991
  center: point,
1934
1992
  radius: length
1935
1993
  });
1936
1994
  expectTypesMatch(true);
1937
1995
  var pcb_cutout_polygon = pcb_cutout_base.extend({
1938
- shape: z89.literal("polygon"),
1939
- points: z89.array(point)
1996
+ shape: z92.literal("polygon"),
1997
+ points: z92.array(point)
1940
1998
  });
1941
1999
  expectTypesMatch(true);
1942
- var pcb_cutout = z89.discriminatedUnion("shape", [
2000
+ var pcb_cutout = z92.discriminatedUnion("shape", [
1943
2001
  pcb_cutout_rect,
1944
2002
  pcb_cutout_circle,
1945
2003
  pcb_cutout_polygon
@@ -1947,100 +2005,117 @@ var pcb_cutout = z89.discriminatedUnion("shape", [
1947
2005
  expectTypesMatch(true);
1948
2006
 
1949
2007
  // src/pcb/pcb_missing_footprint_error.ts
1950
- import { z as z90 } from "zod";
1951
- var pcb_missing_footprint_error = z90.object({
1952
- type: z90.literal("pcb_missing_footprint_error"),
2008
+ import { z as z93 } from "zod";
2009
+ var pcb_missing_footprint_error = z93.object({
2010
+ type: z93.literal("pcb_missing_footprint_error"),
1953
2011
  pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
1954
2012
  "pcb_missing_footprint_error"
1955
2013
  ),
1956
- pcb_group_id: z90.string().optional(),
1957
- subcircuit_id: z90.string().optional(),
1958
- error_type: z90.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
1959
- source_component_id: z90.string(),
1960
- message: z90.string()
2014
+ pcb_group_id: z93.string().optional(),
2015
+ subcircuit_id: z93.string().optional(),
2016
+ error_type: z93.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
2017
+ source_component_id: z93.string(),
2018
+ message: z93.string()
1961
2019
  }).describe("Defines a missing footprint error on the PCB");
1962
2020
  expectTypesMatch(
1963
2021
  true
1964
2022
  );
1965
2023
 
1966
2024
  // src/pcb/external_footprint_load_error.ts
1967
- import { z as z91 } from "zod";
1968
- var external_footprint_load_error = z91.object({
1969
- type: z91.literal("external_footprint_load_error"),
2025
+ import { z as z94 } from "zod";
2026
+ var external_footprint_load_error = z94.object({
2027
+ type: z94.literal("external_footprint_load_error"),
1970
2028
  external_footprint_load_error_id: getZodPrefixedIdWithDefault(
1971
2029
  "external_footprint_load_error"
1972
2030
  ),
1973
- pcb_component_id: z91.string(),
1974
- source_component_id: z91.string(),
1975
- pcb_group_id: z91.string().optional(),
1976
- subcircuit_id: z91.string().optional(),
1977
- footprinter_string: z91.string().optional(),
1978
- error_type: z91.literal("external_footprint_load_error").default("external_footprint_load_error"),
1979
- message: z91.string()
2031
+ pcb_component_id: z94.string(),
2032
+ source_component_id: z94.string(),
2033
+ pcb_group_id: z94.string().optional(),
2034
+ subcircuit_id: z94.string().optional(),
2035
+ footprinter_string: z94.string().optional(),
2036
+ error_type: z94.literal("external_footprint_load_error").default("external_footprint_load_error"),
2037
+ message: z94.string()
1980
2038
  }).describe("Defines an error when an external footprint fails to load");
1981
2039
  expectTypesMatch(true);
1982
2040
 
2041
+ // src/pcb/circuit_json_footprint_load_error.ts
2042
+ import { z as z95 } from "zod";
2043
+ var circuit_json_footprint_load_error = z95.object({
2044
+ type: z95.literal("circuit_json_footprint_load_error"),
2045
+ circuit_json_footprint_load_error_id: getZodPrefixedIdWithDefault(
2046
+ "circuit_json_footprint_load_error"
2047
+ ),
2048
+ pcb_component_id: z95.string(),
2049
+ source_component_id: z95.string(),
2050
+ pcb_group_id: z95.string().optional(),
2051
+ subcircuit_id: z95.string().optional(),
2052
+ error_type: z95.literal("circuit_json_footprint_load_error").default("circuit_json_footprint_load_error"),
2053
+ message: z95.string(),
2054
+ circuit_json: z95.array(z95.any()).optional()
2055
+ }).describe("Defines an error when a circuit JSON footprint fails to load");
2056
+ expectTypesMatch(true);
2057
+
1983
2058
  // src/pcb/pcb_group.ts
1984
- import { z as z92 } from "zod";
1985
- var pcb_group = z92.object({
1986
- type: z92.literal("pcb_group"),
2059
+ import { z as z96 } from "zod";
2060
+ var pcb_group = z96.object({
2061
+ type: z96.literal("pcb_group"),
1987
2062
  pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
1988
- source_group_id: z92.string(),
1989
- is_subcircuit: z92.boolean().optional(),
1990
- subcircuit_id: z92.string().optional(),
2063
+ source_group_id: z96.string(),
2064
+ is_subcircuit: z96.boolean().optional(),
2065
+ subcircuit_id: z96.string().optional(),
1991
2066
  width: length,
1992
2067
  height: length,
1993
2068
  center: point,
1994
- pcb_component_ids: z92.array(z92.string()),
1995
- name: z92.string().optional(),
1996
- description: z92.string().optional(),
1997
- layout_mode: z92.string().optional(),
1998
- autorouter_configuration: z92.object({
2069
+ pcb_component_ids: z96.array(z96.string()),
2070
+ name: z96.string().optional(),
2071
+ description: z96.string().optional(),
2072
+ layout_mode: z96.string().optional(),
2073
+ autorouter_configuration: z96.object({
1999
2074
  trace_clearance: length
2000
2075
  }).optional(),
2001
- autorouter_used_string: z92.string().optional()
2076
+ autorouter_used_string: z96.string().optional()
2002
2077
  }).describe("Defines a group of components on the PCB");
2003
2078
  expectTypesMatch(true);
2004
2079
 
2005
2080
  // src/pcb/pcb_autorouting_error.ts
2006
- import { z as z93 } from "zod";
2007
- var pcb_autorouting_error = z93.object({
2008
- type: z93.literal("pcb_autorouting_error"),
2081
+ import { z as z97 } from "zod";
2082
+ var pcb_autorouting_error = z97.object({
2083
+ type: z97.literal("pcb_autorouting_error"),
2009
2084
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
2010
- error_type: z93.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
2011
- message: z93.string(),
2012
- subcircuit_id: z93.string().optional()
2085
+ error_type: z97.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
2086
+ message: z97.string(),
2087
+ subcircuit_id: z97.string().optional()
2013
2088
  }).describe("The autorouting has failed to route a portion of the board");
2014
2089
  expectTypesMatch(true);
2015
2090
 
2016
2091
  // src/pcb/pcb_manual_edit_conflict_warning.ts
2017
- import { z as z94 } from "zod";
2018
- var pcb_manual_edit_conflict_warning = z94.object({
2019
- type: z94.literal("pcb_manual_edit_conflict_warning"),
2092
+ import { z as z98 } from "zod";
2093
+ var pcb_manual_edit_conflict_warning = z98.object({
2094
+ type: z98.literal("pcb_manual_edit_conflict_warning"),
2020
2095
  pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
2021
2096
  "pcb_manual_edit_conflict_warning"
2022
2097
  ),
2023
- warning_type: z94.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
2024
- message: z94.string(),
2025
- pcb_component_id: z94.string(),
2026
- pcb_group_id: z94.string().optional(),
2027
- subcircuit_id: z94.string().optional(),
2028
- source_component_id: z94.string()
2098
+ warning_type: z98.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
2099
+ message: z98.string(),
2100
+ pcb_component_id: z98.string(),
2101
+ pcb_group_id: z98.string().optional(),
2102
+ subcircuit_id: z98.string().optional(),
2103
+ source_component_id: z98.string()
2029
2104
  }).describe(
2030
2105
  "Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
2031
2106
  );
2032
2107
  expectTypesMatch(true);
2033
2108
 
2034
2109
  // src/pcb/pcb_breakout_point.ts
2035
- import { z as z95 } from "zod";
2036
- var pcb_breakout_point = z95.object({
2037
- type: z95.literal("pcb_breakout_point"),
2110
+ import { z as z99 } from "zod";
2111
+ var pcb_breakout_point = z99.object({
2112
+ type: z99.literal("pcb_breakout_point"),
2038
2113
  pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
2039
- pcb_group_id: z95.string(),
2040
- subcircuit_id: z95.string().optional(),
2041
- source_trace_id: z95.string().optional(),
2042
- source_port_id: z95.string().optional(),
2043
- source_net_id: z95.string().optional(),
2114
+ pcb_group_id: z99.string(),
2115
+ subcircuit_id: z99.string().optional(),
2116
+ source_trace_id: z99.string().optional(),
2117
+ source_port_id: z99.string().optional(),
2118
+ source_net_id: z99.string().optional(),
2044
2119
  x: distance,
2045
2120
  y: distance
2046
2121
  }).describe(
@@ -2049,60 +2124,60 @@ var pcb_breakout_point = z95.object({
2049
2124
  expectTypesMatch(true);
2050
2125
 
2051
2126
  // src/pcb/pcb_ground_plane.ts
2052
- import { z as z96 } from "zod";
2053
- var pcb_ground_plane = z96.object({
2054
- type: z96.literal("pcb_ground_plane"),
2127
+ import { z as z100 } from "zod";
2128
+ var pcb_ground_plane = z100.object({
2129
+ type: z100.literal("pcb_ground_plane"),
2055
2130
  pcb_ground_plane_id: getZodPrefixedIdWithDefault("pcb_ground_plane"),
2056
- source_pcb_ground_plane_id: z96.string(),
2057
- source_net_id: z96.string(),
2058
- pcb_group_id: z96.string().optional(),
2059
- subcircuit_id: z96.string().optional()
2131
+ source_pcb_ground_plane_id: z100.string(),
2132
+ source_net_id: z100.string(),
2133
+ pcb_group_id: z100.string().optional(),
2134
+ subcircuit_id: z100.string().optional()
2060
2135
  }).describe("Defines a ground plane on the PCB");
2061
2136
  expectTypesMatch(true);
2062
2137
 
2063
2138
  // src/pcb/pcb_ground_plane_region.ts
2064
- import { z as z97 } from "zod";
2065
- var pcb_ground_plane_region = z97.object({
2066
- type: z97.literal("pcb_ground_plane_region"),
2139
+ import { z as z101 } from "zod";
2140
+ var pcb_ground_plane_region = z101.object({
2141
+ type: z101.literal("pcb_ground_plane_region"),
2067
2142
  pcb_ground_plane_region_id: getZodPrefixedIdWithDefault(
2068
2143
  "pcb_ground_plane_region"
2069
2144
  ),
2070
- pcb_ground_plane_id: z97.string(),
2071
- pcb_group_id: z97.string().optional(),
2072
- subcircuit_id: z97.string().optional(),
2145
+ pcb_ground_plane_id: z101.string(),
2146
+ pcb_group_id: z101.string().optional(),
2147
+ subcircuit_id: z101.string().optional(),
2073
2148
  layer: layer_ref,
2074
- points: z97.array(point)
2149
+ points: z101.array(point)
2075
2150
  }).describe("Defines a polygon region of a ground plane");
2076
2151
  expectTypesMatch(true);
2077
2152
 
2078
2153
  // src/pcb/pcb_thermal_spoke.ts
2079
- import { z as z98 } from "zod";
2080
- var pcb_thermal_spoke = z98.object({
2081
- type: z98.literal("pcb_thermal_spoke"),
2154
+ import { z as z102 } from "zod";
2155
+ var pcb_thermal_spoke = z102.object({
2156
+ type: z102.literal("pcb_thermal_spoke"),
2082
2157
  pcb_thermal_spoke_id: getZodPrefixedIdWithDefault("pcb_thermal_spoke"),
2083
- pcb_ground_plane_id: z98.string(),
2084
- shape: z98.string(),
2085
- spoke_count: z98.number(),
2158
+ pcb_ground_plane_id: z102.string(),
2159
+ shape: z102.string(),
2160
+ spoke_count: z102.number(),
2086
2161
  spoke_thickness: distance,
2087
2162
  spoke_inner_diameter: distance,
2088
2163
  spoke_outer_diameter: distance,
2089
- pcb_plated_hole_id: z98.string().optional(),
2090
- subcircuit_id: z98.string().optional()
2164
+ pcb_plated_hole_id: z102.string().optional(),
2165
+ subcircuit_id: z102.string().optional()
2091
2166
  }).describe("Pattern for connecting a ground plane to a plated hole");
2092
2167
  expectTypesMatch(true);
2093
2168
 
2094
2169
  // src/pcb/pcb_copper_pour.ts
2095
- import { z as z99 } from "zod";
2096
- var pcb_copper_pour_base = z99.object({
2097
- type: z99.literal("pcb_copper_pour"),
2170
+ import { z as z103 } from "zod";
2171
+ var pcb_copper_pour_base = z103.object({
2172
+ type: z103.literal("pcb_copper_pour"),
2098
2173
  pcb_copper_pour_id: getZodPrefixedIdWithDefault("pcb_copper_pour"),
2099
- pcb_group_id: z99.string().optional(),
2100
- subcircuit_id: z99.string().optional(),
2174
+ pcb_group_id: z103.string().optional(),
2175
+ subcircuit_id: z103.string().optional(),
2101
2176
  layer: layer_ref,
2102
- source_net_id: z99.string().optional()
2177
+ source_net_id: z103.string().optional()
2103
2178
  });
2104
2179
  var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
2105
- shape: z99.literal("rect"),
2180
+ shape: z103.literal("rect"),
2106
2181
  center: point,
2107
2182
  width: length,
2108
2183
  height: length,
@@ -2110,16 +2185,16 @@ var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
2110
2185
  });
2111
2186
  expectTypesMatch(true);
2112
2187
  var pcb_copper_pour_brep = pcb_copper_pour_base.extend({
2113
- shape: z99.literal("brep"),
2188
+ shape: z103.literal("brep"),
2114
2189
  brep_shape
2115
2190
  });
2116
2191
  expectTypesMatch(true);
2117
2192
  var pcb_copper_pour_polygon = pcb_copper_pour_base.extend({
2118
- shape: z99.literal("polygon"),
2119
- points: z99.array(point)
2193
+ shape: z103.literal("polygon"),
2194
+ points: z103.array(point)
2120
2195
  });
2121
2196
  expectTypesMatch(true);
2122
- var pcb_copper_pour = z99.discriminatedUnion("shape", [
2197
+ var pcb_copper_pour = z103.discriminatedUnion("shape", [
2123
2198
  pcb_copper_pour_rect,
2124
2199
  pcb_copper_pour_brep,
2125
2200
  pcb_copper_pour_polygon
@@ -2127,60 +2202,60 @@ var pcb_copper_pour = z99.discriminatedUnion("shape", [
2127
2202
  expectTypesMatch(true);
2128
2203
 
2129
2204
  // src/pcb/pcb_component_outside_board_error.ts
2130
- import { z as z100 } from "zod";
2131
- var pcb_component_outside_board_error = z100.object({
2132
- type: z100.literal("pcb_component_outside_board_error"),
2205
+ import { z as z104 } from "zod";
2206
+ var pcb_component_outside_board_error = z104.object({
2207
+ type: z104.literal("pcb_component_outside_board_error"),
2133
2208
  pcb_component_outside_board_error_id: getZodPrefixedIdWithDefault(
2134
2209
  "pcb_component_outside_board_error"
2135
2210
  ),
2136
- error_type: z100.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
2137
- message: z100.string(),
2138
- pcb_component_id: z100.string(),
2139
- pcb_board_id: z100.string(),
2211
+ error_type: z104.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
2212
+ message: z104.string(),
2213
+ pcb_component_id: z104.string(),
2214
+ pcb_board_id: z104.string(),
2140
2215
  component_center: point,
2141
- component_bounds: z100.object({
2142
- min_x: z100.number(),
2143
- max_x: z100.number(),
2144
- min_y: z100.number(),
2145
- max_y: z100.number()
2216
+ component_bounds: z104.object({
2217
+ min_x: z104.number(),
2218
+ max_x: z104.number(),
2219
+ min_y: z104.number(),
2220
+ max_y: z104.number()
2146
2221
  }),
2147
- subcircuit_id: z100.string().optional(),
2148
- source_component_id: z100.string().optional()
2222
+ subcircuit_id: z104.string().optional(),
2223
+ source_component_id: z104.string().optional()
2149
2224
  }).describe(
2150
2225
  "Error emitted when a PCB component is placed outside the board boundaries"
2151
2226
  );
2152
2227
  expectTypesMatch(true);
2153
2228
 
2154
2229
  // src/cad/cad_component.ts
2155
- import { z as z101 } from "zod";
2156
- var cad_component = z101.object({
2157
- type: z101.literal("cad_component"),
2158
- cad_component_id: z101.string(),
2159
- pcb_component_id: z101.string(),
2160
- source_component_id: z101.string(),
2230
+ import { z as z105 } from "zod";
2231
+ var cad_component = z105.object({
2232
+ type: z105.literal("cad_component"),
2233
+ cad_component_id: z105.string(),
2234
+ pcb_component_id: z105.string(),
2235
+ source_component_id: z105.string(),
2161
2236
  position: point3,
2162
2237
  rotation: point3.optional(),
2163
2238
  size: point3.optional(),
2164
2239
  layer: layer_ref.optional(),
2165
- subcircuit_id: z101.string().optional(),
2240
+ subcircuit_id: z105.string().optional(),
2166
2241
  // These are all ways to generate/load the 3d model
2167
- footprinter_string: z101.string().optional(),
2168
- model_obj_url: z101.string().optional(),
2169
- model_stl_url: z101.string().optional(),
2170
- model_3mf_url: z101.string().optional(),
2171
- model_gltf_url: z101.string().optional(),
2172
- model_glb_url: z101.string().optional(),
2173
- model_step_url: z101.string().optional(),
2174
- model_wrl_url: z101.string().optional(),
2175
- model_unit_to_mm_scale_factor: z101.number().optional(),
2176
- model_jscad: z101.any().optional()
2242
+ footprinter_string: z105.string().optional(),
2243
+ model_obj_url: z105.string().optional(),
2244
+ model_stl_url: z105.string().optional(),
2245
+ model_3mf_url: z105.string().optional(),
2246
+ model_gltf_url: z105.string().optional(),
2247
+ model_glb_url: z105.string().optional(),
2248
+ model_step_url: z105.string().optional(),
2249
+ model_wrl_url: z105.string().optional(),
2250
+ model_unit_to_mm_scale_factor: z105.number().optional(),
2251
+ model_jscad: z105.any().optional()
2177
2252
  }).describe("Defines a component on the PCB");
2178
2253
  expectTypesMatch(true);
2179
2254
 
2180
2255
  // src/simulation/simulation_voltage_source.ts
2181
- import { z as z102 } from "zod";
2182
- var wave_shape = z102.enum(["sinewave", "square", "triangle", "sawtooth"]);
2183
- var percentage = z102.union([z102.string(), z102.number()]).transform((val) => {
2256
+ import { z as z106 } from "zod";
2257
+ var wave_shape = z106.enum(["sinewave", "square", "triangle", "sawtooth"]);
2258
+ var percentage = z106.union([z106.string(), z106.number()]).transform((val) => {
2184
2259
  if (typeof val === "string") {
2185
2260
  if (val.endsWith("%")) {
2186
2261
  return parseFloat(val.slice(0, -1)) / 100;
@@ -2189,30 +2264,30 @@ var percentage = z102.union([z102.string(), z102.number()]).transform((val) => {
2189
2264
  }
2190
2265
  return val;
2191
2266
  }).pipe(
2192
- z102.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
2267
+ z106.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
2193
2268
  );
2194
- var simulation_dc_voltage_source = z102.object({
2195
- type: z102.literal("simulation_voltage_source"),
2269
+ var simulation_dc_voltage_source = z106.object({
2270
+ type: z106.literal("simulation_voltage_source"),
2196
2271
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
2197
2272
  "simulation_voltage_source"
2198
2273
  ),
2199
- is_dc_source: z102.literal(true).optional().default(true),
2200
- positive_source_port_id: z102.string().optional(),
2201
- negative_source_port_id: z102.string().optional(),
2202
- positive_source_net_id: z102.string().optional(),
2203
- negative_source_net_id: z102.string().optional(),
2274
+ is_dc_source: z106.literal(true).optional().default(true),
2275
+ positive_source_port_id: z106.string().optional(),
2276
+ negative_source_port_id: z106.string().optional(),
2277
+ positive_source_net_id: z106.string().optional(),
2278
+ negative_source_net_id: z106.string().optional(),
2204
2279
  voltage
2205
2280
  }).describe("Defines a DC voltage source for simulation");
2206
- var simulation_ac_voltage_source = z102.object({
2207
- type: z102.literal("simulation_voltage_source"),
2281
+ var simulation_ac_voltage_source = z106.object({
2282
+ type: z106.literal("simulation_voltage_source"),
2208
2283
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
2209
2284
  "simulation_voltage_source"
2210
2285
  ),
2211
- is_dc_source: z102.literal(false),
2212
- terminal1_source_port_id: z102.string().optional(),
2213
- terminal2_source_port_id: z102.string().optional(),
2214
- terminal1_source_net_id: z102.string().optional(),
2215
- terminal2_source_net_id: z102.string().optional(),
2286
+ is_dc_source: z106.literal(false),
2287
+ terminal1_source_port_id: z106.string().optional(),
2288
+ terminal2_source_port_id: z106.string().optional(),
2289
+ terminal1_source_net_id: z106.string().optional(),
2290
+ terminal2_source_net_id: z106.string().optional(),
2216
2291
  voltage: voltage.optional(),
2217
2292
  frequency: frequency.optional(),
2218
2293
  peak_to_peak_voltage: voltage.optional(),
@@ -2220,14 +2295,14 @@ var simulation_ac_voltage_source = z102.object({
2220
2295
  phase: rotation.optional(),
2221
2296
  duty_cycle: percentage.optional()
2222
2297
  }).describe("Defines an AC voltage source for simulation");
2223
- var simulation_voltage_source = z102.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
2298
+ var simulation_voltage_source = z106.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
2224
2299
  expectTypesMatch(true);
2225
2300
  expectTypesMatch(true);
2226
2301
  expectTypesMatch(true);
2227
2302
 
2228
2303
  // src/any_circuit_element.ts
2229
- import { z as z103 } from "zod";
2230
- var any_circuit_element = z103.union([
2304
+ import { z as z107 } from "zod";
2305
+ var any_circuit_element = z107.union([
2231
2306
  source_trace,
2232
2307
  source_port,
2233
2308
  any_source_component,
@@ -2259,6 +2334,7 @@ var any_circuit_element = z103.union([
2259
2334
  pcb_hole,
2260
2335
  pcb_missing_footprint_error,
2261
2336
  external_footprint_load_error,
2337
+ circuit_json_footprint_load_error,
2262
2338
  pcb_manual_edit_conflict_warning,
2263
2339
  pcb_plated_hole,
2264
2340
  pcb_keepout,
@@ -2296,6 +2372,9 @@ var any_circuit_element = z103.union([
2296
2372
  schematic_box,
2297
2373
  schematic_text,
2298
2374
  schematic_line,
2375
+ schematic_rect,
2376
+ schematic_circle,
2377
+ schematic_arc,
2299
2378
  schematic_component,
2300
2379
  schematic_port,
2301
2380
  schematic_trace,
@@ -2324,6 +2403,7 @@ export {
2324
2403
  brep_shape,
2325
2404
  cad_component,
2326
2405
  capacitance,
2406
+ circuit_json_footprint_load_error,
2327
2407
  current,
2328
2408
  distance,
2329
2409
  external_footprint_load_error,
@@ -2395,7 +2475,9 @@ export {
2395
2475
  ring,
2396
2476
  rotation,
2397
2477
  route_hint_point,
2478
+ schematic_arc,
2398
2479
  schematic_box,
2480
+ schematic_circle,
2399
2481
  schematic_component,
2400
2482
  schematic_component_port_arrangement_by_sides,
2401
2483
  schematic_component_port_arrangement_by_size,
@@ -2413,6 +2495,7 @@ export {
2413
2495
  schematic_path,
2414
2496
  schematic_pin_styles,
2415
2497
  schematic_port,
2498
+ schematic_rect,
2416
2499
  schematic_table,
2417
2500
  schematic_table_cell,
2418
2501
  schematic_text,