circuit-json 0.0.165 → 0.0.166

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -369,7 +369,7 @@ var source_simple_power_source = source_component_base.extend({
369
369
  expectTypesMatch(true);
370
370
 
371
371
  // src/source/any_source_component.ts
372
- import { z as z28 } from "zod";
372
+ import { z as z29 } from "zod";
373
373
 
374
374
  // src/source/source_simple_battery.ts
375
375
  import { z as z16 } from "zod";
@@ -476,8 +476,23 @@ var source_missing_property_error = z27.object({
476
476
  }).describe("The source code is missing a property");
477
477
  expectTypesMatch(true);
478
478
 
479
+ // src/source/source_failed_to_create_component_error.ts
480
+ import { z as z28 } from "zod";
481
+ var source_failed_to_create_component_error = z28.object({
482
+ type: z28.literal("source_failed_to_create_component_error"),
483
+ source_failed_to_create_component_error_id: getZodPrefixedIdWithDefault(
484
+ "source_failed_to_create_component_error"
485
+ ),
486
+ component_name: z28.string().optional(),
487
+ subcircuit_id: z28.string().optional(),
488
+ parent_source_component_id: z28.string().optional(),
489
+ source_component_id: z28.string(),
490
+ message: z28.string()
491
+ }).describe("Error emitted when a component fails to be constructed");
492
+ expectTypesMatch(true);
493
+
479
494
  // src/source/any_source_component.ts
480
- var any_source_component = z28.union([
495
+ var any_source_component = z29.union([
481
496
  source_simple_resistor,
482
497
  source_simple_capacitor,
483
498
  source_simple_diode,
@@ -497,68 +512,69 @@ var any_source_component = z28.union([
497
512
  source_simple_transistor,
498
513
  source_simple_mosfet,
499
514
  source_project_metadata,
500
- source_missing_property_error
515
+ source_missing_property_error,
516
+ source_failed_to_create_component_error
501
517
  ]);
502
518
 
503
519
  // src/source/source_port.ts
504
- import { z as z29 } from "zod";
505
- var source_port = z29.object({
506
- type: z29.literal("source_port"),
507
- pin_number: z29.number().optional(),
508
- port_hints: z29.array(z29.string()).optional(),
509
- name: z29.string(),
510
- source_port_id: z29.string(),
511
- source_component_id: z29.string(),
512
- subcircuit_id: z29.string().optional()
520
+ import { z as z30 } from "zod";
521
+ var source_port = z30.object({
522
+ type: z30.literal("source_port"),
523
+ pin_number: z30.number().optional(),
524
+ port_hints: z30.array(z30.string()).optional(),
525
+ name: z30.string(),
526
+ source_port_id: z30.string(),
527
+ source_component_id: z30.string(),
528
+ subcircuit_id: z30.string().optional()
513
529
  });
514
530
  expectTypesMatch(true);
515
531
 
516
532
  // src/source/source_trace.ts
517
- import { z as z30 } from "zod";
518
- var source_trace = z30.object({
519
- type: z30.literal("source_trace"),
520
- source_trace_id: z30.string(),
521
- connected_source_port_ids: z30.array(z30.string()),
522
- connected_source_net_ids: z30.array(z30.string()),
523
- subcircuit_id: z30.string().optional(),
524
- subcircuit_connectivity_map_key: z30.string().optional(),
525
- max_length: z30.number().optional(),
526
- min_trace_thickness: z30.number().optional(),
527
- display_name: z30.string().optional()
533
+ import { z as z31 } from "zod";
534
+ var source_trace = z31.object({
535
+ type: z31.literal("source_trace"),
536
+ source_trace_id: z31.string(),
537
+ connected_source_port_ids: z31.array(z31.string()),
538
+ connected_source_net_ids: z31.array(z31.string()),
539
+ subcircuit_id: z31.string().optional(),
540
+ subcircuit_connectivity_map_key: z31.string().optional(),
541
+ max_length: z31.number().optional(),
542
+ min_trace_thickness: z31.number().optional(),
543
+ display_name: z31.string().optional()
528
544
  });
529
545
  expectTypesMatch(true);
530
546
 
531
547
  // src/source/source_group.ts
532
- import { z as z31 } from "zod";
533
- var source_group = z31.object({
534
- type: z31.literal("source_group"),
535
- source_group_id: z31.string(),
536
- subcircuit_id: z31.string().optional(),
537
- parent_subcircuit_id: z31.string().optional(),
538
- is_subcircuit: z31.boolean().optional(),
539
- name: z31.string().optional()
548
+ import { z as z32 } from "zod";
549
+ var source_group = z32.object({
550
+ type: z32.literal("source_group"),
551
+ source_group_id: z32.string(),
552
+ subcircuit_id: z32.string().optional(),
553
+ parent_subcircuit_id: z32.string().optional(),
554
+ is_subcircuit: z32.boolean().optional(),
555
+ name: z32.string().optional()
540
556
  });
541
557
 
542
558
  // src/source/source_net.ts
543
- import { z as z32 } from "zod";
544
- var source_net = z32.object({
545
- type: z32.literal("source_net"),
546
- source_net_id: z32.string(),
547
- name: z32.string(),
548
- member_source_group_ids: z32.array(z32.string()),
549
- is_power: z32.boolean().optional(),
550
- is_ground: z32.boolean().optional(),
551
- is_digital_signal: z32.boolean().optional(),
552
- is_analog_signal: z32.boolean().optional(),
553
- trace_width: z32.number().optional(),
554
- subcircuit_id: z32.string().optional()
559
+ import { z as z33 } from "zod";
560
+ var source_net = z33.object({
561
+ type: z33.literal("source_net"),
562
+ source_net_id: z33.string(),
563
+ name: z33.string(),
564
+ member_source_group_ids: z33.array(z33.string()),
565
+ is_power: z33.boolean().optional(),
566
+ is_ground: z33.boolean().optional(),
567
+ is_digital_signal: z33.boolean().optional(),
568
+ is_analog_signal: z33.boolean().optional(),
569
+ trace_width: z33.number().optional(),
570
+ subcircuit_id: z33.string().optional()
555
571
  });
556
572
 
557
573
  // src/schematic/schematic_box.ts
558
- import { z as z33 } from "zod";
559
- var schematic_box = z33.object({
560
- type: z33.literal("schematic_box"),
561
- schematic_component_id: z33.string(),
574
+ import { z as z34 } from "zod";
575
+ var schematic_box = z34.object({
576
+ type: z34.literal("schematic_box"),
577
+ schematic_component_id: z34.string(),
562
578
  width: distance,
563
579
  height: distance,
564
580
  x: distance,
@@ -567,81 +583,81 @@ var schematic_box = z33.object({
567
583
  expectTypesMatch(true);
568
584
 
569
585
  // src/schematic/schematic_path.ts
570
- import { z as z34 } from "zod";
571
- var schematic_path = z34.object({
572
- type: z34.literal("schematic_path"),
573
- schematic_component_id: z34.string(),
574
- fill_color: z34.enum(["red", "blue"]).optional(),
575
- is_filled: z34.boolean().optional(),
576
- points: z34.array(point)
586
+ import { z as z35 } from "zod";
587
+ var schematic_path = z35.object({
588
+ type: z35.literal("schematic_path"),
589
+ schematic_component_id: z35.string(),
590
+ fill_color: z35.enum(["red", "blue"]).optional(),
591
+ is_filled: z35.boolean().optional(),
592
+ points: z35.array(point)
577
593
  });
578
594
  expectTypesMatch(true);
579
595
 
580
596
  // src/schematic/schematic_component.ts
581
- import { z as z35 } from "zod";
582
- var schematic_pin_styles = z35.record(
583
- z35.object({
597
+ import { z as z36 } from "zod";
598
+ var schematic_pin_styles = z36.record(
599
+ z36.object({
584
600
  left_margin: length.optional(),
585
601
  right_margin: length.optional(),
586
602
  top_margin: length.optional(),
587
603
  bottom_margin: length.optional()
588
604
  })
589
605
  );
590
- var schematic_component_port_arrangement_by_size = z35.object({
591
- left_size: z35.number(),
592
- right_size: z35.number(),
593
- top_size: z35.number().optional(),
594
- bottom_size: z35.number().optional()
606
+ var schematic_component_port_arrangement_by_size = z36.object({
607
+ left_size: z36.number(),
608
+ right_size: z36.number(),
609
+ top_size: z36.number().optional(),
610
+ bottom_size: z36.number().optional()
595
611
  });
596
612
  expectTypesMatch(true);
597
- var schematic_component_port_arrangement_by_sides = z35.object({
598
- left_side: z35.object({
599
- pins: z35.array(z35.number()),
613
+ var schematic_component_port_arrangement_by_sides = z36.object({
614
+ left_side: z36.object({
615
+ pins: z36.array(z36.number()),
600
616
  // @ts-ignore
601
- direction: z35.enum(["top-to-bottom", "bottom-to-top"]).optional()
617
+ direction: z36.enum(["top-to-bottom", "bottom-to-top"]).optional()
602
618
  }).optional(),
603
- right_side: z35.object({
604
- pins: z35.array(z35.number()),
619
+ right_side: z36.object({
620
+ pins: z36.array(z36.number()),
605
621
  // @ts-ignore
606
- direction: z35.enum(["top-to-bottom", "bottom-to-top"]).optional()
622
+ direction: z36.enum(["top-to-bottom", "bottom-to-top"]).optional()
607
623
  }).optional(),
608
- top_side: z35.object({
609
- pins: z35.array(z35.number()),
624
+ top_side: z36.object({
625
+ pins: z36.array(z36.number()),
610
626
  // @ts-ignore
611
- direction: z35.enum(["left-to-right", "right-to-left"]).optional()
627
+ direction: z36.enum(["left-to-right", "right-to-left"]).optional()
612
628
  }).optional(),
613
- bottom_side: z35.object({
614
- pins: z35.array(z35.number()),
629
+ bottom_side: z36.object({
630
+ pins: z36.array(z36.number()),
615
631
  // @ts-ignore
616
- direction: z35.enum(["left-to-right", "right-to-left"]).optional()
632
+ direction: z36.enum(["left-to-right", "right-to-left"]).optional()
617
633
  }).optional()
618
634
  });
619
635
  expectTypesMatch(true);
620
- var port_arrangement = z35.union([
636
+ var port_arrangement = z36.union([
621
637
  schematic_component_port_arrangement_by_size,
622
638
  schematic_component_port_arrangement_by_sides
623
639
  ]);
624
- var schematic_component = z35.object({
625
- type: z35.literal("schematic_component"),
640
+ var schematic_component = z36.object({
641
+ type: z36.literal("schematic_component"),
626
642
  size,
627
643
  center: point,
628
- source_component_id: z35.string(),
629
- schematic_component_id: z35.string(),
644
+ source_component_id: z36.string(),
645
+ schematic_component_id: z36.string(),
630
646
  pin_spacing: length.optional(),
631
647
  pin_styles: schematic_pin_styles.optional(),
632
648
  box_width: length.optional(),
633
- symbol_name: z35.string().optional(),
649
+ symbol_name: z36.string().optional(),
634
650
  port_arrangement: port_arrangement.optional(),
635
- port_labels: z35.record(z35.string()).optional(),
636
- symbol_display_value: z35.string().optional()
651
+ port_labels: z36.record(z36.string()).optional(),
652
+ symbol_display_value: z36.string().optional()
637
653
  });
638
654
  expectTypesMatch(true);
639
655
 
640
656
  // src/schematic/schematic_line.ts
641
- import { z as z36 } from "zod";
642
- var schematic_line = z36.object({
643
- type: z36.literal("schematic_line"),
644
- schematic_component_id: z36.string(),
657
+ import { z as z37 } from "zod";
658
+ var schematic_line = z37.object({
659
+ type: z37.literal("schematic_line"),
660
+ schematic_component_id: z37.string(),
645
661
  x1: distance,
646
662
  x2: distance,
647
663
  y1: distance,
@@ -650,41 +666,41 @@ var schematic_line = z36.object({
650
666
  expectTypesMatch(true);
651
667
 
652
668
  // src/schematic/schematic_trace.ts
653
- import { z as z37 } from "zod";
654
- var schematic_trace = z37.object({
655
- type: z37.literal("schematic_trace"),
656
- schematic_trace_id: z37.string(),
657
- source_trace_id: z37.string(),
658
- junctions: z37.array(
659
- z37.object({
660
- x: z37.number(),
661
- y: z37.number()
669
+ import { z as z38 } from "zod";
670
+ var schematic_trace = z38.object({
671
+ type: z38.literal("schematic_trace"),
672
+ schematic_trace_id: z38.string(),
673
+ source_trace_id: z38.string(),
674
+ junctions: z38.array(
675
+ z38.object({
676
+ x: z38.number(),
677
+ y: z38.number()
662
678
  })
663
679
  ),
664
- edges: z37.array(
665
- z37.object({
666
- from: z37.object({
667
- x: z37.number(),
668
- y: z37.number()
680
+ edges: z38.array(
681
+ z38.object({
682
+ from: z38.object({
683
+ x: z38.number(),
684
+ y: z38.number()
669
685
  }),
670
- to: z37.object({
671
- x: z37.number(),
672
- y: z37.number()
686
+ to: z38.object({
687
+ x: z38.number(),
688
+ y: z38.number()
673
689
  }),
674
- is_crossing: z37.boolean().optional(),
675
- from_schematic_port_id: z37.string().optional(),
676
- to_schematic_port_id: z37.string().optional()
690
+ is_crossing: z38.boolean().optional(),
691
+ from_schematic_port_id: z38.string().optional(),
692
+ to_schematic_port_id: z38.string().optional()
677
693
  })
678
694
  )
679
695
  });
680
696
  expectTypesMatch(true);
681
697
 
682
698
  // src/schematic/schematic_text.ts
683
- import { z as z40 } from "zod";
699
+ import { z as z41 } from "zod";
684
700
 
685
701
  // src/common/NinePointAnchor.ts
686
- import { z as z38 } from "zod";
687
- var ninePointAnchor = z38.enum([
702
+ import { z as z39 } from "zod";
703
+ var ninePointAnchor = z39.enum([
688
704
  "top_left",
689
705
  "top_center",
690
706
  "top_right",
@@ -697,8 +713,8 @@ var ninePointAnchor = z38.enum([
697
713
  ]);
698
714
 
699
715
  // src/common/FivePointAnchor.ts
700
- import { z as z39 } from "zod";
701
- var fivePointAnchor = z39.enum([
716
+ import { z as z40 } from "zod";
717
+ var fivePointAnchor = z40.enum([
702
718
  "center",
703
719
  "left",
704
720
  "right",
@@ -707,82 +723,82 @@ var fivePointAnchor = z39.enum([
707
723
  ]);
708
724
 
709
725
  // src/schematic/schematic_text.ts
710
- var schematic_text = z40.object({
711
- type: z40.literal("schematic_text"),
712
- schematic_component_id: z40.string(),
713
- schematic_text_id: z40.string(),
714
- text: z40.string(),
715
- position: z40.object({
726
+ var schematic_text = z41.object({
727
+ type: z41.literal("schematic_text"),
728
+ schematic_component_id: z41.string(),
729
+ schematic_text_id: z41.string(),
730
+ text: z41.string(),
731
+ position: z41.object({
716
732
  x: distance,
717
733
  y: distance
718
734
  }),
719
- rotation: z40.number().default(0),
720
- anchor: z40.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
721
- color: z40.string().default("#000000")
735
+ rotation: z41.number().default(0),
736
+ anchor: z41.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
737
+ color: z41.string().default("#000000")
722
738
  });
723
739
  expectTypesMatch(true);
724
740
 
725
741
  // src/schematic/schematic_port.ts
726
- import { z as z41 } from "zod";
727
- var schematic_port = z41.object({
728
- type: z41.literal("schematic_port"),
729
- schematic_port_id: z41.string(),
730
- source_port_id: z41.string(),
731
- schematic_component_id: z41.string().optional(),
742
+ import { z as z42 } from "zod";
743
+ var schematic_port = z42.object({
744
+ type: z42.literal("schematic_port"),
745
+ schematic_port_id: z42.string(),
746
+ source_port_id: z42.string(),
747
+ schematic_component_id: z42.string().optional(),
732
748
  center: point,
733
- facing_direction: z41.enum(["up", "down", "left", "right"]).optional(),
734
- distance_from_component_edge: z41.number().optional(),
735
- side_of_component: z41.enum(["top", "bottom", "left", "right"]).optional(),
736
- true_ccw_index: z41.number().optional(),
737
- pin_number: z41.number().optional(),
738
- display_pin_label: z41.string().optional()
749
+ facing_direction: z42.enum(["up", "down", "left", "right"]).optional(),
750
+ distance_from_component_edge: z42.number().optional(),
751
+ side_of_component: z42.enum(["top", "bottom", "left", "right"]).optional(),
752
+ true_ccw_index: z42.number().optional(),
753
+ pin_number: z42.number().optional(),
754
+ display_pin_label: z42.string().optional()
739
755
  }).describe("Defines a port on a schematic component");
740
756
  expectTypesMatch(true);
741
757
 
742
758
  // src/schematic/schematic_net_label.ts
743
- import { z as z42 } from "zod";
744
- var schematic_net_label = z42.object({
745
- type: z42.literal("schematic_net_label"),
746
- source_net_id: z42.string(),
759
+ import { z as z43 } from "zod";
760
+ var schematic_net_label = z43.object({
761
+ type: z43.literal("schematic_net_label"),
762
+ source_net_id: z43.string(),
747
763
  center: point,
748
764
  anchor_position: point.optional(),
749
- anchor_side: z42.enum(["top", "bottom", "left", "right"]),
750
- text: z42.string(),
751
- symbol_name: z42.string().optional()
765
+ anchor_side: z43.enum(["top", "bottom", "left", "right"]),
766
+ text: z43.string(),
767
+ symbol_name: z43.string().optional()
752
768
  });
753
769
 
754
770
  // src/schematic/schematic_error.ts
755
- import { z as z43 } from "zod";
756
- var schematic_error = z43.object({
757
- type: z43.literal("schematic_error"),
758
- schematic_error_id: z43.string(),
771
+ import { z as z44 } from "zod";
772
+ var schematic_error = z44.object({
773
+ type: z44.literal("schematic_error"),
774
+ schematic_error_id: z44.string(),
759
775
  // eventually each error type should be broken out into a dir of files
760
- error_type: z43.literal("schematic_port_not_found"),
761
- message: z43.string()
776
+ error_type: z44.literal("schematic_port_not_found"),
777
+ message: z44.string()
762
778
  }).describe("Defines a schematic error on the schematic");
763
779
  expectTypesMatch(true);
764
780
 
765
781
  // src/schematic/schematic_debug_object.ts
766
- import { z as z44 } from "zod";
767
- var schematic_debug_object_base = z44.object({
768
- type: z44.literal("schematic_debug_object"),
769
- label: z44.string().optional()
782
+ import { z as z45 } from "zod";
783
+ var schematic_debug_object_base = z45.object({
784
+ type: z45.literal("schematic_debug_object"),
785
+ label: z45.string().optional()
770
786
  });
771
787
  var schematic_debug_rect = schematic_debug_object_base.extend({
772
- shape: z44.literal("rect"),
788
+ shape: z45.literal("rect"),
773
789
  center: point,
774
790
  size
775
791
  });
776
792
  var schematic_debug_line = schematic_debug_object_base.extend({
777
- shape: z44.literal("line"),
793
+ shape: z45.literal("line"),
778
794
  start: point,
779
795
  end: point
780
796
  });
781
797
  var schematic_debug_point = schematic_debug_object_base.extend({
782
- shape: z44.literal("point"),
798
+ shape: z45.literal("point"),
783
799
  center: point
784
800
  });
785
- var schematic_debug_object = z44.discriminatedUnion("shape", [
801
+ var schematic_debug_object = z45.discriminatedUnion("shape", [
786
802
  schematic_debug_rect,
787
803
  schematic_debug_line,
788
804
  schematic_debug_point
@@ -790,35 +806,35 @@ var schematic_debug_object = z44.discriminatedUnion("shape", [
790
806
  expectTypesMatch(true);
791
807
 
792
808
  // src/schematic/schematic_voltage_probe.ts
793
- import { z as z45 } from "zod";
794
- var schematic_voltage_probe = z45.object({
795
- type: z45.literal("schematic_voltage_probe"),
796
- schematic_voltage_probe_id: z45.string(),
809
+ import { z as z46 } from "zod";
810
+ var schematic_voltage_probe = z46.object({
811
+ type: z46.literal("schematic_voltage_probe"),
812
+ schematic_voltage_probe_id: z46.string(),
797
813
  position: point,
798
- schematic_trace_id: z45.string(),
814
+ schematic_trace_id: z46.string(),
799
815
  voltage: voltage.optional()
800
816
  }).describe("Defines a voltage probe measurement point on a schematic trace");
801
817
  expectTypesMatch(true);
802
818
 
803
819
  // src/schematic/schematic_manual_edit_conflict_warning.ts
804
- import { z as z46 } from "zod";
805
- var schematic_manual_edit_conflict_warning = z46.object({
806
- type: z46.literal("schematic_manual_edit_conflict_warning"),
820
+ import { z as z47 } from "zod";
821
+ var schematic_manual_edit_conflict_warning = z47.object({
822
+ type: z47.literal("schematic_manual_edit_conflict_warning"),
807
823
  schematic_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
808
824
  "schematic_manual_edit_conflict_warning"
809
825
  ),
810
- message: z46.string(),
811
- schematic_component_id: z46.string(),
812
- schematic_group_id: z46.string().optional(),
813
- subcircuit_id: z46.string().optional(),
814
- source_component_id: z46.string()
826
+ message: z47.string(),
827
+ schematic_component_id: z47.string(),
828
+ schematic_group_id: z47.string().optional(),
829
+ subcircuit_id: z47.string().optional(),
830
+ source_component_id: z47.string()
815
831
  }).describe(
816
832
  "Warning emitted when a component has both manual placement and explicit schX/schY coordinates"
817
833
  );
818
834
  expectTypesMatch(true);
819
835
 
820
836
  // src/pcb/properties/layer_ref.ts
821
- import { z as z47 } from "zod";
837
+ import { z as z48 } from "zod";
822
838
  var all_layers = [
823
839
  "top",
824
840
  "bottom",
@@ -829,9 +845,9 @@ var all_layers = [
829
845
  "inner5",
830
846
  "inner6"
831
847
  ];
832
- var layer_string = z47.enum(all_layers);
848
+ var layer_string = z48.enum(all_layers);
833
849
  var layer_ref = layer_string.or(
834
- z47.object({
850
+ z48.object({
835
851
  name: layer_string
836
852
  })
837
853
  ).transform((layer) => {
@@ -840,52 +856,52 @@ var layer_ref = layer_string.or(
840
856
  }
841
857
  return layer.name;
842
858
  });
843
- var visible_layer = z47.enum(["top", "bottom"]);
859
+ var visible_layer = z48.enum(["top", "bottom"]);
844
860
 
845
861
  // src/pcb/properties/pcb_route_hints.ts
846
- import { z as z48 } from "zod";
847
- var pcb_route_hint = z48.object({
862
+ import { z as z49 } from "zod";
863
+ var pcb_route_hint = z49.object({
848
864
  x: distance,
849
865
  y: distance,
850
- via: z48.boolean().optional(),
866
+ via: z49.boolean().optional(),
851
867
  via_to_layer: layer_ref.optional()
852
868
  });
853
- var pcb_route_hints = z48.array(pcb_route_hint);
869
+ var pcb_route_hints = z49.array(pcb_route_hint);
854
870
 
855
871
  // src/pcb/properties/route_hint_point.ts
856
- import { z as z49 } from "zod";
857
- var route_hint_point = z49.object({
872
+ import { z as z50 } from "zod";
873
+ var route_hint_point = z50.object({
858
874
  x: distance,
859
875
  y: distance,
860
- via: z49.boolean().optional(),
876
+ via: z50.boolean().optional(),
861
877
  to_layer: layer_ref.optional(),
862
878
  trace_width: distance.optional()
863
879
  });
864
880
 
865
881
  // src/pcb/pcb_component.ts
866
- import { z as z50 } from "zod";
867
- var pcb_component = z50.object({
868
- type: z50.literal("pcb_component"),
882
+ import { z as z51 } from "zod";
883
+ var pcb_component = z51.object({
884
+ type: z51.literal("pcb_component"),
869
885
  pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
870
- source_component_id: z50.string(),
886
+ source_component_id: z51.string(),
871
887
  center: point,
872
888
  layer: layer_ref,
873
889
  rotation,
874
890
  width: length,
875
891
  height: length,
876
- subcircuit_id: z50.string().optional()
892
+ subcircuit_id: z51.string().optional()
877
893
  }).describe("Defines a component on the PCB");
878
894
  expectTypesMatch(true);
879
895
 
880
896
  // src/pcb/pcb_hole.ts
881
- import { z as z51 } from "zod";
882
- var pcb_hole_circle_or_square = z51.object({
883
- type: z51.literal("pcb_hole"),
897
+ import { z as z52 } from "zod";
898
+ var pcb_hole_circle_or_square = z52.object({
899
+ type: z52.literal("pcb_hole"),
884
900
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
885
- pcb_group_id: z51.string().optional(),
886
- subcircuit_id: z51.string().optional(),
887
- hole_shape: z51.enum(["circle", "square"]),
888
- hole_diameter: z51.number(),
901
+ pcb_group_id: z52.string().optional(),
902
+ subcircuit_id: z52.string().optional(),
903
+ hole_shape: z52.enum(["circle", "square"]),
904
+ hole_diameter: z52.number(),
889
905
  x: distance,
890
906
  y: distance
891
907
  });
@@ -893,14 +909,14 @@ var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
893
909
  "Defines a circular or square hole on the PCB"
894
910
  );
895
911
  expectTypesMatch(true);
896
- var pcb_hole_oval = z51.object({
897
- type: z51.literal("pcb_hole"),
912
+ var pcb_hole_oval = z52.object({
913
+ type: z52.literal("pcb_hole"),
898
914
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
899
- pcb_group_id: z51.string().optional(),
900
- subcircuit_id: z51.string().optional(),
901
- hole_shape: z51.literal("oval"),
902
- hole_width: z51.number(),
903
- hole_height: z51.number(),
915
+ pcb_group_id: z52.string().optional(),
916
+ subcircuit_id: z52.string().optional(),
917
+ hole_shape: z52.literal("oval"),
918
+ hole_width: z52.number(),
919
+ hole_height: z52.number(),
904
920
  x: distance,
905
921
  y: distance
906
922
  });
@@ -911,77 +927,77 @@ expectTypesMatch(true);
911
927
  var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval);
912
928
 
913
929
  // src/pcb/pcb_plated_hole.ts
914
- import { z as z52 } from "zod";
915
- var pcb_plated_hole_circle = z52.object({
916
- type: z52.literal("pcb_plated_hole"),
917
- shape: z52.literal("circle"),
918
- pcb_group_id: z52.string().optional(),
919
- subcircuit_id: z52.string().optional(),
920
- outer_diameter: z52.number(),
921
- hole_diameter: z52.number(),
930
+ import { z as z53 } from "zod";
931
+ var pcb_plated_hole_circle = z53.object({
932
+ type: z53.literal("pcb_plated_hole"),
933
+ shape: z53.literal("circle"),
934
+ pcb_group_id: z53.string().optional(),
935
+ subcircuit_id: z53.string().optional(),
936
+ outer_diameter: z53.number(),
937
+ hole_diameter: z53.number(),
922
938
  x: distance,
923
939
  y: distance,
924
- layers: z52.array(layer_ref),
925
- port_hints: z52.array(z52.string()).optional(),
926
- pcb_component_id: z52.string().optional(),
927
- pcb_port_id: z52.string().optional(),
940
+ layers: z53.array(layer_ref),
941
+ port_hints: z53.array(z53.string()).optional(),
942
+ pcb_component_id: z53.string().optional(),
943
+ pcb_port_id: z53.string().optional(),
928
944
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
929
945
  });
930
- var pcb_plated_hole_oval = z52.object({
931
- type: z52.literal("pcb_plated_hole"),
932
- shape: z52.enum(["oval", "pill"]),
933
- pcb_group_id: z52.string().optional(),
934
- subcircuit_id: z52.string().optional(),
935
- outer_width: z52.number(),
936
- outer_height: z52.number(),
937
- hole_width: z52.number(),
938
- hole_height: z52.number(),
946
+ var pcb_plated_hole_oval = z53.object({
947
+ type: z53.literal("pcb_plated_hole"),
948
+ shape: z53.enum(["oval", "pill"]),
949
+ pcb_group_id: z53.string().optional(),
950
+ subcircuit_id: z53.string().optional(),
951
+ outer_width: z53.number(),
952
+ outer_height: z53.number(),
953
+ hole_width: z53.number(),
954
+ hole_height: z53.number(),
939
955
  x: distance,
940
956
  y: distance,
941
- layers: z52.array(layer_ref),
942
- port_hints: z52.array(z52.string()).optional(),
943
- pcb_component_id: z52.string().optional(),
944
- pcb_port_id: z52.string().optional(),
957
+ layers: z53.array(layer_ref),
958
+ port_hints: z53.array(z53.string()).optional(),
959
+ pcb_component_id: z53.string().optional(),
960
+ pcb_port_id: z53.string().optional(),
945
961
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
946
962
  });
947
- var pcb_circular_hole_with_rect_pad = z52.object({
948
- type: z52.literal("pcb_plated_hole"),
949
- shape: z52.literal("circular_hole_with_rect_pad"),
950
- pcb_group_id: z52.string().optional(),
951
- subcircuit_id: z52.string().optional(),
952
- hole_shape: z52.literal("circle"),
953
- pad_shape: z52.literal("rect"),
954
- hole_diameter: z52.number(),
955
- rect_pad_width: z52.number(),
956
- rect_pad_height: z52.number(),
963
+ var pcb_circular_hole_with_rect_pad = z53.object({
964
+ type: z53.literal("pcb_plated_hole"),
965
+ shape: z53.literal("circular_hole_with_rect_pad"),
966
+ pcb_group_id: z53.string().optional(),
967
+ subcircuit_id: z53.string().optional(),
968
+ hole_shape: z53.literal("circle"),
969
+ pad_shape: z53.literal("rect"),
970
+ hole_diameter: z53.number(),
971
+ rect_pad_width: z53.number(),
972
+ rect_pad_height: z53.number(),
957
973
  x: distance,
958
974
  y: distance,
959
- layers: z52.array(layer_ref),
960
- port_hints: z52.array(z52.string()).optional(),
961
- pcb_component_id: z52.string().optional(),
962
- pcb_port_id: z52.string().optional(),
975
+ layers: z53.array(layer_ref),
976
+ port_hints: z53.array(z53.string()).optional(),
977
+ pcb_component_id: z53.string().optional(),
978
+ pcb_port_id: z53.string().optional(),
963
979
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
964
980
  });
965
- var pcb_pill_hole_with_rect_pad = z52.object({
966
- type: z52.literal("pcb_plated_hole"),
967
- shape: z52.literal("pill_hole_with_rect_pad"),
968
- pcb_group_id: z52.string().optional(),
969
- subcircuit_id: z52.string().optional(),
970
- hole_shape: z52.literal("pill"),
971
- pad_shape: z52.literal("rect"),
972
- hole_width: z52.number(),
973
- hole_height: z52.number(),
974
- rect_pad_width: z52.number(),
975
- rect_pad_height: z52.number(),
981
+ var pcb_pill_hole_with_rect_pad = z53.object({
982
+ type: z53.literal("pcb_plated_hole"),
983
+ shape: z53.literal("pill_hole_with_rect_pad"),
984
+ pcb_group_id: z53.string().optional(),
985
+ subcircuit_id: z53.string().optional(),
986
+ hole_shape: z53.literal("pill"),
987
+ pad_shape: z53.literal("rect"),
988
+ hole_width: z53.number(),
989
+ hole_height: z53.number(),
990
+ rect_pad_width: z53.number(),
991
+ rect_pad_height: z53.number(),
976
992
  x: distance,
977
993
  y: distance,
978
- layers: z52.array(layer_ref),
979
- port_hints: z52.array(z52.string()).optional(),
980
- pcb_component_id: z52.string().optional(),
981
- pcb_port_id: z52.string().optional(),
994
+ layers: z53.array(layer_ref),
995
+ port_hints: z53.array(z53.string()).optional(),
996
+ pcb_component_id: z53.string().optional(),
997
+ pcb_port_id: z53.string().optional(),
982
998
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
983
999
  });
984
- var pcb_plated_hole = z52.union([
1000
+ var pcb_plated_hole = z53.union([
985
1001
  pcb_plated_hole_circle,
986
1002
  pcb_plated_hole_oval,
987
1003
  pcb_circular_hole_with_rect_pad
@@ -993,84 +1009,84 @@ expectTypesMatch(true);
993
1009
  expectTypesMatch(true);
994
1010
 
995
1011
  // src/pcb/pcb_port.ts
996
- import { z as z53 } from "zod";
997
- var pcb_port = z53.object({
998
- type: z53.literal("pcb_port"),
1012
+ import { z as z54 } from "zod";
1013
+ var pcb_port = z54.object({
1014
+ type: z54.literal("pcb_port"),
999
1015
  pcb_port_id: getZodPrefixedIdWithDefault("pcb_port"),
1000
- pcb_group_id: z53.string().optional(),
1001
- subcircuit_id: z53.string().optional(),
1002
- source_port_id: z53.string(),
1003
- pcb_component_id: z53.string(),
1016
+ pcb_group_id: z54.string().optional(),
1017
+ subcircuit_id: z54.string().optional(),
1018
+ source_port_id: z54.string(),
1019
+ pcb_component_id: z54.string(),
1004
1020
  x: distance,
1005
1021
  y: distance,
1006
- layers: z53.array(layer_ref)
1022
+ layers: z54.array(layer_ref)
1007
1023
  }).describe("Defines a port on the PCB");
1008
1024
  expectTypesMatch(true);
1009
1025
 
1010
1026
  // src/pcb/pcb_smtpad.ts
1011
- import { z as z54 } from "zod";
1012
- var pcb_smtpad_circle = z54.object({
1013
- type: z54.literal("pcb_smtpad"),
1014
- shape: z54.literal("circle"),
1027
+ import { z as z55 } from "zod";
1028
+ var pcb_smtpad_circle = z55.object({
1029
+ type: z55.literal("pcb_smtpad"),
1030
+ shape: z55.literal("circle"),
1015
1031
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1016
- pcb_group_id: z54.string().optional(),
1017
- subcircuit_id: z54.string().optional(),
1032
+ pcb_group_id: z55.string().optional(),
1033
+ subcircuit_id: z55.string().optional(),
1018
1034
  x: distance,
1019
1035
  y: distance,
1020
- radius: z54.number(),
1036
+ radius: z55.number(),
1021
1037
  layer: layer_ref,
1022
- port_hints: z54.array(z54.string()).optional(),
1023
- pcb_component_id: z54.string().optional(),
1024
- pcb_port_id: z54.string().optional()
1038
+ port_hints: z55.array(z55.string()).optional(),
1039
+ pcb_component_id: z55.string().optional(),
1040
+ pcb_port_id: z55.string().optional()
1025
1041
  });
1026
- var pcb_smtpad_rect = z54.object({
1027
- type: z54.literal("pcb_smtpad"),
1028
- shape: z54.literal("rect"),
1042
+ var pcb_smtpad_rect = z55.object({
1043
+ type: z55.literal("pcb_smtpad"),
1044
+ shape: z55.literal("rect"),
1029
1045
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1030
- pcb_group_id: z54.string().optional(),
1031
- subcircuit_id: z54.string().optional(),
1046
+ pcb_group_id: z55.string().optional(),
1047
+ subcircuit_id: z55.string().optional(),
1032
1048
  x: distance,
1033
1049
  y: distance,
1034
- width: z54.number(),
1035
- height: z54.number(),
1050
+ width: z55.number(),
1051
+ height: z55.number(),
1036
1052
  layer: layer_ref,
1037
- port_hints: z54.array(z54.string()).optional(),
1038
- pcb_component_id: z54.string().optional(),
1039
- pcb_port_id: z54.string().optional()
1053
+ port_hints: z55.array(z55.string()).optional(),
1054
+ pcb_component_id: z55.string().optional(),
1055
+ pcb_port_id: z55.string().optional()
1040
1056
  });
1041
- var pcb_smtpad_rotated_rect = z54.object({
1042
- type: z54.literal("pcb_smtpad"),
1043
- shape: z54.literal("rotated_rect"),
1057
+ var pcb_smtpad_rotated_rect = z55.object({
1058
+ type: z55.literal("pcb_smtpad"),
1059
+ shape: z55.literal("rotated_rect"),
1044
1060
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1045
- pcb_group_id: z54.string().optional(),
1046
- subcircuit_id: z54.string().optional(),
1061
+ pcb_group_id: z55.string().optional(),
1062
+ subcircuit_id: z55.string().optional(),
1047
1063
  x: distance,
1048
1064
  y: distance,
1049
- width: z54.number(),
1050
- height: z54.number(),
1065
+ width: z55.number(),
1066
+ height: z55.number(),
1051
1067
  ccw_rotation: rotation,
1052
1068
  layer: layer_ref,
1053
- port_hints: z54.array(z54.string()).optional(),
1054
- pcb_component_id: z54.string().optional(),
1055
- pcb_port_id: z54.string().optional()
1069
+ port_hints: z55.array(z55.string()).optional(),
1070
+ pcb_component_id: z55.string().optional(),
1071
+ pcb_port_id: z55.string().optional()
1056
1072
  });
1057
- var pcb_smtpad_pill = z54.object({
1058
- type: z54.literal("pcb_smtpad"),
1059
- shape: z54.literal("pill"),
1073
+ var pcb_smtpad_pill = z55.object({
1074
+ type: z55.literal("pcb_smtpad"),
1075
+ shape: z55.literal("pill"),
1060
1076
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1061
- pcb_group_id: z54.string().optional(),
1062
- subcircuit_id: z54.string().optional(),
1077
+ pcb_group_id: z55.string().optional(),
1078
+ subcircuit_id: z55.string().optional(),
1063
1079
  x: distance,
1064
1080
  y: distance,
1065
- width: z54.number(),
1066
- height: z54.number(),
1067
- radius: z54.number(),
1081
+ width: z55.number(),
1082
+ height: z55.number(),
1083
+ radius: z55.number(),
1068
1084
  layer: layer_ref,
1069
- port_hints: z54.array(z54.string()).optional(),
1070
- pcb_component_id: z54.string().optional(),
1071
- pcb_port_id: z54.string().optional()
1085
+ port_hints: z55.array(z55.string()).optional(),
1086
+ pcb_component_id: z55.string().optional(),
1087
+ pcb_port_id: z55.string().optional()
1072
1088
  });
1073
- var pcb_smtpad = z54.union([
1089
+ var pcb_smtpad = z55.union([
1074
1090
  pcb_smtpad_circle,
1075
1091
  pcb_smtpad_rect,
1076
1092
  pcb_smtpad_rotated_rect,
@@ -1082,79 +1098,79 @@ expectTypesMatch(true);
1082
1098
  expectTypesMatch(true);
1083
1099
 
1084
1100
  // src/pcb/pcb_solder_paste.ts
1085
- import { z as z55 } from "zod";
1086
- var pcb_solder_paste_circle = z55.object({
1087
- type: z55.literal("pcb_solder_paste"),
1088
- shape: z55.literal("circle"),
1101
+ import { z as z56 } from "zod";
1102
+ var pcb_solder_paste_circle = z56.object({
1103
+ type: z56.literal("pcb_solder_paste"),
1104
+ shape: z56.literal("circle"),
1089
1105
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1090
- pcb_group_id: z55.string().optional(),
1091
- subcircuit_id: z55.string().optional(),
1106
+ pcb_group_id: z56.string().optional(),
1107
+ subcircuit_id: z56.string().optional(),
1092
1108
  x: distance,
1093
1109
  y: distance,
1094
- radius: z55.number(),
1110
+ radius: z56.number(),
1095
1111
  layer: layer_ref,
1096
- pcb_component_id: z55.string().optional(),
1097
- pcb_smtpad_id: z55.string().optional()
1112
+ pcb_component_id: z56.string().optional(),
1113
+ pcb_smtpad_id: z56.string().optional()
1098
1114
  });
1099
- var pcb_solder_paste_rect = z55.object({
1100
- type: z55.literal("pcb_solder_paste"),
1101
- shape: z55.literal("rect"),
1115
+ var pcb_solder_paste_rect = z56.object({
1116
+ type: z56.literal("pcb_solder_paste"),
1117
+ shape: z56.literal("rect"),
1102
1118
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1103
- pcb_group_id: z55.string().optional(),
1104
- subcircuit_id: z55.string().optional(),
1119
+ pcb_group_id: z56.string().optional(),
1120
+ subcircuit_id: z56.string().optional(),
1105
1121
  x: distance,
1106
1122
  y: distance,
1107
- width: z55.number(),
1108
- height: z55.number(),
1123
+ width: z56.number(),
1124
+ height: z56.number(),
1109
1125
  layer: layer_ref,
1110
- pcb_component_id: z55.string().optional(),
1111
- pcb_smtpad_id: z55.string().optional()
1126
+ pcb_component_id: z56.string().optional(),
1127
+ pcb_smtpad_id: z56.string().optional()
1112
1128
  });
1113
- var pcb_solder_paste_pill = z55.object({
1114
- type: z55.literal("pcb_solder_paste"),
1115
- shape: z55.literal("pill"),
1129
+ var pcb_solder_paste_pill = z56.object({
1130
+ type: z56.literal("pcb_solder_paste"),
1131
+ shape: z56.literal("pill"),
1116
1132
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1117
- pcb_group_id: z55.string().optional(),
1118
- subcircuit_id: z55.string().optional(),
1133
+ pcb_group_id: z56.string().optional(),
1134
+ subcircuit_id: z56.string().optional(),
1119
1135
  x: distance,
1120
1136
  y: distance,
1121
- width: z55.number(),
1122
- height: z55.number(),
1123
- radius: z55.number(),
1137
+ width: z56.number(),
1138
+ height: z56.number(),
1139
+ radius: z56.number(),
1124
1140
  layer: layer_ref,
1125
- pcb_component_id: z55.string().optional(),
1126
- pcb_smtpad_id: z55.string().optional()
1141
+ pcb_component_id: z56.string().optional(),
1142
+ pcb_smtpad_id: z56.string().optional()
1127
1143
  });
1128
- var pcb_solder_paste_rotated_rect = z55.object({
1129
- type: z55.literal("pcb_solder_paste"),
1130
- shape: z55.literal("rotated_rect"),
1144
+ var pcb_solder_paste_rotated_rect = z56.object({
1145
+ type: z56.literal("pcb_solder_paste"),
1146
+ shape: z56.literal("rotated_rect"),
1131
1147
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1132
- pcb_group_id: z55.string().optional(),
1133
- subcircuit_id: z55.string().optional(),
1148
+ pcb_group_id: z56.string().optional(),
1149
+ subcircuit_id: z56.string().optional(),
1134
1150
  x: distance,
1135
1151
  y: distance,
1136
- width: z55.number(),
1137
- height: z55.number(),
1152
+ width: z56.number(),
1153
+ height: z56.number(),
1138
1154
  ccw_rotation: distance,
1139
1155
  layer: layer_ref,
1140
- pcb_component_id: z55.string().optional(),
1141
- pcb_smtpad_id: z55.string().optional()
1156
+ pcb_component_id: z56.string().optional(),
1157
+ pcb_smtpad_id: z56.string().optional()
1142
1158
  });
1143
- var pcb_solder_paste_oval = z55.object({
1144
- type: z55.literal("pcb_solder_paste"),
1145
- shape: z55.literal("oval"),
1159
+ var pcb_solder_paste_oval = z56.object({
1160
+ type: z56.literal("pcb_solder_paste"),
1161
+ shape: z56.literal("oval"),
1146
1162
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1147
- pcb_group_id: z55.string().optional(),
1148
- subcircuit_id: z55.string().optional(),
1163
+ pcb_group_id: z56.string().optional(),
1164
+ subcircuit_id: z56.string().optional(),
1149
1165
  x: distance,
1150
1166
  y: distance,
1151
- width: z55.number(),
1152
- height: z55.number(),
1167
+ width: z56.number(),
1168
+ height: z56.number(),
1153
1169
  layer: layer_ref,
1154
- pcb_component_id: z55.string().optional(),
1155
- pcb_smtpad_id: z55.string().optional()
1170
+ pcb_component_id: z56.string().optional(),
1171
+ pcb_smtpad_id: z56.string().optional()
1156
1172
  });
1157
- var pcb_solder_paste = z55.union([
1173
+ var pcb_solder_paste = z56.union([
1158
1174
  pcb_solder_paste_circle,
1159
1175
  pcb_solder_paste_rect,
1160
1176
  pcb_solder_paste_pill,
@@ -1170,95 +1186,95 @@ expectTypesMatch(
1170
1186
  expectTypesMatch(true);
1171
1187
 
1172
1188
  // src/pcb/pcb_text.ts
1173
- import { z as z56 } from "zod";
1174
- var pcb_text = z56.object({
1175
- type: z56.literal("pcb_text"),
1189
+ import { z as z57 } from "zod";
1190
+ var pcb_text = z57.object({
1191
+ type: z57.literal("pcb_text"),
1176
1192
  pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
1177
- pcb_group_id: z56.string().optional(),
1178
- subcircuit_id: z56.string().optional(),
1179
- text: z56.string(),
1193
+ pcb_group_id: z57.string().optional(),
1194
+ subcircuit_id: z57.string().optional(),
1195
+ text: z57.string(),
1180
1196
  center: point,
1181
1197
  layer: layer_ref,
1182
1198
  width: length,
1183
1199
  height: length,
1184
- lines: z56.number(),
1200
+ lines: z57.number(),
1185
1201
  // @ts-ignore
1186
- align: z56.enum(["bottom-left"])
1202
+ align: z57.enum(["bottom-left"])
1187
1203
  }).describe("Defines text on the PCB");
1188
1204
  expectTypesMatch(true);
1189
1205
 
1190
1206
  // src/pcb/pcb_trace.ts
1191
- import { z as z57 } from "zod";
1192
- var pcb_trace_route_point_wire = z57.object({
1193
- route_type: z57.literal("wire"),
1207
+ import { z as z58 } from "zod";
1208
+ var pcb_trace_route_point_wire = z58.object({
1209
+ route_type: z58.literal("wire"),
1194
1210
  x: distance,
1195
1211
  y: distance,
1196
1212
  width: distance,
1197
- start_pcb_port_id: z57.string().optional(),
1198
- end_pcb_port_id: z57.string().optional(),
1213
+ start_pcb_port_id: z58.string().optional(),
1214
+ end_pcb_port_id: z58.string().optional(),
1199
1215
  layer: layer_ref
1200
1216
  });
1201
- var pcb_trace_route_point_via = z57.object({
1202
- route_type: z57.literal("via"),
1217
+ var pcb_trace_route_point_via = z58.object({
1218
+ route_type: z58.literal("via"),
1203
1219
  x: distance,
1204
1220
  y: distance,
1205
1221
  hole_diameter: distance.optional(),
1206
1222
  outer_diameter: distance.optional(),
1207
- from_layer: z57.string(),
1208
- to_layer: z57.string()
1223
+ from_layer: z58.string(),
1224
+ to_layer: z58.string()
1209
1225
  });
1210
- var pcb_trace_route_point = z57.union([
1226
+ var pcb_trace_route_point = z58.union([
1211
1227
  pcb_trace_route_point_wire,
1212
1228
  pcb_trace_route_point_via
1213
1229
  ]);
1214
- var pcb_trace = z57.object({
1215
- type: z57.literal("pcb_trace"),
1216
- source_trace_id: z57.string().optional(),
1217
- pcb_component_id: z57.string().optional(),
1230
+ var pcb_trace = z58.object({
1231
+ type: z58.literal("pcb_trace"),
1232
+ source_trace_id: z58.string().optional(),
1233
+ pcb_component_id: z58.string().optional(),
1218
1234
  pcb_trace_id: getZodPrefixedIdWithDefault("pcb_trace"),
1219
- pcb_group_id: z57.string().optional(),
1220
- subcircuit_id: z57.string().optional(),
1221
- route_thickness_mode: z57.enum(["constant", "interpolated"]).default("constant").optional(),
1222
- route_order_index: z57.number().optional(),
1223
- should_round_corners: z57.boolean().optional(),
1224
- trace_length: z57.number().optional(),
1225
- route: z57.array(pcb_trace_route_point)
1235
+ pcb_group_id: z58.string().optional(),
1236
+ subcircuit_id: z58.string().optional(),
1237
+ route_thickness_mode: z58.enum(["constant", "interpolated"]).default("constant").optional(),
1238
+ route_order_index: z58.number().optional(),
1239
+ should_round_corners: z58.boolean().optional(),
1240
+ trace_length: z58.number().optional(),
1241
+ route: z58.array(pcb_trace_route_point)
1226
1242
  }).describe("Defines a trace on the PCB");
1227
1243
  expectTypesMatch(true);
1228
1244
  expectTypesMatch(true);
1229
1245
 
1230
1246
  // src/pcb/pcb_trace_error.ts
1231
- import { z as z58 } from "zod";
1232
- var pcb_trace_error = z58.object({
1233
- type: z58.literal("pcb_trace_error"),
1247
+ import { z as z59 } from "zod";
1248
+ var pcb_trace_error = z59.object({
1249
+ type: z59.literal("pcb_trace_error"),
1234
1250
  pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
1235
- error_type: z58.literal("pcb_trace_error"),
1236
- message: z58.string(),
1251
+ error_type: z59.literal("pcb_trace_error"),
1252
+ message: z59.string(),
1237
1253
  center: point.optional(),
1238
- pcb_trace_id: z58.string(),
1239
- source_trace_id: z58.string(),
1240
- pcb_component_ids: z58.array(z58.string()),
1241
- pcb_port_ids: z58.array(z58.string())
1254
+ pcb_trace_id: z59.string(),
1255
+ source_trace_id: z59.string(),
1256
+ pcb_component_ids: z59.array(z59.string()),
1257
+ pcb_port_ids: z59.array(z59.string())
1242
1258
  }).describe("Defines a trace error on the PCB");
1243
1259
  expectTypesMatch(true);
1244
1260
 
1245
1261
  // src/pcb/pcb_port_not_matched_error.ts
1246
- import { z as z59 } from "zod";
1247
- var pcb_port_not_matched_error = z59.object({
1248
- type: z59.literal("pcb_port_not_matched_error"),
1262
+ import { z as z60 } from "zod";
1263
+ var pcb_port_not_matched_error = z60.object({
1264
+ type: z60.literal("pcb_port_not_matched_error"),
1249
1265
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
1250
- message: z59.string(),
1251
- pcb_component_ids: z59.array(z59.string())
1266
+ message: z60.string(),
1267
+ pcb_component_ids: z60.array(z60.string())
1252
1268
  }).describe("Defines a trace error on the PCB where a port is not matched");
1253
1269
  expectTypesMatch(true);
1254
1270
 
1255
1271
  // src/pcb/pcb_via.ts
1256
- import { z as z60 } from "zod";
1257
- var pcb_via = z60.object({
1258
- type: z60.literal("pcb_via"),
1272
+ import { z as z61 } from "zod";
1273
+ var pcb_via = z61.object({
1274
+ type: z61.literal("pcb_via"),
1259
1275
  pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
1260
- pcb_group_id: z60.string().optional(),
1261
- subcircuit_id: z60.string().optional(),
1276
+ pcb_group_id: z61.string().optional(),
1277
+ subcircuit_id: z61.string().optional(),
1262
1278
  x: distance,
1263
1279
  y: distance,
1264
1280
  outer_diameter: distance.default("0.6mm"),
@@ -1267,56 +1283,56 @@ var pcb_via = z60.object({
1267
1283
  from_layer: layer_ref.optional(),
1268
1284
  /** @deprecated */
1269
1285
  to_layer: layer_ref.optional(),
1270
- layers: z60.array(layer_ref),
1271
- pcb_trace_id: z60.string().optional()
1286
+ layers: z61.array(layer_ref),
1287
+ pcb_trace_id: z61.string().optional()
1272
1288
  }).describe("Defines a via on the PCB");
1273
1289
  expectTypesMatch(true);
1274
1290
 
1275
1291
  // src/pcb/pcb_board.ts
1276
- import { z as z61 } from "zod";
1277
- var pcb_board = z61.object({
1278
- type: z61.literal("pcb_board"),
1292
+ import { z as z62 } from "zod";
1293
+ var pcb_board = z62.object({
1294
+ type: z62.literal("pcb_board"),
1279
1295
  pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
1280
- is_subcircuit: z61.boolean().optional(),
1281
- subcircuit_id: z61.string().optional(),
1296
+ is_subcircuit: z62.boolean().optional(),
1297
+ subcircuit_id: z62.string().optional(),
1282
1298
  width: length,
1283
1299
  height: length,
1284
1300
  center: point,
1285
1301
  thickness: length.optional().default(1.4),
1286
- num_layers: z61.number().optional().default(4),
1287
- outline: z61.array(point).optional(),
1288
- material: z61.enum(["fr4", "fr1"]).default("fr4")
1302
+ num_layers: z62.number().optional().default(4),
1303
+ outline: z62.array(point).optional(),
1304
+ material: z62.enum(["fr4", "fr1"]).default("fr4")
1289
1305
  }).describe("Defines the board outline of the PCB");
1290
1306
  expectTypesMatch(true);
1291
1307
 
1292
1308
  // src/pcb/pcb_placement_error.ts
1293
- import { z as z62 } from "zod";
1294
- var pcb_placement_error = z62.object({
1295
- type: z62.literal("pcb_placement_error"),
1309
+ import { z as z63 } from "zod";
1310
+ var pcb_placement_error = z63.object({
1311
+ type: z63.literal("pcb_placement_error"),
1296
1312
  pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
1297
- message: z62.string()
1313
+ message: z63.string()
1298
1314
  }).describe("Defines a placement error on the PCB");
1299
1315
  expectTypesMatch(true);
1300
1316
 
1301
1317
  // src/pcb/pcb_trace_hint.ts
1302
- import { z as z63 } from "zod";
1303
- var pcb_trace_hint = z63.object({
1304
- type: z63.literal("pcb_trace_hint"),
1318
+ import { z as z64 } from "zod";
1319
+ var pcb_trace_hint = z64.object({
1320
+ type: z64.literal("pcb_trace_hint"),
1305
1321
  pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
1306
- pcb_port_id: z63.string(),
1307
- pcb_component_id: z63.string(),
1308
- route: z63.array(route_hint_point)
1322
+ pcb_port_id: z64.string(),
1323
+ pcb_component_id: z64.string(),
1324
+ route: z64.array(route_hint_point)
1309
1325
  }).describe("A hint that can be used during generation of a PCB trace");
1310
1326
  expectTypesMatch(true);
1311
1327
 
1312
1328
  // src/pcb/pcb_silkscreen_line.ts
1313
- import { z as z64 } from "zod";
1314
- var pcb_silkscreen_line = z64.object({
1315
- type: z64.literal("pcb_silkscreen_line"),
1329
+ import { z as z65 } from "zod";
1330
+ var pcb_silkscreen_line = z65.object({
1331
+ type: z65.literal("pcb_silkscreen_line"),
1316
1332
  pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
1317
- pcb_component_id: z64.string(),
1318
- pcb_group_id: z64.string().optional(),
1319
- subcircuit_id: z64.string().optional(),
1333
+ pcb_component_id: z65.string(),
1334
+ pcb_group_id: z65.string().optional(),
1335
+ subcircuit_id: z65.string().optional(),
1320
1336
  stroke_width: distance.default("0.1mm"),
1321
1337
  x1: distance,
1322
1338
  y1: distance,
@@ -1327,46 +1343,46 @@ var pcb_silkscreen_line = z64.object({
1327
1343
  expectTypesMatch(true);
1328
1344
 
1329
1345
  // src/pcb/pcb_silkscreen_path.ts
1330
- import { z as z65 } from "zod";
1331
- var pcb_silkscreen_path = z65.object({
1332
- type: z65.literal("pcb_silkscreen_path"),
1346
+ import { z as z66 } from "zod";
1347
+ var pcb_silkscreen_path = z66.object({
1348
+ type: z66.literal("pcb_silkscreen_path"),
1333
1349
  pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
1334
- pcb_component_id: z65.string(),
1335
- pcb_group_id: z65.string().optional(),
1336
- subcircuit_id: z65.string().optional(),
1350
+ pcb_component_id: z66.string(),
1351
+ pcb_group_id: z66.string().optional(),
1352
+ subcircuit_id: z66.string().optional(),
1337
1353
  layer: visible_layer,
1338
- route: z65.array(point),
1354
+ route: z66.array(point),
1339
1355
  stroke_width: length
1340
1356
  }).describe("Defines a silkscreen path on the PCB");
1341
1357
  expectTypesMatch(true);
1342
1358
 
1343
1359
  // src/pcb/pcb_silkscreen_text.ts
1344
- import { z as z66 } from "zod";
1345
- var pcb_silkscreen_text = z66.object({
1346
- type: z66.literal("pcb_silkscreen_text"),
1360
+ import { z as z67 } from "zod";
1361
+ var pcb_silkscreen_text = z67.object({
1362
+ type: z67.literal("pcb_silkscreen_text"),
1347
1363
  pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
1348
- pcb_group_id: z66.string().optional(),
1349
- subcircuit_id: z66.string().optional(),
1350
- font: z66.literal("tscircuit2024").default("tscircuit2024"),
1364
+ pcb_group_id: z67.string().optional(),
1365
+ subcircuit_id: z67.string().optional(),
1366
+ font: z67.literal("tscircuit2024").default("tscircuit2024"),
1351
1367
  font_size: distance.default("0.2mm"),
1352
- pcb_component_id: z66.string(),
1353
- text: z66.string(),
1354
- ccw_rotation: z66.number().optional(),
1368
+ pcb_component_id: z67.string(),
1369
+ text: z67.string(),
1370
+ ccw_rotation: z67.number().optional(),
1355
1371
  layer: layer_ref,
1356
- is_mirrored: z66.boolean().default(false).optional(),
1372
+ is_mirrored: z67.boolean().default(false).optional(),
1357
1373
  anchor_position: point.default({ x: 0, y: 0 }),
1358
- anchor_alignment: z66.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center")
1374
+ anchor_alignment: z67.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center")
1359
1375
  }).describe("Defines silkscreen text on the PCB");
1360
1376
  expectTypesMatch(true);
1361
1377
 
1362
1378
  // src/pcb/pcb_silkscreen_rect.ts
1363
- import { z as z67 } from "zod";
1364
- var pcb_silkscreen_rect = z67.object({
1365
- type: z67.literal("pcb_silkscreen_rect"),
1379
+ import { z as z68 } from "zod";
1380
+ var pcb_silkscreen_rect = z68.object({
1381
+ type: z68.literal("pcb_silkscreen_rect"),
1366
1382
  pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
1367
- pcb_component_id: z67.string(),
1368
- pcb_group_id: z67.string().optional(),
1369
- subcircuit_id: z67.string().optional(),
1383
+ pcb_component_id: z68.string(),
1384
+ pcb_group_id: z68.string().optional(),
1385
+ subcircuit_id: z68.string().optional(),
1370
1386
  center: point,
1371
1387
  width: length,
1372
1388
  height: length,
@@ -1376,15 +1392,15 @@ var pcb_silkscreen_rect = z67.object({
1376
1392
  expectTypesMatch(true);
1377
1393
 
1378
1394
  // src/pcb/pcb_silkscreen_circle.ts
1379
- import { z as z68 } from "zod";
1380
- var pcb_silkscreen_circle = z68.object({
1381
- type: z68.literal("pcb_silkscreen_circle"),
1395
+ import { z as z69 } from "zod";
1396
+ var pcb_silkscreen_circle = z69.object({
1397
+ type: z69.literal("pcb_silkscreen_circle"),
1382
1398
  pcb_silkscreen_circle_id: getZodPrefixedIdWithDefault(
1383
1399
  "pcb_silkscreen_circle"
1384
1400
  ),
1385
- pcb_component_id: z68.string(),
1386
- pcb_group_id: z68.string().optional(),
1387
- subcircuit_id: z68.string().optional(),
1401
+ pcb_component_id: z69.string(),
1402
+ pcb_group_id: z69.string().optional(),
1403
+ subcircuit_id: z69.string().optional(),
1388
1404
  center: point,
1389
1405
  radius: length,
1390
1406
  layer: visible_layer,
@@ -1393,13 +1409,13 @@ var pcb_silkscreen_circle = z68.object({
1393
1409
  expectTypesMatch(true);
1394
1410
 
1395
1411
  // src/pcb/pcb_silkscreen_oval.ts
1396
- import { z as z69 } from "zod";
1397
- var pcb_silkscreen_oval = z69.object({
1398
- type: z69.literal("pcb_silkscreen_oval"),
1412
+ import { z as z70 } from "zod";
1413
+ var pcb_silkscreen_oval = z70.object({
1414
+ type: z70.literal("pcb_silkscreen_oval"),
1399
1415
  pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
1400
- pcb_component_id: z69.string(),
1401
- pcb_group_id: z69.string().optional(),
1402
- subcircuit_id: z69.string().optional(),
1416
+ pcb_component_id: z70.string(),
1417
+ pcb_group_id: z70.string().optional(),
1418
+ subcircuit_id: z70.string().optional(),
1403
1419
  center: point,
1404
1420
  radius_x: distance,
1405
1421
  radius_y: distance,
@@ -1408,158 +1424,158 @@ var pcb_silkscreen_oval = z69.object({
1408
1424
  expectTypesMatch(true);
1409
1425
 
1410
1426
  // src/pcb/pcb_fabrication_note_text.ts
1411
- import { z as z70 } from "zod";
1412
- var pcb_fabrication_note_text = z70.object({
1413
- type: z70.literal("pcb_fabrication_note_text"),
1427
+ import { z as z71 } from "zod";
1428
+ var pcb_fabrication_note_text = z71.object({
1429
+ type: z71.literal("pcb_fabrication_note_text"),
1414
1430
  pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
1415
1431
  "pcb_fabrication_note_text"
1416
1432
  ),
1417
- subcircuit_id: z70.string().optional(),
1418
- pcb_group_id: z70.string().optional(),
1419
- font: z70.literal("tscircuit2024").default("tscircuit2024"),
1433
+ subcircuit_id: z71.string().optional(),
1434
+ pcb_group_id: z71.string().optional(),
1435
+ font: z71.literal("tscircuit2024").default("tscircuit2024"),
1420
1436
  font_size: distance.default("1mm"),
1421
- pcb_component_id: z70.string(),
1422
- text: z70.string(),
1437
+ pcb_component_id: z71.string(),
1438
+ text: z71.string(),
1423
1439
  layer: visible_layer,
1424
1440
  anchor_position: point.default({ x: 0, y: 0 }),
1425
- anchor_alignment: z70.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
1426
- color: z70.string().optional()
1441
+ anchor_alignment: z71.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
1442
+ color: z71.string().optional()
1427
1443
  }).describe(
1428
1444
  "Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
1429
1445
  );
1430
1446
  expectTypesMatch(true);
1431
1447
 
1432
1448
  // src/pcb/pcb_fabrication_note_path.ts
1433
- import { z as z71 } from "zod";
1434
- var pcb_fabrication_note_path = z71.object({
1435
- type: z71.literal("pcb_fabrication_note_path"),
1449
+ import { z as z72 } from "zod";
1450
+ var pcb_fabrication_note_path = z72.object({
1451
+ type: z72.literal("pcb_fabrication_note_path"),
1436
1452
  pcb_fabrication_note_path_id: getZodPrefixedIdWithDefault(
1437
1453
  "pcb_fabrication_note_path"
1438
1454
  ),
1439
- pcb_component_id: z71.string(),
1440
- subcircuit_id: z71.string().optional(),
1455
+ pcb_component_id: z72.string(),
1456
+ subcircuit_id: z72.string().optional(),
1441
1457
  layer: layer_ref,
1442
- route: z71.array(point),
1458
+ route: z72.array(point),
1443
1459
  stroke_width: length,
1444
- color: z71.string().optional()
1460
+ color: z72.string().optional()
1445
1461
  }).describe(
1446
1462
  "Defines a fabrication path on the PCB for fabricators or assemblers"
1447
1463
  );
1448
1464
  expectTypesMatch(true);
1449
1465
 
1450
1466
  // src/pcb/pcb_keepout.ts
1451
- import { z as z72 } from "zod";
1452
- var pcb_keepout = z72.object({
1453
- type: z72.literal("pcb_keepout"),
1454
- shape: z72.literal("rect"),
1455
- pcb_group_id: z72.string().optional(),
1456
- subcircuit_id: z72.string().optional(),
1467
+ import { z as z73 } from "zod";
1468
+ var pcb_keepout = z73.object({
1469
+ type: z73.literal("pcb_keepout"),
1470
+ shape: z73.literal("rect"),
1471
+ pcb_group_id: z73.string().optional(),
1472
+ subcircuit_id: z73.string().optional(),
1457
1473
  center: point,
1458
1474
  width: distance,
1459
1475
  height: distance,
1460
- pcb_keepout_id: z72.string(),
1461
- layers: z72.array(z72.string()),
1476
+ pcb_keepout_id: z73.string(),
1477
+ layers: z73.array(z73.string()),
1462
1478
  // Specify layers where the keepout applies
1463
- description: z72.string().optional()
1479
+ description: z73.string().optional()
1464
1480
  // Optional description of the keepout
1465
1481
  }).or(
1466
- z72.object({
1467
- type: z72.literal("pcb_keepout"),
1468
- shape: z72.literal("circle"),
1469
- pcb_group_id: z72.string().optional(),
1470
- subcircuit_id: z72.string().optional(),
1482
+ z73.object({
1483
+ type: z73.literal("pcb_keepout"),
1484
+ shape: z73.literal("circle"),
1485
+ pcb_group_id: z73.string().optional(),
1486
+ subcircuit_id: z73.string().optional(),
1471
1487
  center: point,
1472
1488
  radius: distance,
1473
- pcb_keepout_id: z72.string(),
1474
- layers: z72.array(z72.string()),
1489
+ pcb_keepout_id: z73.string(),
1490
+ layers: z73.array(z73.string()),
1475
1491
  // Specify layers where the keepout applies
1476
- description: z72.string().optional()
1492
+ description: z73.string().optional()
1477
1493
  // Optional description of the keepout
1478
1494
  })
1479
1495
  );
1480
1496
 
1481
1497
  // src/pcb/pcb_missing_footprint_error.ts
1482
- import { z as z73 } from "zod";
1483
- var pcb_missing_footprint_error = z73.object({
1484
- type: z73.literal("pcb_missing_footprint_error"),
1498
+ import { z as z74 } from "zod";
1499
+ var pcb_missing_footprint_error = z74.object({
1500
+ type: z74.literal("pcb_missing_footprint_error"),
1485
1501
  pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
1486
1502
  "pcb_missing_footprint_error"
1487
1503
  ),
1488
- pcb_group_id: z73.string().optional(),
1489
- subcircuit_id: z73.string().optional(),
1490
- error_type: z73.literal("pcb_missing_footprint_error"),
1491
- source_component_id: z73.string(),
1492
- message: z73.string()
1504
+ pcb_group_id: z74.string().optional(),
1505
+ subcircuit_id: z74.string().optional(),
1506
+ error_type: z74.literal("pcb_missing_footprint_error"),
1507
+ source_component_id: z74.string(),
1508
+ message: z74.string()
1493
1509
  }).describe("Defines a missing footprint error on the PCB");
1494
1510
  expectTypesMatch(
1495
1511
  true
1496
1512
  );
1497
1513
 
1498
1514
  // src/pcb/pcb_group.ts
1499
- import { z as z74 } from "zod";
1500
- var pcb_group = z74.object({
1501
- type: z74.literal("pcb_group"),
1515
+ import { z as z75 } from "zod";
1516
+ var pcb_group = z75.object({
1517
+ type: z75.literal("pcb_group"),
1502
1518
  pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
1503
- source_group_id: z74.string(),
1504
- is_subcircuit: z74.boolean().optional(),
1505
- subcircuit_id: z74.string().optional(),
1519
+ source_group_id: z75.string(),
1520
+ is_subcircuit: z75.boolean().optional(),
1521
+ subcircuit_id: z75.string().optional(),
1506
1522
  width: length,
1507
1523
  height: length,
1508
1524
  center: point,
1509
- pcb_component_ids: z74.array(z74.string()),
1510
- name: z74.string().optional(),
1511
- description: z74.string().optional()
1525
+ pcb_component_ids: z75.array(z75.string()),
1526
+ name: z75.string().optional(),
1527
+ description: z75.string().optional()
1512
1528
  }).describe("Defines a group of components on the PCB");
1513
1529
  expectTypesMatch(true);
1514
1530
 
1515
1531
  // src/pcb/pcb_autorouting_error.ts
1516
- import { z as z75 } from "zod";
1517
- var pcb_autorouting_error = z75.object({
1518
- type: z75.literal("pcb_autorouting_error"),
1532
+ import { z as z76 } from "zod";
1533
+ var pcb_autorouting_error = z76.object({
1534
+ type: z76.literal("pcb_autorouting_error"),
1519
1535
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
1520
- message: z75.string()
1536
+ message: z76.string()
1521
1537
  }).describe("The autorouting has failed to route a portion of the board");
1522
1538
  expectTypesMatch(true);
1523
1539
 
1524
1540
  // src/pcb/pcb_manual_edit_conflict_warning.ts
1525
- import { z as z76 } from "zod";
1526
- var pcb_manual_edit_conflict_warning = z76.object({
1527
- type: z76.literal("pcb_manual_edit_conflict_warning"),
1541
+ import { z as z77 } from "zod";
1542
+ var pcb_manual_edit_conflict_warning = z77.object({
1543
+ type: z77.literal("pcb_manual_edit_conflict_warning"),
1528
1544
  pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
1529
1545
  "pcb_manual_edit_conflict_warning"
1530
1546
  ),
1531
- message: z76.string(),
1532
- pcb_component_id: z76.string(),
1533
- pcb_group_id: z76.string().optional(),
1534
- subcircuit_id: z76.string().optional(),
1535
- source_component_id: z76.string()
1547
+ message: z77.string(),
1548
+ pcb_component_id: z77.string(),
1549
+ pcb_group_id: z77.string().optional(),
1550
+ subcircuit_id: z77.string().optional(),
1551
+ source_component_id: z77.string()
1536
1552
  }).describe(
1537
1553
  "Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
1538
1554
  );
1539
1555
  expectTypesMatch(true);
1540
1556
 
1541
1557
  // src/cad/cad_component.ts
1542
- import { z as z77 } from "zod";
1543
- var cad_component = z77.object({
1544
- type: z77.literal("cad_component"),
1545
- cad_component_id: z77.string(),
1546
- pcb_component_id: z77.string(),
1547
- source_component_id: z77.string(),
1558
+ import { z as z78 } from "zod";
1559
+ var cad_component = z78.object({
1560
+ type: z78.literal("cad_component"),
1561
+ cad_component_id: z78.string(),
1562
+ pcb_component_id: z78.string(),
1563
+ source_component_id: z78.string(),
1548
1564
  position: point3,
1549
1565
  rotation: point3.optional(),
1550
1566
  size: point3.optional(),
1551
1567
  layer: layer_ref.optional(),
1552
1568
  // These are all ways to generate/load the 3d model
1553
- footprinter_string: z77.string().optional(),
1554
- model_obj_url: z77.string().optional(),
1555
- model_stl_url: z77.string().optional(),
1556
- model_3mf_url: z77.string().optional(),
1557
- model_jscad: z77.any().optional()
1569
+ footprinter_string: z78.string().optional(),
1570
+ model_obj_url: z78.string().optional(),
1571
+ model_stl_url: z78.string().optional(),
1572
+ model_3mf_url: z78.string().optional(),
1573
+ model_jscad: z78.any().optional()
1558
1574
  }).describe("Defines a component on the PCB");
1559
1575
 
1560
1576
  // src/any_circuit_element.ts
1561
- import { z as z78 } from "zod";
1562
- var any_circuit_element = z78.union([
1577
+ import { z as z79 } from "zod";
1578
+ var any_circuit_element = z79.union([
1563
1579
  source_trace,
1564
1580
  source_port,
1565
1581
  any_source_component,
@@ -1706,6 +1722,7 @@ export {
1706
1722
  schematic_voltage_probe,
1707
1723
  size,
1708
1724
  source_component_base,
1725
+ source_failed_to_create_component_error,
1709
1726
  source_group,
1710
1727
  source_led,
1711
1728
  source_missing_property_error,