circuit-json 0.0.246 → 0.0.247

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.d.mts CHANGED
@@ -3967,6 +3967,50 @@ interface PcbMissingFootprintError {
3967
3967
  */
3968
3968
  type PCBMissingFootprintError = PcbMissingFootprintError;
3969
3969
 
3970
+ declare const external_footprint_load_error: z.ZodObject<{
3971
+ type: z.ZodLiteral<"external_footprint_load_error">;
3972
+ external_footprint_load_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3973
+ pcb_component_id: z.ZodString;
3974
+ source_component_id: z.ZodString;
3975
+ pcb_group_id: z.ZodOptional<z.ZodString>;
3976
+ subcircuit_id: z.ZodOptional<z.ZodString>;
3977
+ footprinter_string: z.ZodOptional<z.ZodString>;
3978
+ error_type: z.ZodDefault<z.ZodLiteral<"external_footprint_load_error">>;
3979
+ message: z.ZodString;
3980
+ }, "strip", z.ZodTypeAny, {
3981
+ message: string;
3982
+ type: "external_footprint_load_error";
3983
+ pcb_component_id: string;
3984
+ source_component_id: string;
3985
+ error_type: "external_footprint_load_error";
3986
+ external_footprint_load_error_id: string;
3987
+ subcircuit_id?: string | undefined;
3988
+ pcb_group_id?: string | undefined;
3989
+ footprinter_string?: string | undefined;
3990
+ }, {
3991
+ message: string;
3992
+ type: "external_footprint_load_error";
3993
+ pcb_component_id: string;
3994
+ source_component_id: string;
3995
+ subcircuit_id?: string | undefined;
3996
+ pcb_group_id?: string | undefined;
3997
+ error_type?: "external_footprint_load_error" | undefined;
3998
+ external_footprint_load_error_id?: string | undefined;
3999
+ footprinter_string?: string | undefined;
4000
+ }>;
4001
+ type ExternalFootprintLoadErrorInput = z.input<typeof external_footprint_load_error>;
4002
+ interface ExternalFootprintLoadError {
4003
+ type: "external_footprint_load_error";
4004
+ external_footprint_load_error_id: string;
4005
+ pcb_component_id: string;
4006
+ source_component_id: string;
4007
+ pcb_group_id?: string;
4008
+ subcircuit_id?: string;
4009
+ footprinter_string?: string;
4010
+ error_type: "external_footprint_load_error";
4011
+ message: string;
4012
+ }
4013
+
3970
4014
  declare const pcb_group: z.ZodObject<{
3971
4015
  type: z.ZodLiteral<"pcb_group">;
3972
4016
  pcb_group_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -4919,7 +4963,7 @@ declare const pcb_copper_pour: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
4919
4963
  type PcbCopperPourInput = z.input<typeof pcb_copper_pour>;
4920
4964
  type PcbCopperPour = PcbCopperPourRect | PcbCopperPourBRep | PcbCopperPourPolygon;
4921
4965
 
4922
- type PcbCircuitElement = PcbComponent | PcbHole | PcbPlatedHole | PcbPort | PcbSmtPad | PcbSolderPaste | PcbText | PcbTrace | PcbTraceError | PcbTraceMissingError | PcbMissingFootprintError | PcbManualEditConflictWarning | PcbPortNotMatchedError | PcbPortNotConnectedError | PcbVia | PcbBoard | PcbPlacementError | PcbTraceHint | PcbSilkscreenLine | PcbSilkscreenPath | PcbSilkscreenText | PcbSilkscreenRect | PcbSilkscreenCircle | PcbAutoroutingError | PcbFootprintOverlapError | PcbCutout | PcbBreakoutPoint | PcbGroundPlane | PcbGroundPlaneRegion | PcbThermalSpoke | PcbCopperPour;
4966
+ type PcbCircuitElement = PcbComponent | PcbHole | PcbPlatedHole | PcbPort | PcbSmtPad | PcbSolderPaste | PcbText | PcbTrace | PcbTraceError | PcbTraceMissingError | PcbMissingFootprintError | ExternalFootprintLoadError | PcbManualEditConflictWarning | PcbPortNotMatchedError | PcbPortNotConnectedError | PcbVia | PcbBoard | PcbPlacementError | PcbTraceHint | PcbSilkscreenLine | PcbSilkscreenPath | PcbSilkscreenText | PcbSilkscreenRect | PcbSilkscreenCircle | PcbAutoroutingError | PcbFootprintOverlapError | PcbCutout | PcbBreakoutPoint | PcbGroundPlane | PcbGroundPlaneRegion | PcbThermalSpoke | PcbCopperPour;
4923
4967
 
4924
4968
  interface SchematicBox {
4925
4969
  type: "schematic_box";
@@ -9277,12 +9321,12 @@ declare const cad_component: z.ZodObject<{
9277
9321
  z: number;
9278
9322
  } | undefined;
9279
9323
  subcircuit_id?: string | undefined;
9324
+ footprinter_string?: string | undefined;
9280
9325
  size?: {
9281
9326
  x: number;
9282
9327
  y: number;
9283
9328
  z: number;
9284
9329
  } | undefined;
9285
- footprinter_string?: string | undefined;
9286
9330
  model_obj_url?: string | undefined;
9287
9331
  model_stl_url?: string | undefined;
9288
9332
  model_3mf_url?: string | undefined;
@@ -9310,12 +9354,12 @@ declare const cad_component: z.ZodObject<{
9310
9354
  z: string | number;
9311
9355
  } | undefined;
9312
9356
  subcircuit_id?: string | undefined;
9357
+ footprinter_string?: string | undefined;
9313
9358
  size?: {
9314
9359
  x: string | number;
9315
9360
  y: string | number;
9316
9361
  z: string | number;
9317
9362
  } | undefined;
9318
- footprinter_string?: string | undefined;
9319
9363
  model_obj_url?: string | undefined;
9320
9364
  model_stl_url?: string | undefined;
9321
9365
  model_3mf_url?: string | undefined;
@@ -11619,6 +11663,36 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
11619
11663
  pcb_group_id?: string | undefined;
11620
11664
  error_type?: "pcb_missing_footprint_error" | undefined;
11621
11665
  pcb_missing_footprint_error_id?: string | undefined;
11666
+ }>, z.ZodObject<{
11667
+ type: z.ZodLiteral<"external_footprint_load_error">;
11668
+ external_footprint_load_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
11669
+ pcb_component_id: z.ZodString;
11670
+ source_component_id: z.ZodString;
11671
+ pcb_group_id: z.ZodOptional<z.ZodString>;
11672
+ subcircuit_id: z.ZodOptional<z.ZodString>;
11673
+ footprinter_string: z.ZodOptional<z.ZodString>;
11674
+ error_type: z.ZodDefault<z.ZodLiteral<"external_footprint_load_error">>;
11675
+ message: z.ZodString;
11676
+ }, "strip", z.ZodTypeAny, {
11677
+ message: string;
11678
+ type: "external_footprint_load_error";
11679
+ pcb_component_id: string;
11680
+ source_component_id: string;
11681
+ error_type: "external_footprint_load_error";
11682
+ external_footprint_load_error_id: string;
11683
+ subcircuit_id?: string | undefined;
11684
+ pcb_group_id?: string | undefined;
11685
+ footprinter_string?: string | undefined;
11686
+ }, {
11687
+ message: string;
11688
+ type: "external_footprint_load_error";
11689
+ pcb_component_id: string;
11690
+ source_component_id: string;
11691
+ subcircuit_id?: string | undefined;
11692
+ pcb_group_id?: string | undefined;
11693
+ error_type?: "external_footprint_load_error" | undefined;
11694
+ external_footprint_load_error_id?: string | undefined;
11695
+ footprinter_string?: string | undefined;
11622
11696
  }>, z.ZodObject<{
11623
11697
  type: z.ZodLiteral<"pcb_manual_edit_conflict_warning">;
11624
11698
  pcb_manual_edit_conflict_warning_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -15346,12 +15420,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15346
15420
  z: number;
15347
15421
  } | undefined;
15348
15422
  subcircuit_id?: string | undefined;
15423
+ footprinter_string?: string | undefined;
15349
15424
  size?: {
15350
15425
  x: number;
15351
15426
  y: number;
15352
15427
  z: number;
15353
15428
  } | undefined;
15354
- footprinter_string?: string | undefined;
15355
15429
  model_obj_url?: string | undefined;
15356
15430
  model_stl_url?: string | undefined;
15357
15431
  model_3mf_url?: string | undefined;
@@ -15379,12 +15453,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15379
15453
  z: string | number;
15380
15454
  } | undefined;
15381
15455
  subcircuit_id?: string | undefined;
15456
+ footprinter_string?: string | undefined;
15382
15457
  size?: {
15383
15458
  x: string | number;
15384
15459
  y: string | number;
15385
15460
  z: string | number;
15386
15461
  } | undefined;
15387
- footprinter_string?: string | undefined;
15388
15462
  model_obj_url?: string | undefined;
15389
15463
  model_stl_url?: string | undefined;
15390
15464
  model_3mf_url?: string | undefined;
@@ -17559,6 +17633,36 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
17559
17633
  pcb_group_id?: string | undefined;
17560
17634
  error_type?: "pcb_missing_footprint_error" | undefined;
17561
17635
  pcb_missing_footprint_error_id?: string | undefined;
17636
+ }>, z.ZodObject<{
17637
+ type: z.ZodLiteral<"external_footprint_load_error">;
17638
+ external_footprint_load_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
17639
+ pcb_component_id: z.ZodString;
17640
+ source_component_id: z.ZodString;
17641
+ pcb_group_id: z.ZodOptional<z.ZodString>;
17642
+ subcircuit_id: z.ZodOptional<z.ZodString>;
17643
+ footprinter_string: z.ZodOptional<z.ZodString>;
17644
+ error_type: z.ZodDefault<z.ZodLiteral<"external_footprint_load_error">>;
17645
+ message: z.ZodString;
17646
+ }, "strip", z.ZodTypeAny, {
17647
+ message: string;
17648
+ type: "external_footprint_load_error";
17649
+ pcb_component_id: string;
17650
+ source_component_id: string;
17651
+ error_type: "external_footprint_load_error";
17652
+ external_footprint_load_error_id: string;
17653
+ subcircuit_id?: string | undefined;
17654
+ pcb_group_id?: string | undefined;
17655
+ footprinter_string?: string | undefined;
17656
+ }, {
17657
+ message: string;
17658
+ type: "external_footprint_load_error";
17659
+ pcb_component_id: string;
17660
+ source_component_id: string;
17661
+ subcircuit_id?: string | undefined;
17662
+ pcb_group_id?: string | undefined;
17663
+ error_type?: "external_footprint_load_error" | undefined;
17664
+ external_footprint_load_error_id?: string | undefined;
17665
+ footprinter_string?: string | undefined;
17562
17666
  }>, z.ZodObject<{
17563
17667
  type: z.ZodLiteral<"pcb_manual_edit_conflict_warning">;
17564
17668
  pcb_manual_edit_conflict_warning_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -21286,12 +21390,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21286
21390
  z: number;
21287
21391
  } | undefined;
21288
21392
  subcircuit_id?: string | undefined;
21393
+ footprinter_string?: string | undefined;
21289
21394
  size?: {
21290
21395
  x: number;
21291
21396
  y: number;
21292
21397
  z: number;
21293
21398
  } | undefined;
21294
- footprinter_string?: string | undefined;
21295
21399
  model_obj_url?: string | undefined;
21296
21400
  model_stl_url?: string | undefined;
21297
21401
  model_3mf_url?: string | undefined;
@@ -21319,12 +21423,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21319
21423
  z: string | number;
21320
21424
  } | undefined;
21321
21425
  subcircuit_id?: string | undefined;
21426
+ footprinter_string?: string | undefined;
21322
21427
  size?: {
21323
21428
  x: string | number;
21324
21429
  y: string | number;
21325
21430
  z: string | number;
21326
21431
  } | undefined;
21327
- footprinter_string?: string | undefined;
21328
21432
  model_obj_url?: string | undefined;
21329
21433
  model_stl_url?: string | undefined;
21330
21434
  model_3mf_url?: string | undefined;
@@ -21419,4 +21523,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
21419
21523
  */
21420
21524
  type CircuitJson = AnyCircuitElement[];
21421
21525
 
21422
- export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type BRepShape, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InferredSchematicNetLabel, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBTraceMissingError, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbBreakoutPoint, type PcbBreakoutPointInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbCopperPour, type PcbCopperPourBRep, type PcbCopperPourBRepInput, type PcbCopperPourInput, type PcbCopperPourPolygon, type PcbCopperPourPolygonInput, type PcbCopperPourRect, type PcbCopperPourRectInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbHoleRotatedPillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotConnectedError, type PcbPortNotConnectedErrorInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedPill, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceMissingError, type PcbTraceMissingErrorInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type PointWithBulge, type Position, type Ring, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLayoutError, type SchematicLayoutErrorInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationAcVoltageSource, type SimulationAcVoltageSourceInput, type SimulationDcVoltageSource, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceManuallyPlacedVia, type SourceManuallyPlacedViaInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePinMissingTraceWarning, type SourcePinMissingTraceWarningInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourcePropertyIgnoredWarning, type SourcePropertyIgnoredWarningInput, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleLed, type SourceSimpleLedInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePinout, type SourceSimplePinoutInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SourceTraceNotConnectedError, type SourceTraceNotConnectedErrorInput, type SupplierName, type VisibleLayer, type VisibleLayerRef, type WaveShape, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, brep_shape, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_copper_pour, pcb_copper_pour_brep, pcb_copper_pour_polygon, pcb_copper_pour_rect, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_footprint_overlap_error, pcb_ground_plane, pcb_ground_plane_region, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_connected_error, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_thermal_spoke, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_missing_error, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, point_with_bulge, port_arrangement, position, position3, resistance, ring, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_layout_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_ac_voltage_source, simulation_dc_voltage_source, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, source_manually_placed_via, source_missing_property_error, source_net, source_pcb_ground_plane, source_pin_missing_trace_warning, source_port, source_project_metadata, source_property_ignored_warning, source_simple_battery, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_led, source_simple_mosfet, source_simple_pin_header, source_simple_pinout, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_test_point, source_simple_transistor, source_trace, source_trace_not_connected_error, supplier_name, time, visible_layer, voltage, wave_shape };
21526
+ export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type BRepShape, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type ExternalFootprintLoadError, type ExternalFootprintLoadErrorInput, type InferredProjectMetadata, type InferredSchematicNetLabel, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBTraceMissingError, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbBreakoutPoint, type PcbBreakoutPointInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbCopperPour, type PcbCopperPourBRep, type PcbCopperPourBRepInput, type PcbCopperPourInput, type PcbCopperPourPolygon, type PcbCopperPourPolygonInput, type PcbCopperPourRect, type PcbCopperPourRectInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbHoleRotatedPillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotConnectedError, type PcbPortNotConnectedErrorInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedPill, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceMissingError, type PcbTraceMissingErrorInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type PointWithBulge, type Position, type Ring, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLayoutError, type SchematicLayoutErrorInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationAcVoltageSource, type SimulationAcVoltageSourceInput, type SimulationDcVoltageSource, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceManuallyPlacedVia, type SourceManuallyPlacedViaInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePinMissingTraceWarning, type SourcePinMissingTraceWarningInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourcePropertyIgnoredWarning, type SourcePropertyIgnoredWarningInput, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleLed, type SourceSimpleLedInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePinout, type SourceSimplePinoutInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SourceTraceNotConnectedError, type SourceTraceNotConnectedErrorInput, type SupplierName, type VisibleLayer, type VisibleLayerRef, type WaveShape, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, brep_shape, cad_component, capacitance, current, distance, external_footprint_load_error, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_copper_pour, pcb_copper_pour_brep, pcb_copper_pour_polygon, pcb_copper_pour_rect, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_footprint_overlap_error, pcb_ground_plane, pcb_ground_plane_region, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_connected_error, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_thermal_spoke, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_missing_error, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, point_with_bulge, port_arrangement, position, position3, resistance, ring, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_layout_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_ac_voltage_source, simulation_dc_voltage_source, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, source_manually_placed_via, source_missing_property_error, source_net, source_pcb_ground_plane, source_pin_missing_trace_warning, source_port, source_project_metadata, source_property_ignored_warning, source_simple_battery, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_led, source_simple_mosfet, source_simple_pin_header, source_simple_pinout, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_test_point, source_simple_transistor, source_trace, source_trace_not_connected_error, supplier_name, time, visible_layer, voltage, wave_shape };
package/dist/index.mjs CHANGED
@@ -1928,67 +1928,84 @@ expectTypesMatch(
1928
1928
  true
1929
1929
  );
1930
1930
 
1931
- // src/pcb/pcb_group.ts
1931
+ // src/pcb/external_footprint_load_error.ts
1932
1932
  import { z as z91 } from "zod";
1933
- var pcb_group = z91.object({
1934
- type: z91.literal("pcb_group"),
1935
- pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
1936
- source_group_id: z91.string(),
1937
- is_subcircuit: z91.boolean().optional(),
1933
+ var external_footprint_load_error = z91.object({
1934
+ type: z91.literal("external_footprint_load_error"),
1935
+ external_footprint_load_error_id: getZodPrefixedIdWithDefault(
1936
+ "external_footprint_load_error"
1937
+ ),
1938
+ pcb_component_id: z91.string(),
1939
+ source_component_id: z91.string(),
1940
+ pcb_group_id: z91.string().optional(),
1938
1941
  subcircuit_id: z91.string().optional(),
1942
+ footprinter_string: z91.string().optional(),
1943
+ error_type: z91.literal("external_footprint_load_error").default("external_footprint_load_error"),
1944
+ message: z91.string()
1945
+ }).describe("Defines an error when an external footprint fails to load");
1946
+ expectTypesMatch(true);
1947
+
1948
+ // src/pcb/pcb_group.ts
1949
+ import { z as z92 } from "zod";
1950
+ var pcb_group = z92.object({
1951
+ type: z92.literal("pcb_group"),
1952
+ pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
1953
+ source_group_id: z92.string(),
1954
+ is_subcircuit: z92.boolean().optional(),
1955
+ subcircuit_id: z92.string().optional(),
1939
1956
  width: length,
1940
1957
  height: length,
1941
1958
  center: point,
1942
- pcb_component_ids: z91.array(z91.string()),
1943
- name: z91.string().optional(),
1944
- description: z91.string().optional(),
1945
- layout_mode: z91.string().optional(),
1946
- autorouter_configuration: z91.object({
1959
+ pcb_component_ids: z92.array(z92.string()),
1960
+ name: z92.string().optional(),
1961
+ description: z92.string().optional(),
1962
+ layout_mode: z92.string().optional(),
1963
+ autorouter_configuration: z92.object({
1947
1964
  trace_clearance: length
1948
1965
  }).optional(),
1949
- autorouter_used_string: z91.string().optional()
1966
+ autorouter_used_string: z92.string().optional()
1950
1967
  }).describe("Defines a group of components on the PCB");
1951
1968
  expectTypesMatch(true);
1952
1969
 
1953
1970
  // src/pcb/pcb_autorouting_error.ts
1954
- import { z as z92 } from "zod";
1955
- var pcb_autorouting_error = z92.object({
1956
- type: z92.literal("pcb_autorouting_error"),
1971
+ import { z as z93 } from "zod";
1972
+ var pcb_autorouting_error = z93.object({
1973
+ type: z93.literal("pcb_autorouting_error"),
1957
1974
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
1958
- error_type: z92.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
1959
- message: z92.string(),
1960
- subcircuit_id: z92.string().optional()
1975
+ error_type: z93.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
1976
+ message: z93.string(),
1977
+ subcircuit_id: z93.string().optional()
1961
1978
  }).describe("The autorouting has failed to route a portion of the board");
1962
1979
  expectTypesMatch(true);
1963
1980
 
1964
1981
  // src/pcb/pcb_manual_edit_conflict_warning.ts
1965
- import { z as z93 } from "zod";
1966
- var pcb_manual_edit_conflict_warning = z93.object({
1967
- type: z93.literal("pcb_manual_edit_conflict_warning"),
1982
+ import { z as z94 } from "zod";
1983
+ var pcb_manual_edit_conflict_warning = z94.object({
1984
+ type: z94.literal("pcb_manual_edit_conflict_warning"),
1968
1985
  pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
1969
1986
  "pcb_manual_edit_conflict_warning"
1970
1987
  ),
1971
- warning_type: z93.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
1972
- message: z93.string(),
1973
- pcb_component_id: z93.string(),
1974
- pcb_group_id: z93.string().optional(),
1975
- subcircuit_id: z93.string().optional(),
1976
- source_component_id: z93.string()
1988
+ warning_type: z94.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
1989
+ message: z94.string(),
1990
+ pcb_component_id: z94.string(),
1991
+ pcb_group_id: z94.string().optional(),
1992
+ subcircuit_id: z94.string().optional(),
1993
+ source_component_id: z94.string()
1977
1994
  }).describe(
1978
1995
  "Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
1979
1996
  );
1980
1997
  expectTypesMatch(true);
1981
1998
 
1982
1999
  // src/pcb/pcb_breakout_point.ts
1983
- import { z as z94 } from "zod";
1984
- var pcb_breakout_point = z94.object({
1985
- type: z94.literal("pcb_breakout_point"),
2000
+ import { z as z95 } from "zod";
2001
+ var pcb_breakout_point = z95.object({
2002
+ type: z95.literal("pcb_breakout_point"),
1986
2003
  pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
1987
- pcb_group_id: z94.string(),
1988
- subcircuit_id: z94.string().optional(),
1989
- source_trace_id: z94.string().optional(),
1990
- source_port_id: z94.string().optional(),
1991
- source_net_id: z94.string().optional(),
2004
+ pcb_group_id: z95.string(),
2005
+ subcircuit_id: z95.string().optional(),
2006
+ source_trace_id: z95.string().optional(),
2007
+ source_port_id: z95.string().optional(),
2008
+ source_net_id: z95.string().optional(),
1992
2009
  x: distance,
1993
2010
  y: distance
1994
2011
  }).describe(
@@ -1997,60 +2014,60 @@ var pcb_breakout_point = z94.object({
1997
2014
  expectTypesMatch(true);
1998
2015
 
1999
2016
  // src/pcb/pcb_ground_plane.ts
2000
- import { z as z95 } from "zod";
2001
- var pcb_ground_plane = z95.object({
2002
- type: z95.literal("pcb_ground_plane"),
2017
+ import { z as z96 } from "zod";
2018
+ var pcb_ground_plane = z96.object({
2019
+ type: z96.literal("pcb_ground_plane"),
2003
2020
  pcb_ground_plane_id: getZodPrefixedIdWithDefault("pcb_ground_plane"),
2004
- source_pcb_ground_plane_id: z95.string(),
2005
- source_net_id: z95.string(),
2006
- pcb_group_id: z95.string().optional(),
2007
- subcircuit_id: z95.string().optional()
2021
+ source_pcb_ground_plane_id: z96.string(),
2022
+ source_net_id: z96.string(),
2023
+ pcb_group_id: z96.string().optional(),
2024
+ subcircuit_id: z96.string().optional()
2008
2025
  }).describe("Defines a ground plane on the PCB");
2009
2026
  expectTypesMatch(true);
2010
2027
 
2011
2028
  // src/pcb/pcb_ground_plane_region.ts
2012
- import { z as z96 } from "zod";
2013
- var pcb_ground_plane_region = z96.object({
2014
- type: z96.literal("pcb_ground_plane_region"),
2029
+ import { z as z97 } from "zod";
2030
+ var pcb_ground_plane_region = z97.object({
2031
+ type: z97.literal("pcb_ground_plane_region"),
2015
2032
  pcb_ground_plane_region_id: getZodPrefixedIdWithDefault(
2016
2033
  "pcb_ground_plane_region"
2017
2034
  ),
2018
- pcb_ground_plane_id: z96.string(),
2019
- pcb_group_id: z96.string().optional(),
2020
- subcircuit_id: z96.string().optional(),
2035
+ pcb_ground_plane_id: z97.string(),
2036
+ pcb_group_id: z97.string().optional(),
2037
+ subcircuit_id: z97.string().optional(),
2021
2038
  layer: layer_ref,
2022
- points: z96.array(point)
2039
+ points: z97.array(point)
2023
2040
  }).describe("Defines a polygon region of a ground plane");
2024
2041
  expectTypesMatch(true);
2025
2042
 
2026
2043
  // src/pcb/pcb_thermal_spoke.ts
2027
- import { z as z97 } from "zod";
2028
- var pcb_thermal_spoke = z97.object({
2029
- type: z97.literal("pcb_thermal_spoke"),
2044
+ import { z as z98 } from "zod";
2045
+ var pcb_thermal_spoke = z98.object({
2046
+ type: z98.literal("pcb_thermal_spoke"),
2030
2047
  pcb_thermal_spoke_id: getZodPrefixedIdWithDefault("pcb_thermal_spoke"),
2031
- pcb_ground_plane_id: z97.string(),
2032
- shape: z97.string(),
2033
- spoke_count: z97.number(),
2048
+ pcb_ground_plane_id: z98.string(),
2049
+ shape: z98.string(),
2050
+ spoke_count: z98.number(),
2034
2051
  spoke_thickness: distance,
2035
2052
  spoke_inner_diameter: distance,
2036
2053
  spoke_outer_diameter: distance,
2037
- pcb_plated_hole_id: z97.string().optional(),
2038
- subcircuit_id: z97.string().optional()
2054
+ pcb_plated_hole_id: z98.string().optional(),
2055
+ subcircuit_id: z98.string().optional()
2039
2056
  }).describe("Pattern for connecting a ground plane to a plated hole");
2040
2057
  expectTypesMatch(true);
2041
2058
 
2042
2059
  // src/pcb/pcb_copper_pour.ts
2043
- import { z as z98 } from "zod";
2044
- var pcb_copper_pour_base = z98.object({
2045
- type: z98.literal("pcb_copper_pour"),
2060
+ import { z as z99 } from "zod";
2061
+ var pcb_copper_pour_base = z99.object({
2062
+ type: z99.literal("pcb_copper_pour"),
2046
2063
  pcb_copper_pour_id: getZodPrefixedIdWithDefault("pcb_copper_pour"),
2047
- pcb_group_id: z98.string().optional(),
2048
- subcircuit_id: z98.string().optional(),
2064
+ pcb_group_id: z99.string().optional(),
2065
+ subcircuit_id: z99.string().optional(),
2049
2066
  layer: layer_ref,
2050
- source_net_id: z98.string().optional()
2067
+ source_net_id: z99.string().optional()
2051
2068
  });
2052
2069
  var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
2053
- shape: z98.literal("rect"),
2070
+ shape: z99.literal("rect"),
2054
2071
  center: point,
2055
2072
  width: length,
2056
2073
  height: length,
@@ -2058,16 +2075,16 @@ var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
2058
2075
  });
2059
2076
  expectTypesMatch(true);
2060
2077
  var pcb_copper_pour_brep = pcb_copper_pour_base.extend({
2061
- shape: z98.literal("brep"),
2078
+ shape: z99.literal("brep"),
2062
2079
  brep_shape
2063
2080
  });
2064
2081
  expectTypesMatch(true);
2065
2082
  var pcb_copper_pour_polygon = pcb_copper_pour_base.extend({
2066
- shape: z98.literal("polygon"),
2067
- points: z98.array(point)
2083
+ shape: z99.literal("polygon"),
2084
+ points: z99.array(point)
2068
2085
  });
2069
2086
  expectTypesMatch(true);
2070
- var pcb_copper_pour = z98.discriminatedUnion("shape", [
2087
+ var pcb_copper_pour = z99.discriminatedUnion("shape", [
2071
2088
  pcb_copper_pour_rect,
2072
2089
  pcb_copper_pour_brep,
2073
2090
  pcb_copper_pour_polygon
@@ -2075,34 +2092,34 @@ var pcb_copper_pour = z98.discriminatedUnion("shape", [
2075
2092
  expectTypesMatch(true);
2076
2093
 
2077
2094
  // src/cad/cad_component.ts
2078
- import { z as z99 } from "zod";
2079
- var cad_component = z99.object({
2080
- type: z99.literal("cad_component"),
2081
- cad_component_id: z99.string(),
2082
- pcb_component_id: z99.string(),
2083
- source_component_id: z99.string(),
2095
+ import { z as z100 } from "zod";
2096
+ var cad_component = z100.object({
2097
+ type: z100.literal("cad_component"),
2098
+ cad_component_id: z100.string(),
2099
+ pcb_component_id: z100.string(),
2100
+ source_component_id: z100.string(),
2084
2101
  position: point3,
2085
2102
  rotation: point3.optional(),
2086
2103
  size: point3.optional(),
2087
2104
  layer: layer_ref.optional(),
2088
- subcircuit_id: z99.string().optional(),
2105
+ subcircuit_id: z100.string().optional(),
2089
2106
  // These are all ways to generate/load the 3d model
2090
- footprinter_string: z99.string().optional(),
2091
- model_obj_url: z99.string().optional(),
2092
- model_stl_url: z99.string().optional(),
2093
- model_3mf_url: z99.string().optional(),
2094
- model_gltf_url: z99.string().optional(),
2095
- model_glb_url: z99.string().optional(),
2096
- model_step_url: z99.string().optional(),
2097
- model_wrl_url: z99.string().optional(),
2098
- model_jscad: z99.any().optional()
2107
+ footprinter_string: z100.string().optional(),
2108
+ model_obj_url: z100.string().optional(),
2109
+ model_stl_url: z100.string().optional(),
2110
+ model_3mf_url: z100.string().optional(),
2111
+ model_gltf_url: z100.string().optional(),
2112
+ model_glb_url: z100.string().optional(),
2113
+ model_step_url: z100.string().optional(),
2114
+ model_wrl_url: z100.string().optional(),
2115
+ model_jscad: z100.any().optional()
2099
2116
  }).describe("Defines a component on the PCB");
2100
2117
  expectTypesMatch(true);
2101
2118
 
2102
2119
  // src/simulation/simulation_voltage_source.ts
2103
- import { z as z100 } from "zod";
2104
- var wave_shape = z100.enum(["sinewave", "square", "triangle", "sawtooth"]);
2105
- var percentage = z100.union([z100.string(), z100.number()]).transform((val) => {
2120
+ import { z as z101 } from "zod";
2121
+ var wave_shape = z101.enum(["sinewave", "square", "triangle", "sawtooth"]);
2122
+ var percentage = z101.union([z101.string(), z101.number()]).transform((val) => {
2106
2123
  if (typeof val === "string") {
2107
2124
  if (val.endsWith("%")) {
2108
2125
  return parseFloat(val.slice(0, -1)) / 100;
@@ -2111,30 +2128,30 @@ var percentage = z100.union([z100.string(), z100.number()]).transform((val) => {
2111
2128
  }
2112
2129
  return val;
2113
2130
  }).pipe(
2114
- z100.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
2131
+ z101.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
2115
2132
  );
2116
- var simulation_dc_voltage_source = z100.object({
2117
- type: z100.literal("simulation_voltage_source"),
2133
+ var simulation_dc_voltage_source = z101.object({
2134
+ type: z101.literal("simulation_voltage_source"),
2118
2135
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
2119
2136
  "simulation_voltage_source"
2120
2137
  ),
2121
- is_dc_source: z100.literal(true).optional().default(true),
2122
- positive_source_port_id: z100.string().optional(),
2123
- negative_source_port_id: z100.string().optional(),
2124
- positive_source_net_id: z100.string().optional(),
2125
- negative_source_net_id: z100.string().optional(),
2138
+ is_dc_source: z101.literal(true).optional().default(true),
2139
+ positive_source_port_id: z101.string().optional(),
2140
+ negative_source_port_id: z101.string().optional(),
2141
+ positive_source_net_id: z101.string().optional(),
2142
+ negative_source_net_id: z101.string().optional(),
2126
2143
  voltage
2127
2144
  }).describe("Defines a DC voltage source for simulation");
2128
- var simulation_ac_voltage_source = z100.object({
2129
- type: z100.literal("simulation_voltage_source"),
2145
+ var simulation_ac_voltage_source = z101.object({
2146
+ type: z101.literal("simulation_voltage_source"),
2130
2147
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
2131
2148
  "simulation_voltage_source"
2132
2149
  ),
2133
- is_dc_source: z100.literal(false),
2134
- terminal1_source_port_id: z100.string().optional(),
2135
- terminal2_source_port_id: z100.string().optional(),
2136
- terminal1_source_net_id: z100.string().optional(),
2137
- terminal2_source_net_id: z100.string().optional(),
2150
+ is_dc_source: z101.literal(false),
2151
+ terminal1_source_port_id: z101.string().optional(),
2152
+ terminal2_source_port_id: z101.string().optional(),
2153
+ terminal1_source_net_id: z101.string().optional(),
2154
+ terminal2_source_net_id: z101.string().optional(),
2138
2155
  voltage: voltage.optional(),
2139
2156
  frequency: frequency.optional(),
2140
2157
  peak_to_peak_voltage: voltage.optional(),
@@ -2142,14 +2159,14 @@ var simulation_ac_voltage_source = z100.object({
2142
2159
  phase: rotation.optional(),
2143
2160
  duty_cycle: percentage.optional()
2144
2161
  }).describe("Defines an AC voltage source for simulation");
2145
- var simulation_voltage_source = z100.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
2162
+ var simulation_voltage_source = z101.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
2146
2163
  expectTypesMatch(true);
2147
2164
  expectTypesMatch(true);
2148
2165
  expectTypesMatch(true);
2149
2166
 
2150
2167
  // src/any_circuit_element.ts
2151
- import { z as z101 } from "zod";
2152
- var any_circuit_element = z101.union([
2168
+ import { z as z102 } from "zod";
2169
+ var any_circuit_element = z102.union([
2153
2170
  source_trace,
2154
2171
  source_port,
2155
2172
  any_source_component,
@@ -2180,6 +2197,7 @@ var any_circuit_element = z101.union([
2180
2197
  pcb_component,
2181
2198
  pcb_hole,
2182
2199
  pcb_missing_footprint_error,
2200
+ external_footprint_load_error,
2183
2201
  pcb_manual_edit_conflict_warning,
2184
2202
  pcb_plated_hole,
2185
2203
  pcb_keepout,
@@ -2246,6 +2264,7 @@ export {
2246
2264
  capacitance,
2247
2265
  current,
2248
2266
  distance,
2267
+ external_footprint_load_error,
2249
2268
  frequency,
2250
2269
  getZodPrefixedIdWithDefault,
2251
2270
  inductance,