circuit-json 0.0.121 → 0.0.123

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 CHANGED
@@ -56,6 +56,7 @@ and is the primary way that Circuit JSON is defined and maintained.
56
56
  - [SourceSimplePushButton](#sourcesimplepushbutton)
57
57
  - [SourceSimpleResistor](#sourcesimpleresistor)
58
58
  - [SourceSimpleResonator](#sourcesimpleresonator)
59
+ - [SourceSimpleTransistor](#sourcesimpletransistor)
59
60
  - [SourceTrace](#sourcetrace)
60
61
  - [PCB Elements](#pcb-elements)
61
62
  - [PcbBoard](#pcbboard)
@@ -329,6 +330,19 @@ interface SourceSimpleResonator extends SourceComponentBase {
329
330
  }
330
331
  ```
331
332
 
333
+ ### SourceSimpleTransistor
334
+
335
+ ```typescript
336
+ /** Defines a simple transistor component
337
+ * This is a three-pin semiconductor device (emitter, base, collector)
338
+ * Pin configuration is handled by the schematic port system */
339
+
340
+ interface SourceSimpleTransistor extends SourceComponentBase {
341
+ ftype: "simple_transistor"
342
+ transistor_type: "npn" | "pnp"
343
+ }
344
+ ```
345
+
332
346
  ### SourceTrace
333
347
 
334
348
  ```typescript
@@ -517,6 +531,23 @@ interface PcbPlatedHoleCircle {
517
531
  pcb_port_id?: string
518
532
  pcb_plated_hole_id: string
519
533
  }
534
+
535
+ interface PcbHoleCircularWithRectPad {
536
+ type: "pcb_plated_hole"
537
+ shape: "circular_hole_with_rect_pad"
538
+ hole_shape: "circle"
539
+ pad_shape: "rect"
540
+ hole_diameter: number
541
+ rect_pad_width: number
542
+ rect_pad_height: number
543
+ x: Distance
544
+ y: Distance
545
+ layers: LayerRef[]
546
+ port_hints?: string[]
547
+ pcb_component_id?: string
548
+ pcb_port_id?: string
549
+ pcb_plated_hole_id: string
550
+ }
520
551
  ```
521
552
 
522
553
  ### PcbPort
package/dist/index.d.mts CHANGED
@@ -853,6 +853,35 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
853
853
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
854
854
  display_value?: string | undefined;
855
855
  equivalent_series_resistance?: string | number | undefined;
856
+ }>, z.ZodObject<z.objectUtil.extendShape<{
857
+ type: z.ZodLiteral<"source_component">;
858
+ ftype: z.ZodOptional<z.ZodString>;
859
+ source_component_id: z.ZodString;
860
+ name: z.ZodString;
861
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
862
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
863
+ display_value: z.ZodOptional<z.ZodString>;
864
+ }, {
865
+ ftype: z.ZodLiteral<"simple_transistor">;
866
+ transistor_type: z.ZodEnum<["npn", "pnp"]>;
867
+ }>, "strip", z.ZodTypeAny, {
868
+ type: "source_component";
869
+ ftype: "simple_transistor";
870
+ source_component_id: string;
871
+ name: string;
872
+ transistor_type: "npn" | "pnp";
873
+ manufacturer_part_number?: string | undefined;
874
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
875
+ display_value?: string | undefined;
876
+ }, {
877
+ type: "source_component";
878
+ ftype: "simple_transistor";
879
+ source_component_id: string;
880
+ name: string;
881
+ transistor_type: "npn" | "pnp";
882
+ manufacturer_part_number?: string | undefined;
883
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
884
+ display_value?: string | undefined;
856
885
  }>]>;
857
886
  type AnySourceComponent = z.infer<typeof any_source_component>;
858
887
 
@@ -1240,6 +1269,47 @@ interface SourceSimpleResonator extends SourceComponentBase {
1240
1269
  frequency: number;
1241
1270
  }
1242
1271
 
1272
+ declare const source_simple_transistor: z.ZodObject<z.objectUtil.extendShape<{
1273
+ type: z.ZodLiteral<"source_component">;
1274
+ ftype: z.ZodOptional<z.ZodString>;
1275
+ source_component_id: z.ZodString;
1276
+ name: z.ZodString;
1277
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
1278
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
1279
+ display_value: z.ZodOptional<z.ZodString>;
1280
+ }, {
1281
+ ftype: z.ZodLiteral<"simple_transistor">;
1282
+ transistor_type: z.ZodEnum<["npn", "pnp"]>;
1283
+ }>, "strip", z.ZodTypeAny, {
1284
+ type: "source_component";
1285
+ ftype: "simple_transistor";
1286
+ source_component_id: string;
1287
+ name: string;
1288
+ transistor_type: "npn" | "pnp";
1289
+ manufacturer_part_number?: string | undefined;
1290
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
1291
+ display_value?: string | undefined;
1292
+ }, {
1293
+ type: "source_component";
1294
+ ftype: "simple_transistor";
1295
+ source_component_id: string;
1296
+ name: string;
1297
+ transistor_type: "npn" | "pnp";
1298
+ manufacturer_part_number?: string | undefined;
1299
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
1300
+ display_value?: string | undefined;
1301
+ }>;
1302
+ type SourceSimpleTransistorInput = z.input<typeof source_simple_transistor>;
1303
+ /**
1304
+ * Defines a simple transistor component
1305
+ * This is a three-pin semiconductor device (emitter, base, collector)
1306
+ * Pin configuration is handled by the schematic port system
1307
+ */
1308
+ interface SourceSimpleTransistor extends SourceComponentBase {
1309
+ ftype: "simple_transistor";
1310
+ transistor_type: "npn" | "pnp";
1311
+ }
1312
+
1243
1313
  interface SchematicBox {
1244
1314
  type: "schematic_box";
1245
1315
  schematic_component_id: string;
@@ -2893,6 +2963,22 @@ interface PcbPlatedHoleOval {
2893
2963
  pcb_port_id?: string;
2894
2964
  pcb_plated_hole_id: string;
2895
2965
  }
2966
+ interface PcbHoleCircularWithRectPad {
2967
+ type: "pcb_plated_hole";
2968
+ shape: "circular_hole_with_rect_pad";
2969
+ hole_shape: "circle";
2970
+ pad_shape: "rect";
2971
+ hole_diameter: number;
2972
+ rect_pad_width: number;
2973
+ rect_pad_height: number;
2974
+ x: Distance;
2975
+ y: Distance;
2976
+ layers: LayerRef[];
2977
+ port_hints?: string[];
2978
+ pcb_component_id?: string;
2979
+ pcb_port_id?: string;
2980
+ pcb_plated_hole_id: string;
2981
+ }
2896
2982
  declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
2897
2983
  type: z.ZodLiteral<"pcb_plated_hole">;
2898
2984
  shape: z.ZodLiteral<"circle">;
@@ -2991,8 +3077,63 @@ declare const pcb_plated_hole: z.ZodUnion<[z.ZodObject<{
2991
3077
  pcb_component_id?: string | undefined;
2992
3078
  pcb_port_id?: string | undefined;
2993
3079
  pcb_plated_hole_id?: string | undefined;
3080
+ }>, z.ZodObject<{
3081
+ type: z.ZodLiteral<"pcb_plated_hole">;
3082
+ shape: z.ZodLiteral<"circular_hole_with_rect_pad">;
3083
+ hole_shape: z.ZodLiteral<"circle">;
3084
+ pad_shape: z.ZodLiteral<"rect">;
3085
+ hole_diameter: z.ZodNumber;
3086
+ rect_pad_width: z.ZodNumber;
3087
+ rect_pad_height: z.ZodNumber;
3088
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
3089
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
3090
+ layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
3091
+ name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
3092
+ }, "strip", z.ZodTypeAny, {
3093
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3094
+ }, {
3095
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3096
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
3097
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3098
+ }>, "many">;
3099
+ port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3100
+ pcb_component_id: z.ZodOptional<z.ZodString>;
3101
+ pcb_port_id: z.ZodOptional<z.ZodString>;
3102
+ pcb_plated_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3103
+ }, "strip", z.ZodTypeAny, {
3104
+ x: number;
3105
+ y: number;
3106
+ type: "pcb_plated_hole";
3107
+ shape: "circular_hole_with_rect_pad";
3108
+ hole_shape: "circle";
3109
+ hole_diameter: number;
3110
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
3111
+ pcb_plated_hole_id: string;
3112
+ pad_shape: "rect";
3113
+ rect_pad_width: number;
3114
+ rect_pad_height: number;
3115
+ port_hints?: string[] | undefined;
3116
+ pcb_component_id?: string | undefined;
3117
+ pcb_port_id?: string | undefined;
3118
+ }, {
3119
+ x: string | number;
3120
+ y: string | number;
3121
+ type: "pcb_plated_hole";
3122
+ shape: "circular_hole_with_rect_pad";
3123
+ hole_shape: "circle";
3124
+ hole_diameter: number;
3125
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
3126
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
3127
+ })[];
3128
+ pad_shape: "rect";
3129
+ rect_pad_width: number;
3130
+ rect_pad_height: number;
3131
+ port_hints?: string[] | undefined;
3132
+ pcb_component_id?: string | undefined;
3133
+ pcb_port_id?: string | undefined;
3134
+ pcb_plated_hole_id?: string | undefined;
2994
3135
  }>]>;
2995
- type PcbPlatedHole = PcbPlatedHoleCircle | PcbPlatedHoleOval;
3136
+ type PcbPlatedHole = PcbPlatedHoleCircle | PcbPlatedHoleOval | PcbHoleCircularWithRectPad;
2996
3137
  /**
2997
3138
  * @deprecated use PcbPlatedHole
2998
3139
  */
@@ -5380,6 +5521,35 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
5380
5521
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
5381
5522
  display_value?: string | undefined;
5382
5523
  equivalent_series_resistance?: string | number | undefined;
5524
+ }>, z.ZodObject<z.objectUtil.extendShape<{
5525
+ type: z.ZodLiteral<"source_component">;
5526
+ ftype: z.ZodOptional<z.ZodString>;
5527
+ source_component_id: z.ZodString;
5528
+ name: z.ZodString;
5529
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
5530
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
5531
+ display_value: z.ZodOptional<z.ZodString>;
5532
+ }, {
5533
+ ftype: z.ZodLiteral<"simple_transistor">;
5534
+ transistor_type: z.ZodEnum<["npn", "pnp"]>;
5535
+ }>, "strip", z.ZodTypeAny, {
5536
+ type: "source_component";
5537
+ ftype: "simple_transistor";
5538
+ source_component_id: string;
5539
+ name: string;
5540
+ transistor_type: "npn" | "pnp";
5541
+ manufacturer_part_number?: string | undefined;
5542
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
5543
+ display_value?: string | undefined;
5544
+ }, {
5545
+ type: "source_component";
5546
+ ftype: "simple_transistor";
5547
+ source_component_id: string;
5548
+ name: string;
5549
+ transistor_type: "npn" | "pnp";
5550
+ manufacturer_part_number?: string | undefined;
5551
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
5552
+ display_value?: string | undefined;
5383
5553
  }>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5384
5554
  type: z.ZodLiteral<"source_component">;
5385
5555
  ftype: z.ZodOptional<z.ZodString>;
@@ -5748,6 +5918,35 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
5748
5918
  manufacturer_part_number: z.ZodOptional<z.ZodString>;
5749
5919
  supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
5750
5920
  display_value: z.ZodOptional<z.ZodString>;
5921
+ }, {
5922
+ ftype: z.ZodLiteral<"simple_transistor">;
5923
+ transistor_type: z.ZodEnum<["npn", "pnp"]>;
5924
+ }>, "strip", z.ZodTypeAny, {
5925
+ type: "source_component";
5926
+ ftype: "simple_transistor";
5927
+ source_component_id: string;
5928
+ name: string;
5929
+ transistor_type: "npn" | "pnp";
5930
+ manufacturer_part_number?: string | undefined;
5931
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
5932
+ display_value?: string | undefined;
5933
+ }, {
5934
+ type: "source_component";
5935
+ ftype: "simple_transistor";
5936
+ source_component_id: string;
5937
+ name: string;
5938
+ transistor_type: "npn" | "pnp";
5939
+ manufacturer_part_number?: string | undefined;
5940
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
5941
+ display_value?: string | undefined;
5942
+ }>, z.ZodObject<z.objectUtil.extendShape<{
5943
+ type: z.ZodLiteral<"source_component">;
5944
+ ftype: z.ZodOptional<z.ZodString>;
5945
+ source_component_id: z.ZodString;
5946
+ name: z.ZodString;
5947
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
5948
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
5949
+ display_value: z.ZodOptional<z.ZodString>;
5751
5950
  }, {
5752
5951
  ftype: z.ZodLiteral<"simple_potentiometer">;
5753
5952
  max_resistance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -6026,6 +6225,61 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
6026
6225
  pcb_component_id?: string | undefined;
6027
6226
  pcb_port_id?: string | undefined;
6028
6227
  pcb_plated_hole_id?: string | undefined;
6228
+ }>, z.ZodObject<{
6229
+ type: z.ZodLiteral<"pcb_plated_hole">;
6230
+ shape: z.ZodLiteral<"circular_hole_with_rect_pad">;
6231
+ hole_shape: z.ZodLiteral<"circle">;
6232
+ pad_shape: z.ZodLiteral<"rect">;
6233
+ hole_diameter: z.ZodNumber;
6234
+ rect_pad_width: z.ZodNumber;
6235
+ rect_pad_height: z.ZodNumber;
6236
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6237
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6238
+ layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
6239
+ name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
6240
+ }, "strip", z.ZodTypeAny, {
6241
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6242
+ }, {
6243
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6244
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
6245
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6246
+ }>, "many">;
6247
+ port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6248
+ pcb_component_id: z.ZodOptional<z.ZodString>;
6249
+ pcb_port_id: z.ZodOptional<z.ZodString>;
6250
+ pcb_plated_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
6251
+ }, "strip", z.ZodTypeAny, {
6252
+ x: number;
6253
+ y: number;
6254
+ type: "pcb_plated_hole";
6255
+ shape: "circular_hole_with_rect_pad";
6256
+ hole_shape: "circle";
6257
+ hole_diameter: number;
6258
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
6259
+ pcb_plated_hole_id: string;
6260
+ pad_shape: "rect";
6261
+ rect_pad_width: number;
6262
+ rect_pad_height: number;
6263
+ port_hints?: string[] | undefined;
6264
+ pcb_component_id?: string | undefined;
6265
+ pcb_port_id?: string | undefined;
6266
+ }, {
6267
+ x: string | number;
6268
+ y: string | number;
6269
+ type: "pcb_plated_hole";
6270
+ shape: "circular_hole_with_rect_pad";
6271
+ hole_shape: "circle";
6272
+ hole_diameter: number;
6273
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
6274
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6275
+ })[];
6276
+ pad_shape: "rect";
6277
+ rect_pad_width: number;
6278
+ rect_pad_height: number;
6279
+ port_hints?: string[] | undefined;
6280
+ pcb_component_id?: string | undefined;
6281
+ pcb_port_id?: string | undefined;
6282
+ pcb_plated_hole_id?: string | undefined;
6029
6283
  }>]>, z.ZodUnion<[z.ZodObject<{
6030
6284
  type: z.ZodLiteral<"pcb_keepout">;
6031
6285
  shape: z.ZodLiteral<"rect">;
@@ -8489,6 +8743,35 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
8489
8743
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
8490
8744
  display_value?: string | undefined;
8491
8745
  equivalent_series_resistance?: string | number | undefined;
8746
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8747
+ type: z.ZodLiteral<"source_component">;
8748
+ ftype: z.ZodOptional<z.ZodString>;
8749
+ source_component_id: z.ZodString;
8750
+ name: z.ZodString;
8751
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
8752
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
8753
+ display_value: z.ZodOptional<z.ZodString>;
8754
+ }, {
8755
+ ftype: z.ZodLiteral<"simple_transistor">;
8756
+ transistor_type: z.ZodEnum<["npn", "pnp"]>;
8757
+ }>, "strip", z.ZodTypeAny, {
8758
+ type: "source_component";
8759
+ ftype: "simple_transistor";
8760
+ source_component_id: string;
8761
+ name: string;
8762
+ transistor_type: "npn" | "pnp";
8763
+ manufacturer_part_number?: string | undefined;
8764
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
8765
+ display_value?: string | undefined;
8766
+ }, {
8767
+ type: "source_component";
8768
+ ftype: "simple_transistor";
8769
+ source_component_id: string;
8770
+ name: string;
8771
+ transistor_type: "npn" | "pnp";
8772
+ manufacturer_part_number?: string | undefined;
8773
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
8774
+ display_value?: string | undefined;
8492
8775
  }>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
8493
8776
  type: z.ZodLiteral<"source_component">;
8494
8777
  ftype: z.ZodOptional<z.ZodString>;
@@ -8857,6 +9140,35 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
8857
9140
  manufacturer_part_number: z.ZodOptional<z.ZodString>;
8858
9141
  supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
8859
9142
  display_value: z.ZodOptional<z.ZodString>;
9143
+ }, {
9144
+ ftype: z.ZodLiteral<"simple_transistor">;
9145
+ transistor_type: z.ZodEnum<["npn", "pnp"]>;
9146
+ }>, "strip", z.ZodTypeAny, {
9147
+ type: "source_component";
9148
+ ftype: "simple_transistor";
9149
+ source_component_id: string;
9150
+ name: string;
9151
+ transistor_type: "npn" | "pnp";
9152
+ manufacturer_part_number?: string | undefined;
9153
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
9154
+ display_value?: string | undefined;
9155
+ }, {
9156
+ type: "source_component";
9157
+ ftype: "simple_transistor";
9158
+ source_component_id: string;
9159
+ name: string;
9160
+ transistor_type: "npn" | "pnp";
9161
+ manufacturer_part_number?: string | undefined;
9162
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
9163
+ display_value?: string | undefined;
9164
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9165
+ type: z.ZodLiteral<"source_component">;
9166
+ ftype: z.ZodOptional<z.ZodString>;
9167
+ source_component_id: z.ZodString;
9168
+ name: z.ZodString;
9169
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
9170
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
9171
+ display_value: z.ZodOptional<z.ZodString>;
8860
9172
  }, {
8861
9173
  ftype: z.ZodLiteral<"simple_potentiometer">;
8862
9174
  max_resistance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -9135,6 +9447,61 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
9135
9447
  pcb_component_id?: string | undefined;
9136
9448
  pcb_port_id?: string | undefined;
9137
9449
  pcb_plated_hole_id?: string | undefined;
9450
+ }>, z.ZodObject<{
9451
+ type: z.ZodLiteral<"pcb_plated_hole">;
9452
+ shape: z.ZodLiteral<"circular_hole_with_rect_pad">;
9453
+ hole_shape: z.ZodLiteral<"circle">;
9454
+ pad_shape: z.ZodLiteral<"rect">;
9455
+ hole_diameter: z.ZodNumber;
9456
+ rect_pad_width: z.ZodNumber;
9457
+ rect_pad_height: z.ZodNumber;
9458
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
9459
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
9460
+ layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
9461
+ name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
9462
+ }, "strip", z.ZodTypeAny, {
9463
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
9464
+ }, {
9465
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
9466
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
9467
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
9468
+ }>, "many">;
9469
+ port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9470
+ pcb_component_id: z.ZodOptional<z.ZodString>;
9471
+ pcb_port_id: z.ZodOptional<z.ZodString>;
9472
+ pcb_plated_hole_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
9473
+ }, "strip", z.ZodTypeAny, {
9474
+ x: number;
9475
+ y: number;
9476
+ type: "pcb_plated_hole";
9477
+ shape: "circular_hole_with_rect_pad";
9478
+ hole_shape: "circle";
9479
+ hole_diameter: number;
9480
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
9481
+ pcb_plated_hole_id: string;
9482
+ pad_shape: "rect";
9483
+ rect_pad_width: number;
9484
+ rect_pad_height: number;
9485
+ port_hints?: string[] | undefined;
9486
+ pcb_component_id?: string | undefined;
9487
+ pcb_port_id?: string | undefined;
9488
+ }, {
9489
+ x: string | number;
9490
+ y: string | number;
9491
+ type: "pcb_plated_hole";
9492
+ shape: "circular_hole_with_rect_pad";
9493
+ hole_shape: "circle";
9494
+ hole_diameter: number;
9495
+ layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
9496
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
9497
+ })[];
9498
+ pad_shape: "rect";
9499
+ rect_pad_width: number;
9500
+ rect_pad_height: number;
9501
+ port_hints?: string[] | undefined;
9502
+ pcb_component_id?: string | undefined;
9503
+ pcb_port_id?: string | undefined;
9504
+ pcb_plated_hole_id?: string | undefined;
9138
9505
  }>]>, z.ZodUnion<[z.ZodObject<{
9139
9506
  type: z.ZodLiteral<"pcb_keepout">;
9140
9507
  shape: z.ZodLiteral<"rect">;
@@ -11141,4 +11508,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
11141
11508
  */
11142
11509
  type CircuitJson = AnyCircuitElement[];
11143
11510
 
11144
- export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type CircuitJson, 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 PCBManualEditConflictError, 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 PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleOval, type PcbHoleOvalInput, type PcbManualEditConflictError, type PcbManualEditConflictErrorInput, 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 SourceSimpleResonator, type SourceSimpleResonatorInput, 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_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_error, 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_simple_resonator, source_trace, supplier_name, time, visible_layer, voltage };
11511
+ export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type CircuitJson, 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 PCBManualEditConflictError, 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 PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbManualEditConflictError, type PcbManualEditConflictErrorInput, 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 SourceSimpleResonator, type SourceSimpleResonatorInput, 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_board, pcb_component, 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_error, 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_simple_resonator, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };