circuit-json 0.0.193 → 0.0.195
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/index.d.mts +259 -6
- package/dist/index.mjs +441 -412
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,6 +101,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
101
101
|
- [SchematicComponent](#schematiccomponent)
|
|
102
102
|
- [SchematicError](#schematicerror)
|
|
103
103
|
- [SchematicGroup](#schematicgroup)
|
|
104
|
+
- [SchematicLayoutError](#schematiclayouterror)
|
|
104
105
|
- [SchematicLine](#schematicline)
|
|
105
106
|
- [SchematicManualEditConflictWarning](#schematicmanualeditconflictwarning)
|
|
106
107
|
- [SchematicNetLabel](#schematicnetlabel)
|
|
@@ -1202,6 +1203,20 @@ interface SchematicGroup {
|
|
|
1202
1203
|
}
|
|
1203
1204
|
```
|
|
1204
1205
|
|
|
1206
|
+
### SchematicLayoutError
|
|
1207
|
+
|
|
1208
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_layout_error.ts)
|
|
1209
|
+
|
|
1210
|
+
```typescript
|
|
1211
|
+
interface SchematicLayoutError {
|
|
1212
|
+
type: "schematic_layout_error"
|
|
1213
|
+
schematic_layout_error_id: string
|
|
1214
|
+
message: string
|
|
1215
|
+
source_group_id: string
|
|
1216
|
+
schematic_group_id: string
|
|
1217
|
+
}
|
|
1218
|
+
```
|
|
1219
|
+
|
|
1205
1220
|
### SchematicLine
|
|
1206
1221
|
|
|
1207
1222
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/schematic/schematic_line.ts)
|
package/dist/index.d.mts
CHANGED
|
@@ -1150,6 +1150,64 @@ declare const pcb_smtpad: z.ZodUnion<[z.ZodObject<{
|
|
|
1150
1150
|
port_hints?: string[] | undefined;
|
|
1151
1151
|
pcb_port_id?: string | undefined;
|
|
1152
1152
|
pcb_smtpad_id?: string | undefined;
|
|
1153
|
+
}>, z.ZodObject<{
|
|
1154
|
+
type: z.ZodLiteral<"pcb_smtpad">;
|
|
1155
|
+
shape: z.ZodLiteral<"polygon">;
|
|
1156
|
+
pcb_smtpad_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1157
|
+
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
1158
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
1159
|
+
points: z.ZodArray<z.ZodObject<{
|
|
1160
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
1161
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
1162
|
+
}, "strip", z.ZodTypeAny, {
|
|
1163
|
+
x: number;
|
|
1164
|
+
y: number;
|
|
1165
|
+
}, {
|
|
1166
|
+
x: string | number;
|
|
1167
|
+
y: string | number;
|
|
1168
|
+
}>, "many">;
|
|
1169
|
+
layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
1170
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
1171
|
+
}, "strip", z.ZodTypeAny, {
|
|
1172
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1173
|
+
}, {
|
|
1174
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1175
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
1176
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1177
|
+
}>;
|
|
1178
|
+
port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1179
|
+
pcb_component_id: z.ZodOptional<z.ZodString>;
|
|
1180
|
+
pcb_port_id: z.ZodOptional<z.ZodString>;
|
|
1181
|
+
}, "strip", z.ZodTypeAny, {
|
|
1182
|
+
type: "pcb_smtpad";
|
|
1183
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1184
|
+
shape: "polygon";
|
|
1185
|
+
pcb_smtpad_id: string;
|
|
1186
|
+
points: {
|
|
1187
|
+
x: number;
|
|
1188
|
+
y: number;
|
|
1189
|
+
}[];
|
|
1190
|
+
pcb_component_id?: string | undefined;
|
|
1191
|
+
subcircuit_id?: string | undefined;
|
|
1192
|
+
pcb_group_id?: string | undefined;
|
|
1193
|
+
port_hints?: string[] | undefined;
|
|
1194
|
+
pcb_port_id?: string | undefined;
|
|
1195
|
+
}, {
|
|
1196
|
+
type: "pcb_smtpad";
|
|
1197
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
1198
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1199
|
+
};
|
|
1200
|
+
shape: "polygon";
|
|
1201
|
+
points: {
|
|
1202
|
+
x: string | number;
|
|
1203
|
+
y: string | number;
|
|
1204
|
+
}[];
|
|
1205
|
+
pcb_component_id?: string | undefined;
|
|
1206
|
+
subcircuit_id?: string | undefined;
|
|
1207
|
+
pcb_group_id?: string | undefined;
|
|
1208
|
+
port_hints?: string[] | undefined;
|
|
1209
|
+
pcb_port_id?: string | undefined;
|
|
1210
|
+
pcb_smtpad_id?: string | undefined;
|
|
1153
1211
|
}>]>;
|
|
1154
1212
|
type PCBSMTPadInput = z.input<typeof pcb_smtpad>;
|
|
1155
1213
|
/**
|
|
@@ -1225,7 +1283,22 @@ interface PcbSmtPadPill {
|
|
|
1225
1283
|
pcb_component_id?: string;
|
|
1226
1284
|
pcb_port_id?: string;
|
|
1227
1285
|
}
|
|
1228
|
-
|
|
1286
|
+
/**
|
|
1287
|
+
* Defines a polygonal SMT pad on the PCB
|
|
1288
|
+
*/
|
|
1289
|
+
interface PcbSmtPadPolygon {
|
|
1290
|
+
type: "pcb_smtpad";
|
|
1291
|
+
shape: "polygon";
|
|
1292
|
+
pcb_smtpad_id: string;
|
|
1293
|
+
pcb_group_id?: string;
|
|
1294
|
+
subcircuit_id?: string;
|
|
1295
|
+
points: Point[];
|
|
1296
|
+
layer: LayerRef;
|
|
1297
|
+
port_hints?: string[];
|
|
1298
|
+
pcb_component_id?: string;
|
|
1299
|
+
pcb_port_id?: string;
|
|
1300
|
+
}
|
|
1301
|
+
type PcbSmtPad = PcbSmtPadCircle | PcbSmtPadRect | PcbSmtPadRotatedRect | PcbSmtPadPill | PcbSmtPadPolygon;
|
|
1229
1302
|
/**
|
|
1230
1303
|
* @deprecated use PcbSmtPad
|
|
1231
1304
|
*/
|
|
@@ -3157,11 +3230,11 @@ declare const pcb_cutout_polygon: z.ZodObject<{
|
|
|
3157
3230
|
}, "strip", z.ZodTypeAny, {
|
|
3158
3231
|
type: "pcb_cutout";
|
|
3159
3232
|
shape: "polygon";
|
|
3160
|
-
pcb_cutout_id: string;
|
|
3161
3233
|
points: {
|
|
3162
3234
|
x: number;
|
|
3163
3235
|
y: number;
|
|
3164
3236
|
}[];
|
|
3237
|
+
pcb_cutout_id: string;
|
|
3165
3238
|
subcircuit_id?: string | undefined;
|
|
3166
3239
|
pcb_group_id?: string | undefined;
|
|
3167
3240
|
}, {
|
|
@@ -3294,11 +3367,11 @@ declare const pcb_cutout: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<{
|
|
|
3294
3367
|
}, "strip", z.ZodTypeAny, {
|
|
3295
3368
|
type: "pcb_cutout";
|
|
3296
3369
|
shape: "polygon";
|
|
3297
|
-
pcb_cutout_id: string;
|
|
3298
3370
|
points: {
|
|
3299
3371
|
x: number;
|
|
3300
3372
|
y: number;
|
|
3301
3373
|
}[];
|
|
3374
|
+
pcb_cutout_id: string;
|
|
3302
3375
|
subcircuit_id?: string | undefined;
|
|
3303
3376
|
pcb_group_id?: string | undefined;
|
|
3304
3377
|
}, {
|
|
@@ -4453,6 +4526,34 @@ declare const schematic_error: z.ZodObject<{
|
|
|
4453
4526
|
}>;
|
|
4454
4527
|
type SchematicErrorInput = z.input<typeof schematic_error>;
|
|
4455
4528
|
|
|
4529
|
+
declare const schematic_layout_error: z.ZodObject<{
|
|
4530
|
+
type: z.ZodLiteral<"schematic_layout_error">;
|
|
4531
|
+
schematic_layout_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
4532
|
+
message: z.ZodString;
|
|
4533
|
+
source_group_id: z.ZodString;
|
|
4534
|
+
schematic_group_id: z.ZodString;
|
|
4535
|
+
}, "strip", z.ZodTypeAny, {
|
|
4536
|
+
message: string;
|
|
4537
|
+
type: "schematic_layout_error";
|
|
4538
|
+
source_group_id: string;
|
|
4539
|
+
schematic_group_id: string;
|
|
4540
|
+
schematic_layout_error_id: string;
|
|
4541
|
+
}, {
|
|
4542
|
+
message: string;
|
|
4543
|
+
type: "schematic_layout_error";
|
|
4544
|
+
source_group_id: string;
|
|
4545
|
+
schematic_group_id: string;
|
|
4546
|
+
schematic_layout_error_id?: string | undefined;
|
|
4547
|
+
}>;
|
|
4548
|
+
type SchematicLayoutErrorInput = z.input<typeof schematic_layout_error>;
|
|
4549
|
+
interface SchematicLayoutError {
|
|
4550
|
+
type: "schematic_layout_error";
|
|
4551
|
+
schematic_layout_error_id: string;
|
|
4552
|
+
message: string;
|
|
4553
|
+
source_group_id: string;
|
|
4554
|
+
schematic_group_id: string;
|
|
4555
|
+
}
|
|
4556
|
+
|
|
4456
4557
|
declare const schematic_debug_object_base: z.ZodObject<{
|
|
4457
4558
|
type: z.ZodLiteral<"schematic_debug_object">;
|
|
4458
4559
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -9719,6 +9820,64 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9719
9820
|
port_hints?: string[] | undefined;
|
|
9720
9821
|
pcb_port_id?: string | undefined;
|
|
9721
9822
|
pcb_smtpad_id?: string | undefined;
|
|
9823
|
+
}>, z.ZodObject<{
|
|
9824
|
+
type: z.ZodLiteral<"pcb_smtpad">;
|
|
9825
|
+
shape: z.ZodLiteral<"polygon">;
|
|
9826
|
+
pcb_smtpad_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9827
|
+
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
9828
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
9829
|
+
points: z.ZodArray<z.ZodObject<{
|
|
9830
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
9831
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
9832
|
+
}, "strip", z.ZodTypeAny, {
|
|
9833
|
+
x: number;
|
|
9834
|
+
y: number;
|
|
9835
|
+
}, {
|
|
9836
|
+
x: string | number;
|
|
9837
|
+
y: string | number;
|
|
9838
|
+
}>, "many">;
|
|
9839
|
+
layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
9840
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
9841
|
+
}, "strip", z.ZodTypeAny, {
|
|
9842
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9843
|
+
}, {
|
|
9844
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9845
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
9846
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9847
|
+
}>;
|
|
9848
|
+
port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9849
|
+
pcb_component_id: z.ZodOptional<z.ZodString>;
|
|
9850
|
+
pcb_port_id: z.ZodOptional<z.ZodString>;
|
|
9851
|
+
}, "strip", z.ZodTypeAny, {
|
|
9852
|
+
type: "pcb_smtpad";
|
|
9853
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9854
|
+
shape: "polygon";
|
|
9855
|
+
pcb_smtpad_id: string;
|
|
9856
|
+
points: {
|
|
9857
|
+
x: number;
|
|
9858
|
+
y: number;
|
|
9859
|
+
}[];
|
|
9860
|
+
pcb_component_id?: string | undefined;
|
|
9861
|
+
subcircuit_id?: string | undefined;
|
|
9862
|
+
pcb_group_id?: string | undefined;
|
|
9863
|
+
port_hints?: string[] | undefined;
|
|
9864
|
+
pcb_port_id?: string | undefined;
|
|
9865
|
+
}, {
|
|
9866
|
+
type: "pcb_smtpad";
|
|
9867
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
9868
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
9869
|
+
};
|
|
9870
|
+
shape: "polygon";
|
|
9871
|
+
points: {
|
|
9872
|
+
x: string | number;
|
|
9873
|
+
y: string | number;
|
|
9874
|
+
}[];
|
|
9875
|
+
pcb_component_id?: string | undefined;
|
|
9876
|
+
subcircuit_id?: string | undefined;
|
|
9877
|
+
pcb_group_id?: string | undefined;
|
|
9878
|
+
port_hints?: string[] | undefined;
|
|
9879
|
+
pcb_port_id?: string | undefined;
|
|
9880
|
+
pcb_smtpad_id?: string | undefined;
|
|
9722
9881
|
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
9723
9882
|
type: z.ZodLiteral<"pcb_solder_paste">;
|
|
9724
9883
|
shape: z.ZodLiteral<"circle">;
|
|
@@ -10742,11 +10901,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10742
10901
|
}, "strip", z.ZodTypeAny, {
|
|
10743
10902
|
type: "pcb_cutout";
|
|
10744
10903
|
shape: "polygon";
|
|
10745
|
-
pcb_cutout_id: string;
|
|
10746
10904
|
points: {
|
|
10747
10905
|
x: number;
|
|
10748
10906
|
y: number;
|
|
10749
10907
|
}[];
|
|
10908
|
+
pcb_cutout_id: string;
|
|
10750
10909
|
subcircuit_id?: string | undefined;
|
|
10751
10910
|
pcb_group_id?: string | undefined;
|
|
10752
10911
|
}, {
|
|
@@ -11287,6 +11446,24 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11287
11446
|
type: "schematic_error";
|
|
11288
11447
|
error_type: "schematic_port_not_found";
|
|
11289
11448
|
schematic_error_id: string;
|
|
11449
|
+
}>, z.ZodObject<{
|
|
11450
|
+
type: z.ZodLiteral<"schematic_layout_error">;
|
|
11451
|
+
schematic_layout_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
11452
|
+
message: z.ZodString;
|
|
11453
|
+
source_group_id: z.ZodString;
|
|
11454
|
+
schematic_group_id: z.ZodString;
|
|
11455
|
+
}, "strip", z.ZodTypeAny, {
|
|
11456
|
+
message: string;
|
|
11457
|
+
type: "schematic_layout_error";
|
|
11458
|
+
source_group_id: string;
|
|
11459
|
+
schematic_group_id: string;
|
|
11460
|
+
schematic_layout_error_id: string;
|
|
11461
|
+
}, {
|
|
11462
|
+
message: string;
|
|
11463
|
+
type: "schematic_layout_error";
|
|
11464
|
+
source_group_id: string;
|
|
11465
|
+
schematic_group_id: string;
|
|
11466
|
+
schematic_layout_error_id?: string | undefined;
|
|
11290
11467
|
}>, z.ZodObject<{
|
|
11291
11468
|
type: z.ZodLiteral<"schematic_net_label">;
|
|
11292
11469
|
schematic_net_label_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -14315,6 +14492,64 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14315
14492
|
port_hints?: string[] | undefined;
|
|
14316
14493
|
pcb_port_id?: string | undefined;
|
|
14317
14494
|
pcb_smtpad_id?: string | undefined;
|
|
14495
|
+
}>, z.ZodObject<{
|
|
14496
|
+
type: z.ZodLiteral<"pcb_smtpad">;
|
|
14497
|
+
shape: z.ZodLiteral<"polygon">;
|
|
14498
|
+
pcb_smtpad_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14499
|
+
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
14500
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
14501
|
+
points: z.ZodArray<z.ZodObject<{
|
|
14502
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
14503
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
14504
|
+
}, "strip", z.ZodTypeAny, {
|
|
14505
|
+
x: number;
|
|
14506
|
+
y: number;
|
|
14507
|
+
}, {
|
|
14508
|
+
x: string | number;
|
|
14509
|
+
y: string | number;
|
|
14510
|
+
}>, "many">;
|
|
14511
|
+
layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
14512
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
14513
|
+
}, "strip", z.ZodTypeAny, {
|
|
14514
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14515
|
+
}, {
|
|
14516
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14517
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
14518
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14519
|
+
}>;
|
|
14520
|
+
port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
14521
|
+
pcb_component_id: z.ZodOptional<z.ZodString>;
|
|
14522
|
+
pcb_port_id: z.ZodOptional<z.ZodString>;
|
|
14523
|
+
}, "strip", z.ZodTypeAny, {
|
|
14524
|
+
type: "pcb_smtpad";
|
|
14525
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14526
|
+
shape: "polygon";
|
|
14527
|
+
pcb_smtpad_id: string;
|
|
14528
|
+
points: {
|
|
14529
|
+
x: number;
|
|
14530
|
+
y: number;
|
|
14531
|
+
}[];
|
|
14532
|
+
pcb_component_id?: string | undefined;
|
|
14533
|
+
subcircuit_id?: string | undefined;
|
|
14534
|
+
pcb_group_id?: string | undefined;
|
|
14535
|
+
port_hints?: string[] | undefined;
|
|
14536
|
+
pcb_port_id?: string | undefined;
|
|
14537
|
+
}, {
|
|
14538
|
+
type: "pcb_smtpad";
|
|
14539
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
14540
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14541
|
+
};
|
|
14542
|
+
shape: "polygon";
|
|
14543
|
+
points: {
|
|
14544
|
+
x: string | number;
|
|
14545
|
+
y: string | number;
|
|
14546
|
+
}[];
|
|
14547
|
+
pcb_component_id?: string | undefined;
|
|
14548
|
+
subcircuit_id?: string | undefined;
|
|
14549
|
+
pcb_group_id?: string | undefined;
|
|
14550
|
+
port_hints?: string[] | undefined;
|
|
14551
|
+
pcb_port_id?: string | undefined;
|
|
14552
|
+
pcb_smtpad_id?: string | undefined;
|
|
14318
14553
|
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
14319
14554
|
type: z.ZodLiteral<"pcb_solder_paste">;
|
|
14320
14555
|
shape: z.ZodLiteral<"circle">;
|
|
@@ -15338,11 +15573,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15338
15573
|
}, "strip", z.ZodTypeAny, {
|
|
15339
15574
|
type: "pcb_cutout";
|
|
15340
15575
|
shape: "polygon";
|
|
15341
|
-
pcb_cutout_id: string;
|
|
15342
15576
|
points: {
|
|
15343
15577
|
x: number;
|
|
15344
15578
|
y: number;
|
|
15345
15579
|
}[];
|
|
15580
|
+
pcb_cutout_id: string;
|
|
15346
15581
|
subcircuit_id?: string | undefined;
|
|
15347
15582
|
pcb_group_id?: string | undefined;
|
|
15348
15583
|
}, {
|
|
@@ -15883,6 +16118,24 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15883
16118
|
type: "schematic_error";
|
|
15884
16119
|
error_type: "schematic_port_not_found";
|
|
15885
16120
|
schematic_error_id: string;
|
|
16121
|
+
}>, z.ZodObject<{
|
|
16122
|
+
type: z.ZodLiteral<"schematic_layout_error">;
|
|
16123
|
+
schematic_layout_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
16124
|
+
message: z.ZodString;
|
|
16125
|
+
source_group_id: z.ZodString;
|
|
16126
|
+
schematic_group_id: z.ZodString;
|
|
16127
|
+
}, "strip", z.ZodTypeAny, {
|
|
16128
|
+
message: string;
|
|
16129
|
+
type: "schematic_layout_error";
|
|
16130
|
+
source_group_id: string;
|
|
16131
|
+
schematic_group_id: string;
|
|
16132
|
+
schematic_layout_error_id: string;
|
|
16133
|
+
}, {
|
|
16134
|
+
message: string;
|
|
16135
|
+
type: "schematic_layout_error";
|
|
16136
|
+
source_group_id: string;
|
|
16137
|
+
schematic_group_id: string;
|
|
16138
|
+
schematic_layout_error_id?: string | undefined;
|
|
15886
16139
|
}>, z.ZodObject<{
|
|
15887
16140
|
type: z.ZodLiteral<"schematic_net_label">;
|
|
15888
16141
|
schematic_net_label_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -16312,4 +16565,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
16312
16565
|
*/
|
|
16313
16566
|
type CircuitJson = AnyCircuitElement[];
|
|
16314
16567
|
|
|
16315
|
-
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InferredSchematicNetLabel, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type Size, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleLed, type SourceSimpleLedInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_autorouting_error, pcb_board, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_failed_to_create_component_error, source_group, source_led, source_missing_property_error, source_net, source_port, source_project_metadata, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_led, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };
|
|
16568
|
+
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InferredSchematicNetLabel, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLayoutError, type SchematicLayoutErrorInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type Size, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleLed, type SourceSimpleLedInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_autorouting_error, pcb_board, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_layout_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_failed_to_create_component_error, source_group, source_led, source_missing_property_error, source_net, source_port, source_project_metadata, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_led, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };
|