The versioned wire protocol for Daintree Decisions: Zod schemas for
every message and API body, the canonical JSON and signing rules, the decision state machine, limits, routes and
error codes. The relay, the desktop client and the phone app all validate against it.
npm install @daintreehq/decisions-protocol
import { PROTOCOL_VERSION, ApiError, type ApiErrorBody } from '@daintreehq/decisions-protocol';
The normative description is docs/protocol.md.
Machine-readable copies ship with the package as @daintreehq/decisions-protocol/openapi.json and
@daintreehq/decisions-protocol/schemas.json.
ESM only, Node 22+, browsers and Cloudflare Workers. Apache-2.0.