spotted 0.11.0 → 0.12.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 (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/spotted/client.rb +60 -1
  5. data/lib/spotted/models/album_bulk_retrieve_response.rb +13 -25
  6. data/lib/spotted/models/album_retrieve_response.rb +13 -25
  7. data/lib/spotted/models/artist_list_albums_response.rb +5 -17
  8. data/lib/spotted/models/audio_analysis_retrieve_response.rb +3 -8
  9. data/lib/spotted/models/audiobook_base.rb +4 -16
  10. data/lib/spotted/models/audiobook_bulk_retrieve_response.rb +8 -8
  11. data/lib/spotted/models/audiobook_retrieve_response.rb +8 -8
  12. data/lib/spotted/models/browse/category_list_response.rb +9 -9
  13. data/lib/spotted/models/browse_get_new_releases_response.rb +14 -26
  14. data/lib/spotted/models/chapter_bulk_retrieve_response.rb +5 -17
  15. data/lib/spotted/models/chapter_retrieve_response.rb +5 -17
  16. data/lib/spotted/models/episode_object.rb +5 -17
  17. data/lib/spotted/models/me/album_list_response.rb +13 -25
  18. data/lib/spotted/models/me/audiobook_list_response.rb +8 -8
  19. data/lib/spotted/models/me/following_bulk_retrieve_params.rb +5 -15
  20. data/lib/spotted/models/paging_playlist_object.rb +8 -8
  21. data/lib/spotted/models/playlist_retrieve_response.rb +8 -8
  22. data/lib/spotted/models/search_query_response.rb +54 -66
  23. data/lib/spotted/models/show_base.rb +4 -16
  24. data/lib/spotted/models/show_retrieve_response.rb +8 -8
  25. data/lib/spotted/models/simplified_chapter_object.rb +5 -17
  26. data/lib/spotted/models/simplified_episode_object.rb +5 -17
  27. data/lib/spotted/models/track_object.rb +5 -17
  28. data/lib/spotted/models/users/playlist_create_response.rb +8 -8
  29. data/lib/spotted/resources/me/following.rb +3 -3
  30. data/lib/spotted/resources/playlists/images.rb +3 -3
  31. data/lib/spotted/version.rb +1 -1
  32. data/rbi/spotted/models/album_bulk_retrieve_response.rbi +21 -52
  33. data/rbi/spotted/models/album_retrieve_response.rbi +21 -43
  34. data/rbi/spotted/models/artist_list_albums_response.rbi +7 -36
  35. data/rbi/spotted/models/audio_analysis_retrieve_response.rbi +3 -8
  36. data/rbi/spotted/models/audiobook_base.rbi +7 -25
  37. data/rbi/spotted/models/audiobook_bulk_retrieve_response.rbi +16 -9
  38. data/rbi/spotted/models/audiobook_retrieve_response.rbi +14 -9
  39. data/rbi/spotted/models/browse/category_list_response.rbi +31 -19
  40. data/rbi/spotted/models/browse_get_new_releases_response.rbi +38 -62
  41. data/rbi/spotted/models/chapter_bulk_retrieve_response.rbi +7 -43
  42. data/rbi/spotted/models/chapter_retrieve_response.rbi +7 -36
  43. data/rbi/spotted/models/episode_object.rbi +7 -24
  44. data/rbi/spotted/models/me/album_list_response.rbi +23 -52
  45. data/rbi/spotted/models/me/audiobook_list_response.rbi +18 -9
  46. data/rbi/spotted/models/me/following_bulk_retrieve_params.rbi +5 -34
  47. data/rbi/spotted/models/paging_playlist_object.rbi +14 -9
  48. data/rbi/spotted/models/playlist_retrieve_response.rbi +14 -9
  49. data/rbi/spotted/models/search_query_response.rbi +96 -101
  50. data/rbi/spotted/models/show_base.rbi +7 -23
  51. data/rbi/spotted/models/show_retrieve_response.rbi +14 -9
  52. data/rbi/spotted/models/simplified_chapter_object.rbi +7 -27
  53. data/rbi/spotted/models/simplified_episode_object.rbi +7 -27
  54. data/rbi/spotted/models/track_object.rbi +7 -26
  55. data/rbi/spotted/models/users/playlist_create_response.rbi +14 -9
  56. data/rbi/spotted/resources/me/following.rbi +3 -3
  57. data/rbi/spotted/resources/playlists/images.rbi +1 -1
  58. data/sig/spotted/models/album_bulk_retrieve_response.rbs +17 -23
  59. data/sig/spotted/models/album_retrieve_response.rbs +17 -23
  60. data/sig/spotted/models/artist_list_albums_response.rbs +5 -15
  61. data/sig/spotted/models/audio_analysis_retrieve_response.rbs +3 -8
  62. data/sig/spotted/models/audiobook_base.rbs +5 -15
  63. data/sig/spotted/models/audiobook_bulk_retrieve_response.rbs +12 -8
  64. data/sig/spotted/models/audiobook_retrieve_response.rbs +12 -8
  65. data/sig/spotted/models/browse/category_list_response.rbs +12 -8
  66. data/sig/spotted/models/browse_get_new_releases_response.rbs +17 -23
  67. data/sig/spotted/models/chapter_bulk_retrieve_response.rbs +5 -15
  68. data/sig/spotted/models/chapter_retrieve_response.rbs +5 -15
  69. data/sig/spotted/models/episode_object.rbs +5 -15
  70. data/sig/spotted/models/me/album_list_response.rbs +17 -23
  71. data/sig/spotted/models/me/audiobook_list_response.rbs +12 -8
  72. data/sig/spotted/models/me/following_bulk_retrieve_params.rbs +4 -18
  73. data/sig/spotted/models/paging_playlist_object.rbs +12 -8
  74. data/sig/spotted/models/playlist_retrieve_response.rbs +12 -8
  75. data/sig/spotted/models/search_query_response.rbs +75 -63
  76. data/sig/spotted/models/show_base.rbs +5 -15
  77. data/sig/spotted/models/show_retrieve_response.rbs +12 -8
  78. data/sig/spotted/models/simplified_chapter_object.rbs +5 -15
  79. data/sig/spotted/models/simplified_episode_object.rbs +5 -15
  80. data/sig/spotted/models/track_object.rbs +5 -15
  81. data/sig/spotted/models/users/playlist_create_response.rbs +12 -8
  82. data/sig/spotted/resources/me/following.rbs +1 -1
  83. data/sig/spotted/resources/playlists/images.rbs +1 -1
  84. metadata +2 -2
@@ -122,8 +122,8 @@ module Spotted
122
122
  # @!attribute type
123
123
  # The object type.
124
124
  #
125
- # @return [Symbol, Spotted::Models::ChapterBulkRetrieveResponse::Chapter::Type]
126
- required :type, enum: -> { Spotted::Models::ChapterBulkRetrieveResponse::Chapter::Type }
125
+ # @return [Symbol, :episode]
126
+ required :type, const: :episode
127
127
 
128
128
  # @!attribute uri
129
129
  # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
@@ -152,7 +152,7 @@ module Spotted
152
152
  # @return [Spotted::Models::ResumePointObject, nil]
153
153
  optional :resume_point, -> { Spotted::ResumePointObject }
154
154
 
155
- # @!method initialize(id:, audio_preview_url:, audiobook:, chapter_number:, description:, duration_ms:, explicit:, external_urls:, href:, html_description:, images:, is_playable:, languages:, name:, release_date:, release_date_precision:, type:, uri:, available_markets: nil, restrictions: nil, resume_point: nil)
155
+ # @!method initialize(id:, audio_preview_url:, audiobook:, chapter_number:, description:, duration_ms:, explicit:, external_urls:, href:, html_description:, images:, is_playable:, languages:, name:, release_date:, release_date_precision:, uri:, available_markets: nil, restrictions: nil, resume_point: nil, type: :episode)
156
156
  # Some parameter documentations has been truncated, see
157
157
  # {Spotted::Models::ChapterBulkRetrieveResponse::Chapter} for more details.
158
158
  #
@@ -188,8 +188,6 @@ module Spotted
188
188
  #
189
189
  # @param release_date_precision [Symbol, Spotted::Models::ChapterBulkRetrieveResponse::Chapter::ReleaseDatePrecision] The precision with which `release_date` value is known.
190
190
  #
191
- # @param type [Symbol, Spotted::Models::ChapterBulkRetrieveResponse::Chapter::Type] The object type.
192
- #
193
191
  # @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the chap
194
192
  #
195
193
  # @param available_markets [Array<String>] A list of the countries in which the chapter can be played, identified by their
@@ -197,6 +195,8 @@ module Spotted
197
195
  # @param restrictions [Spotted::Models::ChapterRestrictionObject] Included in the response when a content restriction is applied.
198
196
  #
199
197
  # @param resume_point [Spotted::Models::ResumePointObject] The user's most recent position in the chapter. Set if the supplied access token
198
+ #
199
+ # @param type [Symbol, :episode] The object type.
200
200
 
201
201
  # The precision with which `release_date` value is known.
202
202
  #
@@ -211,18 +211,6 @@ module Spotted
211
211
  # @!method self.values
212
212
  # @return [Array<Symbol>]
213
213
  end
214
-
215
- # The object type.
216
- #
217
- # @see Spotted::Models::ChapterBulkRetrieveResponse::Chapter#type
218
- module Type
219
- extend Spotted::Internal::Type::Enum
220
-
221
- EPISODE = :episode
222
-
223
- # @!method self.values
224
- # @return [Array<Symbol>]
225
- end
226
214
  end
227
215
  end
228
216
  end
@@ -112,8 +112,8 @@ module Spotted
112
112
  # @!attribute type
113
113
  # The object type.
114
114
  #
115
- # @return [Symbol, Spotted::Models::ChapterRetrieveResponse::Type]
116
- required :type, enum: -> { Spotted::Models::ChapterRetrieveResponse::Type }
115
+ # @return [Symbol, :episode]
116
+ required :type, const: :episode
117
117
 
118
118
  # @!attribute uri
119
119
  # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
@@ -142,7 +142,7 @@ module Spotted
142
142
  # @return [Spotted::Models::ResumePointObject, nil]
143
143
  optional :resume_point, -> { Spotted::ResumePointObject }
144
144
 
145
- # @!method initialize(id:, audio_preview_url:, audiobook:, chapter_number:, description:, duration_ms:, explicit:, external_urls:, href:, html_description:, images:, is_playable:, languages:, name:, release_date:, release_date_precision:, type:, uri:, available_markets: nil, restrictions: nil, resume_point: nil)
145
+ # @!method initialize(id:, audio_preview_url:, audiobook:, chapter_number:, description:, duration_ms:, explicit:, external_urls:, href:, html_description:, images:, is_playable:, languages:, name:, release_date:, release_date_precision:, uri:, available_markets: nil, restrictions: nil, resume_point: nil, type: :episode)
146
146
  # Some parameter documentations has been truncated, see
147
147
  # {Spotted::Models::ChapterRetrieveResponse} for more details.
148
148
  #
@@ -178,8 +178,6 @@ module Spotted
178
178
  #
179
179
  # @param release_date_precision [Symbol, Spotted::Models::ChapterRetrieveResponse::ReleaseDatePrecision] The precision with which `release_date` value is known.
180
180
  #
181
- # @param type [Symbol, Spotted::Models::ChapterRetrieveResponse::Type] The object type.
182
- #
183
181
  # @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the chap
184
182
  #
185
183
  # @param available_markets [Array<String>] A list of the countries in which the chapter can be played, identified by their
@@ -187,6 +185,8 @@ module Spotted
187
185
  # @param restrictions [Spotted::Models::ChapterRestrictionObject] Included in the response when a content restriction is applied.
188
186
  #
189
187
  # @param resume_point [Spotted::Models::ResumePointObject] The user's most recent position in the chapter. Set if the supplied access token
188
+ #
189
+ # @param type [Symbol, :episode] The object type.
190
190
 
191
191
  # The precision with which `release_date` value is known.
192
192
  #
@@ -201,18 +201,6 @@ module Spotted
201
201
  # @!method self.values
202
202
  # @return [Array<Symbol>]
203
203
  end
204
-
205
- # The object type.
206
- #
207
- # @see Spotted::Models::ChapterRetrieveResponse#type
208
- module Type
209
- extend Spotted::Internal::Type::Enum
210
-
211
- EPISODE = :episode
212
-
213
- # @!method self.values
214
- # @return [Array<Symbol>]
215
- end
216
204
  end
217
205
  end
218
206
  end
@@ -110,8 +110,8 @@ module Spotted
110
110
  # @!attribute type
111
111
  # The object type.
112
112
  #
113
- # @return [Symbol, Spotted::Models::EpisodeObject::Type]
114
- required :type, enum: -> { Spotted::EpisodeObject::Type }
113
+ # @return [Symbol, :episode]
114
+ required :type, const: :episode
115
115
 
116
116
  # @!attribute uri
117
117
  # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
@@ -143,7 +143,7 @@ module Spotted
143
143
  # @return [Spotted::Models::ResumePointObject, nil]
144
144
  optional :resume_point, -> { Spotted::ResumePointObject }
145
145
 
146
- # @!method initialize(id:, audio_preview_url:, description:, duration_ms:, explicit:, external_urls:, href:, html_description:, images:, is_externally_hosted:, is_playable:, languages:, name:, release_date:, release_date_precision:, show:, type:, uri:, language: nil, restrictions: nil, resume_point: nil)
146
+ # @!method initialize(id:, audio_preview_url:, description:, duration_ms:, explicit:, external_urls:, href:, html_description:, images:, is_externally_hosted:, is_playable:, languages:, name:, release_date:, release_date_precision:, show:, uri:, language: nil, restrictions: nil, resume_point: nil, type: :episode)
147
147
  # Some parameter documentations has been truncated, see
148
148
  # {Spotted::Models::EpisodeObject} for more details.
149
149
  #
@@ -179,8 +179,6 @@ module Spotted
179
179
  #
180
180
  # @param show [Spotted::Models::ShowBase] The show on which the episode belongs.
181
181
  #
182
- # @param type [Symbol, Spotted::Models::EpisodeObject::Type] The object type.
183
- #
184
182
  # @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the epis
185
183
  #
186
184
  # @param language [String] The language used in the episode, identified by a [ISO 639](https://en.wikipedia
@@ -188,6 +186,8 @@ module Spotted
188
186
  # @param restrictions [Spotted::Models::EpisodeRestrictionObject] Included in the response when a content restriction is applied.
189
187
  #
190
188
  # @param resume_point [Spotted::Models::ResumePointObject] The user's most recent position in the episode. Set if the supplied access token
189
+ #
190
+ # @param type [Symbol, :episode] The object type.
191
191
 
192
192
  # The precision with which `release_date` value is known.
193
193
  #
@@ -202,18 +202,6 @@ module Spotted
202
202
  # @!method self.values
203
203
  # @return [Array<Symbol>]
204
204
  end
205
-
206
- # The object type.
207
- #
208
- # @see Spotted::Models::EpisodeObject#type
209
- module Type
210
- extend Spotted::Internal::Type::Enum
211
-
212
- EPISODE = :episode
213
-
214
- # @!method self.values
215
- # @return [Array<Symbol>]
216
- end
217
205
  end
218
206
  end
219
207
  end
@@ -100,8 +100,8 @@ module Spotted
100
100
  # @!attribute type
101
101
  # The object type.
102
102
  #
103
- # @return [Symbol, Spotted::Models::Me::AlbumListResponse::Album::Type]
104
- required :type, enum: -> { Spotted::Models::Me::AlbumListResponse::Album::Type }
103
+ # @return [Symbol, :album]
104
+ required :type, const: :album
105
105
 
106
106
  # @!attribute uri
107
107
  # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
@@ -162,7 +162,7 @@ module Spotted
162
162
  # @return [Spotted::Models::Me::AlbumListResponse::Album::Tracks, nil]
163
163
  optional :tracks, -> { Spotted::Models::Me::AlbumListResponse::Album::Tracks }
164
164
 
165
- # @!method initialize(id:, album_type:, available_markets:, external_urls:, href:, images:, name:, release_date:, release_date_precision:, total_tracks:, type:, uri:, artists: nil, copyrights: nil, external_ids: nil, genres: nil, label: nil, popularity: nil, restrictions: nil, tracks: nil)
165
+ # @!method initialize(id:, album_type:, available_markets:, external_urls:, href:, images:, name:, release_date:, release_date_precision:, total_tracks:, uri:, artists: nil, copyrights: nil, external_ids: nil, genres: nil, label: nil, popularity: nil, restrictions: nil, tracks: nil, type: :album)
166
166
  # Some parameter documentations has been truncated, see
167
167
  # {Spotted::Models::Me::AlbumListResponse::Album} for more details.
168
168
  #
@@ -188,8 +188,6 @@ module Spotted
188
188
  #
189
189
  # @param total_tracks [Integer] The number of tracks in the album.
190
190
  #
191
- # @param type [Symbol, Spotted::Models::Me::AlbumListResponse::Album::Type] The object type.
192
- #
193
191
  # @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the albu
194
192
  #
195
193
  # @param artists [Array<Spotted::Models::SimplifiedArtistObject>] The artists of the album. Each artist object includes a link in `href` to more d
@@ -207,6 +205,8 @@ module Spotted
207
205
  # @param restrictions [Spotted::Models::AlbumRestrictionObject] Included in the response when a content restriction is applied.
208
206
  #
209
207
  # @param tracks [Spotted::Models::Me::AlbumListResponse::Album::Tracks] The tracks of the album.
208
+ #
209
+ # @param type [Symbol, :album] The object type.
210
210
 
211
211
  # The type of the album.
212
212
  #
@@ -236,18 +236,6 @@ module Spotted
236
236
  # @return [Array<Symbol>]
237
237
  end
238
238
 
239
- # The object type.
240
- #
241
- # @see Spotted::Models::Me::AlbumListResponse::Album#type
242
- module Type
243
- extend Spotted::Internal::Type::Enum
244
-
245
- ALBUM = :album
246
-
247
- # @!method self.values
248
- # @return [Array<Symbol>]
249
- end
250
-
251
239
  # @see Spotted::Models::Me::AlbumListResponse::Album#tracks
252
240
  class Tracks < Spotted::Internal::Type::BaseModel
253
241
  # @!attribute href
@@ -256,11 +244,6 @@ module Spotted
256
244
  # @return [String]
257
245
  required :href, String
258
246
 
259
- # @!attribute items
260
- #
261
- # @return [Array<Spotted::Models::SimplifiedTrackObject>]
262
- required :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedTrackObject] }
263
-
264
247
  # @!attribute limit
265
248
  # The maximum number of items in the response (as set in the query or by default).
266
249
  #
@@ -291,7 +274,12 @@ module Spotted
291
274
  # @return [Integer]
292
275
  required :total, Integer
293
276
 
294
- # @!method initialize(href:, items:, limit:, next_:, offset:, previous:, total:)
277
+ # @!attribute items
278
+ #
279
+ # @return [Array<Spotted::Models::SimplifiedTrackObject>, nil]
280
+ optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedTrackObject] }
281
+
282
+ # @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil)
295
283
  # Some parameter documentations has been truncated, see
296
284
  # {Spotted::Models::Me::AlbumListResponse::Album::Tracks} for more details.
297
285
  #
@@ -299,8 +287,6 @@ module Spotted
299
287
  #
300
288
  # @param href [String] A link to the Web API endpoint returning the full result of the request
301
289
  #
302
- # @param items [Array<Spotted::Models::SimplifiedTrackObject>]
303
- #
304
290
  # @param limit [Integer] The maximum number of items in the response (as set in the query or by default).
305
291
  #
306
292
  # @param next_ [String, nil] URL to the next page of items. ( `null` if none)
@@ -310,6 +296,8 @@ module Spotted
310
296
  # @param previous [String, nil] URL to the previous page of items. ( `null` if none)
311
297
  #
312
298
  # @param total [Integer] The total number of items available to return.
299
+ #
300
+ # @param items [Array<Spotted::Models::SimplifiedTrackObject>]
313
301
  end
314
302
  end
315
303
  end
@@ -52,11 +52,6 @@ module Spotted
52
52
  # @return [String]
53
53
  required :href, String
54
54
 
55
- # @!attribute items
56
- #
57
- # @return [Array<Spotted::Models::SimplifiedChapterObject>]
58
- required :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedChapterObject] }
59
-
60
55
  # @!attribute limit
61
56
  # The maximum number of items in the response (as set in the query or by default).
62
57
  #
@@ -87,7 +82,12 @@ module Spotted
87
82
  # @return [Integer]
88
83
  required :total, Integer
89
84
 
90
- # @!method initialize(href:, items:, limit:, next_:, offset:, previous:, total:)
85
+ # @!attribute items
86
+ #
87
+ # @return [Array<Spotted::Models::SimplifiedChapterObject>, nil]
88
+ optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedChapterObject] }
89
+
90
+ # @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil)
91
91
  # Some parameter documentations has been truncated, see
92
92
  # {Spotted::Models::Me::AudiobookListResponse::Audiobook::Chapters} for more
93
93
  # details.
@@ -96,8 +96,6 @@ module Spotted
96
96
  #
97
97
  # @param href [String] A link to the Web API endpoint returning the full result of the request
98
98
  #
99
- # @param items [Array<Spotted::Models::SimplifiedChapterObject>]
100
- #
101
99
  # @param limit [Integer] The maximum number of items in the response (as set in the query or by default).
102
100
  #
103
101
  # @param next_ [String, nil] URL to the next page of items. ( `null` if none)
@@ -107,6 +105,8 @@ module Spotted
107
105
  # @param previous [String, nil] URL to the previous page of items. ( `null` if none)
108
106
  #
109
107
  # @param total [Integer] The total number of items available to return.
108
+ #
109
+ # @param items [Array<Spotted::Models::SimplifiedChapterObject>]
110
110
  end
111
111
  end
112
112
  end
@@ -11,8 +11,8 @@ module Spotted
11
11
  # @!attribute type
12
12
  # The ID type: currently only `artist` is supported.
13
13
  #
14
- # @return [Symbol, Spotted::Models::Me::FollowingBulkRetrieveParams::Type]
15
- required :type, enum: -> { Spotted::Me::FollowingBulkRetrieveParams::Type }
14
+ # @return [Symbol, :artist]
15
+ required :type, const: :artist
16
16
 
17
17
  # @!attribute after
18
18
  # The last artist ID retrieved from the previous request.
@@ -26,27 +26,17 @@ module Spotted
26
26
  # @return [Integer, nil]
27
27
  optional :limit, Integer
28
28
 
29
- # @!method initialize(type:, after: nil, limit: nil, request_options: {})
29
+ # @!method initialize(after: nil, limit: nil, type: :artist, request_options: {})
30
30
  # Some parameter documentations has been truncated, see
31
31
  # {Spotted::Models::Me::FollowingBulkRetrieveParams} for more details.
32
32
  #
33
- # @param type [Symbol, Spotted::Models::Me::FollowingBulkRetrieveParams::Type] The ID type: currently only `artist` is supported.
34
- #
35
33
  # @param after [String] The last artist ID retrieved from the previous request.
36
34
  #
37
35
  # @param limit [Integer] The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
38
36
  #
37
+ # @param type [Symbol, :artist] The ID type: currently only `artist` is supported.
38
+ #
39
39
  # @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
40
-
41
- # The ID type: currently only `artist` is supported.
42
- module Type
43
- extend Spotted::Internal::Type::Enum
44
-
45
- ARTIST = :artist
46
-
47
- # @!method self.values
48
- # @return [Array<Symbol>]
49
- end
50
40
  end
51
41
  end
52
42
  end
@@ -9,11 +9,6 @@ module Spotted
9
9
  # @return [String]
10
10
  required :href, String
11
11
 
12
- # @!attribute items
13
- #
14
- # @return [Array<Spotted::Models::SimplifiedPlaylistObject>]
15
- required :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedPlaylistObject] }
16
-
17
12
  # @!attribute limit
18
13
  # The maximum number of items in the response (as set in the query or by default).
19
14
  #
@@ -44,14 +39,17 @@ module Spotted
44
39
  # @return [Integer]
45
40
  required :total, Integer
46
41
 
47
- # @!method initialize(href:, items:, limit:, next_:, offset:, previous:, total:)
42
+ # @!attribute items
43
+ #
44
+ # @return [Array<Spotted::Models::SimplifiedPlaylistObject>, nil]
45
+ optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::SimplifiedPlaylistObject] }
46
+
47
+ # @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil)
48
48
  # Some parameter documentations has been truncated, see
49
49
  # {Spotted::Models::PagingPlaylistObject} for more details.
50
50
  #
51
51
  # @param href [String] A link to the Web API endpoint returning the full result of the request
52
52
  #
53
- # @param items [Array<Spotted::Models::SimplifiedPlaylistObject>]
54
- #
55
53
  # @param limit [Integer] The maximum number of items in the response (as set in the query or by default).
56
54
  #
57
55
  # @param next_ [String, nil] URL to the next page of items. ( `null` if none)
@@ -61,6 +59,8 @@ module Spotted
61
59
  # @param previous [String, nil] URL to the previous page of items. ( `null` if none)
62
60
  #
63
61
  # @param total [Integer] The total number of items available to return.
62
+ #
63
+ # @param items [Array<Spotted::Models::SimplifiedPlaylistObject>]
64
64
  end
65
65
  end
66
66
  end
@@ -157,11 +157,6 @@ module Spotted
157
157
  # @return [String]
158
158
  required :href, String
159
159
 
160
- # @!attribute items
161
- #
162
- # @return [Array<Spotted::Models::PlaylistTrackObject>]
163
- required :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::PlaylistTrackObject] }
164
-
165
160
  # @!attribute limit
166
161
  # The maximum number of items in the response (as set in the query or by default).
167
162
  #
@@ -192,7 +187,12 @@ module Spotted
192
187
  # @return [Integer]
193
188
  required :total, Integer
194
189
 
195
- # @!method initialize(href:, items:, limit:, next_:, offset:, previous:, total:)
190
+ # @!attribute items
191
+ #
192
+ # @return [Array<Spotted::Models::PlaylistTrackObject>, nil]
193
+ optional :items, -> { Spotted::Internal::Type::ArrayOf[Spotted::PlaylistTrackObject] }
194
+
195
+ # @!method initialize(href:, limit:, next_:, offset:, previous:, total:, items: nil)
196
196
  # Some parameter documentations has been truncated, see
197
197
  # {Spotted::Models::PlaylistRetrieveResponse::Tracks} for more details.
198
198
  #
@@ -200,8 +200,6 @@ module Spotted
200
200
  #
201
201
  # @param href [String] A link to the Web API endpoint returning the full result of the request
202
202
  #
203
- # @param items [Array<Spotted::Models::PlaylistTrackObject>]
204
- #
205
203
  # @param limit [Integer] The maximum number of items in the response (as set in the query or by default).
206
204
  #
207
205
  # @param next_ [String, nil] URL to the next page of items. ( `null` if none)
@@ -211,6 +209,8 @@ module Spotted
211
209
  # @param previous [String, nil] URL to the previous page of items. ( `null` if none)
212
210
  #
213
211
  # @param total [Integer] The total number of items available to return.
212
+ #
213
+ # @param items [Array<Spotted::Models::PlaylistTrackObject>]
214
214
  end
215
215
  end
216
216
  end