spotted 0.23.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.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/spotted/internal/type/base_model.rb +1 -0
  5. data/lib/spotted/models/album_bulk_retrieve_response.rb +26 -2
  6. data/lib/spotted/models/album_restriction_object.rb +13 -1
  7. data/lib/spotted/models/album_retrieve_response.rb +26 -2
  8. data/lib/spotted/models/artist_list_albums_response.rb +13 -1
  9. data/lib/spotted/models/artist_object.rb +13 -1
  10. data/lib/spotted/models/audio_analysis_retrieve_response.rb +39 -3
  11. data/lib/spotted/models/audio_feature_bulk_retrieve_response.rb +13 -1
  12. data/lib/spotted/models/audio_feature_retrieve_response.rb +13 -1
  13. data/lib/spotted/models/audiobook_base.rb +13 -1
  14. data/lib/spotted/models/audiobook_bulk_retrieve_response.rb +13 -1
  15. data/lib/spotted/models/audiobook_retrieve_response.rb +13 -1
  16. data/lib/spotted/models/author_object.rb +13 -1
  17. data/lib/spotted/models/browse/category_get_playlists_response.rb +13 -1
  18. data/lib/spotted/models/browse/category_list_response.rb +26 -2
  19. data/lib/spotted/models/browse/category_retrieve_response.rb +13 -1
  20. data/lib/spotted/models/browse_get_featured_playlists_response.rb +13 -1
  21. data/lib/spotted/models/browse_get_new_releases_response.rb +26 -2
  22. data/lib/spotted/models/chapter_bulk_retrieve_response.rb +13 -1
  23. data/lib/spotted/models/chapter_restriction_object.rb +13 -1
  24. data/lib/spotted/models/chapter_retrieve_response.rb +13 -1
  25. data/lib/spotted/models/copyright_object.rb +13 -1
  26. data/lib/spotted/models/episode_object.rb +13 -1
  27. data/lib/spotted/models/episode_restriction_object.rb +13 -1
  28. data/lib/spotted/models/external_id_object.rb +13 -1
  29. data/lib/spotted/models/external_url_object.rb +13 -1
  30. data/lib/spotted/models/followers_object.rb +13 -1
  31. data/lib/spotted/models/image_object.rb +13 -1
  32. data/lib/spotted/models/linked_track_object.rb +13 -1
  33. data/lib/spotted/models/me/album_list_response.rb +39 -3
  34. data/lib/spotted/models/me/audiobook_list_response.rb +26 -2
  35. data/lib/spotted/models/me/context_object.rb +13 -1
  36. data/lib/spotted/models/me/device_object.rb +13 -1
  37. data/lib/spotted/models/me/episode_list_response.rb +13 -1
  38. data/lib/spotted/models/me/following_bulk_retrieve_response.rb +30 -2
  39. data/lib/spotted/models/me/player/queue_get_response.rb +16 -1
  40. data/lib/spotted/models/me/player_get_currently_playing_response.rb +30 -2
  41. data/lib/spotted/models/me/player_get_state_response.rb +29 -2
  42. data/lib/spotted/models/me/player_list_recently_played_response.rb +16 -1
  43. data/lib/spotted/models/me/show_list_response.rb +13 -1
  44. data/lib/spotted/models/me/track_list_response.rb +13 -1
  45. data/lib/spotted/models/me_retrieve_response.rb +26 -2
  46. data/lib/spotted/models/narrator_object.rb +13 -1
  47. data/lib/spotted/models/paging_playlist_object.rb +13 -1
  48. data/lib/spotted/models/playlist_retrieve_response.rb +21 -8
  49. data/lib/spotted/models/playlist_track_object.rb +13 -1
  50. data/lib/spotted/models/playlist_tracks_ref_object.rb +13 -1
  51. data/lib/spotted/models/playlist_user_object.rb +13 -1
  52. data/lib/spotted/models/recommendation_get_response.rb +26 -2
  53. data/lib/spotted/models/resume_point_object.rb +13 -1
  54. data/lib/spotted/models/search_query_response.rb +91 -7
  55. data/lib/spotted/models/show_base.rb +13 -1
  56. data/lib/spotted/models/show_retrieve_response.rb +13 -1
  57. data/lib/spotted/models/simplified_artist_object.rb +13 -1
  58. data/lib/spotted/models/simplified_chapter_object.rb +13 -1
  59. data/lib/spotted/models/simplified_episode_object.rb +13 -1
  60. data/lib/spotted/models/simplified_playlist_object.rb +8 -7
  61. data/lib/spotted/models/simplified_track_object.rb +13 -1
  62. data/lib/spotted/models/time_interval_object.rb +16 -1
  63. data/lib/spotted/models/track_object.rb +26 -2
  64. data/lib/spotted/models/track_restriction_object.rb +13 -1
  65. data/lib/spotted/models/user_retrieve_profile_response.rb +13 -1
  66. data/lib/spotted/models/users/playlist_create_response.rb +21 -8
  67. data/lib/spotted/version.rb +1 -1
  68. data/rbi/spotted/models/album_bulk_retrieve_response.rbi +41 -3
  69. data/rbi/spotted/models/album_restriction_object.rbi +22 -1
  70. data/rbi/spotted/models/album_retrieve_response.rbi +41 -3
  71. data/rbi/spotted/models/artist_list_albums_response.rbi +19 -0
  72. data/rbi/spotted/models/artist_object.rbi +19 -0
  73. data/rbi/spotted/models/audio_analysis_retrieve_response.rbi +57 -0
  74. data/rbi/spotted/models/audio_feature_bulk_retrieve_response.rbi +19 -0
  75. data/rbi/spotted/models/audio_feature_retrieve_response.rbi +19 -0
  76. data/rbi/spotted/models/audiobook_base.rbi +20 -1
  77. data/rbi/spotted/models/audiobook_bulk_retrieve_response.rbi +22 -3
  78. data/rbi/spotted/models/audiobook_retrieve_response.rbi +22 -3
  79. data/rbi/spotted/models/author_object.rbi +22 -3
  80. data/rbi/spotted/models/browse/category_get_playlists_response.rbi +25 -3
  81. data/rbi/spotted/models/browse/category_list_response.rbi +44 -6
  82. data/rbi/spotted/models/browse/category_retrieve_response.rbi +22 -3
  83. data/rbi/spotted/models/browse_get_featured_playlists_response.rbi +25 -3
  84. data/rbi/spotted/models/browse_get_new_releases_response.rbi +41 -3
  85. data/rbi/spotted/models/chapter_bulk_retrieve_response.rbi +19 -0
  86. data/rbi/spotted/models/chapter_restriction_object.rbi +21 -2
  87. data/rbi/spotted/models/chapter_retrieve_response.rbi +19 -0
  88. data/rbi/spotted/models/copyright_object.rbi +25 -2
  89. data/rbi/spotted/models/episode_object.rbi +19 -0
  90. data/rbi/spotted/models/episode_restriction_object.rbi +21 -2
  91. data/rbi/spotted/models/external_id_object.rbi +28 -2
  92. data/rbi/spotted/models/external_url_object.rbi +21 -2
  93. data/rbi/spotted/models/followers_object.rbi +27 -4
  94. data/rbi/spotted/models/image_object.rbi +26 -3
  95. data/rbi/spotted/models/linked_track_object.rbi +19 -0
  96. data/rbi/spotted/models/me/album_list_response.rbi +63 -6
  97. data/rbi/spotted/models/me/audiobook_list_response.rbi +44 -6
  98. data/rbi/spotted/models/me/context_object.rbi +19 -0
  99. data/rbi/spotted/models/me/device_object.rbi +19 -0
  100. data/rbi/spotted/models/me/episode_list_response.rbi +27 -3
  101. data/rbi/spotted/models/me/following_bulk_retrieve_response.rbi +47 -3
  102. data/rbi/spotted/models/me/player/queue_get_response.rbi +19 -0
  103. data/rbi/spotted/models/me/player_get_currently_playing_response.rbi +38 -0
  104. data/rbi/spotted/models/me/player_get_state_response.rbi +38 -0
  105. data/rbi/spotted/models/me/player_list_recently_played_response.rbi +19 -0
  106. data/rbi/spotted/models/me/show_list_response.rbi +27 -4
  107. data/rbi/spotted/models/me/track_list_response.rbi +29 -4
  108. data/rbi/spotted/models/me_retrieve_response.rbi +47 -5
  109. data/rbi/spotted/models/narrator_object.rbi +22 -3
  110. data/rbi/spotted/models/paging_playlist_object.rbi +22 -3
  111. data/rbi/spotted/models/playlist_retrieve_response.rbi +36 -15
  112. data/rbi/spotted/models/playlist_track_object.rbi +19 -0
  113. data/rbi/spotted/models/playlist_tracks_ref_object.rbi +27 -2
  114. data/rbi/spotted/models/playlist_user_object.rbi +19 -0
  115. data/rbi/spotted/models/recommendation_get_response.rbi +41 -3
  116. data/rbi/spotted/models/resume_point_object.rbi +27 -4
  117. data/rbi/spotted/models/search_query_response.rbi +151 -18
  118. data/rbi/spotted/models/show_base.rbi +20 -1
  119. data/rbi/spotted/models/show_retrieve_response.rbi +22 -3
  120. data/rbi/spotted/models/simplified_artist_object.rbi +19 -0
  121. data/rbi/spotted/models/simplified_chapter_object.rbi +19 -0
  122. data/rbi/spotted/models/simplified_episode_object.rbi +19 -0
  123. data/rbi/spotted/models/simplified_playlist_object.rbi +14 -12
  124. data/rbi/spotted/models/simplified_track_object.rbi +19 -0
  125. data/rbi/spotted/models/time_interval_object.rbi +31 -4
  126. data/rbi/spotted/models/track_object.rbi +38 -0
  127. data/rbi/spotted/models/track_restriction_object.rbi +21 -2
  128. data/rbi/spotted/models/user_retrieve_profile_response.rbi +19 -0
  129. data/rbi/spotted/models/users/playlist_create_response.rbi +36 -15
  130. data/sig/spotted/models/album_bulk_retrieve_response.rbs +17 -3
  131. data/sig/spotted/models/album_restriction_object.rbs +10 -1
  132. data/sig/spotted/models/album_retrieve_response.rbs +17 -3
  133. data/sig/spotted/models/artist_list_albums_response.rbs +7 -0
  134. data/sig/spotted/models/artist_object.rbs +7 -0
  135. data/sig/spotted/models/audio_analysis_retrieve_response.rbs +21 -0
  136. data/sig/spotted/models/audio_feature_bulk_retrieve_response.rbs +7 -0
  137. data/sig/spotted/models/audio_feature_retrieve_response.rbs +7 -0
  138. data/sig/spotted/models/audiobook_base.rbs +9 -2
  139. data/sig/spotted/models/audiobook_bulk_retrieve_response.rbs +10 -3
  140. data/sig/spotted/models/audiobook_retrieve_response.rbs +10 -3
  141. data/sig/spotted/models/author_object.rbs +7 -3
  142. data/sig/spotted/models/browse/category_get_playlists_response.rbs +13 -3
  143. data/sig/spotted/models/browse/category_list_response.rbs +20 -6
  144. data/sig/spotted/models/browse/category_retrieve_response.rbs +10 -3
  145. data/sig/spotted/models/browse_get_featured_playlists_response.rbs +13 -3
  146. data/sig/spotted/models/browse_get_new_releases_response.rbs +17 -3
  147. data/sig/spotted/models/chapter_bulk_retrieve_response.rbs +7 -0
  148. data/sig/spotted/models/chapter_restriction_object.rbs +7 -3
  149. data/sig/spotted/models/chapter_retrieve_response.rbs +7 -0
  150. data/sig/spotted/models/copyright_object.rbs +7 -3
  151. data/sig/spotted/models/episode_object.rbs +7 -0
  152. data/sig/spotted/models/episode_restriction_object.rbs +7 -3
  153. data/sig/spotted/models/external_id_object.rbs +19 -4
  154. data/sig/spotted/models/external_url_object.rbs +7 -3
  155. data/sig/spotted/models/followers_object.rbs +11 -3
  156. data/sig/spotted/models/image_object.rbs +18 -3
  157. data/sig/spotted/models/linked_track_object.rbs +7 -0
  158. data/sig/spotted/models/me/album_list_response.rbs +30 -6
  159. data/sig/spotted/models/me/audiobook_list_response.rbs +20 -6
  160. data/sig/spotted/models/me/context_object.rbs +7 -0
  161. data/sig/spotted/models/me/device_object.rbs +7 -0
  162. data/sig/spotted/models/me/episode_list_response.rbs +12 -3
  163. data/sig/spotted/models/me/following_bulk_retrieve_response.rbs +18 -3
  164. data/sig/spotted/models/me/player/queue_get_response.rbs +7 -0
  165. data/sig/spotted/models/me/player_get_currently_playing_response.rbs +14 -0
  166. data/sig/spotted/models/me/player_get_state_response.rbs +14 -0
  167. data/sig/spotted/models/me/player_list_recently_played_response.rbs +7 -0
  168. data/sig/spotted/models/me/show_list_response.rbs +16 -3
  169. data/sig/spotted/models/me/track_list_response.rbs +16 -3
  170. data/sig/spotted/models/me_retrieve_response.rbs +23 -3
  171. data/sig/spotted/models/narrator_object.rbs +7 -3
  172. data/sig/spotted/models/paging_playlist_object.rbs +10 -3
  173. data/sig/spotted/models/playlist_retrieve_response.rbs +15 -8
  174. data/sig/spotted/models/playlist_track_object.rbs +7 -0
  175. data/sig/spotted/models/playlist_tracks_ref_object.rbs +8 -3
  176. data/sig/spotted/models/playlist_user_object.rbs +7 -0
  177. data/sig/spotted/models/recommendation_get_response.rbs +17 -3
  178. data/sig/spotted/models/resume_point_object.rbs +11 -2
  179. data/sig/spotted/models/search_query_response.rbs +67 -18
  180. data/sig/spotted/models/show_base.rbs +9 -2
  181. data/sig/spotted/models/show_retrieve_response.rbs +10 -3
  182. data/sig/spotted/models/simplified_artist_object.rbs +7 -0
  183. data/sig/spotted/models/simplified_chapter_object.rbs +7 -0
  184. data/sig/spotted/models/simplified_episode_object.rbs +7 -0
  185. data/sig/spotted/models/simplified_playlist_object.rbs +5 -5
  186. data/sig/spotted/models/simplified_track_object.rbs +7 -0
  187. data/sig/spotted/models/time_interval_object.rbs +12 -2
  188. data/sig/spotted/models/track_object.rbs +14 -0
  189. data/sig/spotted/models/track_restriction_object.rbs +7 -3
  190. data/sig/spotted/models/user_retrieve_profile_response.rbs +7 -0
  191. data/sig/spotted/models/users/playlist_create_response.rbs +15 -8
  192. 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
@@ -65,14 +65,15 @@ module Spotted
65
65
  # @return [Spotted::Models::Users::PlaylistCreateResponse::Owner, nil]
66
66
  optional :owner, -> { Spotted::Models::Users::PlaylistCreateResponse::Owner }
67
67
 
68
- # @!attribute public
69
- # The playlist's public/private status (if it is added to the user's profile):
70
- # `true` the playlist is public, `false` the playlist is private, `null` the
71
- # playlist status is not relevant. For more about public/private status, see
68
+ # @!attribute published
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]
75
- optional :public, Spotted::Internal::Type::Boolean
76
+ optional :published, Spotted::Internal::Type::Boolean
76
77
 
77
78
  # @!attribute snapshot_id
78
79
  # The version identifier for the current playlist. Can be supplied in other
@@ -100,7 +101,7 @@ module Spotted
100
101
  # @return [String, nil]
101
102
  optional :uri, String
102
103
 
103
- # @!method initialize(id: nil, collaborative: nil, description: nil, external_urls: nil, followers: nil, href: nil, images: nil, name: nil, owner: nil, public: nil, snapshot_id: nil, tracks: nil, type: nil, uri: nil)
104
+ # @!method initialize(id: nil, collaborative: nil, description: nil, external_urls: nil, followers: nil, href: nil, images: nil, name: nil, owner: nil, published: nil, snapshot_id: nil, tracks: nil, type: nil, uri: nil)
104
105
  # Some parameter documentations has been truncated, see
105
106
  # {Spotted::Models::Users::PlaylistCreateResponse} for more details.
106
107
  #
@@ -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 public [Boolean] The playlist's public/private status (if it is added to the user's profile): `tr
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
- # @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spotted
4
- VERSION = "0.23.0"
4
+ VERSION = "0.25.0"
5
5
  end
@@ -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
- { reason: Spotted::AlbumRestrictionObject::Reason::TaggedSymbol }
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
  }