Handoff
Where 4.0.0 stands, and what comes next. Updated 2026-11-09: 4.0.0 is in its release pull request; the Classic UI module for 4.1.0 is built on 4.1.0-develop; SAP and Engineering come in 4.2.0.
Where things stand
Branch: 4.0.0-develop, pushed, in pull request #1 to master. 4.1.0-develop (the Classic UI module) is pushed too.
History was rewritten on 2026-11-05 to drop material from the development server's own custom modules (their routes in the live route list, and every mention), and force-pushed. Anyone with an older clone of the branch should re-clone it.
| Commit | What |
|---|---|
57b5579 |
The 4.0.0 base, squashed: LF line endings, specs 20.3 - 26.2 with generate-capabilities and the CI drift check, the method surface, version gating, normalised results, the live 26.1 route list, and the first batch of undocumented core endpoints |
d7a840a |
Second batch: the rest of core restapi (122 routes), six new handlers, the gating fix, test/requests.test.mjs |
d51a440 |
Optional handlers split into modules; tsc-only ES module build; #platform |
41d2813 |
axios replaced by fetch, with @ulyxie/cs-rest/axios as an opt-in transport |
afb9380 |
Node's http as the Node default; streamed multipart encoding; axios uploads without redirects; live tests (test/live/) |
3089190 |
typesVersions for legacy TypeScript resolution |
a2ae986 |
QUESTIONS.md: ES modules only is decided (the n8n nodes run on Node 26) |
b449964 |
Records Management and Physical Objects modules complete (155 methods) |
dd5b0cf |
WOPI complete on session.wopi (15 new); Microsoft 365 integration as the new module @ulyxie/cs-rest/office (16) |
2252105 |
The smaller optional modules (150 methods): existing handlers extended, eleven new modules (sharing, pulse, notifications, regulated, wiki, email, forums, syndication, webedit, salesforce, sharepoint-archive) |
af1cf2a |
Extended ECM (221 methods): new modules workspaces, event-action-center, smart-document-types, government; Extended ECM for Microsoft 365 on office |
818166d |
Coverage counts SAP and Engineering apart, as deferred past 4.0.0; QUESTIONS.md Q14 decided |
d789008 |
The business workspaces API (otsapxecm, 46 methods) on session.workspaces, now 144 |
140cd5e |
Records Management writes checked live; two request shapes fixed |
55c99b3 |
Physical Objects writes checked live; request shapes fixed |
88e90ab |
Business workspace and Government writes checked live; role permissions, create form, metadata form fixed |
7c71514 |
Collaboration writes (wiki, forums, Pulse, notifications, sharing, email, syndication) checked live; fixes |
d292aed |
The remaining modules' writes checked live; the zip job type verified; fixes |
ddc27ff |
The live smoke test purges its scratch folder |
54ff763 |
QUESTIONS.md: release plan (UI endpoints 4.1.0, SAP and Engineering 4.2.0) |
3af34e0 |
Normalised business workspaces (Q13) |
8393c56 |
QUESTIONS.md: Q1 and Q15 decided, Q11 answered by the live writes |
5a354f7 |
Normalised results for workflows, audit, renditions, forms and the modules' entities (Q13 complete) |
e45892a |
Q13 answered in QUESTIONS.md, README and changelog |
d0821dc |
Tests for version gating and every 3.x compatibility shim; two shim fixes |
4373fff |
A request test for every handler route (1074 of 1074 templates) |
1be24d0 |
Changelog: the two shim fixes and the new test suites |
e8ca886 |
Q7 decided: the original workflow family stays |
7d5de35 |
Release 4.0.0: version, changelog date, README fork note; QUESTIONS.md removed |
d0e0ee3 |
Merge joining master's 3.x history (no files taken), so the release pull request fast-forwards |
55653f7 |
CI and publish: yarn installed from npm, setup-node's yarn cache dropped (it failed the first CI run) |
Build health: build, npm test (1200/1200), check:dts (6 consumer compiles) and the generated-files check all pass. Smoke-tested on Bun 1.1.38 from the packed tarball.
Live, on the 26.1 dev server (reached through CS_IPV4 with its private CA, see Development):
npm run test:live: 17/17, through the default transport, a customfetchand axios.npm run test:live:large: 512 MB uploads stream (+19 MB default, +0 MB axios) and download back with matching checksums. Large File Upload failed on the server (since fixed - see the next steps): all 21 parts are accepted and the session completes, thenPOST /v2/nodeswith theupload_keyanswers 500 "Error adding version to '...'. Could not close stream cursor." - identically through both transports. The other dev server took a 2150 MiB file the same way, so the cause is on the dev server: its storage for files over 2 GB, or the block directoryE:\OPENTEXT\OTCS\blocks\. Its thread logs for that request should say.- Records Management writes (2026-11-02, logged in
/work/cs-rest-live-writes.mdon the devbox, all cleaned up): RM is installed but not enabled for objects there and its code tables are empty, so per-node RM routes answer "no role" and holds/RSIs cannot be created; the multi-node/v1/rmclassifications/...routes and clearance updates work. Two request-encoding bugs found and fixed (finalizeRecordsV1,queueV1). - Physical Objects writes (2026-11-02, same log, all cleaned up): no media types are defined there, so no physical item can exist; every write was reached with a scratch document or non-existent ids and its fields confirmed from Smart View's requests.
cancelRequestedsent the wrong parameter and is fixed (55c99b3); borrow/return/boxing now go as flat form fields. - Business workspace and Government writes (2026-11-02, same log, all cleaned up; the server lists its 32 workspaces again): workspaces, roles, members, relations, icons and the upload sequence verified; role
permissionsare a list, Government assignments send one JSON field - fixed (88e90ab).updatePermissionsrefuses every shape, and Government assignments, printing, close validation and reopen need configuration or privileges the server lacks. - Collaboration writes (2026-11-02, same log, all cleaned up): wiki autosave, forum subscribe and a Pulse status with a reply on a test document verified and removed;
wiki.autosaveand the Pulse writes sent fields the server ignored and are fixed (7c71514). Pulse is disabled for all users, and notifications, sharing and syndication are not set up there, so those writes were only shape-checked. - Last module writes (2026-11-02, same log, all cleaned up): zip-and-download verified end to end (job type
"zipanddownload", Q14), a workflow draft created, updated and deleted (it is a node, type 128, in container 3166), a document classified and unclassified, a folder made throughoffice.create. Fixed:reminders.add/update,regulated.reassignControlledCopyand the WOPI lock calls sent fields the server refused (d292aed). WOPI locks, viewx settings, video, the WebReports processor and reminders are not enabled or configured there, so those were shape-checked only.
Coverage
| Measured against | Covered | Skipped on purpose | Remaining |
|---|---|---|---|
| Published 26.2 spec | 336 / 349 | 13 | 0 |
Core restapi, live 26.1 |
371 / 377 | 6 | 0 |
| Live 26.1 route list, the modules in 4.0.0 | 1083 / 1116 | 33 | 0 |
Deferred past 4.0.0: SAP (xecmsap, othcm, ual) and Engineering (xeng*) |
0 / 245 | - | 245, not planned for 4.0.0 |
npm run coverage -- ... --all counts the deferred ones too.
npm run coverage
npm run coverage -- --spec specs/content-server-rest-api-26.1-live.yaml --by module
npm run coverage -- --spec specs/content-server-rest-api-26.1-live.yaml --by module --tag restapi --missing
What changed in this round
- Core
restapifinished (d7a840a). New handlersrecman,physicalObjects,classifications,video,wopi,admin; module assignments onmembers; the four v3 routes with aV3suffix. Gating no longer refusesGET /v1/nodes/{id}/parametersandGET /v1/webreports/{nickname}/destination, which left the spec after 20.4 but are still served. - Modules (
d51a440). The core isauth,categories,forms,members,nodes,permissions,search,server,uploads,versions,volumes. Everything else is a subpath that adds its getter to every Session when imported (import "@ulyxie/cs-rest/workflow"). Chosen by the maintainer: modules by everyday use, WebReports as its own module, loaded globally by a side-effect import. See Modules. - Build.
tscalone, one ES module per file, so the core and the modules share oneSessionand bundlers tree-shake. microbundle and the CommonJS build are gone;enginesis>= 20.19. - Browser bundling fixed. File paths go through
#platform(Node/Bun:fs; elsewhere: a stub). The old dynamicimport("fs")made esbuild and webpack refuse to bundle the package for the browser. - fetch instead of axios (
41d2813).HttpClientbuilds requests, signs in once, refreshes the ticket and throwsHTTPError(axios-shapederror.response).fetch,transportandheadersoptions;axiosTransport()from@ulyxie/cs-rest/axiosfor proxies, agents and interceptors. See Transports. - Size, measured from the packed tarball with esbuild, minified + gzipped: core 13.5 KB (was 31.8 KB with axios), everything 17.8 KB.
- Streaming uploads (
afb9380). Live testing showed every upload held in memory: Node'sfetchbuffers any request body, Bun'sfetchand Node's FormData read file parts fully, and axios's redirect support copies the body. Now Node's default transport is Node'shttp/https(agentoption for CAs, proxies, DNS), multipart bodies are encoded as a stream with an exactContent-Lengthon Node and Bun, and the axios transport sends uploads with redirects off. 512 MB: +0 MB in Node and Bun, +9 MB through axios.
The decisions below record the defaults taken along the way (ES modules only, subpath names, ArrayBuffer instead of Buffer, the axios transport taking an instance).
What is left, by module
Nothing for 4.0.0. Left for a later release, by the maintainer's decision (2026-11-02):
| Module | Routes | What |
|---|---|---|
xeng* (Engineering) |
200 | xengtransmittal 59, xengsfm 45, xengcrt 42, ... |
othcm |
25 | Extended ECM for SAP SuccessFactors |
ual |
12 | ArchiveLink for SAP |
xecmsap |
8 | Extended ECM for SAP |
otsapxecm, despite its name, is Extended ECM's base - the business workspaces themselves - and is wrapped (d789008).
4.1.0 in progress: the Classic UI module
On branch 4.1.0-develop (cut from 4.0.0-develop): @ulyxie/cs-rest/classic - category definition editing and item upgrade, columns, facets, facet trees and availability through the Classic UI's form handlers - plus two core request options (ticketCookie, redirect: "manual"). Every write was checked live on the 26.1 dev server with test objects, all removed afterwards (logged). See Classic UI.
Next steps, in order
- 4.0.0 released (2026-11-09) and checked from a fresh project against the dev server: Node with the default transport and with axios, and a browser page (bundled with esbuild) - all passing, browser run by the maintainer. 4.0.1 is in pull request #2: the axios transport returned a Node stream for
responseType: "stream"(now a webReadableStream, as documented),repositoryfixed, and README instructions for loading the package in a web page without a build step. Merge, tagv4.0.1, approve on npm. - The n8n nodes: update them for 4.0.0's breaking changes (separate repository).
- 4.1.0 (branch
4.1.0-develop): the Classic UI module (@ulyxie/cs-rest/classic, done: category definitions, columns, facets) and a Smart UI module; rebase or merge the branch onto the released 4.0.0 first. - 4.2.0: SAP and Engineering.
How to do a batch
-
From the cs-rest checkout (
<wiki>is a clone of this wiki), list what is missing for a module, then look each route up:npm run coverage -- --spec specs/content-server-rest-api-26.1-live.yaml --by module --tag <module> --missing MSYS_NO_PATHCONV=1 node <wiki>/tools/live-ops.cjs "$(pwd -W)" "/v2/video" "/v1/nodes/{}/classifications"live-ops.cjsprints each route's OScript handler, fixed arguments, parameters and body fields. The handler name often says more about the route than its path does. -
Write the methods the way the first two batches did (
57b5579, andsrc/handlers/recman.tsfor a whole handler; see Development for the conventions):- every request through
gated(method, template, ...values); - return type
TResponse<TUndocumented>, since live-only routes have no schema; - a handler for an optional feature lives in a module, not the core; see Development;
- JSDoc that starts with what the method does, says "Undocumented: in the live 26.1 route list, not OpenText's published spec.", and names anything unverified;
v1routes with no v2 twin get aV1suffix and are not deprecated;- a route that is deprecated in the server source, or duplicates one already wrapped, gets a
// coverage-skip:line with the reason, not a method; - a route whose action declares no fields takes
fields: Record<string, any>, sent withpostBody/putBody, and its JSDoc or the class's says the fields are unverified; - a row in
test/requests.test.mjswith the method and URL it must send.
- every request through
-
Check it:
npm run build && npm test && npm run check:dts npm run coverage # published spec: still 0 remaining, no strays # npm test includes test/requests.test.mjs: add a row per new method -
Add a line to
CHANGELOG.mdunder Added, and regenerate the wiki's Handlers page:node <wiki>/tools/gen-handlers.mjs "$(pwd -W)" <wiki>/Handlers.md
Decisions
QUESTIONS.md was removed for the release; what it settled:
| # | Decision |
|---|---|
| Q1 | Naming: unsuffixed calls v2, the recommended generation where both exist; V1 and V3 name theirs. No unsuffixed copies of v1/v3 methods |
| Q7 | Workflows: the original /v2/processes / /v2/draftprocesses family stays primary; the 24.1 /v2/workflows names are coverage skips |
| Q11 | body JSON is the default for documented routes; about 25 undocumented writes need flat form fields, verified live, and say so in their JSDoc |
| Q12 | Old test items on a previous dev server's Recycle Bin; not reproducible on the current one |
| Q13 | Every entity kind with a readable shape carries result; what is deliberately left is on Normalised Results |
| Q14 | Every OpenText module but SAP and Engineering (4.2.0); the user's own custom modules are never wrapped or mentioned |
| Q15 | ES modules only (Node 20.19+); subpath names as shipped; ArrayBuffer and web streams everywhere; the axios transport takes the caller's instance; Node's http as the Node default |
Before releasing 4.0.0
Done: questions settled and QUESTIONS.md removed, version 4.0.0, README fork note and infoV1(), pull request merged, CI fixed, v4.0.0 tagged and staged on npm. Left: the maintainer's approval on npm.
Things worth knowing
specs/cs api spec/exists only on the original machine, excluded through.git/info/exclude. It holds what the live spec file cannot: the internal?func=and page endpoints, an anomalies list, and the Python extractor that reads a server's OSpaces. Its/apiroutes are committed as the-livespec. Back it up somewhere private if it matters; the repo and wiki are public.tools/make-live-spec.cjsrebuilds the-livespec from that extraction after a server upgrade.- Known spec errors: the published
GET /v1/forms/draftprocessesis not registered on 26.1 (Q8;forms.draftProcessFormV1will 404 there). UsedraftProcessUpdateV1. - Windows tooling:
teahangs in Git Bash here. Run it from PowerShell with stdin and stdout redirected, or skip it: the wiki is a plain git repository,ssh://git@git.derg.cz/content-server/cs-rest.wiki.git.- Git Bash rewrites arguments that start with
/into Windows paths. SetMSYS_NO_PATHCONV=1for scripts that take API paths. openapi-typescriptrejects absolute Windows output paths; give it a relative one.
- The repo is LF-only (
.gitattributes), whatevercore.autocrlfsays.
Tools
In this wiki's repository under tools/. Clone it to use them:
git clone ssh://git@git.derg.cz/content-server/cs-rest.wiki.git
| File | Does |
|---|---|
tools/live-ops.cjs |
Prints handler, parameters and body for live-spec routes by path prefix |
tools/smoke-requests.cjs |
Calls methods against a fake fetch and prints the requests built. test/requests.test.mjs asserts the same in npm test |
tools/gen-handlers.mjs |
Regenerates the Handlers page from the source |
tools/make-live-spec.cjs |
Rebuilds specs/content-server-rest-api-26.1-live.yaml from the route extraction |
cs-rest 4.0.0
Using it
Working on it