Skip to content

Developers / SDKs

SDKs

Typed clients for intent submission, authority evaluation, Authority Token verification, and escalation handling. Available for TypeScript, Python, and Go.

SDK catalog

@intended/sdk

Generally Available

TypeScript / Node.js

Full-featured client for the Intended API. Intent submission, execution pipeline, escalation handling, audit queries, and policy management.

npm install @intended/sdk

  • Full execution pipeline
  • Typed API responses
  • Automatic retry with backoff
  • Escalation polling
  • Audit chain queries

@intended/verify

Generally Available

TypeScript / Node.js

Lightweight token verification library. RS256 signature validation, claim checking, nonce verification. Zero dependencies beyond Node.js crypto.

npm install @intended/verify

  • RS256 signature validation
  • Claim integrity checks
  • Nonce consumption tracking
  • Expiry verification
  • Required claim matching

@intended/enforce

Generally Available

TypeScript / Node.js

Enforcement SDK for decision request/enforcement flows. Request authority, handle escalations, and execute with tokens in a single workflow.

npm install @intended/enforce

  • Decision request flow
  • Escalation wait/poll
  • Token-gated execution
  • Retry with authority
  • Webhook integration

@intended/cli

Generally Available

CLI

Command-line interface for verify, simulate, deploy-policy, and inspect-token workflows. Useful for CI/CD integration and operator workflows.

npm install -g @intended/cli

  • Intent simulation
  • Token inspection
  • Policy deployment
  • Audit chain verification
  • Evidence export

meritt-python

Staged

Python

Python client for the Intended API. Intent submission, token verification, and audit queries for Python-based AI agent frameworks.

pip install meritt

  • Intent submission
  • Token verification
  • Audit queries
  • LangChain integration
  • Async support

meritt-go

Staged

Go

Go client for the Intended API. Designed for infrastructure tooling, Kubernetes operators, and Go-based automation systems.

go get github.com/meritt/meritt-go

  • Intent submission
  • Token verification
  • Context-aware timeouts
  • gRPC-ready types

SDK examples

typescript
import { MerittClient } from "@intended/sdk";

const meritt = new MerittClient({
  apiKey: process.env.INTENDED_API_KEY,
});

// Full execution pipeline
const result = await meritt.execute({
  action: "deployment.trigger",
  target: "service-payments",
  environment: "production",
  adapter: "github-actions",
});

// result.decision.outcome → "AUTHORIZED"
// result.token.jwt → "eyJhbGci..."
// result.execution.status → "executed"
// result.audit.hash → "sha256:a1b2c3..."
@intended/sdk — full execution pipeline in TypeScript.
typescript
import { MerittEnforce } from "@intended/enforce";

const enforce = new MerittEnforce({
  apiKey: process.env.INTENDED_API_KEY,
});

// Request authority decision
const decision = await enforce.requestDecision({
  action: "database.migrate",
  target: "service-payments",
  environment: "production",
});

if (decision.outcome === "ESCALATED") {
  // Wait for human approval
  const approved = await enforce.waitForApproval(decision.id, {
    timeout: 300_000, // 5 minutes
  });
  if (!approved) throw new Error("Approval timeout");
}

// Execute with authority
await enforce.executeWithToken(decision.token);
@intended/enforce — decision request with escalation handling.
typescript
import { verifyAuthorityToken } from "@intended/verify";

const result = await verifyAuthorityToken(token, {
  publicKey: tenantPublicKey,
  requiredClaims: {
    action: "deployment.trigger",
    target: "service-payments",
  },
});

if (!result.valid) {
  throw new Error(`Authority denied: ${result.reason}`);
}
@intended/verify — independent Authority Token verification.