Protected_Protected_Protected_ProtectedconfigProtectedoctokitProtected_Protected_Protected_Protected_Deletes a file from the repository and commits/pushes the change.
Target file footprint.
A promise resolving to true if the file was deleted, false otherwise.
Downloads a stored file to a specific local path.
Target file footprint.
Destination file path configuration.
A promise resolving to the final local destination path.
Extracts the first page of a document (e.g. PDF) via ImageMagick, resizes it, and uploads it as a thumbnail.
Original document footprint.
Array of desired thumbnail dimensions (px).
A mapping of generated thumbnail identifiers to their respective storage refs.
Downloads an image, generates resized thumbnails via sharp, and uploads them back.
Original image footprint.
Array of desired thumbnail dimensions (px).
A mapping of generated thumbnail identifiers to their respective storage refs.
Entry point for thumbnail generation. Analyzes the content type and automatically delegates to the appropriate generation strategy (Image, Video, or Document).
Target file footprint.
Desired dimensions.
The generated thumbnail map, or an empty object if unsupported/failed.
Extracts a single frame from a remote video via ffmpeg, resizes it, and uploads the frame as an image thumbnail.
Original video footprint.
Array of desired thumbnail dimensions (px).
A mapping of generated thumbnail identifiers to their respective storage refs.
Computes statistics for the Git repository storage.
Optionalbucket: stringOptional bucket name (defaults to 'default').
Optionalprefix: stringOptional directory prefix to scan.
A promise resolving to the bucket statistics.
Returns the underlying SDK or driver instance (Octokit for GitHub, fs-extra for local).
The raw storage client or file system module.
Retrieves the file content as a Readable stream.
Target file footprint.
A promise resolving to a Node Readable stream.
Generates a direct upload URL (returns the read URL since git upload is committed directly).
Target file footprint.
OptionalexpiresIn: numberExpiry window in seconds (ignored).
A promise resolving to the raw URL string.
Generates a raw URL pointing to the raw file content in Git/GitHub.
Target file footprint.
OptionalexpiresIn: numberExpiry window in seconds (ignored).
Optionalaction: stringAction intent (ignored).
Optionalextra: anyProvider specific overrides (ignored).
A promise resolving to the final raw public URL string.
ProtectedisChecks if the file is a video or audio stream based on its MIME type or file extension.
Target file.
True if the file represents a video or audio asset.
Lists all files within the repository that match the prefix.
Root prefix directory or options object.
A promise resolving to a list of matching file reference paths.
ProtectedrunPipes the file content directly into a writable stream.
Target file footprint.
Target writable stream.
Protectedstream
Git and GitHub Storage Adapter for Quatrain Core. Manages files locally via Git shell execution, or remotely via the GitHub REST API.