capturegraph.api_models.paths
#
CaptureGraph API Path Models#
Pydantic models for representing file and directory paths in the CaptureGraph API. These models are shared between capturegraph-server and capturegraph-sync.
PathComponent
#
Bases: BaseModel
A single component in a file path, optionally with a session ID.
When session_id is present, the path component represents a session folder whose name is the hex-encoded session ID (e.g., "000647C309C2723B").
Source code in capturegraph-lib/capturegraph/api_models/paths.py
FilePathModel
#
Bases: BaseModel
Model for identifying a file on the server.
Represents the full path to a file including its location in the directory hierarchy, name, type, and possible extensions.