@leashmarket/schemas
v0.2.4
Published
Zod source of truth for **ReceiptV1**, **RulesV1**, **LeashBlockV1**, **RegistrationV1**, **EndpointV1**, and Leash identity shapes such as **IdentityProfileV1**, **IdentityVerificationDecisionV1**, and **IdentityDisclosureV1**. JSON Schema exports land u
Readme
@leashmarket/schemas
Zod source of truth for ReceiptV1, RulesV1, LeashBlockV1,
RegistrationV1, EndpointV1, and Leash identity shapes such as
IdentityProfileV1, IdentityVerificationDecisionV1, and
IdentityDisclosureV1. JSON Schema exports land under dist/schemas/ after
build.
Install
npm install @leashmarket/schemas
# or
pnpm add @leashmarket/schemasUsage
import {
IdentityVerificationDecisionSchema,
ReceiptV1Schema,
RulesV1Schema,
} from '@leashmarket/schemas';
// Validate a receipt at runtime
const receipt = ReceiptV1Schema.parse(untrustedJson);
// Validate an agent-to-agent trust verdict
const decision = IdentityVerificationDecisionSchema.parse(untrustedDecisionJson);JSON Schema files ship at @leashmarket/schemas/dist/schemas/*.json for use in OpenAPI validators, JSON Schema validators, and LLM tool definitions.
Docs
Build (monorepo)
pnpm --filter @leashmarket/schemas build