Interfaces

PutArtifactInput

Interface: PutArtifactInput

Defined in: src/artifacts/types.ts:114

What put takes — everything on ArtifactMeta the CALLER owns. ref, bytes, digest and createdAt are the store's to stamp.

Properties

data

readonly data: unknown

Defined in: src/artifacts/types.ts:123

The payload. Strings and Uint8Array are stored byte-for-byte; any other value must be JSON-serializable (it is measured, digested and — in the durable adapters — persisted via JSON). A value JSON cannot carry is refused at put by name, never stored as an approximation.


digest?

readonly optional digest?: "sha-256"

Defined in: src/artifacts/types.ts:126

Ask for an integrity digest, computed by the store at put.


expiresAt?

readonly optional expiresAt?: number

Defined in: src/artifacts/types.ts:128

Caller-stated expiry (unix ms). The store's own ttl may only TIGHTEN it.


kind

readonly kind: string

Defined in: src/artifacts/types.ts:115


label?

readonly optional label?: string

Defined in: src/artifacts/types.ts:124


mediaType

readonly mediaType: string

Defined in: src/artifacts/types.ts:116


origin?

readonly optional origin?: ArtifactOrigin

Defined in: src/artifacts/types.ts:129


parentRefs?

readonly optional parentRefs?: readonly string[]

Defined in: src/artifacts/types.ts:130

On this page