@tscircuit/3d-viewer 0.0.473 → 0.0.475

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.
Files changed (2) hide show
  1. package/dist/index.js +1298 -1267
  2. package/package.json +2 -11
package/dist/index.js CHANGED
@@ -144,8 +144,8 @@ var require_dist = __commonJS({
144
144
  fromValues: (x, y) => [x, y]
145
145
  },
146
146
  vec3: {
147
- create: (x, y, z135) => [x, y, z135],
148
- fromValues: (x, y, z135) => [x, y, z135]
147
+ create: (x, y, z138) => [x, y, z138],
148
+ fromValues: (x, y, z138) => [x, y, z138]
149
149
  }
150
150
  },
151
151
  geometries: {
@@ -532,29 +532,29 @@ var require_fromRotation = __commonJS({
532
532
  var { sin: sin2, cos: cos2 } = require_trigonometry();
533
533
  var identity = require_identity();
534
534
  var fromRotation = (out, rad, axis) => {
535
- let [x, y, z135] = axis;
536
- const lengthSquared = x * x + y * y + z135 * z135;
535
+ let [x, y, z138] = axis;
536
+ const lengthSquared = x * x + y * y + z138 * z138;
537
537
  if (Math.abs(lengthSquared) < EPS) {
538
538
  return identity(out);
539
539
  }
540
540
  const len = 1 / Math.sqrt(lengthSquared);
541
541
  x *= len;
542
542
  y *= len;
543
- z135 *= len;
543
+ z138 *= len;
544
544
  const s = sin2(rad);
545
545
  const c = cos2(rad);
546
546
  const t = 1 - c;
547
547
  out[0] = x * x * t + c;
548
- out[1] = y * x * t + z135 * s;
549
- out[2] = z135 * x * t - y * s;
548
+ out[1] = y * x * t + z138 * s;
549
+ out[2] = z138 * x * t - y * s;
550
550
  out[3] = 0;
551
- out[4] = x * y * t - z135 * s;
551
+ out[4] = x * y * t - z138 * s;
552
552
  out[5] = y * y * t + c;
553
- out[6] = z135 * y * t + x * s;
553
+ out[6] = z138 * y * t + x * s;
554
554
  out[7] = 0;
555
- out[8] = x * z135 * t + y * s;
556
- out[9] = y * z135 * t - x * s;
557
- out[10] = z135 * z135 * t + c;
555
+ out[8] = x * z138 * t + y * s;
556
+ out[9] = y * z138 * t - x * s;
557
+ out[10] = z138 * z138 * t + c;
558
558
  out[11] = 0;
559
559
  out[12] = 0;
560
560
  out[13] = 0;
@@ -808,8 +808,8 @@ var require_distance = __commonJS({
808
808
  var distance2 = (a, b) => {
809
809
  const x = b[0] - a[0];
810
810
  const y = b[1] - a[1];
811
- const z135 = b[2] - a[2];
812
- return Math.sqrt(x * x + y * y + z135 * z135);
811
+ const z138 = b[2] - a[2];
812
+ return Math.sqrt(x * x + y * y + z138 * z138);
813
813
  };
814
814
  module.exports = distance2;
815
815
  }
@@ -857,11 +857,11 @@ var require_fromValues2 = __commonJS({
857
857
  "node_modules/@jscad/modeling/src/maths/vec3/fromValues.js"(exports, module) {
858
858
  "use strict";
859
859
  var create = require_create2();
860
- var fromValues = (x, y, z135) => {
860
+ var fromValues = (x, y, z138) => {
861
861
  const out = create();
862
862
  out[0] = x;
863
863
  out[1] = y;
864
- out[2] = z135;
864
+ out[2] = z138;
865
865
  return out;
866
866
  };
867
867
  module.exports = fromValues;
@@ -872,10 +872,10 @@ var require_fromValues2 = __commonJS({
872
872
  var require_fromVec2 = __commonJS({
873
873
  "node_modules/@jscad/modeling/src/maths/vec3/fromVec2.js"(exports, module) {
874
874
  "use strict";
875
- var fromVector2 = (out, vector, z135 = 0) => {
875
+ var fromVector2 = (out, vector, z138 = 0) => {
876
876
  out[0] = vector[0];
877
877
  out[1] = vector[1];
878
- out[2] = z135;
878
+ out[2] = z138;
879
879
  return out;
880
880
  };
881
881
  module.exports = fromVector2;
@@ -889,8 +889,8 @@ var require_length = __commonJS({
889
889
  var length2 = (vector) => {
890
890
  const x = vector[0];
891
891
  const y = vector[1];
892
- const z135 = vector[2];
893
- return Math.sqrt(x * x + y * y + z135 * z135);
892
+ const z138 = vector[2];
893
+ return Math.sqrt(x * x + y * y + z138 * z138);
894
894
  };
895
895
  module.exports = length2;
896
896
  }
@@ -973,14 +973,14 @@ var require_normalize = __commonJS({
973
973
  var normalize = (out, vector) => {
974
974
  const x = vector[0];
975
975
  const y = vector[1];
976
- const z135 = vector[2];
977
- let len = x * x + y * y + z135 * z135;
976
+ const z138 = vector[2];
977
+ let len = x * x + y * y + z138 * z138;
978
978
  if (len > 0) {
979
979
  len = 1 / Math.sqrt(len);
980
980
  }
981
981
  out[0] = x * len;
982
982
  out[1] = y * len;
983
- out[2] = z135 * len;
983
+ out[2] = z138 * len;
984
984
  return out;
985
985
  };
986
986
  module.exports = normalize;
@@ -1104,8 +1104,8 @@ var require_squaredDistance = __commonJS({
1104
1104
  var squaredDistance = (a, b) => {
1105
1105
  const x = b[0] - a[0];
1106
1106
  const y = b[1] - a[1];
1107
- const z135 = b[2] - a[2];
1108
- return x * x + y * y + z135 * z135;
1107
+ const z138 = b[2] - a[2];
1108
+ return x * x + y * y + z138 * z138;
1109
1109
  };
1110
1110
  module.exports = squaredDistance;
1111
1111
  }
@@ -1118,8 +1118,8 @@ var require_squaredLength = __commonJS({
1118
1118
  var squaredLength = (vector) => {
1119
1119
  const x = vector[0];
1120
1120
  const y = vector[1];
1121
- const z135 = vector[2];
1122
- return x * x + y * y + z135 * z135;
1121
+ const z138 = vector[2];
1122
+ return x * x + y * y + z138 * z138;
1123
1123
  };
1124
1124
  module.exports = squaredLength;
1125
1125
  }
@@ -1155,12 +1155,12 @@ var require_transform = __commonJS({
1155
1155
  var transform2 = (out, vector, matrix) => {
1156
1156
  const x = vector[0];
1157
1157
  const y = vector[1];
1158
- const z135 = vector[2];
1159
- let w = matrix[3] * x + matrix[7] * y + matrix[11] * z135 + matrix[15];
1158
+ const z138 = vector[2];
1159
+ let w = matrix[3] * x + matrix[7] * y + matrix[11] * z138 + matrix[15];
1160
1160
  w = w || 1;
1161
- out[0] = (matrix[0] * x + matrix[4] * y + matrix[8] * z135 + matrix[12]) / w;
1162
- out[1] = (matrix[1] * x + matrix[5] * y + matrix[9] * z135 + matrix[13]) / w;
1163
- out[2] = (matrix[2] * x + matrix[6] * y + matrix[10] * z135 + matrix[14]) / w;
1161
+ out[0] = (matrix[0] * x + matrix[4] * y + matrix[8] * z138 + matrix[12]) / w;
1162
+ out[1] = (matrix[1] * x + matrix[5] * y + matrix[9] * z138 + matrix[13]) / w;
1163
+ out[2] = (matrix[2] * x + matrix[6] * y + matrix[10] * z138 + matrix[14]) / w;
1164
1164
  return out;
1165
1165
  };
1166
1166
  module.exports = transform2;
@@ -1362,8 +1362,8 @@ var require_isMirroring = __commonJS({
1362
1362
  var isMirroring = (matrix) => {
1363
1363
  const x = matrix[4] * matrix[9] - matrix[8] * matrix[5];
1364
1364
  const y = matrix[8] * matrix[1] - matrix[0] * matrix[9];
1365
- const z135 = matrix[0] * matrix[5] - matrix[4] * matrix[1];
1366
- const d = x * matrix[2] + y * matrix[6] + z135 * matrix[10];
1365
+ const z138 = matrix[0] * matrix[5] - matrix[4] * matrix[1];
1366
+ const d = x * matrix[2] + y * matrix[6] + z138 * matrix[10];
1367
1367
  return d < 0;
1368
1368
  };
1369
1369
  module.exports = isMirroring;
@@ -1465,15 +1465,15 @@ var require_rotate = __commonJS({
1465
1465
  var { sin: sin2, cos: cos2 } = require_trigonometry();
1466
1466
  var copy = require_copy();
1467
1467
  var rotate3 = (out, matrix, radians, axis) => {
1468
- let [x, y, z135] = axis;
1469
- const lengthSquared = x * x + y * y + z135 * z135;
1468
+ let [x, y, z138] = axis;
1469
+ const lengthSquared = x * x + y * y + z138 * z138;
1470
1470
  if (Math.abs(lengthSquared) < EPS) {
1471
1471
  return copy(out, matrix);
1472
1472
  }
1473
1473
  const len = 1 / Math.sqrt(lengthSquared);
1474
1474
  x *= len;
1475
1475
  y *= len;
1476
- z135 *= len;
1476
+ z138 *= len;
1477
1477
  const s = sin2(radians);
1478
1478
  const c = cos2(radians);
1479
1479
  const t = 1 - c;
@@ -1490,14 +1490,14 @@ var require_rotate = __commonJS({
1490
1490
  const a22 = matrix[10];
1491
1491
  const a23 = matrix[11];
1492
1492
  const b00 = x * x * t + c;
1493
- const b01 = y * x * t + z135 * s;
1494
- const b02 = z135 * x * t - y * s;
1495
- const b10 = x * y * t - z135 * s;
1493
+ const b01 = y * x * t + z138 * s;
1494
+ const b02 = z138 * x * t - y * s;
1495
+ const b10 = x * y * t - z138 * s;
1496
1496
  const b11 = y * y * t + c;
1497
- const b12 = z135 * y * t + x * s;
1498
- const b20 = x * z135 * t + y * s;
1499
- const b21 = y * z135 * t - x * s;
1500
- const b22 = z135 * z135 * t + c;
1497
+ const b12 = z138 * y * t + x * s;
1498
+ const b20 = x * z138 * t + y * s;
1499
+ const b21 = y * z138 * t - x * s;
1500
+ const b22 = z138 * z138 * t + c;
1501
1501
  out[0] = a00 * b00 + a10 * b01 + a20 * b02;
1502
1502
  out[1] = a01 * b00 + a11 * b01 + a21 * b02;
1503
1503
  out[2] = a02 * b00 + a12 * b01 + a22 * b02;
@@ -1649,7 +1649,7 @@ var require_scale2 = __commonJS({
1649
1649
  var scale3 = (out, matrix, dimensions) => {
1650
1650
  const x = dimensions[0];
1651
1651
  const y = dimensions[1];
1652
- const z135 = dimensions[2];
1652
+ const z138 = dimensions[2];
1653
1653
  out[0] = matrix[0] * x;
1654
1654
  out[1] = matrix[1] * x;
1655
1655
  out[2] = matrix[2] * x;
@@ -1658,10 +1658,10 @@ var require_scale2 = __commonJS({
1658
1658
  out[5] = matrix[5] * y;
1659
1659
  out[6] = matrix[6] * y;
1660
1660
  out[7] = matrix[7] * y;
1661
- out[8] = matrix[8] * z135;
1662
- out[9] = matrix[9] * z135;
1663
- out[10] = matrix[10] * z135;
1664
- out[11] = matrix[11] * z135;
1661
+ out[8] = matrix[8] * z138;
1662
+ out[9] = matrix[9] * z138;
1663
+ out[10] = matrix[10] * z138;
1664
+ out[11] = matrix[11] * z138;
1665
1665
  out[12] = matrix[12];
1666
1666
  out[13] = matrix[13];
1667
1667
  out[14] = matrix[14];
@@ -1715,7 +1715,7 @@ var require_translate = __commonJS({
1715
1715
  var translate7 = (out, matrix, offsets) => {
1716
1716
  const x = offsets[0];
1717
1717
  const y = offsets[1];
1718
- const z135 = offsets[2];
1718
+ const z138 = offsets[2];
1719
1719
  let a00;
1720
1720
  let a01;
1721
1721
  let a02;
@@ -1729,10 +1729,10 @@ var require_translate = __commonJS({
1729
1729
  let a22;
1730
1730
  let a23;
1731
1731
  if (matrix === out) {
1732
- out[12] = matrix[0] * x + matrix[4] * y + matrix[8] * z135 + matrix[12];
1733
- out[13] = matrix[1] * x + matrix[5] * y + matrix[9] * z135 + matrix[13];
1734
- out[14] = matrix[2] * x + matrix[6] * y + matrix[10] * z135 + matrix[14];
1735
- out[15] = matrix[3] * x + matrix[7] * y + matrix[11] * z135 + matrix[15];
1732
+ out[12] = matrix[0] * x + matrix[4] * y + matrix[8] * z138 + matrix[12];
1733
+ out[13] = matrix[1] * x + matrix[5] * y + matrix[9] * z138 + matrix[13];
1734
+ out[14] = matrix[2] * x + matrix[6] * y + matrix[10] * z138 + matrix[14];
1735
+ out[15] = matrix[3] * x + matrix[7] * y + matrix[11] * z138 + matrix[15];
1736
1736
  } else {
1737
1737
  a00 = matrix[0];
1738
1738
  a01 = matrix[1];
@@ -1758,10 +1758,10 @@ var require_translate = __commonJS({
1758
1758
  out[9] = a21;
1759
1759
  out[10] = a22;
1760
1760
  out[11] = a23;
1761
- out[12] = a00 * x + a10 * y + a20 * z135 + matrix[12];
1762
- out[13] = a01 * x + a11 * y + a21 * z135 + matrix[13];
1763
- out[14] = a02 * x + a12 * y + a22 * z135 + matrix[14];
1764
- out[15] = a03 * x + a13 * y + a23 * z135 + matrix[15];
1761
+ out[12] = a00 * x + a10 * y + a20 * z138 + matrix[12];
1762
+ out[13] = a01 * x + a11 * y + a21 * z138 + matrix[13];
1763
+ out[14] = a02 * x + a12 * y + a22 * z138 + matrix[14];
1764
+ out[15] = a03 * x + a13 * y + a23 * z138 + matrix[15];
1765
1765
  }
1766
1766
  return out;
1767
1767
  };
@@ -3831,11 +3831,11 @@ var require_fromValues4 = __commonJS({
3831
3831
  "node_modules/@jscad/modeling/src/maths/vec4/fromValues.js"(exports, module) {
3832
3832
  "use strict";
3833
3833
  var create = require_create7();
3834
- var fromValues = (x, y, z135, w) => {
3834
+ var fromValues = (x, y, z138, w) => {
3835
3835
  const out = create();
3836
3836
  out[0] = x;
3837
3837
  out[1] = y;
3838
- out[2] = z135;
3838
+ out[2] = z138;
3839
3839
  out[3] = w;
3840
3840
  return out;
3841
3841
  };
@@ -3993,8 +3993,8 @@ var require_projectionOfPoint = __commonJS({
3993
3993
  const a = point2[0] * plane[0] + point2[1] * plane[1] + point2[2] * plane[2] - plane[3];
3994
3994
  const x = point2[0] - a * plane[0];
3995
3995
  const y = point2[1] - a * plane[1];
3996
- const z135 = point2[2] - a * plane[2];
3997
- return vec3.fromValues(x, y, z135);
3996
+ const z138 = point2[2] - a * plane[2];
3997
+ return vec3.fromValues(x, y, z138);
3998
3998
  };
3999
3999
  module.exports = projectionOfPoint;
4000
4000
  }
@@ -4298,11 +4298,11 @@ var require_transform5 = __commonJS({
4298
4298
  "node_modules/@jscad/modeling/src/maths/vec4/transform.js"(exports, module) {
4299
4299
  "use strict";
4300
4300
  var transform2 = (out, vector, matrix) => {
4301
- const [x, y, z135, w] = vector;
4302
- out[0] = matrix[0] * x + matrix[4] * y + matrix[8] * z135 + matrix[12] * w;
4303
- out[1] = matrix[1] * x + matrix[5] * y + matrix[9] * z135 + matrix[13] * w;
4304
- out[2] = matrix[2] * x + matrix[6] * y + matrix[10] * z135 + matrix[14] * w;
4305
- out[3] = matrix[3] * x + matrix[7] * y + matrix[11] * z135 + matrix[15] * w;
4301
+ const [x, y, z138, w] = vector;
4302
+ out[0] = matrix[0] * x + matrix[4] * y + matrix[8] * z138 + matrix[12] * w;
4303
+ out[1] = matrix[1] * x + matrix[5] * y + matrix[9] * z138 + matrix[13] * w;
4304
+ out[2] = matrix[2] * x + matrix[6] * y + matrix[10] * z138 + matrix[14] * w;
4305
+ out[3] = matrix[3] * x + matrix[7] * y + matrix[11] * z138 + matrix[15] * w;
4306
4306
  return out;
4307
4307
  };
4308
4308
  module.exports = transform2;
@@ -4364,8 +4364,8 @@ var require_measureBoundingSphere = __commonJS({
4364
4364
  out[2] = (minz[2] + maxz[2]) * 0.5;
4365
4365
  const x = out[0] - maxx[0];
4366
4366
  const y = out[1] - maxy[1];
4367
- const z135 = out[2] - maxz[2];
4368
- out[3] = Math.sqrt(x * x + y * y + z135 * z135);
4367
+ const z138 = out[2] - maxz[2];
4368
+ out[3] = Math.sqrt(x * x + y * y + z138 * z138);
4369
4369
  cache.set(polygon3, out);
4370
4370
  return out;
4371
4371
  };
@@ -14791,7 +14791,7 @@ var import_jscad_planner = __toESM(require_dist(), 1);
14791
14791
  var import_modeling = __toESM(require_src(), 1);
14792
14792
 
14793
14793
  // node_modules/@tscircuit/footprinter/dist/index.js
14794
- import { z as z133 } from "zod";
14794
+ import { z as z136 } from "zod";
14795
14795
 
14796
14796
  // node_modules/@tscircuit/mm/dist/index.js
14797
14797
  var unitToMm = {
@@ -14835,8 +14835,8 @@ import { z as z12 } from "zod";
14835
14835
  import { z as z13 } from "zod";
14836
14836
  import { z as z14 } from "zod";
14837
14837
  import { z as z15 } from "zod";
14838
- import { z as z36 } from "zod";
14839
14838
  import { z as z16 } from "zod";
14839
+ import { z as z38 } from "zod";
14840
14840
  import { z as z17 } from "zod";
14841
14841
  import { z as z18 } from "zod";
14842
14842
  import { z as z19 } from "zod";
@@ -14856,17 +14856,17 @@ import { z as z32 } from "zod";
14856
14856
  import { z as z33 } from "zod";
14857
14857
  import { z as z34 } from "zod";
14858
14858
  import { z as z35 } from "zod";
14859
+ import { z as z36 } from "zod";
14859
14860
  import { z as z37 } from "zod";
14860
- import { z as z38 } from "zod";
14861
14861
  import { z as z39 } from "zod";
14862
14862
  import { z as z40 } from "zod";
14863
14863
  import { z as z41 } from "zod";
14864
14864
  import { z as z42 } from "zod";
14865
- import { z as z44 } from "zod";
14866
14865
  import { z as z43 } from "zod";
14866
+ import { z as z44 } from "zod";
14867
14867
  import { z as z45 } from "zod";
14868
- import { z as z46 } from "zod";
14869
14868
  import { z as z47 } from "zod";
14869
+ import { z as z46 } from "zod";
14870
14870
  import { z as z48 } from "zod";
14871
14871
  import { z as z49 } from "zod";
14872
14872
  import { z as z50 } from "zod";
@@ -14874,11 +14874,11 @@ import { z as z51 } from "zod";
14874
14874
  import { z as z52 } from "zod";
14875
14875
  import { z as z53 } from "zod";
14876
14876
  import { z as z54 } from "zod";
14877
- import { z as z56 } from "zod";
14878
14877
  import { z as z55 } from "zod";
14878
+ import { z as z56 } from "zod";
14879
14879
  import { z as z57 } from "zod";
14880
- import { z as z58 } from "zod";
14881
14880
  import { z as z59 } from "zod";
14881
+ import { z as z58 } from "zod";
14882
14882
  import { z as z60 } from "zod";
14883
14883
  import { z as z61 } from "zod";
14884
14884
  import { z as z62 } from "zod";
@@ -14952,6 +14952,9 @@ import { z as z129 } from "zod";
14952
14952
  import { z as z130 } from "zod";
14953
14953
  import { z as z131 } from "zod";
14954
14954
  import { z as z132 } from "zod";
14955
+ import { z as z133 } from "zod";
14956
+ import { z as z134 } from "zod";
14957
+ import { z as z135 } from "zod";
14955
14958
  var unitMappings = {
14956
14959
  Hz: {
14957
14960
  baseUnit: "Hz",
@@ -15288,191 +15291,200 @@ var source_simple_diode = source_component_base.extend({
15288
15291
  ftype: z11.literal("simple_diode")
15289
15292
  });
15290
15293
  expectTypesMatch(true);
15294
+ var source_simple_fiducial = source_component_base.extend({
15295
+ ftype: z12.literal("simple_fiducial")
15296
+ });
15297
+ expectTypesMatch(true);
15291
15298
  var source_simple_led = source_simple_diode.extend({
15292
- ftype: z12.literal("simple_led"),
15293
- color: z12.string().optional(),
15294
- wavelength: z12.string().optional()
15299
+ ftype: z13.literal("simple_led"),
15300
+ color: z13.string().optional(),
15301
+ wavelength: z13.string().optional()
15295
15302
  });
15296
15303
  expectTypesMatch(true);
15297
15304
  var source_simple_ground = source_component_base.extend({
15298
- ftype: z13.literal("simple_ground")
15305
+ ftype: z14.literal("simple_ground")
15299
15306
  });
15300
15307
  expectTypesMatch(true);
15301
15308
  var source_simple_chip = source_component_base.extend({
15302
- ftype: z14.literal("simple_chip")
15309
+ ftype: z15.literal("simple_chip")
15303
15310
  });
15304
15311
  expectTypesMatch(true);
15305
15312
  var source_simple_power_source = source_component_base.extend({
15306
- ftype: z15.literal("simple_power_source"),
15313
+ ftype: z16.literal("simple_power_source"),
15307
15314
  voltage
15308
15315
  });
15309
15316
  expectTypesMatch(true);
15310
15317
  var source_simple_fuse = source_component_base.extend({
15311
- ftype: z16.literal("simple_fuse"),
15312
- current_rating_amps: z16.number().describe("Nominal current in amps the fuse is rated for"),
15313
- voltage_rating_volts: z16.number().describe("Voltage rating in volts, e.g. \xB15V would be 5")
15318
+ ftype: z17.literal("simple_fuse"),
15319
+ current_rating_amps: z17.number().describe("Nominal current in amps the fuse is rated for"),
15320
+ voltage_rating_volts: z17.number().describe("Voltage rating in volts, e.g. \xB15V would be 5")
15314
15321
  });
15315
15322
  expectTypesMatch(true);
15316
15323
  var source_simple_battery = source_component_base.extend({
15317
- ftype: z17.literal("simple_battery"),
15324
+ ftype: z18.literal("simple_battery"),
15318
15325
  capacity: battery_capacity
15319
15326
  });
15320
15327
  expectTypesMatch(true);
15321
15328
  var source_simple_inductor = source_component_base.extend({
15322
- ftype: z18.literal("simple_inductor"),
15329
+ ftype: z19.literal("simple_inductor"),
15323
15330
  inductance,
15324
- max_current_rating: z18.number().optional()
15331
+ max_current_rating: z19.number().optional()
15325
15332
  });
15326
15333
  expectTypesMatch(true);
15327
15334
  var source_simple_push_button = source_component_base.extend({
15328
- ftype: z19.literal("simple_push_button")
15335
+ ftype: z20.literal("simple_push_button")
15329
15336
  });
15330
15337
  expectTypesMatch(true);
15331
15338
  var source_simple_potentiometer = source_component_base.extend({
15332
- ftype: z20.literal("simple_potentiometer"),
15339
+ ftype: z21.literal("simple_potentiometer"),
15333
15340
  max_resistance: resistance
15334
15341
  });
15335
15342
  expectTypesMatch(
15336
15343
  true
15337
15344
  );
15338
15345
  var source_simple_crystal = source_component_base.extend({
15339
- ftype: z21.literal("simple_crystal"),
15340
- frequency: z21.number().describe("Frequency in Hz"),
15341
- load_capacitance: z21.number().optional().describe("Load capacitance in pF")
15346
+ ftype: z22.literal("simple_crystal"),
15347
+ frequency: z22.number().describe("Frequency in Hz"),
15348
+ load_capacitance: z22.number().optional().describe("Load capacitance in pF")
15342
15349
  });
15343
15350
  expectTypesMatch(true);
15344
15351
  var source_simple_pin_header = source_component_base.extend({
15345
- ftype: z22.literal("simple_pin_header"),
15346
- pin_count: z22.number(),
15347
- gender: z22.enum(["male", "female"]).optional().default("male")
15352
+ ftype: z23.literal("simple_pin_header"),
15353
+ pin_count: z23.number(),
15354
+ gender: z23.enum(["male", "female"]).optional().default("male")
15348
15355
  });
15349
15356
  expectTypesMatch(true);
15350
15357
  var source_simple_pinout = source_component_base.extend({
15351
- ftype: z23.literal("simple_pinout")
15358
+ ftype: z24.literal("simple_pinout")
15352
15359
  });
15353
15360
  expectTypesMatch(true);
15354
15361
  var source_simple_resonator = source_component_base.extend({
15355
- ftype: z24.literal("simple_resonator"),
15362
+ ftype: z25.literal("simple_resonator"),
15356
15363
  load_capacitance: capacitance,
15357
15364
  equivalent_series_resistance: resistance.optional(),
15358
15365
  frequency
15359
15366
  });
15360
15367
  expectTypesMatch(true);
15361
15368
  var source_simple_transistor = source_component_base.extend({
15362
- ftype: z25.literal("simple_transistor"),
15363
- transistor_type: z25.enum(["npn", "pnp"])
15369
+ ftype: z26.literal("simple_transistor"),
15370
+ transistor_type: z26.enum(["npn", "pnp"])
15364
15371
  });
15365
15372
  expectTypesMatch(true);
15366
15373
  var source_simple_test_point = source_component_base.extend({
15367
- ftype: z26.literal("simple_test_point"),
15368
- footprint_variant: z26.enum(["pad", "through_hole"]).optional(),
15369
- pad_shape: z26.enum(["rect", "circle"]).optional(),
15370
- pad_diameter: z26.union([z26.number(), z26.string()]).optional(),
15371
- hole_diameter: z26.union([z26.number(), z26.string()]).optional(),
15372
- width: z26.union([z26.number(), z26.string()]).optional(),
15373
- height: z26.union([z26.number(), z26.string()]).optional()
15374
+ ftype: z27.literal("simple_test_point"),
15375
+ footprint_variant: z27.enum(["pad", "through_hole"]).optional(),
15376
+ pad_shape: z27.enum(["rect", "circle"]).optional(),
15377
+ pad_diameter: z27.union([z27.number(), z27.string()]).optional(),
15378
+ hole_diameter: z27.union([z27.number(), z27.string()]).optional(),
15379
+ width: z27.union([z27.number(), z27.string()]).optional(),
15380
+ height: z27.union([z27.number(), z27.string()]).optional()
15374
15381
  });
15375
15382
  expectTypesMatch(true);
15376
15383
  var source_simple_mosfet = source_component_base.extend({
15377
- ftype: z27.literal("simple_mosfet"),
15378
- channel_type: z27.enum(["n", "p"]),
15379
- mosfet_mode: z27.enum(["enhancement", "depletion"])
15384
+ ftype: z28.literal("simple_mosfet"),
15385
+ channel_type: z28.enum(["n", "p"]),
15386
+ mosfet_mode: z28.enum(["enhancement", "depletion"])
15380
15387
  });
15381
15388
  expectTypesMatch(true);
15382
15389
  var source_simple_switch = source_component_base.extend({
15383
- ftype: z28.literal("simple_switch")
15390
+ ftype: z29.literal("simple_switch")
15384
15391
  });
15385
15392
  expectTypesMatch(true);
15386
- var source_project_metadata = z29.object({
15387
- type: z29.literal("source_project_metadata"),
15388
- name: z29.string().optional(),
15389
- software_used_string: z29.string().optional(),
15390
- project_url: z29.string().optional(),
15393
+ var source_project_metadata = z30.object({
15394
+ type: z30.literal("source_project_metadata"),
15395
+ name: z30.string().optional(),
15396
+ software_used_string: z30.string().optional(),
15397
+ project_url: z30.string().optional(),
15391
15398
  created_at: timestamp.optional()
15392
15399
  });
15393
15400
  expectTypesMatch(true);
15394
- var source_missing_property_error = z30.object({
15395
- type: z30.literal("source_missing_property_error"),
15401
+ var source_missing_property_error = z31.object({
15402
+ type: z31.literal("source_missing_property_error"),
15396
15403
  source_missing_property_error_id: getZodPrefixedIdWithDefault(
15397
15404
  "source_missing_property_error"
15398
15405
  ),
15399
- source_component_id: z30.string(),
15400
- property_name: z30.string(),
15401
- subcircuit_id: z30.string().optional(),
15402
- error_type: z30.literal("source_missing_property_error").default("source_missing_property_error"),
15403
- message: z30.string()
15406
+ source_component_id: z31.string(),
15407
+ property_name: z31.string(),
15408
+ subcircuit_id: z31.string().optional(),
15409
+ error_type: z31.literal("source_missing_property_error").default("source_missing_property_error"),
15410
+ message: z31.string()
15404
15411
  }).describe("The source code is missing a property");
15405
15412
  expectTypesMatch(true);
15406
- var source_failed_to_create_component_error = z31.object({
15407
- type: z31.literal("source_failed_to_create_component_error"),
15413
+ var source_failed_to_create_component_error = z32.object({
15414
+ type: z32.literal("source_failed_to_create_component_error"),
15408
15415
  source_failed_to_create_component_error_id: getZodPrefixedIdWithDefault(
15409
15416
  "source_failed_to_create_component_error"
15410
15417
  ),
15411
- error_type: z31.literal("source_failed_to_create_component_error").default("source_failed_to_create_component_error"),
15412
- component_name: z31.string().optional(),
15413
- subcircuit_id: z31.string().optional(),
15414
- parent_source_component_id: z31.string().optional(),
15415
- message: z31.string(),
15416
- pcb_center: z31.object({
15417
- x: z31.number().optional(),
15418
- y: z31.number().optional()
15418
+ error_type: z32.literal("source_failed_to_create_component_error").default("source_failed_to_create_component_error"),
15419
+ component_name: z32.string().optional(),
15420
+ subcircuit_id: z32.string().optional(),
15421
+ parent_source_component_id: z32.string().optional(),
15422
+ message: z32.string(),
15423
+ pcb_center: z32.object({
15424
+ x: z32.number().optional(),
15425
+ y: z32.number().optional()
15419
15426
  }).optional(),
15420
- schematic_center: z31.object({
15421
- x: z31.number().optional(),
15422
- y: z31.number().optional()
15427
+ schematic_center: z32.object({
15428
+ x: z32.number().optional(),
15429
+ y: z32.number().optional()
15423
15430
  }).optional()
15424
15431
  }).describe("Error emitted when a component fails to be constructed");
15425
15432
  expectTypesMatch(true);
15426
- var source_trace_not_connected_error = z32.object({
15427
- type: z32.literal("source_trace_not_connected_error"),
15433
+ var source_trace_not_connected_error = z33.object({
15434
+ type: z33.literal("source_trace_not_connected_error"),
15428
15435
  source_trace_not_connected_error_id: getZodPrefixedIdWithDefault(
15429
15436
  "source_trace_not_connected_error"
15430
15437
  ),
15431
- error_type: z32.literal("source_trace_not_connected_error").default("source_trace_not_connected_error"),
15432
- message: z32.string(),
15433
- subcircuit_id: z32.string().optional(),
15434
- source_group_id: z32.string().optional(),
15435
- source_trace_id: z32.string().optional(),
15436
- connected_source_port_ids: z32.array(z32.string()).optional(),
15437
- selectors_not_found: z32.array(z32.string()).optional()
15438
+ error_type: z33.literal("source_trace_not_connected_error").default("source_trace_not_connected_error"),
15439
+ message: z33.string(),
15440
+ subcircuit_id: z33.string().optional(),
15441
+ source_group_id: z33.string().optional(),
15442
+ source_trace_id: z33.string().optional(),
15443
+ connected_source_port_ids: z33.array(z33.string()).optional(),
15444
+ selectors_not_found: z33.array(z33.string()).optional()
15438
15445
  }).describe("Occurs when a source trace selector does not match any ports");
15439
15446
  expectTypesMatch(true);
15440
- var source_property_ignored_warning = z33.object({
15441
- type: z33.literal("source_property_ignored_warning"),
15447
+ var source_property_ignored_warning = z34.object({
15448
+ type: z34.literal("source_property_ignored_warning"),
15442
15449
  source_property_ignored_warning_id: getZodPrefixedIdWithDefault(
15443
15450
  "source_property_ignored_warning"
15444
15451
  ),
15445
- source_component_id: z33.string(),
15446
- property_name: z33.string(),
15447
- subcircuit_id: z33.string().optional(),
15448
- error_type: z33.literal("source_property_ignored_warning").default("source_property_ignored_warning"),
15449
- message: z33.string()
15452
+ source_component_id: z34.string(),
15453
+ property_name: z34.string(),
15454
+ subcircuit_id: z34.string().optional(),
15455
+ error_type: z34.literal("source_property_ignored_warning").default("source_property_ignored_warning"),
15456
+ message: z34.string()
15450
15457
  }).describe("The source property was ignored");
15451
15458
  expectTypesMatch(true);
15452
- var source_pin_missing_trace_warning = z34.object({
15453
- type: z34.literal("source_pin_missing_trace_warning"),
15459
+ var source_pin_missing_trace_warning = z35.object({
15460
+ type: z35.literal("source_pin_missing_trace_warning"),
15454
15461
  source_pin_missing_trace_warning_id: getZodPrefixedIdWithDefault(
15455
15462
  "source_pin_missing_trace_warning"
15456
15463
  ),
15457
- warning_type: z34.literal("source_pin_missing_trace_warning").default("source_pin_missing_trace_warning"),
15458
- message: z34.string(),
15459
- source_component_id: z34.string(),
15460
- source_port_id: z34.string(),
15461
- subcircuit_id: z34.string().optional()
15464
+ warning_type: z35.literal("source_pin_missing_trace_warning").default("source_pin_missing_trace_warning"),
15465
+ message: z35.string(),
15466
+ source_component_id: z35.string(),
15467
+ source_port_id: z35.string(),
15468
+ subcircuit_id: z35.string().optional()
15462
15469
  }).describe(
15463
15470
  "Warning emitted when a source component pin is missing a trace connection"
15464
15471
  );
15465
15472
  expectTypesMatch(true);
15466
15473
  var source_simple_voltage_probe = source_component_base.extend({
15467
- ftype: z35.literal("simple_voltage_probe")
15474
+ ftype: z36.literal("simple_voltage_probe")
15468
15475
  });
15469
15476
  expectTypesMatch(
15470
15477
  true
15471
15478
  );
15472
- var any_source_component = z36.union([
15479
+ var source_interconnect = source_component_base.extend({
15480
+ ftype: z37.literal("interconnect")
15481
+ });
15482
+ expectTypesMatch(true);
15483
+ var any_source_component = z38.union([
15473
15484
  source_simple_resistor,
15474
15485
  source_simple_capacitor,
15475
15486
  source_simple_diode,
15487
+ source_simple_fiducial,
15476
15488
  source_simple_led,
15477
15489
  source_simple_ground,
15478
15490
  source_simple_chip,
@@ -15491,6 +15503,7 @@ var any_source_component = z36.union([
15491
15503
  source_simple_mosfet,
15492
15504
  source_simple_fuse,
15493
15505
  source_simple_voltage_probe,
15506
+ source_interconnect,
15494
15507
  source_project_metadata,
15495
15508
  source_missing_property_error,
15496
15509
  source_failed_to_create_component_error,
@@ -15499,71 +15512,79 @@ var any_source_component = z36.union([
15499
15512
  source_pin_missing_trace_warning
15500
15513
  ]);
15501
15514
  expectTypesMatch(true);
15502
- var source_port = z37.object({
15503
- type: z37.literal("source_port"),
15504
- pin_number: z37.number().optional(),
15505
- port_hints: z37.array(z37.string()).optional(),
15506
- name: z37.string(),
15507
- source_port_id: z37.string(),
15508
- source_component_id: z37.string().optional(),
15509
- source_group_id: z37.string().optional(),
15510
- subcircuit_id: z37.string().optional(),
15511
- subcircuit_connectivity_map_key: z37.string().optional(),
15512
- must_be_connected: z37.boolean().optional()
15515
+ var source_port = z39.object({
15516
+ type: z39.literal("source_port"),
15517
+ pin_number: z39.number().optional(),
15518
+ port_hints: z39.array(z39.string()).optional(),
15519
+ name: z39.string(),
15520
+ source_port_id: z39.string(),
15521
+ source_component_id: z39.string().optional(),
15522
+ source_group_id: z39.string().optional(),
15523
+ subcircuit_id: z39.string().optional(),
15524
+ subcircuit_connectivity_map_key: z39.string().optional(),
15525
+ must_be_connected: z39.boolean().optional()
15513
15526
  });
15514
15527
  expectTypesMatch(true);
15515
- var source_trace = z38.object({
15516
- type: z38.literal("source_trace"),
15517
- source_trace_id: z38.string(),
15518
- connected_source_port_ids: z38.array(z38.string()),
15519
- connected_source_net_ids: z38.array(z38.string()),
15520
- subcircuit_id: z38.string().optional(),
15521
- subcircuit_connectivity_map_key: z38.string().optional(),
15522
- max_length: z38.number().optional(),
15523
- min_trace_thickness: z38.number().optional(),
15524
- display_name: z38.string().optional()
15528
+ var source_component_internal_connection = z40.object({
15529
+ type: z40.literal("source_component_internal_connection"),
15530
+ source_component_internal_connection_id: z40.string(),
15531
+ source_component_id: z40.string(),
15532
+ source_port_ids: z40.array(z40.string()),
15533
+ subcircuit_id: z40.string().optional()
15525
15534
  });
15526
15535
  expectTypesMatch(true);
15527
- var source_group = z39.object({
15528
- type: z39.literal("source_group"),
15529
- source_group_id: z39.string(),
15530
- subcircuit_id: z39.string().optional(),
15531
- parent_subcircuit_id: z39.string().optional(),
15532
- parent_source_group_id: z39.string().optional(),
15533
- is_subcircuit: z39.boolean().optional(),
15534
- show_as_schematic_box: z39.boolean().optional(),
15535
- name: z39.string().optional(),
15536
- was_automatically_named: z39.boolean().optional()
15536
+ var source_trace = z41.object({
15537
+ type: z41.literal("source_trace"),
15538
+ source_trace_id: z41.string(),
15539
+ connected_source_port_ids: z41.array(z41.string()),
15540
+ connected_source_net_ids: z41.array(z41.string()),
15541
+ subcircuit_id: z41.string().optional(),
15542
+ subcircuit_connectivity_map_key: z41.string().optional(),
15543
+ max_length: z41.number().optional(),
15544
+ min_trace_thickness: z41.number().optional(),
15545
+ display_name: z41.string().optional()
15546
+ });
15547
+ expectTypesMatch(true);
15548
+ var source_group = z42.object({
15549
+ type: z42.literal("source_group"),
15550
+ source_group_id: z42.string(),
15551
+ subcircuit_id: z42.string().optional(),
15552
+ parent_subcircuit_id: z42.string().optional(),
15553
+ parent_source_group_id: z42.string().optional(),
15554
+ is_subcircuit: z42.boolean().optional(),
15555
+ show_as_schematic_box: z42.boolean().optional(),
15556
+ name: z42.string().optional(),
15557
+ was_automatically_named: z42.boolean().optional()
15537
15558
  });
15538
15559
  expectTypesMatch(true);
15539
- var source_net = z40.object({
15540
- type: z40.literal("source_net"),
15541
- source_net_id: z40.string(),
15542
- name: z40.string(),
15543
- member_source_group_ids: z40.array(z40.string()),
15544
- is_power: z40.boolean().optional(),
15545
- is_ground: z40.boolean().optional(),
15546
- is_digital_signal: z40.boolean().optional(),
15547
- is_analog_signal: z40.boolean().optional(),
15548
- is_positive_voltage_source: z40.boolean().optional(),
15549
- trace_width: z40.number().optional(),
15550
- subcircuit_id: z40.string().optional(),
15551
- subcircuit_connectivity_map_key: z40.string().optional()
15560
+ var source_net = z43.object({
15561
+ type: z43.literal("source_net"),
15562
+ source_net_id: z43.string(),
15563
+ name: z43.string(),
15564
+ member_source_group_ids: z43.array(z43.string()),
15565
+ is_power: z43.boolean().optional(),
15566
+ is_ground: z43.boolean().optional(),
15567
+ is_digital_signal: z43.boolean().optional(),
15568
+ is_analog_signal: z43.boolean().optional(),
15569
+ is_positive_voltage_source: z43.boolean().optional(),
15570
+ trace_width: z43.number().optional(),
15571
+ subcircuit_id: z43.string().optional(),
15572
+ subcircuit_connectivity_map_key: z43.string().optional()
15552
15573
  });
15553
15574
  expectTypesMatch(true);
15554
- var source_board = z41.object({
15555
- type: z41.literal("source_board"),
15556
- source_board_id: z41.string(),
15557
- source_group_id: z41.string(),
15558
- title: z41.string().optional()
15575
+ var source_board = z44.object({
15576
+ type: z44.literal("source_board"),
15577
+ source_board_id: z44.string(),
15578
+ source_group_id: z44.string(),
15579
+ title: z44.string().optional()
15559
15580
  }).describe("Defines a board in the source domain");
15560
15581
  expectTypesMatch(true);
15561
- var source_pcb_ground_plane = z42.object({
15562
- type: z42.literal("source_pcb_ground_plane"),
15563
- source_pcb_ground_plane_id: z42.string(),
15564
- source_group_id: z42.string(),
15565
- source_net_id: z42.string(),
15566
- subcircuit_id: z42.string().optional()
15582
+ var source_pcb_ground_plane = z45.object({
15583
+ type: z45.literal("source_pcb_ground_plane"),
15584
+ source_pcb_ground_plane_id: z45.string(),
15585
+ source_group_id: z45.string(),
15586
+ source_net_id: z45.string(),
15587
+ subcircuit_id: z45.string().optional()
15567
15588
  }).describe("Defines a ground plane in the source domain");
15568
15589
  expectTypesMatch(true);
15569
15590
  var all_layers = [
@@ -15576,9 +15597,9 @@ var all_layers = [
15576
15597
  "inner5",
15577
15598
  "inner6"
15578
15599
  ];
15579
- var layer_string = z43.enum(all_layers);
15600
+ var layer_string = z46.enum(all_layers);
15580
15601
  var layer_ref = layer_string.or(
15581
- z43.object({
15602
+ z46.object({
15582
15603
  name: layer_string
15583
15604
  })
15584
15605
  ).transform((layer) => {
@@ -15588,215 +15609,215 @@ var layer_ref = layer_string.or(
15588
15609
  return layer.name;
15589
15610
  });
15590
15611
  expectTypesMatch(true);
15591
- var visible_layer = z43.enum(["top", "bottom"]);
15592
- var source_manually_placed_via = z44.object({
15593
- type: z44.literal("source_manually_placed_via"),
15594
- source_manually_placed_via_id: z44.string(),
15595
- source_group_id: z44.string(),
15596
- source_net_id: z44.string(),
15597
- subcircuit_id: z44.string().optional(),
15598
- source_trace_id: z44.string().optional()
15612
+ var visible_layer = z46.enum(["top", "bottom"]);
15613
+ var source_manually_placed_via = z47.object({
15614
+ type: z47.literal("source_manually_placed_via"),
15615
+ source_manually_placed_via_id: z47.string(),
15616
+ source_group_id: z47.string(),
15617
+ source_net_id: z47.string(),
15618
+ subcircuit_id: z47.string().optional(),
15619
+ source_trace_id: z47.string().optional()
15599
15620
  }).describe("Defines a via that is manually placed in the source domain");
15600
15621
  expectTypesMatch(true);
15601
- var source_pin_must_be_connected_error = z45.object({
15602
- type: z45.literal("source_pin_must_be_connected_error"),
15622
+ var source_pin_must_be_connected_error = z48.object({
15623
+ type: z48.literal("source_pin_must_be_connected_error"),
15603
15624
  source_pin_must_be_connected_error_id: getZodPrefixedIdWithDefault(
15604
15625
  "source_pin_must_be_connected_error"
15605
15626
  ),
15606
- error_type: z45.literal("source_pin_must_be_connected_error").default("source_pin_must_be_connected_error"),
15607
- message: z45.string(),
15608
- source_component_id: z45.string(),
15609
- source_port_id: z45.string(),
15610
- subcircuit_id: z45.string().optional()
15627
+ error_type: z48.literal("source_pin_must_be_connected_error").default("source_pin_must_be_connected_error"),
15628
+ message: z48.string(),
15629
+ source_component_id: z48.string(),
15630
+ source_port_id: z48.string(),
15631
+ subcircuit_id: z48.string().optional()
15611
15632
  }).describe(
15612
15633
  "Error emitted when a pin with mustBeConnected attribute is not connected to any trace"
15613
15634
  );
15614
15635
  expectTypesMatch(true);
15615
- var unknown_error_finding_part = z46.object({
15616
- type: z46.literal("unknown_error_finding_part"),
15636
+ var unknown_error_finding_part = z49.object({
15637
+ type: z49.literal("unknown_error_finding_part"),
15617
15638
  unknown_error_finding_part_id: getZodPrefixedIdWithDefault(
15618
15639
  "unknown_error_finding_part"
15619
15640
  ),
15620
- error_type: z46.literal("unknown_error_finding_part").default("unknown_error_finding_part"),
15621
- message: z46.string(),
15622
- source_component_id: z46.string().optional(),
15623
- subcircuit_id: z46.string().optional()
15641
+ error_type: z49.literal("unknown_error_finding_part").default("unknown_error_finding_part"),
15642
+ message: z49.string(),
15643
+ source_component_id: z49.string().optional(),
15644
+ subcircuit_id: z49.string().optional()
15624
15645
  }).describe(
15625
15646
  "Error emitted when an unexpected error occurs while finding a part"
15626
15647
  );
15627
15648
  expectTypesMatch(true);
15628
- var schematic_box = z47.object({
15629
- type: z47.literal("schematic_box"),
15630
- schematic_component_id: z47.string().optional(),
15649
+ var schematic_box = z50.object({
15650
+ type: z50.literal("schematic_box"),
15651
+ schematic_component_id: z50.string().optional(),
15631
15652
  width: distance,
15632
15653
  height: distance,
15633
- is_dashed: z47.boolean().default(false),
15654
+ is_dashed: z50.boolean().default(false),
15634
15655
  x: distance,
15635
15656
  y: distance,
15636
- subcircuit_id: z47.string().optional()
15657
+ subcircuit_id: z50.string().optional()
15637
15658
  }).describe("Draws a box on the schematic");
15638
15659
  expectTypesMatch(true);
15639
- var schematic_path = z48.object({
15640
- type: z48.literal("schematic_path"),
15641
- schematic_component_id: z48.string(),
15642
- fill_color: z48.enum(["red", "blue"]).optional(),
15643
- is_filled: z48.boolean().optional(),
15644
- points: z48.array(point),
15645
- subcircuit_id: z48.string().optional()
15660
+ var schematic_path = z51.object({
15661
+ type: z51.literal("schematic_path"),
15662
+ schematic_component_id: z51.string(),
15663
+ fill_color: z51.enum(["red", "blue"]).optional(),
15664
+ is_filled: z51.boolean().optional(),
15665
+ points: z51.array(point),
15666
+ subcircuit_id: z51.string().optional()
15646
15667
  });
15647
15668
  expectTypesMatch(true);
15648
- var schematic_pin_styles = z49.record(
15649
- z49.object({
15669
+ var schematic_pin_styles = z52.record(
15670
+ z52.object({
15650
15671
  left_margin: length.optional(),
15651
15672
  right_margin: length.optional(),
15652
15673
  top_margin: length.optional(),
15653
15674
  bottom_margin: length.optional()
15654
15675
  })
15655
15676
  );
15656
- var schematic_component_port_arrangement_by_size = z49.object({
15657
- left_size: z49.number(),
15658
- right_size: z49.number(),
15659
- top_size: z49.number().optional(),
15660
- bottom_size: z49.number().optional()
15677
+ var schematic_component_port_arrangement_by_size = z52.object({
15678
+ left_size: z52.number(),
15679
+ right_size: z52.number(),
15680
+ top_size: z52.number().optional(),
15681
+ bottom_size: z52.number().optional()
15661
15682
  });
15662
15683
  expectTypesMatch(true);
15663
- var schematic_component_port_arrangement_by_sides = z49.object({
15664
- left_side: z49.object({
15665
- pins: z49.array(z49.number()),
15684
+ var schematic_component_port_arrangement_by_sides = z52.object({
15685
+ left_side: z52.object({
15686
+ pins: z52.array(z52.number()),
15666
15687
  // @ts-ignore
15667
- direction: z49.enum(["top-to-bottom", "bottom-to-top"]).optional()
15688
+ direction: z52.enum(["top-to-bottom", "bottom-to-top"]).optional()
15668
15689
  }).optional(),
15669
- right_side: z49.object({
15670
- pins: z49.array(z49.number()),
15690
+ right_side: z52.object({
15691
+ pins: z52.array(z52.number()),
15671
15692
  // @ts-ignore
15672
- direction: z49.enum(["top-to-bottom", "bottom-to-top"]).optional()
15693
+ direction: z52.enum(["top-to-bottom", "bottom-to-top"]).optional()
15673
15694
  }).optional(),
15674
- top_side: z49.object({
15675
- pins: z49.array(z49.number()),
15695
+ top_side: z52.object({
15696
+ pins: z52.array(z52.number()),
15676
15697
  // @ts-ignore
15677
- direction: z49.enum(["left-to-right", "right-to-left"]).optional()
15698
+ direction: z52.enum(["left-to-right", "right-to-left"]).optional()
15678
15699
  }).optional(),
15679
- bottom_side: z49.object({
15680
- pins: z49.array(z49.number()),
15700
+ bottom_side: z52.object({
15701
+ pins: z52.array(z52.number()),
15681
15702
  // @ts-ignore
15682
- direction: z49.enum(["left-to-right", "right-to-left"]).optional()
15703
+ direction: z52.enum(["left-to-right", "right-to-left"]).optional()
15683
15704
  }).optional()
15684
15705
  });
15685
15706
  expectTypesMatch(true);
15686
- var port_arrangement = z49.union([
15707
+ var port_arrangement = z52.union([
15687
15708
  schematic_component_port_arrangement_by_size,
15688
15709
  schematic_component_port_arrangement_by_sides
15689
15710
  ]);
15690
- var schematic_component = z49.object({
15691
- type: z49.literal("schematic_component"),
15711
+ var schematic_component = z52.object({
15712
+ type: z52.literal("schematic_component"),
15692
15713
  size,
15693
15714
  center: point,
15694
- source_component_id: z49.string().optional(),
15695
- schematic_component_id: z49.string(),
15715
+ source_component_id: z52.string().optional(),
15716
+ schematic_component_id: z52.string(),
15696
15717
  pin_spacing: length.optional(),
15697
15718
  pin_styles: schematic_pin_styles.optional(),
15698
15719
  box_width: length.optional(),
15699
- symbol_name: z49.string().optional(),
15720
+ symbol_name: z52.string().optional(),
15700
15721
  port_arrangement: port_arrangement.optional(),
15701
- port_labels: z49.record(z49.string()).optional(),
15702
- symbol_display_value: z49.string().optional(),
15703
- subcircuit_id: z49.string().optional(),
15704
- schematic_group_id: z49.string().optional(),
15705
- is_schematic_group: z49.boolean().optional(),
15706
- source_group_id: z49.string().optional(),
15707
- is_box_with_pins: z49.boolean().optional().default(true)
15722
+ port_labels: z52.record(z52.string()).optional(),
15723
+ symbol_display_value: z52.string().optional(),
15724
+ subcircuit_id: z52.string().optional(),
15725
+ schematic_group_id: z52.string().optional(),
15726
+ is_schematic_group: z52.boolean().optional(),
15727
+ source_group_id: z52.string().optional(),
15728
+ is_box_with_pins: z52.boolean().optional().default(true)
15708
15729
  });
15709
15730
  expectTypesMatch(true);
15710
- var schematic_line = z50.object({
15711
- type: z50.literal("schematic_line"),
15731
+ var schematic_line = z53.object({
15732
+ type: z53.literal("schematic_line"),
15712
15733
  schematic_line_id: getZodPrefixedIdWithDefault("schematic_line"),
15713
- schematic_component_id: z50.string(),
15734
+ schematic_component_id: z53.string(),
15714
15735
  x1: distance,
15715
15736
  y1: distance,
15716
15737
  x2: distance,
15717
15738
  y2: distance,
15718
15739
  stroke_width: distance.nullable().optional(),
15719
- color: z50.string().default("#000000"),
15720
- is_dashed: z50.boolean().default(false),
15721
- subcircuit_id: z50.string().optional()
15740
+ color: z53.string().default("#000000"),
15741
+ is_dashed: z53.boolean().default(false),
15742
+ subcircuit_id: z53.string().optional()
15722
15743
  }).describe("Draws a styled line on the schematic");
15723
15744
  expectTypesMatch(true);
15724
- var schematic_rect = z51.object({
15725
- type: z51.literal("schematic_rect"),
15745
+ var schematic_rect = z54.object({
15746
+ type: z54.literal("schematic_rect"),
15726
15747
  schematic_rect_id: getZodPrefixedIdWithDefault("schematic_rect"),
15727
- schematic_component_id: z51.string(),
15748
+ schematic_component_id: z54.string(),
15728
15749
  center: point,
15729
15750
  width: distance,
15730
15751
  height: distance,
15731
15752
  rotation: rotation.default(0),
15732
15753
  stroke_width: distance.nullable().optional(),
15733
- color: z51.string().default("#000000"),
15734
- is_filled: z51.boolean().default(false),
15735
- fill_color: z51.string().optional(),
15736
- is_dashed: z51.boolean().default(false),
15737
- subcircuit_id: z51.string().optional()
15754
+ color: z54.string().default("#000000"),
15755
+ is_filled: z54.boolean().default(false),
15756
+ fill_color: z54.string().optional(),
15757
+ is_dashed: z54.boolean().default(false),
15758
+ subcircuit_id: z54.string().optional()
15738
15759
  }).describe("Draws a styled rectangle on the schematic");
15739
15760
  expectTypesMatch(true);
15740
- var schematic_circle = z52.object({
15741
- type: z52.literal("schematic_circle"),
15761
+ var schematic_circle = z55.object({
15762
+ type: z55.literal("schematic_circle"),
15742
15763
  schematic_circle_id: getZodPrefixedIdWithDefault("schematic_circle"),
15743
- schematic_component_id: z52.string(),
15764
+ schematic_component_id: z55.string(),
15744
15765
  center: point,
15745
15766
  radius: distance,
15746
15767
  stroke_width: distance.nullable().optional(),
15747
- color: z52.string().default("#000000"),
15748
- is_filled: z52.boolean().default(false),
15749
- fill_color: z52.string().optional(),
15750
- is_dashed: z52.boolean().default(false),
15751
- subcircuit_id: z52.string().optional()
15768
+ color: z55.string().default("#000000"),
15769
+ is_filled: z55.boolean().default(false),
15770
+ fill_color: z55.string().optional(),
15771
+ is_dashed: z55.boolean().default(false),
15772
+ subcircuit_id: z55.string().optional()
15752
15773
  }).describe("Draws a styled circle on the schematic");
15753
15774
  expectTypesMatch(true);
15754
- var schematic_arc = z53.object({
15755
- type: z53.literal("schematic_arc"),
15775
+ var schematic_arc = z56.object({
15776
+ type: z56.literal("schematic_arc"),
15756
15777
  schematic_arc_id: getZodPrefixedIdWithDefault("schematic_arc"),
15757
- schematic_component_id: z53.string(),
15778
+ schematic_component_id: z56.string(),
15758
15779
  center: point,
15759
15780
  radius: distance,
15760
15781
  start_angle_degrees: rotation,
15761
15782
  end_angle_degrees: rotation,
15762
- direction: z53.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
15783
+ direction: z56.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
15763
15784
  stroke_width: distance.nullable().optional(),
15764
- color: z53.string().default("#000000"),
15765
- is_dashed: z53.boolean().default(false),
15766
- subcircuit_id: z53.string().optional()
15785
+ color: z56.string().default("#000000"),
15786
+ is_dashed: z56.boolean().default(false),
15787
+ subcircuit_id: z56.string().optional()
15767
15788
  }).describe("Draws a styled arc on the schematic");
15768
15789
  expectTypesMatch(true);
15769
- var schematic_trace = z54.object({
15770
- type: z54.literal("schematic_trace"),
15771
- schematic_trace_id: z54.string(),
15772
- source_trace_id: z54.string().optional(),
15773
- junctions: z54.array(
15774
- z54.object({
15775
- x: z54.number(),
15776
- y: z54.number()
15790
+ var schematic_trace = z57.object({
15791
+ type: z57.literal("schematic_trace"),
15792
+ schematic_trace_id: z57.string(),
15793
+ source_trace_id: z57.string().optional(),
15794
+ junctions: z57.array(
15795
+ z57.object({
15796
+ x: z57.number(),
15797
+ y: z57.number()
15777
15798
  })
15778
15799
  ),
15779
- edges: z54.array(
15780
- z54.object({
15781
- from: z54.object({
15782
- x: z54.number(),
15783
- y: z54.number()
15800
+ edges: z57.array(
15801
+ z57.object({
15802
+ from: z57.object({
15803
+ x: z57.number(),
15804
+ y: z57.number()
15784
15805
  }),
15785
- to: z54.object({
15786
- x: z54.number(),
15787
- y: z54.number()
15806
+ to: z57.object({
15807
+ x: z57.number(),
15808
+ y: z57.number()
15788
15809
  }),
15789
- is_crossing: z54.boolean().optional(),
15790
- from_schematic_port_id: z54.string().optional(),
15791
- to_schematic_port_id: z54.string().optional()
15810
+ is_crossing: z57.boolean().optional(),
15811
+ from_schematic_port_id: z57.string().optional(),
15812
+ to_schematic_port_id: z57.string().optional()
15792
15813
  })
15793
15814
  ),
15794
- subcircuit_id: z54.string().optional(),
15815
+ subcircuit_id: z57.string().optional(),
15795
15816
  // TODO: make required in a future release
15796
- subcircuit_connectivity_map_key: z54.string().optional()
15817
+ subcircuit_connectivity_map_key: z57.string().optional()
15797
15818
  });
15798
15819
  expectTypesMatch(true);
15799
- var fivePointAnchor = z55.enum([
15820
+ var fivePointAnchor = z58.enum([
15800
15821
  "center",
15801
15822
  "left",
15802
15823
  "right",
@@ -15804,475 +15825,484 @@ var fivePointAnchor = z55.enum([
15804
15825
  "bottom"
15805
15826
  ]);
15806
15827
  expectTypesMatch(true);
15807
- var schematic_text = z56.object({
15808
- type: z56.literal("schematic_text"),
15809
- schematic_component_id: z56.string().optional(),
15810
- schematic_text_id: z56.string(),
15811
- text: z56.string(),
15812
- font_size: z56.number().default(0.18),
15813
- position: z56.object({
15828
+ var schematic_text = z59.object({
15829
+ type: z59.literal("schematic_text"),
15830
+ schematic_component_id: z59.string().optional(),
15831
+ schematic_text_id: z59.string(),
15832
+ text: z59.string(),
15833
+ font_size: z59.number().default(0.18),
15834
+ position: z59.object({
15814
15835
  x: distance,
15815
15836
  y: distance
15816
15837
  }),
15817
- rotation: z56.number().default(0),
15818
- anchor: z56.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
15819
- color: z56.string().default("#000000"),
15820
- subcircuit_id: z56.string().optional()
15838
+ rotation: z59.number().default(0),
15839
+ anchor: z59.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
15840
+ color: z59.string().default("#000000"),
15841
+ subcircuit_id: z59.string().optional()
15821
15842
  });
15822
15843
  expectTypesMatch(true);
15823
- var schematic_port = z57.object({
15824
- type: z57.literal("schematic_port"),
15825
- schematic_port_id: z57.string(),
15826
- source_port_id: z57.string(),
15827
- schematic_component_id: z57.string().optional(),
15844
+ var schematic_port = z60.object({
15845
+ type: z60.literal("schematic_port"),
15846
+ schematic_port_id: z60.string(),
15847
+ source_port_id: z60.string(),
15848
+ schematic_component_id: z60.string().optional(),
15828
15849
  center: point,
15829
- facing_direction: z57.enum(["up", "down", "left", "right"]).optional(),
15830
- distance_from_component_edge: z57.number().optional(),
15831
- side_of_component: z57.enum(["top", "bottom", "left", "right"]).optional(),
15832
- true_ccw_index: z57.number().optional(),
15833
- pin_number: z57.number().optional(),
15834
- display_pin_label: z57.string().optional(),
15835
- subcircuit_id: z57.string().optional(),
15836
- is_connected: z57.boolean().optional(),
15837
- has_input_arrow: z57.boolean().optional(),
15838
- has_output_arrow: z57.boolean().optional()
15850
+ facing_direction: z60.enum(["up", "down", "left", "right"]).optional(),
15851
+ distance_from_component_edge: z60.number().optional(),
15852
+ side_of_component: z60.enum(["top", "bottom", "left", "right"]).optional(),
15853
+ true_ccw_index: z60.number().optional(),
15854
+ pin_number: z60.number().optional(),
15855
+ display_pin_label: z60.string().optional(),
15856
+ subcircuit_id: z60.string().optional(),
15857
+ is_connected: z60.boolean().optional(),
15858
+ has_input_arrow: z60.boolean().optional(),
15859
+ has_output_arrow: z60.boolean().optional()
15839
15860
  }).describe("Defines a port on a schematic component");
15840
15861
  expectTypesMatch(true);
15841
- var schematic_net_label = z58.object({
15842
- type: z58.literal("schematic_net_label"),
15862
+ var schematic_net_label = z61.object({
15863
+ type: z61.literal("schematic_net_label"),
15843
15864
  schematic_net_label_id: getZodPrefixedIdWithDefault("schematic_net_label"),
15844
- schematic_trace_id: z58.string().optional(),
15845
- source_trace_id: z58.string().optional(),
15846
- source_net_id: z58.string(),
15865
+ schematic_trace_id: z61.string().optional(),
15866
+ source_trace_id: z61.string().optional(),
15867
+ source_net_id: z61.string(),
15847
15868
  center: point,
15848
15869
  anchor_position: point.optional(),
15849
- anchor_side: z58.enum(["top", "bottom", "left", "right"]),
15850
- text: z58.string(),
15851
- symbol_name: z58.string().optional(),
15852
- is_movable: z58.boolean().optional(),
15853
- subcircuit_id: z58.string().optional()
15870
+ anchor_side: z61.enum(["top", "bottom", "left", "right"]),
15871
+ text: z61.string(),
15872
+ symbol_name: z61.string().optional(),
15873
+ is_movable: z61.boolean().optional(),
15874
+ subcircuit_id: z61.string().optional()
15854
15875
  });
15855
15876
  expectTypesMatch(true);
15856
- var schematic_error = z59.object({
15857
- type: z59.literal("schematic_error"),
15858
- schematic_error_id: z59.string(),
15877
+ var schematic_error = z62.object({
15878
+ type: z62.literal("schematic_error"),
15879
+ schematic_error_id: z62.string(),
15859
15880
  // eventually each error type should be broken out into a dir of files
15860
- error_type: z59.literal("schematic_port_not_found").default("schematic_port_not_found"),
15861
- message: z59.string(),
15862
- subcircuit_id: z59.string().optional()
15881
+ error_type: z62.literal("schematic_port_not_found").default("schematic_port_not_found"),
15882
+ message: z62.string(),
15883
+ subcircuit_id: z62.string().optional()
15863
15884
  }).describe("Defines a schematic error on the schematic");
15864
15885
  expectTypesMatch(true);
15865
- var schematic_layout_error = z60.object({
15866
- type: z60.literal("schematic_layout_error"),
15886
+ var schematic_layout_error = z63.object({
15887
+ type: z63.literal("schematic_layout_error"),
15867
15888
  schematic_layout_error_id: getZodPrefixedIdWithDefault(
15868
15889
  "schematic_layout_error"
15869
15890
  ),
15870
- error_type: z60.literal("schematic_layout_error").default("schematic_layout_error"),
15871
- message: z60.string(),
15872
- source_group_id: z60.string(),
15873
- schematic_group_id: z60.string(),
15874
- subcircuit_id: z60.string().optional()
15891
+ error_type: z63.literal("schematic_layout_error").default("schematic_layout_error"),
15892
+ message: z63.string(),
15893
+ source_group_id: z63.string(),
15894
+ schematic_group_id: z63.string(),
15895
+ subcircuit_id: z63.string().optional()
15875
15896
  }).describe("Error emitted when schematic layout fails for a group");
15876
15897
  expectTypesMatch(true);
15877
- var schematic_debug_object_base = z61.object({
15878
- type: z61.literal("schematic_debug_object"),
15879
- label: z61.string().optional(),
15880
- subcircuit_id: z61.string().optional()
15898
+ var schematic_debug_object_base = z64.object({
15899
+ type: z64.literal("schematic_debug_object"),
15900
+ label: z64.string().optional(),
15901
+ subcircuit_id: z64.string().optional()
15881
15902
  });
15882
15903
  var schematic_debug_rect = schematic_debug_object_base.extend({
15883
- shape: z61.literal("rect"),
15904
+ shape: z64.literal("rect"),
15884
15905
  center: point,
15885
15906
  size
15886
15907
  });
15887
15908
  var schematic_debug_line = schematic_debug_object_base.extend({
15888
- shape: z61.literal("line"),
15909
+ shape: z64.literal("line"),
15889
15910
  start: point,
15890
15911
  end: point
15891
15912
  });
15892
15913
  var schematic_debug_point = schematic_debug_object_base.extend({
15893
- shape: z61.literal("point"),
15914
+ shape: z64.literal("point"),
15894
15915
  center: point
15895
15916
  });
15896
- var schematic_debug_object = z61.discriminatedUnion("shape", [
15917
+ var schematic_debug_object = z64.discriminatedUnion("shape", [
15897
15918
  schematic_debug_rect,
15898
15919
  schematic_debug_line,
15899
15920
  schematic_debug_point
15900
15921
  ]);
15901
15922
  expectTypesMatch(true);
15902
- var schematic_voltage_probe = z62.object({
15903
- type: z62.literal("schematic_voltage_probe"),
15904
- schematic_voltage_probe_id: z62.string(),
15905
- source_component_id: z62.string().optional(),
15906
- name: z62.string().optional(),
15923
+ var schematic_voltage_probe = z65.object({
15924
+ type: z65.literal("schematic_voltage_probe"),
15925
+ schematic_voltage_probe_id: z65.string(),
15926
+ source_component_id: z65.string().optional(),
15927
+ name: z65.string().optional(),
15907
15928
  position: point,
15908
- schematic_trace_id: z62.string(),
15929
+ schematic_trace_id: z65.string(),
15909
15930
  voltage: voltage.optional(),
15910
- subcircuit_id: z62.string().optional(),
15911
- color: z62.string().optional()
15931
+ subcircuit_id: z65.string().optional(),
15932
+ color: z65.string().optional(),
15933
+ label_alignment: ninePointAnchor.optional()
15912
15934
  }).describe("Defines a voltage probe measurement point on a schematic trace");
15913
15935
  expectTypesMatch(true);
15914
- var schematic_manual_edit_conflict_warning = z63.object({
15915
- type: z63.literal("schematic_manual_edit_conflict_warning"),
15936
+ var schematic_manual_edit_conflict_warning = z66.object({
15937
+ type: z66.literal("schematic_manual_edit_conflict_warning"),
15916
15938
  schematic_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
15917
15939
  "schematic_manual_edit_conflict_warning"
15918
15940
  ),
15919
- warning_type: z63.literal("schematic_manual_edit_conflict_warning").default("schematic_manual_edit_conflict_warning"),
15920
- message: z63.string(),
15921
- schematic_component_id: z63.string(),
15922
- schematic_group_id: z63.string().optional(),
15923
- subcircuit_id: z63.string().optional(),
15924
- source_component_id: z63.string()
15941
+ warning_type: z66.literal("schematic_manual_edit_conflict_warning").default("schematic_manual_edit_conflict_warning"),
15942
+ message: z66.string(),
15943
+ schematic_component_id: z66.string(),
15944
+ schematic_group_id: z66.string().optional(),
15945
+ subcircuit_id: z66.string().optional(),
15946
+ source_component_id: z66.string()
15925
15947
  }).describe(
15926
15948
  "Warning emitted when a component has both manual placement and explicit schX/schY coordinates"
15927
15949
  );
15928
15950
  expectTypesMatch(true);
15929
- var schematic_group = z64.object({
15930
- type: z64.literal("schematic_group"),
15951
+ var schematic_group = z67.object({
15952
+ type: z67.literal("schematic_group"),
15931
15953
  schematic_group_id: getZodPrefixedIdWithDefault("schematic_group"),
15932
- source_group_id: z64.string(),
15933
- is_subcircuit: z64.boolean().optional(),
15934
- subcircuit_id: z64.string().optional(),
15954
+ source_group_id: z67.string(),
15955
+ is_subcircuit: z67.boolean().optional(),
15956
+ subcircuit_id: z67.string().optional(),
15935
15957
  width: length,
15936
15958
  height: length,
15937
15959
  center: point,
15938
- schematic_component_ids: z64.array(z64.string()),
15939
- show_as_schematic_box: z64.boolean().optional(),
15940
- name: z64.string().optional(),
15941
- description: z64.string().optional()
15960
+ schematic_component_ids: z67.array(z67.string()),
15961
+ show_as_schematic_box: z67.boolean().optional(),
15962
+ name: z67.string().optional(),
15963
+ description: z67.string().optional()
15942
15964
  }).describe("Defines a group of components on the schematic");
15943
15965
  expectTypesMatch(true);
15944
- var schematic_table = z65.object({
15945
- type: z65.literal("schematic_table"),
15966
+ var schematic_table = z68.object({
15967
+ type: z68.literal("schematic_table"),
15946
15968
  schematic_table_id: getZodPrefixedIdWithDefault("schematic_table"),
15947
15969
  anchor_position: point,
15948
- column_widths: z65.array(distance),
15949
- row_heights: z65.array(distance),
15970
+ column_widths: z68.array(distance),
15971
+ row_heights: z68.array(distance),
15950
15972
  cell_padding: distance.optional(),
15951
15973
  border_width: distance.optional(),
15952
- subcircuit_id: z65.string().optional(),
15953
- schematic_component_id: z65.string().optional(),
15974
+ subcircuit_id: z68.string().optional(),
15975
+ schematic_component_id: z68.string().optional(),
15954
15976
  anchor: ninePointAnchor.optional()
15955
15977
  }).describe("Defines a table on the schematic");
15956
15978
  expectTypesMatch(true);
15957
- var schematic_table_cell = z66.object({
15958
- type: z66.literal("schematic_table_cell"),
15979
+ var schematic_table_cell = z69.object({
15980
+ type: z69.literal("schematic_table_cell"),
15959
15981
  schematic_table_cell_id: getZodPrefixedIdWithDefault(
15960
15982
  "schematic_table_cell"
15961
15983
  ),
15962
- schematic_table_id: z66.string(),
15963
- start_row_index: z66.number(),
15964
- end_row_index: z66.number(),
15965
- start_column_index: z66.number(),
15966
- end_column_index: z66.number(),
15967
- text: z66.string().optional(),
15984
+ schematic_table_id: z69.string(),
15985
+ start_row_index: z69.number(),
15986
+ end_row_index: z69.number(),
15987
+ start_column_index: z69.number(),
15988
+ end_column_index: z69.number(),
15989
+ text: z69.string().optional(),
15968
15990
  center: point,
15969
15991
  width: distance,
15970
15992
  height: distance,
15971
- horizontal_align: z66.enum(["left", "center", "right"]).optional(),
15972
- vertical_align: z66.enum(["top", "middle", "bottom"]).optional(),
15993
+ horizontal_align: z69.enum(["left", "center", "right"]).optional(),
15994
+ vertical_align: z69.enum(["top", "middle", "bottom"]).optional(),
15973
15995
  font_size: distance.optional(),
15974
- subcircuit_id: z66.string().optional()
15996
+ subcircuit_id: z69.string().optional()
15975
15997
  }).describe("Defines a cell within a schematic_table");
15976
15998
  expectTypesMatch(true);
15977
- var schematic_sheet = z67.object({
15978
- type: z67.literal("schematic_sheet"),
15999
+ var schematic_sheet = z70.object({
16000
+ type: z70.literal("schematic_sheet"),
15979
16001
  schematic_sheet_id: getZodPrefixedIdWithDefault("schematic_sheet"),
15980
- name: z67.string().optional(),
15981
- subcircuit_id: z67.string().optional()
16002
+ name: z70.string().optional(),
16003
+ subcircuit_id: z70.string().optional()
15982
16004
  }).describe(
15983
16005
  "Defines a schematic sheet or page that components can be placed on"
15984
16006
  );
15985
16007
  expectTypesMatch(true);
15986
- var point_with_bulge = z68.object({
16008
+ var point_with_bulge = z71.object({
15987
16009
  x: distance,
15988
16010
  y: distance,
15989
- bulge: z68.number().optional()
16011
+ bulge: z71.number().optional()
15990
16012
  });
15991
16013
  expectTypesMatch(true);
15992
- var ring = z68.object({
15993
- vertices: z68.array(point_with_bulge)
16014
+ var ring = z71.object({
16015
+ vertices: z71.array(point_with_bulge)
15994
16016
  });
15995
16017
  expectTypesMatch(true);
15996
- var brep_shape = z68.object({
16018
+ var brep_shape = z71.object({
15997
16019
  outer_ring: ring,
15998
- inner_rings: z68.array(ring).default([])
16020
+ inner_rings: z71.array(ring).default([])
15999
16021
  });
16000
16022
  expectTypesMatch(true);
16001
- var pcb_route_hint = z69.object({
16023
+ var pcb_route_hint = z72.object({
16002
16024
  x: distance,
16003
16025
  y: distance,
16004
- via: z69.boolean().optional(),
16026
+ via: z72.boolean().optional(),
16005
16027
  via_to_layer: layer_ref.optional()
16006
16028
  });
16007
- var pcb_route_hints = z69.array(pcb_route_hint);
16029
+ var pcb_route_hints = z72.array(pcb_route_hint);
16008
16030
  expectTypesMatch(true);
16009
16031
  expectTypesMatch(true);
16010
- var route_hint_point = z70.object({
16032
+ var route_hint_point = z73.object({
16011
16033
  x: distance,
16012
16034
  y: distance,
16013
- via: z70.boolean().optional(),
16035
+ via: z73.boolean().optional(),
16014
16036
  to_layer: layer_ref.optional(),
16015
16037
  trace_width: distance.optional()
16016
16038
  });
16017
16039
  expectTypesMatch(true);
16018
- var pcb_component = z71.object({
16019
- type: z71.literal("pcb_component"),
16040
+ var pcb_component = z74.object({
16041
+ type: z74.literal("pcb_component"),
16020
16042
  pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
16021
- source_component_id: z71.string(),
16043
+ source_component_id: z74.string(),
16022
16044
  center: point,
16023
16045
  layer: layer_ref,
16024
16046
  rotation,
16047
+ display_offset_x: z74.string().optional().describe(
16048
+ "How to display the x offset for this part, usually corresponding with how the user specified it"
16049
+ ),
16050
+ display_offset_y: z74.string().optional().describe(
16051
+ "How to display the y offset for this part, usually corresponding with how the user specified it"
16052
+ ),
16025
16053
  width: length,
16026
16054
  height: length,
16027
- do_not_place: z71.boolean().optional(),
16028
- subcircuit_id: z71.string().optional(),
16029
- pcb_group_id: z71.string().optional(),
16030
- position_mode: z71.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
16031
- positioned_relative_to_pcb_group_id: z71.string().optional(),
16032
- obstructs_within_bounds: z71.boolean().default(true).describe(
16055
+ do_not_place: z74.boolean().optional(),
16056
+ subcircuit_id: z74.string().optional(),
16057
+ pcb_group_id: z74.string().optional(),
16058
+ position_mode: z74.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
16059
+ positioned_relative_to_pcb_group_id: z74.string().optional(),
16060
+ positioned_relative_to_pcb_board_id: z74.string().optional(),
16061
+ obstructs_within_bounds: z74.boolean().default(true).describe(
16033
16062
  "Does this component take up all the space within its bounds on a layer. This is generally true except for when separated pin headers are being represented by a single component (in which case, chips can be placed between the pin headers) or for tall modules where chips fit underneath"
16034
16063
  )
16035
16064
  }).describe("Defines a component on the PCB");
16036
16065
  expectTypesMatch(true);
16037
- var pcb_hole_circle = z72.object({
16038
- type: z72.literal("pcb_hole"),
16066
+ var pcb_hole_circle = z75.object({
16067
+ type: z75.literal("pcb_hole"),
16039
16068
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
16040
- pcb_group_id: z72.string().optional(),
16041
- subcircuit_id: z72.string().optional(),
16042
- hole_shape: z72.literal("circle"),
16043
- hole_diameter: z72.number(),
16069
+ pcb_group_id: z75.string().optional(),
16070
+ subcircuit_id: z75.string().optional(),
16071
+ hole_shape: z75.literal("circle"),
16072
+ hole_diameter: z75.number(),
16044
16073
  x: distance,
16045
16074
  y: distance,
16046
- is_covered_with_solder_mask: z72.boolean().optional(),
16047
- soldermask_margin: z72.number().optional()
16075
+ is_covered_with_solder_mask: z75.boolean().optional(),
16076
+ soldermask_margin: z75.number().optional()
16048
16077
  });
16049
16078
  var pcb_hole_circle_shape = pcb_hole_circle.describe(
16050
16079
  "Defines a circular hole on the PCB"
16051
16080
  );
16052
16081
  expectTypesMatch(true);
16053
- var pcb_hole_rect = z72.object({
16054
- type: z72.literal("pcb_hole"),
16082
+ var pcb_hole_rect = z75.object({
16083
+ type: z75.literal("pcb_hole"),
16055
16084
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
16056
- pcb_group_id: z72.string().optional(),
16057
- subcircuit_id: z72.string().optional(),
16058
- hole_shape: z72.literal("rect"),
16059
- hole_width: z72.number(),
16060
- hole_height: z72.number(),
16085
+ pcb_group_id: z75.string().optional(),
16086
+ subcircuit_id: z75.string().optional(),
16087
+ hole_shape: z75.literal("rect"),
16088
+ hole_width: z75.number(),
16089
+ hole_height: z75.number(),
16061
16090
  x: distance,
16062
16091
  y: distance,
16063
- is_covered_with_solder_mask: z72.boolean().optional(),
16064
- soldermask_margin: z72.number().optional()
16092
+ is_covered_with_solder_mask: z75.boolean().optional(),
16093
+ soldermask_margin: z75.number().optional()
16065
16094
  });
16066
16095
  var pcb_hole_rect_shape = pcb_hole_rect.describe(
16067
16096
  "Defines a rectangular (square-capable) hole on the PCB. Use equal width/height for square."
16068
16097
  );
16069
16098
  expectTypesMatch(true);
16070
- var pcb_hole_circle_or_square = z72.object({
16071
- type: z72.literal("pcb_hole"),
16099
+ var pcb_hole_circle_or_square = z75.object({
16100
+ type: z75.literal("pcb_hole"),
16072
16101
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
16073
- pcb_group_id: z72.string().optional(),
16074
- subcircuit_id: z72.string().optional(),
16075
- hole_shape: z72.enum(["circle", "square"]),
16076
- hole_diameter: z72.number(),
16102
+ pcb_group_id: z75.string().optional(),
16103
+ subcircuit_id: z75.string().optional(),
16104
+ hole_shape: z75.enum(["circle", "square"]),
16105
+ hole_diameter: z75.number(),
16077
16106
  x: distance,
16078
16107
  y: distance,
16079
- is_covered_with_solder_mask: z72.boolean().optional(),
16080
- soldermask_margin: z72.number().optional()
16108
+ is_covered_with_solder_mask: z75.boolean().optional(),
16109
+ soldermask_margin: z75.number().optional()
16081
16110
  });
16082
16111
  var pcb_hole_circle_or_square_shape = pcb_hole_circle_or_square.describe(
16083
16112
  "Defines a circular or square hole on the PCB"
16084
16113
  );
16085
16114
  expectTypesMatch(true);
16086
- var pcb_hole_oval = z72.object({
16087
- type: z72.literal("pcb_hole"),
16115
+ var pcb_hole_oval = z75.object({
16116
+ type: z75.literal("pcb_hole"),
16088
16117
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
16089
- pcb_group_id: z72.string().optional(),
16090
- subcircuit_id: z72.string().optional(),
16091
- hole_shape: z72.literal("oval"),
16092
- hole_width: z72.number(),
16093
- hole_height: z72.number(),
16118
+ pcb_group_id: z75.string().optional(),
16119
+ subcircuit_id: z75.string().optional(),
16120
+ hole_shape: z75.literal("oval"),
16121
+ hole_width: z75.number(),
16122
+ hole_height: z75.number(),
16094
16123
  x: distance,
16095
16124
  y: distance,
16096
- is_covered_with_solder_mask: z72.boolean().optional(),
16097
- soldermask_margin: z72.number().optional()
16125
+ is_covered_with_solder_mask: z75.boolean().optional(),
16126
+ soldermask_margin: z75.number().optional()
16098
16127
  });
16099
16128
  var pcb_hole_oval_shape = pcb_hole_oval.describe(
16100
16129
  "Defines an oval hole on the PCB"
16101
16130
  );
16102
16131
  expectTypesMatch(true);
16103
- var pcb_hole_pill = z72.object({
16104
- type: z72.literal("pcb_hole"),
16132
+ var pcb_hole_pill = z75.object({
16133
+ type: z75.literal("pcb_hole"),
16105
16134
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
16106
- pcb_group_id: z72.string().optional(),
16107
- subcircuit_id: z72.string().optional(),
16108
- hole_shape: z72.literal("pill"),
16109
- hole_width: z72.number(),
16110
- hole_height: z72.number(),
16135
+ pcb_group_id: z75.string().optional(),
16136
+ subcircuit_id: z75.string().optional(),
16137
+ hole_shape: z75.literal("pill"),
16138
+ hole_width: z75.number(),
16139
+ hole_height: z75.number(),
16111
16140
  x: distance,
16112
16141
  y: distance,
16113
- is_covered_with_solder_mask: z72.boolean().optional(),
16114
- soldermask_margin: z72.number().optional()
16142
+ is_covered_with_solder_mask: z75.boolean().optional(),
16143
+ soldermask_margin: z75.number().optional()
16115
16144
  });
16116
16145
  var pcb_hole_pill_shape = pcb_hole_pill.describe(
16117
16146
  "Defines a pill-shaped hole on the PCB"
16118
16147
  );
16119
16148
  expectTypesMatch(true);
16120
- var pcb_hole_rotated_pill = z72.object({
16121
- type: z72.literal("pcb_hole"),
16149
+ var pcb_hole_rotated_pill = z75.object({
16150
+ type: z75.literal("pcb_hole"),
16122
16151
  pcb_hole_id: getZodPrefixedIdWithDefault("pcb_hole"),
16123
- pcb_group_id: z72.string().optional(),
16124
- subcircuit_id: z72.string().optional(),
16125
- hole_shape: z72.literal("rotated_pill"),
16126
- hole_width: z72.number(),
16127
- hole_height: z72.number(),
16152
+ pcb_group_id: z75.string().optional(),
16153
+ subcircuit_id: z75.string().optional(),
16154
+ hole_shape: z75.literal("rotated_pill"),
16155
+ hole_width: z75.number(),
16156
+ hole_height: z75.number(),
16128
16157
  x: distance,
16129
16158
  y: distance,
16130
16159
  ccw_rotation: rotation,
16131
- is_covered_with_solder_mask: z72.boolean().optional(),
16132
- soldermask_margin: z72.number().optional()
16160
+ is_covered_with_solder_mask: z75.boolean().optional(),
16161
+ soldermask_margin: z75.number().optional()
16133
16162
  });
16134
16163
  var pcb_hole_rotated_pill_shape = pcb_hole_rotated_pill.describe(
16135
16164
  "Defines a rotated pill-shaped hole on the PCB"
16136
16165
  );
16137
16166
  expectTypesMatch(true);
16138
16167
  var pcb_hole = pcb_hole_circle_or_square.or(pcb_hole_oval).or(pcb_hole_pill).or(pcb_hole_rotated_pill).or(pcb_hole_circle).or(pcb_hole_rect);
16139
- var pcb_plated_hole_circle = z73.object({
16140
- type: z73.literal("pcb_plated_hole"),
16141
- shape: z73.literal("circle"),
16142
- pcb_group_id: z73.string().optional(),
16143
- subcircuit_id: z73.string().optional(),
16144
- outer_diameter: z73.number(),
16145
- hole_diameter: z73.number(),
16168
+ var pcb_plated_hole_circle = z76.object({
16169
+ type: z76.literal("pcb_plated_hole"),
16170
+ shape: z76.literal("circle"),
16171
+ pcb_group_id: z76.string().optional(),
16172
+ subcircuit_id: z76.string().optional(),
16173
+ outer_diameter: z76.number(),
16174
+ hole_diameter: z76.number(),
16175
+ is_covered_with_solder_mask: z76.boolean().optional(),
16146
16176
  x: distance,
16147
16177
  y: distance,
16148
- layers: z73.array(layer_ref),
16149
- port_hints: z73.array(z73.string()).optional(),
16150
- pcb_component_id: z73.string().optional(),
16151
- pcb_port_id: z73.string().optional(),
16178
+ layers: z76.array(layer_ref),
16179
+ port_hints: z76.array(z76.string()).optional(),
16180
+ pcb_component_id: z76.string().optional(),
16181
+ pcb_port_id: z76.string().optional(),
16152
16182
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
16153
- soldermask_margin: z73.number().optional()
16154
- });
16155
- var pcb_plated_hole_oval = z73.object({
16156
- type: z73.literal("pcb_plated_hole"),
16157
- shape: z73.enum(["oval", "pill"]),
16158
- pcb_group_id: z73.string().optional(),
16159
- subcircuit_id: z73.string().optional(),
16160
- outer_width: z73.number(),
16161
- outer_height: z73.number(),
16162
- hole_width: z73.number(),
16163
- hole_height: z73.number(),
16164
- is_covered_with_solder_mask: z73.boolean().optional(),
16183
+ soldermask_margin: z76.number().optional()
16184
+ });
16185
+ var pcb_plated_hole_oval = z76.object({
16186
+ type: z76.literal("pcb_plated_hole"),
16187
+ shape: z76.enum(["oval", "pill"]),
16188
+ pcb_group_id: z76.string().optional(),
16189
+ subcircuit_id: z76.string().optional(),
16190
+ outer_width: z76.number(),
16191
+ outer_height: z76.number(),
16192
+ hole_width: z76.number(),
16193
+ hole_height: z76.number(),
16194
+ is_covered_with_solder_mask: z76.boolean().optional(),
16165
16195
  x: distance,
16166
16196
  y: distance,
16167
16197
  ccw_rotation: rotation,
16168
- layers: z73.array(layer_ref),
16169
- port_hints: z73.array(z73.string()).optional(),
16170
- pcb_component_id: z73.string().optional(),
16171
- pcb_port_id: z73.string().optional(),
16198
+ layers: z76.array(layer_ref),
16199
+ port_hints: z76.array(z76.string()).optional(),
16200
+ pcb_component_id: z76.string().optional(),
16201
+ pcb_port_id: z76.string().optional(),
16172
16202
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
16173
- soldermask_margin: z73.number().optional()
16174
- });
16175
- var pcb_circular_hole_with_rect_pad = z73.object({
16176
- type: z73.literal("pcb_plated_hole"),
16177
- shape: z73.literal("circular_hole_with_rect_pad"),
16178
- pcb_group_id: z73.string().optional(),
16179
- subcircuit_id: z73.string().optional(),
16180
- hole_shape: z73.literal("circle"),
16181
- pad_shape: z73.literal("rect"),
16182
- hole_diameter: z73.number(),
16183
- rect_pad_width: z73.number(),
16184
- rect_pad_height: z73.number(),
16185
- rect_border_radius: z73.number().optional(),
16203
+ soldermask_margin: z76.number().optional()
16204
+ });
16205
+ var pcb_circular_hole_with_rect_pad = z76.object({
16206
+ type: z76.literal("pcb_plated_hole"),
16207
+ shape: z76.literal("circular_hole_with_rect_pad"),
16208
+ pcb_group_id: z76.string().optional(),
16209
+ subcircuit_id: z76.string().optional(),
16210
+ hole_shape: z76.literal("circle"),
16211
+ pad_shape: z76.literal("rect"),
16212
+ hole_diameter: z76.number(),
16213
+ rect_pad_width: z76.number(),
16214
+ rect_pad_height: z76.number(),
16215
+ rect_border_radius: z76.number().optional(),
16186
16216
  hole_offset_x: distance.default(0),
16187
16217
  hole_offset_y: distance.default(0),
16188
- is_covered_with_solder_mask: z73.boolean().optional(),
16218
+ is_covered_with_solder_mask: z76.boolean().optional(),
16189
16219
  x: distance,
16190
16220
  y: distance,
16191
- layers: z73.array(layer_ref),
16192
- port_hints: z73.array(z73.string()).optional(),
16193
- pcb_component_id: z73.string().optional(),
16194
- pcb_port_id: z73.string().optional(),
16221
+ layers: z76.array(layer_ref),
16222
+ port_hints: z76.array(z76.string()).optional(),
16223
+ pcb_component_id: z76.string().optional(),
16224
+ pcb_port_id: z76.string().optional(),
16195
16225
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
16196
- soldermask_margin: z73.number().optional()
16197
- });
16198
- var pcb_pill_hole_with_rect_pad = z73.object({
16199
- type: z73.literal("pcb_plated_hole"),
16200
- shape: z73.literal("pill_hole_with_rect_pad"),
16201
- pcb_group_id: z73.string().optional(),
16202
- subcircuit_id: z73.string().optional(),
16203
- hole_shape: z73.literal("pill"),
16204
- pad_shape: z73.literal("rect"),
16205
- hole_width: z73.number(),
16206
- hole_height: z73.number(),
16207
- rect_pad_width: z73.number(),
16208
- rect_pad_height: z73.number(),
16209
- rect_border_radius: z73.number().optional(),
16226
+ soldermask_margin: z76.number().optional()
16227
+ });
16228
+ var pcb_pill_hole_with_rect_pad = z76.object({
16229
+ type: z76.literal("pcb_plated_hole"),
16230
+ shape: z76.literal("pill_hole_with_rect_pad"),
16231
+ pcb_group_id: z76.string().optional(),
16232
+ subcircuit_id: z76.string().optional(),
16233
+ hole_shape: z76.literal("pill"),
16234
+ pad_shape: z76.literal("rect"),
16235
+ hole_width: z76.number(),
16236
+ hole_height: z76.number(),
16237
+ rect_pad_width: z76.number(),
16238
+ rect_pad_height: z76.number(),
16239
+ rect_border_radius: z76.number().optional(),
16210
16240
  hole_offset_x: distance.default(0),
16211
16241
  hole_offset_y: distance.default(0),
16212
- is_covered_with_solder_mask: z73.boolean().optional(),
16242
+ is_covered_with_solder_mask: z76.boolean().optional(),
16213
16243
  x: distance,
16214
16244
  y: distance,
16215
- layers: z73.array(layer_ref),
16216
- port_hints: z73.array(z73.string()).optional(),
16217
- pcb_component_id: z73.string().optional(),
16218
- pcb_port_id: z73.string().optional(),
16245
+ layers: z76.array(layer_ref),
16246
+ port_hints: z76.array(z76.string()).optional(),
16247
+ pcb_component_id: z76.string().optional(),
16248
+ pcb_port_id: z76.string().optional(),
16219
16249
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
16220
- soldermask_margin: z73.number().optional()
16221
- });
16222
- var pcb_rotated_pill_hole_with_rect_pad = z73.object({
16223
- type: z73.literal("pcb_plated_hole"),
16224
- shape: z73.literal("rotated_pill_hole_with_rect_pad"),
16225
- pcb_group_id: z73.string().optional(),
16226
- subcircuit_id: z73.string().optional(),
16227
- hole_shape: z73.literal("rotated_pill"),
16228
- pad_shape: z73.literal("rect"),
16229
- hole_width: z73.number(),
16230
- hole_height: z73.number(),
16250
+ soldermask_margin: z76.number().optional()
16251
+ });
16252
+ var pcb_rotated_pill_hole_with_rect_pad = z76.object({
16253
+ type: z76.literal("pcb_plated_hole"),
16254
+ shape: z76.literal("rotated_pill_hole_with_rect_pad"),
16255
+ pcb_group_id: z76.string().optional(),
16256
+ subcircuit_id: z76.string().optional(),
16257
+ hole_shape: z76.literal("rotated_pill"),
16258
+ pad_shape: z76.literal("rect"),
16259
+ hole_width: z76.number(),
16260
+ hole_height: z76.number(),
16231
16261
  hole_ccw_rotation: rotation,
16232
- rect_pad_width: z73.number(),
16233
- rect_pad_height: z73.number(),
16234
- rect_border_radius: z73.number().optional(),
16262
+ rect_pad_width: z76.number(),
16263
+ rect_pad_height: z76.number(),
16264
+ rect_border_radius: z76.number().optional(),
16235
16265
  rect_ccw_rotation: rotation,
16236
16266
  hole_offset_x: distance.default(0),
16237
16267
  hole_offset_y: distance.default(0),
16238
- is_covered_with_solder_mask: z73.boolean().optional(),
16268
+ is_covered_with_solder_mask: z76.boolean().optional(),
16239
16269
  x: distance,
16240
16270
  y: distance,
16241
- layers: z73.array(layer_ref),
16242
- port_hints: z73.array(z73.string()).optional(),
16243
- pcb_component_id: z73.string().optional(),
16244
- pcb_port_id: z73.string().optional(),
16271
+ layers: z76.array(layer_ref),
16272
+ port_hints: z76.array(z76.string()).optional(),
16273
+ pcb_component_id: z76.string().optional(),
16274
+ pcb_port_id: z76.string().optional(),
16245
16275
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
16246
- soldermask_margin: z73.number().optional()
16247
- });
16248
- var pcb_hole_with_polygon_pad = z73.object({
16249
- type: z73.literal("pcb_plated_hole"),
16250
- shape: z73.literal("hole_with_polygon_pad"),
16251
- pcb_group_id: z73.string().optional(),
16252
- subcircuit_id: z73.string().optional(),
16253
- hole_shape: z73.enum(["circle", "oval", "pill", "rotated_pill"]),
16254
- hole_diameter: z73.number().optional(),
16255
- hole_width: z73.number().optional(),
16256
- hole_height: z73.number().optional(),
16257
- pad_outline: z73.array(
16258
- z73.object({
16276
+ soldermask_margin: z76.number().optional()
16277
+ });
16278
+ var pcb_hole_with_polygon_pad = z76.object({
16279
+ type: z76.literal("pcb_plated_hole"),
16280
+ shape: z76.literal("hole_with_polygon_pad"),
16281
+ pcb_group_id: z76.string().optional(),
16282
+ subcircuit_id: z76.string().optional(),
16283
+ hole_shape: z76.enum(["circle", "oval", "pill", "rotated_pill"]),
16284
+ hole_diameter: z76.number().optional(),
16285
+ hole_width: z76.number().optional(),
16286
+ hole_height: z76.number().optional(),
16287
+ pad_outline: z76.array(
16288
+ z76.object({
16259
16289
  x: distance,
16260
16290
  y: distance
16261
16291
  })
16262
16292
  ).min(3),
16263
16293
  hole_offset_x: distance.default(0),
16264
16294
  hole_offset_y: distance.default(0),
16265
- is_covered_with_solder_mask: z73.boolean().optional(),
16295
+ is_covered_with_solder_mask: z76.boolean().optional(),
16266
16296
  x: distance,
16267
16297
  y: distance,
16268
- layers: z73.array(layer_ref),
16269
- port_hints: z73.array(z73.string()).optional(),
16270
- pcb_component_id: z73.string().optional(),
16271
- pcb_port_id: z73.string().optional(),
16298
+ layers: z76.array(layer_ref),
16299
+ port_hints: z76.array(z76.string()).optional(),
16300
+ pcb_component_id: z76.string().optional(),
16301
+ pcb_port_id: z76.string().optional(),
16272
16302
  pcb_plated_hole_id: getZodPrefixedIdWithDefault("pcb_plated_hole"),
16273
- soldermask_margin: z73.number().optional()
16303
+ soldermask_margin: z76.number().optional()
16274
16304
  });
16275
- var pcb_plated_hole = z73.union([
16305
+ var pcb_plated_hole = z76.union([
16276
16306
  pcb_plated_hole_circle,
16277
16307
  pcb_plated_hole_oval,
16278
16308
  pcb_circular_hole_with_rect_pad,
@@ -16288,126 +16318,126 @@ expectTypesMatch(true);
16288
16318
  expectTypesMatch(true);
16289
16319
  expectTypesMatch(true);
16290
16320
  expectTypesMatch(true);
16291
- var pcb_port = z74.object({
16292
- type: z74.literal("pcb_port"),
16321
+ var pcb_port = z77.object({
16322
+ type: z77.literal("pcb_port"),
16293
16323
  pcb_port_id: getZodPrefixedIdWithDefault("pcb_port"),
16294
- pcb_group_id: z74.string().optional(),
16295
- subcircuit_id: z74.string().optional(),
16296
- source_port_id: z74.string(),
16297
- pcb_component_id: z74.string().optional(),
16324
+ pcb_group_id: z77.string().optional(),
16325
+ subcircuit_id: z77.string().optional(),
16326
+ source_port_id: z77.string(),
16327
+ pcb_component_id: z77.string().optional(),
16298
16328
  x: distance,
16299
16329
  y: distance,
16300
- layers: z74.array(layer_ref),
16301
- is_board_pinout: z74.boolean().optional()
16330
+ layers: z77.array(layer_ref),
16331
+ is_board_pinout: z77.boolean().optional()
16302
16332
  }).describe("Defines a port on the PCB");
16303
16333
  expectTypesMatch(true);
16304
- var pcb_smtpad_circle = z75.object({
16305
- type: z75.literal("pcb_smtpad"),
16306
- shape: z75.literal("circle"),
16334
+ var pcb_smtpad_circle = z78.object({
16335
+ type: z78.literal("pcb_smtpad"),
16336
+ shape: z78.literal("circle"),
16307
16337
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
16308
- pcb_group_id: z75.string().optional(),
16309
- subcircuit_id: z75.string().optional(),
16338
+ pcb_group_id: z78.string().optional(),
16339
+ subcircuit_id: z78.string().optional(),
16310
16340
  x: distance,
16311
16341
  y: distance,
16312
- radius: z75.number(),
16342
+ radius: z78.number(),
16313
16343
  layer: layer_ref,
16314
- port_hints: z75.array(z75.string()).optional(),
16315
- pcb_component_id: z75.string().optional(),
16316
- pcb_port_id: z75.string().optional(),
16317
- is_covered_with_solder_mask: z75.boolean().optional(),
16318
- soldermask_margin: z75.number().optional()
16344
+ port_hints: z78.array(z78.string()).optional(),
16345
+ pcb_component_id: z78.string().optional(),
16346
+ pcb_port_id: z78.string().optional(),
16347
+ is_covered_with_solder_mask: z78.boolean().optional(),
16348
+ soldermask_margin: z78.number().optional()
16319
16349
  });
16320
- var pcb_smtpad_rect = z75.object({
16321
- type: z75.literal("pcb_smtpad"),
16322
- shape: z75.literal("rect"),
16350
+ var pcb_smtpad_rect = z78.object({
16351
+ type: z78.literal("pcb_smtpad"),
16352
+ shape: z78.literal("rect"),
16323
16353
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
16324
- pcb_group_id: z75.string().optional(),
16325
- subcircuit_id: z75.string().optional(),
16354
+ pcb_group_id: z78.string().optional(),
16355
+ subcircuit_id: z78.string().optional(),
16326
16356
  x: distance,
16327
16357
  y: distance,
16328
- width: z75.number(),
16329
- height: z75.number(),
16330
- rect_border_radius: z75.number().optional(),
16331
- corner_radius: z75.number().optional(),
16358
+ width: z78.number(),
16359
+ height: z78.number(),
16360
+ rect_border_radius: z78.number().optional(),
16361
+ corner_radius: z78.number().optional(),
16332
16362
  layer: layer_ref,
16333
- port_hints: z75.array(z75.string()).optional(),
16334
- pcb_component_id: z75.string().optional(),
16335
- pcb_port_id: z75.string().optional(),
16336
- is_covered_with_solder_mask: z75.boolean().optional(),
16337
- soldermask_margin: z75.number().optional()
16363
+ port_hints: z78.array(z78.string()).optional(),
16364
+ pcb_component_id: z78.string().optional(),
16365
+ pcb_port_id: z78.string().optional(),
16366
+ is_covered_with_solder_mask: z78.boolean().optional(),
16367
+ soldermask_margin: z78.number().optional()
16338
16368
  });
16339
- var pcb_smtpad_rotated_rect = z75.object({
16340
- type: z75.literal("pcb_smtpad"),
16341
- shape: z75.literal("rotated_rect"),
16369
+ var pcb_smtpad_rotated_rect = z78.object({
16370
+ type: z78.literal("pcb_smtpad"),
16371
+ shape: z78.literal("rotated_rect"),
16342
16372
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
16343
- pcb_group_id: z75.string().optional(),
16344
- subcircuit_id: z75.string().optional(),
16373
+ pcb_group_id: z78.string().optional(),
16374
+ subcircuit_id: z78.string().optional(),
16345
16375
  x: distance,
16346
16376
  y: distance,
16347
- width: z75.number(),
16348
- height: z75.number(),
16349
- rect_border_radius: z75.number().optional(),
16350
- corner_radius: z75.number().optional(),
16377
+ width: z78.number(),
16378
+ height: z78.number(),
16379
+ rect_border_radius: z78.number().optional(),
16380
+ corner_radius: z78.number().optional(),
16351
16381
  ccw_rotation: rotation,
16352
16382
  layer: layer_ref,
16353
- port_hints: z75.array(z75.string()).optional(),
16354
- pcb_component_id: z75.string().optional(),
16355
- pcb_port_id: z75.string().optional(),
16356
- is_covered_with_solder_mask: z75.boolean().optional(),
16357
- soldermask_margin: z75.number().optional()
16383
+ port_hints: z78.array(z78.string()).optional(),
16384
+ pcb_component_id: z78.string().optional(),
16385
+ pcb_port_id: z78.string().optional(),
16386
+ is_covered_with_solder_mask: z78.boolean().optional(),
16387
+ soldermask_margin: z78.number().optional()
16358
16388
  });
16359
- var pcb_smtpad_pill = z75.object({
16360
- type: z75.literal("pcb_smtpad"),
16361
- shape: z75.literal("pill"),
16389
+ var pcb_smtpad_pill = z78.object({
16390
+ type: z78.literal("pcb_smtpad"),
16391
+ shape: z78.literal("pill"),
16362
16392
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
16363
- pcb_group_id: z75.string().optional(),
16364
- subcircuit_id: z75.string().optional(),
16393
+ pcb_group_id: z78.string().optional(),
16394
+ subcircuit_id: z78.string().optional(),
16365
16395
  x: distance,
16366
16396
  y: distance,
16367
- width: z75.number(),
16368
- height: z75.number(),
16369
- radius: z75.number(),
16397
+ width: z78.number(),
16398
+ height: z78.number(),
16399
+ radius: z78.number(),
16370
16400
  layer: layer_ref,
16371
- port_hints: z75.array(z75.string()).optional(),
16372
- pcb_component_id: z75.string().optional(),
16373
- pcb_port_id: z75.string().optional(),
16374
- is_covered_with_solder_mask: z75.boolean().optional(),
16375
- soldermask_margin: z75.number().optional()
16401
+ port_hints: z78.array(z78.string()).optional(),
16402
+ pcb_component_id: z78.string().optional(),
16403
+ pcb_port_id: z78.string().optional(),
16404
+ is_covered_with_solder_mask: z78.boolean().optional(),
16405
+ soldermask_margin: z78.number().optional()
16376
16406
  });
16377
- var pcb_smtpad_rotated_pill = z75.object({
16378
- type: z75.literal("pcb_smtpad"),
16379
- shape: z75.literal("rotated_pill"),
16407
+ var pcb_smtpad_rotated_pill = z78.object({
16408
+ type: z78.literal("pcb_smtpad"),
16409
+ shape: z78.literal("rotated_pill"),
16380
16410
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
16381
- pcb_group_id: z75.string().optional(),
16382
- subcircuit_id: z75.string().optional(),
16411
+ pcb_group_id: z78.string().optional(),
16412
+ subcircuit_id: z78.string().optional(),
16383
16413
  x: distance,
16384
16414
  y: distance,
16385
- width: z75.number(),
16386
- height: z75.number(),
16387
- radius: z75.number(),
16415
+ width: z78.number(),
16416
+ height: z78.number(),
16417
+ radius: z78.number(),
16388
16418
  ccw_rotation: rotation,
16389
16419
  layer: layer_ref,
16390
- port_hints: z75.array(z75.string()).optional(),
16391
- pcb_component_id: z75.string().optional(),
16392
- pcb_port_id: z75.string().optional(),
16393
- is_covered_with_solder_mask: z75.boolean().optional(),
16394
- soldermask_margin: z75.number().optional()
16420
+ port_hints: z78.array(z78.string()).optional(),
16421
+ pcb_component_id: z78.string().optional(),
16422
+ pcb_port_id: z78.string().optional(),
16423
+ is_covered_with_solder_mask: z78.boolean().optional(),
16424
+ soldermask_margin: z78.number().optional()
16395
16425
  });
16396
- var pcb_smtpad_polygon = z75.object({
16397
- type: z75.literal("pcb_smtpad"),
16398
- shape: z75.literal("polygon"),
16426
+ var pcb_smtpad_polygon = z78.object({
16427
+ type: z78.literal("pcb_smtpad"),
16428
+ shape: z78.literal("polygon"),
16399
16429
  pcb_smtpad_id: getZodPrefixedIdWithDefault("pcb_smtpad"),
16400
- pcb_group_id: z75.string().optional(),
16401
- subcircuit_id: z75.string().optional(),
16402
- points: z75.array(point),
16430
+ pcb_group_id: z78.string().optional(),
16431
+ subcircuit_id: z78.string().optional(),
16432
+ points: z78.array(point),
16403
16433
  layer: layer_ref,
16404
- port_hints: z75.array(z75.string()).optional(),
16405
- pcb_component_id: z75.string().optional(),
16406
- pcb_port_id: z75.string().optional(),
16407
- is_covered_with_solder_mask: z75.boolean().optional(),
16408
- soldermask_margin: z75.number().optional()
16434
+ port_hints: z78.array(z78.string()).optional(),
16435
+ pcb_component_id: z78.string().optional(),
16436
+ pcb_port_id: z78.string().optional(),
16437
+ is_covered_with_solder_mask: z78.boolean().optional(),
16438
+ soldermask_margin: z78.number().optional()
16409
16439
  });
16410
- var pcb_smtpad = z75.discriminatedUnion("shape", [
16440
+ var pcb_smtpad = z78.discriminatedUnion("shape", [
16411
16441
  pcb_smtpad_circle,
16412
16442
  pcb_smtpad_rect,
16413
16443
  pcb_smtpad_rotated_rect,
@@ -16421,78 +16451,78 @@ expectTypesMatch(true);
16421
16451
  expectTypesMatch(true);
16422
16452
  expectTypesMatch(true);
16423
16453
  expectTypesMatch(true);
16424
- var pcb_solder_paste_circle = z76.object({
16425
- type: z76.literal("pcb_solder_paste"),
16426
- shape: z76.literal("circle"),
16454
+ var pcb_solder_paste_circle = z79.object({
16455
+ type: z79.literal("pcb_solder_paste"),
16456
+ shape: z79.literal("circle"),
16427
16457
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
16428
- pcb_group_id: z76.string().optional(),
16429
- subcircuit_id: z76.string().optional(),
16458
+ pcb_group_id: z79.string().optional(),
16459
+ subcircuit_id: z79.string().optional(),
16430
16460
  x: distance,
16431
16461
  y: distance,
16432
- radius: z76.number(),
16462
+ radius: z79.number(),
16433
16463
  layer: layer_ref,
16434
- pcb_component_id: z76.string().optional(),
16435
- pcb_smtpad_id: z76.string().optional()
16464
+ pcb_component_id: z79.string().optional(),
16465
+ pcb_smtpad_id: z79.string().optional()
16436
16466
  });
16437
- var pcb_solder_paste_rect = z76.object({
16438
- type: z76.literal("pcb_solder_paste"),
16439
- shape: z76.literal("rect"),
16467
+ var pcb_solder_paste_rect = z79.object({
16468
+ type: z79.literal("pcb_solder_paste"),
16469
+ shape: z79.literal("rect"),
16440
16470
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
16441
- pcb_group_id: z76.string().optional(),
16442
- subcircuit_id: z76.string().optional(),
16471
+ pcb_group_id: z79.string().optional(),
16472
+ subcircuit_id: z79.string().optional(),
16443
16473
  x: distance,
16444
16474
  y: distance,
16445
- width: z76.number(),
16446
- height: z76.number(),
16475
+ width: z79.number(),
16476
+ height: z79.number(),
16447
16477
  layer: layer_ref,
16448
- pcb_component_id: z76.string().optional(),
16449
- pcb_smtpad_id: z76.string().optional()
16478
+ pcb_component_id: z79.string().optional(),
16479
+ pcb_smtpad_id: z79.string().optional()
16450
16480
  });
16451
- var pcb_solder_paste_pill = z76.object({
16452
- type: z76.literal("pcb_solder_paste"),
16453
- shape: z76.literal("pill"),
16481
+ var pcb_solder_paste_pill = z79.object({
16482
+ type: z79.literal("pcb_solder_paste"),
16483
+ shape: z79.literal("pill"),
16454
16484
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
16455
- pcb_group_id: z76.string().optional(),
16456
- subcircuit_id: z76.string().optional(),
16485
+ pcb_group_id: z79.string().optional(),
16486
+ subcircuit_id: z79.string().optional(),
16457
16487
  x: distance,
16458
16488
  y: distance,
16459
- width: z76.number(),
16460
- height: z76.number(),
16461
- radius: z76.number(),
16489
+ width: z79.number(),
16490
+ height: z79.number(),
16491
+ radius: z79.number(),
16462
16492
  layer: layer_ref,
16463
- pcb_component_id: z76.string().optional(),
16464
- pcb_smtpad_id: z76.string().optional()
16493
+ pcb_component_id: z79.string().optional(),
16494
+ pcb_smtpad_id: z79.string().optional()
16465
16495
  });
16466
- var pcb_solder_paste_rotated_rect = z76.object({
16467
- type: z76.literal("pcb_solder_paste"),
16468
- shape: z76.literal("rotated_rect"),
16496
+ var pcb_solder_paste_rotated_rect = z79.object({
16497
+ type: z79.literal("pcb_solder_paste"),
16498
+ shape: z79.literal("rotated_rect"),
16469
16499
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
16470
- pcb_group_id: z76.string().optional(),
16471
- subcircuit_id: z76.string().optional(),
16500
+ pcb_group_id: z79.string().optional(),
16501
+ subcircuit_id: z79.string().optional(),
16472
16502
  x: distance,
16473
16503
  y: distance,
16474
- width: z76.number(),
16475
- height: z76.number(),
16504
+ width: z79.number(),
16505
+ height: z79.number(),
16476
16506
  ccw_rotation: distance,
16477
16507
  layer: layer_ref,
16478
- pcb_component_id: z76.string().optional(),
16479
- pcb_smtpad_id: z76.string().optional()
16508
+ pcb_component_id: z79.string().optional(),
16509
+ pcb_smtpad_id: z79.string().optional()
16480
16510
  });
16481
- var pcb_solder_paste_oval = z76.object({
16482
- type: z76.literal("pcb_solder_paste"),
16483
- shape: z76.literal("oval"),
16511
+ var pcb_solder_paste_oval = z79.object({
16512
+ type: z79.literal("pcb_solder_paste"),
16513
+ shape: z79.literal("oval"),
16484
16514
  pcb_solder_paste_id: getZodPrefixedIdWithDefault("pcb_solder_paste"),
16485
- pcb_group_id: z76.string().optional(),
16486
- subcircuit_id: z76.string().optional(),
16515
+ pcb_group_id: z79.string().optional(),
16516
+ subcircuit_id: z79.string().optional(),
16487
16517
  x: distance,
16488
16518
  y: distance,
16489
- width: z76.number(),
16490
- height: z76.number(),
16519
+ width: z79.number(),
16520
+ height: z79.number(),
16491
16521
  layer: layer_ref,
16492
- pcb_component_id: z76.string().optional(),
16493
- pcb_smtpad_id: z76.string().optional()
16522
+ pcb_component_id: z79.string().optional(),
16523
+ pcb_smtpad_id: z79.string().optional()
16494
16524
  });
16495
- var pcb_solder_paste = z76.union([
16525
+ var pcb_solder_paste = z79.union([
16496
16526
  pcb_solder_paste_circle,
16497
16527
  pcb_solder_paste_rect,
16498
16528
  pcb_solder_paste_pill,
@@ -16506,124 +16536,124 @@ expectTypesMatch(
16506
16536
  true
16507
16537
  );
16508
16538
  expectTypesMatch(true);
16509
- var pcb_text = z77.object({
16510
- type: z77.literal("pcb_text"),
16539
+ var pcb_text = z80.object({
16540
+ type: z80.literal("pcb_text"),
16511
16541
  pcb_text_id: getZodPrefixedIdWithDefault("pcb_text"),
16512
- pcb_group_id: z77.string().optional(),
16513
- subcircuit_id: z77.string().optional(),
16514
- text: z77.string(),
16542
+ pcb_group_id: z80.string().optional(),
16543
+ subcircuit_id: z80.string().optional(),
16544
+ text: z80.string(),
16515
16545
  center: point,
16516
16546
  layer: layer_ref,
16517
16547
  width: length,
16518
16548
  height: length,
16519
- lines: z77.number(),
16549
+ lines: z80.number(),
16520
16550
  // @ts-ignore
16521
- align: z77.enum(["bottom-left"])
16551
+ align: z80.enum(["bottom-left"])
16522
16552
  }).describe("Defines text on the PCB");
16523
16553
  expectTypesMatch(true);
16524
- var pcb_trace_route_point_wire = z78.object({
16525
- route_type: z78.literal("wire"),
16554
+ var pcb_trace_route_point_wire = z81.object({
16555
+ route_type: z81.literal("wire"),
16526
16556
  x: distance,
16527
16557
  y: distance,
16528
16558
  width: distance,
16529
- start_pcb_port_id: z78.string().optional(),
16530
- end_pcb_port_id: z78.string().optional(),
16559
+ start_pcb_port_id: z81.string().optional(),
16560
+ end_pcb_port_id: z81.string().optional(),
16531
16561
  layer: layer_ref
16532
16562
  });
16533
- var pcb_trace_route_point_via = z78.object({
16534
- route_type: z78.literal("via"),
16563
+ var pcb_trace_route_point_via = z81.object({
16564
+ route_type: z81.literal("via"),
16535
16565
  x: distance,
16536
16566
  y: distance,
16537
16567
  hole_diameter: distance.optional(),
16538
16568
  outer_diameter: distance.optional(),
16539
- from_layer: z78.string(),
16540
- to_layer: z78.string()
16569
+ from_layer: z81.string(),
16570
+ to_layer: z81.string()
16541
16571
  });
16542
- var pcb_trace_route_point = z78.union([
16572
+ var pcb_trace_route_point = z81.union([
16543
16573
  pcb_trace_route_point_wire,
16544
16574
  pcb_trace_route_point_via
16545
16575
  ]);
16546
- var pcb_trace = z78.object({
16547
- type: z78.literal("pcb_trace"),
16548
- source_trace_id: z78.string().optional(),
16549
- pcb_component_id: z78.string().optional(),
16576
+ var pcb_trace = z81.object({
16577
+ type: z81.literal("pcb_trace"),
16578
+ source_trace_id: z81.string().optional(),
16579
+ pcb_component_id: z81.string().optional(),
16550
16580
  pcb_trace_id: getZodPrefixedIdWithDefault("pcb_trace"),
16551
- pcb_group_id: z78.string().optional(),
16552
- subcircuit_id: z78.string().optional(),
16553
- route_thickness_mode: z78.enum(["constant", "interpolated"]).default("constant").optional(),
16554
- route_order_index: z78.number().optional(),
16555
- should_round_corners: z78.boolean().optional(),
16556
- trace_length: z78.number().optional(),
16557
- highlight_color: z78.string().optional(),
16558
- route: z78.array(pcb_trace_route_point)
16581
+ pcb_group_id: z81.string().optional(),
16582
+ subcircuit_id: z81.string().optional(),
16583
+ route_thickness_mode: z81.enum(["constant", "interpolated"]).default("constant").optional(),
16584
+ route_order_index: z81.number().optional(),
16585
+ should_round_corners: z81.boolean().optional(),
16586
+ trace_length: z81.number().optional(),
16587
+ highlight_color: z81.string().optional(),
16588
+ route: z81.array(pcb_trace_route_point)
16559
16589
  }).describe("Defines a trace on the PCB");
16560
16590
  expectTypesMatch(true);
16561
16591
  expectTypesMatch(true);
16562
- var pcb_trace_error = z79.object({
16563
- type: z79.literal("pcb_trace_error"),
16592
+ var pcb_trace_error = z82.object({
16593
+ type: z82.literal("pcb_trace_error"),
16564
16594
  pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
16565
- error_type: z79.literal("pcb_trace_error").default("pcb_trace_error"),
16566
- message: z79.string(),
16595
+ error_type: z82.literal("pcb_trace_error").default("pcb_trace_error"),
16596
+ message: z82.string(),
16567
16597
  center: point.optional(),
16568
- pcb_trace_id: z79.string(),
16569
- source_trace_id: z79.string(),
16570
- pcb_component_ids: z79.array(z79.string()),
16571
- pcb_port_ids: z79.array(z79.string()),
16572
- subcircuit_id: z79.string().optional()
16598
+ pcb_trace_id: z82.string(),
16599
+ source_trace_id: z82.string(),
16600
+ pcb_component_ids: z82.array(z82.string()),
16601
+ pcb_port_ids: z82.array(z82.string()),
16602
+ subcircuit_id: z82.string().optional()
16573
16603
  }).describe("Defines a trace error on the PCB");
16574
16604
  expectTypesMatch(true);
16575
- var pcb_trace_missing_error = z80.object({
16576
- type: z80.literal("pcb_trace_missing_error"),
16605
+ var pcb_trace_missing_error = z83.object({
16606
+ type: z83.literal("pcb_trace_missing_error"),
16577
16607
  pcb_trace_missing_error_id: getZodPrefixedIdWithDefault(
16578
16608
  "pcb_trace_missing_error"
16579
16609
  ),
16580
- error_type: z80.literal("pcb_trace_missing_error").default("pcb_trace_missing_error"),
16581
- message: z80.string(),
16610
+ error_type: z83.literal("pcb_trace_missing_error").default("pcb_trace_missing_error"),
16611
+ message: z83.string(),
16582
16612
  center: point.optional(),
16583
- source_trace_id: z80.string(),
16584
- pcb_component_ids: z80.array(z80.string()),
16585
- pcb_port_ids: z80.array(z80.string()),
16586
- subcircuit_id: z80.string().optional()
16613
+ source_trace_id: z83.string(),
16614
+ pcb_component_ids: z83.array(z83.string()),
16615
+ pcb_port_ids: z83.array(z83.string()),
16616
+ subcircuit_id: z83.string().optional()
16587
16617
  }).describe(
16588
16618
  "Defines an error when a source trace has no corresponding PCB trace"
16589
16619
  );
16590
16620
  expectTypesMatch(true);
16591
- var pcb_port_not_matched_error = z81.object({
16592
- type: z81.literal("pcb_port_not_matched_error"),
16621
+ var pcb_port_not_matched_error = z84.object({
16622
+ type: z84.literal("pcb_port_not_matched_error"),
16593
16623
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
16594
- error_type: z81.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
16595
- message: z81.string(),
16596
- pcb_component_ids: z81.array(z81.string()),
16597
- subcircuit_id: z81.string().optional()
16624
+ error_type: z84.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
16625
+ message: z84.string(),
16626
+ pcb_component_ids: z84.array(z84.string()),
16627
+ subcircuit_id: z84.string().optional()
16598
16628
  }).describe("Defines a trace error on the PCB where a port is not matched");
16599
16629
  expectTypesMatch(true);
16600
- var pcb_port_not_connected_error = z82.object({
16601
- type: z82.literal("pcb_port_not_connected_error"),
16630
+ var pcb_port_not_connected_error = z85.object({
16631
+ type: z85.literal("pcb_port_not_connected_error"),
16602
16632
  pcb_port_not_connected_error_id: getZodPrefixedIdWithDefault(
16603
16633
  "pcb_port_not_connected_error"
16604
16634
  ),
16605
- error_type: z82.literal("pcb_port_not_connected_error").default("pcb_port_not_connected_error"),
16606
- message: z82.string(),
16607
- pcb_port_ids: z82.array(z82.string()),
16608
- pcb_component_ids: z82.array(z82.string()),
16609
- subcircuit_id: z82.string().optional()
16635
+ error_type: z85.literal("pcb_port_not_connected_error").default("pcb_port_not_connected_error"),
16636
+ message: z85.string(),
16637
+ pcb_port_ids: z85.array(z85.string()),
16638
+ pcb_component_ids: z85.array(z85.string()),
16639
+ subcircuit_id: z85.string().optional()
16610
16640
  }).describe("Defines an error when a pcb port is not connected to any trace");
16611
16641
  expectTypesMatch(
16612
16642
  true
16613
16643
  );
16614
- var pcb_net = z83.object({
16615
- type: z83.literal("pcb_net"),
16644
+ var pcb_net = z86.object({
16645
+ type: z86.literal("pcb_net"),
16616
16646
  pcb_net_id: getZodPrefixedIdWithDefault("pcb_net"),
16617
- source_net_id: z83.string().optional(),
16618
- highlight_color: z83.string().optional()
16647
+ source_net_id: z86.string().optional(),
16648
+ highlight_color: z86.string().optional()
16619
16649
  }).describe("Defines a net on the PCB");
16620
16650
  expectTypesMatch(true);
16621
- var pcb_via = z84.object({
16622
- type: z84.literal("pcb_via"),
16651
+ var pcb_via = z87.object({
16652
+ type: z87.literal("pcb_via"),
16623
16653
  pcb_via_id: getZodPrefixedIdWithDefault("pcb_via"),
16624
- pcb_group_id: z84.string().optional(),
16625
- subcircuit_id: z84.string().optional(),
16626
- subcircuit_connectivity_map_key: z84.string().optional(),
16654
+ pcb_group_id: z87.string().optional(),
16655
+ subcircuit_id: z87.string().optional(),
16656
+ subcircuit_connectivity_map_key: z87.string().optional(),
16627
16657
  x: distance,
16628
16658
  y: distance,
16629
16659
  outer_diameter: distance.default("0.6mm"),
@@ -16632,61 +16662,61 @@ var pcb_via = z84.object({
16632
16662
  from_layer: layer_ref.optional(),
16633
16663
  /** @deprecated */
16634
16664
  to_layer: layer_ref.optional(),
16635
- layers: z84.array(layer_ref),
16636
- pcb_trace_id: z84.string().optional(),
16637
- net_is_assignable: z84.boolean().optional(),
16638
- net_assigned: z84.boolean().optional(),
16639
- is_tented: z84.boolean().optional()
16665
+ layers: z87.array(layer_ref),
16666
+ pcb_trace_id: z87.string().optional(),
16667
+ net_is_assignable: z87.boolean().optional(),
16668
+ net_assigned: z87.boolean().optional(),
16669
+ is_tented: z87.boolean().optional()
16640
16670
  }).describe("Defines a via on the PCB");
16641
16671
  expectTypesMatch(true);
16642
- var pcb_board = z85.object({
16643
- type: z85.literal("pcb_board"),
16672
+ var pcb_board = z88.object({
16673
+ type: z88.literal("pcb_board"),
16644
16674
  pcb_board_id: getZodPrefixedIdWithDefault("pcb_board"),
16645
- pcb_panel_id: z85.string().optional(),
16646
- is_subcircuit: z85.boolean().optional(),
16647
- subcircuit_id: z85.string().optional(),
16675
+ pcb_panel_id: z88.string().optional(),
16676
+ is_subcircuit: z88.boolean().optional(),
16677
+ subcircuit_id: z88.string().optional(),
16648
16678
  width: length.optional(),
16649
16679
  height: length.optional(),
16650
16680
  center: point,
16651
16681
  thickness: length.optional().default(1.4),
16652
- num_layers: z85.number().optional().default(4),
16653
- outline: z85.array(point).optional(),
16654
- shape: z85.enum(["rect", "polygon"]).optional(),
16655
- material: z85.enum(["fr4", "fr1"]).default("fr4")
16682
+ num_layers: z88.number().optional().default(4),
16683
+ outline: z88.array(point).optional(),
16684
+ shape: z88.enum(["rect", "polygon"]).optional(),
16685
+ material: z88.enum(["fr4", "fr1"]).default("fr4")
16656
16686
  }).describe("Defines the board outline of the PCB");
16657
16687
  expectTypesMatch(true);
16658
- var pcb_panel = z86.object({
16659
- type: z86.literal("pcb_panel"),
16688
+ var pcb_panel = z89.object({
16689
+ type: z89.literal("pcb_panel"),
16660
16690
  pcb_panel_id: getZodPrefixedIdWithDefault("pcb_panel"),
16661
16691
  width: length,
16662
16692
  height: length,
16663
16693
  center: point,
16664
- covered_with_solder_mask: z86.boolean().optional().default(true)
16694
+ covered_with_solder_mask: z89.boolean().optional().default(true)
16665
16695
  }).describe("Defines a PCB panel that can contain multiple boards");
16666
16696
  expectTypesMatch(true);
16667
- var pcb_placement_error = z87.object({
16668
- type: z87.literal("pcb_placement_error"),
16697
+ var pcb_placement_error = z90.object({
16698
+ type: z90.literal("pcb_placement_error"),
16669
16699
  pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
16670
- error_type: z87.literal("pcb_placement_error").default("pcb_placement_error"),
16671
- message: z87.string(),
16672
- subcircuit_id: z87.string().optional()
16700
+ error_type: z90.literal("pcb_placement_error").default("pcb_placement_error"),
16701
+ message: z90.string(),
16702
+ subcircuit_id: z90.string().optional()
16673
16703
  }).describe("Defines a placement error on the PCB");
16674
16704
  expectTypesMatch(true);
16675
- var pcb_trace_hint = z88.object({
16676
- type: z88.literal("pcb_trace_hint"),
16705
+ var pcb_trace_hint = z91.object({
16706
+ type: z91.literal("pcb_trace_hint"),
16677
16707
  pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
16678
- pcb_port_id: z88.string(),
16679
- pcb_component_id: z88.string(),
16680
- route: z88.array(route_hint_point),
16681
- subcircuit_id: z88.string().optional()
16708
+ pcb_port_id: z91.string(),
16709
+ pcb_component_id: z91.string(),
16710
+ route: z91.array(route_hint_point),
16711
+ subcircuit_id: z91.string().optional()
16682
16712
  }).describe("A hint that can be used during generation of a PCB trace");
16683
16713
  expectTypesMatch(true);
16684
- var pcb_silkscreen_line = z89.object({
16685
- type: z89.literal("pcb_silkscreen_line"),
16714
+ var pcb_silkscreen_line = z92.object({
16715
+ type: z92.literal("pcb_silkscreen_line"),
16686
16716
  pcb_silkscreen_line_id: getZodPrefixedIdWithDefault("pcb_silkscreen_line"),
16687
- pcb_component_id: z89.string(),
16688
- pcb_group_id: z89.string().optional(),
16689
- subcircuit_id: z89.string().optional(),
16717
+ pcb_component_id: z92.string(),
16718
+ pcb_group_id: z92.string().optional(),
16719
+ subcircuit_id: z92.string().optional(),
16690
16720
  stroke_width: distance.default("0.1mm"),
16691
16721
  x1: distance,
16692
16722
  y1: distance,
@@ -16695,28 +16725,28 @@ var pcb_silkscreen_line = z89.object({
16695
16725
  layer: visible_layer
16696
16726
  }).describe("Defines a silkscreen line on the PCB");
16697
16727
  expectTypesMatch(true);
16698
- var pcb_silkscreen_path = z90.object({
16699
- type: z90.literal("pcb_silkscreen_path"),
16728
+ var pcb_silkscreen_path = z93.object({
16729
+ type: z93.literal("pcb_silkscreen_path"),
16700
16730
  pcb_silkscreen_path_id: getZodPrefixedIdWithDefault("pcb_silkscreen_path"),
16701
- pcb_component_id: z90.string(),
16702
- pcb_group_id: z90.string().optional(),
16703
- subcircuit_id: z90.string().optional(),
16731
+ pcb_component_id: z93.string(),
16732
+ pcb_group_id: z93.string().optional(),
16733
+ subcircuit_id: z93.string().optional(),
16704
16734
  layer: visible_layer,
16705
- route: z90.array(point),
16735
+ route: z93.array(point),
16706
16736
  stroke_width: length
16707
16737
  }).describe("Defines a silkscreen path on the PCB");
16708
16738
  expectTypesMatch(true);
16709
- var pcb_silkscreen_text = z91.object({
16710
- type: z91.literal("pcb_silkscreen_text"),
16739
+ var pcb_silkscreen_text = z94.object({
16740
+ type: z94.literal("pcb_silkscreen_text"),
16711
16741
  pcb_silkscreen_text_id: getZodPrefixedIdWithDefault("pcb_silkscreen_text"),
16712
- pcb_group_id: z91.string().optional(),
16713
- subcircuit_id: z91.string().optional(),
16714
- font: z91.literal("tscircuit2024").default("tscircuit2024"),
16742
+ pcb_group_id: z94.string().optional(),
16743
+ subcircuit_id: z94.string().optional(),
16744
+ font: z94.literal("tscircuit2024").default("tscircuit2024"),
16715
16745
  font_size: distance.default("0.2mm"),
16716
- pcb_component_id: z91.string(),
16717
- text: z91.string(),
16718
- is_knockout: z91.boolean().default(false).optional(),
16719
- knockout_padding: z91.object({
16746
+ pcb_component_id: z94.string(),
16747
+ text: z94.string(),
16748
+ is_knockout: z94.boolean().default(false).optional(),
16749
+ knockout_padding: z94.object({
16720
16750
  left: length,
16721
16751
  top: length,
16722
16752
  bottom: length,
@@ -16727,24 +16757,24 @@ var pcb_silkscreen_text = z91.object({
16727
16757
  bottom: "0.2mm",
16728
16758
  right: "0.2mm"
16729
16759
  }).optional(),
16730
- ccw_rotation: z91.number().optional(),
16760
+ ccw_rotation: z94.number().optional(),
16731
16761
  layer: layer_ref,
16732
- is_mirrored: z91.boolean().default(false).optional(),
16762
+ is_mirrored: z94.boolean().default(false).optional(),
16733
16763
  anchor_position: point.default({ x: 0, y: 0 }),
16734
16764
  anchor_alignment: ninePointAnchor.default("center")
16735
16765
  }).describe("Defines silkscreen text on the PCB");
16736
16766
  expectTypesMatch(true);
16737
- var pcb_copper_text = z92.object({
16738
- type: z92.literal("pcb_copper_text"),
16767
+ var pcb_copper_text = z95.object({
16768
+ type: z95.literal("pcb_copper_text"),
16739
16769
  pcb_copper_text_id: getZodPrefixedIdWithDefault("pcb_copper_text"),
16740
- pcb_group_id: z92.string().optional(),
16741
- subcircuit_id: z92.string().optional(),
16742
- font: z92.literal("tscircuit2024").default("tscircuit2024"),
16770
+ pcb_group_id: z95.string().optional(),
16771
+ subcircuit_id: z95.string().optional(),
16772
+ font: z95.literal("tscircuit2024").default("tscircuit2024"),
16743
16773
  font_size: distance.default("0.2mm"),
16744
- pcb_component_id: z92.string(),
16745
- text: z92.string(),
16746
- is_knockout: z92.boolean().default(false).optional(),
16747
- knockout_padding: z92.object({
16774
+ pcb_component_id: z95.string(),
16775
+ text: z95.string(),
16776
+ is_knockout: z95.boolean().default(false).optional(),
16777
+ knockout_padding: z95.object({
16748
16778
  left: length,
16749
16779
  top: length,
16750
16780
  bottom: length,
@@ -16755,273 +16785,273 @@ var pcb_copper_text = z92.object({
16755
16785
  bottom: "0.2mm",
16756
16786
  right: "0.2mm"
16757
16787
  }).optional(),
16758
- ccw_rotation: z92.number().optional(),
16788
+ ccw_rotation: z95.number().optional(),
16759
16789
  layer: layer_ref,
16760
- is_mirrored: z92.boolean().default(false).optional(),
16790
+ is_mirrored: z95.boolean().default(false).optional(),
16761
16791
  anchor_position: point.default({ x: 0, y: 0 }),
16762
16792
  anchor_alignment: ninePointAnchor.default("center")
16763
16793
  }).describe("Defines copper text on the PCB");
16764
16794
  expectTypesMatch(true);
16765
- var pcb_silkscreen_rect = z93.object({
16766
- type: z93.literal("pcb_silkscreen_rect"),
16795
+ var pcb_silkscreen_rect = z96.object({
16796
+ type: z96.literal("pcb_silkscreen_rect"),
16767
16797
  pcb_silkscreen_rect_id: getZodPrefixedIdWithDefault("pcb_silkscreen_rect"),
16768
- pcb_component_id: z93.string(),
16769
- pcb_group_id: z93.string().optional(),
16770
- subcircuit_id: z93.string().optional(),
16798
+ pcb_component_id: z96.string(),
16799
+ pcb_group_id: z96.string().optional(),
16800
+ subcircuit_id: z96.string().optional(),
16771
16801
  center: point,
16772
16802
  width: length,
16773
16803
  height: length,
16774
16804
  layer: layer_ref,
16775
16805
  stroke_width: length.default("1mm"),
16776
16806
  corner_radius: length.optional(),
16777
- is_filled: z93.boolean().default(true).optional(),
16778
- has_stroke: z93.boolean().optional(),
16779
- is_stroke_dashed: z93.boolean().optional()
16807
+ is_filled: z96.boolean().default(true).optional(),
16808
+ has_stroke: z96.boolean().optional(),
16809
+ is_stroke_dashed: z96.boolean().optional()
16780
16810
  }).describe("Defines a silkscreen rect on the PCB");
16781
16811
  expectTypesMatch(true);
16782
- var pcb_silkscreen_circle = z94.object({
16783
- type: z94.literal("pcb_silkscreen_circle"),
16812
+ var pcb_silkscreen_circle = z97.object({
16813
+ type: z97.literal("pcb_silkscreen_circle"),
16784
16814
  pcb_silkscreen_circle_id: getZodPrefixedIdWithDefault(
16785
16815
  "pcb_silkscreen_circle"
16786
16816
  ),
16787
- pcb_component_id: z94.string(),
16788
- pcb_group_id: z94.string().optional(),
16789
- subcircuit_id: z94.string().optional(),
16817
+ pcb_component_id: z97.string(),
16818
+ pcb_group_id: z97.string().optional(),
16819
+ subcircuit_id: z97.string().optional(),
16790
16820
  center: point,
16791
16821
  radius: length,
16792
16822
  layer: visible_layer,
16793
16823
  stroke_width: length.default("1mm")
16794
16824
  }).describe("Defines a silkscreen circle on the PCB");
16795
16825
  expectTypesMatch(true);
16796
- var pcb_silkscreen_oval = z95.object({
16797
- type: z95.literal("pcb_silkscreen_oval"),
16826
+ var pcb_silkscreen_oval = z98.object({
16827
+ type: z98.literal("pcb_silkscreen_oval"),
16798
16828
  pcb_silkscreen_oval_id: getZodPrefixedIdWithDefault("pcb_silkscreen_oval"),
16799
- pcb_component_id: z95.string(),
16800
- pcb_group_id: z95.string().optional(),
16801
- subcircuit_id: z95.string().optional(),
16829
+ pcb_component_id: z98.string(),
16830
+ pcb_group_id: z98.string().optional(),
16831
+ subcircuit_id: z98.string().optional(),
16802
16832
  center: point,
16803
16833
  radius_x: distance,
16804
16834
  radius_y: distance,
16805
16835
  layer: visible_layer
16806
16836
  }).describe("Defines a silkscreen oval on the PCB");
16807
16837
  expectTypesMatch(true);
16808
- var pcb_fabrication_note_text = z96.object({
16809
- type: z96.literal("pcb_fabrication_note_text"),
16838
+ var pcb_fabrication_note_text = z99.object({
16839
+ type: z99.literal("pcb_fabrication_note_text"),
16810
16840
  pcb_fabrication_note_text_id: getZodPrefixedIdWithDefault(
16811
16841
  "pcb_fabrication_note_text"
16812
16842
  ),
16813
- subcircuit_id: z96.string().optional(),
16814
- pcb_group_id: z96.string().optional(),
16815
- font: z96.literal("tscircuit2024").default("tscircuit2024"),
16843
+ subcircuit_id: z99.string().optional(),
16844
+ pcb_group_id: z99.string().optional(),
16845
+ font: z99.literal("tscircuit2024").default("tscircuit2024"),
16816
16846
  font_size: distance.default("1mm"),
16817
- pcb_component_id: z96.string(),
16818
- text: z96.string(),
16847
+ pcb_component_id: z99.string(),
16848
+ text: z99.string(),
16819
16849
  layer: visible_layer,
16820
16850
  anchor_position: point.default({ x: 0, y: 0 }),
16821
- anchor_alignment: z96.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
16822
- color: z96.string().optional()
16851
+ anchor_alignment: z99.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
16852
+ color: z99.string().optional()
16823
16853
  }).describe(
16824
16854
  "Defines a fabrication note in text on the PCB, useful for leaving notes for assemblers or fabricators"
16825
16855
  );
16826
16856
  expectTypesMatch(true);
16827
- var pcb_fabrication_note_path = z97.object({
16828
- type: z97.literal("pcb_fabrication_note_path"),
16857
+ var pcb_fabrication_note_path = z100.object({
16858
+ type: z100.literal("pcb_fabrication_note_path"),
16829
16859
  pcb_fabrication_note_path_id: getZodPrefixedIdWithDefault(
16830
16860
  "pcb_fabrication_note_path"
16831
16861
  ),
16832
- pcb_component_id: z97.string(),
16833
- subcircuit_id: z97.string().optional(),
16862
+ pcb_component_id: z100.string(),
16863
+ subcircuit_id: z100.string().optional(),
16834
16864
  layer: layer_ref,
16835
- route: z97.array(point),
16865
+ route: z100.array(point),
16836
16866
  stroke_width: length,
16837
- color: z97.string().optional()
16867
+ color: z100.string().optional()
16838
16868
  }).describe(
16839
16869
  "Defines a fabrication path on the PCB for fabricators or assemblers"
16840
16870
  );
16841
16871
  expectTypesMatch(true);
16842
- var pcb_fabrication_note_rect = z98.object({
16843
- type: z98.literal("pcb_fabrication_note_rect"),
16872
+ var pcb_fabrication_note_rect = z101.object({
16873
+ type: z101.literal("pcb_fabrication_note_rect"),
16844
16874
  pcb_fabrication_note_rect_id: getZodPrefixedIdWithDefault(
16845
16875
  "pcb_fabrication_note_rect"
16846
16876
  ),
16847
- pcb_component_id: z98.string(),
16848
- pcb_group_id: z98.string().optional(),
16849
- subcircuit_id: z98.string().optional(),
16877
+ pcb_component_id: z101.string(),
16878
+ pcb_group_id: z101.string().optional(),
16879
+ subcircuit_id: z101.string().optional(),
16850
16880
  center: point,
16851
16881
  width: length,
16852
16882
  height: length,
16853
16883
  layer: visible_layer,
16854
16884
  stroke_width: length.default("0.1mm"),
16855
16885
  corner_radius: length.optional(),
16856
- is_filled: z98.boolean().optional(),
16857
- has_stroke: z98.boolean().optional(),
16858
- is_stroke_dashed: z98.boolean().optional(),
16859
- color: z98.string().optional()
16886
+ is_filled: z101.boolean().optional(),
16887
+ has_stroke: z101.boolean().optional(),
16888
+ is_stroke_dashed: z101.boolean().optional(),
16889
+ color: z101.string().optional()
16860
16890
  }).describe("Defines a fabrication note rectangle on the PCB");
16861
16891
  expectTypesMatch(true);
16862
- var pcb_fabrication_note_dimension = z99.object({
16863
- type: z99.literal("pcb_fabrication_note_dimension"),
16892
+ var pcb_fabrication_note_dimension = z102.object({
16893
+ type: z102.literal("pcb_fabrication_note_dimension"),
16864
16894
  pcb_fabrication_note_dimension_id: getZodPrefixedIdWithDefault(
16865
16895
  "pcb_fabrication_note_dimension"
16866
16896
  ),
16867
- pcb_component_id: z99.string(),
16868
- pcb_group_id: z99.string().optional(),
16869
- subcircuit_id: z99.string().optional(),
16897
+ pcb_component_id: z102.string(),
16898
+ pcb_group_id: z102.string().optional(),
16899
+ subcircuit_id: z102.string().optional(),
16870
16900
  layer: visible_layer,
16871
16901
  from: point,
16872
16902
  to: point,
16873
- text: z99.string().optional(),
16874
- text_ccw_rotation: z99.number().optional(),
16903
+ text: z102.string().optional(),
16904
+ text_ccw_rotation: z102.number().optional(),
16875
16905
  offset: length.optional(),
16876
16906
  offset_distance: length.optional(),
16877
- offset_direction: z99.object({
16878
- x: z99.number(),
16879
- y: z99.number()
16907
+ offset_direction: z102.object({
16908
+ x: z102.number(),
16909
+ y: z102.number()
16880
16910
  }).optional(),
16881
- font: z99.literal("tscircuit2024").default("tscircuit2024"),
16911
+ font: z102.literal("tscircuit2024").default("tscircuit2024"),
16882
16912
  font_size: length.default("1mm"),
16883
- color: z99.string().optional(),
16913
+ color: z102.string().optional(),
16884
16914
  arrow_size: length.default("1mm")
16885
16915
  }).describe("Defines a measurement annotation within PCB fabrication notes");
16886
16916
  expectTypesMatch(true);
16887
- var pcb_note_text = z100.object({
16888
- type: z100.literal("pcb_note_text"),
16917
+ var pcb_note_text = z103.object({
16918
+ type: z103.literal("pcb_note_text"),
16889
16919
  pcb_note_text_id: getZodPrefixedIdWithDefault("pcb_note_text"),
16890
- pcb_component_id: z100.string().optional(),
16891
- pcb_group_id: z100.string().optional(),
16892
- subcircuit_id: z100.string().optional(),
16893
- name: z100.string().optional(),
16894
- font: z100.literal("tscircuit2024").default("tscircuit2024"),
16920
+ pcb_component_id: z103.string().optional(),
16921
+ pcb_group_id: z103.string().optional(),
16922
+ subcircuit_id: z103.string().optional(),
16923
+ name: z103.string().optional(),
16924
+ font: z103.literal("tscircuit2024").default("tscircuit2024"),
16895
16925
  font_size: distance.default("1mm"),
16896
- text: z100.string().optional(),
16926
+ text: z103.string().optional(),
16897
16927
  anchor_position: point.default({ x: 0, y: 0 }),
16898
- anchor_alignment: z100.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
16899
- color: z100.string().optional()
16928
+ anchor_alignment: z103.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
16929
+ color: z103.string().optional()
16900
16930
  }).describe("Defines a documentation note in text on the PCB");
16901
16931
  expectTypesMatch(true);
16902
- var pcb_note_rect = z101.object({
16903
- type: z101.literal("pcb_note_rect"),
16932
+ var pcb_note_rect = z104.object({
16933
+ type: z104.literal("pcb_note_rect"),
16904
16934
  pcb_note_rect_id: getZodPrefixedIdWithDefault("pcb_note_rect"),
16905
- pcb_component_id: z101.string().optional(),
16906
- pcb_group_id: z101.string().optional(),
16907
- subcircuit_id: z101.string().optional(),
16908
- name: z101.string().optional(),
16909
- text: z101.string().optional(),
16935
+ pcb_component_id: z104.string().optional(),
16936
+ pcb_group_id: z104.string().optional(),
16937
+ subcircuit_id: z104.string().optional(),
16938
+ name: z104.string().optional(),
16939
+ text: z104.string().optional(),
16910
16940
  center: point,
16911
16941
  width: length,
16912
16942
  height: length,
16913
16943
  stroke_width: length.default("0.1mm"),
16914
16944
  corner_radius: length.optional(),
16915
- is_filled: z101.boolean().optional(),
16916
- has_stroke: z101.boolean().optional(),
16917
- is_stroke_dashed: z101.boolean().optional(),
16918
- color: z101.string().optional()
16945
+ is_filled: z104.boolean().optional(),
16946
+ has_stroke: z104.boolean().optional(),
16947
+ is_stroke_dashed: z104.boolean().optional(),
16948
+ color: z104.string().optional()
16919
16949
  }).describe("Defines a rectangular documentation note on the PCB");
16920
16950
  expectTypesMatch(true);
16921
- var pcb_note_path = z102.object({
16922
- type: z102.literal("pcb_note_path"),
16951
+ var pcb_note_path = z105.object({
16952
+ type: z105.literal("pcb_note_path"),
16923
16953
  pcb_note_path_id: getZodPrefixedIdWithDefault("pcb_note_path"),
16924
- pcb_component_id: z102.string().optional(),
16925
- pcb_group_id: z102.string().optional(),
16926
- subcircuit_id: z102.string().optional(),
16927
- name: z102.string().optional(),
16928
- text: z102.string().optional(),
16929
- route: z102.array(point),
16954
+ pcb_component_id: z105.string().optional(),
16955
+ pcb_group_id: z105.string().optional(),
16956
+ subcircuit_id: z105.string().optional(),
16957
+ name: z105.string().optional(),
16958
+ text: z105.string().optional(),
16959
+ route: z105.array(point),
16930
16960
  stroke_width: length.default("0.1mm"),
16931
- color: z102.string().optional()
16961
+ color: z105.string().optional()
16932
16962
  }).describe("Defines a polyline documentation note on the PCB");
16933
16963
  expectTypesMatch(true);
16934
- var pcb_note_line = z103.object({
16935
- type: z103.literal("pcb_note_line"),
16964
+ var pcb_note_line = z106.object({
16965
+ type: z106.literal("pcb_note_line"),
16936
16966
  pcb_note_line_id: getZodPrefixedIdWithDefault("pcb_note_line"),
16937
- pcb_component_id: z103.string().optional(),
16938
- pcb_group_id: z103.string().optional(),
16939
- subcircuit_id: z103.string().optional(),
16940
- name: z103.string().optional(),
16941
- text: z103.string().optional(),
16967
+ pcb_component_id: z106.string().optional(),
16968
+ pcb_group_id: z106.string().optional(),
16969
+ subcircuit_id: z106.string().optional(),
16970
+ name: z106.string().optional(),
16971
+ text: z106.string().optional(),
16942
16972
  x1: distance,
16943
16973
  y1: distance,
16944
16974
  x2: distance,
16945
16975
  y2: distance,
16946
16976
  stroke_width: distance.default("0.1mm"),
16947
- color: z103.string().optional(),
16948
- is_dashed: z103.boolean().optional()
16977
+ color: z106.string().optional(),
16978
+ is_dashed: z106.boolean().optional()
16949
16979
  }).describe("Defines a straight documentation note line on the PCB");
16950
16980
  expectTypesMatch(true);
16951
- var pcb_note_dimension = z104.object({
16952
- type: z104.literal("pcb_note_dimension"),
16981
+ var pcb_note_dimension = z107.object({
16982
+ type: z107.literal("pcb_note_dimension"),
16953
16983
  pcb_note_dimension_id: getZodPrefixedIdWithDefault("pcb_note_dimension"),
16954
- pcb_component_id: z104.string().optional(),
16955
- pcb_group_id: z104.string().optional(),
16956
- subcircuit_id: z104.string().optional(),
16957
- name: z104.string().optional(),
16984
+ pcb_component_id: z107.string().optional(),
16985
+ pcb_group_id: z107.string().optional(),
16986
+ subcircuit_id: z107.string().optional(),
16987
+ name: z107.string().optional(),
16958
16988
  from: point,
16959
16989
  to: point,
16960
- text: z104.string().optional(),
16961
- text_ccw_rotation: z104.number().optional(),
16990
+ text: z107.string().optional(),
16991
+ text_ccw_rotation: z107.number().optional(),
16962
16992
  offset_distance: length.optional(),
16963
- offset_direction: z104.object({
16964
- x: z104.number(),
16965
- y: z104.number()
16993
+ offset_direction: z107.object({
16994
+ x: z107.number(),
16995
+ y: z107.number()
16966
16996
  }).optional(),
16967
- font: z104.literal("tscircuit2024").default("tscircuit2024"),
16997
+ font: z107.literal("tscircuit2024").default("tscircuit2024"),
16968
16998
  font_size: length.default("1mm"),
16969
- color: z104.string().optional(),
16999
+ color: z107.string().optional(),
16970
17000
  arrow_size: length.default("1mm")
16971
17001
  }).describe("Defines a measurement annotation within PCB documentation notes");
16972
17002
  expectTypesMatch(true);
16973
- var pcb_footprint_overlap_error = z105.object({
16974
- type: z105.literal("pcb_footprint_overlap_error"),
17003
+ var pcb_footprint_overlap_error = z108.object({
17004
+ type: z108.literal("pcb_footprint_overlap_error"),
16975
17005
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
16976
- error_type: z105.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
16977
- message: z105.string(),
16978
- pcb_smtpad_ids: z105.array(z105.string()).optional(),
16979
- pcb_plated_hole_ids: z105.array(z105.string()).optional(),
16980
- pcb_hole_ids: z105.array(z105.string()).optional(),
16981
- pcb_keepout_ids: z105.array(z105.string()).optional()
17006
+ error_type: z108.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
17007
+ message: z108.string(),
17008
+ pcb_smtpad_ids: z108.array(z108.string()).optional(),
17009
+ pcb_plated_hole_ids: z108.array(z108.string()).optional(),
17010
+ pcb_hole_ids: z108.array(z108.string()).optional(),
17011
+ pcb_keepout_ids: z108.array(z108.string()).optional()
16982
17012
  }).describe("Error emitted when a pcb footprint overlaps with another element");
16983
17013
  expectTypesMatch(
16984
17014
  true
16985
17015
  );
16986
- var pcb_keepout = z106.object({
16987
- type: z106.literal("pcb_keepout"),
16988
- shape: z106.literal("rect"),
16989
- pcb_group_id: z106.string().optional(),
16990
- subcircuit_id: z106.string().optional(),
17016
+ var pcb_keepout = z109.object({
17017
+ type: z109.literal("pcb_keepout"),
17018
+ shape: z109.literal("rect"),
17019
+ pcb_group_id: z109.string().optional(),
17020
+ subcircuit_id: z109.string().optional(),
16991
17021
  center: point,
16992
17022
  width: distance,
16993
17023
  height: distance,
16994
- pcb_keepout_id: z106.string(),
16995
- layers: z106.array(z106.string()),
17024
+ pcb_keepout_id: z109.string(),
17025
+ layers: z109.array(z109.string()),
16996
17026
  // Specify layers where the keepout applies
16997
- description: z106.string().optional()
17027
+ description: z109.string().optional()
16998
17028
  // Optional description of the keepout
16999
17029
  }).or(
17000
- z106.object({
17001
- type: z106.literal("pcb_keepout"),
17002
- shape: z106.literal("circle"),
17003
- pcb_group_id: z106.string().optional(),
17004
- subcircuit_id: z106.string().optional(),
17030
+ z109.object({
17031
+ type: z109.literal("pcb_keepout"),
17032
+ shape: z109.literal("circle"),
17033
+ pcb_group_id: z109.string().optional(),
17034
+ subcircuit_id: z109.string().optional(),
17005
17035
  center: point,
17006
17036
  radius: distance,
17007
- pcb_keepout_id: z106.string(),
17008
- layers: z106.array(z106.string()),
17037
+ pcb_keepout_id: z109.string(),
17038
+ layers: z109.array(z109.string()),
17009
17039
  // Specify layers where the keepout applies
17010
- description: z106.string().optional()
17040
+ description: z109.string().optional()
17011
17041
  // Optional description of the keepout
17012
17042
  })
17013
17043
  );
17014
17044
  expectTypesMatch(true);
17015
- var pcb_cutout_base = z107.object({
17016
- type: z107.literal("pcb_cutout"),
17045
+ var pcb_cutout_base = z110.object({
17046
+ type: z110.literal("pcb_cutout"),
17017
17047
  pcb_cutout_id: getZodPrefixedIdWithDefault("pcb_cutout"),
17018
- pcb_group_id: z107.string().optional(),
17019
- subcircuit_id: z107.string().optional(),
17020
- pcb_board_id: z107.string().optional(),
17021
- pcb_panel_id: z107.string().optional()
17048
+ pcb_group_id: z110.string().optional(),
17049
+ subcircuit_id: z110.string().optional(),
17050
+ pcb_board_id: z110.string().optional(),
17051
+ pcb_panel_id: z110.string().optional()
17022
17052
  });
17023
17053
  var pcb_cutout_rect = pcb_cutout_base.extend({
17024
- shape: z107.literal("rect"),
17054
+ shape: z110.literal("rect"),
17025
17055
  center: point,
17026
17056
  width: length,
17027
17057
  height: length,
@@ -17030,179 +17060,188 @@ var pcb_cutout_rect = pcb_cutout_base.extend({
17030
17060
  });
17031
17061
  expectTypesMatch(true);
17032
17062
  var pcb_cutout_circle = pcb_cutout_base.extend({
17033
- shape: z107.literal("circle"),
17063
+ shape: z110.literal("circle"),
17034
17064
  center: point,
17035
17065
  radius: length
17036
17066
  });
17037
17067
  expectTypesMatch(true);
17038
17068
  var pcb_cutout_polygon = pcb_cutout_base.extend({
17039
- shape: z107.literal("polygon"),
17040
- points: z107.array(point)
17069
+ shape: z110.literal("polygon"),
17070
+ points: z110.array(point)
17041
17071
  });
17042
17072
  expectTypesMatch(true);
17043
17073
  var pcb_cutout_path = pcb_cutout_base.extend({
17044
- shape: z107.literal("path"),
17045
- route: z107.array(point),
17074
+ shape: z110.literal("path"),
17075
+ route: z110.array(point),
17046
17076
  slot_width: length,
17047
17077
  slot_length: length.optional(),
17048
17078
  space_between_slots: length.optional(),
17049
17079
  slot_corner_radius: length.optional()
17050
17080
  });
17051
17081
  expectTypesMatch(true);
17052
- var pcb_cutout = z107.discriminatedUnion("shape", [
17082
+ var pcb_cutout = z110.discriminatedUnion("shape", [
17053
17083
  pcb_cutout_rect,
17054
17084
  pcb_cutout_circle,
17055
17085
  pcb_cutout_polygon,
17056
17086
  pcb_cutout_path
17057
17087
  ]).describe("Defines a cutout on the PCB, removing board material.");
17058
17088
  expectTypesMatch(true);
17059
- var pcb_missing_footprint_error = z108.object({
17060
- type: z108.literal("pcb_missing_footprint_error"),
17089
+ var pcb_missing_footprint_error = z111.object({
17090
+ type: z111.literal("pcb_missing_footprint_error"),
17061
17091
  pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
17062
17092
  "pcb_missing_footprint_error"
17063
17093
  ),
17064
- pcb_group_id: z108.string().optional(),
17065
- subcircuit_id: z108.string().optional(),
17066
- error_type: z108.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
17067
- source_component_id: z108.string(),
17068
- message: z108.string()
17094
+ pcb_group_id: z111.string().optional(),
17095
+ subcircuit_id: z111.string().optional(),
17096
+ error_type: z111.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
17097
+ source_component_id: z111.string(),
17098
+ message: z111.string()
17069
17099
  }).describe("Defines a missing footprint error on the PCB");
17070
17100
  expectTypesMatch(
17071
17101
  true
17072
17102
  );
17073
- var external_footprint_load_error = z109.object({
17074
- type: z109.literal("external_footprint_load_error"),
17103
+ var external_footprint_load_error = z112.object({
17104
+ type: z112.literal("external_footprint_load_error"),
17075
17105
  external_footprint_load_error_id: getZodPrefixedIdWithDefault(
17076
17106
  "external_footprint_load_error"
17077
17107
  ),
17078
- pcb_component_id: z109.string(),
17079
- source_component_id: z109.string(),
17080
- pcb_group_id: z109.string().optional(),
17081
- subcircuit_id: z109.string().optional(),
17082
- footprinter_string: z109.string().optional(),
17083
- error_type: z109.literal("external_footprint_load_error").default("external_footprint_load_error"),
17084
- message: z109.string()
17108
+ pcb_component_id: z112.string(),
17109
+ source_component_id: z112.string(),
17110
+ pcb_group_id: z112.string().optional(),
17111
+ subcircuit_id: z112.string().optional(),
17112
+ footprinter_string: z112.string().optional(),
17113
+ error_type: z112.literal("external_footprint_load_error").default("external_footprint_load_error"),
17114
+ message: z112.string()
17085
17115
  }).describe("Defines an error when an external footprint fails to load");
17086
17116
  expectTypesMatch(true);
17087
- var circuit_json_footprint_load_error = z110.object({
17088
- type: z110.literal("circuit_json_footprint_load_error"),
17117
+ var circuit_json_footprint_load_error = z113.object({
17118
+ type: z113.literal("circuit_json_footprint_load_error"),
17089
17119
  circuit_json_footprint_load_error_id: getZodPrefixedIdWithDefault(
17090
17120
  "circuit_json_footprint_load_error"
17091
17121
  ),
17092
- pcb_component_id: z110.string(),
17093
- source_component_id: z110.string(),
17094
- pcb_group_id: z110.string().optional(),
17095
- subcircuit_id: z110.string().optional(),
17096
- error_type: z110.literal("circuit_json_footprint_load_error").default("circuit_json_footprint_load_error"),
17097
- message: z110.string(),
17098
- circuit_json: z110.array(z110.any()).optional()
17122
+ pcb_component_id: z113.string(),
17123
+ source_component_id: z113.string(),
17124
+ pcb_group_id: z113.string().optional(),
17125
+ subcircuit_id: z113.string().optional(),
17126
+ error_type: z113.literal("circuit_json_footprint_load_error").default("circuit_json_footprint_load_error"),
17127
+ message: z113.string(),
17128
+ circuit_json: z113.array(z113.any()).optional()
17099
17129
  }).describe("Defines an error when a circuit JSON footprint fails to load");
17100
17130
  expectTypesMatch(true);
17101
- var pcb_group = z111.object({
17102
- type: z111.literal("pcb_group"),
17131
+ var pcb_group = z114.object({
17132
+ type: z114.literal("pcb_group"),
17103
17133
  pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
17104
- source_group_id: z111.string(),
17105
- is_subcircuit: z111.boolean().optional(),
17106
- subcircuit_id: z111.string().optional(),
17134
+ source_group_id: z114.string(),
17135
+ is_subcircuit: z114.boolean().optional(),
17136
+ subcircuit_id: z114.string().optional(),
17107
17137
  width: length.optional(),
17108
17138
  height: length.optional(),
17109
17139
  center: point,
17110
- outline: z111.array(point).optional(),
17140
+ display_offset_x: z114.string().optional().describe(
17141
+ "How to display the x offset for this group, usually corresponding with how the user specified it"
17142
+ ),
17143
+ display_offset_y: z114.string().optional().describe(
17144
+ "How to display the y offset for this group, usually corresponding with how the user specified it"
17145
+ ),
17146
+ outline: z114.array(point).optional(),
17111
17147
  anchor_position: point.optional(),
17112
- anchor_alignment: z111.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).optional(),
17113
- pcb_component_ids: z111.array(z111.string()),
17114
- child_layout_mode: z111.enum(["packed", "none"]).optional(),
17115
- name: z111.string().optional(),
17116
- description: z111.string().optional(),
17117
- layout_mode: z111.string().optional(),
17118
- autorouter_configuration: z111.object({
17148
+ anchor_alignment: ninePointAnchor.default("center"),
17149
+ position_mode: z114.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
17150
+ positioned_relative_to_pcb_group_id: z114.string().optional(),
17151
+ positioned_relative_to_pcb_board_id: z114.string().optional(),
17152
+ pcb_component_ids: z114.array(z114.string()),
17153
+ child_layout_mode: z114.enum(["packed", "none"]).optional(),
17154
+ name: z114.string().optional(),
17155
+ description: z114.string().optional(),
17156
+ layout_mode: z114.string().optional(),
17157
+ autorouter_configuration: z114.object({
17119
17158
  trace_clearance: length
17120
17159
  }).optional(),
17121
- autorouter_used_string: z111.string().optional()
17160
+ autorouter_used_string: z114.string().optional()
17122
17161
  }).describe("Defines a group of components on the PCB");
17123
17162
  expectTypesMatch(true);
17124
- var pcb_autorouting_error = z112.object({
17125
- type: z112.literal("pcb_autorouting_error"),
17163
+ var pcb_autorouting_error = z115.object({
17164
+ type: z115.literal("pcb_autorouting_error"),
17126
17165
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
17127
- error_type: z112.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
17128
- message: z112.string(),
17129
- subcircuit_id: z112.string().optional()
17166
+ error_type: z115.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
17167
+ message: z115.string(),
17168
+ subcircuit_id: z115.string().optional()
17130
17169
  }).describe("The autorouting has failed to route a portion of the board");
17131
17170
  expectTypesMatch(true);
17132
- var pcb_manual_edit_conflict_warning = z113.object({
17133
- type: z113.literal("pcb_manual_edit_conflict_warning"),
17171
+ var pcb_manual_edit_conflict_warning = z116.object({
17172
+ type: z116.literal("pcb_manual_edit_conflict_warning"),
17134
17173
  pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
17135
17174
  "pcb_manual_edit_conflict_warning"
17136
17175
  ),
17137
- warning_type: z113.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
17138
- message: z113.string(),
17139
- pcb_component_id: z113.string(),
17140
- pcb_group_id: z113.string().optional(),
17141
- subcircuit_id: z113.string().optional(),
17142
- source_component_id: z113.string()
17176
+ warning_type: z116.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
17177
+ message: z116.string(),
17178
+ pcb_component_id: z116.string(),
17179
+ pcb_group_id: z116.string().optional(),
17180
+ subcircuit_id: z116.string().optional(),
17181
+ source_component_id: z116.string()
17143
17182
  }).describe(
17144
17183
  "Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
17145
17184
  );
17146
17185
  expectTypesMatch(true);
17147
- var pcb_breakout_point = z114.object({
17148
- type: z114.literal("pcb_breakout_point"),
17186
+ var pcb_breakout_point = z117.object({
17187
+ type: z117.literal("pcb_breakout_point"),
17149
17188
  pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
17150
- pcb_group_id: z114.string(),
17151
- subcircuit_id: z114.string().optional(),
17152
- source_trace_id: z114.string().optional(),
17153
- source_port_id: z114.string().optional(),
17154
- source_net_id: z114.string().optional(),
17189
+ pcb_group_id: z117.string(),
17190
+ subcircuit_id: z117.string().optional(),
17191
+ source_trace_id: z117.string().optional(),
17192
+ source_port_id: z117.string().optional(),
17193
+ source_net_id: z117.string().optional(),
17155
17194
  x: distance,
17156
17195
  y: distance
17157
17196
  }).describe(
17158
17197
  "Defines a routing target within a pcb_group for a source_trace or source_net"
17159
17198
  );
17160
17199
  expectTypesMatch(true);
17161
- var pcb_ground_plane = z115.object({
17162
- type: z115.literal("pcb_ground_plane"),
17200
+ var pcb_ground_plane = z118.object({
17201
+ type: z118.literal("pcb_ground_plane"),
17163
17202
  pcb_ground_plane_id: getZodPrefixedIdWithDefault("pcb_ground_plane"),
17164
- source_pcb_ground_plane_id: z115.string(),
17165
- source_net_id: z115.string(),
17166
- pcb_group_id: z115.string().optional(),
17167
- subcircuit_id: z115.string().optional()
17203
+ source_pcb_ground_plane_id: z118.string(),
17204
+ source_net_id: z118.string(),
17205
+ pcb_group_id: z118.string().optional(),
17206
+ subcircuit_id: z118.string().optional()
17168
17207
  }).describe("Defines a ground plane on the PCB");
17169
17208
  expectTypesMatch(true);
17170
- var pcb_ground_plane_region = z116.object({
17171
- type: z116.literal("pcb_ground_plane_region"),
17209
+ var pcb_ground_plane_region = z119.object({
17210
+ type: z119.literal("pcb_ground_plane_region"),
17172
17211
  pcb_ground_plane_region_id: getZodPrefixedIdWithDefault(
17173
17212
  "pcb_ground_plane_region"
17174
17213
  ),
17175
- pcb_ground_plane_id: z116.string(),
17176
- pcb_group_id: z116.string().optional(),
17177
- subcircuit_id: z116.string().optional(),
17214
+ pcb_ground_plane_id: z119.string(),
17215
+ pcb_group_id: z119.string().optional(),
17216
+ subcircuit_id: z119.string().optional(),
17178
17217
  layer: layer_ref,
17179
- points: z116.array(point)
17218
+ points: z119.array(point)
17180
17219
  }).describe("Defines a polygon region of a ground plane");
17181
17220
  expectTypesMatch(true);
17182
- var pcb_thermal_spoke = z117.object({
17183
- type: z117.literal("pcb_thermal_spoke"),
17221
+ var pcb_thermal_spoke = z120.object({
17222
+ type: z120.literal("pcb_thermal_spoke"),
17184
17223
  pcb_thermal_spoke_id: getZodPrefixedIdWithDefault("pcb_thermal_spoke"),
17185
- pcb_ground_plane_id: z117.string(),
17186
- shape: z117.string(),
17187
- spoke_count: z117.number(),
17224
+ pcb_ground_plane_id: z120.string(),
17225
+ shape: z120.string(),
17226
+ spoke_count: z120.number(),
17188
17227
  spoke_thickness: distance,
17189
17228
  spoke_inner_diameter: distance,
17190
17229
  spoke_outer_diameter: distance,
17191
- pcb_plated_hole_id: z117.string().optional(),
17192
- subcircuit_id: z117.string().optional()
17230
+ pcb_plated_hole_id: z120.string().optional(),
17231
+ subcircuit_id: z120.string().optional()
17193
17232
  }).describe("Pattern for connecting a ground plane to a plated hole");
17194
17233
  expectTypesMatch(true);
17195
- var pcb_copper_pour_base = z118.object({
17196
- type: z118.literal("pcb_copper_pour"),
17234
+ var pcb_copper_pour_base = z121.object({
17235
+ type: z121.literal("pcb_copper_pour"),
17197
17236
  pcb_copper_pour_id: getZodPrefixedIdWithDefault("pcb_copper_pour"),
17198
- pcb_group_id: z118.string().optional(),
17199
- subcircuit_id: z118.string().optional(),
17237
+ pcb_group_id: z121.string().optional(),
17238
+ subcircuit_id: z121.string().optional(),
17200
17239
  layer: layer_ref,
17201
- source_net_id: z118.string().optional(),
17202
- covered_with_solder_mask: z118.boolean().optional().default(true)
17240
+ source_net_id: z121.string().optional(),
17241
+ covered_with_solder_mask: z121.boolean().optional().default(true)
17203
17242
  });
17204
17243
  var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
17205
- shape: z118.literal("rect"),
17244
+ shape: z121.literal("rect"),
17206
17245
  center: point,
17207
17246
  width: length,
17208
17247
  height: length,
@@ -17210,141 +17249,141 @@ var pcb_copper_pour_rect = pcb_copper_pour_base.extend({
17210
17249
  });
17211
17250
  expectTypesMatch(true);
17212
17251
  var pcb_copper_pour_brep = pcb_copper_pour_base.extend({
17213
- shape: z118.literal("brep"),
17252
+ shape: z121.literal("brep"),
17214
17253
  brep_shape
17215
17254
  });
17216
17255
  expectTypesMatch(true);
17217
17256
  var pcb_copper_pour_polygon = pcb_copper_pour_base.extend({
17218
- shape: z118.literal("polygon"),
17219
- points: z118.array(point)
17257
+ shape: z121.literal("polygon"),
17258
+ points: z121.array(point)
17220
17259
  });
17221
17260
  expectTypesMatch(true);
17222
- var pcb_copper_pour = z118.discriminatedUnion("shape", [
17261
+ var pcb_copper_pour = z121.discriminatedUnion("shape", [
17223
17262
  pcb_copper_pour_rect,
17224
17263
  pcb_copper_pour_brep,
17225
17264
  pcb_copper_pour_polygon
17226
17265
  ]).describe("Defines a copper pour on the PCB.");
17227
17266
  expectTypesMatch(true);
17228
- var pcb_component_outside_board_error = z119.object({
17229
- type: z119.literal("pcb_component_outside_board_error"),
17267
+ var pcb_component_outside_board_error = z122.object({
17268
+ type: z122.literal("pcb_component_outside_board_error"),
17230
17269
  pcb_component_outside_board_error_id: getZodPrefixedIdWithDefault(
17231
17270
  "pcb_component_outside_board_error"
17232
17271
  ),
17233
- error_type: z119.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
17234
- message: z119.string(),
17235
- pcb_component_id: z119.string(),
17236
- pcb_board_id: z119.string(),
17272
+ error_type: z122.literal("pcb_component_outside_board_error").default("pcb_component_outside_board_error"),
17273
+ message: z122.string(),
17274
+ pcb_component_id: z122.string(),
17275
+ pcb_board_id: z122.string(),
17237
17276
  component_center: point,
17238
- component_bounds: z119.object({
17239
- min_x: z119.number(),
17240
- max_x: z119.number(),
17241
- min_y: z119.number(),
17242
- max_y: z119.number()
17277
+ component_bounds: z122.object({
17278
+ min_x: z122.number(),
17279
+ max_x: z122.number(),
17280
+ min_y: z122.number(),
17281
+ max_y: z122.number()
17243
17282
  }),
17244
- subcircuit_id: z119.string().optional(),
17245
- source_component_id: z119.string().optional()
17283
+ subcircuit_id: z122.string().optional(),
17284
+ source_component_id: z122.string().optional()
17246
17285
  }).describe(
17247
17286
  "Error emitted when a PCB component is placed outside the board boundaries"
17248
17287
  );
17249
17288
  expectTypesMatch(true);
17250
- var pcb_component_invalid_layer_error = z120.object({
17251
- type: z120.literal("pcb_component_invalid_layer_error"),
17289
+ var pcb_component_invalid_layer_error = z123.object({
17290
+ type: z123.literal("pcb_component_invalid_layer_error"),
17252
17291
  pcb_component_invalid_layer_error_id: getZodPrefixedIdWithDefault(
17253
17292
  "pcb_component_invalid_layer_error"
17254
17293
  ),
17255
- error_type: z120.literal("pcb_component_invalid_layer_error").default("pcb_component_invalid_layer_error"),
17256
- message: z120.string(),
17257
- pcb_component_id: z120.string().optional(),
17258
- source_component_id: z120.string(),
17294
+ error_type: z123.literal("pcb_component_invalid_layer_error").default("pcb_component_invalid_layer_error"),
17295
+ message: z123.string(),
17296
+ pcb_component_id: z123.string().optional(),
17297
+ source_component_id: z123.string(),
17259
17298
  layer: layer_ref,
17260
- subcircuit_id: z120.string().optional()
17299
+ subcircuit_id: z123.string().optional()
17261
17300
  }).describe(
17262
17301
  "Error emitted when a component is placed on an invalid layer (components can only be on 'top' or 'bottom' layers)"
17263
17302
  );
17264
17303
  expectTypesMatch(true);
17265
- var pcb_via_clearance_error = z121.object({
17266
- type: z121.literal("pcb_via_clearance_error"),
17304
+ var pcb_via_clearance_error = z124.object({
17305
+ type: z124.literal("pcb_via_clearance_error"),
17267
17306
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
17268
- error_type: z121.literal("pcb_via_clearance_error").default("pcb_via_clearance_error"),
17269
- message: z121.string(),
17270
- pcb_via_ids: z121.array(z121.string()).min(2),
17307
+ error_type: z124.literal("pcb_via_clearance_error").default("pcb_via_clearance_error"),
17308
+ message: z124.string(),
17309
+ pcb_via_ids: z124.array(z124.string()).min(2),
17271
17310
  minimum_clearance: distance.optional(),
17272
17311
  actual_clearance: distance.optional(),
17273
- pcb_center: z121.object({
17274
- x: z121.number().optional(),
17275
- y: z121.number().optional()
17312
+ pcb_center: z124.object({
17313
+ x: z124.number().optional(),
17314
+ y: z124.number().optional()
17276
17315
  }).optional(),
17277
- subcircuit_id: z121.string().optional()
17316
+ subcircuit_id: z124.string().optional()
17278
17317
  }).describe("Error emitted when vias are closer than the allowed clearance");
17279
17318
  expectTypesMatch(true);
17280
- var pcb_courtyard_rect = z122.object({
17281
- type: z122.literal("pcb_courtyard_rect"),
17319
+ var pcb_courtyard_rect = z125.object({
17320
+ type: z125.literal("pcb_courtyard_rect"),
17282
17321
  pcb_courtyard_rect_id: getZodPrefixedIdWithDefault("pcb_courtyard_rect"),
17283
- pcb_component_id: z122.string(),
17284
- pcb_group_id: z122.string().optional(),
17285
- subcircuit_id: z122.string().optional(),
17322
+ pcb_component_id: z125.string(),
17323
+ pcb_group_id: z125.string().optional(),
17324
+ subcircuit_id: z125.string().optional(),
17286
17325
  center: point,
17287
17326
  width: length,
17288
17327
  height: length,
17289
17328
  layer: visible_layer,
17290
- color: z122.string().optional()
17329
+ color: z125.string().optional()
17291
17330
  }).describe("Defines a courtyard rectangle on the PCB");
17292
17331
  expectTypesMatch(true);
17293
- var pcb_courtyard_outline = z123.object({
17294
- type: z123.literal("pcb_courtyard_outline"),
17332
+ var pcb_courtyard_outline = z126.object({
17333
+ type: z126.literal("pcb_courtyard_outline"),
17295
17334
  pcb_courtyard_outline_id: getZodPrefixedIdWithDefault(
17296
17335
  "pcb_courtyard_outline"
17297
17336
  ),
17298
- pcb_component_id: z123.string(),
17299
- pcb_group_id: z123.string().optional(),
17300
- subcircuit_id: z123.string().optional(),
17337
+ pcb_component_id: z126.string(),
17338
+ pcb_group_id: z126.string().optional(),
17339
+ subcircuit_id: z126.string().optional(),
17301
17340
  layer: visible_layer,
17302
- outline: z123.array(point).min(2),
17341
+ outline: z126.array(point).min(2),
17303
17342
  stroke_width: length.default("0.1mm"),
17304
- is_closed: z123.boolean().optional(),
17305
- is_stroke_dashed: z123.boolean().optional(),
17306
- color: z123.string().optional()
17343
+ is_closed: z126.boolean().optional(),
17344
+ is_stroke_dashed: z126.boolean().optional(),
17345
+ color: z126.string().optional()
17307
17346
  }).describe("Defines a courtyard outline on the PCB");
17308
17347
  expectTypesMatch(true);
17309
- var pcb_courtyard_polygon = z124.object({
17310
- type: z124.literal("pcb_courtyard_polygon"),
17348
+ var pcb_courtyard_polygon = z127.object({
17349
+ type: z127.literal("pcb_courtyard_polygon"),
17311
17350
  pcb_courtyard_polygon_id: getZodPrefixedIdWithDefault(
17312
17351
  "pcb_courtyard_polygon"
17313
17352
  ),
17314
- pcb_component_id: z124.string(),
17315
- pcb_group_id: z124.string().optional(),
17316
- subcircuit_id: z124.string().optional(),
17353
+ pcb_component_id: z127.string(),
17354
+ pcb_group_id: z127.string().optional(),
17355
+ subcircuit_id: z127.string().optional(),
17317
17356
  layer: visible_layer,
17318
- points: z124.array(point).min(3),
17319
- color: z124.string().optional()
17357
+ points: z127.array(point).min(3),
17358
+ color: z127.string().optional()
17320
17359
  }).describe("Defines a courtyard polygon on the PCB");
17321
17360
  expectTypesMatch(true);
17322
- var cad_component = z125.object({
17323
- type: z125.literal("cad_component"),
17324
- cad_component_id: z125.string(),
17325
- pcb_component_id: z125.string(),
17326
- source_component_id: z125.string(),
17361
+ var cad_component = z128.object({
17362
+ type: z128.literal("cad_component"),
17363
+ cad_component_id: z128.string(),
17364
+ pcb_component_id: z128.string(),
17365
+ source_component_id: z128.string(),
17327
17366
  position: point3,
17328
17367
  rotation: point3.optional(),
17329
17368
  size: point3.optional(),
17330
17369
  layer: layer_ref.optional(),
17331
- subcircuit_id: z125.string().optional(),
17370
+ subcircuit_id: z128.string().optional(),
17332
17371
  // These are all ways to generate/load the 3d model
17333
- footprinter_string: z125.string().optional(),
17334
- model_obj_url: z125.string().optional(),
17335
- model_stl_url: z125.string().optional(),
17336
- model_3mf_url: z125.string().optional(),
17337
- model_gltf_url: z125.string().optional(),
17338
- model_glb_url: z125.string().optional(),
17339
- model_step_url: z125.string().optional(),
17340
- model_wrl_url: z125.string().optional(),
17341
- model_unit_to_mm_scale_factor: z125.number().optional(),
17342
- model_jscad: z125.any().optional(),
17343
- show_as_translucent_model: z125.boolean().optional()
17372
+ footprinter_string: z128.string().optional(),
17373
+ model_obj_url: z128.string().optional(),
17374
+ model_stl_url: z128.string().optional(),
17375
+ model_3mf_url: z128.string().optional(),
17376
+ model_gltf_url: z128.string().optional(),
17377
+ model_glb_url: z128.string().optional(),
17378
+ model_step_url: z128.string().optional(),
17379
+ model_wrl_url: z128.string().optional(),
17380
+ model_unit_to_mm_scale_factor: z128.number().optional(),
17381
+ model_jscad: z128.any().optional(),
17382
+ show_as_translucent_model: z128.boolean().optional()
17344
17383
  }).describe("Defines a component on the PCB");
17345
17384
  expectTypesMatch(true);
17346
- var wave_shape = z126.enum(["sinewave", "square", "triangle", "sawtooth"]);
17347
- var percentage = z126.union([z126.string(), z126.number()]).transform((val) => {
17385
+ var wave_shape = z129.enum(["sinewave", "square", "triangle", "sawtooth"]);
17386
+ var percentage = z129.union([z129.string(), z129.number()]).transform((val) => {
17348
17387
  if (typeof val === "string") {
17349
17388
  if (val.endsWith("%")) {
17350
17389
  return parseFloat(val.slice(0, -1)) / 100;
@@ -17353,30 +17392,30 @@ var percentage = z126.union([z126.string(), z126.number()]).transform((val) => {
17353
17392
  }
17354
17393
  return val;
17355
17394
  }).pipe(
17356
- z126.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
17395
+ z129.number().min(0, "Duty cycle must be non-negative").max(1, "Duty cycle cannot be greater than 100%")
17357
17396
  );
17358
- var simulation_dc_voltage_source = z126.object({
17359
- type: z126.literal("simulation_voltage_source"),
17397
+ var simulation_dc_voltage_source = z129.object({
17398
+ type: z129.literal("simulation_voltage_source"),
17360
17399
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
17361
17400
  "simulation_voltage_source"
17362
17401
  ),
17363
- is_dc_source: z126.literal(true).optional().default(true),
17364
- positive_source_port_id: z126.string().optional(),
17365
- negative_source_port_id: z126.string().optional(),
17366
- positive_source_net_id: z126.string().optional(),
17367
- negative_source_net_id: z126.string().optional(),
17402
+ is_dc_source: z129.literal(true).optional().default(true),
17403
+ positive_source_port_id: z129.string().optional(),
17404
+ negative_source_port_id: z129.string().optional(),
17405
+ positive_source_net_id: z129.string().optional(),
17406
+ negative_source_net_id: z129.string().optional(),
17368
17407
  voltage
17369
17408
  }).describe("Defines a DC voltage source for simulation");
17370
- var simulation_ac_voltage_source = z126.object({
17371
- type: z126.literal("simulation_voltage_source"),
17409
+ var simulation_ac_voltage_source = z129.object({
17410
+ type: z129.literal("simulation_voltage_source"),
17372
17411
  simulation_voltage_source_id: getZodPrefixedIdWithDefault(
17373
17412
  "simulation_voltage_source"
17374
17413
  ),
17375
- is_dc_source: z126.literal(false),
17376
- terminal1_source_port_id: z126.string().optional(),
17377
- terminal2_source_port_id: z126.string().optional(),
17378
- terminal1_source_net_id: z126.string().optional(),
17379
- terminal2_source_net_id: z126.string().optional(),
17414
+ is_dc_source: z129.literal(false),
17415
+ terminal1_source_port_id: z129.string().optional(),
17416
+ terminal2_source_port_id: z129.string().optional(),
17417
+ terminal1_source_net_id: z129.string().optional(),
17418
+ terminal2_source_net_id: z129.string().optional(),
17380
17419
  voltage: voltage.optional(),
17381
17420
  frequency: frequency.optional(),
17382
17421
  peak_to_peak_voltage: voltage.optional(),
@@ -17384,68 +17423,68 @@ var simulation_ac_voltage_source = z126.object({
17384
17423
  phase: rotation.optional(),
17385
17424
  duty_cycle: percentage.optional()
17386
17425
  }).describe("Defines an AC voltage source for simulation");
17387
- var simulation_voltage_source = z126.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
17426
+ var simulation_voltage_source = z129.union([simulation_dc_voltage_source, simulation_ac_voltage_source]).describe("Defines a voltage source for simulation");
17388
17427
  expectTypesMatch(true);
17389
17428
  expectTypesMatch(true);
17390
17429
  expectTypesMatch(true);
17391
- var experiment_type = z127.union([
17392
- z127.literal("spice_dc_sweep"),
17393
- z127.literal("spice_dc_operating_point"),
17394
- z127.literal("spice_transient_analysis"),
17395
- z127.literal("spice_ac_analysis")
17430
+ var experiment_type = z130.union([
17431
+ z130.literal("spice_dc_sweep"),
17432
+ z130.literal("spice_dc_operating_point"),
17433
+ z130.literal("spice_transient_analysis"),
17434
+ z130.literal("spice_ac_analysis")
17396
17435
  ]);
17397
- var simulation_experiment = z127.object({
17398
- type: z127.literal("simulation_experiment"),
17436
+ var simulation_experiment = z130.object({
17437
+ type: z130.literal("simulation_experiment"),
17399
17438
  simulation_experiment_id: getZodPrefixedIdWithDefault(
17400
17439
  "simulation_experiment"
17401
17440
  ),
17402
- name: z127.string(),
17441
+ name: z130.string(),
17403
17442
  experiment_type,
17404
17443
  time_per_step: duration_ms.optional(),
17405
17444
  start_time_ms: ms.optional(),
17406
17445
  end_time_ms: ms.optional()
17407
17446
  }).describe("Defines a simulation experiment configuration");
17408
17447
  expectTypesMatch(true);
17409
- var simulation_transient_voltage_graph = z128.object({
17410
- type: z128.literal("simulation_transient_voltage_graph"),
17448
+ var simulation_transient_voltage_graph = z131.object({
17449
+ type: z131.literal("simulation_transient_voltage_graph"),
17411
17450
  simulation_transient_voltage_graph_id: getZodPrefixedIdWithDefault(
17412
17451
  "simulation_transient_voltage_graph"
17413
17452
  ),
17414
- simulation_experiment_id: z128.string(),
17415
- timestamps_ms: z128.array(z128.number()).optional(),
17416
- voltage_levels: z128.array(z128.number()),
17417
- source_component_id: z128.string().optional(),
17418
- subcircuit_connectivity_map_key: z128.string().optional(),
17453
+ simulation_experiment_id: z131.string(),
17454
+ timestamps_ms: z131.array(z131.number()).optional(),
17455
+ voltage_levels: z131.array(z131.number()),
17456
+ source_component_id: z131.string().optional(),
17457
+ subcircuit_connectivity_map_key: z131.string().optional(),
17419
17458
  time_per_step: duration_ms,
17420
17459
  start_time_ms: ms,
17421
17460
  end_time_ms: ms,
17422
- name: z128.string().optional(),
17423
- color: z128.string().optional()
17461
+ name: z131.string().optional(),
17462
+ color: z131.string().optional()
17424
17463
  }).describe("Stores voltage measurements over time for a simulation");
17425
17464
  expectTypesMatch(true);
17426
- var simulation_switch = z129.object({
17427
- type: z129.literal("simulation_switch"),
17465
+ var simulation_switch = z132.object({
17466
+ type: z132.literal("simulation_switch"),
17428
17467
  simulation_switch_id: getZodPrefixedIdWithDefault("simulation_switch"),
17429
- source_component_id: z129.string().optional(),
17468
+ source_component_id: z132.string().optional(),
17430
17469
  closes_at: ms.optional(),
17431
17470
  opens_at: ms.optional(),
17432
- starts_closed: z129.boolean().optional(),
17471
+ starts_closed: z132.boolean().optional(),
17433
17472
  switching_frequency: frequency.optional()
17434
17473
  }).describe("Defines a switch for simulation timing control");
17435
17474
  expectTypesMatch(true);
17436
- var simulation_voltage_probe = z130.object({
17437
- type: z130.literal("simulation_voltage_probe"),
17475
+ var simulation_voltage_probe = z133.object({
17476
+ type: z133.literal("simulation_voltage_probe"),
17438
17477
  simulation_voltage_probe_id: getZodPrefixedIdWithDefault(
17439
17478
  "simulation_voltage_probe"
17440
17479
  ),
17441
- source_component_id: z130.string().optional(),
17442
- name: z130.string().optional(),
17443
- signal_input_source_port_id: z130.string().optional(),
17444
- signal_input_source_net_id: z130.string().optional(),
17445
- reference_input_source_port_id: z130.string().optional(),
17446
- reference_input_source_net_id: z130.string().optional(),
17447
- subcircuit_id: z130.string().optional(),
17448
- color: z130.string().optional()
17480
+ source_component_id: z133.string().optional(),
17481
+ name: z133.string().optional(),
17482
+ signal_input_source_port_id: z133.string().optional(),
17483
+ signal_input_source_net_id: z133.string().optional(),
17484
+ reference_input_source_port_id: z133.string().optional(),
17485
+ reference_input_source_net_id: z133.string().optional(),
17486
+ subcircuit_id: z133.string().optional(),
17487
+ color: z133.string().optional()
17449
17488
  }).describe(
17450
17489
  "Defines a voltage probe for simulation. If a reference input is not provided, it measures against ground. If a reference input is provided, it measures the differential voltage between two points."
17451
17490
  ).superRefine((data, ctx) => {
@@ -17455,20 +17494,20 @@ var simulation_voltage_probe = z130.object({
17455
17494
  const has_nets = !!data.signal_input_source_net_id || !!data.reference_input_source_net_id;
17456
17495
  if (has_ports && has_nets) {
17457
17496
  ctx.addIssue({
17458
- code: z130.ZodIssueCode.custom,
17497
+ code: z133.ZodIssueCode.custom,
17459
17498
  message: "Cannot mix port and net connections in a differential probe."
17460
17499
  });
17461
17500
  } else if (has_ports) {
17462
17501
  if (!data.signal_input_source_port_id || !data.reference_input_source_port_id) {
17463
17502
  ctx.addIssue({
17464
- code: z130.ZodIssueCode.custom,
17503
+ code: z133.ZodIssueCode.custom,
17465
17504
  message: "Differential port probe requires both signal_input_source_port_id and reference_input_source_port_id."
17466
17505
  });
17467
17506
  }
17468
17507
  } else if (has_nets) {
17469
17508
  if (!data.signal_input_source_net_id || !data.reference_input_source_net_id) {
17470
17509
  ctx.addIssue({
17471
- code: z130.ZodIssueCode.custom,
17510
+ code: z133.ZodIssueCode.custom,
17472
17511
  message: "Differential net probe requires both signal_input_source_net_id and reference_input_source_net_id."
17473
17512
  });
17474
17513
  }
@@ -17476,27 +17515,28 @@ var simulation_voltage_probe = z130.object({
17476
17515
  } else {
17477
17516
  if (!!data.signal_input_source_port_id === !!data.signal_input_source_net_id) {
17478
17517
  ctx.addIssue({
17479
- code: z130.ZodIssueCode.custom,
17518
+ code: z133.ZodIssueCode.custom,
17480
17519
  message: "A voltage probe must have exactly one of signal_input_source_port_id or signal_input_source_net_id."
17481
17520
  });
17482
17521
  }
17483
17522
  }
17484
17523
  });
17485
17524
  expectTypesMatch(true);
17486
- var simulation_unknown_experiment_error = z131.object({
17487
- type: z131.literal("simulation_unknown_experiment_error"),
17525
+ var simulation_unknown_experiment_error = z134.object({
17526
+ type: z134.literal("simulation_unknown_experiment_error"),
17488
17527
  simulation_unknown_experiment_error_id: getZodPrefixedIdWithDefault(
17489
17528
  "simulation_unknown_experiment_error"
17490
17529
  ),
17491
- error_type: z131.literal("simulation_unknown_experiment_error").default("simulation_unknown_experiment_error"),
17492
- message: z131.string(),
17493
- simulation_experiment_id: z131.string().optional(),
17494
- subcircuit_id: z131.string().optional()
17530
+ error_type: z134.literal("simulation_unknown_experiment_error").default("simulation_unknown_experiment_error"),
17531
+ message: z134.string(),
17532
+ simulation_experiment_id: z134.string().optional(),
17533
+ subcircuit_id: z134.string().optional()
17495
17534
  }).describe("An unknown error occurred during the simulation experiment.");
17496
17535
  expectTypesMatch(true);
17497
- var any_circuit_element = z132.union([
17536
+ var any_circuit_element = z135.union([
17498
17537
  source_trace,
17499
17538
  source_port,
17539
+ source_component_internal_connection,
17500
17540
  any_source_component,
17501
17541
  source_net,
17502
17542
  source_group,
@@ -17621,7 +17661,7 @@ import { z as z910 } from "zod";
17621
17661
  import "zod";
17622
17662
  import "zod";
17623
17663
  import { z as z1210 } from "zod";
17624
- import { z as z134 } from "zod";
17664
+ import { z as z137 } from "zod";
17625
17665
  import { z as z142 } from "zod";
17626
17666
  import { z as z152 } from "zod";
17627
17667
  import { z as z162 } from "zod";
@@ -17796,12 +17836,12 @@ function convertMilToMm(value) {
17796
17836
  }
17797
17837
  return Number(value);
17798
17838
  }
17799
- var lengthInMm = z133.union([z133.string(), z133.number()]).transform((val) => convertMilToMm(val));
17800
- var extendDipDef = (newDefaults) => z133.object({
17801
- fn: z133.string(),
17802
- num_pins: z133.number().optional().default(6),
17803
- wide: z133.boolean().optional(),
17804
- narrow: z133.boolean().optional(),
17839
+ var lengthInMm = z136.union([z136.string(), z136.number()]).transform((val) => convertMilToMm(val));
17840
+ var extendDipDef = (newDefaults) => z136.object({
17841
+ fn: z136.string(),
17842
+ num_pins: z136.number().optional().default(6),
17843
+ wide: z136.boolean().optional(),
17844
+ narrow: z136.boolean().optional(),
17805
17845
  w: lengthInMm.optional(),
17806
17846
  p: lengthInMm.default(newDefaults.p ?? "2.54mm"),
17807
17847
  id: lengthInMm.optional(),
@@ -19507,13 +19547,13 @@ var ms013 = (raw_params) => {
19507
19547
  parameters
19508
19548
  };
19509
19549
  };
19510
- var sot723_def = z134.object({
19511
- fn: z134.string(),
19512
- num_pins: z134.literal(3).default(3),
19513
- w: z134.string().default("1.2mm"),
19514
- h: z134.string().default("1.2mm"),
19515
- pl: z134.string().default("0.3mm"),
19516
- pw: z134.string().default("0.32mm")
19550
+ var sot723_def = z137.object({
19551
+ fn: z137.string(),
19552
+ num_pins: z137.literal(3).default(3),
19553
+ w: z137.string().default("1.2mm"),
19554
+ h: z137.string().default("1.2mm"),
19555
+ pl: z137.string().default("0.3mm"),
19556
+ pw: z137.string().default("0.32mm")
19517
19557
  });
19518
19558
  var sot723 = (raw_params) => {
19519
19559
  const parameters = sot723_def.parse(raw_params);
@@ -24939,10 +24979,10 @@ var svgPathPoints = normalizeOnY([
24939
24979
  ]);
24940
24980
  var DIP_PIN_HEIGHT = 5.47;
24941
24981
  var heightAboveSurface = 0.5;
24942
- var DipPinLeg = ({ x, y, z: z135 }) => {
24982
+ var DipPinLeg = ({ x, y, z: z138 }) => {
24943
24983
  const isRotated = x > 0;
24944
24984
  return /* @__PURE__ */ jsxs(Fragment22, { children: [
24945
- /* @__PURE__ */ jsx5(Translate, { offset: { x: x + 0.25 / 2, y, z: z135 }, children: /* @__PURE__ */ jsx5(Rotate, { rotation: ["-90deg", 0, "90deg"], children: /* @__PURE__ */ jsx5(ExtrudeLinear, { height: 0.25, children: /* @__PURE__ */ jsx5(
24985
+ /* @__PURE__ */ jsx5(Translate, { offset: { x: x + 0.25 / 2, y, z: z138 }, children: /* @__PURE__ */ jsx5(Rotate, { rotation: ["-90deg", 0, "90deg"], children: /* @__PURE__ */ jsx5(ExtrudeLinear, { height: 0.25, children: /* @__PURE__ */ jsx5(
24946
24986
  Polygon,
24947
24987
  {
24948
24988
  points: svgPathPoints.slice().reverse().map((p) => [p.x, p.y])
@@ -24954,7 +24994,7 @@ var DipPinLeg = ({ x, y, z: z135 }) => {
24954
24994
  offset: {
24955
24995
  x,
24956
24996
  y: y + (isRotated ? 1 : -1),
24957
- z: z135
24997
+ z: z138
24958
24998
  },
24959
24999
  children: /* @__PURE__ */ jsx5(Rotate, { rotation: ["-90deg", "90deg", isRotated ? "180deg" : "0deg"], children: /* @__PURE__ */ jsx5(ExtrudeLinear, { height: 2, children: /* @__PURE__ */ jsx5(
24960
25000
  Polygon,
@@ -25412,7 +25452,7 @@ var PinRow = ({
25412
25452
  const shortSidePinLength = 3;
25413
25453
  const xoff = -((pinsPerRow - 1) / 2) * pitch;
25414
25454
  const bodyCenterY = rows > 1 ? -((rows - 1) * rowSpacing) / 2 : 0;
25415
- const flipZ = (z135) => invert || faceup ? -z135 + bodyHeight : z135;
25455
+ const flipZ = (z138) => invert || faceup ? -z138 + bodyHeight : z138;
25416
25456
  return /* @__PURE__ */ jsxs(Fragment22, { children: [
25417
25457
  /* @__PURE__ */ jsx5(
25418
25458
  Cuboid,
@@ -27936,19 +27976,19 @@ var TO220 = () => {
27936
27976
  /* @__PURE__ */ jsx5(Rotate, { rotation: [0, 55, 55], children: Array.from({ length: 3 }).map((_, i) => {
27937
27977
  const x = prongCenterX;
27938
27978
  const y = (i - 1) * prongPitch;
27939
- const z135 = -prongHeight - 0.6;
27979
+ const z138 = -prongHeight - 0.6;
27940
27980
  return /* @__PURE__ */ jsxs(Colorize, { color: "gold", children: [
27941
27981
  /* @__PURE__ */ jsxs(Hull, { children: [
27942
- /* @__PURE__ */ jsx5(Translate, { center: [bodyFrontX - bodyHeight / 2 + 0.1, y, z135], children: /* @__PURE__ */ jsx5(Cuboid, { size: [bodyHeight, prongWidth + 1, prongHeight] }) }),
27982
+ /* @__PURE__ */ jsx5(Translate, { center: [bodyFrontX - bodyHeight / 2 + 0.1, y, z138], children: /* @__PURE__ */ jsx5(Cuboid, { size: [bodyHeight, prongWidth + 1, prongHeight] }) }),
27943
27983
  /* @__PURE__ */ jsx5(
27944
27984
  Translate,
27945
27985
  {
27946
- center: [bodyFrontX - bodyHeight / 2 - 1 + 0.1, y, z135],
27986
+ center: [bodyFrontX - bodyHeight / 2 - 1 + 0.1, y, z138],
27947
27987
  children: /* @__PURE__ */ jsx5(Cuboid, { size: [bodyHeight, prongWidth, prongHeight] })
27948
27988
  }
27949
27989
  )
27950
27990
  ] }),
27951
- /* @__PURE__ */ jsx5(Translate, { center: [x, y, z135], children: /* @__PURE__ */ jsx5(Cuboid, { size: [prongLength + 0.1, prongWidth, prongHeight] }) })
27991
+ /* @__PURE__ */ jsx5(Translate, { center: [x, y, z138], children: /* @__PURE__ */ jsx5(Cuboid, { size: [prongLength + 0.1, prongWidth, prongHeight] }) })
27952
27992
  ] }, `prong-${i}`);
27953
27993
  }) })
27954
27994
  ] }) });
@@ -29455,7 +29495,7 @@ import * as THREE15 from "three";
29455
29495
  // package.json
29456
29496
  var package_default = {
29457
29497
  name: "@tscircuit/3d-viewer",
29458
- version: "0.0.472",
29498
+ version: "0.0.474",
29459
29499
  main: "./dist/index.js",
29460
29500
  module: "./dist/index.js",
29461
29501
  type: "module",
@@ -29502,15 +29542,8 @@ var package_default = {
29502
29542
  "@jscad/modeling": "^2.12.5",
29503
29543
  "@storybook/blocks": "9.0.0-alpha.17",
29504
29544
  "@storybook/react-vite": "^9.1.5",
29505
- "@tscircuit/circuit-json-util": "^0.0.72",
29506
- "@tscircuit/core": "^0.0.890",
29507
- "@tscircuit/props": "^0.0.422",
29508
- "@tscircuit/checks": "^0.0.87",
29509
- "@tscircuit/math-utils": "^0.0.29",
29510
29545
  "@tscircuit/copper-pour-solver": "^0.0.14",
29511
29546
  "@tscircuit/solver-utils": "^0.0.4",
29512
- "@tscircuit/capacity-autorouter": "^0.0.131",
29513
- "calculate-packing": "^0.0.48",
29514
29547
  "@types/jsdom": "^21.1.7",
29515
29548
  "@types/react": "19",
29516
29549
  "@types/react-dom": "19",
@@ -29519,8 +29552,6 @@ var package_default = {
29519
29552
  "@vitejs/plugin-react": "^4.3.4",
29520
29553
  "bun-match-svg": "^0.0.9",
29521
29554
  "bun-types": "1.2.1",
29522
- "circuit-json": "0.0.325",
29523
- "circuit-to-svg": "^0.0.179",
29524
29555
  debug: "^4.4.0",
29525
29556
  "jscad-electronics": "^0.0.109",
29526
29557
  "jscad-planner": "^0.0.13",
@@ -29529,7 +29560,7 @@ var package_default = {
29529
29560
  "react-use-gesture": "^9.1.3",
29530
29561
  semver: "^7.7.0",
29531
29562
  "strip-ansi": "^7.1.0",
29532
- tscircuit: "^0.0.834",
29563
+ tscircuit: "^0.0.1056",
29533
29564
  tsup: "^8.3.6",
29534
29565
  typescript: "^5.7.3",
29535
29566
  vite: "^7.1.5",
@@ -29623,11 +29654,11 @@ var CameraControllerProvider = ({ children, defaultTarget, initialCameraPosition
29623
29654
  new THREE9.Euler(0, 0, 0)
29624
29655
  );
29625
29656
  const baseDistance = useMemo8(() => {
29626
- const [x, y, z135] = initialCameraPosition ?? [5, -5, 5];
29657
+ const [x, y, z138] = initialCameraPosition ?? [5, -5, 5];
29627
29658
  const distance2 = Math.hypot(
29628
29659
  x - defaultTarget.x,
29629
29660
  y - defaultTarget.y,
29630
- z135 - defaultTarget.z
29661
+ z138 - defaultTarget.z
29631
29662
  );
29632
29663
  return distance2 > 0 ? distance2 : 5;
29633
29664
  }, [initialCameraPosition, defaultTarget]);