circuit-json 0.0.105 → 0.0.107

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
@@ -710,6 +710,38 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
710
710
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
711
711
  display_value?: string | undefined;
712
712
  load_capacitance?: number | undefined;
713
+ }>, z.ZodObject<z.objectUtil.extendShape<{
714
+ type: z.ZodLiteral<"source_component">;
715
+ ftype: z.ZodOptional<z.ZodString>;
716
+ source_component_id: z.ZodString;
717
+ name: z.ZodString;
718
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
719
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
720
+ display_value: z.ZodOptional<z.ZodString>;
721
+ }, {
722
+ ftype: z.ZodLiteral<"simple_pin_header">;
723
+ pin_count: z.ZodNumber;
724
+ gender: z.ZodDefault<z.ZodEnum<["male", "female"]>>;
725
+ }>, "strip", z.ZodTypeAny, {
726
+ type: "source_component";
727
+ ftype: "simple_pin_header";
728
+ source_component_id: string;
729
+ name: string;
730
+ pin_count: number;
731
+ gender: "male" | "female";
732
+ manufacturer_part_number?: string | undefined;
733
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
734
+ display_value?: string | undefined;
735
+ }, {
736
+ type: "source_component";
737
+ ftype: "simple_pin_header";
738
+ source_component_id: string;
739
+ name: string;
740
+ pin_count: number;
741
+ manufacturer_part_number?: string | undefined;
742
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
743
+ display_value?: string | undefined;
744
+ gender?: "male" | "female" | undefined;
713
745
  }>]>;
714
746
  type AnySourceComponent = z.infer<typeof any_source_component>;
715
747
 
@@ -1017,6 +1049,42 @@ declare const source_simple_crystal: z.ZodObject<z.objectUtil.extendShape<{
1017
1049
  type SourceSimpleCrystal = z.infer<typeof source_simple_crystal>;
1018
1050
  type SourceSimpleCrystalInput = z.input<typeof source_simple_crystal>;
1019
1051
 
1052
+ declare const source_simple_pin_header: z.ZodObject<z.objectUtil.extendShape<{
1053
+ type: z.ZodLiteral<"source_component">;
1054
+ ftype: z.ZodOptional<z.ZodString>;
1055
+ source_component_id: z.ZodString;
1056
+ name: z.ZodString;
1057
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
1058
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
1059
+ display_value: z.ZodOptional<z.ZodString>;
1060
+ }, {
1061
+ ftype: z.ZodLiteral<"simple_pin_header">;
1062
+ pin_count: z.ZodNumber;
1063
+ gender: z.ZodDefault<z.ZodEnum<["male", "female"]>>;
1064
+ }>, "strip", z.ZodTypeAny, {
1065
+ type: "source_component";
1066
+ ftype: "simple_pin_header";
1067
+ source_component_id: string;
1068
+ name: string;
1069
+ pin_count: number;
1070
+ gender: "male" | "female";
1071
+ manufacturer_part_number?: string | undefined;
1072
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
1073
+ display_value?: string | undefined;
1074
+ }, {
1075
+ type: "source_component";
1076
+ ftype: "simple_pin_header";
1077
+ source_component_id: string;
1078
+ name: string;
1079
+ pin_count: number;
1080
+ manufacturer_part_number?: string | undefined;
1081
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
1082
+ display_value?: string | undefined;
1083
+ gender?: "male" | "female" | undefined;
1084
+ }>;
1085
+ type SourceSimplePinHeader = z.infer<typeof source_simple_pin_header>;
1086
+ type SourceSimplePinHeaderInput = z.input<typeof source_simple_pin_header>;
1087
+
1020
1088
  declare const schematic_box: z.ZodObject<{
1021
1089
  type: z.ZodLiteral<"schematic_box">;
1022
1090
  schematic_component_id: z.ZodString;
@@ -2841,10 +2909,59 @@ declare const pcb_smtpad: z.ZodUnion<[z.ZodObject<{
2841
2909
  pcb_component_id?: string | undefined;
2842
2910
  pcb_port_id?: string | undefined;
2843
2911
  pcb_smtpad_id?: string | undefined;
2912
+ }>, z.ZodObject<{
2913
+ type: z.ZodLiteral<"pcb_smtpad">;
2914
+ shape: z.ZodLiteral<"rotated_rect">;
2915
+ pcb_smtpad_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2916
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
2917
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
2918
+ width: z.ZodNumber;
2919
+ height: z.ZodNumber;
2920
+ ccw_rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
2921
+ layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
2922
+ name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
2923
+ }, "strip", z.ZodTypeAny, {
2924
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2925
+ }, {
2926
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2927
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2928
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2929
+ }>;
2930
+ port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2931
+ pcb_component_id: z.ZodOptional<z.ZodString>;
2932
+ pcb_port_id: z.ZodOptional<z.ZodString>;
2933
+ }, "strip", z.ZodTypeAny, {
2934
+ x: number;
2935
+ y: number;
2936
+ type: "pcb_smtpad";
2937
+ width: number;
2938
+ height: number;
2939
+ shape: "rotated_rect";
2940
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2941
+ pcb_smtpad_id: string;
2942
+ ccw_rotation: number;
2943
+ port_hints?: string[] | undefined;
2944
+ pcb_component_id?: string | undefined;
2945
+ pcb_port_id?: string | undefined;
2946
+ }, {
2947
+ x: string | number;
2948
+ y: string | number;
2949
+ type: "pcb_smtpad";
2950
+ width: number;
2951
+ height: number;
2952
+ shape: "rotated_rect";
2953
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2954
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2955
+ };
2956
+ ccw_rotation: string | number;
2957
+ port_hints?: string[] | undefined;
2958
+ pcb_component_id?: string | undefined;
2959
+ pcb_port_id?: string | undefined;
2960
+ pcb_smtpad_id?: string | undefined;
2844
2961
  }>]>;
2845
2962
  type PCBSMTPadInput = z.input<typeof pcb_smtpad>;
2846
2963
  /**
2847
- * Defines an SMT pad on the PCB
2964
+ * Defines a circular SMT pad on the PCB
2848
2965
  */
2849
2966
  interface PcbSmtPadCircle {
2850
2967
  type: "pcb_smtpad";
@@ -2859,7 +2976,7 @@ interface PcbSmtPadCircle {
2859
2976
  pcb_port_id?: string;
2860
2977
  }
2861
2978
  /**
2862
- * Defines an SMT pad on the PCB
2979
+ * Defines a rectangular SMT pad on the PCB
2863
2980
  */
2864
2981
  interface PcbSmtPadRect {
2865
2982
  type: "pcb_smtpad";
@@ -2874,7 +2991,24 @@ interface PcbSmtPadRect {
2874
2991
  pcb_component_id?: string;
2875
2992
  pcb_port_id?: string;
2876
2993
  }
2877
- type PcbSmtPad = PcbSmtPadCircle | PcbSmtPadRect;
2994
+ /**
2995
+ * Defines a rotated rectangular SMT pad on the PCB
2996
+ */
2997
+ interface PcbSmtPadRotatedRect {
2998
+ type: "pcb_smtpad";
2999
+ shape: "rotated_rect";
3000
+ pcb_smtpad_id: string;
3001
+ x: Distance;
3002
+ y: Distance;
3003
+ width: number;
3004
+ height: number;
3005
+ ccw_rotation: Rotation;
3006
+ layer: LayerRef;
3007
+ port_hints?: string[];
3008
+ pcb_component_id?: string;
3009
+ pcb_port_id?: string;
3010
+ }
3011
+ type PcbSmtPad = PcbSmtPadCircle | PcbSmtPadRect | PcbSmtPadRotatedRect;
2878
3012
  /**
2879
3013
  * @deprecated use PcbSmtPad
2880
3014
  */
@@ -4842,6 +4976,38 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4842
4976
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4843
4977
  display_value?: string | undefined;
4844
4978
  load_capacitance?: number | undefined;
4979
+ }>, z.ZodObject<z.objectUtil.extendShape<{
4980
+ type: z.ZodLiteral<"source_component">;
4981
+ ftype: z.ZodOptional<z.ZodString>;
4982
+ source_component_id: z.ZodString;
4983
+ name: z.ZodString;
4984
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
4985
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
4986
+ display_value: z.ZodOptional<z.ZodString>;
4987
+ }, {
4988
+ ftype: z.ZodLiteral<"simple_pin_header">;
4989
+ pin_count: z.ZodNumber;
4990
+ gender: z.ZodDefault<z.ZodEnum<["male", "female"]>>;
4991
+ }>, "strip", z.ZodTypeAny, {
4992
+ type: "source_component";
4993
+ ftype: "simple_pin_header";
4994
+ source_component_id: string;
4995
+ name: string;
4996
+ pin_count: number;
4997
+ gender: "male" | "female";
4998
+ manufacturer_part_number?: string | undefined;
4999
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
5000
+ display_value?: string | undefined;
5001
+ }, {
5002
+ type: "source_component";
5003
+ ftype: "simple_pin_header";
5004
+ source_component_id: string;
5005
+ name: string;
5006
+ pin_count: number;
5007
+ manufacturer_part_number?: string | undefined;
5008
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
5009
+ display_value?: string | undefined;
5010
+ gender?: "male" | "female" | undefined;
4845
5011
  }>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4846
5012
  type: z.ZodLiteral<"source_component">;
4847
5013
  ftype: z.ZodOptional<z.ZodString>;
@@ -5143,6 +5309,38 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
5143
5309
  manufacturer_part_number: z.ZodOptional<z.ZodString>;
5144
5310
  supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
5145
5311
  display_value: z.ZodOptional<z.ZodString>;
5312
+ }, {
5313
+ ftype: z.ZodLiteral<"simple_pin_header">;
5314
+ pin_count: z.ZodNumber;
5315
+ gender: z.ZodDefault<z.ZodEnum<["male", "female"]>>;
5316
+ }>, "strip", z.ZodTypeAny, {
5317
+ type: "source_component";
5318
+ ftype: "simple_pin_header";
5319
+ source_component_id: string;
5320
+ name: string;
5321
+ pin_count: number;
5322
+ gender: "male" | "female";
5323
+ manufacturer_part_number?: string | undefined;
5324
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
5325
+ display_value?: string | undefined;
5326
+ }, {
5327
+ type: "source_component";
5328
+ ftype: "simple_pin_header";
5329
+ source_component_id: string;
5330
+ name: string;
5331
+ pin_count: number;
5332
+ manufacturer_part_number?: string | undefined;
5333
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
5334
+ display_value?: string | undefined;
5335
+ gender?: "male" | "female" | undefined;
5336
+ }>, z.ZodObject<z.objectUtil.extendShape<{
5337
+ type: z.ZodLiteral<"source_component">;
5338
+ ftype: z.ZodOptional<z.ZodString>;
5339
+ source_component_id: z.ZodString;
5340
+ name: z.ZodString;
5341
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
5342
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
5343
+ display_value: z.ZodOptional<z.ZodString>;
5146
5344
  }, {
5147
5345
  ftype: z.ZodLiteral<"simple_potentiometer">;
5148
5346
  max_resistance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -5596,9 +5794,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
5596
5794
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5597
5795
  }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
5598
5796
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
5599
- }>; /**
5600
- * @deprecated use any_circuit_element instead
5601
- */
5797
+ }>;
5602
5798
  }, "strip", z.ZodTypeAny, {
5603
5799
  x: number;
5604
5800
  y: number;
@@ -5836,6 +6032,55 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
5836
6032
  pcb_component_id?: string | undefined;
5837
6033
  pcb_port_id?: string | undefined;
5838
6034
  pcb_smtpad_id?: string | undefined;
6035
+ }>, z.ZodObject<{
6036
+ type: z.ZodLiteral<"pcb_smtpad">;
6037
+ shape: z.ZodLiteral<"rotated_rect">;
6038
+ pcb_smtpad_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
6039
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6040
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6041
+ width: z.ZodNumber;
6042
+ height: z.ZodNumber;
6043
+ ccw_rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
6044
+ layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
6045
+ name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
6046
+ }, "strip", z.ZodTypeAny, {
6047
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6048
+ }, {
6049
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6050
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
6051
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6052
+ }>;
6053
+ port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6054
+ pcb_component_id: z.ZodOptional<z.ZodString>;
6055
+ pcb_port_id: z.ZodOptional<z.ZodString>;
6056
+ }, "strip", z.ZodTypeAny, {
6057
+ x: number;
6058
+ y: number;
6059
+ type: "pcb_smtpad";
6060
+ width: number;
6061
+ height: number;
6062
+ shape: "rotated_rect";
6063
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6064
+ pcb_smtpad_id: string;
6065
+ ccw_rotation: number;
6066
+ port_hints?: string[] | undefined;
6067
+ pcb_component_id?: string | undefined;
6068
+ pcb_port_id?: string | undefined;
6069
+ }, {
6070
+ x: string | number;
6071
+ y: string | number;
6072
+ type: "pcb_smtpad";
6073
+ width: number;
6074
+ height: number;
6075
+ shape: "rotated_rect";
6076
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
6077
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
6078
+ };
6079
+ ccw_rotation: string | number;
6080
+ port_hints?: string[] | undefined;
6081
+ pcb_component_id?: string | undefined;
6082
+ pcb_port_id?: string | undefined;
6083
+ pcb_smtpad_id?: string | undefined;
5839
6084
  }>]>, z.ZodUnion<[z.ZodObject<{
5840
6085
  type: z.ZodLiteral<"pcb_solder_paste">;
5841
6086
  shape: z.ZodLiteral<"circle">;
@@ -7674,6 +7919,38 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
7674
7919
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
7675
7920
  display_value?: string | undefined;
7676
7921
  load_capacitance?: number | undefined;
7922
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7923
+ type: z.ZodLiteral<"source_component">;
7924
+ ftype: z.ZodOptional<z.ZodString>;
7925
+ source_component_id: z.ZodString;
7926
+ name: z.ZodString;
7927
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
7928
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
7929
+ display_value: z.ZodOptional<z.ZodString>;
7930
+ }, {
7931
+ ftype: z.ZodLiteral<"simple_pin_header">;
7932
+ pin_count: z.ZodNumber;
7933
+ gender: z.ZodDefault<z.ZodEnum<["male", "female"]>>;
7934
+ }>, "strip", z.ZodTypeAny, {
7935
+ type: "source_component";
7936
+ ftype: "simple_pin_header";
7937
+ source_component_id: string;
7938
+ name: string;
7939
+ pin_count: number;
7940
+ gender: "male" | "female";
7941
+ manufacturer_part_number?: string | undefined;
7942
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
7943
+ display_value?: string | undefined;
7944
+ }, {
7945
+ type: "source_component";
7946
+ ftype: "simple_pin_header";
7947
+ source_component_id: string;
7948
+ name: string;
7949
+ pin_count: number;
7950
+ manufacturer_part_number?: string | undefined;
7951
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
7952
+ display_value?: string | undefined;
7953
+ gender?: "male" | "female" | undefined;
7677
7954
  }>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
7678
7955
  type: z.ZodLiteral<"source_component">;
7679
7956
  ftype: z.ZodOptional<z.ZodString>;
@@ -7975,6 +8252,38 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
7975
8252
  manufacturer_part_number: z.ZodOptional<z.ZodString>;
7976
8253
  supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
7977
8254
  display_value: z.ZodOptional<z.ZodString>;
8255
+ }, {
8256
+ ftype: z.ZodLiteral<"simple_pin_header">;
8257
+ pin_count: z.ZodNumber;
8258
+ gender: z.ZodDefault<z.ZodEnum<["male", "female"]>>;
8259
+ }>, "strip", z.ZodTypeAny, {
8260
+ type: "source_component";
8261
+ ftype: "simple_pin_header";
8262
+ source_component_id: string;
8263
+ name: string;
8264
+ pin_count: number;
8265
+ gender: "male" | "female";
8266
+ manufacturer_part_number?: string | undefined;
8267
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
8268
+ display_value?: string | undefined;
8269
+ }, {
8270
+ type: "source_component";
8271
+ ftype: "simple_pin_header";
8272
+ source_component_id: string;
8273
+ name: string;
8274
+ pin_count: number;
8275
+ manufacturer_part_number?: string | undefined;
8276
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
8277
+ display_value?: string | undefined;
8278
+ gender?: "male" | "female" | undefined;
8279
+ }>, z.ZodObject<z.objectUtil.extendShape<{
8280
+ type: z.ZodLiteral<"source_component">;
8281
+ ftype: z.ZodOptional<z.ZodString>;
8282
+ source_component_id: z.ZodString;
8283
+ name: z.ZodString;
8284
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
8285
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
8286
+ display_value: z.ZodOptional<z.ZodString>;
7978
8287
  }, {
7979
8288
  ftype: z.ZodLiteral<"simple_potentiometer">;
7980
8289
  max_resistance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -8428,9 +8737,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
8428
8737
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
8429
8738
  }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
8430
8739
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
8431
- }>; /**
8432
- * @deprecated use any_circuit_element instead
8433
- */
8740
+ }>;
8434
8741
  }, "strip", z.ZodTypeAny, {
8435
8742
  x: number;
8436
8743
  y: number;
@@ -8668,6 +8975,55 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
8668
8975
  pcb_component_id?: string | undefined;
8669
8976
  pcb_port_id?: string | undefined;
8670
8977
  pcb_smtpad_id?: string | undefined;
8978
+ }>, z.ZodObject<{
8979
+ type: z.ZodLiteral<"pcb_smtpad">;
8980
+ shape: z.ZodLiteral<"rotated_rect">;
8981
+ pcb_smtpad_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
8982
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8983
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8984
+ width: z.ZodNumber;
8985
+ height: z.ZodNumber;
8986
+ ccw_rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8987
+ layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
8988
+ name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
8989
+ }, "strip", z.ZodTypeAny, {
8990
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
8991
+ }, {
8992
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
8993
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
8994
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
8995
+ }>;
8996
+ port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8997
+ pcb_component_id: z.ZodOptional<z.ZodString>;
8998
+ pcb_port_id: z.ZodOptional<z.ZodString>;
8999
+ }, "strip", z.ZodTypeAny, {
9000
+ x: number;
9001
+ y: number;
9002
+ type: "pcb_smtpad";
9003
+ width: number;
9004
+ height: number;
9005
+ shape: "rotated_rect";
9006
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
9007
+ pcb_smtpad_id: string;
9008
+ ccw_rotation: number;
9009
+ port_hints?: string[] | undefined;
9010
+ pcb_component_id?: string | undefined;
9011
+ pcb_port_id?: string | undefined;
9012
+ }, {
9013
+ x: string | number;
9014
+ y: string | number;
9015
+ type: "pcb_smtpad";
9016
+ width: number;
9017
+ height: number;
9018
+ shape: "rotated_rect";
9019
+ layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
9020
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
9021
+ };
9022
+ ccw_rotation: string | number;
9023
+ port_hints?: string[] | undefined;
9024
+ pcb_component_id?: string | undefined;
9025
+ pcb_port_id?: string | undefined;
9026
+ pcb_smtpad_id?: string | undefined;
8671
9027
  }>]>, z.ZodUnion<[z.ZodObject<{
8672
9028
  type: z.ZodLiteral<"pcb_solder_paste">;
8673
9029
  shape: z.ZodLiteral<"circle">;
@@ -10111,4 +10467,4 @@ type AnySoupElement = AnyCircuitElement;
10111
10467
  */
10112
10468
  type AnySoupElementInput = AnyCircuitElementInput;
10113
10469
 
10114
- 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 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 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_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_trace, supplier_name, time, visible_layer, voltage };
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 };