/
/
/
1"""Constants for the Spotify provider."""
2
3from __future__ import annotations
4
5# Configuration Keys
6CONF_CLIENT_ID = "client_id"
7CONF_ACTION_AUTH = "auth"
8CONF_ACTION_AUTH_DEV = "auth_dev"
9CONF_REFRESH_TOKEN_DEPRECATED = "refresh_token" # Legacy key for migration, will be removed
10CONF_REFRESH_TOKEN_GLOBAL = "refresh_token_global" # Token authenticated with MA's client ID
11CONF_REFRESH_TOKEN_DEV = "refresh_token_dev" # Token authenticated with user's custom client ID
12CONF_ACTION_CLEAR_AUTH = "clear_auth"
13CONF_ACTION_CLEAR_AUTH_DEV = "clear_auth_dev"
14CONF_SYNC_PODCAST_PROGRESS = "sync_podcast_progress"
15CONF_SYNC_AUDIOBOOK_PROGRESS = "sync_audiobook_progress"
16
17# OAuth Settings
18SCOPE = [
19 "playlist-read",
20 "playlist-read-private",
21 "playlist-read-collaborative",
22 "playlist-modify-public",
23 "playlist-modify-private",
24 "user-follow-modify",
25 "user-follow-read",
26 "user-library-read",
27 "user-library-modify",
28 "user-read-private",
29 "user-read-email",
30 "user-top-read",
31 "app-remote-control",
32 "streaming",
33 "user-read-playback-state",
34 "user-modify-playback-state",
35 "user-read-currently-playing",
36 "user-modify-private",
37 "user-modify",
38 "user-read-playback-position",
39 "user-read-recently-played",
40]
41
42CALLBACK_REDIRECT_URL = "https://music-assistant.io/callback"
43
44# Other Constants
45LIKED_SONGS_FAKE_PLAYLIST_ID_PREFIX = "liked_songs"
46