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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/spotted/models/me/album_remove_params.rb +13 -1
- data/lib/spotted/models/me/album_save_params.rb +13 -1
- data/lib/spotted/models/me/episode_remove_params.rb +13 -1
- data/lib/spotted/models/me/episode_save_params.rb +13 -1
- data/lib/spotted/models/me/following_follow_params.rb +13 -1
- data/lib/spotted/models/me/following_unfollow_params.rb +13 -1
- data/lib/spotted/models/me/player_start_playback_params.rb +13 -1
- data/lib/spotted/models/me/player_transfer_params.rb +13 -1
- data/lib/spotted/models/me/show_remove_params.rb +13 -1
- data/lib/spotted/models/me/show_save_params.rb +13 -1
- data/lib/spotted/models/me/track_remove_params.rb +13 -1
- data/lib/spotted/models/me/track_save_params.rb +13 -1
- data/lib/spotted/models/playlist_update_params.rb +13 -1
- data/lib/spotted/models/playlists/follower_follow_params.rb +13 -1
- data/lib/spotted/models/playlists/track_add_params.rb +13 -1
- data/lib/spotted/models/playlists/track_remove_params.rb +13 -1
- data/lib/spotted/models/playlists/track_update_params.rb +13 -1
- data/lib/spotted/models/users/playlist_create_params.rb +13 -1
- data/lib/spotted/resources/me/albums.rb +6 -2
- data/lib/spotted/resources/me/episodes.rb +6 -2
- data/lib/spotted/resources/me/following.rb +6 -2
- data/lib/spotted/resources/me/player.rb +6 -2
- data/lib/spotted/resources/me/shows.rb +6 -2
- data/lib/spotted/resources/me/tracks.rb +6 -2
- data/lib/spotted/resources/playlists/followers.rb +3 -1
- data/lib/spotted/resources/playlists/tracks.rb +9 -3
- data/lib/spotted/resources/playlists.rb +3 -1
- data/lib/spotted/resources/users/playlists.rb +3 -1
- data/lib/spotted/version.rb +1 -1
- data/rbi/spotted/models/me/album_remove_params.rbi +23 -1
- data/rbi/spotted/models/me/album_save_params.rbi +23 -1
- data/rbi/spotted/models/me/episode_remove_params.rbi +23 -1
- data/rbi/spotted/models/me/episode_save_params.rbi +23 -1
- data/rbi/spotted/models/me/following_follow_params.rbi +23 -1
- data/rbi/spotted/models/me/following_unfollow_params.rbi +23 -1
- data/rbi/spotted/models/me/player_start_playback_params.rbi +19 -0
- data/rbi/spotted/models/me/player_transfer_params.rbi +19 -0
- data/rbi/spotted/models/me/show_remove_params.rbi +23 -1
- data/rbi/spotted/models/me/show_save_params.rbi +23 -1
- data/rbi/spotted/models/me/track_remove_params.rbi +23 -1
- data/rbi/spotted/models/me/track_save_params.rbi +19 -0
- data/rbi/spotted/models/playlist_update_params.rbi +19 -0
- data/rbi/spotted/models/playlists/follower_follow_params.rbi +23 -1
- data/rbi/spotted/models/playlists/track_add_params.rbi +19 -0
- data/rbi/spotted/models/playlists/track_remove_params.rbi +19 -0
- data/rbi/spotted/models/playlists/track_update_params.rbi +19 -0
- data/rbi/spotted/models/users/playlist_create_params.rbi +19 -0
- data/rbi/spotted/resources/me/albums.rbi +14 -0
- data/rbi/spotted/resources/me/episodes.rbi +14 -0
- data/rbi/spotted/resources/me/following.rbi +14 -0
- data/rbi/spotted/resources/me/player.rbi +14 -0
- data/rbi/spotted/resources/me/shows.rbi +14 -0
- data/rbi/spotted/resources/me/tracks.rbi +14 -0
- data/rbi/spotted/resources/playlists/followers.rbi +7 -0
- data/rbi/spotted/resources/playlists/tracks.rbi +21 -0
- data/rbi/spotted/resources/playlists.rbi +7 -0
- data/rbi/spotted/resources/users/playlists.rbi +7 -0
- data/sig/spotted/models/me/album_remove_params.rbs +8 -1
- data/sig/spotted/models/me/album_save_params.rbs +8 -1
- data/sig/spotted/models/me/episode_remove_params.rbs +8 -1
- data/sig/spotted/models/me/episode_save_params.rbs +8 -1
- data/sig/spotted/models/me/following_follow_params.rbs +8 -1
- data/sig/spotted/models/me/following_unfollow_params.rbs +8 -1
- data/sig/spotted/models/me/player_start_playback_params.rbs +7 -0
- data/sig/spotted/models/me/player_transfer_params.rbs +7 -1
- data/sig/spotted/models/me/show_remove_params.rbs +8 -1
- data/sig/spotted/models/me/show_save_params.rbs +8 -1
- data/sig/spotted/models/me/track_remove_params.rbs +8 -1
- data/sig/spotted/models/me/track_save_params.rbs +7 -0
- data/sig/spotted/models/playlist_update_params.rbs +13 -1
- data/sig/spotted/models/playlists/follower_follow_params.rbs +8 -1
- data/sig/spotted/models/playlists/track_add_params.rbs +7 -1
- data/sig/spotted/models/playlists/track_remove_params.rbs +7 -0
- data/sig/spotted/models/playlists/track_update_params.rbs +7 -0
- data/sig/spotted/models/users/playlist_create_params.rbs +13 -1
- data/sig/spotted/resources/me/albums.rbs +2 -0
- data/sig/spotted/resources/me/episodes.rbs +2 -0
- data/sig/spotted/resources/me/following.rbs +2 -0
- data/sig/spotted/resources/me/player.rbs +2 -0
- data/sig/spotted/resources/me/shows.rbs +2 -0
- data/sig/spotted/resources/me/tracks.rbs +2 -0
- data/sig/spotted/resources/playlists/followers.rbs +1 -0
- data/sig/spotted/resources/playlists/tracks.rbs +3 -0
- data/sig/spotted/resources/playlists.rbs +1 -0
- data/sig/spotted/resources/users/playlists.rbs +1 -0
- metadata +1 -1
|
@@ -23,9 +23,21 @@ module Spotted
|
|
|
23
23
|
sig { params(ids: T::Array[String]).void }
|
|
24
24
|
attr_writer :ids
|
|
25
25
|
|
|
26
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
27
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
28
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
29
|
+
# public/private status, see
|
|
30
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
31
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
+
attr_reader :published
|
|
33
|
+
|
|
34
|
+
sig { params(published: T::Boolean).void }
|
|
35
|
+
attr_writer :published
|
|
36
|
+
|
|
26
37
|
sig do
|
|
27
38
|
params(
|
|
28
39
|
ids: T::Array[String],
|
|
40
|
+
published: T::Boolean,
|
|
29
41
|
request_options: Spotted::RequestOptions::OrHash
|
|
30
42
|
).returns(T.attached_class)
|
|
31
43
|
end
|
|
@@ -36,13 +48,23 @@ module Spotted
|
|
|
36
48
|
# parameter is present in the query string, any IDs listed here in the body will
|
|
37
49
|
# be ignored._
|
|
38
50
|
ids: nil,
|
|
51
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
52
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
53
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
54
|
+
# public/private status, see
|
|
55
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
56
|
+
published: nil,
|
|
39
57
|
request_options: {}
|
|
40
58
|
)
|
|
41
59
|
end
|
|
42
60
|
|
|
43
61
|
sig do
|
|
44
62
|
override.returns(
|
|
45
|
-
{
|
|
63
|
+
{
|
|
64
|
+
ids: T::Array[String],
|
|
65
|
+
published: T::Boolean,
|
|
66
|
+
request_options: Spotted::RequestOptions
|
|
67
|
+
}
|
|
46
68
|
)
|
|
47
69
|
end
|
|
48
70
|
def to_hash
|
|
@@ -23,9 +23,21 @@ module Spotted
|
|
|
23
23
|
sig { params(ids: T::Array[String]).void }
|
|
24
24
|
attr_writer :ids
|
|
25
25
|
|
|
26
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
27
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
28
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
29
|
+
# public/private status, see
|
|
30
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
31
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
+
attr_reader :published
|
|
33
|
+
|
|
34
|
+
sig { params(published: T::Boolean).void }
|
|
35
|
+
attr_writer :published
|
|
36
|
+
|
|
26
37
|
sig do
|
|
27
38
|
params(
|
|
28
39
|
ids: T::Array[String],
|
|
40
|
+
published: T::Boolean,
|
|
29
41
|
request_options: Spotted::RequestOptions::OrHash
|
|
30
42
|
).returns(T.attached_class)
|
|
31
43
|
end
|
|
@@ -36,13 +48,23 @@ module Spotted
|
|
|
36
48
|
# can be specified in one request. _**Note**: if the `ids` parameter is present in
|
|
37
49
|
# the query string, any IDs listed here in the body will be ignored._
|
|
38
50
|
ids: nil,
|
|
51
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
52
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
53
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
54
|
+
# public/private status, see
|
|
55
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
56
|
+
published: nil,
|
|
39
57
|
request_options: {}
|
|
40
58
|
)
|
|
41
59
|
end
|
|
42
60
|
|
|
43
61
|
sig do
|
|
44
62
|
override.returns(
|
|
45
|
-
{
|
|
63
|
+
{
|
|
64
|
+
ids: T::Array[String],
|
|
65
|
+
published: T::Boolean,
|
|
66
|
+
request_options: Spotted::RequestOptions
|
|
67
|
+
}
|
|
46
68
|
)
|
|
47
69
|
end
|
|
48
70
|
def to_hash
|
|
@@ -21,6 +21,17 @@ module Spotted
|
|
|
21
21
|
sig { returns(T::Array[String]) }
|
|
22
22
|
attr_accessor :ids
|
|
23
23
|
|
|
24
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
25
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
26
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
27
|
+
# public/private status, see
|
|
28
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
29
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
30
|
+
attr_reader :published
|
|
31
|
+
|
|
32
|
+
sig { params(published: T::Boolean).void }
|
|
33
|
+
attr_writer :published
|
|
34
|
+
|
|
24
35
|
# A JSON array of objects containing track IDs with their corresponding
|
|
25
36
|
# timestamps. Each object must include a track ID and an `added_at` timestamp.
|
|
26
37
|
# This allows you to specify when tracks were added to maintain a specific
|
|
@@ -46,6 +57,7 @@ module Spotted
|
|
|
46
57
|
sig do
|
|
47
58
|
params(
|
|
48
59
|
ids: T::Array[String],
|
|
60
|
+
published: T::Boolean,
|
|
49
61
|
timestamped_ids:
|
|
50
62
|
T::Array[Spotted::Me::TrackSaveParams::TimestampedID::OrHash],
|
|
51
63
|
request_options: Spotted::RequestOptions::OrHash
|
|
@@ -59,6 +71,12 @@ module Spotted
|
|
|
59
71
|
# in the body, any IDs listed in the query parameters (deprecated) or the `ids`
|
|
60
72
|
# field in the body will be ignored._
|
|
61
73
|
ids:,
|
|
74
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
75
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
76
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
77
|
+
# public/private status, see
|
|
78
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
79
|
+
published: nil,
|
|
62
80
|
# A JSON array of objects containing track IDs with their corresponding
|
|
63
81
|
# timestamps. Each object must include a track ID and an `added_at` timestamp.
|
|
64
82
|
# This allows you to specify when tracks were added to maintain a specific
|
|
@@ -75,6 +93,7 @@ module Spotted
|
|
|
75
93
|
override.returns(
|
|
76
94
|
{
|
|
77
95
|
ids: T::Array[String],
|
|
96
|
+
published: T::Boolean,
|
|
78
97
|
timestamped_ids:
|
|
79
98
|
T::Array[Spotted::Me::TrackSaveParams::TimestampedID],
|
|
80
99
|
request_options: Spotted::RequestOptions
|
|
@@ -46,12 +46,24 @@ module Spotted
|
|
|
46
46
|
sig { params(public: T::Boolean).void }
|
|
47
47
|
attr_writer :public
|
|
48
48
|
|
|
49
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
50
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
51
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
52
|
+
# public/private status, see
|
|
53
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
54
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
55
|
+
attr_reader :published
|
|
56
|
+
|
|
57
|
+
sig { params(published: T::Boolean).void }
|
|
58
|
+
attr_writer :published
|
|
59
|
+
|
|
49
60
|
sig do
|
|
50
61
|
params(
|
|
51
62
|
collaborative: T::Boolean,
|
|
52
63
|
description: String,
|
|
53
64
|
name: String,
|
|
54
65
|
public: T::Boolean,
|
|
66
|
+
published: T::Boolean,
|
|
55
67
|
request_options: Spotted::RequestOptions::OrHash
|
|
56
68
|
).returns(T.attached_class)
|
|
57
69
|
end
|
|
@@ -71,6 +83,12 @@ module Spotted
|
|
|
71
83
|
# public/private status, see
|
|
72
84
|
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
73
85
|
public: nil,
|
|
86
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
87
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
88
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
89
|
+
# public/private status, see
|
|
90
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
91
|
+
published: nil,
|
|
74
92
|
request_options: {}
|
|
75
93
|
)
|
|
76
94
|
end
|
|
@@ -82,6 +100,7 @@ module Spotted
|
|
|
82
100
|
description: String,
|
|
83
101
|
name: String,
|
|
84
102
|
public: T::Boolean,
|
|
103
|
+
published: T::Boolean,
|
|
85
104
|
request_options: Spotted::RequestOptions
|
|
86
105
|
}
|
|
87
106
|
)
|
|
@@ -25,9 +25,21 @@ module Spotted
|
|
|
25
25
|
sig { params(public: T::Boolean).void }
|
|
26
26
|
attr_writer :public
|
|
27
27
|
|
|
28
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
29
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
30
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
31
|
+
# public/private status, see
|
|
32
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
33
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
34
|
+
attr_reader :published
|
|
35
|
+
|
|
36
|
+
sig { params(published: T::Boolean).void }
|
|
37
|
+
attr_writer :published
|
|
38
|
+
|
|
28
39
|
sig do
|
|
29
40
|
params(
|
|
30
41
|
public: T::Boolean,
|
|
42
|
+
published: T::Boolean,
|
|
31
43
|
request_options: Spotted::RequestOptions::OrHash
|
|
32
44
|
).returns(T.attached_class)
|
|
33
45
|
end
|
|
@@ -37,13 +49,23 @@ module Spotted
|
|
|
37
49
|
# public/private status, see
|
|
38
50
|
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
39
51
|
public: nil,
|
|
52
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
53
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
54
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
55
|
+
# public/private status, see
|
|
56
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
57
|
+
published: nil,
|
|
40
58
|
request_options: {}
|
|
41
59
|
)
|
|
42
60
|
end
|
|
43
61
|
|
|
44
62
|
sig do
|
|
45
63
|
override.returns(
|
|
46
|
-
{
|
|
64
|
+
{
|
|
65
|
+
public: T::Boolean,
|
|
66
|
+
published: T::Boolean,
|
|
67
|
+
request_options: Spotted::RequestOptions
|
|
68
|
+
}
|
|
47
69
|
)
|
|
48
70
|
end
|
|
49
71
|
def to_hash
|
|
@@ -26,6 +26,17 @@ module Spotted
|
|
|
26
26
|
sig { params(position: Integer).void }
|
|
27
27
|
attr_writer :position
|
|
28
28
|
|
|
29
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
30
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
31
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
32
|
+
# public/private status, see
|
|
33
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
34
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
35
|
+
attr_reader :published
|
|
36
|
+
|
|
37
|
+
sig { params(published: T::Boolean).void }
|
|
38
|
+
attr_writer :published
|
|
39
|
+
|
|
29
40
|
# A JSON array of the
|
|
30
41
|
# [Spotify URIs](/documentation/web-api/concepts/spotify-uris-ids) to add. For
|
|
31
42
|
# example:
|
|
@@ -42,6 +53,7 @@ module Spotted
|
|
|
42
53
|
sig do
|
|
43
54
|
params(
|
|
44
55
|
position: Integer,
|
|
56
|
+
published: T::Boolean,
|
|
45
57
|
uris: T::Array[String],
|
|
46
58
|
request_options: Spotted::RequestOptions::OrHash
|
|
47
59
|
).returns(T.attached_class)
|
|
@@ -53,6 +65,12 @@ module Spotted
|
|
|
53
65
|
# Items are added in the order they appear in the uris array. For example:
|
|
54
66
|
# `{"uris": ["spotify:track:4iV5W9uYEdYUVa79Axb7Rh","spotify:track:1301WleyT98MSxVHPZCA6M"], "position": 3}`
|
|
55
67
|
position: nil,
|
|
68
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
69
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
70
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
71
|
+
# public/private status, see
|
|
72
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
73
|
+
published: nil,
|
|
56
74
|
# A JSON array of the
|
|
57
75
|
# [Spotify URIs](/documentation/web-api/concepts/spotify-uris-ids) to add. For
|
|
58
76
|
# example:
|
|
@@ -69,6 +87,7 @@ module Spotted
|
|
|
69
87
|
override.returns(
|
|
70
88
|
{
|
|
71
89
|
position: Integer,
|
|
90
|
+
published: T::Boolean,
|
|
72
91
|
uris: T::Array[String],
|
|
73
92
|
request_options: Spotted::RequestOptions
|
|
74
93
|
}
|
|
@@ -23,6 +23,17 @@ module Spotted
|
|
|
23
23
|
sig { returns(T::Array[Spotted::Playlists::TrackRemoveParams::Track]) }
|
|
24
24
|
attr_accessor :tracks
|
|
25
25
|
|
|
26
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
27
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
28
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
29
|
+
# public/private status, see
|
|
30
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
31
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
+
attr_reader :published
|
|
33
|
+
|
|
34
|
+
sig { params(published: T::Boolean).void }
|
|
35
|
+
attr_writer :published
|
|
36
|
+
|
|
26
37
|
# The playlist's snapshot ID against which you want to make the changes. The API
|
|
27
38
|
# will validate that the specified items exist and in the specified positions and
|
|
28
39
|
# make the changes, even if more recent changes have been made to the playlist.
|
|
@@ -36,6 +47,7 @@ module Spotted
|
|
|
36
47
|
params(
|
|
37
48
|
tracks:
|
|
38
49
|
T::Array[Spotted::Playlists::TrackRemoveParams::Track::OrHash],
|
|
50
|
+
published: T::Boolean,
|
|
39
51
|
snapshot_id: String,
|
|
40
52
|
request_options: Spotted::RequestOptions::OrHash
|
|
41
53
|
).returns(T.attached_class)
|
|
@@ -47,6 +59,12 @@ module Spotted
|
|
|
47
59
|
# `{ "tracks": [{ "uri": "spotify:track:4iV5W9uYEdYUVa79Axb7Rh" },{ "uri": "spotify:track:1301WleyT98MSxVHPZCA6M" }] }`.
|
|
48
60
|
# A maximum of 100 objects can be sent at once.
|
|
49
61
|
tracks:,
|
|
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,
|
|
50
68
|
# The playlist's snapshot ID against which you want to make the changes. The API
|
|
51
69
|
# will validate that the specified items exist and in the specified positions and
|
|
52
70
|
# make the changes, even if more recent changes have been made to the playlist.
|
|
@@ -59,6 +77,7 @@ module Spotted
|
|
|
59
77
|
override.returns(
|
|
60
78
|
{
|
|
61
79
|
tracks: T::Array[Spotted::Playlists::TrackRemoveParams::Track],
|
|
80
|
+
published: T::Boolean,
|
|
62
81
|
snapshot_id: String,
|
|
63
82
|
request_options: Spotted::RequestOptions
|
|
64
83
|
}
|
|
@@ -27,6 +27,17 @@ module Spotted
|
|
|
27
27
|
sig { params(insert_before: Integer).void }
|
|
28
28
|
attr_writer :insert_before
|
|
29
29
|
|
|
30
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
31
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
32
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
33
|
+
# public/private status, see
|
|
34
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
35
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
36
|
+
attr_reader :published
|
|
37
|
+
|
|
38
|
+
sig { params(published: T::Boolean).void }
|
|
39
|
+
attr_writer :published
|
|
40
|
+
|
|
30
41
|
# The amount of items to be reordered. Defaults to 1 if not set.<br/>The range of
|
|
31
42
|
# items to be reordered begins from the _range_start_ position, and includes the
|
|
32
43
|
# _range_length_ subsequent items.<br/>Example:<br/>To move the items at index
|
|
@@ -61,6 +72,7 @@ module Spotted
|
|
|
61
72
|
sig do
|
|
62
73
|
params(
|
|
63
74
|
insert_before: Integer,
|
|
75
|
+
published: T::Boolean,
|
|
64
76
|
range_length: Integer,
|
|
65
77
|
range_start: Integer,
|
|
66
78
|
snapshot_id: String,
|
|
@@ -76,6 +88,12 @@ module Spotted
|
|
|
76
88
|
# to 10.<br/>To reorder the last item in a playlist with 10 items to the start of
|
|
77
89
|
# the playlist, set _range_start_ to 9, and _insert_before_ to 0.
|
|
78
90
|
insert_before: nil,
|
|
91
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
92
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
93
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
94
|
+
# public/private status, see
|
|
95
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
96
|
+
published: nil,
|
|
79
97
|
# The amount of items to be reordered. Defaults to 1 if not set.<br/>The range of
|
|
80
98
|
# items to be reordered begins from the _range_start_ position, and includes the
|
|
81
99
|
# _range_length_ subsequent items.<br/>Example:<br/>To move the items at index
|
|
@@ -95,6 +113,7 @@ module Spotted
|
|
|
95
113
|
override.returns(
|
|
96
114
|
{
|
|
97
115
|
insert_before: Integer,
|
|
116
|
+
published: T::Boolean,
|
|
98
117
|
range_length: Integer,
|
|
99
118
|
range_start: Integer,
|
|
100
119
|
snapshot_id: String,
|
|
@@ -53,12 +53,24 @@ module Spotted
|
|
|
53
53
|
sig { params(public: T::Boolean).void }
|
|
54
54
|
attr_writer :public
|
|
55
55
|
|
|
56
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
57
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
58
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
59
|
+
# public/private status, see
|
|
60
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
61
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
62
|
+
attr_reader :published
|
|
63
|
+
|
|
64
|
+
sig { params(published: T::Boolean).void }
|
|
65
|
+
attr_writer :published
|
|
66
|
+
|
|
56
67
|
sig do
|
|
57
68
|
params(
|
|
58
69
|
name: String,
|
|
59
70
|
collaborative: T::Boolean,
|
|
60
71
|
description: String,
|
|
61
72
|
public: T::Boolean,
|
|
73
|
+
published: T::Boolean,
|
|
62
74
|
request_options: Spotted::RequestOptions::OrHash
|
|
63
75
|
).returns(T.attached_class)
|
|
64
76
|
end
|
|
@@ -84,6 +96,12 @@ module Spotted
|
|
|
84
96
|
# public/private status, see
|
|
85
97
|
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
86
98
|
public: nil,
|
|
99
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
100
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
101
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
102
|
+
# public/private status, see
|
|
103
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
104
|
+
published: nil,
|
|
87
105
|
request_options: {}
|
|
88
106
|
)
|
|
89
107
|
end
|
|
@@ -95,6 +113,7 @@ module Spotted
|
|
|
95
113
|
collaborative: T::Boolean,
|
|
96
114
|
description: String,
|
|
97
115
|
public: T::Boolean,
|
|
116
|
+
published: T::Boolean,
|
|
98
117
|
request_options: Spotted::RequestOptions
|
|
99
118
|
}
|
|
100
119
|
)
|
|
@@ -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
|