spotted 0.4.0 → 0.6.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 +26 -0
- data/README.md +1 -1
- data/lib/spotted/client.rb +0 -4
- data/lib/spotted/internal/transport/pooled_net_requester.rb +6 -2
- data/lib/spotted/models/{album_list_params.rb → album_bulk_retrieve_params.rb} +3 -3
- data/lib/spotted/models/{album_list_response.rb → album_bulk_retrieve_response.rb} +24 -23
- data/lib/spotted/models/me/album_remove_params.rb +4 -4
- data/lib/spotted/models/me/album_save_params.rb +4 -4
- data/lib/spotted/models/me/episode_remove_params.rb +4 -4
- data/lib/spotted/models/me/episode_save_params.rb +4 -4
- data/lib/spotted/models/me/following_follow_params.rb +4 -23
- data/lib/spotted/models/me/following_unfollow_params.rb +4 -23
- data/lib/spotted/models/me/show_remove_params.rb +4 -20
- data/lib/spotted/models/me/show_save_params.rb +4 -4
- data/lib/spotted/models/me/track_remove_params.rb +4 -4
- data/lib/spotted/models/playlists/track_add_params.rb +7 -7
- data/lib/spotted/models/playlists/track_update_params.rb +8 -8
- data/lib/spotted/models.rb +1 -6
- data/lib/spotted/resources/albums.rb +7 -7
- data/lib/spotted/resources/me/albums.rb +6 -22
- data/lib/spotted/resources/me/episodes.rb +6 -16
- data/lib/spotted/resources/me/following.rb +7 -21
- data/lib/spotted/resources/me/shows.rb +6 -24
- data/lib/spotted/resources/me/tracks.rb +3 -11
- data/lib/spotted/resources/playlists/tracks.rb +13 -17
- data/lib/spotted/version.rb +1 -1
- data/lib/spotted.rb +3 -5
- data/manifest.yaml +1 -0
- data/rbi/spotted/client.rbi +0 -3
- data/rbi/spotted/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/spotted/models/{album_list_params.rbi → album_bulk_retrieve_params.rbi} +2 -2
- data/rbi/spotted/models/{album_list_response.rbi → album_bulk_retrieve_response.rbi} +51 -33
- data/rbi/spotted/models/me/album_remove_params.rbi +6 -9
- data/rbi/spotted/models/me/album_save_params.rbi +6 -9
- data/rbi/spotted/models/me/episode_remove_params.rbi +6 -9
- data/rbi/spotted/models/me/episode_save_params.rbi +4 -7
- data/rbi/spotted/models/me/following_follow_params.rbi +4 -42
- data/rbi/spotted/models/me/following_unfollow_params.rbi +6 -47
- data/rbi/spotted/models/me/show_remove_params.rbi +6 -36
- data/rbi/spotted/models/me/show_save_params.rbi +6 -9
- data/rbi/spotted/models/me/track_remove_params.rbi +6 -9
- data/rbi/spotted/models/playlists/track_add_params.rbi +12 -12
- data/rbi/spotted/models/playlists/track_update_params.rbi +9 -9
- data/rbi/spotted/models.rbi +1 -9
- data/rbi/spotted/resources/albums.rbi +2 -2
- data/rbi/spotted/resources/me/albums.rbi +6 -6
- data/rbi/spotted/resources/me/episodes.rbi +6 -6
- data/rbi/spotted/resources/me/following.rbi +6 -12
- data/rbi/spotted/resources/me/shows.rbi +6 -17
- data/rbi/spotted/resources/me/tracks.rbi +3 -3
- data/rbi/spotted/resources/playlists/tracks.rbi +28 -31
- data/sig/spotted/client.rbs +0 -2
- data/sig/spotted/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/spotted/models/{album_list_params.rbs → album_bulk_retrieve_params.rbs} +2 -2
- data/sig/spotted/models/{album_list_response.rbs → album_bulk_retrieve_response.rbs} +27 -27
- data/sig/spotted/models/me/album_remove_params.rbs +5 -6
- data/sig/spotted/models/me/album_save_params.rbs +5 -6
- data/sig/spotted/models/me/episode_remove_params.rbs +5 -6
- data/sig/spotted/models/me/episode_save_params.rbs +4 -5
- data/sig/spotted/models/me/following_follow_params.rbs +4 -23
- data/sig/spotted/models/me/following_unfollow_params.rbs +5 -24
- data/sig/spotted/models/me/show_remove_params.rbs +5 -12
- data/sig/spotted/models/me/show_save_params.rbs +5 -6
- data/sig/spotted/models/me/track_remove_params.rbs +5 -6
- data/sig/spotted/models/playlists/track_add_params.rbs +9 -9
- data/sig/spotted/models/playlists/track_update_params.rbs +8 -8
- data/sig/spotted/models.rbs +1 -5
- data/sig/spotted/resources/albums.rbs +2 -2
- data/sig/spotted/resources/me/albums.rbs +2 -2
- data/sig/spotted/resources/me/episodes.rbs +2 -2
- data/sig/spotted/resources/me/following.rbs +2 -4
- data/sig/spotted/resources/me/shows.rbs +2 -3
- data/sig/spotted/resources/me/tracks.rbs +1 -1
- data/sig/spotted/resources/playlists/tracks.rbs +3 -3
- metadata +8 -17
- data/lib/spotted/models/unwrap_webhook_event.rb +0 -8
- data/lib/spotted/models/webhook_unwrap_params.rb +0 -14
- data/lib/spotted/resources/webhooks.rb +0 -22
- data/rbi/spotted/models/unwrap_webhook_event.rbi +0 -7
- data/rbi/spotted/models/webhook_unwrap_params.rbi +0 -27
- data/rbi/spotted/resources/webhooks.rbi +0 -19
- data/sig/spotted/models/unwrap_webhook_event.rbs +0 -5
- data/sig/spotted/models/webhook_unwrap_params.rbs +0 -15
- data/sig/spotted/resources/webhooks.rbs +0 -9
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
module Spotted
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class AlbumBulkRetrieveResponse < Spotted::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
|
-
T.any(
|
|
8
|
+
T.any(
|
|
9
|
+
Spotted::Models::AlbumBulkRetrieveResponse,
|
|
10
|
+
Spotted::Internal::AnyHash
|
|
11
|
+
)
|
|
9
12
|
end
|
|
10
13
|
|
|
11
|
-
sig
|
|
14
|
+
sig do
|
|
15
|
+
returns(T::Array[Spotted::Models::AlbumBulkRetrieveResponse::Album])
|
|
16
|
+
end
|
|
12
17
|
attr_accessor :albums
|
|
13
18
|
|
|
14
19
|
sig do
|
|
15
20
|
params(
|
|
16
|
-
albums:
|
|
21
|
+
albums:
|
|
22
|
+
T::Array[Spotted::Models::AlbumBulkRetrieveResponse::Album::OrHash]
|
|
17
23
|
).returns(T.attached_class)
|
|
18
24
|
end
|
|
19
25
|
def self.new(albums:)
|
|
@@ -21,7 +27,9 @@ module Spotted
|
|
|
21
27
|
|
|
22
28
|
sig do
|
|
23
29
|
override.returns(
|
|
24
|
-
{
|
|
30
|
+
{
|
|
31
|
+
albums: T::Array[Spotted::Models::AlbumBulkRetrieveResponse::Album]
|
|
32
|
+
}
|
|
25
33
|
)
|
|
26
34
|
end
|
|
27
35
|
def to_hash
|
|
@@ -31,7 +39,7 @@ module Spotted
|
|
|
31
39
|
OrHash =
|
|
32
40
|
T.type_alias do
|
|
33
41
|
T.any(
|
|
34
|
-
Spotted::Models::
|
|
42
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album,
|
|
35
43
|
Spotted::Internal::AnyHash
|
|
36
44
|
)
|
|
37
45
|
end
|
|
@@ -44,7 +52,7 @@ module Spotted
|
|
|
44
52
|
# The type of the album.
|
|
45
53
|
sig do
|
|
46
54
|
returns(
|
|
47
|
-
Spotted::Models::
|
|
55
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::AlbumType::TaggedSymbol
|
|
48
56
|
)
|
|
49
57
|
end
|
|
50
58
|
attr_accessor :album_type
|
|
@@ -83,7 +91,7 @@ module Spotted
|
|
|
83
91
|
# The precision with which `release_date` value is known.
|
|
84
92
|
sig do
|
|
85
93
|
returns(
|
|
86
|
-
Spotted::Models::
|
|
94
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::ReleaseDatePrecision::TaggedSymbol
|
|
87
95
|
)
|
|
88
96
|
end
|
|
89
97
|
attr_accessor :release_date_precision
|
|
@@ -94,7 +102,9 @@ module Spotted
|
|
|
94
102
|
|
|
95
103
|
# The object type.
|
|
96
104
|
sig do
|
|
97
|
-
returns(
|
|
105
|
+
returns(
|
|
106
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::Type::TaggedSymbol
|
|
107
|
+
)
|
|
98
108
|
end
|
|
99
109
|
attr_accessor :type
|
|
100
110
|
|
|
@@ -164,13 +174,16 @@ module Spotted
|
|
|
164
174
|
|
|
165
175
|
# The tracks of the album.
|
|
166
176
|
sig do
|
|
167
|
-
returns(
|
|
177
|
+
returns(
|
|
178
|
+
T.nilable(Spotted::Models::AlbumBulkRetrieveResponse::Album::Tracks)
|
|
179
|
+
)
|
|
168
180
|
end
|
|
169
181
|
attr_reader :tracks
|
|
170
182
|
|
|
171
183
|
sig do
|
|
172
184
|
params(
|
|
173
|
-
tracks:
|
|
185
|
+
tracks:
|
|
186
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::Tracks::OrHash
|
|
174
187
|
).void
|
|
175
188
|
end
|
|
176
189
|
attr_writer :tracks
|
|
@@ -179,7 +192,7 @@ module Spotted
|
|
|
179
192
|
params(
|
|
180
193
|
id: String,
|
|
181
194
|
album_type:
|
|
182
|
-
Spotted::Models::
|
|
195
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::AlbumType::OrSymbol,
|
|
183
196
|
available_markets: T::Array[String],
|
|
184
197
|
external_urls: Spotted::ExternalURLObject::OrHash,
|
|
185
198
|
href: String,
|
|
@@ -187,9 +200,10 @@ module Spotted
|
|
|
187
200
|
name: String,
|
|
188
201
|
release_date: String,
|
|
189
202
|
release_date_precision:
|
|
190
|
-
Spotted::Models::
|
|
203
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::ReleaseDatePrecision::OrSymbol,
|
|
191
204
|
total_tracks: Integer,
|
|
192
|
-
type:
|
|
205
|
+
type:
|
|
206
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::Type::OrSymbol,
|
|
193
207
|
uri: String,
|
|
194
208
|
artists: T::Array[Spotted::SimplifiedArtistObject::OrHash],
|
|
195
209
|
copyrights: T::Array[Spotted::CopyrightObject::OrHash],
|
|
@@ -198,7 +212,8 @@ module Spotted
|
|
|
198
212
|
label: String,
|
|
199
213
|
popularity: Integer,
|
|
200
214
|
restrictions: Spotted::AlbumRestrictionObject::OrHash,
|
|
201
|
-
tracks:
|
|
215
|
+
tracks:
|
|
216
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::Tracks::OrHash
|
|
202
217
|
).returns(T.attached_class)
|
|
203
218
|
end
|
|
204
219
|
def self.new(
|
|
@@ -258,7 +273,7 @@ module Spotted
|
|
|
258
273
|
{
|
|
259
274
|
id: String,
|
|
260
275
|
album_type:
|
|
261
|
-
Spotted::Models::
|
|
276
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::AlbumType::TaggedSymbol,
|
|
262
277
|
available_markets: T::Array[String],
|
|
263
278
|
external_urls: Spotted::ExternalURLObject,
|
|
264
279
|
href: String,
|
|
@@ -266,10 +281,10 @@ module Spotted
|
|
|
266
281
|
name: String,
|
|
267
282
|
release_date: String,
|
|
268
283
|
release_date_precision:
|
|
269
|
-
Spotted::Models::
|
|
284
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::ReleaseDatePrecision::TaggedSymbol,
|
|
270
285
|
total_tracks: Integer,
|
|
271
286
|
type:
|
|
272
|
-
Spotted::Models::
|
|
287
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::Type::TaggedSymbol,
|
|
273
288
|
uri: String,
|
|
274
289
|
artists: T::Array[Spotted::SimplifiedArtistObject],
|
|
275
290
|
copyrights: T::Array[Spotted::CopyrightObject],
|
|
@@ -278,7 +293,7 @@ module Spotted
|
|
|
278
293
|
label: String,
|
|
279
294
|
popularity: Integer,
|
|
280
295
|
restrictions: Spotted::AlbumRestrictionObject,
|
|
281
|
-
tracks: Spotted::Models::
|
|
296
|
+
tracks: Spotted::Models::AlbumBulkRetrieveResponse::Album::Tracks
|
|
282
297
|
}
|
|
283
298
|
)
|
|
284
299
|
end
|
|
@@ -293,7 +308,7 @@ module Spotted
|
|
|
293
308
|
T.type_alias do
|
|
294
309
|
T.all(
|
|
295
310
|
Symbol,
|
|
296
|
-
Spotted::Models::
|
|
311
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::AlbumType
|
|
297
312
|
)
|
|
298
313
|
end
|
|
299
314
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -301,23 +316,23 @@ module Spotted
|
|
|
301
316
|
ALBUM =
|
|
302
317
|
T.let(
|
|
303
318
|
:album,
|
|
304
|
-
Spotted::Models::
|
|
319
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::AlbumType::TaggedSymbol
|
|
305
320
|
)
|
|
306
321
|
SINGLE =
|
|
307
322
|
T.let(
|
|
308
323
|
:single,
|
|
309
|
-
Spotted::Models::
|
|
324
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::AlbumType::TaggedSymbol
|
|
310
325
|
)
|
|
311
326
|
COMPILATION =
|
|
312
327
|
T.let(
|
|
313
328
|
:compilation,
|
|
314
|
-
Spotted::Models::
|
|
329
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::AlbumType::TaggedSymbol
|
|
315
330
|
)
|
|
316
331
|
|
|
317
332
|
sig do
|
|
318
333
|
override.returns(
|
|
319
334
|
T::Array[
|
|
320
|
-
Spotted::Models::
|
|
335
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::AlbumType::TaggedSymbol
|
|
321
336
|
]
|
|
322
337
|
)
|
|
323
338
|
end
|
|
@@ -333,7 +348,7 @@ module Spotted
|
|
|
333
348
|
T.type_alias do
|
|
334
349
|
T.all(
|
|
335
350
|
Symbol,
|
|
336
|
-
Spotted::Models::
|
|
351
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::ReleaseDatePrecision
|
|
337
352
|
)
|
|
338
353
|
end
|
|
339
354
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -341,23 +356,23 @@ module Spotted
|
|
|
341
356
|
YEAR =
|
|
342
357
|
T.let(
|
|
343
358
|
:year,
|
|
344
|
-
Spotted::Models::
|
|
359
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::ReleaseDatePrecision::TaggedSymbol
|
|
345
360
|
)
|
|
346
361
|
MONTH =
|
|
347
362
|
T.let(
|
|
348
363
|
:month,
|
|
349
|
-
Spotted::Models::
|
|
364
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::ReleaseDatePrecision::TaggedSymbol
|
|
350
365
|
)
|
|
351
366
|
DAY =
|
|
352
367
|
T.let(
|
|
353
368
|
:day,
|
|
354
|
-
Spotted::Models::
|
|
369
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::ReleaseDatePrecision::TaggedSymbol
|
|
355
370
|
)
|
|
356
371
|
|
|
357
372
|
sig do
|
|
358
373
|
override.returns(
|
|
359
374
|
T::Array[
|
|
360
|
-
Spotted::Models::
|
|
375
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::ReleaseDatePrecision::TaggedSymbol
|
|
361
376
|
]
|
|
362
377
|
)
|
|
363
378
|
end
|
|
@@ -371,20 +386,23 @@ module Spotted
|
|
|
371
386
|
|
|
372
387
|
TaggedSymbol =
|
|
373
388
|
T.type_alias do
|
|
374
|
-
T.all(
|
|
389
|
+
T.all(
|
|
390
|
+
Symbol,
|
|
391
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::Type
|
|
392
|
+
)
|
|
375
393
|
end
|
|
376
394
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
377
395
|
|
|
378
396
|
ALBUM =
|
|
379
397
|
T.let(
|
|
380
398
|
:album,
|
|
381
|
-
Spotted::Models::
|
|
399
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::Type::TaggedSymbol
|
|
382
400
|
)
|
|
383
401
|
|
|
384
402
|
sig do
|
|
385
403
|
override.returns(
|
|
386
404
|
T::Array[
|
|
387
|
-
Spotted::Models::
|
|
405
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::Type::TaggedSymbol
|
|
388
406
|
]
|
|
389
407
|
)
|
|
390
408
|
end
|
|
@@ -396,7 +414,7 @@ module Spotted
|
|
|
396
414
|
OrHash =
|
|
397
415
|
T.type_alias do
|
|
398
416
|
T.any(
|
|
399
|
-
Spotted::Models::
|
|
417
|
+
Spotted::Models::AlbumBulkRetrieveResponse::Album::Tracks,
|
|
400
418
|
Spotted::Internal::AnyHash
|
|
401
419
|
)
|
|
402
420
|
end
|
|
@@ -18,14 +18,14 @@ module Spotted
|
|
|
18
18
|
# can be specified in one request. _**Note**: if the `ids` parameter is present in
|
|
19
19
|
# the query string, any IDs listed here in the body will be ignored._
|
|
20
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
21
|
-
attr_reader :
|
|
21
|
+
attr_reader :ids
|
|
22
22
|
|
|
23
|
-
sig { params(
|
|
24
|
-
attr_writer :
|
|
23
|
+
sig { params(ids: T::Array[String]).void }
|
|
24
|
+
attr_writer :ids
|
|
25
25
|
|
|
26
26
|
sig do
|
|
27
27
|
params(
|
|
28
|
-
|
|
28
|
+
ids: T::Array[String],
|
|
29
29
|
request_options: Spotted::RequestOptions::OrHash
|
|
30
30
|
).returns(T.attached_class)
|
|
31
31
|
end
|
|
@@ -35,17 +35,14 @@ module Spotted
|
|
|
35
35
|
# `["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]`<br/>A maximum of 50 items
|
|
36
36
|
# can be specified in one request. _**Note**: if the `ids` parameter is present in
|
|
37
37
|
# the query string, any IDs listed here in the body will be ignored._
|
|
38
|
-
|
|
38
|
+
ids: nil,
|
|
39
39
|
request_options: {}
|
|
40
40
|
)
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
sig do
|
|
44
44
|
override.returns(
|
|
45
|
-
{
|
|
46
|
-
body_ids: T::Array[String],
|
|
47
|
-
request_options: Spotted::RequestOptions
|
|
48
|
-
}
|
|
45
|
+
{ ids: T::Array[String], request_options: Spotted::RequestOptions }
|
|
49
46
|
)
|
|
50
47
|
end
|
|
51
48
|
def to_hash
|
|
@@ -18,14 +18,14 @@ module Spotted
|
|
|
18
18
|
# can be specified in one request. _**Note**: if the `ids` parameter is present in
|
|
19
19
|
# the query string, any IDs listed here in the body will be ignored._
|
|
20
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
21
|
-
attr_reader :
|
|
21
|
+
attr_reader :ids
|
|
22
22
|
|
|
23
|
-
sig { params(
|
|
24
|
-
attr_writer :
|
|
23
|
+
sig { params(ids: T::Array[String]).void }
|
|
24
|
+
attr_writer :ids
|
|
25
25
|
|
|
26
26
|
sig do
|
|
27
27
|
params(
|
|
28
|
-
|
|
28
|
+
ids: T::Array[String],
|
|
29
29
|
request_options: Spotted::RequestOptions::OrHash
|
|
30
30
|
).returns(T.attached_class)
|
|
31
31
|
end
|
|
@@ -35,17 +35,14 @@ module Spotted
|
|
|
35
35
|
# `["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]`<br/>A maximum of 50 items
|
|
36
36
|
# can be specified in one request. _**Note**: if the `ids` parameter is present in
|
|
37
37
|
# the query string, any IDs listed here in the body will be ignored._
|
|
38
|
-
|
|
38
|
+
ids: nil,
|
|
39
39
|
request_options: {}
|
|
40
40
|
)
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
sig do
|
|
44
44
|
override.returns(
|
|
45
|
-
{
|
|
46
|
-
body_ids: T::Array[String],
|
|
47
|
-
request_options: Spotted::RequestOptions
|
|
48
|
-
}
|
|
45
|
+
{ ids: T::Array[String], request_options: Spotted::RequestOptions }
|
|
49
46
|
)
|
|
50
47
|
end
|
|
51
48
|
def to_hash
|
|
@@ -18,14 +18,14 @@ module Spotted
|
|
|
18
18
|
# is present in the query string, any IDs listed here in the body will be
|
|
19
19
|
# ignored._
|
|
20
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
21
|
-
attr_reader :
|
|
21
|
+
attr_reader :ids
|
|
22
22
|
|
|
23
|
-
sig { params(
|
|
24
|
-
attr_writer :
|
|
23
|
+
sig { params(ids: T::Array[String]).void }
|
|
24
|
+
attr_writer :ids
|
|
25
25
|
|
|
26
26
|
sig do
|
|
27
27
|
params(
|
|
28
|
-
|
|
28
|
+
ids: T::Array[String],
|
|
29
29
|
request_options: Spotted::RequestOptions::OrHash
|
|
30
30
|
).returns(T.attached_class)
|
|
31
31
|
end
|
|
@@ -35,17 +35,14 @@ module Spotted
|
|
|
35
35
|
# of 50 items can be specified in one request. _**Note**: if the `ids` parameter
|
|
36
36
|
# is present in the query string, any IDs listed here in the body will be
|
|
37
37
|
# ignored._
|
|
38
|
-
|
|
38
|
+
ids: nil,
|
|
39
39
|
request_options: {}
|
|
40
40
|
)
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
sig do
|
|
44
44
|
override.returns(
|
|
45
|
-
{
|
|
46
|
-
body_ids: T::Array[String],
|
|
47
|
-
request_options: Spotted::RequestOptions
|
|
48
|
-
}
|
|
45
|
+
{ ids: T::Array[String], request_options: Spotted::RequestOptions }
|
|
49
46
|
)
|
|
50
47
|
end
|
|
51
48
|
def to_hash
|
|
@@ -18,11 +18,11 @@ module Spotted
|
|
|
18
18
|
# is present in the query string, any IDs listed here in the body will be
|
|
19
19
|
# ignored._
|
|
20
20
|
sig { returns(T::Array[String]) }
|
|
21
|
-
attr_accessor :
|
|
21
|
+
attr_accessor :ids
|
|
22
22
|
|
|
23
23
|
sig do
|
|
24
24
|
params(
|
|
25
|
-
|
|
25
|
+
ids: T::Array[String],
|
|
26
26
|
request_options: Spotted::RequestOptions::OrHash
|
|
27
27
|
).returns(T.attached_class)
|
|
28
28
|
end
|
|
@@ -32,17 +32,14 @@ module Spotted
|
|
|
32
32
|
# of 50 items can be specified in one request. _**Note**: if the `ids` parameter
|
|
33
33
|
# is present in the query string, any IDs listed here in the body will be
|
|
34
34
|
# ignored._
|
|
35
|
-
|
|
35
|
+
ids:,
|
|
36
36
|
request_options: {}
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
sig do
|
|
41
41
|
override.returns(
|
|
42
|
-
{
|
|
43
|
-
body_ids: T::Array[String],
|
|
44
|
-
request_options: Spotted::RequestOptions
|
|
45
|
-
}
|
|
42
|
+
{ ids: T::Array[String], request_options: Spotted::RequestOptions }
|
|
46
43
|
)
|
|
47
44
|
end
|
|
48
45
|
def to_hash
|
|
@@ -21,16 +21,11 @@ module Spotted
|
|
|
21
21
|
# IDs can be sent in one request. _**Note**: if the `ids` parameter is present in
|
|
22
22
|
# the query string, any IDs listed here in the body will be ignored._
|
|
23
23
|
sig { returns(T::Array[String]) }
|
|
24
|
-
attr_accessor :
|
|
25
|
-
|
|
26
|
-
# The ID type.
|
|
27
|
-
sig { returns(Spotted::Me::FollowingFollowParams::Type::OrSymbol) }
|
|
28
|
-
attr_accessor :type
|
|
24
|
+
attr_accessor :ids
|
|
29
25
|
|
|
30
26
|
sig do
|
|
31
27
|
params(
|
|
32
|
-
|
|
33
|
-
type: Spotted::Me::FollowingFollowParams::Type::OrSymbol,
|
|
28
|
+
ids: T::Array[String],
|
|
34
29
|
request_options: Spotted::RequestOptions::OrHash
|
|
35
30
|
).returns(T.attached_class)
|
|
36
31
|
end
|
|
@@ -40,51 +35,18 @@ module Spotted
|
|
|
40
35
|
# `{ids:["74ASZWbe4lXaubB36ztrGX", "08td7MxkoHQkXnWAYD8d6Q"]}`. A maximum of 50
|
|
41
36
|
# IDs can be sent in one request. _**Note**: if the `ids` parameter is present in
|
|
42
37
|
# the query string, any IDs listed here in the body will be ignored._
|
|
43
|
-
|
|
44
|
-
# The ID type.
|
|
45
|
-
type:,
|
|
38
|
+
ids:,
|
|
46
39
|
request_options: {}
|
|
47
40
|
)
|
|
48
41
|
end
|
|
49
42
|
|
|
50
43
|
sig do
|
|
51
44
|
override.returns(
|
|
52
|
-
{
|
|
53
|
-
body_ids: T::Array[String],
|
|
54
|
-
type: Spotted::Me::FollowingFollowParams::Type::OrSymbol,
|
|
55
|
-
request_options: Spotted::RequestOptions
|
|
56
|
-
}
|
|
45
|
+
{ ids: T::Array[String], request_options: Spotted::RequestOptions }
|
|
57
46
|
)
|
|
58
47
|
end
|
|
59
48
|
def to_hash
|
|
60
49
|
end
|
|
61
|
-
|
|
62
|
-
# The ID type.
|
|
63
|
-
module Type
|
|
64
|
-
extend Spotted::Internal::Type::Enum
|
|
65
|
-
|
|
66
|
-
TaggedSymbol =
|
|
67
|
-
T.type_alias do
|
|
68
|
-
T.all(Symbol, Spotted::Me::FollowingFollowParams::Type)
|
|
69
|
-
end
|
|
70
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
71
|
-
|
|
72
|
-
ARTIST =
|
|
73
|
-
T.let(
|
|
74
|
-
:artist,
|
|
75
|
-
Spotted::Me::FollowingFollowParams::Type::TaggedSymbol
|
|
76
|
-
)
|
|
77
|
-
USER =
|
|
78
|
-
T.let(:user, Spotted::Me::FollowingFollowParams::Type::TaggedSymbol)
|
|
79
|
-
|
|
80
|
-
sig do
|
|
81
|
-
override.returns(
|
|
82
|
-
T::Array[Spotted::Me::FollowingFollowParams::Type::TaggedSymbol]
|
|
83
|
-
)
|
|
84
|
-
end
|
|
85
|
-
def self.values
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
50
|
end
|
|
89
51
|
end
|
|
90
52
|
end
|
|
@@ -21,76 +21,35 @@ module Spotted
|
|
|
21
21
|
# IDs can be sent in one request. _**Note**: if the `ids` parameter is present in
|
|
22
22
|
# the query string, any IDs listed here in the body will be ignored._
|
|
23
23
|
sig { returns(T.nilable(T::Array[String])) }
|
|
24
|
-
attr_reader :
|
|
24
|
+
attr_reader :ids
|
|
25
25
|
|
|
26
|
-
sig { params(
|
|
27
|
-
attr_writer :
|
|
28
|
-
|
|
29
|
-
# The ID type: either `artist` or `user`.
|
|
30
|
-
sig { returns(Spotted::Me::FollowingUnfollowParams::Type::OrSymbol) }
|
|
31
|
-
attr_accessor :type
|
|
26
|
+
sig { params(ids: T::Array[String]).void }
|
|
27
|
+
attr_writer :ids
|
|
32
28
|
|
|
33
29
|
sig do
|
|
34
30
|
params(
|
|
35
|
-
|
|
36
|
-
body_ids: T::Array[String],
|
|
31
|
+
ids: T::Array[String],
|
|
37
32
|
request_options: Spotted::RequestOptions::OrHash
|
|
38
33
|
).returns(T.attached_class)
|
|
39
34
|
end
|
|
40
35
|
def self.new(
|
|
41
|
-
# The ID type: either `artist` or `user`.
|
|
42
|
-
type:,
|
|
43
36
|
# A JSON array of the artist or user
|
|
44
37
|
# [Spotify IDs](/documentation/web-api/concepts/spotify-uris-ids). For example:
|
|
45
38
|
# `{ids:["74ASZWbe4lXaubB36ztrGX", "08td7MxkoHQkXnWAYD8d6Q"]}`. A maximum of 50
|
|
46
39
|
# IDs can be sent in one request. _**Note**: if the `ids` parameter is present in
|
|
47
40
|
# the query string, any IDs listed here in the body will be ignored._
|
|
48
|
-
|
|
41
|
+
ids: nil,
|
|
49
42
|
request_options: {}
|
|
50
43
|
)
|
|
51
44
|
end
|
|
52
45
|
|
|
53
46
|
sig do
|
|
54
47
|
override.returns(
|
|
55
|
-
{
|
|
56
|
-
body_ids: T::Array[String],
|
|
57
|
-
type: Spotted::Me::FollowingUnfollowParams::Type::OrSymbol,
|
|
58
|
-
request_options: Spotted::RequestOptions
|
|
59
|
-
}
|
|
48
|
+
{ ids: T::Array[String], request_options: Spotted::RequestOptions }
|
|
60
49
|
)
|
|
61
50
|
end
|
|
62
51
|
def to_hash
|
|
63
52
|
end
|
|
64
|
-
|
|
65
|
-
# The ID type: either `artist` or `user`.
|
|
66
|
-
module Type
|
|
67
|
-
extend Spotted::Internal::Type::Enum
|
|
68
|
-
|
|
69
|
-
TaggedSymbol =
|
|
70
|
-
T.type_alias do
|
|
71
|
-
T.all(Symbol, Spotted::Me::FollowingUnfollowParams::Type)
|
|
72
|
-
end
|
|
73
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
74
|
-
|
|
75
|
-
ARTIST =
|
|
76
|
-
T.let(
|
|
77
|
-
:artist,
|
|
78
|
-
Spotted::Me::FollowingUnfollowParams::Type::TaggedSymbol
|
|
79
|
-
)
|
|
80
|
-
USER =
|
|
81
|
-
T.let(
|
|
82
|
-
:user,
|
|
83
|
-
Spotted::Me::FollowingUnfollowParams::Type::TaggedSymbol
|
|
84
|
-
)
|
|
85
|
-
|
|
86
|
-
sig do
|
|
87
|
-
override.returns(
|
|
88
|
-
T::Array[Spotted::Me::FollowingUnfollowParams::Type::TaggedSymbol]
|
|
89
|
-
)
|
|
90
|
-
end
|
|
91
|
-
def self.values
|
|
92
|
-
end
|
|
93
|
-
end
|
|
94
53
|
end
|
|
95
54
|
end
|
|
96
55
|
end
|
|
@@ -18,30 +18,14 @@ module Spotted
|
|
|
18
18
|
# parameter is present in the query string, any IDs listed here in the body will
|
|
19
19
|
# be ignored._
|
|
20
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
21
|
-
attr_reader :
|
|
21
|
+
attr_reader :ids
|
|
22
22
|
|
|
23
|
-
sig { params(
|
|
24
|
-
attr_writer :
|
|
25
|
-
|
|
26
|
-
# An
|
|
27
|
-
# [ISO 3166-1 alpha-2 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
|
|
28
|
-
# If a country code is specified, only content that is available in that market
|
|
29
|
-
# will be returned.<br/> If a valid user access token is specified in the request
|
|
30
|
-
# header, the country associated with the user account will take priority over
|
|
31
|
-
# this parameter.<br/> _**Note**: If neither market or user country are provided,
|
|
32
|
-
# the content is considered unavailable for the client._<br/> Users can view the
|
|
33
|
-
# country that is associated with their account in the
|
|
34
|
-
# [account settings](https://www.spotify.com/account/overview/).
|
|
35
|
-
sig { returns(T.nilable(String)) }
|
|
36
|
-
attr_reader :market
|
|
37
|
-
|
|
38
|
-
sig { params(market: String).void }
|
|
39
|
-
attr_writer :market
|
|
23
|
+
sig { params(ids: T::Array[String]).void }
|
|
24
|
+
attr_writer :ids
|
|
40
25
|
|
|
41
26
|
sig do
|
|
42
27
|
params(
|
|
43
|
-
|
|
44
|
-
market: String,
|
|
28
|
+
ids: T::Array[String],
|
|
45
29
|
request_options: Spotted::RequestOptions::OrHash
|
|
46
30
|
).returns(T.attached_class)
|
|
47
31
|
end
|
|
@@ -51,28 +35,14 @@ module Spotted
|
|
|
51
35
|
# A maximum of 50 items can be specified in one request. _Note: if the `ids`
|
|
52
36
|
# parameter is present in the query string, any IDs listed here in the body will
|
|
53
37
|
# be ignored._
|
|
54
|
-
|
|
55
|
-
# An
|
|
56
|
-
# [ISO 3166-1 alpha-2 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
|
|
57
|
-
# If a country code is specified, only content that is available in that market
|
|
58
|
-
# will be returned.<br/> If a valid user access token is specified in the request
|
|
59
|
-
# header, the country associated with the user account will take priority over
|
|
60
|
-
# this parameter.<br/> _**Note**: If neither market or user country are provided,
|
|
61
|
-
# the content is considered unavailable for the client._<br/> Users can view the
|
|
62
|
-
# country that is associated with their account in the
|
|
63
|
-
# [account settings](https://www.spotify.com/account/overview/).
|
|
64
|
-
market: nil,
|
|
38
|
+
ids: nil,
|
|
65
39
|
request_options: {}
|
|
66
40
|
)
|
|
67
41
|
end
|
|
68
42
|
|
|
69
43
|
sig do
|
|
70
44
|
override.returns(
|
|
71
|
-
{
|
|
72
|
-
body_ids: T::Array[String],
|
|
73
|
-
market: String,
|
|
74
|
-
request_options: Spotted::RequestOptions
|
|
75
|
-
}
|
|
45
|
+
{ ids: T::Array[String], request_options: Spotted::RequestOptions }
|
|
76
46
|
)
|
|
77
47
|
end
|
|
78
48
|
def to_hash
|
|
@@ -18,14 +18,14 @@ module Spotted
|
|
|
18
18
|
# parameter is present in the query string, any IDs listed here in the body will
|
|
19
19
|
# be ignored._
|
|
20
20
|
sig { returns(T.nilable(T::Array[String])) }
|
|
21
|
-
attr_reader :
|
|
21
|
+
attr_reader :ids
|
|
22
22
|
|
|
23
|
-
sig { params(
|
|
24
|
-
attr_writer :
|
|
23
|
+
sig { params(ids: T::Array[String]).void }
|
|
24
|
+
attr_writer :ids
|
|
25
25
|
|
|
26
26
|
sig do
|
|
27
27
|
params(
|
|
28
|
-
|
|
28
|
+
ids: T::Array[String],
|
|
29
29
|
request_options: Spotted::RequestOptions::OrHash
|
|
30
30
|
).returns(T.attached_class)
|
|
31
31
|
end
|
|
@@ -35,17 +35,14 @@ module Spotted
|
|
|
35
35
|
# A maximum of 50 items can be specified in one request. _Note: if the `ids`
|
|
36
36
|
# parameter is present in the query string, any IDs listed here in the body will
|
|
37
37
|
# be ignored._
|
|
38
|
-
|
|
38
|
+
ids: nil,
|
|
39
39
|
request_options: {}
|
|
40
40
|
)
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
sig do
|
|
44
44
|
override.returns(
|
|
45
|
-
{
|
|
46
|
-
body_ids: T::Array[String],
|
|
47
|
-
request_options: Spotted::RequestOptions
|
|
48
|
-
}
|
|
45
|
+
{ ids: T::Array[String], request_options: Spotted::RequestOptions }
|
|
49
46
|
)
|
|
50
47
|
end
|
|
51
48
|
def to_hash
|