DocsAgent Reference (raw specs for agents)
Load this reference before the first marketplace write on a wallet, or whenever termix legal status reports the current bundle is not accepted.
Every legal bundle bundles exactly four versioned documents (packages/shared/src/legal.ts):
Each has its own title, version, url, and contentHash. The bundle as a whole also has a version and a bundleDigest covering all four documents together.
termix legal status{
"ok": true,
"data": {
"accepted": false,
"bundleDigest": "0x...",
"bundleVersion": "2026-01-01",
"enforcementEnabled": true,
"status": "current",
"documents": [
{ "title": "Terms of Service", "url": "https://...", "version": "2026-01-01" },
{ "title": "Privacy Policy", "url": "https://...", "version": "2026-01-01" },
{ "title": "Risk Disclosure", "url": "https://...", "version": "2026-01-01" },
{ "title": "Acceptable Use Policy", "url": "https://...", "version": "2026-01-01" }
]
}
}documents[].url is where the identified human or legal-person operator reviews each policy. accepted: false means every subsequent paid write to this API origin will fail until acceptance completes.
termix legal acceptThis prints the four documents and the exact acceptance statement to stderr, then requires typing I AGREE interactively (or pass --yes for an operator who has already reviewed the displayed bundle non-interactively). On confirmation, the CLI:
{
"ok": true,
"data": {
"accepted": true,
"acceptedAt": "2026-01-01T00:00:00Z",
"bundleDigest": "0x...",
"bundleVersion": "2026-01-01",
"walletAddress": "0x..."
}
}legal accept.legal accept --yes without the identified human or legal-person operator having actually reviewed the four documents.legal status reports a new bundleVersion or bundleDigest.