TypeScript SDK
packages/attest-ts — @attestlayer/sdk. Same contract, ledger format and hash chain as Python; a test fixture
generated by the Python SDK asserts byte-identical canonical JSON and hashes.
import { Attest } from "@attestlayer/sdk";
const at = new Attest({ agent: "followup-agent@v3", readers: { gmail: GMAIL_TOKEN, hubspot: HUBSPOT_TOKEN } });
const send = at.wrap({ system: "gmail", verb: "send", target: "to" }, async ({ to, subject, body }) => gmail.send(...));
Adapters: @attestlayer/sdk/adapters/vercel (attestedTools), /langchain (wrapTools for LangChain.js tools),
/mastra (wrapTools for createTool). Gates: console, auto, store (block / pending), cloud. Read-back:
convention driver for any REST API, recipes for Gmail / Slack / HubSpot (the rest of the recipe catalogue is
Python-only for now). See the package README for the full API.