spotted 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) 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/album_remove_params.rb +13 -1
  35. data/lib/spotted/models/me/album_save_params.rb +13 -1
  36. data/lib/spotted/models/me/audiobook_list_response.rb +26 -2
  37. data/lib/spotted/models/me/context_object.rb +13 -1
  38. data/lib/spotted/models/me/device_object.rb +13 -1
  39. data/lib/spotted/models/me/episode_list_response.rb +13 -1
  40. data/lib/spotted/models/me/episode_remove_params.rb +13 -1
  41. data/lib/spotted/models/me/episode_save_params.rb +13 -1
  42. data/lib/spotted/models/me/following_bulk_retrieve_response.rb +30 -2
  43. data/lib/spotted/models/me/following_follow_params.rb +13 -1
  44. data/lib/spotted/models/me/following_unfollow_params.rb +13 -1
  45. data/lib/spotted/models/me/player/queue_get_response.rb +16 -1
  46. data/lib/spotted/models/me/player_get_currently_playing_response.rb +30 -2
  47. data/lib/spotted/models/me/player_get_state_response.rb +29 -2
  48. data/lib/spotted/models/me/player_list_recently_played_response.rb +16 -1
  49. data/lib/spotted/models/me/player_start_playback_params.rb +13 -1
  50. data/lib/spotted/models/me/player_transfer_params.rb +13 -1
  51. data/lib/spotted/models/me/show_list_response.rb +13 -1
  52. data/lib/spotted/models/me/show_remove_params.rb +13 -1
  53. data/lib/spotted/models/me/show_save_params.rb +13 -1
  54. data/lib/spotted/models/me/track_list_response.rb +13 -1
  55. data/lib/spotted/models/me/track_remove_params.rb +13 -1
  56. data/lib/spotted/models/me/track_save_params.rb +13 -1
  57. data/lib/spotted/models/me_retrieve_response.rb +26 -2
  58. data/lib/spotted/models/narrator_object.rb +13 -1
  59. data/lib/spotted/models/paging_playlist_object.rb +13 -1
  60. data/lib/spotted/models/playlist_retrieve_response.rb +18 -5
  61. data/lib/spotted/models/playlist_track_object.rb +13 -1
  62. data/lib/spotted/models/playlist_tracks_ref_object.rb +13 -1
  63. data/lib/spotted/models/playlist_update_params.rb +13 -1
  64. data/lib/spotted/models/playlist_user_object.rb +13 -1
  65. data/lib/spotted/models/playlists/follower_follow_params.rb +13 -1
  66. data/lib/spotted/models/playlists/track_add_params.rb +13 -1
  67. data/lib/spotted/models/playlists/track_remove_params.rb +13 -1
  68. data/lib/spotted/models/playlists/track_update_params.rb +13 -1
  69. data/lib/spotted/models/recommendation_get_response.rb +26 -2
  70. data/lib/spotted/models/resume_point_object.rb +13 -1
  71. data/lib/spotted/models/search_query_response.rb +91 -7
  72. data/lib/spotted/models/show_base.rb +13 -1
  73. data/lib/spotted/models/show_retrieve_response.rb +13 -1
  74. data/lib/spotted/models/simplified_artist_object.rb +13 -1
  75. data/lib/spotted/models/simplified_chapter_object.rb +13 -1
  76. data/lib/spotted/models/simplified_episode_object.rb +13 -1
  77. data/lib/spotted/models/simplified_playlist_object.rb +5 -4
  78. data/lib/spotted/models/simplified_track_object.rb +13 -1
  79. data/lib/spotted/models/time_interval_object.rb +16 -1
  80. data/lib/spotted/models/track_object.rb +26 -2
  81. data/lib/spotted/models/track_restriction_object.rb +13 -1
  82. data/lib/spotted/models/user_retrieve_profile_response.rb +13 -1
  83. data/lib/spotted/models/users/playlist_create_params.rb +13 -1
  84. data/lib/spotted/models/users/playlist_create_response.rb +18 -5
  85. data/lib/spotted/resources/me/albums.rb +6 -2
  86. data/lib/spotted/resources/me/episodes.rb +6 -2
  87. data/lib/spotted/resources/me/following.rb +6 -2
  88. data/lib/spotted/resources/me/player.rb +6 -2
  89. data/lib/spotted/resources/me/shows.rb +6 -2
  90. data/lib/spotted/resources/me/tracks.rb +6 -2
  91. data/lib/spotted/resources/playlists/followers.rb +3 -1
  92. data/lib/spotted/resources/playlists/tracks.rb +9 -3
  93. data/lib/spotted/resources/playlists.rb +3 -1
  94. data/lib/spotted/resources/users/playlists.rb +3 -1
  95. data/lib/spotted/version.rb +1 -1
  96. data/rbi/spotted/models/album_bulk_retrieve_response.rbi +41 -3
  97. data/rbi/spotted/models/album_restriction_object.rbi +22 -1
  98. data/rbi/spotted/models/album_retrieve_response.rbi +41 -3
  99. data/rbi/spotted/models/artist_list_albums_response.rbi +19 -0
  100. data/rbi/spotted/models/artist_object.rbi +19 -0
  101. data/rbi/spotted/models/audio_analysis_retrieve_response.rbi +57 -0
  102. data/rbi/spotted/models/audio_feature_bulk_retrieve_response.rbi +19 -0
  103. data/rbi/spotted/models/audio_feature_retrieve_response.rbi +19 -0
  104. data/rbi/spotted/models/audiobook_base.rbi +20 -1
  105. data/rbi/spotted/models/audiobook_bulk_retrieve_response.rbi +22 -3
  106. data/rbi/spotted/models/audiobook_retrieve_response.rbi +22 -3
  107. data/rbi/spotted/models/author_object.rbi +22 -3
  108. data/rbi/spotted/models/browse/category_get_playlists_response.rbi +25 -3
  109. data/rbi/spotted/models/browse/category_list_response.rbi +44 -6
  110. data/rbi/spotted/models/browse/category_retrieve_response.rbi +22 -3
  111. data/rbi/spotted/models/browse_get_featured_playlists_response.rbi +25 -3
  112. data/rbi/spotted/models/browse_get_new_releases_response.rbi +41 -3
  113. data/rbi/spotted/models/chapter_bulk_retrieve_response.rbi +19 -0
  114. data/rbi/spotted/models/chapter_restriction_object.rbi +21 -2
  115. data/rbi/spotted/models/chapter_retrieve_response.rbi +19 -0
  116. data/rbi/spotted/models/copyright_object.rbi +25 -2
  117. data/rbi/spotted/models/episode_object.rbi +19 -0
  118. data/rbi/spotted/models/episode_restriction_object.rbi +21 -2
  119. data/rbi/spotted/models/external_id_object.rbi +28 -2
  120. data/rbi/spotted/models/external_url_object.rbi +21 -2
  121. data/rbi/spotted/models/followers_object.rbi +27 -4
  122. data/rbi/spotted/models/image_object.rbi +26 -3
  123. data/rbi/spotted/models/linked_track_object.rbi +19 -0
  124. data/rbi/spotted/models/me/album_list_response.rbi +63 -6
  125. data/rbi/spotted/models/me/album_remove_params.rbi +23 -1
  126. data/rbi/spotted/models/me/album_save_params.rbi +23 -1
  127. data/rbi/spotted/models/me/audiobook_list_response.rbi +44 -6
  128. data/rbi/spotted/models/me/context_object.rbi +19 -0
  129. data/rbi/spotted/models/me/device_object.rbi +19 -0
  130. data/rbi/spotted/models/me/episode_list_response.rbi +27 -3
  131. data/rbi/spotted/models/me/episode_remove_params.rbi +23 -1
  132. data/rbi/spotted/models/me/episode_save_params.rbi +23 -1
  133. data/rbi/spotted/models/me/following_bulk_retrieve_response.rbi +47 -3
  134. data/rbi/spotted/models/me/following_follow_params.rbi +23 -1
  135. data/rbi/spotted/models/me/following_unfollow_params.rbi +23 -1
  136. data/rbi/spotted/models/me/player/queue_get_response.rbi +19 -0
  137. data/rbi/spotted/models/me/player_get_currently_playing_response.rbi +38 -0
  138. data/rbi/spotted/models/me/player_get_state_response.rbi +38 -0
  139. data/rbi/spotted/models/me/player_list_recently_played_response.rbi +19 -0
  140. data/rbi/spotted/models/me/player_start_playback_params.rbi +19 -0
  141. data/rbi/spotted/models/me/player_transfer_params.rbi +19 -0
  142. data/rbi/spotted/models/me/show_list_response.rbi +27 -4
  143. data/rbi/spotted/models/me/show_remove_params.rbi +23 -1
  144. data/rbi/spotted/models/me/show_save_params.rbi +23 -1
  145. data/rbi/spotted/models/me/track_list_response.rbi +29 -4
  146. data/rbi/spotted/models/me/track_remove_params.rbi +23 -1
  147. data/rbi/spotted/models/me/track_save_params.rbi +19 -0
  148. data/rbi/spotted/models/me_retrieve_response.rbi +47 -5
  149. data/rbi/spotted/models/narrator_object.rbi +22 -3
  150. data/rbi/spotted/models/paging_playlist_object.rbi +22 -3
  151. data/rbi/spotted/models/playlist_retrieve_response.rbi +30 -9
  152. data/rbi/spotted/models/playlist_track_object.rbi +19 -0
  153. data/rbi/spotted/models/playlist_tracks_ref_object.rbi +27 -2
  154. data/rbi/spotted/models/playlist_update_params.rbi +19 -0
  155. data/rbi/spotted/models/playlist_user_object.rbi +19 -0
  156. data/rbi/spotted/models/playlists/follower_follow_params.rbi +23 -1
  157. data/rbi/spotted/models/playlists/track_add_params.rbi +19 -0
  158. data/rbi/spotted/models/playlists/track_remove_params.rbi +19 -0
  159. data/rbi/spotted/models/playlists/track_update_params.rbi +19 -0
  160. data/rbi/spotted/models/recommendation_get_response.rbi +41 -3
  161. data/rbi/spotted/models/resume_point_object.rbi +27 -4
  162. data/rbi/spotted/models/search_query_response.rbi +151 -18
  163. data/rbi/spotted/models/show_base.rbi +20 -1
  164. data/rbi/spotted/models/show_retrieve_response.rbi +22 -3
  165. data/rbi/spotted/models/simplified_artist_object.rbi +19 -0
  166. data/rbi/spotted/models/simplified_chapter_object.rbi +19 -0
  167. data/rbi/spotted/models/simplified_episode_object.rbi +19 -0
  168. data/rbi/spotted/models/simplified_playlist_object.rbi +8 -6
  169. data/rbi/spotted/models/simplified_track_object.rbi +19 -0
  170. data/rbi/spotted/models/time_interval_object.rbi +31 -4
  171. data/rbi/spotted/models/track_object.rbi +38 -0
  172. data/rbi/spotted/models/track_restriction_object.rbi +21 -2
  173. data/rbi/spotted/models/user_retrieve_profile_response.rbi +19 -0
  174. data/rbi/spotted/models/users/playlist_create_params.rbi +19 -0
  175. data/rbi/spotted/models/users/playlist_create_response.rbi +30 -9
  176. data/rbi/spotted/resources/me/albums.rbi +14 -0
  177. data/rbi/spotted/resources/me/episodes.rbi +14 -0
  178. data/rbi/spotted/resources/me/following.rbi +14 -0
  179. data/rbi/spotted/resources/me/player.rbi +14 -0
  180. data/rbi/spotted/resources/me/shows.rbi +14 -0
  181. data/rbi/spotted/resources/me/tracks.rbi +14 -0
  182. data/rbi/spotted/resources/playlists/followers.rbi +7 -0
  183. data/rbi/spotted/resources/playlists/tracks.rbi +21 -0
  184. data/rbi/spotted/resources/playlists.rbi +7 -0
  185. data/rbi/spotted/resources/users/playlists.rbi +7 -0
  186. data/sig/spotted/models/album_bulk_retrieve_response.rbs +17 -3
  187. data/sig/spotted/models/album_restriction_object.rbs +10 -1
  188. data/sig/spotted/models/album_retrieve_response.rbs +17 -3
  189. data/sig/spotted/models/artist_list_albums_response.rbs +7 -0
  190. data/sig/spotted/models/artist_object.rbs +7 -0
  191. data/sig/spotted/models/audio_analysis_retrieve_response.rbs +21 -0
  192. data/sig/spotted/models/audio_feature_bulk_retrieve_response.rbs +7 -0
  193. data/sig/spotted/models/audio_feature_retrieve_response.rbs +7 -0
  194. data/sig/spotted/models/audiobook_base.rbs +9 -2
  195. data/sig/spotted/models/audiobook_bulk_retrieve_response.rbs +10 -3
  196. data/sig/spotted/models/audiobook_retrieve_response.rbs +10 -3
  197. data/sig/spotted/models/author_object.rbs +7 -3
  198. data/sig/spotted/models/browse/category_get_playlists_response.rbs +13 -3
  199. data/sig/spotted/models/browse/category_list_response.rbs +20 -6
  200. data/sig/spotted/models/browse/category_retrieve_response.rbs +10 -3
  201. data/sig/spotted/models/browse_get_featured_playlists_response.rbs +13 -3
  202. data/sig/spotted/models/browse_get_new_releases_response.rbs +17 -3
  203. data/sig/spotted/models/chapter_bulk_retrieve_response.rbs +7 -0
  204. data/sig/spotted/models/chapter_restriction_object.rbs +7 -3
  205. data/sig/spotted/models/chapter_retrieve_response.rbs +7 -0
  206. data/sig/spotted/models/copyright_object.rbs +7 -3
  207. data/sig/spotted/models/episode_object.rbs +7 -0
  208. data/sig/spotted/models/episode_restriction_object.rbs +7 -3
  209. data/sig/spotted/models/external_id_object.rbs +19 -4
  210. data/sig/spotted/models/external_url_object.rbs +7 -3
  211. data/sig/spotted/models/followers_object.rbs +11 -3
  212. data/sig/spotted/models/image_object.rbs +18 -3
  213. data/sig/spotted/models/linked_track_object.rbs +7 -0
  214. data/sig/spotted/models/me/album_list_response.rbs +30 -6
  215. data/sig/spotted/models/me/album_remove_params.rbs +8 -1
  216. data/sig/spotted/models/me/album_save_params.rbs +8 -1
  217. data/sig/spotted/models/me/audiobook_list_response.rbs +20 -6
  218. data/sig/spotted/models/me/context_object.rbs +7 -0
  219. data/sig/spotted/models/me/device_object.rbs +7 -0
  220. data/sig/spotted/models/me/episode_list_response.rbs +12 -3
  221. data/sig/spotted/models/me/episode_remove_params.rbs +8 -1
  222. data/sig/spotted/models/me/episode_save_params.rbs +8 -1
  223. data/sig/spotted/models/me/following_bulk_retrieve_response.rbs +18 -3
  224. data/sig/spotted/models/me/following_follow_params.rbs +8 -1
  225. data/sig/spotted/models/me/following_unfollow_params.rbs +8 -1
  226. data/sig/spotted/models/me/player/queue_get_response.rbs +7 -0
  227. data/sig/spotted/models/me/player_get_currently_playing_response.rbs +14 -0
  228. data/sig/spotted/models/me/player_get_state_response.rbs +14 -0
  229. data/sig/spotted/models/me/player_list_recently_played_response.rbs +7 -0
  230. data/sig/spotted/models/me/player_start_playback_params.rbs +7 -0
  231. data/sig/spotted/models/me/player_transfer_params.rbs +7 -1
  232. data/sig/spotted/models/me/show_list_response.rbs +16 -3
  233. data/sig/spotted/models/me/show_remove_params.rbs +8 -1
  234. data/sig/spotted/models/me/show_save_params.rbs +8 -1
  235. data/sig/spotted/models/me/track_list_response.rbs +16 -3
  236. data/sig/spotted/models/me/track_remove_params.rbs +8 -1
  237. data/sig/spotted/models/me/track_save_params.rbs +7 -0
  238. data/sig/spotted/models/me_retrieve_response.rbs +23 -3
  239. data/sig/spotted/models/narrator_object.rbs +7 -3
  240. data/sig/spotted/models/paging_playlist_object.rbs +10 -3
  241. data/sig/spotted/models/playlist_retrieve_response.rbs +10 -3
  242. data/sig/spotted/models/playlist_track_object.rbs +7 -0
  243. data/sig/spotted/models/playlist_tracks_ref_object.rbs +8 -3
  244. data/sig/spotted/models/playlist_update_params.rbs +13 -1
  245. data/sig/spotted/models/playlist_user_object.rbs +7 -0
  246. data/sig/spotted/models/playlists/follower_follow_params.rbs +8 -1
  247. data/sig/spotted/models/playlists/track_add_params.rbs +7 -1
  248. data/sig/spotted/models/playlists/track_remove_params.rbs +7 -0
  249. data/sig/spotted/models/playlists/track_update_params.rbs +7 -0
  250. data/sig/spotted/models/recommendation_get_response.rbs +17 -3
  251. data/sig/spotted/models/resume_point_object.rbs +11 -2
  252. data/sig/spotted/models/search_query_response.rbs +67 -18
  253. data/sig/spotted/models/show_base.rbs +9 -2
  254. data/sig/spotted/models/show_retrieve_response.rbs +10 -3
  255. data/sig/spotted/models/simplified_artist_object.rbs +7 -0
  256. data/sig/spotted/models/simplified_chapter_object.rbs +7 -0
  257. data/sig/spotted/models/simplified_episode_object.rbs +7 -0
  258. data/sig/spotted/models/simplified_track_object.rbs +7 -0
  259. data/sig/spotted/models/time_interval_object.rbs +12 -2
  260. data/sig/spotted/models/track_object.rbs +14 -0
  261. data/sig/spotted/models/track_restriction_object.rbs +7 -3
  262. data/sig/spotted/models/user_retrieve_profile_response.rbs +7 -0
  263. data/sig/spotted/models/users/playlist_create_params.rbs +13 -1
  264. data/sig/spotted/models/users/playlist_create_response.rbs +10 -3
  265. data/sig/spotted/resources/me/albums.rbs +2 -0
  266. data/sig/spotted/resources/me/episodes.rbs +2 -0
  267. data/sig/spotted/resources/me/following.rbs +2 -0
  268. data/sig/spotted/resources/me/player.rbs +2 -0
  269. data/sig/spotted/resources/me/shows.rbs +2 -0
  270. data/sig/spotted/resources/me/tracks.rbs +2 -0
  271. data/sig/spotted/resources/playlists/followers.rbs +1 -0
  272. data/sig/spotted/resources/playlists/tracks.rbs +3 -0
  273. data/sig/spotted/resources/playlists.rbs +1 -0
  274. data/sig/spotted/resources/users/playlists.rbs +1 -0
  275. metadata +2 -2
@@ -59,6 +59,7 @@ module Spotted
59
59
  sig do
60
60
  params(
61
61
  ids: T::Array[String],
62
+ published: T::Boolean,
62
63
  request_options: Spotted::RequestOptions::OrHash
63
64
  ).void
64
65
  end
@@ -69,6 +70,12 @@ module Spotted
69
70
  # can be specified in one request. _**Note**: if the `ids` parameter is present in
70
71
  # the query string, any IDs listed here in the body will be ignored._
71
72
  ids: nil,
73
+ # The playlist's public/private status (if it should be added to the user's
74
+ # profile or not): `true` the playlist will be public, `false` the playlist will
75
+ # be private, `null` the playlist status is not relevant. For more about
76
+ # public/private status, see
77
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
78
+ published: nil,
72
79
  request_options: {}
73
80
  )
74
81
  end
@@ -77,6 +84,7 @@ module Spotted
77
84
  sig do
78
85
  params(
79
86
  ids: T::Array[String],
87
+ published: T::Boolean,
80
88
  request_options: Spotted::RequestOptions::OrHash
81
89
  ).void
82
90
  end
@@ -87,6 +95,12 @@ module Spotted
87
95
  # can be specified in one request. _**Note**: if the `ids` parameter is present in
88
96
  # the query string, any IDs listed here in the body will be ignored._
89
97
  ids: nil,
98
+ # The playlist's public/private status (if it should be added to the user's
99
+ # profile or not): `true` the playlist will be public, `false` the playlist will
100
+ # be private, `null` the playlist status is not relevant. For more about
101
+ # public/private status, see
102
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
103
+ published: nil,
90
104
  request_options: {}
91
105
  )
92
106
  end
@@ -67,6 +67,7 @@ module Spotted
67
67
  sig do
68
68
  params(
69
69
  ids: T::Array[String],
70
+ published: T::Boolean,
70
71
  request_options: Spotted::RequestOptions::OrHash
71
72
  ).void
72
73
  end
@@ -77,6 +78,12 @@ module Spotted
77
78
  # is present in the query string, any IDs listed here in the body will be
78
79
  # ignored._
79
80
  ids: nil,
81
+ # The playlist's public/private status (if it should be added to the user's
82
+ # profile or not): `true` the playlist will be public, `false` the playlist will
83
+ # be private, `null` the playlist status is not relevant. For more about
84
+ # public/private status, see
85
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
86
+ published: nil,
80
87
  request_options: {}
81
88
  )
82
89
  end
@@ -88,6 +95,7 @@ module Spotted
88
95
  sig do
89
96
  params(
90
97
  ids: T::Array[String],
98
+ published: T::Boolean,
91
99
  request_options: Spotted::RequestOptions::OrHash
92
100
  ).void
93
101
  end
@@ -98,6 +106,12 @@ module Spotted
98
106
  # is present in the query string, any IDs listed here in the body will be
99
107
  # ignored._
100
108
  ids:,
109
+ # The playlist's public/private status (if it should be added to the user's
110
+ # profile or not): `true` the playlist will be public, `false` the playlist will
111
+ # be private, `null` the playlist status is not relevant. For more about
112
+ # public/private status, see
113
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
114
+ published: nil,
101
115
  request_options: {}
102
116
  )
103
117
  end
@@ -50,6 +50,7 @@ module Spotted
50
50
  sig do
51
51
  params(
52
52
  ids: T::Array[String],
53
+ published: T::Boolean,
53
54
  request_options: Spotted::RequestOptions::OrHash
54
55
  ).void
55
56
  end
@@ -60,6 +61,12 @@ module Spotted
60
61
  # IDs can be sent in one request. _**Note**: if the `ids` parameter is present in
61
62
  # the query string, any IDs listed here in the body will be ignored._
62
63
  ids:,
64
+ # The playlist's public/private status (if it should be added to the user's
65
+ # profile or not): `true` the playlist will be public, `false` the playlist will
66
+ # be private, `null` the playlist status is not relevant. For more about
67
+ # public/private status, see
68
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
69
+ published: nil,
63
70
  request_options: {}
64
71
  )
65
72
  end
@@ -69,6 +76,7 @@ module Spotted
69
76
  sig do
70
77
  params(
71
78
  ids: T::Array[String],
79
+ published: T::Boolean,
72
80
  request_options: Spotted::RequestOptions::OrHash
73
81
  ).void
74
82
  end
@@ -79,6 +87,12 @@ module Spotted
79
87
  # IDs can be sent in one request. _**Note**: if the `ids` parameter is present in
80
88
  # the query string, any IDs listed here in the body will be ignored._
81
89
  ids: nil,
90
+ # The playlist's public/private status (if it should be added to the user's
91
+ # profile or not): `true` the playlist will be public, `false` the playlist will
92
+ # be private, `null` the playlist status is not relevant. For more about
93
+ # public/private status, see
94
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
95
+ published: nil,
82
96
  request_options: {}
83
97
  )
84
98
  end
@@ -229,6 +229,7 @@ module Spotted
229
229
  context_uri: String,
230
230
  offset: T::Hash[Symbol, T.anything],
231
231
  position_ms: Integer,
232
+ published: T::Boolean,
232
233
  uris: T::Array[String],
233
234
  request_options: Spotted::RequestOptions::OrHash
234
235
  ).void
@@ -252,6 +253,12 @@ module Spotted
252
253
  # number. Passing in a position that is greater than the length of the track will
253
254
  # cause the player to start playing the next song.
254
255
  position_ms: nil,
256
+ # Body param: The playlist's public/private status (if it should be added to the
257
+ # user's profile or not): `true` the playlist will be public, `false` the playlist
258
+ # will be private, `null` the playlist status is not relevant. For more about
259
+ # public/private status, see
260
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
261
+ published: nil,
255
262
  # Body param: Optional. A JSON array of the Spotify track URIs to play. For
256
263
  # example:
257
264
  # `{"uris": ["spotify:track:4iV5W9uYEdYUVa79Axb7Rh", "spotify:track:1301WleyT98MSxVHPZCA6M"]}`
@@ -288,6 +295,7 @@ module Spotted
288
295
  params(
289
296
  device_ids: T::Array[String],
290
297
  play: T::Boolean,
298
+ published: T::Boolean,
291
299
  request_options: Spotted::RequestOptions::OrHash
292
300
  ).void
293
301
  end
@@ -301,6 +309,12 @@ module Spotted
301
309
  # **true**: ensure playback happens on new device.<br/>**false** or not provided:
302
310
  # keep the current playback state.
303
311
  play: nil,
312
+ # The playlist's public/private status (if it should be added to the user's
313
+ # profile or not): `true` the playlist will be public, `false` the playlist will
314
+ # be private, `null` the playlist status is not relevant. For more about
315
+ # public/private status, see
316
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
317
+ published: nil,
304
318
  request_options: {}
305
319
  )
306
320
  end
@@ -48,6 +48,7 @@ module Spotted
48
48
  sig do
49
49
  params(
50
50
  ids: T::Array[String],
51
+ published: T::Boolean,
51
52
  request_options: Spotted::RequestOptions::OrHash
52
53
  ).void
53
54
  end
@@ -58,6 +59,12 @@ module Spotted
58
59
  # parameter is present in the query string, any IDs listed here in the body will
59
60
  # be ignored._
60
61
  ids: nil,
62
+ # The playlist's public/private status (if it should be added to the user's
63
+ # profile or not): `true` the playlist will be public, `false` the playlist will
64
+ # be private, `null` the playlist status is not relevant. For more about
65
+ # public/private status, see
66
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
67
+ published: nil,
61
68
  request_options: {}
62
69
  )
63
70
  end
@@ -66,6 +73,7 @@ module Spotted
66
73
  sig do
67
74
  params(
68
75
  ids: T::Array[String],
76
+ published: T::Boolean,
69
77
  request_options: Spotted::RequestOptions::OrHash
70
78
  ).void
71
79
  end
@@ -76,6 +84,12 @@ module Spotted
76
84
  # parameter is present in the query string, any IDs listed here in the body will
77
85
  # be ignored._
78
86
  ids: nil,
87
+ # The playlist's public/private status (if it should be added to the user's
88
+ # profile or not): `true` the playlist will be public, `false` the playlist will
89
+ # be private, `null` the playlist status is not relevant. For more about
90
+ # public/private status, see
91
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
92
+ published: nil,
79
93
  request_options: {}
80
94
  )
81
95
  end
@@ -59,6 +59,7 @@ module Spotted
59
59
  sig do
60
60
  params(
61
61
  ids: T::Array[String],
62
+ published: T::Boolean,
62
63
  request_options: Spotted::RequestOptions::OrHash
63
64
  ).void
64
65
  end
@@ -69,6 +70,12 @@ module Spotted
69
70
  # can be specified in one request. _**Note**: if the `ids` parameter is present in
70
71
  # the query string, any IDs listed here in the body will be ignored._
71
72
  ids: nil,
73
+ # The playlist's public/private status (if it should be added to the user's
74
+ # profile or not): `true` the playlist will be public, `false` the playlist will
75
+ # be private, `null` the playlist status is not relevant. For more about
76
+ # public/private status, see
77
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
78
+ published: nil,
72
79
  request_options: {}
73
80
  )
74
81
  end
@@ -77,6 +84,7 @@ module Spotted
77
84
  sig do
78
85
  params(
79
86
  ids: T::Array[String],
87
+ published: T::Boolean,
80
88
  timestamped_ids:
81
89
  T::Array[Spotted::Me::TrackSaveParams::TimestampedID::OrHash],
82
90
  request_options: Spotted::RequestOptions::OrHash
@@ -90,6 +98,12 @@ module Spotted
90
98
  # in the body, any IDs listed in the query parameters (deprecated) or the `ids`
91
99
  # field in the body will be ignored._
92
100
  ids:,
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
+ published: nil,
93
107
  # A JSON array of objects containing track IDs with their corresponding
94
108
  # timestamps. Each object must include a track ID and an `added_at` timestamp.
95
109
  # This allows you to specify when tracks were added to maintain a specific
@@ -29,6 +29,7 @@ module Spotted
29
29
  params(
30
30
  playlist_id: String,
31
31
  public: T::Boolean,
32
+ published: T::Boolean,
32
33
  request_options: Spotted::RequestOptions::OrHash
33
34
  ).void
34
35
  end
@@ -41,6 +42,12 @@ module Spotted
41
42
  # public/private status, see
42
43
  # [Working with Playlists](/documentation/web-api/concepts/playlists)
43
44
  public: nil,
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,
44
51
  request_options: {}
45
52
  )
46
53
  end
@@ -17,6 +17,7 @@ module Spotted
17
17
  params(
18
18
  playlist_id: String,
19
19
  insert_before: Integer,
20
+ published: T::Boolean,
20
21
  range_length: Integer,
21
22
  range_start: Integer,
22
23
  snapshot_id: String,
@@ -35,6 +36,12 @@ module Spotted
35
36
  # to 10.<br/>To reorder the last item in a playlist with 10 items to the start of
36
37
  # the playlist, set _range_start_ to 9, and _insert_before_ to 0.
37
38
  insert_before: nil,
39
+ # The playlist's public/private status (if it should be added to the user's
40
+ # profile or not): `true` the playlist will be public, `false` the playlist will
41
+ # be private, `null` the playlist status is not relevant. For more about
42
+ # public/private status, see
43
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
44
+ published: nil,
38
45
  # The amount of items to be reordered. Defaults to 1 if not set.<br/>The range of
39
46
  # items to be reordered begins from the _range_start_ position, and includes the
40
47
  # _range_length_ subsequent items.<br/>Example:<br/>To move the items at index
@@ -110,6 +117,7 @@ module Spotted
110
117
  params(
111
118
  playlist_id: String,
112
119
  position: Integer,
120
+ published: T::Boolean,
113
121
  uris: T::Array[String],
114
122
  request_options: Spotted::RequestOptions::OrHash
115
123
  ).returns(Spotted::Models::Playlists::TrackAddResponse)
@@ -124,6 +132,12 @@ module Spotted
124
132
  # Items are added in the order they appear in the uris array. For example:
125
133
  # `{"uris": ["spotify:track:4iV5W9uYEdYUVa79Axb7Rh","spotify:track:1301WleyT98MSxVHPZCA6M"], "position": 3}`
126
134
  position: nil,
135
+ # The playlist's public/private status (if it should be added to the user's
136
+ # profile or not): `true` the playlist will be public, `false` the playlist will
137
+ # be private, `null` the playlist status is not relevant. For more about
138
+ # public/private status, see
139
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
140
+ published: nil,
127
141
  # A JSON array of the
128
142
  # [Spotify URIs](/documentation/web-api/concepts/spotify-uris-ids) to add. For
129
143
  # example:
@@ -142,6 +156,7 @@ module Spotted
142
156
  playlist_id: String,
143
157
  tracks:
144
158
  T::Array[Spotted::Playlists::TrackRemoveParams::Track::OrHash],
159
+ published: T::Boolean,
145
160
  snapshot_id: String,
146
161
  request_options: Spotted::RequestOptions::OrHash
147
162
  ).returns(Spotted::Models::Playlists::TrackRemoveResponse)
@@ -156,6 +171,12 @@ module Spotted
156
171
  # `{ "tracks": [{ "uri": "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" },{ "uri": "spotify:track:1301WleyT98MSxVHPZCA6M" }] }`.
157
172
  # A maximum of 100 objects can be sent at once.
158
173
  tracks:,
174
+ # The playlist's public/private status (if it should be added to the user's
175
+ # profile or not): `true` the playlist will be public, `false` the playlist will
176
+ # be private, `null` the playlist status is not relevant. For more about
177
+ # public/private status, see
178
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
179
+ published: nil,
159
180
  # The playlist's snapshot ID against which you want to make the changes. The API
160
181
  # will validate that the specified items exist and in the specified positions and
161
182
  # make the changes, even if more recent changes have been made to the playlist.
@@ -67,6 +67,7 @@ module Spotted
67
67
  description: String,
68
68
  name: String,
69
69
  public: T::Boolean,
70
+ published: T::Boolean,
70
71
  request_options: Spotted::RequestOptions::OrHash
71
72
  ).void
72
73
  end
@@ -89,6 +90,12 @@ module Spotted
89
90
  # public/private status, see
90
91
  # [Working with Playlists](/documentation/web-api/concepts/playlists)
91
92
  public: nil,
93
+ # The playlist's public/private status (if it should be added to the user's
94
+ # profile or not): `true` the playlist will be public, `false` the playlist will
95
+ # be private, `null` the playlist status is not relevant. For more about
96
+ # public/private status, see
97
+ # [Working with Playlists](/documentation/web-api/concepts/playlists)
98
+ published: nil,
92
99
  request_options: {}
93
100
  )
94
101
  end
@@ -14,6 +14,7 @@ module Spotted
14
14
  collaborative: T::Boolean,
15
15
  description: String,
16
16
  public: T::Boolean,
17
+ published: T::Boolean,
17
18
  request_options: Spotted::RequestOptions::OrHash
18
19
  ).returns(Spotted::Models::Users::PlaylistCreateResponse)
19
20
  end
@@ -41,6 +42,12 @@ module Spotted
41
42
  # public/private status, see
42
43
  # [Working with Playlists](/documentation/web-api/concepts/playlists)
43
44
  public: nil,
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,
44
51
  request_options: {}
45
52
  )
46
53
  end
@@ -34,6 +34,7 @@ module Spotted
34
34
  genres: ::Array[String],
35
35
  label: String,
36
36
  popularity: Integer,
37
+ published: bool,
37
38
  restrictions: Spotted::AlbumRestrictionObject,
38
39
  tracks: Spotted::Models::AlbumBulkRetrieveResponse::Album::Tracks
39
40
  }
@@ -93,6 +94,10 @@ module Spotted
93
94
 
94
95
  def popularity=: (Integer) -> Integer
95
96
 
97
+ attr_reader published: bool?
98
+
99
+ def published=: (bool) -> bool
100
+
96
101
  attr_reader restrictions: Spotted::AlbumRestrictionObject?
97
102
 
98
103
  def restrictions=: (
@@ -123,6 +128,7 @@ module Spotted
123
128
  ?genres: ::Array[String],
124
129
  ?label: String,
125
130
  ?popularity: Integer,
131
+ ?published: bool,
126
132
  ?restrictions: Spotted::AlbumRestrictionObject,
127
133
  ?tracks: Spotted::Models::AlbumBulkRetrieveResponse::Album::Tracks,
128
134
  ?type: :album
@@ -147,6 +153,7 @@ module Spotted
147
153
  genres: ::Array[String],
148
154
  label: String,
149
155
  popularity: Integer,
156
+ published: bool,
150
157
  restrictions: Spotted::AlbumRestrictionObject,
151
158
  tracks: Spotted::Models::AlbumBulkRetrieveResponse::Album::Tracks
152
159
  }
@@ -183,7 +190,8 @@ module Spotted
183
190
  offset: Integer,
184
191
  previous: String?,
185
192
  total: Integer,
186
- items: ::Array[Spotted::SimplifiedTrackObject]
193
+ items: ::Array[Spotted::SimplifiedTrackObject],
194
+ published: bool
187
195
  }
188
196
 
189
197
  class Tracks < Spotted::Internal::Type::BaseModel
@@ -205,6 +213,10 @@ module Spotted
205
213
  ::Array[Spotted::SimplifiedTrackObject]
206
214
  ) -> ::Array[Spotted::SimplifiedTrackObject]
207
215
 
216
+ attr_reader published: bool?
217
+
218
+ def published=: (bool) -> bool
219
+
208
220
  def initialize: (
209
221
  href: String,
210
222
  limit: Integer,
@@ -212,7 +224,8 @@ module Spotted
212
224
  offset: Integer,
213
225
  previous: String?,
214
226
  total: Integer,
215
- ?items: ::Array[Spotted::SimplifiedTrackObject]
227
+ ?items: ::Array[Spotted::SimplifiedTrackObject],
228
+ ?published: bool
216
229
  ) -> void
217
230
 
218
231
  def to_hash: -> {
@@ -222,7 +235,8 @@ module Spotted
222
235
  offset: Integer,
223
236
  previous: String?,
224
237
  total: Integer,
225
- items: ::Array[Spotted::SimplifiedTrackObject]
238
+ items: ::Array[Spotted::SimplifiedTrackObject],
239
+ published: bool
226
240
  }
227
241
  end
228
242
  end
@@ -1,9 +1,16 @@
1
1
  module Spotted
2
2
  module Models
3
3
  type album_restriction_object =
4
- { reason: Spotted::Models::AlbumRestrictionObject::reason }
4
+ {
5
+ published: bool,
6
+ reason: Spotted::Models::AlbumRestrictionObject::reason
7
+ }
5
8
 
6
9
  class AlbumRestrictionObject < Spotted::Internal::Type::BaseModel
10
+ attr_reader published: bool?
11
+
12
+ def published=: (bool) -> bool
13
+
7
14
  attr_reader reason: Spotted::Models::AlbumRestrictionObject::reason?
8
15
 
9
16
  def reason=: (
@@ -11,10 +18,12 @@ module Spotted
11
18
  ) -> Spotted::Models::AlbumRestrictionObject::reason
12
19
 
13
20
  def initialize: (
21
+ ?published: bool,
14
22
  ?reason: Spotted::Models::AlbumRestrictionObject::reason
15
23
  ) -> void
16
24
 
17
25
  def to_hash: -> {
26
+ published: bool,
18
27
  reason: Spotted::Models::AlbumRestrictionObject::reason
19
28
  }
20
29
 
@@ -20,6 +20,7 @@ module Spotted
20
20
  genres: ::Array[String],
21
21
  label: String,
22
22
  popularity: Integer,
23
+ published: bool,
23
24
  restrictions: Spotted::AlbumRestrictionObject,
24
25
  tracks: Spotted::Models::AlbumRetrieveResponse::Tracks
25
26
  }
@@ -79,6 +80,10 @@ module Spotted
79
80
 
80
81
  def popularity=: (Integer) -> Integer
81
82
 
83
+ attr_reader published: bool?
84
+
85
+ def published=: (bool) -> bool
86
+
82
87
  attr_reader restrictions: Spotted::AlbumRestrictionObject?
83
88
 
84
89
  def restrictions=: (
@@ -109,6 +114,7 @@ module Spotted
109
114
  ?genres: ::Array[String],
110
115
  ?label: String,
111
116
  ?popularity: Integer,
117
+ ?published: bool,
112
118
  ?restrictions: Spotted::AlbumRestrictionObject,
113
119
  ?tracks: Spotted::Models::AlbumRetrieveResponse::Tracks,
114
120
  ?type: :album
@@ -133,6 +139,7 @@ module Spotted
133
139
  genres: ::Array[String],
134
140
  label: String,
135
141
  popularity: Integer,
142
+ published: bool,
136
143
  restrictions: Spotted::AlbumRestrictionObject,
137
144
  tracks: Spotted::Models::AlbumRetrieveResponse::Tracks
138
145
  }
@@ -169,7 +176,8 @@ module Spotted
169
176
  offset: Integer,
170
177
  previous: String?,
171
178
  total: Integer,
172
- items: ::Array[Spotted::SimplifiedTrackObject]
179
+ items: ::Array[Spotted::SimplifiedTrackObject],
180
+ published: bool
173
181
  }
174
182
 
175
183
  class Tracks < Spotted::Internal::Type::BaseModel
@@ -191,6 +199,10 @@ module Spotted
191
199
  ::Array[Spotted::SimplifiedTrackObject]
192
200
  ) -> ::Array[Spotted::SimplifiedTrackObject]
193
201
 
202
+ attr_reader published: bool?
203
+
204
+ def published=: (bool) -> bool
205
+
194
206
  def initialize: (
195
207
  href: String,
196
208
  limit: Integer,
@@ -198,7 +210,8 @@ module Spotted
198
210
  offset: Integer,
199
211
  previous: String?,
200
212
  total: Integer,
201
- ?items: ::Array[Spotted::SimplifiedTrackObject]
213
+ ?items: ::Array[Spotted::SimplifiedTrackObject],
214
+ ?published: bool
202
215
  ) -> void
203
216
 
204
217
  def to_hash: -> {
@@ -208,7 +221,8 @@ module Spotted
208
221
  offset: Integer,
209
222
  previous: String?,
210
223
  total: Integer,
211
- items: ::Array[Spotted::SimplifiedTrackObject]
224
+ items: ::Array[Spotted::SimplifiedTrackObject],
225
+ published: bool
212
226
  }
213
227
  end
214
228
  end
@@ -16,6 +16,7 @@ module Spotted
16
16
  total_tracks: Integer,
17
17
  type: :album,
18
18
  uri: String,
19
+ published: bool,
19
20
  restrictions: Spotted::AlbumRestrictionObject
20
21
  }
21
22
 
@@ -48,6 +49,10 @@ module Spotted
48
49
 
49
50
  attr_accessor uri: String
50
51
 
52
+ attr_reader published: bool?
53
+
54
+ def published=: (bool) -> bool
55
+
51
56
  attr_reader restrictions: Spotted::AlbumRestrictionObject?
52
57
 
53
58
  def restrictions=: (
@@ -68,6 +73,7 @@ module Spotted
68
73
  release_date_precision: Spotted::Models::ArtistListAlbumsResponse::release_date_precision,
69
74
  total_tracks: Integer,
70
75
  uri: String,
76
+ ?published: bool,
71
77
  ?restrictions: Spotted::AlbumRestrictionObject,
72
78
  ?type: :album
73
79
  ) -> void
@@ -87,6 +93,7 @@ module Spotted
87
93
  total_tracks: Integer,
88
94
  type: :album,
89
95
  uri: String,
96
+ published: bool,
90
97
  restrictions: Spotted::AlbumRestrictionObject
91
98
  }
92
99
 
@@ -10,6 +10,7 @@ module Spotted
10
10
  images: ::Array[Spotted::ImageObject],
11
11
  name: String,
12
12
  popularity: Integer,
13
+ published: bool,
13
14
  type: Spotted::Models::ArtistObject::type_,
14
15
  uri: String
15
16
  }
@@ -51,6 +52,10 @@ module Spotted
51
52
 
52
53
  def popularity=: (Integer) -> Integer
53
54
 
55
+ attr_reader published: bool?
56
+
57
+ def published=: (bool) -> bool
58
+
54
59
  attr_reader type: Spotted::Models::ArtistObject::type_?
55
60
 
56
61
  def type=: (
@@ -70,6 +75,7 @@ module Spotted
70
75
  ?images: ::Array[Spotted::ImageObject],
71
76
  ?name: String,
72
77
  ?popularity: Integer,
78
+ ?published: bool,
73
79
  ?type: Spotted::Models::ArtistObject::type_,
74
80
  ?uri: String
75
81
  ) -> void
@@ -83,6 +89,7 @@ module Spotted
83
89
  images: ::Array[Spotted::ImageObject],
84
90
  name: String,
85
91
  popularity: Integer,
92
+ published: bool,
86
93
  type: Spotted::Models::ArtistObject::type_,
87
94
  uri: String
88
95
  }