Skip to content
1 min read · 163 words

Interface: MediaStashEntry

Defined in: lib/classes/media.ts:76

Per-entry shape stored in a Media's stash register.

Remarks

Each entry carries its own trust tier so render code can route derived text (OCR, captions, transcripts) through its own envelope independent of the parent media. How a battery or middleware assigns those entry-level tiers is the implementor's call — the primitive contract does not enforce a "downgrade derived interpretation from possibly-adversarial bytes" policy.

Properties

PropertyTypeDescriptionDefined in
derivedFromMedia?stringOptional pointer to the parent Media id this entry was derived from.lib/classes/media.ts:82
trustTier"first-party" | "third-party-public" | "third-party-private"Trust tier for this specific entry; routed independently of the parent media.lib/classes/media.ts:80
valueunknownThe value of the entry — any serialisable shape the consumer wants to store.lib/classes/media.ts:78