Classes

c
AzureBlobProvider(
options?: AzureBlobProviderOptions,
now?: () => number
)

Azure Blob storage provider.

c
GcsProvider(
options?: GcsProviderOptions,
now?: () => number
)

Google Cloud Storage provider.

c
LocalStorageProvider(
runtimeFs: IFileSystem | undefined,
options?: { rootDir?: string; },
platform?: () => string
)

Local file-system storage provider.

c
MemoryProvider(now?: () => number)

In-memory storage provider backed by Map<string, Uint8Array>.

c
S3Provider(options?: S3ProviderOptions)

AWS S3 storage provider.

c
StorageService(provider: StorageProvider)

Storage service backed by a pluggable provider.

Functions

f
canSign(options: AzureBlobProviderOptions): boolean

Reports whether key-based SAS signing is possible for these options.

Interfaces

I
AzureBlobProviderOptions

Options for AzureBlobProvider.

I
AzureStorageOptions

The Azure Blob Storage arm.

I
GcsProviderOptions

Options for GcsProvider.

I
GcsStorageOptions

The Google Cloud Storage arm.

I
IAzureBlobClient

Minimal Azure Blob client shape for structural injection.

I
IGcsClient

Minimal GCS client shape for structural injection.

I
IStorage

Object storage abstraction.

I
LocalStorageOptions

The local-filesystem arm.

I
LocalStorageProviderOptions

Options for LocalStorageProvider.

I
MemoryStorageOptions

The default arm: in-memory storage, which takes no configuration.

I
PutObjectOptions

Object attributes accepted alongside the bytes when storing an object.

  • contentType: string

    MIME type recorded on the stored object (e.g. 'image/png'). Omitted leaves the backend's own default, which is application/octet-stream on every provider that supports the field.

  • metadata: Readonly<Record<string, string>>

    Arbitrary user metadata recorded alongside the object. Keys and values are passed through to the backend unmodified; backends impose their own limits on size and on which characters a key may contain.

I
S3ProviderOptions

Options for S3Provider (and 'b2' preset).

I
S3StorageOptions

The S3 arm, shared by 's3' and the 'b2' (Backblaze) preset, which reaches the same provider over B2's S3-compatible endpoint.

I
SignedUrlOptions

Options accepted when creating a signed URL.

I
UploadedFile

A single parsed file from a multipart upload.

  • data: Uint8Array

    File bytes.

  • filename: string

    The client-provided original file name (Content-Disposition filename="…"). Always present: since M94b a part carrying NO filename under the field name is a plain form value, not an upload (an empty filename="" — an empty file input — still is one).

  • mimeType: string

    MIME type reported by the client.

  • name: string

    The form field name the file was uploaded under (Content-Disposition name="…").

  • size: number

    File size in bytes.

I
UploadMiddlewareOptions

Options for the upload middleware factory.

Type Aliases