This commit is contained in:
joshrmcdaniel
2024-05-24 16:59:01 -05:00
parent e2236e429e
commit df3e406570

View File

@@ -0,0 +1,26 @@
from typing import TypedDict, Literal, List, Optional
class SpotifyConfig(TypedDict):
client_id: str
client_secret: str
username: str
redirect_url: str
class TidalConfig(TypedDict):
access_token: str
refresh_token: str
session_id: str
token_type: Literal["Bearer"]
class PlaylistConfig(TypedDict):
spotify_id: str
tidal_id: str
class SyncConfig(TypedDict):
spotify: SpotifyConfig
sync_playlists: Optional[List[PlaylistConfig]]
excluded_playlists: Optional[List[str]]