circuit-json 0.0.223 → 0.0.225
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 +23 -0
- package/dist/index.d.mts +209 -2
- package/dist/index.mjs +722 -701
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,6 +72,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
72
72
|
- [SourceSimpleTestPoint](#sourcesimpletestpoint)
|
|
73
73
|
- [SourceSimpleTransistor](#sourcesimpletransistor)
|
|
74
74
|
- [SourceTrace](#sourcetrace)
|
|
75
|
+
- [SourceTraceNotConnected](#sourcetracenotconnected)
|
|
75
76
|
- [PCB Elements](#pcb-elements)
|
|
76
77
|
- [PcbAutoroutingError](#pcbautoroutingerror)
|
|
77
78
|
- [PcbBoard](#pcbboard)
|
|
@@ -616,6 +617,27 @@ interface SourceTrace {
|
|
|
616
617
|
}
|
|
617
618
|
```
|
|
618
619
|
|
|
620
|
+
### SourceTraceNotConnected
|
|
621
|
+
|
|
622
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_trace_not_connected.ts)
|
|
623
|
+
|
|
624
|
+
Occurs when a source trace selector does not match any ports
|
|
625
|
+
|
|
626
|
+
```typescript
|
|
627
|
+
/** Occurs when a source trace selector does not match any ports */
|
|
628
|
+
interface SourceTraceNotConnected {
|
|
629
|
+
type: "source_trace_not_connected"
|
|
630
|
+
source_trace_not_connected_id: string
|
|
631
|
+
error_type: "source_trace_not_connected"
|
|
632
|
+
message: string
|
|
633
|
+
subcircuit_id?: string
|
|
634
|
+
source_group_id?: string
|
|
635
|
+
source_trace_id?: string
|
|
636
|
+
connected_source_port_ids?: string[]
|
|
637
|
+
selectors_not_found?: string[]
|
|
638
|
+
}
|
|
639
|
+
```
|
|
640
|
+
|
|
619
641
|
## PCB Elements
|
|
620
642
|
|
|
621
643
|
### PcbAutoroutingError
|
|
@@ -844,6 +866,7 @@ interface PcbGroup {
|
|
|
844
866
|
pcb_component_ids: string[]
|
|
845
867
|
name?: string
|
|
846
868
|
description?: string
|
|
869
|
+
layout_mode?: string
|
|
847
870
|
autorouter_configuration?: {
|
|
848
871
|
trace_clearance: Length
|
|
849
872
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -3735,6 +3735,7 @@ declare const pcb_group: z.ZodObject<{
|
|
|
3735
3735
|
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
3736
3736
|
name: z.ZodOptional<z.ZodString>;
|
|
3737
3737
|
description: z.ZodOptional<z.ZodString>;
|
|
3738
|
+
layout_mode: z.ZodOptional<z.ZodString>;
|
|
3738
3739
|
autorouter_configuration: z.ZodOptional<z.ZodObject<{
|
|
3739
3740
|
trace_clearance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
3740
3741
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3758,6 +3759,7 @@ declare const pcb_group: z.ZodObject<{
|
|
|
3758
3759
|
name?: string | undefined;
|
|
3759
3760
|
subcircuit_id?: string | undefined;
|
|
3760
3761
|
is_subcircuit?: boolean | undefined;
|
|
3762
|
+
layout_mode?: string | undefined;
|
|
3761
3763
|
autorouter_configuration?: {
|
|
3762
3764
|
trace_clearance: number;
|
|
3763
3765
|
} | undefined;
|
|
@@ -3777,6 +3779,7 @@ declare const pcb_group: z.ZodObject<{
|
|
|
3777
3779
|
subcircuit_id?: string | undefined;
|
|
3778
3780
|
pcb_group_id?: string | undefined;
|
|
3779
3781
|
is_subcircuit?: boolean | undefined;
|
|
3782
|
+
layout_mode?: string | undefined;
|
|
3780
3783
|
autorouter_configuration?: {
|
|
3781
3784
|
trace_clearance: string | number;
|
|
3782
3785
|
} | undefined;
|
|
@@ -3798,6 +3801,7 @@ interface PcbGroup {
|
|
|
3798
3801
|
pcb_component_ids: string[];
|
|
3799
3802
|
name?: string;
|
|
3800
3803
|
description?: string;
|
|
3804
|
+
layout_mode?: string;
|
|
3801
3805
|
autorouter_configuration?: {
|
|
3802
3806
|
trace_clearance: Length;
|
|
3803
3807
|
};
|
|
@@ -6903,6 +6907,53 @@ interface SourceFailedToCreateComponentError {
|
|
|
6903
6907
|
};
|
|
6904
6908
|
}
|
|
6905
6909
|
|
|
6910
|
+
declare const source_trace_not_connected: z.ZodObject<{
|
|
6911
|
+
type: z.ZodLiteral<"source_trace_not_connected">;
|
|
6912
|
+
source_trace_not_connected_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
6913
|
+
error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected">>;
|
|
6914
|
+
message: z.ZodString;
|
|
6915
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
6916
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
6917
|
+
source_trace_id: z.ZodOptional<z.ZodString>;
|
|
6918
|
+
connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6919
|
+
selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6920
|
+
}, "strip", z.ZodTypeAny, {
|
|
6921
|
+
message: string;
|
|
6922
|
+
type: "source_trace_not_connected";
|
|
6923
|
+
error_type: "source_trace_not_connected";
|
|
6924
|
+
source_trace_not_connected_id: string;
|
|
6925
|
+
subcircuit_id?: string | undefined;
|
|
6926
|
+
source_trace_id?: string | undefined;
|
|
6927
|
+
source_group_id?: string | undefined;
|
|
6928
|
+
connected_source_port_ids?: string[] | undefined;
|
|
6929
|
+
selectors_not_found?: string[] | undefined;
|
|
6930
|
+
}, {
|
|
6931
|
+
message: string;
|
|
6932
|
+
type: "source_trace_not_connected";
|
|
6933
|
+
subcircuit_id?: string | undefined;
|
|
6934
|
+
source_trace_id?: string | undefined;
|
|
6935
|
+
error_type?: "source_trace_not_connected" | undefined;
|
|
6936
|
+
source_group_id?: string | undefined;
|
|
6937
|
+
source_trace_not_connected_id?: string | undefined;
|
|
6938
|
+
connected_source_port_ids?: string[] | undefined;
|
|
6939
|
+
selectors_not_found?: string[] | undefined;
|
|
6940
|
+
}>;
|
|
6941
|
+
type SourceTraceNotConnectedInput = z.input<typeof source_trace_not_connected>;
|
|
6942
|
+
/**
|
|
6943
|
+
* Occurs when a source trace selector does not match any ports
|
|
6944
|
+
*/
|
|
6945
|
+
interface SourceTraceNotConnected {
|
|
6946
|
+
type: "source_trace_not_connected";
|
|
6947
|
+
source_trace_not_connected_id: string;
|
|
6948
|
+
error_type: "source_trace_not_connected";
|
|
6949
|
+
message: string;
|
|
6950
|
+
subcircuit_id?: string;
|
|
6951
|
+
source_group_id?: string;
|
|
6952
|
+
source_trace_id?: string;
|
|
6953
|
+
connected_source_port_ids?: string[];
|
|
6954
|
+
selectors_not_found?: string[];
|
|
6955
|
+
}
|
|
6956
|
+
|
|
6906
6957
|
declare const any_source_component: z.ZodUnion<[z.ZodObject<{
|
|
6907
6958
|
type: z.ZodLiteral<"source_component">;
|
|
6908
6959
|
source_component_id: z.ZodString;
|
|
@@ -7801,12 +7852,42 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
|
|
|
7801
7852
|
x?: number | undefined;
|
|
7802
7853
|
y?: number | undefined;
|
|
7803
7854
|
} | undefined;
|
|
7855
|
+
}>, z.ZodObject<{
|
|
7856
|
+
type: z.ZodLiteral<"source_trace_not_connected">;
|
|
7857
|
+
source_trace_not_connected_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7858
|
+
error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected">>;
|
|
7859
|
+
message: z.ZodString;
|
|
7860
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
7861
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
7862
|
+
source_trace_id: z.ZodOptional<z.ZodString>;
|
|
7863
|
+
connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7864
|
+
selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7865
|
+
}, "strip", z.ZodTypeAny, {
|
|
7866
|
+
message: string;
|
|
7867
|
+
type: "source_trace_not_connected";
|
|
7868
|
+
error_type: "source_trace_not_connected";
|
|
7869
|
+
source_trace_not_connected_id: string;
|
|
7870
|
+
subcircuit_id?: string | undefined;
|
|
7871
|
+
source_trace_id?: string | undefined;
|
|
7872
|
+
source_group_id?: string | undefined;
|
|
7873
|
+
connected_source_port_ids?: string[] | undefined;
|
|
7874
|
+
selectors_not_found?: string[] | undefined;
|
|
7875
|
+
}, {
|
|
7876
|
+
message: string;
|
|
7877
|
+
type: "source_trace_not_connected";
|
|
7878
|
+
subcircuit_id?: string | undefined;
|
|
7879
|
+
source_trace_id?: string | undefined;
|
|
7880
|
+
error_type?: "source_trace_not_connected" | undefined;
|
|
7881
|
+
source_group_id?: string | undefined;
|
|
7882
|
+
source_trace_not_connected_id?: string | undefined;
|
|
7883
|
+
connected_source_port_ids?: string[] | undefined;
|
|
7884
|
+
selectors_not_found?: string[] | undefined;
|
|
7804
7885
|
}>]>;
|
|
7805
7886
|
/**
|
|
7806
7887
|
* Deprecated: use `AnySourceElement` instead
|
|
7807
7888
|
*/
|
|
7808
7889
|
type AnySourceComponent = z.infer<typeof any_source_component>;
|
|
7809
|
-
type AnySourceElement = SourceSimpleResistor | SourceSimpleCapacitor | SourceSimpleDiode | SourceSimpleLed | SourceSimpleGround | SourceSimpleChip | SourceSimplePowerSource | SourceSimpleBattery | SourceSimpleInductor | SourceSimplePushButton | SourceSimplePotentiometer | SourceSimpleCrystal | SourceSimplePinHeader | SourceSimpleResonator | SourceSimpleSwitch | SourceSimpleTransistor | SourceSimpleTestPoint | SourceSimpleMosfet | SourceSimpleFuse | SourceProjectMetadata | SourceMissingPropertyError | SourceFailedToCreateComponentError;
|
|
7890
|
+
type AnySourceElement = SourceSimpleResistor | SourceSimpleCapacitor | SourceSimpleDiode | SourceSimpleLed | SourceSimpleGround | SourceSimpleChip | SourceSimplePowerSource | SourceSimpleBattery | SourceSimpleInductor | SourceSimplePushButton | SourceSimplePotentiometer | SourceSimpleCrystal | SourceSimplePinHeader | SourceSimpleResonator | SourceSimpleSwitch | SourceSimpleTransistor | SourceSimpleTestPoint | SourceSimpleMosfet | SourceSimpleFuse | SourceProjectMetadata | SourceMissingPropertyError | SourceFailedToCreateComponentError | SourceTraceNotConnected;
|
|
7810
7891
|
|
|
7811
7892
|
declare const source_port: z.ZodObject<{
|
|
7812
7893
|
type: z.ZodLiteral<"source_port">;
|
|
@@ -9134,6 +9215,36 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9134
9215
|
x?: number | undefined;
|
|
9135
9216
|
y?: number | undefined;
|
|
9136
9217
|
} | undefined;
|
|
9218
|
+
}>, z.ZodObject<{
|
|
9219
|
+
type: z.ZodLiteral<"source_trace_not_connected">;
|
|
9220
|
+
source_trace_not_connected_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9221
|
+
error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected">>;
|
|
9222
|
+
message: z.ZodString;
|
|
9223
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
9224
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
9225
|
+
source_trace_id: z.ZodOptional<z.ZodString>;
|
|
9226
|
+
connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9227
|
+
selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9228
|
+
}, "strip", z.ZodTypeAny, {
|
|
9229
|
+
message: string;
|
|
9230
|
+
type: "source_trace_not_connected";
|
|
9231
|
+
error_type: "source_trace_not_connected";
|
|
9232
|
+
source_trace_not_connected_id: string;
|
|
9233
|
+
subcircuit_id?: string | undefined;
|
|
9234
|
+
source_trace_id?: string | undefined;
|
|
9235
|
+
source_group_id?: string | undefined;
|
|
9236
|
+
connected_source_port_ids?: string[] | undefined;
|
|
9237
|
+
selectors_not_found?: string[] | undefined;
|
|
9238
|
+
}, {
|
|
9239
|
+
message: string;
|
|
9240
|
+
type: "source_trace_not_connected";
|
|
9241
|
+
subcircuit_id?: string | undefined;
|
|
9242
|
+
source_trace_id?: string | undefined;
|
|
9243
|
+
error_type?: "source_trace_not_connected" | undefined;
|
|
9244
|
+
source_group_id?: string | undefined;
|
|
9245
|
+
source_trace_not_connected_id?: string | undefined;
|
|
9246
|
+
connected_source_port_ids?: string[] | undefined;
|
|
9247
|
+
selectors_not_found?: string[] | undefined;
|
|
9137
9248
|
}>]>, z.ZodObject<{
|
|
9138
9249
|
type: z.ZodLiteral<"source_net">;
|
|
9139
9250
|
source_net_id: z.ZodString;
|
|
@@ -9903,6 +10014,36 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9903
10014
|
software_used_string?: string | undefined;
|
|
9904
10015
|
project_url?: string | undefined;
|
|
9905
10016
|
created_at?: string | undefined;
|
|
10017
|
+
}>, z.ZodObject<{
|
|
10018
|
+
type: z.ZodLiteral<"source_trace_not_connected">;
|
|
10019
|
+
source_trace_not_connected_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
10020
|
+
error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected">>;
|
|
10021
|
+
message: z.ZodString;
|
|
10022
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
10023
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
10024
|
+
source_trace_id: z.ZodOptional<z.ZodString>;
|
|
10025
|
+
connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10026
|
+
selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10027
|
+
}, "strip", z.ZodTypeAny, {
|
|
10028
|
+
message: string;
|
|
10029
|
+
type: "source_trace_not_connected";
|
|
10030
|
+
error_type: "source_trace_not_connected";
|
|
10031
|
+
source_trace_not_connected_id: string;
|
|
10032
|
+
subcircuit_id?: string | undefined;
|
|
10033
|
+
source_trace_id?: string | undefined;
|
|
10034
|
+
source_group_id?: string | undefined;
|
|
10035
|
+
connected_source_port_ids?: string[] | undefined;
|
|
10036
|
+
selectors_not_found?: string[] | undefined;
|
|
10037
|
+
}, {
|
|
10038
|
+
message: string;
|
|
10039
|
+
type: "source_trace_not_connected";
|
|
10040
|
+
subcircuit_id?: string | undefined;
|
|
10041
|
+
source_trace_id?: string | undefined;
|
|
10042
|
+
error_type?: "source_trace_not_connected" | undefined;
|
|
10043
|
+
source_group_id?: string | undefined;
|
|
10044
|
+
source_trace_not_connected_id?: string | undefined;
|
|
10045
|
+
connected_source_port_ids?: string[] | undefined;
|
|
10046
|
+
selectors_not_found?: string[] | undefined;
|
|
9906
10047
|
}>, z.ZodObject<{
|
|
9907
10048
|
type: z.ZodLiteral<"pcb_component">;
|
|
9908
10049
|
pcb_component_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -11427,6 +11568,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11427
11568
|
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
11428
11569
|
name: z.ZodOptional<z.ZodString>;
|
|
11429
11570
|
description: z.ZodOptional<z.ZodString>;
|
|
11571
|
+
layout_mode: z.ZodOptional<z.ZodString>;
|
|
11430
11572
|
autorouter_configuration: z.ZodOptional<z.ZodObject<{
|
|
11431
11573
|
trace_clearance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
11432
11574
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11450,6 +11592,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11450
11592
|
name?: string | undefined;
|
|
11451
11593
|
subcircuit_id?: string | undefined;
|
|
11452
11594
|
is_subcircuit?: boolean | undefined;
|
|
11595
|
+
layout_mode?: string | undefined;
|
|
11453
11596
|
autorouter_configuration?: {
|
|
11454
11597
|
trace_clearance: number;
|
|
11455
11598
|
} | undefined;
|
|
@@ -11469,6 +11612,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11469
11612
|
subcircuit_id?: string | undefined;
|
|
11470
11613
|
pcb_group_id?: string | undefined;
|
|
11471
11614
|
is_subcircuit?: boolean | undefined;
|
|
11615
|
+
layout_mode?: string | undefined;
|
|
11472
11616
|
autorouter_configuration?: {
|
|
11473
11617
|
trace_clearance: string | number;
|
|
11474
11618
|
} | undefined;
|
|
@@ -14432,6 +14576,36 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14432
14576
|
x?: number | undefined;
|
|
14433
14577
|
y?: number | undefined;
|
|
14434
14578
|
} | undefined;
|
|
14579
|
+
}>, z.ZodObject<{
|
|
14580
|
+
type: z.ZodLiteral<"source_trace_not_connected">;
|
|
14581
|
+
source_trace_not_connected_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14582
|
+
error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected">>;
|
|
14583
|
+
message: z.ZodString;
|
|
14584
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
14585
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
14586
|
+
source_trace_id: z.ZodOptional<z.ZodString>;
|
|
14587
|
+
connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
14588
|
+
selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
14589
|
+
}, "strip", z.ZodTypeAny, {
|
|
14590
|
+
message: string;
|
|
14591
|
+
type: "source_trace_not_connected";
|
|
14592
|
+
error_type: "source_trace_not_connected";
|
|
14593
|
+
source_trace_not_connected_id: string;
|
|
14594
|
+
subcircuit_id?: string | undefined;
|
|
14595
|
+
source_trace_id?: string | undefined;
|
|
14596
|
+
source_group_id?: string | undefined;
|
|
14597
|
+
connected_source_port_ids?: string[] | undefined;
|
|
14598
|
+
selectors_not_found?: string[] | undefined;
|
|
14599
|
+
}, {
|
|
14600
|
+
message: string;
|
|
14601
|
+
type: "source_trace_not_connected";
|
|
14602
|
+
subcircuit_id?: string | undefined;
|
|
14603
|
+
source_trace_id?: string | undefined;
|
|
14604
|
+
error_type?: "source_trace_not_connected" | undefined;
|
|
14605
|
+
source_group_id?: string | undefined;
|
|
14606
|
+
source_trace_not_connected_id?: string | undefined;
|
|
14607
|
+
connected_source_port_ids?: string[] | undefined;
|
|
14608
|
+
selectors_not_found?: string[] | undefined;
|
|
14435
14609
|
}>]>, z.ZodObject<{
|
|
14436
14610
|
type: z.ZodLiteral<"source_net">;
|
|
14437
14611
|
source_net_id: z.ZodString;
|
|
@@ -15201,6 +15375,36 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15201
15375
|
software_used_string?: string | undefined;
|
|
15202
15376
|
project_url?: string | undefined;
|
|
15203
15377
|
created_at?: string | undefined;
|
|
15378
|
+
}>, z.ZodObject<{
|
|
15379
|
+
type: z.ZodLiteral<"source_trace_not_connected">;
|
|
15380
|
+
source_trace_not_connected_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
15381
|
+
error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected">>;
|
|
15382
|
+
message: z.ZodString;
|
|
15383
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
15384
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
15385
|
+
source_trace_id: z.ZodOptional<z.ZodString>;
|
|
15386
|
+
connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15387
|
+
selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15388
|
+
}, "strip", z.ZodTypeAny, {
|
|
15389
|
+
message: string;
|
|
15390
|
+
type: "source_trace_not_connected";
|
|
15391
|
+
error_type: "source_trace_not_connected";
|
|
15392
|
+
source_trace_not_connected_id: string;
|
|
15393
|
+
subcircuit_id?: string | undefined;
|
|
15394
|
+
source_trace_id?: string | undefined;
|
|
15395
|
+
source_group_id?: string | undefined;
|
|
15396
|
+
connected_source_port_ids?: string[] | undefined;
|
|
15397
|
+
selectors_not_found?: string[] | undefined;
|
|
15398
|
+
}, {
|
|
15399
|
+
message: string;
|
|
15400
|
+
type: "source_trace_not_connected";
|
|
15401
|
+
subcircuit_id?: string | undefined;
|
|
15402
|
+
source_trace_id?: string | undefined;
|
|
15403
|
+
error_type?: "source_trace_not_connected" | undefined;
|
|
15404
|
+
source_group_id?: string | undefined;
|
|
15405
|
+
source_trace_not_connected_id?: string | undefined;
|
|
15406
|
+
connected_source_port_ids?: string[] | undefined;
|
|
15407
|
+
selectors_not_found?: string[] | undefined;
|
|
15204
15408
|
}>, z.ZodObject<{
|
|
15205
15409
|
type: z.ZodLiteral<"pcb_component">;
|
|
15206
15410
|
pcb_component_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -16725,6 +16929,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16725
16929
|
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
16726
16930
|
name: z.ZodOptional<z.ZodString>;
|
|
16727
16931
|
description: z.ZodOptional<z.ZodString>;
|
|
16932
|
+
layout_mode: z.ZodOptional<z.ZodString>;
|
|
16728
16933
|
autorouter_configuration: z.ZodOptional<z.ZodObject<{
|
|
16729
16934
|
trace_clearance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
16730
16935
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -16748,6 +16953,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16748
16953
|
name?: string | undefined;
|
|
16749
16954
|
subcircuit_id?: string | undefined;
|
|
16750
16955
|
is_subcircuit?: boolean | undefined;
|
|
16956
|
+
layout_mode?: string | undefined;
|
|
16751
16957
|
autorouter_configuration?: {
|
|
16752
16958
|
trace_clearance: number;
|
|
16753
16959
|
} | undefined;
|
|
@@ -16767,6 +16973,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16767
16973
|
subcircuit_id?: string | undefined;
|
|
16768
16974
|
pcb_group_id?: string | undefined;
|
|
16769
16975
|
is_subcircuit?: boolean | undefined;
|
|
16976
|
+
layout_mode?: string | undefined;
|
|
16770
16977
|
autorouter_configuration?: {
|
|
16771
16978
|
trace_clearance: string | number;
|
|
16772
16979
|
} | undefined;
|
|
@@ -18788,4 +18995,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
18788
18995
|
*/
|
|
18789
18996
|
type CircuitJson = AnyCircuitElement[];
|
|
18790
18997
|
|
|
18791
|
-
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 NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, 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 PcbBreakoutPoint, type PcbBreakoutPointInput, 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 PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbHoleRotatedPillWithRectPad, 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 PcbSmtPadRotatedPill, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, 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 SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, 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 SourceSimpleTestPoint, type SourceSimpleTestPointInput, 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, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_footprint_overlap_error, pcb_ground_plane, pcb_ground_plane_region, 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_thermal_spoke, 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_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, source_missing_property_error, source_net, source_pcb_ground_plane, source_port, source_project_metadata, source_simple_battery, 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_test_point, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };
|
|
18998
|
+
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 NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, 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 PcbBreakoutPoint, type PcbBreakoutPointInput, 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 PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbHoleRotatedPillWithRectPad, 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 PcbSmtPadRotatedPill, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, 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 SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, 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 SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SourceTraceNotConnected, type SourceTraceNotConnectedInput, 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, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_footprint_overlap_error, pcb_ground_plane, pcb_ground_plane_region, 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_thermal_spoke, 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_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, source_missing_property_error, source_net, source_pcb_ground_plane, source_port, source_project_metadata, source_simple_battery, 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_test_point, source_simple_transistor, source_trace, source_trace_not_connected, supplier_name, time, visible_layer, voltage };
|