circuit-json 0.0.271 → 0.0.272

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/README.md CHANGED
@@ -145,6 +145,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
145
145
  - [SimulationExperiment](#simulationexperiment)
146
146
  - [SimulationSwitch](#simulationswitch)
147
147
  - [SimulationTransientVoltageGraph](#simulationtransientvoltagegraph)
148
+ - [SimulationVoltageProbe](#simulationvoltageprobe)
148
149
  - [SimulationVoltageSource](#simulationvoltagesource)
149
150
 
150
151
  <!-- toc:end -->
@@ -2196,6 +2197,24 @@ interface SimulationTransientVoltageGraph {
2196
2197
  }
2197
2198
  ```
2198
2199
 
2200
+ ### SimulationVoltageProbe
2201
+
2202
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_voltage_probe.ts)
2203
+
2204
+ Defines a voltage probe for simulation, connected to a port or a net.
2205
+
2206
+ ```typescript
2207
+ /** Defines a voltage probe for simulation, connected to a port or a net. */
2208
+ interface SimulationVoltageProbe {
2209
+ type: "simulation_voltage_probe"
2210
+ simulation_voltage_probe_id: string
2211
+ source_port_id?: string
2212
+ source_net_id?: string
2213
+ name?: string
2214
+ subcircuit_id?: string
2215
+ }
2216
+ ```
2217
+
2199
2218
  ### SimulationVoltageSource
2200
2219
 
2201
2220
  [Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_voltage_source.ts)
package/dist/index.d.mts CHANGED
@@ -10304,6 +10304,55 @@ interface SimulationSwitch {
10304
10304
  switching_frequency?: number;
10305
10305
  }
10306
10306
 
10307
+ declare const simulation_voltage_probe: z.ZodEffects<z.ZodObject<{
10308
+ type: z.ZodLiteral<"simulation_voltage_probe">;
10309
+ simulation_voltage_probe_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10310
+ source_port_id: z.ZodOptional<z.ZodString>;
10311
+ source_net_id: z.ZodOptional<z.ZodString>;
10312
+ name: z.ZodOptional<z.ZodString>;
10313
+ subcircuit_id: z.ZodOptional<z.ZodString>;
10314
+ }, "strip", z.ZodTypeAny, {
10315
+ type: "simulation_voltage_probe";
10316
+ simulation_voltage_probe_id: string;
10317
+ name?: string | undefined;
10318
+ subcircuit_id?: string | undefined;
10319
+ source_port_id?: string | undefined;
10320
+ source_net_id?: string | undefined;
10321
+ }, {
10322
+ type: "simulation_voltage_probe";
10323
+ name?: string | undefined;
10324
+ subcircuit_id?: string | undefined;
10325
+ source_port_id?: string | undefined;
10326
+ source_net_id?: string | undefined;
10327
+ simulation_voltage_probe_id?: string | undefined;
10328
+ }>, {
10329
+ type: "simulation_voltage_probe";
10330
+ simulation_voltage_probe_id: string;
10331
+ name?: string | undefined;
10332
+ subcircuit_id?: string | undefined;
10333
+ source_port_id?: string | undefined;
10334
+ source_net_id?: string | undefined;
10335
+ }, {
10336
+ type: "simulation_voltage_probe";
10337
+ name?: string | undefined;
10338
+ subcircuit_id?: string | undefined;
10339
+ source_port_id?: string | undefined;
10340
+ source_net_id?: string | undefined;
10341
+ simulation_voltage_probe_id?: string | undefined;
10342
+ }>;
10343
+ type SimulationVoltageProbeInput = z.input<typeof simulation_voltage_probe>;
10344
+ /**
10345
+ * Defines a voltage probe for simulation, connected to a port or a net.
10346
+ */
10347
+ interface SimulationVoltageProbe {
10348
+ type: "simulation_voltage_probe";
10349
+ simulation_voltage_probe_id: string;
10350
+ source_port_id?: string;
10351
+ source_net_id?: string;
10352
+ name?: string;
10353
+ subcircuit_id?: string;
10354
+ }
10355
+
10307
10356
  declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
10308
10357
  type: z.ZodLiteral<"source_trace">;
10309
10358
  source_trace_id: z.ZodString;
@@ -16782,6 +16831,62 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16782
16831
  schematic_voltage_probe_id?: string | undefined;
16783
16832
  simulation_transient_voltage_graph_id?: string | undefined;
16784
16833
  timestamps_ms?: number[] | undefined;
16834
+ }>, z.ZodObject<{
16835
+ type: z.ZodLiteral<"simulation_switch">;
16836
+ simulation_switch_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
16837
+ closes_at: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
16838
+ opens_at: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
16839
+ starts_closed: z.ZodOptional<z.ZodBoolean>;
16840
+ switching_frequency: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
16841
+ }, "strip", z.ZodTypeAny, {
16842
+ type: "simulation_switch";
16843
+ simulation_switch_id: string;
16844
+ closes_at?: number | undefined;
16845
+ opens_at?: number | undefined;
16846
+ starts_closed?: boolean | undefined;
16847
+ switching_frequency?: number | undefined;
16848
+ }, {
16849
+ type: "simulation_switch";
16850
+ simulation_switch_id?: string | undefined;
16851
+ closes_at?: string | number | undefined;
16852
+ opens_at?: string | number | undefined;
16853
+ starts_closed?: boolean | undefined;
16854
+ switching_frequency?: string | number | undefined;
16855
+ }>, z.ZodEffects<z.ZodObject<{
16856
+ type: z.ZodLiteral<"simulation_voltage_probe">;
16857
+ simulation_voltage_probe_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
16858
+ source_port_id: z.ZodOptional<z.ZodString>;
16859
+ source_net_id: z.ZodOptional<z.ZodString>;
16860
+ name: z.ZodOptional<z.ZodString>;
16861
+ subcircuit_id: z.ZodOptional<z.ZodString>;
16862
+ }, "strip", z.ZodTypeAny, {
16863
+ type: "simulation_voltage_probe";
16864
+ simulation_voltage_probe_id: string;
16865
+ name?: string | undefined;
16866
+ subcircuit_id?: string | undefined;
16867
+ source_port_id?: string | undefined;
16868
+ source_net_id?: string | undefined;
16869
+ }, {
16870
+ type: "simulation_voltage_probe";
16871
+ name?: string | undefined;
16872
+ subcircuit_id?: string | undefined;
16873
+ source_port_id?: string | undefined;
16874
+ source_net_id?: string | undefined;
16875
+ simulation_voltage_probe_id?: string | undefined;
16876
+ }>, {
16877
+ type: "simulation_voltage_probe";
16878
+ simulation_voltage_probe_id: string;
16879
+ name?: string | undefined;
16880
+ subcircuit_id?: string | undefined;
16881
+ source_port_id?: string | undefined;
16882
+ source_net_id?: string | undefined;
16883
+ }, {
16884
+ type: "simulation_voltage_probe";
16885
+ name?: string | undefined;
16886
+ subcircuit_id?: string | undefined;
16887
+ source_port_id?: string | undefined;
16888
+ source_net_id?: string | undefined;
16889
+ simulation_voltage_probe_id?: string | undefined;
16785
16890
  }>]>;
16786
16891
  /**
16787
16892
  * @deprecated use any_circuit_element instead
@@ -23264,6 +23369,62 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23264
23369
  schematic_voltage_probe_id?: string | undefined;
23265
23370
  simulation_transient_voltage_graph_id?: string | undefined;
23266
23371
  timestamps_ms?: number[] | undefined;
23372
+ }>, z.ZodObject<{
23373
+ type: z.ZodLiteral<"simulation_switch">;
23374
+ simulation_switch_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
23375
+ closes_at: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23376
+ opens_at: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23377
+ starts_closed: z.ZodOptional<z.ZodBoolean>;
23378
+ switching_frequency: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23379
+ }, "strip", z.ZodTypeAny, {
23380
+ type: "simulation_switch";
23381
+ simulation_switch_id: string;
23382
+ closes_at?: number | undefined;
23383
+ opens_at?: number | undefined;
23384
+ starts_closed?: boolean | undefined;
23385
+ switching_frequency?: number | undefined;
23386
+ }, {
23387
+ type: "simulation_switch";
23388
+ simulation_switch_id?: string | undefined;
23389
+ closes_at?: string | number | undefined;
23390
+ opens_at?: string | number | undefined;
23391
+ starts_closed?: boolean | undefined;
23392
+ switching_frequency?: string | number | undefined;
23393
+ }>, z.ZodEffects<z.ZodObject<{
23394
+ type: z.ZodLiteral<"simulation_voltage_probe">;
23395
+ simulation_voltage_probe_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
23396
+ source_port_id: z.ZodOptional<z.ZodString>;
23397
+ source_net_id: z.ZodOptional<z.ZodString>;
23398
+ name: z.ZodOptional<z.ZodString>;
23399
+ subcircuit_id: z.ZodOptional<z.ZodString>;
23400
+ }, "strip", z.ZodTypeAny, {
23401
+ type: "simulation_voltage_probe";
23402
+ simulation_voltage_probe_id: string;
23403
+ name?: string | undefined;
23404
+ subcircuit_id?: string | undefined;
23405
+ source_port_id?: string | undefined;
23406
+ source_net_id?: string | undefined;
23407
+ }, {
23408
+ type: "simulation_voltage_probe";
23409
+ name?: string | undefined;
23410
+ subcircuit_id?: string | undefined;
23411
+ source_port_id?: string | undefined;
23412
+ source_net_id?: string | undefined;
23413
+ simulation_voltage_probe_id?: string | undefined;
23414
+ }>, {
23415
+ type: "simulation_voltage_probe";
23416
+ simulation_voltage_probe_id: string;
23417
+ name?: string | undefined;
23418
+ subcircuit_id?: string | undefined;
23419
+ source_port_id?: string | undefined;
23420
+ source_net_id?: string | undefined;
23421
+ }, {
23422
+ type: "simulation_voltage_probe";
23423
+ name?: string | undefined;
23424
+ subcircuit_id?: string | undefined;
23425
+ source_port_id?: string | undefined;
23426
+ source_net_id?: string | undefined;
23427
+ simulation_voltage_probe_id?: string | undefined;
23267
23428
  }>]>;
23268
23429
  type AnyCircuitElement = z.infer<typeof any_circuit_element>;
23269
23430
  type AnyCircuitElementInput = z.input<typeof any_circuit_element>;
@@ -23281,4 +23442,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
23281
23442
  */
23282
23443
  type CircuitJson = AnyCircuitElement[];
23283
23444
 
23284
- 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 ExperimentType, 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 PcbNet, type PcbNetInput, 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 PcbViaClearanceError, type PcbViaClearanceErrorInput, 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 SimulationExperiment, type SimulationExperimentInput, type SimulationSwitch, type SimulationSwitchInput, type SimulationTransientVoltageGraph, type SimulationTransientVoltageGraphInput, 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, duration_ms, experiment_type, external_footprint_load_error, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ms, 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_net, 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, pcb_via_clearance_error, 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_experiment, simulation_switch, simulation_transient_voltage_graph, 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, timestamp, visible_layer, voltage, wave_shape };
23445
+ 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 ExperimentType, 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 PcbNet, type PcbNetInput, 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 PcbViaClearanceError, type PcbViaClearanceErrorInput, 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 SimulationExperiment, type SimulationExperimentInput, type SimulationSwitch, type SimulationSwitchInput, type SimulationTransientVoltageGraph, type SimulationTransientVoltageGraphInput, type SimulationVoltageProbe, type SimulationVoltageProbeInput, 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, duration_ms, experiment_type, external_footprint_load_error, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ms, 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_net, 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, pcb_via_clearance_error, 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_experiment, simulation_switch, simulation_transient_voltage_graph, simulation_voltage_probe, 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, timestamp, visible_layer, voltage, wave_shape };
package/dist/index.mjs CHANGED
@@ -2400,9 +2400,30 @@ var simulation_switch = z111.object({
2400
2400
  }).describe("Defines a switch for simulation timing control");
2401
2401
  expectTypesMatch(true);
2402
2402
 
2403
- // src/any_circuit_element.ts
2403
+ // src/simulation/simulation_voltage_probe.ts
2404
2404
  import { z as z112 } from "zod";
2405
- var any_circuit_element = z112.union([
2405
+ var simulation_voltage_probe = z112.object({
2406
+ type: z112.literal("simulation_voltage_probe"),
2407
+ simulation_voltage_probe_id: getZodPrefixedIdWithDefault(
2408
+ "simulation_voltage_probe"
2409
+ ),
2410
+ source_port_id: z112.string().optional(),
2411
+ source_net_id: z112.string().optional(),
2412
+ name: z112.string().optional(),
2413
+ subcircuit_id: z112.string().optional()
2414
+ }).describe(
2415
+ "Defines a voltage probe for simulation, connected to a port or a net"
2416
+ ).refine(
2417
+ (data) => Boolean(data.source_port_id) !== Boolean(data.source_net_id),
2418
+ {
2419
+ message: "Exactly one of source_port_id or source_net_id must be provided to simulation_voltage_probe"
2420
+ }
2421
+ );
2422
+ expectTypesMatch(true);
2423
+
2424
+ // src/any_circuit_element.ts
2425
+ import { z as z113 } from "zod";
2426
+ var any_circuit_element = z113.union([
2406
2427
  source_trace,
2407
2428
  source_port,
2408
2429
  any_source_component,
@@ -2493,7 +2514,9 @@ var any_circuit_element = z112.union([
2493
2514
  cad_component,
2494
2515
  simulation_voltage_source,
2495
2516
  simulation_experiment,
2496
- simulation_transient_voltage_graph
2517
+ simulation_transient_voltage_graph,
2518
+ simulation_switch,
2519
+ simulation_voltage_probe
2497
2520
  ]);
2498
2521
  var any_soup_element = any_circuit_element;
2499
2522
  expectTypesMatch(true);
@@ -2615,6 +2638,7 @@ export {
2615
2638
  simulation_experiment,
2616
2639
  simulation_switch,
2617
2640
  simulation_transient_voltage_graph,
2641
+ simulation_voltage_probe,
2618
2642
  simulation_voltage_source,
2619
2643
  size,
2620
2644
  source_component_base,