spotted 0.25.0 → 0.27.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 +16 -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 +4 -4
  17. data/lib/spotted/models/playlists/follower_follow_params.rb +7 -6
  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 +7 -9
  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 +2 -2
  29. data/lib/spotted/resources/playlists/tracks.rb +9 -3
  30. data/lib/spotted/resources/playlists.rb +2 -2
  31. data/lib/spotted/resources/users/playlists.rb +2 -2
  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 +6 -6
  46. data/rbi/spotted/models/playlists/follower_follow_params.rbi +12 -10
  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 +12 -16
  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 +5 -4
  58. data/rbi/spotted/resources/playlists/tracks.rbi +21 -0
  59. data/rbi/spotted/resources/playlists.rbi +2 -2
  60. data/rbi/spotted/resources/users/playlists.rbi +5 -7
  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 +10 -5
  74. data/sig/spotted/models/playlists/follower_follow_params.rbs +5 -5
  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 +10 -5
  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 -1
  86. data/sig/spotted/resources/playlists/tracks.rbs +3 -0
  87. data/sig/spotted/resources/playlists.rbs +1 -1
  88. data/sig/spotted/resources/users/playlists.rbs +1 -1
  89. metadata +1 -1
@@ -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
@@ -28,7 +28,7 @@ module Spotted
28
28
  sig do
29
29
  params(
30
30
  playlist_id: String,
31
- public: T::Boolean,
31
+ published: T::Boolean,
32
32
  request_options: Spotted::RequestOptions::OrHash
33
33
  ).void
34
34
  end
@@ -36,11 +36,12 @@ module Spotted
36
36
  # The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) of the
37
37
  # playlist.
38
38
  playlist_id,
39
- # Defaults to `true`. If `true` the playlist will be included in user's public
40
- # playlists (added to profile), if `false` it will remain private. For more about
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
41
42
  # public/private status, see
42
43
  # [Working with Playlists](/documentation/web-api/concepts/playlists)
43
- public: nil,
44
+ published: nil,
44
45
  request_options: {}
45
46
  )
46
47
  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.
@@ -66,7 +66,7 @@ module Spotted
66
66
  collaborative: T::Boolean,
67
67
  description: String,
68
68
  name: String,
69
- public: T::Boolean,
69
+ published: T::Boolean,
70
70
  request_options: Spotted::RequestOptions::OrHash
71
71
  ).void
72
72
  end
@@ -88,7 +88,7 @@ module Spotted
88
88
  # be private, `null` the playlist status is not relevant. For more about
89
89
  # public/private status, see
90
90
  # [Working with Playlists](/documentation/web-api/concepts/playlists)
91
- public: nil,
91
+ published: nil,
92
92
  request_options: {}
93
93
  )
94
94
  end
@@ -13,7 +13,7 @@ module Spotted
13
13
  name: String,
14
14
  collaborative: T::Boolean,
15
15
  description: String,
16
- public: T::Boolean,
16
+ published: T::Boolean,
17
17
  request_options: Spotted::RequestOptions::OrHash
18
18
  ).returns(Spotted::Models::Users::PlaylistCreateResponse)
19
19
  end
@@ -33,14 +33,12 @@ module Spotted
33
33
  # value for playlist description as displayed in Spotify Clients and in the Web
34
34
  # API.
35
35
  description: nil,
36
- # Defaults to `true`. The playlist's public/private status (if it should be added
37
- # to the user's profile or not): `true` the playlist will be public, `false` the
38
- # playlist will be private. To be able to create private playlists, the user must
39
- # have granted the `playlist-modify-private`
40
- # [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
36
+ # The playlist's public/private status (if it should be added to the user's
37
+ # profile or not): `true` the playlist will be public, `false` the playlist will
38
+ # be private, `null` the playlist status is not relevant. For more about
41
39
  # public/private status, see
42
40
  # [Working with Playlists](/documentation/web-api/concepts/playlists)
43
- public: nil,
41
+ published: nil,
44
42
  request_options: {}
45
43
  )
46
44
  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,12 @@
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
+ published: bool
9
+ }
5
10
  & Spotted::Internal::Type::request_parameters
6
11
 
7
12
  class PlaylistUpdateParams < Spotted::Internal::Type::BaseModel
@@ -20,15 +25,15 @@ module Spotted
20
25
 
21
26
  def name=: (String) -> String
22
27
 
23
- attr_reader public: bool?
28
+ attr_reader published: bool?
24
29
 
25
- def public=: (bool) -> bool
30
+ def published=: (bool) -> bool
26
31
 
27
32
  def initialize: (
28
33
  ?collaborative: bool,
29
34
  ?description: String,
30
35
  ?name: String,
31
- ?public: bool,
36
+ ?published: bool,
32
37
  ?request_options: Spotted::request_opts
33
38
  ) -> void
34
39
 
@@ -36,7 +41,7 @@ module Spotted
36
41
  collaborative: bool,
37
42
  description: String,
38
43
  name: String,
39
- public: bool,
44
+ published: bool,
40
45
  request_options: Spotted::RequestOptions
41
46
  }
42
47
  end
@@ -2,23 +2,23 @@ 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
+ { published: bool } & Spotted::Internal::Type::request_parameters
6
6
 
7
7
  class FollowerFollowParams < Spotted::Internal::Type::BaseModel
8
8
  extend Spotted::Internal::Type::RequestParameters::Converter
9
9
  include Spotted::Internal::Type::RequestParameters
10
10
 
11
- attr_reader public: bool?
11
+ attr_reader published: bool?
12
12
 
13
- def public=: (bool) -> bool
13
+ def published=: (bool) -> bool
14
14
 
15
15
  def initialize: (
16
- ?public: bool,
16
+ ?published: bool,
17
17
  ?request_options: Spotted::request_opts
18
18
  ) -> void
19
19
 
20
20
  def to_hash: -> {
21
- public: bool,
21
+ published: bool,
22
22
  request_options: Spotted::RequestOptions
23
23
  }
24
24
  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
  }