@authorityrail/shared-eai-types
v0.1.0
Published
Shared EAI schemas — CAR, ADR, AuthorityScore, assessment session, badge payload. TypeScript types + Zod runtime validators.
Readme
@authorityrail/shared-eai-types
TypeScript types and Zod runtime validators for the AuthorityRail Execution Authority Infrastructure (EAI) stack.
Every schema here is enforced at runtime across services, the site, and SDKs. No action executes without authority; no record is written without passing these schemas.
Schemas
CarPayloadZ,SignedCarZ— CAR-v1 Canonical Authority RecordAdrRecordZ— HCES-1 Authority Delegation RecordAuthorityScoreResultZ— AuthorityScore benchmark outcomeAssessmentSessionZ,AssessmentLeadZ— assessment flow stateBadgePayloadZ,SignedBadgeZ— Powered-by-AuthorityScore badge payload
Install
npm install @authorityrail/shared-eai-typesUse
import { CarPayloadZ } from "@authorityrail/shared-eai-types";
const record = CarPayloadZ.parse(input);License
MIT — AuthorityRail Standards Foundation.