import client from "./client"; export interface EvidenceOut { id: string; test_id: string; file_name: string; sha256_hash: string; uploaded_by: string | null; uploaded_at: string; download_url: string; } /** Upload evidence file for a test. */ export async function uploadEvidence(testId: string, file: File): Promise { const formData = new FormData(); formData.append("file", file); const { data } = await client.post(`/tests/${testId}/evidence`, formData, { headers: { "Content-Type": "multipart/form-data", }, }); return data; } /** Get evidence metadata with download URL. */ export async function getEvidence(evidenceId: string): Promise { const { data } = await client.get(`/evidence/${evidenceId}`); return data; }