/** * Transcripts — the canonical contract for a recorded + transcribed session. * * One shape, shared across every layer: the ASR/diarization pipeline that * PRODUCES a transcript (plugin-local-inference), the service that STORES it and * mirrors its text into the knowledge/documents store, the API route + client * that TRANSPORT it, and the Transcripts view that PLAYS it back with * word-synced highlighting. Keeping the shape here (pure, browser- + node-safe) * means the word-timing model is defined exactly once. * * Timing convention: every `startMs`/`endMs` is milliseconds from the START of * the recording's audio (0 = first sample), so the same numbers drive both the * stored record and the `