Catalog Reference
Technical notes: how catalogs are named, numbered and exchanged between Suite installations.
User guide navigation
On this page
Catalog reference
With catalogs you share document resources between tenants and Suite installations. How to work with them is in How catalogs work and Share and import catalog content.
Names
A catalog’s name has three parts: its registry, namespace and key. Within a tenant you address it as namespace/key, such as acme/letters.
- A tenant holds namespaces. They come from its Epistola Exchange connection, or a tenant administrator adds them under Settings, Authorities & namespaces.
- A catalog that is never published to Exchange can use the namespace
local. - Once a release of a catalog reaches Exchange, you can no longer change its namespace.
In the REST API every catalog resource is under /tenants/{tenantKey}/catalogs/{registry}/{namespace}/{catalogKey}/releases/{release}/…. Here {release} is next, a release id or a release number.
Versions
Only a catalog release has a version number. Templates, data contracts and stencils have none. Epistola picks the number from what changed since the release the work started from:
| Change | Version part |
|---|---|
| A resource or variant removed, a data contract that rejects input it accepted before, a variant’s attributes changed, a stencil change that breaks how templates use it, a code or allowed value removed | major |
| A resource, variant, code or optional stencil parameter added, a data contract that accepts more | minor |
| Anything else, such as a text or layout change | patch |
A publisher can raise the number, not lower it below what the change needs.
A release never changes. Each release has a release id that it keeps in every installation, and a content fingerprint (v6:…) computed from its content. Epistola refuses a release when the tenant already holds that number with other content.
Someone who does not hold a catalog’s namespace can number a fix as 1.3.1-<namespace>.<N>, such as 1.3.1-gemeente-x.1. Epistola receives such a release and orders it above the release it fixes and below the publisher’s next one. Publishing one from the Suite is not offered yet.
Dependencies
A catalog declares the catalogs it uses. Each release pins the exact release of every catalog it uses and renders with it. Over REST and MCP, Epistola refuses a resource of a catalog that is not declared, with CATALOG_NOT_DECLARED.
An export with what it uses carries the pinned releases in the same file, except the system catalog.
Which release a document uses
Generation, preview and validation requests take a versionRange and an environmentKey:
| Request | Release used |
|---|---|
| no environment, no version | the highest release (the highest version number) |
no environment, versionRange |
the highest release that matches (an exact version or a range such as ^1.4.0) |
| an environment | from what that environment serves, by the same rules |
Epistola chooses the release when it accepts the request. Documents report the version and releaseId they were rendered from. See From template to document.
Exchange format
Catalog archives use wire format v8. Compared to v7, it says key where v7 said slug, names other catalogs by an alias, and fingerprints releases by content. Epistola migrates an archive in v7 or earlier when you import it, under the registry and namespace you name.
Every release that arrives, from a ZIP file, a source URL, a registry or Exchange, goes through the same checks. Epistola recomputes its fingerprint, checks every image and font file against its declared hash, and checks that every reference resolves. If a check fails, Epistola refuses the whole release.
Registries
Releases can also move through a container registry, such as Harbor, GitLab, ACR, ECR or zot. You can use this to move a release from an acceptance installation to production. This is alpha and stays off until an operator configures epistola.catalog.registries. Epistola offers Exchange next to container registries.
Documentation
Guided tour
Exercises
Integration guides
Epistola is open source, not free of cost. The organisations that use it fund its development, through Epistola or an Official Partner. We are steward-owned: fair prices, no profit maximisation. How Epistola is funded →