openapi: 3.0.0 paths: /health: get: description: Liveness, for orchestrators deciding whether to restart the instance; needs no token. Always 200 while the server runs (content and PDF routes work without the database); `database` is `unavailable` when it does not answer within 2 seconds. A load balancer choosing instances to route to uses `/health/ready`. operationId: Health_check parameters: [] responses: "200": description: "" content: application/json: schema: $ref: "#/components/schemas/Health" summary: Health check tags: - health x-audience: delivery security: [] /assets/{hash}: get: description: "With `width` (320, 640 or 1280): the image as a WebP at most that wide (never upscaled; at most four times as tall), made on first request and kept in the blob store, after the same checks as the original (404 where the original is 404); a file other than a PNG, JPEG, GIF or WebP image has none (400). Images are content-addressed: modules refer to them as `sha256:`, and the bytes live in the blob store (older content: `assets/` in the repository). Only an image a module the reader may see refers to is served; any other is 404, like a missing one. Streamed with the stored type (sniffed for the old layout), `X-Content-Type-Options: nosniff` and a sandboxing `Content-Security-Policy`, so author-supplied SVGs can never run scripts; a type other than an image is sent as an attachment. A file an attachment block the reader may see attaches is always a download (`Content-Disposition: attachment` with an RFC 8187 `filename*`), under the file name of the first such block that fits the stored type, else the hash. Cached like every content route: `private, max-age=31536000, immutable` when `?ref=` is a commit ID, else `private, no-cache` with an ETag (who may see an image can change, its bytes cannot)." operationId: Assets_read parameters: - name: hash required: true in: path description: SHA-256 of the file, 64 hex characters. schema: type: string pattern: ^[a-f0-9]{64}$ - name: width required: false in: query description: "A rendition instead of the file: a WebP at most this many pixels wide (320, 640, 1280), never upscaled. Only for PNG, JPEG, GIF and WebP images." schema: type: string enum: - "320" - "640" - "1280" - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": description: The image or attached file, with its stored type (any type for an attachment). content: image/*: schema: type: string format: binary application/octet-stream: schema: type: string format: binary headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string "304": description: The `If-None-Match` ETag is still current. "400": description: "Not a SHA-256 hash; `invalid-parameter` (`source.parameter` `width`): a width other than 320, 640 or 1280, or a rendition of a file that has none (SVG, anything but PNG, JPEG, GIF and WebP)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "With `width`: `too-large`, the image has more pixels (`meta.maxPixels`) or bytes (`meta.max`) than a rendition is made of; `unprocessable-image`, it cannot be decoded within the limits. Use the original." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "503": description: "`blob-store-unavailable`; with `width`, `rendition-busy`: too many renditions are being made (`Retry-After`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Read an image tags: - assets x-audience: delivery x-required-permission: content.read /symbols/{id}: get: description: "The artwork of a configured safety symbol (`safetySymbols` in `GET /config`): `symbols/.png` or `symbols/.svg` (the PNG when both exist, as the PDF picks), in the repository at `?ref=`, as the PDF prints it. Symbols are configuration, so every reader of the ref may read them. 404 when the ID is not configured or has no artwork (the PDF prints a grey placeholder then, the HTML leaves the symbol out); 422 `invalid-content` when the bytes are not what the extension says (an `.svg` that is no SVG, a `.png` that is no PNG): the type is always read from the bytes. Served as the image routes serve images: `Content-Disposition: inline`, `X-Content-Type-Options: nosniff` and a sandboxing `Content-Security-Policy`, so an SVG can never run a script; show it as an image, never inline its markup. Cached like every content route: `private, max-age=31536000, immutable` when `?ref=` is a commit ID, else `private, no-cache` with an ETag." operationId: Symbols_read parameters: - name: id required: true in: path description: The safety symbol’s configured ID. schema: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ example: w001 - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": description: The artwork, as SVG or PNG. content: image/svg+xml: schema: type: string format: binary image/png: schema: type: string format: binary headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string "304": description: The `If-None-Match` ETag is still current. "400": description: Not a configuration key; `unsupported-parameter` for a query parameter other than `ref`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: the file’s bytes are not the image its extension names." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Read a safety symbol’s artwork tags: - assets x-audience: delivery x-required-permission: content.read /refs: get: description: Branches, then tags, each with the commit it points to. Without `content.read.draft`, only `main` and the tags. operationId: Project_refs parameters: - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/RefPageDocument" "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Branches and tags tags: - project x-audience: delivery x-required-permission: content.read /config: get: description: "Languages, audiences, module types, variant attributes and safety symbols (`openfolia.yaml`). With an iiRDS mapping (`iirds`), `meta.iirdsIssues` checks it against the rest: what it leaves unmapped, keys naming nothing; with a DITA mapping (`dita`), `meta.ditaIssues` lists its values naming nothing configured; `meta.directionIssues` lists each `languages.direction` entry for a language not configured." operationId: Project_config parameters: - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ProjectConfigDocument" "304": description: The `If-None-Match` ETag is still current. "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Project configuration tags: - project x-audience: delivery x-required-permission: content.read /modules: get: description: The modules the reader may see, ordered by language and ID (or `sort`), filtered on the module index before paging (the total counts only those), each with its status in `meta.status` and where it is used in `meta.usedIn` and `meta.usage` (only manuals and modules the reader may see). A module file that cannot be read is listed with its error to a reader of everything in its language; a filter on metadata or status leaves it out. operationId: Modules_list parameters: - name: filter[lang] required: false in: query description: Only modules in this language. schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ - name: filter[type] required: false in: query description: Only modules of this module type. schema: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ - name: filter[audience] required: false in: query description: "Only modules that count as this audience level: their own, or the last, most restricted level for a module naming none, as manuals and the access check place it. A level the configuration does not list matches nothing, and a module naming such a level matches no level." schema: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ - name: filter[facet] required: false in: query description: "Only modules with this facet value, as `:` (e.g. `region:north`). Repeat it for several, at most 32: a module has to have every one." schema: anyOf: - type: string - type: array items: type: string style: form explode: true - name: filter[keyword] required: false in: query description: "Only modules with this keyword, case and diacritics aside (`Wärme` is `warme`); 1 to 64 characters, no comma. Repeat it for several, at most 32: a module has to have every one." schema: anyOf: - type: string - type: array items: type: string style: form explode: true - name: filter[product] required: false in: query description: Only modules with this value of the product facet (`release.productFacet` in the configuration, else the first facet), as releases name products; none when there is no facet. schema: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ - name: filter[status] required: false in: query description: "Only modules that stand so (`meta.status`): `released` (the newest release holding the module holds exactly this file), `changed` (a release holds it, but this file differs), `unreleased` (none of the 50 newest releases holds it) or `in-change-set` (an open change set the reader may read changes it; none for a reader who is not told of change sets)." schema: type: string enum: - released - changed - unreleased - in-change-set - name: sort required: false in: query description: "Comma-separated fields (`id`, `lang`, `title`, `type`, `usage`; `usage` is the count of manuals and modules using it), each `-`-prefixed for descending, each at most once; ties by language, then ID. A file that cannot be read sorts after the rest by title and type. Default: `lang,id`." schema: type: string - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ModulePageDocument" "304": description: The `If-None-Match` ETag is still current. "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List modules tags: - modules x-audience: delivery x-required-permission: content.read /modules/{lang}/{id}: get: description: "One module in one language, with the problems found checking it against the project configuration, its status (`meta.status`: the newest release holding it, `main`, the open change sets changing it), derived from Git, and where it is used (`meta.usedIn`, `meta.usage`: only manuals and modules the reader may see)." operationId: Modules_read parameters: - name: lang required: true in: path schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ example: en - name: id required: true in: path schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ example: battery-charging - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ModuleDocument" "304": description: The `If-None-Match` ETag is still current. "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Read a module tags: - modules x-audience: delivery x-required-permission: content.read /modules/{lang}/{id}/history: get: description: "The commits on `?ref=`’s first-parent line (of the 1,000 newest) after which the module, as the reader sees it there, differs from before, newest first: a merged change set, or a save point on a change set’s branch. Each with who made it, the change set and the approvers (as the commit’s trailers claim), its revision number counted from the oldest, and the release tags holding exactly that file. A version the reader may not see is no file to them, so it is not listed (one moving the module out of their scope is a removal). A module outside the reader’s scope at the ref is 404, exactly like a missing one; a module deleted at the ref keeps its history, its newest version the removal. Reading an older version itself needs what reading its commit needs (`GET /modules/{lang}/{id}/compare`, `?ref=`). Restoring one is an edit in a change set (see the README, “Module history”)." operationId: ModuleHistory_history parameters: - name: lang required: true in: path schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ example: en - name: id required: true in: path schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ example: battery-charging - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ModuleVersionPageDocument" "304": description: The `If-None-Match` ETag is still current. "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List a module’s versions tags: - modules x-audience: delivery x-required-permission: content.read /modules/{lang}/{id}/compare: get: description: "The module at both versions and how it changed, block by block, in the shape of a change set’s changes (`meta.change`, `meta.fields`, `meta.blocks`), so the review screen’s diff renders it. Each side is read as reading its commit needs: a released commit (`main`’s head, a release tag) with `content.read`, any other, also an older commit of `main`, with `content.read.draft`, else 404 as for a ref that does not exist. Each side shows the module only as the reader would see it on the other too; a side where it is not there is `added` or `removed`; 404 when neither has it." operationId: ModuleCompare_compareVersions parameters: - name: lang required: true in: path schema: type: string minLength: 1 maxLength: 64 example: en - name: id required: true in: path schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ example: battery-charging - name: base required: true in: query description: "The older version: a commit ID or a tag." schema: type: string minLength: 1 maxLength: 256 - name: head required: true in: query description: "The newer version: a commit ID or a tag." schema: type: string minLength: 1 maxLength: 256 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ModuleComparisonDocument" "400": description: "`invalid-parameter`: `base` or `head` is missing or given twice." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: A side names no commit the reader may open, or the module is on neither side. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: A file needed for the answer is broken (the configuration); `meta.path` names it. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Compare two versions of a module tags: - modules x-audience: delivery x-required-permission: content.read /manuals: get: description: The manuals the reader may see (their audience within its scope), ordered by ID. One whose manifest cannot be read is listed with its error to a reader of every audience. operationId: Manuals_list parameters: - name: filter[status] required: false in: query description: "`current` (the default): the manuals there; `deleted`: the manuals deleted on the ref's first-parent line (among its newest 1000 commits) that have no manifest now, each from its last manifest the reader may see (`meta.deleted`; one outside their scope is never listed), each with a history to open (`GET /manuals/{id}/history`). Without `content.read.draft`, only those whose last manifest released content (`main`’s head, a release tag) holds exactly, from that manifest as the reader reads it there. `any`: both, in one list." schema: type: string enum: - current - deleted - any - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ManualPageDocument" "304": description: The `If-None-Match` ETag is still current. "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List manuals tags: - manuals x-audience: delivery x-required-permission: content.read /manuals/{id}: get: description: The manifest, the variants it is published in (with the slugs the other manual routes take) and the problems found in it. operationId: Manuals_read parameters: - name: id required: true in: path schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ example: operating - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ManualDocument" "304": description: The `If-None-Match` ETag is still current. "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Read a manual definition tags: - manuals x-audience: delivery x-required-permission: content.read /manuals/{id}/variants/{variant}/{lang}: get: description: "The manual assembled for one listed variant and a configured language: conditions applied, module references inlined, text attributes filled in (one the variant has no value for stays an `attribute` node, reported as `missing-text-attribute`), modules the reader may not see left out (an `outside-scope` issue each, for `content.read.draft` holders). Missing translations fall back to the source language and are reported as issues." operationId: Manuals_resolve parameters: - name: id required: true in: path schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ example: operating - name: variant required: true in: path description: Variant slug as listed by `GET /manuals/{id}`, e.g. `model=large`. schema: type: string minLength: 1 maxLength: 500 description: Variant slug as listed by `GET /manuals/{id}`, e.g. `model=large`. example: model=large - name: lang required: true in: path schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ example: en - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ResolvedManualDocument" "304": description: The `If-None-Match` ETag is still current. "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps). `expansion-too-large`: once its module references are included the manual holds more than 500,000 content nodes, 12,000,000 characters or 1,000,000 table cells (rows × columns) (a module referred to over several paths counts once per path), or its blocks and references nest more than 100 deep, so nothing of it is made (`meta.nodes`, `meta.chars`, `meta.tableCells`, `meta.depth`: the limits)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Resolve a manual tags: - manuals x-audience: delivery x-required-permission: content.read /manuals/{id}/history: get: description: "As a module’s history (`GET /modules/{lang}/{id}/history`), of the manual’s manifest (`manuals/.yaml`): the commits on `?ref=`’s first-parent line (of the 1,000 newest) after which the manual, as the reader sees it there (by its audience), differs from before, newest first, each with who made it, the change set and the approvers (as the commit’s trailers claim), its revision number counted from the oldest, and the release tags holding exactly that manifest. A manual outside the reader’s scope at the ref is 404, exactly like a missing one; a manual deleted at the ref keeps its history, its newest version the removal. Reading an older version itself needs what reading its commit needs (`GET /manuals/{id}/compare`, `GET /manuals/{id}?ref=`): so a reader without `content.read.draft` is listed only the versions released content holds (`main`’s head, else a release tag holding exactly that manifest), each with the released commit to read it at (`meta.readAt`); a manual with versions but none released is 404 to them. Restoring one is an edit in a change set (see the README, “Manual history”)." operationId: ManualHistory_history parameters: - name: id required: true in: path schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ example: operating - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ManualVersionPageDocument" "304": description: The `If-None-Match` ETag is still current. "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List a manual’s versions tags: - manuals x-audience: delivery x-required-permission: content.read /manuals/{id}/compare: get: description: "The manual at both versions and the members of its manifest that differ (`meta.change`, `meta.fields`), so the review screen’s manual diff renders it. Each side is read as reading its commit needs: a released commit (`main`’s head, a release tag) with `content.read`, any other, also an older commit of `main`, with `content.read.draft`, else 404 as for a ref that does not exist. Each side shows the manual only as the reader would see it on the other too (its audience, and only the modules a manifest may name to them on both); a side where it is not there is `added` or `removed`; 404 when neither has it." operationId: ManualCompare_compareVersions parameters: - name: id required: true in: path schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ example: operating - name: base required: true in: query description: "The older version: a commit ID or a tag." schema: type: string minLength: 1 maxLength: 256 - name: head required: true in: query description: "The newer version: a commit ID or a tag." schema: type: string minLength: 1 maxLength: 256 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ManualComparisonDocument" "400": description: "`invalid-parameter`: `base` or `head` is missing or given twice." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: A side names no commit the reader may open, or the manual is on neither side. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: A file needed for the answer is broken (the configuration); `meta.path` names it. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Compare two versions of a manual tags: - manuals x-audience: delivery x-required-permission: content.read /manuals/{id}/variants/{variant}/{lang}/pdf: get: description: The resolved manual typeset with the repository's template (or the built-in one), tagged and conforming to PDF/UA-1 unless `pdf.standard` in `openfolia.yaml` is `none`. Cached per commit; the first request for a commit renders it. operationId: ManualPdf_pdf parameters: - name: id required: true in: path schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ example: operating - name: variant required: true in: path description: Variant slug as listed by `GET /manuals/{id}`, e.g. `model=large`. schema: type: string minLength: 1 maxLength: 500 description: Variant slug as listed by `GET /manuals/{id}`, e.g. `model=large`. example: model=large - name: lang required: true in: path schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ example: en - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": description: The PDF. content: application/pdf: schema: type: string format: binary headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string X-Ccms-Issues: description: How many issues resolving the manual found. schema: type: integer "304": description: The `If-None-Match` ETag is still current. "400": description: Malformed manual ID, variant slug or language. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `pdf-accessibility`: the manual cannot meet the configured PDF standard (`pdf.standard`, PDF/UA-1 by default); the error's `meta.problems` has the renderer's reasons (`message`, `hints`). `render-timeout`: the document takes too long to render. `expansion-too-large`: once its module references are included the manual holds more than 500,000 content nodes, 12,000,000 characters or 1,000,000 table cells (rows × columns) (a module referred to over several paths counts once per path), or its blocks and references nest more than 100 deep, so nothing of it is made (`meta.nodes`, `meta.chars`, `meta.tableCells`, `meta.depth`: the limits)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "500": description: Compiling failed; the error's `meta.diagnostics` has the compiler's messages. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "503": description: The renderer is busy or the server is shutting down; `Retry-After` says when to try again. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Render a manual as PDF tags: - manuals x-audience: delivery x-required-permission: content.read /modules/{lang}/{id}/preview: get: description: "One module in one language as a page for the editor’s live preview, with the conditions inside it applied for `variant`. Read like every other module read: `?ref=` may name a branch (a change set’s, for its author), and a module the reader may not see is 404, exactly like a missing one. The editor’s view: a page break shows as a marker labelled “Page break (PDF)”, and a text attribute (`{product-name}`), which a module on its own has no value for, as a chip with the attribute’s label, titled “Not set for this preview”." operationId: ModulePreview_preview parameters: - name: lang required: true in: path schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ example: en - name: id required: true in: path schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ example: battery-charging - name: variant required: false in: query description: "The variant to apply the module’s conditions for, as a slug (`model=large,software=2.3`; attributes and values as configured). Default: none set, so a condition on a variant attribute does not hold." schema: type: string maxLength: 500 - name: theme required: false in: query description: Colour scheme. `auto` (default) follows the viewer’s `prefers-color-scheme`; `light` and `dark` force one. schema: default: auto type: string enum: - auto - light - dark description: Colour scheme. `auto` (default) follows the viewer’s `prefers-color-scheme`; `light` and `dark` force one. - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": description: "A complete HTML page (`@openfolia/render-html`) linking the theme and the renderer’s stylesheet, served with `Content-Security-Policy` (no script; styles, images and fonts from this origin; `frame-ancestors` this origin and `CCMS_EDITOR_ORIGINS`) and `X-Content-Type-Options: nosniff`. Images are `GET /assets/:sha256` and safety symbols `GET /symbols/:id` (those with artwork; the configured label as the text alternative), at the same `?ref=`. Cached like every content route." content: text/html: schema: type: string headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string Content-Security-Policy: description: No script; see the route. schema: type: string X-Ccms-Issues: description: How many issues resolving found that the reader may see. schema: type: integer "304": description: The `If-None-Match` ETag is still current. "400": description: Malformed ID, language, variant or theme. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header does not take `text/html`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps). `expansion-too-large`: once its module references are included the manual holds more than 500,000 content nodes, 12,000,000 characters or 1,000,000 table cells (rows × columns) (a module referred to over several paths counts once per path), or its blocks and references nest more than 100 deep, so nothing of it is made (`meta.nodes`, `meta.chars`, `meta.tableCells`, `meta.depth`: the limits)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Preview a module as HTML tags: - modules x-audience: delivery x-required-permission: content.read /manuals/{id}/variants/{variant}/{lang}/html: get: description: "The resolved manual for one of its published variants as a page: the title, a table of contents and every module, as in the PDF. Read like the PDF and the resolved manual: scope and audience apply, and a manual, variant or language the reader may not have is 404, exactly like a missing one." operationId: ManualHtml_html parameters: - name: id required: true in: path schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ example: operating - name: variant required: true in: path description: Variant slug as listed by `GET /manuals/{id}`, e.g. `model=large`. schema: type: string minLength: 1 maxLength: 500 description: Variant slug as listed by `GET /manuals/{id}`, e.g. `model=large`. example: model=large - name: lang required: true in: path schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ example: en - name: theme required: false in: query description: Colour scheme. `auto` (default) follows the viewer’s `prefers-color-scheme`; `light` and `dark` force one. schema: default: auto type: string enum: - auto - light - dark description: Colour scheme. `auto` (default) follows the viewer’s `prefers-color-scheme`; `light` and `dark` force one. - name: view required: false in: query description: "`reader` (default): the HTML readers get. `editor`: the editor’s preview of it, which also shows each page break as a marker labelled “Page break (PDF)”." schema: default: reader type: string enum: - reader - editor description: "`reader` (default): the HTML readers get. `editor`: the editor’s preview of it, which also shows each page break as a marker labelled “Page break (PDF)”." - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": description: "A complete HTML page (`@openfolia/render-html`) linking the theme and the renderer’s stylesheet, served with `Content-Security-Policy` (no script; styles, images and fonts from this origin; `frame-ancestors` this origin and `CCMS_EDITOR_ORIGINS`) and `X-Content-Type-Options: nosniff`. Images are `GET /assets/:sha256` and safety symbols `GET /symbols/:id` (those with artwork; the configured label as the text alternative), at the same `?ref=`. Cached like every content route." content: text/html: schema: type: string headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string Content-Security-Policy: description: No script; see the route. schema: type: string X-Ccms-Issues: description: How many issues resolving found that the reader may see. schema: type: integer "304": description: The `If-None-Match` ETag is still current. "400": description: Malformed manual ID, variant slug, language, theme or view. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header does not take `text/html`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps). `expansion-too-large`: once its module references are included the manual holds more than 500,000 content nodes, 12,000,000 characters or 1,000,000 table cells (rows × columns) (a module referred to over several paths counts once per path), or its blocks and references nest more than 100 deep, so nothing of it is made (`meta.nodes`, `meta.chars`, `meta.tableCells`, `meta.depth`: the limits)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Render a manual as HTML tags: - manuals x-audience: delivery x-required-permission: content.read /preview/fonts/{name}: get: description: A theme font; see `GET /preview/{name}`. operationId: PreviewFiles_font parameters: - name: name required: true in: path schema: example: Geist-Variable.woff2 type: string responses: "200": content: font/woff2: schema: type: string format: binary description: "" "304": description: The `If-None-Match` ETag is current. "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: No such file. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: A font of the preview pages tags: - preview x-audience: delivery /preview/{name}: get: description: "`theme.css` (the theme’s CSS variables), `theme-dark.css` (its dark values on `:root`, linked for `theme=auto` under `prefers-color-scheme: dark`), `render-html.css` (the renderer’s) and `page.css` (the page’s own background). Revalidated with an ETag of the bytes." operationId: PreviewFiles_stylesheet parameters: - name: name required: true in: path schema: example: render-html.css type: string responses: "200": content: text/css: schema: type: string description: "" "304": description: The `If-None-Match` ETag is current. "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: No such file. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: A stylesheet of the preview pages tags: - preview x-audience: delivery /search: get: description: "Modules by title, keywords, FAQ questions and text, manuals by title, and terms (one result per term and language) by their preferred variant (as the title), their allowed and forbidden variants (as keywords) and their definition (as text), among what the reader may see, at `?ref=`. Case and diacritics do not matter, and every word of the query is found anywhere in a title, in the keywords, in one FAQ question or in one block. With the Postgres search (the default) a word is found in any of its forms in the content’s language too (`starting` finds `starts`), and with a typo in a title or keyword; with an embedder configured, by meaning too (`meta.matchedOn: meaning`, after every word match). Title matches come first, then keyword matches, FAQ question matches (`meta.matchedOn: question`) and text matches, each ranked by how well they match in all of those ways. The filters run before paging, and the total counts only results the reader may see. A module filter (type, audience, facet, keyword) leaves manuals and terms out; with one, `filter[q]` may be left out, and every module the filters let through is a result (`meta.matchedOn: filter`), ordered by title. A filter value the configuration does not know matches nothing (no error). The excerpt is plain text with the match offsets in `meta`. Limits: each reader (a person or a service account) may search `CCMS_SEARCH_PER_MINUTE` times a minute on a server (default 120; past it 429 `rate-limited`), and a search has `CCMS_SEARCH_TIMEOUT_MS` in the database for all its statements together (default 5 s; past it 503 `database-timeout`); both answers carry `Retry-After`." operationId: Search_search parameters: - name: filter[q] required: false in: query description: What to search for, 1 to 200 characters after trimming. Every word has to match, in the title, in the keywords or in one block's text; case and diacritics do not matter. Required unless a module filter (`filter[type]` as a module type, `filter[audience]`, `filter[facet]`, `filter[keyword]`) is given. schema: type: string minLength: 1 maxLength: 200 - name: filter[lang] required: false in: query description: Only modules and terms in this language (manuals have none, so they are left out). schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ - name: filter[resourceType] required: false in: query description: Only `Module`, only `Manual` or only `Term` results (as in `attributes.resourceType`; `module`, `manual` and `term` too). schema: type: string enum: - module - manual - term - Module - Manual - Term - name: filter[type] required: false in: query description: Only modules of this module type (a configured key, e.g. `procedure`); manuals are left out. **Deprecated meaning:** without `filter[resourceType]`, the values `module` and `manual` still mean `filter[resourceType]`, as they did before it; use `filter[resourceType]` for that. schema: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ - name: filter[audience] required: false in: query description: "Only modules that count as this audience level: their own, or the last, most restricted level for a module naming none, as manuals and the access check place it. A level the configuration does not list matches nothing, and a module naming such a level matches no level." schema: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ - name: filter[facet] required: false in: query description: "Only modules with this facet value, as `:` (e.g. `region:north`). Repeat it for several, at most 32: a module has to have every one." schema: anyOf: - type: string - type: array items: type: string style: form explode: true - name: filter[keyword] required: false in: query description: "Only modules with this keyword, case and diacritics aside (`Wärme` is `warme`); 1 to 64 characters, no comma. Repeat it for several, at most 32: a module has to have every one." schema: anyOf: - type: string - type: array items: type: string style: form explode: true - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/SearchPageDocument" "304": description: The `If-None-Match` ETag is still current. "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "429": description: "`rate-limited`: more searches this minute than `CCMS_SEARCH_PER_MINUTE` allows the reader on this server, or two of the reader’s searches are in progress already (`Retry-After: 1`); `Retry-After` (and `meta.retryAfter`) says when to try again." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "503": description: "`database-timeout`: the search took longer in the database than `CCMS_SEARCH_TIMEOUT_MS` (all its statements together) and was stopped. `search-busy`: as many searches as `CCMS_SEARCH_CONCURRENCY` allows ran at once on this server, and this one waited too long for its turn. Each with `Retry-After`." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Search modules, manuals and terms tags: - search x-audience: delivery x-required-permission: content.read /chunks: get: description: "The content as retrieval chunks: one per module and language the reader may see at `?ref=`, ordered by module ID and language, each followed by one per FAQ entry in it (`attributes.entry`, the entry alone as its text), each the module as Markdown with the metadata to filter on (type, audience, facets, keywords, manuals, variant conditions, the newest release) and `contentHash`, the SHA-256 of the text, so a pipeline re-embeds only what changed. Scoped like every read: a module outside the reader’s scope is never listed, counted or inlined into another chunk, and the filters run before paging. A module too large to cut once its module references are included has no chunk, and only it: `meta.leftOut` names it. Modules too large to cut together (many each including a lot, past a budget of four times the content they are made from) make the whole commit a 422 `chunk-set-too-large`, for readers who see them." operationId: Chunks_list parameters: - name: filter[module] required: false in: query description: Only the chunks of this module (a module ID), one per language the reader may read it in (and one per FAQ entry in it). A module outside the reader’s scope, or that does not exist, has none. schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ - name: filter[lang] required: false in: query description: Only chunks in this language. schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ - name: filter[type] required: false in: query description: Only modules of this module type. schema: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ - name: filter[audience] required: false in: query description: "Only modules that count as this audience level: their own, or the last, most restricted level for a module naming none, as manuals and the access check place it. A level the configuration does not list matches nothing, and a module naming such a level matches no level." schema: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ - name: filter[facet] required: false in: query description: "Only modules with this facet value, as `:` (e.g. `region:north`). Repeat it for several, at most 32: a module has to have every one." schema: anyOf: - type: string - type: array items: type: string style: form explode: true - name: filter[keyword] required: false in: query description: "Only modules with this keyword, case and diacritics aside (`Wärme` is `warme`); 1 to 64 characters, no comma. Repeat it for several, at most 32: a module has to have every one." schema: anyOf: - type: string - type: array items: type: string style: form explode: true - name: filter[manual] required: false in: query description: "Only the modules this manual includes, as the reader may see it (with `filter[variant]`: the entries it includes for that variant). A manual the reader may not see, or that does not exist, includes nothing." schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ - name: filter[variant] required: false in: query description: "A variant slug such as `model=large,software=2.3` (as `GET /manuals/{id}` lists them, or any configured attribute values): variant blocks are resolved for it, so one for another variant is not in the text. Without it, each variant block is kept, headed by its condition. An attribute or value the configuration does not hold is a 422 `unknown-variant`." schema: type: string maxLength: 500 - name: filter[changedSince] required: false in: query description: "A full commit ID in the history of the commit read (one a previous sync got in `X-Ccms-Commit`): only the chunks that may have changed since, because a module file their text was made from or depends on (an included module, a translation of it, a cross-reference target), the configuration or a manifest naming the module changed. `meta.release` is no file: a new release lists nothing here. Any other commit is a 400 `invalid-parameter`. Only files you may read now count: a deleted module, or a chunk whose included module was deleted or left your scope since, is not listed, so a full sync now and then catches those." schema: type: string pattern: ^[0-9a-f]{40}([0-9a-f]{24})?$ - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ChunkPageDocument" "304": description: The `If-None-Match` ETag is still current. "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `unknown-variant`: `filter[variant]` names an attribute or value the configuration does not hold. `chunk-set-too-large`: the chunks of the commit, as you see them, are too large to cut together; `meta` names the budget (`nodes`, `chars`, `tableCells`) and the modules that expanded the most (`largest`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List retrieval chunks tags: - chunks x-audience: delivery x-required-permission: content.read /changes: get: description: "Releases, withdrawals and deprecations (of modules and of manuals) in the order they happened, as events: the webhook events (the same shapes and idempotency keys), and per release the chunks (`GET /chunks`) to store (`chunk.upserted`) and to drop (`chunk.removed`), so a retrieval index stays in sync. Cursor-paged: no event is skipped or told twice across pages, whatever is released meanwhile. Scoped to what you may read now: when your scope narrows, the chunks you may no longer read come as `chunk.removed`, to you only; nothing names what you never could read. Needs the `content.read` permission and the instance secret key (else 404 `not-configured`)." operationId: Changes_list parameters: - name: page[cursor] required: false in: query description: "Where to go on: `meta.page.cursor` of the page before. Left out: start with a snapshot of every chunk you may read at the release standing now, then the changes after it. A cursor that can no longer be read (the server’s secret key changed, it was issued to someone else) is a 400 `cursor-expired`: start again without one. A cursor standing on content gone from the repository is a 410 `cursor-gone`: resync." schema: type: string maxLength: 4096 pattern: ^[A-Za-z0-9_-]+(\.[A-Za-z0-9_-]+)*$ - name: page[size] required: false in: query description: "The most events to answer. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ChangePageDocument" "400": description: "`cursor-expired`: the cursor can no longer be read (the instance key was rotated, it was issued to someone else, it was changed, or it was made by an older way of cutting chunks): start again without one. `invalid-parameter`: a malformed cursor or size. `unsupported-parameter`: any other query parameter." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-configured`: the server has no instance secret key, which seals the cursors." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "410": description: "`cursor-gone`: the cursor stands on chunks that can no longer be read (the commit of a release you hold is gone from the repository after a history rewrite, or its content no longer reads), so what to remove cannot be named; or it is from before the server’s database was restored from another server (#619). Resync: drop what you stored and start again without `page[cursor]` (a snapshot follows), or rebuild from a release tag (`GET /chunks?ref=`, keeping what has the same `contentHash`) and then start again without `page[cursor]`." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "429": description: "`rate-limited`: a page is being read for you already (`Retry-After`): one at a time." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "503": description: "`outbox-blocked`: the server’s database was restored from another server and its operator has not finished the restore yet, so reading on could skip events (`Retry-After`): try again later with the same cursor." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Read the change feed tags: - changes x-audience: delivery x-required-permission: content.read /releases: get: description: "Releases, newest first, withdrawn ones too (`attributes.withdrawal`): each a product revision tagged on the whole of `main` at one commit. Read the content as released with `?ref=`. Releases are released content, so every reader may list them; what a reader sees at a tag is limited to their scope. Each release’s `meta.outputs` says where its files stand, as `GET /releases/{releaseId}` does (but with `queue` always null: what waits ahead of a release is counted for its own read only), so a list shows them without a read per release. Needs the `content.read` permission." operationId: Releases_list parameters: - name: filter[product] required: false in: query description: Only releases of this product (a value of the product facet). schema: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ - name: filter[major] required: false in: query description: "`true`: only major releases; `false`: only the others. Left out: all." schema: type: string enum: - "true" - "false" - name: filter[state] required: false in: query description: "`withdrawn`: only withdrawn releases; `published`: only those that stand. Left out: all." schema: type: string enum: - published - withdrawn - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ReleaseListPageDocument" "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List releases tags: - releases x-audience: delivery x-required-permission: content.read /releases/{releaseId}: get: description: "One release: its product, revision, tag, commit, notes, whether it is major, who cut it and when, and its withdrawal (who, when, why) once withdrawn; `meta.outputs` says where its files stand (still being planned, rendering, done or failed, with counts of those you may read), for a client to show progress and poll while they are under way. Needs the `content.read` permission." operationId: Releases_get parameters: - name: releaseId required: true in: path description: The release’s ID (a UUID). One that names no release, malformed or not, is 404. schema: type: string format: uuid responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ReleaseDetailDocument" "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no release with this ID." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Read a release tags: - releases x-audience: delivery x-required-permission: content.read /releases/{releaseId}/changes: get: description: "The changelog of one release: one `ReleaseChange` per manual and language that changed (a release holds the whole repository, so every manual counts) since the product’s previous release that is not withdrawn (by when it was cut; for a release of a maintenance line, the line’s previous one, else its base release; for one of `main`, never a line’s), each with the modules it names that changed in that language (`added`, `changed`, `removed`, with their blocks by ID). A product’s first release lists every manual as `added`. Derived from Git, never stored. Both releases are read as you may read them: a manual or module outside your scope is not there, exactly like a missing one, so it is neither listed nor counted. Ordered by manual ID, then language. A pair of releases too large to compare (more than the files a review reads, counted over the whole repository) is 422 `too-many-changes` for every reader. Needs the `content.read` permission." operationId: Releases_changes parameters: - name: releaseId required: true in: path description: The release’s ID (a UUID). One that names no release, malformed or not, is 404. schema: type: string format: uuid - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ReleaseChangePageDocument" "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no release with this ID." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`too-many-changes`: more than 10000 files differ from the previous release; `invalid-content`: the configuration at a release cannot be read." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List what a release changed tags: - releases x-audience: delivery x-required-permission: content.read /changelog: get: description: "Releases, newest first, withdrawn ones too (marked, with the reason, in `attributes.withdrawal`), each with its notes and, in `meta.changedManuals`, how many manuals it changed as you see them (its changes: `GET /releases/{releaseId}/changes`). Filtered by manual or language, it lists the releases that changed it as you see them, filtered before paging, so neither the list nor the total tells of a manual outside your scope; that is worked out from Git, so only the 200 newest releases matching the other filters are looked through then (`meta.truncated` when there were more). Needs the `content.read` permission." operationId: Changelog_list parameters: - name: filter[product] required: false in: query description: Only releases of this product (a value of the product facet). schema: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ - name: filter[manual] required: false in: query description: Only releases that changed this manual (by ID), as you see it. schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ - name: filter[lang] required: false in: query description: Only releases that changed a manual in this language (a language tag), as you see it. schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ - name: filter[major] required: false in: query description: "`true`: only major releases; `false`: only the others. Left out: all." schema: type: string enum: - "true" - "false" - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ChangelogPageDocument" "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Read the changelog tags: - releases x-audience: delivery x-required-permission: content.read /releases/{releaseId}/outputs: get: description: "The release’s files (#249): one PDF per manual, variant and configured language, rendered in the background once the release is cut (`state`), and one offline package (#59, `kind` `offline-package`) per configured language and audience level up to the highest any manual has, built once the PDFs are done: a ZIP of the manuals that level reads, as HTML pages and PDFs, that opens from the file system without a network (`attributes.audience`; `manual` and `variant` null). A reader sees a package only when one role of theirs reads its whole level in its language. A manual the release did not change (in that language) reuses the previous release’s file (`meta.reusedFrom`), so every release has a full set. A withdrawn release’s outputs stay readable, marked `meta.withdrawn`. Ordered by manual, variant, language. Needs `content.read` at the release’s tag, in a role that covers all of the output’s manual: its audience and language, with no module type or facet left out, and the source language too (a module not translated falls back to it). An output is rendered as the manual’s audience reads it, the same file for all of its readers, so it may hold any module the manual names; a reader whose scope leaves some out reads the manual’s PDF route instead. Others get 404, exactly like a missing one." operationId: ReleaseOutputs_list parameters: - name: releaseId required: true in: path description: The release’s ID (a UUID). One that names no release, malformed or not, is 404. schema: type: string format: uuid - name: filter[manual] required: false in: query description: Only this manual’s outputs. schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ - name: filter[lang] required: false in: query description: Only outputs in this language. schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ - name: filter[state] required: false in: query description: Only outputs in this state (`queued`, `rendering`, `done`, `failed`). schema: type: string enum: - queued - rendering - done - failed - name: filter[kind] required: false in: query description: Only outputs of this kind (`pdf`, `offline-package`). schema: type: string enum: - pdf - offline-package - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/ReleaseOutputPageDocument" "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no release with this ID, or no output of it you may read." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List a release’s outputs tags: - releases x-audience: delivery x-required-permission: content.read /releases/{releaseId}/outputs/archive: get: description: "Every output of the release you may read (as `GET …/outputs` lists them) that is `done`, in one ZIP, its files stored as they were rendered (no compression: PDFs are compressed already), named `//.pdf` (ASCII letters, digits, `.` and `-` per part, anything else `-`; a name taken already, ignoring case, gets `-2`, `-3`, … before the extension). `Content-Disposition: attachment` with `_.zip`, `Content-Length` the archive's exact length. Streamed from the blob store one file at a time. Outputs still queued or rendering, or failed, are left out: `X-Ccms-Archive-Files` says how many files it holds, `X-Ccms-Archive-Left-Out` how many of those you may read are not in it. Not cached (`private, no-store`): it holds more files once more are done. A blob store failing once part of it went out cuts the connection. Needs `content.read` at the release’s tag, in a role that covers all of the output’s manual: its audience and language, with no module type or facet left out, and the source language too (a module not translated falls back to it). An output is rendered as the manual’s audience reads it, the same file for all of its readers, so it may hold any module the manual names; a reader whose scope leaves some out reads the manual’s PDF route instead. Others get 404, exactly like a missing one." operationId: ReleaseOutputFile_zip parameters: - name: releaseId required: true in: path description: The release’s ID (a UUID). One that names no release, malformed or not, is 404. schema: type: string format: uuid responses: "200": description: The archive. content: application/zip: schema: type: string format: binary headers: Content-Disposition: description: "`attachment` with the file name." schema: type: string X-Ccms-Archive-Files: description: How many files the archive holds. schema: type: integer X-Ccms-Archive-Left-Out: description: "How many of the release’s outputs you may read are not in it: queued, rendering or failed." schema: type: integer "400": description: An unsupported query parameter. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no release with this ID." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "409": description: "`release-archive-empty`: none of the outputs you may read is done yet, or there are none (`meta.total`, `meta.notReady`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`release-archive-too-large`: the archive would be larger than `CCMS_RELEASE_ARCHIVE_MAX_BYTES` (`meta.size`, `meta.limit`, in bytes); download the files one by one." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "503": description: "`blob-store-unavailable`: the blob store does not answer; `Retry-After` says when to try again." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Download all of a release’s files as one ZIP tags: - releases x-audience: delivery x-required-permission: content.read /releases/{releaseId}/outputs/{outputId}/file: get: description: "The output’s file from the blob store, as it was rendered (never rendered on request): `Content-Disposition: attachment` with a readable name (`___.pdf`; an offline package `offline___.zip`, `application/zip`), and cached for good (`private, max-age=31536000, immutable`: an output’s file never changes). 409 `output-not-ready` until the output is `done`. Needs `content.read` at the release’s tag, in a role that covers all of the output’s manual: its audience and language, with no module type or facet left out, and the source language too (a module not translated falls back to it). An output is rendered as the manual’s audience reads it, the same file for all of its readers, so it may hold any module the manual names; a reader whose scope leaves some out reads the manual’s PDF route instead. Others get 404, exactly like a missing one." operationId: ReleaseOutputFile_file parameters: - name: releaseId required: true in: path description: The release’s ID (a UUID). One that names no release, malformed or not, is 404. schema: type: string format: uuid - name: outputId required: true in: path description: The output’s ID (a UUID). One that names no output of the release you may read, malformed or not, is 404. schema: type: string format: uuid responses: "200": description: "The file: a PDF, or an offline package’s ZIP." content: application/pdf: schema: type: string format: binary application/zip: schema: type: string format: binary headers: Content-Disposition: description: "`attachment` with the file name." schema: type: string ETag: description: The file’s SHA-256, quoted. schema: type: string "400": description: An unsupported query parameter. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no release with this ID, or no output of it you may read." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "409": description: "`output-not-ready`: the output is not `done` (`meta.state`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "503": description: "`blob-store-unavailable`: the blob store does not answer; `Retry-After` says when to try again." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Download a release output tags: - releases x-audience: delivery x-required-permission: content.read /terms/export: get: description: "Every term at `?ref=`, by ID, as a download (`Content-Disposition: attachment`): TBX-Basic (ISO 30042:2019, DCA style; one `conceptEntry` per term, a `termSec` per variant with its administrative status: preferred, admitted, deprecated for a forbidden one, superseded for a deprecated term’s) or CSV (a header row, then one row per term and language; variants one per line in their cell; a value a spreadsheet would run as a formula starts with `'`). Definitions are plain text. Files that are no term are left out. Sent with `nosniff`; `X-Ccms-Terms` says how many terms it holds." operationId: TermExport_export parameters: - name: format required: true in: query description: "`tbx` or `csv`." schema: type: string enum: - tbx - csv - name: lang required: false in: query description: "Only this language (a language tag); a term without it is left out. Default: every language." schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": description: The file. content: application/x-tbx+xml: schema: type: string text/csv: schema: type: string headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string X-Ccms-Terms: description: How many terms the file holds. schema: type: integer "304": description: The `If-None-Match` ETag is still current. "400": description: "`invalid-parameter`: no or an unknown `format`, or a malformed `lang`; `unsupported-parameter` for any other query parameter." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Export the terms tags: - terms x-audience: delivery x-required-permission: content.read /terms: get: description: "The terms at `?ref=`, by ID. The filters run before paging, and `meta.page.total` counts what they let through. Without a filter, a file in `terms/` that is no term is listed too (`UnreadableTermResource`, with `meta.error`); a filter leaves such files out. Terms carry no audience: every reader of the ref reads them, in every language." operationId: Terms_list parameters: - name: filter[lang] required: false in: query description: Only terms holding this language (a language tag); `filter[q]` then looks in it only. schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ - name: filter[status] required: false in: query description: "Only terms of this status: `proposed`, `approved`, `deprecated`." schema: type: string enum: - proposed - approved - deprecated - name: filter[domain] required: false in: query description: Only terms of this domain, case, diacritics and runs of white space aside. schema: type: string minLength: 1 maxLength: 100 - name: filter[q] required: false in: query description: "1 to 200 characters after trimming: part of one of a term’s variants (preferred, allowed or forbidden) or of its definition, folded as `GET /search` folds (case, diacritics and runs of white space aside)." schema: type: string minLength: 1 maxLength: 200 - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/TermPageDocument" "304": description: The `If-None-Match` ETag is still current. "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List terms tags: - terms x-audience: delivery x-required-permission: content.read /terms/{termId}: get: description: "One term at `?ref=`, with the problems found checking it against the configuration and the module files linking it (`meta.linkedIn`, #245). A file that is no term is 422 `invalid-content`." operationId: Terms_read parameters: - name: termId required: true in: path schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ example: charger - name: ref required: false in: query description: "Branch, tag or commit ID to read from. Default: the server's `CCMS_DEFAULT_REF`." schema: type: string responses: "200": headers: X-Ccms-Commit: description: The commit the response was read from. schema: type: string X-Ccms-Withdrawn: description: "`true` when `?ref=` names the tag of a withdrawn release (as `refs/tags/`, or `` when no branch has that name): the read still works, but the release was taken back. Who, when and why: `meta.withdrawal` of the tag in `GET /refs`, or `attributes.withdrawal` of the release in `GET /releases`. Absent otherwise." schema: type: string ETag: description: Changes with the commit, with what the reader may see and when the release whose tag is read is withdrawn. schema: type: string Cache-Control: description: "`immutable` when `?ref=` was a commit ID, except on routes whose answer also depends on refs (a module’s status): `no-cache` there." schema: type: string description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/TermDocument" "304": description: The `If-None-Match` ETag is still current. "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: unknown ref, or no such item at that ref. `change-set-branch-missing`: `ref` is the branch of a change set the reader may see, and that branch is gone from the content repository (`meta.branch`; the change set says so in `meta.branchMissing`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`invalid-content`: a file needed for the answer is broken; the error's `meta.path` names it. `table-too-large`: a module file holds a table of more than 1,000 columns or 50,000 cells (rows × columns), or tables of more than 1,000,000 cells together, so it is not read (`meta.path`; `meta.columns`, `meta.cells`, `meta.totalCells`: the caps)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Read a term tags: - terms x-audience: delivery x-required-permission: content.read /releases/{releaseId}/iirds-packages: get: description: "One iiRDS package per release output (a manual in one of its variants and a configured language), its `id` the output’s: the manual’s modules as HTML topics, its PDF as a rendition once that is done, and the metadata (`META-INF/metadata.rdf`, iiRDS 1.3) the configured mapping makes. Listing makes none: each is made when it is read. Ordered by manual, variant, language. Needs `content.read` at the release’s tag, in a role that covers all of the output’s manual: its audience and language, with no module type or facet left out, and the source language too, as for the release’s outputs. A package is made as the manual’s audience reads it, the same for all of its readers. Others get 404, exactly like a missing one." operationId: IirdsPackages_list parameters: - name: releaseId required: true in: path description: The release’s ID (a UUID). One that names no release, malformed or not, is 404. schema: type: string format: uuid - name: filter[manual] required: false in: query description: Only this manual’s packages. schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ - name: filter[lang] required: false in: query description: Only packages in this language. schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/IirdsPackagePageDocument" "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no release with this ID, or no output of it you may read." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`iirds-not-configured`: the configuration at the release’s tag holds no iiRDS mapping (`iirds` in `openfolia.yaml`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List a release’s iiRDS packages tags: - releases x-audience: delivery x-required-permission: content.read /releases/{releaseId}/iirds-packages/{packageId}: get: description: "Makes the package (or takes it from the last few made) and says what it holds: `meta.size`, `meta.topics`, `meta.media` and `meta.warnings`, what the configured mapping could not map (left out of the metadata, never silently) and what is not in it (a file not stored, the PDF not done). Needs `content.read` at the release’s tag, in a role that covers all of the output’s manual: its audience and language, with no module type or facet left out, and the source language too, as for the release’s outputs. A package is made as the manual’s audience reads it, the same for all of its readers. Others get 404, exactly like a missing one." operationId: IirdsPackages_get parameters: - name: releaseId required: true in: path description: The release’s ID (a UUID). One that names no release, malformed or not, is 404. schema: type: string format: uuid - name: packageId required: true in: path description: "The package’s ID: its release output’s (a UUID). One that names no output of the release you may read, malformed or not, is 404." schema: type: string format: uuid responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/IirdsPackageDocument" "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no release with this ID, or no output of it you may read." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`iirds-not-configured`: the configuration at the release’s tag holds no iiRDS mapping (`iirds` in `openfolia.yaml`). `iirds-package-too-large`: the package would be larger than `CCMS_RELEASE_ARCHIVE_MAX_BYTES` (`meta.size`, `meta.limit` in bytes, `meta.files`). `expansion-too-large`: once its module references are included the manual holds more than 500,000 content nodes, 12,000,000 characters or 1,000,000 table cells (rows × columns) (a module referred to over several paths counts once per path), or its blocks and references nest more than 100 deep, so nothing of it is made (`meta.nodes`, `meta.chars`, `meta.tableCells`, `meta.depth`: the limits)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "429": description: "`rate-limited`: too many packages are being made at once; `Retry-After` says when to try again." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Make a release’s iiRDS package and describe it tags: - releases x-audience: delivery x-required-permission: content.read /releases/{releaseId}/iirds-packages/{packageId}/file: get: description: "The package as an iiRDS ZIP archive (`application/iirds+zip`): `mimetype` first, then `META-INF/metadata.rdf`, the topics (`content/.html`), the media they show (`media/.`, `symbols/.`) and the PDF (`pdf/___.pdf`, once done), every entry stored. The same release output makes the same bytes. `Content-Disposition: attachment` with `___.iirds`, `Content-Length` its exact length, `X-Ccms-Iirds-Warnings` how many warnings `GET …/iirds-packages/{packageId}` lists. Not cached (`private, no-store`): it gains the PDF once that is done. A blob store failing once part of it went out cuts the connection, and so does a download not read for a while, read too slowly or going on too long (`CCMS_PACKAGE_SEND_*`), freeing its turn. Needs `content.read` at the release’s tag, in a role that covers all of the output’s manual: its audience and language, with no module type or facet left out, and the source language too, as for the release’s outputs. A package is made as the manual’s audience reads it, the same for all of its readers. Others get 404, exactly like a missing one." operationId: IirdsPackageFile_file parameters: - name: releaseId required: true in: path description: The release’s ID (a UUID). One that names no release, malformed or not, is 404. schema: type: string format: uuid - name: packageId required: true in: path description: "The package’s ID: its release output’s (a UUID). One that names no output of the release you may read, malformed or not, is 404." schema: type: string format: uuid responses: "200": description: The package. content: application/iirds+zip: schema: type: string format: binary headers: Content-Disposition: description: "`attachment` with the file name." schema: type: string X-Ccms-Iirds-Warnings: description: How many warnings the package has. schema: type: integer "400": description: An unsupported query parameter. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no release with this ID, or no output of it you may read." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`iirds-not-configured`: the configuration at the release’s tag holds no iiRDS mapping (`iirds` in `openfolia.yaml`). `iirds-package-too-large`: the package would be larger than `CCMS_RELEASE_ARCHIVE_MAX_BYTES` (`meta.size`, `meta.limit` in bytes, `meta.files`). `expansion-too-large`: once its module references are included the manual holds more than 500,000 content nodes, 12,000,000 characters or 1,000,000 table cells (rows × columns) (a module referred to over several paths counts once per path), or its blocks and references nest more than 100 deep, so nothing of it is made (`meta.nodes`, `meta.chars`, `meta.tableCells`, `meta.depth`: the limits)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "429": description: "`rate-limited`: too many packages are being made at once, or this kind of package sent: at most 4 at once, server-wide, and at most `CCMS_PACKAGE_SENDS_PER_ACTOR` (default 1) of them yours. Answered before any header of the file. `Retry-After` says when to try again." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "503": description: "`blob-store-unavailable`: the blob store does not answer; `Retry-After` says when to try again." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Download a release’s iiRDS package tags: - releases x-audience: delivery x-required-permission: content.read /downloads: get: description: "The download centre (#139): every downloadable file of each product at its latest release (the newest that stands, cut from `main`). One per attachment block of a module for the product (its product facet names the product, or no product), in each language it has a file in, and one per PDF of a manual, variant and language that is rendered (`done`). A read model over attachments and release outputs: nothing is uploaded here. Filtered before paging, so neither the list nor the total tells of a file outside your scope. Ordered by product, then attachments (by module, language and block order) before manuals (by manual, variant and language). Needs `content.read`. Read as you read released content at each release’s tag: an attachment only in a module you may see there (an attachment in a module above your audience is never listed, counted or served), a manual’s PDF only of a manual one of your roles reads whole there (its audience and language, with no module type or facet left out, as for the release’s outputs)." operationId: Downloads_list parameters: - name: filter[product] required: false in: query description: Only this product’s files (a value of the product facet). schema: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ - name: filter[lang] required: false in: query description: Only files in this language. schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ - name: filter[kind] required: false in: query description: "`attachment` or `manual`: only files of this kind." schema: type: string enum: - attachment - manual - name: filter[q] required: false in: query description: Only files whose name, description, file name, module title or module or manual ID holds every word (case and accents aside). schema: type: string minLength: 1 maxLength: 200 - name: filter[mediaType] required: false in: query description: Only files of this media type (`application/pdf`), or of a top-level type (`image/*`). schema: type: string pattern: ^[a-z0-9][a-z0-9!#$&^_.+-]{0,62}\/(?:\*|[a-z0-9][a-z0-9!#$&^_.+-]{0,62})$ - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/DownloadPageDocument" "400": description: "`invalid-parameter`: a filter that is not one of its form; `unsupported-parameter`: a query parameter this route does not take." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List the downloads tags: - downloads x-audience: delivery x-required-permission: content.read /downloads/{id}/versions: get: description: "The download’s file across its product’s releases cut from `main` (withdrawn ones too), newest first: a version where the file’s hash differs from the version before, from the release it first appeared in, with that release’s date, the checksum, the size, whether it is `current`, `superseded` or `withdrawn`, and its change note (the release’s notes, in the download’s language when it has them, and the attachment’s description). The 500 newest releases are looked through (`meta.truncated` when there are more). A version you may not read is neither listed nor counted; a download the product’s latest release does not hold for you is 404, as it has no row in the list. Needs `content.read`. Read as you read released content at each release’s tag: an attachment only in a module you may see there (an attachment in a module above your audience is never listed, counted or served), a manual’s PDF only of a manual one of your roles reads whole there (its audience and language, with no module type or facet left out, as for the release’s outputs)." operationId: Downloads_versions parameters: - name: id required: true in: path description: The download’s ID, as `GET /downloads` gives it (`attachment::::`, `manual::::`). One that names no download you may read, malformed or not, is 404. schema: type: string minLength: 1 maxLength: 1400 description: "The download’s ID, as `GET /downloads` gives it: `attachment::::` or `manual::::`." - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/DownloadVersionPageDocument" "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no download with this ID you may read." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List a download’s versions tags: - downloads x-audience: delivery x-required-permission: content.read /downloads/{id}/versions/{releaseId}/file: get: description: "The download’s file as the release holds it. An attachment: from the blob store, always `Content-Disposition: attachment` under the block’s file name when it fits the stored type (else the hash), `X-Content-Type-Options: nosniff` and a sandboxing `Content-Security-Policy`, as `GET /assets/{hash}` sends an attached file. A manual’s PDF: exactly as `GET /releases/{releaseId}/outputs/{outputId}/file` sends it (409 `output-not-ready` until it is rendered). Cached for good (`private, max-age=31536000, immutable`, the hash as `ETag`): a release’s file never changes. Needs `content.read`. Read as you read released content at each release’s tag: an attachment only in a module you may see there (an attachment in a module above your audience is never listed, counted or served), a manual’s PDF only of a manual one of your roles reads whole there (its audience and language, with no module type or facet left out, as for the release’s outputs)." operationId: DownloadFile_file parameters: - name: id required: true in: path description: The download’s ID, as `GET /downloads` gives it (`attachment::::`, `manual::::`). One that names no download you may read, malformed or not, is 404. schema: type: string minLength: 1 maxLength: 1400 description: "The download’s ID, as `GET /downloads` gives it: `attachment::::` or `manual::::`." - name: releaseId required: true in: path description: A release of the download’s product (a UUID), e.g. a version’s ID. One that names no such release, malformed or not, is 404. schema: type: string format: uuid responses: "200": description: The file, with its stored type. content: application/octet-stream: schema: type: string format: binary application/pdf: schema: type: string format: binary headers: Content-Disposition: description: "`attachment` with the file name." schema: type: string ETag: description: The file’s SHA-256, quoted. schema: type: string "400": description: An unsupported query parameter. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no such download, no such release of its product, or nothing of it there you may read; its file is not stored." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "409": description: "`output-not-ready`: the manual’s PDF is not rendered yet (`meta.state`)." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "503": description: "`blob-store-unavailable`: the blob store does not answer; `Retry-After` says when to try again." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Download a file tags: - downloads x-audience: delivery x-required-permission: content.read /releases/{releaseId}/dita-packages: get: description: "One DITA 1.3 package per release output (a manual in one of its variants and a configured language), its `id` the output’s: the manual as a map (`/.ditamap`), a topic per module of the topic type its module type maps to (`/.dita`), the media they show and a DITAVAL file for the variant (`filters/`), by the configuration’s DITA mapping (`dita` in `openfolia.yaml`) read backwards. Listing makes none: each is made when it is read. Ordered by manual, variant, language. Needs `content.read` at the release’s tag, in a role that covers all of the output’s manual: its audience and language, with no module type or facet left out, and the source language too, as for the release’s outputs. A package is made as the manual’s audience reads it, the same for all of its readers. Others get 404, exactly like a missing one." operationId: DitaPackages_list parameters: - name: releaseId required: true in: path description: The release’s ID (a UUID). One that names no release, malformed or not, is 404. schema: type: string format: uuid - name: filter[manual] required: false in: query description: Only this manual’s packages. schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ - name: filter[lang] required: false in: query description: Only packages in this language. schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/DitaPackagePageDocument" "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no release with this ID, or no output of it you may read." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List a release’s DITA packages tags: - releases x-audience: delivery x-required-permission: content.read /releases/{releaseId}/dita-packages/{packageId}: get: description: "Makes the package (or takes it from the last few made) and says what it holds: `meta.size`, `meta.languages`, `meta.topics`, `meta.media` and `meta.warnings`, what DITA could not say as the content does and was written in another form or left out (never silently). Needs `content.read` at the release’s tag, in a role that covers all of the output’s manual: its audience and language, with no module type or facet left out, and the source language too, as for the release’s outputs. A package is made as the manual’s audience reads it, the same for all of its readers. Others get 404, exactly like a missing one." operationId: DitaPackages_get parameters: - name: releaseId required: true in: path description: The release’s ID (a UUID). One that names no release, malformed or not, is 404. schema: type: string format: uuid - name: packageId required: true in: path description: "The package’s ID: its release output’s (a UUID). One that names no output of the release you may read, malformed or not, is 404." schema: type: string format: uuid - name: languages required: false in: query description: "`output` (the default): the output’s language only; `all`: every configured language you may read the whole manual in, each a folder." schema: type: string enum: - output - all - name: references required: false in: query description: "`conref` (the default): a module reference is a content reference (`@conref`, `@conrefend`) where DITA can say one, else its content; `resolved`: always its content." schema: type: string enum: - conref - resolved responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/DitaPackageDocument" "400": description: "`invalid-parameter`: `languages` or `references` is not one of its values; `unsupported-parameter` for any other query parameter." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no release with this ID, or no output of it you may read." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`dita-package-too-large`: the package would read more modules, or write more, than one package may, or be larger than `CCMS_RELEASE_ARCHIVE_MAX_BYTES` (`meta` says which bound). `dita-notices-unsupported`: the manual is a derived manual gathering safety notices (`rule.notices`, #670), which a DITA package of whole modules cannot hold." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "429": description: "`rate-limited`: too many packages are being made at once; `Retry-After` says when to try again." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Make a release’s DITA package and describe it tags: - releases x-audience: delivery x-required-permission: content.read /releases/{releaseId}/dita-packages/{packageId}/file: get: description: "The package as a ZIP archive (`application/zip`), every entry stored, sorted by name: per language a folder with the map (`/.ditamap`, naming the DITAVAL file) and the topics (`/.dita`), then `filters/.ditaval`, `images/.`, `files/.` and `symbols/`. Valid DITA 1.3 (the OASIS grammars), importable again by the `dita` importer. The same release output and options make the same bytes. `Content-Disposition: attachment` with `___-dita.zip`, `Content-Length` its exact length, `X-Ccms-Dita-Warnings` how many warnings `GET …/dita-packages/{packageId}` lists. A blob store failing once part of it went out cuts the connection, and so does a download not read for a while, read too slowly or going on too long (`CCMS_PACKAGE_SEND_*`), freeing its turn. Needs `content.read` at the release’s tag, in a role that covers all of the output’s manual: its audience and language, with no module type or facet left out, and the source language too, as for the release’s outputs. A package is made as the manual’s audience reads it, the same for all of its readers. Others get 404, exactly like a missing one." operationId: DitaPackageFile_file parameters: - name: releaseId required: true in: path description: The release’s ID (a UUID). One that names no release, malformed or not, is 404. schema: type: string format: uuid - name: packageId required: true in: path description: "The package’s ID: its release output’s (a UUID). One that names no output of the release you may read, malformed or not, is 404." schema: type: string format: uuid - name: languages required: false in: query description: "`output` (the default): the output’s language only; `all`: every configured language you may read the whole manual in, each a folder." schema: type: string enum: - output - all - name: references required: false in: query description: "`conref` (the default): a module reference is a content reference (`@conref`, `@conrefend`) where DITA can say one, else its content; `resolved`: always its content." schema: type: string enum: - conref - resolved responses: "200": description: The package. content: application/zip: schema: type: string format: binary headers: Content-Disposition: description: "`attachment` with the file name." schema: type: string X-Ccms-Dita-Warnings: description: How many warnings the package has. schema: type: integer "400": description: "`invalid-parameter`: `languages` or `references` is not one of its values; `unsupported-parameter` for any other query parameter." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no release with this ID, or no output of it you may read." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "422": description: "`dita-package-too-large`: the package would read more modules, or write more, than one package may, or be larger than `CCMS_RELEASE_ARCHIVE_MAX_BYTES` (`meta` says which bound). `dita-notices-unsupported`: the manual is a derived manual gathering safety notices (`rule.notices`, #670), which a DITA package of whole modules cannot hold." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "429": description: "`rate-limited`: too many packages are being made at once, or this kind of package sent: at most 4 at once, server-wide, and at most `CCMS_PACKAGE_SENDS_PER_ACTOR` (default 1) of them yours. Answered before any header of the file. `Retry-After` says when to try again." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "503": description: "`blob-store-unavailable`: the blob store does not answer; `Retry-After` says when to try again." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Download a release’s DITA package tags: - releases x-audience: delivery x-required-permission: content.read /d/-/fonts/{name}: get: description: "The theme’s font, as `GET /preview/fonts/{name}` serves it, for the pages under `/d/`. Who may open it is `delivery.access` in `openfolia.yaml` on `main`, at most the deployment’s `CCMS_DELIVERY_MAX_ACCESS` (default `public`, no cap): `public`, anyone, without a token, as a reader of the `delivery.publicAudience` level (default the first audience), always: a session, a token or any other credential sent with the request is ignored (never checked, counted or refused), so a signed-in person sees exactly what the public sees and the answer varies by no credential (no `Vary: Cookie` or `Authorization`); `signed-in` (default), a reader with a token or a signed-in session, in their scope (401 without one); `off`, nobody (404). Only released content is ever shown, a release’s tag, never a branch or a draft; a manual, variant or language the reader may not see is 404, exactly like a missing one, and so is a moved address, until the reader may see what it leads to." operationId: StableAddresses_font parameters: - name: name required: true in: path schema: example: Geist-Variable.woff2 type: string responses: "200": content: font/woff2: schema: type: string format: binary description: "" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: No such file. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: A font of the stable address pages tags: - stable-addresses x-audience: delivery /d/-/{name}: get: description: "`theme.css`, `theme-dark.css`, `render-html.css` and `page.css`, as `GET /preview/{name}` serves them, for the pages under `/d/`. Who may open it is `delivery.access` in `openfolia.yaml` on `main`, at most the deployment’s `CCMS_DELIVERY_MAX_ACCESS` (default `public`, no cap): `public`, anyone, without a token, as a reader of the `delivery.publicAudience` level (default the first audience), always: a session, a token or any other credential sent with the request is ignored (never checked, counted or refused), so a signed-in person sees exactly what the public sees and the answer varies by no credential (no `Vary: Cookie` or `Authorization`); `signed-in` (default), a reader with a token or a signed-in session, in their scope (401 without one); `off`, nobody (404). Only released content is ever shown, a release’s tag, never a branch or a draft; a manual, variant or language the reader may not see is 404, exactly like a missing one, and so is a moved address, until the reader may see what it leads to." operationId: StableAddresses_stylesheet parameters: - name: name required: true in: path schema: example: render-html.css type: string responses: "200": content: text/css: schema: type: string description: "" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: No such file. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: A stylesheet of the stable address pages tags: - stable-addresses x-audience: delivery /d/{product}/{manual}/{variant}/{lang}: get: description: "The manual as a web page, as `GET /manuals/{id}/variants/{variant}/{lang}/html` renders it, at the product’s latest release (or the pinned one): the address to print and to link (#450). A new release moves it at once (`no-cache`, with an ETag known before the page is rendered, from the release, the reader’s scope, the theme and the build, `CCMS_BUILD_ID`: a revalidation is a 304 without rendering); a pinned address revalidates too (`no-cache`, with an ETag), so a withdrawal or a change of `delivery.access` reaches every cache, `public` for a public reader, else `private`. A pinned release that was withdrawn is 410 with a notice linking the latest address. Who may open it is `delivery.access` in `openfolia.yaml` on `main`, at most the deployment’s `CCMS_DELIVERY_MAX_ACCESS` (default `public`, no cap): `public`, anyone, without a token, as a reader of the `delivery.publicAudience` level (default the first audience), always: a session, a token or any other credential sent with the request is ignored (never checked, counted or refused), so a signed-in person sees exactly what the public sees and the answer varies by no credential (no `Vary: Cookie` or `Authorization`); `signed-in` (default), a reader with a token or a signed-in session, in their scope (401 without one); `off`, nobody (404). Only released content is ever shown, a release’s tag, never a branch or a draft; a manual, variant or language the reader may not see is 404, exactly like a missing one, and so is a moved address, until the reader may see what it leads to." operationId: StableAddresses_page parameters: - name: theme required: false in: query description: Colour scheme. `auto` (default) follows the viewer’s `prefers-color-scheme`; `light` and `dark` force one. schema: default: auto type: string enum: - auto - light - dark description: Colour scheme. `auto` (default) follows the viewer’s `prefers-color-scheme`; `light` and `dark` force one. - name: product required: true in: path description: "The product: a value of the product facet." schema: type: string example: north - name: manual required: true in: path description: "The manual’s address: `delivery.manuals..slug`, else its ID; a former one (`formerly`) is 301 to the current." schema: type: string example: operating - name: variant required: true in: path description: The variant’s slug (`model=large`). schema: type: string example: model=large - name: lang required: true in: path description: The language; `@` pins one release (`en@2.1`), else the product’s latest release (the newest of `main` not withdrawn). Another case of a configured language is 301 to it; one the release does not have is the language picker (300) or 302 to the source language (`delivery.missingLanguage`). schema: type: string example: en responses: "200": description: The page. content: text/html: schema: type: string "300": description: "A language the release does not have, with `delivery.missingLanguage: picker` (the default): a page linking the manual in each language the reader may read." content: text/html: schema: type: string "301": description: "The address moved for good: a former address of the manual (`delivery.manuals..formerly`), its ID where it has a slug, or another letter case of the language. `Location` is the current address, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "302": description: "A language the release does not have, with `delivery.missingLanguage: source`: `Location` is the same address in the source language, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "400": description: "`unsupported-parameter`: a query parameter the route does not take, or a value it does not take (the page’s `theme`). The parameters `CCMS_DELIVERY_IGNORED_QUERY` names (default `utm_*`: the tracking parameters a shared link picks up) are ignored, so such a link opens as the address without them: an exception to the API’s rule, as these are reader-facing addresses, not the JSON:API." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: "`delivery.access` is `signed-in` and the request has no token." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no manual at this address for this reader. `not-found` also when `delivery.access` is `off`." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header does not take `text/html`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "410": description: "The pinned release was withdrawn: a notice page, linking the latest address when there is one." content: application/vnd.api+json: schema: type: string "429": description: "`rate-limited`: more pages, PDFs and QR codes under `/d/` this minute than `CCMS_DELIVERY_PER_MINUTE` allows one client on this server (default 60): a request without a token by its address (`CCMS_TRUST_PROXY` says which proxies in front to believe about it), one with a token or a session by its actor (on a `public` address, which reads no credentials, everyone by their address). A 304 revalidation of a page or a PDF counts nothing. `Retry-After` (and `meta.retryAfter`) says when to try again." headers: Retry-After: description: Seconds until the next request fits. schema: type: integer content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: Open a manual at its stable address tags: - stable-addresses x-audience: delivery x-required-permission: content.read /d/{product}/{manual}/{variant}/{lang}/pdf: get: description: "The release’s PDF of the manual in this variant and language (#249), shown in place (`Content-Disposition: inline`), never rendered on request: 409 `output-not-ready` while it is rendered. Only for a reader one of whose roles covers all of the manual (as `GET /releases/{id}/outputs` judges it). Cached as the page is. Who may open it is `delivery.access` in `openfolia.yaml` on `main`, at most the deployment’s `CCMS_DELIVERY_MAX_ACCESS` (default `public`, no cap): `public`, anyone, without a token, as a reader of the `delivery.publicAudience` level (default the first audience), always: a session, a token or any other credential sent with the request is ignored (never checked, counted or refused), so a signed-in person sees exactly what the public sees and the answer varies by no credential (no `Vary: Cookie` or `Authorization`); `signed-in` (default), a reader with a token or a signed-in session, in their scope (401 without one); `off`, nobody (404). Only released content is ever shown, a release’s tag, never a branch or a draft; a manual, variant or language the reader may not see is 404, exactly like a missing one, and so is a moved address, until the reader may see what it leads to." operationId: StableAddresses_pdfFile parameters: - name: product required: true in: path description: "The product: a value of the product facet." schema: type: string example: north - name: manual required: true in: path description: "The manual’s address: `delivery.manuals..slug`, else its ID; a former one (`formerly`) is 301 to the current." schema: type: string example: operating - name: variant required: true in: path description: The variant’s slug (`model=large`). schema: type: string example: model=large - name: lang required: true in: path description: The language; `@` pins one release (`en@2.1`), else the product’s latest release (the newest of `main` not withdrawn). Another case of a configured language is 301 to it; one the release does not have is the language picker (300) or 302 to the source language (`delivery.missingLanguage`). schema: type: string example: en responses: "200": description: The PDF. content: application/pdf: schema: type: string format: binary "301": description: "The address moved for good: a former address of the manual (`delivery.manuals..formerly`), its ID where it has a slug, or another letter case of the language. `Location` is the current address, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "302": description: "A language the release does not have, with `delivery.missingLanguage: source`: `Location` is the same address in the source language, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "400": description: "`unsupported-parameter`: a query parameter the route does not take, or a value it does not take (the page’s `theme`). The parameters `CCMS_DELIVERY_IGNORED_QUERY` names (default `utm_*`: the tracking parameters a shared link picks up) are ignored, so such a link opens as the address without them: an exception to the API’s rule, as these are reader-facing addresses, not the JSON:API." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: "`delivery.access` is `signed-in` and the request has no token." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no manual at this address for this reader. `not-found` also when `delivery.access` is `off`." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "409": description: "`output-not-ready`: the PDF is being rendered (`meta.state`); try again later. `Retry-After` says when." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "410": description: "`release-withdrawn`: the pinned release was withdrawn; the latest address (without `@`) opens the current one." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "429": description: "`rate-limited`: more pages, PDFs and QR codes under `/d/` this minute than `CCMS_DELIVERY_PER_MINUTE` allows one client on this server (default 60): a request without a token by its address (`CCMS_TRUST_PROXY` says which proxies in front to believe about it), one with a token or a session by its actor (on a `public` address, which reads no credentials, everyone by their address). A 304 revalidation of a page or a PDF counts nothing. `Retry-After` (and `meta.retryAfter`) says when to try again." headers: Retry-After: description: Seconds until the next request fits. schema: type: integer content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: The PDF at a stable address tags: - stable-addresses x-audience: delivery x-required-permission: content.read /d/{product}/{manual}/{variant}/{lang}/qr.svg: get: description: "A QR code of the address’s URL (`CCMS_PUBLIC_URL` and its path), for print: error correction Q, a quiet zone of four modules, one path, sharp at any size. Made only for an address that opens for the reader. Who may open it is `delivery.access` in `openfolia.yaml` on `main`, at most the deployment’s `CCMS_DELIVERY_MAX_ACCESS` (default `public`, no cap): `public`, anyone, without a token, as a reader of the `delivery.publicAudience` level (default the first audience), always: a session, a token or any other credential sent with the request is ignored (never checked, counted or refused), so a signed-in person sees exactly what the public sees and the answer varies by no credential (no `Vary: Cookie` or `Authorization`); `signed-in` (default), a reader with a token or a signed-in session, in their scope (401 without one); `off`, nobody (404). Only released content is ever shown, a release’s tag, never a branch or a draft; a manual, variant or language the reader may not see is 404, exactly like a missing one, and so is a moved address, until the reader may see what it leads to." operationId: StableAddresses_qrSvg parameters: - name: product required: true in: path description: "The product: a value of the product facet." schema: type: string example: north - name: manual required: true in: path description: "The manual’s address: `delivery.manuals..slug`, else its ID; a former one (`formerly`) is 301 to the current." schema: type: string example: operating - name: variant required: true in: path description: The variant’s slug (`model=large`). schema: type: string example: model=large - name: lang required: true in: path description: The language; `@` pins one release (`en@2.1`), else the product’s latest release (the newest of `main` not withdrawn). Another case of a configured language is 301 to it; one the release does not have is the language picker (300) or 302 to the source language (`delivery.missingLanguage`). schema: type: string example: en responses: "200": description: The QR code, made by the API (no network call). content: image/svg+xml: schema: type: string image/png: schema: type: string format: binary "301": description: "The address moved for good: a former address of the manual (`delivery.manuals..formerly`), its ID where it has a slug, or another letter case of the language. `Location` is the current address, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "302": description: "A language the release does not have, with `delivery.missingLanguage: source`: `Location` is the same address in the source language, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "400": description: "`unsupported-parameter`: a query parameter the route does not take, or a value it does not take (the page’s `theme`). The parameters `CCMS_DELIVERY_IGNORED_QUERY` names (default `utm_*`: the tracking parameters a shared link picks up) are ignored, so such a link opens as the address without them: an exception to the API’s rule, as these are reader-facing addresses, not the JSON:API." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: "`delivery.access` is `signed-in` and the request has no token." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no manual at this address for this reader. `not-found` also when `delivery.access` is `off`." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "409": description: "`public-url-not-set`: `CCMS_PUBLIC_URL` is not set, so there is no address to hold." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "410": description: "`release-withdrawn`: the pinned release was withdrawn; the latest address (without `@`) opens the current one." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "429": description: "`rate-limited`: more pages, PDFs and QR codes under `/d/` this minute than `CCMS_DELIVERY_PER_MINUTE` allows one client on this server (default 60): a request without a token by its address (`CCMS_TRUST_PROXY` says which proxies in front to believe about it), one with a token or a session by its actor (on a `public` address, which reads no credentials, everyone by their address). A 304 revalidation of a page or a PDF counts nothing. `Retry-After` (and `meta.retryAfter`) says when to try again." headers: Retry-After: description: Seconds until the next request fits. schema: type: integer content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: The QR code of a stable address, as SVG tags: - stable-addresses x-audience: delivery x-required-permission: content.read /d/{product}/{manual}/{variant}/{lang}/qr.png: get: description: "As `…/qr.svg`, as a black and white PNG, eight pixels a module. Who may open it is `delivery.access` in `openfolia.yaml` on `main`, at most the deployment’s `CCMS_DELIVERY_MAX_ACCESS` (default `public`, no cap): `public`, anyone, without a token, as a reader of the `delivery.publicAudience` level (default the first audience), always: a session, a token or any other credential sent with the request is ignored (never checked, counted or refused), so a signed-in person sees exactly what the public sees and the answer varies by no credential (no `Vary: Cookie` or `Authorization`); `signed-in` (default), a reader with a token or a signed-in session, in their scope (401 without one); `off`, nobody (404). Only released content is ever shown, a release’s tag, never a branch or a draft; a manual, variant or language the reader may not see is 404, exactly like a missing one, and so is a moved address, until the reader may see what it leads to." operationId: StableAddresses_qrPng parameters: - name: product required: true in: path description: "The product: a value of the product facet." schema: type: string example: north - name: manual required: true in: path description: "The manual’s address: `delivery.manuals..slug`, else its ID; a former one (`formerly`) is 301 to the current." schema: type: string example: operating - name: variant required: true in: path description: The variant’s slug (`model=large`). schema: type: string example: model=large - name: lang required: true in: path description: The language; `@` pins one release (`en@2.1`), else the product’s latest release (the newest of `main` not withdrawn). Another case of a configured language is 301 to it; one the release does not have is the language picker (300) or 302 to the source language (`delivery.missingLanguage`). schema: type: string example: en responses: "200": description: The QR code, made by the API (no network call). content: image/svg+xml: schema: type: string image/png: schema: type: string format: binary "301": description: "The address moved for good: a former address of the manual (`delivery.manuals..formerly`), its ID where it has a slug, or another letter case of the language. `Location` is the current address, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "302": description: "A language the release does not have, with `delivery.missingLanguage: source`: `Location` is the same address in the source language, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "400": description: "`unsupported-parameter`: a query parameter the route does not take, or a value it does not take (the page’s `theme`). The parameters `CCMS_DELIVERY_IGNORED_QUERY` names (default `utm_*`: the tracking parameters a shared link picks up) are ignored, so such a link opens as the address without them: an exception to the API’s rule, as these are reader-facing addresses, not the JSON:API." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: "`delivery.access` is `signed-in` and the request has no token." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no manual at this address for this reader. `not-found` also when `delivery.access` is `off`." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "409": description: "`public-url-not-set`: `CCMS_PUBLIC_URL` is not set, so there is no address to hold." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "410": description: "`release-withdrawn`: the pinned release was withdrawn; the latest address (without `@`) opens the current one." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "429": description: "`rate-limited`: more pages, PDFs and QR codes under `/d/` this minute than `CCMS_DELIVERY_PER_MINUTE` allows one client on this server (default 60): a request without a token by its address (`CCMS_TRUST_PROXY` says which proxies in front to believe about it), one with a token or a session by its actor (on a `public` address, which reads no credentials, everyone by their address). A 304 revalidation of a page or a PDF counts nothing. `Retry-After` (and `meta.retryAfter`) says when to try again." headers: Retry-After: description: Seconds until the next request fits. schema: type: integer content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: The QR code of a stable address, as PNG tags: - stable-addresses x-audience: delivery x-required-permission: content.read /d/{product}/{manual}/{variant}/{lang}/pdf/qr.svg: get: description: "As `…/qr.svg`, of the PDF’s address. Who may open it is `delivery.access` in `openfolia.yaml` on `main`, at most the deployment’s `CCMS_DELIVERY_MAX_ACCESS` (default `public`, no cap): `public`, anyone, without a token, as a reader of the `delivery.publicAudience` level (default the first audience), always: a session, a token or any other credential sent with the request is ignored (never checked, counted or refused), so a signed-in person sees exactly what the public sees and the answer varies by no credential (no `Vary: Cookie` or `Authorization`); `signed-in` (default), a reader with a token or a signed-in session, in their scope (401 without one); `off`, nobody (404). Only released content is ever shown, a release’s tag, never a branch or a draft; a manual, variant or language the reader may not see is 404, exactly like a missing one, and so is a moved address, until the reader may see what it leads to." operationId: StableAddresses_pdfQrSvg parameters: - name: product required: true in: path description: "The product: a value of the product facet." schema: type: string example: north - name: manual required: true in: path description: "The manual’s address: `delivery.manuals..slug`, else its ID; a former one (`formerly`) is 301 to the current." schema: type: string example: operating - name: variant required: true in: path description: The variant’s slug (`model=large`). schema: type: string example: model=large - name: lang required: true in: path description: The language; `@` pins one release (`en@2.1`), else the product’s latest release (the newest of `main` not withdrawn). Another case of a configured language is 301 to it; one the release does not have is the language picker (300) or 302 to the source language (`delivery.missingLanguage`). schema: type: string example: en responses: "200": description: The QR code, made by the API (no network call). content: image/svg+xml: schema: type: string image/png: schema: type: string format: binary "301": description: "The address moved for good: a former address of the manual (`delivery.manuals..formerly`), its ID where it has a slug, or another letter case of the language. `Location` is the current address, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "302": description: "A language the release does not have, with `delivery.missingLanguage: source`: `Location` is the same address in the source language, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "400": description: "`unsupported-parameter`: a query parameter the route does not take, or a value it does not take (the page’s `theme`). The parameters `CCMS_DELIVERY_IGNORED_QUERY` names (default `utm_*`: the tracking parameters a shared link picks up) are ignored, so such a link opens as the address without them: an exception to the API’s rule, as these are reader-facing addresses, not the JSON:API." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: "`delivery.access` is `signed-in` and the request has no token." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no manual at this address for this reader. `not-found` also when `delivery.access` is `off`." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "409": description: "`public-url-not-set`: `CCMS_PUBLIC_URL` is not set, so there is no address to hold." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "410": description: "`release-withdrawn`: the pinned release was withdrawn; the latest address (without `@`) opens the current one." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "429": description: "`rate-limited`: more pages, PDFs and QR codes under `/d/` this minute than `CCMS_DELIVERY_PER_MINUTE` allows one client on this server (default 60): a request without a token by its address (`CCMS_TRUST_PROXY` says which proxies in front to believe about it), one with a token or a session by its actor (on a `public` address, which reads no credentials, everyone by their address). A 304 revalidation of a page or a PDF counts nothing. `Retry-After` (and `meta.retryAfter`) says when to try again." headers: Retry-After: description: Seconds until the next request fits. schema: type: integer content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: The QR code of a stable PDF address, as SVG tags: - stable-addresses x-audience: delivery x-required-permission: content.read /d/{product}/{manual}/{variant}/{lang}/pdf/qr.png: get: description: "As `…/qr.png`, of the PDF’s address. Who may open it is `delivery.access` in `openfolia.yaml` on `main`, at most the deployment’s `CCMS_DELIVERY_MAX_ACCESS` (default `public`, no cap): `public`, anyone, without a token, as a reader of the `delivery.publicAudience` level (default the first audience), always: a session, a token or any other credential sent with the request is ignored (never checked, counted or refused), so a signed-in person sees exactly what the public sees and the answer varies by no credential (no `Vary: Cookie` or `Authorization`); `signed-in` (default), a reader with a token or a signed-in session, in their scope (401 without one); `off`, nobody (404). Only released content is ever shown, a release’s tag, never a branch or a draft; a manual, variant or language the reader may not see is 404, exactly like a missing one, and so is a moved address, until the reader may see what it leads to." operationId: StableAddresses_pdfQrPng parameters: - name: product required: true in: path description: "The product: a value of the product facet." schema: type: string example: north - name: manual required: true in: path description: "The manual’s address: `delivery.manuals..slug`, else its ID; a former one (`formerly`) is 301 to the current." schema: type: string example: operating - name: variant required: true in: path description: The variant’s slug (`model=large`). schema: type: string example: model=large - name: lang required: true in: path description: The language; `@` pins one release (`en@2.1`), else the product’s latest release (the newest of `main` not withdrawn). Another case of a configured language is 301 to it; one the release does not have is the language picker (300) or 302 to the source language (`delivery.missingLanguage`). schema: type: string example: en responses: "200": description: The QR code, made by the API (no network call). content: image/svg+xml: schema: type: string image/png: schema: type: string format: binary "301": description: "The address moved for good: a former address of the manual (`delivery.manuals..formerly`), its ID where it has a slug, or another letter case of the language. `Location` is the current address, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "302": description: "A language the release does not have, with `delivery.missingLanguage: source`: `Location` is the same address in the source language, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "400": description: "`unsupported-parameter`: a query parameter the route does not take, or a value it does not take (the page’s `theme`). The parameters `CCMS_DELIVERY_IGNORED_QUERY` names (default `utm_*`: the tracking parameters a shared link picks up) are ignored, so such a link opens as the address without them: an exception to the API’s rule, as these are reader-facing addresses, not the JSON:API." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: "`delivery.access` is `signed-in` and the request has no token." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no manual at this address for this reader. `not-found` also when `delivery.access` is `off`." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "409": description: "`public-url-not-set`: `CCMS_PUBLIC_URL` is not set, so there is no address to hold." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "410": description: "`release-withdrawn`: the pinned release was withdrawn; the latest address (without `@`) opens the current one." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "429": description: "`rate-limited`: more pages, PDFs and QR codes under `/d/` this minute than `CCMS_DELIVERY_PER_MINUTE` allows one client on this server (default 60): a request without a token by its address (`CCMS_TRUST_PROXY` says which proxies in front to believe about it), one with a token or a session by its actor (on a `public` address, which reads no credentials, everyone by their address). A 304 revalidation of a page or a PDF counts nothing. `Retry-After` (and `meta.retryAfter`) says when to try again." headers: Retry-After: description: Seconds until the next request fits. schema: type: integer content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: The QR code of a stable PDF address, as PNG tags: - stable-addresses x-audience: delivery x-required-permission: content.read /d/{product}/{manual}/{variant}/{lang}/assets/{hash}: get: description: "An image the page shows, as `GET /assets/{sha256}` serves it at the release’s tag, for the reader. Its bytes never change, but who may read them can (a withdrawal, `delivery.access`): a public one is `public, max-age=86400, s-maxage=, proxy-revalidate` (a shared cache asks again after that, default 300 s, and is told 410 once the release is withdrawn), a signed-in reader’s `private, max-age=86400`; the ETag is the hash, so a revalidation is a 304 without reading the file. Who may open it is `delivery.access` in `openfolia.yaml` on `main`, at most the deployment’s `CCMS_DELIVERY_MAX_ACCESS` (default `public`, no cap): `public`, anyone, without a token, as a reader of the `delivery.publicAudience` level (default the first audience), always: a session, a token or any other credential sent with the request is ignored (never checked, counted or refused), so a signed-in person sees exactly what the public sees and the answer varies by no credential (no `Vary: Cookie` or `Authorization`); `signed-in` (default), a reader with a token or a signed-in session, in their scope (401 without one); `off`, nobody (404). Only released content is ever shown, a release’s tag, never a branch or a draft; a manual, variant or language the reader may not see is 404, exactly like a missing one, and so is a moved address, until the reader may see what it leads to." operationId: StableAddresses_asset parameters: - name: hash required: true in: path schema: type: string - name: product required: true in: path description: "The product: a value of the product facet." schema: type: string example: north - name: manual required: true in: path description: "The manual’s address: `delivery.manuals..slug`, else its ID; a former one (`formerly`) is 301 to the current." schema: type: string example: operating - name: variant required: true in: path description: The variant’s slug (`model=large`). schema: type: string example: model=large - name: lang required: true in: path description: The language; `@` pins one release (`en@2.1`), else the product’s latest release (the newest of `main` not withdrawn). Another case of a configured language is 301 to it; one the release does not have is the language picker (300) or 302 to the source language (`delivery.missingLanguage`). schema: type: string example: en responses: "200": description: The image. content: image/*: schema: type: string format: binary "301": description: "The address moved for good: a former address of the manual (`delivery.manuals..formerly`), its ID where it has a slug, or another letter case of the language. `Location` is the current address, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "302": description: "A language the release does not have, with `delivery.missingLanguage: source`: `Location` is the same address in the source language, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "400": description: "`unsupported-parameter`: a query parameter the route does not take, or a value it does not take (the page’s `theme`). The parameters `CCMS_DELIVERY_IGNORED_QUERY` names (default `utm_*`: the tracking parameters a shared link picks up) are ignored, so such a link opens as the address without them: an exception to the API’s rule, as these are reader-facing addresses, not the JSON:API." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: "`delivery.access` is `signed-in` and the request has no token." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no manual at this address for this reader. `not-found` also when `delivery.access` is `off`." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "410": description: "`release-withdrawn`: the pinned release was withdrawn; the latest address (without `@`) opens the current one." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: An image of a stable address’s page tags: - stable-addresses x-audience: delivery x-required-permission: content.read /d/{product}/{manual}/{variant}/{lang}/symbols/{id}: get: description: "A safety symbol’s artwork the page shows, as `GET /symbols/{id}` serves it at the release’s tag. Who may open it is `delivery.access` in `openfolia.yaml` on `main`, at most the deployment’s `CCMS_DELIVERY_MAX_ACCESS` (default `public`, no cap): `public`, anyone, without a token, as a reader of the `delivery.publicAudience` level (default the first audience), always: a session, a token or any other credential sent with the request is ignored (never checked, counted or refused), so a signed-in person sees exactly what the public sees and the answer varies by no credential (no `Vary: Cookie` or `Authorization`); `signed-in` (default), a reader with a token or a signed-in session, in their scope (401 without one); `off`, nobody (404). Only released content is ever shown, a release’s tag, never a branch or a draft; a manual, variant or language the reader may not see is 404, exactly like a missing one, and so is a moved address, until the reader may see what it leads to." operationId: StableAddresses_symbol parameters: - name: id required: true in: path schema: type: string - name: product required: true in: path description: "The product: a value of the product facet." schema: type: string example: north - name: manual required: true in: path description: "The manual’s address: `delivery.manuals..slug`, else its ID; a former one (`formerly`) is 301 to the current." schema: type: string example: operating - name: variant required: true in: path description: The variant’s slug (`model=large`). schema: type: string example: model=large - name: lang required: true in: path description: The language; `@` pins one release (`en@2.1`), else the product’s latest release (the newest of `main` not withdrawn). Another case of a configured language is 301 to it; one the release does not have is the language picker (300) or 302 to the source language (`delivery.missingLanguage`). schema: type: string example: en responses: "200": description: The artwork. content: image/*: schema: type: string format: binary "301": description: "The address moved for good: a former address of the manual (`delivery.manuals..formerly`), its ID where it has a slug, or another letter case of the language. `Location` is the current address, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "302": description: "A language the release does not have, with `delivery.missingLanguage: source`: `Location` is the same address in the source language, relative to this one." headers: Location: description: Where the address is now, relative to the request’s path. schema: type: string "400": description: "`unsupported-parameter`: a query parameter the route does not take, or a value it does not take (the page’s `theme`). The parameters `CCMS_DELIVERY_IGNORED_QUERY` names (default `utm_*`: the tracking parameters a shared link picks up) are ignored, so such a link opens as the address without them: an exception to the API’s rule, as these are reader-facing addresses, not the JSON:API." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: "`delivery.access` is `signed-in` and the request has no token." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no manual at this address for this reader. `not-found` also when `delivery.access` is `off`." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "410": description: "`release-withdrawn`: the pinned release was withdrawn; the latest address (without `@`) opens the current one." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: A safety symbol of a stable address’s page tags: - stable-addresses x-audience: delivery x-required-permission: content.read /stable-addresses: get: description: "One entry per manual, variant and language of a release’s outputs (#249) the reader may read (a role covering all of the manual, as `GET /releases/{id}/outputs` judges it): its latest and pinned addresses (page and PDF), as paths and, with `CCMS_PUBLIC_URL` set, as URLs. Without `filter[release]`, of each product’s latest release (the newest of `main` not withdrawn), in the product facet’s order. `meta.access` says who may open them. Ordered by release, then manual, variant, language." operationId: StableAddressList_addresses parameters: - name: filter[release] required: false in: query description: "One release’s addresses (its ID). Default: each product’s latest release." schema: type: string format: uuid pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ - name: filter[product] required: false in: query description: Only this product’s latest release. schema: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ - name: filter[manual] required: false in: query description: Only this manual’s addresses (its ID). schema: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ - name: filter[lang] required: false in: query description: Only addresses in this language. schema: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ - name: page[number] required: false in: query description: "Page to return, from 1. Default: 1." schema: type: integer minimum: 1 - name: page[size] required: false in: query description: "Resources per page. Default: 50, at most 200." schema: type: integer minimum: 1 maximum: 200 responses: "200": description: "" content: application/vnd.api+json: schema: $ref: "#/components/schemas/StableAddressPageDocument" "400": description: A query parameter the route does not support, or a malformed one. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "401": description: Missing or wrong API token. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "403": description: "`forbidden`: the actor lacks the `content.read` permission." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "404": description: "`not-found`: no release with the ID `filter[release]` names." content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" "406": description: The `Accept` header rules out `application/vnd.api+json`. content: application/vnd.api+json: schema: $ref: "#/components/schemas/ErrorDocument" summary: List stable addresses tags: - stable-addresses x-audience: delivery x-required-permission: content.read info: title: OpenFolia delivery API description: |- The read routes of the content platform, for building your own viewer, portal or app integration: the project configuration, modules, manuals, a manual resolved for one variant and language, HTML and PDF output, and images. Authoring, review and administration routes are not part of this document. ## Authentication Every route except `GET /health` needs `Authorization: Bearer `. Ask an administrator for a **service account** token (`ccms_sat_…`): it acts through the service account's roles, and for a consumer that is a role holding **only `content.read`** in the scope you need (languages, module types, audience levels), which reads released content only, `main` and release tags. A token expires (90 days by default) and can be revoked at any time; it is meant for your server, not for end users, so keep it out of browser apps and apps you hand to others, and send it only in the `Authorization` header, never in a URL. A revoked or expired token is `401` (`token-revoked`, `token-expired`), one of a deactivated service account `403 service-account-deactivated`; too many failed attempts from one address are `429 too-many-failed-attempts` with `Retry-After`. A route never reveals what lies outside the reader's scope: such content answers `404 not-found`, exactly like content that does not exist. Without a token, or with a wrong one, the answer is `401`; a reader without `content.read` gets `403 forbidden`. `GET /preview/{name}` and `GET /preview/fonts/{name}` (the stylesheets and fonts of the HTML pages) need a token but no permission. ## Refs and caching Every content route reads one version of the content, chosen with `?ref=`: `main`, a **release tag** (a published, named version) or a **commit ID**. Without `ref` the server's default applies (normally `main`). `GET /refs` lists the refs you may read, each with the commit it points to. `GET /releases` lists the releases, newest first, each a product revision with its notes (also per language, `attributes.notesByLanguage`), whether it is `major`, and its tag (`attributes.tag`): pass the tag as `?ref=` to read exactly what was released. A release tag never moves. A release can be **withdrawn** (`attributes.withdrawal`: who, when, why): its tag stays readable, but it no longer counts as a module’s newest release. Where you read it by tag you learn so: in `GET /refs` the tag carries `meta.withdrawal` (`{ by, at, reason }`, null while the release stands), and every read at the tag answers with the header `X-Ccms-Withdrawn: true` (absent otherwise; a read by the tag’s commit ID is not marked). Its `ETag` changes when the release is withdrawn, so a cached answer is not confirmed. ## Changelog `GET /changelog` lists the releases newest first, withdrawn ones marked with their reason, each with its notes and in `meta.changedManuals` how many manuals it changed (`filter[product]`, `filter[manual]`, `filter[lang]`, `filter[major]`). `GET /releases/{releaseId}/changes` lists what one release changed against its product's previous release that stands: one entry per manual and language, with the modules that changed in it (`added`, `changed`, `removed`, with their blocks by ID); a product's first release lists every manual as added. Both are scoped like every read: a manual or module outside the reader's scope is never named or counted. The commit a response was read from is in the `X-Ccms-Commit` header. Caching follows the ref: - A **commit ID** never changes: the response is `Cache-Control: private, max-age=31536000, immutable`. Pin a commit (or resolve `main` or a tag to its commit once and request that) to cache for good. - `main` can move, and a tag is not a commit ID, so the response is `private, no-cache` with an `ETag`. Send it back as `If-None-Match` and a `304` costs almost nothing. The `ETag` also depends on what the reader may see, so two readers with different scopes never share a cached answer. ## Downloads `GET /downloads` lists every downloadable file of each product at its latest release: the files attached in modules (`kind` `attachment`) and the manuals' PDFs (`manual`), each with its name, file name, media type, size and SHA-256 checksum (`filter[product]`, `filter[lang]`, `filter[kind]`, `filter[mediaType]`, `filter[q]`). `GET /downloads/{id}/versions` lists one file's versions across the product's releases, newest first, one where its checksum changed, each `current`, `superseded` or `withdrawn` with its release and change note; `GET /downloads/{id}/versions/{releaseId}/file` sends that version's file. Scoped like every read: a file in a module outside the reader's scope is never listed, counted or given versions. ## Variants, languages and resolving a manual A **module** is one piece of content in one language. A **manual** is a manifest that lists modules; one manual yields many outputs, one per **variant** and **language**. - `GET /config` lists the languages, module types, audience levels and the variant attributes with their values. Nothing is hardcoded: read it instead of assuming. - `GET /manuals/{id}` shows the manual with the variants it publishes: each variant is a slug of `attribute=value` pairs joined by commas, with a label. - `GET /manuals/{id}/variants/{variant}/{lang}` is the **resolved manual**: the manifest with its conditions applied for that variant, the modules in reading order with their content, ready to render. Use the slug exactly as `GET /manuals/{id}` gives it. - `GET /modules` and `GET /modules/{lang}/{id}` read single modules, for example to build a search index or a help panel. A manual, variant or language that does not exist is a `404`. On `GET /modules/{lang}/{id}/preview`, an optional `?variant=` naming an attribute or value the configuration does not know is a `422 unknown-variant`. ## Search `GET /search?filter[q]=` finds modules by title, keywords and text and manuals by title, at the same `?ref=` as every other read and among what the reader may see (scoped like every read). Each result carries a plain-text `meta.excerpt` (never markup) and `meta.matches`, the `{ start, end }` offsets of the matches in the excerpt in UTF-16 units, so a client highlights by slicing text. Optional filters, applied before paging: `filter[lang]`, `filter[resourceType]` (`Module` or `Manual`), and for modules `filter[type]` (a module type), `filter[audience]`, `filter[facet]=:` and `filter[keyword]` (an exact keyword, case and diacritics aside), the last two repeatable, every value required. With a module filter, `filter[q]` may be left out. `filter[type]=module` or `manual` still means `filter[resourceType]` when that is not given (deprecated). Results are paged like every list. ## Retrieval chunks `GET /chunks` gives the content as ready-made chunks for a retrieval (RAG) pipeline: one per module and language the reader may see, the module as Markdown in `attributes.text` with the metadata to filter on (`moduleType`, `audience`, `facets`, `keywords`, `manuals`, the variant `conditions`, the newest release in `meta.release`) and `contentHash`, the SHA-256 of the text. Scoped like every read: a module outside the reader’s scope is never listed, counted or inlined into another chunk. `filter[variant]` resolves variant blocks for one variant; without it each is kept, headed by its condition. To sync: page through `GET /chunks?ref=main` and store each chunk by its `id`, embedding it only when its `contentHash` is new; keep the `X-Ccms-Commit` of the first page and read every later page at `?ref=`. Next time, ask for `GET /chunks?ref=main&filter[changedSince]=`: only the chunks that may have changed since. Chunks of modules deleted since are not listed there: a full sync now and then drops them. A new release changes `meta.release` but no file, so sync in full after a release. ## Images Content refers to an image as `sha256:`. Fetch it from `GET /assets/{hash}` with the same `?ref=` as the content that referred to it. The bytes of a hash never change, so the answer is cacheable like any commit-pinned response. An image the reader may not see, or that the ref does not use, is `404`. ## HTML and PDF You can render the resolved manual yourself, or take a rendering from the server: - `GET /manuals/{id}/variants/{variant}/{lang}/html` and `GET /modules/{lang}/{id}/preview` return a complete HTML page (`text/html`). It links its stylesheets and fonts (`GET /preview/{name}`, `GET /preview/fonts/{name}`) and its images relative to its own URL, and it follows the viewer's light or dark setting unless you pass `theme=light` or `theme=dark`. The page carries a strict content security policy: no script, nothing from another origin. - `GET /manuals/{id}/variants/{variant}/{lang}/pdf` returns the PDF (`application/pdf`); the header `X-Ccms-Issues` gives the number of content issues found while resolving. A busy renderer answers `503 renderer-busy` with `Retry-After`: wait that many seconds and ask again. ## Responses and errors JSON responses follow [JSON:API](https://jsonapi.org/format/) (`application/vnd.api+json`; send an `Accept` header that allows it, or the answer is `406`). Resources are `{ type, id, attributes, relationships, meta }`: `attributes` hold stored data in camelCase, `meta` what the server derives from it (validation issues, summaries). Every list is paged: `page[number]` (from 1) and `page[size]` (default 50, at most 200), with `meta.page` and `links` to follow. A query parameter a route does not support is `400`. Errors have the same shape on every route, binary ones and HTML pages included: `{ "errors": [{ "status", "title", "detail", "code", "source"?, "meta"? }] }`. Branch on `code` (for example `not-found`, `invalid-parameter`, `unknown-variant`, `renderer-busy`), which is stable; `detail` is text for people and may change. `source.parameter` names a bad parameter; `meta.retryAfter` is the seconds to wait. ## Health `GET /health` needs no token and answers whether the server runs, for monitoring. version: "0.1" contact: {} tags: [] servers: - url: http://localhost:3000 description: The API this reference describes (DOCS_API_BASE_URL); set the address of your own server. components: securitySchemes: bearer: scheme: bearer bearerFormat: JWT type: http description: A service account's token (`ccms_sat_…`, issued by `POST /service-accounts/{id}/tokens`), or, for local use and demo mode, the server's shared `CCMS_API_TOKEN`. schemas: ErrorDocument: type: object properties: errors: minItems: 1 type: array items: $ref: "#/components/schemas/ErrorObject" required: - errors additionalProperties: false ErrorObject: type: object properties: status: type: string description: The HTTP status code, as a string. title: type: string description: The HTTP status text. detail: type: string description: What went wrong, for people. code: type: string description: Stable machine-readable code, e.g. `invalid-content`. source: type: object properties: parameter: description: The query or path parameter at fault. type: string header: description: The request header at fault. type: string pointer: description: "JSON pointer to the request body member at fault; for working copies being committed, into the working copy: `/module//` or `/manual/`, then `/blocks/` when a block is at fault." type: string additionalProperties: false meta: description: Details, e.g. `path` (the repository file at fault), `retryAfter` (seconds) or `diagnostics` (PDF compiler messages). type: object additionalProperties: {} required: - status - title - detail - code additionalProperties: false PageMeta: type: object properties: currentPage: type: integer minimum: -9007199254740991 maximum: 9007199254740991 lastPage: type: integer minimum: -9007199254740991 maximum: 9007199254740991 perPage: type: integer minimum: -9007199254740991 maximum: 9007199254740991 total: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: Resources across all pages. required: - currentPage - lastPage - perPage - total additionalProperties: false PageLinks: type: object properties: self: type: string first: type: string last: type: string prev: nullable: true type: string next: nullable: true type: string required: - self - first - last - prev - next additionalProperties: false Health: type: object properties: status: type: string enum: - ok - degraded description: "`degraded` when a dependency is unavailable" database: type: string enum: - ok - unavailable pool: type: string enum: - ok - saturated description: "`saturated` when queries wait for a free database connection" blobs: type: string enum: - ok - unavailable description: "`unavailable` when the blob store (images, files) does not answer" required: - status - database - pool - blobs additionalProperties: false RefPageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/RefResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" required: - page additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false RefResource: type: object properties: type: type: string enum: - Ref id: type: string attributes: type: object properties: kind: type: string enum: - branch - tag name: type: string commit: type: string description: The commit it points to (tags are peeled). required: - kind - name - commit additionalProperties: false meta: description: Tags only. type: object properties: withdrawal: nullable: true description: "Set when the tag is a withdrawn release’s: reads at it keep working, and say so in `X-Ccms-Withdrawn: true`. Null while the release stands, or when the tag is no release’s." type: object properties: by: type: object properties: kind: type: string enum: - user - service id: type: string required: - kind - id additionalProperties: false description: Who withdrew it. at: type: string format: date-time pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ description: When. reason: type: string description: Why, in their words. required: - by - at - reason additionalProperties: false required: - withdrawal additionalProperties: false required: - type - id - attributes additionalProperties: false description: "`id` is `heads/` or `tags/`." ProjectConfigDocument: type: object properties: data: $ref: "#/components/schemas/ProjectConfigResource" required: - data additionalProperties: false ProjectConfigResource: type: object properties: type: type: string enum: - ProjectConfig id: type: string attributes: $ref: "#/components/schemas/ProjectConfig" meta: description: Only when the configuration holds an iiRDS or a DITA mapping, or a direction for a language not configured. type: object properties: iirdsIssues: description: "The check of the iiRDS mapping (`iirds`, #431) against the rest of the configuration, in the configuration’s order: what it leaves unmapped and keys naming nothing. Never refused, only reported. Bounded by the configuration (at most one per value it defines or key the mapping has). Only with an iiRDS mapping." type: array items: $ref: "#/components/schemas/IirdsMappingIssue" ditaIssues: description: "The check of the DITA mapping (`dita`, #432) against the rest of the configuration, in the mapping’s order: each value naming nothing configured. Never refused, only reported. Bounded by the mapping (at most one per value). Only with a DITA mapping." type: array items: $ref: "#/components/schemas/DitaMappingIssue" directionIssues: description: Each `languages.direction` entry for a language not configured (#396), sorted by tag. Never refused, only reported. Bounded by `languages.direction`. Only when there is one. type: array items: $ref: "#/components/schemas/LanguageDirectionIssue" additionalProperties: false required: - type - id - attributes additionalProperties: false description: "A singleton: `id` is always `project`." ProjectConfig: type: object properties: languages: type: object properties: source: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ description: The language content is written in, as a BCP 47 tag, e.g. `en` or `pt-BR`. Every module has a file in it; a missing translation falls back to it. targets: type: array items: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ description: "The languages content is translated into, as BCP 47 tags, e.g. `[de, fr-CA]`; no repeats, and not the source language. Manuals are made in the source language and in each of these. An empty list: no translations." direction: description: "Per language tag, the direction its text runs in, `ltr` or `rtl`, where its script’s own is not the one wanted, e.g. `{ ku: rtl }` for Kurdish written in Arabic script. A language left out takes its script’s direction (Arabic and Hebrew script run right to left); an entry for a language not configured does nothing." type: object additionalProperties: type: string enum: - ltr - rtl required: - source - targets additionalProperties: false description: "The project’s languages: the one content is written in and the ones it is translated into." moduleTypes: minItems: 1 type: array items: type: object properties: id: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: The module type’s ID, which each module names in its `type`, e.g. `task`, `concept` or `safety`. Lowercase letters, digits and `-`, starting with a letter, at most 64 characters; unique in its list. label: anyOf: - type: string minLength: 1 - type: object additionalProperties: type: string minLength: 1 description: "The module type’s name in the editor, e.g. `Task`. One text for every language, or one per language by language tag (`{ en: Task, de: Handlung }`), the source language’s among them; a language without its own shows the source language’s." restricted: default: false description: "`true`: a change set that changes a module of this type also needs a sign-off from someone with the `content.approve` permission over those modules (not its author, unless the installation allows self-approval) before it is merged, e.g. for safety content. Left out: `false`, the review’s approval is enough." type: boolean snippet: default: false description: "`true`: modules of this type hold reusable wording (a standard sentence, a safety paragraph), one or a few blocks that authors insert by reference or copy and that the editor suggests while writing. Left out: `false`, an ordinary module type." type: boolean safety: description: "`true`: modules of this type are safety content. A derived manual (`kind: derived`, e.g. a safety leaflet) whose rule names no module types gathers the modules of these types from its source manual, and its checks warn about a module of one it leaves out. Left out: `false`." type: boolean required: - id - label - restricted - snippet additionalProperties: false description: The kinds of module the project writes, at least one, each `{ id, label }`. A module’s type decides whether it needs a sign-off, which roles may change it, and how exports classify it. audiences: minItems: 1 type: array items: type: object properties: id: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: The audience level’s ID, which a module’s `audience` and a manual’s `audience` name, e.g. `operator` or `technician`. Lowercase letters, digits and `-`, starting with a letter, at most 64 characters; unique in its list. label: anyOf: - type: string minLength: 1 - type: object additionalProperties: type: string minLength: 1 description: "The audience level’s name in the editor and on title pages, e.g. `Operator`. One text for every language, or one per language by language tag (`{ en: Task, de: Handlung }`), the source language’s among them; a language without its own shows the source language’s." required: - id - label additionalProperties: false description: The audience levels, at least one, ordered from the least to the most restricted, each `{ id, label }`. A manual for one level leaves out modules for the levels after it; a module that names no audience gets the last, most restricted one. facets: default: [] description: "Classifications of modules, each `{ id, label, values }`, e.g. a product line or a region: for finding and filtering modules, for keeping a role to some of them, and for the products a release is cut for (`release.productFacet`). Left out: none." type: array items: type: object properties: id: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: The facet’s ID, which a module’s `facets` name, e.g. `product` or `topic`. Lowercase letters, digits and `-`, starting with a letter, at most 64 characters; unique in its list. label: anyOf: - type: string minLength: 1 - type: object additionalProperties: type: string minLength: 1 description: "The facet’s name in the editor, e.g. `Product`. One text for every language, or one per language by language tag (`{ en: Task, de: Handlung }`), the source language’s among them; a language without its own shows the source language’s." values: minItems: 1 type: array items: type: object properties: id: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: The value’s ID, which a module’s `facets` give for this facet, e.g. `north`. Lowercase letters, digits and `-`, starting with a letter, at most 64 characters; unique in its list. label: anyOf: - type: string minLength: 1 - type: object additionalProperties: type: string minLength: 1 description: "The value’s name in the editor, e.g. `North series`. One text for every language, or one per language by language tag (`{ en: Task, de: Handlung }`), the source language’s among them; a language without its own shows the source language’s." required: - id - label additionalProperties: false description: The values a module can be classified with in this facet, at least one, each `{ id, label }`. required: - id - label - values additionalProperties: false variantAttributes: default: [] description: "The attributes content varies by, each `{ id, label, kind }`, e.g. a model or a software version. `variant` blocks and `when:` conditions test them, and each manual lists the combinations it ships. Left out: content does not vary." type: array items: $ref: "#/components/schemas/VariantAttribute" textAttributes: default: [] description: "Named text values that content uses inline (`{product-name}`), each `{ id, label }`; each manual sets their values, per variant where they differ. Left out: none." type: array items: type: object properties: id: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: The text attribute’s ID, which text refers to as `{id}`, e.g. `{product-name}`. `empty` is reserved. Lowercase letters, digits and `-`, starting with a letter, at most 64 characters; unique in its list. label: anyOf: - type: string minLength: 1 - type: object additionalProperties: type: string minLength: 1 description: "The text attribute’s name in the editor, e.g. `Product name`. One text for every language, or one per language by language tag (`{ en: Task, de: Handlung }`), the source language’s among them; a language without its own shows the source language’s." required: - id - label additionalProperties: false safetySymbols: default: [] description: "The pictograms safety messages may show, each `{ id, label }`. A symbol without artwork prints as a placeholder in the PDF and is left out of the web page. Left out: none." type: array items: type: object properties: id: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: The symbol’s ID, which a safety message’s `symbols` name; its artwork is `symbols/.svg` or `symbols/.png` in the content repository, e.g. `hot-surface`. Lowercase letters, digits and `-`, starting with a letter, at most 64 characters; unique in its list. label: anyOf: - type: string minLength: 1 - type: object additionalProperties: type: string minLength: 1 description: "The symbol’s name in the editor, and its alternative text in outputs, e.g. `Hot surface`. One text for every language, or one per language by language tag (`{ en: Task, de: Handlung }`), the source language’s among them; a language without its own shows the source language’s." required: - id - label additionalProperties: false calloutStyles: description: "The marker styles an image callout may use besides the default, each `{ id, label }`, e.g. a square for parts to remove. A callout without a style is a filled circle with its number. Left out: none." type: array items: type: object properties: id: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: The style’s ID, which an image callout names in its `style`, e.g. `remove`. Lowercase letters, digits and `-`, starting with a letter, at most 64 characters; unique in its list. label: anyOf: - type: string minLength: 1 - type: object additionalProperties: type: string minLength: 1 description: "The style’s name in the editor, e.g. `Part to remove`. One text for every language, or one per language by language tag (`{ en: Task, de: Handlung }`), the source language’s among them; a language without its own shows the source language’s." required: - id - label additionalProperties: false translations: description: "Per target language, what its labels were translated from: `{ sourceCommit, blocks }`, `blocks` the source hash of each label (`moduleTypes.`, `facets..`, …) its translation was made from. Written by a translation import and by marking a translation current; left out: no record." type: object additionalProperties: type: object properties: sourceCommit: type: string pattern: ^(?:[0-9a-f]{40}|[0-9a-f]{64})$ description: The full ID of the commit whose labels were translated. blocks: type: object additionalProperties: type: string pattern: ^[0-9a-f]{64}$ description: The SHA-256 of the source-language label the translation was made from. description: Per label (`moduleTypes.`, `facets..`, …), the source hash its translation was made from. required: - sourceCommit - blocks additionalProperties: false description: One target language’s record. outputLabels: default: {} description: "The fixed texts outputs print around the content (signal words, admonition captions, the contents title, …), per manual language, each replacing the shipped default. The manual’s language decides them, never the reader’s. Left out: the shipped defaults." type: object additionalProperties: type: object properties: danger: description: "The signal word of a `danger` safety message, e.g. `DANGER`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 warning: description: "The signal word of a `warning` safety message, e.g. `WARNING`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 caution: description: "The signal word of a `caution` safety message, e.g. `CAUTION`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 notice: description: "The signal word of a `notice` safety message, e.g. `NOTICE`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 note: description: "The caption of a `note` admonition, e.g. `Note`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 tip: description: "The caption of a `tip` admonition, e.g. `Tip`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 important: description: "The caption of an `important` admonition, e.g. `Important`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 contents: description: "The title of the table of contents, e.g. `Contents`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 figure: description: "The word before a figure’s number in its caption, e.g. `Figure`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 table: description: "The word before a table’s number in its caption, e.g. `Table`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 unconverted: description: "The caption of content an import could not convert (a passthrough block), e.g. `Unconverted content`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 attachment: description: "The label in front of an attached file’s name, e.g. `Attachment`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 attachmentNote: description: "The note the PDF prints with an attached file, which a reader downloads from the online version, e.g. `Download the file from the online version of this document.`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 glossary: description: "The title of the glossary that ends a manual whose manifest sets `glossary: true`, e.g. `Glossary`. Without it: the label of the base language (`pt` for `pt-BR`), then the shipped default (English, German, French, Arabic and Hebrew ship one), else English, reported as `missing-label`." type: string minLength: 1 additionalProperties: false description: "One language’s labels, by language tag (`pt-BR`; `pt` also fills what a `pt-…` set leaves out): any of the keys below." maxHeadingLevel: default: 3 description: "The deepest heading level the editor offers, 1 to 5: Heading 1 is a section at the top of a module, Heading 2 a section inside it, and so on. Modules stored with deeper sections stay valid. Left out: 3." type: integer minimum: 1 maximum: 5 codeLanguages: default: [] description: "Languages the editor offers for a code block besides the ones it ships, each `{ id, label }`. Left out: only the shipped ones." type: array items: type: object properties: id: type: string maxLength: 32 pattern: ^[A-Za-z0-9][A-Za-z0-9+#._-]*$ description: "The language word a code block stores, one word of letters, digits and `+ # . _ -`, at most 32 characters, e.g. `fortran` or `c++`. An ID the editor already ships replaces its label." label: type: string minLength: 1 description: The language’s name in the editor’s picker, e.g. `Fortran`. required: - id - label additionalProperties: false release: description: "How releases are cut. Left out: every default." type: object properties: productFacet: description: "The ID of the facet whose values are the products a release is cut for (a release is a product at a revision), e.g. `product`; it must name a configured facet. Left out: the first facet." type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ checkManufacturer: description: "`true`: every manual’s checks warn (`missing-manufacturer`) while `manufacturer` is not set, so no manual is released without its imprint. Left out: `false`." type: boolean additionalProperties: false manufacturer: description: "The manufacturer’s details for the imprint: a page design’s back page prints them, and its `manufacturer-name`, `manufacturer-address`, `manufacturer-contact` and `manufacturer-website` placeholders show them on any page. Left out: none (with `release.checkManufacturer`, every manual’s checks warn)." type: object properties: name: type: string minLength: 1 maxLength: 200 pattern: ^\S(?:[^\n\r]*\S)?$ description: The manufacturer’s name as printed, one line, at most 200 characters, e.g. `Example Works Ltd`. address: default: [] description: "The postal address, one entry per printed line, at most 10 lines, e.g. `[1 Sample Street, 12345 Sample Town]`. Left out: none." maxItems: 10 type: array items: type: string minLength: 1 maxLength: 200 pattern: ^\S(?:[^\n\r]*\S)?$ contact: description: "How to reach the manufacturer, one line, e.g. `info@example.com · +1 555 0100`. Left out: none." type: string minLength: 1 maxLength: 200 pattern: ^\S(?:[^\n\r]*\S)?$ website: description: "The manufacturer’s website, an absolute `https:` or `http:` address (or a `mailto:` one), e.g. `https://example.com`. Left out: none." type: string maxLength: 2000 format: uri required: - name - address additionalProperties: false styleGuide: description: "The house style in plain words (e.g. “Address the reader as you. One instruction per step.”), at most 20,000 characters. The model-based style review sends it with a module’s text when an author asks for one. Left out: the review has no house style to check against." type: string minLength: 1 maxLength: 20000 terminology: description: "How the terminology checks weigh what they find: forbidden variants of approved terms and the variants of deprecated terms, matched in each module’s language without case, as whole words. Left out: every default." type: object properties: forbiddenIsBlocking: default: false description: "`true`: a forbidden variant of an approved term in a module’s text is a blocking check (`forbidden-term`), which holds up review and release until it is replaced. Left out: `false`, a warning. A variant of a deprecated term is always a warning." type: boolean required: - forbiddenIsBlocking additionalProperties: false styleRules: description: "The house style as rules, per language: phrases and patterns the checks before review and release, the CLI check (`check-content`) and the editor report in each module’s text, with their message and fix, and the longest sentence. Only translatable text is read (never code, literal or passthrough blocks). Left out: no style rules." type: object additionalProperties: type: object properties: maxSentenceWords: description: "The most words a sentence may have, 5 to 200, e.g. `25`: a longer one is a `style-rule` warning. A sentence ends at `.`, `!`, `?` or `…` before white space, or at a line break. Left out: sentences of any length." type: integer minimum: 5 maximum: 200 rules: default: [] description: "The language’s rules, at most 200, each a `style-rule` check where it matches. Left out: none." maxItems: 200 type: array items: type: object properties: id: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: The rule’s ID, which its findings name, e.g. `in-order-to`. Lowercase letters, digits and `-`, starting with a letter, at most 64 characters; unique in its language. words: description: "A phrase to find, at most 200 characters, e.g. `in order to`: matched as whole words, without case (unless `matchCase`), any white space between its words alike. Give `words` or `pattern`, not both." type: string minLength: 1 maxLength: 200 pattern: ^\S(?:[^\n\r]*\S)?$ pattern: description: "A pattern to find, at most 200 characters, e.g. `\\butili[sz]e\\b`, matched without case (unless `matchCase`) in linear time, never by backtracking: characters, `.`, classes (`[a-z]`, `[^…]`, `\\d`, `\\w` (letters, digits, marks and `_` of any script), `\\s` and their negations), groups (`(…)`, `(?:…)`), `|`, `?`, `*`, `+`, counts up to 20 (`{2}`, `{1,3}`), `^`, `$` and `\\b`, `\\B`. No back-references, lookaround or lazy repetition; a pattern matching empty text, or of more than 300 states once its counts are written out, is refused. Each match is the longest from where it starts, matches never overlap. Give `words` or `pattern`, not both." type: string minLength: 1 maxLength: 200 matchCase: description: "`true`: `words` or `pattern` match only in the case written. Left out: `false`, any case." type: boolean message: type: string minLength: 1 maxLength: 500 pattern: ^\S(?:[^\n\r]*\S)?$ description: What the writer is told, in the language the rule is for, at most 500 characters, e.g. `Write “to”.` replacement: description: "What to write instead, offered as the fix, e.g. `to`; empty: delete what was found. For `words` without `matchCase`, written in the case found (a capital first, or all capitals). Left out: no fix is offered." type: string maxLength: 200 pattern: ^[^\n\r]*$ severity: description: "`warning`, worth a look, or `blocking`, which holds up review and release until it is fixed. Left out: `warning`." type: string enum: - warning - blocking required: - id - message additionalProperties: false description: "One rule: a phrase or a pattern, and its message." required: - rules additionalProperties: false description: One language’s style rules, by language tag, e.g. `en`; it must be a configured language. pdf: default: standard: ua-1 description: "How manuals are made as PDF. Left out: every default." type: object properties: standard: default: ua-1 description: "The standard every manual’s PDF is made to: `ua-1`, PDF/UA-1, tagged and accessible (a document that cannot meet it is refused), or `none`, a plain PDF. Left out: `ua-1`." type: string enum: - ua-1 - none design: description: "The page design of every manual whose manifest names none, by its ID: the file `design/.yaml` in the content repository, e.g. `classic-a4`. Left out: the built-in design." type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ calloutLabelMinSize: description: "The smallest text size, in points, that a callout legend beside its image shrinks to before what still does not fit is cut off and reported, 4 to 12, e.g. `7.5`. Left out: 6." type: number minimum: 4 maximum: 12 required: - standard additionalProperties: false delivery: default: access: signed-in missingLanguage: picker pdfQrCode: none manuals: {} description: "The stable addresses that open a product’s latest released manual, for links and QR codes. Left out: every default." type: object properties: access: default: signed-in description: "Who may open a manual’s stable address (`/d////`, the latest release’s manual): `public`, anyone without signing in; `signed-in`, a signed-in reader allowed to read content; or `off`, nobody. The installation may cap it to less. Left out: `signed-in`." type: string enum: - public - signed-in - off publicAudience: description: "The most restricted audience level a public address shows, by its ID, e.g. `operator`; it must name a configured audience. Left out: the first, least restricted level." type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ missingLanguage: default: picker description: "What an address in a language the release does not have opens: `picker`, a page listing the languages it has, or `source`, the manual in the source language. Left out: `picker`." type: string enum: - picker - source pdfQrCode: default: none description: "Where a release’s PDF prints the QR code of its stable address: `none`, on the `title-page`, or on a `back-cover` page of its own at the end. Printed only when the addresses are `public` (after the installation’s cap) and the installation’s public URL is set. Left out: `none`." type: string enum: - none - title-page - back-cover manuals: default: {} description: "Per manual ID, its address segment and its former ones. Left out: every manual is addressed by its ID." type: object additionalProperties: type: object properties: slug: description: "The manual’s segment in its address, a lowercase slug, e.g. `operating` in `/d/north/operating/…`; no two manuals share one. Left out: the manual’s ID." type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ formerly: default: [] description: "Segments the manual had before, at most 20, e.g. `[user-guide]`: an address with one leads to the current one, and a release made before the rename holds the manual under it. None may be another manual’s address. Left out: none." maxItems: 20 type: array items: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ required: - formerly additionalProperties: false description: One manual’s address, by the manual’s ID, e.g. `operating-manual`. required: - access - missingLanguage - pdfQrCode - manuals additionalProperties: false iirds: description: "The iiRDS export: how module types, audiences, facets and variant attributes map to the iiRDS vocabulary, by the standard’s names. Left out: releases are not exported as iiRDS packages." type: object properties: baseIri: type: string description: "Where the package’s own IRIs are made (`releases//…`, `modules/`): an absolute `http` or `https` IRI ending in `/`, without query, fragment or user information, at most 200 characters, e.g. `https://docs.example.com/iirds/`." documentTypes: minItems: 1 maxItems: 20 type: array items: type: string enum: - AdministratorGuide - AssemblyInstructions - BillOfMaterials - CEDeclarationOfConformity - Certificate - ContractualDocument - ElectronicIdentificationPlate - IdentificationDocument - InstallationInstructions - MaintenanceInstructions - OperatingInstructions - PartsCatalog - Plan - QuickGuide - RepairInstructions - SafetyInstructions - SalesCatalog - Specification - TechnicalDrawingDiagram - TransportInstructions description: The document types of every manual, at least one as iiRDS requires, no repeats, e.g. `[OperatingInstructions]`; a manual listed in `manualDocumentTypes` takes its own instead. manualDocumentTypes: default: {} description: "Per manual ID, document types replacing `documentTypes` for that manual. At most 1,000 manuals. Left out: every manual has `documentTypes`." type: object additionalProperties: minItems: 1 maxItems: 20 type: array items: type: string enum: - AdministratorGuide - AssemblyInstructions - BillOfMaterials - CEDeclarationOfConformity - Certificate - ContractualDocument - ElectronicIdentificationPlate - IdentificationDocument - InstallationInstructions - MaintenanceInstructions - OperatingInstructions - PartsCatalog - Plan - QuickGuide - RepairInstructions - SafetyInstructions - SalesCatalog - Specification - TechnicalDrawingDiagram - TransportInstructions description: "One manual’s document types, by the manual’s ID, e.g. `service-manual: [MaintenanceInstructions]`." moduleTypes: default: {} description: Per module type ID, the iiRDS topic type and information subjects of its modules. One the mapping leaves out has no such metadata in the package, and the export warns. type: object additionalProperties: anyOf: - type: string enum: - GenericConcept - GenericForm - GenericLearning - GenericReference - GenericTask - GenericTroubleshooting - type: object properties: topicType: description: "The topic type its modules are, e.g. `GenericConcept`. Left out: the package names none for them." type: string enum: - GenericConcept - GenericForm - GenericLearning - GenericReference - GenericTask - GenericTroubleshooting subjects: description: "The information subjects its modules are about, at least one, no repeats, e.g. `[SafetyInstruction]`. Left out: none." minItems: 1 maxItems: 31 type: array items: type: string enum: - ApplicableStandards - Caution - ContactInformation - Danger - DeclarationOfConformity - ForeseeableMisuse - GenericCollection - GenericConformity - GenericFormality - GenericFunctionality - GenericProcess - GenericSafety - GenericTechnicalData - GenericTechnicalOverview - GenericWarningMessage - IntendedUse - LegalInformation - LicenceTerm - ManufacturerInformation - Notice - OperatingElement - ProductIdentification - ProductName - RestrictionOnUse - RiskAssessment - SafetyInstruction - ScopeOfDelivery - Symbol - TechnicalReport - WarrantyConditions - Warning additionalProperties: false description: "One module type’s mapping, by the module type’s ID: its topic type alone (`task: GenericTask`), or `{ topicType, subjects }` with either or both (`safety: { topicType: GenericConcept, subjects: [SafetyInstruction] }`)." audiences: default: {} description: "Per audience level ID, the qualification class it is: `Role` or `SkillLevel`, e.g. `{ operator: Role }`. One the mapping leaves out has no such metadata in the package, and the export warns." type: object additionalProperties: type: string enum: - Role - SkillLevel facets: default: {} description: "Per facet ID, the product metadata class its values are: `ProductVariant`, `Component`, `ProductFunction` or `ProductProperty`, e.g. `{ region: ProductVariant }`. One the mapping leaves out has no such metadata in the package, and the export warns." type: object additionalProperties: type: string enum: - ProductVariant - Component - ProductFunction - ProductProperty variantAttributes: default: {} description: "Per variant attribute ID, the product metadata class its values are, as for `facets`, e.g. `{ model: ProductVariant }`. One the mapping leaves out has no such metadata in the package, and the export warns." type: object additionalProperties: type: string enum: - ProductVariant - Component - ProductFunction - ProductProperty lifecyclePhases: description: "A facet whose values are product lifecycle phases, and the phase each value is. Left out: the package names no lifecycle phases." type: object properties: facet: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: The ID of the facet whose values are lifecycle phases, e.g. `phase`; it must not also be in `facets`. values: type: object additionalProperties: type: string enum: - Acquisition - Configuration - Decommissioning - Design - Development - Diagnostics - Disposal - EmergencyOperation - Fault - GenericAfterUse - GenericDesignAndRealization - GenericPuttingToUse - GenericUse - Installation - Maintenance - Operation - Production - Repair - RequirementsAnalysis description: "Per value ID of that facet, the lifecycle phase it is, e.g. `{ use: Operation }`. A value left out has no phase, and the export warns." required: - facet - values additionalProperties: false required: - baseIri - documentTypes - manualDocumentTypes - moduleTypes - audiences - facets - variantAttributes additionalProperties: false dita: description: "The DITA 1.3 import: which topic types, output classes, profiling attributes, keys and hazard symbols become which module types, variant attributes, audience levels, text attributes and safety symbols. Keys are DITA names, values the project’s IDs. Left out: the import’s defaults (names matched by the same IDs)." type: object properties: moduleTypes: default: {} description: "Per topic type (a topic’s root element: `concept`, `task`, … or a specialisation’s), the module type its topics become, e.g. `{ task: procedure }`. Keys are DITA names (one token, no whitespace or parentheses), at most 1,000 entries. Left out, or a name not listed: a configured module type named like the topic type, else `defaultModuleType`." type: object additionalProperties: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ outputclasses: default: {} description: "Per token of a topic’s `@outputclass`, the module type its topics become; it wins over `moduleTypes`, e.g. `{ howto: procedure }`. Keys are DITA names (one token, no whitespace or parentheses), at most 1,000 entries. Left out, or a name not listed: `moduleTypes` decides." type: object additionalProperties: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ defaultModuleType: description: "The module type, by ID, of a topic whose type neither `outputclasses`, `moduleTypes` nor a configured module type of the same name gives, e.g. `concept`. Left out: the first configured module type." type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ profiling: default: {} description: 'Per profiling attribute (or a group name inside one, `product="unit(basic)"`), what its values become, e.g. `{ product: { variantAttribute: model } }`. Keys are DITA names (one token, no whitespace or parentheses), at most 1,000 entries. Left out, or a name not listed: a profiling attribute named like a variant attribute maps to it, and `audience` to the audience levels of the same IDs.' type: object additionalProperties: anyOf: - type: object properties: variantAttribute: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: The ID of the variant attribute the profiling attribute’s values become, e.g. `model`. values: description: "Per DITA value, the variant attribute’s value it becomes, e.g. `{ basic-unit: basic }`. Left out, or a DITA value not listed: the value of the same ID." type: object additionalProperties: type: string minLength: 1 maxLength: 100 required: - variantAttribute additionalProperties: false - type: object properties: audience: type: object additionalProperties: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: "Per DITA value, the audience level’s ID it becomes, e.g. `{ user: operator }`. It applies only where a module or a manual entry starts." required: - audience additionalProperties: false description: "What one profiling attribute’s values become: a variant attribute’s values (`{ variantAttribute, values }`) or audience levels (`{ audience }`)." textKeys: default: {} description: 'Per key that holds text (`` with a ``), the text attribute an empty `` becomes, e.g. `{ prodname: product-name }`. Keys are DITA names (one token, no whitespace or parentheses), at most 1,000 entries. Left out, or a name not listed: a text attribute named like the key, if there is one; any other key is imported as its text.' type: object additionalProperties: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ hazardSymbols: default: {} description: "Per `` file name (its `@href`’s last segment) or key, the safety symbol it becomes, e.g. `{ hot-surface.svg: hot-surface }`. Keys are DITA names (one token, no whitespace or parentheses), at most 1,000 entries. Left out, or a name not listed: the symbol is left out, and the import reports it." type: object additionalProperties: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ ditavalDefault: default: none description: "What becomes of a DITAVAL file no map names: `none`, it is not applied (and reported), or `all`, it becomes a variant of every manual. Left out: `none`." type: string enum: - none - all required: - moduleTypes - outputclasses - profiling - textKeys - hazardSymbols - ditavalDefault additionalProperties: false required: - languages - moduleTypes - audiences - facets - variantAttributes - textAttributes - safetySymbols - outputLabels - maxHeadingLevel - codeLanguages - pdf - delivery additionalProperties: false VariantAttribute: oneOf: - type: object properties: id: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: The variant attribute’s ID, which `variant` blocks, `when:` conditions and a manual’s variants name, e.g. `model` or `software`. Lowercase letters, digits and `-`, starting with a letter, at most 64 characters; unique in its list. label: anyOf: - type: string minLength: 1 - type: object additionalProperties: type: string minLength: 1 description: "The variant attribute’s name in the editor and where a variant is named, e.g. `Model` (a version shows as `Software 2.1`). One text for every language, or one per language by language tag (`{ en: Task, de: Handlung }`), the source language’s among them; a language without its own shows the source language’s." kind: type: string enum: - enum description: "How the attribute’s values are compared: `enum`, one of a fixed list of values (`values`, e.g. a model or a market), or `version`, a dotted version compared numerically (`2.10` is after `2.9`, e.g. a software version), which lists no values." values: minItems: 1 type: array items: type: object properties: id: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: "The value’s ID, which conditions compare with, e.g. `large` in `when: model = large`. Lowercase letters, digits and `-`, starting with a letter, at most 64 characters; unique in its list." label: anyOf: - type: string minLength: 1 - type: object additionalProperties: type: string minLength: 1 description: "The value’s name in the editor and where a variant is named, e.g. `Large`. One text for every language, or one per language by language tag (`{ en: Task, de: Handlung }`), the source language’s among them; a language without its own shows the source language’s." archived: description: "`true` retires the value: content that uses it stays valid, but the editor no longer offers it. Removing a value that content still uses is refused, so archiving is the way to retire one. Left out: the value is offered." type: boolean required: - id - label additionalProperties: false description: "For `kind: enum` only: the values the attribute can take, at least one, each `{ id, label }`." required: - id - label - kind - values additionalProperties: false - type: object properties: id: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: The variant attribute’s ID, which `variant` blocks, `when:` conditions and a manual’s variants name, e.g. `model` or `software`. Lowercase letters, digits and `-`, starting with a letter, at most 64 characters; unique in its list. label: anyOf: - type: string minLength: 1 - type: object additionalProperties: type: string minLength: 1 description: "The variant attribute’s name in the editor and where a variant is named, e.g. `Model` (a version shows as `Software 2.1`). One text for every language, or one per language by language tag (`{ en: Task, de: Handlung }`), the source language’s among them; a language without its own shows the source language’s." kind: type: string enum: - version description: "How the attribute’s values are compared: `enum`, one of a fixed list of values (`values`, e.g. a model or a market), or `version`, a dotted version compared numerically (`2.10` is after `2.9`, e.g. a software version), which lists no values." required: - id - label - kind additionalProperties: false IirdsMappingIssue: type: object properties: code: type: string enum: - unmapped-module-type - unmapped-audience - unmapped-facet - unmapped-variant-attribute - unmapped-lifecycle-phase - unknown-mapping-key description: "Stable. `unmapped-*`: a value the configuration defines that the iiRDS mapping names no class for (an iiRDS package leaves that metadata out, with a warning); `unknown-mapping-key`: a key of the mapping naming nothing the configuration defines (ignored)." path: type: string description: Where in `iirds`, e.g. `moduleTypes.task`. message: type: string required: - code - path - message additionalProperties: false DitaMappingIssue: type: object properties: code: type: string enum: - unknown-module-type - unknown-variant-attribute - unknown-variant-value - unknown-audience - unknown-text-attribute - unknown-safety-symbol description: "Stable: the value of the DITA mapping names no module type, variant attribute, variant value, audience level, text attribute or safety symbol of the configuration. A DITA import uses its default there and reports it." path: type: string description: Where in `dita`, e.g. `moduleTypes.task`. message: type: string required: - code - path - message additionalProperties: false LanguageDirectionIssue: type: object properties: code: type: string enum: - unknown-direction-language description: "Stable: `languages.direction` sets a direction for a language that is neither the source nor a target. It does nothing, and the next save of the configuration leaves it out." path: type: string description: Where in the configuration, e.g. `languages.direction.fa`. message: type: string required: - code - path - message additionalProperties: false ModulePageDocument: type: object properties: data: type: array items: anyOf: - $ref: "#/components/schemas/ModuleResource" - $ref: "#/components/schemas/UnreadableModuleResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" required: - page additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false ModuleResource: type: object properties: type: type: string enum: - Module id: type: string attributes: $ref: "#/components/schemas/ModuleAttributes" meta: type: object properties: issues: type: array items: $ref: "#/components/schemas/Issue" description: Problems found checking it against the configuration. status: $ref: "#/components/schemas/ModuleStatus" usage: $ref: "#/components/schemas/ModuleUsage" usedIn: maxItems: 50 type: array items: $ref: "#/components/schemas/ModuleUse" description: "Where the module is used (FR-19): manuals first, then modules, each by title; at most 50 (`usage` counts them all). Only manuals and modules the reader may see are named, and a manual counts through module references only where the reader may see every module on the way." required: - issues - status - usage - usedIn additionalProperties: false required: - type - id - attributes - meta additionalProperties: false description: "`id` is `/`, as in the URL." ModuleAttributes: type: object properties: moduleId: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ lang: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ schemaVersion: type: number enum: - 1 title: type: string minLength: 1 pattern: ^\S(?:[^\n\r]*\S)?$ moduleType: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: One of the configured module types, e.g. `procedure`. audience: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ facets: default: {} type: object additionalProperties: minItems: 1 type: array items: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ keywords: description: Free-form keywords in the module’s language; absent when there are none. maxItems: 32 type: array items: type: string minLength: 1 maxLength: 64 pattern: ^[^,\p{Cc}]+$ source: type: object properties: system: type: string minLength: 1 pattern: ^\S(?:[^\n\r]*\S)?$ id: type: string minLength: 1 pattern: ^\S(?:[^\n\r]*\S)?$ required: - system - id additionalProperties: false deprecated: description: "This file’s deprecation, as stored (#266): absent when it has none. The module’s own is its source-language file’s (`meta.status.deprecated`)." allOf: - $ref: "#/components/schemas/Deprecation" blocks: type: array items: $ref: "#/components/schemas/Block" required: - moduleId - lang - schemaVersion - title - moduleType - facets - blocks additionalProperties: false Deprecation: type: object properties: reason: type: string minLength: 1 maxLength: 500 pattern: ^\S(?:[^\n\r]*\S)?$ replacedBy: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ required: - reason additionalProperties: false Block: oneOf: - type: object properties: type: type: string enum: - paragraph id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ content: minItems: 1 type: array items: $ref: "#/components/schemas/Inline" required: - type - id - content additionalProperties: false - type: object properties: type: type: string enum: - section id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ title: minItems: 1 type: array items: $ref: "#/components/schemas/Inline" blocks: type: array items: $ref: "#/components/schemas/Block" required: - type - id - title - blocks additionalProperties: false - type: object properties: type: type: string enum: - list id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ ordered: type: boolean items: minItems: 1 type: array items: type: object properties: id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ content: minItems: 1 type: array items: $ref: "#/components/schemas/Inline" blocks: type: array items: $ref: "#/components/schemas/Block" required: - id - content - blocks additionalProperties: false required: - type - id - ordered - items additionalProperties: false - type: object properties: type: type: string enum: - procedure id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ title: minItems: 1 type: array items: $ref: "#/components/schemas/Inline" steps: minItems: 1 type: array items: type: object properties: id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ content: minItems: 1 type: array items: $ref: "#/components/schemas/Inline" blocks: type: array items: $ref: "#/components/schemas/Block" required: - id - content - blocks additionalProperties: false required: - type - id - steps additionalProperties: false - type: object properties: type: type: string enum: - table id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ title: minItems: 1 type: array items: $ref: "#/components/schemas/Inline" columns: minItems: 1 type: array items: type: object properties: width: type: integer minimum: 0 exclusiveMinimum: true maximum: 9007199254740991 align: type: string enum: - left - center - right required: - width additionalProperties: false header: type: boolean rows: minItems: 1 type: array items: type: object properties: cells: minItems: 1 type: array items: type: object properties: colspan: type: integer minimum: 1 maximum: 100 rowspan: type: integer minimum: 1 maximum: 100 blocks: type: array items: $ref: "#/components/schemas/Block" required: - blocks additionalProperties: false required: - cells additionalProperties: false required: - type - id - columns - header - rows additionalProperties: false - type: object properties: type: type: string enum: - image id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ asset: type: string pattern: ^sha256:[a-f0-9]{64}$ alt: type: string minLength: 1 pattern: ^\S(?:[^\n\r]*\S)?$ title: minItems: 1 type: array items: $ref: "#/components/schemas/Inline" width: type: number minimum: 0 exclusiveMinimum: true maximum: 100 callouts: minItems: 1 maxItems: 100 type: array items: type: object properties: id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ anchor: type: object properties: x: type: number minimum: 0 maximum: 1 y: type: number minimum: 0 maximum: 1 required: - x - y additionalProperties: false label: type: object properties: x: type: number minimum: 0 maximum: 1 y: type: number minimum: 0 maximum: 1 required: - x - y additionalProperties: false legend: minItems: 1 type: array items: $ref: "#/components/schemas/Inline" when: allOf: - $ref: "#/components/schemas/Condition" style: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ required: - id - anchor - legend additionalProperties: false calloutOrder: type: string enum: - reading - manual calloutLegend: type: string enum: - below - beside - none required: - type - id - asset - alt additionalProperties: false - type: object properties: type: type: string enum: - attachment id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ asset: type: string pattern: ^sha256:[a-f0-9]{64}$ name: type: string minLength: 1 maxLength: 200 pattern: ^\S(?:[^\n\r]*\S)?$ description: type: string minLength: 1 maxLength: 1000 pattern: ^\S(?:[^\n\r]*\S)?$ fileName: type: string minLength: 1 maxLength: 255 mediaType: type: string pattern: ^[a-z0-9][a-z0-9!#$&^_.+-]{0,62}\/[a-z0-9][a-z0-9!#$&^_.+-]{0,62}$ size: type: integer minimum: 0 maximum: 9007199254740991 required: - type - id - asset - name - fileName - mediaType - size additionalProperties: false - type: object properties: type: type: string enum: - safety id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ severity: type: string enum: - danger - warning - caution - notice hazard: minItems: 1 type: array items: $ref: "#/components/schemas/Inline" symbols: type: array items: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ blocks: type: array items: $ref: "#/components/schemas/Block" required: - type - id - severity - hazard - symbols - blocks additionalProperties: false - type: object properties: type: type: string enum: - admonition id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ kind: type: string enum: - note - tip - important blocks: minItems: 1 type: array items: $ref: "#/components/schemas/Block" required: - type - id - kind - blocks additionalProperties: false - type: object properties: type: type: string enum: - faq id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ question: minItems: 1 type: array items: $ref: "#/components/schemas/Inline" blocks: minItems: 1 type: array items: $ref: "#/components/schemas/Block" required: - type - id - question - blocks additionalProperties: false - type: object properties: type: type: string enum: - variant id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ when: $ref: "#/components/schemas/Condition" blocks: minItems: 1 type: array items: $ref: "#/components/schemas/Block" required: - type - id - when - blocks additionalProperties: false - type: object properties: type: type: string enum: - moduleRef id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ module: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ block: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ required: - type - id - module additionalProperties: false - type: object properties: type: type: string enum: - literal id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ text: type: string pattern: ^[^\r]*$ language: type: string pattern: ^[A-Za-z0-9][A-Za-z0-9+#._-]*$ required: - type - id - text additionalProperties: false - type: object properties: type: type: string enum: - passthrough id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ format: type: string pattern: ^[A-Za-z0-9][A-Za-z0-9+#._-]*$ raw: type: string pattern: ^[^\r]*$ required: - type - id - format - raw additionalProperties: false - type: object properties: type: type: string enum: - pageBreak id: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ required: - type - id additionalProperties: false Inline: oneOf: - type: object properties: type: type: string enum: - text text: type: string minLength: 1 pattern: ^[^\n\r]*$ marks: type: array items: $ref: "#/components/schemas/Mark" required: - type - text additionalProperties: false - type: object properties: type: type: string enum: - attribute name: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ required: - type - name additionalProperties: false - type: object properties: type: type: string enum: - xref module: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ block: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ text: minItems: 1 type: array items: type: object properties: type: type: string enum: - text text: type: string minLength: 1 pattern: ^[^\n\r]*$ marks: type: array items: $ref: "#/components/schemas/Mark" required: - type - text additionalProperties: false required: - type - module additionalProperties: false - type: object properties: type: type: string enum: - kbd keys: minItems: 1 type: array items: type: string minLength: 1 pattern: ^[^\n\r\]]+$ required: - type - keys additionalProperties: false - type: object properties: type: type: string enum: - calloutRef block: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ callout: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ required: - type - block - callout additionalProperties: false - type: object properties: type: type: string enum: - hardBreak required: - type additionalProperties: false - type: object properties: type: type: string enum: - placeholder key: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ required: - type - key additionalProperties: false Mark: oneOf: - type: object properties: type: type: string enum: - strong required: - type additionalProperties: false - type: object properties: type: type: string enum: - emphasis required: - type additionalProperties: false - type: object properties: type: type: string enum: - code required: - type additionalProperties: false - type: object properties: type: type: string enum: - sub required: - type additionalProperties: false - type: object properties: type: type: string enum: - sup required: - type additionalProperties: false - type: object properties: type: type: string enum: - ui required: - type additionalProperties: false - type: object properties: type: type: string enum: - link href: type: string format: uri required: - type - href additionalProperties: false - type: object properties: type: type: string enum: - term termId: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ required: - type - termId additionalProperties: false Condition: oneOf: - type: object properties: op: type: string enum: - all of: minItems: 2 type: array items: $ref: "#/components/schemas/Condition" required: - op - of additionalProperties: false - type: object properties: op: type: string enum: - any of: minItems: 2 type: array items: $ref: "#/components/schemas/Condition" required: - op - of additionalProperties: false - type: object properties: op: type: string enum: - not of: $ref: "#/components/schemas/Condition" required: - op - of additionalProperties: false - type: object properties: op: type: string enum: - in attr: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ values: minItems: 1 type: array items: type: string minLength: 1 required: - op - attr - values additionalProperties: false - type: object properties: op: type: string enum: - cmp attr: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ cmp: type: string enum: - < - <= - ">" - ">=" value: type: string pattern: ^\d+(?:\.\d+)*$ required: - op - attr - cmp - value additionalProperties: false Issue: type: object properties: severity: type: string enum: - error - warning code: type: string description: Stable machine-readable code, e.g. `unknown-audience`. message: type: string at: description: ID of the block or item concerned; absent for metadata. type: string required: - severity - code - message additionalProperties: false ModuleStatus: type: object properties: release: nullable: true description: The newest release (tag) holding the module as the reader may see it there; null when none of the 50 newest does. type: object properties: tag: type: string description: The release tag. commit: type: string description: A commit ID. same: type: boolean description: Whether the module there is exactly the one read. required: - tag - commit - same additionalProperties: false main: nullable: true description: The module on `main` (approved content), as the reader may see it there; null when it is not there. type: object properties: commit: type: string description: A commit ID. same: type: boolean description: Whether the module there is exactly the one read. required: - commit - same additionalProperties: false changeSets: description: "The open change sets (draft, in review or approved) changing the module, newest first: only those the reader may read (all of them with `content.read.draft`, else their own), and only where the reader may see the module on the change set’s head or base. Left out for a reader who holds neither `content.read.draft` nor `content.edit` (a consumer of released content)." type: array items: type: object properties: id: type: string description: The change set’s ID. state: type: string enum: - draft - in-review - approved required: - id - state additionalProperties: false deprecated: nullable: true description: "The module’s deprecation at the ref read (#266), with its reason and replacement: its source-language file’s as the reader may see it (else this file’s own); null when it is not deprecated. Read on `main`, it says what was merged." allOf: - $ref: "#/components/schemas/Deprecation" required: - release - main - deprecated additionalProperties: false description: "Where the module stands, derived from Git (never stored): released, on `main`, in change sets, deprecated." ModuleUsage: type: object properties: manuals: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: The manuals including the module, directly or through module references. modules: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: The modules whose module reference blocks name it. required: - manuals - modules additionalProperties: false description: How many manuals and modules use the module (by ID, in any language), from the module index; only what the reader may see counts. ModuleUse: type: object properties: kind: type: string enum: - manual - module description: A manual including the module, or a module referring to it. id: type: string description: The manual’s or the module’s ID. title: type: string description: Its title (a module’s in the source language, else in its first language). direct: type: boolean description: "A manual: true when one of its entries names the module, false when it includes it only through module references. A module: always true." deprecated: type: boolean description: "Whether the manual or module using it is deprecated (#266), from the module index: a manual by its manifest, a module by its source-language file." required: - kind - id - title - direct - deprecated additionalProperties: false UnreadableModuleResource: type: object properties: type: type: string enum: - Module id: type: string attributes: type: object properties: moduleId: type: string lang: type: string required: - moduleId - lang additionalProperties: false meta: type: object properties: error: type: string description: Why it cannot be read. required: - error additionalProperties: false required: - type - id - attributes - meta additionalProperties: false ModuleDocument: type: object properties: data: $ref: "#/components/schemas/ModuleResource" required: - data additionalProperties: false ModuleVersionPageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/ModuleVersionResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" truncated: type: boolean description: "The ref’s first-parent line goes on past the 1,000 newest commits looked at: older versions are not listed, and, when the module existed before them, versions carry no revision number." required: - page - truncated additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false ModuleVersionResource: type: object properties: type: type: string enum: - ModuleVersion id: type: string attributes: type: object properties: commit: type: string description: A commit ID. committedAt: type: string description: When it was committed (ISO 8601, the committer’s offset). message: type: string description: "The commit message without its trailers: for a merge, the change set’s title and a line naming it." merge: type: boolean description: Whether it is a merge (a change set merged into the ref). actor: nullable: true description: Who made it, as the commit’s trailers claim (`Merged-by`, else `Actor` for a save point); null when they name no one. Recorded by the server for the commits it makes, but a commit pushed from outside can claim anything. type: object properties: kind: type: string enum: - user - service id: type: string required: - kind - id additionalProperties: false approvedBy: type: array items: type: object properties: kind: type: string enum: - user - service id: type: string required: - kind - id additionalProperties: false description: "Who approved it, as its `Approved-by` trailers claim, in order: the approvers of a merged change set." required: - commit - committedAt - message - merge - actor - approvedBy additionalProperties: false relationships: type: object properties: actor: type: object properties: data: nullable: true type: object properties: type: type: string enum: - User id: type: string required: - type - id additionalProperties: false required: - data additionalProperties: false description: "`actor` when it is a user the server knows; else empty." changeSet: type: object properties: data: nullable: true type: object properties: type: type: string enum: - ChangeSet id: type: string required: - type - id additionalProperties: false required: - data additionalProperties: false description: The change set it came from (`Merged-change-set`, else `Change-set`); empty when its trailers name none. approvers: type: object properties: data: type: array items: type: object properties: type: type: string enum: - User id: type: string required: - type - id additionalProperties: false required: - data additionalProperties: false description: The users among `approvedBy` the server knows. required: - actor - changeSet - approvers additionalProperties: false meta: type: object properties: revision: nullable: true description: "The version’s number, counted from the oldest (1): derived, never stored. Null when the history was cut (`meta.truncated` on the document) while the module already existed before the oldest commit looked at, as the count would not start at the first." type: integer minimum: -9007199254740991 maximum: 9007199254740991 change: type: string enum: - added - changed - removed description: "How the module as the reader sees it differs from the version before: `added` (also back after a removal), `changed`, `removed` (deleted, or moved out of the reader’s scope)." releases: type: array items: type: object properties: tag: type: string commit: type: string description: A commit ID. required: - tag - commit additionalProperties: false description: The release tags (of the 50 newest) whose commit holds exactly this file, as the reader may see it there; newest first. unreadable: type: boolean description: The file after this commit cannot be read (shown only to a reader of all of its language). required: - revision - change - releases - unreadable additionalProperties: false required: - type - id - attributes - relationships - meta additionalProperties: false description: "`id` is `//`. Derived from Git: nothing of it is stored by the server." ModuleComparisonDocument: type: object properties: data: $ref: "#/components/schemas/ModuleComparisonResource" required: - data additionalProperties: false ModuleComparisonResource: type: object properties: type: type: string enum: - ModuleComparison id: type: string attributes: type: object properties: base: nullable: true description: "The module at `base`, as the reader sees it on both sides; null when it is not there (or cannot be read: `meta.unreadable`)." allOf: - $ref: "#/components/schemas/ModuleAttributes" head: nullable: true description: The module at `head`, likewise. allOf: - $ref: "#/components/schemas/ModuleAttributes" required: - base - head additionalProperties: false meta: type: object properties: base: type: string description: The commit `base` named. head: type: string description: The commit `head` named. change: type: string enum: - added - changed - removed - unchanged description: "`added` (not there at `base`), `removed` (not there at `head`), `changed`, or `unchanged` (the same module on both sides)." fields: type: array items: type: string description: The module’s metadata fields that differ (`title`, `type`, `audience`, …), as in a change set’s changes. Empty unless changed. blocks: type: array items: type: object properties: blockId: type: string change: type: string enum: - added - changed - removed required: - blockId - change additionalProperties: false description: "The blocks, list items and procedure steps that differ, by ID, exactly as in a change set’s changes: in the head’s order, then the removed ones. Empty unless changed." unreadable: type: boolean description: A side has a file that cannot be read (shown only to a reader of all of its language). required: - base - head - change - fields - blocks - unreadable additionalProperties: false required: - type - id - attributes - meta additionalProperties: false description: "`id` is `//..`. Derived from Git, never stored." ManifestEntry: anyOf: - type: object properties: module: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ when: allOf: - $ref: "#/components/schemas/Condition" required: - module additionalProperties: false - type: object properties: title: anyOf: - type: string minLength: 1 pattern: ^\S(?:[^\n\r]*\S)?$ - type: object additionalProperties: type: string minLength: 1 pattern: ^\S(?:[^\n\r]*\S)?$ when: allOf: - $ref: "#/components/schemas/Condition" entries: minItems: 1 type: array items: $ref: "#/components/schemas/ManifestEntry" required: - title - entries additionalProperties: false TermLanguage: type: object properties: preferred: type: string minLength: 1 maxLength: 200 pattern: ^[^\p{Cc}]*$ allowed: default: [] maxItems: 50 type: array items: $ref: "#/components/schemas/TermVariant" forbidden: default: [] maxItems: 50 type: array items: $ref: "#/components/schemas/TermVariant" definition: allOf: - $ref: "#/components/schemas/TermDefinition" usage: type: string minLength: 1 maxLength: 10000 pattern: ^(?:[^\p{Cc}]|[\n\t])*$ required: - preferred - allowed - forbidden additionalProperties: false TermVariant: type: object properties: term: type: string minLength: 1 maxLength: 200 pattern: ^[^\p{Cc}]*$ note: type: string minLength: 1 maxLength: 1000 pattern: ^(?:[^\p{Cc}]|[\n\t])*$ required: - term additionalProperties: false TermDefinition: minItems: 1 maxItems: 1000 type: array items: oneOf: - type: object properties: type: type: string enum: - text text: type: string minLength: 1 pattern: ^[^\n\r]*$ marks: type: array items: $ref: "#/components/schemas/Mark" required: - type - text additionalProperties: false - type: object properties: type: type: string enum: - hardBreak required: - type additionalProperties: false ManualPageDocument: type: object properties: data: type: array items: anyOf: - $ref: "#/components/schemas/ManualResource" - $ref: "#/components/schemas/UnreadableManualResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" required: - page additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false ManualResource: type: object properties: type: type: string enum: - Manual id: type: string attributes: $ref: "#/components/schemas/ManualAttributes" meta: type: object properties: variants: type: array items: $ref: "#/components/schemas/VariantSummary" description: The published variants, with the slugs other routes take. issues: type: array items: $ref: "#/components/schemas/Issue" design: $ref: "#/components/schemas/DesignInUse" deleted: description: "Set for a manual deleted on the ref’s first-parent line (`filter[status]`, #321): its newest deletion. The rest is then its last manifest the reader may see." type: object properties: commit: type: string description: The commit that deleted it. committedAt: type: string description: When (ISO 8601). required: - commit - committedAt additionalProperties: false required: - variants - issues - design additionalProperties: false required: - type - id - attributes - meta additionalProperties: false ManualAttributes: type: object properties: schemaVersion: type: number enum: - 1 kind: description: "`derived` (#451): its entries are gathered from another manual by `rule`, never written by hand. Absent: an assembled manual." type: string enum: - derived title: anyOf: - type: string minLength: 1 pattern: ^\S(?:[^\n\r]*\S)?$ - type: object additionalProperties: type: string minLength: 1 pattern: ^\S(?:[^\n\r]*\S)?$ audience: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ deprecated: description: "Withdrawn or superseded (#266): why, and the manual to use instead. Absent when it is not deprecated." allOf: - $ref: "#/components/schemas/Deprecation" variants: minItems: 1 type: array items: type: object additionalProperties: type: string minLength: 1 textAttributes: default: {} type: object additionalProperties: anyOf: - type: string minLength: 1 pattern: ^\S(?:[^\n\r]*\S)?$ - minItems: 1 type: array items: type: object properties: value: type: string minLength: 1 pattern: ^\S(?:[^\n\r]*\S)?$ when: allOf: - $ref: "#/components/schemas/Condition" required: - value additionalProperties: false coverImage: description: "The cover image its page design shows (#394): `default`, the manual’s, and `variants`, a variant’s own by its exact values, which wins. Absent: the design’s." type: object properties: default: type: object properties: asset: type: string pattern: ^sha256:[a-f0-9]{64}$ alt: anyOf: - type: string minLength: 1 maxLength: 500 pattern: ^\S(?:[^\n\r]*\S)?$ - type: object additionalProperties: type: string minLength: 1 maxLength: 500 pattern: ^\S(?:[^\n\r]*\S)?$ required: - asset - alt additionalProperties: false variants: default: [] maxItems: 100 type: array items: type: object properties: asset: type: string pattern: ^sha256:[a-f0-9]{64}$ alt: anyOf: - type: string minLength: 1 maxLength: 500 pattern: ^\S(?:[^\n\r]*\S)?$ - type: object additionalProperties: type: string minLength: 1 maxLength: 500 pattern: ^\S(?:[^\n\r]*\S)?$ variant: type: object additionalProperties: type: string minLength: 1 required: - asset - alt - variant additionalProperties: false required: - variants additionalProperties: false rule: description: "A derived manual’s rule (#451): `source`, the manual it gathers from; `moduleTypes`, the types it gathers (absent: the configured safety types); `exclude`, modules left out; `front` and `back`, its own modules before and after. Absent for an assembled manual." type: object properties: source: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ moduleTypes: minItems: 1 maxItems: 100 type: array items: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ exclude: default: [] maxItems: 500 type: array items: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ front: default: [] maxItems: 500 type: array items: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ back: default: [] maxItems: 500 type: array items: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ notices: type: object properties: groupBy: default: module type: string enum: - module - level levels: minItems: 1 maxItems: 4 type: array items: type: string enum: - danger - warning - caution - notice required: - groupBy additionalProperties: false required: - source - exclude - front - back additionalProperties: false entries: type: array items: $ref: "#/components/schemas/ManifestEntry" description: Only the modules the reader may see (groups left empty go too), so it can be empty. A derived manual’s are the ones its rule gathers, front matter first, back matter last. required: - schemaVersion - title - variants - textAttributes - entries additionalProperties: false VariantSummary: type: object properties: slug: type: string description: Use in `/manuals/{id}/variants/{variant}/…`, e.g. `model=large`. label: type: string description: For people, e.g. "Large · Software 2.3". values: type: object additionalProperties: type: string description: 'Variant attribute ID → value, e.g. `{ "model": "large" }`.' required: - slug - label - values additionalProperties: false DesignInUse: type: object properties: id: type: string description: The design's ID (`design/.yaml`); `builtin` for the built-in design. name: nullable: true description: The design’s name; null for the built-in design and for a design that is not there. type: string source: type: string enum: - manual - project - builtin description: "`manual`: the manifest’s own `design`; `project`: the project’s default (`pdf.design` in the configuration); `builtin`: neither names one." missing: type: boolean description: "The design named is not in the content (or its file is no design): the PDF uses the built-in design, and the manual’s checks report `unknown-page-design`." required: - id - name - source - missing additionalProperties: false UnreadableManualResource: type: object properties: type: type: string enum: - Manual id: type: string meta: type: object properties: error: type: string description: Why it cannot be read. required: - error additionalProperties: false required: - type - id - meta additionalProperties: false ManualDocument: type: object properties: data: $ref: "#/components/schemas/ManualResource" required: - data additionalProperties: false ResolvedManualDocument: type: object properties: data: $ref: "#/components/schemas/ResolvedManualResource" required: - data additionalProperties: false ResolvedManualResource: type: object properties: type: type: string enum: - ResolvedManual id: type: string attributes: type: object properties: title: type: string lang: type: string variant: type: object additionalProperties: type: string description: 'Variant attribute ID → value, e.g. `{ "model": "large" }`.' entries: type: array items: $ref: "#/components/schemas/ResolvedEntry" origins: type: object additionalProperties: type: object properties: module: type: string block: type: string required: - module - block additionalProperties: false description: Output block ID → the module and block it came from. anchors: type: object additionalProperties: type: string description: "`module` or `module#block` → the output block ID to link to." callouts: description: "Output image block ID → callout ID → its number in this variant (#498): what a `calloutRef` reads as. Absent without callouts." type: object additionalProperties: type: object additionalProperties: type: integer minimum: 1 maximum: 9007199254740991 xrefTitles: description: "Module ID → title, in the manual’s language or its fallback, of each module a cross-reference links to that is no entry of the manual (#796): what a cross-reference without its own text reads as. Only modules the reader may see and the manual’s audience allows." type: object additionalProperties: type: string required: - title - lang - variant - entries - origins - anchors additionalProperties: false relationships: type: object properties: manual: type: object properties: data: type: object properties: type: type: string enum: - Manual id: type: string required: - type - id additionalProperties: false required: - data additionalProperties: false required: - manual additionalProperties: false meta: type: object properties: issues: type: array items: $ref: "#/components/schemas/ResolveIssue" required: - issues additionalProperties: false required: - type - id - attributes - relationships - meta additionalProperties: false description: "`id` is `//`, as in the URL." ResolvedEntry: oneOf: - type: object properties: kind: type: string enum: - module module: type: string title: type: string lang: type: string description: Differs from the manual when a translation is missing. blocks: type: array items: $ref: "#/components/schemas/Block" required: - kind - module - title - lang - blocks additionalProperties: false - type: object properties: kind: type: string enum: - group title: type: string entries: type: array items: $ref: "#/components/schemas/ResolvedEntry" required: - kind - title - entries additionalProperties: false ResolveIssue: type: object properties: severity: type: string enum: - error - warning code: type: string description: Stable machine-readable code, e.g. `missing-module`. message: type: string module: description: The module concerned. type: string required: - severity - code - message additionalProperties: false ManualVersionPageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/ManualVersionResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" truncated: type: boolean description: "The ref’s first-parent line goes on past the 1,000 newest commits looked at: older versions are not listed, and, when the manual existed before them, versions carry no revision number." required: - page - truncated additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false ManualVersionResource: type: object properties: type: type: string enum: - ManualVersion id: type: string attributes: type: object properties: commit: type: string description: A commit ID. committedAt: type: string description: When it was committed (ISO 8601, the committer’s offset). message: type: string description: "The commit message without its trailers: for a merge, the change set’s title and a line naming it." merge: type: boolean description: Whether it is a merge (a change set merged into the ref). actor: nullable: true description: Who made it, as the commit’s trailers claim (`Merged-by`, else `Actor` for a save point); null when they name no one. Recorded by the server for the commits it makes, but a commit pushed from outside can claim anything. type: object properties: kind: type: string enum: - user - service id: type: string required: - kind - id additionalProperties: false approvedBy: type: array items: type: object properties: kind: type: string enum: - user - service id: type: string required: - kind - id additionalProperties: false description: "Who approved it, as its `Approved-by` trailers claim, in order: the approvers of a merged change set." required: - commit - committedAt - message - merge - actor - approvedBy additionalProperties: false relationships: type: object properties: actor: type: object properties: data: nullable: true type: object properties: type: type: string enum: - User id: type: string required: - type - id additionalProperties: false required: - data additionalProperties: false description: "`actor` when it is a user the server knows; else empty." changeSet: type: object properties: data: nullable: true type: object properties: type: type: string enum: - ChangeSet id: type: string required: - type - id additionalProperties: false required: - data additionalProperties: false description: The change set it came from (`Merged-change-set`, else `Change-set`); empty when its trailers name none. approvers: type: object properties: data: type: array items: type: object properties: type: type: string enum: - User id: type: string required: - type - id additionalProperties: false required: - data additionalProperties: false description: The users among `approvedBy` the server knows. required: - actor - changeSet - approvers additionalProperties: false meta: type: object properties: revision: nullable: true description: "The version’s number, counted from the oldest (1): derived, never stored. Null when the history was cut (`meta.truncated` on the document) while the module already existed before the oldest commit looked at, as the count would not start at the first." type: integer minimum: -9007199254740991 maximum: 9007199254740991 change: type: string enum: - added - changed - removed description: "How the module as the reader sees it differs from the version before: `added` (also back after a removal), `changed`, `removed` (deleted, or moved out of the reader’s scope)." releases: type: array items: type: object properties: tag: type: string commit: type: string description: A commit ID. required: - tag - commit additionalProperties: false description: The release tags (of the 50 newest) whose commit holds exactly this file, as the reader may see it there; newest first. unreadable: type: boolean description: The file after this commit cannot be read (shown only to a reader of all of its language). readAt: type: string description: "The commit to read this version at (`GET /manuals/{id}/compare`, `GET /manuals/{id}?ref=`): its own (`attributes.commit`) for a reader of drafts (`content.read.draft`); for a reader of released content only, who is listed only the versions released content holds, the released commit holding it (`main`’s head, else the newest release tag in `releases`)." required: - revision - change - releases - unreadable - readAt additionalProperties: false required: - type - id - attributes - relationships - meta additionalProperties: false description: "`id` is `/`. As a `ModuleVersion`, of the manual’s manifest (`manuals/.yaml`); derived from Git, nothing of it is stored." ManualComparisonDocument: type: object properties: data: $ref: "#/components/schemas/ManualComparisonResource" required: - data additionalProperties: false ManualComparisonResource: type: object properties: type: type: string enum: - ManualComparison id: type: string attributes: type: object properties: base: nullable: true description: "The manual at `base`, as the reader sees it on both sides (naming only the modules it may name to them on both); null when it is not there (or cannot be read: `meta.unreadable`)." allOf: - $ref: "#/components/schemas/ManualAttributes" head: nullable: true description: The manual at `head`, likewise. allOf: - $ref: "#/components/schemas/ManualAttributes" required: - base - head additionalProperties: false meta: type: object properties: base: type: string description: The commit `base` named. head: type: string description: The commit `head` named. change: type: string enum: - added - changed - removed - unchanged description: "`added` (not there at `base`), `removed` (not there at `head`), `changed`, or `unchanged` (the same manifest on both sides)." fields: type: array items: type: string description: The manifest’s members that differ (`title`, `audience`, `variants`, `attributes`, `entries`, …), as in a change set’s changes. Empty unless changed. unreadable: type: boolean description: A side has a manifest that cannot be read (shown only to a reader of every audience). required: - base - head - change - fields - unreadable additionalProperties: false required: - type - id - attributes - meta additionalProperties: false description: "`id` is `/..`. Derived from Git, never stored." SearchPageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/SearchResultResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" required: - page additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false SearchResultResource: type: object properties: type: type: string enum: - SearchResult id: type: string attributes: type: object properties: resourceType: type: string enum: - Module - Manual - Term description: "What was found: a `Module` (one language), a `Manual` or a `Term` (one language)." resourceId: type: string description: "Its ID as in the URL: `/` for a module, the manual ID, the term ID." lang: description: The language of a module, or the one a term was found in; a manual has none. type: string title: type: string description: The title; for a term, its preferred variant in `lang`. blockId: description: The block, list item or step the text matched in, or the FAQ entry whose question matched. Absent unless a module’s text or question matched. type: string required: - resourceType - resourceId - title additionalProperties: false relationships: type: object properties: resource: type: object properties: data: type: object properties: type: type: string enum: - Module - Manual - Term id: type: string required: - type - id additionalProperties: false required: - data additionalProperties: false required: - resource additionalProperties: false meta: type: object properties: matchedOn: type: string enum: - title - keyword - question - text - meaning - filter description: "What matched `filter[q]`: the title, a keyword, an FAQ entry’s question (its block in `blockId`), or the text (for a term: its preferred variant, one of its allowed or forbidden variants, or its definition); `meaning` when only its meaning matched (semantic search, with an embedder configured: `matches` is empty, `blockId` names the closest block); `filter` when no query was given and the filters alone found it." excerpt: type: string description: "Plain text, never markup: the title (a title match, or no query), the matching keywords separated by `, ` (a keyword match), the matching question, or a stretch of the matching (or, for `meaning`, the closest) block. Show it as text." matches: type: array items: $ref: "#/components/schemas/SearchMatch" description: "Where the query’s words are in `excerpt`, in order, not overlapping: offsets in UTF-16 units (JavaScript string indexes)." deprecated: type: boolean description: "A deprecated module (by its source-language file) or manual (#266), for a badge. A term is never: its status is its own (`GET /terms`)." required: - matchedOn - excerpt - matches - deprecated additionalProperties: false required: - type - id - attributes - relationships - meta additionalProperties: false description: "`id` is `:` (`term:/` for a term); one result per module and language, manual, or term and language." SearchMatch: type: object properties: start: type: integer minimum: 0 maximum: 9007199254740991 description: First UTF-16 unit of the match. end: type: integer minimum: 0 maximum: 9007199254740991 description: One past the last UTF-16 unit of the match. required: - start - end additionalProperties: false ChunkPageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/ChunkResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" leftOut: description: The modules the filters ask for (all but `filter[changedSince]`) that have no chunk because they are too large to cut (#688), in module ID, then language order; absent when there is none. Every other module is chunked as usual, and these are not counted in `meta.page.total`; with `filter[variant]`, a module too large for that variant alone is left out of the page holding it, named there, and still counted. Only modules you may read are named. The module’s checks report it as `expansion-too-large`. type: array items: $ref: "#/components/schemas/LeftOutModule" required: - page additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false ChunkResource: type: object properties: type: type: string enum: - Chunk id: type: string attributes: type: object properties: moduleId: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ lang: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ title: type: string minLength: 1 pattern: ^\S(?:[^\n\r]*\S)?$ moduleType: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ description: One of the configured module types, e.g. `procedure`. audience: description: "The module’s audience level; absent: the most restricted level. Text from a more restricted module is never in the chunk." type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ facets: default: {} type: object additionalProperties: minItems: 1 type: array items: type: string maxLength: 64 pattern: ^[a-z][a-z0-9-]*$ keywords: type: array items: type: string description: Free-form keywords in the module’s language; empty when there are none. manuals: type: array items: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ description: The manuals that include the module (their manifests name it, within their audience), as the reader may see them; sorted. conditions: type: array items: type: string description: The conditions of the variant blocks in the text, as `when` text (`model in (large)`), in document order, each once; on an FAQ entry’s chunk, those of the variant blocks it stands in first. Listed also when `filter[variant]` resolved them. text: type: string description: "The module as Markdown (CommonMark with GFM tables): the title as `#` heading, sections as headings, procedure steps numbered, tables as Markdown tables, safety messages and notes as quotes headed by their signal word, images as their alt text, attachments by name, referenced modules inlined. Without `filter[variant]` each variant block is a quote headed by `**when**` and its condition. Text attributes stay `{name}`. Markup characters in the content are backslash-escaped; no HTML but `
` between the lines of a table cell." sourceHash: type: string pattern: ^[0-9a-f]{64}$ description: "SHA-256 of the module’s own source: of its translation units’ source hashes, or of its canonical AsciiDoc when it has none." contentHash: type: string pattern: ^[0-9a-f]{64}$ description: "SHA-256 of `text` (UTF-8). Equal text, equal hash: re-embed only when it changes." entry: description: "Only on an FAQ entry’s chunk: its `text` is that entry (the question as `#` heading, then its answer) and `sourceHash`, `conditions` and `meta.sources` are the entry’s; the other attributes stay the module’s. The module’s own chunk keeps its entries in its text too." type: object properties: blockId: type: string maxLength: 64 pattern: ^[a-z_][a-z0-9_-]*$ description: The FAQ entry’s block ID in the module. question: type: string description: The question as plain text; a text attribute as `{name}`. required: - blockId - question additionalProperties: false required: - moduleId - lang - title - moduleType - facets - keywords - manuals - conditions - text - sourceHash - contentHash additionalProperties: false relationships: type: object properties: module: type: object properties: data: type: object properties: type: type: string enum: - Module id: type: string required: - type - id additionalProperties: false links: type: object properties: related: type: string description: The module in the API, at the commit read. required: - related additionalProperties: false required: - data - links additionalProperties: false required: - module additionalProperties: false meta: type: object properties: ref: type: string description: The ref the chunk was read at (`?ref=`). commit: type: string description: The commit the chunk was read at. sources: type: array items: type: object properties: moduleId: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ lang: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ required: - moduleId - lang additionalProperties: false description: "The module files the text was made from: the module first, then each module it includes, in the language read." release: nullable: true description: "The module’s newest release (tag), as `meta.status.release` of `GET /modules/{lang}/{id}`: the product revision a pipeline filters by. Null when none of the 50 newest holds it." type: object properties: tag: type: string description: The release tag. commit: type: string description: A commit ID. same: type: boolean description: Whether the module there is exactly the one read. required: - tag - commit - same additionalProperties: false required: - ref - commit - sources - release additionalProperties: false required: - type - id - attributes - relationships - meta additionalProperties: false description: "`id` is `/`: one chunk per module and language; and `//` for each FAQ entry in it, which has a chunk of its own (`attributes.entry`)." LeftOutModule: type: object properties: moduleId: type: string maxLength: 100 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ lang: type: string pattern: ^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$ reason: type: string enum: - size - depth description: "`size`: once its module references are included it holds more than 500,000 content nodes, 12,000,000 characters or 1,000,000 table cells (rows × columns) (a module referred to over several paths counts once per path); `depth`: its blocks and references nest more than 100 deep." required: - moduleId - lang - reason additionalProperties: false ChangePageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/ChangeResource" meta: type: object properties: page: type: object properties: size: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: The most events asked for. cursor: type: string description: "Where the next page starts (opaque): pass it as `page[cursor]`. Keep it with what you stored: it is how you resume after a restart." required: - size - cursor additionalProperties: false upToDate: type: boolean description: "Nothing more to tell right now: poll again later with `meta.page.cursor` (or when a webhook arrives)." required: - page - upToDate additionalProperties: false links: type: object properties: self: type: string next: type: string description: "This route with the next cursor: always there, a feed never ends." required: - self - next additionalProperties: false required: - data - meta - links additionalProperties: false ChangeResource: type: object properties: type: type: string enum: - Change id: type: string attributes: type: object properties: event: type: string enum: - manual.released - module.released - release.withdrawn - module.deprecated - manual.deprecated - chunk.upserted - chunk.removed description: What happened. The webhook events (`manual.released`, `module.released`, `release.withdrawn`, `module.deprecated`, `manual.deprecated`) have the shapes and idempotency keys webhook deliveries have; `chunk.upserted` and `chunk.removed` tell a retrieval index what to store and what to drop, per chunk of `GET /chunks`. occurredAt: type: string description: When the release, withdrawal or deprecation was recorded (ISO 8601); for a snapshot or a change of your scope, when it was told. data: type: object additionalProperties: {} description: "IDs and what changed, never content. `chunk.upserted`: `chunkId` (`GET /chunks`’s `id`), `moduleId`, `lang`, `blockId` (an FAQ entry’s, else null), `contentHash` (the chunk’s, as `GET /chunks` gives it: re-embed only when it differs from yours) and `release` (`releaseId`, `product`, `revision`, `tag`, `commit`: read the chunk at `?ref=`). `chunk.removed`: `chunkId`, `moduleId`, `lang`, `blockId`, `reason` (`deprecated`: with no replacement; `withdrawn`: its release was withdrawn; `gone`: deleted, or no longer yours to read, never told which) and `release` (the release now standing, or null). The webhook events: as their deliveries’ `data`." required: - event - occurredAt - data additionalProperties: false required: - type - id - attributes additionalProperties: false ReleaseListPageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/ReleaseDetailResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" required: - page additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false ReleaseDetailResource: type: object properties: type: type: string enum: - Release id: type: string attributes: $ref: "#/components/schemas/ReleaseAttributes" meta: type: object properties: outputs: nullable: true description: Where the release’s outputs stand, counted as you may read them (as `GET /releases/{releaseId}/outputs` lists them, so no count tells of one outside your scope). Null when its tag cannot be read. allOf: - $ref: "#/components/schemas/ReleaseOutputsProgress" required: - outputs additionalProperties: false required: - type - id - attributes - meta additionalProperties: false ReleaseAttributes: type: object properties: product: type: string description: "The product: a value of `productFacet` (`release.productFacet` in `openfolia.yaml`, else the first facet)." productFacet: type: string description: The facet the product is a value of, as configured then. revision: type: string description: The product revision, e.g. `2.1`. tag: type: string description: "The release’s annotated tag (named by `CCMS_RELEASE_TAG`, default `release/{product}/{revision}`): pass it as `?ref=` to read the content as released." tagObject: type: string description: The annotated tag object’s ID. commit: type: string description: "The commit released: `main`’s head when it was cut, or a maintenance line’s." notes: nullable: true description: The publisher’s summary (plain text with line breaks); also the tag message’s body. Null when none was given. type: string notesByLanguage: type: object additionalProperties: type: string description: Summaries per language, by language tag (plain text with line breaks); each also in the tag message, after a line `[notes:]`. Empty when none were given. major: type: boolean description: "Marked a major change by its publisher: its readers are told (a notification), and the tag message’s title ends in ` (major)`." publishedBy: type: object properties: kind: type: string enum: - user - service id: type: string required: - kind - id additionalProperties: false description: Who cut it. publishedAt: type: string format: date-time pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ description: "When it was cut: the tag’s date, to the second." withdrawal: nullable: true description: "Set once the release is withdrawn: its tag stays readable, but it no longer counts as a module’s latest release. Null while it stands." type: object properties: by: type: object properties: kind: type: string enum: - user - service id: type: string required: - kind - id additionalProperties: false description: Who withdrew it. at: type: string format: date-time pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ description: When. reason: type: string description: Why, in their words. required: - by - at - reason additionalProperties: false required: - product - productFacet - revision - tag - tagObject - commit - notes - notesByLanguage - major - publishedBy - publishedAt - withdrawal additionalProperties: false ReleaseOutputsProgress: type: object properties: state: type: string enum: - planning - rendering - done - failed description: "`planning`: the outputs are still being planned (there may be none yet); `rendering`: some are queued or rendering; `failed`: none is under way and some failed (or planning failed for good, with none planned: plan them again; or planning was refused: `refused`); `done`: all are done (`total` 0: the release has no outputs you may read, no manuals at its tag, or none you read whole)." total: type: integer minimum: 0 maximum: 9007199254740991 description: The outputs you may read (`GET /releases/{releaseId}/outputs`). queued: type: integer minimum: 0 maximum: 9007199254740991 description: Of those, queued. rendering: type: integer minimum: 0 maximum: 9007199254740991 description: Of those, rendering. done: type: integer minimum: 0 maximum: 9007199254740991 description: Of those, done. failed: type: integer minimum: 0 maximum: 9007199254740991 description: Of those, failed. refused: nullable: true description: Why the release’s outputs were not planned (#477); null when they were, or are being planned again. type: object properties: reason: type: string enum: - too-many-outputs description: "`too-many-outputs`: the release would have more outputs (every manual at its tag × its variants × the configured languages) than a release may have (`CCMS_RELEASE_MAX_OUTPUTS`), so none were planned. Planning it again (`POST /releases/{releaseId}/outputs/plan`) works once the limit is raised." wanted: nullable: true type: integer minimum: 0 maximum: 9007199254740991 description: The outputs the release would have. Only for one who may plan it again (`release.publish` for its product); null for other readers, as it counts manuals they may not read. max: type: integer minimum: 0 maximum: 9007199254740991 description: "The limit now (`CCMS_RELEASE_MAX_OUTPUTS`), as planning it again is judged. A refusal the limit was raised past is no longer told: the state is then `failed` with `refused` null, until the release is planned again." required: - reason - wanted - max additionalProperties: false queue: nullable: true description: "What the release waits for (#497), for one who may plan the release again (`release.publish` for its product), as it counts manuals other readers may not read: while its planning waits, the earlier releases planned first (`releases`); while it renders and some of its outputs are queued, the later releases’ outputs rendered first (`ahead`). Null otherwise (another reader, nothing ahead of it, or a list of releases, which leaves it out)." type: object properties: ahead: type: integer minimum: 0 maximum: 9007199254740991 description: "How many outputs of the same product’s releases cut after this one are still to render (queued or rendering): they go first, newest release first. 0 while it is planned and has no queued outputs of its own." releases: type: integer minimum: 0 maximum: 9007199254740991 description: "While its planning waits (`state` `planning`): how many of the same product’s releases cut before this one are still to be planned (at most the 200 nearest are looked at). Releases are planned strictly in the order they were cut, so these go before it. 0 while it renders." required: - ahead - releases additionalProperties: false required: - state - total - queued - rendering - done - failed - refused - queue additionalProperties: false ReleaseDetailDocument: type: object properties: data: $ref: "#/components/schemas/ReleaseDetailResource" required: - data additionalProperties: false ReleaseChangePageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/ReleaseChangeResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" previous: nullable: true description: "The release the changes are counted from: the product’s newest release before this one that is not withdrawn. Null for the product’s first." type: object properties: id: type: string revision: type: string tag: type: string commit: type: string required: - id - revision - tag - commit additionalProperties: false required: - page - previous additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false ReleaseChangeResource: type: object properties: type: type: string enum: - ReleaseChange id: type: string attributes: type: object properties: manual: type: string description: The manual’s ID. lang: type: string description: The language, a language tag. required: - manual - lang additionalProperties: false meta: type: object properties: change: type: string enum: - added - changed - removed description: "`added` (new since the previous release, or every manual of a product’s first release), `removed`, or `changed` (its manifest, or a module it names in this language)." fields: type: array items: type: string description: The manifest’s members that differ (`title`, `entries`, `variants`, …); empty unless `changed`. modules: type: array items: type: object properties: moduleId: type: string change: type: string enum: - added - changed - removed fields: type: array items: type: string description: Its metadata that differs (`title`, `type`, `audience`, …); empty when added or removed. blocks: type: array items: type: object properties: blockId: type: string change: type: string enum: - added - changed - removed required: - blockId - change additionalProperties: false description: Its blocks, list items and procedure steps that differ, by ID (as a change set’s changes list them). required: - moduleId - change - fields - blocks additionalProperties: false description: The modules the manual names (in either release) whose file in this language changed, by ID; empty unless `changed`. required: - change - fields - modules additionalProperties: false required: - type - id - attributes - meta additionalProperties: false description: "`id` is `/`. Derived from Git, as the reader sees both releases: nothing of it is stored." ChangelogPageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/ChangelogEntryResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" truncated: type: boolean description: Filtered by manual or language, only the newest releases matching the other filters are looked through; true when there were more. required: - page - truncated additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false ChangelogEntryResource: type: object properties: type: type: string enum: - Release id: type: string attributes: $ref: "#/components/schemas/ReleaseAttributes" meta: type: object properties: changedManuals: nullable: true description: How many manuals it changed, as you see them (`GET /releases/{releaseId}/changes`); null when too many files changed to compare. type: integer minimum: -9007199254740991 maximum: 9007199254740991 required: - changedManuals additionalProperties: false required: - type - id - attributes - meta additionalProperties: false ReleaseOutputPageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/ReleaseOutputResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" required: - page additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false ReleaseOutputResource: type: object properties: type: type: string enum: - ReleaseOutput id: type: string attributes: type: object properties: manual: nullable: true description: The manual’s ID; null for an offline package (all of them). type: string variant: nullable: true description: The variant’s slug, e.g. `model=large` (the manifest’s); null for an offline package (every variant). type: string lang: type: string description: The language, a language tag. kind: type: string enum: - pdf - offline-package description: "What it is: `pdf`, a manual in one variant and language; `offline-package` (#59), a ZIP of every manual the language and audience level reads, as HTML pages and PDFs, that opens from the file system without a network." audience: nullable: true description: The audience level an offline package is for (it holds what that level reads); null for a PDF, and for a package when no levels are configured. type: string state: type: string enum: - queued - rendering - done - failed description: "`queued` (its render job waits), `rendering` (an attempt started; one retried after a passing failure stays here), `done` (the file is there) or `failed` (for good; `POST …/retry` queues it again)." sha256: nullable: true description: The file’s SHA-256 (the blob store’s key); null until done. Outputs that reuse a file share it. type: string size: nullable: true description: The file’s size in bytes; null until done. type: integer minimum: -9007199254740991 maximum: 9007199254740991 error: nullable: true description: Why it failed (or, while it is retried, why the latest attempt did); null otherwise. type: object properties: code: type: string description: "Stable: `pdf-accessibility`, `render-timeout`, `render-failed`, `invalid-content`, `renderer-busy`, `render-error`, …" detail: type: string required: - code - detail additionalProperties: false createdAt: type: string format: date-time pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ updatedAt: type: string format: date-time pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ finishedAt: nullable: true description: When it was done or failed; null while queued or rendering. type: string format: date-time pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ required: - manual - variant - lang - kind - audience - state - sha256 - size - error - createdAt - updatedAt - finishedAt additionalProperties: false meta: type: object properties: reusedFrom: nullable: true description: "The release did not change the manual in this language: the output (of an earlier release) whose file this one is. Null when rendered for this release." type: object properties: releaseId: type: string outputId: type: string required: - releaseId - outputId additionalProperties: false attempts: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: Render attempts started, over every retry. retries: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: How often it was queued again after failing. withdrawn: type: boolean description: "The release is withdrawn: the file stays readable at its tag, but it is no longer the product’s current one." design: description: The page design the manual is printed with at the release’s tag; absent for an offline package. allOf: - $ref: "#/components/schemas/DesignInUse" required: - reusedFrom - attempts - retries - withdrawn additionalProperties: false links: type: object properties: file: nullable: true description: The file (`GET …/outputs/{outputId}/file`); null until done. type: string required: - file additionalProperties: false required: - type - id - attributes - meta - links additionalProperties: false description: "One file of a release: a manual in one variant and language, rendered at the release’s tag as the manual’s audience reads it, so it is the same for everyone who may read the manual; or an offline package (#59) of one language and audience level, built from the release’s tag as that level reads it." TermPageDocument: type: object properties: data: type: array items: anyOf: - $ref: "#/components/schemas/TermResource" - $ref: "#/components/schemas/UnreadableTermResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" required: - page additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false TermResource: type: object properties: type: type: string enum: - Term id: type: string attributes: type: object properties: schemaVersion: type: number enum: - 1 status: type: string enum: - proposed - approved - deprecated description: "`proposed` (not agreed yet), `approved` (use it), `deprecated` (no longer use it; `replacedBy` may name the term to use instead)." domain: description: The subject field the term belongs to, e.g. `charging`. type: string replacedBy: description: "A deprecated term’s successor: the ID of the term to use instead (not checked to exist here)." type: string languages: type: object additionalProperties: $ref: "#/components/schemas/TermLanguage" description: "Per language tag (canonical case): the preferred variant, the allowed and forbidden ones (each with an optional note), the definition (inline content: text runs with marks, and line breaks) and a usage note." required: - schemaVersion - status - languages additionalProperties: false meta: type: object properties: issues: type: array items: $ref: "#/components/schemas/Issue" description: "Problems found checking it against the configuration (a language it does not hold: `unknown-language`)." required: - issues additionalProperties: false required: - type - id - attributes - meta additionalProperties: false description: "`id` is the term’s ID, its file name (`terms/.yaml`)." UnreadableTermResource: type: object properties: type: type: string enum: - Term id: type: string attributes: type: object properties: {} additionalProperties: false meta: type: object properties: error: type: string description: Why it cannot be read. required: - error additionalProperties: false required: - type - id - attributes - meta additionalProperties: false TermDocument: type: object properties: data: $ref: "#/components/schemas/TermDetailResource" required: - data additionalProperties: false TermDetailResource: type: object properties: type: type: string enum: - Term id: type: string attributes: type: object properties: schemaVersion: type: number enum: - 1 status: type: string enum: - proposed - approved - deprecated description: "`proposed` (not agreed yet), `approved` (use it), `deprecated` (no longer use it; `replacedBy` may name the term to use instead)." domain: description: The subject field the term belongs to, e.g. `charging`. type: string replacedBy: description: "A deprecated term’s successor: the ID of the term to use instead (not checked to exist here)." type: string languages: type: object additionalProperties: $ref: "#/components/schemas/TermLanguage" description: "Per language tag (canonical case): the preferred variant, the allowed and forbidden ones (each with an optional note), the definition (inline content: text runs with marks, and line breaks) and a usage note." required: - schemaVersion - status - languages additionalProperties: false meta: type: object properties: issues: type: array items: $ref: "#/components/schemas/Issue" description: "Problems found checking it against the configuration (a language it does not hold: `unknown-language`)." usage: type: object properties: modules: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: The module files (each language apart) linking it. required: - modules additionalProperties: false description: How many module files link the term (#245), from the module index; only what the reader may see counts. linkedIn: maxItems: 50 type: array items: $ref: "#/components/schemas/TermUse" description: The module files whose term links name it, by title; at most 50 (`usage` counts them all). Only module files the reader may see are named. A term still linked cannot be deleted (422 `term-in-use` on the commit). required: - issues - usage - linkedIn additionalProperties: false required: - type - id - attributes - meta additionalProperties: false description: "`id` is the term’s ID, its file name (`terms/.yaml`)." TermUse: type: object properties: moduleId: type: string lang: type: string title: type: string description: The module file’s title. required: - moduleId - lang - title additionalProperties: false description: A module file whose term links name the term (#245). IirdsPackagePageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/IirdsPackageResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" required: - page additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false IirdsPackageResource: type: object properties: type: type: string enum: - IirdsPackage id: type: string attributes: type: object properties: manual: type: string description: The manual’s ID. variant: type: string description: The variant’s slug, e.g. `model=large` (the manifest’s). lang: type: string description: The language, a language tag. fileName: type: string description: "The name it downloads as: `___.iirds`." pdf: type: boolean description: "Whether it holds the manual’s PDF as a rendition of its document: once the release output is `done`." required: - manual - variant - lang - fileName - pdf additionalProperties: false links: type: object properties: self: type: string file: type: string description: The package itself (`GET …/file`). required: - self - file additionalProperties: false required: - type - id - attributes - links additionalProperties: false description: "The iiRDS package of one release output (its `id` is the output’s): the manual in one variant and language, made at the release’s tag as the manual’s audience reads it." IirdsPackageDocument: type: object properties: data: type: object properties: type: type: string enum: - IirdsPackage id: type: string attributes: type: object properties: manual: type: string description: The manual’s ID. variant: type: string description: The variant’s slug, e.g. `model=large` (the manifest’s). lang: type: string description: The language, a language tag. fileName: type: string description: "The name it downloads as: `___.iirds`." pdf: type: boolean description: "Whether it holds the manual’s PDF as a rendition of its document: once the release output is `done`." required: - manual - variant - lang - fileName - pdf additionalProperties: false links: type: object properties: self: type: string file: type: string description: The package itself (`GET …/file`). required: - self - file additionalProperties: false meta: type: object properties: size: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: The package’s size in bytes. topics: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: How many topics (the manual’s modules, as HTML) it holds. media: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: How many media files (images, attached files, safety symbols) it holds. warnings: type: array items: $ref: "#/components/schemas/IirdsWarning" description: What it left out or could not map, each once. Bounded by the configuration and the manual (at most one per module type, audience, facet value, variant attribute and file). required: - size - topics - media - warnings additionalProperties: false required: - type - id - attributes - links - meta additionalProperties: false description: "The iiRDS package, made: its size, what it holds and its warnings." required: - data additionalProperties: false IirdsWarning: type: object properties: code: type: string enum: - unmapped-module-type - unmapped-audience - unmapped-facet - unmapped-variant-attribute - unmapped-lifecycle-phase - missing-asset - pdf-not-included - manual-empty description: "Stable. `unmapped-*`: the configuration’s mapping (`iirds` in `openfolia.yaml`) names no iiRDS class for something the package holds, so that metadata is left out; `missing-asset`: a file a module refers to is not stored; `pdf-not-included`: the PDF is not done; `manual-empty`: the manual holds no module its audience reads in this variant, so the package holds its document alone, with no topic and no table of contents." id: type: string description: "What it is about: the module type, audience, facet, variant attribute, `/`, asset (`sha256:…`) or output." detail: type: string required: - code - id - detail additionalProperties: false DownloadPageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/DownloadResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" required: - page additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false DownloadResource: type: object properties: type: type: string enum: - Download id: type: string attributes: type: object properties: kind: type: string enum: - attachment - manual description: "`attachment`: a file attached in a module (an attachment block); `manual`: a manual’s PDF in one variant and language." product: type: string description: The product (a value of the product facet) it is a file of. lang: type: string description: Its language, a language tag. name: type: string description: The attachment’s name (its link text), or the manual’s title. description: nullable: true description: What the attachment is for; null for none and for a manual. type: string sha256: type: string description: "The file’s SHA-256, hex: its checksum, and the blob store’s key." size: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: The file’s size in bytes. mediaType: type: string description: The file’s media type, e.g. `application/pdf`. fileName: type: string description: "The name it downloads as: an attachment’s `fileName`, a PDF’s `___.pdf`." moduleId: nullable: true description: The module it is attached in; null for a manual. type: string blockId: nullable: true description: The attachment block’s ID in that module; null for a manual. type: string manualId: nullable: true description: The manual; null for an attachment. type: string variant: nullable: true description: The manual’s variant, its slug (e.g. `model=large`); null for an attachment. type: string release: description: The product’s latest release (the newest that stands, cut from `main`), which holds this file. allOf: - $ref: "#/components/schemas/DownloadRelease" required: - kind - product - lang - name - description - sha256 - size - mediaType - fileName - moduleId - blockId - manualId - variant - release additionalProperties: false meta: type: object properties: moduleTitle: nullable: true description: The title of the module it is attached in; null for a manual. type: string required: - moduleTitle additionalProperties: false links: type: object properties: versions: type: string description: Its versions across the product’s releases (`GET …/versions`). file: type: string description: The file at the latest release (`GET …/versions/{releaseId}/file`). required: - versions - file additionalProperties: false required: - type - id - attributes - meta - links additionalProperties: false description: "A downloadable file of a product (#139): an attachment block of a module for the product (module, block and language), or a manual’s PDF (manual, variant and language), as the product’s latest release holds it. Its ID stays across releases, so its versions share it." DownloadRelease: type: object properties: id: type: string description: The release’s ID (`GET /releases/{releaseId}`). tag: type: string description: "The release’s tag: content as released, `?ref=`." revision: type: string description: The product revision, e.g. `2.1`. publishedAt: type: string format: date-time pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ description: When the release was cut. required: - id - tag - revision - publishedAt additionalProperties: false DownloadVersionPageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/DownloadVersionResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" truncated: type: boolean description: "The product has more releases than are looked through (the 500 newest): older versions are not listed." required: - page - truncated additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false DownloadVersionResource: type: object properties: type: type: string enum: - DownloadVersion id: type: string attributes: type: object properties: state: type: string enum: - current - superseded - withdrawn description: "`current`: the file the product’s latest release holds; `superseded`: a later file took its place; `withdrawn`: every release that held it is withdrawn." sha256: type: string description: "The file’s SHA-256, hex: its checksum, and the blob store’s key." size: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: The file’s size in bytes. mediaType: type: string description: The file’s media type, e.g. `application/pdf`. fileName: type: string description: "The name it downloads as: an attachment’s `fileName`, a PDF’s `___.pdf`." release: description: The release in which the file changed to this one (its first). allOf: - $ref: "#/components/schemas/DownloadRelease" changeNote: type: object properties: notes: nullable: true description: The notes of that release, in the download’s language when it has them (else its notes); null for none. type: string description: nullable: true description: The attachment’s description at that release; null for none and for a manual. type: string required: - notes - description additionalProperties: false description: "What changed: the release notes, and the attachment’s description." required: - state - sha256 - size - mediaType - fileName - release - changeNote additionalProperties: false links: type: object properties: file: type: string description: This version’s file (`GET …/versions/{releaseId}/file`). required: - file additionalProperties: false required: - type - id - attributes - links additionalProperties: false description: "One version of a download: its file from the release it first appeared in, listed only where the file’s hash differs from the version before." DitaPackagePageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/DitaPackageResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" required: - page additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false DitaPackageResource: type: object properties: type: type: string enum: - DitaPackage id: type: string attributes: type: object properties: manual: type: string description: The manual’s ID. variant: type: string description: "The variant’s slug, e.g. `model=large` (the manifest’s): the one its DITAVAL file filters for." lang: type: string description: The output’s language, a language tag. fileName: type: string description: "The name it downloads as: `___-dita.zip` (`all` for the language with `languages=all`)." required: - manual - variant - lang - fileName additionalProperties: false links: type: object properties: self: type: string file: type: string description: The package itself (`GET …/file`). required: - self - file additionalProperties: false required: - type - id - attributes - links additionalProperties: false description: "The DITA 1.3 package of one release output (its `id` is the output’s): the manual as a map and topics, made at the release’s tag as the manual’s audience reads it, with a DITAVAL file for the output’s variant." DitaPackageDocument: type: object properties: data: type: object properties: type: type: string enum: - DitaPackage id: type: string attributes: type: object properties: manual: type: string description: The manual’s ID. variant: type: string description: "The variant’s slug, e.g. `model=large` (the manifest’s): the one its DITAVAL file filters for." lang: type: string description: The output’s language, a language tag. fileName: type: string description: "The name it downloads as: `___-dita.zip` (`all` for the language with `languages=all`)." required: - manual - variant - lang - fileName additionalProperties: false links: type: object properties: self: type: string file: type: string description: The package itself (`GET …/file`). required: - self - file additionalProperties: false meta: type: object properties: size: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: The package’s size in bytes. languages: type: array items: type: string description: The languages it holds, each a folder of the package. references: type: string enum: - conref - resolved description: How module references are written (`references`). topics: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: How many topics it holds (each module once per language). media: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: How many media files (images, attached files, safety symbols) it holds. warnings: type: array items: $ref: "#/components/schemas/DitaExportWarning" description: What the export wrote in another form or left out, once per code, module and language (at most 1000). warningsDropped: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: How many warnings past the first 1000 are not listed. required: - size - languages - references - topics - media - warnings - warningsDropped additionalProperties: false required: - type - id - attributes - links - meta additionalProperties: false description: "The DITA package, made: its size, what it holds and its warnings." required: - data additionalProperties: false DitaExportWarning: type: object properties: code: type: string enum: - module-not-exported - missing-translation - missing-asset - missing-symbol - module-reference-cycle - xref-outside - topic-type - procedure-as-list - procedure-title - procedures-merged - id-renamed - section-flattened - nested-note - nested-table - safety-as-note - table-layout - line-break - faq - attachment - passthrough - keyboard - module-reference-resolved - condition-shipped - condition-approximated - text-attribute-variants - image-size - callouts - term-link - metadata - page-break description: "Stable: what the export could not say in DITA, wrote in another form, or left out (`docs/dita-export.md` lists each)." module: description: The module (or the manual) it is about. type: string block: description: The block it is about, in it. type: string lang: description: The language folder it is about. type: string detail: type: string count: type: integer minimum: -9007199254740991 maximum: 9007199254740991 description: How many times it came up in that module and language. required: - code - detail - count additionalProperties: false StableAddressPageDocument: type: object properties: data: type: array items: $ref: "#/components/schemas/StableAddressResource" meta: type: object properties: page: $ref: "#/components/schemas/PageMeta" access: type: string enum: - public - signed-in - off description: "Who may open the addresses (`delivery.access` on `main`): `public` (anyone, up to `delivery.publicAudience`), `signed-in` (a reader with a token, in their scope) or `off` (nobody: every address is 404)." publicUrl: nullable: true description: "`CCMS_PUBLIC_URL`; null when not set (no URLs, no QR codes)." type: string required: - page - access - publicUrl additionalProperties: false links: $ref: "#/components/schemas/PageLinks" required: - data - meta - links additionalProperties: false StableAddressResource: type: object properties: type: type: string enum: - StableAddress id: type: string attributes: type: object properties: product: type: string description: The release’s product, a value of the product facet. manual: type: string description: The manual’s ID at the release. slug: type: string description: "Its address segment: `delivery.manuals..slug` in `openfolia.yaml` on `main`, else its ID." variant: type: string description: The variant’s slug, e.g. `model=large`. lang: type: string description: The language, a language tag. revision: type: string description: The release’s revision. latest: type: object properties: html: description: The manual as a web page. allOf: - $ref: "#/components/schemas/StableAddressLink" pdf: description: The release’s PDF of it. allOf: - $ref: "#/components/schemas/StableAddressLink" required: - html - pdf additionalProperties: false description: "Always the product’s latest release (the newest of `main` not withdrawn): what to print." pinned: type: object properties: html: description: The manual as a web page. allOf: - $ref: "#/components/schemas/StableAddressLink" pdf: description: The release’s PDF of it. allOf: - $ref: "#/components/schemas/StableAddressLink" required: - html - pdf additionalProperties: false description: This release, for good (`@`). required: - product - manual - slug - variant - lang - revision - latest - pinned additionalProperties: false relationships: type: object properties: release: type: object properties: data: type: object properties: type: type: string enum: - Release id: type: string required: - type - id additionalProperties: false required: - data additionalProperties: false required: - release additionalProperties: false meta: type: object properties: latestRelease: type: boolean description: "The release is its product’s latest: the latest address opens it now." withdrawn: type: boolean description: "The release is withdrawn: its pinned address shows a notice that links the latest." pdfReady: type: boolean description: The PDF is rendered (its output `done`), so `pdf` opens it. required: - latestRelease - withdrawn - pdfReady additionalProperties: false required: - type - id - attributes - relationships - meta additionalProperties: false description: "A manual’s stable addresses in one variant and language (#450): where readers open it, with a QR code at `/qr.svg` and `/qr.png`." StableAddressLink: type: object properties: path: type: string description: From the API’s root, e.g. `/d/north/operating/model=large/en`; behind the editor’s web server, at its root too. url: nullable: true description: The absolute URL readers open (`CCMS_PUBLIC_URL` and `path`), what the QR code holds; null while `CCMS_PUBLIC_URL` is not set. type: string required: - path - url additionalProperties: false security: - bearer: []