circuit-json 0.0.266 → 0.0.268

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
 
@@ -79,6 +79,8 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
79
79
  - [SourceSimpleTransistor](#sourcesimpletransistor)
80
80
  - [SourceTrace](#sourcetrace)
81
81
  - [SourceTraceNotConnectedError](#sourcetracenotconnectederror)
82
+ - [CAD Components](#cad-components)
83
+ - [CadComponent](#cadcomponent)
82
84
  - [PCB Elements](#pcb-elements)
83
85
  - [PcbAutoroutingError](#pcbautoroutingerror)
84
86
  - [PcbBoard](#pcbboard)
@@ -139,6 +141,9 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
139
141
  - [SchematicTrace](#schematictrace)
140
142
  - [SchematicVoltageProbe](#schematicvoltageprobe)
141
143
  - [Simulation Elements](#simulation-elements)
144
+ - [SimulationExperiment](#simulationexperiment)
145
+ - [SimulationSwitch](#simulationswitch)
146
+ - [SimulationTransientVoltageGraph](#simulationtransientvoltagegraph)
142
147
  - [SimulationVoltageSource](#simulationvoltagesource)
143
148
 
144
149
  <!-- toc:end -->
@@ -746,6 +751,36 @@ interface SourceTraceNotConnectedError {
746
751
  }
747
752
  ```
748
753
 
754
+ ## CAD Components
755
+
756
+ ### CadComponent
757
+
758
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/cad/cad_component.ts)
759
+
760
+ ```typescript
761
+ interface CadComponent {
762
+ type: "cad_component"
763
+ cad_component_id: string
764
+ pcb_component_id: string
765
+ source_component_id: string
766
+ position: Point3
767
+ rotation?: Point3
768
+ size?: Point3
769
+ layer?: LayerRef
770
+ subcircuit_id?: string
771
+ footprinter_string?: string
772
+ model_obj_url?: string
773
+ model_stl_url?: string
774
+ model_3mf_url?: string
775
+ model_gltf_url?: string
776
+ model_glb_url?: string
777
+ model_step_url?: string
778
+ model_wrl_url?: string
779
+ model_unit_to_mm_scale_factor?: number
780
+ model_jscad?: any
781
+ }
782
+ ```
783
+
749
784
  ## PCB Elements
750
785
 
751
786
  ### PcbAutoroutingError
@@ -837,7 +872,8 @@ interface PcbComponent {
837
872
  Error emitted when a PCB component is placed outside the board boundaries
838
873
 
839
874
  ```typescript
840
- /** Error emitted when a PCB component is placed outside the board boundaries */ interface PcbComponentOutsideBoardError {
875
+ /** Error emitted when a PCB component is placed outside the board boundaries */
876
+ interface PcbComponentOutsideBoardError {
841
877
  type: "pcb_component_outside_board_error"
842
878
  pcb_component_outside_board_error_id: string
843
879
  error_type: "pcb_component_outside_board_error"
@@ -956,7 +992,8 @@ interface PcbFabricationNoteText {
956
992
  Error emitted when a pcb footprint overlaps with another element
957
993
 
958
994
  ```typescript
959
- /** Error emitted when a pcb footprint overlaps with another element */ interface PcbFootprintOverlapError {
995
+ /** Error emitted when a pcb footprint overlaps with another element */
996
+ interface PcbFootprintOverlapError {
960
997
  type: "pcb_footprint_overlap_error"
961
998
  pcb_error_id: string
962
999
  error_type: "pcb_footprint_overlap_error"
@@ -1640,7 +1677,8 @@ interface PcbVia {
1640
1677
  Draws a styled arc on the schematic
1641
1678
 
1642
1679
  ```typescript
1643
- /** Draws a styled arc on the schematic */ interface SchematicArc {
1680
+ /** Draws a styled arc on the schematic */
1681
+ interface SchematicArc {
1644
1682
  type: "schematic_arc"
1645
1683
  schematic_arc_id: string
1646
1684
  schematic_component_id: string
@@ -1680,7 +1718,8 @@ interface SchematicBox {
1680
1718
  Draws a styled circle on the schematic
1681
1719
 
1682
1720
  ```typescript
1683
- /** Draws a styled circle on the schematic */ interface SchematicCircle {
1721
+ /** Draws a styled circle on the schematic */
1722
+ interface SchematicCircle {
1684
1723
  type: "schematic_circle"
1685
1724
  schematic_circle_id: string
1686
1725
  schematic_component_id: string
@@ -1848,7 +1887,8 @@ interface SchematicLayoutError {
1848
1887
  Draws a styled line on the schematic
1849
1888
 
1850
1889
  ```typescript
1851
- /** Draws a styled line on the schematic */ interface SchematicLine {
1890
+ /** Draws a styled line on the schematic */
1891
+ interface SchematicLine {
1852
1892
  type: "schematic_line"
1853
1893
  schematic_line_id: string
1854
1894
  schematic_component_id: string
@@ -1953,7 +1993,8 @@ interface SchematicPort {
1953
1993
  Draws a styled rectangle on the schematic
1954
1994
 
1955
1995
  ```typescript
1956
- /** Draws a styled rectangle on the schematic */ interface SchematicRect {
1996
+ /** Draws a styled rectangle on the schematic */
1997
+ interface SchematicRect {
1957
1998
  type: "schematic_rect"
1958
1999
  schematic_rect_id: string
1959
2000
  schematic_component_id: string
@@ -2078,6 +2119,54 @@ interface SchematicVoltageProbe {
2078
2119
 
2079
2120
  ## Simulation Elements
2080
2121
 
2122
+ ### SimulationExperiment
2123
+
2124
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_experiment.ts)
2125
+
2126
+ ```typescript
2127
+ interface SimulationExperiment {
2128
+ type: "simulation_experiment"
2129
+ simulation_experiment_id: string
2130
+ name: string
2131
+ experiment_type: ExperimentType
2132
+ }
2133
+ ```
2134
+
2135
+ ### SimulationSwitch
2136
+
2137
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_switch.ts)
2138
+
2139
+ ```typescript
2140
+ interface SimulationSwitch {
2141
+ type: "simulation_switch"
2142
+ simulation_switch_id: string
2143
+ closes_at?: number
2144
+ opens_at?: number
2145
+ starts_closed?: boolean
2146
+ switching_frequency?: number
2147
+ }
2148
+ ```
2149
+
2150
+ ### SimulationTransientVoltageGraph
2151
+
2152
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_transient_voltage_graph.ts)
2153
+
2154
+ ```typescript
2155
+ interface SimulationTransientVoltageGraph {
2156
+ type: "simulation_transient_voltage_graph"
2157
+ simulation_transient_voltage_graph_id: string
2158
+ simulation_experiment_id: string
2159
+ timestamps_ms?: number[]
2160
+ voltage_levels: number[]
2161
+ schematic_voltage_probe_id?: string
2162
+ subcircuit_connecivity_map_key?: string
2163
+ time_per_step: number
2164
+ start_time_ms: number
2165
+ end_time_ms: number
2166
+ name?: string
2167
+ }
2168
+ ```
2169
+
2081
2170
  ### SimulationVoltageSource
2082
2171
 
2083
2172
  [Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_voltage_source.ts)
package/dist/index.d.mts CHANGED
@@ -10116,6 +10116,116 @@ 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
+
10197
+ declare const simulation_switch: z.ZodObject<{
10198
+ type: z.ZodLiteral<"simulation_switch">;
10199
+ simulation_switch_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10200
+ closes_at: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
10201
+ opens_at: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
10202
+ starts_closed: z.ZodOptional<z.ZodBoolean>;
10203
+ switching_frequency: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
10204
+ }, "strip", z.ZodTypeAny, {
10205
+ type: "simulation_switch";
10206
+ simulation_switch_id: string;
10207
+ closes_at?: number | undefined;
10208
+ opens_at?: number | undefined;
10209
+ starts_closed?: boolean | undefined;
10210
+ switching_frequency?: number | undefined;
10211
+ }, {
10212
+ type: "simulation_switch";
10213
+ simulation_switch_id?: string | undefined;
10214
+ closes_at?: string | number | undefined;
10215
+ opens_at?: string | number | undefined;
10216
+ starts_closed?: boolean | undefined;
10217
+ switching_frequency?: string | number | undefined;
10218
+ }>;
10219
+ type SimulationSwitchInput = z.input<typeof simulation_switch>;
10220
+ interface SimulationSwitch {
10221
+ type: "simulation_switch";
10222
+ simulation_switch_id: string;
10223
+ closes_at?: number;
10224
+ opens_at?: number;
10225
+ starts_closed?: boolean;
10226
+ switching_frequency?: number;
10227
+ }
10228
+
10119
10229
  declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
10120
10230
  type: z.ZodLiteral<"source_trace">;
10121
10231
  source_trace_id: z.ZodString;
@@ -16489,7 +16599,58 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16489
16599
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
16490
16600
  phase?: string | number | undefined;
16491
16601
  duty_cycle?: string | number | undefined;
16492
- }>]>]>;
16602
+ }>]>, z.ZodObject<{
16603
+ type: z.ZodLiteral<"simulation_experiment">;
16604
+ simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
16605
+ name: z.ZodString;
16606
+ 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">]>;
16607
+ }, "strip", z.ZodTypeAny, {
16608
+ type: "simulation_experiment";
16609
+ name: string;
16610
+ simulation_experiment_id: string;
16611
+ experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
16612
+ }, {
16613
+ type: "simulation_experiment";
16614
+ name: string;
16615
+ experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
16616
+ simulation_experiment_id?: string | undefined;
16617
+ }>, z.ZodObject<{
16618
+ type: z.ZodLiteral<"simulation_transient_voltage_graph">;
16619
+ simulation_transient_voltage_graph_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
16620
+ simulation_experiment_id: z.ZodString;
16621
+ timestamps_ms: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
16622
+ voltage_levels: z.ZodArray<z.ZodNumber, "many">;
16623
+ schematic_voltage_probe_id: z.ZodOptional<z.ZodString>;
16624
+ subcircuit_connecivity_map_key: z.ZodOptional<z.ZodString>;
16625
+ time_per_step: z.ZodNumber;
16626
+ start_time_ms: z.ZodNumber;
16627
+ end_time_ms: z.ZodNumber;
16628
+ name: z.ZodOptional<z.ZodString>;
16629
+ }, "strip", z.ZodTypeAny, {
16630
+ type: "simulation_transient_voltage_graph";
16631
+ simulation_experiment_id: string;
16632
+ simulation_transient_voltage_graph_id: string;
16633
+ voltage_levels: number[];
16634
+ time_per_step: number;
16635
+ start_time_ms: number;
16636
+ end_time_ms: number;
16637
+ name?: string | undefined;
16638
+ schematic_voltage_probe_id?: string | undefined;
16639
+ timestamps_ms?: number[] | undefined;
16640
+ subcircuit_connecivity_map_key?: string | undefined;
16641
+ }, {
16642
+ type: "simulation_transient_voltage_graph";
16643
+ simulation_experiment_id: string;
16644
+ voltage_levels: number[];
16645
+ time_per_step: number;
16646
+ start_time_ms: number;
16647
+ end_time_ms: number;
16648
+ name?: string | undefined;
16649
+ schematic_voltage_probe_id?: string | undefined;
16650
+ simulation_transient_voltage_graph_id?: string | undefined;
16651
+ timestamps_ms?: number[] | undefined;
16652
+ subcircuit_connecivity_map_key?: string | undefined;
16653
+ }>]>;
16493
16654
  /**
16494
16655
  * @deprecated use any_circuit_element instead
16495
16656
  */
@@ -22866,7 +23027,58 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
22866
23027
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
22867
23028
  phase?: string | number | undefined;
22868
23029
  duty_cycle?: string | number | undefined;
22869
- }>]>]>;
23030
+ }>]>, z.ZodObject<{
23031
+ type: z.ZodLiteral<"simulation_experiment">;
23032
+ simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
23033
+ name: z.ZodString;
23034
+ 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">]>;
23035
+ }, "strip", z.ZodTypeAny, {
23036
+ type: "simulation_experiment";
23037
+ name: string;
23038
+ simulation_experiment_id: string;
23039
+ experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
23040
+ }, {
23041
+ type: "simulation_experiment";
23042
+ name: string;
23043
+ experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
23044
+ simulation_experiment_id?: string | undefined;
23045
+ }>, z.ZodObject<{
23046
+ type: z.ZodLiteral<"simulation_transient_voltage_graph">;
23047
+ simulation_transient_voltage_graph_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
23048
+ simulation_experiment_id: z.ZodString;
23049
+ timestamps_ms: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
23050
+ voltage_levels: z.ZodArray<z.ZodNumber, "many">;
23051
+ schematic_voltage_probe_id: z.ZodOptional<z.ZodString>;
23052
+ subcircuit_connecivity_map_key: z.ZodOptional<z.ZodString>;
23053
+ time_per_step: z.ZodNumber;
23054
+ start_time_ms: z.ZodNumber;
23055
+ end_time_ms: z.ZodNumber;
23056
+ name: z.ZodOptional<z.ZodString>;
23057
+ }, "strip", z.ZodTypeAny, {
23058
+ type: "simulation_transient_voltage_graph";
23059
+ simulation_experiment_id: string;
23060
+ simulation_transient_voltage_graph_id: string;
23061
+ voltage_levels: number[];
23062
+ time_per_step: number;
23063
+ start_time_ms: number;
23064
+ end_time_ms: number;
23065
+ name?: string | undefined;
23066
+ schematic_voltage_probe_id?: string | undefined;
23067
+ timestamps_ms?: number[] | undefined;
23068
+ subcircuit_connecivity_map_key?: string | undefined;
23069
+ }, {
23070
+ type: "simulation_transient_voltage_graph";
23071
+ simulation_experiment_id: string;
23072
+ voltage_levels: number[];
23073
+ time_per_step: number;
23074
+ start_time_ms: number;
23075
+ end_time_ms: number;
23076
+ name?: string | undefined;
23077
+ schematic_voltage_probe_id?: string | undefined;
23078
+ simulation_transient_voltage_graph_id?: string | undefined;
23079
+ timestamps_ms?: number[] | undefined;
23080
+ subcircuit_connecivity_map_key?: string | undefined;
23081
+ }>]>;
22870
23082
  type AnyCircuitElement = z.infer<typeof any_circuit_element>;
22871
23083
  type AnyCircuitElementInput = z.input<typeof any_circuit_element>;
22872
23084
  /**
@@ -22883,4 +23095,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
22883
23095
  */
22884
23096
  type CircuitJson = AnyCircuitElement[];
22885
23097
 
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 };
23098
+ 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 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, 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_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, visible_layer, voltage, wave_shape };
package/dist/index.mjs CHANGED
@@ -2316,9 +2316,58 @@ 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/simulation/simulation_switch.ts
2357
+ import { z as z110 } from "zod";
2358
+ var simulation_switch = z110.object({
2359
+ type: z110.literal("simulation_switch"),
2360
+ simulation_switch_id: getZodPrefixedIdWithDefault("simulation_switch"),
2361
+ closes_at: time.optional(),
2362
+ opens_at: time.optional(),
2363
+ starts_closed: z110.boolean().optional(),
2364
+ switching_frequency: frequency.optional()
2365
+ }).describe("Defines a switch for simulation timing control");
2366
+ expectTypesMatch(true);
2367
+
2368
+ // src/any_circuit_element.ts
2369
+ import { z as z111 } from "zod";
2370
+ var any_circuit_element = z111.union([
2322
2371
  source_trace,
2323
2372
  source_port,
2324
2373
  any_source_component,
@@ -2406,7 +2455,9 @@ var any_circuit_element = z108.union([
2406
2455
  schematic_table,
2407
2456
  schematic_table_cell,
2408
2457
  cad_component,
2409
- simulation_voltage_source
2458
+ simulation_voltage_source,
2459
+ simulation_experiment,
2460
+ simulation_transient_voltage_graph
2410
2461
  ]);
2411
2462
  var any_soup_element = any_circuit_element;
2412
2463
  expectTypesMatch(true);
@@ -2423,6 +2474,7 @@ export {
2423
2474
  circuit_json_footprint_load_error,
2424
2475
  current,
2425
2476
  distance,
2477
+ experiment_type,
2426
2478
  external_footprint_load_error,
2427
2479
  frequency,
2428
2480
  getZodPrefixedIdWithDefault,
@@ -2521,6 +2573,9 @@ export {
2521
2573
  schematic_voltage_probe,
2522
2574
  simulation_ac_voltage_source,
2523
2575
  simulation_dc_voltage_source,
2576
+ simulation_experiment,
2577
+ simulation_switch,
2578
+ simulation_transient_voltage_graph,
2524
2579
  simulation_voltage_source,
2525
2580
  size,
2526
2581
  source_component_base,