Protected_Protected_Protected_Protected_Permanently removes the file from the Supabase bucket.
Target file.
True upon success.
Downloads the file directly, either returning the blob content or saving it locally.
File footprint.
Options dictating save path or return format.
A promise resolving to the blob or local file 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 a given bucket.
Optionalbucket: stringTarget bucket name.
Optionalprefix: stringOptional directory prefix.
A promise resolving to bucket statistics.
Exposes the underlying Supabase StorageClient instance.
The storage client.
Downloads the file content to a temporary location and returns a Readable stream.
File to read.
The content as a stream.
Get signed upload url for file Careful, on docker the time to live for JWT signature is defaulted to 60 sec Add SIGNED_UPLOAD_URL_EXPIRATION_TIME env variable to fix TTL
FileType
actually ignored
Generates a secure, temporary GET link to access the object remotely.
The file footprint.
URL expiration in seconds.
Intended action context.
Optional parameters (e.g. cache configurations).
A promise resolving to the signed URL payload.
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.
Fetches and pipes the file content into the given response stream.
File to stream.
Writable stream or HTTP response object.
The piped stream instance.
Helper converting a node stream to a Buffer, essential for Blob creation.
The input stream.
A promise resolving to the concatenated Buffer.
Validates backend connectivity by listing available buckets in the Supabase project.
True if connected.
Internal helper to convert a Buffer into a native ArrayBuffer.
The raw Buffer.
The ArrayBuffer representation.
Storage adapter implementation targeting Supabase Storage. Interfaces with the
@supabase/storage-jsclient to manage buckets, secure signed URLs, and file uploads.