Files
FastAnime/fastanime/cli/services/auth/model.py
2025-07-21 20:35:28 +03:00

18 lines
350 B
Python

from typing import Dict
from pydantic import BaseModel, Field
from ....libs.api.types import UserProfile
AUTH_VERSION = "1.0"
class AuthProfile(BaseModel):
user_profile: UserProfile
token: str
class AuthModel(BaseModel):
version: str = Field(default=AUTH_VERSION)
profiles: Dict[str, AuthProfile] = Field(default_factory=dict)