circuit-json 0.0.177 → 0.0.179

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Circuit JSON a low-level JSON-array circuit representation. It contains all the information needed to visually represent a schematic, PCB, produce Gerber files, produce bill of materials, run SPICE simulations, view warnings and more. It is designed to easily interoperate with a SQL database.
4
4
 
5
- [tscircuit](https://github.com/tscircuit/tscircuit) · [discord](https://tscircuit.com/join) · [online circuit json viewer](https://circuitjson.com/) · [example.json](https://github.com/tscircuit/circuit-json-viewer/blob/main/public/example.json)
5
+ [tscircuit](https://github.com/tscircuit/tscircuit) · [discord](https://tscircuit.com/join) · [online circuit json viewer](https://circuitjson.com/) · [example.json](https://github.com/tscircuit/circuitjson.com/blob/main/assets/usb-c-flashlight.json)
6
6
 
7
7
  [![npm version](https://badge.fury.io/js/circuit-json.svg)](https://badge.fury.io/js/circuit-json)
8
8
 
@@ -97,6 +97,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
97
97
  - [SchematicBox](#schematicbox)
98
98
  - [SchematicComponent](#schematiccomponent)
99
99
  - [SchematicError](#schematicerror)
100
+ - [SchematicGroup](#schematicgroup)
100
101
  - [SchematicLine](#schematicline)
101
102
  - [SchematicManualEditConflictWarning](#schematicmanualeditconflictwarning)
102
103
  - [SchematicPath](#schematicpath)
@@ -1124,6 +1125,29 @@ interface SchematicError {
1124
1125
  }
1125
1126
  ```
1126
1127
 
1128
+ ### SchematicGroup
1129
+
1130
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_group.ts)
1131
+
1132
+ Defines a group of components on the schematic
1133
+
1134
+ ```typescript
1135
+ /** Defines a group of components on the schematic */
1136
+ interface SchematicGroup {
1137
+ type: "schematic_group"
1138
+ schematic_group_id: string
1139
+ source_group_id: string
1140
+ is_subcircuit?: boolean
1141
+ subcircuit_id?: string
1142
+ width: Length
1143
+ height: Length
1144
+ center: Point
1145
+ schematic_component_ids: string[]
1146
+ name?: string
1147
+ description?: string
1148
+ }
1149
+ ```
1150
+
1127
1151
  ### SchematicLine
1128
1152
 
1129
1153
  [Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_line.ts)
package/dist/index.d.mts CHANGED
@@ -738,6 +738,70 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
738
738
  port_hints?: string[] | undefined;
739
739
  pcb_port_id?: string | undefined;
740
740
  pcb_plated_hole_id?: string | undefined;
741
+ }>, z.ZodObject<{
742
+ type: z.ZodLiteral<"pcb_plated_hole">;
743
+ shape: z.ZodLiteral<"pill_hole_with_rect_pad">;
744
+ pcb_group_id: z.ZodOptional<z.ZodString>;
745
+ subcircuit_id: z.ZodOptional<z.ZodString>;
746
+ hole_shape: z.ZodLiteral<"pill">;
747
+ pad_shape: z.ZodLiteral<"rect">;
748
+ hole_width: z.ZodNumber;
749
+ hole_height: z.ZodNumber;
750
+ rect_pad_width: z.ZodNumber;
751
+ rect_pad_height: z.ZodNumber;
752
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
753
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
754
+ layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
755
+ name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
756
+ }, "strip", z.ZodTypeAny, {
757
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
758
+ }, {
759
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
760
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
761
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
762
+ }>, "many">;
763
+ port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
764
+ pcb_component_id: z.ZodOptional<z.ZodString>;
765
+ pcb_port_id: z.ZodOptional<z.ZodString>;
766
+ pcb_plated_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
767
+ }, "strip", z.ZodTypeAny, {
768
+ x: number;
769
+ y: number;
770
+ type: "pcb_plated_hole";
771
+ hole_shape: "pill";
772
+ hole_width: number;
773
+ hole_height: number;
774
+ shape: "pill_hole_with_rect_pad";
775
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
776
+ pcb_plated_hole_id: string;
777
+ pad_shape: "rect";
778
+ rect_pad_width: number;
779
+ rect_pad_height: number;
780
+ pcb_component_id?: string | undefined;
781
+ subcircuit_id?: string | undefined;
782
+ pcb_group_id?: string | undefined;
783
+ port_hints?: string[] | undefined;
784
+ pcb_port_id?: string | undefined;
785
+ }, {
786
+ x: string | number;
787
+ y: string | number;
788
+ type: "pcb_plated_hole";
789
+ hole_shape: "pill";
790
+ hole_width: number;
791
+ hole_height: number;
792
+ shape: "pill_hole_with_rect_pad";
793
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
794
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
795
+ })[];
796
+ pad_shape: "rect";
797
+ rect_pad_width: number;
798
+ rect_pad_height: number;
799
+ pcb_component_id?: string | undefined;
800
+ subcircuit_id?: string | undefined;
801
+ pcb_group_id?: string | undefined;
802
+ port_hints?: string[] | undefined;
803
+ pcb_port_id?: string | undefined;
804
+ pcb_plated_hole_id?: string | undefined;
741
805
  }>]>;
742
806
  type PcbPlatedHole = PcbPlatedHoleCircle | PcbPlatedHoleOval | PcbHoleCircularWithRectPad | PcbHolePillWithRectPad;
743
807
  /**
@@ -4423,6 +4487,76 @@ interface SchematicManualEditConflictWarning {
4423
4487
  source_component_id: string;
4424
4488
  }
4425
4489
 
4490
+ declare const schematic_group: z.ZodObject<{
4491
+ type: z.ZodLiteral<"schematic_group">;
4492
+ schematic_group_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
4493
+ source_group_id: z.ZodString;
4494
+ is_subcircuit: z.ZodOptional<z.ZodBoolean>;
4495
+ subcircuit_id: z.ZodOptional<z.ZodString>;
4496
+ width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4497
+ height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4498
+ center: z.ZodObject<{
4499
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4500
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4501
+ }, "strip", z.ZodTypeAny, {
4502
+ x: number;
4503
+ y: number;
4504
+ }, {
4505
+ x: string | number;
4506
+ y: string | number;
4507
+ }>;
4508
+ schematic_component_ids: z.ZodArray<z.ZodString, "many">;
4509
+ name: z.ZodOptional<z.ZodString>;
4510
+ description: z.ZodOptional<z.ZodString>;
4511
+ }, "strip", z.ZodTypeAny, {
4512
+ type: "schematic_group";
4513
+ width: number;
4514
+ height: number;
4515
+ center: {
4516
+ x: number;
4517
+ y: number;
4518
+ };
4519
+ source_group_id: string;
4520
+ schematic_group_id: string;
4521
+ schematic_component_ids: string[];
4522
+ name?: string | undefined;
4523
+ description?: string | undefined;
4524
+ subcircuit_id?: string | undefined;
4525
+ is_subcircuit?: boolean | undefined;
4526
+ }, {
4527
+ type: "schematic_group";
4528
+ width: string | number;
4529
+ height: string | number;
4530
+ center: {
4531
+ x: string | number;
4532
+ y: string | number;
4533
+ };
4534
+ source_group_id: string;
4535
+ schematic_component_ids: string[];
4536
+ name?: string | undefined;
4537
+ description?: string | undefined;
4538
+ subcircuit_id?: string | undefined;
4539
+ is_subcircuit?: boolean | undefined;
4540
+ schematic_group_id?: string | undefined;
4541
+ }>;
4542
+ type SchematicGroupInput = z.input<typeof schematic_group>;
4543
+ /**
4544
+ * Defines a group of components on the schematic
4545
+ */
4546
+ interface SchematicGroup {
4547
+ type: "schematic_group";
4548
+ schematic_group_id: string;
4549
+ source_group_id: string;
4550
+ is_subcircuit?: boolean;
4551
+ subcircuit_id?: string;
4552
+ width: Length;
4553
+ height: Length;
4554
+ center: Point;
4555
+ schematic_component_ids: string[];
4556
+ name?: string;
4557
+ description?: string;
4558
+ }
4559
+
4426
4560
  type CircuitJsonError = PcbTraceError | PcbPlacementError | PcbPortNotMatchedError | PcbAutoroutingError | PcbMissingFootprintError | SchematicError;
4427
4561
 
4428
4562
  interface SourceComponentBase {
@@ -8167,6 +8301,70 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
8167
8301
  port_hints?: string[] | undefined;
8168
8302
  pcb_port_id?: string | undefined;
8169
8303
  pcb_plated_hole_id?: string | undefined;
8304
+ }>, z.ZodObject<{
8305
+ type: z.ZodLiteral<"pcb_plated_hole">;
8306
+ shape: z.ZodLiteral<"pill_hole_with_rect_pad">;
8307
+ pcb_group_id: z.ZodOptional<z.ZodString>;
8308
+ subcircuit_id: z.ZodOptional<z.ZodString>;
8309
+ hole_shape: z.ZodLiteral<"pill">;
8310
+ pad_shape: z.ZodLiteral<"rect">;
8311
+ hole_width: z.ZodNumber;
8312
+ hole_height: z.ZodNumber;
8313
+ rect_pad_width: z.ZodNumber;
8314
+ rect_pad_height: z.ZodNumber;
8315
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8316
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8317
+ layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
8318
+ name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
8319
+ }, "strip", z.ZodTypeAny, {
8320
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
8321
+ }, {
8322
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
8323
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
8324
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
8325
+ }>, "many">;
8326
+ port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8327
+ pcb_component_id: z.ZodOptional<z.ZodString>;
8328
+ pcb_port_id: z.ZodOptional<z.ZodString>;
8329
+ pcb_plated_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
8330
+ }, "strip", z.ZodTypeAny, {
8331
+ x: number;
8332
+ y: number;
8333
+ type: "pcb_plated_hole";
8334
+ hole_shape: "pill";
8335
+ hole_width: number;
8336
+ hole_height: number;
8337
+ shape: "pill_hole_with_rect_pad";
8338
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
8339
+ pcb_plated_hole_id: string;
8340
+ pad_shape: "rect";
8341
+ rect_pad_width: number;
8342
+ rect_pad_height: number;
8343
+ pcb_component_id?: string | undefined;
8344
+ subcircuit_id?: string | undefined;
8345
+ pcb_group_id?: string | undefined;
8346
+ port_hints?: string[] | undefined;
8347
+ pcb_port_id?: string | undefined;
8348
+ }, {
8349
+ x: string | number;
8350
+ y: string | number;
8351
+ type: "pcb_plated_hole";
8352
+ hole_shape: "pill";
8353
+ hole_width: number;
8354
+ hole_height: number;
8355
+ shape: "pill_hole_with_rect_pad";
8356
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
8357
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
8358
+ })[];
8359
+ pad_shape: "rect";
8360
+ rect_pad_width: number;
8361
+ rect_pad_height: number;
8362
+ pcb_component_id?: string | undefined;
8363
+ subcircuit_id?: string | undefined;
8364
+ pcb_group_id?: string | undefined;
8365
+ port_hints?: string[] | undefined;
8366
+ pcb_port_id?: string | undefined;
8367
+ pcb_plated_hole_id?: string | undefined;
8170
8368
  }>]>, z.ZodUnion<[z.ZodObject<{
8171
8369
  type: z.ZodLiteral<"pcb_keepout">;
8172
8370
  shape: z.ZodLiteral<"rect">;
@@ -10436,6 +10634,57 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
10436
10634
  subcircuit_id?: string | undefined;
10437
10635
  schematic_manual_edit_conflict_warning_id?: string | undefined;
10438
10636
  schematic_group_id?: string | undefined;
10637
+ }>, z.ZodObject<{
10638
+ type: z.ZodLiteral<"schematic_group">;
10639
+ schematic_group_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10640
+ source_group_id: z.ZodString;
10641
+ is_subcircuit: z.ZodOptional<z.ZodBoolean>;
10642
+ subcircuit_id: z.ZodOptional<z.ZodString>;
10643
+ width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
10644
+ height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
10645
+ center: z.ZodObject<{
10646
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
10647
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
10648
+ }, "strip", z.ZodTypeAny, {
10649
+ x: number;
10650
+ y: number;
10651
+ }, {
10652
+ x: string | number;
10653
+ y: string | number;
10654
+ }>;
10655
+ schematic_component_ids: z.ZodArray<z.ZodString, "many">;
10656
+ name: z.ZodOptional<z.ZodString>;
10657
+ description: z.ZodOptional<z.ZodString>;
10658
+ }, "strip", z.ZodTypeAny, {
10659
+ type: "schematic_group";
10660
+ width: number;
10661
+ height: number;
10662
+ center: {
10663
+ x: number;
10664
+ y: number;
10665
+ };
10666
+ source_group_id: string;
10667
+ schematic_group_id: string;
10668
+ schematic_component_ids: string[];
10669
+ name?: string | undefined;
10670
+ description?: string | undefined;
10671
+ subcircuit_id?: string | undefined;
10672
+ is_subcircuit?: boolean | undefined;
10673
+ }, {
10674
+ type: "schematic_group";
10675
+ width: string | number;
10676
+ height: string | number;
10677
+ center: {
10678
+ x: string | number;
10679
+ y: string | number;
10680
+ };
10681
+ source_group_id: string;
10682
+ schematic_component_ids: string[];
10683
+ name?: string | undefined;
10684
+ description?: string | undefined;
10685
+ subcircuit_id?: string | undefined;
10686
+ is_subcircuit?: boolean | undefined;
10687
+ schematic_group_id?: string | undefined;
10439
10688
  }>, z.ZodObject<{
10440
10689
  type: z.ZodLiteral<"cad_component">;
10441
10690
  cad_component_id: z.ZodString;
@@ -12305,6 +12554,70 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
12305
12554
  port_hints?: string[] | undefined;
12306
12555
  pcb_port_id?: string | undefined;
12307
12556
  pcb_plated_hole_id?: string | undefined;
12557
+ }>, z.ZodObject<{
12558
+ type: z.ZodLiteral<"pcb_plated_hole">;
12559
+ shape: z.ZodLiteral<"pill_hole_with_rect_pad">;
12560
+ pcb_group_id: z.ZodOptional<z.ZodString>;
12561
+ subcircuit_id: z.ZodOptional<z.ZodString>;
12562
+ hole_shape: z.ZodLiteral<"pill">;
12563
+ pad_shape: z.ZodLiteral<"rect">;
12564
+ hole_width: z.ZodNumber;
12565
+ hole_height: z.ZodNumber;
12566
+ rect_pad_width: z.ZodNumber;
12567
+ rect_pad_height: z.ZodNumber;
12568
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12569
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
12570
+ layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
12571
+ name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
12572
+ }, "strip", z.ZodTypeAny, {
12573
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
12574
+ }, {
12575
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
12576
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
12577
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
12578
+ }>, "many">;
12579
+ port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12580
+ pcb_component_id: z.ZodOptional<z.ZodString>;
12581
+ pcb_port_id: z.ZodOptional<z.ZodString>;
12582
+ pcb_plated_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12583
+ }, "strip", z.ZodTypeAny, {
12584
+ x: number;
12585
+ y: number;
12586
+ type: "pcb_plated_hole";
12587
+ hole_shape: "pill";
12588
+ hole_width: number;
12589
+ hole_height: number;
12590
+ shape: "pill_hole_with_rect_pad";
12591
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
12592
+ pcb_plated_hole_id: string;
12593
+ pad_shape: "rect";
12594
+ rect_pad_width: number;
12595
+ rect_pad_height: number;
12596
+ pcb_component_id?: string | undefined;
12597
+ subcircuit_id?: string | undefined;
12598
+ pcb_group_id?: string | undefined;
12599
+ port_hints?: string[] | undefined;
12600
+ pcb_port_id?: string | undefined;
12601
+ }, {
12602
+ x: string | number;
12603
+ y: string | number;
12604
+ type: "pcb_plated_hole";
12605
+ hole_shape: "pill";
12606
+ hole_width: number;
12607
+ hole_height: number;
12608
+ shape: "pill_hole_with_rect_pad";
12609
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
12610
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
12611
+ })[];
12612
+ pad_shape: "rect";
12613
+ rect_pad_width: number;
12614
+ rect_pad_height: number;
12615
+ pcb_component_id?: string | undefined;
12616
+ subcircuit_id?: string | undefined;
12617
+ pcb_group_id?: string | undefined;
12618
+ port_hints?: string[] | undefined;
12619
+ pcb_port_id?: string | undefined;
12620
+ pcb_plated_hole_id?: string | undefined;
12308
12621
  }>]>, z.ZodUnion<[z.ZodObject<{
12309
12622
  type: z.ZodLiteral<"pcb_keepout">;
12310
12623
  shape: z.ZodLiteral<"rect">;
@@ -14574,6 +14887,57 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
14574
14887
  subcircuit_id?: string | undefined;
14575
14888
  schematic_manual_edit_conflict_warning_id?: string | undefined;
14576
14889
  schematic_group_id?: string | undefined;
14890
+ }>, z.ZodObject<{
14891
+ type: z.ZodLiteral<"schematic_group">;
14892
+ schematic_group_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
14893
+ source_group_id: z.ZodString;
14894
+ is_subcircuit: z.ZodOptional<z.ZodBoolean>;
14895
+ subcircuit_id: z.ZodOptional<z.ZodString>;
14896
+ width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
14897
+ height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
14898
+ center: z.ZodObject<{
14899
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
14900
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
14901
+ }, "strip", z.ZodTypeAny, {
14902
+ x: number;
14903
+ y: number;
14904
+ }, {
14905
+ x: string | number;
14906
+ y: string | number;
14907
+ }>;
14908
+ schematic_component_ids: z.ZodArray<z.ZodString, "many">;
14909
+ name: z.ZodOptional<z.ZodString>;
14910
+ description: z.ZodOptional<z.ZodString>;
14911
+ }, "strip", z.ZodTypeAny, {
14912
+ type: "schematic_group";
14913
+ width: number;
14914
+ height: number;
14915
+ center: {
14916
+ x: number;
14917
+ y: number;
14918
+ };
14919
+ source_group_id: string;
14920
+ schematic_group_id: string;
14921
+ schematic_component_ids: string[];
14922
+ name?: string | undefined;
14923
+ description?: string | undefined;
14924
+ subcircuit_id?: string | undefined;
14925
+ is_subcircuit?: boolean | undefined;
14926
+ }, {
14927
+ type: "schematic_group";
14928
+ width: string | number;
14929
+ height: string | number;
14930
+ center: {
14931
+ x: string | number;
14932
+ y: string | number;
14933
+ };
14934
+ source_group_id: string;
14935
+ schematic_component_ids: string[];
14936
+ name?: string | undefined;
14937
+ description?: string | undefined;
14938
+ subcircuit_id?: string | undefined;
14939
+ is_subcircuit?: boolean | undefined;
14940
+ schematic_group_id?: string | undefined;
14577
14941
  }>, z.ZodObject<{
14578
14942
  type: z.ZodLiteral<"cad_component">;
14579
14943
  cad_component_id: z.ZodString;
@@ -14703,4 +15067,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
14703
15067
  */
14704
15068
  type CircuitJson = AnyCircuitElement[];
14705
15069
 
14706
- export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type Size, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_autorouting_error, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_failed_to_create_component_error, source_group, source_led, source_missing_property_error, source_net, source_port, source_project_metadata, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };
15070
+ export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type Size, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_autorouting_error, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_failed_to_create_component_error, source_group, source_led, source_missing_property_error, source_net, source_port, source_project_metadata, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };