spotted 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/spotted/internal/type/base_model.rb +1 -0
- data/lib/spotted/models/album_bulk_retrieve_response.rb +26 -2
- data/lib/spotted/models/album_restriction_object.rb +13 -1
- data/lib/spotted/models/album_retrieve_response.rb +26 -2
- data/lib/spotted/models/artist_list_albums_response.rb +13 -1
- data/lib/spotted/models/artist_object.rb +13 -1
- data/lib/spotted/models/audio_analysis_retrieve_response.rb +39 -3
- data/lib/spotted/models/audio_feature_bulk_retrieve_response.rb +13 -1
- data/lib/spotted/models/audio_feature_retrieve_response.rb +13 -1
- data/lib/spotted/models/audiobook_base.rb +13 -1
- data/lib/spotted/models/audiobook_bulk_retrieve_response.rb +13 -1
- data/lib/spotted/models/audiobook_retrieve_response.rb +13 -1
- data/lib/spotted/models/author_object.rb +13 -1
- data/lib/spotted/models/browse/category_get_playlists_response.rb +13 -1
- data/lib/spotted/models/browse/category_list_response.rb +26 -2
- data/lib/spotted/models/browse/category_retrieve_response.rb +13 -1
- data/lib/spotted/models/browse_get_featured_playlists_response.rb +13 -1
- data/lib/spotted/models/browse_get_new_releases_response.rb +26 -2
- data/lib/spotted/models/chapter_bulk_retrieve_response.rb +13 -1
- data/lib/spotted/models/chapter_restriction_object.rb +13 -1
- data/lib/spotted/models/chapter_retrieve_response.rb +13 -1
- data/lib/spotted/models/copyright_object.rb +13 -1
- data/lib/spotted/models/episode_object.rb +13 -1
- data/lib/spotted/models/episode_restriction_object.rb +13 -1
- data/lib/spotted/models/external_id_object.rb +13 -1
- data/lib/spotted/models/external_url_object.rb +13 -1
- data/lib/spotted/models/followers_object.rb +13 -1
- data/lib/spotted/models/image_object.rb +13 -1
- data/lib/spotted/models/linked_track_object.rb +13 -1
- data/lib/spotted/models/me/album_list_response.rb +39 -3
- data/lib/spotted/models/me/album_remove_params.rb +13 -1
- data/lib/spotted/models/me/album_save_params.rb +13 -1
- data/lib/spotted/models/me/audiobook_list_response.rb +26 -2
- data/lib/spotted/models/me/context_object.rb +13 -1
- data/lib/spotted/models/me/device_object.rb +13 -1
- data/lib/spotted/models/me/episode_list_response.rb +13 -1
- data/lib/spotted/models/me/episode_remove_params.rb +13 -1
- data/lib/spotted/models/me/episode_save_params.rb +13 -1
- data/lib/spotted/models/me/following_bulk_retrieve_response.rb +30 -2
- data/lib/spotted/models/me/following_follow_params.rb +13 -1
- data/lib/spotted/models/me/following_unfollow_params.rb +13 -1
- data/lib/spotted/models/me/player/queue_get_response.rb +16 -1
- data/lib/spotted/models/me/player_get_currently_playing_response.rb +30 -2
- data/lib/spotted/models/me/player_get_state_response.rb +29 -2
- data/lib/spotted/models/me/player_list_recently_played_response.rb +16 -1
- data/lib/spotted/models/me/player_start_playback_params.rb +13 -1
- data/lib/spotted/models/me/player_transfer_params.rb +13 -1
- data/lib/spotted/models/me/show_list_response.rb +13 -1
- data/lib/spotted/models/me/show_remove_params.rb +13 -1
- data/lib/spotted/models/me/show_save_params.rb +13 -1
- data/lib/spotted/models/me/track_list_response.rb +13 -1
- data/lib/spotted/models/me/track_remove_params.rb +13 -1
- data/lib/spotted/models/me/track_save_params.rb +13 -1
- data/lib/spotted/models/me_retrieve_response.rb +26 -2
- data/lib/spotted/models/narrator_object.rb +13 -1
- data/lib/spotted/models/paging_playlist_object.rb +13 -1
- data/lib/spotted/models/playlist_retrieve_response.rb +18 -5
- data/lib/spotted/models/playlist_track_object.rb +13 -1
- data/lib/spotted/models/playlist_tracks_ref_object.rb +13 -1
- data/lib/spotted/models/playlist_update_params.rb +13 -1
- data/lib/spotted/models/playlist_user_object.rb +13 -1
- data/lib/spotted/models/playlists/follower_follow_params.rb +13 -1
- data/lib/spotted/models/playlists/track_add_params.rb +13 -1
- data/lib/spotted/models/playlists/track_remove_params.rb +13 -1
- data/lib/spotted/models/playlists/track_update_params.rb +13 -1
- data/lib/spotted/models/recommendation_get_response.rb +26 -2
- data/lib/spotted/models/resume_point_object.rb +13 -1
- data/lib/spotted/models/search_query_response.rb +91 -7
- data/lib/spotted/models/show_base.rb +13 -1
- data/lib/spotted/models/show_retrieve_response.rb +13 -1
- data/lib/spotted/models/simplified_artist_object.rb +13 -1
- data/lib/spotted/models/simplified_chapter_object.rb +13 -1
- data/lib/spotted/models/simplified_episode_object.rb +13 -1
- data/lib/spotted/models/simplified_playlist_object.rb +5 -4
- data/lib/spotted/models/simplified_track_object.rb +13 -1
- data/lib/spotted/models/time_interval_object.rb +16 -1
- data/lib/spotted/models/track_object.rb +26 -2
- data/lib/spotted/models/track_restriction_object.rb +13 -1
- data/lib/spotted/models/user_retrieve_profile_response.rb +13 -1
- data/lib/spotted/models/users/playlist_create_params.rb +13 -1
- data/lib/spotted/models/users/playlist_create_response.rb +18 -5
- data/lib/spotted/resources/me/albums.rb +6 -2
- data/lib/spotted/resources/me/episodes.rb +6 -2
- data/lib/spotted/resources/me/following.rb +6 -2
- data/lib/spotted/resources/me/player.rb +6 -2
- data/lib/spotted/resources/me/shows.rb +6 -2
- data/lib/spotted/resources/me/tracks.rb +6 -2
- data/lib/spotted/resources/playlists/followers.rb +3 -1
- data/lib/spotted/resources/playlists/tracks.rb +9 -3
- data/lib/spotted/resources/playlists.rb +3 -1
- data/lib/spotted/resources/users/playlists.rb +3 -1
- data/lib/spotted/version.rb +1 -1
- data/rbi/spotted/models/album_bulk_retrieve_response.rbi +41 -3
- data/rbi/spotted/models/album_restriction_object.rbi +22 -1
- data/rbi/spotted/models/album_retrieve_response.rbi +41 -3
- data/rbi/spotted/models/artist_list_albums_response.rbi +19 -0
- data/rbi/spotted/models/artist_object.rbi +19 -0
- data/rbi/spotted/models/audio_analysis_retrieve_response.rbi +57 -0
- data/rbi/spotted/models/audio_feature_bulk_retrieve_response.rbi +19 -0
- data/rbi/spotted/models/audio_feature_retrieve_response.rbi +19 -0
- data/rbi/spotted/models/audiobook_base.rbi +20 -1
- data/rbi/spotted/models/audiobook_bulk_retrieve_response.rbi +22 -3
- data/rbi/spotted/models/audiobook_retrieve_response.rbi +22 -3
- data/rbi/spotted/models/author_object.rbi +22 -3
- data/rbi/spotted/models/browse/category_get_playlists_response.rbi +25 -3
- data/rbi/spotted/models/browse/category_list_response.rbi +44 -6
- data/rbi/spotted/models/browse/category_retrieve_response.rbi +22 -3
- data/rbi/spotted/models/browse_get_featured_playlists_response.rbi +25 -3
- data/rbi/spotted/models/browse_get_new_releases_response.rbi +41 -3
- data/rbi/spotted/models/chapter_bulk_retrieve_response.rbi +19 -0
- data/rbi/spotted/models/chapter_restriction_object.rbi +21 -2
- data/rbi/spotted/models/chapter_retrieve_response.rbi +19 -0
- data/rbi/spotted/models/copyright_object.rbi +25 -2
- data/rbi/spotted/models/episode_object.rbi +19 -0
- data/rbi/spotted/models/episode_restriction_object.rbi +21 -2
- data/rbi/spotted/models/external_id_object.rbi +28 -2
- data/rbi/spotted/models/external_url_object.rbi +21 -2
- data/rbi/spotted/models/followers_object.rbi +27 -4
- data/rbi/spotted/models/image_object.rbi +26 -3
- data/rbi/spotted/models/linked_track_object.rbi +19 -0
- data/rbi/spotted/models/me/album_list_response.rbi +63 -6
- data/rbi/spotted/models/me/album_remove_params.rbi +23 -1
- data/rbi/spotted/models/me/album_save_params.rbi +23 -1
- data/rbi/spotted/models/me/audiobook_list_response.rbi +44 -6
- data/rbi/spotted/models/me/context_object.rbi +19 -0
- data/rbi/spotted/models/me/device_object.rbi +19 -0
- data/rbi/spotted/models/me/episode_list_response.rbi +27 -3
- data/rbi/spotted/models/me/episode_remove_params.rbi +23 -1
- data/rbi/spotted/models/me/episode_save_params.rbi +23 -1
- data/rbi/spotted/models/me/following_bulk_retrieve_response.rbi +47 -3
- data/rbi/spotted/models/me/following_follow_params.rbi +23 -1
- data/rbi/spotted/models/me/following_unfollow_params.rbi +23 -1
- data/rbi/spotted/models/me/player/queue_get_response.rbi +19 -0
- data/rbi/spotted/models/me/player_get_currently_playing_response.rbi +38 -0
- data/rbi/spotted/models/me/player_get_state_response.rbi +38 -0
- data/rbi/spotted/models/me/player_list_recently_played_response.rbi +19 -0
- data/rbi/spotted/models/me/player_start_playback_params.rbi +19 -0
- data/rbi/spotted/models/me/player_transfer_params.rbi +19 -0
- data/rbi/spotted/models/me/show_list_response.rbi +27 -4
- data/rbi/spotted/models/me/show_remove_params.rbi +23 -1
- data/rbi/spotted/models/me/show_save_params.rbi +23 -1
- data/rbi/spotted/models/me/track_list_response.rbi +29 -4
- data/rbi/spotted/models/me/track_remove_params.rbi +23 -1
- data/rbi/spotted/models/me/track_save_params.rbi +19 -0
- data/rbi/spotted/models/me_retrieve_response.rbi +47 -5
- data/rbi/spotted/models/narrator_object.rbi +22 -3
- data/rbi/spotted/models/paging_playlist_object.rbi +22 -3
- data/rbi/spotted/models/playlist_retrieve_response.rbi +30 -9
- data/rbi/spotted/models/playlist_track_object.rbi +19 -0
- data/rbi/spotted/models/playlist_tracks_ref_object.rbi +27 -2
- data/rbi/spotted/models/playlist_update_params.rbi +19 -0
- data/rbi/spotted/models/playlist_user_object.rbi +19 -0
- data/rbi/spotted/models/playlists/follower_follow_params.rbi +23 -1
- data/rbi/spotted/models/playlists/track_add_params.rbi +19 -0
- data/rbi/spotted/models/playlists/track_remove_params.rbi +19 -0
- data/rbi/spotted/models/playlists/track_update_params.rbi +19 -0
- data/rbi/spotted/models/recommendation_get_response.rbi +41 -3
- data/rbi/spotted/models/resume_point_object.rbi +27 -4
- data/rbi/spotted/models/search_query_response.rbi +151 -18
- data/rbi/spotted/models/show_base.rbi +20 -1
- data/rbi/spotted/models/show_retrieve_response.rbi +22 -3
- data/rbi/spotted/models/simplified_artist_object.rbi +19 -0
- data/rbi/spotted/models/simplified_chapter_object.rbi +19 -0
- data/rbi/spotted/models/simplified_episode_object.rbi +19 -0
- data/rbi/spotted/models/simplified_playlist_object.rbi +8 -6
- data/rbi/spotted/models/simplified_track_object.rbi +19 -0
- data/rbi/spotted/models/time_interval_object.rbi +31 -4
- data/rbi/spotted/models/track_object.rbi +38 -0
- data/rbi/spotted/models/track_restriction_object.rbi +21 -2
- data/rbi/spotted/models/user_retrieve_profile_response.rbi +19 -0
- data/rbi/spotted/models/users/playlist_create_params.rbi +19 -0
- data/rbi/spotted/models/users/playlist_create_response.rbi +30 -9
- data/rbi/spotted/resources/me/albums.rbi +14 -0
- data/rbi/spotted/resources/me/episodes.rbi +14 -0
- data/rbi/spotted/resources/me/following.rbi +14 -0
- data/rbi/spotted/resources/me/player.rbi +14 -0
- data/rbi/spotted/resources/me/shows.rbi +14 -0
- data/rbi/spotted/resources/me/tracks.rbi +14 -0
- data/rbi/spotted/resources/playlists/followers.rbi +7 -0
- data/rbi/spotted/resources/playlists/tracks.rbi +21 -0
- data/rbi/spotted/resources/playlists.rbi +7 -0
- data/rbi/spotted/resources/users/playlists.rbi +7 -0
- data/sig/spotted/models/album_bulk_retrieve_response.rbs +17 -3
- data/sig/spotted/models/album_restriction_object.rbs +10 -1
- data/sig/spotted/models/album_retrieve_response.rbs +17 -3
- data/sig/spotted/models/artist_list_albums_response.rbs +7 -0
- data/sig/spotted/models/artist_object.rbs +7 -0
- data/sig/spotted/models/audio_analysis_retrieve_response.rbs +21 -0
- data/sig/spotted/models/audio_feature_bulk_retrieve_response.rbs +7 -0
- data/sig/spotted/models/audio_feature_retrieve_response.rbs +7 -0
- data/sig/spotted/models/audiobook_base.rbs +9 -2
- data/sig/spotted/models/audiobook_bulk_retrieve_response.rbs +10 -3
- data/sig/spotted/models/audiobook_retrieve_response.rbs +10 -3
- data/sig/spotted/models/author_object.rbs +7 -3
- data/sig/spotted/models/browse/category_get_playlists_response.rbs +13 -3
- data/sig/spotted/models/browse/category_list_response.rbs +20 -6
- data/sig/spotted/models/browse/category_retrieve_response.rbs +10 -3
- data/sig/spotted/models/browse_get_featured_playlists_response.rbs +13 -3
- data/sig/spotted/models/browse_get_new_releases_response.rbs +17 -3
- data/sig/spotted/models/chapter_bulk_retrieve_response.rbs +7 -0
- data/sig/spotted/models/chapter_restriction_object.rbs +7 -3
- data/sig/spotted/models/chapter_retrieve_response.rbs +7 -0
- data/sig/spotted/models/copyright_object.rbs +7 -3
- data/sig/spotted/models/episode_object.rbs +7 -0
- data/sig/spotted/models/episode_restriction_object.rbs +7 -3
- data/sig/spotted/models/external_id_object.rbs +19 -4
- data/sig/spotted/models/external_url_object.rbs +7 -3
- data/sig/spotted/models/followers_object.rbs +11 -3
- data/sig/spotted/models/image_object.rbs +18 -3
- data/sig/spotted/models/linked_track_object.rbs +7 -0
- data/sig/spotted/models/me/album_list_response.rbs +30 -6
- data/sig/spotted/models/me/album_remove_params.rbs +8 -1
- data/sig/spotted/models/me/album_save_params.rbs +8 -1
- data/sig/spotted/models/me/audiobook_list_response.rbs +20 -6
- data/sig/spotted/models/me/context_object.rbs +7 -0
- data/sig/spotted/models/me/device_object.rbs +7 -0
- data/sig/spotted/models/me/episode_list_response.rbs +12 -3
- data/sig/spotted/models/me/episode_remove_params.rbs +8 -1
- data/sig/spotted/models/me/episode_save_params.rbs +8 -1
- data/sig/spotted/models/me/following_bulk_retrieve_response.rbs +18 -3
- data/sig/spotted/models/me/following_follow_params.rbs +8 -1
- data/sig/spotted/models/me/following_unfollow_params.rbs +8 -1
- data/sig/spotted/models/me/player/queue_get_response.rbs +7 -0
- data/sig/spotted/models/me/player_get_currently_playing_response.rbs +14 -0
- data/sig/spotted/models/me/player_get_state_response.rbs +14 -0
- data/sig/spotted/models/me/player_list_recently_played_response.rbs +7 -0
- data/sig/spotted/models/me/player_start_playback_params.rbs +7 -0
- data/sig/spotted/models/me/player_transfer_params.rbs +7 -1
- data/sig/spotted/models/me/show_list_response.rbs +16 -3
- data/sig/spotted/models/me/show_remove_params.rbs +8 -1
- data/sig/spotted/models/me/show_save_params.rbs +8 -1
- data/sig/spotted/models/me/track_list_response.rbs +16 -3
- data/sig/spotted/models/me/track_remove_params.rbs +8 -1
- data/sig/spotted/models/me/track_save_params.rbs +7 -0
- data/sig/spotted/models/me_retrieve_response.rbs +23 -3
- data/sig/spotted/models/narrator_object.rbs +7 -3
- data/sig/spotted/models/paging_playlist_object.rbs +10 -3
- data/sig/spotted/models/playlist_retrieve_response.rbs +10 -3
- data/sig/spotted/models/playlist_track_object.rbs +7 -0
- data/sig/spotted/models/playlist_tracks_ref_object.rbs +8 -3
- data/sig/spotted/models/playlist_update_params.rbs +13 -1
- data/sig/spotted/models/playlist_user_object.rbs +7 -0
- data/sig/spotted/models/playlists/follower_follow_params.rbs +8 -1
- data/sig/spotted/models/playlists/track_add_params.rbs +7 -1
- data/sig/spotted/models/playlists/track_remove_params.rbs +7 -0
- data/sig/spotted/models/playlists/track_update_params.rbs +7 -0
- data/sig/spotted/models/recommendation_get_response.rbs +17 -3
- data/sig/spotted/models/resume_point_object.rbs +11 -2
- data/sig/spotted/models/search_query_response.rbs +67 -18
- data/sig/spotted/models/show_base.rbs +9 -2
- data/sig/spotted/models/show_retrieve_response.rbs +10 -3
- data/sig/spotted/models/simplified_artist_object.rbs +7 -0
- data/sig/spotted/models/simplified_chapter_object.rbs +7 -0
- data/sig/spotted/models/simplified_episode_object.rbs +7 -0
- data/sig/spotted/models/simplified_track_object.rbs +7 -0
- data/sig/spotted/models/time_interval_object.rbs +12 -2
- data/sig/spotted/models/track_object.rbs +14 -0
- data/sig/spotted/models/track_restriction_object.rbs +7 -3
- data/sig/spotted/models/user_retrieve_profile_response.rbs +7 -0
- data/sig/spotted/models/users/playlist_create_params.rbs +13 -1
- data/sig/spotted/models/users/playlist_create_response.rbs +10 -3
- data/sig/spotted/resources/me/albums.rbs +2 -0
- data/sig/spotted/resources/me/episodes.rbs +2 -0
- data/sig/spotted/resources/me/following.rbs +2 -0
- data/sig/spotted/resources/me/player.rbs +2 -0
- data/sig/spotted/resources/me/shows.rbs +2 -0
- data/sig/spotted/resources/me/tracks.rbs +2 -0
- data/sig/spotted/resources/playlists/followers.rbs +1 -0
- data/sig/spotted/resources/playlists/tracks.rbs +3 -0
- data/sig/spotted/resources/playlists.rbs +1 -0
- data/sig/spotted/resources/users/playlists.rbs +1 -0
- metadata +2 -2
|
@@ -18,12 +18,24 @@ module Spotted
|
|
|
18
18
|
# @return [Array<String>, nil]
|
|
19
19
|
optional :ids, Spotted::Internal::Type::ArrayOf[String]
|
|
20
20
|
|
|
21
|
-
# @!
|
|
21
|
+
# @!attribute published
|
|
22
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
23
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
24
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
25
|
+
# public/private status, see
|
|
26
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
27
|
+
#
|
|
28
|
+
# @return [Boolean, nil]
|
|
29
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
30
|
+
|
|
31
|
+
# @!method initialize(ids: nil, published: nil, request_options: {})
|
|
22
32
|
# Some parameter documentations has been truncated, see
|
|
23
33
|
# {Spotted::Models::Me::ShowRemoveParams} for more details.
|
|
24
34
|
#
|
|
25
35
|
# @param ids [Array<String>] A JSON array of the [Spotify IDs](https://developer.spotify.com/documentation/we
|
|
26
36
|
#
|
|
37
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
38
|
+
#
|
|
27
39
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
28
40
|
end
|
|
29
41
|
end
|
|
@@ -18,12 +18,24 @@ module Spotted
|
|
|
18
18
|
# @return [Array<String>, nil]
|
|
19
19
|
optional :ids, Spotted::Internal::Type::ArrayOf[String]
|
|
20
20
|
|
|
21
|
-
# @!
|
|
21
|
+
# @!attribute published
|
|
22
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
23
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
24
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
25
|
+
# public/private status, see
|
|
26
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
27
|
+
#
|
|
28
|
+
# @return [Boolean, nil]
|
|
29
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
30
|
+
|
|
31
|
+
# @!method initialize(ids: nil, published: nil, request_options: {})
|
|
22
32
|
# Some parameter documentations has been truncated, see
|
|
23
33
|
# {Spotted::Models::Me::ShowSaveParams} for more details.
|
|
24
34
|
#
|
|
25
35
|
# @param ids [Array<String>] A JSON array of the [Spotify IDs](https://developer.spotify.com/documentation/we
|
|
26
36
|
#
|
|
37
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
38
|
+
#
|
|
27
39
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
28
40
|
end
|
|
29
41
|
end
|
|
@@ -15,18 +15,30 @@ module Spotted
|
|
|
15
15
|
# @return [Time, nil]
|
|
16
16
|
optional :added_at, Time
|
|
17
17
|
|
|
18
|
+
# @!attribute published
|
|
19
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
20
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
21
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
22
|
+
# public/private status, see
|
|
23
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
24
|
+
#
|
|
25
|
+
# @return [Boolean, nil]
|
|
26
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
27
|
+
|
|
18
28
|
# @!attribute track
|
|
19
29
|
# Information about the track.
|
|
20
30
|
#
|
|
21
31
|
# @return [Spotted::Models::TrackObject, nil]
|
|
22
32
|
optional :track, -> { Spotted::TrackObject }
|
|
23
33
|
|
|
24
|
-
# @!method initialize(added_at: nil, track: nil)
|
|
34
|
+
# @!method initialize(added_at: nil, published: nil, track: nil)
|
|
25
35
|
# Some parameter documentations has been truncated, see
|
|
26
36
|
# {Spotted::Models::Me::TrackListResponse} for more details.
|
|
27
37
|
#
|
|
28
38
|
# @param added_at [Time] The date and time the track was saved.
|
|
29
39
|
#
|
|
40
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
41
|
+
#
|
|
30
42
|
# @param track [Spotted::Models::TrackObject] Information about the track.
|
|
31
43
|
end
|
|
32
44
|
end
|
|
@@ -18,12 +18,24 @@ module Spotted
|
|
|
18
18
|
# @return [Array<String>, nil]
|
|
19
19
|
optional :ids, Spotted::Internal::Type::ArrayOf[String]
|
|
20
20
|
|
|
21
|
-
# @!
|
|
21
|
+
# @!attribute published
|
|
22
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
23
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
24
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
25
|
+
# public/private status, see
|
|
26
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
27
|
+
#
|
|
28
|
+
# @return [Boolean, nil]
|
|
29
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
30
|
+
|
|
31
|
+
# @!method initialize(ids: nil, published: nil, request_options: {})
|
|
22
32
|
# Some parameter documentations has been truncated, see
|
|
23
33
|
# {Spotted::Models::Me::TrackRemoveParams} for more details.
|
|
24
34
|
#
|
|
25
35
|
# @param ids [Array<String>] A JSON array of the [Spotify IDs](/documentation/web-api/concepts/spotify-uris-i
|
|
26
36
|
#
|
|
37
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
38
|
+
#
|
|
27
39
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
28
40
|
end
|
|
29
41
|
end
|
|
@@ -19,6 +19,16 @@ module Spotted
|
|
|
19
19
|
# @return [Array<String>]
|
|
20
20
|
required :ids, Spotted::Internal::Type::ArrayOf[String]
|
|
21
21
|
|
|
22
|
+
# @!attribute published
|
|
23
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
24
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
25
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
26
|
+
# public/private status, see
|
|
27
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
28
|
+
#
|
|
29
|
+
# @return [Boolean, nil]
|
|
30
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
31
|
+
|
|
22
32
|
# @!attribute timestamped_ids
|
|
23
33
|
# A JSON array of objects containing track IDs with their corresponding
|
|
24
34
|
# timestamps. Each object must include a track ID and an `added_at` timestamp.
|
|
@@ -32,12 +42,14 @@ module Spotted
|
|
|
32
42
|
optional :timestamped_ids,
|
|
33
43
|
-> { Spotted::Internal::Type::ArrayOf[Spotted::Me::TrackSaveParams::TimestampedID] }
|
|
34
44
|
|
|
35
|
-
# @!method initialize(ids:, timestamped_ids: nil, request_options: {})
|
|
45
|
+
# @!method initialize(ids:, published: nil, timestamped_ids: nil, request_options: {})
|
|
36
46
|
# Some parameter documentations has been truncated, see
|
|
37
47
|
# {Spotted::Models::Me::TrackSaveParams} for more details.
|
|
38
48
|
#
|
|
39
49
|
# @param ids [Array<String>] A JSON array of the [Spotify IDs](/documentation/web-api/concepts/spotify-uris-i
|
|
40
50
|
#
|
|
51
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
52
|
+
#
|
|
41
53
|
# @param timestamped_ids [Array<Spotted::Models::Me::TrackSaveParams::TimestampedID>] A JSON array of objects containing track IDs with their corresponding timestamps
|
|
42
54
|
#
|
|
43
55
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -81,6 +81,16 @@ module Spotted
|
|
|
81
81
|
# @return [String, nil]
|
|
82
82
|
optional :product, String
|
|
83
83
|
|
|
84
|
+
# @!attribute published
|
|
85
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
86
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
87
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
88
|
+
# public/private status, see
|
|
89
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
90
|
+
#
|
|
91
|
+
# @return [Boolean, nil]
|
|
92
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
93
|
+
|
|
84
94
|
# @!attribute type
|
|
85
95
|
# The object type: "user"
|
|
86
96
|
#
|
|
@@ -94,7 +104,7 @@ module Spotted
|
|
|
94
104
|
# @return [String, nil]
|
|
95
105
|
optional :uri, String
|
|
96
106
|
|
|
97
|
-
# @!method initialize(id: nil, country: nil, display_name: nil, email: nil, explicit_content: nil, external_urls: nil, followers: nil, href: nil, images: nil, product: nil, type: nil, uri: nil)
|
|
107
|
+
# @!method initialize(id: nil, country: nil, display_name: nil, email: nil, explicit_content: nil, external_urls: nil, followers: nil, href: nil, images: nil, product: nil, published: nil, type: nil, uri: nil)
|
|
98
108
|
# Some parameter documentations has been truncated, see
|
|
99
109
|
# {Spotted::Models::MeRetrieveResponse} for more details.
|
|
100
110
|
#
|
|
@@ -120,6 +130,8 @@ module Spotted
|
|
|
120
130
|
#
|
|
121
131
|
# @param product [String] The user's Spotify subscription level: "premium", "free", etc. (The subscription
|
|
122
132
|
#
|
|
133
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
134
|
+
#
|
|
123
135
|
# @param type [String] The object type: "user"
|
|
124
136
|
#
|
|
125
137
|
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the user
|
|
@@ -139,7 +151,17 @@ module Spotted
|
|
|
139
151
|
# @return [Boolean, nil]
|
|
140
152
|
optional :filter_locked, Spotted::Internal::Type::Boolean
|
|
141
153
|
|
|
142
|
-
# @!
|
|
154
|
+
# @!attribute published
|
|
155
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
156
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
157
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
158
|
+
# public/private status, see
|
|
159
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
160
|
+
#
|
|
161
|
+
# @return [Boolean, nil]
|
|
162
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
163
|
+
|
|
164
|
+
# @!method initialize(filter_enabled: nil, filter_locked: nil, published: nil)
|
|
143
165
|
# Some parameter documentations has been truncated, see
|
|
144
166
|
# {Spotted::Models::MeRetrieveResponse::ExplicitContent} for more details.
|
|
145
167
|
#
|
|
@@ -151,6 +173,8 @@ module Spotted
|
|
|
151
173
|
# @param filter_enabled [Boolean] When `true`, indicates that explicit content should not be played.
|
|
152
174
|
#
|
|
153
175
|
# @param filter_locked [Boolean] When `true`, indicates that the explicit content setting is locked and can't be
|
|
176
|
+
#
|
|
177
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
154
178
|
end
|
|
155
179
|
end
|
|
156
180
|
end
|
|
@@ -9,11 +9,23 @@ module Spotted
|
|
|
9
9
|
# @return [String, nil]
|
|
10
10
|
optional :name, String
|
|
11
11
|
|
|
12
|
-
# @!
|
|
12
|
+
# @!attribute published
|
|
13
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
14
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
15
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
16
|
+
# public/private status, see
|
|
17
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
18
|
+
#
|
|
19
|
+
# @return [Boolean, nil]
|
|
20
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
21
|
+
|
|
22
|
+
# @!method initialize(name: nil, published: nil)
|
|
13
23
|
# Some parameter documentations has been truncated, see
|
|
14
24
|
# {Spotted::Models::NarratorObject} for more details.
|
|
15
25
|
#
|
|
16
26
|
# @param name [String] The name of the Narrator.
|
|
27
|
+
#
|
|
28
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
17
29
|
end
|
|
18
30
|
end
|
|
19
31
|
end
|
|
@@ -44,7 +44,17 @@ module Spotted
|
|
|
44
44
|
# @return [Array<Spotted::Models::SimplifiedPlaylistObject>, nil]
|
|
45
45
|
optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedPlaylistObject] }
|
|
46
46
|
|
|
47
|
-
# @!
|
|
47
|
+
# @!attribute published
|
|
48
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
49
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
50
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
51
|
+
# public/private status, see
|
|
52
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
53
|
+
#
|
|
54
|
+
# @return [Boolean, nil]
|
|
55
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
56
|
+
|
|
57
|
+
# @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil)
|
|
48
58
|
# Some parameter documentations has been truncated, see
|
|
49
59
|
# {Spotted::Models::PagingPlaylistObject} for more details.
|
|
50
60
|
#
|
|
@@ -61,6 +71,8 @@ module Spotted
|
|
|
61
71
|
# @param total [Integer] The total number of items available to return.
|
|
62
72
|
#
|
|
63
73
|
# @param items [Array<Spotted::Models::SimplifiedPlaylistObject>]
|
|
74
|
+
#
|
|
75
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
64
76
|
end
|
|
65
77
|
end
|
|
66
78
|
end
|
|
@@ -65,9 +65,10 @@ module Spotted
|
|
|
65
65
|
optional :owner, -> { Spotted::Models::PlaylistRetrieveResponse::Owner }
|
|
66
66
|
|
|
67
67
|
# @!attribute published
|
|
68
|
-
# The playlist's public/private status (if it
|
|
69
|
-
# `true` the playlist
|
|
70
|
-
# playlist status is not relevant. For more about
|
|
68
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
69
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
70
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
71
|
+
# public/private status, see
|
|
71
72
|
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
72
73
|
#
|
|
73
74
|
# @return [Boolean, nil]
|
|
@@ -122,7 +123,7 @@ module Spotted
|
|
|
122
123
|
#
|
|
123
124
|
# @param owner [Spotted::Models::PlaylistRetrieveResponse::Owner] The user who owns the playlist
|
|
124
125
|
#
|
|
125
|
-
# @param published [Boolean] The playlist's public/private status (if it
|
|
126
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
126
127
|
#
|
|
127
128
|
# @param snapshot_id [String] The version identifier for the current playlist. Can be supplied in other reques
|
|
128
129
|
#
|
|
@@ -192,7 +193,17 @@ module Spotted
|
|
|
192
193
|
# @return [Array<Spotted::Models::PlaylistTrackObject>, nil]
|
|
193
194
|
optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::PlaylistTrackObject] }
|
|
194
195
|
|
|
195
|
-
# @!
|
|
196
|
+
# @!attribute published
|
|
197
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
198
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
199
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
200
|
+
# public/private status, see
|
|
201
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
202
|
+
#
|
|
203
|
+
# @return [Boolean, nil]
|
|
204
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
205
|
+
|
|
206
|
+
# @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil)
|
|
196
207
|
# Some parameter documentations has been truncated, see
|
|
197
208
|
# {Spotted::Models::PlaylistRetrieveResponse::Tracks} for more details.
|
|
198
209
|
#
|
|
@@ -211,6 +222,8 @@ module Spotted
|
|
|
211
222
|
# @param total [Integer] The total number of items available to return.
|
|
212
223
|
#
|
|
213
224
|
# @param items [Array<Spotted::Models::PlaylistTrackObject>]
|
|
225
|
+
#
|
|
226
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
214
227
|
end
|
|
215
228
|
end
|
|
216
229
|
end
|
|
@@ -24,13 +24,23 @@ module Spotted
|
|
|
24
24
|
# @return [Boolean, nil]
|
|
25
25
|
optional :is_local, Spotted::Internal::Type::Boolean
|
|
26
26
|
|
|
27
|
+
# @!attribute published
|
|
28
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
29
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
30
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
31
|
+
# public/private status, see
|
|
32
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
33
|
+
#
|
|
34
|
+
# @return [Boolean, nil]
|
|
35
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
36
|
+
|
|
27
37
|
# @!attribute track
|
|
28
38
|
# Information about the track or episode.
|
|
29
39
|
#
|
|
30
40
|
# @return [Spotted::Models::TrackObject, Spotted::Models::EpisodeObject, nil]
|
|
31
41
|
optional :track, union: -> { Spotted::PlaylistTrackObject::Track }
|
|
32
42
|
|
|
33
|
-
# @!method initialize(added_at: nil, added_by: nil, is_local: nil, track: nil)
|
|
43
|
+
# @!method initialize(added_at: nil, added_by: nil, is_local: nil, published: nil, track: nil)
|
|
34
44
|
# Some parameter documentations has been truncated, see
|
|
35
45
|
# {Spotted::Models::PlaylistTrackObject} for more details.
|
|
36
46
|
#
|
|
@@ -42,6 +52,8 @@ module Spotted
|
|
|
42
52
|
#
|
|
43
53
|
# @param is_local [Boolean] Whether this track or episode is a [local file](/documentation/web-api/concepts/
|
|
44
54
|
#
|
|
55
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
56
|
+
#
|
|
45
57
|
# @param track [Spotted::Models::TrackObject, Spotted::Models::EpisodeObject] Information about the track or episode.
|
|
46
58
|
|
|
47
59
|
# Information about the track or episode.
|
|
@@ -10,18 +10,30 @@ module Spotted
|
|
|
10
10
|
# @return [String, nil]
|
|
11
11
|
optional :href, String
|
|
12
12
|
|
|
13
|
+
# @!attribute published
|
|
14
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
15
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
16
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
17
|
+
# public/private status, see
|
|
18
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
19
|
+
#
|
|
20
|
+
# @return [Boolean, nil]
|
|
21
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
22
|
+
|
|
13
23
|
# @!attribute total
|
|
14
24
|
# Number of tracks in the playlist.
|
|
15
25
|
#
|
|
16
26
|
# @return [Integer, nil]
|
|
17
27
|
optional :total, Integer
|
|
18
28
|
|
|
19
|
-
# @!method initialize(href: nil, total: nil)
|
|
29
|
+
# @!method initialize(href: nil, published: nil, total: nil)
|
|
20
30
|
# Some parameter documentations has been truncated, see
|
|
21
31
|
# {Spotted::Models::PlaylistTracksRefObject} for more details.
|
|
22
32
|
#
|
|
23
33
|
# @param href [String] A link to the Web API endpoint where full details of the playlist's tracks can b
|
|
24
34
|
#
|
|
35
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
36
|
+
#
|
|
25
37
|
# @param total [Integer] Number of tracks in the playlist.
|
|
26
38
|
end
|
|
27
39
|
end
|
|
@@ -38,7 +38,17 @@ module Spotted
|
|
|
38
38
|
# @return [Boolean, nil]
|
|
39
39
|
optional :public, Spotted::Internal::Type::Boolean
|
|
40
40
|
|
|
41
|
-
# @!
|
|
41
|
+
# @!attribute published
|
|
42
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
43
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
44
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
45
|
+
# public/private status, see
|
|
46
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
47
|
+
#
|
|
48
|
+
# @return [Boolean, nil]
|
|
49
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
50
|
+
|
|
51
|
+
# @!method initialize(collaborative: nil, description: nil, name: nil, public: nil, published: nil, request_options: {})
|
|
42
52
|
# Some parameter documentations has been truncated, see
|
|
43
53
|
# {Spotted::Models::PlaylistUpdateParams} for more details.
|
|
44
54
|
#
|
|
@@ -50,6 +60,8 @@ module Spotted
|
|
|
50
60
|
#
|
|
51
61
|
# @param public [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
52
62
|
#
|
|
63
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
64
|
+
#
|
|
53
65
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
54
66
|
end
|
|
55
67
|
end
|
|
@@ -22,6 +22,16 @@ module Spotted
|
|
|
22
22
|
# @return [String, nil]
|
|
23
23
|
optional :href, String
|
|
24
24
|
|
|
25
|
+
# @!attribute published
|
|
26
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
27
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
28
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
29
|
+
# public/private status, see
|
|
30
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
31
|
+
#
|
|
32
|
+
# @return [Boolean, nil]
|
|
33
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
34
|
+
|
|
25
35
|
# @!attribute type
|
|
26
36
|
# The object type.
|
|
27
37
|
#
|
|
@@ -35,7 +45,7 @@ module Spotted
|
|
|
35
45
|
# @return [String, nil]
|
|
36
46
|
optional :uri, String
|
|
37
47
|
|
|
38
|
-
# @!method initialize(id: nil, external_urls: nil, href: nil, type: nil, uri: nil)
|
|
48
|
+
# @!method initialize(id: nil, external_urls: nil, href: nil, published: nil, type: nil, uri: nil)
|
|
39
49
|
# Some parameter documentations has been truncated, see
|
|
40
50
|
# {Spotted::Models::PlaylistUserObject} for more details.
|
|
41
51
|
#
|
|
@@ -45,6 +55,8 @@ module Spotted
|
|
|
45
55
|
#
|
|
46
56
|
# @param href [String] A link to the Web API endpoint for this user.
|
|
47
57
|
#
|
|
58
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
59
|
+
#
|
|
48
60
|
# @param type [Symbol, Spotted::Models::PlaylistUserObject::Type] The object type.
|
|
49
61
|
#
|
|
50
62
|
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for this use
|
|
@@ -17,12 +17,24 @@ module Spotted
|
|
|
17
17
|
# @return [Boolean, nil]
|
|
18
18
|
optional :public, Spotted::Internal::Type::Boolean
|
|
19
19
|
|
|
20
|
-
# @!
|
|
20
|
+
# @!attribute published
|
|
21
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
22
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
23
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
24
|
+
# public/private status, see
|
|
25
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
26
|
+
#
|
|
27
|
+
# @return [Boolean, nil]
|
|
28
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
29
|
+
|
|
30
|
+
# @!method initialize(public: nil, published: nil, request_options: {})
|
|
21
31
|
# Some parameter documentations has been truncated, see
|
|
22
32
|
# {Spotted::Models::Playlists::FollowerFollowParams} for more details.
|
|
23
33
|
#
|
|
24
34
|
# @param public [Boolean] Defaults to `true`. If `true` the playlist will be included in user's public pla
|
|
25
35
|
#
|
|
36
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
37
|
+
#
|
|
26
38
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
27
39
|
end
|
|
28
40
|
end
|
|
@@ -18,6 +18,16 @@ module Spotted
|
|
|
18
18
|
# @return [Integer, nil]
|
|
19
19
|
optional :position, Integer
|
|
20
20
|
|
|
21
|
+
# @!attribute published
|
|
22
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
23
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
24
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
25
|
+
# public/private status, see
|
|
26
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
27
|
+
#
|
|
28
|
+
# @return [Boolean, nil]
|
|
29
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
30
|
+
|
|
21
31
|
# @!attribute uris
|
|
22
32
|
# A JSON array of the
|
|
23
33
|
# [Spotify URIs](/documentation/web-api/concepts/spotify-uris-ids) to add. For
|
|
@@ -30,12 +40,14 @@ module Spotted
|
|
|
30
40
|
# @return [Array<String>, nil]
|
|
31
41
|
optional :uris, Spotted::Internal::Type::ArrayOf[String]
|
|
32
42
|
|
|
33
|
-
# @!method initialize(position: nil, uris: nil, request_options: {})
|
|
43
|
+
# @!method initialize(position: nil, published: nil, uris: nil, request_options: {})
|
|
34
44
|
# Some parameter documentations has been truncated, see
|
|
35
45
|
# {Spotted::Models::Playlists::TrackAddParams} for more details.
|
|
36
46
|
#
|
|
37
47
|
# @param position [Integer] The position to insert the items, a zero-based index. For example, to insert the
|
|
38
48
|
#
|
|
49
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
50
|
+
#
|
|
39
51
|
# @param uris [Array<String>] A JSON array of the [Spotify URIs](/documentation/web-api/concepts/spotify-uris-
|
|
40
52
|
#
|
|
41
53
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -18,6 +18,16 @@ module Spotted
|
|
|
18
18
|
# @return [Array<Spotted::Models::Playlists::TrackRemoveParams::Track>]
|
|
19
19
|
required :tracks, -> { Spotted::Internal::Type::ArrayOf[Spotted::Playlists::TrackRemoveParams::Track] }
|
|
20
20
|
|
|
21
|
+
# @!attribute published
|
|
22
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
23
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
24
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
25
|
+
# public/private status, see
|
|
26
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
27
|
+
#
|
|
28
|
+
# @return [Boolean, nil]
|
|
29
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
30
|
+
|
|
21
31
|
# @!attribute snapshot_id
|
|
22
32
|
# The playlist's snapshot ID against which you want to make the changes. The API
|
|
23
33
|
# will validate that the specified items exist and in the specified positions and
|
|
@@ -26,12 +36,14 @@ module Spotted
|
|
|
26
36
|
# @return [String, nil]
|
|
27
37
|
optional :snapshot_id, String
|
|
28
38
|
|
|
29
|
-
# @!method initialize(tracks:, snapshot_id: nil, request_options: {})
|
|
39
|
+
# @!method initialize(tracks:, published: nil, snapshot_id: nil, request_options: {})
|
|
30
40
|
# Some parameter documentations has been truncated, see
|
|
31
41
|
# {Spotted::Models::Playlists::TrackRemoveParams} for more details.
|
|
32
42
|
#
|
|
33
43
|
# @param tracks [Array<Spotted::Models::Playlists::TrackRemoveParams::Track>] An array of objects containing [Spotify URIs](/documentation/web-api/concepts/sp
|
|
34
44
|
#
|
|
45
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
46
|
+
#
|
|
35
47
|
# @param snapshot_id [String] The playlist's snapshot ID against which you want to make the changes.
|
|
36
48
|
#
|
|
37
49
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -19,6 +19,16 @@ module Spotted
|
|
|
19
19
|
# @return [Integer, nil]
|
|
20
20
|
optional :insert_before, Integer
|
|
21
21
|
|
|
22
|
+
# @!attribute published
|
|
23
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
24
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
25
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
26
|
+
# public/private status, see
|
|
27
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
28
|
+
#
|
|
29
|
+
# @return [Boolean, nil]
|
|
30
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
31
|
+
|
|
22
32
|
# @!attribute range_length
|
|
23
33
|
# The amount of items to be reordered. Defaults to 1 if not set.<br/>The range of
|
|
24
34
|
# items to be reordered begins from the _range_start_ position, and includes the
|
|
@@ -46,12 +56,14 @@ module Spotted
|
|
|
46
56
|
# @return [Array<String>, nil]
|
|
47
57
|
optional :uris, Spotted::Internal::Type::ArrayOf[String]
|
|
48
58
|
|
|
49
|
-
# @!method initialize(insert_before: nil, range_length: nil, range_start: nil, snapshot_id: nil, uris: nil, request_options: {})
|
|
59
|
+
# @!method initialize(insert_before: nil, published: nil, range_length: nil, range_start: nil, snapshot_id: nil, uris: nil, request_options: {})
|
|
50
60
|
# Some parameter documentations has been truncated, see
|
|
51
61
|
# {Spotted::Models::Playlists::TrackUpdateParams} for more details.
|
|
52
62
|
#
|
|
53
63
|
# @param insert_before [Integer] The position where the items should be inserted.<br/>To reorder the items to the
|
|
54
64
|
#
|
|
65
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
66
|
+
#
|
|
55
67
|
# @param range_length [Integer] The amount of items to be reordered. Defaults to 1 if not set.<br/>The range of
|
|
56
68
|
#
|
|
57
69
|
# @param range_start [Integer] The position of the first item to be reordered.
|
|
@@ -16,13 +16,25 @@ module Spotted
|
|
|
16
16
|
# @return [Array<Spotted::Models::TrackObject>]
|
|
17
17
|
required :tracks, -> { Spotted::Internal::Type::ArrayOf[Spotted::TrackObject] }
|
|
18
18
|
|
|
19
|
-
# @!
|
|
19
|
+
# @!attribute published
|
|
20
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
21
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
22
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
23
|
+
# public/private status, see
|
|
24
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
25
|
+
#
|
|
26
|
+
# @return [Boolean, nil]
|
|
27
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
28
|
+
|
|
29
|
+
# @!method initialize(seeds:, tracks:, published: nil)
|
|
20
30
|
# Some parameter documentations has been truncated, see
|
|
21
31
|
# {Spotted::Models::RecommendationGetResponse} for more details.
|
|
22
32
|
#
|
|
23
33
|
# @param seeds [Array<Spotted::Models::RecommendationGetResponse::Seed>] An array of recommendation seed objects.
|
|
24
34
|
#
|
|
25
35
|
# @param tracks [Array<Spotted::Models::TrackObject>] An array of track objects ordered according to the parameters supplied.
|
|
36
|
+
#
|
|
37
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
26
38
|
|
|
27
39
|
class Seed < Spotted::Internal::Type::BaseModel
|
|
28
40
|
# @!attribute id
|
|
@@ -59,13 +71,23 @@ module Spotted
|
|
|
59
71
|
# @return [Integer, nil]
|
|
60
72
|
optional :initial_pool_size, Integer, api_name: :initialPoolSize
|
|
61
73
|
|
|
74
|
+
# @!attribute published
|
|
75
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
76
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
77
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
78
|
+
# public/private status, see
|
|
79
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
80
|
+
#
|
|
81
|
+
# @return [Boolean, nil]
|
|
82
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
83
|
+
|
|
62
84
|
# @!attribute type
|
|
63
85
|
# The entity type of this seed. One of `artist`, `track` or `genre`.
|
|
64
86
|
#
|
|
65
87
|
# @return [String, nil]
|
|
66
88
|
optional :type, String
|
|
67
89
|
|
|
68
|
-
# @!method initialize(id: nil, after_filtering_size: nil, after_relinking_size: nil, href: nil, initial_pool_size: nil, type: nil)
|
|
90
|
+
# @!method initialize(id: nil, after_filtering_size: nil, after_relinking_size: nil, href: nil, initial_pool_size: nil, published: nil, type: nil)
|
|
69
91
|
# Some parameter documentations has been truncated, see
|
|
70
92
|
# {Spotted::Models::RecommendationGetResponse::Seed} for more details.
|
|
71
93
|
#
|
|
@@ -79,6 +101,8 @@ module Spotted
|
|
|
79
101
|
#
|
|
80
102
|
# @param initial_pool_size [Integer] The number of recommended tracks available for this seed.
|
|
81
103
|
#
|
|
104
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
105
|
+
#
|
|
82
106
|
# @param type [String] The entity type of this seed. One of `artist`, `track` or `genre`.
|
|
83
107
|
end
|
|
84
108
|
end
|