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
|
@@ -9,18 +9,30 @@ module Spotted
|
|
|
9
9
|
# @return [Boolean, nil]
|
|
10
10
|
optional :fully_played, Spotted::Internal::Type::Boolean
|
|
11
11
|
|
|
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
|
+
|
|
12
22
|
# @!attribute resume_position_ms
|
|
13
23
|
# The user's most recent position in the episode in milliseconds.
|
|
14
24
|
#
|
|
15
25
|
# @return [Integer, nil]
|
|
16
26
|
optional :resume_position_ms, Integer
|
|
17
27
|
|
|
18
|
-
# @!method initialize(fully_played: nil, resume_position_ms: nil)
|
|
28
|
+
# @!method initialize(fully_played: nil, published: nil, resume_position_ms: nil)
|
|
19
29
|
# Some parameter documentations has been truncated, see
|
|
20
30
|
# {Spotted::Models::ResumePointObject} for more details.
|
|
21
31
|
#
|
|
22
32
|
# @param fully_played [Boolean] Whether or not the episode has been fully played by the user.
|
|
23
33
|
#
|
|
34
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
35
|
+
#
|
|
24
36
|
# @param resume_position_ms [Integer] The user's most recent position in the episode in milliseconds.
|
|
25
37
|
end
|
|
26
38
|
end
|
|
@@ -92,7 +92,17 @@ module Spotted
|
|
|
92
92
|
optional :items,
|
|
93
93
|
-> { Spotted::Internal::Type::ArrayOf[Spotted::Models::SearchQueryResponse::Albums::Item] }
|
|
94
94
|
|
|
95
|
-
# @!
|
|
95
|
+
# @!attribute published
|
|
96
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
97
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
98
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
99
|
+
# public/private status, see
|
|
100
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
101
|
+
#
|
|
102
|
+
# @return [Boolean, nil]
|
|
103
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
104
|
+
|
|
105
|
+
# @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil)
|
|
96
106
|
# Some parameter documentations has been truncated, see
|
|
97
107
|
# {Spotted::Models::SearchQueryResponse::Albums} for more details.
|
|
98
108
|
#
|
|
@@ -109,6 +119,8 @@ module Spotted
|
|
|
109
119
|
# @param total [Integer] The total number of items available to return.
|
|
110
120
|
#
|
|
111
121
|
# @param items [Array<Spotted::Models::SearchQueryResponse::Albums::Item>]
|
|
122
|
+
#
|
|
123
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
112
124
|
|
|
113
125
|
class Item < Spotted::Internal::Type::BaseModel
|
|
114
126
|
# @!attribute id
|
|
@@ -197,13 +209,23 @@ module Spotted
|
|
|
197
209
|
# @return [String]
|
|
198
210
|
required :uri, String
|
|
199
211
|
|
|
212
|
+
# @!attribute published
|
|
213
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
214
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
215
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
216
|
+
# public/private status, see
|
|
217
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
218
|
+
#
|
|
219
|
+
# @return [Boolean, nil]
|
|
220
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
221
|
+
|
|
200
222
|
# @!attribute restrictions
|
|
201
223
|
# Included in the response when a content restriction is applied.
|
|
202
224
|
#
|
|
203
225
|
# @return [Spotted::Models::AlbumRestrictionObject, nil]
|
|
204
226
|
optional :restrictions, -> { Spotted::AlbumRestrictionObject }
|
|
205
227
|
|
|
206
|
-
# @!method initialize(id:, album_type:, artists:, available_markets:, external_urls:, href:, images:, name:, release_date:, release_date_precision:, total_tracks:, uri:, restrictions: nil, type: :album)
|
|
228
|
+
# @!method initialize(id:, album_type:, artists:, available_markets:, external_urls:, href:, images:, name:, release_date:, release_date_precision:, total_tracks:, uri:, published: nil, restrictions: nil, type: :album)
|
|
207
229
|
# Some parameter documentations has been truncated, see
|
|
208
230
|
# {Spotted::Models::SearchQueryResponse::Albums::Item} for more details.
|
|
209
231
|
#
|
|
@@ -231,6 +253,8 @@ module Spotted
|
|
|
231
253
|
#
|
|
232
254
|
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the albu
|
|
233
255
|
#
|
|
256
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
257
|
+
#
|
|
234
258
|
# @param restrictions [Spotted::Models::AlbumRestrictionObject] Included in the response when a content restriction is applied.
|
|
235
259
|
#
|
|
236
260
|
# @param type [Symbol, :album] The object type.
|
|
@@ -308,7 +332,17 @@ module Spotted
|
|
|
308
332
|
# @return [Array<Spotted::Models::ArtistObject>, nil]
|
|
309
333
|
optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::ArtistObject] }
|
|
310
334
|
|
|
311
|
-
# @!
|
|
335
|
+
# @!attribute published
|
|
336
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
337
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
338
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
339
|
+
# public/private status, see
|
|
340
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
341
|
+
#
|
|
342
|
+
# @return [Boolean, nil]
|
|
343
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
344
|
+
|
|
345
|
+
# @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil)
|
|
312
346
|
# Some parameter documentations has been truncated, see
|
|
313
347
|
# {Spotted::Models::SearchQueryResponse::Artists} for more details.
|
|
314
348
|
#
|
|
@@ -325,6 +359,8 @@ module Spotted
|
|
|
325
359
|
# @param total [Integer] The total number of items available to return.
|
|
326
360
|
#
|
|
327
361
|
# @param items [Array<Spotted::Models::ArtistObject>]
|
|
362
|
+
#
|
|
363
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
328
364
|
end
|
|
329
365
|
|
|
330
366
|
# @see Spotted::Models::SearchQueryResponse#audiobooks
|
|
@@ -370,7 +406,17 @@ module Spotted
|
|
|
370
406
|
# @return [Array<Spotted::Models::AudiobookBase>, nil]
|
|
371
407
|
optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::AudiobookBase] }
|
|
372
408
|
|
|
373
|
-
# @!
|
|
409
|
+
# @!attribute published
|
|
410
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
411
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
412
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
413
|
+
# public/private status, see
|
|
414
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
415
|
+
#
|
|
416
|
+
# @return [Boolean, nil]
|
|
417
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
418
|
+
|
|
419
|
+
# @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil)
|
|
374
420
|
# Some parameter documentations has been truncated, see
|
|
375
421
|
# {Spotted::Models::SearchQueryResponse::Audiobooks} for more details.
|
|
376
422
|
#
|
|
@@ -387,6 +433,8 @@ module Spotted
|
|
|
387
433
|
# @param total [Integer] The total number of items available to return.
|
|
388
434
|
#
|
|
389
435
|
# @param items [Array<Spotted::Models::AudiobookBase>]
|
|
436
|
+
#
|
|
437
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
390
438
|
end
|
|
391
439
|
|
|
392
440
|
# @see Spotted::Models::SearchQueryResponse#episodes
|
|
@@ -432,7 +480,17 @@ module Spotted
|
|
|
432
480
|
# @return [Array<Spotted::Models::SimplifiedEpisodeObject>, nil]
|
|
433
481
|
optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedEpisodeObject] }
|
|
434
482
|
|
|
435
|
-
# @!
|
|
483
|
+
# @!attribute published
|
|
484
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
485
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
486
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
487
|
+
# public/private status, see
|
|
488
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
489
|
+
#
|
|
490
|
+
# @return [Boolean, nil]
|
|
491
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
492
|
+
|
|
493
|
+
# @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil)
|
|
436
494
|
# Some parameter documentations has been truncated, see
|
|
437
495
|
# {Spotted::Models::SearchQueryResponse::Episodes} for more details.
|
|
438
496
|
#
|
|
@@ -449,6 +507,8 @@ module Spotted
|
|
|
449
507
|
# @param total [Integer] The total number of items available to return.
|
|
450
508
|
#
|
|
451
509
|
# @param items [Array<Spotted::Models::SimplifiedEpisodeObject>]
|
|
510
|
+
#
|
|
511
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
452
512
|
end
|
|
453
513
|
|
|
454
514
|
# @see Spotted::Models::SearchQueryResponse#shows
|
|
@@ -494,7 +554,17 @@ module Spotted
|
|
|
494
554
|
# @return [Array<Spotted::Models::ShowBase>, nil]
|
|
495
555
|
optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::ShowBase] }
|
|
496
556
|
|
|
497
|
-
# @!
|
|
557
|
+
# @!attribute published
|
|
558
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
559
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
560
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
561
|
+
# public/private status, see
|
|
562
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
563
|
+
#
|
|
564
|
+
# @return [Boolean, nil]
|
|
565
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
566
|
+
|
|
567
|
+
# @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil)
|
|
498
568
|
# Some parameter documentations has been truncated, see
|
|
499
569
|
# {Spotted::Models::SearchQueryResponse::Shows} for more details.
|
|
500
570
|
#
|
|
@@ -511,6 +581,8 @@ module Spotted
|
|
|
511
581
|
# @param total [Integer] The total number of items available to return.
|
|
512
582
|
#
|
|
513
583
|
# @param items [Array<Spotted::Models::ShowBase>]
|
|
584
|
+
#
|
|
585
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
514
586
|
end
|
|
515
587
|
|
|
516
588
|
# @see Spotted::Models::SearchQueryResponse#tracks
|
|
@@ -556,7 +628,17 @@ module Spotted
|
|
|
556
628
|
# @return [Array<Spotted::Models::TrackObject>, nil]
|
|
557
629
|
optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::TrackObject] }
|
|
558
630
|
|
|
559
|
-
# @!
|
|
631
|
+
# @!attribute published
|
|
632
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
633
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
634
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
635
|
+
# public/private status, see
|
|
636
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
637
|
+
#
|
|
638
|
+
# @return [Boolean, nil]
|
|
639
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
640
|
+
|
|
641
|
+
# @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil)
|
|
560
642
|
# Some parameter documentations has been truncated, see
|
|
561
643
|
# {Spotted::Models::SearchQueryResponse::Tracks} for more details.
|
|
562
644
|
#
|
|
@@ -573,6 +655,8 @@ module Spotted
|
|
|
573
655
|
# @param total [Integer] The total number of items available to return.
|
|
574
656
|
#
|
|
575
657
|
# @param items [Array<Spotted::Models::TrackObject>]
|
|
658
|
+
#
|
|
659
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
576
660
|
end
|
|
577
661
|
end
|
|
578
662
|
end
|
|
@@ -111,7 +111,17 @@ module Spotted
|
|
|
111
111
|
# @return [String]
|
|
112
112
|
required :uri, String
|
|
113
113
|
|
|
114
|
-
# @!
|
|
114
|
+
# @!attribute published
|
|
115
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
116
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
117
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
118
|
+
# public/private status, see
|
|
119
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
120
|
+
#
|
|
121
|
+
# @return [Boolean, nil]
|
|
122
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
123
|
+
|
|
124
|
+
# @!method initialize(id:, available_markets:, copyrights:, description:, explicit:, external_urls:, href:, html_description:, images:, is_externally_hosted:, languages:, media_type:, name:, publisher:, total_episodes:, uri:, published: nil, type: :show)
|
|
115
125
|
# Some parameter documentations has been truncated, see
|
|
116
126
|
# {Spotted::Models::ShowBase} for more details.
|
|
117
127
|
#
|
|
@@ -147,6 +157,8 @@ module Spotted
|
|
|
147
157
|
#
|
|
148
158
|
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the show
|
|
149
159
|
#
|
|
160
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
161
|
+
#
|
|
150
162
|
# @param type [Symbol, :show] The object type.
|
|
151
163
|
end
|
|
152
164
|
end
|
|
@@ -58,7 +58,17 @@ module Spotted
|
|
|
58
58
|
# @return [Array<Spotted::Models::SimplifiedEpisodeObject>, nil]
|
|
59
59
|
optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedEpisodeObject] }
|
|
60
60
|
|
|
61
|
-
# @!
|
|
61
|
+
# @!attribute published
|
|
62
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
63
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
64
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
65
|
+
# public/private status, see
|
|
66
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
67
|
+
#
|
|
68
|
+
# @return [Boolean, nil]
|
|
69
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
70
|
+
|
|
71
|
+
# @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil)
|
|
62
72
|
# Some parameter documentations has been truncated, see
|
|
63
73
|
# {Spotted::Models::ShowRetrieveResponse::Episodes} for more details.
|
|
64
74
|
#
|
|
@@ -77,6 +87,8 @@ module Spotted
|
|
|
77
87
|
# @param total [Integer] The total number of items available to return.
|
|
78
88
|
#
|
|
79
89
|
# @param items [Array<Spotted::Models::SimplifiedEpisodeObject>]
|
|
90
|
+
#
|
|
91
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
80
92
|
end
|
|
81
93
|
end
|
|
82
94
|
end
|
|
@@ -28,6 +28,16 @@ module Spotted
|
|
|
28
28
|
# @return [String, nil]
|
|
29
29
|
optional :name, String
|
|
30
30
|
|
|
31
|
+
# @!attribute published
|
|
32
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
33
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
34
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
35
|
+
# public/private status, see
|
|
36
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
37
|
+
#
|
|
38
|
+
# @return [Boolean, nil]
|
|
39
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
40
|
+
|
|
31
41
|
# @!attribute type
|
|
32
42
|
# The object type.
|
|
33
43
|
#
|
|
@@ -41,7 +51,7 @@ module Spotted
|
|
|
41
51
|
# @return [String, nil]
|
|
42
52
|
optional :uri, String
|
|
43
53
|
|
|
44
|
-
# @!method initialize(id: nil, external_urls: nil, href: nil, name: nil, type: nil, uri: nil)
|
|
54
|
+
# @!method initialize(id: nil, external_urls: nil, href: nil, name: nil, published: nil, type: nil, uri: nil)
|
|
45
55
|
# Some parameter documentations has been truncated, see
|
|
46
56
|
# {Spotted::Models::SimplifiedArtistObject} for more details.
|
|
47
57
|
#
|
|
@@ -53,6 +63,8 @@ module Spotted
|
|
|
53
63
|
#
|
|
54
64
|
# @param name [String] The name of the artist.
|
|
55
65
|
#
|
|
66
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
67
|
+
#
|
|
56
68
|
# @param type [Symbol, Spotted::Models::SimplifiedArtistObject::Type] The object type.
|
|
57
69
|
#
|
|
58
70
|
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the arti
|
|
@@ -122,6 +122,16 @@ module Spotted
|
|
|
122
122
|
# @return [Array<String>, nil]
|
|
123
123
|
optional :available_markets, Spotted::Internal::Type::ArrayOf[String]
|
|
124
124
|
|
|
125
|
+
# @!attribute published
|
|
126
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
127
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
128
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
129
|
+
# public/private status, see
|
|
130
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
131
|
+
#
|
|
132
|
+
# @return [Boolean, nil]
|
|
133
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
134
|
+
|
|
125
135
|
# @!attribute restrictions
|
|
126
136
|
# Included in the response when a content restriction is applied.
|
|
127
137
|
#
|
|
@@ -135,7 +145,7 @@ module Spotted
|
|
|
135
145
|
# @return [Spotted::Models::ResumePointObject, nil]
|
|
136
146
|
optional :resume_point, -> { Spotted::ResumePointObject }
|
|
137
147
|
|
|
138
|
-
# @!method initialize(id:, audio_preview_url:, chapter_number:, description:, duration_ms:, explicit:, external_urls:, href:, html_description:, images:, is_playable:, languages:, name:, release_date:, release_date_precision:, uri:, available_markets: nil, restrictions: nil, resume_point: nil, type: :episode)
|
|
148
|
+
# @!method initialize(id:, audio_preview_url:, chapter_number:, description:, duration_ms:, explicit:, external_urls:, href:, html_description:, images:, is_playable:, languages:, name:, release_date:, release_date_precision:, uri:, available_markets: nil, published: nil, restrictions: nil, resume_point: nil, type: :episode)
|
|
139
149
|
# Some parameter documentations has been truncated, see
|
|
140
150
|
# {Spotted::Models::SimplifiedChapterObject} for more details.
|
|
141
151
|
#
|
|
@@ -173,6 +183,8 @@ module Spotted
|
|
|
173
183
|
#
|
|
174
184
|
# @param available_markets [Array<String>] A list of the countries in which the chapter can be played, identified by their
|
|
175
185
|
#
|
|
186
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
187
|
+
#
|
|
176
188
|
# @param restrictions [Spotted::Models::ChapterRestrictionObject] Included in the response when a content restriction is applied.
|
|
177
189
|
#
|
|
178
190
|
# @param resume_point [Spotted::Models::ResumePointObject] The user's most recent position in the chapter. Set if the supplied access token
|
|
@@ -124,6 +124,16 @@ module Spotted
|
|
|
124
124
|
# @return [String, nil]
|
|
125
125
|
optional :language, String
|
|
126
126
|
|
|
127
|
+
# @!attribute published
|
|
128
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
129
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
130
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
131
|
+
# public/private status, see
|
|
132
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
133
|
+
#
|
|
134
|
+
# @return [Boolean, nil]
|
|
135
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
136
|
+
|
|
127
137
|
# @!attribute restrictions
|
|
128
138
|
# Included in the response when a content restriction is applied.
|
|
129
139
|
#
|
|
@@ -137,7 +147,7 @@ module Spotted
|
|
|
137
147
|
# @return [Spotted::Models::ResumePointObject, nil]
|
|
138
148
|
optional :resume_point, -> { Spotted::ResumePointObject }
|
|
139
149
|
|
|
140
|
-
# @!method initialize(id:, audio_preview_url:, description:, duration_ms:, explicit:, external_urls:, href:, html_description:, images:, is_externally_hosted:, is_playable:, languages:, name:, release_date:, release_date_precision:, uri:, language: nil, restrictions: nil, resume_point: nil, type: :episode)
|
|
150
|
+
# @!method initialize(id:, audio_preview_url:, description:, duration_ms:, explicit:, external_urls:, href:, html_description:, images:, is_externally_hosted:, is_playable:, languages:, name:, release_date:, release_date_precision:, uri:, language: nil, published: nil, restrictions: nil, resume_point: nil, type: :episode)
|
|
141
151
|
# Some parameter documentations has been truncated, see
|
|
142
152
|
# {Spotted::Models::SimplifiedEpisodeObject} for more details.
|
|
143
153
|
#
|
|
@@ -175,6 +185,8 @@ module Spotted
|
|
|
175
185
|
#
|
|
176
186
|
# @param language [String] The language used in the episode, identified by a [ISO 639](https://en.wikipedia
|
|
177
187
|
#
|
|
188
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
189
|
+
#
|
|
178
190
|
# @param restrictions [Spotted::Models::EpisodeRestrictionObject] Included in the response when a content restriction is applied.
|
|
179
191
|
#
|
|
180
192
|
# @param resume_point [Spotted::Models::ResumePointObject] The user's most recent position in the episode. Set if the supplied access token
|
|
@@ -58,9 +58,10 @@ module Spotted
|
|
|
58
58
|
optional :owner, -> { Spotted::SimplifiedPlaylistObject::Owner }
|
|
59
59
|
|
|
60
60
|
# @!attribute published
|
|
61
|
-
# The playlist's public/private status (if it
|
|
62
|
-
# `true` the playlist
|
|
63
|
-
# playlist status is not relevant. For more about
|
|
61
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
62
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
63
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
64
|
+
# public/private status, see
|
|
64
65
|
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
65
66
|
#
|
|
66
67
|
# @return [Boolean, nil]
|
|
@@ -116,7 +117,7 @@ module Spotted
|
|
|
116
117
|
#
|
|
117
118
|
# @param owner [Spotted::Models::SimplifiedPlaylistObject::Owner] The user who owns the playlist
|
|
118
119
|
#
|
|
119
|
-
# @param published [Boolean] The playlist's public/private status (if it
|
|
120
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
120
121
|
#
|
|
121
122
|
# @param snapshot_id [String] The version identifier for the current playlist. Can be supplied in other reques
|
|
122
123
|
#
|
|
@@ -93,6 +93,16 @@ module Spotted
|
|
|
93
93
|
# @return [String, nil]
|
|
94
94
|
optional :preview_url, String, nil?: true
|
|
95
95
|
|
|
96
|
+
# @!attribute published
|
|
97
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
98
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
99
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
100
|
+
# public/private status, see
|
|
101
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
102
|
+
#
|
|
103
|
+
# @return [Boolean, nil]
|
|
104
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
105
|
+
|
|
96
106
|
# @!attribute restrictions
|
|
97
107
|
# Included in the response when a content restriction is applied.
|
|
98
108
|
#
|
|
@@ -119,7 +129,7 @@ module Spotted
|
|
|
119
129
|
# @return [String, nil]
|
|
120
130
|
optional :uri, String
|
|
121
131
|
|
|
122
|
-
# @!method initialize(id: nil, artists: nil, available_markets: nil, disc_number: nil, duration_ms: nil, explicit: nil, external_urls: nil, href: nil, is_local: nil, is_playable: nil, linked_from: nil, name: nil, preview_url: nil, restrictions: nil, track_number: nil, type: nil, uri: nil)
|
|
132
|
+
# @!method initialize(id: nil, artists: nil, available_markets: nil, disc_number: nil, duration_ms: nil, explicit: nil, external_urls: nil, href: nil, is_local: nil, is_playable: nil, linked_from: nil, name: nil, preview_url: nil, published: nil, restrictions: nil, track_number: nil, type: nil, uri: nil)
|
|
123
133
|
# Some parameter documentations has been truncated, see
|
|
124
134
|
# {Spotted::Models::SimplifiedTrackObject} for more details.
|
|
125
135
|
#
|
|
@@ -149,6 +159,8 @@ module Spotted
|
|
|
149
159
|
#
|
|
150
160
|
# @param preview_url [String, nil] A URL to a 30 second preview (MP3 format) of the track.
|
|
151
161
|
#
|
|
162
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
163
|
+
#
|
|
152
164
|
# @param restrictions [Spotted::Models::TrackRestrictionObject] Included in the response when a content restriction is applied.
|
|
153
165
|
#
|
|
154
166
|
# @param track_number [Integer] The number of the track. If an album has several discs, the track number is the
|
|
@@ -15,17 +15,32 @@ module Spotted
|
|
|
15
15
|
# @return [Float, nil]
|
|
16
16
|
optional :duration, Float
|
|
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 start
|
|
19
29
|
# The starting point (in seconds) of the time interval.
|
|
20
30
|
#
|
|
21
31
|
# @return [Float, nil]
|
|
22
32
|
optional :start, Float
|
|
23
33
|
|
|
24
|
-
# @!method initialize(confidence: nil, duration: nil, start: nil)
|
|
34
|
+
# @!method initialize(confidence: nil, duration: nil, published: nil, start: nil)
|
|
35
|
+
# Some parameter documentations has been truncated, see
|
|
36
|
+
# {Spotted::Models::TimeIntervalObject} for more details.
|
|
37
|
+
#
|
|
25
38
|
# @param confidence [Float] The confidence, from 0.0 to 1.0, of the reliability of the interval.
|
|
26
39
|
#
|
|
27
40
|
# @param duration [Float] The duration (in seconds) of the time interval.
|
|
28
41
|
#
|
|
42
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
43
|
+
#
|
|
29
44
|
# @param start [Float] The starting point (in seconds) of the time interval.
|
|
30
45
|
end
|
|
31
46
|
end
|
|
@@ -120,6 +120,16 @@ module Spotted
|
|
|
120
120
|
# @return [String, nil]
|
|
121
121
|
optional :preview_url, String, nil?: true
|
|
122
122
|
|
|
123
|
+
# @!attribute published
|
|
124
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
125
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
126
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
127
|
+
# public/private status, see
|
|
128
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
129
|
+
#
|
|
130
|
+
# @return [Boolean, nil]
|
|
131
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
132
|
+
|
|
123
133
|
# @!attribute restrictions
|
|
124
134
|
# Included in the response when a content restriction is applied.
|
|
125
135
|
#
|
|
@@ -146,7 +156,7 @@ module Spotted
|
|
|
146
156
|
# @return [String, nil]
|
|
147
157
|
optional :uri, String
|
|
148
158
|
|
|
149
|
-
# @!method initialize(id: nil, album: nil, artists: nil, available_markets: nil, disc_number: nil, duration_ms: nil, explicit: nil, external_ids: nil, external_urls: nil, href: nil, is_local: nil, is_playable: nil, linked_from: nil, name: nil, popularity: nil, preview_url: nil, restrictions: nil, track_number: nil, type: nil, uri: nil)
|
|
159
|
+
# @!method initialize(id: nil, album: nil, artists: nil, available_markets: nil, disc_number: nil, duration_ms: nil, explicit: nil, external_ids: nil, external_urls: nil, href: nil, is_local: nil, is_playable: nil, linked_from: nil, name: nil, popularity: nil, preview_url: nil, published: nil, restrictions: nil, track_number: nil, type: nil, uri: nil)
|
|
150
160
|
# Some parameter documentations has been truncated, see
|
|
151
161
|
# {Spotted::Models::TrackObject} for more details.
|
|
152
162
|
#
|
|
@@ -182,6 +192,8 @@ module Spotted
|
|
|
182
192
|
#
|
|
183
193
|
# @param preview_url [String, nil] A link to a 30 second preview (MP3 format) of the track. Can be `null`
|
|
184
194
|
#
|
|
195
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
196
|
+
#
|
|
185
197
|
# @param restrictions [Spotted::Models::TrackRestrictionObject] Included in the response when a content restriction is applied.
|
|
186
198
|
#
|
|
187
199
|
# @param track_number [Integer] The number of the track. If an album has several discs, the track number is the
|
|
@@ -277,13 +289,23 @@ module Spotted
|
|
|
277
289
|
# @return [String]
|
|
278
290
|
required :uri, String
|
|
279
291
|
|
|
292
|
+
# @!attribute published
|
|
293
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
294
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
295
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
296
|
+
# public/private status, see
|
|
297
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
298
|
+
#
|
|
299
|
+
# @return [Boolean, nil]
|
|
300
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
301
|
+
|
|
280
302
|
# @!attribute restrictions
|
|
281
303
|
# Included in the response when a content restriction is applied.
|
|
282
304
|
#
|
|
283
305
|
# @return [Spotted::Models::AlbumRestrictionObject, nil]
|
|
284
306
|
optional :restrictions, -> { Spotted::AlbumRestrictionObject }
|
|
285
307
|
|
|
286
|
-
# @!method initialize(id:, album_type:, artists:, available_markets:, external_urls:, href:, images:, name:, release_date:, release_date_precision:, total_tracks:, uri:, restrictions: nil, type: :album)
|
|
308
|
+
# @!method initialize(id:, album_type:, artists:, available_markets:, external_urls:, href:, images:, name:, release_date:, release_date_precision:, total_tracks:, uri:, published: nil, restrictions: nil, type: :album)
|
|
287
309
|
# Some parameter documentations has been truncated, see
|
|
288
310
|
# {Spotted::Models::TrackObject::Album} for more details.
|
|
289
311
|
#
|
|
@@ -314,6 +336,8 @@ module Spotted
|
|
|
314
336
|
#
|
|
315
337
|
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the albu
|
|
316
338
|
#
|
|
339
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
340
|
+
#
|
|
317
341
|
# @param restrictions [Spotted::Models::AlbumRestrictionObject] Included in the response when a content restriction is applied.
|
|
318
342
|
#
|
|
319
343
|
# @param type [Symbol, :album] The object type.
|
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
module Spotted
|
|
4
4
|
module Models
|
|
5
5
|
class TrackRestrictionObject < Spotted::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute published
|
|
7
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
8
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
9
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
10
|
+
# public/private status, see
|
|
11
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
12
|
+
#
|
|
13
|
+
# @return [Boolean, nil]
|
|
14
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
15
|
+
|
|
6
16
|
# @!attribute reason
|
|
7
17
|
# The reason for the restriction. Supported values:
|
|
8
18
|
#
|
|
@@ -18,10 +28,12 @@ module Spotted
|
|
|
18
28
|
# @return [String, nil]
|
|
19
29
|
optional :reason, String
|
|
20
30
|
|
|
21
|
-
# @!method initialize(reason: nil)
|
|
31
|
+
# @!method initialize(published: nil, reason: nil)
|
|
22
32
|
# Some parameter documentations has been truncated, see
|
|
23
33
|
# {Spotted::Models::TrackRestrictionObject} for more details.
|
|
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 reason [String] The reason for the restriction. Supported values:
|
|
26
38
|
end
|
|
27
39
|
end
|
|
@@ -41,6 +41,16 @@ module Spotted
|
|
|
41
41
|
# @return [Array<Spotted::Models::ImageObject>, nil]
|
|
42
42
|
optional :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }
|
|
43
43
|
|
|
44
|
+
# @!attribute published
|
|
45
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
46
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
47
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
48
|
+
# public/private status, see
|
|
49
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
50
|
+
#
|
|
51
|
+
# @return [Boolean, nil]
|
|
52
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
53
|
+
|
|
44
54
|
# @!attribute type
|
|
45
55
|
# The object type.
|
|
46
56
|
#
|
|
@@ -54,7 +64,7 @@ module Spotted
|
|
|
54
64
|
# @return [String, nil]
|
|
55
65
|
optional :uri, String
|
|
56
66
|
|
|
57
|
-
# @!method initialize(id: nil, display_name: nil, external_urls: nil, followers: nil, href: nil, images: nil, type: nil, uri: nil)
|
|
67
|
+
# @!method initialize(id: nil, display_name: nil, external_urls: nil, followers: nil, href: nil, images: nil, published: nil, type: nil, uri: nil)
|
|
58
68
|
# Some parameter documentations has been truncated, see
|
|
59
69
|
# {Spotted::Models::UserRetrieveProfileResponse} for more details.
|
|
60
70
|
#
|
|
@@ -70,6 +80,8 @@ module Spotted
|
|
|
70
80
|
#
|
|
71
81
|
# @param images [Array<Spotted::Models::ImageObject>] The user's profile image.
|
|
72
82
|
#
|
|
83
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
84
|
+
#
|
|
73
85
|
# @param type [Symbol, Spotted::Models::UserRetrieveProfileResponse::Type] The object type.
|
|
74
86
|
#
|
|
75
87
|
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for this use
|
|
@@ -45,7 +45,17 @@ module Spotted
|
|
|
45
45
|
# @return [Boolean, nil]
|
|
46
46
|
optional :public, Spotted::Internal::Type::Boolean
|
|
47
47
|
|
|
48
|
-
# @!
|
|
48
|
+
# @!attribute published
|
|
49
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
50
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
51
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
52
|
+
# public/private status, see
|
|
53
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
54
|
+
#
|
|
55
|
+
# @return [Boolean, nil]
|
|
56
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
57
|
+
|
|
58
|
+
# @!method initialize(name:, collaborative: nil, description: nil, public: nil, published: nil, request_options: {})
|
|
49
59
|
# Some parameter documentations has been truncated, see
|
|
50
60
|
# {Spotted::Models::Users::PlaylistCreateParams} for more details.
|
|
51
61
|
#
|
|
@@ -58,6 +68,8 @@ module Spotted
|
|
|
58
68
|
#
|
|
59
69
|
# @param public [Boolean] Defaults to `true`. The playlist's public/private status (if it should be added
|
|
60
70
|
#
|
|
71
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
72
|
+
#
|
|
61
73
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
62
74
|
end
|
|
63
75
|
end
|