<340 ns Per decision
<600 ps Logical op
2.9M/sec Throughput
On-premise native No cloud runtime

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.

resolve.ts
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.

401

OmegaAuthError

Invalid or expired credentials

403

OmegaForbiddenError

Insufficient permissions

404

OmegaNotFoundError

Resource not found

400

OmegaBadRequestError

Invalid request payload

422

OmegaValidationError

Schema validation failure

429

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.

verify.ts
// 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.