circuit-json 0.0.270 → 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 +22 -0
- package/dist/index.d.mts +201 -10
- package/dist/index.mjs +31 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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 -->
|
|
@@ -2155,6 +2156,9 @@ interface SimulationExperiment {
|
|
|
2155
2156
|
simulation_experiment_id: string
|
|
2156
2157
|
name: string
|
|
2157
2158
|
experiment_type: ExperimentType
|
|
2159
|
+
time_per_step?: number // ms
|
|
2160
|
+
start_time_ms?: number // ms
|
|
2161
|
+
end_time_ms?: number // ms
|
|
2158
2162
|
}
|
|
2159
2163
|
```
|
|
2160
2164
|
|
|
@@ -2193,6 +2197,24 @@ interface SimulationTransientVoltageGraph {
|
|
|
2193
2197
|
}
|
|
2194
2198
|
```
|
|
2195
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
|
+
|
|
2196
2218
|
### SimulationVoltageSource
|
|
2197
2219
|
|
|
2198
2220
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_voltage_source.ts)
|
package/dist/index.d.mts
CHANGED
|
@@ -10189,22 +10189,34 @@ interface SimulationExperiment {
|
|
|
10189
10189
|
simulation_experiment_id: string;
|
|
10190
10190
|
name: string;
|
|
10191
10191
|
experiment_type: ExperimentType;
|
|
10192
|
+
time_per_step?: number;
|
|
10193
|
+
start_time_ms?: number;
|
|
10194
|
+
end_time_ms?: number;
|
|
10192
10195
|
}
|
|
10193
10196
|
declare const simulation_experiment: z.ZodObject<{
|
|
10194
10197
|
type: z.ZodLiteral<"simulation_experiment">;
|
|
10195
10198
|
simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
10196
10199
|
name: z.ZodString;
|
|
10197
10200
|
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">]>;
|
|
10201
|
+
time_per_step: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
10202
|
+
start_time_ms: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
10203
|
+
end_time_ms: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
10198
10204
|
}, "strip", z.ZodTypeAny, {
|
|
10199
10205
|
type: "simulation_experiment";
|
|
10200
10206
|
name: string;
|
|
10201
10207
|
simulation_experiment_id: string;
|
|
10202
10208
|
experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
|
|
10209
|
+
time_per_step?: number | undefined;
|
|
10210
|
+
start_time_ms?: number | undefined;
|
|
10211
|
+
end_time_ms?: number | undefined;
|
|
10203
10212
|
}, {
|
|
10204
10213
|
type: "simulation_experiment";
|
|
10205
10214
|
name: string;
|
|
10206
10215
|
experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
|
|
10207
10216
|
simulation_experiment_id?: string | undefined;
|
|
10217
|
+
time_per_step?: string | number | undefined;
|
|
10218
|
+
start_time_ms?: string | number | undefined;
|
|
10219
|
+
end_time_ms?: string | number | undefined;
|
|
10208
10220
|
}>;
|
|
10209
10221
|
type SimulationExperimentInput = z.input<typeof simulation_experiment>;
|
|
10210
10222
|
|
|
@@ -10236,11 +10248,11 @@ declare const simulation_transient_voltage_graph: z.ZodObject<{
|
|
|
10236
10248
|
}, "strip", z.ZodTypeAny, {
|
|
10237
10249
|
type: "simulation_transient_voltage_graph";
|
|
10238
10250
|
simulation_experiment_id: string;
|
|
10239
|
-
simulation_transient_voltage_graph_id: string;
|
|
10240
|
-
voltage_levels: number[];
|
|
10241
10251
|
time_per_step: number;
|
|
10242
10252
|
start_time_ms: number;
|
|
10243
10253
|
end_time_ms: number;
|
|
10254
|
+
simulation_transient_voltage_graph_id: string;
|
|
10255
|
+
voltage_levels: number[];
|
|
10244
10256
|
name?: string | undefined;
|
|
10245
10257
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
10246
10258
|
schematic_voltage_probe_id?: string | undefined;
|
|
@@ -10248,10 +10260,10 @@ declare const simulation_transient_voltage_graph: z.ZodObject<{
|
|
|
10248
10260
|
}, {
|
|
10249
10261
|
type: "simulation_transient_voltage_graph";
|
|
10250
10262
|
simulation_experiment_id: string;
|
|
10251
|
-
voltage_levels: number[];
|
|
10252
10263
|
time_per_step: string | number;
|
|
10253
10264
|
start_time_ms: string | number;
|
|
10254
10265
|
end_time_ms: string | number;
|
|
10266
|
+
voltage_levels: number[];
|
|
10255
10267
|
name?: string | undefined;
|
|
10256
10268
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
10257
10269
|
schematic_voltage_probe_id?: string | undefined;
|
|
@@ -10292,6 +10304,55 @@ interface SimulationSwitch {
|
|
|
10292
10304
|
switching_frequency?: number;
|
|
10293
10305
|
}
|
|
10294
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
|
+
|
|
10295
10356
|
declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
10296
10357
|
type: z.ZodLiteral<"source_trace">;
|
|
10297
10358
|
source_trace_id: z.ZodString;
|
|
@@ -16715,16 +16776,25 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16715
16776
|
simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
16716
16777
|
name: z.ZodString;
|
|
16717
16778
|
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">]>;
|
|
16779
|
+
time_per_step: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
16780
|
+
start_time_ms: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
16781
|
+
end_time_ms: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
16718
16782
|
}, "strip", z.ZodTypeAny, {
|
|
16719
16783
|
type: "simulation_experiment";
|
|
16720
16784
|
name: string;
|
|
16721
16785
|
simulation_experiment_id: string;
|
|
16722
16786
|
experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
|
|
16787
|
+
time_per_step?: number | undefined;
|
|
16788
|
+
start_time_ms?: number | undefined;
|
|
16789
|
+
end_time_ms?: number | undefined;
|
|
16723
16790
|
}, {
|
|
16724
16791
|
type: "simulation_experiment";
|
|
16725
16792
|
name: string;
|
|
16726
16793
|
experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
|
|
16727
16794
|
simulation_experiment_id?: string | undefined;
|
|
16795
|
+
time_per_step?: string | number | undefined;
|
|
16796
|
+
start_time_ms?: string | number | undefined;
|
|
16797
|
+
end_time_ms?: string | number | undefined;
|
|
16728
16798
|
}>, z.ZodObject<{
|
|
16729
16799
|
type: z.ZodLiteral<"simulation_transient_voltage_graph">;
|
|
16730
16800
|
simulation_transient_voltage_graph_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -16740,11 +16810,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16740
16810
|
}, "strip", z.ZodTypeAny, {
|
|
16741
16811
|
type: "simulation_transient_voltage_graph";
|
|
16742
16812
|
simulation_experiment_id: string;
|
|
16743
|
-
simulation_transient_voltage_graph_id: string;
|
|
16744
|
-
voltage_levels: number[];
|
|
16745
16813
|
time_per_step: number;
|
|
16746
16814
|
start_time_ms: number;
|
|
16747
16815
|
end_time_ms: number;
|
|
16816
|
+
simulation_transient_voltage_graph_id: string;
|
|
16817
|
+
voltage_levels: number[];
|
|
16748
16818
|
name?: string | undefined;
|
|
16749
16819
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
16750
16820
|
schematic_voltage_probe_id?: string | undefined;
|
|
@@ -16752,15 +16822,71 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16752
16822
|
}, {
|
|
16753
16823
|
type: "simulation_transient_voltage_graph";
|
|
16754
16824
|
simulation_experiment_id: string;
|
|
16755
|
-
voltage_levels: number[];
|
|
16756
16825
|
time_per_step: string | number;
|
|
16757
16826
|
start_time_ms: string | number;
|
|
16758
16827
|
end_time_ms: string | number;
|
|
16828
|
+
voltage_levels: number[];
|
|
16759
16829
|
name?: string | undefined;
|
|
16760
16830
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
16761
16831
|
schematic_voltage_probe_id?: string | undefined;
|
|
16762
16832
|
simulation_transient_voltage_graph_id?: string | undefined;
|
|
16763
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;
|
|
16764
16890
|
}>]>;
|
|
16765
16891
|
/**
|
|
16766
16892
|
* @deprecated use any_circuit_element instead
|
|
@@ -23188,16 +23314,25 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23188
23314
|
simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
23189
23315
|
name: z.ZodString;
|
|
23190
23316
|
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">]>;
|
|
23317
|
+
time_per_step: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
23318
|
+
start_time_ms: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
23319
|
+
end_time_ms: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
23191
23320
|
}, "strip", z.ZodTypeAny, {
|
|
23192
23321
|
type: "simulation_experiment";
|
|
23193
23322
|
name: string;
|
|
23194
23323
|
simulation_experiment_id: string;
|
|
23195
23324
|
experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
|
|
23325
|
+
time_per_step?: number | undefined;
|
|
23326
|
+
start_time_ms?: number | undefined;
|
|
23327
|
+
end_time_ms?: number | undefined;
|
|
23196
23328
|
}, {
|
|
23197
23329
|
type: "simulation_experiment";
|
|
23198
23330
|
name: string;
|
|
23199
23331
|
experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
|
|
23200
23332
|
simulation_experiment_id?: string | undefined;
|
|
23333
|
+
time_per_step?: string | number | undefined;
|
|
23334
|
+
start_time_ms?: string | number | undefined;
|
|
23335
|
+
end_time_ms?: string | number | undefined;
|
|
23201
23336
|
}>, z.ZodObject<{
|
|
23202
23337
|
type: z.ZodLiteral<"simulation_transient_voltage_graph">;
|
|
23203
23338
|
simulation_transient_voltage_graph_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -23213,11 +23348,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23213
23348
|
}, "strip", z.ZodTypeAny, {
|
|
23214
23349
|
type: "simulation_transient_voltage_graph";
|
|
23215
23350
|
simulation_experiment_id: string;
|
|
23216
|
-
simulation_transient_voltage_graph_id: string;
|
|
23217
|
-
voltage_levels: number[];
|
|
23218
23351
|
time_per_step: number;
|
|
23219
23352
|
start_time_ms: number;
|
|
23220
23353
|
end_time_ms: number;
|
|
23354
|
+
simulation_transient_voltage_graph_id: string;
|
|
23355
|
+
voltage_levels: number[];
|
|
23221
23356
|
name?: string | undefined;
|
|
23222
23357
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
23223
23358
|
schematic_voltage_probe_id?: string | undefined;
|
|
@@ -23225,15 +23360,71 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23225
23360
|
}, {
|
|
23226
23361
|
type: "simulation_transient_voltage_graph";
|
|
23227
23362
|
simulation_experiment_id: string;
|
|
23228
|
-
voltage_levels: number[];
|
|
23229
23363
|
time_per_step: string | number;
|
|
23230
23364
|
start_time_ms: string | number;
|
|
23231
23365
|
end_time_ms: string | number;
|
|
23366
|
+
voltage_levels: number[];
|
|
23232
23367
|
name?: string | undefined;
|
|
23233
23368
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
23234
23369
|
schematic_voltage_probe_id?: string | undefined;
|
|
23235
23370
|
simulation_transient_voltage_graph_id?: string | undefined;
|
|
23236
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;
|
|
23237
23428
|
}>]>;
|
|
23238
23429
|
type AnyCircuitElement = z.infer<typeof any_circuit_element>;
|
|
23239
23430
|
type AnyCircuitElementInput = z.input<typeof any_circuit_element>;
|
|
@@ -23251,4 +23442,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
23251
23442
|
*/
|
|
23252
23443
|
type CircuitJson = AnyCircuitElement[];
|
|
23253
23444
|
|
|
23254
|
-
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
|
@@ -2362,7 +2362,10 @@ var simulation_experiment = z109.object({
|
|
|
2362
2362
|
"simulation_experiment"
|
|
2363
2363
|
),
|
|
2364
2364
|
name: z109.string(),
|
|
2365
|
-
experiment_type
|
|
2365
|
+
experiment_type,
|
|
2366
|
+
time_per_step: duration_ms.optional(),
|
|
2367
|
+
start_time_ms: ms.optional(),
|
|
2368
|
+
end_time_ms: ms.optional()
|
|
2366
2369
|
}).describe("Defines a simulation experiment configuration");
|
|
2367
2370
|
expectTypesMatch(true);
|
|
2368
2371
|
|
|
@@ -2397,9 +2400,30 @@ var simulation_switch = z111.object({
|
|
|
2397
2400
|
}).describe("Defines a switch for simulation timing control");
|
|
2398
2401
|
expectTypesMatch(true);
|
|
2399
2402
|
|
|
2400
|
-
// src/
|
|
2403
|
+
// src/simulation/simulation_voltage_probe.ts
|
|
2401
2404
|
import { z as z112 } from "zod";
|
|
2402
|
-
var
|
|
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([
|
|
2403
2427
|
source_trace,
|
|
2404
2428
|
source_port,
|
|
2405
2429
|
any_source_component,
|
|
@@ -2490,7 +2514,9 @@ var any_circuit_element = z112.union([
|
|
|
2490
2514
|
cad_component,
|
|
2491
2515
|
simulation_voltage_source,
|
|
2492
2516
|
simulation_experiment,
|
|
2493
|
-
simulation_transient_voltage_graph
|
|
2517
|
+
simulation_transient_voltage_graph,
|
|
2518
|
+
simulation_switch,
|
|
2519
|
+
simulation_voltage_probe
|
|
2494
2520
|
]);
|
|
2495
2521
|
var any_soup_element = any_circuit_element;
|
|
2496
2522
|
expectTypesMatch(true);
|
|
@@ -2612,6 +2638,7 @@ export {
|
|
|
2612
2638
|
simulation_experiment,
|
|
2613
2639
|
simulation_switch,
|
|
2614
2640
|
simulation_transient_voltage_graph,
|
|
2641
|
+
simulation_voltage_probe,
|
|
2615
2642
|
simulation_voltage_source,
|
|
2616
2643
|
size,
|
|
2617
2644
|
source_component_base,
|