Skip to content
/docs
Sdk

SDK Reference

Current TypeScript SDK exports.

The current local SDK reference is maintained on TypeScript SDK.

Current Public Exports

ImportProvides
veto-sdkVeto, protect, ToolCallDeniedError, VetoAdmin, guard, tool registration, approvals, provider adapters
veto-sdk/cliPreview CLI utilities. See CLI Preview for target grammar; do not treat receipt/MCP commands as generally available until the claims manifest marks them implemented.
veto-sdk/providers/adaptersOpenAI, Anthropic, Gemini, and MCP schema/call adapters
veto-sdk/integrations/vercel-aiVercel AI SDK middleware
veto-sdk/integrations/langchainLangChain tool wrapping
veto-sdk/integrations/openai-agentsOpenAI Agents integration
veto-sdk/integrations/browser-useBrowser Use integration
veto-sdk/rulesLocal rule utility functions
veto-sdk/kernelLocal kernel (Ollama) validation client
veto-sdk/customCustom LLM provider client
veto-sdk/compilerAST-based policy expression compiler
veto-sdk/extractorsEntity and content extraction utilities
veto-sdk/policyPolicy generation utilities
veto-receipt-protocolCanonical veto.receipt/1 schema, JCS hashing, NDJSON helpers, and chain verification

Receipt helpers

import {
  buildDecisionReceipt,
  formatReceiptNdjson,
  hashDecisionReceipt,
  parseReceiptNdjson,
  summarizeReceipt,
  verifyDecisionReceiptChain,
} from "veto-receipt-protocol";

Python receipt helpers are tracked in the claims manifest and will be documented here after the SDK package surface ships.

Examples

See Quick Start, Framework Examples, and Charter SDK.