@anchrd/intel-contract
v0.8.0
Published
The shared wire contract for [`@anchrd/intel-api`](https://www.npmjs.com/package/@anchrd/intel-api): Zod schemas that describe every payload crossing Intel's HTTP, MCP and browser surfaces.
Readme
@anchrd/intel-contract
The shared wire contract for @anchrd/intel-api: Zod
schemas that describe every payload crossing Intel's HTTP, MCP and browser surfaces.
You rarely install this directly — the server and the UI both depend on it. Reach for it when you write your own client against the Intel HTTP API and want the same types and validation the server uses.
Install
npm install @anchrd/intel-contractUse
import { CreateNodeInput, Node } from "@anchrd/intel-contract";
const input = CreateNodeInput.parse(payload);
const node = Node.parse(await response.json());Mutation inputs are strict: an unknown field is rejected rather than silently dropped, so a typo in
a client never becomes a value that quietly fails to apply. Types are inferred from the schemas, so
z.infer gives you the same shape the server validates against.
License
Proprietary. Published publicly for installation convenience; this is not an open-source license and grants no right to use, copy, modify or redistribute the software. Contact Anchrd for licensing.
