import type { RespellPlan } from "yt-dlp-transcript-common/lib/report/respellArticle"; import type { Report } from "yt-dlp-transcript-common/lib/report/schema"; // The shapes umtool's by-hand routes answer (release 32 R2): what // components/articles/HandTools.tsx reads. Types only. /** POST /api/articles/respell: the plan (or the plan applied, with its backups). */ export type RespellView = { article: string; iteration: number | null; respellings: RespellPlan["respellings"]; total: number; notes: string[]; targets: { kind: string; file: string; changes: { at: string; hunks: string[] }[] }[]; /** The iteration's video project, when it has one under the reports root. */ projectId: string | null; backups?: string[]; }; /** GET /api/articles/by-hand?article=: the report a claim would join. */ export type HandBaseView = { article: string; n: number | null; reportKind: Report["kind"] | null; title: string | null; sections: { id: string; title: string; claims: number }[]; citations: { id: string; kind: string; where: string; quote: string }[]; respellings: NonNullable; };