refactor: migrate API responses from manual JSON to type-safe bindings

Replace hand-written TypeScript interfaces and serde_json::Value responses
with ts-rs generated bindings across admin, metrics, timeline, and WebSocket
APIs. Eliminates manual type maintenance and ensures frontend types stay
in sync with backend definitions.
This commit is contained in:
2026-01-31 10:00:36 -06:00
parent 5729a821d5
commit 0ee4e8a8bc
25 changed files with 252 additions and 191 deletions
+6
View File
@@ -0,0 +1,6 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
/**
* Computed status for a scrape job, derived from existing fields.
*/
export type ScrapeJobStatus = "processing" | "staleLock" | "exhausted" | "scheduled" | "pending";