circuit-json 0.0.85 → 0.0.87

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.d.mts CHANGED
@@ -17,6 +17,7 @@ declare const time: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number,
17
17
  * Rotation is always converted to degrees
18
18
  */
19
19
  declare const rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
20
+ declare const battery_capacity: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>;
20
21
  type InputRotation = number | string;
21
22
  type Rotation = number;
22
23
 
@@ -596,6 +597,35 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
596
597
  manufacturer_part_number?: string | undefined;
597
598
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
598
599
  display_value?: string | undefined;
600
+ }>, z.ZodObject<z.objectUtil.extendShape<{
601
+ type: z.ZodLiteral<"source_component">;
602
+ ftype: z.ZodOptional<z.ZodString>;
603
+ source_component_id: z.ZodString;
604
+ name: z.ZodString;
605
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
606
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
607
+ display_value: z.ZodOptional<z.ZodString>;
608
+ }, {
609
+ ftype: z.ZodLiteral<"simple_battery">;
610
+ capacity: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>;
611
+ }>, "strip", z.ZodTypeAny, {
612
+ type: "source_component";
613
+ ftype: "simple_battery";
614
+ source_component_id: string;
615
+ name: string;
616
+ capacity: number;
617
+ manufacturer_part_number?: string | undefined;
618
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
619
+ display_value?: string | undefined;
620
+ }, {
621
+ type: "source_component";
622
+ ftype: "simple_battery";
623
+ source_component_id: string;
624
+ name: string;
625
+ capacity: string | number;
626
+ manufacturer_part_number?: string | undefined;
627
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
628
+ display_value?: string | undefined;
599
629
  }>]>;
600
630
  type AnySourceComponent = z.infer<typeof any_source_component>;
601
631
 
@@ -718,6 +748,39 @@ declare const source_net: z.ZodObject<{
718
748
  type SourceNet = z.infer<typeof source_net>;
719
749
  type SourceNetInput = z.input<typeof source_net>;
720
750
 
751
+ declare const source_simple_battery: z.ZodObject<z.objectUtil.extendShape<{
752
+ type: z.ZodLiteral<"source_component">;
753
+ ftype: z.ZodOptional<z.ZodString>;
754
+ source_component_id: z.ZodString;
755
+ name: z.ZodString;
756
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
757
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
758
+ display_value: z.ZodOptional<z.ZodString>;
759
+ }, {
760
+ ftype: z.ZodLiteral<"simple_battery">;
761
+ capacity: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>;
762
+ }>, "strip", z.ZodTypeAny, {
763
+ type: "source_component";
764
+ ftype: "simple_battery";
765
+ source_component_id: string;
766
+ name: string;
767
+ capacity: number;
768
+ manufacturer_part_number?: string | undefined;
769
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
770
+ display_value?: string | undefined;
771
+ }, {
772
+ type: "source_component";
773
+ ftype: "simple_battery";
774
+ source_component_id: string;
775
+ name: string;
776
+ capacity: string | number;
777
+ manufacturer_part_number?: string | undefined;
778
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
779
+ display_value?: string | undefined;
780
+ }>;
781
+ type SourceSimpleBattery = z.infer<typeof source_simple_battery>;
782
+ type SourceSimpleBatteryInput = z.input<typeof source_simple_battery>;
783
+
721
784
  declare const schematic_box: z.ZodObject<{
722
785
  type: z.ZodLiteral<"schematic_box">;
723
786
  schematic_component_id: z.ZodString;
@@ -1278,6 +1341,220 @@ declare const schematic_error: z.ZodObject<{
1278
1341
  type SchematicErrorInput = z.input<typeof schematic_error>;
1279
1342
  type SchematicError = z.infer<typeof schematic_error>;
1280
1343
 
1344
+ declare const schematic_debug_object_base: z.ZodObject<{
1345
+ type: z.ZodLiteral<"schematic_debug_object">;
1346
+ label: z.ZodOptional<z.ZodString>;
1347
+ }, "strip", z.ZodTypeAny, {
1348
+ type: "schematic_debug_object";
1349
+ label?: string | undefined;
1350
+ }, {
1351
+ type: "schematic_debug_object";
1352
+ label?: string | undefined;
1353
+ }>;
1354
+ declare const schematic_debug_rect: z.ZodObject<z.objectUtil.extendShape<{
1355
+ type: z.ZodLiteral<"schematic_debug_object">;
1356
+ label: z.ZodOptional<z.ZodString>;
1357
+ }, {
1358
+ shape: z.ZodLiteral<"rect">;
1359
+ center: z.ZodObject<{
1360
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
1361
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
1362
+ }, "strip", z.ZodTypeAny, {
1363
+ x: number;
1364
+ y: number;
1365
+ }, {
1366
+ x: string | number;
1367
+ y: string | number;
1368
+ }>;
1369
+ size: z.ZodObject<{
1370
+ width: z.ZodNumber;
1371
+ height: z.ZodNumber;
1372
+ }, "strip", z.ZodTypeAny, {
1373
+ width: number;
1374
+ height: number;
1375
+ }, {
1376
+ width: number;
1377
+ height: number;
1378
+ }>;
1379
+ }>, "strip", z.ZodTypeAny, {
1380
+ type: "schematic_debug_object";
1381
+ size: {
1382
+ width: number;
1383
+ height: number;
1384
+ };
1385
+ center: {
1386
+ x: number;
1387
+ y: number;
1388
+ };
1389
+ shape: "rect";
1390
+ label?: string | undefined;
1391
+ }, {
1392
+ type: "schematic_debug_object";
1393
+ size: {
1394
+ width: number;
1395
+ height: number;
1396
+ };
1397
+ center: {
1398
+ x: string | number;
1399
+ y: string | number;
1400
+ };
1401
+ shape: "rect";
1402
+ label?: string | undefined;
1403
+ }>;
1404
+ declare const schematic_debug_line: z.ZodObject<z.objectUtil.extendShape<{
1405
+ type: z.ZodLiteral<"schematic_debug_object">;
1406
+ label: z.ZodOptional<z.ZodString>;
1407
+ }, {
1408
+ shape: z.ZodLiteral<"line">;
1409
+ start: z.ZodObject<{
1410
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
1411
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ x: number;
1414
+ y: number;
1415
+ }, {
1416
+ x: string | number;
1417
+ y: string | number;
1418
+ }>;
1419
+ end: z.ZodObject<{
1420
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
1421
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
1422
+ }, "strip", z.ZodTypeAny, {
1423
+ x: number;
1424
+ y: number;
1425
+ }, {
1426
+ x: string | number;
1427
+ y: string | number;
1428
+ }>;
1429
+ }>, "strip", z.ZodTypeAny, {
1430
+ type: "schematic_debug_object";
1431
+ shape: "line";
1432
+ start: {
1433
+ x: number;
1434
+ y: number;
1435
+ };
1436
+ end: {
1437
+ x: number;
1438
+ y: number;
1439
+ };
1440
+ label?: string | undefined;
1441
+ }, {
1442
+ type: "schematic_debug_object";
1443
+ shape: "line";
1444
+ start: {
1445
+ x: string | number;
1446
+ y: string | number;
1447
+ };
1448
+ end: {
1449
+ x: string | number;
1450
+ y: string | number;
1451
+ };
1452
+ label?: string | undefined;
1453
+ }>;
1454
+ declare const schematic_debug_object: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<z.objectUtil.extendShape<{
1455
+ type: z.ZodLiteral<"schematic_debug_object">;
1456
+ label: z.ZodOptional<z.ZodString>;
1457
+ }, {
1458
+ shape: z.ZodLiteral<"rect">;
1459
+ center: z.ZodObject<{
1460
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
1461
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
1462
+ }, "strip", z.ZodTypeAny, {
1463
+ x: number;
1464
+ y: number;
1465
+ }, {
1466
+ x: string | number;
1467
+ y: string | number;
1468
+ }>;
1469
+ size: z.ZodObject<{
1470
+ width: z.ZodNumber;
1471
+ height: z.ZodNumber;
1472
+ }, "strip", z.ZodTypeAny, {
1473
+ width: number;
1474
+ height: number;
1475
+ }, {
1476
+ width: number;
1477
+ height: number;
1478
+ }>;
1479
+ }>, "strip", z.ZodTypeAny, {
1480
+ type: "schematic_debug_object";
1481
+ size: {
1482
+ width: number;
1483
+ height: number;
1484
+ };
1485
+ center: {
1486
+ x: number;
1487
+ y: number;
1488
+ };
1489
+ shape: "rect";
1490
+ label?: string | undefined;
1491
+ }, {
1492
+ type: "schematic_debug_object";
1493
+ size: {
1494
+ width: number;
1495
+ height: number;
1496
+ };
1497
+ center: {
1498
+ x: string | number;
1499
+ y: string | number;
1500
+ };
1501
+ shape: "rect";
1502
+ label?: string | undefined;
1503
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1504
+ type: z.ZodLiteral<"schematic_debug_object">;
1505
+ label: z.ZodOptional<z.ZodString>;
1506
+ }, {
1507
+ shape: z.ZodLiteral<"line">;
1508
+ start: z.ZodObject<{
1509
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
1510
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
1511
+ }, "strip", z.ZodTypeAny, {
1512
+ x: number;
1513
+ y: number;
1514
+ }, {
1515
+ x: string | number;
1516
+ y: string | number;
1517
+ }>;
1518
+ end: z.ZodObject<{
1519
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
1520
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
1521
+ }, "strip", z.ZodTypeAny, {
1522
+ x: number;
1523
+ y: number;
1524
+ }, {
1525
+ x: string | number;
1526
+ y: string | number;
1527
+ }>;
1528
+ }>, "strip", z.ZodTypeAny, {
1529
+ type: "schematic_debug_object";
1530
+ shape: "line";
1531
+ start: {
1532
+ x: number;
1533
+ y: number;
1534
+ };
1535
+ end: {
1536
+ x: number;
1537
+ y: number;
1538
+ };
1539
+ label?: string | undefined;
1540
+ }, {
1541
+ type: "schematic_debug_object";
1542
+ shape: "line";
1543
+ start: {
1544
+ x: string | number;
1545
+ y: string | number;
1546
+ };
1547
+ end: {
1548
+ x: string | number;
1549
+ y: string | number;
1550
+ };
1551
+ label?: string | undefined;
1552
+ }>]>;
1553
+ type SchematicDebugObject = z.infer<typeof schematic_debug_object>;
1554
+ type SchematicDebugRect = z.infer<typeof schematic_debug_rect>;
1555
+ type SchematicDebugLine = z.infer<typeof schematic_debug_line>;
1556
+ type SchematicDebugObjectInput = z.input<typeof schematic_debug_object>;
1557
+
1281
1558
  declare const all_layers: readonly ["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"];
1282
1559
  declare const layer_string: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
1283
1560
  declare const layer_ref: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
@@ -1692,8 +1969,8 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
1692
1969
  x: number;
1693
1970
  y: number;
1694
1971
  type: "pcb_plated_hole";
1695
- hole_diameter: number;
1696
1972
  shape: "circle";
1973
+ hole_diameter: number;
1697
1974
  outer_diameter: number;
1698
1975
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
1699
1976
  pcb_plated_hole_id: string;
@@ -1704,8 +1981,8 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
1704
1981
  x: string | number;
1705
1982
  y: string | number;
1706
1983
  type: "pcb_plated_hole";
1707
- hole_diameter: number;
1708
1984
  shape: "circle";
1985
+ hole_diameter: number;
1709
1986
  outer_diameter: number;
1710
1987
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
1711
1988
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -1740,9 +2017,9 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
1740
2017
  x: number;
1741
2018
  y: number;
1742
2019
  type: "pcb_plated_hole";
2020
+ shape: "oval" | "pill";
1743
2021
  hole_width: number;
1744
2022
  hole_height: number;
1745
- shape: "oval" | "pill";
1746
2023
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
1747
2024
  pcb_plated_hole_id: string;
1748
2025
  outer_width: number;
@@ -1754,9 +2031,9 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
1754
2031
  x: string | number;
1755
2032
  y: string | number;
1756
2033
  type: "pcb_plated_hole";
2034
+ shape: "oval" | "pill";
1757
2035
  hole_width: number;
1758
2036
  hole_height: number;
1759
- shape: "oval" | "pill";
1760
2037
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
1761
2038
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1762
2039
  })[];
@@ -1858,8 +2135,8 @@ declare const pcb_smtpad: z.ZodUnion<[z.ZodObject<{
1858
2135
  x: number;
1859
2136
  y: number;
1860
2137
  type: "pcb_smtpad";
1861
- layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1862
2138
  shape: "circle";
2139
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1863
2140
  pcb_smtpad_id: string;
1864
2141
  radius: number;
1865
2142
  port_hints?: string[] | undefined;
@@ -1869,10 +2146,10 @@ declare const pcb_smtpad: z.ZodUnion<[z.ZodObject<{
1869
2146
  x: string | number;
1870
2147
  y: string | number;
1871
2148
  type: "pcb_smtpad";
2149
+ shape: "circle";
1872
2150
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
1873
2151
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1874
2152
  };
1875
- shape: "circle";
1876
2153
  radius: number;
1877
2154
  port_hints?: string[] | undefined;
1878
2155
  pcb_component_id?: string | undefined;
@@ -1904,8 +2181,8 @@ declare const pcb_smtpad: z.ZodUnion<[z.ZodObject<{
1904
2181
  type: "pcb_smtpad";
1905
2182
  width: number;
1906
2183
  height: number;
1907
- layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1908
2184
  shape: "rect";
2185
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1909
2186
  pcb_smtpad_id: string;
1910
2187
  port_hints?: string[] | undefined;
1911
2188
  pcb_component_id?: string | undefined;
@@ -1916,10 +2193,10 @@ declare const pcb_smtpad: z.ZodUnion<[z.ZodObject<{
1916
2193
  type: "pcb_smtpad";
1917
2194
  width: number;
1918
2195
  height: number;
2196
+ shape: "rect";
1919
2197
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
1920
2198
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1921
2199
  };
1922
- shape: "rect";
1923
2200
  port_hints?: string[] | undefined;
1924
2201
  pcb_component_id?: string | undefined;
1925
2202
  pcb_port_id?: string | undefined;
@@ -1985,8 +2262,8 @@ declare const pcb_solder_paste: z.ZodUnion<[z.ZodObject<{
1985
2262
  x: number;
1986
2263
  y: number;
1987
2264
  type: "pcb_solder_paste";
1988
- layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1989
2265
  shape: "circle";
2266
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
1990
2267
  radius: number;
1991
2268
  pcb_solder_paste_id: string;
1992
2269
  pcb_component_id?: string | undefined;
@@ -1995,10 +2272,10 @@ declare const pcb_solder_paste: z.ZodUnion<[z.ZodObject<{
1995
2272
  x: string | number;
1996
2273
  y: string | number;
1997
2274
  type: "pcb_solder_paste";
2275
+ shape: "circle";
1998
2276
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
1999
2277
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2000
2278
  };
2001
- shape: "circle";
2002
2279
  radius: number;
2003
2280
  pcb_component_id?: string | undefined;
2004
2281
  pcb_smtpad_id?: string | undefined;
@@ -2028,8 +2305,8 @@ declare const pcb_solder_paste: z.ZodUnion<[z.ZodObject<{
2028
2305
  type: "pcb_solder_paste";
2029
2306
  width: number;
2030
2307
  height: number;
2031
- layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2032
2308
  shape: "rect";
2309
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2033
2310
  pcb_solder_paste_id: string;
2034
2311
  pcb_component_id?: string | undefined;
2035
2312
  pcb_smtpad_id?: string | undefined;
@@ -2039,10 +2316,10 @@ declare const pcb_solder_paste: z.ZodUnion<[z.ZodObject<{
2039
2316
  type: "pcb_solder_paste";
2040
2317
  width: number;
2041
2318
  height: number;
2319
+ shape: "rect";
2042
2320
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2043
2321
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2044
2322
  };
2045
- shape: "rect";
2046
2323
  pcb_component_id?: string | undefined;
2047
2324
  pcb_smtpad_id?: string | undefined;
2048
2325
  pcb_solder_paste_id?: string | undefined;
@@ -3742,6 +4019,35 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
3742
4019
  manufacturer_part_number?: string | undefined;
3743
4020
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
3744
4021
  display_value?: string | undefined;
4022
+ }>, z.ZodObject<z.objectUtil.extendShape<{
4023
+ type: z.ZodLiteral<"source_component">;
4024
+ ftype: z.ZodOptional<z.ZodString>;
4025
+ source_component_id: z.ZodString;
4026
+ name: z.ZodString;
4027
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
4028
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
4029
+ display_value: z.ZodOptional<z.ZodString>;
4030
+ }, {
4031
+ ftype: z.ZodLiteral<"simple_battery">;
4032
+ capacity: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>;
4033
+ }>, "strip", z.ZodTypeAny, {
4034
+ type: "source_component";
4035
+ ftype: "simple_battery";
4036
+ source_component_id: string;
4037
+ name: string;
4038
+ capacity: number;
4039
+ manufacturer_part_number?: string | undefined;
4040
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4041
+ display_value?: string | undefined;
4042
+ }, {
4043
+ type: "source_component";
4044
+ ftype: "simple_battery";
4045
+ source_component_id: string;
4046
+ name: string;
4047
+ capacity: string | number;
4048
+ manufacturer_part_number?: string | undefined;
4049
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4050
+ display_value?: string | undefined;
3745
4051
  }>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3746
4052
  type: z.ZodLiteral<"source_component">;
3747
4053
  ftype: z.ZodOptional<z.ZodString>;
@@ -3957,23 +4263,52 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
3957
4263
  supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
3958
4264
  display_value: z.ZodOptional<z.ZodString>;
3959
4265
  }, {
3960
- ftype: z.ZodLiteral<"simple_power_source">;
3961
- voltage: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4266
+ ftype: z.ZodLiteral<"simple_power_source">;
4267
+ voltage: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
4268
+ }>, "strip", z.ZodTypeAny, {
4269
+ type: "source_component";
4270
+ ftype: "simple_power_source";
4271
+ source_component_id: string;
4272
+ name: string;
4273
+ voltage: number;
4274
+ manufacturer_part_number?: string | undefined;
4275
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4276
+ display_value?: string | undefined;
4277
+ }, {
4278
+ type: "source_component";
4279
+ ftype: "simple_power_source";
4280
+ source_component_id: string;
4281
+ name: string;
4282
+ voltage: string | number;
4283
+ manufacturer_part_number?: string | undefined;
4284
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4285
+ display_value?: string | undefined;
4286
+ }>, z.ZodObject<z.objectUtil.extendShape<{
4287
+ type: z.ZodLiteral<"source_component">;
4288
+ ftype: z.ZodOptional<z.ZodString>;
4289
+ source_component_id: z.ZodString;
4290
+ name: z.ZodString;
4291
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
4292
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
4293
+ display_value: z.ZodOptional<z.ZodString>;
4294
+ }, {
4295
+ ftype: z.ZodLiteral<"simple_battery">;
4296
+ capacity: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>;
3962
4297
  }>, "strip", z.ZodTypeAny, {
3963
4298
  type: "source_component";
3964
- ftype: "simple_power_source";
4299
+ ftype: "simple_battery";
3965
4300
  source_component_id: string;
3966
4301
  name: string;
3967
- voltage: number;
4302
+ capacity: number;
3968
4303
  manufacturer_part_number?: string | undefined;
3969
4304
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
3970
4305
  display_value?: string | undefined;
3971
4306
  }, {
3972
4307
  type: "source_component";
3973
- ftype: "simple_power_source";
4308
+ ftype: "simple_battery";
3974
4309
  source_component_id: string;
3975
4310
  name: string;
3976
- voltage: string | number;
4311
+ capacity: string | number;
3977
4312
  manufacturer_part_number?: string | undefined;
3978
4313
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
3979
4314
  display_value?: string | undefined;
@@ -4098,8 +4433,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4098
4433
  x: number;
4099
4434
  y: number;
4100
4435
  type: "pcb_plated_hole";
4101
- hole_diameter: number;
4102
4436
  shape: "circle";
4437
+ hole_diameter: number;
4103
4438
  outer_diameter: number;
4104
4439
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
4105
4440
  pcb_plated_hole_id: string;
@@ -4110,8 +4445,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4110
4445
  x: string | number;
4111
4446
  y: string | number;
4112
4447
  type: "pcb_plated_hole";
4113
- hole_diameter: number;
4114
4448
  shape: "circle";
4449
+ hole_diameter: number;
4115
4450
  outer_diameter: number;
4116
4451
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
4117
4452
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -4146,9 +4481,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4146
4481
  x: number;
4147
4482
  y: number;
4148
4483
  type: "pcb_plated_hole";
4484
+ shape: "oval" | "pill";
4149
4485
  hole_width: number;
4150
4486
  hole_height: number;
4151
- shape: "oval" | "pill";
4152
4487
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
4153
4488
  pcb_plated_hole_id: string;
4154
4489
  outer_width: number;
@@ -4160,9 +4495,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4160
4495
  x: string | number;
4161
4496
  y: string | number;
4162
4497
  type: "pcb_plated_hole";
4498
+ shape: "oval" | "pill";
4163
4499
  hole_width: number;
4164
4500
  hole_height: number;
4165
- shape: "oval" | "pill";
4166
4501
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
4167
4502
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4168
4503
  })[];
@@ -4537,8 +4872,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4537
4872
  x: number;
4538
4873
  y: number;
4539
4874
  type: "pcb_smtpad";
4540
- layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4541
4875
  shape: "circle";
4876
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4542
4877
  pcb_smtpad_id: string;
4543
4878
  radius: number;
4544
4879
  port_hints?: string[] | undefined;
@@ -4548,10 +4883,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4548
4883
  x: string | number;
4549
4884
  y: string | number;
4550
4885
  type: "pcb_smtpad";
4886
+ shape: "circle";
4551
4887
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
4552
4888
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4553
4889
  };
4554
- shape: "circle";
4555
4890
  radius: number;
4556
4891
  port_hints?: string[] | undefined;
4557
4892
  pcb_component_id?: string | undefined;
@@ -4583,8 +4918,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4583
4918
  type: "pcb_smtpad";
4584
4919
  width: number;
4585
4920
  height: number;
4586
- layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4587
4921
  shape: "rect";
4922
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4588
4923
  pcb_smtpad_id: string;
4589
4924
  port_hints?: string[] | undefined;
4590
4925
  pcb_component_id?: string | undefined;
@@ -4595,10 +4930,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4595
4930
  type: "pcb_smtpad";
4596
4931
  width: number;
4597
4932
  height: number;
4933
+ shape: "rect";
4598
4934
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
4599
4935
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4600
4936
  };
4601
- shape: "rect";
4602
4937
  port_hints?: string[] | undefined;
4603
4938
  pcb_component_id?: string | undefined;
4604
4939
  pcb_port_id?: string | undefined;
@@ -4625,8 +4960,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4625
4960
  x: number;
4626
4961
  y: number;
4627
4962
  type: "pcb_solder_paste";
4628
- layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4629
4963
  shape: "circle";
4964
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4630
4965
  radius: number;
4631
4966
  pcb_solder_paste_id: string;
4632
4967
  pcb_component_id?: string | undefined;
@@ -4635,10 +4970,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4635
4970
  x: string | number;
4636
4971
  y: string | number;
4637
4972
  type: "pcb_solder_paste";
4973
+ shape: "circle";
4638
4974
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
4639
4975
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4640
4976
  };
4641
- shape: "circle";
4642
4977
  radius: number;
4643
4978
  pcb_component_id?: string | undefined;
4644
4979
  pcb_smtpad_id?: string | undefined;
@@ -4668,8 +5003,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4668
5003
  type: "pcb_solder_paste";
4669
5004
  width: number;
4670
5005
  height: number;
4671
- layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4672
5006
  shape: "rect";
5007
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4673
5008
  pcb_solder_paste_id: string;
4674
5009
  pcb_component_id?: string | undefined;
4675
5010
  pcb_smtpad_id?: string | undefined;
@@ -4679,10 +5014,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4679
5014
  type: "pcb_solder_paste";
4680
5015
  width: number;
4681
5016
  height: number;
5017
+ shape: "rect";
4682
5018
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
4683
5019
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4684
5020
  };
4685
- shape: "rect";
4686
5021
  pcb_component_id?: string | undefined;
4687
5022
  pcb_smtpad_id?: string | undefined;
4688
5023
  pcb_solder_paste_id?: string | undefined;
@@ -5728,7 +6063,105 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
5728
6063
  };
5729
6064
  text: string;
5730
6065
  anchor_side: "left" | "right" | "top" | "bottom";
5731
- }>, z.ZodObject<{
6066
+ }>, z.ZodDiscriminatedUnion<"shape", [z.ZodObject<z.objectUtil.extendShape<{
6067
+ type: z.ZodLiteral<"schematic_debug_object">;
6068
+ label: z.ZodOptional<z.ZodString>;
6069
+ }, {
6070
+ shape: z.ZodLiteral<"rect">;
6071
+ center: z.ZodObject<{
6072
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6073
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6074
+ }, "strip", z.ZodTypeAny, {
6075
+ x: number;
6076
+ y: number;
6077
+ }, {
6078
+ x: string | number;
6079
+ y: string | number;
6080
+ }>;
6081
+ size: z.ZodObject<{
6082
+ width: z.ZodNumber;
6083
+ height: z.ZodNumber;
6084
+ }, "strip", z.ZodTypeAny, {
6085
+ width: number;
6086
+ height: number;
6087
+ }, {
6088
+ width: number;
6089
+ height: number;
6090
+ }>;
6091
+ }>, "strip", z.ZodTypeAny, {
6092
+ type: "schematic_debug_object";
6093
+ size: {
6094
+ width: number;
6095
+ height: number;
6096
+ };
6097
+ center: {
6098
+ x: number;
6099
+ y: number;
6100
+ };
6101
+ shape: "rect";
6102
+ label?: string | undefined;
6103
+ }, {
6104
+ type: "schematic_debug_object";
6105
+ size: {
6106
+ width: number;
6107
+ height: number;
6108
+ };
6109
+ center: {
6110
+ x: string | number;
6111
+ y: string | number;
6112
+ };
6113
+ shape: "rect";
6114
+ label?: string | undefined;
6115
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6116
+ type: z.ZodLiteral<"schematic_debug_object">;
6117
+ label: z.ZodOptional<z.ZodString>;
6118
+ }, {
6119
+ shape: z.ZodLiteral<"line">;
6120
+ start: z.ZodObject<{
6121
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6122
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6123
+ }, "strip", z.ZodTypeAny, {
6124
+ x: number;
6125
+ y: number;
6126
+ }, {
6127
+ x: string | number;
6128
+ y: string | number;
6129
+ }>;
6130
+ end: z.ZodObject<{
6131
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6132
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6133
+ }, "strip", z.ZodTypeAny, {
6134
+ x: number;
6135
+ y: number;
6136
+ }, {
6137
+ x: string | number;
6138
+ y: string | number;
6139
+ }>;
6140
+ }>, "strip", z.ZodTypeAny, {
6141
+ type: "schematic_debug_object";
6142
+ shape: "line";
6143
+ start: {
6144
+ x: number;
6145
+ y: number;
6146
+ };
6147
+ end: {
6148
+ x: number;
6149
+ y: number;
6150
+ };
6151
+ label?: string | undefined;
6152
+ }, {
6153
+ type: "schematic_debug_object";
6154
+ shape: "line";
6155
+ start: {
6156
+ x: string | number;
6157
+ y: string | number;
6158
+ };
6159
+ end: {
6160
+ x: string | number;
6161
+ y: string | number;
6162
+ };
6163
+ label?: string | undefined;
6164
+ }>]>, z.ZodObject<{
5732
6165
  type: z.ZodLiteral<"cad_component">;
5733
6166
  cad_component_id: z.ZodString;
5734
6167
  pcb_component_id: z.ZodString;
@@ -6099,6 +6532,35 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
6099
6532
  manufacturer_part_number?: string | undefined;
6100
6533
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
6101
6534
  display_value?: string | undefined;
6535
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6536
+ type: z.ZodLiteral<"source_component">;
6537
+ ftype: z.ZodOptional<z.ZodString>;
6538
+ source_component_id: z.ZodString;
6539
+ name: z.ZodString;
6540
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
6541
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
6542
+ display_value: z.ZodOptional<z.ZodString>;
6543
+ }, {
6544
+ ftype: z.ZodLiteral<"simple_battery">;
6545
+ capacity: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>;
6546
+ }>, "strip", z.ZodTypeAny, {
6547
+ type: "source_component";
6548
+ ftype: "simple_battery";
6549
+ source_component_id: string;
6550
+ name: string;
6551
+ capacity: number;
6552
+ manufacturer_part_number?: string | undefined;
6553
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
6554
+ display_value?: string | undefined;
6555
+ }, {
6556
+ type: "source_component";
6557
+ ftype: "simple_battery";
6558
+ source_component_id: string;
6559
+ name: string;
6560
+ capacity: string | number;
6561
+ manufacturer_part_number?: string | undefined;
6562
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
6563
+ display_value?: string | undefined;
6102
6564
  }>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6103
6565
  type: z.ZodLiteral<"source_component">;
6104
6566
  ftype: z.ZodOptional<z.ZodString>;
@@ -6334,6 +6796,35 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
6334
6796
  manufacturer_part_number?: string | undefined;
6335
6797
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
6336
6798
  display_value?: string | undefined;
6799
+ }>, z.ZodObject<z.objectUtil.extendShape<{
6800
+ type: z.ZodLiteral<"source_component">;
6801
+ ftype: z.ZodOptional<z.ZodString>;
6802
+ source_component_id: z.ZodString;
6803
+ name: z.ZodString;
6804
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
6805
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
6806
+ display_value: z.ZodOptional<z.ZodString>;
6807
+ }, {
6808
+ ftype: z.ZodLiteral<"simple_battery">;
6809
+ capacity: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number, string | number>;
6810
+ }>, "strip", z.ZodTypeAny, {
6811
+ type: "source_component";
6812
+ ftype: "simple_battery";
6813
+ source_component_id: string;
6814
+ name: string;
6815
+ capacity: number;
6816
+ manufacturer_part_number?: string | undefined;
6817
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
6818
+ display_value?: string | undefined;
6819
+ }, {
6820
+ type: "source_component";
6821
+ ftype: "simple_battery";
6822
+ source_component_id: string;
6823
+ name: string;
6824
+ capacity: string | number;
6825
+ manufacturer_part_number?: string | undefined;
6826
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
6827
+ display_value?: string | undefined;
6337
6828
  }>, z.ZodObject<{
6338
6829
  type: z.ZodLiteral<"pcb_component">;
6339
6830
  pcb_component_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -6455,8 +6946,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
6455
6946
  x: number;
6456
6947
  y: number;
6457
6948
  type: "pcb_plated_hole";
6458
- hole_diameter: number;
6459
6949
  shape: "circle";
6950
+ hole_diameter: number;
6460
6951
  outer_diameter: number;
6461
6952
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
6462
6953
  pcb_plated_hole_id: string;
@@ -6467,8 +6958,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
6467
6958
  x: string | number;
6468
6959
  y: string | number;
6469
6960
  type: "pcb_plated_hole";
6470
- hole_diameter: number;
6471
6961
  shape: "circle";
6962
+ hole_diameter: number;
6472
6963
  outer_diameter: number;
6473
6964
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
6474
6965
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -6503,9 +6994,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
6503
6994
  x: number;
6504
6995
  y: number;
6505
6996
  type: "pcb_plated_hole";
6997
+ shape: "oval" | "pill";
6506
6998
  hole_width: number;
6507
6999
  hole_height: number;
6508
- shape: "oval" | "pill";
6509
7000
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
6510
7001
  pcb_plated_hole_id: string;
6511
7002
  outer_width: number;
@@ -6517,9 +7008,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
6517
7008
  x: string | number;
6518
7009
  y: string | number;
6519
7010
  type: "pcb_plated_hole";
7011
+ shape: "oval" | "pill";
6520
7012
  hole_width: number;
6521
7013
  hole_height: number;
6522
- shape: "oval" | "pill";
6523
7014
  layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
6524
7015
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6525
7016
  })[];
@@ -6894,8 +7385,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
6894
7385
  x: number;
6895
7386
  y: number;
6896
7387
  type: "pcb_smtpad";
6897
- layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6898
7388
  shape: "circle";
7389
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6899
7390
  pcb_smtpad_id: string;
6900
7391
  radius: number;
6901
7392
  port_hints?: string[] | undefined;
@@ -6905,10 +7396,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
6905
7396
  x: string | number;
6906
7397
  y: string | number;
6907
7398
  type: "pcb_smtpad";
7399
+ shape: "circle";
6908
7400
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
6909
7401
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6910
7402
  };
6911
- shape: "circle";
6912
7403
  radius: number;
6913
7404
  port_hints?: string[] | undefined;
6914
7405
  pcb_component_id?: string | undefined;
@@ -6940,8 +7431,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
6940
7431
  type: "pcb_smtpad";
6941
7432
  width: number;
6942
7433
  height: number;
6943
- layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6944
7434
  shape: "rect";
7435
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6945
7436
  pcb_smtpad_id: string;
6946
7437
  port_hints?: string[] | undefined;
6947
7438
  pcb_component_id?: string | undefined;
@@ -6952,10 +7443,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
6952
7443
  type: "pcb_smtpad";
6953
7444
  width: number;
6954
7445
  height: number;
7446
+ shape: "rect";
6955
7447
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
6956
7448
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6957
7449
  };
6958
- shape: "rect";
6959
7450
  port_hints?: string[] | undefined;
6960
7451
  pcb_component_id?: string | undefined;
6961
7452
  pcb_port_id?: string | undefined;
@@ -6982,8 +7473,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
6982
7473
  x: number;
6983
7474
  y: number;
6984
7475
  type: "pcb_solder_paste";
6985
- layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6986
7476
  shape: "circle";
7477
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6987
7478
  radius: number;
6988
7479
  pcb_solder_paste_id: string;
6989
7480
  pcb_component_id?: string | undefined;
@@ -6992,10 +7483,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
6992
7483
  x: string | number;
6993
7484
  y: string | number;
6994
7485
  type: "pcb_solder_paste";
7486
+ shape: "circle";
6995
7487
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
6996
7488
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6997
7489
  };
6998
- shape: "circle";
6999
7490
  radius: number;
7000
7491
  pcb_component_id?: string | undefined;
7001
7492
  pcb_smtpad_id?: string | undefined;
@@ -7025,8 +7516,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
7025
7516
  type: "pcb_solder_paste";
7026
7517
  width: number;
7027
7518
  height: number;
7028
- layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
7029
7519
  shape: "rect";
7520
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
7030
7521
  pcb_solder_paste_id: string;
7031
7522
  pcb_component_id?: string | undefined;
7032
7523
  pcb_smtpad_id?: string | undefined;
@@ -7036,10 +7527,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
7036
7527
  type: "pcb_solder_paste";
7037
7528
  width: number;
7038
7529
  height: number;
7530
+ shape: "rect";
7039
7531
  layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
7040
7532
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
7041
7533
  };
7042
- shape: "rect";
7043
7534
  pcb_component_id?: string | undefined;
7044
7535
  pcb_smtpad_id?: string | undefined;
7045
7536
  pcb_solder_paste_id?: string | undefined;
@@ -8085,7 +8576,105 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
8085
8576
  };
8086
8577
  text: string;
8087
8578
  anchor_side: "left" | "right" | "top" | "bottom";
8088
- }>, z.ZodObject<{
8579
+ }>, z.ZodDiscriminatedUnion<"shape", [z.ZodObject<z.objectUtil.extendShape<{
8580
+ type: z.ZodLiteral<"schematic_debug_object">;
8581
+ label: z.ZodOptional<z.ZodString>;
8582
+ }, {
8583
+ shape: z.ZodLiteral<"rect">;
8584
+ center: z.ZodObject<{
8585
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8586
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8587
+ }, "strip", z.ZodTypeAny, {
8588
+ x: number;
8589
+ y: number;
8590
+ }, {
8591
+ x: string | number;
8592
+ y: string | number;
8593
+ }>;
8594
+ size: z.ZodObject<{
8595
+ width: z.ZodNumber;
8596
+ height: z.ZodNumber;
8597
+ }, "strip", z.ZodTypeAny, {
8598
+ width: number;
8599
+ height: number;
8600
+ }, {
8601
+ width: number;
8602
+ height: number;
8603
+ }>;
8604
+ }>, "strip", z.ZodTypeAny, {
8605
+ type: "schematic_debug_object";
8606
+ size: {
8607
+ width: number;
8608
+ height: number;
8609
+ };
8610
+ center: {
8611
+ x: number;
8612
+ y: number;
8613
+ };
8614
+ shape: "rect";
8615
+ label?: string | undefined;
8616
+ }, {
8617
+ type: "schematic_debug_object";
8618
+ size: {
8619
+ width: number;
8620
+ height: number;
8621
+ };
8622
+ center: {
8623
+ x: string | number;
8624
+ y: string | number;
8625
+ };
8626
+ shape: "rect";
8627
+ label?: string | undefined;
8628
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8629
+ type: z.ZodLiteral<"schematic_debug_object">;
8630
+ label: z.ZodOptional<z.ZodString>;
8631
+ }, {
8632
+ shape: z.ZodLiteral<"line">;
8633
+ start: z.ZodObject<{
8634
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8635
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8636
+ }, "strip", z.ZodTypeAny, {
8637
+ x: number;
8638
+ y: number;
8639
+ }, {
8640
+ x: string | number;
8641
+ y: string | number;
8642
+ }>;
8643
+ end: z.ZodObject<{
8644
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8645
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8646
+ }, "strip", z.ZodTypeAny, {
8647
+ x: number;
8648
+ y: number;
8649
+ }, {
8650
+ x: string | number;
8651
+ y: string | number;
8652
+ }>;
8653
+ }>, "strip", z.ZodTypeAny, {
8654
+ type: "schematic_debug_object";
8655
+ shape: "line";
8656
+ start: {
8657
+ x: number;
8658
+ y: number;
8659
+ };
8660
+ end: {
8661
+ x: number;
8662
+ y: number;
8663
+ };
8664
+ label?: string | undefined;
8665
+ }, {
8666
+ type: "schematic_debug_object";
8667
+ shape: "line";
8668
+ start: {
8669
+ x: string | number;
8670
+ y: string | number;
8671
+ };
8672
+ end: {
8673
+ x: string | number;
8674
+ y: string | number;
8675
+ };
8676
+ label?: string | undefined;
8677
+ }>]>, z.ZodObject<{
8089
8678
  type: z.ZodLiteral<"cad_component">;
8090
8679
  cad_component_id: z.ZodString;
8091
8680
  pcb_component_id: z.ZodString;
@@ -8209,4 +8798,4 @@ type AnySoupElement = AnyCircuitElement;
8209
8798
  */
8210
8799
  type AnySoupElementInput = AnyCircuitElementInput;
8211
8800
 
8212
- export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type Distance, 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 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 PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleOval, type PcbHoleOvalInput, 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 PcbSmtPadRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteRect, 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 SchematicError, type SchematicErrorInput, type SchematicLine, type SchematicLineInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceInput, type Size, type SourceComponentBase, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceNet, type SourceNetInput, type SourcePort, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, cad_component, capacitance, current, distance, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, 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_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, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_error, schematic_line, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, size, source_component_base, source_group, source_led, source_net, source_port, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_diode, source_simple_ground, source_simple_power_source, source_simple_resistor, source_trace, supplier_name, time, visible_layer, voltage };
8801
+ export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type Distance, 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 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 PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleOval, type PcbHoleOvalInput, 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 PcbSmtPadRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteRect, 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 SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicLine, type SchematicLineInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceInput, type Size, type SourceComponentBase, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceNet, type SourceNetInput, type SourcePort, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimpleResistor, type SourceSimpleResistorInput, 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, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, 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_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, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_rect, schematic_error, schematic_line, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, size, source_component_base, source_group, source_led, source_net, source_port, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_diode, source_simple_ground, source_simple_power_source, source_simple_resistor, source_trace, supplier_name, time, visible_layer, voltage };