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

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
101 lines
2.6 KiB
Python
101 lines
2.6 KiB
Python
# Social Links
|
|
|
|
social_links: list[dict[str, str]] = [
|
|
{"name": "website", "url": "https://revanced.app"},
|
|
{"name": "github", "url": "https://github.com/revanced"},
|
|
{"name": "twitter", "url": "https://twitter.com/revancedapp"},
|
|
{"name": "discord", "url": "https://revanced.app/discord"},
|
|
{"name": "reddit", "url": "https://www.reddit.com/r/revancedapp"},
|
|
{"name": "telegram", "url": "https://t.me/app_revanced"},
|
|
{"name": "youtube", "url": "https://www.youtube.com/@ReVanced"},
|
|
]
|
|
|
|
# Donation info
|
|
|
|
wallets: list[dict[str, str]] = [
|
|
{
|
|
"network": "Bitcoin",
|
|
"currency_code": "btc",
|
|
"address": "bc1q4x8j6mt27y5gv0q625t8wkr87ruy8fprpy4v3f",
|
|
},
|
|
{
|
|
"network": "Dogecoin",
|
|
"currency_code": "doge",
|
|
"address": "D8GH73rNjudgi6bS2krrXWEsU9KShedLXp",
|
|
},
|
|
{
|
|
"network": "Ethereum",
|
|
"currency_code": "eth",
|
|
"address": "0x7ab4091e00363654bf84B34151225742cd92FCE5",
|
|
},
|
|
{
|
|
"network": "Litecoin",
|
|
"currency_code": "ltc",
|
|
"address": "LbJi8EuoDcwaZvykcKmcrM74jpjde23qJ2",
|
|
},
|
|
{
|
|
"network": "Monero",
|
|
"currency_code": "xmr",
|
|
"address": "46YwWDbZD6jVptuk5mLHsuAmh1BnUMSjSNYacozQQEraWSQ93nb2yYVRHoMR6PmFYWEHsLHg9tr1cH5M8Rtn7YaaGQPCjSh",
|
|
},
|
|
]
|
|
|
|
links: list[dict[str, str]] = [
|
|
{"name": "Open Collective", "url": "https://opencollective.com/revanced"},
|
|
{"name": "Github Sponsors", "url": "https://github.com/sponsors/ReVanced"},
|
|
]
|
|
|
|
# API Configuration
|
|
|
|
backend: str = "github"
|
|
redis: dict[str, str | int] = {"host": "localhost", "port": 6379}
|
|
|
|
# GitHub Backend Configuration
|
|
|
|
owner: str = "revanced"
|
|
default_repository: str = ".github"
|
|
|
|
# API Versioning
|
|
|
|
api_version: str = "v2"
|
|
openapi_version: str = "2.0.0"
|
|
openapi_title: str = "ReVanced API"
|
|
openapi_description: str = """
|
|
## The official JSON API for ReVanced Releases 🚀
|
|
|
|
### Links
|
|
|
|
- [Changelogs](https://github.com/revanced/)
|
|
- [Official links to ReVanced](https://revanced.app)
|
|
|
|
### Important Information
|
|
|
|
* Rate Limiting - 60 requests per minute
|
|
* Cache - 5 minutes
|
|
|
|
### Additional Notes
|
|
|
|
1. Breaking changes are to be expected
|
|
2. Client side caching is advised to avoid unnecessary requests
|
|
3. Abuse of the API will result in IP blocks
|
|
"""
|
|
|
|
# Testing Configuration
|
|
|
|
github_testing_repository: str = "revanced-patches"
|
|
github_testing_tag: str = "v2.173.0"
|
|
apkdl_testing_package: str = "com.google.android.youtube"
|
|
|
|
# Old API Configuration
|
|
|
|
compat_api_version: str = "v1"
|
|
compat_repositories: list = [
|
|
"revanced-patcher",
|
|
"revanced-patches",
|
|
"revanced-integrations",
|
|
"revanced-manager",
|
|
"revanced-cli",
|
|
"revanced-website",
|
|
"revanced-releases-api",
|
|
]
|