-
Notifications
You must be signed in to change notification settings - Fork 0
/
musickit.d.ts
52 lines (50 loc) · 1.42 KB
/
musickit.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
declare namespace MusicKit {
/**
* The options to use when setting a music player's playback queue.
*/
interface SetQueueOptions {
startPlaying?: boolean | undefined;
}
interface MusicKitInstance extends MusicKit.Player {}
/**
* A resource object that represents an artist of an album where an artist can be one or more persons.
* https://developer.apple.com/documentation/applemusicapi/artists-uip
*/
interface Artists extends Resource {
type: "artists";
attributes?: {
artwork: Artwork;
editorialNotes?: EditorialNotes;
genreNames: string[];
name: string;
url: string;
};
relationships: {
albums: Relationship<Albums>;
genres: Relationship<Genres>;
"music-videos": Relationship<MusicVideos>;
playlists: Relationship<Playlists>;
station: Relationship<Stations>;
};
views: {
"appears-on-albums": View<Albums>;
"compilation-albums": {
href?: string;
next?: string;
attributes: {
title: string;
};
data: Albums[];
};
"featured-albums": View<Albums>;
"featured-playlists": View<Playlists>;
"full-albums": View<Albums>;
"latest-release": View<Albums>;
"live-albums": View<Albums>;
"similar-artists": View<Artists>;
singles: View<Albums>;
"top-music-videos": View<MusicVideos>;
"top-songs": View<Songs>;
};
}
}