circuit-json 0.0.258 → 0.0.259

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -4128,6 +4128,50 @@ interface ExternalFootprintLoadError {
4128
4128
  message: string;
4129
4129
  }
4130
4130
 
4131
+ declare const circuit_json_footprint_load_error: z.ZodObject<{
4132
+ type: z.ZodLiteral<"circuit_json_footprint_load_error">;
4133
+ circuit_json_footprint_load_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
4134
+ pcb_component_id: z.ZodString;
4135
+ source_component_id: z.ZodString;
4136
+ pcb_group_id: z.ZodOptional<z.ZodString>;
4137
+ subcircuit_id: z.ZodOptional<z.ZodString>;
4138
+ error_type: z.ZodDefault<z.ZodLiteral<"circuit_json_footprint_load_error">>;
4139
+ message: z.ZodString;
4140
+ circuit_json: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
4141
+ }, "strip", z.ZodTypeAny, {
4142
+ message: string;
4143
+ type: "circuit_json_footprint_load_error";
4144
+ pcb_component_id: string;
4145
+ source_component_id: string;
4146
+ error_type: "circuit_json_footprint_load_error";
4147
+ circuit_json_footprint_load_error_id: string;
4148
+ subcircuit_id?: string | undefined;
4149
+ pcb_group_id?: string | undefined;
4150
+ circuit_json?: any[] | undefined;
4151
+ }, {
4152
+ message: string;
4153
+ type: "circuit_json_footprint_load_error";
4154
+ pcb_component_id: string;
4155
+ source_component_id: string;
4156
+ subcircuit_id?: string | undefined;
4157
+ pcb_group_id?: string | undefined;
4158
+ error_type?: "circuit_json_footprint_load_error" | undefined;
4159
+ circuit_json_footprint_load_error_id?: string | undefined;
4160
+ circuit_json?: any[] | undefined;
4161
+ }>;
4162
+ type CircuitJsonFootprintLoadErrorInput = z.input<typeof circuit_json_footprint_load_error>;
4163
+ interface CircuitJsonFootprintLoadError {
4164
+ type: "circuit_json_footprint_load_error";
4165
+ circuit_json_footprint_load_error_id: string;
4166
+ pcb_component_id: string;
4167
+ source_component_id: string;
4168
+ pcb_group_id?: string;
4169
+ subcircuit_id?: string;
4170
+ error_type: "circuit_json_footprint_load_error";
4171
+ message: string;
4172
+ circuit_json?: any[];
4173
+ }
4174
+
4131
4175
  declare const pcb_group: z.ZodObject<{
4132
4176
  type: z.ZodLiteral<"pcb_group">;
4133
4177
  pcb_group_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -5174,7 +5218,7 @@ interface PcbComponentOutsideBoardError {
5174
5218
  source_component_id?: string;
5175
5219
  }
5176
5220
 
5177
- 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 | PcbComponentOutsideBoardError;
5221
+ type PcbCircuitElement = PcbComponent | PcbHole | PcbPlatedHole | PcbPort | PcbSmtPad | PcbSolderPaste | PcbText | PcbTrace | PcbTraceError | PcbTraceMissingError | PcbMissingFootprintError | ExternalFootprintLoadError | CircuitJsonFootprintLoadError | PcbManualEditConflictWarning | PcbPortNotMatchedError | PcbPortNotConnectedError | PcbVia | PcbBoard | PcbPlacementError | PcbTraceHint | PcbSilkscreenLine | PcbSilkscreenPath | PcbSilkscreenText | PcbSilkscreenRect | PcbSilkscreenCircle | PcbAutoroutingError | PcbFootprintOverlapError | PcbCutout | PcbBreakoutPoint | PcbGroundPlane | PcbGroundPlaneRegion | PcbThermalSpoke | PcbCopperPour | PcbComponentOutsideBoardError;
5178
5222
 
5179
5223
  interface SchematicBox {
5180
5224
  type: "schematic_box";
@@ -12155,6 +12199,36 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
12155
12199
  error_type?: "external_footprint_load_error" | undefined;
12156
12200
  external_footprint_load_error_id?: string | undefined;
12157
12201
  footprinter_string?: string | undefined;
12202
+ }>, z.ZodObject<{
12203
+ type: z.ZodLiteral<"circuit_json_footprint_load_error">;
12204
+ circuit_json_footprint_load_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12205
+ pcb_component_id: z.ZodString;
12206
+ source_component_id: z.ZodString;
12207
+ pcb_group_id: z.ZodOptional<z.ZodString>;
12208
+ subcircuit_id: z.ZodOptional<z.ZodString>;
12209
+ error_type: z.ZodDefault<z.ZodLiteral<"circuit_json_footprint_load_error">>;
12210
+ message: z.ZodString;
12211
+ circuit_json: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
12212
+ }, "strip", z.ZodTypeAny, {
12213
+ message: string;
12214
+ type: "circuit_json_footprint_load_error";
12215
+ pcb_component_id: string;
12216
+ source_component_id: string;
12217
+ error_type: "circuit_json_footprint_load_error";
12218
+ circuit_json_footprint_load_error_id: string;
12219
+ subcircuit_id?: string | undefined;
12220
+ pcb_group_id?: string | undefined;
12221
+ circuit_json?: any[] | undefined;
12222
+ }, {
12223
+ message: string;
12224
+ type: "circuit_json_footprint_load_error";
12225
+ pcb_component_id: string;
12226
+ source_component_id: string;
12227
+ subcircuit_id?: string | undefined;
12228
+ pcb_group_id?: string | undefined;
12229
+ error_type?: "circuit_json_footprint_load_error" | undefined;
12230
+ circuit_json_footprint_load_error_id?: string | undefined;
12231
+ circuit_json?: any[] | undefined;
12158
12232
  }>, z.ZodObject<{
12159
12233
  type: z.ZodLiteral<"pcb_manual_edit_conflict_warning">;
12160
12234
  pcb_manual_edit_conflict_warning_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -18475,6 +18549,36 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18475
18549
  error_type?: "external_footprint_load_error" | undefined;
18476
18550
  external_footprint_load_error_id?: string | undefined;
18477
18551
  footprinter_string?: string | undefined;
18552
+ }>, z.ZodObject<{
18553
+ type: z.ZodLiteral<"circuit_json_footprint_load_error">;
18554
+ circuit_json_footprint_load_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
18555
+ pcb_component_id: z.ZodString;
18556
+ source_component_id: z.ZodString;
18557
+ pcb_group_id: z.ZodOptional<z.ZodString>;
18558
+ subcircuit_id: z.ZodOptional<z.ZodString>;
18559
+ error_type: z.ZodDefault<z.ZodLiteral<"circuit_json_footprint_load_error">>;
18560
+ message: z.ZodString;
18561
+ circuit_json: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
18562
+ }, "strip", z.ZodTypeAny, {
18563
+ message: string;
18564
+ type: "circuit_json_footprint_load_error";
18565
+ pcb_component_id: string;
18566
+ source_component_id: string;
18567
+ error_type: "circuit_json_footprint_load_error";
18568
+ circuit_json_footprint_load_error_id: string;
18569
+ subcircuit_id?: string | undefined;
18570
+ pcb_group_id?: string | undefined;
18571
+ circuit_json?: any[] | undefined;
18572
+ }, {
18573
+ message: string;
18574
+ type: "circuit_json_footprint_load_error";
18575
+ pcb_component_id: string;
18576
+ source_component_id: string;
18577
+ subcircuit_id?: string | undefined;
18578
+ pcb_group_id?: string | undefined;
18579
+ error_type?: "circuit_json_footprint_load_error" | undefined;
18580
+ circuit_json_footprint_load_error_id?: string | undefined;
18581
+ circuit_json?: any[] | undefined;
18478
18582
  }>, z.ZodObject<{
18479
18583
  type: z.ZodLiteral<"pcb_manual_edit_conflict_warning">;
18480
18584
  pcb_manual_edit_conflict_warning_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -22682,4 +22786,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
22682
22786
  */
22683
22787
  type CircuitJson = AnyCircuitElement[];
22684
22788
 
22685
- 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 PcbComponentOutsideBoardError, type PcbComponentOutsideBoardErrorInput, 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 SchematicArc, type SchematicArcInput, type SchematicBox, type SchematicBoxInput, type SchematicCircle, type SchematicCircleInput, 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 SchematicRect, type SchematicRectInput, 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_component_outside_board_error, 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_arc, schematic_box, schematic_circle, 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_rect, 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 };
22789
+ export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type BRepShape, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type CircuitJsonFootprintLoadError, type CircuitJsonFootprintLoadErrorInput, 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 PcbComponentOutsideBoardError, type PcbComponentOutsideBoardErrorInput, 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 SchematicArc, type SchematicArcInput, type SchematicBox, type SchematicBoxInput, type SchematicCircle, type SchematicCircleInput, 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 SchematicRect, type SchematicRectInput, 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, circuit_json_footprint_load_error, 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_component_outside_board_error, 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_arc, schematic_box, schematic_circle, 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_rect, 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
@@ -2038,67 +2038,84 @@ var external_footprint_load_error = z94.object({
2038
2038
  }).describe("Defines an error when an external footprint fails to load");
2039
2039
  expectTypesMatch(true);
2040
2040
 
2041
- // src/pcb/pcb_group.ts
2041
+ // src/pcb/circuit_json_footprint_load_error.ts
2042
2042
  import { z as z95 } from "zod";
2043
- var pcb_group = z95.object({
2044
- type: z95.literal("pcb_group"),
2045
- pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
2046
- source_group_id: z95.string(),
2047
- is_subcircuit: z95.boolean().optional(),
2043
+ var circuit_json_footprint_load_error = z95.object({
2044
+ type: z95.literal("circuit_json_footprint_load_error"),
2045
+ circuit_json_footprint_load_error_id: getZodPrefixedIdWithDefault(
2046
+ "circuit_json_footprint_load_error"
2047
+ ),
2048
+ pcb_component_id: z95.string(),
2049
+ source_component_id: z95.string(),
2050
+ pcb_group_id: z95.string().optional(),
2048
2051
  subcircuit_id: z95.string().optional(),
2052
+ error_type: z95.literal("circuit_json_footprint_load_error").default("circuit_json_footprint_load_error"),
2053
+ message: z95.string(),
2054
+ circuit_json: z95.array(z95.any()).optional()
2055
+ }).describe("Defines an error when a circuit JSON footprint fails to load");
2056
+ expectTypesMatch(true);
2057
+
2058
+ // src/pcb/pcb_group.ts
2059
+ import { z as z96 } from "zod";
2060
+ var pcb_group = z96.object({
2061
+ type: z96.literal("pcb_group"),
2062
+ pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
2063
+ source_group_id: z96.string(),
2064
+ is_subcircuit: z96.boolean().optional(),
2065
+ subcircuit_id: z96.string().optional(),
2049
2066
  width: length,
2050
2067
  height: length,
2051
2068
  center: point,
2052
- pcb_component_ids: z95.array(z95.string()),
2053
- name: z95.string().optional(),
2054
- description: z95.string().optional(),
2055
- layout_mode: z95.string().optional(),
2056
- autorouter_configuration: z95.object({
2069
+ pcb_component_ids: z96.array(z96.string()),
2070
+ name: z96.string().optional(),
2071
+ description: z96.string().optional(),
2072
+ layout_mode: z96.string().optional(),
2073
+ autorouter_configuration: z96.object({
2057
2074
  trace_clearance: length
2058
2075
  }).optional(),
2059
- autorouter_used_string: z95.string().optional()
2076
+ autorouter_used_string: z96.string().optional()
2060
2077
  }).describe("Defines a group of components on the PCB");
2061
2078
  expectTypesMatch(true);
2062
2079
 
2063
2080
  // src/pcb/pcb_autorouting_error.ts
2064
- import { z as z96 } from "zod";
2065
- var pcb_autorouting_error = z96.object({
2066
- type: z96.literal("pcb_autorouting_error"),
2081
+ import { z as z97 } from "zod";
2082
+ var pcb_autorouting_error = z97.object({
2083
+ type: z97.literal("pcb_autorouting_error"),
2067
2084
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
2068
- error_type: z96.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
2069
- message: z96.string(),
2070
- subcircuit_id: z96.string().optional()
2085
+ error_type: z97.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
2086
+ message: z97.string(),
2087
+ subcircuit_id: z97.string().optional()
2071
2088
  }).describe("The autorouting has failed to route a portion of the board");
2072
2089
  expectTypesMatch(true);
2073
2090
 
2074
2091
  // src/pcb/pcb_manual_edit_conflict_warning.ts
2075
- import { z as z97 } from "zod";
2076
- var pcb_manual_edit_conflict_warning = z97.object({
2077
- type: z97.literal("pcb_manual_edit_conflict_warning"),
2092
+ import { z as z98 } from "zod";
2093
+ var pcb_manual_edit_conflict_warning = z98.object({
2094
+ type: z98.literal("pcb_manual_edit_conflict_warning"),
2078
2095
  pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
2079
2096
  "pcb_manual_edit_conflict_warning"
2080
2097
  ),
2081
- warning_type: z97.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
2082
- message: z97.string(),
2083
- pcb_component_id: z97.string(),
2084
- pcb_group_id: z97.string().optional(),
2085
- subcircuit_id: z97.string().optional(),
2086
- source_component_id: z97.string()
2098
+ warning_type: z98.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
2099
+ message: z98.string(),
2100
+ pcb_component_id: z98.string(),
2101
+ pcb_group_id: z98.string().optional(),
2102
+ subcircuit_id: z98.string().optional(),
2103
+ source_component_id: z98.string()
2087
2104
  }).describe(
2088
2105
  "Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
2089
2106
  );
2090
2107
  expectTypesMatch(true);
2091
2108
 
2092
2109
  // src/pcb/pcb_breakout_point.ts
2093
- import { z as z98 } from "zod";
2094
- var pcb_breakout_point = z98.object({
2095
- type: z98.literal("pcb_breakout_point"),
2110
+ import { z as z99 } from "zod";
2111
+ var pcb_breakout_point = z99.object({
2112
+ type: z99.literal("pcb_breakout_point"),
2096
2113
  pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
2097
- pcb_group_id: z98.string(),
2098
- subcircuit_id: z98.string().optional(),
2099
- source_trace_id: z98.string().optional(),
2100
- source_port_id: z98.string().optional(),
2101
- source_net_id: z98.string().optional(),
2114
+ pcb_group_id: z99.string(),
2115
+ subcircuit_id: z99.string().optional(),
2116
+ source_trace_id: z99.string().optional(),
2117
+ source_port_id: z99.string().optional(),
2118
+ source_net_id: z99.string().optional(),
2102
2119
  x: distance,
2103
2120
  y: distance
2104
2121
  }).describe(
@@ -2107,60 +2124,60 @@ var pcb_breakout_point = z98.object({
2107
2124
  expectTypesMatch(true);
2108
2125
 
2109
2126
  // src/pcb/pcb_ground_plane.ts
2110
- import { z as z99 } from "zod";
2111
- var pcb_ground_plane = z99.object({
2112
- type: z99.literal("pcb_ground_plane"),
2127
+ import { z as z100 } from "zod";
2128
+ var pcb_ground_plane = z100.object({
2129
+ type: z100.literal("pcb_ground_plane"),
2113
2130
  pcb_ground_plane_id: getZodPrefixedIdWithDefault("pcb_ground_plane"),
2114
- source_pcb_ground_plane_id: z99.string(),
2115
- source_net_id: z99.string(),
2116
- pcb_group_id: z99.string().optional(),
2117
- subcircuit_id: z99.string().optional()
2131
+ source_pcb_ground_plane_id: z100.string(),
2132
+ source_net_id: z100.string(),
2133
+ pcb_group_id: z100.string().optional(),
2134
+ subcircuit_id: z100.string().optional()
2118
2135
  }).describe("Defines a ground plane on the PCB");
2119
2136
  expectTypesMatch(true);
2120
2137
 
2121
2138
  // src/pcb/pcb_ground_plane_region.ts
2122
- import { z as z100 } from "zod";
2123
- var pcb_ground_plane_region = z100.object({
2124
- type: z100.literal("pcb_ground_plane_region"),
2139
+ import { z as z101 } from "zod";
2140
+ var pcb_ground_plane_region = z101.object({
2141
+ type: z101.literal("pcb_ground_plane_region"),
2125
2142
  pcb_ground_plane_region_id: getZodPrefixedIdWithDefault(
2126
2143
  "pcb_ground_plane_region"
2127
2144
  ),
2128
- pcb_ground_plane_id: z100.string(),
2129
- pcb_group_id: z100.string().optional(),
2130
- subcircuit_id: z100.string().optional(),
2145
+ pcb_ground_plane_id: z101.string(),
2146
+ pcb_group_id: z101.string().optional(),
2147
+ subcircuit_id: z101.string().optional(),
2131
2148
  layer: layer_ref,
2132
- points: z100.array(point)
2149
+ points: z101.array(point)
2133
2150
  }).describe("Defines a polygon region of a ground plane");
2134
2151
  expectTypesMatch(true);
2135
2152
 
2136
2153
  // src/pcb/pcb_thermal_spoke.ts
2137
- import { z as z101 } from "zod";
2138
- var pcb_thermal_spoke = z101.object({
2139
- type: z101.literal("pcb_thermal_spoke"),
2154
+ import { z as z102 } from "zod";
2155
+ var pcb_thermal_spoke = z102.object({
2156
+ type: z102.literal("pcb_thermal_spoke"),
2140
2157
  pcb_thermal_spoke_id: getZodPrefixedIdWithDefault("pcb_thermal_spoke"),
2141
- pcb_ground_plane_id: z101.string(),
2142
- shape: z101.string(),
2143
- spoke_count: z101.number(),
2158
+ pcb_ground_plane_id: z102.string(),
2159
+ shape: z102.string(),
2160
+ spoke_count: z102.number(),
2144
2161
  spoke_thickness: distance,
2145
2162
  spoke_inner_diameter: distance,
2146
2163
  spoke_outer_diameter: distance,
2147
- pcb_plated_hole_id: z101.string().optional(),
2148
- subcircuit_id: z101.string().optional()
2164
+ pcb_plated_hole_id: z102.string().optional(),
2165
+ subcircuit_id: z102.string().optional()
2149
2166
  }).describe("Pattern for connecting a ground plane to a plated hole");
2150
2167
  expectTypesMatch(true);
2151
2168
 
2152
2169
  // src/pcb/pcb_copper_pour.ts
2153
- import { z as z102 } from "zod";
2154
- var pcb_copper_pour_base = z102.object({
2155
- type: z102.literal("pcb_copper_pour"),
2170
+ import { z as z103 } from "zod";
2171
+ var pcb_copper_pour_base = z103.object({
2172
+ type: z103.literal("pcb_copper_pour"),
2156
2173
  pcb_copper_pour_id: getZodPrefixedIdWithDefault("pcb_copper_pour"),
2157
- pcb_group_id: z102.string().optional(),
2158
- subcircuit_id: z102.string().optional(),
2174
+ pcb_group_id: z103.string().optional(),
2175
+ subcircuit_id: z103.string().optional(),
2159
2176
  layer: layer_ref,
2160
- source_net_id: z102.string().optional()
2177
+ source_net_id: z103.string().optional()
2161
2178
  });
2162
2179
  var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
2163
- shape: z102.literal("rect"),
2180
+ shape: z103.literal("rect"),
2164
2181
  center: point,
2165
2182
  width: length,
2166
2183
  height: length,
@@ -2168,16 +2185,16 @@ var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
2168
2185
  });
2169
2186
  expectTypesMatch(true);
2170
2187
  var pcb_copper_pour_brep = pcb_copper_pour_base.extend({
2171
- shape: z102.literal("brep"),
2188
+ shape: z103.literal("brep"),
2172
2189
  brep_shape
2173
2190
  });
2174
2191
  expectTypesMatch(true);
2175
2192
  var pcb_copper_pour_polygon = pcb_copper_pour_base.extend({
2176
- shape: z102.literal("polygon"),
2177
- points: z102.array(point)
2193
+ shape: z103.literal("polygon"),
2194
+ points: z103.array(point)
2178
2195
  });
2179
2196
  expectTypesMatch(true);
2180
- var pcb_copper_pour = z102.discriminatedUnion("shape", [
2197
+ var pcb_copper_pour = z103.discriminatedUnion("shape", [
2181
2198
  pcb_copper_pour_rect,
2182
2199
  pcb_copper_pour_brep,
2183
2200
  pcb_copper_pour_polygon
@@ -2185,60 +2202,60 @@ var pcb_copper_pour = z102.discriminatedUnion("shape", [
2185
2202
  expectTypesMatch(true);
2186
2203
 
2187
2204
  // src/pcb/pcb_component_outside_board_error.ts
2188
- import { z as z103 } from "zod";
2189
- var pcb_component_outside_board_error = z103.object({
2190
- type: z103.literal("pcb_component_outside_board_error"),
2205
+ import { z as z104 } from "zod";
2206
+ var pcb_component_outside_board_error = z104.object({
2207
+ type: z104.literal("pcb_component_outside_board_error"),
2191
2208
  pcb_component_outside_board_error_id: getZodPrefixedIdWithDefault(
2192
2209
  "pcb_component_outside_board_error"
2193
2210
  ),
2194
- error_type: z103.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
2195
- message: z103.string(),
2196
- pcb_component_id: z103.string(),
2197
- pcb_board_id: z103.string(),
2211
+ error_type: z104.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
2212
+ message: z104.string(),
2213
+ pcb_component_id: z104.string(),
2214
+ pcb_board_id: z104.string(),
2198
2215
  component_center: point,
2199
- component_bounds: z103.object({
2200
- min_x: z103.number(),
2201
- max_x: z103.number(),
2202
- min_y: z103.number(),
2203
- max_y: z103.number()
2216
+ component_bounds: z104.object({
2217
+ min_x: z104.number(),
2218
+ max_x: z104.number(),
2219
+ min_y: z104.number(),
2220
+ max_y: z104.number()
2204
2221
  }),
2205
- subcircuit_id: z103.string().optional(),
2206
- source_component_id: z103.string().optional()
2222
+ subcircuit_id: z104.string().optional(),
2223
+ source_component_id: z104.string().optional()
2207
2224
  }).describe(
2208
2225
  "Error emitted when a PCB component is placed outside the board boundaries"
2209
2226
  );
2210
2227
  expectTypesMatch(true);
2211
2228
 
2212
2229
  // src/cad/cad_component.ts
2213
- import { z as z104 } from "zod";
2214
- var cad_component = z104.object({
2215
- type: z104.literal("cad_component"),
2216
- cad_component_id: z104.string(),
2217
- pcb_component_id: z104.string(),
2218
- source_component_id: z104.string(),
2230
+ import { z as z105 } from "zod";
2231
+ var cad_component = z105.object({
2232
+ type: z105.literal("cad_component"),
2233
+ cad_component_id: z105.string(),
2234
+ pcb_component_id: z105.string(),
2235
+ source_component_id: z105.string(),
2219
2236
  position: point3,
2220
2237
  rotation: point3.optional(),
2221
2238
  size: point3.optional(),
2222
2239
  layer: layer_ref.optional(),
2223
- subcircuit_id: z104.string().optional(),
2240
+ subcircuit_id: z105.string().optional(),
2224
2241
  // These are all ways to generate/load the 3d model
2225
- footprinter_string: z104.string().optional(),
2226
- model_obj_url: z104.string().optional(),
2227
- model_stl_url: z104.string().optional(),
2228
- model_3mf_url: z104.string().optional(),
2229
- model_gltf_url: z104.string().optional(),
2230
- model_glb_url: z104.string().optional(),
2231
- model_step_url: z104.string().optional(),
2232
- model_wrl_url: z104.string().optional(),
2233
- model_unit_to_mm_scale_factor: z104.number().optional(),
2234
- model_jscad: z104.any().optional()
2242
+ footprinter_string: z105.string().optional(),
2243
+ model_obj_url: z105.string().optional(),
2244
+ model_stl_url: z105.string().optional(),
2245
+ model_3mf_url: z105.string().optional(),
2246
+ model_gltf_url: z105.string().optional(),
2247
+ model_glb_url: z105.string().optional(),
2248
+ model_step_url: z105.string().optional(),
2249
+ model_wrl_url: z105.string().optional(),
2250
+ model_unit_to_mm_scale_factor: z105.number().optional(),
2251
+ model_jscad: z105.any().optional()
2235
2252
  }).describe("Defines a component on the PCB");
2236
2253
  expectTypesMatch(true);
2237
2254
 
2238
2255
  // src/simulation/simulation_voltage_source.ts
2239
- import { z as z105 } from "zod";
2240
- var wave_shape = z105.enum(["sinewave", "square", "triangle", "sawtooth"]);
2241
- var percentage = z105.union([z105.string(), z105.number()]).transform((val) => {
2256
+ import { z as z106 } from "zod";
2257
+ var wave_shape = z106.enum(["sinewave", "square", "triangle", "sawtooth"]);
2258
+ var percentage = z106.union([z106.string(), z106.number()]).transform((val) => {
2242
2259
  if (typeof val === "string") {
2243
2260
  if (val.endsWith("%")) {
2244
2261
  return parseFloat(val.slice(0, -1)) / 100;
@@ -2247,30 +2264,30 @@ var percentage = z105.union([z105.string(), z105.number()]).transform((val) => {
2247
2264
  }
2248
2265
  return val;
2249
2266
  }).pipe(
2250
- z105.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
2267
+ z106.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
2251
2268
  );
2252
- var simulation_dc_voltage_source = z105.object({
2253
- type: z105.literal("simulation_voltage_source"),
2269
+ var simulation_dc_voltage_source = z106.object({
2270
+ type: z106.literal("simulation_voltage_source"),
2254
2271
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
2255
2272
  "simulation_voltage_source"
2256
2273
  ),
2257
- is_dc_source: z105.literal(true).optional().default(true),
2258
- positive_source_port_id: z105.string().optional(),
2259
- negative_source_port_id: z105.string().optional(),
2260
- positive_source_net_id: z105.string().optional(),
2261
- negative_source_net_id: z105.string().optional(),
2274
+ is_dc_source: z106.literal(true).optional().default(true),
2275
+ positive_source_port_id: z106.string().optional(),
2276
+ negative_source_port_id: z106.string().optional(),
2277
+ positive_source_net_id: z106.string().optional(),
2278
+ negative_source_net_id: z106.string().optional(),
2262
2279
  voltage
2263
2280
  }).describe("Defines a DC voltage source for simulation");
2264
- var simulation_ac_voltage_source = z105.object({
2265
- type: z105.literal("simulation_voltage_source"),
2281
+ var simulation_ac_voltage_source = z106.object({
2282
+ type: z106.literal("simulation_voltage_source"),
2266
2283
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
2267
2284
  "simulation_voltage_source"
2268
2285
  ),
2269
- is_dc_source: z105.literal(false),
2270
- terminal1_source_port_id: z105.string().optional(),
2271
- terminal2_source_port_id: z105.string().optional(),
2272
- terminal1_source_net_id: z105.string().optional(),
2273
- terminal2_source_net_id: z105.string().optional(),
2286
+ is_dc_source: z106.literal(false),
2287
+ terminal1_source_port_id: z106.string().optional(),
2288
+ terminal2_source_port_id: z106.string().optional(),
2289
+ terminal1_source_net_id: z106.string().optional(),
2290
+ terminal2_source_net_id: z106.string().optional(),
2274
2291
  voltage: voltage.optional(),
2275
2292
  frequency: frequency.optional(),
2276
2293
  peak_to_peak_voltage: voltage.optional(),
@@ -2278,14 +2295,14 @@ var simulation_ac_voltage_source = z105.object({
2278
2295
  phase: rotation.optional(),
2279
2296
  duty_cycle: percentage.optional()
2280
2297
  }).describe("Defines an AC voltage source for simulation");
2281
- var simulation_voltage_source = z105.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
2298
+ var simulation_voltage_source = z106.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
2282
2299
  expectTypesMatch(true);
2283
2300
  expectTypesMatch(true);
2284
2301
  expectTypesMatch(true);
2285
2302
 
2286
2303
  // src/any_circuit_element.ts
2287
- import { z as z106 } from "zod";
2288
- var any_circuit_element = z106.union([
2304
+ import { z as z107 } from "zod";
2305
+ var any_circuit_element = z107.union([
2289
2306
  source_trace,
2290
2307
  source_port,
2291
2308
  any_source_component,
@@ -2317,6 +2334,7 @@ var any_circuit_element = z106.union([
2317
2334
  pcb_hole,
2318
2335
  pcb_missing_footprint_error,
2319
2336
  external_footprint_load_error,
2337
+ circuit_json_footprint_load_error,
2320
2338
  pcb_manual_edit_conflict_warning,
2321
2339
  pcb_plated_hole,
2322
2340
  pcb_keepout,
@@ -2385,6 +2403,7 @@ export {
2385
2403
  brep_shape,
2386
2404
  cad_component,
2387
2405
  capacitance,
2406
+ circuit_json_footprint_load_error,
2388
2407
  current,
2389
2408
  distance,
2390
2409
  external_footprint_load_error,