|
| 1 | +import datetime as dt |
| 2 | +import pyrinth.literals as literals |
| 3 | +import pyrinth.models as models |
| 4 | +import pyrinth.teams as teams |
| 5 | +import typing |
| 6 | +import pyrinth.users as users |
| 7 | +from _typeshed import Incomplete |
| 8 | + |
| 9 | +class Project: |
| 10 | + model: Incomplete |
| 11 | + def __init__(self, project_model: models.ProjectModel) -> None: ... |
| 12 | + def get_donations(self) -> list['Project.Donation']: ... |
| 13 | + @staticmethod |
| 14 | + def get(id_: str, auth: object = ...) -> Project: ... |
| 15 | + @staticmethod |
| 16 | + def get_multiple(ids: list[str]) -> list['Project']: ... |
| 17 | + def get_latest_version(self, loaders: list[str] | None = ..., game_versions: list[str] | None = ..., featured: bool | None = ..., types: literals.version_type_literal | None = ..., auth: str | None = ...) -> Project.Version: ... |
| 18 | + def get_gallery(self) -> list['Project.GalleryImage']: ... |
| 19 | + def is_client_side(self) -> bool: ... |
| 20 | + def is_server_side(self) -> bool: ... |
| 21 | + def get_downloads(self) -> int: ... |
| 22 | + def get_categories(self) -> list[str]: ... |
| 23 | + def get_additional_categories(self) -> list[str]: ... |
| 24 | + def get_all_categories(self) -> list[str]: ... |
| 25 | + def get_license(self) -> Project.License: ... |
| 26 | + def get_specific_version(self, semantic_version: str) -> typing.Optional['Project.Version']: ... |
| 27 | + def download(self, recursive: bool = ...) -> None: ... |
| 28 | + def get_versions(self, loaders: list[str] | None = ..., game_versions: list[str] | None = ..., featured: bool | None = ..., types: literals.version_type_literal | None = ..., auth: str | None = ...) -> list['Project.Version']: ... |
| 29 | + def get_oldest_version(self, loaders: list[str] | None = ..., game_versions: list[str] | None = ..., featured: bool | None = ..., types: literals.version_type_literal | None = ..., auth: str | None = ...) -> Project.Version: ... |
| 30 | + def get_id(self) -> str: ... |
| 31 | + def get_slug(self) -> str: ... |
| 32 | + def get_name(self) -> str: ... |
| 33 | + @staticmethod |
| 34 | + def get_version(id_: str) -> Project.Version: ... |
| 35 | + def create_version(self, version_model, auth: str | None = ...) -> int: ... |
| 36 | + def change_icon(self, file_path: str, auth: str | None = ...) -> bool: ... |
| 37 | + def delete_icon(self, auth: str | None = ...) -> bool: ... |
| 38 | + def add_gallery_image(self, image: Project.GalleryImage, auth: str | None = ...) -> bool: ... |
| 39 | + def modify_gallery_image(self, url: str, featured: bool | None = ..., title: str | None = ..., description: str | None = ..., ordering: int | None = ..., auth: str | None = ...) -> bool: ... |
| 40 | + def delete_gallery_image(self, url: str, auth: str | None = ...) -> bool: ... |
| 41 | + def modify(self, slug: str | None = ..., title: str | None = ..., description: str | None = ..., categories: list[str] | None = ..., client_side: str | None = ..., server_side: str | None = ..., body: str | None = ..., additional_categories: list[str] | None = ..., issues_url: str | None = ..., source_url: str | None = ..., wiki_url: str | None = ..., discord_url: str | None = ..., license_id: str | None = ..., license_url: str | None = ..., status: literals.project_status_literal | None = ..., requested_status: literals.requested_project_status_literal | None = ..., moderation_message: str | None = ..., moderation_message_body: str | None = ..., auth: str | None = ...) -> bool: ... |
| 42 | + def delete(self, auth: str | None = ...) -> typing.Literal[True]: ... |
| 43 | + def get_dependencies(self) -> list['Project']: ... |
| 44 | + @staticmethod |
| 45 | + def search(query: str = ..., facets: list[list[str]] | None = ..., index: literals.index_literal = ..., offset: int = ..., limit: int = ..., filters: list[str] | None = ...) -> list['Project.SearchResult']: ... |
| 46 | + def get_team_members(self) -> list[teams.Team.TeamMember]: ... |
| 47 | + def get_team(self) -> teams.Team: ... |
| 48 | + class Version: |
| 49 | + model: Incomplete |
| 50 | + def __init__(self, version_model: models.VersionModel) -> None: ... |
| 51 | + def get_type(self) -> str: ... |
| 52 | + def get_dependencies(self) -> list['Project.Dependency']: ... |
| 53 | + @staticmethod |
| 54 | + def get(id_: str) -> Project.Version: ... |
| 55 | + @staticmethod |
| 56 | + def get_from_hash(hash_: str, algorithm: literals.sha_algorithm_literal = ..., multiple: bool = ...) -> typing.Union['Project.Version', list['Project.Version']]: ... |
| 57 | + @staticmethod |
| 58 | + def delete_file_from_hash(auth: str, hash_: str, version_id: str, algorithm: literals.sha_algorithm_literal = ...) -> typing.Literal[True]: ... |
| 59 | + def get_files(self) -> list['Project.File']: ... |
| 60 | + def download(self, recursive: bool = ...) -> None: ... |
| 61 | + def get_project(self) -> Project: ... |
| 62 | + def get_primary_files(self) -> list['Project.File']: ... |
| 63 | + def get_author(self) -> users.User: ... |
| 64 | + def is_featured(self) -> bool: ... |
| 65 | + def get_date_published(self) -> dt.datetime: ... |
| 66 | + def get_downloads(self) -> int: ... |
| 67 | + def get_name(self) -> str: ... |
| 68 | + def get_version_number(self) -> str: ... |
| 69 | + class GalleryImage: |
| 70 | + file_path: Incomplete |
| 71 | + ext: Incomplete |
| 72 | + featured: Incomplete |
| 73 | + title: Incomplete |
| 74 | + description: Incomplete |
| 75 | + ordering: Incomplete |
| 76 | + def __init__(self, file_path: str, featured: bool, title: str, description: str, ordering: int = ...) -> None: ... |
| 77 | + class File: |
| 78 | + hashes: Incomplete |
| 79 | + url: Incomplete |
| 80 | + name: Incomplete |
| 81 | + primary: Incomplete |
| 82 | + size: Incomplete |
| 83 | + file_type: Incomplete |
| 84 | + extension: Incomplete |
| 85 | + def __init__(self, hashes: dict[str, str], url: str, filename: str, primary: str, size: int, file_type: str) -> None: ... |
| 86 | + def is_resourcepack(self) -> bool: ... |
| 87 | + class License: |
| 88 | + id: Incomplete |
| 89 | + name: Incomplete |
| 90 | + url: Incomplete |
| 91 | + def __init__(self, id_: str, name: str, url: str | None = ...) -> None: ... |
| 92 | + class Donation: |
| 93 | + id: Incomplete |
| 94 | + platform: Incomplete |
| 95 | + url: Incomplete |
| 96 | + def __init__(self, id_: str, platform: str, url: str) -> None: ... |
| 97 | + class Dependency: |
| 98 | + dependency_option: Incomplete |
| 99 | + file_name: Incomplete |
| 100 | + version_id: Incomplete |
| 101 | + project_id: Incomplete |
| 102 | + def __init__(self) -> None: ... |
| 103 | + def get_version(self) -> Project.Version: ... |
| 104 | + def is_required(self) -> bool: ... |
| 105 | + def is_optional(self) -> bool: ... |
| 106 | + def is_incompatible(self) -> bool: ... |
| 107 | + class SearchResult: |
| 108 | + model: Incomplete |
| 109 | + def __init__(self, search_result_model: models.SearchResultModel) -> None: ... |
0 commit comments