circuit-json 0.0.234 → 0.0.236

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
@@ -1739,6 +1739,8 @@ interface SchematicPort {
1739
1739
  display_pin_label?: string
1740
1740
  subcircuit_id?: string
1741
1741
  is_connected?: boolean
1742
+ has_input_arrow?: boolean
1743
+ has_output_arrow?: boolean
1742
1744
  }
1743
1745
  ```
1744
1746
 
@@ -1886,6 +1888,7 @@ interface SimulationAcVoltageSource {
1886
1888
  peak_to_peak_voltage?: number
1887
1889
  wave_shape?: WaveShape
1888
1890
  phase?: number
1891
+ duty_cycle?: number
1889
1892
  }
1890
1893
  ```
1891
1894
 
package/dist/index.d.mts CHANGED
@@ -5011,6 +5011,8 @@ interface SchematicPort {
5011
5011
  display_pin_label?: string;
5012
5012
  subcircuit_id?: string;
5013
5013
  is_connected?: boolean;
5014
+ has_input_arrow?: boolean;
5015
+ has_output_arrow?: boolean;
5014
5016
  }
5015
5017
  declare const schematic_port: z.ZodObject<{
5016
5018
  type: z.ZodLiteral<"schematic_port">;
@@ -5035,6 +5037,8 @@ declare const schematic_port: z.ZodObject<{
5035
5037
  display_pin_label: z.ZodOptional<z.ZodString>;
5036
5038
  subcircuit_id: z.ZodOptional<z.ZodString>;
5037
5039
  is_connected: z.ZodOptional<z.ZodBoolean>;
5040
+ has_input_arrow: z.ZodOptional<z.ZodBoolean>;
5041
+ has_output_arrow: z.ZodOptional<z.ZodBoolean>;
5038
5042
  }, "strip", z.ZodTypeAny, {
5039
5043
  type: "schematic_port";
5040
5044
  center: {
@@ -5052,6 +5056,8 @@ declare const schematic_port: z.ZodObject<{
5052
5056
  pin_number?: number | undefined;
5053
5057
  display_pin_label?: string | undefined;
5054
5058
  is_connected?: boolean | undefined;
5059
+ has_input_arrow?: boolean | undefined;
5060
+ has_output_arrow?: boolean | undefined;
5055
5061
  }, {
5056
5062
  type: "schematic_port";
5057
5063
  center: {
@@ -5069,6 +5075,8 @@ declare const schematic_port: z.ZodObject<{
5069
5075
  pin_number?: number | undefined;
5070
5076
  display_pin_label?: string | undefined;
5071
5077
  is_connected?: boolean | undefined;
5078
+ has_input_arrow?: boolean | undefined;
5079
+ has_output_arrow?: boolean | undefined;
5072
5080
  }>;
5073
5081
  type SchematicPortInput = z.input<typeof schematic_port>;
5074
5082
 
@@ -8502,6 +8510,7 @@ declare const simulation_ac_voltage_source: z.ZodObject<{
8502
8510
  peak_to_peak_voltage: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
8503
8511
  wave_shape: z.ZodOptional<z.ZodEnum<["sinewave", "square", "triangle", "sawtooth"]>>;
8504
8512
  phase: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
8513
+ duty_cycle: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
8505
8514
  }, "strip", z.ZodTypeAny, {
8506
8515
  type: "simulation_voltage_source";
8507
8516
  simulation_voltage_source_id: string;
@@ -8515,6 +8524,7 @@ declare const simulation_ac_voltage_source: z.ZodObject<{
8515
8524
  peak_to_peak_voltage?: number | undefined;
8516
8525
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
8517
8526
  phase?: number | undefined;
8527
+ duty_cycle?: number | undefined;
8518
8528
  }, {
8519
8529
  type: "simulation_voltage_source";
8520
8530
  is_dc_source: false;
@@ -8528,7 +8538,9 @@ declare const simulation_ac_voltage_source: z.ZodObject<{
8528
8538
  peak_to_peak_voltage?: string | number | undefined;
8529
8539
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
8530
8540
  phase?: string | number | undefined;
8541
+ duty_cycle?: string | number | undefined;
8531
8542
  }>;
8543
+ type SimulationAcVoltageSourceInput = z.input<typeof simulation_ac_voltage_source>;
8532
8544
  declare const simulation_voltage_source: z.ZodUnion<[z.ZodObject<{
8533
8545
  type: z.ZodLiteral<"simulation_voltage_source">;
8534
8546
  simulation_voltage_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -8569,6 +8581,7 @@ declare const simulation_voltage_source: z.ZodUnion<[z.ZodObject<{
8569
8581
  peak_to_peak_voltage: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
8570
8582
  wave_shape: z.ZodOptional<z.ZodEnum<["sinewave", "square", "triangle", "sawtooth"]>>;
8571
8583
  phase: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
8584
+ duty_cycle: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
8572
8585
  }, "strip", z.ZodTypeAny, {
8573
8586
  type: "simulation_voltage_source";
8574
8587
  simulation_voltage_source_id: string;
@@ -8582,6 +8595,7 @@ declare const simulation_voltage_source: z.ZodUnion<[z.ZodObject<{
8582
8595
  peak_to_peak_voltage?: number | undefined;
8583
8596
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
8584
8597
  phase?: number | undefined;
8598
+ duty_cycle?: number | undefined;
8585
8599
  }, {
8586
8600
  type: "simulation_voltage_source";
8587
8601
  is_dc_source: false;
@@ -8595,6 +8609,7 @@ declare const simulation_voltage_source: z.ZodUnion<[z.ZodObject<{
8595
8609
  peak_to_peak_voltage?: string | number | undefined;
8596
8610
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
8597
8611
  phase?: string | number | undefined;
8612
+ duty_cycle?: string | number | undefined;
8598
8613
  }>]>;
8599
8614
  type SimulationVoltageSourceInput = z.input<typeof simulation_voltage_source>;
8600
8615
  /**
@@ -8627,6 +8642,7 @@ interface SimulationAcVoltageSource {
8627
8642
  peak_to_peak_voltage?: number;
8628
8643
  wave_shape?: WaveShape;
8629
8644
  phase?: number;
8645
+ duty_cycle?: number;
8630
8646
  }
8631
8647
  type SimulationVoltageSource = SimulationDcVoltageSource | SimulationAcVoltageSource;
8632
8648
 
@@ -13343,6 +13359,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13343
13359
  display_pin_label: z.ZodOptional<z.ZodString>;
13344
13360
  subcircuit_id: z.ZodOptional<z.ZodString>;
13345
13361
  is_connected: z.ZodOptional<z.ZodBoolean>;
13362
+ has_input_arrow: z.ZodOptional<z.ZodBoolean>;
13363
+ has_output_arrow: z.ZodOptional<z.ZodBoolean>;
13346
13364
  }, "strip", z.ZodTypeAny, {
13347
13365
  type: "schematic_port";
13348
13366
  center: {
@@ -13360,6 +13378,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13360
13378
  pin_number?: number | undefined;
13361
13379
  display_pin_label?: string | undefined;
13362
13380
  is_connected?: boolean | undefined;
13381
+ has_input_arrow?: boolean | undefined;
13382
+ has_output_arrow?: boolean | undefined;
13363
13383
  }, {
13364
13384
  type: "schematic_port";
13365
13385
  center: {
@@ -13377,6 +13397,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13377
13397
  pin_number?: number | undefined;
13378
13398
  display_pin_label?: string | undefined;
13379
13399
  is_connected?: boolean | undefined;
13400
+ has_input_arrow?: boolean | undefined;
13401
+ has_output_arrow?: boolean | undefined;
13380
13402
  }>, z.ZodObject<{
13381
13403
  type: z.ZodLiteral<"schematic_trace">;
13382
13404
  schematic_trace_id: z.ZodString;
@@ -14150,6 +14172,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
14150
14172
  peak_to_peak_voltage: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
14151
14173
  wave_shape: z.ZodOptional<z.ZodEnum<["sinewave", "square", "triangle", "sawtooth"]>>;
14152
14174
  phase: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
14175
+ duty_cycle: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
14153
14176
  }, "strip", z.ZodTypeAny, {
14154
14177
  type: "simulation_voltage_source";
14155
14178
  simulation_voltage_source_id: string;
@@ -14163,6 +14186,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
14163
14186
  peak_to_peak_voltage?: number | undefined;
14164
14187
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
14165
14188
  phase?: number | undefined;
14189
+ duty_cycle?: number | undefined;
14166
14190
  }, {
14167
14191
  type: "simulation_voltage_source";
14168
14192
  is_dc_source: false;
@@ -14176,6 +14200,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
14176
14200
  peak_to_peak_voltage?: string | number | undefined;
14177
14201
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
14178
14202
  phase?: string | number | undefined;
14203
+ duty_cycle?: string | number | undefined;
14179
14204
  }>]>]>;
14180
14205
  /**
14181
14206
  * @deprecated use any_circuit_element instead
@@ -18893,6 +18918,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18893
18918
  display_pin_label: z.ZodOptional<z.ZodString>;
18894
18919
  subcircuit_id: z.ZodOptional<z.ZodString>;
18895
18920
  is_connected: z.ZodOptional<z.ZodBoolean>;
18921
+ has_input_arrow: z.ZodOptional<z.ZodBoolean>;
18922
+ has_output_arrow: z.ZodOptional<z.ZodBoolean>;
18896
18923
  }, "strip", z.ZodTypeAny, {
18897
18924
  type: "schematic_port";
18898
18925
  center: {
@@ -18910,6 +18937,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18910
18937
  pin_number?: number | undefined;
18911
18938
  display_pin_label?: string | undefined;
18912
18939
  is_connected?: boolean | undefined;
18940
+ has_input_arrow?: boolean | undefined;
18941
+ has_output_arrow?: boolean | undefined;
18913
18942
  }, {
18914
18943
  type: "schematic_port";
18915
18944
  center: {
@@ -18927,6 +18956,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18927
18956
  pin_number?: number | undefined;
18928
18957
  display_pin_label?: string | undefined;
18929
18958
  is_connected?: boolean | undefined;
18959
+ has_input_arrow?: boolean | undefined;
18960
+ has_output_arrow?: boolean | undefined;
18930
18961
  }>, z.ZodObject<{
18931
18962
  type: z.ZodLiteral<"schematic_trace">;
18932
18963
  schematic_trace_id: z.ZodString;
@@ -19700,6 +19731,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
19700
19731
  peak_to_peak_voltage: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
19701
19732
  wave_shape: z.ZodOptional<z.ZodEnum<["sinewave", "square", "triangle", "sawtooth"]>>;
19702
19733
  phase: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
19734
+ duty_cycle: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
19703
19735
  }, "strip", z.ZodTypeAny, {
19704
19736
  type: "simulation_voltage_source";
19705
19737
  simulation_voltage_source_id: string;
@@ -19713,6 +19745,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
19713
19745
  peak_to_peak_voltage?: number | undefined;
19714
19746
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
19715
19747
  phase?: number | undefined;
19748
+ duty_cycle?: number | undefined;
19716
19749
  }, {
19717
19750
  type: "simulation_voltage_source";
19718
19751
  is_dc_source: false;
@@ -19726,6 +19759,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
19726
19759
  peak_to_peak_voltage?: string | number | undefined;
19727
19760
  wave_shape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
19728
19761
  phase?: string | number | undefined;
19762
+ duty_cycle?: string | number | undefined;
19729
19763
  }>]>]>;
19730
19764
  type AnyCircuitElement = z.infer<typeof any_circuit_element>;
19731
19765
  type AnyCircuitElementInput = z.input<typeof any_circuit_element>;
@@ -19743,4 +19777,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
19743
19777
  */
19744
19778
  type CircuitJson = AnyCircuitElement[];
19745
19779
 
19746
- export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, 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 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 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 PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, 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 SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationAcVoltageSource, type SimulationDcVoltageSource, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, 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 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, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, 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_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, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, 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_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_ac_voltage_source, simulation_dc_voltage_source, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, 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_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, visible_layer, voltage, wave_shape };
19780
+ export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, 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 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 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 PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, 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 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 SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, 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 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, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, 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_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, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, 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_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_ac_voltage_source, simulation_dc_voltage_source, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, 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_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, visible_layer, voltage, wave_shape };
package/dist/index.mjs CHANGED
@@ -883,7 +883,9 @@ var schematic_port = z47.object({
883
883
  pin_number: z47.number().optional(),
884
884
  display_pin_label: z47.string().optional(),
885
885
  subcircuit_id: z47.string().optional(),
886
- is_connected: z47.boolean().optional()
886
+ is_connected: z47.boolean().optional(),
887
+ has_input_arrow: z47.boolean().optional(),
888
+ has_output_arrow: z47.boolean().optional()
887
889
  }).describe("Defines a port on a schematic component");
888
890
  expectTypesMatch(true);
889
891
 
@@ -2018,6 +2020,17 @@ expectTypesMatch(true);
2018
2020
  // src/simulation/simulation_voltage_source.ts
2019
2021
  import { z as z96 } from "zod";
2020
2022
  var wave_shape = z96.enum(["sinewave", "square", "triangle", "sawtooth"]);
2023
+ var percentage = z96.union([z96.string(), z96.number()]).transform((val) => {
2024
+ if (typeof val === "string") {
2025
+ if (val.endsWith("%")) {
2026
+ return parseFloat(val.slice(0, -1)) / 100;
2027
+ }
2028
+ return parseFloat(val);
2029
+ }
2030
+ return val;
2031
+ }).pipe(
2032
+ z96.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
2033
+ );
2021
2034
  var simulation_dc_voltage_source = z96.object({
2022
2035
  type: z96.literal("simulation_voltage_source"),
2023
2036
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
@@ -2044,7 +2057,8 @@ var simulation_ac_voltage_source = z96.object({
2044
2057
  frequency: frequency.optional(),
2045
2058
  peak_to_peak_voltage: voltage.optional(),
2046
2059
  wave_shape: wave_shape.optional(),
2047
- phase: rotation.optional()
2060
+ phase: rotation.optional(),
2061
+ duty_cycle: percentage.optional()
2048
2062
  }).describe("Defines an AC voltage source for simulation");
2049
2063
  var simulation_voltage_source = z96.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
2050
2064
  expectTypesMatch(true);