circuit-json 0.0.270 → 0.0.271

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2155,6 +2155,9 @@ interface SimulationExperiment {
2155
2155
  simulation_experiment_id: string
2156
2156
  name: string
2157
2157
  experiment_type: ExperimentType
2158
+ time_per_step?: number // ms
2159
+ start_time_ms?: number // ms
2160
+ end_time_ms?: number // ms
2158
2161
  }
2159
2162
  ```
2160
2163
 
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;
@@ -16715,16 +16727,25 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16715
16727
  simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
16716
16728
  name: z.ZodString;
16717
16729
  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">]>;
16730
+ time_per_step: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
16731
+ start_time_ms: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
16732
+ end_time_ms: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
16718
16733
  }, "strip", z.ZodTypeAny, {
16719
16734
  type: "simulation_experiment";
16720
16735
  name: string;
16721
16736
  simulation_experiment_id: string;
16722
16737
  experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
16738
+ time_per_step?: number | undefined;
16739
+ start_time_ms?: number | undefined;
16740
+ end_time_ms?: number | undefined;
16723
16741
  }, {
16724
16742
  type: "simulation_experiment";
16725
16743
  name: string;
16726
16744
  experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
16727
16745
  simulation_experiment_id?: string | undefined;
16746
+ time_per_step?: string | number | undefined;
16747
+ start_time_ms?: string | number | undefined;
16748
+ end_time_ms?: string | number | undefined;
16728
16749
  }>, z.ZodObject<{
16729
16750
  type: z.ZodLiteral<"simulation_transient_voltage_graph">;
16730
16751
  simulation_transient_voltage_graph_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -16740,11 +16761,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16740
16761
  }, "strip", z.ZodTypeAny, {
16741
16762
  type: "simulation_transient_voltage_graph";
16742
16763
  simulation_experiment_id: string;
16743
- simulation_transient_voltage_graph_id: string;
16744
- voltage_levels: number[];
16745
16764
  time_per_step: number;
16746
16765
  start_time_ms: number;
16747
16766
  end_time_ms: number;
16767
+ simulation_transient_voltage_graph_id: string;
16768
+ voltage_levels: number[];
16748
16769
  name?: string | undefined;
16749
16770
  subcircuit_connectivity_map_key?: string | undefined;
16750
16771
  schematic_voltage_probe_id?: string | undefined;
@@ -16752,10 +16773,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
16752
16773
  }, {
16753
16774
  type: "simulation_transient_voltage_graph";
16754
16775
  simulation_experiment_id: string;
16755
- voltage_levels: number[];
16756
16776
  time_per_step: string | number;
16757
16777
  start_time_ms: string | number;
16758
16778
  end_time_ms: string | number;
16779
+ voltage_levels: number[];
16759
16780
  name?: string | undefined;
16760
16781
  subcircuit_connectivity_map_key?: string | undefined;
16761
16782
  schematic_voltage_probe_id?: string | undefined;
@@ -23188,16 +23209,25 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23188
23209
  simulation_experiment_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
23189
23210
  name: z.ZodString;
23190
23211
  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">]>;
23212
+ time_per_step: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23213
+ start_time_ms: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23214
+ end_time_ms: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
23191
23215
  }, "strip", z.ZodTypeAny, {
23192
23216
  type: "simulation_experiment";
23193
23217
  name: string;
23194
23218
  simulation_experiment_id: string;
23195
23219
  experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
23220
+ time_per_step?: number | undefined;
23221
+ start_time_ms?: number | undefined;
23222
+ end_time_ms?: number | undefined;
23196
23223
  }, {
23197
23224
  type: "simulation_experiment";
23198
23225
  name: string;
23199
23226
  experiment_type: "spice_dc_sweep" | "spice_dc_operating_point" | "spice_transient_analysis" | "spice_ac_analysis";
23200
23227
  simulation_experiment_id?: string | undefined;
23228
+ time_per_step?: string | number | undefined;
23229
+ start_time_ms?: string | number | undefined;
23230
+ end_time_ms?: string | number | undefined;
23201
23231
  }>, z.ZodObject<{
23202
23232
  type: z.ZodLiteral<"simulation_transient_voltage_graph">;
23203
23233
  simulation_transient_voltage_graph_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -23213,11 +23243,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23213
23243
  }, "strip", z.ZodTypeAny, {
23214
23244
  type: "simulation_transient_voltage_graph";
23215
23245
  simulation_experiment_id: string;
23216
- simulation_transient_voltage_graph_id: string;
23217
- voltage_levels: number[];
23218
23246
  time_per_step: number;
23219
23247
  start_time_ms: number;
23220
23248
  end_time_ms: number;
23249
+ simulation_transient_voltage_graph_id: string;
23250
+ voltage_levels: number[];
23221
23251
  name?: string | undefined;
23222
23252
  subcircuit_connectivity_map_key?: string | undefined;
23223
23253
  schematic_voltage_probe_id?: string | undefined;
@@ -23225,10 +23255,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23225
23255
  }, {
23226
23256
  type: "simulation_transient_voltage_graph";
23227
23257
  simulation_experiment_id: string;
23228
- voltage_levels: number[];
23229
23258
  time_per_step: string | number;
23230
23259
  start_time_ms: string | number;
23231
23260
  end_time_ms: string | number;
23261
+ voltage_levels: number[];
23232
23262
  name?: string | undefined;
23233
23263
  subcircuit_connectivity_map_key?: string | undefined;
23234
23264
  schematic_voltage_probe_id?: string | undefined;
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