anilibria-api-types 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. anilibria_api_types/codegen/enums/accounts.py +28 -0
  2. anilibria_api_types/codegen/enums/ads.py +16 -0
  3. anilibria_api_types/codegen/enums/anime.py +106 -0
  4. anilibria_api_types/codegen/enums/media.py +6 -0
  5. anilibria_api_types/codegen/errors/validation.py +7 -0
  6. anilibria_api_types/codegen/methods/accounts.py +543 -0
  7. anilibria_api_types/codegen/methods/anime.py +821 -0
  8. anilibria_api_types/codegen/methods/app.py +43 -0
  9. anilibria_api_types/codegen/methods/media.py +70 -0
  10. anilibria_api_types/codegen/methods/teams.py +65 -0
  11. anilibria_api_types/codegen/responses/models.py +1070 -0
  12. anilibria_api_types/config.py +12 -0
  13. anilibria_api_types/enums/__init__.py +4 -0
  14. anilibria_api_types/errors/__init__.py +1 -0
  15. anilibria_api_types/main.py +23 -0
  16. anilibria_api_types/methods/__init__.py +16 -0
  17. anilibria_api_types/methods/base_method.py +10 -0
  18. anilibria_api_types/responses/__init__.py +1 -0
  19. anilibria_api_types/scripts/generate_enums.py +77 -0
  20. anilibria_api_types/scripts/generate_errors.py +65 -0
  21. anilibria_api_types/scripts/generate_methods.py +440 -0
  22. anilibria_api_types/scripts/generate_responses.py +392 -0
  23. anilibria_api_types/utils/__init__.py +4 -0
  24. anilibria_api_types/utils/type_map.py +250 -0
  25. anilibria_api_types/validate_schema/__init__.py +5 -0
  26. anilibria_api_types/validate_schema/download_schema.py +23 -0
  27. anilibria_api_types/validate_schema/get_schema.py +19 -0
  28. anilibria_api_types-1.0.0.dist-info/METADATA +68 -0
  29. anilibria_api_types-1.0.0.dist-info/RECORD +32 -0
  30. anilibria_api_types-1.0.0.dist-info/WHEEL +5 -0
  31. anilibria_api_types-1.0.0.dist-info/licenses/LICENSE +24 -0
  32. anilibria_api_types-1.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,28 @@
1
+ # Auto-generated for enums in accounts category
2
+ from enum import StrEnum
3
+
4
+
5
+ class AccountsUsersUserSocialType(StrEnum):
6
+ VK = "vk"
7
+ GOOGLE = "google"
8
+ PATREON = "patreon"
9
+ DISCORD = "discord"
10
+
11
+
12
+ class AccountsUsersUserCollectionType(StrEnum):
13
+ PLANNED = "PLANNED"
14
+ WATCHED = "WATCHED"
15
+ WATCHING = "WATCHING"
16
+ POSTPONED = "POSTPONED"
17
+ ABANDONED = "ABANDONED"
18
+
19
+
20
+ class AccountsUsersUserFavoriteFilterSorting(StrEnum):
21
+ CREATED_AT_DESC = "CREATED_AT_DESC"
22
+ CREATED_AT_ASC = "CREATED_AT_ASC"
23
+ FRESH_AT_DESC = "FRESH_AT_DESC"
24
+ FRESH_AT_ASC = "FRESH_AT_ASC"
25
+ RATING_DESC = "RATING_DESC"
26
+ RATING_ASC = "RATING_ASC"
27
+ YEAR_DESC = "YEAR_DESC"
28
+ YEAR_ASC = "YEAR_ASC"
@@ -0,0 +1,16 @@
1
+ # Auto-generated for enums in ads category
2
+ from enum import StrEnum
3
+
4
+
5
+ class AdsBannerPlacement(StrEnum):
6
+ HOME_SUPPORT = "HOME_SUPPORT"
7
+ RELEASE_SIDEBAR = "RELEASE_SIDEBAR"
8
+
9
+
10
+ class AdsStatisticsEventType(StrEnum):
11
+ AD_VAST_SHOW = "AD_VAST_SHOW"
12
+ AD_VAST_REQUEST = "AD_VAST_REQUEST"
13
+ AD_BANNER_VIEW = "AD_BANNER_VIEW"
14
+ AD_BANNER_CLICK = "AD_BANNER_CLICK"
15
+ MEDIA_PROMOTION_VIEW = "MEDIA_PROMOTION_VIEW"
16
+ MEDIA_PROMOTION_CLICK = "MEDIA_PROMOTION_CLICK"
@@ -0,0 +1,106 @@
1
+ # Auto-generated for enums in anime category
2
+ from enum import Enum, StrEnum
3
+
4
+
5
+ class AnimeCatalogFilterProductionStatus(StrEnum):
6
+ IS_IN_PRODUCTION = "IS_IN_PRODUCTION"
7
+ IS_NOT_IN_PRODUCTION = "IS_NOT_IN_PRODUCTION"
8
+
9
+
10
+ class AnimeCatalogFilterPublishStatus(StrEnum):
11
+ IS_ONGOING = "IS_ONGOING"
12
+ IS_NOT_ONGOING = "IS_NOT_ONGOING"
13
+
14
+
15
+ class AnimeCatalogFilterSorting(StrEnum):
16
+ FRESH_AT_DESC = "FRESH_AT_DESC"
17
+ FRESH_AT_ASC = "FRESH_AT_ASC"
18
+ RATING_DESC = "RATING_DESC"
19
+ RATING_ASC = "RATING_ASC"
20
+ YEAR_DESC = "YEAR_DESC"
21
+ YEAR_ASC = "YEAR_ASC"
22
+
23
+
24
+ class AnimeReleasesReleaseAgeRating(StrEnum):
25
+ R0_PLUS = "R0_PLUS"
26
+ R6_PLUS = "R6_PLUS"
27
+ R12_PLUS = "R12_PLUS"
28
+ R16_PLUS = "R16_PLUS"
29
+ R18_PLUS = "R18_PLUS"
30
+
31
+
32
+ class AnimeReleasesReleasePublishDay(int, Enum):
33
+ VALUE_1 = 1
34
+ VALUE_2 = 2
35
+ VALUE_3 = 3
36
+ VALUE_4 = 4
37
+ VALUE_5 = 5
38
+ VALUE_6 = 6
39
+ VALUE_7 = 7
40
+
41
+
42
+ class AnimeReleasesReleaseSeason(StrEnum):
43
+ WINTER = "winter"
44
+ SPRING = "spring"
45
+ SUMMER = "summer"
46
+ AUTUMN = "autumn"
47
+
48
+
49
+ class AnimeReleasesReleaseType(StrEnum):
50
+ TV = "TV"
51
+ ONA = "ONA"
52
+ WEB = "WEB"
53
+ OVA = "OVA"
54
+ OAD = "OAD"
55
+ MOVIE = "MOVIE"
56
+ DORAMA = "DORAMA"
57
+ SPECIAL = "SPECIAL"
58
+
59
+
60
+ class AnimeReleasesReleaseMemberRole(StrEnum):
61
+ POSTER = "poster"
62
+ TIMING = "timing"
63
+ VOICING = "voicing"
64
+ EDITING = "editing"
65
+ DECORATING = "decorating"
66
+ TRANSLATING = "translating"
67
+ HEVC = "hevc"
68
+
69
+
70
+ class AnimeTorrentsTorrentCodec(StrEnum):
71
+ AV1 = "AV1"
72
+ X264_AVC = "x264/AVC"
73
+ X265_HEVC = "x265/HEVC"
74
+ X265HQ_HEVC_HQ = "x265hq/HEVC-HQ"
75
+
76
+
77
+ class AnimeTorrentsTorrentColor(StrEnum):
78
+ _8BIT = "8bit"
79
+ _10BIT = "10Bit"
80
+
81
+
82
+ class AnimeTorrentsTorrentQuality(StrEnum):
83
+ _360P = "360p"
84
+ _480P = "480p"
85
+ _576P = "576p"
86
+ _720P = "720p"
87
+ _1080P = "1080p"
88
+ _2K = "2k"
89
+ _4K = "4k"
90
+ _8K = "8k"
91
+
92
+
93
+ class AnimeTorrentsTorrentType(StrEnum):
94
+ BDRIP = "BDRip"
95
+ HDRIP = "HDRip"
96
+ TVRIP = "TVRip"
97
+ WEBRIP = "WEBRip"
98
+ DTVRIP = "DTVRip"
99
+ DVDRIP = "DVDRip"
100
+ HDTVRIP = "HDTVRip"
101
+ WEB_DL = "WEB-DL"
102
+ WEB_DLRIP = "WEB-DLRip"
103
+
104
+
105
+ class AnimeTorrentsTorrentMemberRole(StrEnum):
106
+ HEVC = "HEVC"
@@ -0,0 +1,6 @@
1
+ # Auto-generated for enums in media category
2
+ from enum import StrEnum
3
+
4
+
5
+ class MediaVideosVideoOriginType(StrEnum):
6
+ YOUTUBE_PLAYLIST = "YOUTUBE_PLAYLIST"
@@ -0,0 +1,7 @@
1
+ # Auto-generated errors
2
+
3
+
4
+ class ValidationError(Exception):
5
+ def __init__(self, errors: dict[str, list[str]]) -> None:
6
+ self.errors = errors
7
+ super().__init__(self.errors)