mirror of
https://github.com/revanced/revanced-releases-api.git
synced 2025-04-30 06:24:27 +02:00

* refactor: import routers from old branch * refactor: import InternalCache removal * refactor: move routes into dedicated routers * fix: fixes entrypoint * refactor: add documentation and bump libs
25 lines
469 B
Python
25 lines
469 B
Python
from pydantic import BaseModel
|
|
|
|
class ClientModel(BaseModel):
|
|
"""Implements the fields for the clients.
|
|
|
|
Args:
|
|
BaseModel (pydantic.BaseModel): BaseModel from pydantic
|
|
"""
|
|
|
|
id: str
|
|
secret: str
|
|
admin: bool
|
|
active: bool
|
|
|
|
class ClientAuthModel(BaseModel):
|
|
"""Implements the fields for client authentication.
|
|
|
|
Args:
|
|
BaseModel (pydantic.BaseModel): BaseModel from pydantic
|
|
"""
|
|
|
|
id: str
|
|
secret: str
|
|
|