circuit-json 0.0.532 → 0.0.534

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
@@ -4818,6 +4818,59 @@ var spice_simulation_options = z207.object({
4818
4818
  abstol: z207.union([z207.number(), z207.string()]).optional(),
4819
4819
  vntol: z207.union([z207.number(), z207.string()]).optional()
4820
4820
  }).describe("SPICE solver options for a simulation experiment");
4821
+ var pcb_spice_channel = z207.object({
4822
+ reduction: z207.union([
4823
+ z207.literal("routed-copper"),
4824
+ z207.literal("straightened-stages")
4825
+ ]),
4826
+ sections: z207.number().int().min(1).max(128),
4827
+ lanes: z207.array(
4828
+ z207.object({
4829
+ name: z207.string().min(1),
4830
+ driver_source_port_id: z207.string().min(1),
4831
+ receiver_source_port_id: z207.string().min(1)
4832
+ })
4833
+ ).min(1).max(3),
4834
+ reference_source_port_id: z207.string().min(1),
4835
+ passive_source_component_ids: z207.array(z207.string().min(1)).optional(),
4836
+ extraction: z207.object({
4837
+ minimum_frequency_hz: z207.number().finite().positive(),
4838
+ maximum_frequency_hz: z207.number().finite().positive(),
4839
+ model_frequency_hz: z207.number().finite().positive(),
4840
+ filaments: z207.number().int().positive(),
4841
+ refinement_filaments: z207.number().int().positive(),
4842
+ convergence_tolerance: z207.number().finite().positive(),
4843
+ capacitance_tolerance: z207.number().finite().positive(),
4844
+ reciprocity_tolerance: z207.number().finite().positive(),
4845
+ dc_resistance_tolerance: z207.number().finite().positive(),
4846
+ max_panel_length_mm: z207.number().finite().positive(),
4847
+ ground_mesh_size_mm: z207.number().finite().positive().optional()
4848
+ }).refine(
4849
+ (extraction) => extraction.refinement_filaments > extraction.filaments,
4850
+ {
4851
+ path: ["refinement_filaments"],
4852
+ message: "refinement_filaments must be greater than filaments"
4853
+ }
4854
+ ),
4855
+ relative_permittivity: z207.number().finite().positive().optional(),
4856
+ via_plating_thickness_mm: z207.number().finite().positive().optional(),
4857
+ via_equivalent_width_mm: z207.number().finite().positive().optional(),
4858
+ omit_through_via_stubs: z207.boolean().optional(),
4859
+ straightened_stage_profiles: z207.record(
4860
+ z207.object({
4861
+ spacing_mm: z207.number().finite().positive(),
4862
+ relative_permittivity: z207.number().finite().positive(),
4863
+ return: z207.object({
4864
+ width_mm: z207.number().finite().positive(),
4865
+ thickness_mm: z207.number().finite().positive(),
4866
+ length_factor: z207.number().finite().positive(),
4867
+ center_y_mm: z207.number().finite(),
4868
+ center_z_mm: z207.number().finite()
4869
+ })
4870
+ })
4871
+ ).optional()
4872
+ });
4873
+ expectTypesMatch(true);
4821
4874
  var simulation_experiment = z207.object({
4822
4875
  type: z207.literal("simulation_experiment"),
4823
4876
  simulation_experiment_id: getZodPrefixedIdWithDefault(
@@ -4831,6 +4884,7 @@ var simulation_experiment = z207.object({
4831
4884
  start_time_ms: ms.optional(),
4832
4885
  end_time_ms: ms.optional(),
4833
4886
  spice_options: spice_simulation_options.optional(),
4887
+ pcb_spice_channel: pcb_spice_channel.optional(),
4834
4888
  dc_sweep_voltage_source_id: z207.string().optional(),
4835
4889
  dc_sweep_current_source_id: z207.string().optional(),
4836
4890
  dc_sweep_start: z207.number().optional(),
@@ -5787,7 +5841,7 @@ var simulation_pcb_return_current_marker = z238.discriminatedUnion("target_type"
5787
5841
  expectTypesMatch(true);
5788
5842
 
5789
5843
  // src/any_circuit_element.ts
5790
- import { z as z243 } from "zod";
5844
+ import { z as z244 } from "zod";
5791
5845
 
5792
5846
  // src/drawing/drawing_page.ts
5793
5847
  import { z as z240 } from "zod";
@@ -5919,11 +5973,45 @@ var drawing_page_title_block = z242.object({
5919
5973
  );
5920
5974
  expectTypesMatch(true);
5921
5975
 
5976
+ // src/drawing/drawing_dimension_line.ts
5977
+ import { z as z243 } from "zod";
5978
+ var paper_point = z243.object({
5979
+ x: z243.number().finite(),
5980
+ y: z243.number().finite()
5981
+ });
5982
+ var drawing_dimension_line = z243.object({
5983
+ type: z243.literal("drawing_dimension_line"),
5984
+ drawing_dimension_line_id: z243.string().trim().min(1),
5985
+ drawing_part_view_id: z243.string().trim().min(1),
5986
+ start: paper_point,
5987
+ end: paper_point,
5988
+ text: z243.string().refine(
5989
+ (text) => text.trim().length > 0,
5990
+ "Dimension text must not be blank"
5991
+ ),
5992
+ edge_ref_start: paper_point.optional(),
5993
+ edge_ref_end: paper_point.optional(),
5994
+ edge_ref_name: z243.string().refine(
5995
+ (name) => name.trim().length > 0,
5996
+ "Edge reference name must not be blank"
5997
+ ).optional(),
5998
+ name: z243.string().trim().min(1).optional()
5999
+ }).refine(
6000
+ (line) => line.start.x !== line.end.x || line.start.y !== line.end.y,
6001
+ { message: "Dimension line endpoints must be distinct", path: ["end"] }
6002
+ ).describe(
6003
+ "A resolved dimension annotation associated with a drawing part view. start/end and optional edge_ref_start/edge_ref_end use page-centered paper mm, +X right/+Y up. Core resolves model measurement and formats the required text before emitting this record; renderers draw the supplied line, text and optional witness attachments without resolving native geometry or deriving values from paper length. Each witness attachment is independently optional. edge_ref_name is optional exact nonblank model-feature metadata, never a geometry definition or a rendering dependency."
6004
+ );
6005
+ expectTypesMatch(
6006
+ true
6007
+ );
6008
+
5922
6009
  // src/any_circuit_element.ts
5923
- var any_circuit_element = z243.union([
6010
+ var any_circuit_element = z244.union([
5924
6011
  drawing_page,
5925
6012
  drawing_page_title_block,
5926
6013
  drawing_part_view,
6014
+ drawing_dimension_line,
5927
6015
  source_runtime_error,
5928
6016
  source_datasheet,
5929
6017
  source_trace,
@@ -6141,6 +6229,7 @@ export {
6141
6229
  current,
6142
6230
  distance,
6143
6231
  drawingPageSizes,
6232
+ drawing_dimension_line,
6144
6233
  drawing_page,
6145
6234
  drawing_page_size,
6146
6235
  drawing_page_title_block,
@@ -6270,6 +6359,7 @@ export {
6270
6359
  pcb_smtpad_pill,
6271
6360
  pcb_solder_paste,
6272
6361
  pcb_soldermask_opening,
6362
+ pcb_spice_channel,
6273
6363
  pcb_stackup,
6274
6364
  pcb_stackup_copper_layer,
6275
6365
  pcb_stackup_dielectric_layer,