@omegaengine/sdk
v1.1.0
Published
Decision infrastructure for autonomous AI — Official TypeScript SDK
Maintainers
Readme
@omegaengine/sdk
Decision infrastructure for autonomous AI — TypeScript SDK
The official TypeScript SDK for OmegaEngine. Full type coverage for all 30+ API endpoints including the Security Intelligence Suite.
Installation
npm install @omegaengine/sdkQuick Start
import { OmegaClient } from "@omegaengine/sdk";
const omega = new OmegaClient({
baseUrl: "https://api.omegaengine.ai",
apiKey: process.env.OMEGA_API_KEY!,
});
// Make a decision
const result = await omega.decide({
scenario: "Should I approve this $50K wire transfer?",
context: "VIP customer, 780 credit score, 5yr history",
domain: "finance",
});
console.log(result.ok); // true
console.log(result.decision.verdict); // "ALLOW"
console.log(result.decision.riskLevel); // "LOW"Security Intelligence
Access the full CISO-grade security intelligence platform:
// Get the complete security posture (16 engines, ~5ms)
const posture = await omega.security.posture({
organization: "Acme Corp",
industry: "fintech",
});
// Adversarial Robustness Score — the FICO score for AI security
const ars = await omega.security.score();
console.log(`ARS: ${ars.report.score}/1000 (${ars.report.bandLabel})`);
// Security SLA tracking
const sla = await omega.security.sla();
if (sla.sla.violated > 0) {
console.warn(`${sla.sla.violated} SLAs violated!`);
}
// Threat intelligence feed
const threats = await omega.security.threatIntel("critical");
for (const t of threats.catalog) {
console.log(`[${t.severity}] ${t.name} — ${t.mitre}`);
}
// Zero-day discovery
const zd = await omega.security.zeroDay();
// Anomaly detection
const anomalies = await omega.security.anomalies();
// Chaos engineering
const chaos = await omega.security.chaos();
console.log(`Resilience: ${chaos.chaos.overallResilience}/100`);CI/CD Security Gate
Block unsafe deploys in your pipeline:
const gate = await omega.security.ciGate({
minScore: 700,
failOn: "high",
sarif: true,
commitSha: process.env.GITHUB_SHA,
branch: "main",
});
if (gate.verdict === "FAIL") {
console.error(gate._ci.annotation);
process.exit(1);
}Or use the GitHub Action:
- name: OmegaEngine Security Gate
uses: omegaengine/omega-gate@v1
with:
api-key: ${{ secrets.OMEGA_API_KEY }}
min-score: 700
fail-on: high
sarif: trueWebhooks
Subscribe to real-time security alerts:
// Register a webhook
const wh = await omega.security.registerWebhook({
url: "https://your-app.com/webhooks/omega",
events: ["sla.violated", "zero_day.discovered", "anomaly.spike"],
secret: "whsec_your_signing_secret",
});
// List registered webhooks
const list = await omega.security.listWebhooks();Available Webhook Events
| Event | Description |
|-------|-------------|
| sla.violated | Security SLA threshold breached |
| sla.at_risk | SLA approaching violation |
| anomaly.spike | Anomalous traffic detected |
| zero_day.discovered | Novel adversarial pattern found |
| attack.campaign_detected | Cross-tenant coordinated attack |
| drift.regression | Safety score decreased |
| chaos.failure | Chaos experiment failed |
| contract.violation | Model behavior breach |
| incident.escalated | Incident escalated to P1/P0 |
| regulatory.action_required | New compliance requirement |
Full API Coverage
Intelligence
omega.security.score()— Adversarial Robustness Scoreomega.security.anomalies()— Anomaly detectionomega.security.forensics()— Model forensicsomega.security.zeroDay()— Zero-day discoveryomega.security.threatIntel()— Threat intelligence feedomega.security.surface()— Attack surface graphomega.security.correlate()— Cross-tenant correlationomega.security.fingerprint()— Model fingerprintingomega.security.threatModel()— STRIDE threat model
Operations
omega.security.incidents()— Incident timelineomega.security.costs()— Cost attributionomega.security.playbooks()— Response playbooksomega.security.contracts()— Behavior contractsomega.security.sla()— Security SLAsomega.security.chaos()— Chaos engineeringomega.security.simulate()— Threat simulationomega.security.tenantRisk()— Tenant risk scoring
Compliance & Reporting
omega.security.regulatory()— Regulatory trackeromega.security.maturity()— Maturity modelomega.security.sbom()— AI SBOMomega.security.pentest()— Pen test reportomega.security.executiveBrief()— Executive briefomega.security.benchmark()— Industry benchmarkomega.security.drift()— Safety drift detection
Webhooks & CI/CD
omega.security.registerWebhook()— Register webhookomega.security.listWebhooks()— List webhooksomega.security.ciGate()— CI/CD security gate
Configuration
const omega = new OmegaClient({
baseUrl: "https://api.omegaengine.ai",
apiKey: "omega_your_api_key",
retry: {
maxRetries: 3,
baseDelay: 500,
maxDelay: 5000,
},
});License
Apache-2.0 — © OmegaEngine Inc.
