circuit-json 0.0.108 → 0.0.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -92,6 +92,44 @@ type Size = z.infer<typeof size>;
92
92
  */
93
93
  declare const getZodPrefixedIdWithDefault: (prefix: string) => z.ZodDefault<z.ZodOptional<z.ZodString>>;
94
94
 
95
+ declare const supplier_name: z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>;
96
+ type SupplierName = z.infer<typeof supplier_name>;
97
+
98
+ interface SourceComponentBase {
99
+ type: "source_component";
100
+ ftype?: string;
101
+ source_component_id: string;
102
+ name: string;
103
+ manufacturer_part_number?: string;
104
+ supplier_part_numbers?: Partial<Record<SupplierName, string[]>>;
105
+ display_value?: string;
106
+ }
107
+ declare const source_component_base: z.ZodObject<{
108
+ type: z.ZodLiteral<"source_component">;
109
+ ftype: z.ZodOptional<z.ZodString>;
110
+ source_component_id: z.ZodString;
111
+ name: z.ZodString;
112
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
113
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
114
+ display_value: z.ZodOptional<z.ZodString>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ type: "source_component";
117
+ source_component_id: string;
118
+ name: string;
119
+ ftype?: string | undefined;
120
+ manufacturer_part_number?: string | undefined;
121
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
122
+ display_value?: string | undefined;
123
+ }, {
124
+ type: "source_component";
125
+ source_component_id: string;
126
+ name: string;
127
+ ftype?: string | undefined;
128
+ manufacturer_part_number?: string | undefined;
129
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
130
+ display_value?: string | undefined;
131
+ }>;
132
+
95
133
  declare const source_simple_capacitor: z.ZodObject<z.objectUtil.extendShape<{
96
134
  type: z.ZodLiteral<"source_component">;
97
135
  ftype: z.ZodOptional<z.ZodString>;
@@ -122,8 +160,14 @@ declare const source_simple_capacitor: z.ZodObject<z.objectUtil.extendShape<{
122
160
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
123
161
  display_value?: string | undefined;
124
162
  }>;
125
- type SourceSimpleCapacitor = z.infer<typeof source_simple_capacitor>;
126
163
  type SourceSimpleCapacitorInput = z.input<typeof source_simple_capacitor>;
164
+ /**
165
+ * Defines a simple capacitor component
166
+ */
167
+ interface SourceSimpleCapacitor extends SourceComponentBase {
168
+ ftype: "simple_capacitor";
169
+ capacitance: number;
170
+ }
127
171
 
128
172
  declare const source_simple_resistor: z.ZodObject<z.objectUtil.extendShape<{
129
173
  type: z.ZodLiteral<"source_component">;
@@ -155,8 +199,14 @@ declare const source_simple_resistor: z.ZodObject<z.objectUtil.extendShape<{
155
199
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
156
200
  display_value?: string | undefined;
157
201
  }>;
158
- type SourceSimpleResistor = z.infer<typeof source_simple_resistor>;
159
202
  type SourceSimpleResistorInput = z.input<typeof source_simple_resistor>;
203
+ /**
204
+ * Defines a simple resistor component
205
+ */
206
+ interface SourceSimpleResistor extends SourceComponentBase {
207
+ ftype: "simple_resistor";
208
+ resistance: number;
209
+ }
160
210
 
161
211
  declare const source_simple_diode: z.ZodObject<z.objectUtil.extendShape<{
162
212
  type: z.ZodLiteral<"source_component">;
@@ -185,8 +235,13 @@ declare const source_simple_diode: z.ZodObject<z.objectUtil.extendShape<{
185
235
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
186
236
  display_value?: string | undefined;
187
237
  }>;
188
- type SourceSimpleDiode = z.infer<typeof source_simple_diode>;
189
238
  type SourceSimpleDiodeInput = z.input<typeof source_simple_diode>;
239
+ /**
240
+ * Defines a simple diode component
241
+ */
242
+ interface SourceSimpleDiode extends SourceComponentBase {
243
+ ftype: "simple_diode";
244
+ }
190
245
 
191
246
  declare const source_simple_ground: z.ZodObject<z.objectUtil.extendShape<{
192
247
  type: z.ZodLiteral<"source_component">;
@@ -215,8 +270,13 @@ declare const source_simple_ground: z.ZodObject<z.objectUtil.extendShape<{
215
270
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
216
271
  display_value?: string | undefined;
217
272
  }>;
218
- type SourceSimpleGround = z.infer<typeof source_simple_ground>;
219
273
  type SourceSimpleGroundInput = z.input<typeof source_simple_ground>;
274
+ /**
275
+ * Defines a simple ground component
276
+ */
277
+ interface SourceSimpleGround extends SourceComponentBase {
278
+ ftype: "simple_ground";
279
+ }
220
280
 
221
281
  /**
222
282
  * @deprecated Use source_simple_chip instead. This will be removed in a future version.
@@ -278,8 +338,13 @@ declare const source_simple_chip: z.ZodObject<z.objectUtil.extendShape<{
278
338
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
279
339
  display_value?: string | undefined;
280
340
  }>;
281
- type SourceSimpleChip = z.infer<typeof source_simple_chip>;
282
341
  type SourceSimpleChipInput = z.input<typeof source_simple_chip>;
342
+ /**
343
+ * Defines a simple integrated circuit component
344
+ */
345
+ interface SourceSimpleChip extends SourceComponentBase {
346
+ ftype: "simple_chip";
347
+ }
283
348
 
284
349
  declare const source_led: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
285
350
  type: z.ZodLiteral<"source_component">;
@@ -310,8 +375,13 @@ declare const source_led: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
310
375
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
311
376
  display_value?: string | undefined;
312
377
  }>;
313
- type SourceLed = z.infer<typeof source_led>;
314
378
  type SourceLedInput = z.input<typeof source_led>;
379
+ /**
380
+ * Defines an LED component that extends the simple diode
381
+ */
382
+ interface SourceLed extends SourceComponentBase {
383
+ ftype: "led";
384
+ }
315
385
 
316
386
  declare const source_simple_power_source: z.ZodObject<z.objectUtil.extendShape<{
317
387
  type: z.ZodLiteral<"source_component">;
@@ -343,8 +413,14 @@ declare const source_simple_power_source: z.ZodObject<z.objectUtil.extendShape<{
343
413
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
344
414
  display_value?: string | undefined;
345
415
  }>;
346
- type SourceSimplePowerSource = z.infer<typeof source_simple_power_source>;
347
416
  type SourceSimplePowerSourceInput = z.input<typeof source_simple_power_source>;
417
+ /**
418
+ * Defines a simple power source component
419
+ */
420
+ interface SourceSimplePowerSource extends SourceComponentBase {
421
+ ftype: "simple_power_source";
422
+ voltage: number;
423
+ }
348
424
 
349
425
  declare const any_source_component: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
350
426
  type: z.ZodLiteral<"source_component">;
@@ -767,7 +843,18 @@ declare const source_port: z.ZodObject<{
767
843
  pin_number?: number | undefined;
768
844
  port_hints?: string[] | undefined;
769
845
  }>;
770
- type SourcePort = z.infer<typeof source_port>;
846
+ type SourcePortInput = z.input<typeof source_port>;
847
+ /**
848
+ * Defines a source port that can be connected to other components
849
+ */
850
+ interface SourcePort {
851
+ type: "source_port";
852
+ pin_number?: number;
853
+ port_hints?: string[];
854
+ name: string;
855
+ source_port_id: string;
856
+ source_component_id: string;
857
+ }
771
858
 
772
859
  interface SourceTrace {
773
860
  type: "source_trace";
@@ -796,44 +883,6 @@ declare const source_trace: z.ZodObject<{
796
883
  subcircuit_connectivity_map_key?: string | undefined;
797
884
  }>;
798
885
 
799
- declare const supplier_name: z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>;
800
- type SupplierName = z.infer<typeof supplier_name>;
801
-
802
- interface SourceComponentBase {
803
- type: "source_component";
804
- ftype?: string;
805
- source_component_id: string;
806
- name: string;
807
- manufacturer_part_number?: string;
808
- supplier_part_numbers?: Partial<Record<SupplierName, string[]>>;
809
- display_value?: string;
810
- }
811
- declare const source_component_base: z.ZodObject<{
812
- type: z.ZodLiteral<"source_component">;
813
- ftype: z.ZodOptional<z.ZodString>;
814
- source_component_id: z.ZodString;
815
- name: z.ZodString;
816
- manufacturer_part_number: z.ZodOptional<z.ZodString>;
817
- supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
818
- display_value: z.ZodOptional<z.ZodString>;
819
- }, "strip", z.ZodTypeAny, {
820
- type: "source_component";
821
- source_component_id: string;
822
- name: string;
823
- ftype?: string | undefined;
824
- manufacturer_part_number?: string | undefined;
825
- supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
826
- display_value?: string | undefined;
827
- }, {
828
- type: "source_component";
829
- source_component_id: string;
830
- name: string;
831
- ftype?: string | undefined;
832
- manufacturer_part_number?: string | undefined;
833
- supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
834
- display_value?: string | undefined;
835
- }>;
836
-
837
886
  declare const source_group: z.ZodObject<{
838
887
  type: z.ZodLiteral<"source_group">;
839
888
  source_group_id: z.ZodString;
@@ -914,8 +963,14 @@ declare const source_simple_battery: z.ZodObject<z.objectUtil.extendShape<{
914
963
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
915
964
  display_value?: string | undefined;
916
965
  }>;
917
- type SourceSimpleBattery = z.infer<typeof source_simple_battery>;
918
966
  type SourceSimpleBatteryInput = z.input<typeof source_simple_battery>;
967
+ /**
968
+ * Defines a simple battery component
969
+ */
970
+ interface SourceSimpleBattery extends SourceComponentBase {
971
+ ftype: "simple_battery";
972
+ capacity: number;
973
+ }
919
974
 
920
975
  declare const source_simple_inductor: z.ZodObject<z.objectUtil.extendShape<{
921
976
  type: z.ZodLiteral<"source_component">;
@@ -947,10 +1002,19 @@ declare const source_simple_inductor: z.ZodObject<z.objectUtil.extendShape<{
947
1002
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
948
1003
  display_value?: string | undefined;
949
1004
  }>;
950
- type SourceSimpleInductor = z.infer<typeof source_simple_inductor>;
951
1005
  type SourceSimpleInductorInput = z.input<typeof source_simple_inductor>;
1006
+ /**
1007
+ * Defines a simple inductor component
1008
+ */
1009
+ interface SourceSimpleInductor extends SourceComponentBase {
1010
+ ftype: "simple_inductor";
1011
+ inductance: number;
1012
+ }
952
1013
 
953
1014
  declare const source_simple_push_button: z.ZodObject<z.objectUtil.extendShape<{
1015
+ /**
1016
+ * Defines a simple push button component
1017
+ */
954
1018
  type: z.ZodLiteral<"source_component">;
955
1019
  ftype: z.ZodOptional<z.ZodString>;
956
1020
  source_component_id: z.ZodString;
@@ -977,8 +1041,13 @@ declare const source_simple_push_button: z.ZodObject<z.objectUtil.extendShape<{
977
1041
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
978
1042
  display_value?: string | undefined;
979
1043
  }>;
980
- type SourceSimplePushbutton = z.infer<typeof source_simple_push_button>;
981
- type SourceSimplePushbuttonInput = z.input<typeof source_simple_push_button>;
1044
+ type SourceSimplePushButtonInput = z.input<typeof source_simple_push_button>;
1045
+ /**
1046
+ * Defines a simple push button component
1047
+ */
1048
+ interface SourceSimplePushButton extends SourceComponentBase {
1049
+ ftype: "simple_push_button";
1050
+ }
982
1051
 
983
1052
  declare const source_simple_potentiometer: z.ZodObject<z.objectUtil.extendShape<{
984
1053
  type: z.ZodLiteral<"source_component">;
@@ -1017,6 +1086,9 @@ declare const source_simple_crystal: z.ZodObject<z.objectUtil.extendShape<{
1017
1086
  type: z.ZodLiteral<"source_component">;
1018
1087
  ftype: z.ZodOptional<z.ZodString>;
1019
1088
  source_component_id: z.ZodString;
1089
+ /**
1090
+ * Defines a simple crystal oscillator component
1091
+ */
1020
1092
  name: z.ZodString;
1021
1093
  manufacturer_part_number: z.ZodOptional<z.ZodString>;
1022
1094
  supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
@@ -1046,8 +1118,15 @@ declare const source_simple_crystal: z.ZodObject<z.objectUtil.extendShape<{
1046
1118
  display_value?: string | undefined;
1047
1119
  load_capacitance?: number | undefined;
1048
1120
  }>;
1049
- type SourceSimpleCrystal = z.infer<typeof source_simple_crystal>;
1050
1121
  type SourceSimpleCrystalInput = z.input<typeof source_simple_crystal>;
1122
+ /**
1123
+ * Defines a simple crystal oscillator component
1124
+ */
1125
+ interface SourceSimpleCrystal extends SourceComponentBase {
1126
+ ftype: "simple_crystal";
1127
+ frequency: number;
1128
+ load_capacitance?: number;
1129
+ }
1051
1130
 
1052
1131
  declare const source_simple_pin_header: z.ZodObject<z.objectUtil.extendShape<{
1053
1132
  type: z.ZodLiteral<"source_component">;
@@ -1085,6 +1164,14 @@ declare const source_simple_pin_header: z.ZodObject<z.objectUtil.extendShape<{
1085
1164
  type SourceSimplePinHeader = z.infer<typeof source_simple_pin_header>;
1086
1165
  type SourceSimplePinHeaderInput = z.input<typeof source_simple_pin_header>;
1087
1166
 
1167
+ interface SchematicBox {
1168
+ type: "schematic_box";
1169
+ schematic_component_id: string;
1170
+ width: number;
1171
+ height: number;
1172
+ x: number;
1173
+ y: number;
1174
+ }
1088
1175
  declare const schematic_box: z.ZodObject<{
1089
1176
  type: z.ZodLiteral<"schematic_box">;
1090
1177
  schematic_component_id: z.ZodString;
@@ -1108,8 +1195,14 @@ declare const schematic_box: z.ZodObject<{
1108
1195
  schematic_component_id: string;
1109
1196
  }>;
1110
1197
  type SchematicBoxInput = z.input<typeof schematic_box>;
1111
- type SchematicBox = z.infer<typeof schematic_box>;
1112
1198
 
1199
+ interface SchematicPath {
1200
+ type: "schematic_path";
1201
+ schematic_component_id: string;
1202
+ fill_color?: "red" | "blue";
1203
+ is_filled?: boolean;
1204
+ points: Point[];
1205
+ }
1113
1206
  declare const schematic_path: z.ZodObject<{
1114
1207
  type: z.ZodLiteral<"schematic_path">;
1115
1208
  schematic_component_id: z.ZodString;
@@ -1145,7 +1238,6 @@ declare const schematic_path: z.ZodObject<{
1145
1238
  is_filled?: boolean | undefined;
1146
1239
  }>;
1147
1240
  type SchematicPathInput = z.input<typeof schematic_path>;
1148
- type SchematicPath = z.infer<typeof schematic_path>;
1149
1241
 
1150
1242
  declare const schematic_pin_styles: z.ZodRecord<z.ZodString, z.ZodObject<{
1151
1243
  left_margin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -1625,6 +1717,19 @@ declare const schematic_component: z.ZodObject<{
1625
1717
  }>;
1626
1718
  type SchematicComponentInput = z.input<typeof schematic_component>;
1627
1719
 
1720
+ /**
1721
+ * Defines a line on the schematic, this can be used for adding arbitrary lines
1722
+ * to a schematic, but don't use it for drawing traces, schematic boxes or where
1723
+ * other schematic elements are more appropriate.
1724
+ */
1725
+ interface SchematicLine {
1726
+ type: "schematic_line";
1727
+ schematic_component_id: string;
1728
+ x1: number;
1729
+ x2: number;
1730
+ y1: number;
1731
+ y2: number;
1732
+ }
1628
1733
  declare const schematic_line: z.ZodObject<{
1629
1734
  type: z.ZodLiteral<"schematic_line">;
1630
1735
  schematic_component_id: z.ZodString;
@@ -1648,7 +1753,6 @@ declare const schematic_line: z.ZodObject<{
1648
1753
  y2: string | number;
1649
1754
  }>;
1650
1755
  type SchematicLineInput = z.input<typeof schematic_line>;
1651
- type SchematicLine = z.infer<typeof schematic_line>;
1652
1756
 
1653
1757
  interface SchematicTraceEdge {
1654
1758
  from: {
@@ -1781,6 +1885,19 @@ declare const schematic_trace: z.ZodObject<{
1781
1885
  }>;
1782
1886
  type SchematicTraceInput = z.input<typeof schematic_trace>;
1783
1887
 
1888
+ interface SchematicText {
1889
+ type: "schematic_text";
1890
+ schematic_component_id: string;
1891
+ schematic_text_id: string;
1892
+ text: string;
1893
+ position: {
1894
+ x: number;
1895
+ y: number;
1896
+ };
1897
+ rotation: number;
1898
+ anchor: "center" | "left" | "right" | "top" | "bottom";
1899
+ color: string;
1900
+ }
1784
1901
  declare const schematic_text: z.ZodObject<{
1785
1902
  type: z.ZodLiteral<"schematic_text">;
1786
1903
  schematic_component_id: z.ZodString;
@@ -1825,7 +1942,6 @@ declare const schematic_text: z.ZodObject<{
1825
1942
  color?: string | undefined;
1826
1943
  }>;
1827
1944
  type SchematicTextInput = z.input<typeof schematic_text>;
1828
- type SchematicText = z.infer<typeof schematic_text>;
1829
1945
 
1830
1946
  interface SchematicPort {
1831
1947
  type: "schematic_port";
@@ -1952,9 +2068,15 @@ declare const schematic_net_label: z.ZodObject<{
1952
2068
  type SchematicNetLabelInput = z.input<typeof schematic_net_label>;
1953
2069
  type SchematicNetLabel = z.infer<typeof schematic_net_label>;
1954
2070
 
2071
+ interface SchematicError {
2072
+ type: "schematic_error";
2073
+ schematic_error_id: string;
2074
+ error_type: "schematic_port_not_found";
2075
+ message: string;
2076
+ }
1955
2077
  declare const schematic_error: z.ZodObject<{
1956
- schematic_error_id: z.ZodString;
1957
2078
  type: z.ZodLiteral<"schematic_error">;
2079
+ schematic_error_id: z.ZodString;
1958
2080
  error_type: z.ZodLiteral<"schematic_port_not_found">;
1959
2081
  message: z.ZodString;
1960
2082
  }, "strip", z.ZodTypeAny, {
@@ -1969,7 +2091,6 @@ declare const schematic_error: z.ZodObject<{
1969
2091
  error_type: "schematic_port_not_found";
1970
2092
  }>;
1971
2093
  type SchematicErrorInput = z.input<typeof schematic_error>;
1972
- type SchematicError = z.infer<typeof schematic_error>;
1973
2094
 
1974
2095
  declare const schematic_debug_object_base: z.ZodObject<{
1975
2096
  type: z.ZodLiteral<"schematic_debug_object">;
@@ -2266,6 +2387,49 @@ interface SchematicDebugPoint {
2266
2387
  type SchematicDebugObject = SchematicDebugRect | SchematicDebugLine | SchematicDebugPoint;
2267
2388
  type SchematicDebugObjectInput = z.input<typeof schematic_debug_object>;
2268
2389
 
2390
+ interface SchematicVoltageProbe {
2391
+ type: "schematic_voltage_probe";
2392
+ schematic_voltage_probe_id: string;
2393
+ position: Point;
2394
+ schematic_trace_id: string;
2395
+ voltage?: number;
2396
+ }
2397
+ declare const schematic_voltage_probe: z.ZodObject<{
2398
+ type: z.ZodLiteral<"schematic_voltage_probe">;
2399
+ schematic_voltage_probe_id: z.ZodString;
2400
+ position: z.ZodObject<{
2401
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
2402
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
2403
+ }, "strip", z.ZodTypeAny, {
2404
+ x: number;
2405
+ y: number;
2406
+ }, {
2407
+ x: string | number;
2408
+ y: string | number;
2409
+ }>;
2410
+ schematic_trace_id: z.ZodString;
2411
+ voltage: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
2412
+ }, "strip", z.ZodTypeAny, {
2413
+ type: "schematic_voltage_probe";
2414
+ schematic_trace_id: string;
2415
+ position: {
2416
+ x: number;
2417
+ y: number;
2418
+ };
2419
+ schematic_voltage_probe_id: string;
2420
+ voltage?: number | undefined;
2421
+ }, {
2422
+ type: "schematic_voltage_probe";
2423
+ schematic_trace_id: string;
2424
+ position: {
2425
+ x: string | number;
2426
+ y: string | number;
2427
+ };
2428
+ schematic_voltage_probe_id: string;
2429
+ voltage?: string | number | undefined;
2430
+ }>;
2431
+ type SchematicVoltageProbeInput = z.input<typeof schematic_voltage_probe>;
2432
+
2269
2433
  declare const all_layers: readonly ["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"];
2270
2434
  declare const layer_string: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
2271
2435
  declare const layer_ref: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
@@ -7203,8 +7367,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
7203
7367
  fill_color?: "red" | "blue" | undefined;
7204
7368
  is_filled?: boolean | undefined;
7205
7369
  }>, z.ZodObject<{
7206
- schematic_error_id: z.ZodString;
7207
7370
  type: z.ZodLiteral<"schematic_error">;
7371
+ schematic_error_id: z.ZodString;
7208
7372
  error_type: z.ZodLiteral<"schematic_port_not_found">;
7209
7373
  message: z.ZodString;
7210
7374
  }, "strip", z.ZodTypeAny, {
@@ -7401,6 +7565,39 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
7401
7565
  shape: "point";
7402
7566
  label?: string | undefined;
7403
7567
  }>]>, z.ZodObject<{
7568
+ type: z.ZodLiteral<"schematic_voltage_probe">;
7569
+ schematic_voltage_probe_id: z.ZodString;
7570
+ position: z.ZodObject<{
7571
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
7572
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
7573
+ }, "strip", z.ZodTypeAny, {
7574
+ x: number;
7575
+ y: number;
7576
+ }, {
7577
+ x: string | number;
7578
+ y: string | number;
7579
+ }>;
7580
+ schematic_trace_id: z.ZodString;
7581
+ voltage: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
7582
+ }, "strip", z.ZodTypeAny, {
7583
+ type: "schematic_voltage_probe";
7584
+ schematic_trace_id: string;
7585
+ position: {
7586
+ x: number;
7587
+ y: number;
7588
+ };
7589
+ schematic_voltage_probe_id: string;
7590
+ voltage?: number | undefined;
7591
+ }, {
7592
+ type: "schematic_voltage_probe";
7593
+ schematic_trace_id: string;
7594
+ position: {
7595
+ x: string | number;
7596
+ y: string | number;
7597
+ };
7598
+ schematic_voltage_probe_id: string;
7599
+ voltage?: string | number | undefined;
7600
+ }>, z.ZodObject<{
7404
7601
  type: z.ZodLiteral<"cad_component">;
7405
7602
  cad_component_id: z.ZodString;
7406
7603
  pcb_component_id: z.ZodString;
@@ -10146,8 +10343,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
10146
10343
  fill_color?: "red" | "blue" | undefined;
10147
10344
  is_filled?: boolean | undefined;
10148
10345
  }>, z.ZodObject<{
10149
- schematic_error_id: z.ZodString;
10150
10346
  type: z.ZodLiteral<"schematic_error">;
10347
+ schematic_error_id: z.ZodString;
10151
10348
  error_type: z.ZodLiteral<"schematic_port_not_found">;
10152
10349
  message: z.ZodString;
10153
10350
  }, "strip", z.ZodTypeAny, {
@@ -10344,6 +10541,39 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
10344
10541
  shape: "point";
10345
10542
  label?: string | undefined;
10346
10543
  }>]>, z.ZodObject<{
10544
+ type: z.ZodLiteral<"schematic_voltage_probe">;
10545
+ schematic_voltage_probe_id: z.ZodString;
10546
+ position: z.ZodObject<{
10547
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
10548
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
10549
+ }, "strip", z.ZodTypeAny, {
10550
+ x: number;
10551
+ y: number;
10552
+ }, {
10553
+ x: string | number;
10554
+ y: string | number;
10555
+ }>;
10556
+ schematic_trace_id: z.ZodString;
10557
+ voltage: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
10558
+ }, "strip", z.ZodTypeAny, {
10559
+ type: "schematic_voltage_probe";
10560
+ schematic_trace_id: string;
10561
+ position: {
10562
+ x: number;
10563
+ y: number;
10564
+ };
10565
+ schematic_voltage_probe_id: string;
10566
+ voltage?: number | undefined;
10567
+ }, {
10568
+ type: "schematic_voltage_probe";
10569
+ schematic_trace_id: string;
10570
+ position: {
10571
+ x: string | number;
10572
+ y: string | number;
10573
+ };
10574
+ schematic_voltage_probe_id: string;
10575
+ voltage?: string | number | undefined;
10576
+ }>, z.ZodObject<{
10347
10577
  type: z.ZodLiteral<"cad_component">;
10348
10578
  cad_component_id: z.ZodString;
10349
10579
  pcb_component_id: z.ZodString;
@@ -10467,4 +10697,4 @@ type AnySoupElement = AnyCircuitElement;
10467
10697
  */
10468
10698
  type AnySoupElementInput = AnyCircuitElementInput;
10469
10699
 
10470
- export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type Distance, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, type 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 PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleOval, type PcbHoleOvalInput, type 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 PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteRect, type PcbText, type PcbTextInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicLine, type SchematicLineInput, 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 Size, type SourceComponentBase, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceNet, type SourceNetInput, type SourcePort, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushbutton, type SourceSimplePushbuttonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_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_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_line, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, size, source_component_base, source_group, source_led, source_net, source_port, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_trace, supplier_name, time, visible_layer, voltage };
10700
+ export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type Distance, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, type 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 PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleOval, type PcbHoleOvalInput, type 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 PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteRect, type PcbText, type PcbTextInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicLine, type SchematicLineInput, 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 SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceNet, type SourceNetInput, type SourcePort, type SourcePortInput, 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 SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_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_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_line, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_group, source_led, source_net, source_port, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_trace, supplier_name, time, visible_layer, voltage };