Ship Compliance in 10 Lines of Code
Zero-dependency TypeScript SDK. Native fetch, typed errors, full API coverage.
From initialization to first decision in under a minute.
Quick Start
Install, configure, resolve. Your first auditable decision in seconds.
import { OmegaClient } from '@omegaos/sdk';
const client = new OmegaClient({
baseUrl: 'https://your-instance.example.com',
apiKey: 'delk_your_api_key',
tenantId: 'your-tenant-id',
});
const decision = await client.resolve({
evidenceList: [
{ key: 'credit_score', state: 'Indeterminate', source: 'bureau' },
{ key: 'identity_verified', state: 'True', source: 'kyc_provider' },
],
policy: { threshold: 2, requiredSources: ['bureau', 'kyc_provider'] },
});
console.log(decision.state); // "True" | "False" | "Indeterminate" Full API Coverage
Every endpoint. Typed inputs, typed outputs. One client instance for the entire surface.
| Method | Description |
|---|---|
| client.resolve(request) | Single decision resolution |
| client.resolveBatch(request) | Batch resolve (up to 1000) |
| client.resolveMulti(request) | Multi-regulation resolve |
| client.getDecision(id) | Fetch decision with proofs |
| client.listDecisions(params) | Cursor-paginated listing |
| client.createVerificationToken(req) | Create vfy_ token |
| client.listVerificationTokens() | List active tokens |
| client.revokeVerificationToken(id) | Revoke a token |
| OmegaClient.verify(baseUrl, token) | Public verification (no auth) |
| client.health() | Health check |
Typed Errors
Every error is a typed class, not a string.
OmegaAuthError
Invalid or expired credentials
OmegaForbiddenError
Insufficient permissions
OmegaNotFoundError
Resource not found
OmegaBadRequestError
Invalid request payload
OmegaValidationError
Schema validation failure
OmegaRateLimitError
Rate limit exceeded
Design Principles
Zero Dependencies
Uses native fetch(). No axios, no node-fetch. Works in Node.js 18+, Deno, Bun, and browsers.
Type-Safe
Full TypeScript types mirroring the Rust API. TrileanState, Evidence, Policy, ResolveResult — all typed.
Fail-Fast
Typed error classes for every HTTP status. No silent failures, no generic catch-all errors.
Authentication
Three authentication methods. Choose the right one for your context.
| Method | Header | Use Case |
|---|---|---|
| API Key | X-API-Key: delk_... | Server-to-server, scripts, CI/CD |
| JWT Bearer | Authorization: Bearer eyJ... | User sessions, dashboard |
| Tenant ID | X-Tenant-Id: uuid | Multi-tenant isolation |
Public Verification
No authentication required. Verify any decision with a single token.
// No authentication required
const result = await OmegaClient.verify(
'https://your-instance.example.com',
'vfy_abc123...'
);
console.log(result.valid); // true
console.log(result.state); // "True"
console.log(result.decidedAt); // "2026-01-15T10:30:00Z" Available During Pilot
SDK package delivered during pilot onboarding. Start integrating from day one.