spotted 0.25.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 (89) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/spotted/models/me/album_remove_params.rb +13 -1
  5. data/lib/spotted/models/me/album_save_params.rb +13 -1
  6. data/lib/spotted/models/me/episode_remove_params.rb +13 -1
  7. data/lib/spotted/models/me/episode_save_params.rb +13 -1
  8. data/lib/spotted/models/me/following_follow_params.rb +13 -1
  9. data/lib/spotted/models/me/following_unfollow_params.rb +13 -1
  10. data/lib/spotted/models/me/player_start_playback_params.rb +13 -1
  11. data/lib/spotted/models/me/player_transfer_params.rb +13 -1
  12. data/lib/spotted/models/me/show_remove_params.rb +13 -1
  13. data/lib/spotted/models/me/show_save_params.rb +13 -1
  14. data/lib/spotted/models/me/track_remove_params.rb +13 -1
  15. data/lib/spotted/models/me/track_save_params.rb +13 -1
  16. data/lib/spotted/models/playlist_update_params.rb +13 -1
  17. data/lib/spotted/models/playlists/follower_follow_params.rb +13 -1
  18. data/lib/spotted/models/playlists/track_add_params.rb +13 -1
  19. data/lib/spotted/models/playlists/track_remove_params.rb +13 -1
  20. data/lib/spotted/models/playlists/track_update_params.rb +13 -1
  21. data/lib/spotted/models/users/playlist_create_params.rb +13 -1
  22. data/lib/spotted/resources/me/albums.rb +6 -2
  23. data/lib/spotted/resources/me/episodes.rb +6 -2
  24. data/lib/spotted/resources/me/following.rb +6 -2
  25. data/lib/spotted/resources/me/player.rb +6 -2
  26. data/lib/spotted/resources/me/shows.rb +6 -2
  27. data/lib/spotted/resources/me/tracks.rb +6 -2
  28. data/lib/spotted/resources/playlists/followers.rb +3 -1
  29. data/lib/spotted/resources/playlists/tracks.rb +9 -3
  30. data/lib/spotted/resources/playlists.rb +3 -1
  31. data/lib/spotted/resources/users/playlists.rb +3 -1
  32. data/lib/spotted/version.rb +1 -1
  33. data/rbi/spotted/models/me/album_remove_params.rbi +23 -1
  34. data/rbi/spotted/models/me/album_save_params.rbi +23 -1
  35. data/rbi/spotted/models/me/episode_remove_params.rbi +23 -1
  36. data/rbi/spotted/models/me/episode_save_params.rbi +23 -1
  37. data/rbi/spotted/models/me/following_follow_params.rbi +23 -1
  38. data/rbi/spotted/models/me/following_unfollow_params.rbi +23 -1
  39. data/rbi/spotted/models/me/player_start_playback_params.rbi +19 -0
  40. data/rbi/spotted/models/me/player_transfer_params.rbi +19 -0
  41. data/rbi/spotted/models/me/show_remove_params.rbi +23 -1
  42. data/rbi/spotted/models/me/show_save_params.rbi +23 -1
  43. data/rbi/spotted/models/me/track_remove_params.rbi +23 -1
  44. data/rbi/spotted/models/me/track_save_params.rbi +19 -0
  45. data/rbi/spotted/models/playlist_update_params.rbi +19 -0
  46. data/rbi/spotted/models/playlists/follower_follow_params.rbi +23 -1
  47. data/rbi/spotted/models/playlists/track_add_params.rbi +19 -0
  48. data/rbi/spotted/models/playlists/track_remove_params.rbi +19 -0
  49. data/rbi/spotted/models/playlists/track_update_params.rbi +19 -0
  50. data/rbi/spotted/models/users/playlist_create_params.rbi +19 -0
  51. data/rbi/spotted/resources/me/albums.rbi +14 -0
  52. data/rbi/spotted/resources/me/episodes.rbi +14 -0
  53. data/rbi/spotted/resources/me/following.rbi +14 -0
  54. data/rbi/spotted/resources/me/player.rbi +14 -0
  55. data/rbi/spotted/resources/me/shows.rbi +14 -0
  56. data/rbi/spotted/resources/me/tracks.rbi +14 -0
  57. data/rbi/spotted/resources/playlists/followers.rbi +7 -0
  58. data/rbi/spotted/resources/playlists/tracks.rbi +21 -0
  59. data/rbi/spotted/resources/playlists.rbi +7 -0
  60. data/rbi/spotted/resources/users/playlists.rbi +7 -0
  61. data/sig/spotted/models/me/album_remove_params.rbs +8 -1
  62. data/sig/spotted/models/me/album_save_params.rbs +8 -1
  63. data/sig/spotted/models/me/episode_remove_params.rbs +8 -1
  64. data/sig/spotted/models/me/episode_save_params.rbs +8 -1
  65. data/sig/spotted/models/me/following_follow_params.rbs +8 -1
  66. data/sig/spotted/models/me/following_unfollow_params.rbs +8 -1
  67. data/sig/spotted/models/me/player_start_playback_params.rbs +7 -0
  68. data/sig/spotted/models/me/player_transfer_params.rbs +7 -1
  69. data/sig/spotted/models/me/show_remove_params.rbs +8 -1
  70. data/sig/spotted/models/me/show_save_params.rbs +8 -1
  71. data/sig/spotted/models/me/track_remove_params.rbs +8 -1
  72. data/sig/spotted/models/me/track_save_params.rbs +7 -0
  73. data/sig/spotted/models/playlist_update_params.rbs +13 -1
  74. data/sig/spotted/models/playlists/follower_follow_params.rbs +8 -1
  75. data/sig/spotted/models/playlists/track_add_params.rbs +7 -1
  76. data/sig/spotted/models/playlists/track_remove_params.rbs +7 -0
  77. data/sig/spotted/models/playlists/track_update_params.rbs +7 -0
  78. data/sig/spotted/models/users/playlist_create_params.rbs +13 -1
  79. data/sig/spotted/resources/me/albums.rbs +2 -0
  80. data/sig/spotted/resources/me/episodes.rbs +2 -0
  81. data/sig/spotted/resources/me/following.rbs +2 -0
  82. data/sig/spotted/resources/me/player.rbs +2 -0
  83. data/sig/spotted/resources/me/shows.rbs +2 -0
  84. data/sig/spotted/resources/me/tracks.rbs +2 -0
  85. data/sig/spotted/resources/playlists/followers.rbs +1 -0
  86. data/sig/spotted/resources/playlists/tracks.rbs +3 -0
  87. data/sig/spotted/resources/playlists.rbs +1 -0
  88. data/sig/spotted/resources/users/playlists.rbs +1 -0
  89. metadata +1 -1
@@ -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
@@ -2,7 +2,8 @@ module Spotted
2
2
  module Models
3
3
  module Me
4
4
  type album_remove_params =
5
- { ids: ::Array[String] } & Spotted::Internal::Type::request_parameters
5
+ { ids: ::Array[String], published: bool }
6
+ & Spotted::Internal::Type::request_parameters
6
7
 
7
8
  class AlbumRemoveParams < Spotted::Internal::Type::BaseModel
8
9
  extend Spotted::Internal::Type::RequestParameters::Converter
@@ -12,13 +13,19 @@ module Spotted
12
13
 
13
14
  def ids=: (::Array[String]) -> ::Array[String]
14
15
 
16
+ attr_reader published: bool?
17
+
18
+ def published=: (bool) -> bool
19
+
15
20
  def initialize: (
16
21
  ?ids: ::Array[String],
22
+ ?published: bool,
17
23
  ?request_options: Spotted::request_opts
18
24
  ) -> void
19
25
 
20
26
  def to_hash: -> {
21
27
  ids: ::Array[String],
28
+ published: bool,
22
29
  request_options: Spotted::RequestOptions
23
30
  }
24
31
  end
@@ -2,7 +2,8 @@ module Spotted
2
2
  module Models
3
3
  module Me
4
4
  type album_save_params =
5
- { ids: ::Array[String] } & Spotted::Internal::Type::request_parameters
5
+ { ids: ::Array[String], published: bool }
6
+ & Spotted::Internal::Type::request_parameters
6
7
 
7
8
  class AlbumSaveParams < Spotted::Internal::Type::BaseModel
8
9
  extend Spotted::Internal::Type::RequestParameters::Converter
@@ -12,13 +13,19 @@ module Spotted
12
13
 
13
14
  def ids=: (::Array[String]) -> ::Array[String]
14
15
 
16
+ attr_reader published: bool?
17
+
18
+ def published=: (bool) -> bool
19
+
15
20
  def initialize: (
16
21
  ?ids: ::Array[String],
22
+ ?published: bool,
17
23
  ?request_options: Spotted::request_opts
18
24
  ) -> void
19
25
 
20
26
  def to_hash: -> {
21
27
  ids: ::Array[String],
28
+ published: bool,
22
29
  request_options: Spotted::RequestOptions
23
30
  }
24
31
  end
@@ -2,7 +2,8 @@ module Spotted
2
2
  module Models
3
3
  module Me
4
4
  type episode_remove_params =
5
- { ids: ::Array[String] } & Spotted::Internal::Type::request_parameters
5
+ { ids: ::Array[String], published: bool }
6
+ & Spotted::Internal::Type::request_parameters
6
7
 
7
8
  class EpisodeRemoveParams < Spotted::Internal::Type::BaseModel
8
9
  extend Spotted::Internal::Type::RequestParameters::Converter
@@ -12,13 +13,19 @@ module Spotted
12
13
 
13
14
  def ids=: (::Array[String]) -> ::Array[String]
14
15
 
16
+ attr_reader published: bool?
17
+
18
+ def published=: (bool) -> bool
19
+
15
20
  def initialize: (
16
21
  ?ids: ::Array[String],
22
+ ?published: bool,
17
23
  ?request_options: Spotted::request_opts
18
24
  ) -> void
19
25
 
20
26
  def to_hash: -> {
21
27
  ids: ::Array[String],
28
+ published: bool,
22
29
  request_options: Spotted::RequestOptions
23
30
  }
24
31
  end
@@ -2,7 +2,8 @@ module Spotted
2
2
  module Models
3
3
  module Me
4
4
  type episode_save_params =
5
- { ids: ::Array[String] } & Spotted::Internal::Type::request_parameters
5
+ { ids: ::Array[String], published: bool }
6
+ & Spotted::Internal::Type::request_parameters
6
7
 
7
8
  class EpisodeSaveParams < Spotted::Internal::Type::BaseModel
8
9
  extend Spotted::Internal::Type::RequestParameters::Converter
@@ -10,13 +11,19 @@ module Spotted
10
11
 
11
12
  attr_accessor ids: ::Array[String]
12
13
 
14
+ attr_reader published: bool?
15
+
16
+ def published=: (bool) -> bool
17
+
13
18
  def initialize: (
14
19
  ids: ::Array[String],
20
+ ?published: bool,
15
21
  ?request_options: Spotted::request_opts
16
22
  ) -> void
17
23
 
18
24
  def to_hash: -> {
19
25
  ids: ::Array[String],
26
+ published: bool,
20
27
  request_options: Spotted::RequestOptions
21
28
  }
22
29
  end
@@ -2,7 +2,8 @@ module Spotted
2
2
  module Models
3
3
  module Me
4
4
  type following_follow_params =
5
- { ids: ::Array[String] } & Spotted::Internal::Type::request_parameters
5
+ { ids: ::Array[String], published: bool }
6
+ & Spotted::Internal::Type::request_parameters
6
7
 
7
8
  class FollowingFollowParams < Spotted::Internal::Type::BaseModel
8
9
  extend Spotted::Internal::Type::RequestParameters::Converter
@@ -10,13 +11,19 @@ module Spotted
10
11
 
11
12
  attr_accessor ids: ::Array[String]
12
13
 
14
+ attr_reader published: bool?
15
+
16
+ def published=: (bool) -> bool
17
+
13
18
  def initialize: (
14
19
  ids: ::Array[String],
20
+ ?published: bool,
15
21
  ?request_options: Spotted::request_opts
16
22
  ) -> void
17
23
 
18
24
  def to_hash: -> {
19
25
  ids: ::Array[String],
26
+ published: bool,
20
27
  request_options: Spotted::RequestOptions
21
28
  }
22
29
  end
@@ -2,7 +2,8 @@ module Spotted
2
2
  module Models
3
3
  module Me
4
4
  type following_unfollow_params =
5
- { ids: ::Array[String] } & Spotted::Internal::Type::request_parameters
5
+ { ids: ::Array[String], published: bool }
6
+ & Spotted::Internal::Type::request_parameters
6
7
 
7
8
  class FollowingUnfollowParams < Spotted::Internal::Type::BaseModel
8
9
  extend Spotted::Internal::Type::RequestParameters::Converter
@@ -12,13 +13,19 @@ module Spotted
12
13
 
13
14
  def ids=: (::Array[String]) -> ::Array[String]
14
15
 
16
+ attr_reader published: bool?
17
+
18
+ def published=: (bool) -> bool
19
+
15
20
  def initialize: (
16
21
  ?ids: ::Array[String],
22
+ ?published: bool,
17
23
  ?request_options: Spotted::request_opts
18
24
  ) -> void
19
25
 
20
26
  def to_hash: -> {
21
27
  ids: ::Array[String],
28
+ published: bool,
22
29
  request_options: Spotted::RequestOptions
23
30
  }
24
31
  end
@@ -7,6 +7,7 @@ module Spotted
7
7
  context_uri: String,
8
8
  offset: ::Hash[Symbol, top],
9
9
  position_ms: Integer,
10
+ published: bool,
10
11
  uris: ::Array[String]
11
12
  }
12
13
  & Spotted::Internal::Type::request_parameters
@@ -31,6 +32,10 @@ module Spotted
31
32
 
32
33
  def position_ms=: (Integer) -> Integer
33
34
 
35
+ attr_reader published: bool?
36
+
37
+ def published=: (bool) -> bool
38
+
34
39
  attr_reader uris: ::Array[String]?
35
40
 
36
41
  def uris=: (::Array[String]) -> ::Array[String]
@@ -40,6 +45,7 @@ module Spotted
40
45
  ?context_uri: String,
41
46
  ?offset: ::Hash[Symbol, top],
42
47
  ?position_ms: Integer,
48
+ ?published: bool,
43
49
  ?uris: ::Array[String],
44
50
  ?request_options: Spotted::request_opts
45
51
  ) -> void
@@ -49,6 +55,7 @@ module Spotted
49
55
  context_uri: String,
50
56
  offset: ::Hash[Symbol, top],
51
57
  position_ms: Integer,
58
+ published: bool,
52
59
  uris: ::Array[String],
53
60
  request_options: Spotted::RequestOptions
54
61
  }
@@ -2,7 +2,7 @@ module Spotted
2
2
  module Models
3
3
  module Me
4
4
  type player_transfer_params =
5
- { device_ids: ::Array[String], play: bool }
5
+ { device_ids: ::Array[String], play: bool, published: bool }
6
6
  & Spotted::Internal::Type::request_parameters
7
7
 
8
8
  class PlayerTransferParams < Spotted::Internal::Type::BaseModel
@@ -15,15 +15,21 @@ module Spotted
15
15
 
16
16
  def play=: (bool) -> bool
17
17
 
18
+ attr_reader published: bool?
19
+
20
+ def published=: (bool) -> bool
21
+
18
22
  def initialize: (
19
23
  device_ids: ::Array[String],
20
24
  ?play: bool,
25
+ ?published: bool,
21
26
  ?request_options: Spotted::request_opts
22
27
  ) -> void
23
28
 
24
29
  def to_hash: -> {
25
30
  device_ids: ::Array[String],
26
31
  play: bool,
32
+ published: bool,
27
33
  request_options: Spotted::RequestOptions
28
34
  }
29
35
  end
@@ -2,7 +2,8 @@ module Spotted
2
2
  module Models
3
3
  module Me
4
4
  type show_remove_params =
5
- { ids: ::Array[String] } & Spotted::Internal::Type::request_parameters
5
+ { ids: ::Array[String], published: bool }
6
+ & Spotted::Internal::Type::request_parameters
6
7
 
7
8
  class ShowRemoveParams < Spotted::Internal::Type::BaseModel
8
9
  extend Spotted::Internal::Type::RequestParameters::Converter
@@ -12,13 +13,19 @@ module Spotted
12
13
 
13
14
  def ids=: (::Array[String]) -> ::Array[String]
14
15
 
16
+ attr_reader published: bool?
17
+
18
+ def published=: (bool) -> bool
19
+
15
20
  def initialize: (
16
21
  ?ids: ::Array[String],
22
+ ?published: bool,
17
23
  ?request_options: Spotted::request_opts
18
24
  ) -> void
19
25
 
20
26
  def to_hash: -> {
21
27
  ids: ::Array[String],
28
+ published: bool,
22
29
  request_options: Spotted::RequestOptions
23
30
  }
24
31
  end
@@ -2,7 +2,8 @@ module Spotted
2
2
  module Models
3
3
  module Me
4
4
  type show_save_params =
5
- { ids: ::Array[String] } & Spotted::Internal::Type::request_parameters
5
+ { ids: ::Array[String], published: bool }
6
+ & Spotted::Internal::Type::request_parameters
6
7
 
7
8
  class ShowSaveParams < Spotted::Internal::Type::BaseModel
8
9
  extend Spotted::Internal::Type::RequestParameters::Converter
@@ -12,13 +13,19 @@ module Spotted
12
13
 
13
14
  def ids=: (::Array[String]) -> ::Array[String]
14
15
 
16
+ attr_reader published: bool?
17
+
18
+ def published=: (bool) -> bool
19
+
15
20
  def initialize: (
16
21
  ?ids: ::Array[String],
22
+ ?published: bool,
17
23
  ?request_options: Spotted::request_opts
18
24
  ) -> void
19
25
 
20
26
  def to_hash: -> {
21
27
  ids: ::Array[String],
28
+ published: bool,
22
29
  request_options: Spotted::RequestOptions
23
30
  }
24
31
  end
@@ -2,7 +2,8 @@ module Spotted
2
2
  module Models
3
3
  module Me
4
4
  type track_remove_params =
5
- { ids: ::Array[String] } & Spotted::Internal::Type::request_parameters
5
+ { ids: ::Array[String], published: bool }
6
+ & Spotted::Internal::Type::request_parameters
6
7
 
7
8
  class TrackRemoveParams < Spotted::Internal::Type::BaseModel
8
9
  extend Spotted::Internal::Type::RequestParameters::Converter
@@ -12,13 +13,19 @@ module Spotted
12
13
 
13
14
  def ids=: (::Array[String]) -> ::Array[String]
14
15
 
16
+ attr_reader published: bool?
17
+
18
+ def published=: (bool) -> bool
19
+
15
20
  def initialize: (
16
21
  ?ids: ::Array[String],
22
+ ?published: bool,
17
23
  ?request_options: Spotted::request_opts
18
24
  ) -> void
19
25
 
20
26
  def to_hash: -> {
21
27
  ids: ::Array[String],
28
+ published: bool,
22
29
  request_options: Spotted::RequestOptions
23
30
  }
24
31
  end
@@ -4,6 +4,7 @@ module Spotted
4
4
  type track_save_params =
5
5
  {
6
6
  ids: ::Array[String],
7
+ published: bool,
7
8
  timestamped_ids: ::Array[Spotted::Me::TrackSaveParams::TimestampedID]
8
9
  }
9
10
  & Spotted::Internal::Type::request_parameters
@@ -14,6 +15,10 @@ module Spotted
14
15
 
15
16
  attr_accessor ids: ::Array[String]
16
17
 
18
+ attr_reader published: bool?
19
+
20
+ def published=: (bool) -> bool
21
+
17
22
  attr_reader timestamped_ids: ::Array[Spotted::Me::TrackSaveParams::TimestampedID]?
18
23
 
19
24
  def timestamped_ids=: (
@@ -22,12 +27,14 @@ module Spotted
22
27
 
23
28
  def initialize: (
24
29
  ids: ::Array[String],
30
+ ?published: bool,
25
31
  ?timestamped_ids: ::Array[Spotted::Me::TrackSaveParams::TimestampedID],
26
32
  ?request_options: Spotted::request_opts
27
33
  ) -> void
28
34
 
29
35
  def to_hash: -> {
30
36
  ids: ::Array[String],
37
+ published: bool,
31
38
  timestamped_ids: ::Array[Spotted::Me::TrackSaveParams::TimestampedID],
32
39
  request_options: Spotted::RequestOptions
33
40
  }
@@ -1,7 +1,13 @@
1
1
  module Spotted
2
2
  module Models
3
3
  type playlist_update_params =
4
- { collaborative: bool, description: String, name: String, public: bool }
4
+ {
5
+ collaborative: bool,
6
+ description: String,
7
+ name: String,
8
+ public: bool,
9
+ published: bool
10
+ }
5
11
  & Spotted::Internal::Type::request_parameters
6
12
 
7
13
  class PlaylistUpdateParams < Spotted::Internal::Type::BaseModel
@@ -24,11 +30,16 @@ module Spotted
24
30
 
25
31
  def public=: (bool) -> bool
26
32
 
33
+ attr_reader published: bool?
34
+
35
+ def published=: (bool) -> bool
36
+
27
37
  def initialize: (
28
38
  ?collaborative: bool,
29
39
  ?description: String,
30
40
  ?name: String,
31
41
  ?public: bool,
42
+ ?published: bool,
32
43
  ?request_options: Spotted::request_opts
33
44
  ) -> void
34
45
 
@@ -37,6 +48,7 @@ module Spotted
37
48
  description: String,
38
49
  name: String,
39
50
  public: bool,
51
+ published: bool,
40
52
  request_options: Spotted::RequestOptions
41
53
  }
42
54
  end
@@ -2,7 +2,8 @@ module Spotted
2
2
  module Models
3
3
  module Playlists
4
4
  type follower_follow_params =
5
- { public: bool } & Spotted::Internal::Type::request_parameters
5
+ { public: bool, published: bool }
6
+ & Spotted::Internal::Type::request_parameters
6
7
 
7
8
  class FollowerFollowParams < Spotted::Internal::Type::BaseModel
8
9
  extend Spotted::Internal::Type::RequestParameters::Converter
@@ -12,13 +13,19 @@ module Spotted
12
13
 
13
14
  def public=: (bool) -> bool
14
15
 
16
+ attr_reader published: bool?
17
+
18
+ def published=: (bool) -> bool
19
+
15
20
  def initialize: (
16
21
  ?public: bool,
22
+ ?published: bool,
17
23
  ?request_options: Spotted::request_opts
18
24
  ) -> void
19
25
 
20
26
  def to_hash: -> {
21
27
  public: bool,
28
+ published: bool,
22
29
  request_options: Spotted::RequestOptions
23
30
  }
24
31
  end
@@ -2,7 +2,7 @@ module Spotted
2
2
  module Models
3
3
  module Playlists
4
4
  type track_add_params =
5
- { position: Integer, uris: ::Array[String] }
5
+ { position: Integer, published: bool, uris: ::Array[String] }
6
6
  & Spotted::Internal::Type::request_parameters
7
7
 
8
8
  class TrackAddParams < Spotted::Internal::Type::BaseModel
@@ -13,18 +13,24 @@ module Spotted
13
13
 
14
14
  def position=: (Integer) -> Integer
15
15
 
16
+ attr_reader published: bool?
17
+
18
+ def published=: (bool) -> bool
19
+
16
20
  attr_reader uris: ::Array[String]?
17
21
 
18
22
  def uris=: (::Array[String]) -> ::Array[String]
19
23
 
20
24
  def initialize: (
21
25
  ?position: Integer,
26
+ ?published: bool,
22
27
  ?uris: ::Array[String],
23
28
  ?request_options: Spotted::request_opts
24
29
  ) -> void
25
30
 
26
31
  def to_hash: -> {
27
32
  position: Integer,
33
+ published: bool,
28
34
  uris: ::Array[String],
29
35
  request_options: Spotted::RequestOptions
30
36
  }
@@ -4,6 +4,7 @@ module Spotted
4
4
  type track_remove_params =
5
5
  {
6
6
  tracks: ::Array[Spotted::Playlists::TrackRemoveParams::Track],
7
+ published: bool,
7
8
  snapshot_id: String
8
9
  }
9
10
  & Spotted::Internal::Type::request_parameters
@@ -14,18 +15,24 @@ module Spotted
14
15
 
15
16
  attr_accessor tracks: ::Array[Spotted::Playlists::TrackRemoveParams::Track]
16
17
 
18
+ attr_reader published: bool?
19
+
20
+ def published=: (bool) -> bool
21
+
17
22
  attr_reader snapshot_id: String?
18
23
 
19
24
  def snapshot_id=: (String) -> String
20
25
 
21
26
  def initialize: (
22
27
  tracks: ::Array[Spotted::Playlists::TrackRemoveParams::Track],
28
+ ?published: bool,
23
29
  ?snapshot_id: String,
24
30
  ?request_options: Spotted::request_opts
25
31
  ) -> void
26
32
 
27
33
  def to_hash: -> {
28
34
  tracks: ::Array[Spotted::Playlists::TrackRemoveParams::Track],
35
+ published: bool,
29
36
  snapshot_id: String,
30
37
  request_options: Spotted::RequestOptions
31
38
  }
@@ -4,6 +4,7 @@ module Spotted
4
4
  type track_update_params =
5
5
  {
6
6
  insert_before: Integer,
7
+ published: bool,
7
8
  range_length: Integer,
8
9
  range_start: Integer,
9
10
  snapshot_id: String,
@@ -19,6 +20,10 @@ module Spotted
19
20
 
20
21
  def insert_before=: (Integer) -> Integer
21
22
 
23
+ attr_reader published: bool?
24
+
25
+ def published=: (bool) -> bool
26
+
22
27
  attr_reader range_length: Integer?
23
28
 
24
29
  def range_length=: (Integer) -> Integer
@@ -37,6 +42,7 @@ module Spotted
37
42
 
38
43
  def initialize: (
39
44
  ?insert_before: Integer,
45
+ ?published: bool,
40
46
  ?range_length: Integer,
41
47
  ?range_start: Integer,
42
48
  ?snapshot_id: String,
@@ -46,6 +52,7 @@ module Spotted
46
52
 
47
53
  def to_hash: -> {
48
54
  insert_before: Integer,
55
+ published: bool,
49
56
  range_length: Integer,
50
57
  range_start: Integer,
51
58
  snapshot_id: String,