docs(posts): publish-now live, List/Get Post available, platform caps

Merged
SW
1mo ago
+51-38

Implements the docs item of recoupable/app#2241 after api#1036 (publish-now) merged.

OperationBeforeAfter
POST /api/postspendingpublish now live; publish_at documented as 400 until scheduling ships; no Recoup rate limit, per-platform caps table (decision 2026-10-18)
GET /api/postspendingavailable
GET /api/posts/{id}pendingavailable
DELETE /api/posts/{id}pendingpending (unchanged)
  • content/docs/contracts/operation-inventory.json refreshed against api e4d9b69: the three posts routes are now implemented/public; Cancel stays an unmatched pending operation.
  • example-cases.json: social.json hash only. The api fixture copy (lib/contracts/fixtures/published-docs.json) follows in an api PR, then the recoupable/docs re-sync.

Merge order: this PR โ†’ api fixture PR โ†’ docs sync PR.

Checks: pnpm docs:build (no generated drift), pnpm docs:check 11/11, refresh-contract-inventory --check, build-contract-examples --check, test_response_contracts.py OK, pnpm test 460/460. Local pnpm build stops at /valuation prerender for lack of a real NEXT_PUBLIC_PRIVY_APP_ID locally (unrelated); the Vercel preview build is the gate.

๐Ÿค– Generated with Claude Code


Summary by cubic

Marks the posts publishing endpoints live in the API docs: publish now works on Create Post, and List/Get Post are available; contract inventory is pinned to the api#1040 head.

  • Create Post (POST /api/posts) without publish_at publishes immediately; any publish_at returns 400 until scheduling ships, and the docs list per-platform caps (Recoup applies no own rate limit).
  • List Posts and Get Post drop the pending notice; Cancel Post stays pending.
  • Merge this PR before the api fixture PR and the docs re-sync.

Summary by CodeRabbit

  • Documentation
    • Clarified that posts can be published immediately, while requests with a scheduled publishing time currently return an error.
    • Added platform-specific posting limits and updated the description of error responses.
    • Clarified the purposes of post listing and status polling; the delete endpoint is still marked as pending.
    • Updated the API operation inventory to reflect the endpoints currently backed by the implementation.