Schema DSL
Overview
The schema DSL describes ObjectTypes, LinkTypes, properties, enumerations, and actions in version-controlled TypeScript. Compile the schema before deployment so contract errors are caught locally.
Main concepts
| Concept | Purpose |
|---|---|
| ObjectType | Business object and its typed properties |
| LinkType | Typed relationship between ObjectTypes |
| Enum | Closed set of accepted values |
| Action | Governed operation with inputs, preconditions, risk, and execution mode |
Primitive property types include string, number, boolean, date, datetime, arrays, and references. Modifiers define required, indexed, unique, default, and semantic behavior.
Safe workflow
- Define the schema in TypeScript.
- Compile it into a manifest.
- Review the generated differences.
- Deploy to the selected workspace.
- Regenerate client types.
See Plans and actions and Error codes.