circuit-json 0.0.216 → 0.0.218

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
@@ -950,18 +950,10 @@ expectTypesMatch(true);
950
950
 
951
951
  // src/schematic/schematic_table.ts
952
952
  import { z as z52 } from "zod";
953
- var schematic_table_cell = z52.object({
954
- text: z52.string(),
955
- horizontal_align: z52.enum(["left", "center", "right"]).optional(),
956
- vertical_align: z52.enum(["top", "middle", "bottom"]).optional(),
957
- font_size: distance.optional()
958
- });
959
- expectTypesMatch(true);
960
953
  var schematic_table = z52.object({
961
954
  type: z52.literal("schematic_table"),
962
- schematic_table_id: z52.string(),
963
- position: point,
964
- rows: z52.array(z52.array(schematic_table_cell)),
955
+ schematic_table_id: getZodPrefixedIdWithDefault("schematic_table"),
956
+ anchor_position: point,
965
957
  column_widths: z52.array(distance),
966
958
  row_heights: z52.array(distance),
967
959
  cell_padding: distance.optional(),
@@ -972,8 +964,31 @@ var schematic_table = z52.object({
972
964
  }).describe("Defines a table on the schematic");
973
965
  expectTypesMatch(true);
974
966
 
975
- // src/pcb/properties/layer_ref.ts
967
+ // src/schematic/schematic_table_cell.ts
976
968
  import { z as z53 } from "zod";
969
+ var schematic_table_cell = z53.object({
970
+ type: z53.literal("schematic_table_cell"),
971
+ schematic_table_cell_id: getZodPrefixedIdWithDefault(
972
+ "schematic_table_cell"
973
+ ),
974
+ schematic_table_id: z53.string(),
975
+ start_row_index: z53.number(),
976
+ end_row_index: z53.number(),
977
+ start_column_index: z53.number(),
978
+ end_column_index: z53.number(),
979
+ text: z53.string().optional(),
980
+ center: point,
981
+ width: distance,
982
+ height: distance,
983
+ horizontal_align: z53.enum(["left", "center", "right"]).optional(),
984
+ vertical_align: z53.enum(["top", "middle", "bottom"]).optional(),
985
+ font_size: distance.optional(),
986
+ subcircuit_id: z53.string().optional()
987
+ }).describe("Defines a cell within a schematic_table");
988
+ expectTypesMatch(true);
989
+
990
+ // src/pcb/properties/layer_ref.ts
991
+ import { z as z54 } from "zod";
977
992
  var all_layers = [
978
993
  "top",
979
994
  "bottom",
@@ -984,9 +999,9 @@ var all_layers = [
984
999
  "inner5",
985
1000
  "inner6"
986
1001
  ];
987
- var layer_string = z53.enum(all_layers);
1002
+ var layer_string = z54.enum(all_layers);
988
1003
  var layer_ref = layer_string.or(
989
- z53.object({
1004
+ z54.object({
990
1005
  name: layer_string
991
1006
  })
992
1007
  ).transform((layer) => {
@@ -996,56 +1011,56 @@ var layer_ref = layer_string.or(
996
1011
  return layer.name;
997
1012
  });
998
1013
  expectTypesMatch(true);
999
- var visible_layer = z53.enum(["top", "bottom"]);
1014
+ var visible_layer = z54.enum(["top", "bottom"]);
1000
1015
 
1001
1016
  // src/pcb/properties/pcb_route_hints.ts
1002
- import { z as z54 } from "zod";
1003
- var pcb_route_hint = z54.object({
1017
+ import { z as z55 } from "zod";
1018
+ var pcb_route_hint = z55.object({
1004
1019
  x: distance,
1005
1020
  y: distance,
1006
- via: z54.boolean().optional(),
1021
+ via: z55.boolean().optional(),
1007
1022
  via_to_layer: layer_ref.optional()
1008
1023
  });
1009
- var pcb_route_hints = z54.array(pcb_route_hint);
1024
+ var pcb_route_hints = z55.array(pcb_route_hint);
1010
1025
  expectTypesMatch(true);
1011
1026
  expectTypesMatch(true);
1012
1027
 
1013
1028
  // src/pcb/properties/route_hint_point.ts
1014
- import { z as z55 } from "zod";
1015
- var route_hint_point = z55.object({
1029
+ import { z as z56 } from "zod";
1030
+ var route_hint_point = z56.object({
1016
1031
  x: distance,
1017
1032
  y: distance,
1018
- via: z55.boolean().optional(),
1033
+ via: z56.boolean().optional(),
1019
1034
  to_layer: layer_ref.optional(),
1020
1035
  trace_width: distance.optional()
1021
1036
  });
1022
1037
  expectTypesMatch(true);
1023
1038
 
1024
1039
  // src/pcb/pcb_component.ts
1025
- import { z as z56 } from "zod";
1026
- var pcb_component = z56.object({
1027
- type: z56.literal("pcb_component"),
1040
+ import { z as z57 } from "zod";
1041
+ var pcb_component = z57.object({
1042
+ type: z57.literal("pcb_component"),
1028
1043
  pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
1029
- source_component_id: z56.string(),
1044
+ source_component_id: z57.string(),
1030
1045
  center: point,
1031
1046
  layer: layer_ref,
1032
1047
  rotation,
1033
1048
  width: length,
1034
1049
  height: length,
1035
- subcircuit_id: z56.string().optional(),
1036
- pcb_group_id: z56.string().optional()
1050
+ subcircuit_id: z57.string().optional(),
1051
+ pcb_group_id: z57.string().optional()
1037
1052
  }).describe("Defines a component on the PCB");
1038
1053
  expectTypesMatch(true);
1039
1054
 
1040
1055
  // src/pcb/pcb_hole.ts
1041
- import { z as z57 } from "zod";
1042
- var pcb_hole_circle_or_square = z57.object({
1043
- type: z57.literal("pcb_hole"),
1056
+ import { z as z58 } from "zod";
1057
+ var pcb_hole_circle_or_square = z58.object({
1058
+ type: z58.literal("pcb_hole"),
1044
1059
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
1045
- pcb_group_id: z57.string().optional(),
1046
- subcircuit_id: z57.string().optional(),
1047
- hole_shape: z57.enum(["circle", "square"]),
1048
- hole_diameter: z57.number(),
1060
+ pcb_group_id: z58.string().optional(),
1061
+ subcircuit_id: z58.string().optional(),
1062
+ hole_shape: z58.enum(["circle", "square"]),
1063
+ hole_diameter: z58.number(),
1049
1064
  x: distance,
1050
1065
  y: distance
1051
1066
  });
@@ -1053,14 +1068,14 @@ var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
1053
1068
  "Defines a circular or square hole on the PCB"
1054
1069
  );
1055
1070
  expectTypesMatch(true);
1056
- var pcb_hole_oval = z57.object({
1057
- type: z57.literal("pcb_hole"),
1071
+ var pcb_hole_oval = z58.object({
1072
+ type: z58.literal("pcb_hole"),
1058
1073
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
1059
- pcb_group_id: z57.string().optional(),
1060
- subcircuit_id: z57.string().optional(),
1061
- hole_shape: z57.literal("oval"),
1062
- hole_width: z57.number(),
1063
- hole_height: z57.number(),
1074
+ pcb_group_id: z58.string().optional(),
1075
+ subcircuit_id: z58.string().optional(),
1076
+ hole_shape: z58.literal("oval"),
1077
+ hole_width: z58.number(),
1078
+ hole_height: z58.number(),
1064
1079
  x: distance,
1065
1080
  y: distance
1066
1081
  });
@@ -1071,77 +1086,77 @@ expectTypesMatch(true);
1071
1086
  var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval);
1072
1087
 
1073
1088
  // src/pcb/pcb_plated_hole.ts
1074
- import { z as z58 } from "zod";
1075
- var pcb_plated_hole_circle = z58.object({
1076
- type: z58.literal("pcb_plated_hole"),
1077
- shape: z58.literal("circle"),
1078
- pcb_group_id: z58.string().optional(),
1079
- subcircuit_id: z58.string().optional(),
1080
- outer_diameter: z58.number(),
1081
- hole_diameter: z58.number(),
1089
+ import { z as z59 } from "zod";
1090
+ var pcb_plated_hole_circle = z59.object({
1091
+ type: z59.literal("pcb_plated_hole"),
1092
+ shape: z59.literal("circle"),
1093
+ pcb_group_id: z59.string().optional(),
1094
+ subcircuit_id: z59.string().optional(),
1095
+ outer_diameter: z59.number(),
1096
+ hole_diameter: z59.number(),
1082
1097
  x: distance,
1083
1098
  y: distance,
1084
- layers: z58.array(layer_ref),
1085
- port_hints: z58.array(z58.string()).optional(),
1086
- pcb_component_id: z58.string().optional(),
1087
- pcb_port_id: z58.string().optional(),
1099
+ layers: z59.array(layer_ref),
1100
+ port_hints: z59.array(z59.string()).optional(),
1101
+ pcb_component_id: z59.string().optional(),
1102
+ pcb_port_id: z59.string().optional(),
1088
1103
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1089
1104
  });
1090
- var pcb_plated_hole_oval = z58.object({
1091
- type: z58.literal("pcb_plated_hole"),
1092
- shape: z58.enum(["oval", "pill"]),
1093
- pcb_group_id: z58.string().optional(),
1094
- subcircuit_id: z58.string().optional(),
1095
- outer_width: z58.number(),
1096
- outer_height: z58.number(),
1097
- hole_width: z58.number(),
1098
- hole_height: z58.number(),
1105
+ var pcb_plated_hole_oval = z59.object({
1106
+ type: z59.literal("pcb_plated_hole"),
1107
+ shape: z59.enum(["oval", "pill"]),
1108
+ pcb_group_id: z59.string().optional(),
1109
+ subcircuit_id: z59.string().optional(),
1110
+ outer_width: z59.number(),
1111
+ outer_height: z59.number(),
1112
+ hole_width: z59.number(),
1113
+ hole_height: z59.number(),
1099
1114
  x: distance,
1100
1115
  y: distance,
1101
- layers: z58.array(layer_ref),
1102
- port_hints: z58.array(z58.string()).optional(),
1103
- pcb_component_id: z58.string().optional(),
1104
- pcb_port_id: z58.string().optional(),
1116
+ layers: z59.array(layer_ref),
1117
+ port_hints: z59.array(z59.string()).optional(),
1118
+ pcb_component_id: z59.string().optional(),
1119
+ pcb_port_id: z59.string().optional(),
1105
1120
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1106
1121
  });
1107
- var pcb_circular_hole_with_rect_pad = z58.object({
1108
- type: z58.literal("pcb_plated_hole"),
1109
- shape: z58.literal("circular_hole_with_rect_pad"),
1110
- pcb_group_id: z58.string().optional(),
1111
- subcircuit_id: z58.string().optional(),
1112
- hole_shape: z58.literal("circle"),
1113
- pad_shape: z58.literal("rect"),
1114
- hole_diameter: z58.number(),
1115
- rect_pad_width: z58.number(),
1116
- rect_pad_height: z58.number(),
1122
+ var pcb_circular_hole_with_rect_pad = z59.object({
1123
+ type: z59.literal("pcb_plated_hole"),
1124
+ shape: z59.literal("circular_hole_with_rect_pad"),
1125
+ pcb_group_id: z59.string().optional(),
1126
+ subcircuit_id: z59.string().optional(),
1127
+ hole_shape: z59.literal("circle"),
1128
+ pad_shape: z59.literal("rect"),
1129
+ hole_diameter: z59.number(),
1130
+ rect_pad_width: z59.number(),
1131
+ rect_pad_height: z59.number(),
1117
1132
  x: distance,
1118
1133
  y: distance,
1119
- layers: z58.array(layer_ref),
1120
- port_hints: z58.array(z58.string()).optional(),
1121
- pcb_component_id: z58.string().optional(),
1122
- pcb_port_id: z58.string().optional(),
1134
+ layers: z59.array(layer_ref),
1135
+ port_hints: z59.array(z59.string()).optional(),
1136
+ pcb_component_id: z59.string().optional(),
1137
+ pcb_port_id: z59.string().optional(),
1123
1138
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1124
1139
  });
1125
- var pcb_pill_hole_with_rect_pad = z58.object({
1126
- type: z58.literal("pcb_plated_hole"),
1127
- shape: z58.literal("pill_hole_with_rect_pad"),
1128
- pcb_group_id: z58.string().optional(),
1129
- subcircuit_id: z58.string().optional(),
1130
- hole_shape: z58.literal("pill"),
1131
- pad_shape: z58.literal("rect"),
1132
- hole_width: z58.number(),
1133
- hole_height: z58.number(),
1134
- rect_pad_width: z58.number(),
1135
- rect_pad_height: z58.number(),
1140
+ var pcb_pill_hole_with_rect_pad = z59.object({
1141
+ type: z59.literal("pcb_plated_hole"),
1142
+ shape: z59.literal("pill_hole_with_rect_pad"),
1143
+ pcb_group_id: z59.string().optional(),
1144
+ subcircuit_id: z59.string().optional(),
1145
+ hole_shape: z59.literal("pill"),
1146
+ pad_shape: z59.literal("rect"),
1147
+ hole_width: z59.number(),
1148
+ hole_height: z59.number(),
1149
+ rect_pad_width: z59.number(),
1150
+ rect_pad_height: z59.number(),
1136
1151
  x: distance,
1137
1152
  y: distance,
1138
- layers: z58.array(layer_ref),
1139
- port_hints: z58.array(z58.string()).optional(),
1140
- pcb_component_id: z58.string().optional(),
1141
- pcb_port_id: z58.string().optional(),
1153
+ layers: z59.array(layer_ref),
1154
+ port_hints: z59.array(z59.string()).optional(),
1155
+ pcb_component_id: z59.string().optional(),
1156
+ pcb_port_id: z59.string().optional(),
1142
1157
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1143
1158
  });
1144
- var pcb_plated_hole = z58.union([
1159
+ var pcb_plated_hole = z59.union([
1145
1160
  pcb_plated_hole_circle,
1146
1161
  pcb_plated_hole_oval,
1147
1162
  pcb_circular_hole_with_rect_pad,
@@ -1155,96 +1170,96 @@ expectTypesMatch(true);
1155
1170
  expectTypesMatch(true);
1156
1171
 
1157
1172
  // src/pcb/pcb_port.ts
1158
- import { z as z59 } from "zod";
1159
- var pcb_port = z59.object({
1160
- type: z59.literal("pcb_port"),
1173
+ import { z as z60 } from "zod";
1174
+ var pcb_port = z60.object({
1175
+ type: z60.literal("pcb_port"),
1161
1176
  pcb_port_id: getZodPrefixedIdWithDefault("pcb_port"),
1162
- pcb_group_id: z59.string().optional(),
1163
- subcircuit_id: z59.string().optional(),
1164
- source_port_id: z59.string(),
1165
- pcb_component_id: z59.string(),
1177
+ pcb_group_id: z60.string().optional(),
1178
+ subcircuit_id: z60.string().optional(),
1179
+ source_port_id: z60.string(),
1180
+ pcb_component_id: z60.string(),
1166
1181
  x: distance,
1167
1182
  y: distance,
1168
- layers: z59.array(layer_ref)
1183
+ layers: z60.array(layer_ref)
1169
1184
  }).describe("Defines a port on the PCB");
1170
1185
  expectTypesMatch(true);
1171
1186
 
1172
1187
  // src/pcb/pcb_smtpad.ts
1173
- import { z as z60 } from "zod";
1174
- var pcb_smtpad_circle = z60.object({
1175
- type: z60.literal("pcb_smtpad"),
1176
- shape: z60.literal("circle"),
1188
+ import { z as z61 } from "zod";
1189
+ var pcb_smtpad_circle = z61.object({
1190
+ type: z61.literal("pcb_smtpad"),
1191
+ shape: z61.literal("circle"),
1177
1192
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1178
- pcb_group_id: z60.string().optional(),
1179
- subcircuit_id: z60.string().optional(),
1193
+ pcb_group_id: z61.string().optional(),
1194
+ subcircuit_id: z61.string().optional(),
1180
1195
  x: distance,
1181
1196
  y: distance,
1182
- radius: z60.number(),
1197
+ radius: z61.number(),
1183
1198
  layer: layer_ref,
1184
- port_hints: z60.array(z60.string()).optional(),
1185
- pcb_component_id: z60.string().optional(),
1186
- pcb_port_id: z60.string().optional()
1199
+ port_hints: z61.array(z61.string()).optional(),
1200
+ pcb_component_id: z61.string().optional(),
1201
+ pcb_port_id: z61.string().optional()
1187
1202
  });
1188
- var pcb_smtpad_rect = z60.object({
1189
- type: z60.literal("pcb_smtpad"),
1190
- shape: z60.literal("rect"),
1203
+ var pcb_smtpad_rect = z61.object({
1204
+ type: z61.literal("pcb_smtpad"),
1205
+ shape: z61.literal("rect"),
1191
1206
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1192
- pcb_group_id: z60.string().optional(),
1193
- subcircuit_id: z60.string().optional(),
1207
+ pcb_group_id: z61.string().optional(),
1208
+ subcircuit_id: z61.string().optional(),
1194
1209
  x: distance,
1195
1210
  y: distance,
1196
- width: z60.number(),
1197
- height: z60.number(),
1211
+ width: z61.number(),
1212
+ height: z61.number(),
1198
1213
  layer: layer_ref,
1199
- port_hints: z60.array(z60.string()).optional(),
1200
- pcb_component_id: z60.string().optional(),
1201
- pcb_port_id: z60.string().optional()
1214
+ port_hints: z61.array(z61.string()).optional(),
1215
+ pcb_component_id: z61.string().optional(),
1216
+ pcb_port_id: z61.string().optional()
1202
1217
  });
1203
- var pcb_smtpad_rotated_rect = z60.object({
1204
- type: z60.literal("pcb_smtpad"),
1205
- shape: z60.literal("rotated_rect"),
1218
+ var pcb_smtpad_rotated_rect = z61.object({
1219
+ type: z61.literal("pcb_smtpad"),
1220
+ shape: z61.literal("rotated_rect"),
1206
1221
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1207
- pcb_group_id: z60.string().optional(),
1208
- subcircuit_id: z60.string().optional(),
1222
+ pcb_group_id: z61.string().optional(),
1223
+ subcircuit_id: z61.string().optional(),
1209
1224
  x: distance,
1210
1225
  y: distance,
1211
- width: z60.number(),
1212
- height: z60.number(),
1226
+ width: z61.number(),
1227
+ height: z61.number(),
1213
1228
  ccw_rotation: rotation,
1214
1229
  layer: layer_ref,
1215
- port_hints: z60.array(z60.string()).optional(),
1216
- pcb_component_id: z60.string().optional(),
1217
- pcb_port_id: z60.string().optional()
1230
+ port_hints: z61.array(z61.string()).optional(),
1231
+ pcb_component_id: z61.string().optional(),
1232
+ pcb_port_id: z61.string().optional()
1218
1233
  });
1219
- var pcb_smtpad_pill = z60.object({
1220
- type: z60.literal("pcb_smtpad"),
1221
- shape: z60.literal("pill"),
1234
+ var pcb_smtpad_pill = z61.object({
1235
+ type: z61.literal("pcb_smtpad"),
1236
+ shape: z61.literal("pill"),
1222
1237
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1223
- pcb_group_id: z60.string().optional(),
1224
- subcircuit_id: z60.string().optional(),
1238
+ pcb_group_id: z61.string().optional(),
1239
+ subcircuit_id: z61.string().optional(),
1225
1240
  x: distance,
1226
1241
  y: distance,
1227
- width: z60.number(),
1228
- height: z60.number(),
1229
- radius: z60.number(),
1242
+ width: z61.number(),
1243
+ height: z61.number(),
1244
+ radius: z61.number(),
1230
1245
  layer: layer_ref,
1231
- port_hints: z60.array(z60.string()).optional(),
1232
- pcb_component_id: z60.string().optional(),
1233
- pcb_port_id: z60.string().optional()
1246
+ port_hints: z61.array(z61.string()).optional(),
1247
+ pcb_component_id: z61.string().optional(),
1248
+ pcb_port_id: z61.string().optional()
1234
1249
  });
1235
- var pcb_smtpad_polygon = z60.object({
1236
- type: z60.literal("pcb_smtpad"),
1237
- shape: z60.literal("polygon"),
1250
+ var pcb_smtpad_polygon = z61.object({
1251
+ type: z61.literal("pcb_smtpad"),
1252
+ shape: z61.literal("polygon"),
1238
1253
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1239
- pcb_group_id: z60.string().optional(),
1240
- subcircuit_id: z60.string().optional(),
1241
- points: z60.array(point),
1254
+ pcb_group_id: z61.string().optional(),
1255
+ subcircuit_id: z61.string().optional(),
1256
+ points: z61.array(point),
1242
1257
  layer: layer_ref,
1243
- port_hints: z60.array(z60.string()).optional(),
1244
- pcb_component_id: z60.string().optional(),
1245
- pcb_port_id: z60.string().optional()
1258
+ port_hints: z61.array(z61.string()).optional(),
1259
+ pcb_component_id: z61.string().optional(),
1260
+ pcb_port_id: z61.string().optional()
1246
1261
  });
1247
- var pcb_smtpad = z60.discriminatedUnion("shape", [
1262
+ var pcb_smtpad = z61.discriminatedUnion("shape", [
1248
1263
  pcb_smtpad_circle,
1249
1264
  pcb_smtpad_rect,
1250
1265
  pcb_smtpad_rotated_rect,
@@ -1258,79 +1273,79 @@ expectTypesMatch(true);
1258
1273
  expectTypesMatch(true);
1259
1274
 
1260
1275
  // src/pcb/pcb_solder_paste.ts
1261
- import { z as z61 } from "zod";
1262
- var pcb_solder_paste_circle = z61.object({
1263
- type: z61.literal("pcb_solder_paste"),
1264
- shape: z61.literal("circle"),
1276
+ import { z as z62 } from "zod";
1277
+ var pcb_solder_paste_circle = z62.object({
1278
+ type: z62.literal("pcb_solder_paste"),
1279
+ shape: z62.literal("circle"),
1265
1280
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1266
- pcb_group_id: z61.string().optional(),
1267
- subcircuit_id: z61.string().optional(),
1281
+ pcb_group_id: z62.string().optional(),
1282
+ subcircuit_id: z62.string().optional(),
1268
1283
  x: distance,
1269
1284
  y: distance,
1270
- radius: z61.number(),
1285
+ radius: z62.number(),
1271
1286
  layer: layer_ref,
1272
- pcb_component_id: z61.string().optional(),
1273
- pcb_smtpad_id: z61.string().optional()
1287
+ pcb_component_id: z62.string().optional(),
1288
+ pcb_smtpad_id: z62.string().optional()
1274
1289
  });
1275
- var pcb_solder_paste_rect = z61.object({
1276
- type: z61.literal("pcb_solder_paste"),
1277
- shape: z61.literal("rect"),
1290
+ var pcb_solder_paste_rect = z62.object({
1291
+ type: z62.literal("pcb_solder_paste"),
1292
+ shape: z62.literal("rect"),
1278
1293
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1279
- pcb_group_id: z61.string().optional(),
1280
- subcircuit_id: z61.string().optional(),
1294
+ pcb_group_id: z62.string().optional(),
1295
+ subcircuit_id: z62.string().optional(),
1281
1296
  x: distance,
1282
1297
  y: distance,
1283
- width: z61.number(),
1284
- height: z61.number(),
1298
+ width: z62.number(),
1299
+ height: z62.number(),
1285
1300
  layer: layer_ref,
1286
- pcb_component_id: z61.string().optional(),
1287
- pcb_smtpad_id: z61.string().optional()
1301
+ pcb_component_id: z62.string().optional(),
1302
+ pcb_smtpad_id: z62.string().optional()
1288
1303
  });
1289
- var pcb_solder_paste_pill = z61.object({
1290
- type: z61.literal("pcb_solder_paste"),
1291
- shape: z61.literal("pill"),
1304
+ var pcb_solder_paste_pill = z62.object({
1305
+ type: z62.literal("pcb_solder_paste"),
1306
+ shape: z62.literal("pill"),
1292
1307
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1293
- pcb_group_id: z61.string().optional(),
1294
- subcircuit_id: z61.string().optional(),
1308
+ pcb_group_id: z62.string().optional(),
1309
+ subcircuit_id: z62.string().optional(),
1295
1310
  x: distance,
1296
1311
  y: distance,
1297
- width: z61.number(),
1298
- height: z61.number(),
1299
- radius: z61.number(),
1312
+ width: z62.number(),
1313
+ height: z62.number(),
1314
+ radius: z62.number(),
1300
1315
  layer: layer_ref,
1301
- pcb_component_id: z61.string().optional(),
1302
- pcb_smtpad_id: z61.string().optional()
1316
+ pcb_component_id: z62.string().optional(),
1317
+ pcb_smtpad_id: z62.string().optional()
1303
1318
  });
1304
- var pcb_solder_paste_rotated_rect = z61.object({
1305
- type: z61.literal("pcb_solder_paste"),
1306
- shape: z61.literal("rotated_rect"),
1319
+ var pcb_solder_paste_rotated_rect = z62.object({
1320
+ type: z62.literal("pcb_solder_paste"),
1321
+ shape: z62.literal("rotated_rect"),
1307
1322
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1308
- pcb_group_id: z61.string().optional(),
1309
- subcircuit_id: z61.string().optional(),
1323
+ pcb_group_id: z62.string().optional(),
1324
+ subcircuit_id: z62.string().optional(),
1310
1325
  x: distance,
1311
1326
  y: distance,
1312
- width: z61.number(),
1313
- height: z61.number(),
1327
+ width: z62.number(),
1328
+ height: z62.number(),
1314
1329
  ccw_rotation: distance,
1315
1330
  layer: layer_ref,
1316
- pcb_component_id: z61.string().optional(),
1317
- pcb_smtpad_id: z61.string().optional()
1331
+ pcb_component_id: z62.string().optional(),
1332
+ pcb_smtpad_id: z62.string().optional()
1318
1333
  });
1319
- var pcb_solder_paste_oval = z61.object({
1320
- type: z61.literal("pcb_solder_paste"),
1321
- shape: z61.literal("oval"),
1334
+ var pcb_solder_paste_oval = z62.object({
1335
+ type: z62.literal("pcb_solder_paste"),
1336
+ shape: z62.literal("oval"),
1322
1337
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1323
- pcb_group_id: z61.string().optional(),
1324
- subcircuit_id: z61.string().optional(),
1338
+ pcb_group_id: z62.string().optional(),
1339
+ subcircuit_id: z62.string().optional(),
1325
1340
  x: distance,
1326
1341
  y: distance,
1327
- width: z61.number(),
1328
- height: z61.number(),
1342
+ width: z62.number(),
1343
+ height: z62.number(),
1329
1344
  layer: layer_ref,
1330
- pcb_component_id: z61.string().optional(),
1331
- pcb_smtpad_id: z61.string().optional()
1345
+ pcb_component_id: z62.string().optional(),
1346
+ pcb_smtpad_id: z62.string().optional()
1332
1347
  });
1333
- var pcb_solder_paste = z61.union([
1348
+ var pcb_solder_paste = z62.union([
1334
1349
  pcb_solder_paste_circle,
1335
1350
  pcb_solder_paste_rect,
1336
1351
  pcb_solder_paste_pill,
@@ -1346,98 +1361,98 @@ expectTypesMatch(
1346
1361
  expectTypesMatch(true);
1347
1362
 
1348
1363
  // src/pcb/pcb_text.ts
1349
- import { z as z62 } from "zod";
1350
- var pcb_text = z62.object({
1351
- type: z62.literal("pcb_text"),
1364
+ import { z as z63 } from "zod";
1365
+ var pcb_text = z63.object({
1366
+ type: z63.literal("pcb_text"),
1352
1367
  pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
1353
- pcb_group_id: z62.string().optional(),
1354
- subcircuit_id: z62.string().optional(),
1355
- text: z62.string(),
1368
+ pcb_group_id: z63.string().optional(),
1369
+ subcircuit_id: z63.string().optional(),
1370
+ text: z63.string(),
1356
1371
  center: point,
1357
1372
  layer: layer_ref,
1358
1373
  width: length,
1359
1374
  height: length,
1360
- lines: z62.number(),
1375
+ lines: z63.number(),
1361
1376
  // @ts-ignore
1362
- align: z62.enum(["bottom-left"])
1377
+ align: z63.enum(["bottom-left"])
1363
1378
  }).describe("Defines text on the PCB");
1364
1379
  expectTypesMatch(true);
1365
1380
 
1366
1381
  // src/pcb/pcb_trace.ts
1367
- import { z as z63 } from "zod";
1368
- var pcb_trace_route_point_wire = z63.object({
1369
- route_type: z63.literal("wire"),
1382
+ import { z as z64 } from "zod";
1383
+ var pcb_trace_route_point_wire = z64.object({
1384
+ route_type: z64.literal("wire"),
1370
1385
  x: distance,
1371
1386
  y: distance,
1372
1387
  width: distance,
1373
- start_pcb_port_id: z63.string().optional(),
1374
- end_pcb_port_id: z63.string().optional(),
1388
+ start_pcb_port_id: z64.string().optional(),
1389
+ end_pcb_port_id: z64.string().optional(),
1375
1390
  layer: layer_ref
1376
1391
  });
1377
- var pcb_trace_route_point_via = z63.object({
1378
- route_type: z63.literal("via"),
1392
+ var pcb_trace_route_point_via = z64.object({
1393
+ route_type: z64.literal("via"),
1379
1394
  x: distance,
1380
1395
  y: distance,
1381
1396
  hole_diameter: distance.optional(),
1382
1397
  outer_diameter: distance.optional(),
1383
- from_layer: z63.string(),
1384
- to_layer: z63.string()
1398
+ from_layer: z64.string(),
1399
+ to_layer: z64.string()
1385
1400
  });
1386
- var pcb_trace_route_point = z63.union([
1401
+ var pcb_trace_route_point = z64.union([
1387
1402
  pcb_trace_route_point_wire,
1388
1403
  pcb_trace_route_point_via
1389
1404
  ]);
1390
- var pcb_trace = z63.object({
1391
- type: z63.literal("pcb_trace"),
1392
- source_trace_id: z63.string().optional(),
1393
- pcb_component_id: z63.string().optional(),
1405
+ var pcb_trace = z64.object({
1406
+ type: z64.literal("pcb_trace"),
1407
+ source_trace_id: z64.string().optional(),
1408
+ pcb_component_id: z64.string().optional(),
1394
1409
  pcb_trace_id: getZodPrefixedIdWithDefault("pcb_trace"),
1395
- pcb_group_id: z63.string().optional(),
1396
- subcircuit_id: z63.string().optional(),
1397
- route_thickness_mode: z63.enum(["constant", "interpolated"]).default("constant").optional(),
1398
- route_order_index: z63.number().optional(),
1399
- should_round_corners: z63.boolean().optional(),
1400
- trace_length: z63.number().optional(),
1401
- route: z63.array(pcb_trace_route_point)
1410
+ pcb_group_id: z64.string().optional(),
1411
+ subcircuit_id: z64.string().optional(),
1412
+ route_thickness_mode: z64.enum(["constant", "interpolated"]).default("constant").optional(),
1413
+ route_order_index: z64.number().optional(),
1414
+ should_round_corners: z64.boolean().optional(),
1415
+ trace_length: z64.number().optional(),
1416
+ route: z64.array(pcb_trace_route_point)
1402
1417
  }).describe("Defines a trace on the PCB");
1403
1418
  expectTypesMatch(true);
1404
1419
  expectTypesMatch(true);
1405
1420
 
1406
1421
  // src/pcb/pcb_trace_error.ts
1407
- import { z as z64 } from "zod";
1408
- var pcb_trace_error = z64.object({
1409
- type: z64.literal("pcb_trace_error"),
1422
+ import { z as z65 } from "zod";
1423
+ var pcb_trace_error = z65.object({
1424
+ type: z65.literal("pcb_trace_error"),
1410
1425
  pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
1411
- error_type: z64.literal("pcb_trace_error").default("pcb_trace_error"),
1412
- message: z64.string(),
1426
+ error_type: z65.literal("pcb_trace_error").default("pcb_trace_error"),
1427
+ message: z65.string(),
1413
1428
  center: point.optional(),
1414
- pcb_trace_id: z64.string(),
1415
- source_trace_id: z64.string(),
1416
- pcb_component_ids: z64.array(z64.string()),
1417
- pcb_port_ids: z64.array(z64.string()),
1418
- subcircuit_id: z64.string().optional()
1429
+ pcb_trace_id: z65.string(),
1430
+ source_trace_id: z65.string(),
1431
+ pcb_component_ids: z65.array(z65.string()),
1432
+ pcb_port_ids: z65.array(z65.string()),
1433
+ subcircuit_id: z65.string().optional()
1419
1434
  }).describe("Defines a trace error on the PCB");
1420
1435
  expectTypesMatch(true);
1421
1436
 
1422
1437
  // src/pcb/pcb_port_not_matched_error.ts
1423
- import { z as z65 } from "zod";
1424
- var pcb_port_not_matched_error = z65.object({
1425
- type: z65.literal("pcb_port_not_matched_error"),
1438
+ import { z as z66 } from "zod";
1439
+ var pcb_port_not_matched_error = z66.object({
1440
+ type: z66.literal("pcb_port_not_matched_error"),
1426
1441
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
1427
- error_type: z65.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
1428
- message: z65.string(),
1429
- pcb_component_ids: z65.array(z65.string()),
1430
- subcircuit_id: z65.string().optional()
1442
+ error_type: z66.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
1443
+ message: z66.string(),
1444
+ pcb_component_ids: z66.array(z66.string()),
1445
+ subcircuit_id: z66.string().optional()
1431
1446
  }).describe("Defines a trace error on the PCB where a port is not matched");
1432
1447
  expectTypesMatch(true);
1433
1448
 
1434
1449
  // src/pcb/pcb_via.ts
1435
- import { z as z66 } from "zod";
1436
- var pcb_via = z66.object({
1437
- type: z66.literal("pcb_via"),
1450
+ import { z as z67 } from "zod";
1451
+ var pcb_via = z67.object({
1452
+ type: z67.literal("pcb_via"),
1438
1453
  pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
1439
- pcb_group_id: z66.string().optional(),
1440
- subcircuit_id: z66.string().optional(),
1454
+ pcb_group_id: z67.string().optional(),
1455
+ subcircuit_id: z67.string().optional(),
1441
1456
  x: distance,
1442
1457
  y: distance,
1443
1458
  outer_diameter: distance.default("0.6mm"),
@@ -1446,59 +1461,59 @@ var pcb_via = z66.object({
1446
1461
  from_layer: layer_ref.optional(),
1447
1462
  /** @deprecated */
1448
1463
  to_layer: layer_ref.optional(),
1449
- layers: z66.array(layer_ref),
1450
- pcb_trace_id: z66.string().optional()
1464
+ layers: z67.array(layer_ref),
1465
+ pcb_trace_id: z67.string().optional()
1451
1466
  }).describe("Defines a via on the PCB");
1452
1467
  expectTypesMatch(true);
1453
1468
 
1454
1469
  // src/pcb/pcb_board.ts
1455
- import { z as z67 } from "zod";
1456
- var pcb_board = z67.object({
1457
- type: z67.literal("pcb_board"),
1470
+ import { z as z68 } from "zod";
1471
+ var pcb_board = z68.object({
1472
+ type: z68.literal("pcb_board"),
1458
1473
  pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
1459
- is_subcircuit: z67.boolean().optional(),
1460
- subcircuit_id: z67.string().optional(),
1474
+ is_subcircuit: z68.boolean().optional(),
1475
+ subcircuit_id: z68.string().optional(),
1461
1476
  width: length,
1462
1477
  height: length,
1463
1478
  center: point,
1464
1479
  thickness: length.optional().default(1.4),
1465
- num_layers: z67.number().optional().default(4),
1466
- outline: z67.array(point).optional(),
1467
- material: z67.enum(["fr4", "fr1"]).default("fr4")
1480
+ num_layers: z68.number().optional().default(4),
1481
+ outline: z68.array(point).optional(),
1482
+ material: z68.enum(["fr4", "fr1"]).default("fr4")
1468
1483
  }).describe("Defines the board outline of the PCB");
1469
1484
  expectTypesMatch(true);
1470
1485
 
1471
1486
  // src/pcb/pcb_placement_error.ts
1472
- import { z as z68 } from "zod";
1473
- var pcb_placement_error = z68.object({
1474
- type: z68.literal("pcb_placement_error"),
1487
+ import { z as z69 } from "zod";
1488
+ var pcb_placement_error = z69.object({
1489
+ type: z69.literal("pcb_placement_error"),
1475
1490
  pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
1476
- error_type: z68.literal("pcb_placement_error").default("pcb_placement_error"),
1477
- message: z68.string(),
1478
- subcircuit_id: z68.string().optional()
1491
+ error_type: z69.literal("pcb_placement_error").default("pcb_placement_error"),
1492
+ message: z69.string(),
1493
+ subcircuit_id: z69.string().optional()
1479
1494
  }).describe("Defines a placement error on the PCB");
1480
1495
  expectTypesMatch(true);
1481
1496
 
1482
1497
  // src/pcb/pcb_trace_hint.ts
1483
- import { z as z69 } from "zod";
1484
- var pcb_trace_hint = z69.object({
1485
- type: z69.literal("pcb_trace_hint"),
1498
+ import { z as z70 } from "zod";
1499
+ var pcb_trace_hint = z70.object({
1500
+ type: z70.literal("pcb_trace_hint"),
1486
1501
  pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
1487
- pcb_port_id: z69.string(),
1488
- pcb_component_id: z69.string(),
1489
- route: z69.array(route_hint_point),
1490
- subcircuit_id: z69.string().optional()
1502
+ pcb_port_id: z70.string(),
1503
+ pcb_component_id: z70.string(),
1504
+ route: z70.array(route_hint_point),
1505
+ subcircuit_id: z70.string().optional()
1491
1506
  }).describe("A hint that can be used during generation of a PCB trace");
1492
1507
  expectTypesMatch(true);
1493
1508
 
1494
1509
  // src/pcb/pcb_silkscreen_line.ts
1495
- import { z as z70 } from "zod";
1496
- var pcb_silkscreen_line = z70.object({
1497
- type: z70.literal("pcb_silkscreen_line"),
1510
+ import { z as z71 } from "zod";
1511
+ var pcb_silkscreen_line = z71.object({
1512
+ type: z71.literal("pcb_silkscreen_line"),
1498
1513
  pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
1499
- pcb_component_id: z70.string(),
1500
- pcb_group_id: z70.string().optional(),
1501
- subcircuit_id: z70.string().optional(),
1514
+ pcb_component_id: z71.string(),
1515
+ pcb_group_id: z71.string().optional(),
1516
+ subcircuit_id: z71.string().optional(),
1502
1517
  stroke_width: distance.default("0.1mm"),
1503
1518
  x1: distance,
1504
1519
  y1: distance,
@@ -1509,67 +1524,67 @@ var pcb_silkscreen_line = z70.object({
1509
1524
  expectTypesMatch(true);
1510
1525
 
1511
1526
  // src/pcb/pcb_silkscreen_path.ts
1512
- import { z as z71 } from "zod";
1513
- var pcb_silkscreen_path = z71.object({
1514
- type: z71.literal("pcb_silkscreen_path"),
1527
+ import { z as z72 } from "zod";
1528
+ var pcb_silkscreen_path = z72.object({
1529
+ type: z72.literal("pcb_silkscreen_path"),
1515
1530
  pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
1516
- pcb_component_id: z71.string(),
1517
- pcb_group_id: z71.string().optional(),
1518
- subcircuit_id: z71.string().optional(),
1531
+ pcb_component_id: z72.string(),
1532
+ pcb_group_id: z72.string().optional(),
1533
+ subcircuit_id: z72.string().optional(),
1519
1534
  layer: visible_layer,
1520
- route: z71.array(point),
1535
+ route: z72.array(point),
1521
1536
  stroke_width: length
1522
1537
  }).describe("Defines a silkscreen path on the PCB");
1523
1538
  expectTypesMatch(true);
1524
1539
 
1525
1540
  // src/pcb/pcb_silkscreen_text.ts
1526
- import { z as z72 } from "zod";
1527
- var pcb_silkscreen_text = z72.object({
1528
- type: z72.literal("pcb_silkscreen_text"),
1541
+ import { z as z73 } from "zod";
1542
+ var pcb_silkscreen_text = z73.object({
1543
+ type: z73.literal("pcb_silkscreen_text"),
1529
1544
  pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
1530
- pcb_group_id: z72.string().optional(),
1531
- subcircuit_id: z72.string().optional(),
1532
- font: z72.literal("tscircuit2024").default("tscircuit2024"),
1545
+ pcb_group_id: z73.string().optional(),
1546
+ subcircuit_id: z73.string().optional(),
1547
+ font: z73.literal("tscircuit2024").default("tscircuit2024"),
1533
1548
  font_size: distance.default("0.2mm"),
1534
- pcb_component_id: z72.string(),
1535
- text: z72.string(),
1536
- ccw_rotation: z72.number().optional(),
1549
+ pcb_component_id: z73.string(),
1550
+ text: z73.string(),
1551
+ ccw_rotation: z73.number().optional(),
1537
1552
  layer: layer_ref,
1538
- is_mirrored: z72.boolean().default(false).optional(),
1553
+ is_mirrored: z73.boolean().default(false).optional(),
1539
1554
  anchor_position: point.default({ x: 0, y: 0 }),
1540
1555
  anchor_alignment: ninePointAnchor.default("center")
1541
1556
  }).describe("Defines silkscreen text on the PCB");
1542
1557
  expectTypesMatch(true);
1543
1558
 
1544
1559
  // src/pcb/pcb_silkscreen_rect.ts
1545
- import { z as z73 } from "zod";
1546
- var pcb_silkscreen_rect = z73.object({
1547
- type: z73.literal("pcb_silkscreen_rect"),
1560
+ import { z as z74 } from "zod";
1561
+ var pcb_silkscreen_rect = z74.object({
1562
+ type: z74.literal("pcb_silkscreen_rect"),
1548
1563
  pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
1549
- pcb_component_id: z73.string(),
1550
- pcb_group_id: z73.string().optional(),
1551
- subcircuit_id: z73.string().optional(),
1564
+ pcb_component_id: z74.string(),
1565
+ pcb_group_id: z74.string().optional(),
1566
+ subcircuit_id: z74.string().optional(),
1552
1567
  center: point,
1553
1568
  width: length,
1554
1569
  height: length,
1555
1570
  layer: layer_ref,
1556
1571
  stroke_width: length.default("1mm"),
1557
- is_filled: z73.boolean().default(true).optional(),
1558
- has_stroke: z73.boolean().optional(),
1559
- is_stroke_dashed: z73.boolean().optional()
1572
+ is_filled: z74.boolean().default(true).optional(),
1573
+ has_stroke: z74.boolean().optional(),
1574
+ is_stroke_dashed: z74.boolean().optional()
1560
1575
  }).describe("Defines a silkscreen rect on the PCB");
1561
1576
  expectTypesMatch(true);
1562
1577
 
1563
1578
  // src/pcb/pcb_silkscreen_circle.ts
1564
- import { z as z74 } from "zod";
1565
- var pcb_silkscreen_circle = z74.object({
1566
- type: z74.literal("pcb_silkscreen_circle"),
1579
+ import { z as z75 } from "zod";
1580
+ var pcb_silkscreen_circle = z75.object({
1581
+ type: z75.literal("pcb_silkscreen_circle"),
1567
1582
  pcb_silkscreen_circle_id: getZodPrefixedIdWithDefault(
1568
1583
  "pcb_silkscreen_circle"
1569
1584
  ),
1570
- pcb_component_id: z74.string(),
1571
- pcb_group_id: z74.string().optional(),
1572
- subcircuit_id: z74.string().optional(),
1585
+ pcb_component_id: z75.string(),
1586
+ pcb_group_id: z75.string().optional(),
1587
+ subcircuit_id: z75.string().optional(),
1573
1588
  center: point,
1574
1589
  radius: length,
1575
1590
  layer: visible_layer,
@@ -1578,13 +1593,13 @@ var pcb_silkscreen_circle = z74.object({
1578
1593
  expectTypesMatch(true);
1579
1594
 
1580
1595
  // src/pcb/pcb_silkscreen_oval.ts
1581
- import { z as z75 } from "zod";
1582
- var pcb_silkscreen_oval = z75.object({
1583
- type: z75.literal("pcb_silkscreen_oval"),
1596
+ import { z as z76 } from "zod";
1597
+ var pcb_silkscreen_oval = z76.object({
1598
+ type: z76.literal("pcb_silkscreen_oval"),
1584
1599
  pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
1585
- pcb_component_id: z75.string(),
1586
- pcb_group_id: z75.string().optional(),
1587
- subcircuit_id: z75.string().optional(),
1600
+ pcb_component_id: z76.string(),
1601
+ pcb_group_id: z76.string().optional(),
1602
+ subcircuit_id: z76.string().optional(),
1588
1603
  center: point,
1589
1604
  radius_x: distance,
1590
1605
  radius_y: distance,
@@ -1593,87 +1608,87 @@ var pcb_silkscreen_oval = z75.object({
1593
1608
  expectTypesMatch(true);
1594
1609
 
1595
1610
  // src/pcb/pcb_fabrication_note_text.ts
1596
- import { z as z76 } from "zod";
1597
- var pcb_fabrication_note_text = z76.object({
1598
- type: z76.literal("pcb_fabrication_note_text"),
1611
+ import { z as z77 } from "zod";
1612
+ var pcb_fabrication_note_text = z77.object({
1613
+ type: z77.literal("pcb_fabrication_note_text"),
1599
1614
  pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
1600
1615
  "pcb_fabrication_note_text"
1601
1616
  ),
1602
- subcircuit_id: z76.string().optional(),
1603
- pcb_group_id: z76.string().optional(),
1604
- font: z76.literal("tscircuit2024").default("tscircuit2024"),
1617
+ subcircuit_id: z77.string().optional(),
1618
+ pcb_group_id: z77.string().optional(),
1619
+ font: z77.literal("tscircuit2024").default("tscircuit2024"),
1605
1620
  font_size: distance.default("1mm"),
1606
- pcb_component_id: z76.string(),
1607
- text: z76.string(),
1621
+ pcb_component_id: z77.string(),
1622
+ text: z77.string(),
1608
1623
  layer: visible_layer,
1609
1624
  anchor_position: point.default({ x: 0, y: 0 }),
1610
- anchor_alignment: z76.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
1611
- color: z76.string().optional()
1625
+ anchor_alignment: z77.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
1626
+ color: z77.string().optional()
1612
1627
  }).describe(
1613
1628
  "Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
1614
1629
  );
1615
1630
  expectTypesMatch(true);
1616
1631
 
1617
1632
  // src/pcb/pcb_fabrication_note_path.ts
1618
- import { z as z77 } from "zod";
1619
- var pcb_fabrication_note_path = z77.object({
1620
- type: z77.literal("pcb_fabrication_note_path"),
1633
+ import { z as z78 } from "zod";
1634
+ var pcb_fabrication_note_path = z78.object({
1635
+ type: z78.literal("pcb_fabrication_note_path"),
1621
1636
  pcb_fabrication_note_path_id: getZodPrefixedIdWithDefault(
1622
1637
  "pcb_fabrication_note_path"
1623
1638
  ),
1624
- pcb_component_id: z77.string(),
1625
- subcircuit_id: z77.string().optional(),
1639
+ pcb_component_id: z78.string(),
1640
+ subcircuit_id: z78.string().optional(),
1626
1641
  layer: layer_ref,
1627
- route: z77.array(point),
1642
+ route: z78.array(point),
1628
1643
  stroke_width: length,
1629
- color: z77.string().optional()
1644
+ color: z78.string().optional()
1630
1645
  }).describe(
1631
1646
  "Defines a fabrication path on the PCB for fabricators or assemblers"
1632
1647
  );
1633
1648
  expectTypesMatch(true);
1634
1649
 
1635
1650
  // src/pcb/pcb_keepout.ts
1636
- import { z as z78 } from "zod";
1637
- var pcb_keepout = z78.object({
1638
- type: z78.literal("pcb_keepout"),
1639
- shape: z78.literal("rect"),
1640
- pcb_group_id: z78.string().optional(),
1641
- subcircuit_id: z78.string().optional(),
1651
+ import { z as z79 } from "zod";
1652
+ var pcb_keepout = z79.object({
1653
+ type: z79.literal("pcb_keepout"),
1654
+ shape: z79.literal("rect"),
1655
+ pcb_group_id: z79.string().optional(),
1656
+ subcircuit_id: z79.string().optional(),
1642
1657
  center: point,
1643
1658
  width: distance,
1644
1659
  height: distance,
1645
- pcb_keepout_id: z78.string(),
1646
- layers: z78.array(z78.string()),
1660
+ pcb_keepout_id: z79.string(),
1661
+ layers: z79.array(z79.string()),
1647
1662
  // Specify layers where the keepout applies
1648
- description: z78.string().optional()
1663
+ description: z79.string().optional()
1649
1664
  // Optional description of the keepout
1650
1665
  }).or(
1651
- z78.object({
1652
- type: z78.literal("pcb_keepout"),
1653
- shape: z78.literal("circle"),
1654
- pcb_group_id: z78.string().optional(),
1655
- subcircuit_id: z78.string().optional(),
1666
+ z79.object({
1667
+ type: z79.literal("pcb_keepout"),
1668
+ shape: z79.literal("circle"),
1669
+ pcb_group_id: z79.string().optional(),
1670
+ subcircuit_id: z79.string().optional(),
1656
1671
  center: point,
1657
1672
  radius: distance,
1658
- pcb_keepout_id: z78.string(),
1659
- layers: z78.array(z78.string()),
1673
+ pcb_keepout_id: z79.string(),
1674
+ layers: z79.array(z79.string()),
1660
1675
  // Specify layers where the keepout applies
1661
- description: z78.string().optional()
1676
+ description: z79.string().optional()
1662
1677
  // Optional description of the keepout
1663
1678
  })
1664
1679
  );
1665
1680
  expectTypesMatch(true);
1666
1681
 
1667
1682
  // src/pcb/pcb_cutout.ts
1668
- import { z as z79 } from "zod";
1669
- var pcb_cutout_base = z79.object({
1670
- type: z79.literal("pcb_cutout"),
1683
+ import { z as z80 } from "zod";
1684
+ var pcb_cutout_base = z80.object({
1685
+ type: z80.literal("pcb_cutout"),
1671
1686
  pcb_cutout_id: getZodPrefixedIdWithDefault("pcb_cutout"),
1672
- pcb_group_id: z79.string().optional(),
1673
- subcircuit_id: z79.string().optional()
1687
+ pcb_group_id: z80.string().optional(),
1688
+ subcircuit_id: z80.string().optional()
1674
1689
  });
1675
1690
  var pcb_cutout_rect = pcb_cutout_base.extend({
1676
- shape: z79.literal("rect"),
1691
+ shape: z80.literal("rect"),
1677
1692
  center: point,
1678
1693
  width: length,
1679
1694
  height: length,
@@ -1681,17 +1696,17 @@ var pcb_cutout_rect = pcb_cutout_base.extend({
1681
1696
  });
1682
1697
  expectTypesMatch(true);
1683
1698
  var pcb_cutout_circle = pcb_cutout_base.extend({
1684
- shape: z79.literal("circle"),
1699
+ shape: z80.literal("circle"),
1685
1700
  center: point,
1686
1701
  radius: length
1687
1702
  });
1688
1703
  expectTypesMatch(true);
1689
1704
  var pcb_cutout_polygon = pcb_cutout_base.extend({
1690
- shape: z79.literal("polygon"),
1691
- points: z79.array(point)
1705
+ shape: z80.literal("polygon"),
1706
+ points: z80.array(point)
1692
1707
  });
1693
1708
  expectTypesMatch(true);
1694
- var pcb_cutout = z79.discriminatedUnion("shape", [
1709
+ var pcb_cutout = z80.discriminatedUnion("shape", [
1695
1710
  pcb_cutout_rect,
1696
1711
  pcb_cutout_circle,
1697
1712
  pcb_cutout_polygon
@@ -1699,82 +1714,82 @@ var pcb_cutout = z79.discriminatedUnion("shape", [
1699
1714
  expectTypesMatch(true);
1700
1715
 
1701
1716
  // src/pcb/pcb_missing_footprint_error.ts
1702
- import { z as z80 } from "zod";
1703
- var pcb_missing_footprint_error = z80.object({
1704
- type: z80.literal("pcb_missing_footprint_error"),
1717
+ import { z as z81 } from "zod";
1718
+ var pcb_missing_footprint_error = z81.object({
1719
+ type: z81.literal("pcb_missing_footprint_error"),
1705
1720
  pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
1706
1721
  "pcb_missing_footprint_error"
1707
1722
  ),
1708
- pcb_group_id: z80.string().optional(),
1709
- subcircuit_id: z80.string().optional(),
1710
- error_type: z80.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
1711
- source_component_id: z80.string(),
1712
- message: z80.string()
1723
+ pcb_group_id: z81.string().optional(),
1724
+ subcircuit_id: z81.string().optional(),
1725
+ error_type: z81.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
1726
+ source_component_id: z81.string(),
1727
+ message: z81.string()
1713
1728
  }).describe("Defines a missing footprint error on the PCB");
1714
1729
  expectTypesMatch(
1715
1730
  true
1716
1731
  );
1717
1732
 
1718
1733
  // src/pcb/pcb_group.ts
1719
- import { z as z81 } from "zod";
1720
- var pcb_group = z81.object({
1721
- type: z81.literal("pcb_group"),
1734
+ import { z as z82 } from "zod";
1735
+ var pcb_group = z82.object({
1736
+ type: z82.literal("pcb_group"),
1722
1737
  pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
1723
- source_group_id: z81.string(),
1724
- is_subcircuit: z81.boolean().optional(),
1725
- subcircuit_id: z81.string().optional(),
1738
+ source_group_id: z82.string(),
1739
+ is_subcircuit: z82.boolean().optional(),
1740
+ subcircuit_id: z82.string().optional(),
1726
1741
  width: length,
1727
1742
  height: length,
1728
1743
  center: point,
1729
- pcb_component_ids: z81.array(z81.string()),
1730
- name: z81.string().optional(),
1731
- description: z81.string().optional(),
1732
- autorouter_configuration: z81.object({
1744
+ pcb_component_ids: z82.array(z82.string()),
1745
+ name: z82.string().optional(),
1746
+ description: z82.string().optional(),
1747
+ autorouter_configuration: z82.object({
1733
1748
  trace_clearance: length
1734
1749
  }).optional(),
1735
- autorouter_used_string: z81.string().optional()
1750
+ autorouter_used_string: z82.string().optional()
1736
1751
  }).describe("Defines a group of components on the PCB");
1737
1752
  expectTypesMatch(true);
1738
1753
 
1739
1754
  // src/pcb/pcb_autorouting_error.ts
1740
- import { z as z82 } from "zod";
1741
- var pcb_autorouting_error = z82.object({
1742
- type: z82.literal("pcb_autorouting_error"),
1755
+ import { z as z83 } from "zod";
1756
+ var pcb_autorouting_error = z83.object({
1757
+ type: z83.literal("pcb_autorouting_error"),
1743
1758
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
1744
- error_type: z82.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
1745
- message: z82.string(),
1746
- subcircuit_id: z82.string().optional()
1759
+ error_type: z83.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
1760
+ message: z83.string(),
1761
+ subcircuit_id: z83.string().optional()
1747
1762
  }).describe("The autorouting has failed to route a portion of the board");
1748
1763
  expectTypesMatch(true);
1749
1764
 
1750
1765
  // src/pcb/pcb_manual_edit_conflict_warning.ts
1751
- import { z as z83 } from "zod";
1752
- var pcb_manual_edit_conflict_warning = z83.object({
1753
- type: z83.literal("pcb_manual_edit_conflict_warning"),
1766
+ import { z as z84 } from "zod";
1767
+ var pcb_manual_edit_conflict_warning = z84.object({
1768
+ type: z84.literal("pcb_manual_edit_conflict_warning"),
1754
1769
  pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
1755
1770
  "pcb_manual_edit_conflict_warning"
1756
1771
  ),
1757
- warning_type: z83.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
1758
- message: z83.string(),
1759
- pcb_component_id: z83.string(),
1760
- pcb_group_id: z83.string().optional(),
1761
- subcircuit_id: z83.string().optional(),
1762
- source_component_id: z83.string()
1772
+ warning_type: z84.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
1773
+ message: z84.string(),
1774
+ pcb_component_id: z84.string(),
1775
+ pcb_group_id: z84.string().optional(),
1776
+ subcircuit_id: z84.string().optional(),
1777
+ source_component_id: z84.string()
1763
1778
  }).describe(
1764
1779
  "Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
1765
1780
  );
1766
1781
  expectTypesMatch(true);
1767
1782
 
1768
1783
  // src/pcb/pcb_breakout_point.ts
1769
- import { z as z84 } from "zod";
1770
- var pcb_breakout_point = z84.object({
1771
- type: z84.literal("pcb_breakout_point"),
1784
+ import { z as z85 } from "zod";
1785
+ var pcb_breakout_point = z85.object({
1786
+ type: z85.literal("pcb_breakout_point"),
1772
1787
  pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
1773
- pcb_group_id: z84.string(),
1774
- subcircuit_id: z84.string().optional(),
1775
- source_trace_id: z84.string().optional(),
1776
- source_port_id: z84.string().optional(),
1777
- source_net_id: z84.string().optional(),
1788
+ pcb_group_id: z85.string(),
1789
+ subcircuit_id: z85.string().optional(),
1790
+ source_trace_id: z85.string().optional(),
1791
+ source_port_id: z85.string().optional(),
1792
+ source_net_id: z85.string().optional(),
1778
1793
  x: distance,
1779
1794
  y: distance
1780
1795
  }).describe(
@@ -1783,72 +1798,72 @@ var pcb_breakout_point = z84.object({
1783
1798
  expectTypesMatch(true);
1784
1799
 
1785
1800
  // src/pcb/pcb_ground_plane.ts
1786
- import { z as z85 } from "zod";
1787
- var pcb_ground_plane = z85.object({
1788
- type: z85.literal("pcb_ground_plane"),
1801
+ import { z as z86 } from "zod";
1802
+ var pcb_ground_plane = z86.object({
1803
+ type: z86.literal("pcb_ground_plane"),
1789
1804
  pcb_ground_plane_id: getZodPrefixedIdWithDefault("pcb_ground_plane"),
1790
- source_pcb_ground_plane_id: z85.string(),
1791
- source_net_id: z85.string(),
1792
- pcb_group_id: z85.string().optional(),
1793
- subcircuit_id: z85.string().optional()
1805
+ source_pcb_ground_plane_id: z86.string(),
1806
+ source_net_id: z86.string(),
1807
+ pcb_group_id: z86.string().optional(),
1808
+ subcircuit_id: z86.string().optional()
1794
1809
  }).describe("Defines a ground plane on the PCB");
1795
1810
  expectTypesMatch(true);
1796
1811
 
1797
1812
  // src/pcb/pcb_ground_plane_region.ts
1798
- import { z as z86 } from "zod";
1799
- var pcb_ground_plane_region = z86.object({
1800
- type: z86.literal("pcb_ground_plane_region"),
1813
+ import { z as z87 } from "zod";
1814
+ var pcb_ground_plane_region = z87.object({
1815
+ type: z87.literal("pcb_ground_plane_region"),
1801
1816
  pcb_ground_plane_region_id: getZodPrefixedIdWithDefault(
1802
1817
  "pcb_ground_plane_region"
1803
1818
  ),
1804
- pcb_ground_plane_id: z86.string(),
1805
- pcb_group_id: z86.string().optional(),
1806
- subcircuit_id: z86.string().optional(),
1819
+ pcb_ground_plane_id: z87.string(),
1820
+ pcb_group_id: z87.string().optional(),
1821
+ subcircuit_id: z87.string().optional(),
1807
1822
  layer: layer_ref,
1808
- points: z86.array(point)
1823
+ points: z87.array(point)
1809
1824
  }).describe("Defines a polygon region of a ground plane");
1810
1825
  expectTypesMatch(true);
1811
1826
 
1812
1827
  // src/pcb/pcb_thermal_spoke.ts
1813
- import { z as z87 } from "zod";
1814
- var pcb_thermal_spoke = z87.object({
1815
- type: z87.literal("pcb_thermal_spoke"),
1828
+ import { z as z88 } from "zod";
1829
+ var pcb_thermal_spoke = z88.object({
1830
+ type: z88.literal("pcb_thermal_spoke"),
1816
1831
  pcb_thermal_spoke_id: getZodPrefixedIdWithDefault("pcb_thermal_spoke"),
1817
- pcb_ground_plane_id: z87.string(),
1818
- shape: z87.string(),
1819
- spoke_count: z87.number(),
1832
+ pcb_ground_plane_id: z88.string(),
1833
+ shape: z88.string(),
1834
+ spoke_count: z88.number(),
1820
1835
  spoke_thickness: distance,
1821
1836
  spoke_inner_diameter: distance,
1822
1837
  spoke_outer_diameter: distance,
1823
- pcb_plated_hole_id: z87.string().optional(),
1824
- subcircuit_id: z87.string().optional()
1838
+ pcb_plated_hole_id: z88.string().optional(),
1839
+ subcircuit_id: z88.string().optional()
1825
1840
  }).describe("Pattern for connecting a ground plane to a plated hole");
1826
1841
  expectTypesMatch(true);
1827
1842
 
1828
1843
  // src/cad/cad_component.ts
1829
- import { z as z88 } from "zod";
1830
- var cad_component = z88.object({
1831
- type: z88.literal("cad_component"),
1832
- cad_component_id: z88.string(),
1833
- pcb_component_id: z88.string(),
1834
- source_component_id: z88.string(),
1844
+ import { z as z89 } from "zod";
1845
+ var cad_component = z89.object({
1846
+ type: z89.literal("cad_component"),
1847
+ cad_component_id: z89.string(),
1848
+ pcb_component_id: z89.string(),
1849
+ source_component_id: z89.string(),
1835
1850
  position: point3,
1836
1851
  rotation: point3.optional(),
1837
1852
  size: point3.optional(),
1838
1853
  layer: layer_ref.optional(),
1839
- subcircuit_id: z88.string().optional(),
1854
+ subcircuit_id: z89.string().optional(),
1840
1855
  // These are all ways to generate/load the 3d model
1841
- footprinter_string: z88.string().optional(),
1842
- model_obj_url: z88.string().optional(),
1843
- model_stl_url: z88.string().optional(),
1844
- model_3mf_url: z88.string().optional(),
1845
- model_jscad: z88.any().optional()
1856
+ footprinter_string: z89.string().optional(),
1857
+ model_obj_url: z89.string().optional(),
1858
+ model_stl_url: z89.string().optional(),
1859
+ model_3mf_url: z89.string().optional(),
1860
+ model_jscad: z89.any().optional()
1846
1861
  }).describe("Defines a component on the PCB");
1847
1862
  expectTypesMatch(true);
1848
1863
 
1849
1864
  // src/any_circuit_element.ts
1850
- import { z as z89 } from "zod";
1851
- var any_circuit_element = z89.union([
1865
+ import { z as z90 } from "zod";
1866
+ var any_circuit_element = z90.union([
1852
1867
  source_trace,
1853
1868
  source_port,
1854
1869
  any_source_component,
@@ -1919,6 +1934,7 @@ var any_circuit_element = z89.union([
1919
1934
  schematic_manual_edit_conflict_warning,
1920
1935
  schematic_group,
1921
1936
  schematic_table,
1937
+ schematic_table_cell,
1922
1938
  cad_component
1923
1939
  ]);
1924
1940
  var any_soup_element = any_circuit_element;