Skip to content

Interface: StorageObjectMeta

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

Storage adapter contract for plasma file() columns.

core knows only about Storage; concrete implementations (r2Storage today, s3Storage / gcsStorage etc. later) live behind this interface. createSyncHandler({ blobs: { default: r2Storage(...) } }) wires a live instance in at request time so schemas stay browser-safe (no R2Bucket / secret leakage into shared modules).

Streaming-first: download.body returns a ReadableStream<Uint8Array> and upload.body accepts one so proxied uploads on Workers stay under the CPU / body-size caps.

readonly hash: string

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


readonly size: number

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


readonly mime: string

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


readonly optional etag?: string

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


readonly optional uploadedAt?: Date

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


readonly optional checksums?: { sha256?: string | ArrayBuffer; }

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

readonly optional sha256?: string | ArrayBuffer


readonly optional customMetadata?: Readonly<Record<string, string>>

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