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
|
@@ -23,6 +23,17 @@ module Spotted
|
|
|
23
23
|
sig { returns(T::Array[Spotted::Playlists::TrackRemoveParams::Track]) }
|
|
24
24
|
attr_accessor :tracks
|
|
25
25
|
|
|
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
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
+
attr_reader :published
|
|
33
|
+
|
|
34
|
+
sig { params(published: T::Boolean).void }
|
|
35
|
+
attr_writer :published
|
|
36
|
+
|
|
26
37
|
# The playlist's snapshot ID against which you want to make the changes. The API
|
|
27
38
|
# will validate that the specified items exist and in the specified positions and
|
|
28
39
|
# make the changes, even if more recent changes have been made to the playlist.
|
|
@@ -36,6 +47,7 @@ module Spotted
|
|
|
36
47
|
params(
|
|
37
48
|
tracks:
|
|
38
49
|
T::Array[Spotted::Playlists::TrackRemoveParams::Track::OrHash],
|
|
50
|
+
published: T::Boolean,
|
|
39
51
|
snapshot_id: String,
|
|
40
52
|
request_options: Spotted::RequestOptions::OrHash
|
|
41
53
|
).returns(T.attached_class)
|
|
@@ -47,6 +59,12 @@ module Spotted
|
|
|
47
59
|
# `{ "tracks": [{ "uri": "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" },{ "uri": "spotify:track:1301WleyT98MSxVHPZCA6M" }] }`.
|
|
48
60
|
# A maximum of 100 objects can be sent at once.
|
|
49
61
|
tracks:,
|
|
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
|
+
published: nil,
|
|
50
68
|
# The playlist's snapshot ID against which you want to make the changes. The API
|
|
51
69
|
# will validate that the specified items exist and in the specified positions and
|
|
52
70
|
# make the changes, even if more recent changes have been made to the playlist.
|
|
@@ -59,6 +77,7 @@ module Spotted
|
|
|
59
77
|
override.returns(
|
|
60
78
|
{
|
|
61
79
|
tracks: T::Array[Spotted::Playlists::TrackRemoveParams::Track],
|
|
80
|
+
published: T::Boolean,
|
|
62
81
|
snapshot_id: String,
|
|
63
82
|
request_options: Spotted::RequestOptions
|
|
64
83
|
}
|
|
@@ -27,6 +27,17 @@ module Spotted
|
|
|
27
27
|
sig { params(insert_before: Integer).void }
|
|
28
28
|
attr_writer :insert_before
|
|
29
29
|
|
|
30
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
31
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
32
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
33
|
+
# public/private status, see
|
|
34
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
35
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
36
|
+
attr_reader :published
|
|
37
|
+
|
|
38
|
+
sig { params(published: T::Boolean).void }
|
|
39
|
+
attr_writer :published
|
|
40
|
+
|
|
30
41
|
# The amount of items to be reordered. Defaults to 1 if not set.<br/>The range of
|
|
31
42
|
# items to be reordered begins from the _range_start_ position, and includes the
|
|
32
43
|
# _range_length_ subsequent items.<br/>Example:<br/>To move the items at index
|
|
@@ -61,6 +72,7 @@ module Spotted
|
|
|
61
72
|
sig do
|
|
62
73
|
params(
|
|
63
74
|
insert_before: Integer,
|
|
75
|
+
published: T::Boolean,
|
|
64
76
|
range_length: Integer,
|
|
65
77
|
range_start: Integer,
|
|
66
78
|
snapshot_id: String,
|
|
@@ -76,6 +88,12 @@ module Spotted
|
|
|
76
88
|
# to 10.<br/>To reorder the last item in a playlist with 10 items to the start of
|
|
77
89
|
# the playlist, set _range_start_ to 9, and _insert_before_ to 0.
|
|
78
90
|
insert_before: nil,
|
|
91
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
92
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
93
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
94
|
+
# public/private status, see
|
|
95
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
96
|
+
published: nil,
|
|
79
97
|
# The amount of items to be reordered. Defaults to 1 if not set.<br/>The range of
|
|
80
98
|
# items to be reordered begins from the _range_start_ position, and includes the
|
|
81
99
|
# _range_length_ subsequent items.<br/>Example:<br/>To move the items at index
|
|
@@ -95,6 +113,7 @@ module Spotted
|
|
|
95
113
|
override.returns(
|
|
96
114
|
{
|
|
97
115
|
insert_before: Integer,
|
|
116
|
+
published: T::Boolean,
|
|
98
117
|
range_length: Integer,
|
|
99
118
|
range_start: Integer,
|
|
100
119
|
snapshot_id: String,
|
|
@@ -21,18 +21,36 @@ module Spotted
|
|
|
21
21
|
sig { returns(T::Array[Spotted::TrackObject]) }
|
|
22
22
|
attr_accessor :tracks
|
|
23
23
|
|
|
24
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
25
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
26
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
27
|
+
# public/private status, see
|
|
28
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
29
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
30
|
+
attr_reader :published
|
|
31
|
+
|
|
32
|
+
sig { params(published: T::Boolean).void }
|
|
33
|
+
attr_writer :published
|
|
34
|
+
|
|
24
35
|
sig do
|
|
25
36
|
params(
|
|
26
37
|
seeds:
|
|
27
38
|
T::Array[Spotted::Models::RecommendationGetResponse::Seed::OrHash],
|
|
28
|
-
tracks: T::Array[Spotted::TrackObject::OrHash]
|
|
39
|
+
tracks: T::Array[Spotted::TrackObject::OrHash],
|
|
40
|
+
published: T::Boolean
|
|
29
41
|
).returns(T.attached_class)
|
|
30
42
|
end
|
|
31
43
|
def self.new(
|
|
32
44
|
# An array of recommendation seed objects.
|
|
33
45
|
seeds:,
|
|
34
46
|
# An array of track objects ordered according to the parameters supplied.
|
|
35
|
-
tracks
|
|
47
|
+
tracks:,
|
|
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
|
+
published: nil
|
|
36
54
|
)
|
|
37
55
|
end
|
|
38
56
|
|
|
@@ -40,7 +58,8 @@ module Spotted
|
|
|
40
58
|
override.returns(
|
|
41
59
|
{
|
|
42
60
|
seeds: T::Array[Spotted::Models::RecommendationGetResponse::Seed],
|
|
43
|
-
tracks: T::Array[Spotted::TrackObject]
|
|
61
|
+
tracks: T::Array[Spotted::TrackObject],
|
|
62
|
+
published: T::Boolean
|
|
44
63
|
}
|
|
45
64
|
)
|
|
46
65
|
end
|
|
@@ -95,6 +114,17 @@ module Spotted
|
|
|
95
114
|
sig { params(initial_pool_size: Integer).void }
|
|
96
115
|
attr_writer :initial_pool_size
|
|
97
116
|
|
|
117
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
118
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
119
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
120
|
+
# public/private status, see
|
|
121
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
122
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
123
|
+
attr_reader :published
|
|
124
|
+
|
|
125
|
+
sig { params(published: T::Boolean).void }
|
|
126
|
+
attr_writer :published
|
|
127
|
+
|
|
98
128
|
# The entity type of this seed. One of `artist`, `track` or `genre`.
|
|
99
129
|
sig { returns(T.nilable(String)) }
|
|
100
130
|
attr_reader :type
|
|
@@ -109,6 +139,7 @@ module Spotted
|
|
|
109
139
|
after_relinking_size: Integer,
|
|
110
140
|
href: String,
|
|
111
141
|
initial_pool_size: Integer,
|
|
142
|
+
published: T::Boolean,
|
|
112
143
|
type: String
|
|
113
144
|
).returns(T.attached_class)
|
|
114
145
|
end
|
|
@@ -127,6 +158,12 @@ module Spotted
|
|
|
127
158
|
href: nil,
|
|
128
159
|
# The number of recommended tracks available for this seed.
|
|
129
160
|
initial_pool_size: nil,
|
|
161
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
162
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
163
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
164
|
+
# public/private status, see
|
|
165
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
166
|
+
published: nil,
|
|
130
167
|
# The entity type of this seed. One of `artist`, `track` or `genre`.
|
|
131
168
|
type: nil
|
|
132
169
|
)
|
|
@@ -140,6 +177,7 @@ module Spotted
|
|
|
140
177
|
after_relinking_size: Integer,
|
|
141
178
|
href: String,
|
|
142
179
|
initial_pool_size: Integer,
|
|
180
|
+
published: T::Boolean,
|
|
143
181
|
type: String
|
|
144
182
|
}
|
|
145
183
|
)
|
|
@@ -15,6 +15,17 @@ module Spotted
|
|
|
15
15
|
sig { params(fully_played: T::Boolean).void }
|
|
16
16
|
attr_writer :fully_played
|
|
17
17
|
|
|
18
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
19
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
20
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
21
|
+
# public/private status, see
|
|
22
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
23
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
24
|
+
attr_reader :published
|
|
25
|
+
|
|
26
|
+
sig { params(published: T::Boolean).void }
|
|
27
|
+
attr_writer :published
|
|
28
|
+
|
|
18
29
|
# The user's most recent position in the episode in milliseconds.
|
|
19
30
|
sig { returns(T.nilable(Integer)) }
|
|
20
31
|
attr_reader :resume_position_ms
|
|
@@ -23,13 +34,21 @@ module Spotted
|
|
|
23
34
|
attr_writer :resume_position_ms
|
|
24
35
|
|
|
25
36
|
sig do
|
|
26
|
-
params(
|
|
27
|
-
T
|
|
28
|
-
|
|
37
|
+
params(
|
|
38
|
+
fully_played: T::Boolean,
|
|
39
|
+
published: T::Boolean,
|
|
40
|
+
resume_position_ms: Integer
|
|
41
|
+
).returns(T.attached_class)
|
|
29
42
|
end
|
|
30
43
|
def self.new(
|
|
31
44
|
# Whether or not the episode has been fully played by the user.
|
|
32
45
|
fully_played: nil,
|
|
46
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
47
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
48
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
49
|
+
# public/private status, see
|
|
50
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
51
|
+
published: nil,
|
|
33
52
|
# The user's most recent position in the episode in milliseconds.
|
|
34
53
|
resume_position_ms: nil
|
|
35
54
|
)
|
|
@@ -37,7 +56,11 @@ module Spotted
|
|
|
37
56
|
|
|
38
57
|
sig do
|
|
39
58
|
override.returns(
|
|
40
|
-
{
|
|
59
|
+
{
|
|
60
|
+
fully_played: T::Boolean,
|
|
61
|
+
published: T::Boolean,
|
|
62
|
+
resume_position_ms: Integer
|
|
63
|
+
}
|
|
41
64
|
)
|
|
42
65
|
end
|
|
43
66
|
def to_hash
|
|
@@ -167,6 +167,17 @@ module Spotted
|
|
|
167
167
|
end
|
|
168
168
|
attr_writer :items
|
|
169
169
|
|
|
170
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
171
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
172
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
173
|
+
# public/private status, see
|
|
174
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
175
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
176
|
+
attr_reader :published
|
|
177
|
+
|
|
178
|
+
sig { params(published: T::Boolean).void }
|
|
179
|
+
attr_writer :published
|
|
180
|
+
|
|
170
181
|
sig do
|
|
171
182
|
params(
|
|
172
183
|
href: String,
|
|
@@ -178,7 +189,8 @@ module Spotted
|
|
|
178
189
|
items:
|
|
179
190
|
T::Array[
|
|
180
191
|
Spotted::Models::SearchQueryResponse::Albums::Item::OrHash
|
|
181
|
-
]
|
|
192
|
+
],
|
|
193
|
+
published: T::Boolean
|
|
182
194
|
).returns(T.attached_class)
|
|
183
195
|
end
|
|
184
196
|
def self.new(
|
|
@@ -194,7 +206,13 @@ module Spotted
|
|
|
194
206
|
previous:,
|
|
195
207
|
# The total number of items available to return.
|
|
196
208
|
total:,
|
|
197
|
-
items: nil
|
|
209
|
+
items: nil,
|
|
210
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
211
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
212
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
213
|
+
# public/private status, see
|
|
214
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
215
|
+
published: nil
|
|
198
216
|
)
|
|
199
217
|
end
|
|
200
218
|
|
|
@@ -208,7 +226,8 @@ module Spotted
|
|
|
208
226
|
previous: T.nilable(String),
|
|
209
227
|
total: Integer,
|
|
210
228
|
items:
|
|
211
|
-
T::Array[Spotted::Models::SearchQueryResponse::Albums::Item]
|
|
229
|
+
T::Array[Spotted::Models::SearchQueryResponse::Albums::Item],
|
|
230
|
+
published: T::Boolean
|
|
212
231
|
}
|
|
213
232
|
)
|
|
214
233
|
end
|
|
@@ -294,6 +313,17 @@ module Spotted
|
|
|
294
313
|
sig { returns(String) }
|
|
295
314
|
attr_accessor :uri
|
|
296
315
|
|
|
316
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
317
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
318
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
319
|
+
# public/private status, see
|
|
320
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
321
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
322
|
+
attr_reader :published
|
|
323
|
+
|
|
324
|
+
sig { params(published: T::Boolean).void }
|
|
325
|
+
attr_writer :published
|
|
326
|
+
|
|
297
327
|
# Included in the response when a content restriction is applied.
|
|
298
328
|
sig { returns(T.nilable(Spotted::AlbumRestrictionObject)) }
|
|
299
329
|
attr_reader :restrictions
|
|
@@ -319,6 +349,7 @@ module Spotted
|
|
|
319
349
|
Spotted::Models::SearchQueryResponse::Albums::Item::ReleaseDatePrecision::OrSymbol,
|
|
320
350
|
total_tracks: Integer,
|
|
321
351
|
uri: String,
|
|
352
|
+
published: T::Boolean,
|
|
322
353
|
restrictions: Spotted::AlbumRestrictionObject::OrHash,
|
|
323
354
|
type: Symbol
|
|
324
355
|
).returns(T.attached_class)
|
|
@@ -355,6 +386,12 @@ module Spotted
|
|
|
355
386
|
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
356
387
|
# album.
|
|
357
388
|
uri:,
|
|
389
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
390
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
391
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
392
|
+
# public/private status, see
|
|
393
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
394
|
+
published: nil,
|
|
358
395
|
# Included in the response when a content restriction is applied.
|
|
359
396
|
restrictions: nil,
|
|
360
397
|
# The object type.
|
|
@@ -380,6 +417,7 @@ module Spotted
|
|
|
380
417
|
total_tracks: Integer,
|
|
381
418
|
type: Symbol,
|
|
382
419
|
uri: String,
|
|
420
|
+
published: T::Boolean,
|
|
383
421
|
restrictions: Spotted::AlbumRestrictionObject
|
|
384
422
|
}
|
|
385
423
|
)
|
|
@@ -508,6 +546,17 @@ module Spotted
|
|
|
508
546
|
sig { params(items: T::Array[Spotted::ArtistObject::OrHash]).void }
|
|
509
547
|
attr_writer :items
|
|
510
548
|
|
|
549
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
550
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
551
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
552
|
+
# public/private status, see
|
|
553
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
554
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
555
|
+
attr_reader :published
|
|
556
|
+
|
|
557
|
+
sig { params(published: T::Boolean).void }
|
|
558
|
+
attr_writer :published
|
|
559
|
+
|
|
511
560
|
sig do
|
|
512
561
|
params(
|
|
513
562
|
href: String,
|
|
@@ -516,7 +565,8 @@ module Spotted
|
|
|
516
565
|
offset: Integer,
|
|
517
566
|
previous: T.nilable(String),
|
|
518
567
|
total: Integer,
|
|
519
|
-
items: T::Array[Spotted::ArtistObject::OrHash]
|
|
568
|
+
items: T::Array[Spotted::ArtistObject::OrHash],
|
|
569
|
+
published: T::Boolean
|
|
520
570
|
).returns(T.attached_class)
|
|
521
571
|
end
|
|
522
572
|
def self.new(
|
|
@@ -532,7 +582,13 @@ module Spotted
|
|
|
532
582
|
previous:,
|
|
533
583
|
# The total number of items available to return.
|
|
534
584
|
total:,
|
|
535
|
-
items: nil
|
|
585
|
+
items: nil,
|
|
586
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
587
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
588
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
589
|
+
# public/private status, see
|
|
590
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
591
|
+
published: nil
|
|
536
592
|
)
|
|
537
593
|
end
|
|
538
594
|
|
|
@@ -545,7 +601,8 @@ module Spotted
|
|
|
545
601
|
offset: Integer,
|
|
546
602
|
previous: T.nilable(String),
|
|
547
603
|
total: Integer,
|
|
548
|
-
items: T::Array[Spotted::ArtistObject]
|
|
604
|
+
items: T::Array[Spotted::ArtistObject],
|
|
605
|
+
published: T::Boolean
|
|
549
606
|
}
|
|
550
607
|
)
|
|
551
608
|
end
|
|
@@ -592,6 +649,17 @@ module Spotted
|
|
|
592
649
|
sig { params(items: T::Array[Spotted::AudiobookBase::OrHash]).void }
|
|
593
650
|
attr_writer :items
|
|
594
651
|
|
|
652
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
653
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
654
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
655
|
+
# public/private status, see
|
|
656
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
657
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
658
|
+
attr_reader :published
|
|
659
|
+
|
|
660
|
+
sig { params(published: T::Boolean).void }
|
|
661
|
+
attr_writer :published
|
|
662
|
+
|
|
595
663
|
sig do
|
|
596
664
|
params(
|
|
597
665
|
href: String,
|
|
@@ -600,7 +668,8 @@ module Spotted
|
|
|
600
668
|
offset: Integer,
|
|
601
669
|
previous: T.nilable(String),
|
|
602
670
|
total: Integer,
|
|
603
|
-
items: T::Array[Spotted::AudiobookBase::OrHash]
|
|
671
|
+
items: T::Array[Spotted::AudiobookBase::OrHash],
|
|
672
|
+
published: T::Boolean
|
|
604
673
|
).returns(T.attached_class)
|
|
605
674
|
end
|
|
606
675
|
def self.new(
|
|
@@ -616,7 +685,13 @@ module Spotted
|
|
|
616
685
|
previous:,
|
|
617
686
|
# The total number of items available to return.
|
|
618
687
|
total:,
|
|
619
|
-
items: nil
|
|
688
|
+
items: nil,
|
|
689
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
690
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
691
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
692
|
+
# public/private status, see
|
|
693
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
694
|
+
published: nil
|
|
620
695
|
)
|
|
621
696
|
end
|
|
622
697
|
|
|
@@ -629,7 +704,8 @@ module Spotted
|
|
|
629
704
|
offset: Integer,
|
|
630
705
|
previous: T.nilable(String),
|
|
631
706
|
total: Integer,
|
|
632
|
-
items: T::Array[Spotted::AudiobookBase]
|
|
707
|
+
items: T::Array[Spotted::AudiobookBase],
|
|
708
|
+
published: T::Boolean
|
|
633
709
|
}
|
|
634
710
|
)
|
|
635
711
|
end
|
|
@@ -678,6 +754,17 @@ module Spotted
|
|
|
678
754
|
end
|
|
679
755
|
attr_writer :items
|
|
680
756
|
|
|
757
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
758
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
759
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
760
|
+
# public/private status, see
|
|
761
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
762
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
763
|
+
attr_reader :published
|
|
764
|
+
|
|
765
|
+
sig { params(published: T::Boolean).void }
|
|
766
|
+
attr_writer :published
|
|
767
|
+
|
|
681
768
|
sig do
|
|
682
769
|
params(
|
|
683
770
|
href: String,
|
|
@@ -686,7 +773,8 @@ module Spotted
|
|
|
686
773
|
offset: Integer,
|
|
687
774
|
previous: T.nilable(String),
|
|
688
775
|
total: Integer,
|
|
689
|
-
items: T::Array[Spotted::SimplifiedEpisodeObject::OrHash]
|
|
776
|
+
items: T::Array[Spotted::SimplifiedEpisodeObject::OrHash],
|
|
777
|
+
published: T::Boolean
|
|
690
778
|
).returns(T.attached_class)
|
|
691
779
|
end
|
|
692
780
|
def self.new(
|
|
@@ -702,7 +790,13 @@ module Spotted
|
|
|
702
790
|
previous:,
|
|
703
791
|
# The total number of items available to return.
|
|
704
792
|
total:,
|
|
705
|
-
items: nil
|
|
793
|
+
items: nil,
|
|
794
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
795
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
796
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
797
|
+
# public/private status, see
|
|
798
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
799
|
+
published: nil
|
|
706
800
|
)
|
|
707
801
|
end
|
|
708
802
|
|
|
@@ -715,7 +809,8 @@ module Spotted
|
|
|
715
809
|
offset: Integer,
|
|
716
810
|
previous: T.nilable(String),
|
|
717
811
|
total: Integer,
|
|
718
|
-
items: T::Array[Spotted::SimplifiedEpisodeObject]
|
|
812
|
+
items: T::Array[Spotted::SimplifiedEpisodeObject],
|
|
813
|
+
published: T::Boolean
|
|
719
814
|
}
|
|
720
815
|
)
|
|
721
816
|
end
|
|
@@ -762,6 +857,17 @@ module Spotted
|
|
|
762
857
|
sig { params(items: T::Array[Spotted::ShowBase::OrHash]).void }
|
|
763
858
|
attr_writer :items
|
|
764
859
|
|
|
860
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
861
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
862
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
863
|
+
# public/private status, see
|
|
864
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
865
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
866
|
+
attr_reader :published
|
|
867
|
+
|
|
868
|
+
sig { params(published: T::Boolean).void }
|
|
869
|
+
attr_writer :published
|
|
870
|
+
|
|
765
871
|
sig do
|
|
766
872
|
params(
|
|
767
873
|
href: String,
|
|
@@ -770,7 +876,8 @@ module Spotted
|
|
|
770
876
|
offset: Integer,
|
|
771
877
|
previous: T.nilable(String),
|
|
772
878
|
total: Integer,
|
|
773
|
-
items: T::Array[Spotted::ShowBase::OrHash]
|
|
879
|
+
items: T::Array[Spotted::ShowBase::OrHash],
|
|
880
|
+
published: T::Boolean
|
|
774
881
|
).returns(T.attached_class)
|
|
775
882
|
end
|
|
776
883
|
def self.new(
|
|
@@ -786,7 +893,13 @@ module Spotted
|
|
|
786
893
|
previous:,
|
|
787
894
|
# The total number of items available to return.
|
|
788
895
|
total:,
|
|
789
|
-
items: nil
|
|
896
|
+
items: nil,
|
|
897
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
898
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
899
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
900
|
+
# public/private status, see
|
|
901
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
902
|
+
published: nil
|
|
790
903
|
)
|
|
791
904
|
end
|
|
792
905
|
|
|
@@ -799,7 +912,8 @@ module Spotted
|
|
|
799
912
|
offset: Integer,
|
|
800
913
|
previous: T.nilable(String),
|
|
801
914
|
total: Integer,
|
|
802
|
-
items: T::Array[Spotted::ShowBase]
|
|
915
|
+
items: T::Array[Spotted::ShowBase],
|
|
916
|
+
published: T::Boolean
|
|
803
917
|
}
|
|
804
918
|
)
|
|
805
919
|
end
|
|
@@ -846,6 +960,17 @@ module Spotted
|
|
|
846
960
|
sig { params(items: T::Array[Spotted::TrackObject::OrHash]).void }
|
|
847
961
|
attr_writer :items
|
|
848
962
|
|
|
963
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
964
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
965
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
966
|
+
# public/private status, see
|
|
967
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
968
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
969
|
+
attr_reader :published
|
|
970
|
+
|
|
971
|
+
sig { params(published: T::Boolean).void }
|
|
972
|
+
attr_writer :published
|
|
973
|
+
|
|
849
974
|
sig do
|
|
850
975
|
params(
|
|
851
976
|
href: String,
|
|
@@ -854,7 +979,8 @@ module Spotted
|
|
|
854
979
|
offset: Integer,
|
|
855
980
|
previous: T.nilable(String),
|
|
856
981
|
total: Integer,
|
|
857
|
-
items: T::Array[Spotted::TrackObject::OrHash]
|
|
982
|
+
items: T::Array[Spotted::TrackObject::OrHash],
|
|
983
|
+
published: T::Boolean
|
|
858
984
|
).returns(T.attached_class)
|
|
859
985
|
end
|
|
860
986
|
def self.new(
|
|
@@ -870,7 +996,13 @@ module Spotted
|
|
|
870
996
|
previous:,
|
|
871
997
|
# The total number of items available to return.
|
|
872
998
|
total:,
|
|
873
|
-
items: nil
|
|
999
|
+
items: nil,
|
|
1000
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
1001
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
1002
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
1003
|
+
# public/private status, see
|
|
1004
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
1005
|
+
published: nil
|
|
874
1006
|
)
|
|
875
1007
|
end
|
|
876
1008
|
|
|
@@ -883,7 +1015,8 @@ module Spotted
|
|
|
883
1015
|
offset: Integer,
|
|
884
1016
|
previous: T.nilable(String),
|
|
885
1017
|
total: Integer,
|
|
886
|
-
items: T::Array[Spotted::TrackObject]
|
|
1018
|
+
items: T::Array[Spotted::TrackObject],
|
|
1019
|
+
published: T::Boolean
|
|
887
1020
|
}
|
|
888
1021
|
)
|
|
889
1022
|
end
|
|
@@ -83,6 +83,17 @@ module Spotted
|
|
|
83
83
|
sig { returns(String) }
|
|
84
84
|
attr_accessor :uri
|
|
85
85
|
|
|
86
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
87
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
88
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
89
|
+
# public/private status, see
|
|
90
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
91
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
92
|
+
attr_reader :published
|
|
93
|
+
|
|
94
|
+
sig { params(published: T::Boolean).void }
|
|
95
|
+
attr_writer :published
|
|
96
|
+
|
|
86
97
|
sig do
|
|
87
98
|
params(
|
|
88
99
|
id: String,
|
|
@@ -101,6 +112,7 @@ module Spotted
|
|
|
101
112
|
publisher: String,
|
|
102
113
|
total_episodes: Integer,
|
|
103
114
|
uri: String,
|
|
115
|
+
published: T::Boolean,
|
|
104
116
|
type: Symbol
|
|
105
117
|
).returns(T.attached_class)
|
|
106
118
|
end
|
|
@@ -143,6 +155,12 @@ module Spotted
|
|
|
143
155
|
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
144
156
|
# show.
|
|
145
157
|
uri:,
|
|
158
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
159
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
160
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
161
|
+
# public/private status, see
|
|
162
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
163
|
+
published: nil,
|
|
146
164
|
# The object type.
|
|
147
165
|
type: :show
|
|
148
166
|
)
|
|
@@ -167,7 +185,8 @@ module Spotted
|
|
|
167
185
|
publisher: String,
|
|
168
186
|
total_episodes: Integer,
|
|
169
187
|
type: Symbol,
|
|
170
|
-
uri: String
|
|
188
|
+
uri: String,
|
|
189
|
+
published: T::Boolean
|
|
171
190
|
}
|
|
172
191
|
)
|
|
173
192
|
end
|