Camunda API Zod schemas
@camunda/camunda-api-zod-schemas is a community-driven open-source
package that provides Zod schemas and TypeScript
types for the Camunda 8 REST API. It helps developers build robust,
type-safe applications when interacting with Camunda 8.
Official Camunda 8 REST API reference: docs.camunda.io.
Inside this monorepo, the package is consumed directly via the npm
workspace by @camunda/orchestration-cluster-webapp, and via published
versions by the legacy operate/client, tasklist/client, and
identity/client frontends.
Installation
# pnpm
pnpm add @camunda/camunda-api-zod-schemas
# npm
npm install @camunda/camunda-api-zod-schemas
# yarn
yarn add @camunda/camunda-api-zod-schemas
Usage
The library exports modules that correspond to the different parts of
the Camunda API. Import schemas and types from the main package or from
a specific version sub-module — @camunda/camunda-api-zod-schemas/8.8,
/8.9, or /8.10.
For the full list of exported schemas and types, refer to the source
under packages/camunda-api-zod-schemas/lib/ — for example
packages/camunda-api-zod-schemas/lib/8.8/index.ts.
Publishing a new version
- Increment the version in the
camunda-api-zod-schemaspackage.json(this is manual for now; we plan to automate it in the future), update the dependency version in any consumer npm workspace packages, runnpm i, and push the changes tomain. - Run the Publish Zod Schemas to npm
GitHub Action.
- The dry-run option is enabled by default. Uncheck it to publish the new version.
- Update the
@camunda/camunda-api-zod-schemasdependency version in Operate, Admin, and Tasklist.
When the schema update is part of a new feature
- Update the schema and changelog, increment the version in
package.json, and open a PR. - Merge the PR to
main. - Immediately publish the new version from
mainusing the GitHub Action above. - Open follow-up PRs in Operate, Tasklist, and Admin bumping
@camunda/camunda-api-zod-schemasto the new version. - Use the updated schema in the feature PR.