circuit-json 0.0.196 → 0.0.198

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
@@ -364,84 +364,77 @@ var source_simple_chip = source_component_base.extend({
364
364
  });
365
365
  expectTypesMatch(true);
366
366
 
367
- // src/source/source_led.ts
368
- import { z as z15 } from "zod";
369
- var source_led = source_simple_diode.extend({
370
- ftype: z15.literal("led")
371
- });
372
- expectTypesMatch(true);
373
-
374
367
  // src/source/source_simple_power_source.ts
375
- import { z as z16 } from "zod";
368
+ import { z as z15 } from "zod";
376
369
  var source_simple_power_source = source_component_base.extend({
377
- ftype: z16.literal("simple_power_source"),
370
+ ftype: z15.literal("simple_power_source"),
378
371
  voltage
379
372
  });
380
373
  expectTypesMatch(true);
381
374
 
382
375
  // src/source/any_source_component.ts
383
- import { z as z32 } from "zod";
376
+ import { z as z31 } from "zod";
384
377
 
385
378
  // src/source/source_simple_fuse.ts
386
- import { z as z17 } from "zod";
379
+ import { z as z16 } from "zod";
387
380
  var source_simple_fuse = source_component_base.extend({
388
- ftype: z17.literal("simple_fuse"),
389
- current_rating_amps: z17.number().describe("Nominal current in amps the fuse is rated for"),
390
- voltage_rating_volts: z17.number().describe("Voltage rating in volts, e.g. \xB15V would be 5")
381
+ ftype: z16.literal("simple_fuse"),
382
+ current_rating_amps: z16.number().describe("Nominal current in amps the fuse is rated for"),
383
+ voltage_rating_volts: z16.number().describe("Voltage rating in volts, e.g. \xB15V would be 5")
391
384
  });
392
385
  expectTypesMatch(true);
393
386
 
394
387
  // src/source/source_simple_battery.ts
395
- import { z as z18 } from "zod";
388
+ import { z as z17 } from "zod";
396
389
  var source_simple_battery = source_component_base.extend({
397
- ftype: z18.literal("simple_battery"),
390
+ ftype: z17.literal("simple_battery"),
398
391
  capacity: battery_capacity
399
392
  });
400
393
  expectTypesMatch(true);
401
394
 
402
395
  // src/source/source_simple_inductor.ts
403
- import { z as z19 } from "zod";
396
+ import { z as z18 } from "zod";
404
397
  var source_simple_inductor = source_component_base.extend({
405
- ftype: z19.literal("simple_inductor"),
398
+ ftype: z18.literal("simple_inductor"),
406
399
  inductance
407
400
  });
408
401
  expectTypesMatch(true);
409
402
 
410
403
  // src/source/source_simple_push_button.ts
411
- import { z as z20 } from "zod";
404
+ import { z as z19 } from "zod";
412
405
  var source_simple_push_button = source_component_base.extend({
413
- ftype: z20.literal("simple_push_button")
406
+ ftype: z19.literal("simple_push_button")
414
407
  });
415
408
  expectTypesMatch(true);
416
409
 
417
410
  // src/source/source_simple_potentiometer.ts
418
- import { z as z21 } from "zod";
411
+ import { z as z20 } from "zod";
419
412
  var source_simple_potentiometer = source_component_base.extend({
420
- ftype: z21.literal("simple_potentiometer"),
413
+ ftype: z20.literal("simple_potentiometer"),
421
414
  max_resistance: resistance
422
415
  });
423
416
 
424
417
  // src/source/source_simple_crystal.ts
425
- import { z as z22 } from "zod";
418
+ import { z as z21 } from "zod";
426
419
  var source_simple_crystal = source_component_base.extend({
427
- ftype: z22.literal("simple_crystal"),
428
- frequency: z22.number().describe("Frequency in Hz"),
429
- load_capacitance: z22.number().optional().describe("Load capacitance in pF")
420
+ ftype: z21.literal("simple_crystal"),
421
+ frequency: z21.number().describe("Frequency in Hz"),
422
+ load_capacitance: z21.number().optional().describe("Load capacitance in pF")
430
423
  });
431
424
  expectTypesMatch(true);
432
425
 
433
426
  // src/source/source_simple_pin_header.ts
434
- import { z as z23 } from "zod";
427
+ import { z as z22 } from "zod";
435
428
  var source_simple_pin_header = source_component_base.extend({
436
- ftype: z23.literal("simple_pin_header"),
437
- pin_count: z23.number(),
438
- gender: z23.enum(["male", "female"]).optional().default("male")
429
+ ftype: z22.literal("simple_pin_header"),
430
+ pin_count: z22.number(),
431
+ gender: z22.enum(["male", "female"]).optional().default("male")
439
432
  });
440
433
 
441
434
  // src/source/source_simple_resonator.ts
442
- import { z as z24 } from "zod";
435
+ import { z as z23 } from "zod";
443
436
  var source_simple_resonator = source_component_base.extend({
444
- ftype: z24.literal("simple_resonator"),
437
+ ftype: z23.literal("simple_resonator"),
445
438
  load_capacitance: capacitance,
446
439
  equivalent_series_resistance: resistance.optional(),
447
440
  frequency
@@ -449,90 +442,90 @@ var source_simple_resonator = source_component_base.extend({
449
442
  expectTypesMatch(true);
450
443
 
451
444
  // src/source/source_simple_transistor.ts
452
- import { z as z25 } from "zod";
445
+ import { z as z24 } from "zod";
453
446
  var source_simple_transistor = source_component_base.extend({
454
- ftype: z25.literal("simple_transistor"),
455
- transistor_type: z25.enum(["npn", "pnp"])
447
+ ftype: z24.literal("simple_transistor"),
448
+ transistor_type: z24.enum(["npn", "pnp"])
456
449
  });
457
450
  expectTypesMatch(true);
458
451
 
459
452
  // src/source/source_simple_test_point.ts
460
- import { z as z26 } from "zod";
453
+ import { z as z25 } from "zod";
461
454
  var source_simple_test_point = source_component_base.extend({
462
- ftype: z26.literal("simple_test_point"),
463
- footprint_variant: z26.enum(["pad", "through_hole"]).optional(),
464
- pad_shape: z26.enum(["rect", "circle"]).optional(),
465
- pad_diameter: z26.union([z26.number(), z26.string()]).optional(),
466
- hole_diameter: z26.union([z26.number(), z26.string()]).optional(),
467
- width: z26.union([z26.number(), z26.string()]).optional(),
468
- height: z26.union([z26.number(), z26.string()]).optional()
455
+ ftype: z25.literal("simple_test_point"),
456
+ footprint_variant: z25.enum(["pad", "through_hole"]).optional(),
457
+ pad_shape: z25.enum(["rect", "circle"]).optional(),
458
+ pad_diameter: z25.union([z25.number(), z25.string()]).optional(),
459
+ hole_diameter: z25.union([z25.number(), z25.string()]).optional(),
460
+ width: z25.union([z25.number(), z25.string()]).optional(),
461
+ height: z25.union([z25.number(), z25.string()]).optional()
469
462
  });
470
463
  expectTypesMatch(true);
471
464
 
472
465
  // src/source/source_simple_mosfet.ts
473
- import { z as z27 } from "zod";
466
+ import { z as z26 } from "zod";
474
467
  var source_simple_mosfet = source_component_base.extend({
475
- ftype: z27.literal("simple_mosfet"),
476
- channel_type: z27.enum(["n", "p"]),
477
- mosfet_mode: z27.enum(["enhancement", "depletion"])
468
+ ftype: z26.literal("simple_mosfet"),
469
+ channel_type: z26.enum(["n", "p"]),
470
+ mosfet_mode: z26.enum(["enhancement", "depletion"])
478
471
  });
479
472
  expectTypesMatch(true);
480
473
 
481
474
  // src/source/source_simple_switch.ts
482
- import { z as z28 } from "zod";
475
+ import { z as z27 } from "zod";
483
476
  var source_simple_switch = source_component_base.extend({
484
- ftype: z28.literal("simple_switch")
477
+ ftype: z27.literal("simple_switch")
485
478
  });
486
479
  expectTypesMatch(true);
487
480
 
488
481
  // src/source/source_project_metadata.ts
489
- import { z as z29 } from "zod";
490
- var source_project_metadata = z29.object({
491
- type: z29.literal("source_project_metadata"),
492
- name: z29.string().optional(),
493
- software_used_string: z29.string().optional(),
494
- created_at: z29.string().datetime().optional()
482
+ import { z as z28 } from "zod";
483
+ var source_project_metadata = z28.object({
484
+ type: z28.literal("source_project_metadata"),
485
+ name: z28.string().optional(),
486
+ software_used_string: z28.string().optional(),
487
+ created_at: z28.string().datetime().optional()
495
488
  });
496
489
  expectTypesMatch(true);
497
490
 
498
491
  // src/source/source_missing_property_error.ts
499
- import { z as z30 } from "zod";
500
- var source_missing_property_error = z30.object({
501
- type: z30.literal("source_missing_property_error"),
492
+ import { z as z29 } from "zod";
493
+ var source_missing_property_error = z29.object({
494
+ type: z29.literal("source_missing_property_error"),
502
495
  source_missing_property_error_id: getZodPrefixedIdWithDefault(
503
496
  "source_missing_property_error"
504
497
  ),
505
- source_component_id: z30.string(),
506
- property_name: z30.string(),
507
- error_type: z30.literal("source_missing_property_error"),
508
- message: z30.string()
498
+ source_component_id: z29.string(),
499
+ property_name: z29.string(),
500
+ error_type: z29.literal("source_missing_property_error"),
501
+ message: z29.string()
509
502
  }).describe("The source code is missing a property");
510
503
  expectTypesMatch(true);
511
504
 
512
505
  // src/source/source_failed_to_create_component_error.ts
513
- import { z as z31 } from "zod";
514
- var source_failed_to_create_component_error = z31.object({
515
- type: z31.literal("source_failed_to_create_component_error"),
506
+ import { z as z30 } from "zod";
507
+ var source_failed_to_create_component_error = z30.object({
508
+ type: z30.literal("source_failed_to_create_component_error"),
516
509
  source_failed_to_create_component_error_id: getZodPrefixedIdWithDefault(
517
510
  "source_failed_to_create_component_error"
518
511
  ),
519
- component_name: z31.string().optional(),
520
- subcircuit_id: z31.string().optional(),
521
- parent_source_component_id: z31.string().optional(),
522
- message: z31.string(),
523
- pcb_center: z31.object({
524
- x: z31.number().optional(),
525
- y: z31.number().optional()
512
+ component_name: z30.string().optional(),
513
+ subcircuit_id: z30.string().optional(),
514
+ parent_source_component_id: z30.string().optional(),
515
+ message: z30.string(),
516
+ pcb_center: z30.object({
517
+ x: z30.number().optional(),
518
+ y: z30.number().optional()
526
519
  }).optional(),
527
- schematic_center: z31.object({
528
- x: z31.number().optional(),
529
- y: z31.number().optional()
520
+ schematic_center: z30.object({
521
+ x: z30.number().optional(),
522
+ y: z30.number().optional()
530
523
  }).optional()
531
524
  }).describe("Error emitted when a component fails to be constructed");
532
525
  expectTypesMatch(true);
533
526
 
534
527
  // src/source/any_source_component.ts
535
- var any_source_component = z32.union([
528
+ var any_source_component = z31.union([
536
529
  source_simple_resistor,
537
530
  source_simple_capacitor,
538
531
  source_simple_diode,
@@ -540,7 +533,6 @@ var any_source_component = z32.union([
540
533
  source_simple_ground,
541
534
  source_simple_chip,
542
535
  source_simple_bug,
543
- source_led,
544
536
  source_simple_power_source,
545
537
  source_simple_battery,
546
538
  source_simple_inductor,
@@ -560,152 +552,152 @@ var any_source_component = z32.union([
560
552
  ]);
561
553
 
562
554
  // src/source/source_port.ts
563
- import { z as z33 } from "zod";
564
- var source_port = z33.object({
565
- type: z33.literal("source_port"),
566
- pin_number: z33.number().optional(),
567
- port_hints: z33.array(z33.string()).optional(),
568
- name: z33.string(),
569
- source_port_id: z33.string(),
570
- source_component_id: z33.string(),
571
- subcircuit_id: z33.string().optional(),
572
- subcircuit_connectivity_map_key: z33.string().optional()
555
+ import { z as z32 } from "zod";
556
+ var source_port = z32.object({
557
+ type: z32.literal("source_port"),
558
+ pin_number: z32.number().optional(),
559
+ port_hints: z32.array(z32.string()).optional(),
560
+ name: z32.string(),
561
+ source_port_id: z32.string(),
562
+ source_component_id: z32.string(),
563
+ subcircuit_id: z32.string().optional(),
564
+ subcircuit_connectivity_map_key: z32.string().optional()
573
565
  });
574
566
  expectTypesMatch(true);
575
567
 
576
568
  // src/source/source_trace.ts
577
- import { z as z34 } from "zod";
578
- var source_trace = z34.object({
579
- type: z34.literal("source_trace"),
580
- source_trace_id: z34.string(),
581
- connected_source_port_ids: z34.array(z34.string()),
582
- connected_source_net_ids: z34.array(z34.string()),
583
- subcircuit_id: z34.string().optional(),
584
- subcircuit_connectivity_map_key: z34.string().optional(),
585
- max_length: z34.number().optional(),
586
- min_trace_thickness: z34.number().optional(),
587
- display_name: z34.string().optional()
569
+ import { z as z33 } from "zod";
570
+ var source_trace = z33.object({
571
+ type: z33.literal("source_trace"),
572
+ source_trace_id: z33.string(),
573
+ connected_source_port_ids: z33.array(z33.string()),
574
+ connected_source_net_ids: z33.array(z33.string()),
575
+ subcircuit_id: z33.string().optional(),
576
+ subcircuit_connectivity_map_key: z33.string().optional(),
577
+ max_length: z33.number().optional(),
578
+ min_trace_thickness: z33.number().optional(),
579
+ display_name: z33.string().optional()
588
580
  });
589
581
  expectTypesMatch(true);
590
582
 
591
583
  // src/source/source_group.ts
592
- import { z as z35 } from "zod";
593
- var source_group = z35.object({
594
- type: z35.literal("source_group"),
595
- source_group_id: z35.string(),
596
- subcircuit_id: z35.string().optional(),
597
- parent_subcircuit_id: z35.string().optional(),
598
- is_subcircuit: z35.boolean().optional(),
599
- name: z35.string().optional()
584
+ import { z as z34 } from "zod";
585
+ var source_group = z34.object({
586
+ type: z34.literal("source_group"),
587
+ source_group_id: z34.string(),
588
+ subcircuit_id: z34.string().optional(),
589
+ parent_subcircuit_id: z34.string().optional(),
590
+ is_subcircuit: z34.boolean().optional(),
591
+ name: z34.string().optional()
600
592
  });
601
593
 
602
594
  // src/source/source_net.ts
603
- import { z as z36 } from "zod";
604
- var source_net = z36.object({
605
- type: z36.literal("source_net"),
606
- source_net_id: z36.string(),
607
- name: z36.string(),
608
- member_source_group_ids: z36.array(z36.string()),
609
- is_power: z36.boolean().optional(),
610
- is_ground: z36.boolean().optional(),
611
- is_digital_signal: z36.boolean().optional(),
612
- is_analog_signal: z36.boolean().optional(),
613
- trace_width: z36.number().optional(),
614
- subcircuit_id: z36.string().optional(),
615
- subcircuit_connectivity_map_key: z36.string().optional()
595
+ import { z as z35 } from "zod";
596
+ var source_net = z35.object({
597
+ type: z35.literal("source_net"),
598
+ source_net_id: z35.string(),
599
+ name: z35.string(),
600
+ member_source_group_ids: z35.array(z35.string()),
601
+ is_power: z35.boolean().optional(),
602
+ is_ground: z35.boolean().optional(),
603
+ is_digital_signal: z35.boolean().optional(),
604
+ is_analog_signal: z35.boolean().optional(),
605
+ trace_width: z35.number().optional(),
606
+ subcircuit_id: z35.string().optional(),
607
+ subcircuit_connectivity_map_key: z35.string().optional()
616
608
  });
617
609
 
618
610
  // src/schematic/schematic_box.ts
619
- import { z as z37 } from "zod";
620
- var schematic_box = z37.object({
621
- type: z37.literal("schematic_box"),
622
- schematic_component_id: z37.string(),
611
+ import { z as z36 } from "zod";
612
+ var schematic_box = z36.object({
613
+ type: z36.literal("schematic_box"),
614
+ schematic_component_id: z36.string(),
623
615
  width: distance,
624
616
  height: distance,
625
- is_dashed: z37.boolean().default(false),
617
+ is_dashed: z36.boolean().default(false),
626
618
  x: distance,
627
619
  y: distance
628
620
  }).describe("Draws a box on the schematic");
629
621
  expectTypesMatch(true);
630
622
 
631
623
  // src/schematic/schematic_path.ts
632
- import { z as z38 } from "zod";
633
- var schematic_path = z38.object({
634
- type: z38.literal("schematic_path"),
635
- schematic_component_id: z38.string(),
636
- fill_color: z38.enum(["red", "blue"]).optional(),
637
- is_filled: z38.boolean().optional(),
638
- points: z38.array(point)
624
+ import { z as z37 } from "zod";
625
+ var schematic_path = z37.object({
626
+ type: z37.literal("schematic_path"),
627
+ schematic_component_id: z37.string(),
628
+ fill_color: z37.enum(["red", "blue"]).optional(),
629
+ is_filled: z37.boolean().optional(),
630
+ points: z37.array(point)
639
631
  });
640
632
  expectTypesMatch(true);
641
633
 
642
634
  // src/schematic/schematic_component.ts
643
- import { z as z39 } from "zod";
644
- var schematic_pin_styles = z39.record(
645
- z39.object({
635
+ import { z as z38 } from "zod";
636
+ var schematic_pin_styles = z38.record(
637
+ z38.object({
646
638
  left_margin: length.optional(),
647
639
  right_margin: length.optional(),
648
640
  top_margin: length.optional(),
649
641
  bottom_margin: length.optional()
650
642
  })
651
643
  );
652
- var schematic_component_port_arrangement_by_size = z39.object({
653
- left_size: z39.number(),
654
- right_size: z39.number(),
655
- top_size: z39.number().optional(),
656
- bottom_size: z39.number().optional()
644
+ var schematic_component_port_arrangement_by_size = z38.object({
645
+ left_size: z38.number(),
646
+ right_size: z38.number(),
647
+ top_size: z38.number().optional(),
648
+ bottom_size: z38.number().optional()
657
649
  });
658
650
  expectTypesMatch(true);
659
- var schematic_component_port_arrangement_by_sides = z39.object({
660
- left_side: z39.object({
661
- pins: z39.array(z39.number()),
651
+ var schematic_component_port_arrangement_by_sides = z38.object({
652
+ left_side: z38.object({
653
+ pins: z38.array(z38.number()),
662
654
  // @ts-ignore
663
- direction: z39.enum(["top-to-bottom", "bottom-to-top"]).optional()
655
+ direction: z38.enum(["top-to-bottom", "bottom-to-top"]).optional()
664
656
  }).optional(),
665
- right_side: z39.object({
666
- pins: z39.array(z39.number()),
657
+ right_side: z38.object({
658
+ pins: z38.array(z38.number()),
667
659
  // @ts-ignore
668
- direction: z39.enum(["top-to-bottom", "bottom-to-top"]).optional()
660
+ direction: z38.enum(["top-to-bottom", "bottom-to-top"]).optional()
669
661
  }).optional(),
670
- top_side: z39.object({
671
- pins: z39.array(z39.number()),
662
+ top_side: z38.object({
663
+ pins: z38.array(z38.number()),
672
664
  // @ts-ignore
673
- direction: z39.enum(["left-to-right", "right-to-left"]).optional()
665
+ direction: z38.enum(["left-to-right", "right-to-left"]).optional()
674
666
  }).optional(),
675
- bottom_side: z39.object({
676
- pins: z39.array(z39.number()),
667
+ bottom_side: z38.object({
668
+ pins: z38.array(z38.number()),
677
669
  // @ts-ignore
678
- direction: z39.enum(["left-to-right", "right-to-left"]).optional()
670
+ direction: z38.enum(["left-to-right", "right-to-left"]).optional()
679
671
  }).optional()
680
672
  });
681
673
  expectTypesMatch(true);
682
- var port_arrangement = z39.union([
674
+ var port_arrangement = z38.union([
683
675
  schematic_component_port_arrangement_by_size,
684
676
  schematic_component_port_arrangement_by_sides
685
677
  ]);
686
- var schematic_component = z39.object({
687
- type: z39.literal("schematic_component"),
678
+ var schematic_component = z38.object({
679
+ type: z38.literal("schematic_component"),
688
680
  size,
689
681
  center: point,
690
- source_component_id: z39.string(),
691
- schematic_component_id: z39.string(),
682
+ source_component_id: z38.string(),
683
+ schematic_component_id: z38.string(),
692
684
  pin_spacing: length.optional(),
693
685
  pin_styles: schematic_pin_styles.optional(),
694
686
  box_width: length.optional(),
695
- symbol_name: z39.string().optional(),
687
+ symbol_name: z38.string().optional(),
696
688
  port_arrangement: port_arrangement.optional(),
697
- port_labels: z39.record(z39.string()).optional(),
698
- symbol_display_value: z39.string().optional(),
699
- subcircuit_id: z39.string().optional(),
700
- schematic_group_id: z39.string().optional()
689
+ port_labels: z38.record(z38.string()).optional(),
690
+ symbol_display_value: z38.string().optional(),
691
+ subcircuit_id: z38.string().optional(),
692
+ schematic_group_id: z38.string().optional()
701
693
  });
702
694
  expectTypesMatch(true);
703
695
 
704
696
  // src/schematic/schematic_line.ts
705
- import { z as z40 } from "zod";
706
- var schematic_line = z40.object({
707
- type: z40.literal("schematic_line"),
708
- schematic_component_id: z40.string(),
697
+ import { z as z39 } from "zod";
698
+ var schematic_line = z39.object({
699
+ type: z39.literal("schematic_line"),
700
+ schematic_component_id: z39.string(),
709
701
  x1: distance,
710
702
  x2: distance,
711
703
  y1: distance,
@@ -714,41 +706,41 @@ var schematic_line = z40.object({
714
706
  expectTypesMatch(true);
715
707
 
716
708
  // src/schematic/schematic_trace.ts
717
- import { z as z41 } from "zod";
718
- var schematic_trace = z41.object({
719
- type: z41.literal("schematic_trace"),
720
- schematic_trace_id: z41.string(),
721
- source_trace_id: z41.string(),
722
- junctions: z41.array(
723
- z41.object({
724
- x: z41.number(),
725
- y: z41.number()
709
+ import { z as z40 } from "zod";
710
+ var schematic_trace = z40.object({
711
+ type: z40.literal("schematic_trace"),
712
+ schematic_trace_id: z40.string(),
713
+ source_trace_id: z40.string(),
714
+ junctions: z40.array(
715
+ z40.object({
716
+ x: z40.number(),
717
+ y: z40.number()
726
718
  })
727
719
  ),
728
- edges: z41.array(
729
- z41.object({
730
- from: z41.object({
731
- x: z41.number(),
732
- y: z41.number()
720
+ edges: z40.array(
721
+ z40.object({
722
+ from: z40.object({
723
+ x: z40.number(),
724
+ y: z40.number()
733
725
  }),
734
- to: z41.object({
735
- x: z41.number(),
736
- y: z41.number()
726
+ to: z40.object({
727
+ x: z40.number(),
728
+ y: z40.number()
737
729
  }),
738
- is_crossing: z41.boolean().optional(),
739
- from_schematic_port_id: z41.string().optional(),
740
- to_schematic_port_id: z41.string().optional()
730
+ is_crossing: z40.boolean().optional(),
731
+ from_schematic_port_id: z40.string().optional(),
732
+ to_schematic_port_id: z40.string().optional()
741
733
  })
742
734
  )
743
735
  });
744
736
  expectTypesMatch(true);
745
737
 
746
738
  // src/schematic/schematic_text.ts
747
- import { z as z44 } from "zod";
739
+ import { z as z43 } from "zod";
748
740
 
749
741
  // src/common/NinePointAnchor.ts
750
- import { z as z42 } from "zod";
751
- var ninePointAnchor = z42.enum([
742
+ import { z as z41 } from "zod";
743
+ var ninePointAnchor = z41.enum([
752
744
  "top_left",
753
745
  "top_center",
754
746
  "top_right",
@@ -761,8 +753,8 @@ var ninePointAnchor = z42.enum([
761
753
  ]);
762
754
 
763
755
  // src/common/FivePointAnchor.ts
764
- import { z as z43 } from "zod";
765
- var fivePointAnchor = z43.enum([
756
+ import { z as z42 } from "zod";
757
+ var fivePointAnchor = z42.enum([
766
758
  "center",
767
759
  "left",
768
760
  "right",
@@ -771,100 +763,100 @@ var fivePointAnchor = z43.enum([
771
763
  ]);
772
764
 
773
765
  // src/schematic/schematic_text.ts
774
- var schematic_text = z44.object({
775
- type: z44.literal("schematic_text"),
776
- schematic_component_id: z44.string().optional(),
777
- schematic_text_id: z44.string(),
778
- text: z44.string(),
779
- font_size: z44.number().default(0.18),
780
- position: z44.object({
766
+ var schematic_text = z43.object({
767
+ type: z43.literal("schematic_text"),
768
+ schematic_component_id: z43.string().optional(),
769
+ schematic_text_id: z43.string(),
770
+ text: z43.string(),
771
+ font_size: z43.number().default(0.18),
772
+ position: z43.object({
781
773
  x: distance,
782
774
  y: distance
783
775
  }),
784
- rotation: z44.number().default(0),
785
- anchor: z44.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
786
- color: z44.string().default("#000000")
776
+ rotation: z43.number().default(0),
777
+ anchor: z43.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
778
+ color: z43.string().default("#000000")
787
779
  });
788
780
  expectTypesMatch(true);
789
781
 
790
782
  // src/schematic/schematic_port.ts
791
- import { z as z45 } from "zod";
792
- var schematic_port = z45.object({
793
- type: z45.literal("schematic_port"),
794
- schematic_port_id: z45.string(),
795
- source_port_id: z45.string(),
796
- schematic_component_id: z45.string().optional(),
783
+ import { z as z44 } from "zod";
784
+ var schematic_port = z44.object({
785
+ type: z44.literal("schematic_port"),
786
+ schematic_port_id: z44.string(),
787
+ source_port_id: z44.string(),
788
+ schematic_component_id: z44.string().optional(),
797
789
  center: point,
798
- facing_direction: z45.enum(["up", "down", "left", "right"]).optional(),
799
- distance_from_component_edge: z45.number().optional(),
800
- side_of_component: z45.enum(["top", "bottom", "left", "right"]).optional(),
801
- true_ccw_index: z45.number().optional(),
802
- pin_number: z45.number().optional(),
803
- display_pin_label: z45.string().optional()
790
+ facing_direction: z44.enum(["up", "down", "left", "right"]).optional(),
791
+ distance_from_component_edge: z44.number().optional(),
792
+ side_of_component: z44.enum(["top", "bottom", "left", "right"]).optional(),
793
+ true_ccw_index: z44.number().optional(),
794
+ pin_number: z44.number().optional(),
795
+ display_pin_label: z44.string().optional()
804
796
  }).describe("Defines a port on a schematic component");
805
797
  expectTypesMatch(true);
806
798
 
807
799
  // src/schematic/schematic_net_label.ts
808
- import { z as z46 } from "zod";
809
- var schematic_net_label = z46.object({
810
- type: z46.literal("schematic_net_label"),
800
+ import { z as z45 } from "zod";
801
+ var schematic_net_label = z45.object({
802
+ type: z45.literal("schematic_net_label"),
811
803
  schematic_net_label_id: getZodPrefixedIdWithDefault("schematic_net_label"),
812
- schematic_trace_id: z46.string().optional(),
813
- source_trace_id: z46.string().optional(),
814
- source_net_id: z46.string(),
804
+ schematic_trace_id: z45.string().optional(),
805
+ source_trace_id: z45.string().optional(),
806
+ source_net_id: z45.string(),
815
807
  center: point,
816
808
  anchor_position: point.optional(),
817
- anchor_side: z46.enum(["top", "bottom", "left", "right"]),
818
- text: z46.string(),
819
- symbol_name: z46.string().optional()
809
+ anchor_side: z45.enum(["top", "bottom", "left", "right"]),
810
+ text: z45.string(),
811
+ symbol_name: z45.string().optional()
820
812
  });
821
813
  expectTypesMatch(true);
822
814
 
823
815
  // src/schematic/schematic_error.ts
824
- import { z as z47 } from "zod";
825
- var schematic_error = z47.object({
826
- type: z47.literal("schematic_error"),
827
- schematic_error_id: z47.string(),
816
+ import { z as z46 } from "zod";
817
+ var schematic_error = z46.object({
818
+ type: z46.literal("schematic_error"),
819
+ schematic_error_id: z46.string(),
828
820
  // eventually each error type should be broken out into a dir of files
829
- error_type: z47.literal("schematic_port_not_found"),
830
- message: z47.string()
821
+ error_type: z46.literal("schematic_port_not_found"),
822
+ message: z46.string()
831
823
  }).describe("Defines a schematic error on the schematic");
832
824
  expectTypesMatch(true);
833
825
 
834
826
  // src/schematic/schematic_layout_error.ts
835
- import { z as z48 } from "zod";
836
- var schematic_layout_error = z48.object({
837
- type: z48.literal("schematic_layout_error"),
827
+ import { z as z47 } from "zod";
828
+ var schematic_layout_error = z47.object({
829
+ type: z47.literal("schematic_layout_error"),
838
830
  schematic_layout_error_id: getZodPrefixedIdWithDefault(
839
831
  "schematic_layout_error"
840
832
  ),
841
- message: z48.string(),
842
- source_group_id: z48.string(),
843
- schematic_group_id: z48.string()
833
+ message: z47.string(),
834
+ source_group_id: z47.string(),
835
+ schematic_group_id: z47.string()
844
836
  }).describe("Error emitted when schematic layout fails for a group");
845
837
  expectTypesMatch(true);
846
838
 
847
839
  // src/schematic/schematic_debug_object.ts
848
- import { z as z49 } from "zod";
849
- var schematic_debug_object_base = z49.object({
850
- type: z49.literal("schematic_debug_object"),
851
- label: z49.string().optional()
840
+ import { z as z48 } from "zod";
841
+ var schematic_debug_object_base = z48.object({
842
+ type: z48.literal("schematic_debug_object"),
843
+ label: z48.string().optional()
852
844
  });
853
845
  var schematic_debug_rect = schematic_debug_object_base.extend({
854
- shape: z49.literal("rect"),
846
+ shape: z48.literal("rect"),
855
847
  center: point,
856
848
  size
857
849
  });
858
850
  var schematic_debug_line = schematic_debug_object_base.extend({
859
- shape: z49.literal("line"),
851
+ shape: z48.literal("line"),
860
852
  start: point,
861
853
  end: point
862
854
  });
863
855
  var schematic_debug_point = schematic_debug_object_base.extend({
864
- shape: z49.literal("point"),
856
+ shape: z48.literal("point"),
865
857
  center: point
866
858
  });
867
- var schematic_debug_object = z49.discriminatedUnion("shape", [
859
+ var schematic_debug_object = z48.discriminatedUnion("shape", [
868
860
  schematic_debug_rect,
869
861
  schematic_debug_line,
870
862
  schematic_debug_point
@@ -872,52 +864,52 @@ var schematic_debug_object = z49.discriminatedUnion("shape", [
872
864
  expectTypesMatch(true);
873
865
 
874
866
  // src/schematic/schematic_voltage_probe.ts
875
- import { z as z50 } from "zod";
876
- var schematic_voltage_probe = z50.object({
877
- type: z50.literal("schematic_voltage_probe"),
878
- schematic_voltage_probe_id: z50.string(),
867
+ import { z as z49 } from "zod";
868
+ var schematic_voltage_probe = z49.object({
869
+ type: z49.literal("schematic_voltage_probe"),
870
+ schematic_voltage_probe_id: z49.string(),
879
871
  position: point,
880
- schematic_trace_id: z50.string(),
872
+ schematic_trace_id: z49.string(),
881
873
  voltage: voltage.optional()
882
874
  }).describe("Defines a voltage probe measurement point on a schematic trace");
883
875
  expectTypesMatch(true);
884
876
 
885
877
  // src/schematic/schematic_manual_edit_conflict_warning.ts
886
- import { z as z51 } from "zod";
887
- var schematic_manual_edit_conflict_warning = z51.object({
888
- type: z51.literal("schematic_manual_edit_conflict_warning"),
878
+ import { z as z50 } from "zod";
879
+ var schematic_manual_edit_conflict_warning = z50.object({
880
+ type: z50.literal("schematic_manual_edit_conflict_warning"),
889
881
  schematic_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
890
882
  "schematic_manual_edit_conflict_warning"
891
883
  ),
892
- message: z51.string(),
893
- schematic_component_id: z51.string(),
894
- schematic_group_id: z51.string().optional(),
895
- subcircuit_id: z51.string().optional(),
896
- source_component_id: z51.string()
884
+ message: z50.string(),
885
+ schematic_component_id: z50.string(),
886
+ schematic_group_id: z50.string().optional(),
887
+ subcircuit_id: z50.string().optional(),
888
+ source_component_id: z50.string()
897
889
  }).describe(
898
890
  "Warning emitted when a component has both manual placement and explicit schX/schY coordinates"
899
891
  );
900
892
  expectTypesMatch(true);
901
893
 
902
894
  // src/schematic/schematic_group.ts
903
- import { z as z52 } from "zod";
904
- var schematic_group = z52.object({
905
- type: z52.literal("schematic_group"),
895
+ import { z as z51 } from "zod";
896
+ var schematic_group = z51.object({
897
+ type: z51.literal("schematic_group"),
906
898
  schematic_group_id: getZodPrefixedIdWithDefault("schematic_group"),
907
- source_group_id: z52.string(),
908
- is_subcircuit: z52.boolean().optional(),
909
- subcircuit_id: z52.string().optional(),
899
+ source_group_id: z51.string(),
900
+ is_subcircuit: z51.boolean().optional(),
901
+ subcircuit_id: z51.string().optional(),
910
902
  width: length,
911
903
  height: length,
912
904
  center: point,
913
- schematic_component_ids: z52.array(z52.string()),
914
- name: z52.string().optional(),
915
- description: z52.string().optional()
905
+ schematic_component_ids: z51.array(z51.string()),
906
+ name: z51.string().optional(),
907
+ description: z51.string().optional()
916
908
  }).describe("Defines a group of components on the schematic");
917
909
  expectTypesMatch(true);
918
910
 
919
911
  // src/pcb/properties/layer_ref.ts
920
- import { z as z53 } from "zod";
912
+ import { z as z52 } from "zod";
921
913
  var all_layers = [
922
914
  "top",
923
915
  "bottom",
@@ -928,9 +920,9 @@ var all_layers = [
928
920
  "inner5",
929
921
  "inner6"
930
922
  ];
931
- var layer_string = z53.enum(all_layers);
923
+ var layer_string = z52.enum(all_layers);
932
924
  var layer_ref = layer_string.or(
933
- z53.object({
925
+ z52.object({
934
926
  name: layer_string
935
927
  })
936
928
  ).transform((layer) => {
@@ -939,53 +931,53 @@ var layer_ref = layer_string.or(
939
931
  }
940
932
  return layer.name;
941
933
  });
942
- var visible_layer = z53.enum(["top", "bottom"]);
934
+ var visible_layer = z52.enum(["top", "bottom"]);
943
935
 
944
936
  // src/pcb/properties/pcb_route_hints.ts
945
- import { z as z54 } from "zod";
946
- var pcb_route_hint = z54.object({
937
+ import { z as z53 } from "zod";
938
+ var pcb_route_hint = z53.object({
947
939
  x: distance,
948
940
  y: distance,
949
- via: z54.boolean().optional(),
941
+ via: z53.boolean().optional(),
950
942
  via_to_layer: layer_ref.optional()
951
943
  });
952
- var pcb_route_hints = z54.array(pcb_route_hint);
944
+ var pcb_route_hints = z53.array(pcb_route_hint);
953
945
 
954
946
  // src/pcb/properties/route_hint_point.ts
955
- import { z as z55 } from "zod";
956
- var route_hint_point = z55.object({
947
+ import { z as z54 } from "zod";
948
+ var route_hint_point = z54.object({
957
949
  x: distance,
958
950
  y: distance,
959
- via: z55.boolean().optional(),
951
+ via: z54.boolean().optional(),
960
952
  to_layer: layer_ref.optional(),
961
953
  trace_width: distance.optional()
962
954
  });
963
955
 
964
956
  // src/pcb/pcb_component.ts
965
- import { z as z56 } from "zod";
966
- var pcb_component = z56.object({
967
- type: z56.literal("pcb_component"),
957
+ import { z as z55 } from "zod";
958
+ var pcb_component = z55.object({
959
+ type: z55.literal("pcb_component"),
968
960
  pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
969
- source_component_id: z56.string(),
961
+ source_component_id: z55.string(),
970
962
  center: point,
971
963
  layer: layer_ref,
972
964
  rotation,
973
965
  width: length,
974
966
  height: length,
975
- subcircuit_id: z56.string().optional(),
976
- pcb_group_id: z56.string().optional()
967
+ subcircuit_id: z55.string().optional(),
968
+ pcb_group_id: z55.string().optional()
977
969
  }).describe("Defines a component on the PCB");
978
970
  expectTypesMatch(true);
979
971
 
980
972
  // src/pcb/pcb_hole.ts
981
- import { z as z57 } from "zod";
982
- var pcb_hole_circle_or_square = z57.object({
983
- type: z57.literal("pcb_hole"),
973
+ import { z as z56 } from "zod";
974
+ var pcb_hole_circle_or_square = z56.object({
975
+ type: z56.literal("pcb_hole"),
984
976
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
985
- pcb_group_id: z57.string().optional(),
986
- subcircuit_id: z57.string().optional(),
987
- hole_shape: z57.enum(["circle", "square"]),
988
- hole_diameter: z57.number(),
977
+ pcb_group_id: z56.string().optional(),
978
+ subcircuit_id: z56.string().optional(),
979
+ hole_shape: z56.enum(["circle", "square"]),
980
+ hole_diameter: z56.number(),
989
981
  x: distance,
990
982
  y: distance
991
983
  });
@@ -993,14 +985,14 @@ var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
993
985
  "Defines a circular or square hole on the PCB"
994
986
  );
995
987
  expectTypesMatch(true);
996
- var pcb_hole_oval = z57.object({
997
- type: z57.literal("pcb_hole"),
988
+ var pcb_hole_oval = z56.object({
989
+ type: z56.literal("pcb_hole"),
998
990
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
999
- pcb_group_id: z57.string().optional(),
1000
- subcircuit_id: z57.string().optional(),
1001
- hole_shape: z57.literal("oval"),
1002
- hole_width: z57.number(),
1003
- hole_height: z57.number(),
991
+ pcb_group_id: z56.string().optional(),
992
+ subcircuit_id: z56.string().optional(),
993
+ hole_shape: z56.literal("oval"),
994
+ hole_width: z56.number(),
995
+ hole_height: z56.number(),
1004
996
  x: distance,
1005
997
  y: distance
1006
998
  });
@@ -1011,77 +1003,77 @@ expectTypesMatch(true);
1011
1003
  var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval);
1012
1004
 
1013
1005
  // src/pcb/pcb_plated_hole.ts
1014
- import { z as z58 } from "zod";
1015
- var pcb_plated_hole_circle = z58.object({
1016
- type: z58.literal("pcb_plated_hole"),
1017
- shape: z58.literal("circle"),
1018
- pcb_group_id: z58.string().optional(),
1019
- subcircuit_id: z58.string().optional(),
1020
- outer_diameter: z58.number(),
1021
- hole_diameter: z58.number(),
1006
+ import { z as z57 } from "zod";
1007
+ var pcb_plated_hole_circle = z57.object({
1008
+ type: z57.literal("pcb_plated_hole"),
1009
+ shape: z57.literal("circle"),
1010
+ pcb_group_id: z57.string().optional(),
1011
+ subcircuit_id: z57.string().optional(),
1012
+ outer_diameter: z57.number(),
1013
+ hole_diameter: z57.number(),
1022
1014
  x: distance,
1023
1015
  y: distance,
1024
- layers: z58.array(layer_ref),
1025
- port_hints: z58.array(z58.string()).optional(),
1026
- pcb_component_id: z58.string().optional(),
1027
- pcb_port_id: z58.string().optional(),
1016
+ layers: z57.array(layer_ref),
1017
+ port_hints: z57.array(z57.string()).optional(),
1018
+ pcb_component_id: z57.string().optional(),
1019
+ pcb_port_id: z57.string().optional(),
1028
1020
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1029
1021
  });
1030
- var pcb_plated_hole_oval = z58.object({
1031
- type: z58.literal("pcb_plated_hole"),
1032
- shape: z58.enum(["oval", "pill"]),
1033
- pcb_group_id: z58.string().optional(),
1034
- subcircuit_id: z58.string().optional(),
1035
- outer_width: z58.number(),
1036
- outer_height: z58.number(),
1037
- hole_width: z58.number(),
1038
- hole_height: z58.number(),
1022
+ var pcb_plated_hole_oval = z57.object({
1023
+ type: z57.literal("pcb_plated_hole"),
1024
+ shape: z57.enum(["oval", "pill"]),
1025
+ pcb_group_id: z57.string().optional(),
1026
+ subcircuit_id: z57.string().optional(),
1027
+ outer_width: z57.number(),
1028
+ outer_height: z57.number(),
1029
+ hole_width: z57.number(),
1030
+ hole_height: z57.number(),
1039
1031
  x: distance,
1040
1032
  y: distance,
1041
- layers: z58.array(layer_ref),
1042
- port_hints: z58.array(z58.string()).optional(),
1043
- pcb_component_id: z58.string().optional(),
1044
- pcb_port_id: z58.string().optional(),
1033
+ layers: z57.array(layer_ref),
1034
+ port_hints: z57.array(z57.string()).optional(),
1035
+ pcb_component_id: z57.string().optional(),
1036
+ pcb_port_id: z57.string().optional(),
1045
1037
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1046
1038
  });
1047
- var pcb_circular_hole_with_rect_pad = z58.object({
1048
- type: z58.literal("pcb_plated_hole"),
1049
- shape: z58.literal("circular_hole_with_rect_pad"),
1050
- pcb_group_id: z58.string().optional(),
1051
- subcircuit_id: z58.string().optional(),
1052
- hole_shape: z58.literal("circle"),
1053
- pad_shape: z58.literal("rect"),
1054
- hole_diameter: z58.number(),
1055
- rect_pad_width: z58.number(),
1056
- rect_pad_height: z58.number(),
1039
+ var pcb_circular_hole_with_rect_pad = z57.object({
1040
+ type: z57.literal("pcb_plated_hole"),
1041
+ shape: z57.literal("circular_hole_with_rect_pad"),
1042
+ pcb_group_id: z57.string().optional(),
1043
+ subcircuit_id: z57.string().optional(),
1044
+ hole_shape: z57.literal("circle"),
1045
+ pad_shape: z57.literal("rect"),
1046
+ hole_diameter: z57.number(),
1047
+ rect_pad_width: z57.number(),
1048
+ rect_pad_height: z57.number(),
1057
1049
  x: distance,
1058
1050
  y: distance,
1059
- layers: z58.array(layer_ref),
1060
- port_hints: z58.array(z58.string()).optional(),
1061
- pcb_component_id: z58.string().optional(),
1062
- pcb_port_id: z58.string().optional(),
1051
+ layers: z57.array(layer_ref),
1052
+ port_hints: z57.array(z57.string()).optional(),
1053
+ pcb_component_id: z57.string().optional(),
1054
+ pcb_port_id: z57.string().optional(),
1063
1055
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1064
1056
  });
1065
- var pcb_pill_hole_with_rect_pad = z58.object({
1066
- type: z58.literal("pcb_plated_hole"),
1067
- shape: z58.literal("pill_hole_with_rect_pad"),
1068
- pcb_group_id: z58.string().optional(),
1069
- subcircuit_id: z58.string().optional(),
1070
- hole_shape: z58.literal("pill"),
1071
- pad_shape: z58.literal("rect"),
1072
- hole_width: z58.number(),
1073
- hole_height: z58.number(),
1074
- rect_pad_width: z58.number(),
1075
- rect_pad_height: z58.number(),
1057
+ var pcb_pill_hole_with_rect_pad = z57.object({
1058
+ type: z57.literal("pcb_plated_hole"),
1059
+ shape: z57.literal("pill_hole_with_rect_pad"),
1060
+ pcb_group_id: z57.string().optional(),
1061
+ subcircuit_id: z57.string().optional(),
1062
+ hole_shape: z57.literal("pill"),
1063
+ pad_shape: z57.literal("rect"),
1064
+ hole_width: z57.number(),
1065
+ hole_height: z57.number(),
1066
+ rect_pad_width: z57.number(),
1067
+ rect_pad_height: z57.number(),
1076
1068
  x: distance,
1077
1069
  y: distance,
1078
- layers: z58.array(layer_ref),
1079
- port_hints: z58.array(z58.string()).optional(),
1080
- pcb_component_id: z58.string().optional(),
1081
- pcb_port_id: z58.string().optional(),
1070
+ layers: z57.array(layer_ref),
1071
+ port_hints: z57.array(z57.string()).optional(),
1072
+ pcb_component_id: z57.string().optional(),
1073
+ pcb_port_id: z57.string().optional(),
1082
1074
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole")
1083
1075
  });
1084
- var pcb_plated_hole = z58.union([
1076
+ var pcb_plated_hole = z57.union([
1085
1077
  pcb_plated_hole_circle,
1086
1078
  pcb_plated_hole_oval,
1087
1079
  pcb_circular_hole_with_rect_pad,
@@ -1095,96 +1087,96 @@ expectTypesMatch(true);
1095
1087
  expectTypesMatch(true);
1096
1088
 
1097
1089
  // src/pcb/pcb_port.ts
1098
- import { z as z59 } from "zod";
1099
- var pcb_port = z59.object({
1100
- type: z59.literal("pcb_port"),
1090
+ import { z as z58 } from "zod";
1091
+ var pcb_port = z58.object({
1092
+ type: z58.literal("pcb_port"),
1101
1093
  pcb_port_id: getZodPrefixedIdWithDefault("pcb_port"),
1102
- pcb_group_id: z59.string().optional(),
1103
- subcircuit_id: z59.string().optional(),
1104
- source_port_id: z59.string(),
1105
- pcb_component_id: z59.string(),
1094
+ pcb_group_id: z58.string().optional(),
1095
+ subcircuit_id: z58.string().optional(),
1096
+ source_port_id: z58.string(),
1097
+ pcb_component_id: z58.string(),
1106
1098
  x: distance,
1107
1099
  y: distance,
1108
- layers: z59.array(layer_ref)
1100
+ layers: z58.array(layer_ref)
1109
1101
  }).describe("Defines a port on the PCB");
1110
1102
  expectTypesMatch(true);
1111
1103
 
1112
1104
  // src/pcb/pcb_smtpad.ts
1113
- import { z as z60 } from "zod";
1114
- var pcb_smtpad_circle = z60.object({
1115
- type: z60.literal("pcb_smtpad"),
1116
- shape: z60.literal("circle"),
1105
+ import { z as z59 } from "zod";
1106
+ var pcb_smtpad_circle = z59.object({
1107
+ type: z59.literal("pcb_smtpad"),
1108
+ shape: z59.literal("circle"),
1117
1109
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1118
- pcb_group_id: z60.string().optional(),
1119
- subcircuit_id: z60.string().optional(),
1110
+ pcb_group_id: z59.string().optional(),
1111
+ subcircuit_id: z59.string().optional(),
1120
1112
  x: distance,
1121
1113
  y: distance,
1122
- radius: z60.number(),
1114
+ radius: z59.number(),
1123
1115
  layer: layer_ref,
1124
- port_hints: z60.array(z60.string()).optional(),
1125
- pcb_component_id: z60.string().optional(),
1126
- pcb_port_id: z60.string().optional()
1116
+ port_hints: z59.array(z59.string()).optional(),
1117
+ pcb_component_id: z59.string().optional(),
1118
+ pcb_port_id: z59.string().optional()
1127
1119
  });
1128
- var pcb_smtpad_rect = z60.object({
1129
- type: z60.literal("pcb_smtpad"),
1130
- shape: z60.literal("rect"),
1120
+ var pcb_smtpad_rect = z59.object({
1121
+ type: z59.literal("pcb_smtpad"),
1122
+ shape: z59.literal("rect"),
1131
1123
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1132
- pcb_group_id: z60.string().optional(),
1133
- subcircuit_id: z60.string().optional(),
1124
+ pcb_group_id: z59.string().optional(),
1125
+ subcircuit_id: z59.string().optional(),
1134
1126
  x: distance,
1135
1127
  y: distance,
1136
- width: z60.number(),
1137
- height: z60.number(),
1128
+ width: z59.number(),
1129
+ height: z59.number(),
1138
1130
  layer: layer_ref,
1139
- port_hints: z60.array(z60.string()).optional(),
1140
- pcb_component_id: z60.string().optional(),
1141
- pcb_port_id: z60.string().optional()
1131
+ port_hints: z59.array(z59.string()).optional(),
1132
+ pcb_component_id: z59.string().optional(),
1133
+ pcb_port_id: z59.string().optional()
1142
1134
  });
1143
- var pcb_smtpad_rotated_rect = z60.object({
1144
- type: z60.literal("pcb_smtpad"),
1145
- shape: z60.literal("rotated_rect"),
1135
+ var pcb_smtpad_rotated_rect = z59.object({
1136
+ type: z59.literal("pcb_smtpad"),
1137
+ shape: z59.literal("rotated_rect"),
1146
1138
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1147
- pcb_group_id: z60.string().optional(),
1148
- subcircuit_id: z60.string().optional(),
1139
+ pcb_group_id: z59.string().optional(),
1140
+ subcircuit_id: z59.string().optional(),
1149
1141
  x: distance,
1150
1142
  y: distance,
1151
- width: z60.number(),
1152
- height: z60.number(),
1143
+ width: z59.number(),
1144
+ height: z59.number(),
1153
1145
  ccw_rotation: rotation,
1154
1146
  layer: layer_ref,
1155
- port_hints: z60.array(z60.string()).optional(),
1156
- pcb_component_id: z60.string().optional(),
1157
- pcb_port_id: z60.string().optional()
1147
+ port_hints: z59.array(z59.string()).optional(),
1148
+ pcb_component_id: z59.string().optional(),
1149
+ pcb_port_id: z59.string().optional()
1158
1150
  });
1159
- var pcb_smtpad_pill = z60.object({
1160
- type: z60.literal("pcb_smtpad"),
1161
- shape: z60.literal("pill"),
1151
+ var pcb_smtpad_pill = z59.object({
1152
+ type: z59.literal("pcb_smtpad"),
1153
+ shape: z59.literal("pill"),
1162
1154
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1163
- pcb_group_id: z60.string().optional(),
1164
- subcircuit_id: z60.string().optional(),
1155
+ pcb_group_id: z59.string().optional(),
1156
+ subcircuit_id: z59.string().optional(),
1165
1157
  x: distance,
1166
1158
  y: distance,
1167
- width: z60.number(),
1168
- height: z60.number(),
1169
- radius: z60.number(),
1159
+ width: z59.number(),
1160
+ height: z59.number(),
1161
+ radius: z59.number(),
1170
1162
  layer: layer_ref,
1171
- port_hints: z60.array(z60.string()).optional(),
1172
- pcb_component_id: z60.string().optional(),
1173
- pcb_port_id: z60.string().optional()
1163
+ port_hints: z59.array(z59.string()).optional(),
1164
+ pcb_component_id: z59.string().optional(),
1165
+ pcb_port_id: z59.string().optional()
1174
1166
  });
1175
- var pcb_smtpad_polygon = z60.object({
1176
- type: z60.literal("pcb_smtpad"),
1177
- shape: z60.literal("polygon"),
1167
+ var pcb_smtpad_polygon = z59.object({
1168
+ type: z59.literal("pcb_smtpad"),
1169
+ shape: z59.literal("polygon"),
1178
1170
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
1179
- pcb_group_id: z60.string().optional(),
1180
- subcircuit_id: z60.string().optional(),
1181
- points: z60.array(point),
1171
+ pcb_group_id: z59.string().optional(),
1172
+ subcircuit_id: z59.string().optional(),
1173
+ points: z59.array(point),
1182
1174
  layer: layer_ref,
1183
- port_hints: z60.array(z60.string()).optional(),
1184
- pcb_component_id: z60.string().optional(),
1185
- pcb_port_id: z60.string().optional()
1175
+ port_hints: z59.array(z59.string()).optional(),
1176
+ pcb_component_id: z59.string().optional(),
1177
+ pcb_port_id: z59.string().optional()
1186
1178
  });
1187
- var pcb_smtpad = z60.union([
1179
+ var pcb_smtpad = z59.union([
1188
1180
  pcb_smtpad_circle,
1189
1181
  pcb_smtpad_rect,
1190
1182
  pcb_smtpad_rotated_rect,
@@ -1198,79 +1190,79 @@ expectTypesMatch(true);
1198
1190
  expectTypesMatch(true);
1199
1191
 
1200
1192
  // src/pcb/pcb_solder_paste.ts
1201
- import { z as z61 } from "zod";
1202
- var pcb_solder_paste_circle = z61.object({
1203
- type: z61.literal("pcb_solder_paste"),
1204
- shape: z61.literal("circle"),
1193
+ import { z as z60 } from "zod";
1194
+ var pcb_solder_paste_circle = z60.object({
1195
+ type: z60.literal("pcb_solder_paste"),
1196
+ shape: z60.literal("circle"),
1205
1197
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1206
- pcb_group_id: z61.string().optional(),
1207
- subcircuit_id: z61.string().optional(),
1198
+ pcb_group_id: z60.string().optional(),
1199
+ subcircuit_id: z60.string().optional(),
1208
1200
  x: distance,
1209
1201
  y: distance,
1210
- radius: z61.number(),
1202
+ radius: z60.number(),
1211
1203
  layer: layer_ref,
1212
- pcb_component_id: z61.string().optional(),
1213
- pcb_smtpad_id: z61.string().optional()
1204
+ pcb_component_id: z60.string().optional(),
1205
+ pcb_smtpad_id: z60.string().optional()
1214
1206
  });
1215
- var pcb_solder_paste_rect = z61.object({
1216
- type: z61.literal("pcb_solder_paste"),
1217
- shape: z61.literal("rect"),
1207
+ var pcb_solder_paste_rect = z60.object({
1208
+ type: z60.literal("pcb_solder_paste"),
1209
+ shape: z60.literal("rect"),
1218
1210
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1219
- pcb_group_id: z61.string().optional(),
1220
- subcircuit_id: z61.string().optional(),
1211
+ pcb_group_id: z60.string().optional(),
1212
+ subcircuit_id: z60.string().optional(),
1221
1213
  x: distance,
1222
1214
  y: distance,
1223
- width: z61.number(),
1224
- height: z61.number(),
1215
+ width: z60.number(),
1216
+ height: z60.number(),
1225
1217
  layer: layer_ref,
1226
- pcb_component_id: z61.string().optional(),
1227
- pcb_smtpad_id: z61.string().optional()
1218
+ pcb_component_id: z60.string().optional(),
1219
+ pcb_smtpad_id: z60.string().optional()
1228
1220
  });
1229
- var pcb_solder_paste_pill = z61.object({
1230
- type: z61.literal("pcb_solder_paste"),
1231
- shape: z61.literal("pill"),
1221
+ var pcb_solder_paste_pill = z60.object({
1222
+ type: z60.literal("pcb_solder_paste"),
1223
+ shape: z60.literal("pill"),
1232
1224
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1233
- pcb_group_id: z61.string().optional(),
1234
- subcircuit_id: z61.string().optional(),
1225
+ pcb_group_id: z60.string().optional(),
1226
+ subcircuit_id: z60.string().optional(),
1235
1227
  x: distance,
1236
1228
  y: distance,
1237
- width: z61.number(),
1238
- height: z61.number(),
1239
- radius: z61.number(),
1229
+ width: z60.number(),
1230
+ height: z60.number(),
1231
+ radius: z60.number(),
1240
1232
  layer: layer_ref,
1241
- pcb_component_id: z61.string().optional(),
1242
- pcb_smtpad_id: z61.string().optional()
1233
+ pcb_component_id: z60.string().optional(),
1234
+ pcb_smtpad_id: z60.string().optional()
1243
1235
  });
1244
- var pcb_solder_paste_rotated_rect = z61.object({
1245
- type: z61.literal("pcb_solder_paste"),
1246
- shape: z61.literal("rotated_rect"),
1236
+ var pcb_solder_paste_rotated_rect = z60.object({
1237
+ type: z60.literal("pcb_solder_paste"),
1238
+ shape: z60.literal("rotated_rect"),
1247
1239
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1248
- pcb_group_id: z61.string().optional(),
1249
- subcircuit_id: z61.string().optional(),
1240
+ pcb_group_id: z60.string().optional(),
1241
+ subcircuit_id: z60.string().optional(),
1250
1242
  x: distance,
1251
1243
  y: distance,
1252
- width: z61.number(),
1253
- height: z61.number(),
1244
+ width: z60.number(),
1245
+ height: z60.number(),
1254
1246
  ccw_rotation: distance,
1255
1247
  layer: layer_ref,
1256
- pcb_component_id: z61.string().optional(),
1257
- pcb_smtpad_id: z61.string().optional()
1248
+ pcb_component_id: z60.string().optional(),
1249
+ pcb_smtpad_id: z60.string().optional()
1258
1250
  });
1259
- var pcb_solder_paste_oval = z61.object({
1260
- type: z61.literal("pcb_solder_paste"),
1261
- shape: z61.literal("oval"),
1251
+ var pcb_solder_paste_oval = z60.object({
1252
+ type: z60.literal("pcb_solder_paste"),
1253
+ shape: z60.literal("oval"),
1262
1254
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
1263
- pcb_group_id: z61.string().optional(),
1264
- subcircuit_id: z61.string().optional(),
1255
+ pcb_group_id: z60.string().optional(),
1256
+ subcircuit_id: z60.string().optional(),
1265
1257
  x: distance,
1266
1258
  y: distance,
1267
- width: z61.number(),
1268
- height: z61.number(),
1259
+ width: z60.number(),
1260
+ height: z60.number(),
1269
1261
  layer: layer_ref,
1270
- pcb_component_id: z61.string().optional(),
1271
- pcb_smtpad_id: z61.string().optional()
1262
+ pcb_component_id: z60.string().optional(),
1263
+ pcb_smtpad_id: z60.string().optional()
1272
1264
  });
1273
- var pcb_solder_paste = z61.union([
1265
+ var pcb_solder_paste = z60.union([
1274
1266
  pcb_solder_paste_circle,
1275
1267
  pcb_solder_paste_rect,
1276
1268
  pcb_solder_paste_pill,
@@ -1286,95 +1278,95 @@ expectTypesMatch(
1286
1278
  expectTypesMatch(true);
1287
1279
 
1288
1280
  // src/pcb/pcb_text.ts
1289
- import { z as z62 } from "zod";
1290
- var pcb_text = z62.object({
1291
- type: z62.literal("pcb_text"),
1281
+ import { z as z61 } from "zod";
1282
+ var pcb_text = z61.object({
1283
+ type: z61.literal("pcb_text"),
1292
1284
  pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
1293
- pcb_group_id: z62.string().optional(),
1294
- subcircuit_id: z62.string().optional(),
1295
- text: z62.string(),
1285
+ pcb_group_id: z61.string().optional(),
1286
+ subcircuit_id: z61.string().optional(),
1287
+ text: z61.string(),
1296
1288
  center: point,
1297
1289
  layer: layer_ref,
1298
1290
  width: length,
1299
1291
  height: length,
1300
- lines: z62.number(),
1292
+ lines: z61.number(),
1301
1293
  // @ts-ignore
1302
- align: z62.enum(["bottom-left"])
1294
+ align: z61.enum(["bottom-left"])
1303
1295
  }).describe("Defines text on the PCB");
1304
1296
  expectTypesMatch(true);
1305
1297
 
1306
1298
  // src/pcb/pcb_trace.ts
1307
- import { z as z63 } from "zod";
1308
- var pcb_trace_route_point_wire = z63.object({
1309
- route_type: z63.literal("wire"),
1299
+ import { z as z62 } from "zod";
1300
+ var pcb_trace_route_point_wire = z62.object({
1301
+ route_type: z62.literal("wire"),
1310
1302
  x: distance,
1311
1303
  y: distance,
1312
1304
  width: distance,
1313
- start_pcb_port_id: z63.string().optional(),
1314
- end_pcb_port_id: z63.string().optional(),
1305
+ start_pcb_port_id: z62.string().optional(),
1306
+ end_pcb_port_id: z62.string().optional(),
1315
1307
  layer: layer_ref
1316
1308
  });
1317
- var pcb_trace_route_point_via = z63.object({
1318
- route_type: z63.literal("via"),
1309
+ var pcb_trace_route_point_via = z62.object({
1310
+ route_type: z62.literal("via"),
1319
1311
  x: distance,
1320
1312
  y: distance,
1321
1313
  hole_diameter: distance.optional(),
1322
1314
  outer_diameter: distance.optional(),
1323
- from_layer: z63.string(),
1324
- to_layer: z63.string()
1315
+ from_layer: z62.string(),
1316
+ to_layer: z62.string()
1325
1317
  });
1326
- var pcb_trace_route_point = z63.union([
1318
+ var pcb_trace_route_point = z62.union([
1327
1319
  pcb_trace_route_point_wire,
1328
1320
  pcb_trace_route_point_via
1329
1321
  ]);
1330
- var pcb_trace = z63.object({
1331
- type: z63.literal("pcb_trace"),
1332
- source_trace_id: z63.string().optional(),
1333
- pcb_component_id: z63.string().optional(),
1322
+ var pcb_trace = z62.object({
1323
+ type: z62.literal("pcb_trace"),
1324
+ source_trace_id: z62.string().optional(),
1325
+ pcb_component_id: z62.string().optional(),
1334
1326
  pcb_trace_id: getZodPrefixedIdWithDefault("pcb_trace"),
1335
- pcb_group_id: z63.string().optional(),
1336
- subcircuit_id: z63.string().optional(),
1337
- route_thickness_mode: z63.enum(["constant", "interpolated"]).default("constant").optional(),
1338
- route_order_index: z63.number().optional(),
1339
- should_round_corners: z63.boolean().optional(),
1340
- trace_length: z63.number().optional(),
1341
- route: z63.array(pcb_trace_route_point)
1327
+ pcb_group_id: z62.string().optional(),
1328
+ subcircuit_id: z62.string().optional(),
1329
+ route_thickness_mode: z62.enum(["constant", "interpolated"]).default("constant").optional(),
1330
+ route_order_index: z62.number().optional(),
1331
+ should_round_corners: z62.boolean().optional(),
1332
+ trace_length: z62.number().optional(),
1333
+ route: z62.array(pcb_trace_route_point)
1342
1334
  }).describe("Defines a trace on the PCB");
1343
1335
  expectTypesMatch(true);
1344
1336
  expectTypesMatch(true);
1345
1337
 
1346
1338
  // src/pcb/pcb_trace_error.ts
1347
- import { z as z64 } from "zod";
1348
- var pcb_trace_error = z64.object({
1349
- type: z64.literal("pcb_trace_error"),
1339
+ import { z as z63 } from "zod";
1340
+ var pcb_trace_error = z63.object({
1341
+ type: z63.literal("pcb_trace_error"),
1350
1342
  pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
1351
- error_type: z64.literal("pcb_trace_error"),
1352
- message: z64.string(),
1343
+ error_type: z63.literal("pcb_trace_error"),
1344
+ message: z63.string(),
1353
1345
  center: point.optional(),
1354
- pcb_trace_id: z64.string(),
1355
- source_trace_id: z64.string(),
1356
- pcb_component_ids: z64.array(z64.string()),
1357
- pcb_port_ids: z64.array(z64.string())
1346
+ pcb_trace_id: z63.string(),
1347
+ source_trace_id: z63.string(),
1348
+ pcb_component_ids: z63.array(z63.string()),
1349
+ pcb_port_ids: z63.array(z63.string())
1358
1350
  }).describe("Defines a trace error on the PCB");
1359
1351
  expectTypesMatch(true);
1360
1352
 
1361
1353
  // src/pcb/pcb_port_not_matched_error.ts
1362
- import { z as z65 } from "zod";
1363
- var pcb_port_not_matched_error = z65.object({
1364
- type: z65.literal("pcb_port_not_matched_error"),
1354
+ import { z as z64 } from "zod";
1355
+ var pcb_port_not_matched_error = z64.object({
1356
+ type: z64.literal("pcb_port_not_matched_error"),
1365
1357
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
1366
- message: z65.string(),
1367
- pcb_component_ids: z65.array(z65.string())
1358
+ message: z64.string(),
1359
+ pcb_component_ids: z64.array(z64.string())
1368
1360
  }).describe("Defines a trace error on the PCB where a port is not matched");
1369
1361
  expectTypesMatch(true);
1370
1362
 
1371
1363
  // src/pcb/pcb_via.ts
1372
- import { z as z66 } from "zod";
1373
- var pcb_via = z66.object({
1374
- type: z66.literal("pcb_via"),
1364
+ import { z as z65 } from "zod";
1365
+ var pcb_via = z65.object({
1366
+ type: z65.literal("pcb_via"),
1375
1367
  pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
1376
- pcb_group_id: z66.string().optional(),
1377
- subcircuit_id: z66.string().optional(),
1368
+ pcb_group_id: z65.string().optional(),
1369
+ subcircuit_id: z65.string().optional(),
1378
1370
  x: distance,
1379
1371
  y: distance,
1380
1372
  outer_diameter: distance.default("0.6mm"),
@@ -1383,56 +1375,56 @@ var pcb_via = z66.object({
1383
1375
  from_layer: layer_ref.optional(),
1384
1376
  /** @deprecated */
1385
1377
  to_layer: layer_ref.optional(),
1386
- layers: z66.array(layer_ref),
1387
- pcb_trace_id: z66.string().optional()
1378
+ layers: z65.array(layer_ref),
1379
+ pcb_trace_id: z65.string().optional()
1388
1380
  }).describe("Defines a via on the PCB");
1389
1381
  expectTypesMatch(true);
1390
1382
 
1391
1383
  // src/pcb/pcb_board.ts
1392
- import { z as z67 } from "zod";
1393
- var pcb_board = z67.object({
1394
- type: z67.literal("pcb_board"),
1384
+ import { z as z66 } from "zod";
1385
+ var pcb_board = z66.object({
1386
+ type: z66.literal("pcb_board"),
1395
1387
  pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
1396
- is_subcircuit: z67.boolean().optional(),
1397
- subcircuit_id: z67.string().optional(),
1388
+ is_subcircuit: z66.boolean().optional(),
1389
+ subcircuit_id: z66.string().optional(),
1398
1390
  width: length,
1399
1391
  height: length,
1400
1392
  center: point,
1401
1393
  thickness: length.optional().default(1.4),
1402
- num_layers: z67.number().optional().default(4),
1403
- outline: z67.array(point).optional(),
1404
- material: z67.enum(["fr4", "fr1"]).default("fr4")
1394
+ num_layers: z66.number().optional().default(4),
1395
+ outline: z66.array(point).optional(),
1396
+ material: z66.enum(["fr4", "fr1"]).default("fr4")
1405
1397
  }).describe("Defines the board outline of the PCB");
1406
1398
  expectTypesMatch(true);
1407
1399
 
1408
1400
  // src/pcb/pcb_placement_error.ts
1409
- import { z as z68 } from "zod";
1410
- var pcb_placement_error = z68.object({
1411
- type: z68.literal("pcb_placement_error"),
1401
+ import { z as z67 } from "zod";
1402
+ var pcb_placement_error = z67.object({
1403
+ type: z67.literal("pcb_placement_error"),
1412
1404
  pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
1413
- message: z68.string()
1405
+ message: z67.string()
1414
1406
  }).describe("Defines a placement error on the PCB");
1415
1407
  expectTypesMatch(true);
1416
1408
 
1417
1409
  // src/pcb/pcb_trace_hint.ts
1418
- import { z as z69 } from "zod";
1419
- var pcb_trace_hint = z69.object({
1420
- type: z69.literal("pcb_trace_hint"),
1410
+ import { z as z68 } from "zod";
1411
+ var pcb_trace_hint = z68.object({
1412
+ type: z68.literal("pcb_trace_hint"),
1421
1413
  pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
1422
- pcb_port_id: z69.string(),
1423
- pcb_component_id: z69.string(),
1424
- route: z69.array(route_hint_point)
1414
+ pcb_port_id: z68.string(),
1415
+ pcb_component_id: z68.string(),
1416
+ route: z68.array(route_hint_point)
1425
1417
  }).describe("A hint that can be used during generation of a PCB trace");
1426
1418
  expectTypesMatch(true);
1427
1419
 
1428
1420
  // src/pcb/pcb_silkscreen_line.ts
1429
- import { z as z70 } from "zod";
1430
- var pcb_silkscreen_line = z70.object({
1431
- type: z70.literal("pcb_silkscreen_line"),
1421
+ import { z as z69 } from "zod";
1422
+ var pcb_silkscreen_line = z69.object({
1423
+ type: z69.literal("pcb_silkscreen_line"),
1432
1424
  pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
1433
- pcb_component_id: z70.string(),
1434
- pcb_group_id: z70.string().optional(),
1435
- subcircuit_id: z70.string().optional(),
1425
+ pcb_component_id: z69.string(),
1426
+ pcb_group_id: z69.string().optional(),
1427
+ subcircuit_id: z69.string().optional(),
1436
1428
  stroke_width: distance.default("0.1mm"),
1437
1429
  x1: distance,
1438
1430
  y1: distance,
@@ -1443,67 +1435,67 @@ var pcb_silkscreen_line = z70.object({
1443
1435
  expectTypesMatch(true);
1444
1436
 
1445
1437
  // src/pcb/pcb_silkscreen_path.ts
1446
- import { z as z71 } from "zod";
1447
- var pcb_silkscreen_path = z71.object({
1448
- type: z71.literal("pcb_silkscreen_path"),
1438
+ import { z as z70 } from "zod";
1439
+ var pcb_silkscreen_path = z70.object({
1440
+ type: z70.literal("pcb_silkscreen_path"),
1449
1441
  pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
1450
- pcb_component_id: z71.string(),
1451
- pcb_group_id: z71.string().optional(),
1452
- subcircuit_id: z71.string().optional(),
1442
+ pcb_component_id: z70.string(),
1443
+ pcb_group_id: z70.string().optional(),
1444
+ subcircuit_id: z70.string().optional(),
1453
1445
  layer: visible_layer,
1454
- route: z71.array(point),
1446
+ route: z70.array(point),
1455
1447
  stroke_width: length
1456
1448
  }).describe("Defines a silkscreen path on the PCB");
1457
1449
  expectTypesMatch(true);
1458
1450
 
1459
1451
  // src/pcb/pcb_silkscreen_text.ts
1460
- import { z as z72 } from "zod";
1461
- var pcb_silkscreen_text = z72.object({
1462
- type: z72.literal("pcb_silkscreen_text"),
1452
+ import { z as z71 } from "zod";
1453
+ var pcb_silkscreen_text = z71.object({
1454
+ type: z71.literal("pcb_silkscreen_text"),
1463
1455
  pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
1464
- pcb_group_id: z72.string().optional(),
1465
- subcircuit_id: z72.string().optional(),
1466
- font: z72.literal("tscircuit2024").default("tscircuit2024"),
1456
+ pcb_group_id: z71.string().optional(),
1457
+ subcircuit_id: z71.string().optional(),
1458
+ font: z71.literal("tscircuit2024").default("tscircuit2024"),
1467
1459
  font_size: distance.default("0.2mm"),
1468
- pcb_component_id: z72.string(),
1469
- text: z72.string(),
1470
- ccw_rotation: z72.number().optional(),
1460
+ pcb_component_id: z71.string(),
1461
+ text: z71.string(),
1462
+ ccw_rotation: z71.number().optional(),
1471
1463
  layer: layer_ref,
1472
- is_mirrored: z72.boolean().default(false).optional(),
1464
+ is_mirrored: z71.boolean().default(false).optional(),
1473
1465
  anchor_position: point.default({ x: 0, y: 0 }),
1474
1466
  anchor_alignment: ninePointAnchor.default("center")
1475
1467
  }).describe("Defines silkscreen text on the PCB");
1476
1468
  expectTypesMatch(true);
1477
1469
 
1478
1470
  // src/pcb/pcb_silkscreen_rect.ts
1479
- import { z as z73 } from "zod";
1480
- var pcb_silkscreen_rect = z73.object({
1481
- type: z73.literal("pcb_silkscreen_rect"),
1471
+ import { z as z72 } from "zod";
1472
+ var pcb_silkscreen_rect = z72.object({
1473
+ type: z72.literal("pcb_silkscreen_rect"),
1482
1474
  pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
1483
- pcb_component_id: z73.string(),
1484
- pcb_group_id: z73.string().optional(),
1485
- subcircuit_id: z73.string().optional(),
1475
+ pcb_component_id: z72.string(),
1476
+ pcb_group_id: z72.string().optional(),
1477
+ subcircuit_id: z72.string().optional(),
1486
1478
  center: point,
1487
1479
  width: length,
1488
1480
  height: length,
1489
1481
  layer: layer_ref,
1490
1482
  stroke_width: length.default("1mm"),
1491
- is_filled: z73.boolean().default(true).optional(),
1492
- has_stroke: z73.boolean().optional(),
1493
- is_stroke_dashed: z73.boolean().optional()
1483
+ is_filled: z72.boolean().default(true).optional(),
1484
+ has_stroke: z72.boolean().optional(),
1485
+ is_stroke_dashed: z72.boolean().optional()
1494
1486
  }).describe("Defines a silkscreen rect on the PCB");
1495
1487
  expectTypesMatch(true);
1496
1488
 
1497
1489
  // src/pcb/pcb_silkscreen_circle.ts
1498
- import { z as z74 } from "zod";
1499
- var pcb_silkscreen_circle = z74.object({
1500
- type: z74.literal("pcb_silkscreen_circle"),
1490
+ import { z as z73 } from "zod";
1491
+ var pcb_silkscreen_circle = z73.object({
1492
+ type: z73.literal("pcb_silkscreen_circle"),
1501
1493
  pcb_silkscreen_circle_id: getZodPrefixedIdWithDefault(
1502
1494
  "pcb_silkscreen_circle"
1503
1495
  ),
1504
- pcb_component_id: z74.string(),
1505
- pcb_group_id: z74.string().optional(),
1506
- subcircuit_id: z74.string().optional(),
1496
+ pcb_component_id: z73.string(),
1497
+ pcb_group_id: z73.string().optional(),
1498
+ subcircuit_id: z73.string().optional(),
1507
1499
  center: point,
1508
1500
  radius: length,
1509
1501
  layer: visible_layer,
@@ -1512,13 +1504,13 @@ var pcb_silkscreen_circle = z74.object({
1512
1504
  expectTypesMatch(true);
1513
1505
 
1514
1506
  // src/pcb/pcb_silkscreen_oval.ts
1515
- import { z as z75 } from "zod";
1516
- var pcb_silkscreen_oval = z75.object({
1517
- type: z75.literal("pcb_silkscreen_oval"),
1507
+ import { z as z74 } from "zod";
1508
+ var pcb_silkscreen_oval = z74.object({
1509
+ type: z74.literal("pcb_silkscreen_oval"),
1518
1510
  pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
1519
- pcb_component_id: z75.string(),
1520
- pcb_group_id: z75.string().optional(),
1521
- subcircuit_id: z75.string().optional(),
1511
+ pcb_component_id: z74.string(),
1512
+ pcb_group_id: z74.string().optional(),
1513
+ subcircuit_id: z74.string().optional(),
1522
1514
  center: point,
1523
1515
  radius_x: distance,
1524
1516
  radius_y: distance,
@@ -1527,86 +1519,86 @@ var pcb_silkscreen_oval = z75.object({
1527
1519
  expectTypesMatch(true);
1528
1520
 
1529
1521
  // src/pcb/pcb_fabrication_note_text.ts
1530
- import { z as z76 } from "zod";
1531
- var pcb_fabrication_note_text = z76.object({
1532
- type: z76.literal("pcb_fabrication_note_text"),
1522
+ import { z as z75 } from "zod";
1523
+ var pcb_fabrication_note_text = z75.object({
1524
+ type: z75.literal("pcb_fabrication_note_text"),
1533
1525
  pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
1534
1526
  "pcb_fabrication_note_text"
1535
1527
  ),
1536
- subcircuit_id: z76.string().optional(),
1537
- pcb_group_id: z76.string().optional(),
1538
- font: z76.literal("tscircuit2024").default("tscircuit2024"),
1528
+ subcircuit_id: z75.string().optional(),
1529
+ pcb_group_id: z75.string().optional(),
1530
+ font: z75.literal("tscircuit2024").default("tscircuit2024"),
1539
1531
  font_size: distance.default("1mm"),
1540
- pcb_component_id: z76.string(),
1541
- text: z76.string(),
1532
+ pcb_component_id: z75.string(),
1533
+ text: z75.string(),
1542
1534
  layer: visible_layer,
1543
1535
  anchor_position: point.default({ x: 0, y: 0 }),
1544
- anchor_alignment: z76.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
1545
- color: z76.string().optional()
1536
+ anchor_alignment: z75.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
1537
+ color: z75.string().optional()
1546
1538
  }).describe(
1547
1539
  "Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
1548
1540
  );
1549
1541
  expectTypesMatch(true);
1550
1542
 
1551
1543
  // src/pcb/pcb_fabrication_note_path.ts
1552
- import { z as z77 } from "zod";
1553
- var pcb_fabrication_note_path = z77.object({
1554
- type: z77.literal("pcb_fabrication_note_path"),
1544
+ import { z as z76 } from "zod";
1545
+ var pcb_fabrication_note_path = z76.object({
1546
+ type: z76.literal("pcb_fabrication_note_path"),
1555
1547
  pcb_fabrication_note_path_id: getZodPrefixedIdWithDefault(
1556
1548
  "pcb_fabrication_note_path"
1557
1549
  ),
1558
- pcb_component_id: z77.string(),
1559
- subcircuit_id: z77.string().optional(),
1550
+ pcb_component_id: z76.string(),
1551
+ subcircuit_id: z76.string().optional(),
1560
1552
  layer: layer_ref,
1561
- route: z77.array(point),
1553
+ route: z76.array(point),
1562
1554
  stroke_width: length,
1563
- color: z77.string().optional()
1555
+ color: z76.string().optional()
1564
1556
  }).describe(
1565
1557
  "Defines a fabrication path on the PCB for fabricators or assemblers"
1566
1558
  );
1567
1559
  expectTypesMatch(true);
1568
1560
 
1569
1561
  // src/pcb/pcb_keepout.ts
1570
- import { z as z78 } from "zod";
1571
- var pcb_keepout = z78.object({
1572
- type: z78.literal("pcb_keepout"),
1573
- shape: z78.literal("rect"),
1574
- pcb_group_id: z78.string().optional(),
1575
- subcircuit_id: z78.string().optional(),
1562
+ import { z as z77 } from "zod";
1563
+ var pcb_keepout = z77.object({
1564
+ type: z77.literal("pcb_keepout"),
1565
+ shape: z77.literal("rect"),
1566
+ pcb_group_id: z77.string().optional(),
1567
+ subcircuit_id: z77.string().optional(),
1576
1568
  center: point,
1577
1569
  width: distance,
1578
1570
  height: distance,
1579
- pcb_keepout_id: z78.string(),
1580
- layers: z78.array(z78.string()),
1571
+ pcb_keepout_id: z77.string(),
1572
+ layers: z77.array(z77.string()),
1581
1573
  // Specify layers where the keepout applies
1582
- description: z78.string().optional()
1574
+ description: z77.string().optional()
1583
1575
  // Optional description of the keepout
1584
1576
  }).or(
1585
- z78.object({
1586
- type: z78.literal("pcb_keepout"),
1587
- shape: z78.literal("circle"),
1588
- pcb_group_id: z78.string().optional(),
1589
- subcircuit_id: z78.string().optional(),
1577
+ z77.object({
1578
+ type: z77.literal("pcb_keepout"),
1579
+ shape: z77.literal("circle"),
1580
+ pcb_group_id: z77.string().optional(),
1581
+ subcircuit_id: z77.string().optional(),
1590
1582
  center: point,
1591
1583
  radius: distance,
1592
- pcb_keepout_id: z78.string(),
1593
- layers: z78.array(z78.string()),
1584
+ pcb_keepout_id: z77.string(),
1585
+ layers: z77.array(z77.string()),
1594
1586
  // Specify layers where the keepout applies
1595
- description: z78.string().optional()
1587
+ description: z77.string().optional()
1596
1588
  // Optional description of the keepout
1597
1589
  })
1598
1590
  );
1599
1591
 
1600
1592
  // src/pcb/pcb_cutout.ts
1601
- import { z as z79 } from "zod";
1602
- var pcb_cutout_base = z79.object({
1603
- type: z79.literal("pcb_cutout"),
1593
+ import { z as z78 } from "zod";
1594
+ var pcb_cutout_base = z78.object({
1595
+ type: z78.literal("pcb_cutout"),
1604
1596
  pcb_cutout_id: getZodPrefixedIdWithDefault("pcb_cutout"),
1605
- pcb_group_id: z79.string().optional(),
1606
- subcircuit_id: z79.string().optional()
1597
+ pcb_group_id: z78.string().optional(),
1598
+ subcircuit_id: z78.string().optional()
1607
1599
  });
1608
1600
  var pcb_cutout_rect = pcb_cutout_base.extend({
1609
- shape: z79.literal("rect"),
1601
+ shape: z78.literal("rect"),
1610
1602
  center: point,
1611
1603
  width: length,
1612
1604
  height: length,
@@ -1614,17 +1606,17 @@ var pcb_cutout_rect = pcb_cutout_base.extend({
1614
1606
  });
1615
1607
  expectTypesMatch(true);
1616
1608
  var pcb_cutout_circle = pcb_cutout_base.extend({
1617
- shape: z79.literal("circle"),
1609
+ shape: z78.literal("circle"),
1618
1610
  center: point,
1619
1611
  radius: length
1620
1612
  });
1621
1613
  expectTypesMatch(true);
1622
1614
  var pcb_cutout_polygon = pcb_cutout_base.extend({
1623
- shape: z79.literal("polygon"),
1624
- points: z79.array(point)
1615
+ shape: z78.literal("polygon"),
1616
+ points: z78.array(point)
1625
1617
  });
1626
1618
  expectTypesMatch(true);
1627
- var pcb_cutout = z79.discriminatedUnion("shape", [
1619
+ var pcb_cutout = z78.discriminatedUnion("shape", [
1628
1620
  pcb_cutout_rect,
1629
1621
  pcb_cutout_circle,
1630
1622
  pcb_cutout_polygon
@@ -1632,65 +1624,81 @@ var pcb_cutout = z79.discriminatedUnion("shape", [
1632
1624
  expectTypesMatch(true);
1633
1625
 
1634
1626
  // src/pcb/pcb_missing_footprint_error.ts
1635
- import { z as z80 } from "zod";
1636
- var pcb_missing_footprint_error = z80.object({
1637
- type: z80.literal("pcb_missing_footprint_error"),
1627
+ import { z as z79 } from "zod";
1628
+ var pcb_missing_footprint_error = z79.object({
1629
+ type: z79.literal("pcb_missing_footprint_error"),
1638
1630
  pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
1639
1631
  "pcb_missing_footprint_error"
1640
1632
  ),
1641
- pcb_group_id: z80.string().optional(),
1642
- subcircuit_id: z80.string().optional(),
1643
- error_type: z80.literal("pcb_missing_footprint_error"),
1644
- source_component_id: z80.string(),
1645
- message: z80.string()
1633
+ pcb_group_id: z79.string().optional(),
1634
+ subcircuit_id: z79.string().optional(),
1635
+ error_type: z79.literal("pcb_missing_footprint_error"),
1636
+ source_component_id: z79.string(),
1637
+ message: z79.string()
1646
1638
  }).describe("Defines a missing footprint error on the PCB");
1647
1639
  expectTypesMatch(
1648
1640
  true
1649
1641
  );
1650
1642
 
1651
1643
  // src/pcb/pcb_group.ts
1652
- import { z as z81 } from "zod";
1653
- var pcb_group = z81.object({
1654
- type: z81.literal("pcb_group"),
1644
+ import { z as z80 } from "zod";
1645
+ var pcb_group = z80.object({
1646
+ type: z80.literal("pcb_group"),
1655
1647
  pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
1656
- source_group_id: z81.string(),
1657
- is_subcircuit: z81.boolean().optional(),
1658
- subcircuit_id: z81.string().optional(),
1648
+ source_group_id: z80.string(),
1649
+ is_subcircuit: z80.boolean().optional(),
1650
+ subcircuit_id: z80.string().optional(),
1659
1651
  width: length,
1660
1652
  height: length,
1661
1653
  center: point,
1662
- pcb_component_ids: z81.array(z81.string()),
1663
- name: z81.string().optional(),
1664
- description: z81.string().optional()
1654
+ pcb_component_ids: z80.array(z80.string()),
1655
+ name: z80.string().optional(),
1656
+ description: z80.string().optional()
1665
1657
  }).describe("Defines a group of components on the PCB");
1666
1658
  expectTypesMatch(true);
1667
1659
 
1668
1660
  // src/pcb/pcb_autorouting_error.ts
1669
- import { z as z82 } from "zod";
1670
- var pcb_autorouting_error = z82.object({
1671
- type: z82.literal("pcb_autorouting_error"),
1661
+ import { z as z81 } from "zod";
1662
+ var pcb_autorouting_error = z81.object({
1663
+ type: z81.literal("pcb_autorouting_error"),
1672
1664
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
1673
- message: z82.string()
1665
+ message: z81.string()
1674
1666
  }).describe("The autorouting has failed to route a portion of the board");
1675
1667
  expectTypesMatch(true);
1676
1668
 
1677
1669
  // src/pcb/pcb_manual_edit_conflict_warning.ts
1678
- import { z as z83 } from "zod";
1679
- var pcb_manual_edit_conflict_warning = z83.object({
1680
- type: z83.literal("pcb_manual_edit_conflict_warning"),
1670
+ import { z as z82 } from "zod";
1671
+ var pcb_manual_edit_conflict_warning = z82.object({
1672
+ type: z82.literal("pcb_manual_edit_conflict_warning"),
1681
1673
  pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
1682
1674
  "pcb_manual_edit_conflict_warning"
1683
1675
  ),
1684
- message: z83.string(),
1685
- pcb_component_id: z83.string(),
1686
- pcb_group_id: z83.string().optional(),
1687
- subcircuit_id: z83.string().optional(),
1688
- source_component_id: z83.string()
1676
+ message: z82.string(),
1677
+ pcb_component_id: z82.string(),
1678
+ pcb_group_id: z82.string().optional(),
1679
+ subcircuit_id: z82.string().optional(),
1680
+ source_component_id: z82.string()
1689
1681
  }).describe(
1690
1682
  "Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
1691
1683
  );
1692
1684
  expectTypesMatch(true);
1693
1685
 
1686
+ // src/pcb/pcb_breakout_point.ts
1687
+ import { z as z83 } from "zod";
1688
+ var pcb_breakout_point = z83.object({
1689
+ type: z83.literal("pcb_breakout_point"),
1690
+ pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
1691
+ pcb_group_id: z83.string(),
1692
+ subcircuit_id: z83.string().optional(),
1693
+ source_trace_id: z83.string().optional(),
1694
+ source_net_id: z83.string().optional(),
1695
+ x: distance,
1696
+ y: distance
1697
+ }).describe(
1698
+ "Defines a routing target within a pcb_group for a source_trace or source_net"
1699
+ );
1700
+ expectTypesMatch(true);
1701
+
1694
1702
  // src/cad/cad_component.ts
1695
1703
  import { z as z84 } from "zod";
1696
1704
  var cad_component = z84.object({
@@ -1716,7 +1724,6 @@ var any_circuit_element = z85.union([
1716
1724
  source_trace,
1717
1725
  source_port,
1718
1726
  any_source_component,
1719
- source_led,
1720
1727
  source_net,
1721
1728
  source_group,
1722
1729
  source_simple_bug,
@@ -1764,6 +1771,7 @@ var any_circuit_element = z85.union([
1764
1771
  pcb_fabrication_note_path,
1765
1772
  pcb_fabrication_note_text,
1766
1773
  pcb_autorouting_error,
1774
+ pcb_breakout_point,
1767
1775
  pcb_cutout,
1768
1776
  schematic_box,
1769
1777
  schematic_text,
@@ -1802,6 +1810,7 @@ export {
1802
1810
  length,
1803
1811
  pcb_autorouting_error,
1804
1812
  pcb_board,
1813
+ pcb_breakout_point,
1805
1814
  pcb_component,
1806
1815
  pcb_cutout,
1807
1816
  pcb_cutout_circle,
@@ -1872,7 +1881,6 @@ export {
1872
1881
  source_component_base,
1873
1882
  source_failed_to_create_component_error,
1874
1883
  source_group,
1875
- source_led,
1876
1884
  source_missing_property_error,
1877
1885
  source_net,
1878
1886
  source_port,