Skip to content

Commit 5348a91

Browse files
authored
🤖 Merge PR DefinitelyTyped#74598 [spotify-api] Mark properties as deprecated for Developer Mode apps by @schl3ck
1 parent 961a472 commit 5348a91

File tree

2 files changed

+889
-0
lines changed

2 files changed

+889
-0
lines changed

types/spotify-api/index.d.ts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,7 @@ declare namespace SpotifyApi {
911911
copyrights: CopyrightObject[];
912912
/**
913913
* Known external IDs for the album.
914+
* @deprecated since February 2026 for Development Mode apps
914915
*/
915916
external_ids: ExternalIdObject;
916917
/**
@@ -920,11 +921,13 @@ declare namespace SpotifyApi {
920921
genres: string[];
921922
/**
922923
* The label for the album.
924+
* @deprecated since February 2026 for Development Mode apps
923925
*/
924926
label: string;
925927
/**
926928
* The popularity of the album. The value will be between `0` and `100`, with `100` being the most popular.
927929
* The popularity is calculated from the popularity of the album’s individual tracks;
930+
* @deprecated since February 2026 for Development Mode apps
928931
*/
929932
popularity: number;
930933
/**
@@ -942,6 +945,7 @@ declare namespace SpotifyApi {
942945
* The field is present when getting an artist’s albums.
943946
* Possible values are “album”, “single”, “compilation”, “appears_on”.
944947
* Compare to album_type this field represents relationship between the artist and the album.
948+
* @deprecated since February 2026 for Development Mode apps
945949
*/
946950
album_group?: "album" | "single" | "compilation" | "appears_on" | undefined;
947951
/**
@@ -956,6 +960,7 @@ declare namespace SpotifyApi {
956960
/**
957961
* The markets in which the album is available: [ISO 3166-1 alpha-2 country codes](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
958962
* Note that an album is considered available in a market when at least 1 of its tracks is available in that market.
963+
* @deprecated since February 2026 for Development Mode apps
959964
*/
960965
available_markets?: string[] | undefined;
961966
/**
@@ -1000,6 +1005,7 @@ declare namespace SpotifyApi {
10001005
interface ArtistObjectFull extends ArtistObjectSimplified {
10011006
/**
10021007
* Information about the followers of the artist.
1008+
* @deprecated since February 2026 for Development Mode apps
10031009
*/
10041010
followers: FollowersObject;
10051011
/**
@@ -1015,6 +1021,7 @@ declare namespace SpotifyApi {
10151021
/**
10161022
* The popularity of the artist. The value will be between `0` and `100`, with `100` being the most popular.
10171023
* The artist’s popularity is calculated from the popularity of all the artist’s tracks.
1024+
* @deprecated since February 2026 for Development Mode apps
10181025
*/
10191026
popularity: number;
10201027
}
@@ -1334,19 +1341,37 @@ declare namespace SpotifyApi {
13341341
followers: FollowersObject;
13351342
/**
13361343
* Information about the tracks of the playlist.
1344+
* @deprecated since February 2026 for Development Mode apps, use `items`
13371345
*/
13381346
tracks: PagingObject<PlaylistTrackObject>;
1347+
/**
1348+
* Information about the items of the playlist. Only available when retrieving a users own
1349+
* playlist. Not available for all other playlists.
1350+
*/
1351+
items?: PagingObject<PlaylistTrackObject>;
13391352
}
13401353

13411354
/**
13421355
* Playlist Object Simplified
13431356
* [](https://developer.spotify.com/web-api/object-model/)
13441357
*/
13451358
interface PlaylistObjectSimplified extends PlaylistBaseObject {
1359+
/**
1360+
* Information about the tracks of the playlist.
1361+
* @deprecated since February 2026 for Development Mode apps, use `items`
1362+
*/
13461363
tracks: {
13471364
href: string;
13481365
total: number;
13491366
};
1367+
/**
1368+
* Information about the items of the playlist. Only available when retrieving a users own
1369+
* playlist. Not available for all other playlists.
1370+
*/
1371+
items?: {
1372+
href: string;
1373+
total: number;
1374+
};
13501375
}
13511376

13521377
/**
@@ -1357,7 +1382,11 @@ declare namespace SpotifyApi {
13571382
added_at: string;
13581383
added_by: UserObjectPublic;
13591384
is_local: boolean;
1385+
/**
1386+
* @deprecated since February 2026 for Development Mode apps, use `item`
1387+
*/
13601388
track: TrackObjectFull | null;
1389+
item: TrackObjectFull | null;
13611390
}
13621391

13631392
/**
@@ -1461,13 +1490,15 @@ declare namespace SpotifyApi {
14611490
album: AlbumObjectSimplified;
14621491
/**
14631492
* Known external IDs for the track.
1493+
* @deprecated since February 2026 for Development Mode apps
14641494
*/
14651495
external_ids: ExternalIdObject;
14661496
/**
14671497
* The popularity of the track. The value will be between `0` and `100`, with `100` being the most popular.
14681498
* The popularity of a track is a value between `0` and `100`, with `100` being the most popular.
14691499
* The popularity is calculated by algorithm and is based, in the most part,
14701500
* on the total number of plays the track has had and how recent those plays are.
1501+
* @deprecated since February 2026 for Development Mode apps
14711502
*/
14721503
popularity: number;
14731504
/**
@@ -1488,6 +1519,7 @@ declare namespace SpotifyApi {
14881519
/**
14891520
* A list of the countries in which the track can be played,
14901521
* identified by their [ISO 3166-1 alpha-2 code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
1522+
* @deprecated since February 2026 for Development Mode apps
14911523
*/
14921524
available_markets?: string[] | undefined;
14931525
/**
@@ -1504,6 +1536,7 @@ declare namespace SpotifyApi {
15041536
explicit: boolean;
15051537
/**
15061538
* Known external URLs for this track.
1539+
* @deprecated since February 2026 for Development Mode apps
15071540
*/
15081541
external_urls: ExternalUrlObject;
15091542
/**
@@ -1686,6 +1719,7 @@ declare namespace SpotifyApi {
16861719
interface ShowObjectSimplified extends ContextObject {
16871720
/**
16881721
* A list of the countries in which the show can be played, identified by their [ISO 3166-1 alpha-2 code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
1722+
* @deprecated since February 2026 for Development Mode apps
16891723
*/
16901724
available_markets: string[];
16911725
/**
@@ -1730,6 +1764,7 @@ declare namespace SpotifyApi {
17301764
name: string;
17311765
/**
17321766
* The publisher of the show.
1767+
* @deprecated since February 2026 for Development Mode apps
17331768
*/
17341769
publisher: string;
17351770
/**
@@ -1751,8 +1786,17 @@ declare namespace SpotifyApi {
17511786
*/
17521787
interface UserObjectPrivate extends UserObjectPublic {
17531788
birthdate: string;
1789+
/**
1790+
* @deprecated since February 2026 for Development Mode apps
1791+
*/
17541792
country: string;
1793+
/**
1794+
* @deprecated since February 2026 for Development Mode apps
1795+
*/
17551796
email: string;
1797+
/**
1798+
* @deprecated since February 2026 for Development Mode apps
1799+
*/
17561800
product: string;
17571801
}
17581802

@@ -1763,6 +1807,9 @@ declare namespace SpotifyApi {
17631807
interface UserObjectPublic {
17641808
display_name?: string | undefined;
17651809
external_urls: ExternalUrlObject;
1810+
/**
1811+
* @deprecated since February 2026 for Development Mode apps
1812+
*/
17661813
followers?: FollowersObject | undefined;
17671814
href: string;
17681815
id: string;

0 commit comments

Comments
 (0)