Skip to content

Interface: Storage

Defined in: server/src/storage/storage.ts:73

readonly optional id?: string

Defined in: server/src/storage/storage.ts:75

Stable identifier used as part of the internal Cache API key.


readonly optional maxUploadBytes?: number

Defined in: server/src/storage/storage.ts:76

head(hash): Promise<StorageObjectMeta | null>

Defined in: server/src/storage/storage.ts:78

string

Promise<StorageObjectMeta | null>


upload(params): Promise<StorageObjectMeta>

Defined in: server/src/storage/storage.ts:79

StorageUploadParams

Promise<StorageObjectMeta>


download(params): Promise<StorageDownload | null>

Defined in: server/src/storage/storage.ts:80

StorageDownloadParams

Promise<StorageDownload | null>


delete(hash): Promise<void>

Defined in: server/src/storage/storage.ts:81

string

Promise<void>


optional presignUpload(params): Promise<PresignedUpload>

Defined in: server/src/storage/storage.ts:88

Reserved for v0.4 presigned upload; keeping the signature here now so adapter authors can code against a stable contract without a breaking change when direct-upload mode ships.

string

number

string

string

string

number

Promise<PresignedUpload>


optional presignDownload(params): Promise<PresignedDownload>

Defined in: server/src/storage/storage.ts:97

string

number

Promise<PresignedDownload>


optional verifyUploaded(params): Promise<StorageObjectMeta>

Defined in: server/src/storage/storage.ts:102

string

number

string

Promise<StorageObjectMeta>