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
readonlydata: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?
readonlyoptionaldigest?:"sha-256"
Defined in: src/artifacts/types.ts:126
Ask for an integrity digest, computed by the store at put.
expiresAt?
readonlyoptionalexpiresAt?:number
Defined in: src/artifacts/types.ts:128
Caller-stated expiry (unix ms). The store's own ttl may only TIGHTEN it.
kind
readonlykind:string
Defined in: src/artifacts/types.ts:115
label?
readonlyoptionallabel?:string
Defined in: src/artifacts/types.ts:124
mediaType
readonlymediaType:string
Defined in: src/artifacts/types.ts:116
origin?
readonlyoptionalorigin?:ArtifactOrigin
Defined in: src/artifacts/types.ts:129
parentRefs?
readonlyoptionalparentRefs?: readonlystring[]
Defined in: src/artifacts/types.ts:130
