spotted 0.16.0 → 0.18.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 +24 -0
- data/README.md +2 -2
- data/lib/spotted/models/playlist_retrieve_response.rb +12 -14
- 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/simplified_playlist_object.rb +12 -14
- data/lib/spotted/models/users/playlist_create_params.rb +15 -17
- data/lib/spotted/models/users/playlist_create_response.rb +12 -14
- 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 +19 -26
- data/rbi/spotted/models/playlists/follower_follow_params.rbi +6 -16
- data/rbi/spotted/models/simplified_playlist_object.rbi +17 -17
- data/rbi/spotted/models/users/playlist_create_params.rbi +23 -30
- data/rbi/spotted/models/users/playlist_create_response.rbi +17 -17
- 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_retrieve_response.rbs +7 -7
- 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/simplified_playlist_object.rbs +7 -7
- data/sig/spotted/models/users/playlist_create_params.rbs +7 -14
- 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
|
@@ -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
|
|
@@ -16,16 +16,6 @@ module Spotted
|
|
|
16
16
|
sig { params(id: String).void }
|
|
17
17
|
attr_writer :id
|
|
18
18
|
|
|
19
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
20
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
21
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
22
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
23
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
24
|
-
attr_reader :components_schemas_properties_published
|
|
25
|
-
|
|
26
|
-
sig { params(components_schemas_properties_published: T::Boolean).void }
|
|
27
|
-
attr_writer :components_schemas_properties_published
|
|
28
|
-
|
|
29
19
|
# `true` if the owner allows other users to modify the playlist.
|
|
30
20
|
sig { returns(T.nilable(T::Boolean)) }
|
|
31
21
|
attr_reader :collaborative
|
|
@@ -82,6 +72,16 @@ module Spotted
|
|
|
82
72
|
end
|
|
83
73
|
attr_writer :owner
|
|
84
74
|
|
|
75
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
76
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
77
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
78
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
79
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
80
|
+
attr_reader :published
|
|
81
|
+
|
|
82
|
+
sig { params(published: T::Boolean).void }
|
|
83
|
+
attr_writer :published
|
|
84
|
+
|
|
85
85
|
# The version identifier for the current playlist. Can be supplied in other
|
|
86
86
|
# requests to target a specific playlist version
|
|
87
87
|
sig { returns(T.nilable(String)) }
|
|
@@ -118,7 +118,6 @@ module Spotted
|
|
|
118
118
|
sig do
|
|
119
119
|
params(
|
|
120
120
|
id: String,
|
|
121
|
-
components_schemas_properties_published: T::Boolean,
|
|
122
121
|
collaborative: T::Boolean,
|
|
123
122
|
description: String,
|
|
124
123
|
external_urls: Spotted::ExternalURLObject::OrHash,
|
|
@@ -126,6 +125,7 @@ module Spotted
|
|
|
126
125
|
images: T::Array[Spotted::ImageObject::OrHash],
|
|
127
126
|
name: String,
|
|
128
127
|
owner: Spotted::SimplifiedPlaylistObject::Owner::OrHash,
|
|
128
|
+
published: T::Boolean,
|
|
129
129
|
snapshot_id: String,
|
|
130
130
|
tracks: Spotted::PlaylistTracksRefObject::OrHash,
|
|
131
131
|
type: String,
|
|
@@ -136,11 +136,6 @@ module Spotted
|
|
|
136
136
|
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
137
137
|
# playlist.
|
|
138
138
|
id: nil,
|
|
139
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
140
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
141
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
142
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
143
|
-
components_schemas_properties_published: nil,
|
|
144
139
|
# `true` if the owner allows other users to modify the playlist.
|
|
145
140
|
collaborative: nil,
|
|
146
141
|
# The playlist description. _Only returned for modified, verified playlists,
|
|
@@ -160,6 +155,11 @@ module Spotted
|
|
|
160
155
|
name: nil,
|
|
161
156
|
# The user who owns the playlist
|
|
162
157
|
owner: nil,
|
|
158
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
159
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
160
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
161
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
162
|
+
published: nil,
|
|
163
163
|
# The version identifier for the current playlist. Can be supplied in other
|
|
164
164
|
# requests to target a specific playlist version
|
|
165
165
|
snapshot_id: nil,
|
|
@@ -180,7 +180,6 @@ module Spotted
|
|
|
180
180
|
override.returns(
|
|
181
181
|
{
|
|
182
182
|
id: String,
|
|
183
|
-
components_schemas_properties_published: T::Boolean,
|
|
184
183
|
collaborative: T::Boolean,
|
|
185
184
|
description: String,
|
|
186
185
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -188,6 +187,7 @@ module Spotted
|
|
|
188
187
|
images: T::Array[Spotted::ImageObject],
|
|
189
188
|
name: String,
|
|
190
189
|
owner: Spotted::SimplifiedPlaylistObject::Owner,
|
|
190
|
+
published: T::Boolean,
|
|
191
191
|
snapshot_id: String,
|
|
192
192
|
tracks: Spotted::PlaylistTracksRefObject,
|
|
193
193
|
type: String,
|
|
@@ -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
|
)
|
|
@@ -20,16 +20,6 @@ module Spotted
|
|
|
20
20
|
sig { params(id: String).void }
|
|
21
21
|
attr_writer :id
|
|
22
22
|
|
|
23
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
24
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
25
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
26
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
27
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
28
|
-
attr_reader :components_schemas_properties_published
|
|
29
|
-
|
|
30
|
-
sig { params(components_schemas_properties_published: T::Boolean).void }
|
|
31
|
-
attr_writer :components_schemas_properties_published
|
|
32
|
-
|
|
33
23
|
# `true` if the owner allows other users to modify the playlist.
|
|
34
24
|
sig { returns(T.nilable(T::Boolean)) }
|
|
35
25
|
attr_reader :collaborative
|
|
@@ -96,6 +86,16 @@ module Spotted
|
|
|
96
86
|
end
|
|
97
87
|
attr_writer :owner
|
|
98
88
|
|
|
89
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
90
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
91
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
92
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
93
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
94
|
+
attr_reader :published
|
|
95
|
+
|
|
96
|
+
sig { params(published: T::Boolean).void }
|
|
97
|
+
attr_writer :published
|
|
98
|
+
|
|
99
99
|
# The version identifier for the current playlist. Can be supplied in other
|
|
100
100
|
# requests to target a specific playlist version
|
|
101
101
|
sig { returns(T.nilable(String)) }
|
|
@@ -138,7 +138,6 @@ module Spotted
|
|
|
138
138
|
sig do
|
|
139
139
|
params(
|
|
140
140
|
id: String,
|
|
141
|
-
components_schemas_properties_published: T::Boolean,
|
|
142
141
|
collaborative: T::Boolean,
|
|
143
142
|
description: T.nilable(String),
|
|
144
143
|
external_urls: Spotted::ExternalURLObject::OrHash,
|
|
@@ -148,6 +147,7 @@ module Spotted
|
|
|
148
147
|
name: String,
|
|
149
148
|
owner:
|
|
150
149
|
Spotted::Models::Users::PlaylistCreateResponse::Owner::OrHash,
|
|
150
|
+
published: T::Boolean,
|
|
151
151
|
snapshot_id: String,
|
|
152
152
|
tracks:
|
|
153
153
|
Spotted::Models::Users::PlaylistCreateResponse::Tracks::OrHash,
|
|
@@ -159,11 +159,6 @@ module Spotted
|
|
|
159
159
|
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
160
160
|
# playlist.
|
|
161
161
|
id: nil,
|
|
162
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
163
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
164
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
165
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
166
|
-
components_schemas_properties_published: nil,
|
|
167
162
|
# `true` if the owner allows other users to modify the playlist.
|
|
168
163
|
collaborative: nil,
|
|
169
164
|
# The playlist description. _Only returned for modified, verified playlists,
|
|
@@ -185,6 +180,11 @@ module Spotted
|
|
|
185
180
|
name: nil,
|
|
186
181
|
# The user who owns the playlist
|
|
187
182
|
owner: nil,
|
|
183
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
184
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
185
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
186
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
187
|
+
published: nil,
|
|
188
188
|
# The version identifier for the current playlist. Can be supplied in other
|
|
189
189
|
# requests to target a specific playlist version
|
|
190
190
|
snapshot_id: nil,
|
|
@@ -202,7 +202,6 @@ module Spotted
|
|
|
202
202
|
override.returns(
|
|
203
203
|
{
|
|
204
204
|
id: String,
|
|
205
|
-
components_schemas_properties_published: T::Boolean,
|
|
206
205
|
collaborative: T::Boolean,
|
|
207
206
|
description: T.nilable(String),
|
|
208
207
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -211,6 +210,7 @@ module Spotted
|
|
|
211
210
|
images: T::Array[Spotted::ImageObject],
|
|
212
211
|
name: String,
|
|
213
212
|
owner: Spotted::Models::Users::PlaylistCreateResponse::Owner,
|
|
213
|
+
published: T::Boolean,
|
|
214
214
|
snapshot_id: String,
|
|
215
215
|
tracks: Spotted::Models::Users::PlaylistCreateResponse::Tracks,
|
|
216
216
|
type: String,
|
|
@@ -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
|
|
@@ -3,7 +3,6 @@ module Spotted
|
|
|
3
3
|
type playlist_retrieve_response =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
-
components_schemas_properties_published: bool,
|
|
7
6
|
collaborative: bool,
|
|
8
7
|
description: String?,
|
|
9
8
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -12,6 +11,7 @@ module Spotted
|
|
|
12
11
|
images: ::Array[Spotted::ImageObject],
|
|
13
12
|
name: String,
|
|
14
13
|
owner: Spotted::Models::PlaylistRetrieveResponse::Owner,
|
|
14
|
+
published: bool,
|
|
15
15
|
snapshot_id: String,
|
|
16
16
|
tracks: Spotted::Models::PlaylistRetrieveResponse::Tracks,
|
|
17
17
|
type: String,
|
|
@@ -23,10 +23,6 @@ module Spotted
|
|
|
23
23
|
|
|
24
24
|
def id=: (String) -> String
|
|
25
25
|
|
|
26
|
-
attr_reader components_schemas_properties_published: bool?
|
|
27
|
-
|
|
28
|
-
def components_schemas_properties_published=: (bool) -> bool
|
|
29
|
-
|
|
30
26
|
attr_reader collaborative: bool?
|
|
31
27
|
|
|
32
28
|
def collaborative=: (bool) -> bool
|
|
@@ -63,6 +59,10 @@ module Spotted
|
|
|
63
59
|
Spotted::Models::PlaylistRetrieveResponse::Owner
|
|
64
60
|
) -> Spotted::Models::PlaylistRetrieveResponse::Owner
|
|
65
61
|
|
|
62
|
+
attr_reader published: bool?
|
|
63
|
+
|
|
64
|
+
def published=: (bool) -> bool
|
|
65
|
+
|
|
66
66
|
attr_reader snapshot_id: String?
|
|
67
67
|
|
|
68
68
|
def snapshot_id=: (String) -> String
|
|
@@ -83,7 +83,6 @@ module Spotted
|
|
|
83
83
|
|
|
84
84
|
def initialize: (
|
|
85
85
|
?id: String,
|
|
86
|
-
?components_schemas_properties_published: bool,
|
|
87
86
|
?collaborative: bool,
|
|
88
87
|
?description: String?,
|
|
89
88
|
?external_urls: Spotted::ExternalURLObject,
|
|
@@ -92,6 +91,7 @@ module Spotted
|
|
|
92
91
|
?images: ::Array[Spotted::ImageObject],
|
|
93
92
|
?name: String,
|
|
94
93
|
?owner: Spotted::Models::PlaylistRetrieveResponse::Owner,
|
|
94
|
+
?published: bool,
|
|
95
95
|
?snapshot_id: String,
|
|
96
96
|
?tracks: Spotted::Models::PlaylistRetrieveResponse::Tracks,
|
|
97
97
|
?type: String,
|
|
@@ -100,7 +100,6 @@ module Spotted
|
|
|
100
100
|
|
|
101
101
|
def to_hash: -> {
|
|
102
102
|
id: String,
|
|
103
|
-
components_schemas_properties_published: bool,
|
|
104
103
|
collaborative: bool,
|
|
105
104
|
description: String?,
|
|
106
105
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -109,6 +108,7 @@ module Spotted
|
|
|
109
108
|
images: ::Array[Spotted::ImageObject],
|
|
110
109
|
name: String,
|
|
111
110
|
owner: Spotted::Models::PlaylistRetrieveResponse::Owner,
|
|
111
|
+
published: bool,
|
|
112
112
|
snapshot_id: String,
|
|
113
113
|
tracks: Spotted::Models::PlaylistRetrieveResponse::Tracks,
|
|
114
114
|
type: String,
|
|
@@ -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
|
|
@@ -3,7 +3,6 @@ module Spotted
|
|
|
3
3
|
type simplified_playlist_object =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
-
components_schemas_properties_published: bool,
|
|
7
6
|
collaborative: bool,
|
|
8
7
|
description: String,
|
|
9
8
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -11,6 +10,7 @@ module Spotted
|
|
|
11
10
|
images: ::Array[Spotted::ImageObject],
|
|
12
11
|
name: String,
|
|
13
12
|
owner: Spotted::SimplifiedPlaylistObject::Owner,
|
|
13
|
+
published: bool,
|
|
14
14
|
snapshot_id: String,
|
|
15
15
|
tracks: Spotted::PlaylistTracksRefObject,
|
|
16
16
|
type: String,
|
|
@@ -22,10 +22,6 @@ module Spotted
|
|
|
22
22
|
|
|
23
23
|
def id=: (String) -> String
|
|
24
24
|
|
|
25
|
-
attr_reader components_schemas_properties_published: bool?
|
|
26
|
-
|
|
27
|
-
def components_schemas_properties_published=: (bool) -> bool
|
|
28
|
-
|
|
29
25
|
attr_reader collaborative: bool?
|
|
30
26
|
|
|
31
27
|
def collaborative=: (bool) -> bool
|
|
@@ -60,6 +56,10 @@ module Spotted
|
|
|
60
56
|
Spotted::SimplifiedPlaylistObject::Owner
|
|
61
57
|
) -> Spotted::SimplifiedPlaylistObject::Owner
|
|
62
58
|
|
|
59
|
+
attr_reader published: bool?
|
|
60
|
+
|
|
61
|
+
def published=: (bool) -> bool
|
|
62
|
+
|
|
63
63
|
attr_reader snapshot_id: String?
|
|
64
64
|
|
|
65
65
|
def snapshot_id=: (String) -> String
|
|
@@ -80,7 +80,6 @@ module Spotted
|
|
|
80
80
|
|
|
81
81
|
def initialize: (
|
|
82
82
|
?id: String,
|
|
83
|
-
?components_schemas_properties_published: bool,
|
|
84
83
|
?collaborative: bool,
|
|
85
84
|
?description: String,
|
|
86
85
|
?external_urls: Spotted::ExternalURLObject,
|
|
@@ -88,6 +87,7 @@ module Spotted
|
|
|
88
87
|
?images: ::Array[Spotted::ImageObject],
|
|
89
88
|
?name: String,
|
|
90
89
|
?owner: Spotted::SimplifiedPlaylistObject::Owner,
|
|
90
|
+
?published: bool,
|
|
91
91
|
?snapshot_id: String,
|
|
92
92
|
?tracks: Spotted::PlaylistTracksRefObject,
|
|
93
93
|
?type: String,
|
|
@@ -96,7 +96,6 @@ module Spotted
|
|
|
96
96
|
|
|
97
97
|
def to_hash: -> {
|
|
98
98
|
id: String,
|
|
99
|
-
components_schemas_properties_published: bool,
|
|
100
99
|
collaborative: bool,
|
|
101
100
|
description: String,
|
|
102
101
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -104,6 +103,7 @@ module Spotted
|
|
|
104
103
|
images: ::Array[Spotted::ImageObject],
|
|
105
104
|
name: String,
|
|
106
105
|
owner: Spotted::SimplifiedPlaylistObject::Owner,
|
|
106
|
+
published: bool,
|
|
107
107
|
snapshot_id: String,
|
|
108
108
|
tracks: Spotted::PlaylistTracksRefObject,
|
|
109
109
|
type: String,
|