import api from "./client"; export interface UpdateStatus { image: string; update_available: boolean; current_digest: string | null; remote_digest: string | null; checked_at: number; error: string | null; } export interface ImageRow { id: string; tag: string; size: number; created: string; stacks: string[]; update: UpdateStatus | null; } export const imagesApi = { list: () => api.get("/api/images").then((r) => r.data), updates: () => api.get>("/api/images/updates").then((r) => r.data), check: () => api.post>("/api/images/check").then((r) => r.data), };