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
+2 -1
View File
@@ -192,8 +192,9 @@ pub enum TargetType {
}
/// Computed status for a scrape job, derived from existing fields.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export)]
pub enum ScrapeJobStatus {
Processing,
StaleLock,