// IS THIS SOURCE GONE? — the one reading (release 29 E2). // // A recording is gone from its platform when its effective availability // (availability-server.ts resolveEffectiveAvailability: the explicit check or // the last download's outcome, whichever is newer) reads, as a viewer state // (availability.ts stateFromAvailability), `deleted` or `private`. Members-only // is not gone: a member's cookies fetch it. An `error` probe is not gone: it // never saw the video. // // The reading R4's refresh made first (draft/refresh/delta.ts), shared by every // caller since: refresh's delta, compose (a cited moment of a gone source with // no media is a text-only moment, `sourceGone`), the evidence windows a site // still needs (reportMedia.ts missingEvidenceWindows, "unfetchable: gone"), // fetch-windows' door and find-copy. A post is gone when posts-availability.json // says `deleted` (sourceGone-server.ts postGoneState). // // Pure: client-safe, no node: imports. export const GONE_STATES = ["deleted", "private"] as const; export type GoneState = (typeof GONE_STATES)[number]; // A viewer state (or anything) as a gone state, or null when it is not one. export function goneState(state: string | null | undefined): GoneState | null { return state === "deleted" || state === "private" ? state : null; } // What a reader is told about a gone source: plain words. export const SOURCE_GONE_LABELS: Readonly> = Object.freeze({ deleted: "Source deleted", private: "Source made private", });