@kenresoft-cms/contracts
v0.9.0
Published
Zod schemas and API contract shared between Kenresoft CMS's API Worker and Admin Worker.
Readme
@kenresoft-cms/contracts
Official documentation: guides, tutorials and troubleshooting live at https://docs.kenresoft.com/cms/. Public API guide: https://docs.kenresoft.com/cms/developer/public-api/.
Zod schemas and shared TypeScript types for the Kenresoft CMS API — the same contract used by the API Worker's request/response validation and the Admin Worker's UI. Published so the Admin Worker can be installed as a standalone Cloudflare Worker without checking out the full monorepo.
This package is a component of Kenresoft CMS and is not meant to be used as a general-purpose, standalone library outside of it — its schemas track that project's API surface directly and will change without a stability guarantee independent of it.
import { ROLE_RANK, roleAtLeast } from '@kenresoft-cms/contracts/schemas/enums';See the main repository for documentation.
