circuit-json 0.0.533 → 0.0.535

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.mjs CHANGED
@@ -599,8 +599,10 @@ expectTypesMatch(
599
599
  import { z as z34 } from "zod";
600
600
  var source_simple_crystal = source_component_base.extend({
601
601
  ftype: z34.literal("simple_crystal"),
602
- frequency: z34.number().describe("Frequency in Hz"),
603
- load_capacitance: z34.number().optional().describe("Load capacitance in pF"),
602
+ frequency: frequency.describe("Frequency in Hz"),
603
+ display_frequency: z34.string().optional(),
604
+ load_capacitance: capacitance.optional().describe("Load capacitance in pF"),
605
+ display_load_capacitance: z34.string().optional(),
604
606
  pin_variant: z34.enum(["two_pin", "four_pin"]).optional()
605
607
  });
606
608
  expectTypesMatch(true);
@@ -4818,6 +4820,59 @@ var spice_simulation_options = z207.object({
4818
4820
  abstol: z207.union([z207.number(), z207.string()]).optional(),
4819
4821
  vntol: z207.union([z207.number(), z207.string()]).optional()
4820
4822
  }).describe("SPICE solver options for a simulation experiment");
4823
+ var pcb_spice_channel = z207.object({
4824
+ reduction: z207.union([
4825
+ z207.literal("routed-copper"),
4826
+ z207.literal("straightened-stages")
4827
+ ]),
4828
+ sections: z207.number().int().min(1).max(128),
4829
+ lanes: z207.array(
4830
+ z207.object({
4831
+ name: z207.string().min(1),
4832
+ driver_source_port_id: z207.string().min(1),
4833
+ receiver_source_port_id: z207.string().min(1)
4834
+ })
4835
+ ).min(1).max(3),
4836
+ reference_source_port_id: z207.string().min(1),
4837
+ passive_source_component_ids: z207.array(z207.string().min(1)).optional(),
4838
+ extraction: z207.object({
4839
+ minimum_frequency_hz: z207.number().finite().positive(),
4840
+ maximum_frequency_hz: z207.number().finite().positive(),
4841
+ model_frequency_hz: z207.number().finite().positive(),
4842
+ filaments: z207.number().int().positive(),
4843
+ refinement_filaments: z207.number().int().positive(),
4844
+ convergence_tolerance: z207.number().finite().positive(),
4845
+ capacitance_tolerance: z207.number().finite().positive(),
4846
+ reciprocity_tolerance: z207.number().finite().positive(),
4847
+ dc_resistance_tolerance: z207.number().finite().positive(),
4848
+ max_panel_length_mm: z207.number().finite().positive(),
4849
+ ground_mesh_size_mm: z207.number().finite().positive().optional()
4850
+ }).refine(
4851
+ (extraction) => extraction.refinement_filaments > extraction.filaments,
4852
+ {
4853
+ path: ["refinement_filaments"],
4854
+ message: "refinement_filaments must be greater than filaments"
4855
+ }
4856
+ ),
4857
+ relative_permittivity: z207.number().finite().positive().optional(),
4858
+ via_plating_thickness_mm: z207.number().finite().positive().optional(),
4859
+ via_equivalent_width_mm: z207.number().finite().positive().optional(),
4860
+ omit_through_via_stubs: z207.boolean().optional(),
4861
+ straightened_stage_profiles: z207.record(
4862
+ z207.object({
4863
+ spacing_mm: z207.number().finite().positive(),
4864
+ relative_permittivity: z207.number().finite().positive(),
4865
+ return: z207.object({
4866
+ width_mm: z207.number().finite().positive(),
4867
+ thickness_mm: z207.number().finite().positive(),
4868
+ length_factor: z207.number().finite().positive(),
4869
+ center_y_mm: z207.number().finite(),
4870
+ center_z_mm: z207.number().finite()
4871
+ })
4872
+ })
4873
+ ).optional()
4874
+ });
4875
+ expectTypesMatch(true);
4821
4876
  var simulation_experiment = z207.object({
4822
4877
  type: z207.literal("simulation_experiment"),
4823
4878
  simulation_experiment_id: getZodPrefixedIdWithDefault(
@@ -4831,6 +4886,7 @@ var simulation_experiment = z207.object({
4831
4886
  start_time_ms: ms.optional(),
4832
4887
  end_time_ms: ms.optional(),
4833
4888
  spice_options: spice_simulation_options.optional(),
4889
+ pcb_spice_channel: pcb_spice_channel.optional(),
4834
4890
  dc_sweep_voltage_source_id: z207.string().optional(),
4835
4891
  dc_sweep_current_source_id: z207.string().optional(),
4836
4892
  dc_sweep_start: z207.number().optional(),
@@ -6305,6 +6361,7 @@ export {
6305
6361
  pcb_smtpad_pill,
6306
6362
  pcb_solder_paste,
6307
6363
  pcb_soldermask_opening,
6364
+ pcb_spice_channel,
6308
6365
  pcb_stackup,
6309
6366
  pcb_stackup_copper_layer,
6310
6367
  pcb_stackup_dielectric_layer,