MediaStoreLocalRetention type
What happens to local files once replicated. keepLocal (default) is additive: local files live out their normal expiry and the remote copy is an extra durable copy + get_url. expireWhenReplicated lets local files be removed once confirmed on the remote store; TAMS then serves those segments from the remote copy alone, so readers must be able to reach the object store (make the bucket readable, or enable presign).
Note that only the TAMS segment path reads from the remote copy: cuts and playback still need the local bytes, so do not use expireWhenReplicated on a store you intend to cut from.
Signature:
export type MediaStoreLocalRetention = "keepLocal" | "expireWhenReplicated";