spotted 0.16.0 → 0.17.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/playlist_update_params.rb +13 -15
- data/lib/spotted/models/playlists/follower_follow_params.rb +4 -6
- data/lib/spotted/models/users/playlist_create_params.rb +15 -17
- data/lib/spotted/resources/playlists/followers.rb +2 -2
- data/lib/spotted/resources/playlists.rb +3 -3
- data/lib/spotted/resources/users/playlists.rb +3 -3
- data/lib/spotted/version.rb +1 -1
- data/rbi/spotted/models/playlist_update_params.rbi +19 -26
- data/rbi/spotted/models/playlists/follower_follow_params.rbi +6 -16
- data/rbi/spotted/models/users/playlist_create_params.rbi +23 -30
- data/rbi/spotted/resources/playlists/followers.rbi +2 -3
- data/rbi/spotted/resources/playlists.rbi +7 -8
- data/rbi/spotted/resources/users/playlists.rbi +9 -10
- data/sig/spotted/models/playlist_update_params.rbs +7 -14
- data/sig/spotted/models/playlists/follower_follow_params.rbs +5 -10
- data/sig/spotted/models/users/playlist_create_params.rbs +7 -14
- data/sig/spotted/resources/playlists/followers.rbs +1 -1
- data/sig/spotted/resources/playlists.rbs +1 -1
- data/sig/spotted/resources/users/playlists.rbs +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5150b75519009bd3499d968fa8b07b3d32b4caf07c05bdc93380751678d6e73c
|
|
4
|
+
data.tar.gz: 644a461d62b57c75fdec96ba35927cfd33b2d803c9ea4f3d924806024e5fa1da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3151b8e5ac858b033b62d7e700370e671b29c9d8b172836404fe9b4aa6b00f245bae56da10ad624bccfad11880b205a68ad565d53b178ac4ce762db968a6895e
|
|
7
|
+
data.tar.gz: 2062161a1800cfe68be970ff1ca5b4caef512a75feb5334f6e5ca8e3db28eac97d392582520364dd92be27e563042b87b6a721a55b6304df46bbfa332eae5a06
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.17.0 (2025-11-20)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.16.0...v0.17.0](https://github.com/cjavdev/spotted/compare/v0.16.0...v0.17.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([e260dd2](https://github.com/cjavdev/spotted/commit/e260dd2787657b4fa3cb412fe730d68fad2989ce))
|
|
10
|
+
|
|
3
11
|
## 0.16.0 (2025-11-20)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.15.0...v0.16.0](https://github.com/cjavdev/spotted/compare/v0.15.0...v0.16.0)
|
data/README.md
CHANGED
|
@@ -7,18 +7,6 @@ module Spotted
|
|
|
7
7
|
extend Spotted::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Spotted::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!attribute paths_request_body_content_application_json_schema_properties_published
|
|
11
|
-
# The playlist's public/private status (if it should be added to the user's
|
|
12
|
-
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
13
|
-
# be private, `null` the playlist status is not relevant. For more about
|
|
14
|
-
# public/private status, see
|
|
15
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
16
|
-
#
|
|
17
|
-
# @return [Boolean, nil]
|
|
18
|
-
optional :paths_request_body_content_application_json_schema_properties_published,
|
|
19
|
-
Spotted::Internal::Type::Boolean,
|
|
20
|
-
api_name: :"$.paths['*'].*.requestBody.content['application/json'].schema.properties.published"
|
|
21
|
-
|
|
22
10
|
# @!attribute collaborative
|
|
23
11
|
# If `true`, the playlist will become collaborative and other users will be able
|
|
24
12
|
# to modify the playlist in their Spotify client. <br/> _**Note**: You can only
|
|
@@ -40,18 +28,28 @@ module Spotted
|
|
|
40
28
|
# @return [String, nil]
|
|
41
29
|
optional :name, String
|
|
42
30
|
|
|
43
|
-
# @!
|
|
31
|
+
# @!attribute public
|
|
32
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
33
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
34
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
35
|
+
# public/private status, see
|
|
36
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
37
|
+
#
|
|
38
|
+
# @return [Boolean, nil]
|
|
39
|
+
optional :public, Spotted::Internal::Type::Boolean
|
|
40
|
+
|
|
41
|
+
# @!method initialize(collaborative: nil, description: nil, name: nil, public: nil, request_options: {})
|
|
44
42
|
# Some parameter documentations has been truncated, see
|
|
45
43
|
# {Spotted::Models::PlaylistUpdateParams} for more details.
|
|
46
44
|
#
|
|
47
|
-
# @param paths_request_body_content_application_json_schema_properties_published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
48
|
-
#
|
|
49
45
|
# @param collaborative [Boolean] If `true`, the playlist will become collaborative and other users will be able t
|
|
50
46
|
#
|
|
51
47
|
# @param description [String] Value for playlist description as displayed in Spotify Clients and in the Web AP
|
|
52
48
|
#
|
|
53
49
|
# @param name [String] The new name for the playlist, for example `"My New Playlist Title"`
|
|
54
50
|
#
|
|
51
|
+
# @param public [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
52
|
+
#
|
|
55
53
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
56
54
|
end
|
|
57
55
|
end
|
|
@@ -8,22 +8,20 @@ module Spotted
|
|
|
8
8
|
extend Spotted::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Spotted::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
# @!attribute
|
|
11
|
+
# @!attribute public
|
|
12
12
|
# Defaults to `true`. If `true` the playlist will be included in user's public
|
|
13
13
|
# playlists (added to profile), if `false` it will remain private. For more about
|
|
14
14
|
# public/private status, see
|
|
15
15
|
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
16
16
|
#
|
|
17
17
|
# @return [Boolean, nil]
|
|
18
|
-
optional :
|
|
19
|
-
Spotted::Internal::Type::Boolean,
|
|
20
|
-
api_name: :"$.paths['*'].*.requestBody.content['application/json'].schema.properties.published"
|
|
18
|
+
optional :public, Spotted::Internal::Type::Boolean
|
|
21
19
|
|
|
22
|
-
# @!method initialize(
|
|
20
|
+
# @!method initialize(public: nil, request_options: {})
|
|
23
21
|
# Some parameter documentations has been truncated, see
|
|
24
22
|
# {Spotted::Models::Playlists::FollowerFollowParams} for more details.
|
|
25
23
|
#
|
|
26
|
-
# @param
|
|
24
|
+
# @param public [Boolean] Defaults to `true`. If `true` the playlist will be included in user's public pla
|
|
27
25
|
#
|
|
28
26
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
29
27
|
end
|
|
@@ -16,20 +16,6 @@ module Spotted
|
|
|
16
16
|
# @return [String]
|
|
17
17
|
required :name, String
|
|
18
18
|
|
|
19
|
-
# @!attribute paths_request_body_content_application_json_schema_properties_published
|
|
20
|
-
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
21
|
-
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
22
|
-
# playlist will be private. To be able to create private playlists, the user must
|
|
23
|
-
# have granted the `playlist-modify-private`
|
|
24
|
-
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
|
|
25
|
-
# public/private status, see
|
|
26
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
27
|
-
#
|
|
28
|
-
# @return [Boolean, nil]
|
|
29
|
-
optional :paths_request_body_content_application_json_schema_properties_published,
|
|
30
|
-
Spotted::Internal::Type::Boolean,
|
|
31
|
-
api_name: :"$.paths['*'].*.requestBody.content['application/json'].schema.properties.published"
|
|
32
|
-
|
|
33
19
|
# @!attribute collaborative
|
|
34
20
|
# Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to
|
|
35
21
|
# create a collaborative playlist you must also set `public` to `false`. To create
|
|
@@ -47,19 +33,31 @@ module Spotted
|
|
|
47
33
|
# @return [String, nil]
|
|
48
34
|
optional :description, String
|
|
49
35
|
|
|
50
|
-
# @!
|
|
36
|
+
# @!attribute public
|
|
37
|
+
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
38
|
+
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
39
|
+
# playlist will be private. To be able to create private playlists, the user must
|
|
40
|
+
# have granted the `playlist-modify-private`
|
|
41
|
+
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
|
|
42
|
+
# public/private status, see
|
|
43
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
44
|
+
#
|
|
45
|
+
# @return [Boolean, nil]
|
|
46
|
+
optional :public, Spotted::Internal::Type::Boolean
|
|
47
|
+
|
|
48
|
+
# @!method initialize(name:, collaborative: nil, description: nil, public: nil, request_options: {})
|
|
51
49
|
# Some parameter documentations has been truncated, see
|
|
52
50
|
# {Spotted::Models::Users::PlaylistCreateParams} for more details.
|
|
53
51
|
#
|
|
54
52
|
# @param name [String] The name for the new playlist, for example `"Your Coolest Playlist"`. This name
|
|
55
53
|
#
|
|
56
|
-
# @param paths_request_body_content_application_json_schema_properties_published [Boolean] Defaults to `true`. The playlist's public/private status (if it should be added
|
|
57
|
-
#
|
|
58
54
|
# @param collaborative [Boolean] Defaults to `false`. If `true` the playlist will be collaborative. \_**Note**:
|
|
59
55
|
# to
|
|
60
56
|
#
|
|
61
57
|
# @param description [String] value for playlist description as displayed in Spotify Clients and in the Web AP
|
|
62
58
|
#
|
|
59
|
+
# @param public [Boolean] Defaults to `true`. The playlist's public/private status (if it should be added
|
|
60
|
+
#
|
|
63
61
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
64
62
|
end
|
|
65
63
|
end
|
|
@@ -36,11 +36,11 @@ module Spotted
|
|
|
36
36
|
#
|
|
37
37
|
# Add the current user as a follower of a playlist.
|
|
38
38
|
#
|
|
39
|
-
# @overload follow(playlist_id,
|
|
39
|
+
# @overload follow(playlist_id, public: nil, request_options: {})
|
|
40
40
|
#
|
|
41
41
|
# @param playlist_id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) of the playli
|
|
42
42
|
#
|
|
43
|
-
# @param
|
|
43
|
+
# @param public [Boolean] Defaults to `true`. If `true` the playlist will be included in user's public pla
|
|
44
44
|
#
|
|
45
45
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
46
46
|
#
|
|
@@ -49,18 +49,18 @@ module Spotted
|
|
|
49
49
|
# Change a playlist's name and public/private state. (The user must, of course,
|
|
50
50
|
# own the playlist.)
|
|
51
51
|
#
|
|
52
|
-
# @overload update(playlist_id,
|
|
52
|
+
# @overload update(playlist_id, collaborative: nil, description: nil, name: nil, public: nil, request_options: {})
|
|
53
53
|
#
|
|
54
54
|
# @param playlist_id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) of the playli
|
|
55
55
|
#
|
|
56
|
-
# @param paths_request_body_content_application_json_schema_properties_published [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
57
|
-
#
|
|
58
56
|
# @param collaborative [Boolean] If `true`, the playlist will become collaborative and other users will be able t
|
|
59
57
|
#
|
|
60
58
|
# @param description [String] Value for playlist description as displayed in Spotify Clients and in the Web AP
|
|
61
59
|
#
|
|
62
60
|
# @param name [String] The new name for the playlist, for example `"My New Playlist Title"`
|
|
63
61
|
#
|
|
62
|
+
# @param public [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
63
|
+
#
|
|
64
64
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
65
65
|
#
|
|
66
66
|
# @return [nil]
|
|
@@ -11,19 +11,19 @@ module Spotted
|
|
|
11
11
|
# [add tracks](/documentation/web-api/reference/add-tracks-to-playlist).) Each
|
|
12
12
|
# user is generally limited to a maximum of 11000 playlists.
|
|
13
13
|
#
|
|
14
|
-
# @overload create(user_id, name:,
|
|
14
|
+
# @overload create(user_id, name:, collaborative: nil, description: nil, public: nil, request_options: {})
|
|
15
15
|
#
|
|
16
16
|
# @param user_id [String] The user's [Spotify user ID](/documentation/web-api/concepts/spotify-uris-ids).
|
|
17
17
|
#
|
|
18
18
|
# @param name [String] The name for the new playlist, for example `"Your Coolest Playlist"`. This name
|
|
19
19
|
#
|
|
20
|
-
# @param paths_request_body_content_application_json_schema_properties_published [Boolean] Defaults to `true`. The playlist's public/private status (if it should be added
|
|
21
|
-
#
|
|
22
20
|
# @param collaborative [Boolean] Defaults to `false`. If `true` the playlist will be collaborative. \_**Note**:
|
|
23
21
|
# to
|
|
24
22
|
#
|
|
25
23
|
# @param description [String] value for playlist description as displayed in Spotify Clients and in the Web AP
|
|
26
24
|
#
|
|
25
|
+
# @param public [Boolean] Defaults to `true`. The playlist's public/private status (if it should be added
|
|
26
|
+
#
|
|
27
27
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
28
28
|
#
|
|
29
29
|
# @return [Spotted::Models::Users::PlaylistCreateResponse]
|
data/lib/spotted/version.rb
CHANGED
|
@@ -11,22 +11,6 @@ module Spotted
|
|
|
11
11
|
T.any(Spotted::PlaylistUpdateParams, Spotted::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# The playlist's public/private status (if it should be added to the user's
|
|
15
|
-
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
16
|
-
# be private, `null` the playlist status is not relevant. For more about
|
|
17
|
-
# public/private status, see
|
|
18
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
19
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
20
|
-
attr_reader :paths_request_body_content_application_json_schema_properties_published
|
|
21
|
-
|
|
22
|
-
sig do
|
|
23
|
-
params(
|
|
24
|
-
paths_request_body_content_application_json_schema_properties_published:
|
|
25
|
-
T::Boolean
|
|
26
|
-
).void
|
|
27
|
-
end
|
|
28
|
-
attr_writer :paths_request_body_content_application_json_schema_properties_published
|
|
29
|
-
|
|
30
14
|
# If `true`, the playlist will become collaborative and other users will be able
|
|
31
15
|
# to modify the playlist in their Spotify client. <br/> _**Note**: You can only
|
|
32
16
|
# set `collaborative` to `true` on non-public playlists._
|
|
@@ -51,23 +35,27 @@ module Spotted
|
|
|
51
35
|
sig { params(name: String).void }
|
|
52
36
|
attr_writer :name
|
|
53
37
|
|
|
38
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
39
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
40
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
41
|
+
# public/private status, see
|
|
42
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
43
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
44
|
+
attr_reader :public
|
|
45
|
+
|
|
46
|
+
sig { params(public: T::Boolean).void }
|
|
47
|
+
attr_writer :public
|
|
48
|
+
|
|
54
49
|
sig do
|
|
55
50
|
params(
|
|
56
|
-
paths_request_body_content_application_json_schema_properties_published:
|
|
57
|
-
T::Boolean,
|
|
58
51
|
collaborative: T::Boolean,
|
|
59
52
|
description: String,
|
|
60
53
|
name: String,
|
|
54
|
+
public: T::Boolean,
|
|
61
55
|
request_options: Spotted::RequestOptions::OrHash
|
|
62
56
|
).returns(T.attached_class)
|
|
63
57
|
end
|
|
64
58
|
def self.new(
|
|
65
|
-
# The playlist's public/private status (if it should be added to the user's
|
|
66
|
-
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
67
|
-
# be private, `null` the playlist status is not relevant. For more about
|
|
68
|
-
# public/private status, see
|
|
69
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
70
|
-
paths_request_body_content_application_json_schema_properties_published: nil,
|
|
71
59
|
# If `true`, the playlist will become collaborative and other users will be able
|
|
72
60
|
# to modify the playlist in their Spotify client. <br/> _**Note**: You can only
|
|
73
61
|
# set `collaborative` to `true` on non-public playlists._
|
|
@@ -77,6 +65,12 @@ module Spotted
|
|
|
77
65
|
description: nil,
|
|
78
66
|
# The new name for the playlist, for example `"My New Playlist Title"`
|
|
79
67
|
name: 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
|
+
public: nil,
|
|
80
74
|
request_options: {}
|
|
81
75
|
)
|
|
82
76
|
end
|
|
@@ -84,11 +78,10 @@ module Spotted
|
|
|
84
78
|
sig do
|
|
85
79
|
override.returns(
|
|
86
80
|
{
|
|
87
|
-
paths_request_body_content_application_json_schema_properties_published:
|
|
88
|
-
T::Boolean,
|
|
89
81
|
collaborative: T::Boolean,
|
|
90
82
|
description: String,
|
|
91
83
|
name: String,
|
|
84
|
+
public: T::Boolean,
|
|
92
85
|
request_options: Spotted::RequestOptions
|
|
93
86
|
}
|
|
94
87
|
)
|
|
@@ -20,20 +20,14 @@ module Spotted
|
|
|
20
20
|
# public/private status, see
|
|
21
21
|
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
22
22
|
sig { returns(T.nilable(T::Boolean)) }
|
|
23
|
-
attr_reader :
|
|
23
|
+
attr_reader :public
|
|
24
24
|
|
|
25
|
-
sig
|
|
26
|
-
|
|
27
|
-
paths_request_body_content_application_json_schema_properties_published:
|
|
28
|
-
T::Boolean
|
|
29
|
-
).void
|
|
30
|
-
end
|
|
31
|
-
attr_writer :paths_request_body_content_application_json_schema_properties_published
|
|
25
|
+
sig { params(public: T::Boolean).void }
|
|
26
|
+
attr_writer :public
|
|
32
27
|
|
|
33
28
|
sig do
|
|
34
29
|
params(
|
|
35
|
-
|
|
36
|
-
T::Boolean,
|
|
30
|
+
public: T::Boolean,
|
|
37
31
|
request_options: Spotted::RequestOptions::OrHash
|
|
38
32
|
).returns(T.attached_class)
|
|
39
33
|
end
|
|
@@ -42,18 +36,14 @@ module Spotted
|
|
|
42
36
|
# playlists (added to profile), if `false` it will remain private. For more about
|
|
43
37
|
# public/private status, see
|
|
44
38
|
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
45
|
-
|
|
39
|
+
public: nil,
|
|
46
40
|
request_options: {}
|
|
47
41
|
)
|
|
48
42
|
end
|
|
49
43
|
|
|
50
44
|
sig do
|
|
51
45
|
override.returns(
|
|
52
|
-
{
|
|
53
|
-
paths_request_body_content_application_json_schema_properties_published:
|
|
54
|
-
T::Boolean,
|
|
55
|
-
request_options: Spotted::RequestOptions
|
|
56
|
-
}
|
|
46
|
+
{ public: T::Boolean, request_options: Spotted::RequestOptions }
|
|
57
47
|
)
|
|
58
48
|
end
|
|
59
49
|
def to_hash
|
|
@@ -21,24 +21,6 @@ module Spotted
|
|
|
21
21
|
sig { returns(String) }
|
|
22
22
|
attr_accessor :name
|
|
23
23
|
|
|
24
|
-
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
25
|
-
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
26
|
-
# playlist will be private. To be able to create private playlists, the user must
|
|
27
|
-
# have granted the `playlist-modify-private`
|
|
28
|
-
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). 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 :paths_request_body_content_application_json_schema_properties_published
|
|
33
|
-
|
|
34
|
-
sig do
|
|
35
|
-
params(
|
|
36
|
-
paths_request_body_content_application_json_schema_properties_published:
|
|
37
|
-
T::Boolean
|
|
38
|
-
).void
|
|
39
|
-
end
|
|
40
|
-
attr_writer :paths_request_body_content_application_json_schema_properties_published
|
|
41
|
-
|
|
42
24
|
# Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to
|
|
43
25
|
# create a collaborative playlist you must also set `public` to `false`. To create
|
|
44
26
|
# collaborative playlists you must have granted `playlist-modify-private` and
|
|
@@ -58,13 +40,25 @@ module Spotted
|
|
|
58
40
|
sig { params(description: String).void }
|
|
59
41
|
attr_writer :description
|
|
60
42
|
|
|
43
|
+
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
44
|
+
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
45
|
+
# playlist will be private. To be able to create private playlists, the user must
|
|
46
|
+
# have granted the `playlist-modify-private`
|
|
47
|
+
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
|
|
48
|
+
# public/private status, see
|
|
49
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
50
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
51
|
+
attr_reader :public
|
|
52
|
+
|
|
53
|
+
sig { params(public: T::Boolean).void }
|
|
54
|
+
attr_writer :public
|
|
55
|
+
|
|
61
56
|
sig do
|
|
62
57
|
params(
|
|
63
58
|
name: String,
|
|
64
|
-
paths_request_body_content_application_json_schema_properties_published:
|
|
65
|
-
T::Boolean,
|
|
66
59
|
collaborative: T::Boolean,
|
|
67
60
|
description: String,
|
|
61
|
+
public: T::Boolean,
|
|
68
62
|
request_options: Spotted::RequestOptions::OrHash
|
|
69
63
|
).returns(T.attached_class)
|
|
70
64
|
end
|
|
@@ -73,14 +67,6 @@ module Spotted
|
|
|
73
67
|
# does not need to be unique; a user may have several playlists with the same
|
|
74
68
|
# name.
|
|
75
69
|
name:,
|
|
76
|
-
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
77
|
-
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
78
|
-
# playlist will be private. To be able to create private playlists, the user must
|
|
79
|
-
# have granted the `playlist-modify-private`
|
|
80
|
-
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
|
|
81
|
-
# public/private status, see
|
|
82
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
83
|
-
paths_request_body_content_application_json_schema_properties_published: nil,
|
|
84
70
|
# Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to
|
|
85
71
|
# create a collaborative playlist you must also set `public` to `false`. To create
|
|
86
72
|
# collaborative playlists you must have granted `playlist-modify-private` and
|
|
@@ -90,6 +76,14 @@ module Spotted
|
|
|
90
76
|
# value for playlist description as displayed in Spotify Clients and in the Web
|
|
91
77
|
# API.
|
|
92
78
|
description: nil,
|
|
79
|
+
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
80
|
+
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
81
|
+
# playlist will be private. To be able to create private playlists, the user must
|
|
82
|
+
# have granted the `playlist-modify-private`
|
|
83
|
+
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
|
|
84
|
+
# public/private status, see
|
|
85
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
86
|
+
public: nil,
|
|
93
87
|
request_options: {}
|
|
94
88
|
)
|
|
95
89
|
end
|
|
@@ -98,10 +92,9 @@ module Spotted
|
|
|
98
92
|
override.returns(
|
|
99
93
|
{
|
|
100
94
|
name: String,
|
|
101
|
-
paths_request_body_content_application_json_schema_properties_published:
|
|
102
|
-
T::Boolean,
|
|
103
95
|
collaborative: T::Boolean,
|
|
104
96
|
description: String,
|
|
97
|
+
public: T::Boolean,
|
|
105
98
|
request_options: Spotted::RequestOptions
|
|
106
99
|
}
|
|
107
100
|
)
|
|
@@ -28,8 +28,7 @@ module Spotted
|
|
|
28
28
|
sig do
|
|
29
29
|
params(
|
|
30
30
|
playlist_id: String,
|
|
31
|
-
|
|
32
|
-
T::Boolean,
|
|
31
|
+
public: T::Boolean,
|
|
33
32
|
request_options: Spotted::RequestOptions::OrHash
|
|
34
33
|
).void
|
|
35
34
|
end
|
|
@@ -41,7 +40,7 @@ module Spotted
|
|
|
41
40
|
# playlists (added to profile), if `false` it will remain private. For more about
|
|
42
41
|
# public/private status, see
|
|
43
42
|
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
44
|
-
|
|
43
|
+
public: nil,
|
|
45
44
|
request_options: {}
|
|
46
45
|
)
|
|
47
46
|
end
|
|
@@ -63,11 +63,10 @@ module Spotted
|
|
|
63
63
|
sig do
|
|
64
64
|
params(
|
|
65
65
|
playlist_id: String,
|
|
66
|
-
paths_request_body_content_application_json_schema_properties_published:
|
|
67
|
-
T::Boolean,
|
|
68
66
|
collaborative: T::Boolean,
|
|
69
67
|
description: String,
|
|
70
68
|
name: String,
|
|
69
|
+
public: T::Boolean,
|
|
71
70
|
request_options: Spotted::RequestOptions::OrHash
|
|
72
71
|
).void
|
|
73
72
|
end
|
|
@@ -75,12 +74,6 @@ module Spotted
|
|
|
75
74
|
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) of the
|
|
76
75
|
# playlist.
|
|
77
76
|
playlist_id,
|
|
78
|
-
# The playlist's public/private status (if it should be added to the user's
|
|
79
|
-
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
80
|
-
# be private, `null` the playlist status is not relevant. For more about
|
|
81
|
-
# public/private status, see
|
|
82
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
83
|
-
paths_request_body_content_application_json_schema_properties_published: nil,
|
|
84
77
|
# If `true`, the playlist will become collaborative and other users will be able
|
|
85
78
|
# to modify the playlist in their Spotify client. <br/> _**Note**: You can only
|
|
86
79
|
# set `collaborative` to `true` on non-public playlists._
|
|
@@ -90,6 +83,12 @@ module Spotted
|
|
|
90
83
|
description: nil,
|
|
91
84
|
# The new name for the playlist, for example `"My New Playlist Title"`
|
|
92
85
|
name: 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
|
+
public: nil,
|
|
93
92
|
request_options: {}
|
|
94
93
|
)
|
|
95
94
|
end
|
|
@@ -11,10 +11,9 @@ module Spotted
|
|
|
11
11
|
params(
|
|
12
12
|
user_id: String,
|
|
13
13
|
name: String,
|
|
14
|
-
paths_request_body_content_application_json_schema_properties_published:
|
|
15
|
-
T::Boolean,
|
|
16
14
|
collaborative: T::Boolean,
|
|
17
15
|
description: String,
|
|
16
|
+
public: T::Boolean,
|
|
18
17
|
request_options: Spotted::RequestOptions::OrHash
|
|
19
18
|
).returns(Spotted::Models::Users::PlaylistCreateResponse)
|
|
20
19
|
end
|
|
@@ -25,14 +24,6 @@ module Spotted
|
|
|
25
24
|
# does not need to be unique; a user may have several playlists with the same
|
|
26
25
|
# name.
|
|
27
26
|
name:,
|
|
28
|
-
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
29
|
-
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
30
|
-
# playlist will be private. To be able to create private playlists, the user must
|
|
31
|
-
# have granted the `playlist-modify-private`
|
|
32
|
-
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
|
|
33
|
-
# public/private status, see
|
|
34
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
35
|
-
paths_request_body_content_application_json_schema_properties_published: nil,
|
|
36
27
|
# Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to
|
|
37
28
|
# create a collaborative playlist you must also set `public` to `false`. To create
|
|
38
29
|
# collaborative playlists you must have granted `playlist-modify-private` and
|
|
@@ -42,6 +33,14 @@ module Spotted
|
|
|
42
33
|
# value for playlist description as displayed in Spotify Clients and in the Web
|
|
43
34
|
# API.
|
|
44
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
|
|
41
|
+
# public/private status, see
|
|
42
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
43
|
+
public: nil,
|
|
45
44
|
request_options: {}
|
|
46
45
|
)
|
|
47
46
|
end
|
|
@@ -1,24 +1,13 @@
|
|
|
1
1
|
module Spotted
|
|
2
2
|
module Models
|
|
3
3
|
type playlist_update_params =
|
|
4
|
-
{
|
|
5
|
-
paths_request_body_content_application_json_schema_properties_published: bool,
|
|
6
|
-
collaborative: bool,
|
|
7
|
-
description: String,
|
|
8
|
-
name: String
|
|
9
|
-
}
|
|
4
|
+
{ collaborative: bool, description: String, name: String, public: bool }
|
|
10
5
|
& Spotted::Internal::Type::request_parameters
|
|
11
6
|
|
|
12
7
|
class PlaylistUpdateParams < Spotted::Internal::Type::BaseModel
|
|
13
8
|
extend Spotted::Internal::Type::RequestParameters::Converter
|
|
14
9
|
include Spotted::Internal::Type::RequestParameters
|
|
15
10
|
|
|
16
|
-
attr_reader paths_request_body_content_application_json_schema_properties_published: bool?
|
|
17
|
-
|
|
18
|
-
def paths_request_body_content_application_json_schema_properties_published=: (
|
|
19
|
-
bool
|
|
20
|
-
) -> bool
|
|
21
|
-
|
|
22
11
|
attr_reader collaborative: bool?
|
|
23
12
|
|
|
24
13
|
def collaborative=: (bool) -> bool
|
|
@@ -31,19 +20,23 @@ module Spotted
|
|
|
31
20
|
|
|
32
21
|
def name=: (String) -> String
|
|
33
22
|
|
|
23
|
+
attr_reader public: bool?
|
|
24
|
+
|
|
25
|
+
def public=: (bool) -> bool
|
|
26
|
+
|
|
34
27
|
def initialize: (
|
|
35
|
-
?paths_request_body_content_application_json_schema_properties_published: bool,
|
|
36
28
|
?collaborative: bool,
|
|
37
29
|
?description: String,
|
|
38
30
|
?name: String,
|
|
31
|
+
?public: bool,
|
|
39
32
|
?request_options: Spotted::request_opts
|
|
40
33
|
) -> void
|
|
41
34
|
|
|
42
35
|
def to_hash: -> {
|
|
43
|
-
paths_request_body_content_application_json_schema_properties_published: bool,
|
|
44
36
|
collaborative: bool,
|
|
45
37
|
description: String,
|
|
46
38
|
name: String,
|
|
39
|
+
public: bool,
|
|
47
40
|
request_options: Spotted::RequestOptions
|
|
48
41
|
}
|
|
49
42
|
end
|
|
@@ -2,28 +2,23 @@ module Spotted
|
|
|
2
2
|
module Models
|
|
3
3
|
module Playlists
|
|
4
4
|
type follower_follow_params =
|
|
5
|
-
{
|
|
6
|
-
paths_request_body_content_application_json_schema_properties_published: bool
|
|
7
|
-
}
|
|
8
|
-
& Spotted::Internal::Type::request_parameters
|
|
5
|
+
{ public: bool } & Spotted::Internal::Type::request_parameters
|
|
9
6
|
|
|
10
7
|
class FollowerFollowParams < Spotted::Internal::Type::BaseModel
|
|
11
8
|
extend Spotted::Internal::Type::RequestParameters::Converter
|
|
12
9
|
include Spotted::Internal::Type::RequestParameters
|
|
13
10
|
|
|
14
|
-
attr_reader
|
|
11
|
+
attr_reader public: bool?
|
|
15
12
|
|
|
16
|
-
def
|
|
17
|
-
bool
|
|
18
|
-
) -> bool
|
|
13
|
+
def public=: (bool) -> bool
|
|
19
14
|
|
|
20
15
|
def initialize: (
|
|
21
|
-
?
|
|
16
|
+
?public: bool,
|
|
22
17
|
?request_options: Spotted::request_opts
|
|
23
18
|
) -> void
|
|
24
19
|
|
|
25
20
|
def to_hash: -> {
|
|
26
|
-
|
|
21
|
+
public: bool,
|
|
27
22
|
request_options: Spotted::RequestOptions
|
|
28
23
|
}
|
|
29
24
|
end
|
|
@@ -2,12 +2,7 @@ module Spotted
|
|
|
2
2
|
module Models
|
|
3
3
|
module Users
|
|
4
4
|
type playlist_create_params =
|
|
5
|
-
{
|
|
6
|
-
name: String,
|
|
7
|
-
paths_request_body_content_application_json_schema_properties_published: bool,
|
|
8
|
-
collaborative: bool,
|
|
9
|
-
description: String
|
|
10
|
-
}
|
|
5
|
+
{ name: String, collaborative: bool, description: String, public: bool }
|
|
11
6
|
& Spotted::Internal::Type::request_parameters
|
|
12
7
|
|
|
13
8
|
class PlaylistCreateParams < Spotted::Internal::Type::BaseModel
|
|
@@ -16,12 +11,6 @@ module Spotted
|
|
|
16
11
|
|
|
17
12
|
attr_accessor name: String
|
|
18
13
|
|
|
19
|
-
attr_reader paths_request_body_content_application_json_schema_properties_published: bool?
|
|
20
|
-
|
|
21
|
-
def paths_request_body_content_application_json_schema_properties_published=: (
|
|
22
|
-
bool
|
|
23
|
-
) -> bool
|
|
24
|
-
|
|
25
14
|
attr_reader collaborative: bool?
|
|
26
15
|
|
|
27
16
|
def collaborative=: (bool) -> bool
|
|
@@ -30,19 +19,23 @@ module Spotted
|
|
|
30
19
|
|
|
31
20
|
def description=: (String) -> String
|
|
32
21
|
|
|
22
|
+
attr_reader public: bool?
|
|
23
|
+
|
|
24
|
+
def public=: (bool) -> bool
|
|
25
|
+
|
|
33
26
|
def initialize: (
|
|
34
27
|
name: String,
|
|
35
|
-
?paths_request_body_content_application_json_schema_properties_published: bool,
|
|
36
28
|
?collaborative: bool,
|
|
37
29
|
?description: String,
|
|
30
|
+
?public: bool,
|
|
38
31
|
?request_options: Spotted::request_opts
|
|
39
32
|
) -> void
|
|
40
33
|
|
|
41
34
|
def to_hash: -> {
|
|
42
35
|
name: String,
|
|
43
|
-
paths_request_body_content_application_json_schema_properties_published: bool,
|
|
44
36
|
collaborative: bool,
|
|
45
37
|
description: String,
|
|
38
|
+
public: bool,
|
|
46
39
|
request_options: Spotted::RequestOptions
|
|
47
40
|
}
|
|
48
41
|
end
|
|
@@ -17,10 +17,10 @@ module Spotted
|
|
|
17
17
|
|
|
18
18
|
def update: (
|
|
19
19
|
String playlist_id,
|
|
20
|
-
?paths_request_body_content_application_json_schema_properties_published: bool,
|
|
21
20
|
?collaborative: bool,
|
|
22
21
|
?description: String,
|
|
23
22
|
?name: String,
|
|
23
|
+
?public: bool,
|
|
24
24
|
?request_options: Spotted::request_opts
|
|
25
25
|
) -> nil
|
|
26
26
|
|
|
@@ -5,9 +5,9 @@ module Spotted
|
|
|
5
5
|
def create: (
|
|
6
6
|
String user_id,
|
|
7
7
|
name: String,
|
|
8
|
-
?paths_request_body_content_application_json_schema_properties_published: bool,
|
|
9
8
|
?collaborative: bool,
|
|
10
9
|
?description: String,
|
|
10
|
+
?public: bool,
|
|
11
11
|
?request_options: Spotted::request_opts
|
|
12
12
|
) -> Spotted::Models::Users::PlaylistCreateResponse
|
|
13
13
|
|