mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 14:14:29 +02:00

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
41 lines
756 B
Python
41 lines
756 B
Python
from api.models.donations import DonationFields
|
|
from api.models.socials import SocialFields
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class ContactFields(BaseModel):
|
|
"""
|
|
Implements the fields for the API owner contact info.
|
|
"""
|
|
|
|
email: str
|
|
|
|
|
|
class BrandingFields(BaseModel):
|
|
"""
|
|
Implements the fields for the API owner branding info.
|
|
"""
|
|
|
|
logo: str
|
|
|
|
|
|
class InfoFields(BaseModel):
|
|
"""
|
|
Implements the fields for the API owner info.
|
|
"""
|
|
|
|
name: str
|
|
about: str
|
|
branding: BrandingFields
|
|
contact: ContactFields
|
|
socials: list[SocialFields]
|
|
donations: DonationFields
|
|
|
|
|
|
class InfoResponseModel(BaseModel):
|
|
"""
|
|
A Pydantic BaseModel that represents a dictionary of info.
|
|
"""
|
|
|
|
info: InfoFields
|