import axios from "axios"; const SELENIUM_BASE = process.env.SELENIUM_SERVICE_URL ?? "http://localhost:5002"; /** * POST /cca-claim * Returns { status: "started", session_id: "" } */ export async function forwardToSeleniumCCAClaimAgent( data: Record ): Promise<{ status: string; session_id: string }> { const resp = await axios.post(`${SELENIUM_BASE}/cca-claim`, data); return resp.data; } /** * GET /session/{sid}/status */ export async function getSeleniumCCAClaimSessionStatus( sessionId: string ): Promise> { const resp = await axios.get(`${SELENIUM_BASE}/session/${sessionId}/status`); return resp.data; }