DealDocumentScreening/src/contract_check/api/schemas/me.py
febux 2fe54ffd86 Phase 2 - Raw SQL migration, pytest-cov coverage gate, CI branch
triggers + coverage,  Dead tooling & config drift
2026-08-24 00:45:39 +03:00

24 lines
546 B
Python

"""`/me` route request/response schemas."""
from __future__ import annotations
from pydantic import BaseModel, Field
class MeCreditsResponse(BaseModel):
telegram_id: int | None = None
credits_left: int
email: str | None = None
class BindTelegramRequest(BaseModel):
telegram_id: int = Field(..., gt=0, description="Verified Telegram user id")
class BindTelegramResponse(BaseModel):
ok: bool = True
telegram_id: int
class SetPasswordRequest(BaseModel):
password: str = Field(..., min_length=8, max_length=128)