Skip to content

Commit

Permalink
Reserved for drive/files type functions
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzuRyo61 committed Dec 3, 2023
1 parent 79f90f3 commit 9cacb7e
Showing 1 changed file with 60 additions and 3 deletions.
63 changes: 60 additions & 3 deletions misskey/drive.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional
from typing import Optional, List

from .sync_base import Misskey as Base
from .schemas import (
Expand All @@ -13,6 +13,19 @@

class Misskey(Base):
def drive(self):
# TODO
# TODO: Add return type
raise NotImplementedError()

def drive_files(
self, *,
limit: int = 10,
since_id: Optional[str] = None,
until_id: Optional[str] = None,
folder_id: Optional[str] = None,
type: Optional[str] = None,
sort, # TODO: Define enum
) -> List[DriveFile]:
# TODO
raise NotImplementedError()

Expand All @@ -28,6 +41,18 @@ def drive_files_create(
# TODO: This API has a special behavior, so process it accordingly.
raise NotImplementedError()

def drive_files_upload_from_url(
self, *,
url: str,
folder_id: Optional[str] = None,
is_sensitive: bool = False,
comment: Optional[str] = None,
marker: Optional[str] = None,
force: bool = False,
) -> None:
# TODO
raise NotImplementedError()

def drive_files_show(
self, *,
file_id: Optional[str] = None,
Expand All @@ -46,7 +71,7 @@ def drive_files_show(
def drive_files_delete(
self, *,
file_id: str,
):
) -> None:
payload = {
"fileId": file_id,
}
Expand All @@ -61,6 +86,38 @@ def drive_files_update(
name: Optional[str] = None,
is_sensitive: Optional[bool] = None,
comment: Optional[bool] = None,
):
) -> DriveFile:
# TODO
raise NotImplementedError()

def drive_files_find(
self, *,
name: str,
folder_id: Optional[str] = None,
) -> List[DriveFile]:
# TODO
raise NotImplementedError()

def drive_files_find_by_hash(
self, *,
md5: str,
) -> List[DriveFile]:
# TODO
raise NotImplementedError()

def drive_files_check_existence(
self, *,
md5: str,
) -> bool:
# TODO
raise NotImplementedError()

def drive_files_attached_notes(
self, *,
file_id: str,
since_id: Optional[str] = None,
until_id: Optional[str] = None,
limit: int = 10,
) -> List[DriveFile]:
# TODO
raise NotImplementedError()

0 comments on commit 9cacb7e

Please sign in to comment.