@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 Record
  • AdrRecordZ — HCES-1 Authority Delegation Record
  • AuthorityScoreResultZ — AuthorityScore benchmark outcome
  • AssessmentSessionZ, AssessmentLeadZ — assessment flow state
  • BadgePayloadZ, SignedBadgeZ — Powered-by-AuthorityScore badge payload

Install

npm install @authorityrail/shared-eai-types

Use

import { CarPayloadZ } from "@authorityrail/shared-eai-types";

const record = CarPayloadZ.parse(input);

License

MIT — AuthorityRail Standards Foundation.