circuit-json 0.0.130 → 0.0.132

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
@@ -481,6 +481,8 @@ import { z as z28 } from "zod";
481
481
  var source_group = z28.object({
482
482
  type: z28.literal("source_group"),
483
483
  source_group_id: z28.string(),
484
+ subcircuit_id: z28.string().optional(),
485
+ is_subcircuit: z28.boolean().optional(),
484
486
  name: z28.string().optional()
485
487
  });
486
488
 
@@ -774,7 +776,8 @@ var pcb_component = z44.object({
774
776
  layer: layer_ref,
775
777
  rotation,
776
778
  width: length,
777
- height: length
779
+ height: length,
780
+ subcircuit_id: z44.string().optional()
778
781
  }).describe("Defines a component on the PCB");
779
782
  expectTypesMatch(true);
780
783
 
@@ -783,6 +786,8 @@ import { z as z45 } from "zod";
783
786
  var pcb_hole_circle_or_square = z45.object({
784
787
  type: z45.literal("pcb_hole"),
785
788
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
789
+ pcb_group_id: z45.string().optional(),
790
+ subcircuit_id: z45.string().optional(),
786
791
  hole_shape: z45.enum(["circle", "square"]),
787
792
  hole_diameter: z45.number(),
788
793
  x: distance,
@@ -795,6 +800,8 @@ expectTypesMatch(true);
795
800
  var pcb_hole_oval = z45.object({
796
801
  type: z45.literal("pcb_hole"),
797
802
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
803
+ pcb_group_id: z45.string().optional(),
804
+ subcircuit_id: z45.string().optional(),
798
805
  hole_shape: z45.literal("oval"),
799
806
  hole_width: z45.number(),
800
807
  hole_height: z45.number(),
@@ -812,6 +819,8 @@ import { z as z46 } from "zod";
812
819
  var pcb_plated_hole_circle = z46.object({
813
820
  type: z46.literal("pcb_plated_hole"),
814
821
  shape: z46.literal("circle"),
822
+ pcb_group_id: z46.string().optional(),
823
+ subcircuit_id: z46.string().optional(),
815
824
  outer_diameter: z46.number(),
816
825
  hole_diameter: z46.number(),
817
826
  x: distance,
@@ -825,6 +834,8 @@ var pcb_plated_hole_circle = z46.object({
825
834
  var pcb_plated_hole_oval = z46.object({
826
835
  type: z46.literal("pcb_plated_hole"),
827
836
  shape: z46.enum(["oval", "pill"]),
837
+ pcb_group_id: z46.string().optional(),
838
+ subcircuit_id: z46.string().optional(),
828
839
  outer_width: z46.number(),
829
840
  outer_height: z46.number(),
830
841
  hole_width: z46.number(),
@@ -840,6 +851,8 @@ var pcb_plated_hole_oval = z46.object({
840
851
  var pcb_circular_hole_with_rect_pad = z46.object({
841
852
  type: z46.literal("pcb_plated_hole"),
842
853
  shape: z46.literal("circular_hole_with_rect_pad"),
854
+ pcb_group_id: z46.string().optional(),
855
+ subcircuit_id: z46.string().optional(),
843
856
  hole_shape: z46.literal("circle"),
844
857
  pad_shape: z46.literal("rect"),
845
858
  hole_diameter: z46.number(),
@@ -869,6 +882,8 @@ import { z as z47 } from "zod";
869
882
  var pcb_port = z47.object({
870
883
  type: z47.literal("pcb_port"),
871
884
  pcb_port_id: getZodPrefixedIdWithDefault("pcb_port"),
885
+ pcb_group_id: z47.string().optional(),
886
+ subcircuit_id: z47.string().optional(),
872
887
  source_port_id: z47.string(),
873
888
  pcb_component_id: z47.string(),
874
889
  x: distance,
@@ -883,6 +898,8 @@ var pcb_smtpad_circle = z48.object({
883
898
  type: z48.literal("pcb_smtpad"),
884
899
  shape: z48.literal("circle"),
885
900
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
901
+ pcb_group_id: z48.string().optional(),
902
+ subcircuit_id: z48.string().optional(),
886
903
  x: distance,
887
904
  y: distance,
888
905
  radius: z48.number(),
@@ -895,6 +912,8 @@ var pcb_smtpad_rect = z48.object({
895
912
  type: z48.literal("pcb_smtpad"),
896
913
  shape: z48.literal("rect"),
897
914
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
915
+ pcb_group_id: z48.string().optional(),
916
+ subcircuit_id: z48.string().optional(),
898
917
  x: distance,
899
918
  y: distance,
900
919
  width: z48.number(),
@@ -908,6 +927,8 @@ var pcb_smtpad_rotated_rect = z48.object({
908
927
  type: z48.literal("pcb_smtpad"),
909
928
  shape: z48.literal("rotated_rect"),
910
929
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
930
+ pcb_group_id: z48.string().optional(),
931
+ subcircuit_id: z48.string().optional(),
911
932
  x: distance,
912
933
  y: distance,
913
934
  width: z48.number(),
@@ -949,6 +970,8 @@ var pcb_solder_paste_circle = z49.object({
949
970
  type: z49.literal("pcb_solder_paste"),
950
971
  shape: z49.literal("circle"),
951
972
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
973
+ pcb_group_id: z49.string().optional(),
974
+ subcircuit_id: z49.string().optional(),
952
975
  x: distance,
953
976
  y: distance,
954
977
  radius: z49.number(),
@@ -960,6 +983,8 @@ var pcb_solder_paste_rect = z49.object({
960
983
  type: z49.literal("pcb_solder_paste"),
961
984
  shape: z49.literal("rect"),
962
985
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
986
+ pcb_group_id: z49.string().optional(),
987
+ subcircuit_id: z49.string().optional(),
963
988
  x: distance,
964
989
  y: distance,
965
990
  width: z49.number(),
@@ -977,6 +1002,8 @@ import { z as z50 } from "zod";
977
1002
  var pcb_text = z50.object({
978
1003
  type: z50.literal("pcb_text"),
979
1004
  pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
1005
+ pcb_group_id: z50.string().optional(),
1006
+ subcircuit_id: z50.string().optional(),
980
1007
  text: z50.string(),
981
1008
  center: point,
982
1009
  layer: layer_ref,
@@ -1015,6 +1042,8 @@ var pcb_trace = z51.object({
1015
1042
  source_trace_id: z51.string().optional(),
1016
1043
  pcb_component_id: z51.string().optional(),
1017
1044
  pcb_trace_id: getZodPrefixedIdWithDefault("pcb_trace"),
1045
+ pcb_group_id: z51.string().optional(),
1046
+ subcircuit_id: z51.string().optional(),
1018
1047
  route_thickness_mode: z51.enum(["constant", "interpolated"]).default("constant").optional(),
1019
1048
  route_order_index: z51.number().optional(),
1020
1049
  should_round_corners: z51.boolean().optional(),
@@ -1073,6 +1102,8 @@ import { z as z54 } from "zod";
1073
1102
  var pcb_via = z54.object({
1074
1103
  type: z54.literal("pcb_via"),
1075
1104
  pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
1105
+ pcb_group_id: z54.string().optional(),
1106
+ subcircuit_id: z54.string().optional(),
1076
1107
  x: distance,
1077
1108
  y: distance,
1078
1109
  outer_diameter: distance.default("0.6mm"),
@@ -1091,6 +1122,8 @@ import { z as z55 } from "zod";
1091
1122
  var pcb_board = z55.object({
1092
1123
  type: z55.literal("pcb_board"),
1093
1124
  pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
1125
+ is_subcircuit: z55.boolean().optional(),
1126
+ subcircuit_id: z55.string().optional(),
1094
1127
  width: length,
1095
1128
  height: length,
1096
1129
  center: point,
@@ -1126,6 +1159,8 @@ var pcb_silkscreen_line = z58.object({
1126
1159
  type: z58.literal("pcb_silkscreen_line"),
1127
1160
  pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
1128
1161
  pcb_component_id: z58.string(),
1162
+ pcb_group_id: z58.string().optional(),
1163
+ subcircuit_id: z58.string().optional(),
1129
1164
  stroke_width: distance.default("0.1mm"),
1130
1165
  x1: distance,
1131
1166
  y1: distance,
@@ -1141,6 +1176,8 @@ var pcb_silkscreen_path = z59.object({
1141
1176
  type: z59.literal("pcb_silkscreen_path"),
1142
1177
  pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
1143
1178
  pcb_component_id: z59.string(),
1179
+ pcb_group_id: z59.string().optional(),
1180
+ subcircuit_id: z59.string().optional(),
1144
1181
  layer: visible_layer,
1145
1182
  route: z59.array(point),
1146
1183
  stroke_width: length
@@ -1152,6 +1189,8 @@ import { z as z60 } from "zod";
1152
1189
  var pcb_silkscreen_text = z60.object({
1153
1190
  type: z60.literal("pcb_silkscreen_text"),
1154
1191
  pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
1192
+ pcb_group_id: z60.string().optional(),
1193
+ subcircuit_id: z60.string().optional(),
1155
1194
  font: z60.literal("tscircuit2024").default("tscircuit2024"),
1156
1195
  font_size: distance.default("0.2mm"),
1157
1196
  pcb_component_id: z60.string(),
@@ -1170,6 +1209,8 @@ var pcb_silkscreen_rect = z61.object({
1170
1209
  type: z61.literal("pcb_silkscreen_rect"),
1171
1210
  pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
1172
1211
  pcb_component_id: z61.string(),
1212
+ pcb_group_id: z61.string().optional(),
1213
+ subcircuit_id: z61.string().optional(),
1173
1214
  center: point,
1174
1215
  width: length,
1175
1216
  height: length,
@@ -1185,6 +1226,8 @@ var pcb_silkscreen_circle = z62.object({
1185
1226
  "pcb_silkscreen_circle"
1186
1227
  ),
1187
1228
  pcb_component_id: z62.string(),
1229
+ pcb_group_id: z62.string().optional(),
1230
+ subcircuit_id: z62.string().optional(),
1188
1231
  center: point,
1189
1232
  radius: length,
1190
1233
  layer: visible_layer
@@ -1197,6 +1240,8 @@ var pcb_silkscreen_oval = z63.object({
1197
1240
  type: z63.literal("pcb_silkscreen_oval"),
1198
1241
  pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
1199
1242
  pcb_component_id: z63.string(),
1243
+ pcb_group_id: z63.string().optional(),
1244
+ subcircuit_id: z63.string().optional(),
1200
1245
  center: point,
1201
1246
  radius_x: distance,
1202
1247
  radius_y: distance,
@@ -1211,6 +1256,8 @@ var pcb_fabrication_note_text = z64.object({
1211
1256
  pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
1212
1257
  "pcb_fabrication_note_text"
1213
1258
  ),
1259
+ subcircuit_id: z64.string().optional(),
1260
+ pcb_group_id: z64.string().optional(),
1214
1261
  font: z64.literal("tscircuit2024").default("tscircuit2024"),
1215
1262
  font_size: distance.default("1mm"),
1216
1263
  pcb_component_id: z64.string(),
@@ -1232,6 +1279,7 @@ var pcb_fabrication_note_path = z65.object({
1232
1279
  "pcb_fabrication_note_path"
1233
1280
  ),
1234
1281
  pcb_component_id: z65.string(),
1282
+ subcircuit_id: z65.string().optional(),
1235
1283
  layer: layer_ref,
1236
1284
  route: z65.array(point),
1237
1285
  stroke_width: length,
@@ -1246,6 +1294,8 @@ import { z as z66 } from "zod";
1246
1294
  var pcb_keepout = z66.object({
1247
1295
  type: z66.literal("pcb_keepout"),
1248
1296
  shape: z66.literal("rect"),
1297
+ pcb_group_id: z66.string().optional(),
1298
+ subcircuit_id: z66.string().optional(),
1249
1299
  center: point,
1250
1300
  width: distance,
1251
1301
  height: distance,
@@ -1258,6 +1308,8 @@ var pcb_keepout = z66.object({
1258
1308
  z66.object({
1259
1309
  type: z66.literal("pcb_keepout"),
1260
1310
  shape: z66.literal("circle"),
1311
+ pcb_group_id: z66.string().optional(),
1312
+ subcircuit_id: z66.string().optional(),
1261
1313
  center: point,
1262
1314
  radius: distance,
1263
1315
  pcb_keepout_id: z66.string(),
@@ -1275,6 +1327,8 @@ var pcb_missing_footprint_error = z67.object({
1275
1327
  pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
1276
1328
  "pcb_missing_footprint_error"
1277
1329
  ),
1330
+ pcb_group_id: z67.string().optional(),
1331
+ subcircuit_id: z67.string().optional(),
1278
1332
  error_type: z67.literal("pcb_missing_footprint_error"),
1279
1333
  source_component_id: z67.string(),
1280
1334
  message: z67.string()
@@ -1290,6 +1344,8 @@ var pcb_manual_edit_conflict_error = z68.object({
1290
1344
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_manual_edit_conflict_error"),
1291
1345
  message: z68.string(),
1292
1346
  pcb_component_id: z68.string(),
1347
+ pcb_group_id: z68.string().optional(),
1348
+ subcircuit_id: z68.string().optional(),
1293
1349
  source_component_id: z68.string()
1294
1350
  }).describe(
1295
1351
  "Error emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
@@ -1301,6 +1357,9 @@ import { z as z69 } from "zod";
1301
1357
  var pcb_group = z69.object({
1302
1358
  type: z69.literal("pcb_group"),
1303
1359
  pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
1360
+ source_group_id: z69.string(),
1361
+ is_subcircuit: z69.boolean().optional(),
1362
+ subcircuit_id: z69.string().optional(),
1304
1363
  width: length,
1305
1364
  height: length,
1306
1365
  center: point,