@tuturuuu/internal-api/office with the owning workspace ID.
The flags default to off. Lists include enabled kinds, and direct requests for a
disabled kind return 404 to callers outside the workspace. Consumers render an
item using its bare schema ID and positive integer schema version. The API
accepts up to 5 MiB of serialized UTF-8 JSON per item.
Organization and sharing
Items start with workspace visibility. The creator is an item admin. Workspace document managers can create items at the root. An editor or admin of a folder can create items inside it. Moving into a folder also requires edit access to the destination. Moving to the root requiresmanage_documents. Folders and their children have independent access
rules. A parent must be an active folder in the same workspace. A root has
depth zero, and no item may have more than 16 ancestors. Archive or move live
children before archiving their folder.
Workspace members can browse accessible items. People outside the workspace can
browse items shared with them explicitly. Signing in or having a share token
allows direct reads according to visibility. It does not make items discoverable
in the workspace list. Share-link readers see only the current revision and receive no author identifiers from the item metadata. Missing and
unreadable items both return 404.
Editors and admins can change content, title and parent or archive the item.
Item admins and workspace members with
manage_documents can also manage
sharing and members. Public share links send the token in the
X-Office-Share-Token header. Enabling a link creates a new token. Disabling it,
archiving the item or switching to another visibility clears the token. Only
managers receive the token in the item update response.
Saving and restoring
Revision lists, individual revisions and restore require a signed-in workspace or item member with edit rights. Requests carrying a share token receive 404 on history and restore routes. Send the current item revision asbase_revision. If a new revision has been
created, the API returns 409 with current_revision so the editor can reconcile.
Revision 1, manual checkpoints and restores are immutable snapshots.
A restore copies the selected title, content and schema version into a new
checkpoint and requires the current base revision.
An autosave coalesces only into the latest rolling revision by the same author,
within 60 seconds of that row’s creation. It keeps the revision number and
window start time. A new checkpoint, different author or expired window starts
a new revision. Concurrent saves by the same author within a rolling window
share the same base revision and the last save wins. Folders have no content
history.
List items in pages of 50 with the returned next_cursor. Pass parent=root
for top-level items. Omitting parent searches across folders. List summaries
omit document content. Revision lists are newest first and omit content until
a specific revision is requested.
The Web Office route tests cover access denial, workspace scoping and conflict
responses. The rolled-back office-items.sql database test covers service-role
permissions, the folder constraints and revision coalescing.
Slides and Sheets apps
Slides and Sheets are separate satellite apps. Their workspace editors live attuturuuu.com/slides and tuturuuu.com/sheets once the gateway mount is
active, and at slides.tuturuuu.com and sheets.tuturuuu.com. The apps render
no data of their own. Every page reads the Web Office API.
The shared editors, presenter and labels live in
packages/ui/src/components/ui/office, so Web and both apps render the same
editing surface.