circuit-json 0.0.325 → 0.0.327
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 +15 -0
- package/dist/index.d.mts +169 -2
- package/dist/index.mjs +1172 -1162
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -410,7 +410,7 @@ var source_simple_power_source = source_component_base.extend({
|
|
|
410
410
|
expectTypesMatch(true);
|
|
411
411
|
|
|
412
412
|
// src/source/any_source_component.ts
|
|
413
|
-
import { z as
|
|
413
|
+
import { z as z37 } from "zod";
|
|
414
414
|
|
|
415
415
|
// src/source/source_simple_fuse.ts
|
|
416
416
|
import { z as z16 } from "zod";
|
|
@@ -634,8 +634,15 @@ expectTypesMatch(
|
|
|
634
634
|
true
|
|
635
635
|
);
|
|
636
636
|
|
|
637
|
+
// src/source/source_interconnect.ts
|
|
638
|
+
import { z as z36 } from "zod";
|
|
639
|
+
var source_interconnect = source_component_base.extend({
|
|
640
|
+
ftype: z36.literal("interconnect")
|
|
641
|
+
});
|
|
642
|
+
expectTypesMatch(true);
|
|
643
|
+
|
|
637
644
|
// src/source/any_source_component.ts
|
|
638
|
-
var any_source_component =
|
|
645
|
+
var any_source_component = z37.union([
|
|
639
646
|
source_simple_resistor,
|
|
640
647
|
source_simple_capacitor,
|
|
641
648
|
source_simple_diode,
|
|
@@ -657,6 +664,7 @@ var any_source_component = z36.union([
|
|
|
657
664
|
source_simple_mosfet,
|
|
658
665
|
source_simple_fuse,
|
|
659
666
|
source_simple_voltage_probe,
|
|
667
|
+
source_interconnect,
|
|
660
668
|
source_project_metadata,
|
|
661
669
|
source_missing_property_error,
|
|
662
670
|
source_failed_to_create_component_error,
|
|
@@ -667,95 +675,95 @@ var any_source_component = z36.union([
|
|
|
667
675
|
expectTypesMatch(true);
|
|
668
676
|
|
|
669
677
|
// src/source/source_port.ts
|
|
670
|
-
import { z as z37 } from "zod";
|
|
671
|
-
var source_port = z37.object({
|
|
672
|
-
type: z37.literal("source_port"),
|
|
673
|
-
pin_number: z37.number().optional(),
|
|
674
|
-
port_hints: z37.array(z37.string()).optional(),
|
|
675
|
-
name: z37.string(),
|
|
676
|
-
source_port_id: z37.string(),
|
|
677
|
-
source_component_id: z37.string().optional(),
|
|
678
|
-
source_group_id: z37.string().optional(),
|
|
679
|
-
subcircuit_id: z37.string().optional(),
|
|
680
|
-
subcircuit_connectivity_map_key: z37.string().optional(),
|
|
681
|
-
must_be_connected: z37.boolean().optional()
|
|
682
|
-
});
|
|
683
|
-
expectTypesMatch(true);
|
|
684
|
-
|
|
685
|
-
// src/source/source_trace.ts
|
|
686
678
|
import { z as z38 } from "zod";
|
|
687
|
-
var
|
|
688
|
-
type: z38.literal("
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
679
|
+
var source_port = z38.object({
|
|
680
|
+
type: z38.literal("source_port"),
|
|
681
|
+
pin_number: z38.number().optional(),
|
|
682
|
+
port_hints: z38.array(z38.string()).optional(),
|
|
683
|
+
name: z38.string(),
|
|
684
|
+
source_port_id: z38.string(),
|
|
685
|
+
source_component_id: z38.string().optional(),
|
|
686
|
+
source_group_id: z38.string().optional(),
|
|
692
687
|
subcircuit_id: z38.string().optional(),
|
|
693
688
|
subcircuit_connectivity_map_key: z38.string().optional(),
|
|
694
|
-
|
|
695
|
-
min_trace_thickness: z38.number().optional(),
|
|
696
|
-
display_name: z38.string().optional()
|
|
689
|
+
must_be_connected: z38.boolean().optional()
|
|
697
690
|
});
|
|
698
691
|
expectTypesMatch(true);
|
|
699
692
|
|
|
700
|
-
// src/source/
|
|
693
|
+
// src/source/source_trace.ts
|
|
701
694
|
import { z as z39 } from "zod";
|
|
702
|
-
var
|
|
703
|
-
type: z39.literal("
|
|
704
|
-
|
|
695
|
+
var source_trace = z39.object({
|
|
696
|
+
type: z39.literal("source_trace"),
|
|
697
|
+
source_trace_id: z39.string(),
|
|
698
|
+
connected_source_port_ids: z39.array(z39.string()),
|
|
699
|
+
connected_source_net_ids: z39.array(z39.string()),
|
|
705
700
|
subcircuit_id: z39.string().optional(),
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
name: z39.string().optional(),
|
|
711
|
-
was_automatically_named: z39.boolean().optional()
|
|
701
|
+
subcircuit_connectivity_map_key: z39.string().optional(),
|
|
702
|
+
max_length: z39.number().optional(),
|
|
703
|
+
min_trace_thickness: z39.number().optional(),
|
|
704
|
+
display_name: z39.string().optional()
|
|
712
705
|
});
|
|
713
706
|
expectTypesMatch(true);
|
|
714
707
|
|
|
715
|
-
// src/source/
|
|
708
|
+
// src/source/source_group.ts
|
|
716
709
|
import { z as z40 } from "zod";
|
|
717
|
-
var
|
|
718
|
-
type: z40.literal("
|
|
719
|
-
|
|
720
|
-
name: z40.string(),
|
|
721
|
-
member_source_group_ids: z40.array(z40.string()),
|
|
722
|
-
is_power: z40.boolean().optional(),
|
|
723
|
-
is_ground: z40.boolean().optional(),
|
|
724
|
-
is_digital_signal: z40.boolean().optional(),
|
|
725
|
-
is_analog_signal: z40.boolean().optional(),
|
|
726
|
-
is_positive_voltage_source: z40.boolean().optional(),
|
|
727
|
-
trace_width: z40.number().optional(),
|
|
710
|
+
var source_group = z40.object({
|
|
711
|
+
type: z40.literal("source_group"),
|
|
712
|
+
source_group_id: z40.string(),
|
|
728
713
|
subcircuit_id: z40.string().optional(),
|
|
729
|
-
|
|
714
|
+
parent_subcircuit_id: z40.string().optional(),
|
|
715
|
+
parent_source_group_id: z40.string().optional(),
|
|
716
|
+
is_subcircuit: z40.boolean().optional(),
|
|
717
|
+
show_as_schematic_box: z40.boolean().optional(),
|
|
718
|
+
name: z40.string().optional(),
|
|
719
|
+
was_automatically_named: z40.boolean().optional()
|
|
730
720
|
});
|
|
731
721
|
expectTypesMatch(true);
|
|
732
722
|
|
|
733
|
-
// src/source/
|
|
723
|
+
// src/source/source_net.ts
|
|
734
724
|
import { z as z41 } from "zod";
|
|
735
|
-
var
|
|
736
|
-
type: z41.literal("
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
725
|
+
var source_net = z41.object({
|
|
726
|
+
type: z41.literal("source_net"),
|
|
727
|
+
source_net_id: z41.string(),
|
|
728
|
+
name: z41.string(),
|
|
729
|
+
member_source_group_ids: z41.array(z41.string()),
|
|
730
|
+
is_power: z41.boolean().optional(),
|
|
731
|
+
is_ground: z41.boolean().optional(),
|
|
732
|
+
is_digital_signal: z41.boolean().optional(),
|
|
733
|
+
is_analog_signal: z41.boolean().optional(),
|
|
734
|
+
is_positive_voltage_source: z41.boolean().optional(),
|
|
735
|
+
trace_width: z41.number().optional(),
|
|
736
|
+
subcircuit_id: z41.string().optional(),
|
|
737
|
+
subcircuit_connectivity_map_key: z41.string().optional()
|
|
738
|
+
});
|
|
741
739
|
expectTypesMatch(true);
|
|
742
740
|
|
|
743
|
-
// src/source/
|
|
741
|
+
// src/source/source_board.ts
|
|
744
742
|
import { z as z42 } from "zod";
|
|
745
|
-
var
|
|
746
|
-
type: z42.literal("
|
|
747
|
-
|
|
743
|
+
var source_board = z42.object({
|
|
744
|
+
type: z42.literal("source_board"),
|
|
745
|
+
source_board_id: z42.string(),
|
|
748
746
|
source_group_id: z42.string(),
|
|
749
|
-
|
|
750
|
-
|
|
747
|
+
title: z42.string().optional()
|
|
748
|
+
}).describe("Defines a board in the source domain");
|
|
749
|
+
expectTypesMatch(true);
|
|
750
|
+
|
|
751
|
+
// src/source/source_pcb_ground_plane.ts
|
|
752
|
+
import { z as z43 } from "zod";
|
|
753
|
+
var source_pcb_ground_plane = z43.object({
|
|
754
|
+
type: z43.literal("source_pcb_ground_plane"),
|
|
755
|
+
source_pcb_ground_plane_id: z43.string(),
|
|
756
|
+
source_group_id: z43.string(),
|
|
757
|
+
source_net_id: z43.string(),
|
|
758
|
+
subcircuit_id: z43.string().optional()
|
|
751
759
|
}).describe("Defines a ground plane in the source domain");
|
|
752
760
|
expectTypesMatch(true);
|
|
753
761
|
|
|
754
762
|
// src/source/source_manually_placed_via.ts
|
|
755
|
-
import { z as
|
|
763
|
+
import { z as z45 } from "zod";
|
|
756
764
|
|
|
757
765
|
// src/pcb/properties/layer_ref.ts
|
|
758
|
-
import { z as
|
|
766
|
+
import { z as z44 } from "zod";
|
|
759
767
|
var all_layers = [
|
|
760
768
|
"top",
|
|
761
769
|
"bottom",
|
|
@@ -766,9 +774,9 @@ var all_layers = [
|
|
|
766
774
|
"inner5",
|
|
767
775
|
"inner6"
|
|
768
776
|
];
|
|
769
|
-
var layer_string =
|
|
777
|
+
var layer_string = z44.enum(all_layers);
|
|
770
778
|
var layer_ref = layer_string.or(
|
|
771
|
-
|
|
779
|
+
z44.object({
|
|
772
780
|
name: layer_string
|
|
773
781
|
})
|
|
774
782
|
).transform((layer) => {
|
|
@@ -778,253 +786,253 @@ var layer_ref = layer_string.or(
|
|
|
778
786
|
return layer.name;
|
|
779
787
|
});
|
|
780
788
|
expectTypesMatch(true);
|
|
781
|
-
var visible_layer =
|
|
789
|
+
var visible_layer = z44.enum(["top", "bottom"]);
|
|
782
790
|
|
|
783
791
|
// src/source/source_manually_placed_via.ts
|
|
784
|
-
var source_manually_placed_via =
|
|
785
|
-
type:
|
|
786
|
-
source_manually_placed_via_id:
|
|
787
|
-
source_group_id:
|
|
788
|
-
source_net_id:
|
|
789
|
-
subcircuit_id:
|
|
790
|
-
source_trace_id:
|
|
792
|
+
var source_manually_placed_via = z45.object({
|
|
793
|
+
type: z45.literal("source_manually_placed_via"),
|
|
794
|
+
source_manually_placed_via_id: z45.string(),
|
|
795
|
+
source_group_id: z45.string(),
|
|
796
|
+
source_net_id: z45.string(),
|
|
797
|
+
subcircuit_id: z45.string().optional(),
|
|
798
|
+
source_trace_id: z45.string().optional()
|
|
791
799
|
}).describe("Defines a via that is manually placed in the source domain");
|
|
792
800
|
expectTypesMatch(true);
|
|
793
801
|
|
|
794
802
|
// src/source/source_pin_must_be_connected_error.ts
|
|
795
|
-
import { z as
|
|
796
|
-
var source_pin_must_be_connected_error =
|
|
797
|
-
type:
|
|
803
|
+
import { z as z46 } from "zod";
|
|
804
|
+
var source_pin_must_be_connected_error = z46.object({
|
|
805
|
+
type: z46.literal("source_pin_must_be_connected_error"),
|
|
798
806
|
source_pin_must_be_connected_error_id: getZodPrefixedIdWithDefault(
|
|
799
807
|
"source_pin_must_be_connected_error"
|
|
800
808
|
),
|
|
801
|
-
error_type:
|
|
802
|
-
message:
|
|
803
|
-
source_component_id:
|
|
804
|
-
source_port_id:
|
|
805
|
-
subcircuit_id:
|
|
809
|
+
error_type: z46.literal("source_pin_must_be_connected_error").default("source_pin_must_be_connected_error"),
|
|
810
|
+
message: z46.string(),
|
|
811
|
+
source_component_id: z46.string(),
|
|
812
|
+
source_port_id: z46.string(),
|
|
813
|
+
subcircuit_id: z46.string().optional()
|
|
806
814
|
}).describe(
|
|
807
815
|
"Error emitted when a pin with mustBeConnected attribute is not connected to any trace"
|
|
808
816
|
);
|
|
809
817
|
expectTypesMatch(true);
|
|
810
818
|
|
|
811
819
|
// src/source/unknown_error_finding_part.ts
|
|
812
|
-
import { z as
|
|
813
|
-
var unknown_error_finding_part =
|
|
814
|
-
type:
|
|
820
|
+
import { z as z47 } from "zod";
|
|
821
|
+
var unknown_error_finding_part = z47.object({
|
|
822
|
+
type: z47.literal("unknown_error_finding_part"),
|
|
815
823
|
unknown_error_finding_part_id: getZodPrefixedIdWithDefault(
|
|
816
824
|
"unknown_error_finding_part"
|
|
817
825
|
),
|
|
818
|
-
error_type:
|
|
819
|
-
message:
|
|
820
|
-
source_component_id:
|
|
821
|
-
subcircuit_id:
|
|
826
|
+
error_type: z47.literal("unknown_error_finding_part").default("unknown_error_finding_part"),
|
|
827
|
+
message: z47.string(),
|
|
828
|
+
source_component_id: z47.string().optional(),
|
|
829
|
+
subcircuit_id: z47.string().optional()
|
|
822
830
|
}).describe(
|
|
823
831
|
"Error emitted when an unexpected error occurs while finding a part"
|
|
824
832
|
);
|
|
825
833
|
expectTypesMatch(true);
|
|
826
834
|
|
|
827
835
|
// src/schematic/schematic_box.ts
|
|
828
|
-
import { z as
|
|
829
|
-
var schematic_box =
|
|
830
|
-
type:
|
|
831
|
-
schematic_component_id:
|
|
836
|
+
import { z as z48 } from "zod";
|
|
837
|
+
var schematic_box = z48.object({
|
|
838
|
+
type: z48.literal("schematic_box"),
|
|
839
|
+
schematic_component_id: z48.string().optional(),
|
|
832
840
|
width: distance,
|
|
833
841
|
height: distance,
|
|
834
|
-
is_dashed:
|
|
842
|
+
is_dashed: z48.boolean().default(false),
|
|
835
843
|
x: distance,
|
|
836
844
|
y: distance,
|
|
837
|
-
subcircuit_id:
|
|
845
|
+
subcircuit_id: z48.string().optional()
|
|
838
846
|
}).describe("Draws a box on the schematic");
|
|
839
847
|
expectTypesMatch(true);
|
|
840
848
|
|
|
841
849
|
// src/schematic/schematic_path.ts
|
|
842
|
-
import { z as
|
|
843
|
-
var schematic_path =
|
|
844
|
-
type:
|
|
845
|
-
schematic_component_id:
|
|
846
|
-
fill_color:
|
|
847
|
-
is_filled:
|
|
848
|
-
points:
|
|
849
|
-
subcircuit_id:
|
|
850
|
+
import { z as z49 } from "zod";
|
|
851
|
+
var schematic_path = z49.object({
|
|
852
|
+
type: z49.literal("schematic_path"),
|
|
853
|
+
schematic_component_id: z49.string(),
|
|
854
|
+
fill_color: z49.enum(["red", "blue"]).optional(),
|
|
855
|
+
is_filled: z49.boolean().optional(),
|
|
856
|
+
points: z49.array(point),
|
|
857
|
+
subcircuit_id: z49.string().optional()
|
|
850
858
|
});
|
|
851
859
|
expectTypesMatch(true);
|
|
852
860
|
|
|
853
861
|
// src/schematic/schematic_component.ts
|
|
854
|
-
import { z as
|
|
855
|
-
var schematic_pin_styles =
|
|
856
|
-
|
|
862
|
+
import { z as z50 } from "zod";
|
|
863
|
+
var schematic_pin_styles = z50.record(
|
|
864
|
+
z50.object({
|
|
857
865
|
left_margin: length.optional(),
|
|
858
866
|
right_margin: length.optional(),
|
|
859
867
|
top_margin: length.optional(),
|
|
860
868
|
bottom_margin: length.optional()
|
|
861
869
|
})
|
|
862
870
|
);
|
|
863
|
-
var schematic_component_port_arrangement_by_size =
|
|
864
|
-
left_size:
|
|
865
|
-
right_size:
|
|
866
|
-
top_size:
|
|
867
|
-
bottom_size:
|
|
871
|
+
var schematic_component_port_arrangement_by_size = z50.object({
|
|
872
|
+
left_size: z50.number(),
|
|
873
|
+
right_size: z50.number(),
|
|
874
|
+
top_size: z50.number().optional(),
|
|
875
|
+
bottom_size: z50.number().optional()
|
|
868
876
|
});
|
|
869
877
|
expectTypesMatch(true);
|
|
870
|
-
var schematic_component_port_arrangement_by_sides =
|
|
871
|
-
left_side:
|
|
872
|
-
pins:
|
|
878
|
+
var schematic_component_port_arrangement_by_sides = z50.object({
|
|
879
|
+
left_side: z50.object({
|
|
880
|
+
pins: z50.array(z50.number()),
|
|
873
881
|
// @ts-ignore
|
|
874
|
-
direction:
|
|
882
|
+
direction: z50.enum(["top-to-bottom", "bottom-to-top"]).optional()
|
|
875
883
|
}).optional(),
|
|
876
|
-
right_side:
|
|
877
|
-
pins:
|
|
884
|
+
right_side: z50.object({
|
|
885
|
+
pins: z50.array(z50.number()),
|
|
878
886
|
// @ts-ignore
|
|
879
|
-
direction:
|
|
887
|
+
direction: z50.enum(["top-to-bottom", "bottom-to-top"]).optional()
|
|
880
888
|
}).optional(),
|
|
881
|
-
top_side:
|
|
882
|
-
pins:
|
|
889
|
+
top_side: z50.object({
|
|
890
|
+
pins: z50.array(z50.number()),
|
|
883
891
|
// @ts-ignore
|
|
884
|
-
direction:
|
|
892
|
+
direction: z50.enum(["left-to-right", "right-to-left"]).optional()
|
|
885
893
|
}).optional(),
|
|
886
|
-
bottom_side:
|
|
887
|
-
pins:
|
|
894
|
+
bottom_side: z50.object({
|
|
895
|
+
pins: z50.array(z50.number()),
|
|
888
896
|
// @ts-ignore
|
|
889
|
-
direction:
|
|
897
|
+
direction: z50.enum(["left-to-right", "right-to-left"]).optional()
|
|
890
898
|
}).optional()
|
|
891
899
|
});
|
|
892
900
|
expectTypesMatch(true);
|
|
893
|
-
var port_arrangement =
|
|
901
|
+
var port_arrangement = z50.union([
|
|
894
902
|
schematic_component_port_arrangement_by_size,
|
|
895
903
|
schematic_component_port_arrangement_by_sides
|
|
896
904
|
]);
|
|
897
|
-
var schematic_component =
|
|
898
|
-
type:
|
|
905
|
+
var schematic_component = z50.object({
|
|
906
|
+
type: z50.literal("schematic_component"),
|
|
899
907
|
size,
|
|
900
908
|
center: point,
|
|
901
|
-
source_component_id:
|
|
902
|
-
schematic_component_id:
|
|
909
|
+
source_component_id: z50.string().optional(),
|
|
910
|
+
schematic_component_id: z50.string(),
|
|
903
911
|
pin_spacing: length.optional(),
|
|
904
912
|
pin_styles: schematic_pin_styles.optional(),
|
|
905
913
|
box_width: length.optional(),
|
|
906
|
-
symbol_name:
|
|
914
|
+
symbol_name: z50.string().optional(),
|
|
907
915
|
port_arrangement: port_arrangement.optional(),
|
|
908
|
-
port_labels:
|
|
909
|
-
symbol_display_value:
|
|
910
|
-
subcircuit_id:
|
|
911
|
-
schematic_group_id:
|
|
912
|
-
is_schematic_group:
|
|
913
|
-
source_group_id:
|
|
914
|
-
is_box_with_pins:
|
|
916
|
+
port_labels: z50.record(z50.string()).optional(),
|
|
917
|
+
symbol_display_value: z50.string().optional(),
|
|
918
|
+
subcircuit_id: z50.string().optional(),
|
|
919
|
+
schematic_group_id: z50.string().optional(),
|
|
920
|
+
is_schematic_group: z50.boolean().optional(),
|
|
921
|
+
source_group_id: z50.string().optional(),
|
|
922
|
+
is_box_with_pins: z50.boolean().optional().default(true)
|
|
915
923
|
});
|
|
916
924
|
expectTypesMatch(true);
|
|
917
925
|
|
|
918
926
|
// src/schematic/schematic_line.ts
|
|
919
|
-
import { z as
|
|
920
|
-
var schematic_line =
|
|
921
|
-
type:
|
|
927
|
+
import { z as z51 } from "zod";
|
|
928
|
+
var schematic_line = z51.object({
|
|
929
|
+
type: z51.literal("schematic_line"),
|
|
922
930
|
schematic_line_id: getZodPrefixedIdWithDefault("schematic_line"),
|
|
923
|
-
schematic_component_id:
|
|
931
|
+
schematic_component_id: z51.string(),
|
|
924
932
|
x1: distance,
|
|
925
933
|
y1: distance,
|
|
926
934
|
x2: distance,
|
|
927
935
|
y2: distance,
|
|
928
936
|
stroke_width: distance.nullable().optional(),
|
|
929
|
-
color:
|
|
930
|
-
is_dashed:
|
|
931
|
-
subcircuit_id:
|
|
937
|
+
color: z51.string().default("#000000"),
|
|
938
|
+
is_dashed: z51.boolean().default(false),
|
|
939
|
+
subcircuit_id: z51.string().optional()
|
|
932
940
|
}).describe("Draws a styled line on the schematic");
|
|
933
941
|
expectTypesMatch(true);
|
|
934
942
|
|
|
935
943
|
// src/schematic/schematic_rect.ts
|
|
936
|
-
import { z as
|
|
937
|
-
var schematic_rect =
|
|
938
|
-
type:
|
|
944
|
+
import { z as z52 } from "zod";
|
|
945
|
+
var schematic_rect = z52.object({
|
|
946
|
+
type: z52.literal("schematic_rect"),
|
|
939
947
|
schematic_rect_id: getZodPrefixedIdWithDefault("schematic_rect"),
|
|
940
|
-
schematic_component_id:
|
|
948
|
+
schematic_component_id: z52.string(),
|
|
941
949
|
center: point,
|
|
942
950
|
width: distance,
|
|
943
951
|
height: distance,
|
|
944
952
|
rotation: rotation.default(0),
|
|
945
953
|
stroke_width: distance.nullable().optional(),
|
|
946
|
-
color:
|
|
947
|
-
is_filled:
|
|
948
|
-
fill_color:
|
|
949
|
-
is_dashed:
|
|
950
|
-
subcircuit_id:
|
|
954
|
+
color: z52.string().default("#000000"),
|
|
955
|
+
is_filled: z52.boolean().default(false),
|
|
956
|
+
fill_color: z52.string().optional(),
|
|
957
|
+
is_dashed: z52.boolean().default(false),
|
|
958
|
+
subcircuit_id: z52.string().optional()
|
|
951
959
|
}).describe("Draws a styled rectangle on the schematic");
|
|
952
960
|
expectTypesMatch(true);
|
|
953
961
|
|
|
954
962
|
// src/schematic/schematic_circle.ts
|
|
955
|
-
import { z as
|
|
956
|
-
var schematic_circle =
|
|
957
|
-
type:
|
|
963
|
+
import { z as z53 } from "zod";
|
|
964
|
+
var schematic_circle = z53.object({
|
|
965
|
+
type: z53.literal("schematic_circle"),
|
|
958
966
|
schematic_circle_id: getZodPrefixedIdWithDefault("schematic_circle"),
|
|
959
|
-
schematic_component_id:
|
|
967
|
+
schematic_component_id: z53.string(),
|
|
960
968
|
center: point,
|
|
961
969
|
radius: distance,
|
|
962
970
|
stroke_width: distance.nullable().optional(),
|
|
963
|
-
color:
|
|
964
|
-
is_filled:
|
|
965
|
-
fill_color:
|
|
966
|
-
is_dashed:
|
|
967
|
-
subcircuit_id:
|
|
971
|
+
color: z53.string().default("#000000"),
|
|
972
|
+
is_filled: z53.boolean().default(false),
|
|
973
|
+
fill_color: z53.string().optional(),
|
|
974
|
+
is_dashed: z53.boolean().default(false),
|
|
975
|
+
subcircuit_id: z53.string().optional()
|
|
968
976
|
}).describe("Draws a styled circle on the schematic");
|
|
969
977
|
expectTypesMatch(true);
|
|
970
978
|
|
|
971
979
|
// src/schematic/schematic_arc.ts
|
|
972
|
-
import { z as
|
|
973
|
-
var schematic_arc =
|
|
974
|
-
type:
|
|
980
|
+
import { z as z54 } from "zod";
|
|
981
|
+
var schematic_arc = z54.object({
|
|
982
|
+
type: z54.literal("schematic_arc"),
|
|
975
983
|
schematic_arc_id: getZodPrefixedIdWithDefault("schematic_arc"),
|
|
976
|
-
schematic_component_id:
|
|
984
|
+
schematic_component_id: z54.string(),
|
|
977
985
|
center: point,
|
|
978
986
|
radius: distance,
|
|
979
987
|
start_angle_degrees: rotation,
|
|
980
988
|
end_angle_degrees: rotation,
|
|
981
|
-
direction:
|
|
989
|
+
direction: z54.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
|
|
982
990
|
stroke_width: distance.nullable().optional(),
|
|
983
|
-
color:
|
|
984
|
-
is_dashed:
|
|
985
|
-
subcircuit_id:
|
|
991
|
+
color: z54.string().default("#000000"),
|
|
992
|
+
is_dashed: z54.boolean().default(false),
|
|
993
|
+
subcircuit_id: z54.string().optional()
|
|
986
994
|
}).describe("Draws a styled arc on the schematic");
|
|
987
995
|
expectTypesMatch(true);
|
|
988
996
|
|
|
989
997
|
// src/schematic/schematic_trace.ts
|
|
990
|
-
import { z as
|
|
991
|
-
var schematic_trace =
|
|
992
|
-
type:
|
|
993
|
-
schematic_trace_id:
|
|
994
|
-
source_trace_id:
|
|
995
|
-
junctions:
|
|
996
|
-
|
|
997
|
-
x:
|
|
998
|
-
y:
|
|
998
|
+
import { z as z55 } from "zod";
|
|
999
|
+
var schematic_trace = z55.object({
|
|
1000
|
+
type: z55.literal("schematic_trace"),
|
|
1001
|
+
schematic_trace_id: z55.string(),
|
|
1002
|
+
source_trace_id: z55.string().optional(),
|
|
1003
|
+
junctions: z55.array(
|
|
1004
|
+
z55.object({
|
|
1005
|
+
x: z55.number(),
|
|
1006
|
+
y: z55.number()
|
|
999
1007
|
})
|
|
1000
1008
|
),
|
|
1001
|
-
edges:
|
|
1002
|
-
|
|
1003
|
-
from:
|
|
1004
|
-
x:
|
|
1005
|
-
y:
|
|
1009
|
+
edges: z55.array(
|
|
1010
|
+
z55.object({
|
|
1011
|
+
from: z55.object({
|
|
1012
|
+
x: z55.number(),
|
|
1013
|
+
y: z55.number()
|
|
1006
1014
|
}),
|
|
1007
|
-
to:
|
|
1008
|
-
x:
|
|
1009
|
-
y:
|
|
1015
|
+
to: z55.object({
|
|
1016
|
+
x: z55.number(),
|
|
1017
|
+
y: z55.number()
|
|
1010
1018
|
}),
|
|
1011
|
-
is_crossing:
|
|
1012
|
-
from_schematic_port_id:
|
|
1013
|
-
to_schematic_port_id:
|
|
1019
|
+
is_crossing: z55.boolean().optional(),
|
|
1020
|
+
from_schematic_port_id: z55.string().optional(),
|
|
1021
|
+
to_schematic_port_id: z55.string().optional()
|
|
1014
1022
|
})
|
|
1015
1023
|
),
|
|
1016
|
-
subcircuit_id:
|
|
1024
|
+
subcircuit_id: z55.string().optional(),
|
|
1017
1025
|
// TODO: make required in a future release
|
|
1018
|
-
subcircuit_connectivity_map_key:
|
|
1026
|
+
subcircuit_connectivity_map_key: z55.string().optional()
|
|
1019
1027
|
});
|
|
1020
1028
|
expectTypesMatch(true);
|
|
1021
1029
|
|
|
1022
1030
|
// src/schematic/schematic_text.ts
|
|
1023
|
-
import { z as
|
|
1031
|
+
import { z as z57 } from "zod";
|
|
1024
1032
|
|
|
1025
1033
|
// src/common/FivePointAnchor.ts
|
|
1026
|
-
import { z as
|
|
1027
|
-
var fivePointAnchor =
|
|
1034
|
+
import { z as z56 } from "zod";
|
|
1035
|
+
var fivePointAnchor = z56.enum([
|
|
1028
1036
|
"center",
|
|
1029
1037
|
"left",
|
|
1030
1038
|
"right",
|
|
@@ -1034,111 +1042,111 @@ var fivePointAnchor = z55.enum([
|
|
|
1034
1042
|
expectTypesMatch(true);
|
|
1035
1043
|
|
|
1036
1044
|
// src/schematic/schematic_text.ts
|
|
1037
|
-
var schematic_text =
|
|
1038
|
-
type:
|
|
1039
|
-
schematic_component_id:
|
|
1040
|
-
schematic_text_id:
|
|
1041
|
-
text:
|
|
1042
|
-
font_size:
|
|
1043
|
-
position:
|
|
1045
|
+
var schematic_text = z57.object({
|
|
1046
|
+
type: z57.literal("schematic_text"),
|
|
1047
|
+
schematic_component_id: z57.string().optional(),
|
|
1048
|
+
schematic_text_id: z57.string(),
|
|
1049
|
+
text: z57.string(),
|
|
1050
|
+
font_size: z57.number().default(0.18),
|
|
1051
|
+
position: z57.object({
|
|
1044
1052
|
x: distance,
|
|
1045
1053
|
y: distance
|
|
1046
1054
|
}),
|
|
1047
|
-
rotation:
|
|
1048
|
-
anchor:
|
|
1049
|
-
color:
|
|
1050
|
-
subcircuit_id:
|
|
1055
|
+
rotation: z57.number().default(0),
|
|
1056
|
+
anchor: z57.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
|
|
1057
|
+
color: z57.string().default("#000000"),
|
|
1058
|
+
subcircuit_id: z57.string().optional()
|
|
1051
1059
|
});
|
|
1052
1060
|
expectTypesMatch(true);
|
|
1053
1061
|
|
|
1054
1062
|
// src/schematic/schematic_port.ts
|
|
1055
|
-
import { z as
|
|
1056
|
-
var schematic_port =
|
|
1057
|
-
type:
|
|
1058
|
-
schematic_port_id:
|
|
1059
|
-
source_port_id:
|
|
1060
|
-
schematic_component_id:
|
|
1063
|
+
import { z as z58 } from "zod";
|
|
1064
|
+
var schematic_port = z58.object({
|
|
1065
|
+
type: z58.literal("schematic_port"),
|
|
1066
|
+
schematic_port_id: z58.string(),
|
|
1067
|
+
source_port_id: z58.string(),
|
|
1068
|
+
schematic_component_id: z58.string().optional(),
|
|
1061
1069
|
center: point,
|
|
1062
|
-
facing_direction:
|
|
1063
|
-
distance_from_component_edge:
|
|
1064
|
-
side_of_component:
|
|
1065
|
-
true_ccw_index:
|
|
1066
|
-
pin_number:
|
|
1067
|
-
display_pin_label:
|
|
1068
|
-
subcircuit_id:
|
|
1069
|
-
is_connected:
|
|
1070
|
-
has_input_arrow:
|
|
1071
|
-
has_output_arrow:
|
|
1070
|
+
facing_direction: z58.enum(["up", "down", "left", "right"]).optional(),
|
|
1071
|
+
distance_from_component_edge: z58.number().optional(),
|
|
1072
|
+
side_of_component: z58.enum(["top", "bottom", "left", "right"]).optional(),
|
|
1073
|
+
true_ccw_index: z58.number().optional(),
|
|
1074
|
+
pin_number: z58.number().optional(),
|
|
1075
|
+
display_pin_label: z58.string().optional(),
|
|
1076
|
+
subcircuit_id: z58.string().optional(),
|
|
1077
|
+
is_connected: z58.boolean().optional(),
|
|
1078
|
+
has_input_arrow: z58.boolean().optional(),
|
|
1079
|
+
has_output_arrow: z58.boolean().optional()
|
|
1072
1080
|
}).describe("Defines a port on a schematic component");
|
|
1073
1081
|
expectTypesMatch(true);
|
|
1074
1082
|
|
|
1075
1083
|
// src/schematic/schematic_net_label.ts
|
|
1076
|
-
import { z as
|
|
1077
|
-
var schematic_net_label =
|
|
1078
|
-
type:
|
|
1084
|
+
import { z as z59 } from "zod";
|
|
1085
|
+
var schematic_net_label = z59.object({
|
|
1086
|
+
type: z59.literal("schematic_net_label"),
|
|
1079
1087
|
schematic_net_label_id: getZodPrefixedIdWithDefault("schematic_net_label"),
|
|
1080
|
-
schematic_trace_id:
|
|
1081
|
-
source_trace_id:
|
|
1082
|
-
source_net_id:
|
|
1088
|
+
schematic_trace_id: z59.string().optional(),
|
|
1089
|
+
source_trace_id: z59.string().optional(),
|
|
1090
|
+
source_net_id: z59.string(),
|
|
1083
1091
|
center: point,
|
|
1084
1092
|
anchor_position: point.optional(),
|
|
1085
|
-
anchor_side:
|
|
1086
|
-
text:
|
|
1087
|
-
symbol_name:
|
|
1088
|
-
is_movable:
|
|
1089
|
-
subcircuit_id:
|
|
1093
|
+
anchor_side: z59.enum(["top", "bottom", "left", "right"]),
|
|
1094
|
+
text: z59.string(),
|
|
1095
|
+
symbol_name: z59.string().optional(),
|
|
1096
|
+
is_movable: z59.boolean().optional(),
|
|
1097
|
+
subcircuit_id: z59.string().optional()
|
|
1090
1098
|
});
|
|
1091
1099
|
expectTypesMatch(true);
|
|
1092
1100
|
|
|
1093
1101
|
// src/schematic/schematic_error.ts
|
|
1094
|
-
import { z as
|
|
1095
|
-
var schematic_error =
|
|
1096
|
-
type:
|
|
1097
|
-
schematic_error_id:
|
|
1102
|
+
import { z as z60 } from "zod";
|
|
1103
|
+
var schematic_error = z60.object({
|
|
1104
|
+
type: z60.literal("schematic_error"),
|
|
1105
|
+
schematic_error_id: z60.string(),
|
|
1098
1106
|
// eventually each error type should be broken out into a dir of files
|
|
1099
|
-
error_type:
|
|
1100
|
-
message:
|
|
1101
|
-
subcircuit_id:
|
|
1107
|
+
error_type: z60.literal("schematic_port_not_found").default("schematic_port_not_found"),
|
|
1108
|
+
message: z60.string(),
|
|
1109
|
+
subcircuit_id: z60.string().optional()
|
|
1102
1110
|
}).describe("Defines a schematic error on the schematic");
|
|
1103
1111
|
expectTypesMatch(true);
|
|
1104
1112
|
|
|
1105
1113
|
// src/schematic/schematic_layout_error.ts
|
|
1106
|
-
import { z as
|
|
1107
|
-
var schematic_layout_error =
|
|
1108
|
-
type:
|
|
1114
|
+
import { z as z61 } from "zod";
|
|
1115
|
+
var schematic_layout_error = z61.object({
|
|
1116
|
+
type: z61.literal("schematic_layout_error"),
|
|
1109
1117
|
schematic_layout_error_id: getZodPrefixedIdWithDefault(
|
|
1110
1118
|
"schematic_layout_error"
|
|
1111
1119
|
),
|
|
1112
|
-
error_type:
|
|
1113
|
-
message:
|
|
1114
|
-
source_group_id:
|
|
1115
|
-
schematic_group_id:
|
|
1116
|
-
subcircuit_id:
|
|
1120
|
+
error_type: z61.literal("schematic_layout_error").default("schematic_layout_error"),
|
|
1121
|
+
message: z61.string(),
|
|
1122
|
+
source_group_id: z61.string(),
|
|
1123
|
+
schematic_group_id: z61.string(),
|
|
1124
|
+
subcircuit_id: z61.string().optional()
|
|
1117
1125
|
}).describe("Error emitted when schematic layout fails for a group");
|
|
1118
1126
|
expectTypesMatch(true);
|
|
1119
1127
|
|
|
1120
1128
|
// src/schematic/schematic_debug_object.ts
|
|
1121
|
-
import { z as
|
|
1122
|
-
var schematic_debug_object_base =
|
|
1123
|
-
type:
|
|
1124
|
-
label:
|
|
1125
|
-
subcircuit_id:
|
|
1129
|
+
import { z as z62 } from "zod";
|
|
1130
|
+
var schematic_debug_object_base = z62.object({
|
|
1131
|
+
type: z62.literal("schematic_debug_object"),
|
|
1132
|
+
label: z62.string().optional(),
|
|
1133
|
+
subcircuit_id: z62.string().optional()
|
|
1126
1134
|
});
|
|
1127
1135
|
var schematic_debug_rect = schematic_debug_object_base.extend({
|
|
1128
|
-
shape:
|
|
1136
|
+
shape: z62.literal("rect"),
|
|
1129
1137
|
center: point,
|
|
1130
1138
|
size
|
|
1131
1139
|
});
|
|
1132
1140
|
var schematic_debug_line = schematic_debug_object_base.extend({
|
|
1133
|
-
shape:
|
|
1141
|
+
shape: z62.literal("line"),
|
|
1134
1142
|
start: point,
|
|
1135
1143
|
end: point
|
|
1136
1144
|
});
|
|
1137
1145
|
var schematic_debug_point = schematic_debug_object_base.extend({
|
|
1138
|
-
shape:
|
|
1146
|
+
shape: z62.literal("point"),
|
|
1139
1147
|
center: point
|
|
1140
1148
|
});
|
|
1141
|
-
var schematic_debug_object =
|
|
1149
|
+
var schematic_debug_object = z62.discriminatedUnion("shape", [
|
|
1142
1150
|
schematic_debug_rect,
|
|
1143
1151
|
schematic_debug_line,
|
|
1144
1152
|
schematic_debug_point
|
|
@@ -1146,268 +1154,268 @@ var schematic_debug_object = z61.discriminatedUnion("shape", [
|
|
|
1146
1154
|
expectTypesMatch(true);
|
|
1147
1155
|
|
|
1148
1156
|
// src/schematic/schematic_voltage_probe.ts
|
|
1149
|
-
import { z as
|
|
1150
|
-
var schematic_voltage_probe =
|
|
1151
|
-
type:
|
|
1152
|
-
schematic_voltage_probe_id:
|
|
1153
|
-
source_component_id:
|
|
1154
|
-
name:
|
|
1157
|
+
import { z as z63 } from "zod";
|
|
1158
|
+
var schematic_voltage_probe = z63.object({
|
|
1159
|
+
type: z63.literal("schematic_voltage_probe"),
|
|
1160
|
+
schematic_voltage_probe_id: z63.string(),
|
|
1161
|
+
source_component_id: z63.string().optional(),
|
|
1162
|
+
name: z63.string().optional(),
|
|
1155
1163
|
position: point,
|
|
1156
|
-
schematic_trace_id:
|
|
1164
|
+
schematic_trace_id: z63.string(),
|
|
1157
1165
|
voltage: voltage.optional(),
|
|
1158
|
-
subcircuit_id:
|
|
1159
|
-
color:
|
|
1166
|
+
subcircuit_id: z63.string().optional(),
|
|
1167
|
+
color: z63.string().optional()
|
|
1160
1168
|
}).describe("Defines a voltage probe measurement point on a schematic trace");
|
|
1161
1169
|
expectTypesMatch(true);
|
|
1162
1170
|
|
|
1163
1171
|
// src/schematic/schematic_manual_edit_conflict_warning.ts
|
|
1164
|
-
import { z as
|
|
1165
|
-
var schematic_manual_edit_conflict_warning =
|
|
1166
|
-
type:
|
|
1172
|
+
import { z as z64 } from "zod";
|
|
1173
|
+
var schematic_manual_edit_conflict_warning = z64.object({
|
|
1174
|
+
type: z64.literal("schematic_manual_edit_conflict_warning"),
|
|
1167
1175
|
schematic_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
|
|
1168
1176
|
"schematic_manual_edit_conflict_warning"
|
|
1169
1177
|
),
|
|
1170
|
-
warning_type:
|
|
1171
|
-
message:
|
|
1172
|
-
schematic_component_id:
|
|
1173
|
-
schematic_group_id:
|
|
1174
|
-
subcircuit_id:
|
|
1175
|
-
source_component_id:
|
|
1178
|
+
warning_type: z64.literal("schematic_manual_edit_conflict_warning").default("schematic_manual_edit_conflict_warning"),
|
|
1179
|
+
message: z64.string(),
|
|
1180
|
+
schematic_component_id: z64.string(),
|
|
1181
|
+
schematic_group_id: z64.string().optional(),
|
|
1182
|
+
subcircuit_id: z64.string().optional(),
|
|
1183
|
+
source_component_id: z64.string()
|
|
1176
1184
|
}).describe(
|
|
1177
1185
|
"Warning emitted when a component has both manual placement and explicit schX/schY coordinates"
|
|
1178
1186
|
);
|
|
1179
1187
|
expectTypesMatch(true);
|
|
1180
1188
|
|
|
1181
1189
|
// src/schematic/schematic_group.ts
|
|
1182
|
-
import { z as
|
|
1183
|
-
var schematic_group =
|
|
1184
|
-
type:
|
|
1190
|
+
import { z as z65 } from "zod";
|
|
1191
|
+
var schematic_group = z65.object({
|
|
1192
|
+
type: z65.literal("schematic_group"),
|
|
1185
1193
|
schematic_group_id: getZodPrefixedIdWithDefault("schematic_group"),
|
|
1186
|
-
source_group_id:
|
|
1187
|
-
is_subcircuit:
|
|
1188
|
-
subcircuit_id:
|
|
1194
|
+
source_group_id: z65.string(),
|
|
1195
|
+
is_subcircuit: z65.boolean().optional(),
|
|
1196
|
+
subcircuit_id: z65.string().optional(),
|
|
1189
1197
|
width: length,
|
|
1190
1198
|
height: length,
|
|
1191
1199
|
center: point,
|
|
1192
|
-
schematic_component_ids:
|
|
1193
|
-
show_as_schematic_box:
|
|
1194
|
-
name:
|
|
1195
|
-
description:
|
|
1200
|
+
schematic_component_ids: z65.array(z65.string()),
|
|
1201
|
+
show_as_schematic_box: z65.boolean().optional(),
|
|
1202
|
+
name: z65.string().optional(),
|
|
1203
|
+
description: z65.string().optional()
|
|
1196
1204
|
}).describe("Defines a group of components on the schematic");
|
|
1197
1205
|
expectTypesMatch(true);
|
|
1198
1206
|
|
|
1199
1207
|
// src/schematic/schematic_table.ts
|
|
1200
|
-
import { z as
|
|
1201
|
-
var schematic_table =
|
|
1202
|
-
type:
|
|
1208
|
+
import { z as z66 } from "zod";
|
|
1209
|
+
var schematic_table = z66.object({
|
|
1210
|
+
type: z66.literal("schematic_table"),
|
|
1203
1211
|
schematic_table_id: getZodPrefixedIdWithDefault("schematic_table"),
|
|
1204
1212
|
anchor_position: point,
|
|
1205
|
-
column_widths:
|
|
1206
|
-
row_heights:
|
|
1213
|
+
column_widths: z66.array(distance),
|
|
1214
|
+
row_heights: z66.array(distance),
|
|
1207
1215
|
cell_padding: distance.optional(),
|
|
1208
1216
|
border_width: distance.optional(),
|
|
1209
|
-
subcircuit_id:
|
|
1210
|
-
schematic_component_id:
|
|
1217
|
+
subcircuit_id: z66.string().optional(),
|
|
1218
|
+
schematic_component_id: z66.string().optional(),
|
|
1211
1219
|
anchor: ninePointAnchor.optional()
|
|
1212
1220
|
}).describe("Defines a table on the schematic");
|
|
1213
1221
|
expectTypesMatch(true);
|
|
1214
1222
|
|
|
1215
1223
|
// src/schematic/schematic_table_cell.ts
|
|
1216
|
-
import { z as
|
|
1217
|
-
var schematic_table_cell =
|
|
1218
|
-
type:
|
|
1224
|
+
import { z as z67 } from "zod";
|
|
1225
|
+
var schematic_table_cell = z67.object({
|
|
1226
|
+
type: z67.literal("schematic_table_cell"),
|
|
1219
1227
|
schematic_table_cell_id: getZodPrefixedIdWithDefault(
|
|
1220
1228
|
"schematic_table_cell"
|
|
1221
1229
|
),
|
|
1222
|
-
schematic_table_id:
|
|
1223
|
-
start_row_index:
|
|
1224
|
-
end_row_index:
|
|
1225
|
-
start_column_index:
|
|
1226
|
-
end_column_index:
|
|
1227
|
-
text:
|
|
1230
|
+
schematic_table_id: z67.string(),
|
|
1231
|
+
start_row_index: z67.number(),
|
|
1232
|
+
end_row_index: z67.number(),
|
|
1233
|
+
start_column_index: z67.number(),
|
|
1234
|
+
end_column_index: z67.number(),
|
|
1235
|
+
text: z67.string().optional(),
|
|
1228
1236
|
center: point,
|
|
1229
1237
|
width: distance,
|
|
1230
1238
|
height: distance,
|
|
1231
|
-
horizontal_align:
|
|
1232
|
-
vertical_align:
|
|
1239
|
+
horizontal_align: z67.enum(["left", "center", "right"]).optional(),
|
|
1240
|
+
vertical_align: z67.enum(["top", "middle", "bottom"]).optional(),
|
|
1233
1241
|
font_size: distance.optional(),
|
|
1234
|
-
subcircuit_id:
|
|
1242
|
+
subcircuit_id: z67.string().optional()
|
|
1235
1243
|
}).describe("Defines a cell within a schematic_table");
|
|
1236
1244
|
expectTypesMatch(true);
|
|
1237
1245
|
|
|
1238
1246
|
// src/schematic/schematic_sheet.ts
|
|
1239
|
-
import { z as
|
|
1240
|
-
var schematic_sheet =
|
|
1241
|
-
type:
|
|
1247
|
+
import { z as z68 } from "zod";
|
|
1248
|
+
var schematic_sheet = z68.object({
|
|
1249
|
+
type: z68.literal("schematic_sheet"),
|
|
1242
1250
|
schematic_sheet_id: getZodPrefixedIdWithDefault("schematic_sheet"),
|
|
1243
|
-
name:
|
|
1244
|
-
subcircuit_id:
|
|
1251
|
+
name: z68.string().optional(),
|
|
1252
|
+
subcircuit_id: z68.string().optional()
|
|
1245
1253
|
}).describe(
|
|
1246
1254
|
"Defines a schematic sheet or page that components can be placed on"
|
|
1247
1255
|
);
|
|
1248
1256
|
expectTypesMatch(true);
|
|
1249
1257
|
|
|
1250
1258
|
// src/pcb/properties/brep.ts
|
|
1251
|
-
import { z as
|
|
1252
|
-
var point_with_bulge =
|
|
1259
|
+
import { z as z69 } from "zod";
|
|
1260
|
+
var point_with_bulge = z69.object({
|
|
1253
1261
|
x: distance,
|
|
1254
1262
|
y: distance,
|
|
1255
|
-
bulge:
|
|
1263
|
+
bulge: z69.number().optional()
|
|
1256
1264
|
});
|
|
1257
1265
|
expectTypesMatch(true);
|
|
1258
|
-
var ring =
|
|
1259
|
-
vertices:
|
|
1266
|
+
var ring = z69.object({
|
|
1267
|
+
vertices: z69.array(point_with_bulge)
|
|
1260
1268
|
});
|
|
1261
1269
|
expectTypesMatch(true);
|
|
1262
|
-
var brep_shape =
|
|
1270
|
+
var brep_shape = z69.object({
|
|
1263
1271
|
outer_ring: ring,
|
|
1264
|
-
inner_rings:
|
|
1272
|
+
inner_rings: z69.array(ring).default([])
|
|
1265
1273
|
});
|
|
1266
1274
|
expectTypesMatch(true);
|
|
1267
1275
|
|
|
1268
1276
|
// src/pcb/properties/pcb_route_hints.ts
|
|
1269
|
-
import { z as
|
|
1270
|
-
var pcb_route_hint =
|
|
1277
|
+
import { z as z70 } from "zod";
|
|
1278
|
+
var pcb_route_hint = z70.object({
|
|
1271
1279
|
x: distance,
|
|
1272
1280
|
y: distance,
|
|
1273
|
-
via:
|
|
1281
|
+
via: z70.boolean().optional(),
|
|
1274
1282
|
via_to_layer: layer_ref.optional()
|
|
1275
1283
|
});
|
|
1276
|
-
var pcb_route_hints =
|
|
1284
|
+
var pcb_route_hints = z70.array(pcb_route_hint);
|
|
1277
1285
|
expectTypesMatch(true);
|
|
1278
1286
|
expectTypesMatch(true);
|
|
1279
1287
|
|
|
1280
1288
|
// src/pcb/properties/route_hint_point.ts
|
|
1281
|
-
import { z as
|
|
1282
|
-
var route_hint_point =
|
|
1289
|
+
import { z as z71 } from "zod";
|
|
1290
|
+
var route_hint_point = z71.object({
|
|
1283
1291
|
x: distance,
|
|
1284
1292
|
y: distance,
|
|
1285
|
-
via:
|
|
1293
|
+
via: z71.boolean().optional(),
|
|
1286
1294
|
to_layer: layer_ref.optional(),
|
|
1287
1295
|
trace_width: distance.optional()
|
|
1288
1296
|
});
|
|
1289
1297
|
expectTypesMatch(true);
|
|
1290
1298
|
|
|
1291
1299
|
// src/pcb/pcb_component.ts
|
|
1292
|
-
import { z as
|
|
1293
|
-
var pcb_component =
|
|
1294
|
-
type:
|
|
1300
|
+
import { z as z72 } from "zod";
|
|
1301
|
+
var pcb_component = z72.object({
|
|
1302
|
+
type: z72.literal("pcb_component"),
|
|
1295
1303
|
pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
|
|
1296
|
-
source_component_id:
|
|
1304
|
+
source_component_id: z72.string(),
|
|
1297
1305
|
center: point,
|
|
1298
1306
|
layer: layer_ref,
|
|
1299
1307
|
rotation,
|
|
1300
1308
|
width: length,
|
|
1301
1309
|
height: length,
|
|
1302
|
-
do_not_place:
|
|
1303
|
-
subcircuit_id:
|
|
1304
|
-
pcb_group_id:
|
|
1305
|
-
position_mode:
|
|
1306
|
-
positioned_relative_to_pcb_group_id:
|
|
1307
|
-
obstructs_within_bounds:
|
|
1310
|
+
do_not_place: z72.boolean().optional(),
|
|
1311
|
+
subcircuit_id: z72.string().optional(),
|
|
1312
|
+
pcb_group_id: z72.string().optional(),
|
|
1313
|
+
position_mode: z72.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
|
|
1314
|
+
positioned_relative_to_pcb_group_id: z72.string().optional(),
|
|
1315
|
+
obstructs_within_bounds: z72.boolean().default(true).describe(
|
|
1308
1316
|
"Does this component take up all the space within its bounds on a layer. This is generally true except for when separated pin headers are being represented by a single component (in which case, chips can be placed between the pin headers) or for tall modules where chips fit underneath"
|
|
1309
1317
|
)
|
|
1310
1318
|
}).describe("Defines a component on the PCB");
|
|
1311
1319
|
expectTypesMatch(true);
|
|
1312
1320
|
|
|
1313
1321
|
// src/pcb/pcb_hole.ts
|
|
1314
|
-
import { z as
|
|
1315
|
-
var pcb_hole_circle =
|
|
1316
|
-
type:
|
|
1322
|
+
import { z as z73 } from "zod";
|
|
1323
|
+
var pcb_hole_circle = z73.object({
|
|
1324
|
+
type: z73.literal("pcb_hole"),
|
|
1317
1325
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
1318
|
-
pcb_group_id:
|
|
1319
|
-
subcircuit_id:
|
|
1320
|
-
hole_shape:
|
|
1321
|
-
hole_diameter:
|
|
1326
|
+
pcb_group_id: z73.string().optional(),
|
|
1327
|
+
subcircuit_id: z73.string().optional(),
|
|
1328
|
+
hole_shape: z73.literal("circle"),
|
|
1329
|
+
hole_diameter: z73.number(),
|
|
1322
1330
|
x: distance,
|
|
1323
1331
|
y: distance,
|
|
1324
|
-
is_covered_with_solder_mask:
|
|
1325
|
-
soldermask_margin:
|
|
1332
|
+
is_covered_with_solder_mask: z73.boolean().optional(),
|
|
1333
|
+
soldermask_margin: z73.number().optional()
|
|
1326
1334
|
});
|
|
1327
1335
|
var pcb_hole_circle_shape = pcb_hole_circle.describe(
|
|
1328
1336
|
"Defines a circular hole on the PCB"
|
|
1329
1337
|
);
|
|
1330
1338
|
expectTypesMatch(true);
|
|
1331
|
-
var pcb_hole_rect =
|
|
1332
|
-
type:
|
|
1339
|
+
var pcb_hole_rect = z73.object({
|
|
1340
|
+
type: z73.literal("pcb_hole"),
|
|
1333
1341
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
1334
|
-
pcb_group_id:
|
|
1335
|
-
subcircuit_id:
|
|
1336
|
-
hole_shape:
|
|
1337
|
-
hole_width:
|
|
1338
|
-
hole_height:
|
|
1342
|
+
pcb_group_id: z73.string().optional(),
|
|
1343
|
+
subcircuit_id: z73.string().optional(),
|
|
1344
|
+
hole_shape: z73.literal("rect"),
|
|
1345
|
+
hole_width: z73.number(),
|
|
1346
|
+
hole_height: z73.number(),
|
|
1339
1347
|
x: distance,
|
|
1340
1348
|
y: distance,
|
|
1341
|
-
is_covered_with_solder_mask:
|
|
1342
|
-
soldermask_margin:
|
|
1349
|
+
is_covered_with_solder_mask: z73.boolean().optional(),
|
|
1350
|
+
soldermask_margin: z73.number().optional()
|
|
1343
1351
|
});
|
|
1344
1352
|
var pcb_hole_rect_shape = pcb_hole_rect.describe(
|
|
1345
1353
|
"Defines a rectangular (square-capable) hole on the PCB. Use equal width/height for square."
|
|
1346
1354
|
);
|
|
1347
1355
|
expectTypesMatch(true);
|
|
1348
|
-
var pcb_hole_circle_or_square =
|
|
1349
|
-
type:
|
|
1356
|
+
var pcb_hole_circle_or_square = z73.object({
|
|
1357
|
+
type: z73.literal("pcb_hole"),
|
|
1350
1358
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
1351
|
-
pcb_group_id:
|
|
1352
|
-
subcircuit_id:
|
|
1353
|
-
hole_shape:
|
|
1354
|
-
hole_diameter:
|
|
1359
|
+
pcb_group_id: z73.string().optional(),
|
|
1360
|
+
subcircuit_id: z73.string().optional(),
|
|
1361
|
+
hole_shape: z73.enum(["circle", "square"]),
|
|
1362
|
+
hole_diameter: z73.number(),
|
|
1355
1363
|
x: distance,
|
|
1356
1364
|
y: distance,
|
|
1357
|
-
is_covered_with_solder_mask:
|
|
1358
|
-
soldermask_margin:
|
|
1365
|
+
is_covered_with_solder_mask: z73.boolean().optional(),
|
|
1366
|
+
soldermask_margin: z73.number().optional()
|
|
1359
1367
|
});
|
|
1360
1368
|
var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
|
|
1361
1369
|
"Defines a circular or square hole on the PCB"
|
|
1362
1370
|
);
|
|
1363
1371
|
expectTypesMatch(true);
|
|
1364
|
-
var pcb_hole_oval =
|
|
1365
|
-
type:
|
|
1372
|
+
var pcb_hole_oval = z73.object({
|
|
1373
|
+
type: z73.literal("pcb_hole"),
|
|
1366
1374
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
1367
|
-
pcb_group_id:
|
|
1368
|
-
subcircuit_id:
|
|
1369
|
-
hole_shape:
|
|
1370
|
-
hole_width:
|
|
1371
|
-
hole_height:
|
|
1375
|
+
pcb_group_id: z73.string().optional(),
|
|
1376
|
+
subcircuit_id: z73.string().optional(),
|
|
1377
|
+
hole_shape: z73.literal("oval"),
|
|
1378
|
+
hole_width: z73.number(),
|
|
1379
|
+
hole_height: z73.number(),
|
|
1372
1380
|
x: distance,
|
|
1373
1381
|
y: distance,
|
|
1374
|
-
is_covered_with_solder_mask:
|
|
1375
|
-
soldermask_margin:
|
|
1382
|
+
is_covered_with_solder_mask: z73.boolean().optional(),
|
|
1383
|
+
soldermask_margin: z73.number().optional()
|
|
1376
1384
|
});
|
|
1377
1385
|
var pcb_hole_oval_shape = pcb_hole_oval.describe(
|
|
1378
1386
|
"Defines an oval hole on the PCB"
|
|
1379
1387
|
);
|
|
1380
1388
|
expectTypesMatch(true);
|
|
1381
|
-
var pcb_hole_pill =
|
|
1382
|
-
type:
|
|
1389
|
+
var pcb_hole_pill = z73.object({
|
|
1390
|
+
type: z73.literal("pcb_hole"),
|
|
1383
1391
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
1384
|
-
pcb_group_id:
|
|
1385
|
-
subcircuit_id:
|
|
1386
|
-
hole_shape:
|
|
1387
|
-
hole_width:
|
|
1388
|
-
hole_height:
|
|
1392
|
+
pcb_group_id: z73.string().optional(),
|
|
1393
|
+
subcircuit_id: z73.string().optional(),
|
|
1394
|
+
hole_shape: z73.literal("pill"),
|
|
1395
|
+
hole_width: z73.number(),
|
|
1396
|
+
hole_height: z73.number(),
|
|
1389
1397
|
x: distance,
|
|
1390
1398
|
y: distance,
|
|
1391
|
-
is_covered_with_solder_mask:
|
|
1392
|
-
soldermask_margin:
|
|
1399
|
+
is_covered_with_solder_mask: z73.boolean().optional(),
|
|
1400
|
+
soldermask_margin: z73.number().optional()
|
|
1393
1401
|
});
|
|
1394
1402
|
var pcb_hole_pill_shape = pcb_hole_pill.describe(
|
|
1395
1403
|
"Defines a pill-shaped hole on the PCB"
|
|
1396
1404
|
);
|
|
1397
1405
|
expectTypesMatch(true);
|
|
1398
|
-
var pcb_hole_rotated_pill =
|
|
1399
|
-
type:
|
|
1406
|
+
var pcb_hole_rotated_pill = z73.object({
|
|
1407
|
+
type: z73.literal("pcb_hole"),
|
|
1400
1408
|
pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
|
|
1401
|
-
pcb_group_id:
|
|
1402
|
-
subcircuit_id:
|
|
1403
|
-
hole_shape:
|
|
1404
|
-
hole_width:
|
|
1405
|
-
hole_height:
|
|
1409
|
+
pcb_group_id: z73.string().optional(),
|
|
1410
|
+
subcircuit_id: z73.string().optional(),
|
|
1411
|
+
hole_shape: z73.literal("rotated_pill"),
|
|
1412
|
+
hole_width: z73.number(),
|
|
1413
|
+
hole_height: z73.number(),
|
|
1406
1414
|
x: distance,
|
|
1407
1415
|
y: distance,
|
|
1408
1416
|
ccw_rotation: rotation,
|
|
1409
|
-
is_covered_with_solder_mask:
|
|
1410
|
-
soldermask_margin:
|
|
1417
|
+
is_covered_with_solder_mask: z73.boolean().optional(),
|
|
1418
|
+
soldermask_margin: z73.number().optional()
|
|
1411
1419
|
});
|
|
1412
1420
|
var pcb_hole_rotated_pill_shape = pcb_hole_rotated_pill.describe(
|
|
1413
1421
|
"Defines a rotated pill-shaped hole on the PCB"
|
|
@@ -1416,144 +1424,145 @@ expectTypesMatch(true);
|
|
|
1416
1424
|
var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval).or(pcb_hole_pill).or(pcb_hole_rotated_pill).or(pcb_hole_circle).or(pcb_hole_rect);
|
|
1417
1425
|
|
|
1418
1426
|
// src/pcb/pcb_plated_hole.ts
|
|
1419
|
-
import { z as
|
|
1420
|
-
var pcb_plated_hole_circle =
|
|
1421
|
-
type:
|
|
1422
|
-
shape:
|
|
1423
|
-
pcb_group_id:
|
|
1424
|
-
subcircuit_id:
|
|
1425
|
-
outer_diameter:
|
|
1426
|
-
hole_diameter:
|
|
1427
|
+
import { z as z74 } from "zod";
|
|
1428
|
+
var pcb_plated_hole_circle = z74.object({
|
|
1429
|
+
type: z74.literal("pcb_plated_hole"),
|
|
1430
|
+
shape: z74.literal("circle"),
|
|
1431
|
+
pcb_group_id: z74.string().optional(),
|
|
1432
|
+
subcircuit_id: z74.string().optional(),
|
|
1433
|
+
outer_diameter: z74.number(),
|
|
1434
|
+
hole_diameter: z74.number(),
|
|
1435
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1427
1436
|
x: distance,
|
|
1428
1437
|
y: distance,
|
|
1429
|
-
layers:
|
|
1430
|
-
port_hints:
|
|
1431
|
-
pcb_component_id:
|
|
1432
|
-
pcb_port_id:
|
|
1438
|
+
layers: z74.array(layer_ref),
|
|
1439
|
+
port_hints: z74.array(z74.string()).optional(),
|
|
1440
|
+
pcb_component_id: z74.string().optional(),
|
|
1441
|
+
pcb_port_id: z74.string().optional(),
|
|
1433
1442
|
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1434
|
-
soldermask_margin:
|
|
1443
|
+
soldermask_margin: z74.number().optional()
|
|
1435
1444
|
});
|
|
1436
|
-
var pcb_plated_hole_oval =
|
|
1437
|
-
type:
|
|
1438
|
-
shape:
|
|
1439
|
-
pcb_group_id:
|
|
1440
|
-
subcircuit_id:
|
|
1441
|
-
outer_width:
|
|
1442
|
-
outer_height:
|
|
1443
|
-
hole_width:
|
|
1444
|
-
hole_height:
|
|
1445
|
-
is_covered_with_solder_mask:
|
|
1445
|
+
var pcb_plated_hole_oval = z74.object({
|
|
1446
|
+
type: z74.literal("pcb_plated_hole"),
|
|
1447
|
+
shape: z74.enum(["oval", "pill"]),
|
|
1448
|
+
pcb_group_id: z74.string().optional(),
|
|
1449
|
+
subcircuit_id: z74.string().optional(),
|
|
1450
|
+
outer_width: z74.number(),
|
|
1451
|
+
outer_height: z74.number(),
|
|
1452
|
+
hole_width: z74.number(),
|
|
1453
|
+
hole_height: z74.number(),
|
|
1454
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1446
1455
|
x: distance,
|
|
1447
1456
|
y: distance,
|
|
1448
1457
|
ccw_rotation: rotation,
|
|
1449
|
-
layers:
|
|
1450
|
-
port_hints:
|
|
1451
|
-
pcb_component_id:
|
|
1452
|
-
pcb_port_id:
|
|
1458
|
+
layers: z74.array(layer_ref),
|
|
1459
|
+
port_hints: z74.array(z74.string()).optional(),
|
|
1460
|
+
pcb_component_id: z74.string().optional(),
|
|
1461
|
+
pcb_port_id: z74.string().optional(),
|
|
1453
1462
|
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1454
|
-
soldermask_margin:
|
|
1463
|
+
soldermask_margin: z74.number().optional()
|
|
1455
1464
|
});
|
|
1456
|
-
var pcb_circular_hole_with_rect_pad =
|
|
1457
|
-
type:
|
|
1458
|
-
shape:
|
|
1459
|
-
pcb_group_id:
|
|
1460
|
-
subcircuit_id:
|
|
1461
|
-
hole_shape:
|
|
1462
|
-
pad_shape:
|
|
1463
|
-
hole_diameter:
|
|
1464
|
-
rect_pad_width:
|
|
1465
|
-
rect_pad_height:
|
|
1466
|
-
rect_border_radius:
|
|
1465
|
+
var pcb_circular_hole_with_rect_pad = z74.object({
|
|
1466
|
+
type: z74.literal("pcb_plated_hole"),
|
|
1467
|
+
shape: z74.literal("circular_hole_with_rect_pad"),
|
|
1468
|
+
pcb_group_id: z74.string().optional(),
|
|
1469
|
+
subcircuit_id: z74.string().optional(),
|
|
1470
|
+
hole_shape: z74.literal("circle"),
|
|
1471
|
+
pad_shape: z74.literal("rect"),
|
|
1472
|
+
hole_diameter: z74.number(),
|
|
1473
|
+
rect_pad_width: z74.number(),
|
|
1474
|
+
rect_pad_height: z74.number(),
|
|
1475
|
+
rect_border_radius: z74.number().optional(),
|
|
1467
1476
|
hole_offset_x: distance.default(0),
|
|
1468
1477
|
hole_offset_y: distance.default(0),
|
|
1469
|
-
is_covered_with_solder_mask:
|
|
1478
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1470
1479
|
x: distance,
|
|
1471
1480
|
y: distance,
|
|
1472
|
-
layers:
|
|
1473
|
-
port_hints:
|
|
1474
|
-
pcb_component_id:
|
|
1475
|
-
pcb_port_id:
|
|
1481
|
+
layers: z74.array(layer_ref),
|
|
1482
|
+
port_hints: z74.array(z74.string()).optional(),
|
|
1483
|
+
pcb_component_id: z74.string().optional(),
|
|
1484
|
+
pcb_port_id: z74.string().optional(),
|
|
1476
1485
|
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1477
|
-
soldermask_margin:
|
|
1486
|
+
soldermask_margin: z74.number().optional()
|
|
1478
1487
|
});
|
|
1479
|
-
var pcb_pill_hole_with_rect_pad =
|
|
1480
|
-
type:
|
|
1481
|
-
shape:
|
|
1482
|
-
pcb_group_id:
|
|
1483
|
-
subcircuit_id:
|
|
1484
|
-
hole_shape:
|
|
1485
|
-
pad_shape:
|
|
1486
|
-
hole_width:
|
|
1487
|
-
hole_height:
|
|
1488
|
-
rect_pad_width:
|
|
1489
|
-
rect_pad_height:
|
|
1490
|
-
rect_border_radius:
|
|
1488
|
+
var pcb_pill_hole_with_rect_pad = z74.object({
|
|
1489
|
+
type: z74.literal("pcb_plated_hole"),
|
|
1490
|
+
shape: z74.literal("pill_hole_with_rect_pad"),
|
|
1491
|
+
pcb_group_id: z74.string().optional(),
|
|
1492
|
+
subcircuit_id: z74.string().optional(),
|
|
1493
|
+
hole_shape: z74.literal("pill"),
|
|
1494
|
+
pad_shape: z74.literal("rect"),
|
|
1495
|
+
hole_width: z74.number(),
|
|
1496
|
+
hole_height: z74.number(),
|
|
1497
|
+
rect_pad_width: z74.number(),
|
|
1498
|
+
rect_pad_height: z74.number(),
|
|
1499
|
+
rect_border_radius: z74.number().optional(),
|
|
1491
1500
|
hole_offset_x: distance.default(0),
|
|
1492
1501
|
hole_offset_y: distance.default(0),
|
|
1493
|
-
is_covered_with_solder_mask:
|
|
1502
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1494
1503
|
x: distance,
|
|
1495
1504
|
y: distance,
|
|
1496
|
-
layers:
|
|
1497
|
-
port_hints:
|
|
1498
|
-
pcb_component_id:
|
|
1499
|
-
pcb_port_id:
|
|
1505
|
+
layers: z74.array(layer_ref),
|
|
1506
|
+
port_hints: z74.array(z74.string()).optional(),
|
|
1507
|
+
pcb_component_id: z74.string().optional(),
|
|
1508
|
+
pcb_port_id: z74.string().optional(),
|
|
1500
1509
|
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1501
|
-
soldermask_margin:
|
|
1510
|
+
soldermask_margin: z74.number().optional()
|
|
1502
1511
|
});
|
|
1503
|
-
var pcb_rotated_pill_hole_with_rect_pad =
|
|
1504
|
-
type:
|
|
1505
|
-
shape:
|
|
1506
|
-
pcb_group_id:
|
|
1507
|
-
subcircuit_id:
|
|
1508
|
-
hole_shape:
|
|
1509
|
-
pad_shape:
|
|
1510
|
-
hole_width:
|
|
1511
|
-
hole_height:
|
|
1512
|
+
var pcb_rotated_pill_hole_with_rect_pad = z74.object({
|
|
1513
|
+
type: z74.literal("pcb_plated_hole"),
|
|
1514
|
+
shape: z74.literal("rotated_pill_hole_with_rect_pad"),
|
|
1515
|
+
pcb_group_id: z74.string().optional(),
|
|
1516
|
+
subcircuit_id: z74.string().optional(),
|
|
1517
|
+
hole_shape: z74.literal("rotated_pill"),
|
|
1518
|
+
pad_shape: z74.literal("rect"),
|
|
1519
|
+
hole_width: z74.number(),
|
|
1520
|
+
hole_height: z74.number(),
|
|
1512
1521
|
hole_ccw_rotation: rotation,
|
|
1513
|
-
rect_pad_width:
|
|
1514
|
-
rect_pad_height:
|
|
1515
|
-
rect_border_radius:
|
|
1522
|
+
rect_pad_width: z74.number(),
|
|
1523
|
+
rect_pad_height: z74.number(),
|
|
1524
|
+
rect_border_radius: z74.number().optional(),
|
|
1516
1525
|
rect_ccw_rotation: rotation,
|
|
1517
1526
|
hole_offset_x: distance.default(0),
|
|
1518
1527
|
hole_offset_y: distance.default(0),
|
|
1519
|
-
is_covered_with_solder_mask:
|
|
1528
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1520
1529
|
x: distance,
|
|
1521
1530
|
y: distance,
|
|
1522
|
-
layers:
|
|
1523
|
-
port_hints:
|
|
1524
|
-
pcb_component_id:
|
|
1525
|
-
pcb_port_id:
|
|
1531
|
+
layers: z74.array(layer_ref),
|
|
1532
|
+
port_hints: z74.array(z74.string()).optional(),
|
|
1533
|
+
pcb_component_id: z74.string().optional(),
|
|
1534
|
+
pcb_port_id: z74.string().optional(),
|
|
1526
1535
|
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1527
|
-
soldermask_margin:
|
|
1536
|
+
soldermask_margin: z74.number().optional()
|
|
1528
1537
|
});
|
|
1529
|
-
var pcb_hole_with_polygon_pad =
|
|
1530
|
-
type:
|
|
1531
|
-
shape:
|
|
1532
|
-
pcb_group_id:
|
|
1533
|
-
subcircuit_id:
|
|
1534
|
-
hole_shape:
|
|
1535
|
-
hole_diameter:
|
|
1536
|
-
hole_width:
|
|
1537
|
-
hole_height:
|
|
1538
|
-
pad_outline:
|
|
1539
|
-
|
|
1538
|
+
var pcb_hole_with_polygon_pad = z74.object({
|
|
1539
|
+
type: z74.literal("pcb_plated_hole"),
|
|
1540
|
+
shape: z74.literal("hole_with_polygon_pad"),
|
|
1541
|
+
pcb_group_id: z74.string().optional(),
|
|
1542
|
+
subcircuit_id: z74.string().optional(),
|
|
1543
|
+
hole_shape: z74.enum(["circle", "oval", "pill", "rotated_pill"]),
|
|
1544
|
+
hole_diameter: z74.number().optional(),
|
|
1545
|
+
hole_width: z74.number().optional(),
|
|
1546
|
+
hole_height: z74.number().optional(),
|
|
1547
|
+
pad_outline: z74.array(
|
|
1548
|
+
z74.object({
|
|
1540
1549
|
x: distance,
|
|
1541
1550
|
y: distance
|
|
1542
1551
|
})
|
|
1543
1552
|
).min(3),
|
|
1544
1553
|
hole_offset_x: distance.default(0),
|
|
1545
1554
|
hole_offset_y: distance.default(0),
|
|
1546
|
-
is_covered_with_solder_mask:
|
|
1555
|
+
is_covered_with_solder_mask: z74.boolean().optional(),
|
|
1547
1556
|
x: distance,
|
|
1548
1557
|
y: distance,
|
|
1549
|
-
layers:
|
|
1550
|
-
port_hints:
|
|
1551
|
-
pcb_component_id:
|
|
1552
|
-
pcb_port_id:
|
|
1558
|
+
layers: z74.array(layer_ref),
|
|
1559
|
+
port_hints: z74.array(z74.string()).optional(),
|
|
1560
|
+
pcb_component_id: z74.string().optional(),
|
|
1561
|
+
pcb_port_id: z74.string().optional(),
|
|
1553
1562
|
pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
|
|
1554
|
-
soldermask_margin:
|
|
1563
|
+
soldermask_margin: z74.number().optional()
|
|
1555
1564
|
});
|
|
1556
|
-
var pcb_plated_hole =
|
|
1565
|
+
var pcb_plated_hole = z74.union([
|
|
1557
1566
|
pcb_plated_hole_circle,
|
|
1558
1567
|
pcb_plated_hole_oval,
|
|
1559
1568
|
pcb_circular_hole_with_rect_pad,
|
|
@@ -1571,130 +1580,130 @@ expectTypesMatch(true);
|
|
|
1571
1580
|
expectTypesMatch(true);
|
|
1572
1581
|
|
|
1573
1582
|
// src/pcb/pcb_port.ts
|
|
1574
|
-
import { z as
|
|
1575
|
-
var pcb_port =
|
|
1576
|
-
type:
|
|
1583
|
+
import { z as z75 } from "zod";
|
|
1584
|
+
var pcb_port = z75.object({
|
|
1585
|
+
type: z75.literal("pcb_port"),
|
|
1577
1586
|
pcb_port_id: getZodPrefixedIdWithDefault("pcb_port"),
|
|
1578
|
-
pcb_group_id:
|
|
1579
|
-
subcircuit_id:
|
|
1580
|
-
source_port_id:
|
|
1581
|
-
pcb_component_id:
|
|
1587
|
+
pcb_group_id: z75.string().optional(),
|
|
1588
|
+
subcircuit_id: z75.string().optional(),
|
|
1589
|
+
source_port_id: z75.string(),
|
|
1590
|
+
pcb_component_id: z75.string().optional(),
|
|
1582
1591
|
x: distance,
|
|
1583
1592
|
y: distance,
|
|
1584
|
-
layers:
|
|
1585
|
-
is_board_pinout:
|
|
1593
|
+
layers: z75.array(layer_ref),
|
|
1594
|
+
is_board_pinout: z75.boolean().optional()
|
|
1586
1595
|
}).describe("Defines a port on the PCB");
|
|
1587
1596
|
expectTypesMatch(true);
|
|
1588
1597
|
|
|
1589
1598
|
// src/pcb/pcb_smtpad.ts
|
|
1590
|
-
import { z as
|
|
1591
|
-
var pcb_smtpad_circle =
|
|
1592
|
-
type:
|
|
1593
|
-
shape:
|
|
1599
|
+
import { z as z76 } from "zod";
|
|
1600
|
+
var pcb_smtpad_circle = z76.object({
|
|
1601
|
+
type: z76.literal("pcb_smtpad"),
|
|
1602
|
+
shape: z76.literal("circle"),
|
|
1594
1603
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
1595
|
-
pcb_group_id:
|
|
1596
|
-
subcircuit_id:
|
|
1604
|
+
pcb_group_id: z76.string().optional(),
|
|
1605
|
+
subcircuit_id: z76.string().optional(),
|
|
1597
1606
|
x: distance,
|
|
1598
1607
|
y: distance,
|
|
1599
|
-
radius:
|
|
1608
|
+
radius: z76.number(),
|
|
1600
1609
|
layer: layer_ref,
|
|
1601
|
-
port_hints:
|
|
1602
|
-
pcb_component_id:
|
|
1603
|
-
pcb_port_id:
|
|
1604
|
-
is_covered_with_solder_mask:
|
|
1605
|
-
soldermask_margin:
|
|
1610
|
+
port_hints: z76.array(z76.string()).optional(),
|
|
1611
|
+
pcb_component_id: z76.string().optional(),
|
|
1612
|
+
pcb_port_id: z76.string().optional(),
|
|
1613
|
+
is_covered_with_solder_mask: z76.boolean().optional(),
|
|
1614
|
+
soldermask_margin: z76.number().optional()
|
|
1606
1615
|
});
|
|
1607
|
-
var pcb_smtpad_rect =
|
|
1608
|
-
type:
|
|
1609
|
-
shape:
|
|
1616
|
+
var pcb_smtpad_rect = z76.object({
|
|
1617
|
+
type: z76.literal("pcb_smtpad"),
|
|
1618
|
+
shape: z76.literal("rect"),
|
|
1610
1619
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
1611
|
-
pcb_group_id:
|
|
1612
|
-
subcircuit_id:
|
|
1620
|
+
pcb_group_id: z76.string().optional(),
|
|
1621
|
+
subcircuit_id: z76.string().optional(),
|
|
1613
1622
|
x: distance,
|
|
1614
1623
|
y: distance,
|
|
1615
|
-
width:
|
|
1616
|
-
height:
|
|
1617
|
-
rect_border_radius:
|
|
1618
|
-
corner_radius:
|
|
1624
|
+
width: z76.number(),
|
|
1625
|
+
height: z76.number(),
|
|
1626
|
+
rect_border_radius: z76.number().optional(),
|
|
1627
|
+
corner_radius: z76.number().optional(),
|
|
1619
1628
|
layer: layer_ref,
|
|
1620
|
-
port_hints:
|
|
1621
|
-
pcb_component_id:
|
|
1622
|
-
pcb_port_id:
|
|
1623
|
-
is_covered_with_solder_mask:
|
|
1624
|
-
soldermask_margin:
|
|
1629
|
+
port_hints: z76.array(z76.string()).optional(),
|
|
1630
|
+
pcb_component_id: z76.string().optional(),
|
|
1631
|
+
pcb_port_id: z76.string().optional(),
|
|
1632
|
+
is_covered_with_solder_mask: z76.boolean().optional(),
|
|
1633
|
+
soldermask_margin: z76.number().optional()
|
|
1625
1634
|
});
|
|
1626
|
-
var pcb_smtpad_rotated_rect =
|
|
1627
|
-
type:
|
|
1628
|
-
shape:
|
|
1635
|
+
var pcb_smtpad_rotated_rect = z76.object({
|
|
1636
|
+
type: z76.literal("pcb_smtpad"),
|
|
1637
|
+
shape: z76.literal("rotated_rect"),
|
|
1629
1638
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
1630
|
-
pcb_group_id:
|
|
1631
|
-
subcircuit_id:
|
|
1639
|
+
pcb_group_id: z76.string().optional(),
|
|
1640
|
+
subcircuit_id: z76.string().optional(),
|
|
1632
1641
|
x: distance,
|
|
1633
1642
|
y: distance,
|
|
1634
|
-
width:
|
|
1635
|
-
height:
|
|
1636
|
-
rect_border_radius:
|
|
1637
|
-
corner_radius:
|
|
1643
|
+
width: z76.number(),
|
|
1644
|
+
height: z76.number(),
|
|
1645
|
+
rect_border_radius: z76.number().optional(),
|
|
1646
|
+
corner_radius: z76.number().optional(),
|
|
1638
1647
|
ccw_rotation: rotation,
|
|
1639
1648
|
layer: layer_ref,
|
|
1640
|
-
port_hints:
|
|
1641
|
-
pcb_component_id:
|
|
1642
|
-
pcb_port_id:
|
|
1643
|
-
is_covered_with_solder_mask:
|
|
1644
|
-
soldermask_margin:
|
|
1649
|
+
port_hints: z76.array(z76.string()).optional(),
|
|
1650
|
+
pcb_component_id: z76.string().optional(),
|
|
1651
|
+
pcb_port_id: z76.string().optional(),
|
|
1652
|
+
is_covered_with_solder_mask: z76.boolean().optional(),
|
|
1653
|
+
soldermask_margin: z76.number().optional()
|
|
1645
1654
|
});
|
|
1646
|
-
var pcb_smtpad_pill =
|
|
1647
|
-
type:
|
|
1648
|
-
shape:
|
|
1655
|
+
var pcb_smtpad_pill = z76.object({
|
|
1656
|
+
type: z76.literal("pcb_smtpad"),
|
|
1657
|
+
shape: z76.literal("pill"),
|
|
1649
1658
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
1650
|
-
pcb_group_id:
|
|
1651
|
-
subcircuit_id:
|
|
1659
|
+
pcb_group_id: z76.string().optional(),
|
|
1660
|
+
subcircuit_id: z76.string().optional(),
|
|
1652
1661
|
x: distance,
|
|
1653
1662
|
y: distance,
|
|
1654
|
-
width:
|
|
1655
|
-
height:
|
|
1656
|
-
radius:
|
|
1663
|
+
width: z76.number(),
|
|
1664
|
+
height: z76.number(),
|
|
1665
|
+
radius: z76.number(),
|
|
1657
1666
|
layer: layer_ref,
|
|
1658
|
-
port_hints:
|
|
1659
|
-
pcb_component_id:
|
|
1660
|
-
pcb_port_id:
|
|
1661
|
-
is_covered_with_solder_mask:
|
|
1662
|
-
soldermask_margin:
|
|
1667
|
+
port_hints: z76.array(z76.string()).optional(),
|
|
1668
|
+
pcb_component_id: z76.string().optional(),
|
|
1669
|
+
pcb_port_id: z76.string().optional(),
|
|
1670
|
+
is_covered_with_solder_mask: z76.boolean().optional(),
|
|
1671
|
+
soldermask_margin: z76.number().optional()
|
|
1663
1672
|
});
|
|
1664
|
-
var pcb_smtpad_rotated_pill =
|
|
1665
|
-
type:
|
|
1666
|
-
shape:
|
|
1673
|
+
var pcb_smtpad_rotated_pill = z76.object({
|
|
1674
|
+
type: z76.literal("pcb_smtpad"),
|
|
1675
|
+
shape: z76.literal("rotated_pill"),
|
|
1667
1676
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
1668
|
-
pcb_group_id:
|
|
1669
|
-
subcircuit_id:
|
|
1677
|
+
pcb_group_id: z76.string().optional(),
|
|
1678
|
+
subcircuit_id: z76.string().optional(),
|
|
1670
1679
|
x: distance,
|
|
1671
1680
|
y: distance,
|
|
1672
|
-
width:
|
|
1673
|
-
height:
|
|
1674
|
-
radius:
|
|
1681
|
+
width: z76.number(),
|
|
1682
|
+
height: z76.number(),
|
|
1683
|
+
radius: z76.number(),
|
|
1675
1684
|
ccw_rotation: rotation,
|
|
1676
1685
|
layer: layer_ref,
|
|
1677
|
-
port_hints:
|
|
1678
|
-
pcb_component_id:
|
|
1679
|
-
pcb_port_id:
|
|
1680
|
-
is_covered_with_solder_mask:
|
|
1681
|
-
soldermask_margin:
|
|
1686
|
+
port_hints: z76.array(z76.string()).optional(),
|
|
1687
|
+
pcb_component_id: z76.string().optional(),
|
|
1688
|
+
pcb_port_id: z76.string().optional(),
|
|
1689
|
+
is_covered_with_solder_mask: z76.boolean().optional(),
|
|
1690
|
+
soldermask_margin: z76.number().optional()
|
|
1682
1691
|
});
|
|
1683
|
-
var pcb_smtpad_polygon =
|
|
1684
|
-
type:
|
|
1685
|
-
shape:
|
|
1692
|
+
var pcb_smtpad_polygon = z76.object({
|
|
1693
|
+
type: z76.literal("pcb_smtpad"),
|
|
1694
|
+
shape: z76.literal("polygon"),
|
|
1686
1695
|
pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
|
|
1687
|
-
pcb_group_id:
|
|
1688
|
-
subcircuit_id:
|
|
1689
|
-
points:
|
|
1696
|
+
pcb_group_id: z76.string().optional(),
|
|
1697
|
+
subcircuit_id: z76.string().optional(),
|
|
1698
|
+
points: z76.array(point),
|
|
1690
1699
|
layer: layer_ref,
|
|
1691
|
-
port_hints:
|
|
1692
|
-
pcb_component_id:
|
|
1693
|
-
pcb_port_id:
|
|
1694
|
-
is_covered_with_solder_mask:
|
|
1695
|
-
soldermask_margin:
|
|
1700
|
+
port_hints: z76.array(z76.string()).optional(),
|
|
1701
|
+
pcb_component_id: z76.string().optional(),
|
|
1702
|
+
pcb_port_id: z76.string().optional(),
|
|
1703
|
+
is_covered_with_solder_mask: z76.boolean().optional(),
|
|
1704
|
+
soldermask_margin: z76.number().optional()
|
|
1696
1705
|
});
|
|
1697
|
-
var pcb_smtpad =
|
|
1706
|
+
var pcb_smtpad = z76.discriminatedUnion("shape", [
|
|
1698
1707
|
pcb_smtpad_circle,
|
|
1699
1708
|
pcb_smtpad_rect,
|
|
1700
1709
|
pcb_smtpad_rotated_rect,
|
|
@@ -1710,79 +1719,79 @@ expectTypesMatch(true);
|
|
|
1710
1719
|
expectTypesMatch(true);
|
|
1711
1720
|
|
|
1712
1721
|
// src/pcb/pcb_solder_paste.ts
|
|
1713
|
-
import { z as
|
|
1714
|
-
var pcb_solder_paste_circle =
|
|
1715
|
-
type:
|
|
1716
|
-
shape:
|
|
1722
|
+
import { z as z77 } from "zod";
|
|
1723
|
+
var pcb_solder_paste_circle = z77.object({
|
|
1724
|
+
type: z77.literal("pcb_solder_paste"),
|
|
1725
|
+
shape: z77.literal("circle"),
|
|
1717
1726
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
1718
|
-
pcb_group_id:
|
|
1719
|
-
subcircuit_id:
|
|
1727
|
+
pcb_group_id: z77.string().optional(),
|
|
1728
|
+
subcircuit_id: z77.string().optional(),
|
|
1720
1729
|
x: distance,
|
|
1721
1730
|
y: distance,
|
|
1722
|
-
radius:
|
|
1731
|
+
radius: z77.number(),
|
|
1723
1732
|
layer: layer_ref,
|
|
1724
|
-
pcb_component_id:
|
|
1725
|
-
pcb_smtpad_id:
|
|
1733
|
+
pcb_component_id: z77.string().optional(),
|
|
1734
|
+
pcb_smtpad_id: z77.string().optional()
|
|
1726
1735
|
});
|
|
1727
|
-
var pcb_solder_paste_rect =
|
|
1728
|
-
type:
|
|
1729
|
-
shape:
|
|
1736
|
+
var pcb_solder_paste_rect = z77.object({
|
|
1737
|
+
type: z77.literal("pcb_solder_paste"),
|
|
1738
|
+
shape: z77.literal("rect"),
|
|
1730
1739
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
1731
|
-
pcb_group_id:
|
|
1732
|
-
subcircuit_id:
|
|
1740
|
+
pcb_group_id: z77.string().optional(),
|
|
1741
|
+
subcircuit_id: z77.string().optional(),
|
|
1733
1742
|
x: distance,
|
|
1734
1743
|
y: distance,
|
|
1735
|
-
width:
|
|
1736
|
-
height:
|
|
1744
|
+
width: z77.number(),
|
|
1745
|
+
height: z77.number(),
|
|
1737
1746
|
layer: layer_ref,
|
|
1738
|
-
pcb_component_id:
|
|
1739
|
-
pcb_smtpad_id:
|
|
1747
|
+
pcb_component_id: z77.string().optional(),
|
|
1748
|
+
pcb_smtpad_id: z77.string().optional()
|
|
1740
1749
|
});
|
|
1741
|
-
var pcb_solder_paste_pill =
|
|
1742
|
-
type:
|
|
1743
|
-
shape:
|
|
1750
|
+
var pcb_solder_paste_pill = z77.object({
|
|
1751
|
+
type: z77.literal("pcb_solder_paste"),
|
|
1752
|
+
shape: z77.literal("pill"),
|
|
1744
1753
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
1745
|
-
pcb_group_id:
|
|
1746
|
-
subcircuit_id:
|
|
1754
|
+
pcb_group_id: z77.string().optional(),
|
|
1755
|
+
subcircuit_id: z77.string().optional(),
|
|
1747
1756
|
x: distance,
|
|
1748
1757
|
y: distance,
|
|
1749
|
-
width:
|
|
1750
|
-
height:
|
|
1751
|
-
radius:
|
|
1758
|
+
width: z77.number(),
|
|
1759
|
+
height: z77.number(),
|
|
1760
|
+
radius: z77.number(),
|
|
1752
1761
|
layer: layer_ref,
|
|
1753
|
-
pcb_component_id:
|
|
1754
|
-
pcb_smtpad_id:
|
|
1762
|
+
pcb_component_id: z77.string().optional(),
|
|
1763
|
+
pcb_smtpad_id: z77.string().optional()
|
|
1755
1764
|
});
|
|
1756
|
-
var pcb_solder_paste_rotated_rect =
|
|
1757
|
-
type:
|
|
1758
|
-
shape:
|
|
1765
|
+
var pcb_solder_paste_rotated_rect = z77.object({
|
|
1766
|
+
type: z77.literal("pcb_solder_paste"),
|
|
1767
|
+
shape: z77.literal("rotated_rect"),
|
|
1759
1768
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
1760
|
-
pcb_group_id:
|
|
1761
|
-
subcircuit_id:
|
|
1769
|
+
pcb_group_id: z77.string().optional(),
|
|
1770
|
+
subcircuit_id: z77.string().optional(),
|
|
1762
1771
|
x: distance,
|
|
1763
1772
|
y: distance,
|
|
1764
|
-
width:
|
|
1765
|
-
height:
|
|
1773
|
+
width: z77.number(),
|
|
1774
|
+
height: z77.number(),
|
|
1766
1775
|
ccw_rotation: distance,
|
|
1767
1776
|
layer: layer_ref,
|
|
1768
|
-
pcb_component_id:
|
|
1769
|
-
pcb_smtpad_id:
|
|
1777
|
+
pcb_component_id: z77.string().optional(),
|
|
1778
|
+
pcb_smtpad_id: z77.string().optional()
|
|
1770
1779
|
});
|
|
1771
|
-
var pcb_solder_paste_oval =
|
|
1772
|
-
type:
|
|
1773
|
-
shape:
|
|
1780
|
+
var pcb_solder_paste_oval = z77.object({
|
|
1781
|
+
type: z77.literal("pcb_solder_paste"),
|
|
1782
|
+
shape: z77.literal("oval"),
|
|
1774
1783
|
pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
|
|
1775
|
-
pcb_group_id:
|
|
1776
|
-
subcircuit_id:
|
|
1784
|
+
pcb_group_id: z77.string().optional(),
|
|
1785
|
+
subcircuit_id: z77.string().optional(),
|
|
1777
1786
|
x: distance,
|
|
1778
1787
|
y: distance,
|
|
1779
|
-
width:
|
|
1780
|
-
height:
|
|
1788
|
+
width: z77.number(),
|
|
1789
|
+
height: z77.number(),
|
|
1781
1790
|
layer: layer_ref,
|
|
1782
|
-
pcb_component_id:
|
|
1783
|
-
pcb_smtpad_id:
|
|
1791
|
+
pcb_component_id: z77.string().optional(),
|
|
1792
|
+
pcb_smtpad_id: z77.string().optional()
|
|
1784
1793
|
});
|
|
1785
|
-
var pcb_solder_paste =
|
|
1794
|
+
var pcb_solder_paste = z77.union([
|
|
1786
1795
|
pcb_solder_paste_circle,
|
|
1787
1796
|
pcb_solder_paste_rect,
|
|
1788
1797
|
pcb_solder_paste_pill,
|
|
@@ -1798,146 +1807,146 @@ expectTypesMatch(
|
|
|
1798
1807
|
expectTypesMatch(true);
|
|
1799
1808
|
|
|
1800
1809
|
// src/pcb/pcb_text.ts
|
|
1801
|
-
import { z as
|
|
1802
|
-
var pcb_text =
|
|
1803
|
-
type:
|
|
1810
|
+
import { z as z78 } from "zod";
|
|
1811
|
+
var pcb_text = z78.object({
|
|
1812
|
+
type: z78.literal("pcb_text"),
|
|
1804
1813
|
pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
|
|
1805
|
-
pcb_group_id:
|
|
1806
|
-
subcircuit_id:
|
|
1807
|
-
text:
|
|
1814
|
+
pcb_group_id: z78.string().optional(),
|
|
1815
|
+
subcircuit_id: z78.string().optional(),
|
|
1816
|
+
text: z78.string(),
|
|
1808
1817
|
center: point,
|
|
1809
1818
|
layer: layer_ref,
|
|
1810
1819
|
width: length,
|
|
1811
1820
|
height: length,
|
|
1812
|
-
lines:
|
|
1821
|
+
lines: z78.number(),
|
|
1813
1822
|
// @ts-ignore
|
|
1814
|
-
align:
|
|
1823
|
+
align: z78.enum(["bottom-left"])
|
|
1815
1824
|
}).describe("Defines text on the PCB");
|
|
1816
1825
|
expectTypesMatch(true);
|
|
1817
1826
|
|
|
1818
1827
|
// src/pcb/pcb_trace.ts
|
|
1819
|
-
import { z as
|
|
1820
|
-
var pcb_trace_route_point_wire =
|
|
1821
|
-
route_type:
|
|
1828
|
+
import { z as z79 } from "zod";
|
|
1829
|
+
var pcb_trace_route_point_wire = z79.object({
|
|
1830
|
+
route_type: z79.literal("wire"),
|
|
1822
1831
|
x: distance,
|
|
1823
1832
|
y: distance,
|
|
1824
1833
|
width: distance,
|
|
1825
|
-
start_pcb_port_id:
|
|
1826
|
-
end_pcb_port_id:
|
|
1834
|
+
start_pcb_port_id: z79.string().optional(),
|
|
1835
|
+
end_pcb_port_id: z79.string().optional(),
|
|
1827
1836
|
layer: layer_ref
|
|
1828
1837
|
});
|
|
1829
|
-
var pcb_trace_route_point_via =
|
|
1830
|
-
route_type:
|
|
1838
|
+
var pcb_trace_route_point_via = z79.object({
|
|
1839
|
+
route_type: z79.literal("via"),
|
|
1831
1840
|
x: distance,
|
|
1832
1841
|
y: distance,
|
|
1833
1842
|
hole_diameter: distance.optional(),
|
|
1834
1843
|
outer_diameter: distance.optional(),
|
|
1835
|
-
from_layer:
|
|
1836
|
-
to_layer:
|
|
1844
|
+
from_layer: z79.string(),
|
|
1845
|
+
to_layer: z79.string()
|
|
1837
1846
|
});
|
|
1838
|
-
var pcb_trace_route_point =
|
|
1847
|
+
var pcb_trace_route_point = z79.union([
|
|
1839
1848
|
pcb_trace_route_point_wire,
|
|
1840
1849
|
pcb_trace_route_point_via
|
|
1841
1850
|
]);
|
|
1842
|
-
var pcb_trace =
|
|
1843
|
-
type:
|
|
1844
|
-
source_trace_id:
|
|
1845
|
-
pcb_component_id:
|
|
1851
|
+
var pcb_trace = z79.object({
|
|
1852
|
+
type: z79.literal("pcb_trace"),
|
|
1853
|
+
source_trace_id: z79.string().optional(),
|
|
1854
|
+
pcb_component_id: z79.string().optional(),
|
|
1846
1855
|
pcb_trace_id: getZodPrefixedIdWithDefault("pcb_trace"),
|
|
1847
|
-
pcb_group_id:
|
|
1848
|
-
subcircuit_id:
|
|
1849
|
-
route_thickness_mode:
|
|
1850
|
-
route_order_index:
|
|
1851
|
-
should_round_corners:
|
|
1852
|
-
trace_length:
|
|
1853
|
-
highlight_color:
|
|
1854
|
-
route:
|
|
1856
|
+
pcb_group_id: z79.string().optional(),
|
|
1857
|
+
subcircuit_id: z79.string().optional(),
|
|
1858
|
+
route_thickness_mode: z79.enum(["constant", "interpolated"]).default("constant").optional(),
|
|
1859
|
+
route_order_index: z79.number().optional(),
|
|
1860
|
+
should_round_corners: z79.boolean().optional(),
|
|
1861
|
+
trace_length: z79.number().optional(),
|
|
1862
|
+
highlight_color: z79.string().optional(),
|
|
1863
|
+
route: z79.array(pcb_trace_route_point)
|
|
1855
1864
|
}).describe("Defines a trace on the PCB");
|
|
1856
1865
|
expectTypesMatch(true);
|
|
1857
1866
|
expectTypesMatch(true);
|
|
1858
1867
|
|
|
1859
1868
|
// src/pcb/pcb_trace_error.ts
|
|
1860
|
-
import { z as
|
|
1861
|
-
var pcb_trace_error =
|
|
1862
|
-
type:
|
|
1869
|
+
import { z as z80 } from "zod";
|
|
1870
|
+
var pcb_trace_error = z80.object({
|
|
1871
|
+
type: z80.literal("pcb_trace_error"),
|
|
1863
1872
|
pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
|
|
1864
|
-
error_type:
|
|
1865
|
-
message:
|
|
1873
|
+
error_type: z80.literal("pcb_trace_error").default("pcb_trace_error"),
|
|
1874
|
+
message: z80.string(),
|
|
1866
1875
|
center: point.optional(),
|
|
1867
|
-
pcb_trace_id:
|
|
1868
|
-
source_trace_id:
|
|
1869
|
-
pcb_component_ids:
|
|
1870
|
-
pcb_port_ids:
|
|
1871
|
-
subcircuit_id:
|
|
1876
|
+
pcb_trace_id: z80.string(),
|
|
1877
|
+
source_trace_id: z80.string(),
|
|
1878
|
+
pcb_component_ids: z80.array(z80.string()),
|
|
1879
|
+
pcb_port_ids: z80.array(z80.string()),
|
|
1880
|
+
subcircuit_id: z80.string().optional()
|
|
1872
1881
|
}).describe("Defines a trace error on the PCB");
|
|
1873
1882
|
expectTypesMatch(true);
|
|
1874
1883
|
|
|
1875
1884
|
// src/pcb/pcb_trace_missing_error.ts
|
|
1876
|
-
import { z as
|
|
1877
|
-
var pcb_trace_missing_error =
|
|
1878
|
-
type:
|
|
1885
|
+
import { z as z81 } from "zod";
|
|
1886
|
+
var pcb_trace_missing_error = z81.object({
|
|
1887
|
+
type: z81.literal("pcb_trace_missing_error"),
|
|
1879
1888
|
pcb_trace_missing_error_id: getZodPrefixedIdWithDefault(
|
|
1880
1889
|
"pcb_trace_missing_error"
|
|
1881
1890
|
),
|
|
1882
|
-
error_type:
|
|
1883
|
-
message:
|
|
1891
|
+
error_type: z81.literal("pcb_trace_missing_error").default("pcb_trace_missing_error"),
|
|
1892
|
+
message: z81.string(),
|
|
1884
1893
|
center: point.optional(),
|
|
1885
|
-
source_trace_id:
|
|
1886
|
-
pcb_component_ids:
|
|
1887
|
-
pcb_port_ids:
|
|
1888
|
-
subcircuit_id:
|
|
1894
|
+
source_trace_id: z81.string(),
|
|
1895
|
+
pcb_component_ids: z81.array(z81.string()),
|
|
1896
|
+
pcb_port_ids: z81.array(z81.string()),
|
|
1897
|
+
subcircuit_id: z81.string().optional()
|
|
1889
1898
|
}).describe(
|
|
1890
1899
|
"Defines an error when a source trace has no corresponding PCB trace"
|
|
1891
1900
|
);
|
|
1892
1901
|
expectTypesMatch(true);
|
|
1893
1902
|
|
|
1894
1903
|
// src/pcb/pcb_port_not_matched_error.ts
|
|
1895
|
-
import { z as
|
|
1896
|
-
var pcb_port_not_matched_error =
|
|
1897
|
-
type:
|
|
1904
|
+
import { z as z82 } from "zod";
|
|
1905
|
+
var pcb_port_not_matched_error = z82.object({
|
|
1906
|
+
type: z82.literal("pcb_port_not_matched_error"),
|
|
1898
1907
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
1899
|
-
error_type:
|
|
1900
|
-
message:
|
|
1901
|
-
pcb_component_ids:
|
|
1902
|
-
subcircuit_id:
|
|
1908
|
+
error_type: z82.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
|
|
1909
|
+
message: z82.string(),
|
|
1910
|
+
pcb_component_ids: z82.array(z82.string()),
|
|
1911
|
+
subcircuit_id: z82.string().optional()
|
|
1903
1912
|
}).describe("Defines a trace error on the PCB where a port is not matched");
|
|
1904
1913
|
expectTypesMatch(true);
|
|
1905
1914
|
|
|
1906
1915
|
// src/pcb/pcb_port_not_connected_error.ts
|
|
1907
|
-
import { z as
|
|
1908
|
-
var pcb_port_not_connected_error =
|
|
1909
|
-
type:
|
|
1916
|
+
import { z as z83 } from "zod";
|
|
1917
|
+
var pcb_port_not_connected_error = z83.object({
|
|
1918
|
+
type: z83.literal("pcb_port_not_connected_error"),
|
|
1910
1919
|
pcb_port_not_connected_error_id: getZodPrefixedIdWithDefault(
|
|
1911
1920
|
"pcb_port_not_connected_error"
|
|
1912
1921
|
),
|
|
1913
|
-
error_type:
|
|
1914
|
-
message:
|
|
1915
|
-
pcb_port_ids:
|
|
1916
|
-
pcb_component_ids:
|
|
1917
|
-
subcircuit_id:
|
|
1922
|
+
error_type: z83.literal("pcb_port_not_connected_error").default("pcb_port_not_connected_error"),
|
|
1923
|
+
message: z83.string(),
|
|
1924
|
+
pcb_port_ids: z83.array(z83.string()),
|
|
1925
|
+
pcb_component_ids: z83.array(z83.string()),
|
|
1926
|
+
subcircuit_id: z83.string().optional()
|
|
1918
1927
|
}).describe("Defines an error when a pcb port is not connected to any trace");
|
|
1919
1928
|
expectTypesMatch(
|
|
1920
1929
|
true
|
|
1921
1930
|
);
|
|
1922
1931
|
|
|
1923
1932
|
// src/pcb/pcb_net.ts
|
|
1924
|
-
import { z as
|
|
1925
|
-
var pcb_net =
|
|
1926
|
-
type:
|
|
1933
|
+
import { z as z84 } from "zod";
|
|
1934
|
+
var pcb_net = z84.object({
|
|
1935
|
+
type: z84.literal("pcb_net"),
|
|
1927
1936
|
pcb_net_id: getZodPrefixedIdWithDefault("pcb_net"),
|
|
1928
|
-
source_net_id:
|
|
1929
|
-
highlight_color:
|
|
1937
|
+
source_net_id: z84.string().optional(),
|
|
1938
|
+
highlight_color: z84.string().optional()
|
|
1930
1939
|
}).describe("Defines a net on the PCB");
|
|
1931
1940
|
expectTypesMatch(true);
|
|
1932
1941
|
|
|
1933
1942
|
// src/pcb/pcb_via.ts
|
|
1934
|
-
import { z as
|
|
1935
|
-
var pcb_via =
|
|
1936
|
-
type:
|
|
1943
|
+
import { z as z85 } from "zod";
|
|
1944
|
+
var pcb_via = z85.object({
|
|
1945
|
+
type: z85.literal("pcb_via"),
|
|
1937
1946
|
pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
|
|
1938
|
-
pcb_group_id:
|
|
1939
|
-
subcircuit_id:
|
|
1940
|
-
subcircuit_connectivity_map_key:
|
|
1947
|
+
pcb_group_id: z85.string().optional(),
|
|
1948
|
+
subcircuit_id: z85.string().optional(),
|
|
1949
|
+
subcircuit_connectivity_map_key: z85.string().optional(),
|
|
1941
1950
|
x: distance,
|
|
1942
1951
|
y: distance,
|
|
1943
1952
|
outer_diameter: distance.default("0.6mm"),
|
|
@@ -1946,76 +1955,76 @@ var pcb_via = z84.object({
|
|
|
1946
1955
|
from_layer: layer_ref.optional(),
|
|
1947
1956
|
/** @deprecated */
|
|
1948
1957
|
to_layer: layer_ref.optional(),
|
|
1949
|
-
layers:
|
|
1950
|
-
pcb_trace_id:
|
|
1951
|
-
net_is_assignable:
|
|
1952
|
-
net_assigned:
|
|
1953
|
-
is_tented:
|
|
1958
|
+
layers: z85.array(layer_ref),
|
|
1959
|
+
pcb_trace_id: z85.string().optional(),
|
|
1960
|
+
net_is_assignable: z85.boolean().optional(),
|
|
1961
|
+
net_assigned: z85.boolean().optional(),
|
|
1962
|
+
is_tented: z85.boolean().optional()
|
|
1954
1963
|
}).describe("Defines a via on the PCB");
|
|
1955
1964
|
expectTypesMatch(true);
|
|
1956
1965
|
|
|
1957
1966
|
// src/pcb/pcb_board.ts
|
|
1958
|
-
import { z as
|
|
1959
|
-
var pcb_board =
|
|
1960
|
-
type:
|
|
1967
|
+
import { z as z86 } from "zod";
|
|
1968
|
+
var pcb_board = z86.object({
|
|
1969
|
+
type: z86.literal("pcb_board"),
|
|
1961
1970
|
pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
|
|
1962
|
-
pcb_panel_id:
|
|
1963
|
-
is_subcircuit:
|
|
1964
|
-
subcircuit_id:
|
|
1971
|
+
pcb_panel_id: z86.string().optional(),
|
|
1972
|
+
is_subcircuit: z86.boolean().optional(),
|
|
1973
|
+
subcircuit_id: z86.string().optional(),
|
|
1965
1974
|
width: length.optional(),
|
|
1966
1975
|
height: length.optional(),
|
|
1967
1976
|
center: point,
|
|
1968
1977
|
thickness: length.optional().default(1.4),
|
|
1969
|
-
num_layers:
|
|
1970
|
-
outline:
|
|
1971
|
-
shape:
|
|
1972
|
-
material:
|
|
1978
|
+
num_layers: z86.number().optional().default(4),
|
|
1979
|
+
outline: z86.array(point).optional(),
|
|
1980
|
+
shape: z86.enum(["rect", "polygon"]).optional(),
|
|
1981
|
+
material: z86.enum(["fr4", "fr1"]).default("fr4")
|
|
1973
1982
|
}).describe("Defines the board outline of the PCB");
|
|
1974
1983
|
expectTypesMatch(true);
|
|
1975
1984
|
|
|
1976
1985
|
// src/pcb/pcb_panel.ts
|
|
1977
|
-
import { z as
|
|
1978
|
-
var pcb_panel =
|
|
1979
|
-
type:
|
|
1986
|
+
import { z as z87 } from "zod";
|
|
1987
|
+
var pcb_panel = z87.object({
|
|
1988
|
+
type: z87.literal("pcb_panel"),
|
|
1980
1989
|
pcb_panel_id: getZodPrefixedIdWithDefault("pcb_panel"),
|
|
1981
1990
|
width: length,
|
|
1982
1991
|
height: length,
|
|
1983
1992
|
center: point,
|
|
1984
|
-
covered_with_solder_mask:
|
|
1993
|
+
covered_with_solder_mask: z87.boolean().optional().default(true)
|
|
1985
1994
|
}).describe("Defines a PCB panel that can contain multiple boards");
|
|
1986
1995
|
expectTypesMatch(true);
|
|
1987
1996
|
|
|
1988
1997
|
// src/pcb/pcb_placement_error.ts
|
|
1989
|
-
import { z as
|
|
1990
|
-
var pcb_placement_error =
|
|
1991
|
-
type:
|
|
1998
|
+
import { z as z88 } from "zod";
|
|
1999
|
+
var pcb_placement_error = z88.object({
|
|
2000
|
+
type: z88.literal("pcb_placement_error"),
|
|
1992
2001
|
pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
|
|
1993
|
-
error_type:
|
|
1994
|
-
message:
|
|
1995
|
-
subcircuit_id:
|
|
2002
|
+
error_type: z88.literal("pcb_placement_error").default("pcb_placement_error"),
|
|
2003
|
+
message: z88.string(),
|
|
2004
|
+
subcircuit_id: z88.string().optional()
|
|
1996
2005
|
}).describe("Defines a placement error on the PCB");
|
|
1997
2006
|
expectTypesMatch(true);
|
|
1998
2007
|
|
|
1999
2008
|
// src/pcb/pcb_trace_hint.ts
|
|
2000
|
-
import { z as
|
|
2001
|
-
var pcb_trace_hint =
|
|
2002
|
-
type:
|
|
2009
|
+
import { z as z89 } from "zod";
|
|
2010
|
+
var pcb_trace_hint = z89.object({
|
|
2011
|
+
type: z89.literal("pcb_trace_hint"),
|
|
2003
2012
|
pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
|
|
2004
|
-
pcb_port_id:
|
|
2005
|
-
pcb_component_id:
|
|
2006
|
-
route:
|
|
2007
|
-
subcircuit_id:
|
|
2013
|
+
pcb_port_id: z89.string(),
|
|
2014
|
+
pcb_component_id: z89.string(),
|
|
2015
|
+
route: z89.array(route_hint_point),
|
|
2016
|
+
subcircuit_id: z89.string().optional()
|
|
2008
2017
|
}).describe("A hint that can be used during generation of a PCB trace");
|
|
2009
2018
|
expectTypesMatch(true);
|
|
2010
2019
|
|
|
2011
2020
|
// src/pcb/pcb_silkscreen_line.ts
|
|
2012
|
-
import { z as
|
|
2013
|
-
var pcb_silkscreen_line =
|
|
2014
|
-
type:
|
|
2021
|
+
import { z as z90 } from "zod";
|
|
2022
|
+
var pcb_silkscreen_line = z90.object({
|
|
2023
|
+
type: z90.literal("pcb_silkscreen_line"),
|
|
2015
2024
|
pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
|
|
2016
|
-
pcb_component_id:
|
|
2017
|
-
pcb_group_id:
|
|
2018
|
-
subcircuit_id:
|
|
2025
|
+
pcb_component_id: z90.string(),
|
|
2026
|
+
pcb_group_id: z90.string().optional(),
|
|
2027
|
+
subcircuit_id: z90.string().optional(),
|
|
2019
2028
|
stroke_width: distance.default("0.1mm"),
|
|
2020
2029
|
x1: distance,
|
|
2021
2030
|
y1: distance,
|
|
@@ -2026,32 +2035,32 @@ var pcb_silkscreen_line = z89.object({
|
|
|
2026
2035
|
expectTypesMatch(true);
|
|
2027
2036
|
|
|
2028
2037
|
// src/pcb/pcb_silkscreen_path.ts
|
|
2029
|
-
import { z as
|
|
2030
|
-
var pcb_silkscreen_path =
|
|
2031
|
-
type:
|
|
2038
|
+
import { z as z91 } from "zod";
|
|
2039
|
+
var pcb_silkscreen_path = z91.object({
|
|
2040
|
+
type: z91.literal("pcb_silkscreen_path"),
|
|
2032
2041
|
pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
|
|
2033
|
-
pcb_component_id:
|
|
2034
|
-
pcb_group_id:
|
|
2035
|
-
subcircuit_id:
|
|
2042
|
+
pcb_component_id: z91.string(),
|
|
2043
|
+
pcb_group_id: z91.string().optional(),
|
|
2044
|
+
subcircuit_id: z91.string().optional(),
|
|
2036
2045
|
layer: visible_layer,
|
|
2037
|
-
route:
|
|
2046
|
+
route: z91.array(point),
|
|
2038
2047
|
stroke_width: length
|
|
2039
2048
|
}).describe("Defines a silkscreen path on the PCB");
|
|
2040
2049
|
expectTypesMatch(true);
|
|
2041
2050
|
|
|
2042
2051
|
// src/pcb/pcb_silkscreen_text.ts
|
|
2043
|
-
import { z as
|
|
2044
|
-
var pcb_silkscreen_text =
|
|
2045
|
-
type:
|
|
2052
|
+
import { z as z92 } from "zod";
|
|
2053
|
+
var pcb_silkscreen_text = z92.object({
|
|
2054
|
+
type: z92.literal("pcb_silkscreen_text"),
|
|
2046
2055
|
pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
|
|
2047
|
-
pcb_group_id:
|
|
2048
|
-
subcircuit_id:
|
|
2049
|
-
font:
|
|
2056
|
+
pcb_group_id: z92.string().optional(),
|
|
2057
|
+
subcircuit_id: z92.string().optional(),
|
|
2058
|
+
font: z92.literal("tscircuit2024").default("tscircuit2024"),
|
|
2050
2059
|
font_size: distance.default("0.2mm"),
|
|
2051
|
-
pcb_component_id:
|
|
2052
|
-
text:
|
|
2053
|
-
is_knockout:
|
|
2054
|
-
knockout_padding:
|
|
2060
|
+
pcb_component_id: z92.string(),
|
|
2061
|
+
text: z92.string(),
|
|
2062
|
+
is_knockout: z92.boolean().default(false).optional(),
|
|
2063
|
+
knockout_padding: z92.object({
|
|
2055
2064
|
left: length,
|
|
2056
2065
|
top: length,
|
|
2057
2066
|
bottom: length,
|
|
@@ -2062,27 +2071,27 @@ var pcb_silkscreen_text = z91.object({
|
|
|
2062
2071
|
bottom: "0.2mm",
|
|
2063
2072
|
right: "0.2mm"
|
|
2064
2073
|
}).optional(),
|
|
2065
|
-
ccw_rotation:
|
|
2074
|
+
ccw_rotation: z92.number().optional(),
|
|
2066
2075
|
layer: layer_ref,
|
|
2067
|
-
is_mirrored:
|
|
2076
|
+
is_mirrored: z92.boolean().default(false).optional(),
|
|
2068
2077
|
anchor_position: point.default({ x: 0, y: 0 }),
|
|
2069
2078
|
anchor_alignment: ninePointAnchor.default("center")
|
|
2070
2079
|
}).describe("Defines silkscreen text on the PCB");
|
|
2071
2080
|
expectTypesMatch(true);
|
|
2072
2081
|
|
|
2073
2082
|
// src/pcb/pcb_copper_text.ts
|
|
2074
|
-
import { z as
|
|
2075
|
-
var pcb_copper_text =
|
|
2076
|
-
type:
|
|
2083
|
+
import { z as z93 } from "zod";
|
|
2084
|
+
var pcb_copper_text = z93.object({
|
|
2085
|
+
type: z93.literal("pcb_copper_text"),
|
|
2077
2086
|
pcb_copper_text_id: getZodPrefixedIdWithDefault("pcb_copper_text"),
|
|
2078
|
-
pcb_group_id:
|
|
2079
|
-
subcircuit_id:
|
|
2080
|
-
font:
|
|
2087
|
+
pcb_group_id: z93.string().optional(),
|
|
2088
|
+
subcircuit_id: z93.string().optional(),
|
|
2089
|
+
font: z93.literal("tscircuit2024").default("tscircuit2024"),
|
|
2081
2090
|
font_size: distance.default("0.2mm"),
|
|
2082
|
-
pcb_component_id:
|
|
2083
|
-
text:
|
|
2084
|
-
is_knockout:
|
|
2085
|
-
knockout_padding:
|
|
2091
|
+
pcb_component_id: z93.string(),
|
|
2092
|
+
text: z93.string(),
|
|
2093
|
+
is_knockout: z93.boolean().default(false).optional(),
|
|
2094
|
+
knockout_padding: z93.object({
|
|
2086
2095
|
left: length,
|
|
2087
2096
|
top: length,
|
|
2088
2097
|
bottom: length,
|
|
@@ -2093,44 +2102,44 @@ var pcb_copper_text = z92.object({
|
|
|
2093
2102
|
bottom: "0.2mm",
|
|
2094
2103
|
right: "0.2mm"
|
|
2095
2104
|
}).optional(),
|
|
2096
|
-
ccw_rotation:
|
|
2105
|
+
ccw_rotation: z93.number().optional(),
|
|
2097
2106
|
layer: layer_ref,
|
|
2098
|
-
is_mirrored:
|
|
2107
|
+
is_mirrored: z93.boolean().default(false).optional(),
|
|
2099
2108
|
anchor_position: point.default({ x: 0, y: 0 }),
|
|
2100
2109
|
anchor_alignment: ninePointAnchor.default("center")
|
|
2101
2110
|
}).describe("Defines copper text on the PCB");
|
|
2102
2111
|
expectTypesMatch(true);
|
|
2103
2112
|
|
|
2104
2113
|
// src/pcb/pcb_silkscreen_rect.ts
|
|
2105
|
-
import { z as
|
|
2106
|
-
var pcb_silkscreen_rect =
|
|
2107
|
-
type:
|
|
2114
|
+
import { z as z94 } from "zod";
|
|
2115
|
+
var pcb_silkscreen_rect = z94.object({
|
|
2116
|
+
type: z94.literal("pcb_silkscreen_rect"),
|
|
2108
2117
|
pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
|
|
2109
|
-
pcb_component_id:
|
|
2110
|
-
pcb_group_id:
|
|
2111
|
-
subcircuit_id:
|
|
2118
|
+
pcb_component_id: z94.string(),
|
|
2119
|
+
pcb_group_id: z94.string().optional(),
|
|
2120
|
+
subcircuit_id: z94.string().optional(),
|
|
2112
2121
|
center: point,
|
|
2113
2122
|
width: length,
|
|
2114
2123
|
height: length,
|
|
2115
2124
|
layer: layer_ref,
|
|
2116
2125
|
stroke_width: length.default("1mm"),
|
|
2117
2126
|
corner_radius: length.optional(),
|
|
2118
|
-
is_filled:
|
|
2119
|
-
has_stroke:
|
|
2120
|
-
is_stroke_dashed:
|
|
2127
|
+
is_filled: z94.boolean().default(true).optional(),
|
|
2128
|
+
has_stroke: z94.boolean().optional(),
|
|
2129
|
+
is_stroke_dashed: z94.boolean().optional()
|
|
2121
2130
|
}).describe("Defines a silkscreen rect on the PCB");
|
|
2122
2131
|
expectTypesMatch(true);
|
|
2123
2132
|
|
|
2124
2133
|
// src/pcb/pcb_silkscreen_circle.ts
|
|
2125
|
-
import { z as
|
|
2126
|
-
var pcb_silkscreen_circle =
|
|
2127
|
-
type:
|
|
2134
|
+
import { z as z95 } from "zod";
|
|
2135
|
+
var pcb_silkscreen_circle = z95.object({
|
|
2136
|
+
type: z95.literal("pcb_silkscreen_circle"),
|
|
2128
2137
|
pcb_silkscreen_circle_id: getZodPrefixedIdWithDefault(
|
|
2129
2138
|
"pcb_silkscreen_circle"
|
|
2130
2139
|
),
|
|
2131
|
-
pcb_component_id:
|
|
2132
|
-
pcb_group_id:
|
|
2133
|
-
subcircuit_id:
|
|
2140
|
+
pcb_component_id: z95.string(),
|
|
2141
|
+
pcb_group_id: z95.string().optional(),
|
|
2142
|
+
subcircuit_id: z95.string().optional(),
|
|
2134
2143
|
center: point,
|
|
2135
2144
|
radius: length,
|
|
2136
2145
|
layer: visible_layer,
|
|
@@ -2139,13 +2148,13 @@ var pcb_silkscreen_circle = z94.object({
|
|
|
2139
2148
|
expectTypesMatch(true);
|
|
2140
2149
|
|
|
2141
2150
|
// src/pcb/pcb_silkscreen_oval.ts
|
|
2142
|
-
import { z as
|
|
2143
|
-
var pcb_silkscreen_oval =
|
|
2144
|
-
type:
|
|
2151
|
+
import { z as z96 } from "zod";
|
|
2152
|
+
var pcb_silkscreen_oval = z96.object({
|
|
2153
|
+
type: z96.literal("pcb_silkscreen_oval"),
|
|
2145
2154
|
pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
|
|
2146
|
-
pcb_component_id:
|
|
2147
|
-
pcb_group_id:
|
|
2148
|
-
subcircuit_id:
|
|
2155
|
+
pcb_component_id: z96.string(),
|
|
2156
|
+
pcb_group_id: z96.string().optional(),
|
|
2157
|
+
subcircuit_id: z96.string().optional(),
|
|
2149
2158
|
center: point,
|
|
2150
2159
|
radius_x: distance,
|
|
2151
2160
|
radius_y: distance,
|
|
@@ -2154,257 +2163,257 @@ var pcb_silkscreen_oval = z95.object({
|
|
|
2154
2163
|
expectTypesMatch(true);
|
|
2155
2164
|
|
|
2156
2165
|
// src/pcb/pcb_fabrication_note_text.ts
|
|
2157
|
-
import { z as
|
|
2158
|
-
var pcb_fabrication_note_text =
|
|
2159
|
-
type:
|
|
2166
|
+
import { z as z97 } from "zod";
|
|
2167
|
+
var pcb_fabrication_note_text = z97.object({
|
|
2168
|
+
type: z97.literal("pcb_fabrication_note_text"),
|
|
2160
2169
|
pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
|
|
2161
2170
|
"pcb_fabrication_note_text"
|
|
2162
2171
|
),
|
|
2163
|
-
subcircuit_id:
|
|
2164
|
-
pcb_group_id:
|
|
2165
|
-
font:
|
|
2172
|
+
subcircuit_id: z97.string().optional(),
|
|
2173
|
+
pcb_group_id: z97.string().optional(),
|
|
2174
|
+
font: z97.literal("tscircuit2024").default("tscircuit2024"),
|
|
2166
2175
|
font_size: distance.default("1mm"),
|
|
2167
|
-
pcb_component_id:
|
|
2168
|
-
text:
|
|
2176
|
+
pcb_component_id: z97.string(),
|
|
2177
|
+
text: z97.string(),
|
|
2169
2178
|
layer: visible_layer,
|
|
2170
2179
|
anchor_position: point.default({ x: 0, y: 0 }),
|
|
2171
|
-
anchor_alignment:
|
|
2172
|
-
color:
|
|
2180
|
+
anchor_alignment: z97.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
|
|
2181
|
+
color: z97.string().optional()
|
|
2173
2182
|
}).describe(
|
|
2174
2183
|
"Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
|
|
2175
2184
|
);
|
|
2176
2185
|
expectTypesMatch(true);
|
|
2177
2186
|
|
|
2178
2187
|
// src/pcb/pcb_fabrication_note_path.ts
|
|
2179
|
-
import { z as
|
|
2180
|
-
var pcb_fabrication_note_path =
|
|
2181
|
-
type:
|
|
2188
|
+
import { z as z98 } from "zod";
|
|
2189
|
+
var pcb_fabrication_note_path = z98.object({
|
|
2190
|
+
type: z98.literal("pcb_fabrication_note_path"),
|
|
2182
2191
|
pcb_fabrication_note_path_id: getZodPrefixedIdWithDefault(
|
|
2183
2192
|
"pcb_fabrication_note_path"
|
|
2184
2193
|
),
|
|
2185
|
-
pcb_component_id:
|
|
2186
|
-
subcircuit_id:
|
|
2194
|
+
pcb_component_id: z98.string(),
|
|
2195
|
+
subcircuit_id: z98.string().optional(),
|
|
2187
2196
|
layer: layer_ref,
|
|
2188
|
-
route:
|
|
2197
|
+
route: z98.array(point),
|
|
2189
2198
|
stroke_width: length,
|
|
2190
|
-
color:
|
|
2199
|
+
color: z98.string().optional()
|
|
2191
2200
|
}).describe(
|
|
2192
2201
|
"Defines a fabrication path on the PCB for fabricators or assemblers"
|
|
2193
2202
|
);
|
|
2194
2203
|
expectTypesMatch(true);
|
|
2195
2204
|
|
|
2196
2205
|
// src/pcb/pcb_fabrication_note_rect.ts
|
|
2197
|
-
import { z as
|
|
2198
|
-
var pcb_fabrication_note_rect =
|
|
2199
|
-
type:
|
|
2206
|
+
import { z as z99 } from "zod";
|
|
2207
|
+
var pcb_fabrication_note_rect = z99.object({
|
|
2208
|
+
type: z99.literal("pcb_fabrication_note_rect"),
|
|
2200
2209
|
pcb_fabrication_note_rect_id: getZodPrefixedIdWithDefault(
|
|
2201
2210
|
"pcb_fabrication_note_rect"
|
|
2202
2211
|
),
|
|
2203
|
-
pcb_component_id:
|
|
2204
|
-
pcb_group_id:
|
|
2205
|
-
subcircuit_id:
|
|
2212
|
+
pcb_component_id: z99.string(),
|
|
2213
|
+
pcb_group_id: z99.string().optional(),
|
|
2214
|
+
subcircuit_id: z99.string().optional(),
|
|
2206
2215
|
center: point,
|
|
2207
2216
|
width: length,
|
|
2208
2217
|
height: length,
|
|
2209
2218
|
layer: visible_layer,
|
|
2210
2219
|
stroke_width: length.default("0.1mm"),
|
|
2211
2220
|
corner_radius: length.optional(),
|
|
2212
|
-
is_filled:
|
|
2213
|
-
has_stroke:
|
|
2214
|
-
is_stroke_dashed:
|
|
2215
|
-
color:
|
|
2221
|
+
is_filled: z99.boolean().optional(),
|
|
2222
|
+
has_stroke: z99.boolean().optional(),
|
|
2223
|
+
is_stroke_dashed: z99.boolean().optional(),
|
|
2224
|
+
color: z99.string().optional()
|
|
2216
2225
|
}).describe("Defines a fabrication note rectangle on the PCB");
|
|
2217
2226
|
expectTypesMatch(true);
|
|
2218
2227
|
|
|
2219
2228
|
// src/pcb/pcb_fabrication_note_dimension.ts
|
|
2220
|
-
import { z as
|
|
2221
|
-
var pcb_fabrication_note_dimension =
|
|
2222
|
-
type:
|
|
2229
|
+
import { z as z100 } from "zod";
|
|
2230
|
+
var pcb_fabrication_note_dimension = z100.object({
|
|
2231
|
+
type: z100.literal("pcb_fabrication_note_dimension"),
|
|
2223
2232
|
pcb_fabrication_note_dimension_id: getZodPrefixedIdWithDefault(
|
|
2224
2233
|
"pcb_fabrication_note_dimension"
|
|
2225
2234
|
),
|
|
2226
|
-
pcb_component_id:
|
|
2227
|
-
pcb_group_id:
|
|
2228
|
-
subcircuit_id:
|
|
2235
|
+
pcb_component_id: z100.string(),
|
|
2236
|
+
pcb_group_id: z100.string().optional(),
|
|
2237
|
+
subcircuit_id: z100.string().optional(),
|
|
2229
2238
|
layer: visible_layer,
|
|
2230
2239
|
from: point,
|
|
2231
2240
|
to: point,
|
|
2232
|
-
text:
|
|
2233
|
-
text_ccw_rotation:
|
|
2241
|
+
text: z100.string().optional(),
|
|
2242
|
+
text_ccw_rotation: z100.number().optional(),
|
|
2234
2243
|
offset: length.optional(),
|
|
2235
2244
|
offset_distance: length.optional(),
|
|
2236
|
-
offset_direction:
|
|
2237
|
-
x:
|
|
2238
|
-
y:
|
|
2245
|
+
offset_direction: z100.object({
|
|
2246
|
+
x: z100.number(),
|
|
2247
|
+
y: z100.number()
|
|
2239
2248
|
}).optional(),
|
|
2240
|
-
font:
|
|
2249
|
+
font: z100.literal("tscircuit2024").default("tscircuit2024"),
|
|
2241
2250
|
font_size: length.default("1mm"),
|
|
2242
|
-
color:
|
|
2251
|
+
color: z100.string().optional(),
|
|
2243
2252
|
arrow_size: length.default("1mm")
|
|
2244
2253
|
}).describe("Defines a measurement annotation within PCB fabrication notes");
|
|
2245
2254
|
expectTypesMatch(true);
|
|
2246
2255
|
|
|
2247
2256
|
// src/pcb/pcb_note_text.ts
|
|
2248
|
-
import { z as z100 } from "zod";
|
|
2249
|
-
var pcb_note_text = z100.object({
|
|
2250
|
-
type: z100.literal("pcb_note_text"),
|
|
2251
|
-
pcb_note_text_id: getZodPrefixedIdWithDefault("pcb_note_text"),
|
|
2252
|
-
pcb_component_id: z100.string().optional(),
|
|
2253
|
-
pcb_group_id: z100.string().optional(),
|
|
2254
|
-
subcircuit_id: z100.string().optional(),
|
|
2255
|
-
name: z100.string().optional(),
|
|
2256
|
-
font: z100.literal("tscircuit2024").default("tscircuit2024"),
|
|
2257
|
-
font_size: distance.default("1mm"),
|
|
2258
|
-
text: z100.string().optional(),
|
|
2259
|
-
anchor_position: point.default({ x: 0, y: 0 }),
|
|
2260
|
-
anchor_alignment: z100.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
|
|
2261
|
-
color: z100.string().optional()
|
|
2262
|
-
}).describe("Defines a documentation note in text on the PCB");
|
|
2263
|
-
expectTypesMatch(true);
|
|
2264
|
-
|
|
2265
|
-
// src/pcb/pcb_note_rect.ts
|
|
2266
2257
|
import { z as z101 } from "zod";
|
|
2267
|
-
var
|
|
2268
|
-
type: z101.literal("
|
|
2269
|
-
|
|
2258
|
+
var pcb_note_text = z101.object({
|
|
2259
|
+
type: z101.literal("pcb_note_text"),
|
|
2260
|
+
pcb_note_text_id: getZodPrefixedIdWithDefault("pcb_note_text"),
|
|
2270
2261
|
pcb_component_id: z101.string().optional(),
|
|
2271
2262
|
pcb_group_id: z101.string().optional(),
|
|
2272
2263
|
subcircuit_id: z101.string().optional(),
|
|
2273
2264
|
name: z101.string().optional(),
|
|
2265
|
+
font: z101.literal("tscircuit2024").default("tscircuit2024"),
|
|
2266
|
+
font_size: distance.default("1mm"),
|
|
2274
2267
|
text: z101.string().optional(),
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
height: length,
|
|
2278
|
-
stroke_width: length.default("0.1mm"),
|
|
2279
|
-
corner_radius: length.optional(),
|
|
2280
|
-
is_filled: z101.boolean().optional(),
|
|
2281
|
-
has_stroke: z101.boolean().optional(),
|
|
2282
|
-
is_stroke_dashed: z101.boolean().optional(),
|
|
2268
|
+
anchor_position: point.default({ x: 0, y: 0 }),
|
|
2269
|
+
anchor_alignment: z101.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
|
|
2283
2270
|
color: z101.string().optional()
|
|
2284
|
-
}).describe("Defines a
|
|
2271
|
+
}).describe("Defines a documentation note in text on the PCB");
|
|
2285
2272
|
expectTypesMatch(true);
|
|
2286
2273
|
|
|
2287
|
-
// src/pcb/
|
|
2274
|
+
// src/pcb/pcb_note_rect.ts
|
|
2288
2275
|
import { z as z102 } from "zod";
|
|
2289
|
-
var
|
|
2290
|
-
type: z102.literal("
|
|
2291
|
-
|
|
2276
|
+
var pcb_note_rect = z102.object({
|
|
2277
|
+
type: z102.literal("pcb_note_rect"),
|
|
2278
|
+
pcb_note_rect_id: getZodPrefixedIdWithDefault("pcb_note_rect"),
|
|
2292
2279
|
pcb_component_id: z102.string().optional(),
|
|
2293
2280
|
pcb_group_id: z102.string().optional(),
|
|
2294
2281
|
subcircuit_id: z102.string().optional(),
|
|
2295
2282
|
name: z102.string().optional(),
|
|
2296
2283
|
text: z102.string().optional(),
|
|
2297
|
-
|
|
2284
|
+
center: point,
|
|
2285
|
+
width: length,
|
|
2286
|
+
height: length,
|
|
2298
2287
|
stroke_width: length.default("0.1mm"),
|
|
2288
|
+
corner_radius: length.optional(),
|
|
2289
|
+
is_filled: z102.boolean().optional(),
|
|
2290
|
+
has_stroke: z102.boolean().optional(),
|
|
2291
|
+
is_stroke_dashed: z102.boolean().optional(),
|
|
2299
2292
|
color: z102.string().optional()
|
|
2300
|
-
}).describe("Defines a
|
|
2293
|
+
}).describe("Defines a rectangular documentation note on the PCB");
|
|
2301
2294
|
expectTypesMatch(true);
|
|
2302
2295
|
|
|
2303
|
-
// src/pcb/
|
|
2296
|
+
// src/pcb/pcb_note_path.ts
|
|
2304
2297
|
import { z as z103 } from "zod";
|
|
2305
|
-
var
|
|
2306
|
-
type: z103.literal("
|
|
2307
|
-
|
|
2298
|
+
var pcb_note_path = z103.object({
|
|
2299
|
+
type: z103.literal("pcb_note_path"),
|
|
2300
|
+
pcb_note_path_id: getZodPrefixedIdWithDefault("pcb_note_path"),
|
|
2308
2301
|
pcb_component_id: z103.string().optional(),
|
|
2309
2302
|
pcb_group_id: z103.string().optional(),
|
|
2310
2303
|
subcircuit_id: z103.string().optional(),
|
|
2311
2304
|
name: z103.string().optional(),
|
|
2312
2305
|
text: z103.string().optional(),
|
|
2306
|
+
route: z103.array(point),
|
|
2307
|
+
stroke_width: length.default("0.1mm"),
|
|
2308
|
+
color: z103.string().optional()
|
|
2309
|
+
}).describe("Defines a polyline documentation note on the PCB");
|
|
2310
|
+
expectTypesMatch(true);
|
|
2311
|
+
|
|
2312
|
+
// src/pcb/pcb_note_line.ts
|
|
2313
|
+
import { z as z104 } from "zod";
|
|
2314
|
+
var pcb_note_line = z104.object({
|
|
2315
|
+
type: z104.literal("pcb_note_line"),
|
|
2316
|
+
pcb_note_line_id: getZodPrefixedIdWithDefault("pcb_note_line"),
|
|
2317
|
+
pcb_component_id: z104.string().optional(),
|
|
2318
|
+
pcb_group_id: z104.string().optional(),
|
|
2319
|
+
subcircuit_id: z104.string().optional(),
|
|
2320
|
+
name: z104.string().optional(),
|
|
2321
|
+
text: z104.string().optional(),
|
|
2313
2322
|
x1: distance,
|
|
2314
2323
|
y1: distance,
|
|
2315
2324
|
x2: distance,
|
|
2316
2325
|
y2: distance,
|
|
2317
2326
|
stroke_width: distance.default("0.1mm"),
|
|
2318
|
-
color:
|
|
2319
|
-
is_dashed:
|
|
2327
|
+
color: z104.string().optional(),
|
|
2328
|
+
is_dashed: z104.boolean().optional()
|
|
2320
2329
|
}).describe("Defines a straight documentation note line on the PCB");
|
|
2321
2330
|
expectTypesMatch(true);
|
|
2322
2331
|
|
|
2323
2332
|
// src/pcb/pcb_note_dimension.ts
|
|
2324
|
-
import { z as
|
|
2325
|
-
var pcb_note_dimension =
|
|
2326
|
-
type:
|
|
2333
|
+
import { z as z105 } from "zod";
|
|
2334
|
+
var pcb_note_dimension = z105.object({
|
|
2335
|
+
type: z105.literal("pcb_note_dimension"),
|
|
2327
2336
|
pcb_note_dimension_id: getZodPrefixedIdWithDefault("pcb_note_dimension"),
|
|
2328
|
-
pcb_component_id:
|
|
2329
|
-
pcb_group_id:
|
|
2330
|
-
subcircuit_id:
|
|
2331
|
-
name:
|
|
2337
|
+
pcb_component_id: z105.string().optional(),
|
|
2338
|
+
pcb_group_id: z105.string().optional(),
|
|
2339
|
+
subcircuit_id: z105.string().optional(),
|
|
2340
|
+
name: z105.string().optional(),
|
|
2332
2341
|
from: point,
|
|
2333
2342
|
to: point,
|
|
2334
|
-
text:
|
|
2335
|
-
text_ccw_rotation:
|
|
2343
|
+
text: z105.string().optional(),
|
|
2344
|
+
text_ccw_rotation: z105.number().optional(),
|
|
2336
2345
|
offset_distance: length.optional(),
|
|
2337
|
-
offset_direction:
|
|
2338
|
-
x:
|
|
2339
|
-
y:
|
|
2346
|
+
offset_direction: z105.object({
|
|
2347
|
+
x: z105.number(),
|
|
2348
|
+
y: z105.number()
|
|
2340
2349
|
}).optional(),
|
|
2341
|
-
font:
|
|
2350
|
+
font: z105.literal("tscircuit2024").default("tscircuit2024"),
|
|
2342
2351
|
font_size: length.default("1mm"),
|
|
2343
|
-
color:
|
|
2352
|
+
color: z105.string().optional(),
|
|
2344
2353
|
arrow_size: length.default("1mm")
|
|
2345
2354
|
}).describe("Defines a measurement annotation within PCB documentation notes");
|
|
2346
2355
|
expectTypesMatch(true);
|
|
2347
2356
|
|
|
2348
2357
|
// src/pcb/pcb_footprint_overlap_error.ts
|
|
2349
|
-
import { z as
|
|
2350
|
-
var pcb_footprint_overlap_error =
|
|
2351
|
-
type:
|
|
2358
|
+
import { z as z106 } from "zod";
|
|
2359
|
+
var pcb_footprint_overlap_error = z106.object({
|
|
2360
|
+
type: z106.literal("pcb_footprint_overlap_error"),
|
|
2352
2361
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
2353
|
-
error_type:
|
|
2354
|
-
message:
|
|
2355
|
-
pcb_smtpad_ids:
|
|
2356
|
-
pcb_plated_hole_ids:
|
|
2357
|
-
pcb_hole_ids:
|
|
2358
|
-
pcb_keepout_ids:
|
|
2362
|
+
error_type: z106.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
|
|
2363
|
+
message: z106.string(),
|
|
2364
|
+
pcb_smtpad_ids: z106.array(z106.string()).optional(),
|
|
2365
|
+
pcb_plated_hole_ids: z106.array(z106.string()).optional(),
|
|
2366
|
+
pcb_hole_ids: z106.array(z106.string()).optional(),
|
|
2367
|
+
pcb_keepout_ids: z106.array(z106.string()).optional()
|
|
2359
2368
|
}).describe("Error emitted when a pcb footprint overlaps with another element");
|
|
2360
2369
|
expectTypesMatch(
|
|
2361
2370
|
true
|
|
2362
2371
|
);
|
|
2363
2372
|
|
|
2364
2373
|
// src/pcb/pcb_keepout.ts
|
|
2365
|
-
import { z as
|
|
2366
|
-
var pcb_keepout =
|
|
2367
|
-
type:
|
|
2368
|
-
shape:
|
|
2369
|
-
pcb_group_id:
|
|
2370
|
-
subcircuit_id:
|
|
2374
|
+
import { z as z107 } from "zod";
|
|
2375
|
+
var pcb_keepout = z107.object({
|
|
2376
|
+
type: z107.literal("pcb_keepout"),
|
|
2377
|
+
shape: z107.literal("rect"),
|
|
2378
|
+
pcb_group_id: z107.string().optional(),
|
|
2379
|
+
subcircuit_id: z107.string().optional(),
|
|
2371
2380
|
center: point,
|
|
2372
2381
|
width: distance,
|
|
2373
2382
|
height: distance,
|
|
2374
|
-
pcb_keepout_id:
|
|
2375
|
-
layers:
|
|
2383
|
+
pcb_keepout_id: z107.string(),
|
|
2384
|
+
layers: z107.array(z107.string()),
|
|
2376
2385
|
// Specify layers where the keepout applies
|
|
2377
|
-
description:
|
|
2386
|
+
description: z107.string().optional()
|
|
2378
2387
|
// Optional description of the keepout
|
|
2379
2388
|
}).or(
|
|
2380
|
-
|
|
2381
|
-
type:
|
|
2382
|
-
shape:
|
|
2383
|
-
pcb_group_id:
|
|
2384
|
-
subcircuit_id:
|
|
2389
|
+
z107.object({
|
|
2390
|
+
type: z107.literal("pcb_keepout"),
|
|
2391
|
+
shape: z107.literal("circle"),
|
|
2392
|
+
pcb_group_id: z107.string().optional(),
|
|
2393
|
+
subcircuit_id: z107.string().optional(),
|
|
2385
2394
|
center: point,
|
|
2386
2395
|
radius: distance,
|
|
2387
|
-
pcb_keepout_id:
|
|
2388
|
-
layers:
|
|
2396
|
+
pcb_keepout_id: z107.string(),
|
|
2397
|
+
layers: z107.array(z107.string()),
|
|
2389
2398
|
// Specify layers where the keepout applies
|
|
2390
|
-
description:
|
|
2399
|
+
description: z107.string().optional()
|
|
2391
2400
|
// Optional description of the keepout
|
|
2392
2401
|
})
|
|
2393
2402
|
);
|
|
2394
2403
|
expectTypesMatch(true);
|
|
2395
2404
|
|
|
2396
2405
|
// src/pcb/pcb_cutout.ts
|
|
2397
|
-
import { z as
|
|
2398
|
-
var pcb_cutout_base =
|
|
2399
|
-
type:
|
|
2406
|
+
import { z as z108 } from "zod";
|
|
2407
|
+
var pcb_cutout_base = z108.object({
|
|
2408
|
+
type: z108.literal("pcb_cutout"),
|
|
2400
2409
|
pcb_cutout_id: getZodPrefixedIdWithDefault("pcb_cutout"),
|
|
2401
|
-
pcb_group_id:
|
|
2402
|
-
subcircuit_id:
|
|
2403
|
-
pcb_board_id:
|
|
2404
|
-
pcb_panel_id:
|
|
2410
|
+
pcb_group_id: z108.string().optional(),
|
|
2411
|
+
subcircuit_id: z108.string().optional(),
|
|
2412
|
+
pcb_board_id: z108.string().optional(),
|
|
2413
|
+
pcb_panel_id: z108.string().optional()
|
|
2405
2414
|
});
|
|
2406
2415
|
var pcb_cutout_rect = pcb_cutout_base.extend({
|
|
2407
|
-
shape:
|
|
2416
|
+
shape: z108.literal("rect"),
|
|
2408
2417
|
center: point,
|
|
2409
2418
|
width: length,
|
|
2410
2419
|
height: length,
|
|
@@ -2413,26 +2422,26 @@ var pcb_cutout_rect = pcb_cutout_base.extend({
|
|
|
2413
2422
|
});
|
|
2414
2423
|
expectTypesMatch(true);
|
|
2415
2424
|
var pcb_cutout_circle = pcb_cutout_base.extend({
|
|
2416
|
-
shape:
|
|
2425
|
+
shape: z108.literal("circle"),
|
|
2417
2426
|
center: point,
|
|
2418
2427
|
radius: length
|
|
2419
2428
|
});
|
|
2420
2429
|
expectTypesMatch(true);
|
|
2421
2430
|
var pcb_cutout_polygon = pcb_cutout_base.extend({
|
|
2422
|
-
shape:
|
|
2423
|
-
points:
|
|
2431
|
+
shape: z108.literal("polygon"),
|
|
2432
|
+
points: z108.array(point)
|
|
2424
2433
|
});
|
|
2425
2434
|
expectTypesMatch(true);
|
|
2426
2435
|
var pcb_cutout_path = pcb_cutout_base.extend({
|
|
2427
|
-
shape:
|
|
2428
|
-
route:
|
|
2436
|
+
shape: z108.literal("path"),
|
|
2437
|
+
route: z108.array(point),
|
|
2429
2438
|
slot_width: length,
|
|
2430
2439
|
slot_length: length.optional(),
|
|
2431
2440
|
space_between_slots: length.optional(),
|
|
2432
2441
|
slot_corner_radius: length.optional()
|
|
2433
2442
|
});
|
|
2434
2443
|
expectTypesMatch(true);
|
|
2435
|
-
var pcb_cutout =
|
|
2444
|
+
var pcb_cutout = z108.discriminatedUnion("shape", [
|
|
2436
2445
|
pcb_cutout_rect,
|
|
2437
2446
|
pcb_cutout_circle,
|
|
2438
2447
|
pcb_cutout_polygon,
|
|
@@ -2441,121 +2450,121 @@ var pcb_cutout = z107.discriminatedUnion("shape", [
|
|
|
2441
2450
|
expectTypesMatch(true);
|
|
2442
2451
|
|
|
2443
2452
|
// src/pcb/pcb_missing_footprint_error.ts
|
|
2444
|
-
import { z as
|
|
2445
|
-
var pcb_missing_footprint_error =
|
|
2446
|
-
type:
|
|
2453
|
+
import { z as z109 } from "zod";
|
|
2454
|
+
var pcb_missing_footprint_error = z109.object({
|
|
2455
|
+
type: z109.literal("pcb_missing_footprint_error"),
|
|
2447
2456
|
pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
|
|
2448
2457
|
"pcb_missing_footprint_error"
|
|
2449
2458
|
),
|
|
2450
|
-
pcb_group_id:
|
|
2451
|
-
subcircuit_id:
|
|
2452
|
-
error_type:
|
|
2453
|
-
source_component_id:
|
|
2454
|
-
message:
|
|
2459
|
+
pcb_group_id: z109.string().optional(),
|
|
2460
|
+
subcircuit_id: z109.string().optional(),
|
|
2461
|
+
error_type: z109.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
|
|
2462
|
+
source_component_id: z109.string(),
|
|
2463
|
+
message: z109.string()
|
|
2455
2464
|
}).describe("Defines a missing footprint error on the PCB");
|
|
2456
2465
|
expectTypesMatch(
|
|
2457
2466
|
true
|
|
2458
2467
|
);
|
|
2459
2468
|
|
|
2460
2469
|
// src/pcb/external_footprint_load_error.ts
|
|
2461
|
-
import { z as
|
|
2462
|
-
var external_footprint_load_error =
|
|
2463
|
-
type:
|
|
2470
|
+
import { z as z110 } from "zod";
|
|
2471
|
+
var external_footprint_load_error = z110.object({
|
|
2472
|
+
type: z110.literal("external_footprint_load_error"),
|
|
2464
2473
|
external_footprint_load_error_id: getZodPrefixedIdWithDefault(
|
|
2465
2474
|
"external_footprint_load_error"
|
|
2466
2475
|
),
|
|
2467
|
-
pcb_component_id:
|
|
2468
|
-
source_component_id:
|
|
2469
|
-
pcb_group_id:
|
|
2470
|
-
subcircuit_id:
|
|
2471
|
-
footprinter_string:
|
|
2472
|
-
error_type:
|
|
2473
|
-
message:
|
|
2476
|
+
pcb_component_id: z110.string(),
|
|
2477
|
+
source_component_id: z110.string(),
|
|
2478
|
+
pcb_group_id: z110.string().optional(),
|
|
2479
|
+
subcircuit_id: z110.string().optional(),
|
|
2480
|
+
footprinter_string: z110.string().optional(),
|
|
2481
|
+
error_type: z110.literal("external_footprint_load_error").default("external_footprint_load_error"),
|
|
2482
|
+
message: z110.string()
|
|
2474
2483
|
}).describe("Defines an error when an external footprint fails to load");
|
|
2475
2484
|
expectTypesMatch(true);
|
|
2476
2485
|
|
|
2477
2486
|
// src/pcb/circuit_json_footprint_load_error.ts
|
|
2478
|
-
import { z as
|
|
2479
|
-
var circuit_json_footprint_load_error =
|
|
2480
|
-
type:
|
|
2487
|
+
import { z as z111 } from "zod";
|
|
2488
|
+
var circuit_json_footprint_load_error = z111.object({
|
|
2489
|
+
type: z111.literal("circuit_json_footprint_load_error"),
|
|
2481
2490
|
circuit_json_footprint_load_error_id: getZodPrefixedIdWithDefault(
|
|
2482
2491
|
"circuit_json_footprint_load_error"
|
|
2483
2492
|
),
|
|
2484
|
-
pcb_component_id:
|
|
2485
|
-
source_component_id:
|
|
2486
|
-
pcb_group_id:
|
|
2487
|
-
subcircuit_id:
|
|
2488
|
-
error_type:
|
|
2489
|
-
message:
|
|
2490
|
-
circuit_json:
|
|
2493
|
+
pcb_component_id: z111.string(),
|
|
2494
|
+
source_component_id: z111.string(),
|
|
2495
|
+
pcb_group_id: z111.string().optional(),
|
|
2496
|
+
subcircuit_id: z111.string().optional(),
|
|
2497
|
+
error_type: z111.literal("circuit_json_footprint_load_error").default("circuit_json_footprint_load_error"),
|
|
2498
|
+
message: z111.string(),
|
|
2499
|
+
circuit_json: z111.array(z111.any()).optional()
|
|
2491
2500
|
}).describe("Defines an error when a circuit JSON footprint fails to load");
|
|
2492
2501
|
expectTypesMatch(true);
|
|
2493
2502
|
|
|
2494
2503
|
// src/pcb/pcb_group.ts
|
|
2495
|
-
import { z as
|
|
2496
|
-
var pcb_group =
|
|
2497
|
-
type:
|
|
2504
|
+
import { z as z112 } from "zod";
|
|
2505
|
+
var pcb_group = z112.object({
|
|
2506
|
+
type: z112.literal("pcb_group"),
|
|
2498
2507
|
pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
|
|
2499
|
-
source_group_id:
|
|
2500
|
-
is_subcircuit:
|
|
2501
|
-
subcircuit_id:
|
|
2508
|
+
source_group_id: z112.string(),
|
|
2509
|
+
is_subcircuit: z112.boolean().optional(),
|
|
2510
|
+
subcircuit_id: z112.string().optional(),
|
|
2502
2511
|
width: length.optional(),
|
|
2503
2512
|
height: length.optional(),
|
|
2504
2513
|
center: point,
|
|
2505
|
-
outline:
|
|
2514
|
+
outline: z112.array(point).optional(),
|
|
2506
2515
|
anchor_position: point.optional(),
|
|
2507
|
-
anchor_alignment:
|
|
2508
|
-
pcb_component_ids:
|
|
2509
|
-
child_layout_mode:
|
|
2510
|
-
name:
|
|
2511
|
-
description:
|
|
2512
|
-
layout_mode:
|
|
2513
|
-
autorouter_configuration:
|
|
2516
|
+
anchor_alignment: z112.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
|
|
2517
|
+
pcb_component_ids: z112.array(z112.string()),
|
|
2518
|
+
child_layout_mode: z112.enum(["packed", "none"]).optional(),
|
|
2519
|
+
name: z112.string().optional(),
|
|
2520
|
+
description: z112.string().optional(),
|
|
2521
|
+
layout_mode: z112.string().optional(),
|
|
2522
|
+
autorouter_configuration: z112.object({
|
|
2514
2523
|
trace_clearance: length
|
|
2515
2524
|
}).optional(),
|
|
2516
|
-
autorouter_used_string:
|
|
2525
|
+
autorouter_used_string: z112.string().optional()
|
|
2517
2526
|
}).describe("Defines a group of components on the PCB");
|
|
2518
2527
|
expectTypesMatch(true);
|
|
2519
2528
|
|
|
2520
2529
|
// src/pcb/pcb_autorouting_error.ts
|
|
2521
|
-
import { z as
|
|
2522
|
-
var pcb_autorouting_error =
|
|
2523
|
-
type:
|
|
2530
|
+
import { z as z113 } from "zod";
|
|
2531
|
+
var pcb_autorouting_error = z113.object({
|
|
2532
|
+
type: z113.literal("pcb_autorouting_error"),
|
|
2524
2533
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
|
|
2525
|
-
error_type:
|
|
2526
|
-
message:
|
|
2527
|
-
subcircuit_id:
|
|
2534
|
+
error_type: z113.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
|
|
2535
|
+
message: z113.string(),
|
|
2536
|
+
subcircuit_id: z113.string().optional()
|
|
2528
2537
|
}).describe("The autorouting has failed to route a portion of the board");
|
|
2529
2538
|
expectTypesMatch(true);
|
|
2530
2539
|
|
|
2531
2540
|
// src/pcb/pcb_manual_edit_conflict_warning.ts
|
|
2532
|
-
import { z as
|
|
2533
|
-
var pcb_manual_edit_conflict_warning =
|
|
2534
|
-
type:
|
|
2541
|
+
import { z as z114 } from "zod";
|
|
2542
|
+
var pcb_manual_edit_conflict_warning = z114.object({
|
|
2543
|
+
type: z114.literal("pcb_manual_edit_conflict_warning"),
|
|
2535
2544
|
pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
|
|
2536
2545
|
"pcb_manual_edit_conflict_warning"
|
|
2537
2546
|
),
|
|
2538
|
-
warning_type:
|
|
2539
|
-
message:
|
|
2540
|
-
pcb_component_id:
|
|
2541
|
-
pcb_group_id:
|
|
2542
|
-
subcircuit_id:
|
|
2543
|
-
source_component_id:
|
|
2547
|
+
warning_type: z114.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
|
|
2548
|
+
message: z114.string(),
|
|
2549
|
+
pcb_component_id: z114.string(),
|
|
2550
|
+
pcb_group_id: z114.string().optional(),
|
|
2551
|
+
subcircuit_id: z114.string().optional(),
|
|
2552
|
+
source_component_id: z114.string()
|
|
2544
2553
|
}).describe(
|
|
2545
2554
|
"Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
|
|
2546
2555
|
);
|
|
2547
2556
|
expectTypesMatch(true);
|
|
2548
2557
|
|
|
2549
2558
|
// src/pcb/pcb_breakout_point.ts
|
|
2550
|
-
import { z as
|
|
2551
|
-
var pcb_breakout_point =
|
|
2552
|
-
type:
|
|
2559
|
+
import { z as z115 } from "zod";
|
|
2560
|
+
var pcb_breakout_point = z115.object({
|
|
2561
|
+
type: z115.literal("pcb_breakout_point"),
|
|
2553
2562
|
pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
|
|
2554
|
-
pcb_group_id:
|
|
2555
|
-
subcircuit_id:
|
|
2556
|
-
source_trace_id:
|
|
2557
|
-
source_port_id:
|
|
2558
|
-
source_net_id:
|
|
2563
|
+
pcb_group_id: z115.string(),
|
|
2564
|
+
subcircuit_id: z115.string().optional(),
|
|
2565
|
+
source_trace_id: z115.string().optional(),
|
|
2566
|
+
source_port_id: z115.string().optional(),
|
|
2567
|
+
source_net_id: z115.string().optional(),
|
|
2559
2568
|
x: distance,
|
|
2560
2569
|
y: distance
|
|
2561
2570
|
}).describe(
|
|
@@ -2564,61 +2573,61 @@ var pcb_breakout_point = z114.object({
|
|
|
2564
2573
|
expectTypesMatch(true);
|
|
2565
2574
|
|
|
2566
2575
|
// src/pcb/pcb_ground_plane.ts
|
|
2567
|
-
import { z as
|
|
2568
|
-
var pcb_ground_plane =
|
|
2569
|
-
type:
|
|
2576
|
+
import { z as z116 } from "zod";
|
|
2577
|
+
var pcb_ground_plane = z116.object({
|
|
2578
|
+
type: z116.literal("pcb_ground_plane"),
|
|
2570
2579
|
pcb_ground_plane_id: getZodPrefixedIdWithDefault("pcb_ground_plane"),
|
|
2571
|
-
source_pcb_ground_plane_id:
|
|
2572
|
-
source_net_id:
|
|
2573
|
-
pcb_group_id:
|
|
2574
|
-
subcircuit_id:
|
|
2580
|
+
source_pcb_ground_plane_id: z116.string(),
|
|
2581
|
+
source_net_id: z116.string(),
|
|
2582
|
+
pcb_group_id: z116.string().optional(),
|
|
2583
|
+
subcircuit_id: z116.string().optional()
|
|
2575
2584
|
}).describe("Defines a ground plane on the PCB");
|
|
2576
2585
|
expectTypesMatch(true);
|
|
2577
2586
|
|
|
2578
2587
|
// src/pcb/pcb_ground_plane_region.ts
|
|
2579
|
-
import { z as
|
|
2580
|
-
var pcb_ground_plane_region =
|
|
2581
|
-
type:
|
|
2588
|
+
import { z as z117 } from "zod";
|
|
2589
|
+
var pcb_ground_plane_region = z117.object({
|
|
2590
|
+
type: z117.literal("pcb_ground_plane_region"),
|
|
2582
2591
|
pcb_ground_plane_region_id: getZodPrefixedIdWithDefault(
|
|
2583
2592
|
"pcb_ground_plane_region"
|
|
2584
2593
|
),
|
|
2585
|
-
pcb_ground_plane_id:
|
|
2586
|
-
pcb_group_id:
|
|
2587
|
-
subcircuit_id:
|
|
2594
|
+
pcb_ground_plane_id: z117.string(),
|
|
2595
|
+
pcb_group_id: z117.string().optional(),
|
|
2596
|
+
subcircuit_id: z117.string().optional(),
|
|
2588
2597
|
layer: layer_ref,
|
|
2589
|
-
points:
|
|
2598
|
+
points: z117.array(point)
|
|
2590
2599
|
}).describe("Defines a polygon region of a ground plane");
|
|
2591
2600
|
expectTypesMatch(true);
|
|
2592
2601
|
|
|
2593
2602
|
// src/pcb/pcb_thermal_spoke.ts
|
|
2594
|
-
import { z as
|
|
2595
|
-
var pcb_thermal_spoke =
|
|
2596
|
-
type:
|
|
2603
|
+
import { z as z118 } from "zod";
|
|
2604
|
+
var pcb_thermal_spoke = z118.object({
|
|
2605
|
+
type: z118.literal("pcb_thermal_spoke"),
|
|
2597
2606
|
pcb_thermal_spoke_id: getZodPrefixedIdWithDefault("pcb_thermal_spoke"),
|
|
2598
|
-
pcb_ground_plane_id:
|
|
2599
|
-
shape:
|
|
2600
|
-
spoke_count:
|
|
2607
|
+
pcb_ground_plane_id: z118.string(),
|
|
2608
|
+
shape: z118.string(),
|
|
2609
|
+
spoke_count: z118.number(),
|
|
2601
2610
|
spoke_thickness: distance,
|
|
2602
2611
|
spoke_inner_diameter: distance,
|
|
2603
2612
|
spoke_outer_diameter: distance,
|
|
2604
|
-
pcb_plated_hole_id:
|
|
2605
|
-
subcircuit_id:
|
|
2613
|
+
pcb_plated_hole_id: z118.string().optional(),
|
|
2614
|
+
subcircuit_id: z118.string().optional()
|
|
2606
2615
|
}).describe("Pattern for connecting a ground plane to a plated hole");
|
|
2607
2616
|
expectTypesMatch(true);
|
|
2608
2617
|
|
|
2609
2618
|
// src/pcb/pcb_copper_pour.ts
|
|
2610
|
-
import { z as
|
|
2611
|
-
var pcb_copper_pour_base =
|
|
2612
|
-
type:
|
|
2619
|
+
import { z as z119 } from "zod";
|
|
2620
|
+
var pcb_copper_pour_base = z119.object({
|
|
2621
|
+
type: z119.literal("pcb_copper_pour"),
|
|
2613
2622
|
pcb_copper_pour_id: getZodPrefixedIdWithDefault("pcb_copper_pour"),
|
|
2614
|
-
pcb_group_id:
|
|
2615
|
-
subcircuit_id:
|
|
2623
|
+
pcb_group_id: z119.string().optional(),
|
|
2624
|
+
subcircuit_id: z119.string().optional(),
|
|
2616
2625
|
layer: layer_ref,
|
|
2617
|
-
source_net_id:
|
|
2618
|
-
covered_with_solder_mask:
|
|
2626
|
+
source_net_id: z119.string().optional(),
|
|
2627
|
+
covered_with_solder_mask: z119.boolean().optional().default(true)
|
|
2619
2628
|
});
|
|
2620
2629
|
var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
|
|
2621
|
-
shape:
|
|
2630
|
+
shape: z119.literal("rect"),
|
|
2622
2631
|
center: point,
|
|
2623
2632
|
width: length,
|
|
2624
2633
|
height: length,
|
|
@@ -2626,16 +2635,16 @@ var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
|
|
|
2626
2635
|
});
|
|
2627
2636
|
expectTypesMatch(true);
|
|
2628
2637
|
var pcb_copper_pour_brep = pcb_copper_pour_base.extend({
|
|
2629
|
-
shape:
|
|
2638
|
+
shape: z119.literal("brep"),
|
|
2630
2639
|
brep_shape
|
|
2631
2640
|
});
|
|
2632
2641
|
expectTypesMatch(true);
|
|
2633
2642
|
var pcb_copper_pour_polygon = pcb_copper_pour_base.extend({
|
|
2634
|
-
shape:
|
|
2635
|
-
points:
|
|
2643
|
+
shape: z119.literal("polygon"),
|
|
2644
|
+
points: z119.array(point)
|
|
2636
2645
|
});
|
|
2637
2646
|
expectTypesMatch(true);
|
|
2638
|
-
var pcb_copper_pour =
|
|
2647
|
+
var pcb_copper_pour = z119.discriminatedUnion("shape", [
|
|
2639
2648
|
pcb_copper_pour_rect,
|
|
2640
2649
|
pcb_copper_pour_brep,
|
|
2641
2650
|
pcb_copper_pour_polygon
|
|
@@ -2643,148 +2652,148 @@ var pcb_copper_pour = z118.discriminatedUnion("shape", [
|
|
|
2643
2652
|
expectTypesMatch(true);
|
|
2644
2653
|
|
|
2645
2654
|
// src/pcb/pcb_component_outside_board_error.ts
|
|
2646
|
-
import { z as
|
|
2647
|
-
var pcb_component_outside_board_error =
|
|
2648
|
-
type:
|
|
2655
|
+
import { z as z120 } from "zod";
|
|
2656
|
+
var pcb_component_outside_board_error = z120.object({
|
|
2657
|
+
type: z120.literal("pcb_component_outside_board_error"),
|
|
2649
2658
|
pcb_component_outside_board_error_id: getZodPrefixedIdWithDefault(
|
|
2650
2659
|
"pcb_component_outside_board_error"
|
|
2651
2660
|
),
|
|
2652
|
-
error_type:
|
|
2653
|
-
message:
|
|
2654
|
-
pcb_component_id:
|
|
2655
|
-
pcb_board_id:
|
|
2661
|
+
error_type: z120.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
|
|
2662
|
+
message: z120.string(),
|
|
2663
|
+
pcb_component_id: z120.string(),
|
|
2664
|
+
pcb_board_id: z120.string(),
|
|
2656
2665
|
component_center: point,
|
|
2657
|
-
component_bounds:
|
|
2658
|
-
min_x:
|
|
2659
|
-
max_x:
|
|
2660
|
-
min_y:
|
|
2661
|
-
max_y:
|
|
2666
|
+
component_bounds: z120.object({
|
|
2667
|
+
min_x: z120.number(),
|
|
2668
|
+
max_x: z120.number(),
|
|
2669
|
+
min_y: z120.number(),
|
|
2670
|
+
max_y: z120.number()
|
|
2662
2671
|
}),
|
|
2663
|
-
subcircuit_id:
|
|
2664
|
-
source_component_id:
|
|
2672
|
+
subcircuit_id: z120.string().optional(),
|
|
2673
|
+
source_component_id: z120.string().optional()
|
|
2665
2674
|
}).describe(
|
|
2666
2675
|
"Error emitted when a PCB component is placed outside the board boundaries"
|
|
2667
2676
|
);
|
|
2668
2677
|
expectTypesMatch(true);
|
|
2669
2678
|
|
|
2670
2679
|
// src/pcb/pcb_component_invalid_layer_error.ts
|
|
2671
|
-
import { z as
|
|
2672
|
-
var pcb_component_invalid_layer_error =
|
|
2673
|
-
type:
|
|
2680
|
+
import { z as z121 } from "zod";
|
|
2681
|
+
var pcb_component_invalid_layer_error = z121.object({
|
|
2682
|
+
type: z121.literal("pcb_component_invalid_layer_error"),
|
|
2674
2683
|
pcb_component_invalid_layer_error_id: getZodPrefixedIdWithDefault(
|
|
2675
2684
|
"pcb_component_invalid_layer_error"
|
|
2676
2685
|
),
|
|
2677
|
-
error_type:
|
|
2678
|
-
message:
|
|
2679
|
-
pcb_component_id:
|
|
2680
|
-
source_component_id:
|
|
2686
|
+
error_type: z121.literal("pcb_component_invalid_layer_error").default("pcb_component_invalid_layer_error"),
|
|
2687
|
+
message: z121.string(),
|
|
2688
|
+
pcb_component_id: z121.string().optional(),
|
|
2689
|
+
source_component_id: z121.string(),
|
|
2681
2690
|
layer: layer_ref,
|
|
2682
|
-
subcircuit_id:
|
|
2691
|
+
subcircuit_id: z121.string().optional()
|
|
2683
2692
|
}).describe(
|
|
2684
2693
|
"Error emitted when a component is placed on an invalid layer (components can only be on 'top' or 'bottom' layers)"
|
|
2685
2694
|
);
|
|
2686
2695
|
expectTypesMatch(true);
|
|
2687
2696
|
|
|
2688
2697
|
// src/pcb/pcb_via_clearance_error.ts
|
|
2689
|
-
import { z as
|
|
2690
|
-
var pcb_via_clearance_error =
|
|
2691
|
-
type:
|
|
2698
|
+
import { z as z122 } from "zod";
|
|
2699
|
+
var pcb_via_clearance_error = z122.object({
|
|
2700
|
+
type: z122.literal("pcb_via_clearance_error"),
|
|
2692
2701
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
2693
|
-
error_type:
|
|
2694
|
-
message:
|
|
2695
|
-
pcb_via_ids:
|
|
2702
|
+
error_type: z122.literal("pcb_via_clearance_error").default("pcb_via_clearance_error"),
|
|
2703
|
+
message: z122.string(),
|
|
2704
|
+
pcb_via_ids: z122.array(z122.string()).min(2),
|
|
2696
2705
|
minimum_clearance: distance.optional(),
|
|
2697
2706
|
actual_clearance: distance.optional(),
|
|
2698
|
-
pcb_center:
|
|
2699
|
-
x:
|
|
2700
|
-
y:
|
|
2707
|
+
pcb_center: z122.object({
|
|
2708
|
+
x: z122.number().optional(),
|
|
2709
|
+
y: z122.number().optional()
|
|
2701
2710
|
}).optional(),
|
|
2702
|
-
subcircuit_id:
|
|
2711
|
+
subcircuit_id: z122.string().optional()
|
|
2703
2712
|
}).describe("Error emitted when vias are closer than the allowed clearance");
|
|
2704
2713
|
expectTypesMatch(true);
|
|
2705
2714
|
|
|
2706
2715
|
// src/pcb/pcb_courtyard_rect.ts
|
|
2707
|
-
import { z as
|
|
2708
|
-
var pcb_courtyard_rect =
|
|
2709
|
-
type:
|
|
2716
|
+
import { z as z123 } from "zod";
|
|
2717
|
+
var pcb_courtyard_rect = z123.object({
|
|
2718
|
+
type: z123.literal("pcb_courtyard_rect"),
|
|
2710
2719
|
pcb_courtyard_rect_id: getZodPrefixedIdWithDefault("pcb_courtyard_rect"),
|
|
2711
|
-
pcb_component_id:
|
|
2712
|
-
pcb_group_id:
|
|
2713
|
-
subcircuit_id:
|
|
2720
|
+
pcb_component_id: z123.string(),
|
|
2721
|
+
pcb_group_id: z123.string().optional(),
|
|
2722
|
+
subcircuit_id: z123.string().optional(),
|
|
2714
2723
|
center: point,
|
|
2715
2724
|
width: length,
|
|
2716
2725
|
height: length,
|
|
2717
2726
|
layer: visible_layer,
|
|
2718
|
-
color:
|
|
2727
|
+
color: z123.string().optional()
|
|
2719
2728
|
}).describe("Defines a courtyard rectangle on the PCB");
|
|
2720
2729
|
expectTypesMatch(true);
|
|
2721
2730
|
|
|
2722
2731
|
// src/pcb/pcb_courtyard_outline.ts
|
|
2723
|
-
import { z as
|
|
2724
|
-
var pcb_courtyard_outline =
|
|
2725
|
-
type:
|
|
2732
|
+
import { z as z124 } from "zod";
|
|
2733
|
+
var pcb_courtyard_outline = z124.object({
|
|
2734
|
+
type: z124.literal("pcb_courtyard_outline"),
|
|
2726
2735
|
pcb_courtyard_outline_id: getZodPrefixedIdWithDefault(
|
|
2727
2736
|
"pcb_courtyard_outline"
|
|
2728
2737
|
),
|
|
2729
|
-
pcb_component_id:
|
|
2730
|
-
pcb_group_id:
|
|
2731
|
-
subcircuit_id:
|
|
2738
|
+
pcb_component_id: z124.string(),
|
|
2739
|
+
pcb_group_id: z124.string().optional(),
|
|
2740
|
+
subcircuit_id: z124.string().optional(),
|
|
2732
2741
|
layer: visible_layer,
|
|
2733
|
-
outline:
|
|
2742
|
+
outline: z124.array(point).min(2),
|
|
2734
2743
|
stroke_width: length.default("0.1mm"),
|
|
2735
|
-
is_closed:
|
|
2736
|
-
is_stroke_dashed:
|
|
2737
|
-
color:
|
|
2744
|
+
is_closed: z124.boolean().optional(),
|
|
2745
|
+
is_stroke_dashed: z124.boolean().optional(),
|
|
2746
|
+
color: z124.string().optional()
|
|
2738
2747
|
}).describe("Defines a courtyard outline on the PCB");
|
|
2739
2748
|
expectTypesMatch(true);
|
|
2740
2749
|
|
|
2741
2750
|
// src/pcb/pcb_courtyard_polygon.ts
|
|
2742
|
-
import { z as
|
|
2743
|
-
var pcb_courtyard_polygon =
|
|
2744
|
-
type:
|
|
2751
|
+
import { z as z125 } from "zod";
|
|
2752
|
+
var pcb_courtyard_polygon = z125.object({
|
|
2753
|
+
type: z125.literal("pcb_courtyard_polygon"),
|
|
2745
2754
|
pcb_courtyard_polygon_id: getZodPrefixedIdWithDefault(
|
|
2746
2755
|
"pcb_courtyard_polygon"
|
|
2747
2756
|
),
|
|
2748
|
-
pcb_component_id:
|
|
2749
|
-
pcb_group_id:
|
|
2750
|
-
subcircuit_id:
|
|
2757
|
+
pcb_component_id: z125.string(),
|
|
2758
|
+
pcb_group_id: z125.string().optional(),
|
|
2759
|
+
subcircuit_id: z125.string().optional(),
|
|
2751
2760
|
layer: visible_layer,
|
|
2752
|
-
points:
|
|
2753
|
-
color:
|
|
2761
|
+
points: z125.array(point).min(3),
|
|
2762
|
+
color: z125.string().optional()
|
|
2754
2763
|
}).describe("Defines a courtyard polygon on the PCB");
|
|
2755
2764
|
expectTypesMatch(true);
|
|
2756
2765
|
|
|
2757
2766
|
// src/cad/cad_component.ts
|
|
2758
|
-
import { z as
|
|
2759
|
-
var cad_component =
|
|
2760
|
-
type:
|
|
2761
|
-
cad_component_id:
|
|
2762
|
-
pcb_component_id:
|
|
2763
|
-
source_component_id:
|
|
2767
|
+
import { z as z126 } from "zod";
|
|
2768
|
+
var cad_component = z126.object({
|
|
2769
|
+
type: z126.literal("cad_component"),
|
|
2770
|
+
cad_component_id: z126.string(),
|
|
2771
|
+
pcb_component_id: z126.string(),
|
|
2772
|
+
source_component_id: z126.string(),
|
|
2764
2773
|
position: point3,
|
|
2765
2774
|
rotation: point3.optional(),
|
|
2766
2775
|
size: point3.optional(),
|
|
2767
2776
|
layer: layer_ref.optional(),
|
|
2768
|
-
subcircuit_id:
|
|
2777
|
+
subcircuit_id: z126.string().optional(),
|
|
2769
2778
|
// These are all ways to generate/load the 3d model
|
|
2770
|
-
footprinter_string:
|
|
2771
|
-
model_obj_url:
|
|
2772
|
-
model_stl_url:
|
|
2773
|
-
model_3mf_url:
|
|
2774
|
-
model_gltf_url:
|
|
2775
|
-
model_glb_url:
|
|
2776
|
-
model_step_url:
|
|
2777
|
-
model_wrl_url:
|
|
2778
|
-
model_unit_to_mm_scale_factor:
|
|
2779
|
-
model_jscad:
|
|
2780
|
-
show_as_translucent_model:
|
|
2779
|
+
footprinter_string: z126.string().optional(),
|
|
2780
|
+
model_obj_url: z126.string().optional(),
|
|
2781
|
+
model_stl_url: z126.string().optional(),
|
|
2782
|
+
model_3mf_url: z126.string().optional(),
|
|
2783
|
+
model_gltf_url: z126.string().optional(),
|
|
2784
|
+
model_glb_url: z126.string().optional(),
|
|
2785
|
+
model_step_url: z126.string().optional(),
|
|
2786
|
+
model_wrl_url: z126.string().optional(),
|
|
2787
|
+
model_unit_to_mm_scale_factor: z126.number().optional(),
|
|
2788
|
+
model_jscad: z126.any().optional(),
|
|
2789
|
+
show_as_translucent_model: z126.boolean().optional()
|
|
2781
2790
|
}).describe("Defines a component on the PCB");
|
|
2782
2791
|
expectTypesMatch(true);
|
|
2783
2792
|
|
|
2784
2793
|
// src/simulation/simulation_voltage_source.ts
|
|
2785
|
-
import { z as
|
|
2786
|
-
var wave_shape =
|
|
2787
|
-
var percentage =
|
|
2794
|
+
import { z as z127 } from "zod";
|
|
2795
|
+
var wave_shape = z127.enum(["sinewave", "square", "triangle", "sawtooth"]);
|
|
2796
|
+
var percentage = z127.union([z127.string(), z127.number()]).transform((val) => {
|
|
2788
2797
|
if (typeof val === "string") {
|
|
2789
2798
|
if (val.endsWith("%")) {
|
|
2790
2799
|
return parseFloat(val.slice(0, -1)) / 100;
|
|
@@ -2793,30 +2802,30 @@ var percentage = z126.union([z126.string(), z126.number()]).transform((val) => {
|
|
|
2793
2802
|
}
|
|
2794
2803
|
return val;
|
|
2795
2804
|
}).pipe(
|
|
2796
|
-
|
|
2805
|
+
z127.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
|
|
2797
2806
|
);
|
|
2798
|
-
var simulation_dc_voltage_source =
|
|
2799
|
-
type:
|
|
2807
|
+
var simulation_dc_voltage_source = z127.object({
|
|
2808
|
+
type: z127.literal("simulation_voltage_source"),
|
|
2800
2809
|
simulation_voltage_source_id: getZodPrefixedIdWithDefault(
|
|
2801
2810
|
"simulation_voltage_source"
|
|
2802
2811
|
),
|
|
2803
|
-
is_dc_source:
|
|
2804
|
-
positive_source_port_id:
|
|
2805
|
-
negative_source_port_id:
|
|
2806
|
-
positive_source_net_id:
|
|
2807
|
-
negative_source_net_id:
|
|
2812
|
+
is_dc_source: z127.literal(true).optional().default(true),
|
|
2813
|
+
positive_source_port_id: z127.string().optional(),
|
|
2814
|
+
negative_source_port_id: z127.string().optional(),
|
|
2815
|
+
positive_source_net_id: z127.string().optional(),
|
|
2816
|
+
negative_source_net_id: z127.string().optional(),
|
|
2808
2817
|
voltage
|
|
2809
2818
|
}).describe("Defines a DC voltage source for simulation");
|
|
2810
|
-
var simulation_ac_voltage_source =
|
|
2811
|
-
type:
|
|
2819
|
+
var simulation_ac_voltage_source = z127.object({
|
|
2820
|
+
type: z127.literal("simulation_voltage_source"),
|
|
2812
2821
|
simulation_voltage_source_id: getZodPrefixedIdWithDefault(
|
|
2813
2822
|
"simulation_voltage_source"
|
|
2814
2823
|
),
|
|
2815
|
-
is_dc_source:
|
|
2816
|
-
terminal1_source_port_id:
|
|
2817
|
-
terminal2_source_port_id:
|
|
2818
|
-
terminal1_source_net_id:
|
|
2819
|
-
terminal2_source_net_id:
|
|
2824
|
+
is_dc_source: z127.literal(false),
|
|
2825
|
+
terminal1_source_port_id: z127.string().optional(),
|
|
2826
|
+
terminal2_source_port_id: z127.string().optional(),
|
|
2827
|
+
terminal1_source_net_id: z127.string().optional(),
|
|
2828
|
+
terminal2_source_net_id: z127.string().optional(),
|
|
2820
2829
|
voltage: voltage.optional(),
|
|
2821
2830
|
frequency: frequency.optional(),
|
|
2822
2831
|
peak_to_peak_voltage: voltage.optional(),
|
|
@@ -2824,25 +2833,25 @@ var simulation_ac_voltage_source = z126.object({
|
|
|
2824
2833
|
phase: rotation.optional(),
|
|
2825
2834
|
duty_cycle: percentage.optional()
|
|
2826
2835
|
}).describe("Defines an AC voltage source for simulation");
|
|
2827
|
-
var simulation_voltage_source =
|
|
2836
|
+
var simulation_voltage_source = z127.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
|
|
2828
2837
|
expectTypesMatch(true);
|
|
2829
2838
|
expectTypesMatch(true);
|
|
2830
2839
|
expectTypesMatch(true);
|
|
2831
2840
|
|
|
2832
2841
|
// src/simulation/simulation_experiment.ts
|
|
2833
|
-
import { z as
|
|
2834
|
-
var experiment_type =
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2842
|
+
import { z as z128 } from "zod";
|
|
2843
|
+
var experiment_type = z128.union([
|
|
2844
|
+
z128.literal("spice_dc_sweep"),
|
|
2845
|
+
z128.literal("spice_dc_operating_point"),
|
|
2846
|
+
z128.literal("spice_transient_analysis"),
|
|
2847
|
+
z128.literal("spice_ac_analysis")
|
|
2839
2848
|
]);
|
|
2840
|
-
var simulation_experiment =
|
|
2841
|
-
type:
|
|
2849
|
+
var simulation_experiment = z128.object({
|
|
2850
|
+
type: z128.literal("simulation_experiment"),
|
|
2842
2851
|
simulation_experiment_id: getZodPrefixedIdWithDefault(
|
|
2843
2852
|
"simulation_experiment"
|
|
2844
2853
|
),
|
|
2845
|
-
name:
|
|
2854
|
+
name: z128.string(),
|
|
2846
2855
|
experiment_type,
|
|
2847
2856
|
time_per_step: duration_ms.optional(),
|
|
2848
2857
|
start_time_ms: ms.optional(),
|
|
@@ -2851,53 +2860,53 @@ var simulation_experiment = z127.object({
|
|
|
2851
2860
|
expectTypesMatch(true);
|
|
2852
2861
|
|
|
2853
2862
|
// src/simulation/simulation_transient_voltage_graph.ts
|
|
2854
|
-
import { z as
|
|
2855
|
-
var simulation_transient_voltage_graph =
|
|
2856
|
-
type:
|
|
2863
|
+
import { z as z129 } from "zod";
|
|
2864
|
+
var simulation_transient_voltage_graph = z129.object({
|
|
2865
|
+
type: z129.literal("simulation_transient_voltage_graph"),
|
|
2857
2866
|
simulation_transient_voltage_graph_id: getZodPrefixedIdWithDefault(
|
|
2858
2867
|
"simulation_transient_voltage_graph"
|
|
2859
2868
|
),
|
|
2860
|
-
simulation_experiment_id:
|
|
2861
|
-
timestamps_ms:
|
|
2862
|
-
voltage_levels:
|
|
2863
|
-
source_component_id:
|
|
2864
|
-
subcircuit_connectivity_map_key:
|
|
2869
|
+
simulation_experiment_id: z129.string(),
|
|
2870
|
+
timestamps_ms: z129.array(z129.number()).optional(),
|
|
2871
|
+
voltage_levels: z129.array(z129.number()),
|
|
2872
|
+
source_component_id: z129.string().optional(),
|
|
2873
|
+
subcircuit_connectivity_map_key: z129.string().optional(),
|
|
2865
2874
|
time_per_step: duration_ms,
|
|
2866
2875
|
start_time_ms: ms,
|
|
2867
2876
|
end_time_ms: ms,
|
|
2868
|
-
name:
|
|
2869
|
-
color:
|
|
2877
|
+
name: z129.string().optional(),
|
|
2878
|
+
color: z129.string().optional()
|
|
2870
2879
|
}).describe("Stores voltage measurements over time for a simulation");
|
|
2871
2880
|
expectTypesMatch(true);
|
|
2872
2881
|
|
|
2873
2882
|
// src/simulation/simulation_switch.ts
|
|
2874
|
-
import { z as
|
|
2875
|
-
var simulation_switch =
|
|
2876
|
-
type:
|
|
2883
|
+
import { z as z130 } from "zod";
|
|
2884
|
+
var simulation_switch = z130.object({
|
|
2885
|
+
type: z130.literal("simulation_switch"),
|
|
2877
2886
|
simulation_switch_id: getZodPrefixedIdWithDefault("simulation_switch"),
|
|
2878
|
-
source_component_id:
|
|
2887
|
+
source_component_id: z130.string().optional(),
|
|
2879
2888
|
closes_at: ms.optional(),
|
|
2880
2889
|
opens_at: ms.optional(),
|
|
2881
|
-
starts_closed:
|
|
2890
|
+
starts_closed: z130.boolean().optional(),
|
|
2882
2891
|
switching_frequency: frequency.optional()
|
|
2883
2892
|
}).describe("Defines a switch for simulation timing control");
|
|
2884
2893
|
expectTypesMatch(true);
|
|
2885
2894
|
|
|
2886
2895
|
// src/simulation/simulation_voltage_probe.ts
|
|
2887
|
-
import { z as
|
|
2888
|
-
var simulation_voltage_probe =
|
|
2889
|
-
type:
|
|
2896
|
+
import { z as z131 } from "zod";
|
|
2897
|
+
var simulation_voltage_probe = z131.object({
|
|
2898
|
+
type: z131.literal("simulation_voltage_probe"),
|
|
2890
2899
|
simulation_voltage_probe_id: getZodPrefixedIdWithDefault(
|
|
2891
2900
|
"simulation_voltage_probe"
|
|
2892
2901
|
),
|
|
2893
|
-
source_component_id:
|
|
2894
|
-
name:
|
|
2895
|
-
signal_input_source_port_id:
|
|
2896
|
-
signal_input_source_net_id:
|
|
2897
|
-
reference_input_source_port_id:
|
|
2898
|
-
reference_input_source_net_id:
|
|
2899
|
-
subcircuit_id:
|
|
2900
|
-
color:
|
|
2902
|
+
source_component_id: z131.string().optional(),
|
|
2903
|
+
name: z131.string().optional(),
|
|
2904
|
+
signal_input_source_port_id: z131.string().optional(),
|
|
2905
|
+
signal_input_source_net_id: z131.string().optional(),
|
|
2906
|
+
reference_input_source_port_id: z131.string().optional(),
|
|
2907
|
+
reference_input_source_net_id: z131.string().optional(),
|
|
2908
|
+
subcircuit_id: z131.string().optional(),
|
|
2909
|
+
color: z131.string().optional()
|
|
2901
2910
|
}).describe(
|
|
2902
2911
|
"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."
|
|
2903
2912
|
).superRefine((data, ctx) => {
|
|
@@ -2907,20 +2916,20 @@ var simulation_voltage_probe = z130.object({
|
|
|
2907
2916
|
const has_nets = !!data.signal_input_source_net_id || !!data.reference_input_source_net_id;
|
|
2908
2917
|
if (has_ports && has_nets) {
|
|
2909
2918
|
ctx.addIssue({
|
|
2910
|
-
code:
|
|
2919
|
+
code: z131.ZodIssueCode.custom,
|
|
2911
2920
|
message: "Cannot mix port and net connections in a differential probe."
|
|
2912
2921
|
});
|
|
2913
2922
|
} else if (has_ports) {
|
|
2914
2923
|
if (!data.signal_input_source_port_id || !data.reference_input_source_port_id) {
|
|
2915
2924
|
ctx.addIssue({
|
|
2916
|
-
code:
|
|
2925
|
+
code: z131.ZodIssueCode.custom,
|
|
2917
2926
|
message: "Differential port probe requires both signal_input_source_port_id and reference_input_source_port_id."
|
|
2918
2927
|
});
|
|
2919
2928
|
}
|
|
2920
2929
|
} else if (has_nets) {
|
|
2921
2930
|
if (!data.signal_input_source_net_id || !data.reference_input_source_net_id) {
|
|
2922
2931
|
ctx.addIssue({
|
|
2923
|
-
code:
|
|
2932
|
+
code: z131.ZodIssueCode.custom,
|
|
2924
2933
|
message: "Differential net probe requires both signal_input_source_net_id and reference_input_source_net_id."
|
|
2925
2934
|
});
|
|
2926
2935
|
}
|
|
@@ -2928,7 +2937,7 @@ var simulation_voltage_probe = z130.object({
|
|
|
2928
2937
|
} else {
|
|
2929
2938
|
if (!!data.signal_input_source_port_id === !!data.signal_input_source_net_id) {
|
|
2930
2939
|
ctx.addIssue({
|
|
2931
|
-
code:
|
|
2940
|
+
code: z131.ZodIssueCode.custom,
|
|
2932
2941
|
message: "A voltage probe must have exactly one of signal_input_source_port_id or signal_input_source_net_id."
|
|
2933
2942
|
});
|
|
2934
2943
|
}
|
|
@@ -2937,22 +2946,22 @@ var simulation_voltage_probe = z130.object({
|
|
|
2937
2946
|
expectTypesMatch(true);
|
|
2938
2947
|
|
|
2939
2948
|
// src/simulation/simulation_unknown_experiment_error.ts
|
|
2940
|
-
import { z as
|
|
2941
|
-
var simulation_unknown_experiment_error =
|
|
2942
|
-
type:
|
|
2949
|
+
import { z as z132 } from "zod";
|
|
2950
|
+
var simulation_unknown_experiment_error = z132.object({
|
|
2951
|
+
type: z132.literal("simulation_unknown_experiment_error"),
|
|
2943
2952
|
simulation_unknown_experiment_error_id: getZodPrefixedIdWithDefault(
|
|
2944
2953
|
"simulation_unknown_experiment_error"
|
|
2945
2954
|
),
|
|
2946
|
-
error_type:
|
|
2947
|
-
message:
|
|
2948
|
-
simulation_experiment_id:
|
|
2949
|
-
subcircuit_id:
|
|
2955
|
+
error_type: z132.literal("simulation_unknown_experiment_error").default("simulation_unknown_experiment_error"),
|
|
2956
|
+
message: z132.string(),
|
|
2957
|
+
simulation_experiment_id: z132.string().optional(),
|
|
2958
|
+
subcircuit_id: z132.string().optional()
|
|
2950
2959
|
}).describe("An unknown error occurred during the simulation experiment.");
|
|
2951
2960
|
expectTypesMatch(true);
|
|
2952
2961
|
|
|
2953
2962
|
// src/any_circuit_element.ts
|
|
2954
|
-
import { z as
|
|
2955
|
-
var any_circuit_element =
|
|
2963
|
+
import { z as z133 } from "zod";
|
|
2964
|
+
var any_circuit_element = z133.union([
|
|
2956
2965
|
source_trace,
|
|
2957
2966
|
source_port,
|
|
2958
2967
|
any_source_component,
|
|
@@ -3212,6 +3221,7 @@ export {
|
|
|
3212
3221
|
source_component_base,
|
|
3213
3222
|
source_failed_to_create_component_error,
|
|
3214
3223
|
source_group,
|
|
3224
|
+
source_interconnect,
|
|
3215
3225
|
source_manually_placed_via,
|
|
3216
3226
|
source_missing_property_error,
|
|
3217
3227
|
source_net,
|