spotted 0.14.0 → 0.16.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 +17 -0
- data/README.md +1 -1
- data/lib/spotted/models/playlist_retrieve_response.rb +14 -12
- data/lib/spotted/models/playlist_update_params.rb +15 -13
- data/lib/spotted/models/playlists/follower_follow_params.rb +6 -4
- data/lib/spotted/models/simplified_playlist_object.rb +14 -12
- data/lib/spotted/models/users/playlist_create_params.rb +17 -15
- data/lib/spotted/models/users/playlist_create_response.rb +14 -12
- 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_retrieve_response.rbi +17 -17
- data/rbi/spotted/models/playlist_update_params.rbi +26 -19
- data/rbi/spotted/models/playlists/follower_follow_params.rbi +16 -6
- data/rbi/spotted/models/simplified_playlist_object.rbi +17 -17
- data/rbi/spotted/models/users/playlist_create_params.rbi +30 -23
- data/rbi/spotted/models/users/playlist_create_response.rbi +17 -17
- data/rbi/spotted/resources/playlists/followers.rbi +3 -2
- data/rbi/spotted/resources/playlists.rbi +8 -7
- data/rbi/spotted/resources/users/playlists.rbi +10 -9
- data/sig/spotted/models/playlist_retrieve_response.rbs +7 -7
- data/sig/spotted/models/playlist_update_params.rbs +14 -7
- data/sig/spotted/models/playlists/follower_follow_params.rbs +10 -5
- data/sig/spotted/models/simplified_playlist_object.rbs +7 -7
- data/sig/spotted/models/users/playlist_create_params.rbs +14 -7
- data/sig/spotted/models/users/playlist_create_response.rbs +7 -7
- 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: bb54512892bb18866b6a5514180384bd8892837b78b77445ec36ccd5ed5ede1c
|
|
4
|
+
data.tar.gz: a3c830fa41960ac1bf93db153daaee037dca07a61eaef45b13915c62e34cddec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db63d4e55021ee1baf59e7da75200c0d0736db5b6028ba3cb351d5fc9477cc3588c5cf9d2cd2fbb98275ee6f19796942cec708ab5025e430fa4946475ac7ff47
|
|
7
|
+
data.tar.gz: f2272ea192e2f114d571533d8f8dc1cbd439d0dd675eba0e72abe7c27b44b59e370e3985b902a776b8e220cad7815c56d0a1fdff7a4d54be8095bd717112e27e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.16.0 (2025-11-20)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.15.0...v0.16.0](https://github.com/cjavdev/spotted/compare/v0.15.0...v0.16.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([6ebdb60](https://github.com/cjavdev/spotted/commit/6ebdb6088ced2f5143877e29a7b464c94c5ba1cb))
|
|
10
|
+
* **api:** rename public to published for java ([f2ce035](https://github.com/cjavdev/spotted/commit/f2ce0357f1546dd741f2f539a2869954722b40d1))
|
|
11
|
+
|
|
12
|
+
## 0.15.0 (2025-11-20)
|
|
13
|
+
|
|
14
|
+
Full Changelog: [v0.14.0...v0.15.0](https://github.com/cjavdev/spotted/compare/v0.14.0...v0.15.0)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* **api:** manual updates ([48bc871](https://github.com/cjavdev/spotted/commit/48bc8710fa72cbfed413c82615745011283ce577))
|
|
19
|
+
|
|
3
20
|
## 0.14.0 (2025-11-20)
|
|
4
21
|
|
|
5
22
|
Full Changelog: [v0.13.0...v0.14.0](https://github.com/cjavdev/spotted/compare/v0.13.0...v0.14.0)
|
data/README.md
CHANGED
|
@@ -11,6 +11,17 @@ module Spotted
|
|
|
11
11
|
# @return [String, nil]
|
|
12
12
|
optional :id, String
|
|
13
13
|
|
|
14
|
+
# @!attribute components_schemas_properties_published
|
|
15
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
16
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
17
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
18
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
19
|
+
#
|
|
20
|
+
# @return [Boolean, nil]
|
|
21
|
+
optional :components_schemas_properties_published,
|
|
22
|
+
Spotted::Internal::Type::Boolean,
|
|
23
|
+
api_name: :"$.components.schemas.*.properties.published"
|
|
24
|
+
|
|
14
25
|
# @!attribute collaborative
|
|
15
26
|
# `true` if the owner allows other users to modify the playlist.
|
|
16
27
|
#
|
|
@@ -64,15 +75,6 @@ module Spotted
|
|
|
64
75
|
# @return [Spotted::Models::PlaylistRetrieveResponse::Owner, nil]
|
|
65
76
|
optional :owner, -> { Spotted::Models::PlaylistRetrieveResponse::Owner }
|
|
66
77
|
|
|
67
|
-
# @!attribute public
|
|
68
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
69
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
70
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
71
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
72
|
-
#
|
|
73
|
-
# @return [Boolean, nil]
|
|
74
|
-
optional :public, Spotted::Internal::Type::Boolean
|
|
75
|
-
|
|
76
78
|
# @!attribute snapshot_id
|
|
77
79
|
# The version identifier for the current playlist. Can be supplied in other
|
|
78
80
|
# requests to target a specific playlist version
|
|
@@ -99,12 +101,14 @@ module Spotted
|
|
|
99
101
|
# @return [String, nil]
|
|
100
102
|
optional :uri, String
|
|
101
103
|
|
|
102
|
-
# @!method initialize(id: nil, collaborative: nil, description: nil, external_urls: nil, followers: nil, href: nil, images: nil, name: nil, owner: nil,
|
|
104
|
+
# @!method initialize(id: nil, components_schemas_properties_published: nil, collaborative: nil, description: nil, external_urls: nil, followers: nil, href: nil, images: nil, name: nil, owner: nil, snapshot_id: nil, tracks: nil, type: nil, uri: nil)
|
|
103
105
|
# Some parameter documentations has been truncated, see
|
|
104
106
|
# {Spotted::Models::PlaylistRetrieveResponse} for more details.
|
|
105
107
|
#
|
|
106
108
|
# @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the playl
|
|
107
109
|
#
|
|
110
|
+
# @param components_schemas_properties_published [Boolean] The playlist's public/private status (if it is added to the user's profile): `tr
|
|
111
|
+
#
|
|
108
112
|
# @param collaborative [Boolean] `true` if the owner allows other users to modify the playlist.
|
|
109
113
|
#
|
|
110
114
|
# @param description [String, nil] The playlist description. \_Only returned for modified, verified playlists,
|
|
@@ -122,8 +126,6 @@ module Spotted
|
|
|
122
126
|
#
|
|
123
127
|
# @param owner [Spotted::Models::PlaylistRetrieveResponse::Owner] The user who owns the playlist
|
|
124
128
|
#
|
|
125
|
-
# @param public [Boolean] The playlist's public/private status (if it is added to the user's profile): `tr
|
|
126
|
-
#
|
|
127
129
|
# @param snapshot_id [String] The version identifier for the current playlist. Can be supplied in other reques
|
|
128
130
|
#
|
|
129
131
|
# @param tracks [Spotted::Models::PlaylistRetrieveResponse::Tracks] The tracks of the playlist.
|
|
@@ -7,6 +7,18 @@ 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
|
+
|
|
10
22
|
# @!attribute collaborative
|
|
11
23
|
# If `true`, the playlist will become collaborative and other users will be able
|
|
12
24
|
# to modify the playlist in their Spotify client. <br/> _**Note**: You can only
|
|
@@ -28,28 +40,18 @@ module Spotted
|
|
|
28
40
|
# @return [String, nil]
|
|
29
41
|
optional :name, String
|
|
30
42
|
|
|
31
|
-
# @!
|
|
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: {})
|
|
43
|
+
# @!method initialize(paths_request_body_content_application_json_schema_properties_published: nil, collaborative: nil, description: nil, name: nil, request_options: {})
|
|
42
44
|
# Some parameter documentations has been truncated, see
|
|
43
45
|
# {Spotted::Models::PlaylistUpdateParams} for more details.
|
|
44
46
|
#
|
|
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
|
+
#
|
|
45
49
|
# @param collaborative [Boolean] If `true`, the playlist will become collaborative and other users will be able t
|
|
46
50
|
#
|
|
47
51
|
# @param description [String] Value for playlist description as displayed in Spotify Clients and in the Web AP
|
|
48
52
|
#
|
|
49
53
|
# @param name [String] The new name for the playlist, for example `"My New Playlist Title"`
|
|
50
54
|
#
|
|
51
|
-
# @param public [Boolean] The playlist's public/private status (if it should be added to the user's profil
|
|
52
|
-
#
|
|
53
55
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
54
56
|
end
|
|
55
57
|
end
|
|
@@ -8,20 +8,22 @@ module Spotted
|
|
|
8
8
|
extend Spotted::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Spotted::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
-
# @!attribute
|
|
11
|
+
# @!attribute paths_request_body_content_application_json_schema_properties_published
|
|
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 :
|
|
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"
|
|
19
21
|
|
|
20
|
-
# @!method initialize(
|
|
22
|
+
# @!method initialize(paths_request_body_content_application_json_schema_properties_published: nil, request_options: {})
|
|
21
23
|
# Some parameter documentations has been truncated, see
|
|
22
24
|
# {Spotted::Models::Playlists::FollowerFollowParams} for more details.
|
|
23
25
|
#
|
|
24
|
-
# @param
|
|
26
|
+
# @param paths_request_body_content_application_json_schema_properties_published [Boolean] Defaults to `true`. If `true` the playlist will be included in user's public pla
|
|
25
27
|
#
|
|
26
28
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
27
29
|
end
|
|
@@ -10,6 +10,17 @@ module Spotted
|
|
|
10
10
|
# @return [String, nil]
|
|
11
11
|
optional :id, String
|
|
12
12
|
|
|
13
|
+
# @!attribute components_schemas_properties_published
|
|
14
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
15
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
16
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
17
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
18
|
+
#
|
|
19
|
+
# @return [Boolean, nil]
|
|
20
|
+
optional :components_schemas_properties_published,
|
|
21
|
+
Spotted::Internal::Type::Boolean,
|
|
22
|
+
api_name: :"$.components.schemas.*.properties.published"
|
|
23
|
+
|
|
13
24
|
# @!attribute collaborative
|
|
14
25
|
# `true` if the owner allows other users to modify the playlist.
|
|
15
26
|
#
|
|
@@ -57,15 +68,6 @@ module Spotted
|
|
|
57
68
|
# @return [Spotted::Models::SimplifiedPlaylistObject::Owner, nil]
|
|
58
69
|
optional :owner, -> { Spotted::SimplifiedPlaylistObject::Owner }
|
|
59
70
|
|
|
60
|
-
# @!attribute public
|
|
61
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
62
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
63
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
64
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
65
|
-
#
|
|
66
|
-
# @return [Boolean, nil]
|
|
67
|
-
optional :public, Spotted::Internal::Type::Boolean
|
|
68
|
-
|
|
69
71
|
# @!attribute snapshot_id
|
|
70
72
|
# The version identifier for the current playlist. Can be supplied in other
|
|
71
73
|
# requests to target a specific playlist version
|
|
@@ -95,12 +97,14 @@ module Spotted
|
|
|
95
97
|
# @return [String, nil]
|
|
96
98
|
optional :uri, String
|
|
97
99
|
|
|
98
|
-
# @!method initialize(id: nil, collaborative: nil, description: nil, external_urls: nil, href: nil, images: nil, name: nil, owner: nil,
|
|
100
|
+
# @!method initialize(id: nil, components_schemas_properties_published: nil, collaborative: nil, description: nil, external_urls: nil, href: nil, images: nil, name: nil, owner: nil, snapshot_id: nil, tracks: nil, type: nil, uri: nil)
|
|
99
101
|
# Some parameter documentations has been truncated, see
|
|
100
102
|
# {Spotted::Models::SimplifiedPlaylistObject} for more details.
|
|
101
103
|
#
|
|
102
104
|
# @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the playl
|
|
103
105
|
#
|
|
106
|
+
# @param components_schemas_properties_published [Boolean] The playlist's public/private status (if it is added to the user's profile): `tr
|
|
107
|
+
#
|
|
104
108
|
# @param collaborative [Boolean] `true` if the owner allows other users to modify the playlist.
|
|
105
109
|
#
|
|
106
110
|
# @param description [String] The playlist description. \_Only returned for modified, verified playlists,
|
|
@@ -116,8 +120,6 @@ module Spotted
|
|
|
116
120
|
#
|
|
117
121
|
# @param owner [Spotted::Models::SimplifiedPlaylistObject::Owner] The user who owns the playlist
|
|
118
122
|
#
|
|
119
|
-
# @param public [Boolean] The playlist's public/private status (if it is added to the user's profile): `tr
|
|
120
|
-
#
|
|
121
123
|
# @param snapshot_id [String] The version identifier for the current playlist. Can be supplied in other reques
|
|
122
124
|
#
|
|
123
125
|
# @param tracks [Spotted::Models::PlaylistTracksRefObject] A collection containing a link ( `href` ) to the Web API endpoint where full det
|
|
@@ -16,6 +16,20 @@ 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
|
+
|
|
19
33
|
# @!attribute collaborative
|
|
20
34
|
# Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to
|
|
21
35
|
# create a collaborative playlist you must also set `public` to `false`. To create
|
|
@@ -33,31 +47,19 @@ module Spotted
|
|
|
33
47
|
# @return [String, nil]
|
|
34
48
|
optional :description, String
|
|
35
49
|
|
|
36
|
-
# @!
|
|
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: {})
|
|
50
|
+
# @!method initialize(name:, paths_request_body_content_application_json_schema_properties_published: nil, collaborative: nil, description: nil, request_options: {})
|
|
49
51
|
# Some parameter documentations has been truncated, see
|
|
50
52
|
# {Spotted::Models::Users::PlaylistCreateParams} for more details.
|
|
51
53
|
#
|
|
52
54
|
# @param name [String] The name for the new playlist, for example `"Your Coolest Playlist"`. This name
|
|
53
55
|
#
|
|
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
|
+
#
|
|
54
58
|
# @param collaborative [Boolean] Defaults to `false`. If `true` the playlist will be collaborative. \_**Note**:
|
|
55
59
|
# to
|
|
56
60
|
#
|
|
57
61
|
# @param description [String] value for playlist description as displayed in Spotify Clients and in the Web AP
|
|
58
62
|
#
|
|
59
|
-
# @param public [Boolean] Defaults to `true`. The playlist's public/private status (if it should be added
|
|
60
|
-
#
|
|
61
63
|
# @param request_options [Spotted::RequestOptions, Hash{Symbol=>Object}]
|
|
62
64
|
end
|
|
63
65
|
end
|
|
@@ -12,6 +12,17 @@ module Spotted
|
|
|
12
12
|
# @return [String, nil]
|
|
13
13
|
optional :id, String
|
|
14
14
|
|
|
15
|
+
# @!attribute components_schemas_properties_published
|
|
16
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
17
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
18
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
19
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
20
|
+
#
|
|
21
|
+
# @return [Boolean, nil]
|
|
22
|
+
optional :components_schemas_properties_published,
|
|
23
|
+
Spotted::Internal::Type::Boolean,
|
|
24
|
+
api_name: :"$.components.schemas.*.properties.published"
|
|
25
|
+
|
|
15
26
|
# @!attribute collaborative
|
|
16
27
|
# `true` if the owner allows other users to modify the playlist.
|
|
17
28
|
#
|
|
@@ -65,15 +76,6 @@ module Spotted
|
|
|
65
76
|
# @return [Spotted::Models::Users::PlaylistCreateResponse::Owner, nil]
|
|
66
77
|
optional :owner, -> { Spotted::Models::Users::PlaylistCreateResponse::Owner }
|
|
67
78
|
|
|
68
|
-
# @!attribute public
|
|
69
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
70
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
71
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
72
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
73
|
-
#
|
|
74
|
-
# @return [Boolean, nil]
|
|
75
|
-
optional :public, Spotted::Internal::Type::Boolean
|
|
76
|
-
|
|
77
79
|
# @!attribute snapshot_id
|
|
78
80
|
# The version identifier for the current playlist. Can be supplied in other
|
|
79
81
|
# requests to target a specific playlist version
|
|
@@ -100,12 +102,14 @@ module Spotted
|
|
|
100
102
|
# @return [String, nil]
|
|
101
103
|
optional :uri, String
|
|
102
104
|
|
|
103
|
-
# @!method initialize(id: nil, collaborative: nil, description: nil, external_urls: nil, followers: nil, href: nil, images: nil, name: nil, owner: nil,
|
|
105
|
+
# @!method initialize(id: nil, components_schemas_properties_published: nil, collaborative: nil, description: nil, external_urls: nil, followers: nil, href: nil, images: nil, name: nil, owner: nil, snapshot_id: nil, tracks: nil, type: nil, uri: nil)
|
|
104
106
|
# Some parameter documentations has been truncated, see
|
|
105
107
|
# {Spotted::Models::Users::PlaylistCreateResponse} for more details.
|
|
106
108
|
#
|
|
107
109
|
# @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the playl
|
|
108
110
|
#
|
|
111
|
+
# @param components_schemas_properties_published [Boolean] The playlist's public/private status (if it is added to the user's profile): `tr
|
|
112
|
+
#
|
|
109
113
|
# @param collaborative [Boolean] `true` if the owner allows other users to modify the playlist.
|
|
110
114
|
#
|
|
111
115
|
# @param description [String, nil] The playlist description. \_Only returned for modified, verified playlists,
|
|
@@ -123,8 +127,6 @@ module Spotted
|
|
|
123
127
|
#
|
|
124
128
|
# @param owner [Spotted::Models::Users::PlaylistCreateResponse::Owner] The user who owns the playlist
|
|
125
129
|
#
|
|
126
|
-
# @param public [Boolean] The playlist's public/private status (if it is added to the user's profile): `tr
|
|
127
|
-
#
|
|
128
130
|
# @param snapshot_id [String] The version identifier for the current playlist. Can be supplied in other reques
|
|
129
131
|
#
|
|
130
132
|
# @param tracks [Spotted::Models::Users::PlaylistCreateResponse::Tracks] The tracks of the playlist.
|
|
@@ -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, paths_request_body_content_application_json_schema_properties_published: 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 paths_request_body_content_application_json_schema_properties_published [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, paths_request_body_content_application_json_schema_properties_published: nil, collaborative: nil, description: nil, name: 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
|
+
#
|
|
56
58
|
# @param collaborative [Boolean] If `true`, the playlist will become collaborative and other users will be able t
|
|
57
59
|
#
|
|
58
60
|
# @param description [String] Value for playlist description as displayed in Spotify Clients and in the Web AP
|
|
59
61
|
#
|
|
60
62
|
# @param name [String] The new name for the playlist, for example `"My New Playlist Title"`
|
|
61
63
|
#
|
|
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:, paths_request_body_content_application_json_schema_properties_published: nil, collaborative: nil, description: 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
|
+
#
|
|
20
22
|
# @param collaborative [Boolean] Defaults to `false`. If `true` the playlist will be collaborative. \_**Note**:
|
|
21
23
|
# to
|
|
22
24
|
#
|
|
23
25
|
# @param description [String] value for playlist description as displayed in Spotify Clients and in the Web AP
|
|
24
26
|
#
|
|
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
|
@@ -19,6 +19,16 @@ module Spotted
|
|
|
19
19
|
sig { params(id: String).void }
|
|
20
20
|
attr_writer :id
|
|
21
21
|
|
|
22
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
23
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
24
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
25
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
26
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
27
|
+
attr_reader :components_schemas_properties_published
|
|
28
|
+
|
|
29
|
+
sig { params(components_schemas_properties_published: T::Boolean).void }
|
|
30
|
+
attr_writer :components_schemas_properties_published
|
|
31
|
+
|
|
22
32
|
# `true` if the owner allows other users to modify the playlist.
|
|
23
33
|
sig { returns(T.nilable(T::Boolean)) }
|
|
24
34
|
attr_reader :collaborative
|
|
@@ -83,16 +93,6 @@ module Spotted
|
|
|
83
93
|
end
|
|
84
94
|
attr_writer :owner
|
|
85
95
|
|
|
86
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
87
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
88
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
89
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
90
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
91
|
-
attr_reader :public
|
|
92
|
-
|
|
93
|
-
sig { params(public: T::Boolean).void }
|
|
94
|
-
attr_writer :public
|
|
95
|
-
|
|
96
96
|
# The version identifier for the current playlist. Can be supplied in other
|
|
97
97
|
# requests to target a specific playlist version
|
|
98
98
|
sig { returns(T.nilable(String)) }
|
|
@@ -132,6 +132,7 @@ module Spotted
|
|
|
132
132
|
sig do
|
|
133
133
|
params(
|
|
134
134
|
id: String,
|
|
135
|
+
components_schemas_properties_published: T::Boolean,
|
|
135
136
|
collaborative: T::Boolean,
|
|
136
137
|
description: T.nilable(String),
|
|
137
138
|
external_urls: Spotted::ExternalURLObject::OrHash,
|
|
@@ -140,7 +141,6 @@ module Spotted
|
|
|
140
141
|
images: T::Array[Spotted::ImageObject::OrHash],
|
|
141
142
|
name: String,
|
|
142
143
|
owner: Spotted::Models::PlaylistRetrieveResponse::Owner::OrHash,
|
|
143
|
-
public: T::Boolean,
|
|
144
144
|
snapshot_id: String,
|
|
145
145
|
tracks: Spotted::Models::PlaylistRetrieveResponse::Tracks::OrHash,
|
|
146
146
|
type: String,
|
|
@@ -151,6 +151,11 @@ module Spotted
|
|
|
151
151
|
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
152
152
|
# playlist.
|
|
153
153
|
id: nil,
|
|
154
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
155
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
156
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
157
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
158
|
+
components_schemas_properties_published: nil,
|
|
154
159
|
# `true` if the owner allows other users to modify the playlist.
|
|
155
160
|
collaborative: nil,
|
|
156
161
|
# The playlist description. _Only returned for modified, verified playlists,
|
|
@@ -172,11 +177,6 @@ module Spotted
|
|
|
172
177
|
name: nil,
|
|
173
178
|
# The user who owns the playlist
|
|
174
179
|
owner: nil,
|
|
175
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
176
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
177
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
178
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
179
|
-
public: nil,
|
|
180
180
|
# The version identifier for the current playlist. Can be supplied in other
|
|
181
181
|
# requests to target a specific playlist version
|
|
182
182
|
snapshot_id: nil,
|
|
@@ -194,6 +194,7 @@ module Spotted
|
|
|
194
194
|
override.returns(
|
|
195
195
|
{
|
|
196
196
|
id: String,
|
|
197
|
+
components_schemas_properties_published: T::Boolean,
|
|
197
198
|
collaborative: T::Boolean,
|
|
198
199
|
description: T.nilable(String),
|
|
199
200
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -202,7 +203,6 @@ module Spotted
|
|
|
202
203
|
images: T::Array[Spotted::ImageObject],
|
|
203
204
|
name: String,
|
|
204
205
|
owner: Spotted::Models::PlaylistRetrieveResponse::Owner,
|
|
205
|
-
public: T::Boolean,
|
|
206
206
|
snapshot_id: String,
|
|
207
207
|
tracks: Spotted::Models::PlaylistRetrieveResponse::Tracks,
|
|
208
208
|
type: String,
|
|
@@ -11,6 +11,22 @@ 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
|
+
|
|
14
30
|
# If `true`, the playlist will become collaborative and other users will be able
|
|
15
31
|
# to modify the playlist in their Spotify client. <br/> _**Note**: You can only
|
|
16
32
|
# set `collaborative` to `true` on non-public playlists._
|
|
@@ -35,27 +51,23 @@ module Spotted
|
|
|
35
51
|
sig { params(name: String).void }
|
|
36
52
|
attr_writer :name
|
|
37
53
|
|
|
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
|
-
|
|
49
54
|
sig do
|
|
50
55
|
params(
|
|
56
|
+
paths_request_body_content_application_json_schema_properties_published:
|
|
57
|
+
T::Boolean,
|
|
51
58
|
collaborative: T::Boolean,
|
|
52
59
|
description: String,
|
|
53
60
|
name: String,
|
|
54
|
-
public: T::Boolean,
|
|
55
61
|
request_options: Spotted::RequestOptions::OrHash
|
|
56
62
|
).returns(T.attached_class)
|
|
57
63
|
end
|
|
58
64
|
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,
|
|
59
71
|
# If `true`, the playlist will become collaborative and other users will be able
|
|
60
72
|
# to modify the playlist in their Spotify client. <br/> _**Note**: You can only
|
|
61
73
|
# set `collaborative` to `true` on non-public playlists._
|
|
@@ -65,12 +77,6 @@ module Spotted
|
|
|
65
77
|
description: nil,
|
|
66
78
|
# The new name for the playlist, for example `"My New Playlist Title"`
|
|
67
79
|
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,
|
|
74
80
|
request_options: {}
|
|
75
81
|
)
|
|
76
82
|
end
|
|
@@ -78,10 +84,11 @@ module Spotted
|
|
|
78
84
|
sig do
|
|
79
85
|
override.returns(
|
|
80
86
|
{
|
|
87
|
+
paths_request_body_content_application_json_schema_properties_published:
|
|
88
|
+
T::Boolean,
|
|
81
89
|
collaborative: T::Boolean,
|
|
82
90
|
description: String,
|
|
83
91
|
name: String,
|
|
84
|
-
public: T::Boolean,
|
|
85
92
|
request_options: Spotted::RequestOptions
|
|
86
93
|
}
|
|
87
94
|
)
|
|
@@ -20,14 +20,20 @@ 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 :paths_request_body_content_application_json_schema_properties_published
|
|
24
24
|
|
|
25
|
-
sig
|
|
26
|
-
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
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
|
|
27
32
|
|
|
28
33
|
sig do
|
|
29
34
|
params(
|
|
30
|
-
|
|
35
|
+
paths_request_body_content_application_json_schema_properties_published:
|
|
36
|
+
T::Boolean,
|
|
31
37
|
request_options: Spotted::RequestOptions::OrHash
|
|
32
38
|
).returns(T.attached_class)
|
|
33
39
|
end
|
|
@@ -36,14 +42,18 @@ module Spotted
|
|
|
36
42
|
# playlists (added to profile), if `false` it will remain private. For more about
|
|
37
43
|
# public/private status, see
|
|
38
44
|
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
39
|
-
|
|
45
|
+
paths_request_body_content_application_json_schema_properties_published: nil,
|
|
40
46
|
request_options: {}
|
|
41
47
|
)
|
|
42
48
|
end
|
|
43
49
|
|
|
44
50
|
sig do
|
|
45
51
|
override.returns(
|
|
46
|
-
{
|
|
52
|
+
{
|
|
53
|
+
paths_request_body_content_application_json_schema_properties_published:
|
|
54
|
+
T::Boolean,
|
|
55
|
+
request_options: Spotted::RequestOptions
|
|
56
|
+
}
|
|
47
57
|
)
|
|
48
58
|
end
|
|
49
59
|
def to_hash
|