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.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -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 +18 -5
  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 +5 -4
  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 +18 -5
  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 +30 -9
  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 +8 -6
  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 +30 -9
  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 +10 -3
  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_track_object.rbs +7 -0
  186. data/sig/spotted/models/time_interval_object.rbs +12 -2
  187. data/sig/spotted/models/track_object.rbs +14 -0
  188. data/sig/spotted/models/track_restriction_object.rbs +7 -3
  189. data/sig/spotted/models/user_retrieve_profile_response.rbs +7 -0
  190. data/sig/spotted/models/users/playlist_create_response.rbs +10 -3
  191. metadata +2 -2
@@ -167,6 +167,17 @@ module Spotted
167
167
  end
168
168
  attr_writer :items
169
169
 
170
+ # The playlist's public/private status (if it should be added to the user's
171
+ # profile or not): `true` the playlist will be public, `false` the playlist will
172
+ # be private, `null` the playlist status is not relevant. For more about
173
+ # public/private status, see
174
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
175
+ sig { returns(T.nilable(T::Boolean)) }
176
+ attr_reader :published
177
+
178
+ sig { params(published: T::Boolean).void }
179
+ attr_writer :published
180
+
170
181
  sig do
171
182
  params(
172
183
  href: String,
@@ -178,7 +189,8 @@ module Spotted
178
189
  items:
179
190
  T::Array[
180
191
  Spotted::Models::SearchQueryResponse::Albums::Item::OrHash
181
- ]
192
+ ],
193
+ published: T::Boolean
182
194
  ).returns(T.attached_class)
183
195
  end
184
196
  def self.new(
@@ -194,7 +206,13 @@ module Spotted
194
206
  previous:,
195
207
  # The total number of items available to return.
196
208
  total:,
197
- items: nil
209
+ items: nil,
210
+ # The playlist's public/private status (if it should be added to the user's
211
+ # profile or not): `true` the playlist will be public, `false` the playlist will
212
+ # be private, `null` the playlist status is not relevant. For more about
213
+ # public/private status, see
214
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
215
+ published: nil
198
216
  )
199
217
  end
200
218
 
@@ -208,7 +226,8 @@ module Spotted
208
226
  previous: T.nilable(String),
209
227
  total: Integer,
210
228
  items:
211
- T::Array[Spotted::Models::SearchQueryResponse::Albums::Item]
229
+ T::Array[Spotted::Models::SearchQueryResponse::Albums::Item],
230
+ published: T::Boolean
212
231
  }
213
232
  )
214
233
  end
@@ -294,6 +313,17 @@ module Spotted
294
313
  sig { returns(String) }
295
314
  attr_accessor :uri
296
315
 
316
+ # The playlist's public/private status (if it should be added to the user's
317
+ # profile or not): `true` the playlist will be public, `false` the playlist will
318
+ # be private, `null` the playlist status is not relevant. For more about
319
+ # public/private status, see
320
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
321
+ sig { returns(T.nilable(T::Boolean)) }
322
+ attr_reader :published
323
+
324
+ sig { params(published: T::Boolean).void }
325
+ attr_writer :published
326
+
297
327
  # Included in the response when a content restriction is applied.
298
328
  sig { returns(T.nilable(Spotted::AlbumRestrictionObject)) }
299
329
  attr_reader :restrictions
@@ -319,6 +349,7 @@ module Spotted
319
349
  Spotted::Models::SearchQueryResponse::Albums::Item::ReleaseDatePrecision::OrSymbol,
320
350
  total_tracks: Integer,
321
351
  uri: String,
352
+ published: T::Boolean,
322
353
  restrictions: Spotted::AlbumRestrictionObject::OrHash,
323
354
  type: Symbol
324
355
  ).returns(T.attached_class)
@@ -355,6 +386,12 @@ module Spotted
355
386
  # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
356
387
  # album.
357
388
  uri:,
389
+ # The playlist's public/private status (if it should be added to the user's
390
+ # profile or not): `true` the playlist will be public, `false` the playlist will
391
+ # be private, `null` the playlist status is not relevant. For more about
392
+ # public/private status, see
393
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
394
+ published: nil,
358
395
  # Included in the response when a content restriction is applied.
359
396
  restrictions: nil,
360
397
  # The object type.
@@ -380,6 +417,7 @@ module Spotted
380
417
  total_tracks: Integer,
381
418
  type: Symbol,
382
419
  uri: String,
420
+ published: T::Boolean,
383
421
  restrictions: Spotted::AlbumRestrictionObject
384
422
  }
385
423
  )
@@ -508,6 +546,17 @@ module Spotted
508
546
  sig { params(items: T::Array[Spotted::ArtistObject::OrHash]).void }
509
547
  attr_writer :items
510
548
 
549
+ # The playlist's public/private status (if it should be added to the user's
550
+ # profile or not): `true` the playlist will be public, `false` the playlist will
551
+ # be private, `null` the playlist status is not relevant. For more about
552
+ # public/private status, see
553
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
554
+ sig { returns(T.nilable(T::Boolean)) }
555
+ attr_reader :published
556
+
557
+ sig { params(published: T::Boolean).void }
558
+ attr_writer :published
559
+
511
560
  sig do
512
561
  params(
513
562
  href: String,
@@ -516,7 +565,8 @@ module Spotted
516
565
  offset: Integer,
517
566
  previous: T.nilable(String),
518
567
  total: Integer,
519
- items: T::Array[Spotted::ArtistObject::OrHash]
568
+ items: T::Array[Spotted::ArtistObject::OrHash],
569
+ published: T::Boolean
520
570
  ).returns(T.attached_class)
521
571
  end
522
572
  def self.new(
@@ -532,7 +582,13 @@ module Spotted
532
582
  previous:,
533
583
  # The total number of items available to return.
534
584
  total:,
535
- items: nil
585
+ items: nil,
586
+ # The playlist's public/private status (if it should be added to the user's
587
+ # profile or not): `true` the playlist will be public, `false` the playlist will
588
+ # be private, `null` the playlist status is not relevant. For more about
589
+ # public/private status, see
590
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
591
+ published: nil
536
592
  )
537
593
  end
538
594
 
@@ -545,7 +601,8 @@ module Spotted
545
601
  offset: Integer,
546
602
  previous: T.nilable(String),
547
603
  total: Integer,
548
- items: T::Array[Spotted::ArtistObject]
604
+ items: T::Array[Spotted::ArtistObject],
605
+ published: T::Boolean
549
606
  }
550
607
  )
551
608
  end
@@ -592,6 +649,17 @@ module Spotted
592
649
  sig { params(items: T::Array[Spotted::AudiobookBase::OrHash]).void }
593
650
  attr_writer :items
594
651
 
652
+ # The playlist's public/private status (if it should be added to the user's
653
+ # profile or not): `true` the playlist will be public, `false` the playlist will
654
+ # be private, `null` the playlist status is not relevant. For more about
655
+ # public/private status, see
656
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
657
+ sig { returns(T.nilable(T::Boolean)) }
658
+ attr_reader :published
659
+
660
+ sig { params(published: T::Boolean).void }
661
+ attr_writer :published
662
+
595
663
  sig do
596
664
  params(
597
665
  href: String,
@@ -600,7 +668,8 @@ module Spotted
600
668
  offset: Integer,
601
669
  previous: T.nilable(String),
602
670
  total: Integer,
603
- items: T::Array[Spotted::AudiobookBase::OrHash]
671
+ items: T::Array[Spotted::AudiobookBase::OrHash],
672
+ published: T::Boolean
604
673
  ).returns(T.attached_class)
605
674
  end
606
675
  def self.new(
@@ -616,7 +685,13 @@ module Spotted
616
685
  previous:,
617
686
  # The total number of items available to return.
618
687
  total:,
619
- items: nil
688
+ items: nil,
689
+ # The playlist's public/private status (if it should be added to the user's
690
+ # profile or not): `true` the playlist will be public, `false` the playlist will
691
+ # be private, `null` the playlist status is not relevant. For more about
692
+ # public/private status, see
693
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
694
+ published: nil
620
695
  )
621
696
  end
622
697
 
@@ -629,7 +704,8 @@ module Spotted
629
704
  offset: Integer,
630
705
  previous: T.nilable(String),
631
706
  total: Integer,
632
- items: T::Array[Spotted::AudiobookBase]
707
+ items: T::Array[Spotted::AudiobookBase],
708
+ published: T::Boolean
633
709
  }
634
710
  )
635
711
  end
@@ -678,6 +754,17 @@ module Spotted
678
754
  end
679
755
  attr_writer :items
680
756
 
757
+ # The playlist's public/private status (if it should be added to the user's
758
+ # profile or not): `true` the playlist will be public, `false` the playlist will
759
+ # be private, `null` the playlist status is not relevant. For more about
760
+ # public/private status, see
761
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
762
+ sig { returns(T.nilable(T::Boolean)) }
763
+ attr_reader :published
764
+
765
+ sig { params(published: T::Boolean).void }
766
+ attr_writer :published
767
+
681
768
  sig do
682
769
  params(
683
770
  href: String,
@@ -686,7 +773,8 @@ module Spotted
686
773
  offset: Integer,
687
774
  previous: T.nilable(String),
688
775
  total: Integer,
689
- items: T::Array[Spotted::SimplifiedEpisodeObject::OrHash]
776
+ items: T::Array[Spotted::SimplifiedEpisodeObject::OrHash],
777
+ published: T::Boolean
690
778
  ).returns(T.attached_class)
691
779
  end
692
780
  def self.new(
@@ -702,7 +790,13 @@ module Spotted
702
790
  previous:,
703
791
  # The total number of items available to return.
704
792
  total:,
705
- items: nil
793
+ items: nil,
794
+ # The playlist's public/private status (if it should be added to the user's
795
+ # profile or not): `true` the playlist will be public, `false` the playlist will
796
+ # be private, `null` the playlist status is not relevant. For more about
797
+ # public/private status, see
798
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
799
+ published: nil
706
800
  )
707
801
  end
708
802
 
@@ -715,7 +809,8 @@ module Spotted
715
809
  offset: Integer,
716
810
  previous: T.nilable(String),
717
811
  total: Integer,
718
- items: T::Array[Spotted::SimplifiedEpisodeObject]
812
+ items: T::Array[Spotted::SimplifiedEpisodeObject],
813
+ published: T::Boolean
719
814
  }
720
815
  )
721
816
  end
@@ -762,6 +857,17 @@ module Spotted
762
857
  sig { params(items: T::Array[Spotted::ShowBase::OrHash]).void }
763
858
  attr_writer :items
764
859
 
860
+ # The playlist's public/private status (if it should be added to the user's
861
+ # profile or not): `true` the playlist will be public, `false` the playlist will
862
+ # be private, `null` the playlist status is not relevant. For more about
863
+ # public/private status, see
864
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
865
+ sig { returns(T.nilable(T::Boolean)) }
866
+ attr_reader :published
867
+
868
+ sig { params(published: T::Boolean).void }
869
+ attr_writer :published
870
+
765
871
  sig do
766
872
  params(
767
873
  href: String,
@@ -770,7 +876,8 @@ module Spotted
770
876
  offset: Integer,
771
877
  previous: T.nilable(String),
772
878
  total: Integer,
773
- items: T::Array[Spotted::ShowBase::OrHash]
879
+ items: T::Array[Spotted::ShowBase::OrHash],
880
+ published: T::Boolean
774
881
  ).returns(T.attached_class)
775
882
  end
776
883
  def self.new(
@@ -786,7 +893,13 @@ module Spotted
786
893
  previous:,
787
894
  # The total number of items available to return.
788
895
  total:,
789
- items: nil
896
+ items: nil,
897
+ # The playlist's public/private status (if it should be added to the user's
898
+ # profile or not): `true` the playlist will be public, `false` the playlist will
899
+ # be private, `null` the playlist status is not relevant. For more about
900
+ # public/private status, see
901
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
902
+ published: nil
790
903
  )
791
904
  end
792
905
 
@@ -799,7 +912,8 @@ module Spotted
799
912
  offset: Integer,
800
913
  previous: T.nilable(String),
801
914
  total: Integer,
802
- items: T::Array[Spotted::ShowBase]
915
+ items: T::Array[Spotted::ShowBase],
916
+ published: T::Boolean
803
917
  }
804
918
  )
805
919
  end
@@ -846,6 +960,17 @@ module Spotted
846
960
  sig { params(items: T::Array[Spotted::TrackObject::OrHash]).void }
847
961
  attr_writer :items
848
962
 
963
+ # The playlist's public/private status (if it should be added to the user's
964
+ # profile or not): `true` the playlist will be public, `false` the playlist will
965
+ # be private, `null` the playlist status is not relevant. For more about
966
+ # public/private status, see
967
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
968
+ sig { returns(T.nilable(T::Boolean)) }
969
+ attr_reader :published
970
+
971
+ sig { params(published: T::Boolean).void }
972
+ attr_writer :published
973
+
849
974
  sig do
850
975
  params(
851
976
  href: String,
@@ -854,7 +979,8 @@ module Spotted
854
979
  offset: Integer,
855
980
  previous: T.nilable(String),
856
981
  total: Integer,
857
- items: T::Array[Spotted::TrackObject::OrHash]
982
+ items: T::Array[Spotted::TrackObject::OrHash],
983
+ published: T::Boolean
858
984
  ).returns(T.attached_class)
859
985
  end
860
986
  def self.new(
@@ -870,7 +996,13 @@ module Spotted
870
996
  previous:,
871
997
  # The total number of items available to return.
872
998
  total:,
873
- items: nil
999
+ items: nil,
1000
+ # The playlist's public/private status (if it should be added to the user's
1001
+ # profile or not): `true` the playlist will be public, `false` the playlist will
1002
+ # be private, `null` the playlist status is not relevant. For more about
1003
+ # public/private status, see
1004
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
1005
+ published: nil
874
1006
  )
875
1007
  end
876
1008
 
@@ -883,7 +1015,8 @@ module Spotted
883
1015
  offset: Integer,
884
1016
  previous: T.nilable(String),
885
1017
  total: Integer,
886
- items: T::Array[Spotted::TrackObject]
1018
+ items: T::Array[Spotted::TrackObject],
1019
+ published: T::Boolean
887
1020
  }
888
1021
  )
889
1022
  end
@@ -83,6 +83,17 @@ module Spotted
83
83
  sig { returns(String) }
84
84
  attr_accessor :uri
85
85
 
86
+ # The playlist's public/private status (if it should be added to the user's
87
+ # profile or not): `true` the playlist will be public, `false` the playlist will
88
+ # be private, `null` the playlist status is not relevant. For more about
89
+ # public/private status, see
90
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
91
+ sig { returns(T.nilable(T::Boolean)) }
92
+ attr_reader :published
93
+
94
+ sig { params(published: T::Boolean).void }
95
+ attr_writer :published
96
+
86
97
  sig do
87
98
  params(
88
99
  id: String,
@@ -101,6 +112,7 @@ module Spotted
101
112
  publisher: String,
102
113
  total_episodes: Integer,
103
114
  uri: String,
115
+ published: T::Boolean,
104
116
  type: Symbol
105
117
  ).returns(T.attached_class)
106
118
  end
@@ -143,6 +155,12 @@ module Spotted
143
155
  # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
144
156
  # show.
145
157
  uri:,
158
+ # The playlist's public/private status (if it should be added to the user's
159
+ # profile or not): `true` the playlist will be public, `false` the playlist will
160
+ # be private, `null` the playlist status is not relevant. For more about
161
+ # public/private status, see
162
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
163
+ published: nil,
146
164
  # The object type.
147
165
  type: :show
148
166
  )
@@ -167,7 +185,8 @@ module Spotted
167
185
  publisher: String,
168
186
  total_episodes: Integer,
169
187
  type: Symbol,
170
- uri: String
188
+ uri: String,
189
+ published: T::Boolean
171
190
  }
172
191
  )
173
192
  end
@@ -82,6 +82,17 @@ module Spotted
82
82
  end
83
83
  attr_writer :items
84
84
 
85
+ # The playlist's public/private status (if it should be added to the user's
86
+ # profile or not): `true` the playlist will be public, `false` the playlist will
87
+ # be private, `null` the playlist status is not relevant. For more about
88
+ # public/private status, see
89
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
90
+ sig { returns(T.nilable(T::Boolean)) }
91
+ attr_reader :published
92
+
93
+ sig { params(published: T::Boolean).void }
94
+ attr_writer :published
95
+
85
96
  # The episodes of the show.
86
97
  sig do
87
98
  params(
@@ -91,7 +102,8 @@ module Spotted
91
102
  offset: Integer,
92
103
  previous: T.nilable(String),
93
104
  total: Integer,
94
- items: T::Array[Spotted::SimplifiedEpisodeObject::OrHash]
105
+ items: T::Array[Spotted::SimplifiedEpisodeObject::OrHash],
106
+ published: T::Boolean
95
107
  ).returns(T.attached_class)
96
108
  end
97
109
  def self.new(
@@ -107,7 +119,13 @@ module Spotted
107
119
  previous:,
108
120
  # The total number of items available to return.
109
121
  total:,
110
- items: nil
122
+ items: nil,
123
+ # The playlist's public/private status (if it should be added to the user's
124
+ # profile or not): `true` the playlist will be public, `false` the playlist will
125
+ # be private, `null` the playlist status is not relevant. For more about
126
+ # public/private status, see
127
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
128
+ published: nil
111
129
  )
112
130
  end
113
131
 
@@ -120,7 +138,8 @@ module Spotted
120
138
  offset: Integer,
121
139
  previous: T.nilable(String),
122
140
  total: Integer,
123
- items: T::Array[Spotted::SimplifiedEpisodeObject]
141
+ items: T::Array[Spotted::SimplifiedEpisodeObject],
142
+ published: T::Boolean
124
143
  }
125
144
  )
126
145
  end
@@ -37,6 +37,17 @@ module Spotted
37
37
  sig { params(name: String).void }
38
38
  attr_writer :name
39
39
 
40
+ # The playlist's public/private status (if it should be added to the user's
41
+ # profile or not): `true` the playlist will be public, `false` the playlist will
42
+ # be private, `null` the playlist status is not relevant. For more about
43
+ # public/private status, see
44
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
45
+ sig { returns(T.nilable(T::Boolean)) }
46
+ attr_reader :published
47
+
48
+ sig { params(published: T::Boolean).void }
49
+ attr_writer :published
50
+
40
51
  # The object type.
41
52
  sig do
42
53
  returns(T.nilable(Spotted::SimplifiedArtistObject::Type::TaggedSymbol))
@@ -60,6 +71,7 @@ module Spotted
60
71
  external_urls: Spotted::ExternalURLObject::OrHash,
61
72
  href: String,
62
73
  name: String,
74
+ published: T::Boolean,
63
75
  type: Spotted::SimplifiedArtistObject::Type::OrSymbol,
64
76
  uri: String
65
77
  ).returns(T.attached_class)
@@ -74,6 +86,12 @@ module Spotted
74
86
  href: nil,
75
87
  # The name of the artist.
76
88
  name: nil,
89
+ # The playlist's public/private status (if it should be added to the user's
90
+ # profile or not): `true` the playlist will be public, `false` the playlist will
91
+ # be private, `null` the playlist status is not relevant. For more about
92
+ # public/private status, see
93
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
94
+ published: nil,
77
95
  # The object type.
78
96
  type: nil,
79
97
  # The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
@@ -89,6 +107,7 @@ module Spotted
89
107
  external_urls: Spotted::ExternalURLObject,
90
108
  href: String,
91
109
  name: String,
110
+ published: T::Boolean,
92
111
  type: Spotted::SimplifiedArtistObject::Type::TaggedSymbol,
93
112
  uri: String
94
113
  }
@@ -98,6 +98,17 @@ module Spotted
98
98
  sig { params(available_markets: T::Array[String]).void }
99
99
  attr_writer :available_markets
100
100
 
101
+ # The playlist's public/private status (if it should be added to the user's
102
+ # profile or not): `true` the playlist will be public, `false` the playlist will
103
+ # be private, `null` the playlist status is not relevant. For more about
104
+ # public/private status, see
105
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
106
+ sig { returns(T.nilable(T::Boolean)) }
107
+ attr_reader :published
108
+
109
+ sig { params(published: T::Boolean).void }
110
+ attr_writer :published
111
+
101
112
  # Included in the response when a content restriction is applied.
102
113
  sig { returns(T.nilable(Spotted::ChapterRestrictionObject)) }
103
114
  attr_reader :restrictions
@@ -135,6 +146,7 @@ module Spotted
135
146
  Spotted::SimplifiedChapterObject::ReleaseDatePrecision::OrSymbol,
136
147
  uri: String,
137
148
  available_markets: T::Array[String],
149
+ published: T::Boolean,
138
150
  restrictions: Spotted::ChapterRestrictionObject::OrHash,
139
151
  resume_point: Spotted::ResumePointObject::OrHash,
140
152
  type: Symbol
@@ -183,6 +195,12 @@ module Spotted
183
195
  # A list of the countries in which the chapter can be played, identified by their
184
196
  # [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code.
185
197
  available_markets: nil,
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
+ published: nil,
186
204
  # Included in the response when a content restriction is applied.
187
205
  restrictions: nil,
188
206
  # The user's most recent position in the chapter. Set if the supplied access token
@@ -215,6 +233,7 @@ module Spotted
215
233
  type: Symbol,
216
234
  uri: String,
217
235
  available_markets: T::Array[String],
236
+ published: T::Boolean,
218
237
  restrictions: Spotted::ChapterRestrictionObject,
219
238
  resume_point: Spotted::ResumePointObject
220
239
  }
@@ -99,6 +99,17 @@ module Spotted
99
99
  sig { params(language: String).void }
100
100
  attr_writer :language
101
101
 
102
+ # The playlist's public/private status (if it should be added to the user's
103
+ # profile or not): `true` the playlist will be public, `false` the playlist will
104
+ # be private, `null` the playlist status is not relevant. For more about
105
+ # public/private status, see
106
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
107
+ sig { returns(T.nilable(T::Boolean)) }
108
+ attr_reader :published
109
+
110
+ sig { params(published: T::Boolean).void }
111
+ attr_writer :published
112
+
102
113
  # Included in the response when a content restriction is applied.
103
114
  sig { returns(T.nilable(Spotted::EpisodeRestrictionObject)) }
104
115
  attr_reader :restrictions
@@ -136,6 +147,7 @@ module Spotted
136
147
  Spotted::SimplifiedEpisodeObject::ReleaseDatePrecision::OrSymbol,
137
148
  uri: String,
138
149
  language: String,
150
+ published: T::Boolean,
139
151
  restrictions: Spotted::EpisodeRestrictionObject::OrHash,
140
152
  resume_point: Spotted::ResumePointObject::OrHash,
141
153
  type: Symbol
@@ -185,6 +197,12 @@ module Spotted
185
197
  # [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code. This field is deprecated
186
198
  # and might be removed in the future. Please use the `languages` field instead.
187
199
  language: nil,
200
+ # The playlist's public/private status (if it should be added to the user's
201
+ # profile or not): `true` the playlist will be public, `false` the playlist will
202
+ # be private, `null` the playlist status is not relevant. For more about
203
+ # public/private status, see
204
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
205
+ published: nil,
188
206
  # Included in the response when a content restriction is applied.
189
207
  restrictions: nil,
190
208
  # The user's most recent position in the episode. Set if the supplied access token
@@ -217,6 +235,7 @@ module Spotted
217
235
  type: Symbol,
218
236
  uri: String,
219
237
  language: String,
238
+ published: T::Boolean,
220
239
  restrictions: Spotted::EpisodeRestrictionObject,
221
240
  resume_point: Spotted::ResumePointObject
222
241
  }
@@ -72,9 +72,10 @@ module Spotted
72
72
  end
73
73
  attr_writer :owner
74
74
 
75
- # The playlist's public/private status (if it is added to the user's profile):
76
- # `true` the playlist is public, `false` the playlist is private, `null` the
77
- # playlist status is not relevant. For more about public/private status, see
75
+ # The playlist's public/private status (if it should be added to the user's
76
+ # profile or not): `true` the playlist will be public, `false` the playlist will
77
+ # be private, `null` the playlist status is not relevant. For more about
78
+ # public/private status, see
78
79
  # [Working with Playlists](/documentation/web-api/concepts/playlists)
79
80
  sig { returns(T.nilable(T::Boolean)) }
80
81
  attr_reader :published
@@ -155,9 +156,10 @@ module Spotted
155
156
  name: nil,
156
157
  # The user who owns the playlist
157
158
  owner: nil,
158
- # The playlist's public/private status (if it is added to the user's profile):
159
- # `true` the playlist is public, `false` the playlist is private, `null` the
160
- # playlist status is not relevant. For more about public/private status, see
159
+ # The playlist's public/private status (if it should be added to the user's
160
+ # profile or not): `true` the playlist will be public, `false` the playlist will
161
+ # be private, `null` the playlist status is not relevant. For more about
162
+ # public/private status, see
161
163
  # [Working with Playlists](/documentation/web-api/concepts/playlists)
162
164
  published: nil,
163
165
  # The version identifier for the current playlist. Can be supplied in other
@@ -108,6 +108,17 @@ module Spotted
108
108
  sig { returns(T.nilable(String)) }
109
109
  attr_accessor :preview_url
110
110
 
111
+ # The playlist's public/private status (if it should be added to the user's
112
+ # profile or not): `true` the playlist will be public, `false` the playlist will
113
+ # be private, `null` the playlist status is not relevant. For more about
114
+ # public/private status, see
115
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
116
+ sig { returns(T.nilable(T::Boolean)) }
117
+ attr_reader :published
118
+
119
+ sig { params(published: T::Boolean).void }
120
+ attr_writer :published
121
+
111
122
  # Included in the response when a content restriction is applied.
112
123
  sig { returns(T.nilable(Spotted::TrackRestrictionObject)) }
113
124
  attr_reader :restrictions
@@ -153,6 +164,7 @@ module Spotted
153
164
  linked_from: Spotted::LinkedTrackObject::OrHash,
154
165
  name: String,
155
166
  preview_url: T.nilable(String),
167
+ published: T::Boolean,
156
168
  restrictions: Spotted::TrackRestrictionObject::OrHash,
157
169
  track_number: Integer,
158
170
  type: String,
@@ -196,6 +208,12 @@ module Spotted
196
208
  name: nil,
197
209
  # A URL to a 30 second preview (MP3 format) of the track.
198
210
  preview_url: nil,
211
+ # The playlist's public/private status (if it should be added to the user's
212
+ # profile or not): `true` the playlist will be public, `false` the playlist will
213
+ # be private, `null` the playlist status is not relevant. For more about
214
+ # public/private status, see
215
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
216
+ published: nil,
199
217
  # Included in the response when a content restriction is applied.
200
218
  restrictions: nil,
201
219
  # The number of the track. If an album has several discs, the track number is the
@@ -225,6 +243,7 @@ module Spotted
225
243
  linked_from: Spotted::LinkedTrackObject,
226
244
  name: String,
227
245
  preview_url: T.nilable(String),
246
+ published: T::Boolean,
228
247
  restrictions: Spotted::TrackRestrictionObject,
229
248
  track_number: Integer,
230
249
  type: String,