"""`/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)