Source code for mi.types.drive
from typing import Any, Dict, Optional, TypedDict
__all__ = ('PropertiesPayload', 'FolderPayload', 'FilePayload')
[docs]class PropertiesPayload(TypedDict):
"""
プロパティー情報
"""
width: int
height: int
avg_color: Optional[str]
[docs]class FolderPayload(TypedDict):
"""
フォルダーの情報
"""
id: str
created_at: str
name: str
folders_count: int
files_count: int
parent_id: str
parent: Dict[str, Any]
[docs]class FilePayload(TypedDict):
"""
ファイル情報
"""
id: str
created_at: str
name: str
type: str
md5: str
size: int
is_sensitive: bool
blurhash: str
properties: PropertiesPayload
url: str
thumbnail_url: str
comment: str
folder_id: str
folder: FolderPayload
user_id: str
user: Dict[str, Any]