circuit-json 0.0.185 → 0.0.186

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