Generate published error schemas from the API contract

Merged
SI
1mo ago
+428-44

Projects authentication returns either {status, error} or {status, message}; the reference previously required error for every 401. Import API-owned Error and AuthenticationError schemas, use the union only for 401 on all seven Projects operations, and retain error for 400/404/500. The Marketing-owned 401 prose explains which field each authentication failure uses.

The fixture exporter freezes complete selected response schemas with method/path/status identities. Focused import/resolver helpers keep the existing shared pipeline intact. Checks reject drift in all three owned components, wrong Projects status references, and method/path/status mutations in either fixture copy. The exporter now skips OpenAPI path-item metadata, and diagnostics remain checked through a symlinked workspace. Generated files remain cohesive artifacts instead of being split merely by line count.

API dependency recoupable/api#1038 is merged. This PR pins merged API commit 4f721f8e0af0ecb65569f18e84e2d5d38500b74d, which includes all three coordinated API changes. Merge this maintained source before refreshing and merging recoupable/docs#376 from the resulting Marketing merge commit. The API fixture records source-file hashes, avoiding a circular commit pin.

Validation: five exporter regression tests, shared fixture parity, merged-source inventory, docs generation/checks pass. The local default Turbopack build was blocked by this environment denying its worker port binding; the webpack fallback then rejected existing using syntax in eve@0.63.0. Application source and dependencies are unchanged by this final three-file refresh. The hosted Vercel build remains required before merge. The new metadata and symlink-path cases failed before their fixes and pass afterward. Existing independent validation covers all 28 Projects error responses and rejects message-only non-401 errors. The fixture and API schema artifact hashes are unchanged by this final pin refresh; CI will recheck the pushed head. No real sign-in or authenticated customer journey is asserted.