Skip to content
1 min read · 163 words

Interface: MediaStashEntry

Defined in: src/lib/classes/media.ts:85

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.src/lib/classes/media.ts:91
trustTier"first-party" | "third-party-public" | "third-party-private"Trust tier for this specific entry; routed independently of the parent media.src/lib/classes/media.ts:89
valueunknownThe value of the entry — any serialisable shape the consumer wants to store.src/lib/classes/media.ts:87