feat(api): declare identity contract for registration, verification, and sessions

This commit is contained in:
shira committed 2026-10-05 22:57:19 +03:00
1 parent 197661145e
commit 653f3775f8
86 files changed
+11826 -148

No files matched your search

+7
View File
@@ -94,10 +94,17 @@ components:
- rate_limited (429): too many requests; see Retry-After.
- internal (500): unexpected server error.
- not_implemented (501): the operation is in the contract but not implemented yet.
The enum keeps the public API codes so both contracts share one Problem shape. The identity codes verification_token_invalid, verification_token_expired, invalid_credentials, email_not_verified, and csrf_check_failed belong to the public API; the ML service never returns them.
enum:
- validation_failed
- verification_token_invalid
- verification_token_expired
- unauthenticated
- invalid_credentials
- forbidden
- email_not_verified
- csrf_check_failed
- not_found
- method_not_allowed
- idempotency_in_progress