circuit-json 0.0.339 → 0.0.341
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +316 -1
- package/dist/index.mjs +99 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -9789,6 +9789,183 @@ interface SimulationAcVoltageSource {
|
|
|
9789
9789
|
}
|
|
9790
9790
|
type SimulationVoltageSource = SimulationDcVoltageSource | SimulationAcVoltageSource;
|
|
9791
9791
|
|
|
9792
|
+
declare const simulation_dc_current_source: z.ZodObject<{
|
|
9793
|
+
type: z.ZodLiteral<"simulation_current_source">;
|
|
9794
|
+
simulation_current_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9795
|
+
is_dc_source: z.ZodDefault<z.ZodOptional<z.ZodLiteral<true>>>;
|
|
9796
|
+
positive_source_port_id: z.ZodOptional<z.ZodString>;
|
|
9797
|
+
negative_source_port_id: z.ZodOptional<z.ZodString>;
|
|
9798
|
+
positive_source_net_id: z.ZodOptional<z.ZodString>;
|
|
9799
|
+
negative_source_net_id: z.ZodOptional<z.ZodString>;
|
|
9800
|
+
current: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
9801
|
+
}, "strip", z.ZodTypeAny, {
|
|
9802
|
+
type: "simulation_current_source";
|
|
9803
|
+
is_dc_source: true;
|
|
9804
|
+
simulation_current_source_id: string;
|
|
9805
|
+
current: number;
|
|
9806
|
+
positive_source_port_id?: string | undefined;
|
|
9807
|
+
negative_source_port_id?: string | undefined;
|
|
9808
|
+
positive_source_net_id?: string | undefined;
|
|
9809
|
+
negative_source_net_id?: string | undefined;
|
|
9810
|
+
}, {
|
|
9811
|
+
type: "simulation_current_source";
|
|
9812
|
+
current: string | number;
|
|
9813
|
+
is_dc_source?: true | undefined;
|
|
9814
|
+
positive_source_port_id?: string | undefined;
|
|
9815
|
+
negative_source_port_id?: string | undefined;
|
|
9816
|
+
positive_source_net_id?: string | undefined;
|
|
9817
|
+
negative_source_net_id?: string | undefined;
|
|
9818
|
+
simulation_current_source_id?: string | undefined;
|
|
9819
|
+
}>;
|
|
9820
|
+
declare const simulation_ac_current_source: z.ZodObject<{
|
|
9821
|
+
type: z.ZodLiteral<"simulation_current_source">;
|
|
9822
|
+
simulation_current_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9823
|
+
is_dc_source: z.ZodLiteral<false>;
|
|
9824
|
+
terminal1_source_port_id: z.ZodOptional<z.ZodString>;
|
|
9825
|
+
terminal2_source_port_id: z.ZodOptional<z.ZodString>;
|
|
9826
|
+
terminal1_source_net_id: z.ZodOptional<z.ZodString>;
|
|
9827
|
+
terminal2_source_net_id: z.ZodOptional<z.ZodString>;
|
|
9828
|
+
current: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
9829
|
+
frequency: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
9830
|
+
peak_to_peak_current: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
9831
|
+
wave_shape: z.ZodOptional<z.ZodEnum<["sinewave", "square", "triangle", "sawtooth"]>>;
|
|
9832
|
+
phase: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
9833
|
+
duty_cycle: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
|
|
9834
|
+
}, "strip", z.ZodTypeAny, {
|
|
9835
|
+
type: "simulation_current_source";
|
|
9836
|
+
is_dc_source: false;
|
|
9837
|
+
simulation_current_source_id: string;
|
|
9838
|
+
terminal1_source_port_id?: string | undefined;
|
|
9839
|
+
terminal2_source_port_id?: string | undefined;
|
|
9840
|
+
terminal1_source_net_id?: string | undefined;
|
|
9841
|
+
terminal2_source_net_id?: string | undefined;
|
|
9842
|
+
frequency?: number | undefined;
|
|
9843
|
+
wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
9844
|
+
phase?: number | undefined;
|
|
9845
|
+
duty_cycle?: number | undefined;
|
|
9846
|
+
current?: number | undefined;
|
|
9847
|
+
peak_to_peak_current?: number | undefined;
|
|
9848
|
+
}, {
|
|
9849
|
+
type: "simulation_current_source";
|
|
9850
|
+
is_dc_source: false;
|
|
9851
|
+
terminal1_source_port_id?: string | undefined;
|
|
9852
|
+
terminal2_source_port_id?: string | undefined;
|
|
9853
|
+
terminal1_source_net_id?: string | undefined;
|
|
9854
|
+
terminal2_source_net_id?: string | undefined;
|
|
9855
|
+
frequency?: string | number | undefined;
|
|
9856
|
+
wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
9857
|
+
phase?: string | number | undefined;
|
|
9858
|
+
duty_cycle?: string | number | undefined;
|
|
9859
|
+
simulation_current_source_id?: string | undefined;
|
|
9860
|
+
current?: string | number | undefined;
|
|
9861
|
+
peak_to_peak_current?: string | number | undefined;
|
|
9862
|
+
}>;
|
|
9863
|
+
type SimulationAcCurrentSourceInput = z.input<typeof simulation_ac_current_source>;
|
|
9864
|
+
declare const simulation_current_source: z.ZodUnion<[z.ZodObject<{
|
|
9865
|
+
type: z.ZodLiteral<"simulation_current_source">;
|
|
9866
|
+
simulation_current_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9867
|
+
is_dc_source: z.ZodDefault<z.ZodOptional<z.ZodLiteral<true>>>;
|
|
9868
|
+
positive_source_port_id: z.ZodOptional<z.ZodString>;
|
|
9869
|
+
negative_source_port_id: z.ZodOptional<z.ZodString>;
|
|
9870
|
+
positive_source_net_id: z.ZodOptional<z.ZodString>;
|
|
9871
|
+
negative_source_net_id: z.ZodOptional<z.ZodString>;
|
|
9872
|
+
current: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
9873
|
+
}, "strip", z.ZodTypeAny, {
|
|
9874
|
+
type: "simulation_current_source";
|
|
9875
|
+
is_dc_source: true;
|
|
9876
|
+
simulation_current_source_id: string;
|
|
9877
|
+
current: number;
|
|
9878
|
+
positive_source_port_id?: string | undefined;
|
|
9879
|
+
negative_source_port_id?: string | undefined;
|
|
9880
|
+
positive_source_net_id?: string | undefined;
|
|
9881
|
+
negative_source_net_id?: string | undefined;
|
|
9882
|
+
}, {
|
|
9883
|
+
type: "simulation_current_source";
|
|
9884
|
+
current: string | number;
|
|
9885
|
+
is_dc_source?: true | undefined;
|
|
9886
|
+
positive_source_port_id?: string | undefined;
|
|
9887
|
+
negative_source_port_id?: string | undefined;
|
|
9888
|
+
positive_source_net_id?: string | undefined;
|
|
9889
|
+
negative_source_net_id?: string | undefined;
|
|
9890
|
+
simulation_current_source_id?: string | undefined;
|
|
9891
|
+
}>, z.ZodObject<{
|
|
9892
|
+
type: z.ZodLiteral<"simulation_current_source">;
|
|
9893
|
+
simulation_current_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9894
|
+
is_dc_source: z.ZodLiteral<false>;
|
|
9895
|
+
terminal1_source_port_id: z.ZodOptional<z.ZodString>;
|
|
9896
|
+
terminal2_source_port_id: z.ZodOptional<z.ZodString>;
|
|
9897
|
+
terminal1_source_net_id: z.ZodOptional<z.ZodString>;
|
|
9898
|
+
terminal2_source_net_id: z.ZodOptional<z.ZodString>;
|
|
9899
|
+
current: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
9900
|
+
frequency: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
9901
|
+
peak_to_peak_current: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
9902
|
+
wave_shape: z.ZodOptional<z.ZodEnum<["sinewave", "square", "triangle", "sawtooth"]>>;
|
|
9903
|
+
phase: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
9904
|
+
duty_cycle: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
|
|
9905
|
+
}, "strip", z.ZodTypeAny, {
|
|
9906
|
+
type: "simulation_current_source";
|
|
9907
|
+
is_dc_source: false;
|
|
9908
|
+
simulation_current_source_id: string;
|
|
9909
|
+
terminal1_source_port_id?: string | undefined;
|
|
9910
|
+
terminal2_source_port_id?: string | undefined;
|
|
9911
|
+
terminal1_source_net_id?: string | undefined;
|
|
9912
|
+
terminal2_source_net_id?: string | undefined;
|
|
9913
|
+
frequency?: number | undefined;
|
|
9914
|
+
wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
9915
|
+
phase?: number | undefined;
|
|
9916
|
+
duty_cycle?: number | undefined;
|
|
9917
|
+
current?: number | undefined;
|
|
9918
|
+
peak_to_peak_current?: number | undefined;
|
|
9919
|
+
}, {
|
|
9920
|
+
type: "simulation_current_source";
|
|
9921
|
+
is_dc_source: false;
|
|
9922
|
+
terminal1_source_port_id?: string | undefined;
|
|
9923
|
+
terminal2_source_port_id?: string | undefined;
|
|
9924
|
+
terminal1_source_net_id?: string | undefined;
|
|
9925
|
+
terminal2_source_net_id?: string | undefined;
|
|
9926
|
+
frequency?: string | number | undefined;
|
|
9927
|
+
wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
9928
|
+
phase?: string | number | undefined;
|
|
9929
|
+
duty_cycle?: string | number | undefined;
|
|
9930
|
+
simulation_current_source_id?: string | undefined;
|
|
9931
|
+
current?: string | number | undefined;
|
|
9932
|
+
peak_to_peak_current?: string | number | undefined;
|
|
9933
|
+
}>]>;
|
|
9934
|
+
type SimulationCurrentSourceInput = z.input<typeof simulation_current_source>;
|
|
9935
|
+
/**
|
|
9936
|
+
* Defines a DC current source for simulation purposes. It forces a current
|
|
9937
|
+
* between two source ports.
|
|
9938
|
+
*/
|
|
9939
|
+
interface SimulationDcCurrentSource {
|
|
9940
|
+
type: "simulation_current_source";
|
|
9941
|
+
simulation_current_source_id: string;
|
|
9942
|
+
is_dc_source: true;
|
|
9943
|
+
positive_source_port_id?: string;
|
|
9944
|
+
positive_source_net_id?: string;
|
|
9945
|
+
negative_source_port_id?: string;
|
|
9946
|
+
negative_source_net_id?: string;
|
|
9947
|
+
current: number;
|
|
9948
|
+
}
|
|
9949
|
+
/**
|
|
9950
|
+
* Defines an AC current source for simulation purposes.
|
|
9951
|
+
*/
|
|
9952
|
+
interface SimulationAcCurrentSource {
|
|
9953
|
+
type: "simulation_current_source";
|
|
9954
|
+
simulation_current_source_id: string;
|
|
9955
|
+
is_dc_source: false;
|
|
9956
|
+
terminal1_source_port_id?: string;
|
|
9957
|
+
terminal2_source_port_id?: string;
|
|
9958
|
+
terminal1_source_net_id?: string;
|
|
9959
|
+
terminal2_source_net_id?: string;
|
|
9960
|
+
current?: number;
|
|
9961
|
+
frequency?: number;
|
|
9962
|
+
peak_to_peak_current?: number;
|
|
9963
|
+
wave_shape?: WaveShape;
|
|
9964
|
+
phase?: number;
|
|
9965
|
+
duty_cycle?: number;
|
|
9966
|
+
}
|
|
9967
|
+
type SimulationCurrentSource = SimulationDcCurrentSource | SimulationAcCurrentSource;
|
|
9968
|
+
|
|
9792
9969
|
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">]>;
|
|
9793
9970
|
type ExperimentType = z.infer<typeof experiment_type>;
|
|
9794
9971
|
interface SimulationExperiment {
|
|
@@ -21179,6 +21356,75 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21179
21356
|
wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
21180
21357
|
phase?: string | number | undefined;
|
|
21181
21358
|
duty_cycle?: string | number | undefined;
|
|
21359
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
21360
|
+
type: z.ZodLiteral<"simulation_current_source">;
|
|
21361
|
+
simulation_current_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
21362
|
+
is_dc_source: z.ZodDefault<z.ZodOptional<z.ZodLiteral<true>>>;
|
|
21363
|
+
positive_source_port_id: z.ZodOptional<z.ZodString>;
|
|
21364
|
+
negative_source_port_id: z.ZodOptional<z.ZodString>;
|
|
21365
|
+
positive_source_net_id: z.ZodOptional<z.ZodString>;
|
|
21366
|
+
negative_source_net_id: z.ZodOptional<z.ZodString>;
|
|
21367
|
+
current: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
21368
|
+
}, "strip", z.ZodTypeAny, {
|
|
21369
|
+
type: "simulation_current_source";
|
|
21370
|
+
is_dc_source: true;
|
|
21371
|
+
simulation_current_source_id: string;
|
|
21372
|
+
current: number;
|
|
21373
|
+
positive_source_port_id?: string | undefined;
|
|
21374
|
+
negative_source_port_id?: string | undefined;
|
|
21375
|
+
positive_source_net_id?: string | undefined;
|
|
21376
|
+
negative_source_net_id?: string | undefined;
|
|
21377
|
+
}, {
|
|
21378
|
+
type: "simulation_current_source";
|
|
21379
|
+
current: string | number;
|
|
21380
|
+
is_dc_source?: true | undefined;
|
|
21381
|
+
positive_source_port_id?: string | undefined;
|
|
21382
|
+
negative_source_port_id?: string | undefined;
|
|
21383
|
+
positive_source_net_id?: string | undefined;
|
|
21384
|
+
negative_source_net_id?: string | undefined;
|
|
21385
|
+
simulation_current_source_id?: string | undefined;
|
|
21386
|
+
}>, z.ZodObject<{
|
|
21387
|
+
type: z.ZodLiteral<"simulation_current_source">;
|
|
21388
|
+
simulation_current_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
21389
|
+
is_dc_source: z.ZodLiteral<false>;
|
|
21390
|
+
terminal1_source_port_id: z.ZodOptional<z.ZodString>;
|
|
21391
|
+
terminal2_source_port_id: z.ZodOptional<z.ZodString>;
|
|
21392
|
+
terminal1_source_net_id: z.ZodOptional<z.ZodString>;
|
|
21393
|
+
terminal2_source_net_id: z.ZodOptional<z.ZodString>;
|
|
21394
|
+
current: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
21395
|
+
frequency: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
21396
|
+
peak_to_peak_current: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
21397
|
+
wave_shape: z.ZodOptional<z.ZodEnum<["sinewave", "square", "triangle", "sawtooth"]>>;
|
|
21398
|
+
phase: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
21399
|
+
duty_cycle: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
|
|
21400
|
+
}, "strip", z.ZodTypeAny, {
|
|
21401
|
+
type: "simulation_current_source";
|
|
21402
|
+
is_dc_source: false;
|
|
21403
|
+
simulation_current_source_id: string;
|
|
21404
|
+
terminal1_source_port_id?: string | undefined;
|
|
21405
|
+
terminal2_source_port_id?: string | undefined;
|
|
21406
|
+
terminal1_source_net_id?: string | undefined;
|
|
21407
|
+
terminal2_source_net_id?: string | undefined;
|
|
21408
|
+
frequency?: number | undefined;
|
|
21409
|
+
wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
21410
|
+
phase?: number | undefined;
|
|
21411
|
+
duty_cycle?: number | undefined;
|
|
21412
|
+
current?: number | undefined;
|
|
21413
|
+
peak_to_peak_current?: number | undefined;
|
|
21414
|
+
}, {
|
|
21415
|
+
type: "simulation_current_source";
|
|
21416
|
+
is_dc_source: false;
|
|
21417
|
+
terminal1_source_port_id?: string | undefined;
|
|
21418
|
+
terminal2_source_port_id?: string | undefined;
|
|
21419
|
+
terminal1_source_net_id?: string | undefined;
|
|
21420
|
+
terminal2_source_net_id?: string | undefined;
|
|
21421
|
+
frequency?: string | number | undefined;
|
|
21422
|
+
wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
21423
|
+
phase?: string | number | undefined;
|
|
21424
|
+
duty_cycle?: string | number | undefined;
|
|
21425
|
+
simulation_current_source_id?: string | undefined;
|
|
21426
|
+
current?: string | number | undefined;
|
|
21427
|
+
peak_to_peak_current?: string | number | undefined;
|
|
21182
21428
|
}>]>, z.ZodObject<{
|
|
21183
21429
|
type: z.ZodLiteral<"simulation_experiment">;
|
|
21184
21430
|
simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -29354,6 +29600,75 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
29354
29600
|
wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
29355
29601
|
phase?: string | number | undefined;
|
|
29356
29602
|
duty_cycle?: string | number | undefined;
|
|
29603
|
+
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
29604
|
+
type: z.ZodLiteral<"simulation_current_source">;
|
|
29605
|
+
simulation_current_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
29606
|
+
is_dc_source: z.ZodDefault<z.ZodOptional<z.ZodLiteral<true>>>;
|
|
29607
|
+
positive_source_port_id: z.ZodOptional<z.ZodString>;
|
|
29608
|
+
negative_source_port_id: z.ZodOptional<z.ZodString>;
|
|
29609
|
+
positive_source_net_id: z.ZodOptional<z.ZodString>;
|
|
29610
|
+
negative_source_net_id: z.ZodOptional<z.ZodString>;
|
|
29611
|
+
current: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
29612
|
+
}, "strip", z.ZodTypeAny, {
|
|
29613
|
+
type: "simulation_current_source";
|
|
29614
|
+
is_dc_source: true;
|
|
29615
|
+
simulation_current_source_id: string;
|
|
29616
|
+
current: number;
|
|
29617
|
+
positive_source_port_id?: string | undefined;
|
|
29618
|
+
negative_source_port_id?: string | undefined;
|
|
29619
|
+
positive_source_net_id?: string | undefined;
|
|
29620
|
+
negative_source_net_id?: string | undefined;
|
|
29621
|
+
}, {
|
|
29622
|
+
type: "simulation_current_source";
|
|
29623
|
+
current: string | number;
|
|
29624
|
+
is_dc_source?: true | undefined;
|
|
29625
|
+
positive_source_port_id?: string | undefined;
|
|
29626
|
+
negative_source_port_id?: string | undefined;
|
|
29627
|
+
positive_source_net_id?: string | undefined;
|
|
29628
|
+
negative_source_net_id?: string | undefined;
|
|
29629
|
+
simulation_current_source_id?: string | undefined;
|
|
29630
|
+
}>, z.ZodObject<{
|
|
29631
|
+
type: z.ZodLiteral<"simulation_current_source">;
|
|
29632
|
+
simulation_current_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
29633
|
+
is_dc_source: z.ZodLiteral<false>;
|
|
29634
|
+
terminal1_source_port_id: z.ZodOptional<z.ZodString>;
|
|
29635
|
+
terminal2_source_port_id: z.ZodOptional<z.ZodString>;
|
|
29636
|
+
terminal1_source_net_id: z.ZodOptional<z.ZodString>;
|
|
29637
|
+
terminal2_source_net_id: z.ZodOptional<z.ZodString>;
|
|
29638
|
+
current: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
29639
|
+
frequency: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
29640
|
+
peak_to_peak_current: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
29641
|
+
wave_shape: z.ZodOptional<z.ZodEnum<["sinewave", "square", "triangle", "sawtooth"]>>;
|
|
29642
|
+
phase: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
29643
|
+
duty_cycle: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
|
|
29644
|
+
}, "strip", z.ZodTypeAny, {
|
|
29645
|
+
type: "simulation_current_source";
|
|
29646
|
+
is_dc_source: false;
|
|
29647
|
+
simulation_current_source_id: string;
|
|
29648
|
+
terminal1_source_port_id?: string | undefined;
|
|
29649
|
+
terminal2_source_port_id?: string | undefined;
|
|
29650
|
+
terminal1_source_net_id?: string | undefined;
|
|
29651
|
+
terminal2_source_net_id?: string | undefined;
|
|
29652
|
+
frequency?: number | undefined;
|
|
29653
|
+
wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
29654
|
+
phase?: number | undefined;
|
|
29655
|
+
duty_cycle?: number | undefined;
|
|
29656
|
+
current?: number | undefined;
|
|
29657
|
+
peak_to_peak_current?: number | undefined;
|
|
29658
|
+
}, {
|
|
29659
|
+
type: "simulation_current_source";
|
|
29660
|
+
is_dc_source: false;
|
|
29661
|
+
terminal1_source_port_id?: string | undefined;
|
|
29662
|
+
terminal2_source_port_id?: string | undefined;
|
|
29663
|
+
terminal1_source_net_id?: string | undefined;
|
|
29664
|
+
terminal2_source_net_id?: string | undefined;
|
|
29665
|
+
frequency?: string | number | undefined;
|
|
29666
|
+
wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
29667
|
+
phase?: string | number | undefined;
|
|
29668
|
+
duty_cycle?: string | number | undefined;
|
|
29669
|
+
simulation_current_source_id?: string | undefined;
|
|
29670
|
+
current?: string | number | undefined;
|
|
29671
|
+
peak_to_peak_current?: string | number | undefined;
|
|
29357
29672
|
}>]>, z.ZodObject<{
|
|
29358
29673
|
type: z.ZodLiteral<"simulation_experiment">;
|
|
29359
29674
|
simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -29534,4 +29849,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
29534
29849
|
*/
|
|
29535
29850
|
type CircuitJson = AnyCircuitElement[];
|
|
29536
29851
|
|
|
29537
|
-
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 PCBCopperText, type PCBCourtyardOutline, type PCBCourtyardPolygon, type PCBCourtyardRect, type PCBFabricationNoteDimension, type PCBFabricationNotePath, type PCBFabricationNoteRect, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, type PCBMissingFootprintError, type PCBPanel, 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 PcbComponentInvalidLayerError, type PcbComponentInvalidLayerErrorInput, type PcbComponentOutsideBoardError, type PcbComponentOutsideBoardErrorInput, type PcbCopperPour, type PcbCopperPourBRep, type PcbCopperPourBRepInput, type PcbCopperPourInput, type PcbCopperPourPolygon, type PcbCopperPourPolygonInput, type PcbCopperPourRect, type PcbCopperPourRectInput, type PcbCopperText, type PcbCopperTextInput, type PcbCourtyardOutline, type PcbCourtyardOutlineInput, type PcbCourtyardPolygon, type PcbCourtyardPolygonInput, type PcbCourtyardRect, type PcbCourtyardRectInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPath, type PcbCutoutPathInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNoteDimension, type PcbFabricationNoteDimensionInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteRect, type PcbFabricationNoteRectInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircle, type PcbHoleCircleInput, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePill, type PcbHolePillInput, type PcbHolePillWithRectPad, type PcbHoleRect, type PcbHoleRectInput, type PcbHoleRotatedPill, type PcbHoleRotatedPillInput, type PcbHoleRotatedPillWithRectPad, type PcbHoleWithPolygonPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbNet, type PcbNetInput, type PcbNoteDimension, type PcbNoteDimensionInput, type PcbNoteLine, type PcbNoteLineInput, type PcbNotePath, type PcbNotePathInput, type PcbNoteRect, type PcbNoteRectInput, type PcbNoteText, type PcbNoteTextInput, type PcbPanel, type PcbPanelInput, 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 PcbSilkscreenPill, type PcbSilkscreenPillDeprecated, type PcbSilkscreenPillInput, 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 SchematicSheet, type SchematicSheetInput, 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 SimulationUnknownExperimentError, type SimulationUnknownExperimentErrorInput, type SimulationVoltageProbe, type SimulationVoltageProbeInput, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceBoard, type SourceBoardInput, type SourceComponentBase, type SourceComponentInternalConnection, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceInterconnect, type SourceInterconnectInput, type SourceManuallyPlacedVia, type SourceManuallyPlacedViaInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePinMissingTraceWarning, type SourcePinMissingTraceWarningInput, type SourcePinMustBeConnectedError, type SourcePinMustBeConnectedErrorInput, 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 SourceSimpleFiducial, type SourceSimpleFiducialInput, 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 SourceSimpleVoltageProbe, type SourceSimpleVoltageProbeInput, type SourceTrace, type SourceTraceNotConnectedError, type SourceTraceNotConnectedErrorInput, type SupplierName, type UnknownErrorFindingPart, type UnknownErrorFindingPartInput, 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_invalid_layer_error, pcb_component_outside_board_error, pcb_copper_pour, pcb_copper_pour_brep, pcb_copper_pour_polygon, pcb_copper_pour_rect, pcb_copper_text, pcb_courtyard_outline, pcb_courtyard_polygon, pcb_courtyard_rect, pcb_cutout, pcb_cutout_circle, pcb_cutout_path, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_dimension, pcb_fabrication_note_path, pcb_fabrication_note_rect, 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_circle_shape, pcb_hole_oval_shape, pcb_hole_pill_shape, pcb_hole_rect_shape, pcb_hole_rotated_pill_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_net, pcb_note_dimension, pcb_note_line, pcb_note_path, pcb_note_rect, pcb_note_text, pcb_panel, 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_pill, 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_sheet, 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_unknown_experiment_error, simulation_voltage_probe, simulation_voltage_source, size, source_board, source_component_base, source_component_internal_connection, source_failed_to_create_component_error, source_group, source_interconnect, source_manually_placed_via, source_missing_property_error, source_net, source_pcb_ground_plane, source_pin_missing_trace_warning, source_pin_must_be_connected_error, 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_fiducial, 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_simple_voltage_probe, source_trace, source_trace_not_connected_error, supplier_name, time, timestamp, unknown_error_finding_part, visible_layer, voltage, wave_shape };
|
|
29852
|
+
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 PCBCopperText, type PCBCourtyardOutline, type PCBCourtyardPolygon, type PCBCourtyardRect, type PCBFabricationNoteDimension, type PCBFabricationNotePath, type PCBFabricationNoteRect, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, type PCBMissingFootprintError, type PCBPanel, 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 PcbComponentInvalidLayerError, type PcbComponentInvalidLayerErrorInput, type PcbComponentOutsideBoardError, type PcbComponentOutsideBoardErrorInput, type PcbCopperPour, type PcbCopperPourBRep, type PcbCopperPourBRepInput, type PcbCopperPourInput, type PcbCopperPourPolygon, type PcbCopperPourPolygonInput, type PcbCopperPourRect, type PcbCopperPourRectInput, type PcbCopperText, type PcbCopperTextInput, type PcbCourtyardOutline, type PcbCourtyardOutlineInput, type PcbCourtyardPolygon, type PcbCourtyardPolygonInput, type PcbCourtyardRect, type PcbCourtyardRectInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPath, type PcbCutoutPathInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNoteDimension, type PcbFabricationNoteDimensionInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteRect, type PcbFabricationNoteRectInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircle, type PcbHoleCircleInput, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePill, type PcbHolePillInput, type PcbHolePillWithRectPad, type PcbHoleRect, type PcbHoleRectInput, type PcbHoleRotatedPill, type PcbHoleRotatedPillInput, type PcbHoleRotatedPillWithRectPad, type PcbHoleWithPolygonPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbNet, type PcbNetInput, type PcbNoteDimension, type PcbNoteDimensionInput, type PcbNoteLine, type PcbNoteLineInput, type PcbNotePath, type PcbNotePathInput, type PcbNoteRect, type PcbNoteRectInput, type PcbNoteText, type PcbNoteTextInput, type PcbPanel, type PcbPanelInput, 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 PcbSilkscreenPill, type PcbSilkscreenPillDeprecated, type PcbSilkscreenPillInput, 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 SchematicSheet, type SchematicSheetInput, type SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationAcCurrentSource, type SimulationAcCurrentSourceInput, type SimulationAcVoltageSource, type SimulationAcVoltageSourceInput, type SimulationCurrentSource, type SimulationCurrentSourceInput, type SimulationDcCurrentSource, type SimulationDcVoltageSource, type SimulationExperiment, type SimulationExperimentInput, type SimulationSwitch, type SimulationSwitchInput, type SimulationTransientVoltageGraph, type SimulationTransientVoltageGraphInput, type SimulationUnknownExperimentError, type SimulationUnknownExperimentErrorInput, type SimulationVoltageProbe, type SimulationVoltageProbeInput, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceBoard, type SourceBoardInput, type SourceComponentBase, type SourceComponentInternalConnection, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceInterconnect, type SourceInterconnectInput, type SourceManuallyPlacedVia, type SourceManuallyPlacedViaInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePinMissingTraceWarning, type SourcePinMissingTraceWarningInput, type SourcePinMustBeConnectedError, type SourcePinMustBeConnectedErrorInput, 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 SourceSimpleFiducial, type SourceSimpleFiducialInput, 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 SourceSimpleVoltageProbe, type SourceSimpleVoltageProbeInput, type SourceTrace, type SourceTraceNotConnectedError, type SourceTraceNotConnectedErrorInput, type SupplierName, type UnknownErrorFindingPart, type UnknownErrorFindingPartInput, 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_invalid_layer_error, pcb_component_outside_board_error, pcb_copper_pour, pcb_copper_pour_brep, pcb_copper_pour_polygon, pcb_copper_pour_rect, pcb_copper_text, pcb_courtyard_outline, pcb_courtyard_polygon, pcb_courtyard_rect, pcb_cutout, pcb_cutout_circle, pcb_cutout_path, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_dimension, pcb_fabrication_note_path, pcb_fabrication_note_rect, 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_circle_shape, pcb_hole_oval_shape, pcb_hole_pill_shape, pcb_hole_rect_shape, pcb_hole_rotated_pill_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_net, pcb_note_dimension, pcb_note_line, pcb_note_path, pcb_note_rect, pcb_note_text, pcb_panel, 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_pill, 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_sheet, schematic_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_ac_current_source, simulation_ac_voltage_source, simulation_current_source, simulation_dc_current_source, simulation_dc_voltage_source, simulation_experiment, simulation_switch, simulation_transient_voltage_graph, simulation_unknown_experiment_error, simulation_voltage_probe, simulation_voltage_source, size, source_board, source_component_base, source_component_internal_connection, source_failed_to_create_component_error, source_group, source_interconnect, source_manually_placed_via, source_missing_property_error, source_net, source_pcb_ground_plane, source_pin_missing_trace_warning, source_pin_must_be_connected_error, 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_fiducial, 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_simple_voltage_probe, source_trace, source_trace_not_connected_error, supplier_name, time, timestamp, unknown_error_finding_part, visible_layer, voltage, wave_shape };
|
package/dist/index.mjs
CHANGED
|
@@ -2904,20 +2904,67 @@ expectTypesMatch(true);
|
|
|
2904
2904
|
expectTypesMatch(true);
|
|
2905
2905
|
expectTypesMatch(true);
|
|
2906
2906
|
|
|
2907
|
-
// src/simulation/
|
|
2907
|
+
// src/simulation/simulation_current_source.ts
|
|
2908
2908
|
import { z as z131 } from "zod";
|
|
2909
|
-
var
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2909
|
+
var percentage2 = z131.union([z131.string(), z131.number()]).transform((val) => {
|
|
2910
|
+
if (typeof val === "string") {
|
|
2911
|
+
if (val.endsWith("%")) {
|
|
2912
|
+
return parseFloat(val.slice(0, -1)) / 100;
|
|
2913
|
+
}
|
|
2914
|
+
return parseFloat(val);
|
|
2915
|
+
}
|
|
2916
|
+
return val;
|
|
2917
|
+
}).pipe(
|
|
2918
|
+
z131.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
|
|
2919
|
+
);
|
|
2920
|
+
var simulation_dc_current_source = z131.object({
|
|
2921
|
+
type: z131.literal("simulation_current_source"),
|
|
2922
|
+
simulation_current_source_id: getZodPrefixedIdWithDefault(
|
|
2923
|
+
"simulation_current_source"
|
|
2924
|
+
),
|
|
2925
|
+
is_dc_source: z131.literal(true).optional().default(true),
|
|
2926
|
+
positive_source_port_id: z131.string().optional(),
|
|
2927
|
+
negative_source_port_id: z131.string().optional(),
|
|
2928
|
+
positive_source_net_id: z131.string().optional(),
|
|
2929
|
+
negative_source_net_id: z131.string().optional(),
|
|
2930
|
+
current
|
|
2931
|
+
}).describe("Defines a DC current source for simulation");
|
|
2932
|
+
var simulation_ac_current_source = z131.object({
|
|
2933
|
+
type: z131.literal("simulation_current_source"),
|
|
2934
|
+
simulation_current_source_id: getZodPrefixedIdWithDefault(
|
|
2935
|
+
"simulation_current_source"
|
|
2936
|
+
),
|
|
2937
|
+
is_dc_source: z131.literal(false),
|
|
2938
|
+
terminal1_source_port_id: z131.string().optional(),
|
|
2939
|
+
terminal2_source_port_id: z131.string().optional(),
|
|
2940
|
+
terminal1_source_net_id: z131.string().optional(),
|
|
2941
|
+
terminal2_source_net_id: z131.string().optional(),
|
|
2942
|
+
current: current.optional(),
|
|
2943
|
+
frequency: frequency.optional(),
|
|
2944
|
+
peak_to_peak_current: current.optional(),
|
|
2945
|
+
wave_shape: wave_shape.optional(),
|
|
2946
|
+
phase: rotation.optional(),
|
|
2947
|
+
duty_cycle: percentage2.optional()
|
|
2948
|
+
}).describe("Defines an AC current source for simulation");
|
|
2949
|
+
var simulation_current_source = z131.union([simulation_dc_current_source, simulation_ac_current_source]).describe("Defines a current source for simulation");
|
|
2950
|
+
expectTypesMatch(true);
|
|
2951
|
+
expectTypesMatch(true);
|
|
2952
|
+
expectTypesMatch(true);
|
|
2953
|
+
|
|
2954
|
+
// src/simulation/simulation_experiment.ts
|
|
2955
|
+
import { z as z132 } from "zod";
|
|
2956
|
+
var experiment_type = z132.union([
|
|
2957
|
+
z132.literal("spice_dc_sweep"),
|
|
2958
|
+
z132.literal("spice_dc_operating_point"),
|
|
2959
|
+
z132.literal("spice_transient_analysis"),
|
|
2960
|
+
z132.literal("spice_ac_analysis")
|
|
2914
2961
|
]);
|
|
2915
|
-
var simulation_experiment =
|
|
2916
|
-
type:
|
|
2962
|
+
var simulation_experiment = z132.object({
|
|
2963
|
+
type: z132.literal("simulation_experiment"),
|
|
2917
2964
|
simulation_experiment_id: getZodPrefixedIdWithDefault(
|
|
2918
2965
|
"simulation_experiment"
|
|
2919
2966
|
),
|
|
2920
|
-
name:
|
|
2967
|
+
name: z132.string(),
|
|
2921
2968
|
experiment_type,
|
|
2922
2969
|
time_per_step: duration_ms.optional(),
|
|
2923
2970
|
start_time_ms: ms.optional(),
|
|
@@ -2926,53 +2973,53 @@ var simulation_experiment = z131.object({
|
|
|
2926
2973
|
expectTypesMatch(true);
|
|
2927
2974
|
|
|
2928
2975
|
// src/simulation/simulation_transient_voltage_graph.ts
|
|
2929
|
-
import { z as
|
|
2930
|
-
var simulation_transient_voltage_graph =
|
|
2931
|
-
type:
|
|
2976
|
+
import { z as z133 } from "zod";
|
|
2977
|
+
var simulation_transient_voltage_graph = z133.object({
|
|
2978
|
+
type: z133.literal("simulation_transient_voltage_graph"),
|
|
2932
2979
|
simulation_transient_voltage_graph_id: getZodPrefixedIdWithDefault(
|
|
2933
2980
|
"simulation_transient_voltage_graph"
|
|
2934
2981
|
),
|
|
2935
|
-
simulation_experiment_id:
|
|
2936
|
-
timestamps_ms:
|
|
2937
|
-
voltage_levels:
|
|
2938
|
-
source_component_id:
|
|
2939
|
-
subcircuit_connectivity_map_key:
|
|
2982
|
+
simulation_experiment_id: z133.string(),
|
|
2983
|
+
timestamps_ms: z133.array(z133.number()).optional(),
|
|
2984
|
+
voltage_levels: z133.array(z133.number()),
|
|
2985
|
+
source_component_id: z133.string().optional(),
|
|
2986
|
+
subcircuit_connectivity_map_key: z133.string().optional(),
|
|
2940
2987
|
time_per_step: duration_ms,
|
|
2941
2988
|
start_time_ms: ms,
|
|
2942
2989
|
end_time_ms: ms,
|
|
2943
|
-
name:
|
|
2944
|
-
color:
|
|
2990
|
+
name: z133.string().optional(),
|
|
2991
|
+
color: z133.string().optional()
|
|
2945
2992
|
}).describe("Stores voltage measurements over time for a simulation");
|
|
2946
2993
|
expectTypesMatch(true);
|
|
2947
2994
|
|
|
2948
2995
|
// src/simulation/simulation_switch.ts
|
|
2949
|
-
import { z as
|
|
2950
|
-
var simulation_switch =
|
|
2951
|
-
type:
|
|
2996
|
+
import { z as z134 } from "zod";
|
|
2997
|
+
var simulation_switch = z134.object({
|
|
2998
|
+
type: z134.literal("simulation_switch"),
|
|
2952
2999
|
simulation_switch_id: getZodPrefixedIdWithDefault("simulation_switch"),
|
|
2953
|
-
source_component_id:
|
|
3000
|
+
source_component_id: z134.string().optional(),
|
|
2954
3001
|
closes_at: ms.optional(),
|
|
2955
3002
|
opens_at: ms.optional(),
|
|
2956
|
-
starts_closed:
|
|
3003
|
+
starts_closed: z134.boolean().optional(),
|
|
2957
3004
|
switching_frequency: frequency.optional()
|
|
2958
3005
|
}).describe("Defines a switch for simulation timing control");
|
|
2959
3006
|
expectTypesMatch(true);
|
|
2960
3007
|
|
|
2961
3008
|
// src/simulation/simulation_voltage_probe.ts
|
|
2962
|
-
import { z as
|
|
2963
|
-
var simulation_voltage_probe =
|
|
2964
|
-
type:
|
|
3009
|
+
import { z as z135 } from "zod";
|
|
3010
|
+
var simulation_voltage_probe = z135.object({
|
|
3011
|
+
type: z135.literal("simulation_voltage_probe"),
|
|
2965
3012
|
simulation_voltage_probe_id: getZodPrefixedIdWithDefault(
|
|
2966
3013
|
"simulation_voltage_probe"
|
|
2967
3014
|
),
|
|
2968
|
-
source_component_id:
|
|
2969
|
-
name:
|
|
2970
|
-
signal_input_source_port_id:
|
|
2971
|
-
signal_input_source_net_id:
|
|
2972
|
-
reference_input_source_port_id:
|
|
2973
|
-
reference_input_source_net_id:
|
|
2974
|
-
subcircuit_id:
|
|
2975
|
-
color:
|
|
3015
|
+
source_component_id: z135.string().optional(),
|
|
3016
|
+
name: z135.string().optional(),
|
|
3017
|
+
signal_input_source_port_id: z135.string().optional(),
|
|
3018
|
+
signal_input_source_net_id: z135.string().optional(),
|
|
3019
|
+
reference_input_source_port_id: z135.string().optional(),
|
|
3020
|
+
reference_input_source_net_id: z135.string().optional(),
|
|
3021
|
+
subcircuit_id: z135.string().optional(),
|
|
3022
|
+
color: z135.string().optional()
|
|
2976
3023
|
}).describe(
|
|
2977
3024
|
"Defines a voltage probe for simulation. If a reference input is not provided, it measures against ground. If a reference input is provided, it measures the differential voltage between two points."
|
|
2978
3025
|
).superRefine((data, ctx) => {
|
|
@@ -2982,20 +3029,20 @@ var simulation_voltage_probe = z134.object({
|
|
|
2982
3029
|
const has_nets = !!data.signal_input_source_net_id || !!data.reference_input_source_net_id;
|
|
2983
3030
|
if (has_ports && has_nets) {
|
|
2984
3031
|
ctx.addIssue({
|
|
2985
|
-
code:
|
|
3032
|
+
code: z135.ZodIssueCode.custom,
|
|
2986
3033
|
message: "Cannot mix port and net connections in a differential probe."
|
|
2987
3034
|
});
|
|
2988
3035
|
} else if (has_ports) {
|
|
2989
3036
|
if (!data.signal_input_source_port_id || !data.reference_input_source_port_id) {
|
|
2990
3037
|
ctx.addIssue({
|
|
2991
|
-
code:
|
|
3038
|
+
code: z135.ZodIssueCode.custom,
|
|
2992
3039
|
message: "Differential port probe requires both signal_input_source_port_id and reference_input_source_port_id."
|
|
2993
3040
|
});
|
|
2994
3041
|
}
|
|
2995
3042
|
} else if (has_nets) {
|
|
2996
3043
|
if (!data.signal_input_source_net_id || !data.reference_input_source_net_id) {
|
|
2997
3044
|
ctx.addIssue({
|
|
2998
|
-
code:
|
|
3045
|
+
code: z135.ZodIssueCode.custom,
|
|
2999
3046
|
message: "Differential net probe requires both signal_input_source_net_id and reference_input_source_net_id."
|
|
3000
3047
|
});
|
|
3001
3048
|
}
|
|
@@ -3003,7 +3050,7 @@ var simulation_voltage_probe = z134.object({
|
|
|
3003
3050
|
} else {
|
|
3004
3051
|
if (!!data.signal_input_source_port_id === !!data.signal_input_source_net_id) {
|
|
3005
3052
|
ctx.addIssue({
|
|
3006
|
-
code:
|
|
3053
|
+
code: z135.ZodIssueCode.custom,
|
|
3007
3054
|
message: "A voltage probe must have exactly one of signal_input_source_port_id or signal_input_source_net_id."
|
|
3008
3055
|
});
|
|
3009
3056
|
}
|
|
@@ -3012,22 +3059,22 @@ var simulation_voltage_probe = z134.object({
|
|
|
3012
3059
|
expectTypesMatch(true);
|
|
3013
3060
|
|
|
3014
3061
|
// src/simulation/simulation_unknown_experiment_error.ts
|
|
3015
|
-
import { z as
|
|
3016
|
-
var simulation_unknown_experiment_error =
|
|
3017
|
-
type:
|
|
3062
|
+
import { z as z136 } from "zod";
|
|
3063
|
+
var simulation_unknown_experiment_error = z136.object({
|
|
3064
|
+
type: z136.literal("simulation_unknown_experiment_error"),
|
|
3018
3065
|
simulation_unknown_experiment_error_id: getZodPrefixedIdWithDefault(
|
|
3019
3066
|
"simulation_unknown_experiment_error"
|
|
3020
3067
|
),
|
|
3021
|
-
error_type:
|
|
3022
|
-
message:
|
|
3023
|
-
simulation_experiment_id:
|
|
3024
|
-
subcircuit_id:
|
|
3068
|
+
error_type: z136.literal("simulation_unknown_experiment_error").default("simulation_unknown_experiment_error"),
|
|
3069
|
+
message: z136.string(),
|
|
3070
|
+
simulation_experiment_id: z136.string().optional(),
|
|
3071
|
+
subcircuit_id: z136.string().optional()
|
|
3025
3072
|
}).describe("An unknown error occurred during the simulation experiment.");
|
|
3026
3073
|
expectTypesMatch(true);
|
|
3027
3074
|
|
|
3028
3075
|
// src/any_circuit_element.ts
|
|
3029
|
-
import { z as
|
|
3030
|
-
var any_circuit_element =
|
|
3076
|
+
import { z as z137 } from "zod";
|
|
3077
|
+
var any_circuit_element = z137.union([
|
|
3031
3078
|
source_trace,
|
|
3032
3079
|
source_port,
|
|
3033
3080
|
source_component_internal_connection,
|
|
@@ -3136,6 +3183,7 @@ var any_circuit_element = z136.union([
|
|
|
3136
3183
|
schematic_table_cell,
|
|
3137
3184
|
cad_component,
|
|
3138
3185
|
simulation_voltage_source,
|
|
3186
|
+
simulation_current_source,
|
|
3139
3187
|
simulation_experiment,
|
|
3140
3188
|
simulation_transient_voltage_graph,
|
|
3141
3189
|
simulation_switch,
|
|
@@ -3277,7 +3325,10 @@ export {
|
|
|
3277
3325
|
schematic_text,
|
|
3278
3326
|
schematic_trace,
|
|
3279
3327
|
schematic_voltage_probe,
|
|
3328
|
+
simulation_ac_current_source,
|
|
3280
3329
|
simulation_ac_voltage_source,
|
|
3330
|
+
simulation_current_source,
|
|
3331
|
+
simulation_dc_current_source,
|
|
3281
3332
|
simulation_dc_voltage_source,
|
|
3282
3333
|
simulation_experiment,
|
|
3283
3334
|
simulation_switch,
|