Skip to Content
Documentation

songstress/server

The server entry's API object and what it exports.

Import the server entry's songstress from songstress/server. It has everything of songstress, plus secrets, providers, jobs, routes, signIn, library and users.

What it exports is the SDK's own record of its public surface, which the SDK's tests hold to the code. Each type's fields, and every description, are read from the SDK's source when the site is built.

songstress

It also exports, as the modules that declare them document them: API_VERSION, Action, Album, AlbumCard, Artist, ArtistBiography, ArtistCard, ArtistInfoProvider, ArtistPhoto, ArtistQuery, ArtworkProvider, AudioContainer, AudioFacts, Awaitable, BadgeBlock, BannerBlock, Block, ButtonBlock, Card, CatalogAlbum, CatalogAlbumDetail, CatalogArtist, CatalogArtistDetail, CatalogIds, CatalogPlaylist, CatalogPlaylistDetail, CatalogTrack, CatalogType, CheckboxField, ClientApi, ClientCapabilities, ClientCommands, ClientHooks, ClientInfo, ClientUi, CollapsibleBlock, CommandContext, CommandHandler, CommandOutcome, Commands, ConfirmAction, CopyAction, DateField, Destination, DetailScreen, Disposable, DividerBlock, DownloadAvailability, DownloadLocation, DownloadProvider, EmptyState, Favorite, FavoriteEvent, Field, ForUser, FormScreen, FormValues, GridScreen, Host, HostInfo, IconBlock, IconName, ImageBlock, ImageSource, InputAction, InvokeAction, JobHandler, JobRun, Jobs, JsonValue, Library, LibraryChange, LibrarySearchResults, LibraryType, LinkProvider, LinkResult, ListScreen, LookupProvider, LyricsLine, LyricsProvider, LyricsResult, MenuBlock, MenuEntry, MenuLocation, MetadataProvider, NavigateAction, Net, NetRequest, NetResponse, Notice, NotifyAction, OpenUrlAction, PageRenderer, Pages, PanelContent, PanelContext, PanelRenderer, Panels, PermissionName, PickAction, PickItem, PickerField, Platform, PlayAction, PlayEvent, PlayProvider, Playable, Player, PlayerState, Playlist, PlaylistCard, PlaylistChangeEvent, ProgressBlock, ProviderContext, ProviderFailure, ProviderFailureCode, ProviderGroup, ProviderRegistry, Providers, Queue, QueueAction, QueueState, RecommendProvider, RecommendSeed, RecommendedTrack, RefreshAction, RefreshTarget, RenderContext, RouteHandler, RouteRequest, RouteResponse, Routes, Row, ScanSummary, Screen, ScrobbleEvent, ScrobblePlay, ScrobbleProvider, SearchProvider, SearchQuery, SearchResults, Secrets, SectionBlock, ServerApi, ServerHooks, ServerSettings, ServerStore, ServerUi, SettingChange, SettingValue, Settings, ShareAction, SharedApi, SharedHooks, ShelfBlock, Side, SignInHandler, SignInPage, SignInRegistry, SignInReturn, SignInStart, SignOutRequest, SignedIn, Size, SliderField, Song, SongRow, SongstressError, SongstressErrorCode, SpacerBlock, StackBlock, StatusContent, StatusContext, StatusItems, StatusRenderer, Store, StreamLocation, SwitchField, TextBlock, TextField, ToastAction, Tone, TrackFacts, TrackQuery, TreeNode, TreeScreen, UI_VERSION, Ui, User, Users.

songstress

The server entry's API: import { songstress } from 'songstress/server'.

export declare const serverApi: ServerApi;

Refers to ServerApi.