Dossier API
Use the app's authenticated tRPC client with a current Organization membership and Anydayway access. The selected Organization owns the Dossier. These methods are Organization operations; they do not accept Personal ownership. The server stamps the active Organization; pass its identifier on creation.
dossiers.list({})returns the Organization's non-archived Dossiers.dossiers.read({id})opens one Dossier in the selected Organization.dossiers.create({organizationId, purpose})creates a generating record and queues its research. Purpose is required and limited to 4,000 characters.dossiers.update({id, expectedPublicationStamp, ...fields})saves permitted changes totitle,description,bodyorpurpose. Title is limited to 200 characters and Description to 2,000. Description can benull.dossiers.regenerate({id, purpose?})queues a replacement Description and Body, retaining the Title. Editing or starting another generation while one is in progress returnsCONFLICT.dossiers.archive({id})archives a Dossier you may delete.
Members may read their Organization's Dossiers. The creator and Organization owners/admins may edit or archive them. A foreign identifier does not grant access.
Writes return FORBIDDEN when the Organization's content is unavailable during
or after erasure. No Dossier or revision change is committed in that case. Do not
silently retry a cached write; reacquire current access and reread the record.
Personal Dossiers
Use the authenticated owner's browser tRPC client and a current Anydayway paid
or trial Membership. The personalDossiers namespace does not accept an
Organization or owner selector. It always derives direct ownership from the
signed-in human session. OAuth, Agent and background contexts cannot call these
browser operations.
personalDossiers.list({})lists your non-archived Personal Dossiers.personalDossiers.read({id})opens one of your Personal Dossiers.personalDossiers.create({purpose})creates a record and starts research in your Personal Journals. The same field limits as Organization Dossiers apply.personalDossiers.update({id, expectedPublicationStamp, ...fields})edits your Title, Description, Body or Purpose.personalDossiers.regenerate({id, expectedPublicationStamp, purpose?})replaces the Description and Body using current Personal Journals, preserving Title. This also restarts an interrupted request; the old request cannot publish.personalDossiers.archive({id, expectedPublicationStamp})archives your record.
The publication stamp is required for every Personal edit, regeneration and
archive. Read or list the record, display that response and submit its exact
stamp. The stamp also changes after an erase-and-restore cycle, even if the
record text is identical. A stale stamp returns CONFLICT without saving a
record or revision. A foreign Dossier identifier returns NOT_FOUND.
Personal responses include ownerUserId, organizationId: null, and
generationRestartRequired. If the last field is true, the captured generation
can no longer continue; a fresh owner-session regeneration is available. The
private generation admission and Session identifier are never returned. A
Session that expires or is revoked during generation prevents its output from
publishing. Previously incurred usage remains accounted for.
Save the publication you displayed
Read responses include an opaque publicationStamp. Include that exact value as
expectedPublicationStamp when saving text. It identifies both the saved record
and the evidence currently eligible for your view. A changed stamp returns
CONFLICT: reread, display the current content and have the user reapply the edit.
Never silently retry cached text with a fresh stamp. The stamp is required to edit
text when some content is withheld.
Responses include contentWithheld, freshness and verificationRequired.
Only currently eligible dependent text and evidence metadata are returned;
independent human additions survive restrictions. Unverified legacy content may
be withheld. Internal text state and revision snapshots are not returned by these
methods. Regenerating replaces the current generated fields rather than merging
manual additions.
See Maintain Dossiers for the screen workflow and Dossier MCP tools for bounded research reads.