spotted 0.24.0 → 0.25.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 +8 -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/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/following_bulk_retrieve_response.rb +30 -2
- 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/show_list_response.rb +13 -1
- data/lib/spotted/models/me/track_list_response.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_user_object.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_response.rb +18 -5
- 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/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/following_bulk_retrieve_response.rbi +47 -3
- 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/show_list_response.rbi +27 -4
- data/rbi/spotted/models/me/track_list_response.rbi +29 -4
- 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_user_object.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_response.rbi +30 -9
- 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/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/following_bulk_retrieve_response.rbs +18 -3
- 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/show_list_response.rbs +16 -3
- data/sig/spotted/models/me/track_list_response.rbs +16 -3
- 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_user_object.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_response.rbs +10 -3
- metadata +2 -2
|
@@ -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
|
|
@@ -66,9 +66,10 @@ module Spotted
|
|
|
66
66
|
optional :owner, -> { Spotted::Models::Users::PlaylistCreateResponse::Owner }
|
|
67
67
|
|
|
68
68
|
# @!attribute published
|
|
69
|
-
# The playlist's public/private status (if it
|
|
70
|
-
# `true` the playlist
|
|
71
|
-
# playlist status is not relevant. For more about
|
|
69
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
70
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
71
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
72
|
+
# public/private status, see
|
|
72
73
|
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
73
74
|
#
|
|
74
75
|
# @return [Boolean, nil]
|
|
@@ -123,7 +124,7 @@ module Spotted
|
|
|
123
124
|
#
|
|
124
125
|
# @param owner [Spotted::Models::Users::PlaylistCreateResponse::Owner] The user who owns the playlist
|
|
125
126
|
#
|
|
126
|
-
# @param published [Boolean] The playlist's public/private status (if it
|
|
127
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
127
128
|
#
|
|
128
129
|
# @param snapshot_id [String] The version identifier for the current playlist. Can be supplied in other reques
|
|
129
130
|
#
|
|
@@ -193,7 +194,17 @@ module Spotted
|
|
|
193
194
|
# @return [Array<Spotted::Models::PlaylistTrackObject>, nil]
|
|
194
195
|
optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::PlaylistTrackObject] }
|
|
195
196
|
|
|
196
|
-
# @!
|
|
197
|
+
# @!attribute published
|
|
198
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
199
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
200
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
201
|
+
# public/private status, see
|
|
202
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
203
|
+
#
|
|
204
|
+
# @return [Boolean, nil]
|
|
205
|
+
optional :published, Spotted::Internal::Type::Boolean
|
|
206
|
+
|
|
207
|
+
# @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil, published: nil)
|
|
197
208
|
# Some parameter documentations has been truncated, see
|
|
198
209
|
# {Spotted::Models::Users::PlaylistCreateResponse::Tracks} for more details.
|
|
199
210
|
#
|
|
@@ -212,6 +223,8 @@ module Spotted
|
|
|
212
223
|
# @param total [Integer] The total number of items available to return.
|
|
213
224
|
#
|
|
214
225
|
# @param items [Array<Spotted::Models::PlaylistTrackObject>]
|
|
226
|
+
#
|
|
227
|
+
# @param published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
215
228
|
end
|
|
216
229
|
end
|
|
217
230
|
end
|
data/lib/spotted/version.rb
CHANGED
|
@@ -159,6 +159,17 @@ module Spotted
|
|
|
159
159
|
sig { params(popularity: Integer).void }
|
|
160
160
|
attr_writer :popularity
|
|
161
161
|
|
|
162
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
163
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
164
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
165
|
+
# public/private status, see
|
|
166
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
167
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
168
|
+
attr_reader :published
|
|
169
|
+
|
|
170
|
+
sig { params(published: T::Boolean).void }
|
|
171
|
+
attr_writer :published
|
|
172
|
+
|
|
162
173
|
# Included in the response when a content restriction is applied.
|
|
163
174
|
sig { returns(T.nilable(Spotted::AlbumRestrictionObject)) }
|
|
164
175
|
attr_reader :restrictions
|
|
@@ -205,6 +216,7 @@ module Spotted
|
|
|
205
216
|
genres: T::Array[String],
|
|
206
217
|
label: String,
|
|
207
218
|
popularity: Integer,
|
|
219
|
+
published: T::Boolean,
|
|
208
220
|
restrictions: Spotted::AlbumRestrictionObject::OrHash,
|
|
209
221
|
tracks:
|
|
210
222
|
Spotted::Models::AlbumBulkRetrieveResponse::Album::Tracks::OrHash,
|
|
@@ -254,6 +266,12 @@ module Spotted
|
|
|
254
266
|
# The popularity of the album. The value will be between 0 and 100, with 100 being
|
|
255
267
|
# the most popular.
|
|
256
268
|
popularity: nil,
|
|
269
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
270
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
271
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
272
|
+
# public/private status, see
|
|
273
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
274
|
+
published: nil,
|
|
257
275
|
# Included in the response when a content restriction is applied.
|
|
258
276
|
restrictions: nil,
|
|
259
277
|
# The tracks of the album.
|
|
@@ -286,6 +304,7 @@ module Spotted
|
|
|
286
304
|
genres: T::Array[String],
|
|
287
305
|
label: String,
|
|
288
306
|
popularity: Integer,
|
|
307
|
+
published: T::Boolean,
|
|
289
308
|
restrictions: Spotted::AlbumRestrictionObject,
|
|
290
309
|
tracks: Spotted::Models::AlbumBulkRetrieveResponse::Album::Tracks
|
|
291
310
|
}
|
|
@@ -415,6 +434,17 @@ module Spotted
|
|
|
415
434
|
end
|
|
416
435
|
attr_writer :items
|
|
417
436
|
|
|
437
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
438
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
439
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
440
|
+
# public/private status, see
|
|
441
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
442
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
443
|
+
attr_reader :published
|
|
444
|
+
|
|
445
|
+
sig { params(published: T::Boolean).void }
|
|
446
|
+
attr_writer :published
|
|
447
|
+
|
|
418
448
|
# The tracks of the album.
|
|
419
449
|
sig do
|
|
420
450
|
params(
|
|
@@ -424,7 +454,8 @@ module Spotted
|
|
|
424
454
|
offset: Integer,
|
|
425
455
|
previous: T.nilable(String),
|
|
426
456
|
total: Integer,
|
|
427
|
-
items: T::Array[Spotted::SimplifiedTrackObject::OrHash]
|
|
457
|
+
items: T::Array[Spotted::SimplifiedTrackObject::OrHash],
|
|
458
|
+
published: T::Boolean
|
|
428
459
|
).returns(T.attached_class)
|
|
429
460
|
end
|
|
430
461
|
def self.new(
|
|
@@ -440,7 +471,13 @@ module Spotted
|
|
|
440
471
|
previous:,
|
|
441
472
|
# The total number of items available to return.
|
|
442
473
|
total:,
|
|
443
|
-
items: nil
|
|
474
|
+
items: nil,
|
|
475
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
476
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
477
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
478
|
+
# public/private status, see
|
|
479
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
480
|
+
published: nil
|
|
444
481
|
)
|
|
445
482
|
end
|
|
446
483
|
|
|
@@ -453,7 +490,8 @@ module Spotted
|
|
|
453
490
|
offset: Integer,
|
|
454
491
|
previous: T.nilable(String),
|
|
455
492
|
total: Integer,
|
|
456
|
-
items: T::Array[Spotted::SimplifiedTrackObject]
|
|
493
|
+
items: T::Array[Spotted::SimplifiedTrackObject],
|
|
494
|
+
published: T::Boolean
|
|
457
495
|
}
|
|
458
496
|
)
|
|
459
497
|
end
|
|
@@ -8,6 +8,17 @@ module Spotted
|
|
|
8
8
|
T.any(Spotted::AlbumRestrictionObject, Spotted::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
12
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
13
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
14
|
+
# public/private status, see
|
|
15
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
16
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
17
|
+
attr_reader :published
|
|
18
|
+
|
|
19
|
+
sig { params(published: T::Boolean).void }
|
|
20
|
+
attr_writer :published
|
|
21
|
+
|
|
11
22
|
# The reason for the restriction. Albums may be restricted if the content is not
|
|
12
23
|
# available in a given market, to the user's subscription type, or when the user's
|
|
13
24
|
# account is set to not play explicit content. Additional reasons may be added in
|
|
@@ -26,10 +37,17 @@ module Spotted
|
|
|
26
37
|
|
|
27
38
|
sig do
|
|
28
39
|
params(
|
|
40
|
+
published: T::Boolean,
|
|
29
41
|
reason: Spotted::AlbumRestrictionObject::Reason::OrSymbol
|
|
30
42
|
).returns(T.attached_class)
|
|
31
43
|
end
|
|
32
44
|
def self.new(
|
|
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
|
+
published: nil,
|
|
33
51
|
# The reason for the restriction. Albums may be restricted if the content is not
|
|
34
52
|
# available in a given market, to the user's subscription type, or when the user's
|
|
35
53
|
# account is set to not play explicit content. Additional reasons may be added in
|
|
@@ -40,7 +58,10 @@ module Spotted
|
|
|
40
58
|
|
|
41
59
|
sig do
|
|
42
60
|
override.returns(
|
|
43
|
-
{
|
|
61
|
+
{
|
|
62
|
+
published: T::Boolean,
|
|
63
|
+
reason: Spotted::AlbumRestrictionObject::Reason::TaggedSymbol
|
|
64
|
+
}
|
|
44
65
|
)
|
|
45
66
|
end
|
|
46
67
|
def to_hash
|
|
@@ -122,6 +122,17 @@ module Spotted
|
|
|
122
122
|
sig { params(popularity: Integer).void }
|
|
123
123
|
attr_writer :popularity
|
|
124
124
|
|
|
125
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
126
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
127
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
128
|
+
# public/private status, see
|
|
129
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
130
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
131
|
+
attr_reader :published
|
|
132
|
+
|
|
133
|
+
sig { params(published: T::Boolean).void }
|
|
134
|
+
attr_writer :published
|
|
135
|
+
|
|
125
136
|
# Included in the response when a content restriction is applied.
|
|
126
137
|
sig { returns(T.nilable(Spotted::AlbumRestrictionObject)) }
|
|
127
138
|
attr_reader :restrictions
|
|
@@ -161,6 +172,7 @@ module Spotted
|
|
|
161
172
|
genres: T::Array[String],
|
|
162
173
|
label: String,
|
|
163
174
|
popularity: Integer,
|
|
175
|
+
published: T::Boolean,
|
|
164
176
|
restrictions: Spotted::AlbumRestrictionObject::OrHash,
|
|
165
177
|
tracks: Spotted::Models::AlbumRetrieveResponse::Tracks::OrHash,
|
|
166
178
|
type: Symbol
|
|
@@ -209,6 +221,12 @@ module Spotted
|
|
|
209
221
|
# The popularity of the album. The value will be between 0 and 100, with 100 being
|
|
210
222
|
# the most popular.
|
|
211
223
|
popularity: nil,
|
|
224
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
225
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
226
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
227
|
+
# public/private status, see
|
|
228
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
229
|
+
published: nil,
|
|
212
230
|
# Included in the response when a content restriction is applied.
|
|
213
231
|
restrictions: nil,
|
|
214
232
|
# The tracks of the album.
|
|
@@ -241,6 +259,7 @@ module Spotted
|
|
|
241
259
|
genres: T::Array[String],
|
|
242
260
|
label: String,
|
|
243
261
|
popularity: Integer,
|
|
262
|
+
published: T::Boolean,
|
|
244
263
|
restrictions: Spotted::AlbumRestrictionObject,
|
|
245
264
|
tracks: Spotted::Models::AlbumRetrieveResponse::Tracks
|
|
246
265
|
}
|
|
@@ -367,6 +386,17 @@ module Spotted
|
|
|
367
386
|
end
|
|
368
387
|
attr_writer :items
|
|
369
388
|
|
|
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
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
395
|
+
attr_reader :published
|
|
396
|
+
|
|
397
|
+
sig { params(published: T::Boolean).void }
|
|
398
|
+
attr_writer :published
|
|
399
|
+
|
|
370
400
|
# The tracks of the album.
|
|
371
401
|
sig do
|
|
372
402
|
params(
|
|
@@ -376,7 +406,8 @@ module Spotted
|
|
|
376
406
|
offset: Integer,
|
|
377
407
|
previous: T.nilable(String),
|
|
378
408
|
total: Integer,
|
|
379
|
-
items: T::Array[Spotted::SimplifiedTrackObject::OrHash]
|
|
409
|
+
items: T::Array[Spotted::SimplifiedTrackObject::OrHash],
|
|
410
|
+
published: T::Boolean
|
|
380
411
|
).returns(T.attached_class)
|
|
381
412
|
end
|
|
382
413
|
def self.new(
|
|
@@ -392,7 +423,13 @@ module Spotted
|
|
|
392
423
|
previous:,
|
|
393
424
|
# The total number of items available to return.
|
|
394
425
|
total:,
|
|
395
|
-
items: nil
|
|
426
|
+
items: nil,
|
|
427
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
428
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
429
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
430
|
+
# public/private status, see
|
|
431
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
432
|
+
published: nil
|
|
396
433
|
)
|
|
397
434
|
end
|
|
398
435
|
|
|
@@ -405,7 +442,8 @@ module Spotted
|
|
|
405
442
|
offset: Integer,
|
|
406
443
|
previous: T.nilable(String),
|
|
407
444
|
total: Integer,
|
|
408
|
-
items: T::Array[Spotted::SimplifiedTrackObject]
|
|
445
|
+
items: T::Array[Spotted::SimplifiedTrackObject],
|
|
446
|
+
published: T::Boolean
|
|
409
447
|
}
|
|
410
448
|
)
|
|
411
449
|
end
|
|
@@ -89,6 +89,17 @@ module Spotted
|
|
|
89
89
|
sig { returns(String) }
|
|
90
90
|
attr_accessor :uri
|
|
91
91
|
|
|
92
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
93
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
94
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
95
|
+
# public/private status, see
|
|
96
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
97
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
98
|
+
attr_reader :published
|
|
99
|
+
|
|
100
|
+
sig { params(published: T::Boolean).void }
|
|
101
|
+
attr_writer :published
|
|
102
|
+
|
|
92
103
|
# Included in the response when a content restriction is applied.
|
|
93
104
|
sig { returns(T.nilable(Spotted::AlbumRestrictionObject)) }
|
|
94
105
|
attr_reader :restrictions
|
|
@@ -114,6 +125,7 @@ module Spotted
|
|
|
114
125
|
Spotted::Models::ArtistListAlbumsResponse::ReleaseDatePrecision::OrSymbol,
|
|
115
126
|
total_tracks: Integer,
|
|
116
127
|
uri: String,
|
|
128
|
+
published: T::Boolean,
|
|
117
129
|
restrictions: Spotted::AlbumRestrictionObject::OrHash,
|
|
118
130
|
type: Symbol
|
|
119
131
|
).returns(T.attached_class)
|
|
@@ -152,6 +164,12 @@ module Spotted
|
|
|
152
164
|
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
153
165
|
# album.
|
|
154
166
|
uri:,
|
|
167
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
168
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
169
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
170
|
+
# public/private status, see
|
|
171
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
172
|
+
published: nil,
|
|
155
173
|
# Included in the response when a content restriction is applied.
|
|
156
174
|
restrictions: nil,
|
|
157
175
|
# The object type.
|
|
@@ -179,6 +197,7 @@ module Spotted
|
|
|
179
197
|
total_tracks: Integer,
|
|
180
198
|
type: Symbol,
|
|
181
199
|
uri: String,
|
|
200
|
+
published: T::Boolean,
|
|
182
201
|
restrictions: Spotted::AlbumRestrictionObject
|
|
183
202
|
}
|
|
184
203
|
)
|
|
@@ -68,6 +68,17 @@ module Spotted
|
|
|
68
68
|
sig { params(popularity: Integer).void }
|
|
69
69
|
attr_writer :popularity
|
|
70
70
|
|
|
71
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
72
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
73
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
74
|
+
# public/private status, see
|
|
75
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
76
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
77
|
+
attr_reader :published
|
|
78
|
+
|
|
79
|
+
sig { params(published: T::Boolean).void }
|
|
80
|
+
attr_writer :published
|
|
81
|
+
|
|
71
82
|
# The object type.
|
|
72
83
|
sig { returns(T.nilable(Spotted::ArtistObject::Type::TaggedSymbol)) }
|
|
73
84
|
attr_reader :type
|
|
@@ -93,6 +104,7 @@ module Spotted
|
|
|
93
104
|
images: T::Array[Spotted::ImageObject::OrHash],
|
|
94
105
|
name: String,
|
|
95
106
|
popularity: Integer,
|
|
107
|
+
published: T::Boolean,
|
|
96
108
|
type: Spotted::ArtistObject::Type::OrSymbol,
|
|
97
109
|
uri: String
|
|
98
110
|
).returns(T.attached_class)
|
|
@@ -118,6 +130,12 @@ module Spotted
|
|
|
118
130
|
# being the most popular. The artist's popularity is calculated from the
|
|
119
131
|
# popularity of all the artist's tracks.
|
|
120
132
|
popularity: nil,
|
|
133
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
134
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
135
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
136
|
+
# public/private status, see
|
|
137
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
138
|
+
published: nil,
|
|
121
139
|
# The object type.
|
|
122
140
|
type: nil,
|
|
123
141
|
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
@@ -137,6 +155,7 @@ module Spotted
|
|
|
137
155
|
images: T::Array[Spotted::ImageObject],
|
|
138
156
|
name: String,
|
|
139
157
|
popularity: Integer,
|
|
158
|
+
published: T::Boolean,
|
|
140
159
|
type: Spotted::ArtistObject::Type::TaggedSymbol,
|
|
141
160
|
uri: String
|
|
142
161
|
}
|
|
@@ -40,6 +40,17 @@ module Spotted
|
|
|
40
40
|
end
|
|
41
41
|
attr_writer :meta
|
|
42
42
|
|
|
43
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
44
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
45
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
46
|
+
# public/private status, see
|
|
47
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
48
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
49
|
+
attr_reader :published
|
|
50
|
+
|
|
51
|
+
sig { params(published: T::Boolean).void }
|
|
52
|
+
attr_writer :published
|
|
53
|
+
|
|
43
54
|
# Sections are defined by large variations in rhythm or timbre, e.g. chorus,
|
|
44
55
|
# verse, bridge, guitar solo, etc. Each section contains its own descriptions of
|
|
45
56
|
# tempo, key, mode, time_signature, and loudness.
|
|
@@ -109,6 +120,7 @@ module Spotted
|
|
|
109
120
|
bars: T::Array[Spotted::TimeIntervalObject::OrHash],
|
|
110
121
|
beats: T::Array[Spotted::TimeIntervalObject::OrHash],
|
|
111
122
|
meta: Spotted::Models::AudioAnalysisRetrieveResponse::Meta::OrHash,
|
|
123
|
+
published: T::Boolean,
|
|
112
124
|
sections:
|
|
113
125
|
T::Array[
|
|
114
126
|
Spotted::Models::AudioAnalysisRetrieveResponse::Section::OrHash
|
|
@@ -130,6 +142,12 @@ module Spotted
|
|
|
130
142
|
# multiples of tatums.
|
|
131
143
|
beats: nil,
|
|
132
144
|
meta: nil,
|
|
145
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
146
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
147
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
148
|
+
# public/private status, see
|
|
149
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
150
|
+
published: nil,
|
|
133
151
|
# Sections are defined by large variations in rhythm or timbre, e.g. chorus,
|
|
134
152
|
# verse, bridge, guitar solo, etc. Each section contains its own descriptions of
|
|
135
153
|
# tempo, key, mode, time_signature, and loudness.
|
|
@@ -149,6 +167,7 @@ module Spotted
|
|
|
149
167
|
bars: T::Array[Spotted::TimeIntervalObject],
|
|
150
168
|
beats: T::Array[Spotted::TimeIntervalObject],
|
|
151
169
|
meta: Spotted::Models::AudioAnalysisRetrieveResponse::Meta,
|
|
170
|
+
published: T::Boolean,
|
|
152
171
|
sections:
|
|
153
172
|
T::Array[Spotted::Models::AudioAnalysisRetrieveResponse::Section],
|
|
154
173
|
segments:
|
|
@@ -347,6 +366,17 @@ module Spotted
|
|
|
347
366
|
sig { params(mode_confidence: Float).void }
|
|
348
367
|
attr_writer :mode_confidence
|
|
349
368
|
|
|
369
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
370
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
371
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
372
|
+
# public/private status, see
|
|
373
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
374
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
375
|
+
attr_reader :published
|
|
376
|
+
|
|
377
|
+
sig { params(published: T::Boolean).void }
|
|
378
|
+
attr_writer :published
|
|
379
|
+
|
|
350
380
|
# The starting point (in seconds) of the section.
|
|
351
381
|
sig { returns(T.nilable(Float)) }
|
|
352
382
|
attr_reader :start
|
|
@@ -399,6 +429,7 @@ module Spotted
|
|
|
399
429
|
mode:
|
|
400
430
|
Spotted::Models::AudioAnalysisRetrieveResponse::Section::Mode::OrFloat,
|
|
401
431
|
mode_confidence: Float,
|
|
432
|
+
published: T::Boolean,
|
|
402
433
|
start: Float,
|
|
403
434
|
tempo: Float,
|
|
404
435
|
tempo_confidence: Float,
|
|
@@ -430,6 +461,12 @@ module Spotted
|
|
|
430
461
|
mode: nil,
|
|
431
462
|
# The confidence, from 0.0 to 1.0, of the reliability of the `mode`.
|
|
432
463
|
mode_confidence: nil,
|
|
464
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
465
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
466
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
467
|
+
# public/private status, see
|
|
468
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
469
|
+
published: nil,
|
|
433
470
|
# The starting point (in seconds) of the section.
|
|
434
471
|
start: nil,
|
|
435
472
|
# The overall estimated tempo of the section in beats per minute (BPM). In musical
|
|
@@ -461,6 +498,7 @@ module Spotted
|
|
|
461
498
|
mode:
|
|
462
499
|
Spotted::Models::AudioAnalysisRetrieveResponse::Section::Mode::TaggedFloat,
|
|
463
500
|
mode_confidence: Float,
|
|
501
|
+
published: T::Boolean,
|
|
464
502
|
start: Float,
|
|
465
503
|
tempo: Float,
|
|
466
504
|
tempo_confidence: Float,
|
|
@@ -594,6 +632,17 @@ module Spotted
|
|
|
594
632
|
sig { params(pitches: T::Array[Float]).void }
|
|
595
633
|
attr_writer :pitches
|
|
596
634
|
|
|
635
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
636
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
637
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
638
|
+
# public/private status, see
|
|
639
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
640
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
641
|
+
attr_reader :published
|
|
642
|
+
|
|
643
|
+
sig { params(published: T::Boolean).void }
|
|
644
|
+
attr_writer :published
|
|
645
|
+
|
|
597
646
|
# The starting point (in seconds) of the segment.
|
|
598
647
|
sig { returns(T.nilable(Float)) }
|
|
599
648
|
attr_reader :start
|
|
@@ -635,6 +684,7 @@ module Spotted
|
|
|
635
684
|
loudness_max_time: Float,
|
|
636
685
|
loudness_start: Float,
|
|
637
686
|
pitches: T::Array[Float],
|
|
687
|
+
published: T::Boolean,
|
|
638
688
|
start: Float,
|
|
639
689
|
timbre: T::Array[Float]
|
|
640
690
|
).returns(T.attached_class)
|
|
@@ -673,6 +723,12 @@ module Spotted
|
|
|
673
723
|
# the 12 vector indices are a combination of low-power spectrum values at their
|
|
674
724
|
# respective pitch frequencies. 
|
|
675
725
|
pitches: nil,
|
|
726
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
727
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
728
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
729
|
+
# public/private status, see
|
|
730
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
731
|
+
published: nil,
|
|
676
732
|
# The starting point (in seconds) of the segment.
|
|
677
733
|
start: nil,
|
|
678
734
|
# Timbre is the quality of a musical note or sound that distinguishes different
|
|
@@ -708,6 +764,7 @@ module Spotted
|
|
|
708
764
|
loudness_max_time: Float,
|
|
709
765
|
loudness_start: Float,
|
|
710
766
|
pitches: T::Array[Float],
|
|
767
|
+
published: T::Boolean,
|
|
711
768
|
start: Float,
|
|
712
769
|
timbre: T::Array[Float]
|
|
713
770
|
}
|