@arqera/sdk
v0.1.0
Published
ARQERA TypeScript SDK — AI governance that learns
Maintainers
Readme
@arqera/sdk
ARQERA TypeScript SDK -- AI governance that learns. Evaluate actions, enforce compliance, and maintain complete audit trails.
Installation
npm install @arqera/sdkQuick Start
import { ArqeraClient } from "@arqera/sdk";
const client = new ArqeraClient("ak_...");
// Evaluate an action against governance laws
const result = await client.governance.evaluate("email.send", {
description: "Send quarterly report to investors",
context: { risk_level: "medium" },
});
console.log(result.verdict); // "proceed", "escalate", or "block"Features
- Governance Evaluation -- Evaluate any action against 7 governance laws
- Ara Actions -- Execute actions with built-in governance checks
- Evidence Chain -- Complete audit trail for compliance (EU AI Act, SOC 2)
- Human-in-the-Loop -- Automatic escalation for high-risk actions
- Zero dependencies -- Uses native
fetchAPI
Governance
const result = await client.governance.evaluate("data.delete", {
description: "Delete user records older than 2 years",
context: { record_count: 1500, contains_pii: true },
});
// Check per-law results
for (const law of result.evaluations) {
console.log(`Law ${law.law_id} (${law.law_name}): ${law.result}`);
}Ara Actions
// Execute with governance
const action = await client.ara.execute("email.send", {
description: "Send quarterly report",
});
// If escalated, approve or reject
if (action.status === "pending") {
await client.ara.approve(action.id);
// or: await client.ara.reject(action.id, "Not ready");
}
// List pending actions
const pending = await client.ara.pending();Evidence
// List evidence artifacts
const artifacts = await client.evidence.list({
artifact_type: "governance_evaluation",
});
// Export for compliance audit
const exportData = await client.evidence.export({
artifact_types: ["governance_evaluation"],
start_date: "2026-01-01",
end_date: "2026-03-01",
format: "json",
});Requirements
- Node.js 18+ (uses native
fetch) - TypeScript 5.0+ (for type definitions)
