circuit-json 0.0.266 → 0.0.267

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Circuit JSON a low-level JSON-array circuit representation. It contains all the information needed to visually represent a schematic, PCB, produce Gerber files, produce bill of materials, run SPICE simulations, view warnings and more. It is designed to easily interoperate with a SQL database.
4
4
 
5
- [tscircuit](https://github.com/tscircuit/tscircuit) · [discord](https://tscircuit.com/join) · [online circuit json viewer](https://circuitjson.com/) · [example.json](https://github.com/tscircuit/circuitjson.com/blob/main/assets/usb-c-flashlight.json)
5
+ [tscircuit](https://github.com/tscircuit/tscircuit) · [discord](https://tscircuit.com/join) · [online circuit json viewer](https://circuitjson.com/) · [example.json](https://github.com/tscircuit/circuitjson.com/blob/main/assets/usb-c-flashlight.json) · [Introduction to Circuit JSON Video](https://www.youtube.com/watch?v=QMWobH5tmqo)
6
6
 
7
7
  [![npm version](https://badge.fury.io/js/circuit-json.svg)](https://badge.fury.io/js/circuit-json)
8
8
 
@@ -139,6 +139,8 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
139
139
  - [SchematicTrace](#schematictrace)
140
140
  - [SchematicVoltageProbe](#schematicvoltageprobe)
141
141
  - [Simulation Elements](#simulation-elements)
142
+ - [SimulationExperiment](#simulationexperiment)
143
+ - [SimulationTransientVoltageGraph](#simulationtransientvoltagegraph)
142
144
  - [SimulationVoltageSource](#simulationvoltagesource)
143
145
 
144
146
  <!-- toc:end -->
@@ -2078,6 +2080,39 @@ interface SchematicVoltageProbe {
2078
2080
 
2079
2081
  ## Simulation Elements
2080
2082
 
2083
+ ### SimulationExperiment
2084
+
2085
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_experiment.ts)
2086
+
2087
+ ```typescript
2088
+ interface SimulationExperiment {
2089
+ type: "simulation_experiment"
2090
+ simulation_experiment_id: string
2091
+ name: string
2092
+ experiment_type: ExperimentType
2093
+ }
2094
+ ```
2095
+
2096
+ ### SimulationTransientVoltageGraph
2097
+
2098
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_transient_voltage_graph.ts)
2099
+
2100
+ ```typescript
2101
+ interface SimulationTransientVoltageGraph {
2102
+ type: "simulation_transient_voltage_graph"
2103
+ simulation_transient_voltage_graph_id: string
2104
+ simulation_experiment_id: string
2105
+ timestamps_ms?: number[]
2106
+ voltage_levels: number[]
2107
+ schematic_voltage_probe_id?: string
2108
+ subcircuit_connecivity_map_key?: string
2109
+ time_per_step: number
2110
+ start_time_ms: number
2111
+ end_time_ms: number
2112
+ name?: string
2113
+ }
2114
+ ```
2115
+
2081
2116
  ### SimulationVoltageSource
2082
2117
 
2083
2118
  [Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_voltage_source.ts)
package/dist/index.d.mts CHANGED
@@ -10116,6 +10116,84 @@ interface SimulationAcVoltageSource {
10116
10116
  }
10117
10117
  type SimulationVoltageSource = SimulationDcVoltageSource | SimulationAcVoltageSource;
10118
10118
 
10119
+ declare const experiment_type: z.ZodUnion<[z.ZodLiteral<"spice_dc_sweep">, z.ZodLiteral<"spice_dc_operating_point">, z.ZodLiteral<"spice_transient_analysis">, z.ZodLiteral<"spice_ac_analysis">]>;
10120
+ type ExperimentType = z.infer<typeof experiment_type>;
10121
+ interface SimulationExperiment {
10122
+ type: "simulation_experiment";
10123
+ simulation_experiment_id: string;
10124
+ name: string;
10125
+ experiment_type: ExperimentType;
10126
+ }
10127
+ declare const simulation_experiment: z.ZodObject<{
10128
+ type: z.ZodLiteral<"simulation_experiment">;
10129
+ simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10130
+ name: z.ZodString;
10131
+ experiment_type: z.ZodUnion<[z.ZodLiteral<"spice_dc_sweep">, z.ZodLiteral<"spice_dc_operating_point">, z.ZodLiteral<"spice_transient_analysis">, z.ZodLiteral<"spice_ac_analysis">]>;
10132
+ }, "strip", z.ZodTypeAny, {
10133
+ type: "simulation_experiment";
10134
+ name: string;
10135
+ simulation_experiment_id: string;
10136
+ experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
10137
+ }, {
10138
+ type: "simulation_experiment";
10139
+ name: string;
10140
+ experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
10141
+ simulation_experiment_id?: string | undefined;
10142
+ }>;
10143
+ type SimulationExperimentInput = z.input<typeof simulation_experiment>;
10144
+
10145
+ interface SimulationTransientVoltageGraph {
10146
+ type: "simulation_transient_voltage_graph";
10147
+ simulation_transient_voltage_graph_id: string;
10148
+ simulation_experiment_id: string;
10149
+ timestamps_ms?: number[];
10150
+ voltage_levels: number[];
10151
+ schematic_voltage_probe_id?: string;
10152
+ subcircuit_connecivity_map_key?: string;
10153
+ time_per_step: number;
10154
+ start_time_ms: number;
10155
+ end_time_ms: number;
10156
+ name?: string;
10157
+ }
10158
+ declare const simulation_transient_voltage_graph: z.ZodObject<{
10159
+ type: z.ZodLiteral<"simulation_transient_voltage_graph">;
10160
+ simulation_transient_voltage_graph_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10161
+ simulation_experiment_id: z.ZodString;
10162
+ timestamps_ms: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
10163
+ voltage_levels: z.ZodArray<z.ZodNumber, "many">;
10164
+ schematic_voltage_probe_id: z.ZodOptional<z.ZodString>;
10165
+ subcircuit_connecivity_map_key: z.ZodOptional<z.ZodString>;
10166
+ time_per_step: z.ZodNumber;
10167
+ start_time_ms: z.ZodNumber;
10168
+ end_time_ms: z.ZodNumber;
10169
+ name: z.ZodOptional<z.ZodString>;
10170
+ }, "strip", z.ZodTypeAny, {
10171
+ type: "simulation_transient_voltage_graph";
10172
+ simulation_experiment_id: string;
10173
+ simulation_transient_voltage_graph_id: string;
10174
+ voltage_levels: number[];
10175
+ time_per_step: number;
10176
+ start_time_ms: number;
10177
+ end_time_ms: number;
10178
+ name?: string | undefined;
10179
+ schematic_voltage_probe_id?: string | undefined;
10180
+ timestamps_ms?: number[] | undefined;
10181
+ subcircuit_connecivity_map_key?: string | undefined;
10182
+ }, {
10183
+ type: "simulation_transient_voltage_graph";
10184
+ simulation_experiment_id: string;
10185
+ voltage_levels: number[];
10186
+ time_per_step: number;
10187
+ start_time_ms: number;
10188
+ end_time_ms: number;
10189
+ name?: string | undefined;
10190
+ schematic_voltage_probe_id?: string | undefined;
10191
+ simulation_transient_voltage_graph_id?: string | undefined;
10192
+ timestamps_ms?: number[] | undefined;
10193
+ subcircuit_connecivity_map_key?: string | undefined;
10194
+ }>;
10195
+ type SimulationTransientVoltageGraphInput = z.input<typeof simulation_transient_voltage_graph>;
10196
+
10119
10197
  declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
10120
10198
  type: z.ZodLiteral<"source_trace">;
10121
10199
  source_trace_id: z.ZodString;
@@ -16489,7 +16567,58 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16489
16567
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
16490
16568
  phase?: string | number | undefined;
16491
16569
  duty_cycle?: string | number | undefined;
16492
- }>]>]>;
16570
+ }>]>, z.ZodObject<{
16571
+ type: z.ZodLiteral<"simulation_experiment">;
16572
+ simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
16573
+ name: z.ZodString;
16574
+ experiment_type: z.ZodUnion<[z.ZodLiteral<"spice_dc_sweep">, z.ZodLiteral<"spice_dc_operating_point">, z.ZodLiteral<"spice_transient_analysis">, z.ZodLiteral<"spice_ac_analysis">]>;
16575
+ }, "strip", z.ZodTypeAny, {
16576
+ type: "simulation_experiment";
16577
+ name: string;
16578
+ simulation_experiment_id: string;
16579
+ experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
16580
+ }, {
16581
+ type: "simulation_experiment";
16582
+ name: string;
16583
+ experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
16584
+ simulation_experiment_id?: string | undefined;
16585
+ }>, z.ZodObject<{
16586
+ type: z.ZodLiteral<"simulation_transient_voltage_graph">;
16587
+ simulation_transient_voltage_graph_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
16588
+ simulation_experiment_id: z.ZodString;
16589
+ timestamps_ms: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
16590
+ voltage_levels: z.ZodArray<z.ZodNumber, "many">;
16591
+ schematic_voltage_probe_id: z.ZodOptional<z.ZodString>;
16592
+ subcircuit_connecivity_map_key: z.ZodOptional<z.ZodString>;
16593
+ time_per_step: z.ZodNumber;
16594
+ start_time_ms: z.ZodNumber;
16595
+ end_time_ms: z.ZodNumber;
16596
+ name: z.ZodOptional<z.ZodString>;
16597
+ }, "strip", z.ZodTypeAny, {
16598
+ type: "simulation_transient_voltage_graph";
16599
+ simulation_experiment_id: string;
16600
+ simulation_transient_voltage_graph_id: string;
16601
+ voltage_levels: number[];
16602
+ time_per_step: number;
16603
+ start_time_ms: number;
16604
+ end_time_ms: number;
16605
+ name?: string | undefined;
16606
+ schematic_voltage_probe_id?: string | undefined;
16607
+ timestamps_ms?: number[] | undefined;
16608
+ subcircuit_connecivity_map_key?: string | undefined;
16609
+ }, {
16610
+ type: "simulation_transient_voltage_graph";
16611
+ simulation_experiment_id: string;
16612
+ voltage_levels: number[];
16613
+ time_per_step: number;
16614
+ start_time_ms: number;
16615
+ end_time_ms: number;
16616
+ name?: string | undefined;
16617
+ schematic_voltage_probe_id?: string | undefined;
16618
+ simulation_transient_voltage_graph_id?: string | undefined;
16619
+ timestamps_ms?: number[] | undefined;
16620
+ subcircuit_connecivity_map_key?: string | undefined;
16621
+ }>]>;
16493
16622
  /**
16494
16623
  * @deprecated use any_circuit_element instead
16495
16624
  */
@@ -22866,7 +22995,58 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
22866
22995
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
22867
22996
  phase?: string | number | undefined;
22868
22997
  duty_cycle?: string | number | undefined;
22869
- }>]>]>;
22998
+ }>]>, z.ZodObject<{
22999
+ type: z.ZodLiteral<"simulation_experiment">;
23000
+ simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
23001
+ name: z.ZodString;
23002
+ experiment_type: z.ZodUnion<[z.ZodLiteral<"spice_dc_sweep">, z.ZodLiteral<"spice_dc_operating_point">, z.ZodLiteral<"spice_transient_analysis">, z.ZodLiteral<"spice_ac_analysis">]>;
23003
+ }, "strip", z.ZodTypeAny, {
23004
+ type: "simulation_experiment";
23005
+ name: string;
23006
+ simulation_experiment_id: string;
23007
+ experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
23008
+ }, {
23009
+ type: "simulation_experiment";
23010
+ name: string;
23011
+ experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
23012
+ simulation_experiment_id?: string | undefined;
23013
+ }>, z.ZodObject<{
23014
+ type: z.ZodLiteral<"simulation_transient_voltage_graph">;
23015
+ simulation_transient_voltage_graph_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
23016
+ simulation_experiment_id: z.ZodString;
23017
+ timestamps_ms: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
23018
+ voltage_levels: z.ZodArray<z.ZodNumber, "many">;
23019
+ schematic_voltage_probe_id: z.ZodOptional<z.ZodString>;
23020
+ subcircuit_connecivity_map_key: z.ZodOptional<z.ZodString>;
23021
+ time_per_step: z.ZodNumber;
23022
+ start_time_ms: z.ZodNumber;
23023
+ end_time_ms: z.ZodNumber;
23024
+ name: z.ZodOptional<z.ZodString>;
23025
+ }, "strip", z.ZodTypeAny, {
23026
+ type: "simulation_transient_voltage_graph";
23027
+ simulation_experiment_id: string;
23028
+ simulation_transient_voltage_graph_id: string;
23029
+ voltage_levels: number[];
23030
+ time_per_step: number;
23031
+ start_time_ms: number;
23032
+ end_time_ms: number;
23033
+ name?: string | undefined;
23034
+ schematic_voltage_probe_id?: string | undefined;
23035
+ timestamps_ms?: number[] | undefined;
23036
+ subcircuit_connecivity_map_key?: string | undefined;
23037
+ }, {
23038
+ type: "simulation_transient_voltage_graph";
23039
+ simulation_experiment_id: string;
23040
+ voltage_levels: number[];
23041
+ time_per_step: number;
23042
+ start_time_ms: number;
23043
+ end_time_ms: number;
23044
+ name?: string | undefined;
23045
+ schematic_voltage_probe_id?: string | undefined;
23046
+ simulation_transient_voltage_graph_id?: string | undefined;
23047
+ timestamps_ms?: number[] | undefined;
23048
+ subcircuit_connecivity_map_key?: string | undefined;
23049
+ }>]>;
22870
23050
  type AnyCircuitElement = z.infer<typeof any_circuit_element>;
22871
23051
  type AnyCircuitElementInput = z.input<typeof any_circuit_element>;
22872
23052
  /**
@@ -22883,4 +23063,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
22883
23063
  */
22884
23064
  type CircuitJson = AnyCircuitElement[];
22885
23065
 
22886
- 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 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 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_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, 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 };
23066
+ 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 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 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, experiment_type, 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_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, 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_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, visible_layer, voltage, wave_shape };
package/dist/index.mjs CHANGED
@@ -2316,9 +2316,46 @@ expectTypesMatch(true);
2316
2316
  expectTypesMatch(true);
2317
2317
  expectTypesMatch(true);
2318
2318
 
2319
- // src/any_circuit_element.ts
2319
+ // src/simulation/simulation_experiment.ts
2320
2320
  import { z as z108 } from "zod";
2321
- var any_circuit_element = z108.union([
2321
+ var experiment_type = z108.union([
2322
+ z108.literal("spice_dc_sweep"),
2323
+ z108.literal("spice_dc_operating_point"),
2324
+ z108.literal("spice_transient_analysis"),
2325
+ z108.literal("spice_ac_analysis")
2326
+ ]);
2327
+ var simulation_experiment = z108.object({
2328
+ type: z108.literal("simulation_experiment"),
2329
+ simulation_experiment_id: getZodPrefixedIdWithDefault(
2330
+ "simulation_experiment"
2331
+ ),
2332
+ name: z108.string(),
2333
+ experiment_type
2334
+ }).describe("Defines a simulation experiment configuration");
2335
+ expectTypesMatch(true);
2336
+
2337
+ // src/simulation/simulation_transient_voltage_graph.ts
2338
+ import { z as z109 } from "zod";
2339
+ var simulation_transient_voltage_graph = z109.object({
2340
+ type: z109.literal("simulation_transient_voltage_graph"),
2341
+ simulation_transient_voltage_graph_id: getZodPrefixedIdWithDefault(
2342
+ "simulation_transient_voltage_graph"
2343
+ ),
2344
+ simulation_experiment_id: z109.string(),
2345
+ timestamps_ms: z109.array(z109.number()).optional(),
2346
+ voltage_levels: z109.array(z109.number()),
2347
+ schematic_voltage_probe_id: z109.string().optional(),
2348
+ subcircuit_connecivity_map_key: z109.string().optional(),
2349
+ time_per_step: z109.number(),
2350
+ start_time_ms: z109.number(),
2351
+ end_time_ms: z109.number(),
2352
+ name: z109.string().optional()
2353
+ }).describe("Stores voltage measurements over time for a simulation");
2354
+ expectTypesMatch(true);
2355
+
2356
+ // src/any_circuit_element.ts
2357
+ import { z as z110 } from "zod";
2358
+ var any_circuit_element = z110.union([
2322
2359
  source_trace,
2323
2360
  source_port,
2324
2361
  any_source_component,
@@ -2406,7 +2443,9 @@ var any_circuit_element = z108.union([
2406
2443
  schematic_table,
2407
2444
  schematic_table_cell,
2408
2445
  cad_component,
2409
- simulation_voltage_source
2446
+ simulation_voltage_source,
2447
+ simulation_experiment,
2448
+ simulation_transient_voltage_graph
2410
2449
  ]);
2411
2450
  var any_soup_element = any_circuit_element;
2412
2451
  expectTypesMatch(true);
@@ -2423,6 +2462,7 @@ export {
2423
2462
  circuit_json_footprint_load_error,
2424
2463
  current,
2425
2464
  distance,
2465
+ experiment_type,
2426
2466
  external_footprint_load_error,
2427
2467
  frequency,
2428
2468
  getZodPrefixedIdWithDefault,
@@ -2521,6 +2561,8 @@ export {
2521
2561
  schematic_voltage_probe,
2522
2562
  simulation_ac_voltage_source,
2523
2563
  simulation_dc_voltage_source,
2564
+ simulation_experiment,
2565
+ simulation_transient_voltage_graph,
2524
2566
  simulation_voltage_source,
2525
2567
  size,
2526
2568
  source_component_base,