Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

1.0 KB
Raw Blame
import { request } from './apiCore.js';

// Spotify listening-history ingestion (#2152) — OAuth + recently-played polling
// into the machine-local activity timeline. Credentials/tokens live server-side
// under data/spotify/; these wrappers drive the settings tab.
export const getSpotifyStatus = (options = {}) => request('/spotify/status', options);
export const getSpotifyAuthUrl = (options = {}) => request('/spotify/auth/url', options);
export const saveSpotifyCredentials = (data, options = {}) =>
  request('/spotify/auth/credentials', { method: 'POST', body: JSON.stringify(data), ...options });
export const clearSpotifyAuth = (options = {}) =>
  request('/spotify/auth/clear', { method: 'POST', ...options });
export const syncSpotify = (options = {}) => request('/spotify/sync', { method: 'POST', ...options });
export const getSpotifyPlaylists = (options = {}) => request('/spotify/playlists', options);
export const syncSpotifyPlaylists = (options = {}) => request('/spotify/playlists/sync', { method: 'POST', ...options });