@clearship/sdk
v0.1.0
Published
Typed TypeScript client for the Clearship REST API
Downloads
65
Readme
@clearship/sdk
Typed client for the Clearship REST API.
import { createClient } from "@clearship/sdk";
const client = createClient({ apiUrl: "https://api.clearship.dev", apiKey: "csh_live_..." });
await client.reportRun(upload); // POST /v1/runs (native JSON)
await client.reportJUnit(xml, { project, suite, sha, branch }); // POST /v1/runs (JUnit XML)
await client.getVerdict({ sha, project }); // GET /v1/verdicts