mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-29 13:27:09 -05:00
* switch to ruff * add ruff * run ruff --fix * update ruff * resolve ruff errors * drop isort from CI * fix decorator order
19 lines
403 B
Python
19 lines
403 B
Python
from pydantic import UUID4, BaseModel
|
|
from pydantic.types import constr
|
|
|
|
from mealie.schema._mealie.mealie_model import MealieModel
|
|
|
|
|
|
class Token(BaseModel):
|
|
access_token: str
|
|
token_type: str
|
|
|
|
|
|
class TokenData(BaseModel):
|
|
user_id: UUID4 | None
|
|
username: constr(to_lower=True, strip_whitespace=True) | None = None # type: ignore
|
|
|
|
|
|
class UnlockResults(MealieModel):
|
|
unlocked: int = 0
|