circuit-json 0.0.149 → 0.0.151

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