mirror of
https://github.com/revanced/revanced-releases-api.git
synced 2025-04-29 22:14:28 +02:00
24 lines
464 B
Python
24 lines
464 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
|