Files
sendou.ink/app/features/scanner/components/session-data.ts
2026-09-27 09:59:54 +03:00

22 lines
757 B
TypeScript

/**
* The event shape every view renders, whichever store it came from: a live
* detection (`StoredEvent`) or a VoD's (`StoredVodEvent`) — both carry the
* detection and an optional thumbnail/frame; live ones also their /ingest send status.
*/
import type { DetectedEvent } from "../core/detectors/types";
import type { SendStatus } from "../store/events";
export interface ScanEvent extends DetectedEvent {
id?: number;
/** wall-clock ms of detection; live events only */
detectedAt?: number;
/** small JPEG data URL of the source frame */
thumbnail?: string;
/** whether a full-res frame can be loaded for the event */
hasFrame?: boolean;
/** live events only */
send?: SendStatus;
}
export type SessionKind = "live" | "session" | "vod";