circuit-json 0.0.149 → 0.0.151

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
@@ -45,6 +45,7 @@ and is the primary way that Circuit JSON is defined and maintained.
45
45
  - [SourceComponentBase](#sourcecomponentbase)
46
46
  - [SourceLed](#sourceled)
47
47
  - [SourcePort](#sourceport)
48
+ - [SourceProjectMetadata](#sourceprojectmetadata)
48
49
  - [SourceSimpleBattery](#sourcesimplebattery)
49
50
  - [SourceSimpleCapacitor](#sourcesimplecapacitor)
50
51
  - [SourceSimpleChip](#sourcesimplechip)
@@ -203,6 +204,17 @@ interface SourcePort {
203
204
  }
204
205
  ```
205
206
 
207
+ ### SourceProjectMetadata
208
+
209
+ ```typescript
210
+ interface SourceProjectMetadata {
211
+ type: "source_project_metadata"
212
+ name?: string
213
+ software_used_string?: string
214
+ created_at?: string // ISO8601 timestamp
215
+ }
216
+ ```
217
+
206
218
  ### SourceSimpleBattery
207
219
 
208
220
  Defines a simple battery component
package/dist/index.d.mts CHANGED
@@ -968,6 +968,21 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
968
968
  manufacturer_part_number?: string | undefined;
969
969
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
970
970
  display_value?: string | undefined;
971
+ }>, z.ZodObject<{
972
+ type: z.ZodLiteral<"source_project_metadata">;
973
+ name: z.ZodOptional<z.ZodString>;
974
+ software_used_string: z.ZodOptional<z.ZodString>;
975
+ created_at: z.ZodOptional<z.ZodString>;
976
+ }, "strip", z.ZodTypeAny, {
977
+ type: "source_project_metadata";
978
+ name?: string | undefined;
979
+ software_used_string?: string | undefined;
980
+ created_at?: string | undefined;
981
+ }, {
982
+ type: "source_project_metadata";
983
+ name?: string | undefined;
984
+ software_used_string?: string | undefined;
985
+ created_at?: string | undefined;
971
986
  }>]>;
972
987
  type AnySourceComponent = z.infer<typeof any_source_component>;
973
988
 
@@ -1504,6 +1519,30 @@ interface SourceSimpleMosfet extends SourceComponentBase {
1504
1519
  mosfet_mode: "enhancement" | "depletion";
1505
1520
  }
1506
1521
 
1522
+ interface SourceProjectMetadata {
1523
+ type: "source_project_metadata";
1524
+ name?: string;
1525
+ software_used_string?: string;
1526
+ created_at?: string;
1527
+ }
1528
+ declare const source_project_metadata: z.ZodObject<{
1529
+ type: z.ZodLiteral<"source_project_metadata">;
1530
+ name: z.ZodOptional<z.ZodString>;
1531
+ software_used_string: z.ZodOptional<z.ZodString>;
1532
+ created_at: z.ZodOptional<z.ZodString>;
1533
+ }, "strip", z.ZodTypeAny, {
1534
+ type: "source_project_metadata";
1535
+ name?: string | undefined;
1536
+ software_used_string?: string | undefined;
1537
+ created_at?: string | undefined;
1538
+ }, {
1539
+ type: "source_project_metadata";
1540
+ name?: string | undefined;
1541
+ software_used_string?: string | undefined;
1542
+ created_at?: string | undefined;
1543
+ }>;
1544
+ type InferredProjectMetadata = z.infer<typeof source_project_metadata>;
1545
+
1507
1546
  interface SchematicBox {
1508
1547
  type: "schematic_box";
1509
1548
  schematic_component_id: string;
@@ -6233,6 +6272,21 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
6233
6272
  manufacturer_part_number?: string | undefined;
6234
6273
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
6235
6274
  display_value?: string | undefined;
6275
+ }>, z.ZodObject<{
6276
+ type: z.ZodLiteral<"source_project_metadata">;
6277
+ name: z.ZodOptional<z.ZodString>;
6278
+ software_used_string: z.ZodOptional<z.ZodString>;
6279
+ created_at: z.ZodOptional<z.ZodString>;
6280
+ }, "strip", z.ZodTypeAny, {
6281
+ type: "source_project_metadata";
6282
+ name?: string | undefined;
6283
+ software_used_string?: string | undefined;
6284
+ created_at?: string | undefined;
6285
+ }, {
6286
+ type: "source_project_metadata";
6287
+ name?: string | undefined;
6288
+ software_used_string?: string | undefined;
6289
+ created_at?: string | undefined;
6236
6290
  }>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
6237
6291
  type: z.ZodLiteral<"source_component">;
6238
6292
  ftype: z.ZodOptional<z.ZodString>;
@@ -6759,6 +6813,21 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
6759
6813
  manufacturer_part_number?: string | undefined;
6760
6814
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
6761
6815
  display_value?: string | undefined;
6816
+ }>, z.ZodObject<{
6817
+ type: z.ZodLiteral<"source_project_metadata">;
6818
+ name: z.ZodOptional<z.ZodString>;
6819
+ software_used_string: z.ZodOptional<z.ZodString>;
6820
+ created_at: z.ZodOptional<z.ZodString>;
6821
+ }, "strip", z.ZodTypeAny, {
6822
+ type: "source_project_metadata";
6823
+ name?: string | undefined;
6824
+ software_used_string?: string | undefined;
6825
+ created_at?: string | undefined;
6826
+ }, {
6827
+ type: "source_project_metadata";
6828
+ name?: string | undefined;
6829
+ software_used_string?: string | undefined;
6830
+ created_at?: string | undefined;
6762
6831
  }>, z.ZodObject<{
6763
6832
  type: z.ZodLiteral<"pcb_component">;
6764
6833
  pcb_component_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -9863,6 +9932,21 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
9863
9932
  manufacturer_part_number?: string | undefined;
9864
9933
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
9865
9934
  display_value?: string | undefined;
9935
+ }>, z.ZodObject<{
9936
+ type: z.ZodLiteral<"source_project_metadata">;
9937
+ name: z.ZodOptional<z.ZodString>;
9938
+ software_used_string: z.ZodOptional<z.ZodString>;
9939
+ created_at: z.ZodOptional<z.ZodString>;
9940
+ }, "strip", z.ZodTypeAny, {
9941
+ type: "source_project_metadata";
9942
+ name?: string | undefined;
9943
+ software_used_string?: string | undefined;
9944
+ created_at?: string | undefined;
9945
+ }, {
9946
+ type: "source_project_metadata";
9947
+ name?: string | undefined;
9948
+ software_used_string?: string | undefined;
9949
+ created_at?: string | undefined;
9866
9950
  }>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
9867
9951
  type: z.ZodLiteral<"source_component">;
9868
9952
  ftype: z.ZodOptional<z.ZodString>;
@@ -10389,6 +10473,21 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
10389
10473
  manufacturer_part_number?: string | undefined;
10390
10474
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
10391
10475
  display_value?: string | undefined;
10476
+ }>, z.ZodObject<{
10477
+ type: z.ZodLiteral<"source_project_metadata">;
10478
+ name: z.ZodOptional<z.ZodString>;
10479
+ software_used_string: z.ZodOptional<z.ZodString>;
10480
+ created_at: z.ZodOptional<z.ZodString>;
10481
+ }, "strip", z.ZodTypeAny, {
10482
+ type: "source_project_metadata";
10483
+ name?: string | undefined;
10484
+ software_used_string?: string | undefined;
10485
+ created_at?: string | undefined;
10486
+ }, {
10487
+ type: "source_project_metadata";
10488
+ name?: string | undefined;
10489
+ software_used_string?: string | undefined;
10490
+ created_at?: string | undefined;
10392
10491
  }>, z.ZodObject<{
10393
10492
  type: z.ZodLiteral<"pcb_component">;
10394
10493
  pcb_component_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -12925,4 +13024,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
12925
13024
  */
12926
13025
  type CircuitJson = AnyCircuitElement[];
12927
13026
 
12928
- 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 PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, 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 PcbSmtPadPill, 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 SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_autorouting_error, pcb_board, pcb_component, pcb_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_smtpad_pill, pcb_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_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_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };
13027
+ export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type CircuitJson, type Distance, type InferredProjectMetadata, 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 PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, 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 PcbSmtPadPill, 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 SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_autorouting_error, pcb_board, pcb_component, pcb_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_smtpad_pill, pcb_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_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_project_metadata, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };