Skip to content

Commit 853083f

Browse files
authored
Automated update of fixed-spotify-open-api.yml (#244)
1 parent f74b146 commit 853083f

File tree

13 files changed

+110
-348
lines changed

13 files changed

+110
-348
lines changed

spotify-web-api-java-generator/fixed-spotify-open-api.yml

Lines changed: 82 additions & 210 deletions
Large diffs are not rendered by default.

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/apis/AudiobooksApi.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public CheckUsersSavedAudiobooksRequest checkUsersSavedAudiobooks(String ids) {
2323

2424
/**
2525
* <h4>Get an Audiobook</h4>
26-
* <p>Get Spotify catalog information for a single audiobook.<br><strong>Note: Audiobooks are only available for the US, UK, Ireland, New Zealand and Australia markets.</strong></p>
26+
* <p>Get Spotify catalog information for a single audiobook. Audiobooks are only available within the US, UK, Canada, Ireland, New Zealand and Australia markets.</p>
2727
* @param id <p>The <a href="https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids">Spotify ID</a>for the audiobook.</p>
2828
* @return a {@link GetAudiobookRequest} object to build and execute the request
2929
*/
@@ -33,7 +33,7 @@ public GetAudiobookRequest getAudiobook(String id) {
3333

3434
/**
3535
* <h4>Get Audiobook Chapters</h4>
36-
* <p>Get Spotify catalog information about an audiobook's chapters.<br><strong>Note: Audiobooks are only available for the US, UK, Ireland, New Zealand and Australia markets.</strong></p>
36+
* <p>Get Spotify catalog information about an audiobook's chapters. Audiobooks are only available within the US, UK, Canada, Ireland, New Zealand and Australia markets.</p>
3737
* @param id <p>The <a href="https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids">Spotify ID</a>for the audiobook.</p>
3838
* @return a {@link GetAudiobookChaptersRequest} object to build and execute the request
3939
*/
@@ -43,7 +43,7 @@ public GetAudiobookChaptersRequest getAudiobookChapters(String id) {
4343

4444
/**
4545
* <h4>Get Several Audiobooks</h4>
46-
* <p>Get Spotify catalog information for several audiobooks identified by their Spotify IDs.<br><strong>Note: Audiobooks are only available for the US, UK, Ireland, New Zealand and Australia markets.</strong></p>
46+
* <p>Get Spotify catalog information for several audiobooks identified by their Spotify IDs. Audiobooks are only available within the US, UK, Canada, Ireland, New Zealand and Australia markets.</p>
4747
* @param ids <p>A comma-separated list of the <a href="https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids">Spotify IDs</a>. For example: <code>ids=18yVqkdbdRvS24c0Ilj2ci,1HGw3J3NxZO1TP1BTtVhpZ</code>. Maximum: 50 IDs.</p>
4848
* @return a {@link GetMultipleAudiobooksRequest} object to build and execute the request
4949
*/

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/apis/ChaptersApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class ChaptersApi {
1313

1414
/**
1515
* <h4>Get a Chapter</h4>
16-
* <p>Get Spotify catalog information for a single chapter.<br><strong>Note: Chapters are only available for the US, UK, Ireland, New Zealand and Australia markets.</strong></p>
16+
* <p>Get Spotify catalog information for a single audiobook chapter. Chapters are only available within the US, UK, Canada, Ireland, New Zealand and Australia markets.</p>
1717
* @param id <p>The <a href="https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids">Spotify ID</a>for the chapter.</p>
1818
* @return a {@link GetChapterRequest} object to build and execute the request
1919
*/
@@ -23,7 +23,7 @@ public GetChapterRequest getChapter(String id) {
2323

2424
/**
2525
* <h4>Get Several Chapters</h4>
26-
* <p>Get Spotify catalog information for several chapters identified by their Spotify IDs.<br><strong>Note: Chapters are only available for the US, UK, Ireland, New Zealand and Australia markets.</strong></p>
26+
* <p>Get Spotify catalog information for several audiobook chapters identified by their Spotify IDs. Chapters are only available within the US, UK, Canada, Ireland, New Zealand and Australia markets.</p>
2727
* @param ids <p>A comma-separated list of the <a href="https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids">Spotify IDs</a>. For example: <code>ids=0IsXVP0JmcB2adSE338GkK,3ZXb8FKZGU0EHALYX6uCzU</code>. Maximum: 50 IDs.</p>
2828
* @return a {@link GetSeveralChaptersRequest} object to build and execute the request
2929
*/

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/apis/PlayerApi.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class PlayerApi {
1313

1414
/**
1515
* <h4>Add Item to Playback Queue</h4>
16-
* <p>Add an item to the end of the user's current playback queue.</p>
16+
* <p>Add an item to the end of the user's current playback queue. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.</p>
1717
* @param uri <p>The uri of the item to add to the queue. Must be a track or an episode uri.</p>
1818
* @return a {@link AddToQueueRequest} object to build and execute the request
1919
*/
@@ -50,7 +50,7 @@ public GetRecentlyPlayedRequest getRecentlyPlayed() {
5050

5151
/**
5252
* <h4>Get Available Devices</h4>
53-
* <p>Get information about a user’s available devices.</p>
53+
* <p>Get information about a user’s available Spotify Connect devices. Some device models are not supported and will not be listed in the API response.</p>
5454
* @return a {@link GetUsersAvailableDevicesRequest} object to build and execute the request
5555
*/
5656
public GetUsersAvailableDevicesRequest getUsersAvailableDevices() {
@@ -68,7 +68,7 @@ public GetUsersCurrentlyPlayingTrackRequest getUsersCurrentlyPlayingTrack() {
6868

6969
/**
7070
* <h4>Pause Playback</h4>
71-
* <p>Pause playback on the user's account.</p>
71+
* <p>Pause playback on the user's account. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.</p>
7272
* @return a {@link PauseUsersPlaybackRequest} object to build and execute the request
7373
*/
7474
public PauseUsersPlaybackRequest pauseUsersPlayback() {
@@ -77,7 +77,7 @@ public PauseUsersPlaybackRequest pauseUsersPlayback() {
7777

7878
/**
7979
* <h4>Seek To Position</h4>
80-
* <p>Seeks to the given position in the user’s currently playing track.</p>
80+
* <p>Seeks to the given position in the user’s currently playing track. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.</p>
8181
* @param positionMs <p>The position in milliseconds to seek to. Must be a positive number. Passing in a position that is greater than the length of the track will cause the player to start playing the next song.</p>
8282
* @return a {@link SeekToPositionInCurrentlyPlayingTrackRequest} object to build and execute the request
8383
*/
@@ -87,7 +87,7 @@ public SeekToPositionInCurrentlyPlayingTrackRequest seekToPositionInCurrentlyPla
8787

8888
/**
8989
* <h4>Set Repeat Mode</h4>
90-
* <p>Set the repeat mode for the user's playback. Options are repeat-track, repeat-context, and off.</p>
90+
* <p>Set the repeat mode for the user's playback. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.</p>
9191
* @param state <p><strong>track</strong>, <strong>context</strong> or <strong>off</strong>.<br/><strong>track</strong> will repeat the current track.<br/><strong>context</strong> will repeat the current context.<br/><strong>off</strong> will turn repeat off.</p>
9292
* @return a {@link SetRepeatModeOnUsersPlaybackRequest} object to build and execute the request
9393
*/
@@ -97,7 +97,7 @@ public SetRepeatModeOnUsersPlaybackRequest setRepeatModeOnUsersPlayback(String s
9797

9898
/**
9999
* <h4>Set Playback Volume</h4>
100-
* <p>Set the volume for the user’s current playback device.</p>
100+
* <p>Set the volume for the user’s current playback device. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.</p>
101101
* @param volumePercent <p>The volume to set. Must be a value from 0 to 100 inclusive.</p>
102102
* @return a {@link SetVolumeForUsersPlaybackRequest} object to build and execute the request
103103
*/
@@ -107,7 +107,7 @@ public SetVolumeForUsersPlaybackRequest setVolumeForUsersPlayback(int volumePerc
107107

108108
/**
109109
* <h4>Skip To Next</h4>
110-
* <p>Skips to next track in the user’s queue.</p>
110+
* <p>Skips to next track in the user’s queue. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.</p>
111111
* @return a {@link SkipUsersPlaybackToNextTrackRequest} object to build and execute the request
112112
*/
113113
public SkipUsersPlaybackToNextTrackRequest skipUsersPlaybackToNextTrack() {
@@ -116,7 +116,7 @@ public SkipUsersPlaybackToNextTrackRequest skipUsersPlaybackToNextTrack() {
116116

117117
/**
118118
* <h4>Skip To Previous</h4>
119-
* <p>Skips to previous track in the user’s queue.</p>
119+
* <p>Skips to previous track in the user’s queue. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.</p>
120120
* @return a {@link SkipUsersPlaybackToPreviousTrackRequest} object to build and execute the request
121121
*/
122122
public SkipUsersPlaybackToPreviousTrackRequest skipUsersPlaybackToPreviousTrack() {
@@ -125,7 +125,7 @@ public SkipUsersPlaybackToPreviousTrackRequest skipUsersPlaybackToPreviousTrack(
125125

126126
/**
127127
* <h4>Start/Resume Playback</h4>
128-
* <p>Start a new context or resume current playback on the user's active device.</p>
128+
* <p>Start a new context or resume current playback on the user's active device. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.</p>
129129
* @return a {@link StartUsersPlaybackRequest} object to build and execute the request
130130
*/
131131
public StartUsersPlaybackRequest startUsersPlayback() {
@@ -134,7 +134,7 @@ public StartUsersPlaybackRequest startUsersPlayback() {
134134

135135
/**
136136
* <h4>Toggle Playback Shuffle</h4>
137-
* <p>Toggle shuffle on or off for user’s playback.</p>
137+
* <p>Toggle shuffle on or off for user’s playback. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.</p>
138138
* @param state <p><strong>true</strong> : Shuffle user's playback.<br/><strong>false</strong> : Do not shuffle user's playback.</p>
139139
* @return a {@link ToggleShuffleForUsersPlaybackRequest} object to build and execute the request
140140
*/
@@ -144,7 +144,7 @@ public ToggleShuffleForUsersPlaybackRequest toggleShuffleForUsersPlayback(boolea
144144

145145
/**
146146
* <h4>Transfer Playback</h4>
147-
* <p>Transfer playback to a new device and determine if it should start playing.</p>
147+
* <p>Transfer playback to a new device and optionally begin playback. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.</p>
148148
* @param deviceIds <p>A JSON array containing the ID of the device on which playback should be started/transferred.<br/>For example:<code>{device_ids:[&quot;74ASZWbe4lXaubB36ztrGX&quot;]}</code><br/><em><strong>Note</strong>: Although an array is accepted, only a single device_id is currently supported. Supplying more than one will return <code>400 Bad Request</code></em></p>
149149
* @return a {@link TransferUsersPlaybackRequest} object to build and execute the request
150150
*/

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/apis/PlaylistsApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public ChangePlaylistDetailsRequest changePlaylistDetails(String playlistId) {
3434

3535
/**
3636
* <h4>Create Playlist</h4>
37-
* <p>Create a playlist for a Spotify user. (The playlist will be empty until you <a href="https://developer.spotify.com/documentation/web-api/reference/add-tracks-to-playlist">add tracks</a>.)</p>
37+
* <p>Create a playlist for a Spotify user. (The playlist will be empty until you <a href="https://developer.spotify.com/documentation/web-api/reference/add-tracks-to-playlist">add tracks</a>.) Each user is generally limited to a maximum of 11000 playlists.</p>
3838
* @param userId <p>The user's <a href="https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids">Spotify user ID</a>.</p>
3939
* @param name <p>The name for the new playlist, for example <code>&quot;Your Coolest Playlist&quot;</code>. This name does not need to be unique; a user may have several playlists with the same name.</p>
4040
* @return a {@link CreatePlaylistRequest} object to build and execute the request

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/apis/SearchApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class SearchApi {
1313

1414
/**
1515
* <h4>Search for Item</h4>
16-
* <p>Get Spotify catalog information about albums, artists, playlists, tracks, shows, episodes or audiobooks that match a keyword string.<br><strong>Note: Audiobooks are only available for the US, UK, Ireland, New Zealand and Australia markets.</strong></p>
16+
* <p>Get Spotify catalog information about albums, artists, playlists, tracks, shows, episodes or audiobooks that match a keyword string. Audiobooks are only available within the US, UK, Canada, Ireland, New Zealand and Australia markets.</p>
1717
* @param q <p>Your search query.</p><p>You can narrow down your search using field filters. The available filters are <code>album</code>, <code>artist</code>, <code>track</code>, <code>year</code>, <code>upc</code>, <code>tag:hipster</code>, <code>tag:new</code>, <code>isrc</code>, and <code>genre</code>. Each field filter only applies to certain result types.</p><p>The <code>artist</code> and <code>year</code> filters can be used while searching albums, artists and tracks. You can filter on a single <code>year</code> or a range (e.g. 1955-1960).<br>The <code>album</code> filter can be used while searching albums and tracks.<br>The <code>genre</code> filter can be used while searching artists and tracks.<br>The <code>isrc</code> and <code>track</code> filters can be used while searching tracks.<br>The <code>upc</code>, <code>tag:new</code> and <code>tag:hipster</code> filters can only be used while searching albums. The <code>tag:new</code> filter will return albums released in the past two weeks and <code>tag:hipster</code> can be used to return only albums with the lowest 10% popularity.<br></p>
1818
* @param type <p>A comma-separated list of item types to search across. Search results include hits from all the specified item types. For example: <code>q=abacab&amp;type=album,track</code> returns both albums and tracks matching &quot;abacab&quot;.</p>
1919
* @return a {@link SearchRequest} object to build and execute the request

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/apis/player/GetQueueRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* <h2>Get the User's Queue request</h2>
1111
*
1212
* <h3>Required OAuth scopes</h3>
13-
* <code>user-read-playback-state</code>
13+
* <code>user-read-currently-playing, user-read-playback-state</code>
1414
*
1515
* <h3>Response</h3>
1616
* <p>Information about the queue</p>

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/apis/player/GetUsersAvailableDevicesRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* <p>A set of devices</p>
1717
*/
1818
public class GetUsersAvailableDevicesRequest {
19-
private static final TypeReference<Devices> RESPONSE_TYPE = new TypeReference<>() {};
19+
private static final TypeReference<ManyDevices> RESPONSE_TYPE = new TypeReference<>() {};
2020
private final ApiClient apiClient;
2121
private final Request request;
2222

@@ -34,7 +34,7 @@ public GetUsersAvailableDevicesRequest(ApiClient apiClient) {
3434
* Build the request into an executable api call
3535
* @return an executable api call
3636
*/
37-
public ApiCall<Devices> build() {
37+
public ApiCall<ManyDevices> build() {
3838
return apiClient.createApiCall(request, RESPONSE_TYPE);
3939
}
4040
}

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/models/CurrentlyPlaying.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
@Setter
1010
@NoArgsConstructor
1111
public class CurrentlyPlaying {
12+
/**
13+
* <p>Allows to update the user interface based on which playback actions are available within the current context.</p>
14+
*/
15+
public Disallows actions;
1216
/**
1317
* <p>A Context Object. Can be <code>null</code>.</p>
1418
*/

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/models/Device.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@NoArgsConstructor
1111
public class Device {
1212
/**
13-
* <p>The device ID.</p>
13+
* <p>The device ID. This ID is unique and persistent to some extent. However, this is not guaranteed and any cached <code>device_id</code> should periodically be cleared out and refetched as necessary.</p>
1414
*/
1515
public String id;
1616
/**

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/models/Devices.java renamed to spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/models/ManyDevices.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
import lombok.*;
44

55
/**
6-
* DevicesObject
6+
* ManyDevices
77
*/
88
@Getter
99
@Setter
1010
@NoArgsConstructor
11-
public class Devices {
12-
/**
13-
* <p>A list of 0..n Device objects</p>
14-
*/
11+
public class ManyDevices {
1512
public java.util.List<Device> devices;
1613
}

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/models/PlayerError.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)