API Models

API Models hand-maded

class BaseModel

Базовые классы: BaseModel

model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

_abc_impl = <_abc._abc_data object>
class OtpModel(*, code=None, user_id=None, device_id=None, expired_at=None)

Базовые классы: BaseModel

code: str | None
user_id: int | None
device_id: str | None
expired_at: AwareDatetime | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class AgeRatingsModel(*, value=None, label=None, is_adult=None, description=None)

Базовые классы: BaseModel

value: str | None
label: str | None
is_adult: bool | None
description: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class TypesModel(*, value=None, description=None)

Базовые классы: BaseModel

value: str | None
description: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class NameModel(*, main=None, english=None, alternative=None)

Базовые классы: BaseModel

main: str | None
english: str | None
alternative: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class SeasonModel(*, value=None, description=None)

Базовые классы: BaseModel

value: str | None
description: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class PrePosterModel(*, preview=None, thumbnail=None)

Базовые классы: BaseModel

preview: str | None
thumbnail: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class PosterModel(*, preview=None, thumbnail=None, optimized=None)

Базовые классы: PrePosterModel

optimized: PrePosterModel | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class PreImageModel(*, preview=None, thumbnail=None)

Базовые классы: BaseModel

preview: str | None
thumbnail: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class ImageModel(*, preview=None, thumbnail=None, optimized=None)

Базовые классы: PreImageModel

optimized: PreImageModel | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class PublishDayModel(*, value=None, description=None)

Базовые классы: BaseModel

value: str | int | None
description: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GenresModel(*, id=None, name=None, image=None, total_releases=None)

Базовые классы: BaseModel

id: int | None
name: str | None
image: ImageModel | None
total_releases: int | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class EndingOpeningModel(*, start=None, stop=None)

Базовые классы: BaseModel

start: int | None
stop: int | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class LinksModel(*, previous=None, next=None)

Базовые классы: BaseModel

previous: str | None
next: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class PrePaginationModel(*, total=None, count=None, per_page=None, current_page=None, total_pages=None, links=None)

Базовые классы: BaseModel

total: int | None
count: int | None
per_page: int | None
current_page: int | None
total_pages: int | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class PaginationModel(*, pagination=None)

Базовые классы: BaseModel

pagination: PrePaginationModel | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class MetaModel(*, meta=None)

Базовые классы: BaseModel

meta: PaginationModel | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class PrePreviewModel(*, preview=None, thumbnail=None)

Базовые классы: BaseModel

preview: str | None
thumbnail: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class PreviewModel(*, preview=None, thumbnail=None, optimized=None)

Базовые классы: PrePreviewModel

optimized: PrePreviewModel | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class EpisodeModel(*, id=None, name=None, ordinal=None, ending=None, opening=None, preview=None, hls_480=None, hls_720=None, hls_1080=None, duration=None, rutube_id=None, youtube_id=None, updated_at=None, sort_order=None, release_id=None, name_english=None)

Базовые классы: BaseModel

id: str | None
name: str | None
ordinal: int | float | None
ending: EndingOpeningModel | None
opening: EndingOpeningModel | None
preview: PreviewModel | None
hls_480: str | None
hls_720: str | None
hls_1080: str | None
duration: int | None
rutube_id: str | None
youtube_id: str | None
updated_at: AwareDatetime | None
sort_order: int | None
release_id: int | None
name_english: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class ReleaseModel(*, id=None, type=None, year=None, name=None, alias=None, season=None, poster=None, fresh_at=None, created_at=None, updated_at=None, is_ongoing=None, age_rating=None, publish_day=None, description=None, notification=None, episodes_total=None, external_player=None, is_in_production=None, is_blocked_by_geo=None, is_blocked_by_copyrights=None, added_in_users_favorites=None, average_duration_of_episode=None, added_in_planned_collection=None, added_in_watched_collection=None, added_in_watching_collection=None, added_in_postponed_collection=None, added_in_abandoned_collection=None, genres=None, episodes=None)

Базовые классы: BaseModel

id: int | None
type: TypesModel | None
year: int | None
name: NameModel | None
alias: str | None
season: SeasonModel | None
poster: PosterModel | None
fresh_at: AwareDatetime | None
created_at: AwareDatetime | None
updated_at: AwareDatetime | None
is_ongoing: bool | None
age_rating: AgeRatingsModel | None
publish_day: PublishDayModel | None
description: str | None
notification: str | None
episodes_total: int | None
external_player: str | None
is_in_production: bool | None
is_blocked_by_geo: bool | None
is_blocked_by_copyrights: bool | None
added_in_users_favorites: int | None
average_duration_of_episode: int | None
added_in_planned_collection: int | None
added_in_watched_collection: int | None
added_in_watching_collection: int | None
added_in_postponed_collection: int | None
added_in_abandoned_collection: int | None
genres: list[anilibria_api_client.models.models.GenresModel] | None
episodes: list[anilibria_api_client.models.models.EpisodeModel] | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class SortingModel(*, value=None, label=None, description=None)

Базовые классы: BaseModel

value: str | None
label: str | None
description: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class PreAvatarModel(*, preview=None, thumbnail=None)

Базовые классы: BaseModel

preview: str | None
thumbnail: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class AvatarModel(*, preview=None, thumbnail=None, optimized=None)

Базовые классы: PreAvatarModel

optimized: PreAvatarModel | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class TorrentsStatsModel(*, passkey=None, uploaded=None, downloaded=None)

Базовые классы: BaseModel

passkey: str | None
uploaded: int | None
downloaded: int | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class ReleaseEpisodeModel(*, id=None, name=None, ordinal=None, ending=None, opening=None, preview=None, hls_480=None, hls_720=None, hls_1080=None, duration=None, rutube_id=None, youtube_id=None, updated_at=None, sort_order=None, release_id=None, name_english=None, release)

Базовые классы: EpisodeModel

release: ReleaseModel
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class HistoryModel(*, id=None, time=None, user_id=None, is_watched=None, updated_at=None, release_episode_id=None, release_episode)

Базовые классы: BaseModel

id: int | None
time: int | float | None
user_id: int | None
is_watched: bool | None
updated_at: AwareDatetime | None
release_episode_id: str | None
release_episode: ReleaseEpisodeModel
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class RequestModel(*, ip=None, country=None, iso_code=None, timezone=None)

Базовые классы: BaseModel

ip: str | None
country: str | None
iso_code: str | None
timezone: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class PromotionsModel(*, id=None, url=None, url_label=None, image=None, title=None, description=None, is_ad=None, ad_edid=None, ad_origin=None, release=None, has_overlay=None)

Базовые классы: BaseModel

id: str | None
url: str | None
url_label: str | None
image: ImageModel | None
title: str | None
description: str | None
is_ad: bool | None
ad_edid: str | None
ad_origin: str | None
release: ReleaseModel | None
has_overlay: bool | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class OriginModel(*, id=None, url=None, type=None, title=None, description=None, is_announce=None)

Базовые классы: BaseModel

id: str | None
url: str | None
type: TypesModel | None
title: str | None
description: str | None
is_announce: bool | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class VideosModel(*, id=None, url=None, title=None, views=None, image=None, comments=None, video_id=None, created_at=None, updated_at=None, is_announce=None, origin=None)

Базовые классы: BaseModel

id: int | None
url: str | None
title: str | None
views: int | None
image: ImageModel | None
comments: int | None
video_id: str | None
created_at: AwareDatetime | None
updated_at: AwareDatetime | None
is_announce: bool | None
origin: OriginModel | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

API Legacy models

This code is legacy Last edited in 0.2.2 version

class CollectionType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Базовые классы: Enum

Типы коллекций

PLANNED = 'PLANNED'
WATCHED = 'WATCHED'
WATCHING = 'WATCHING'
POSTPONED = 'POSTPONED'
ABANDONED = 'ABANDONED'
class ContentType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Базовые классы: Enum

Типы контента

TV = 'TV'
ONA = 'ONA'
WEB = 'WEB'
OVA = 'OVA'
OAD = 'OAD'
MOVIE = 'MOVIE'
DORAMA = 'DORAMA'
SPECIAL = 'SPECIAL'
class AgeRating(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Базовые классы: Enum

Возрастные рейтинги

R0_PLUS = 'R0_PLUS'
R6_PLUS = 'R6_PLUS'
R12_PLUS = 'R12_PLUS'
R16_PLUS = 'R16_PLUS'
R18_PLUS = 'R18_PLUS'
class Seasons(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Базовые классы: Enum

Сезоны

WINTER = 'winter'
SPRING = 'spring'
SUMMER = 'summer'
AUTUMN = 'autumn'
class SortType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Базовые классы: Enum

Тип сортировки

FRESH_AT_DESC = 'FRESH_AT_DESC'
FRESH_AT_ASC = 'FRESH_AT_ASC'
RATING_DESC = 'RATING_DESC'
RATING_ASC = 'RATING_ASC'
YEAR_DESC = 'YEAR_DESC'
YEAR_ASC = 'YEAR_ASC'
class PublishStatusesType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Базовые классы: Enum

Статус аниме (онгоинг)

IS_ONGOING = 'IS_ONGOING'
IS_NOT_ONGOING = 'IS_NOT_ONGOING'
class ProductionStatusesType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Базовые классы: Enum

Статус аниме (в озвучке)

IS_IN_PRODUCTION = 'IS_IN_PRODUCTION'
IS_NOT_IN_PRODUCTION = 'IS_NOT_IN_PRODUCTION'
class TimeCode(*, time, is_watched, release_episode_id)

Базовые классы: BaseModel

Класс для работы с этими методами:

accounts.users_me_views_timecodes_update

time: int | float
is_watched: bool
release_episode_id: str
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class Release(*, page=None, limit=None, genres=None, types=None, seasons=None, from_year=None, to_year=None, search=None, sorting=None, age_ratings=None, publish_statuses=None, production_statuses=None, include=None, exclude=None)

Базовые классы: BaseModel

Класс для работы с этими методами:

anime.catalog_releases_get

anime.catalog_releases_post

page: int | None
limit: int | None
genres: str | None
types: list[anilibria_api_client.models.legacy_models.ContentType] | None
seasons: list[anilibria_api_client.models.legacy_models.Seasons] | None
from_year: int | None
to_year: int | None
search: str | None
sorting: SortType | None
age_ratings: list[anilibria_api_client.models.legacy_models.AgeRating] | None
publish_statuses: list[anilibria_api_client.models.legacy_models.PublishStatusesType] | None
production_statuses: list[anilibria_api_client.models.legacy_models.ProductionStatusesType] | None
include: str | None
exclude: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class ReleaseCollection(*, type_of_collection, page=None, limit=None, genres=None, types=None, years=None, search=None, age_ratings=None, include=None, exclude=None)

Базовые классы: BaseModel

Класс для работы с этими методами

users_me_collections_releases_get

users_me_collections_releases_post

type_of_collection: CollectionType
page: int | None
limit: int | None
genres: str | None
types: list[anilibria_api_client.models.legacy_models.ContentType] | None
years: str | None
search: str | None
age_ratings: list[anilibria_api_client.models.legacy_models.AgeRating] | None
include: str | None
exclude: str | None
_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].