-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
api.json
executable file
·1126 lines (1126 loc) · 34.7 KB
/
api.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi": "3.0.0",
"info": {
"title": "Intellimerge API",
"description": "This allows Intellimerge users with an apikey to interact with our backend. You can find out more about Intellimerge on our [API Docs page](https://writhem.net/intellimerge/doc.php)",
"termsOfService": "https://writhem.com/terms-of-service.php",
"contact": {
"email": "[email protected]"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
},
"version": "2.3"
},
"servers": [
{
"url": "https://writhem.net/intellimerge-dev/api/",
"description": "Development Server"
},
{
"url": "https://writhem.net/intellimerge/api/",
"description": "Production Server"
}
],
"paths": {
"/getProfileSettings": {
"get": {
"tags": [
"OtherActions"
],
"description": "returns the settings of the current user.",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
}
],
"responses": {
"200": {
"description": "An array of profile settings",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/User"
}
}
}
}
}
}
}
},
"/getMasterPlaylists": {
"get": {
"tags": [
"MasterPlaylists"
],
"description": "returns a list of the MasterPlaylists that have been created within this app.",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
}
],
"responses": {
"200": {
"description": "An array of MasterPlaylists",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MasterPlaylist"
}
}
}
}
},
"204": {
"description": "No MasterPlaylists have been created yet",
"content": {
"application/json": {
"schema": {},
"example": "[]"
}
}
}
}
}
},
"/getFollowedPlaylists": {
"get": {
"tags": [
"SpotifyActions"
],
"description": "returns a list of all playlists you follow on Spotify.",
"externalDocs": {
"url": "https://developer.spotify.com/documentation/web-api/reference/playlists/get-a-list-of-current-users-playlists/"
},
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
}
],
"responses": {
"200": {
"description": "An array of Playlists",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/FollowedPlaylist"
}
}
}
}
},
"204": {
"description": "No Playlists are being followed",
"content": {
"application/json": {
"schema": {},
"example": "[]"
}
}
}
}
}
},
"/getPlaylistsLinks/{mpl}": {
"get": {
"tags": [
"PlaylistLinks"
],
"description": "returns a list of all playlists you follow on Spotify.",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
},
{
"name": "mpl",
"in": "path",
"description": "The ID of the Master Playlist to search for",
"required": true,
"example": 2470
}
],
"responses": {
"200": {
"description": "An array of Playlists that are linked to a specified Master Playlist",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PlaylistLink"
}
}
}
}
},
"204": {
"description": "No Playlists are being followed",
"content": {
"application/json": {
"schema": {},
"example": "[]"
}
}
}
}
}
},
"/getPlaylistDetails/{spotifyid}": {
"get": {
"tags": [
"SpotifyActions"
],
"description": "returns the pertinant details of a specified Spotify Playlist. NOTE: Only the following fields are returned: name, id, type, owner, external_urls, collaborative, images.",
"externalDocs": {
"url": "https://developer.spotify.com/documentation/web-api/reference/playlists/get-playlist/"
},
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
},
{
"name": "spotifyid",
"in": "path",
"description": "The Spotify ID of the Playlist for which to get the details",
"required": true,
"example": "50lZXeoa91z4BO70r42Gg4"
}
],
"responses": {
"200": {
"description": "The Playlist",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FollowedPlaylist"
}
}
}
},
"404": {
"description": "No Playlist info found"
}
}
}
},
"/createMasterPlaylist": {
"post": {
"tags": [
"MasterPlaylists"
],
"description": "Creates a master playlist with the specified name",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"properties": {
"title": {
"description": "The desired inital name of the Master Playlist",
"type": "string",
"example": "My Awesome Master Playlist"
}
},
"type": "object"
}
}
}
},
"responses": {
"201": {
"description": "Successfully created the Master Playlist",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MasterPlaylist"
}
}
}
},
"304": {
"description": "Title is not unique, no changes made."
}
}
}
},
"/createNewAPIKey": {
"post": {
"tags": [
"OtherActions"
],
"description": "VIP Only: Creates a new API Key for the account, will also remove/disable all other api keys for this account.",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
}
],
"responses": {
"201": {
"description": "Successfully created the apiKey",
"content": {
"application/json": {
"schema": {
"properties": {
"new_key": {
"type": "string",
"example": "6c99cd8918f3c762a12c05de1272d13a"
}
},
"type": "object"
}
}
}
}
}
}
},
"/importMasterPlaylist": {
"post": {
"tags": [
"MasterPlaylists"
],
"description": "Imports a Spotify Playlist and uses it as a new Master Playlist",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"properties": {
"id": {
"description": "The Spotify ID of the playlist to start using as a Master Playlist",
"type": "string",
"example": "50lZXeoa91z4BO70r42Gg4"
}
},
"type": "object"
}
}
}
},
"responses": {
"201": {
"description": "Successfully imported the Master Playlist",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MasterPlaylist"
}
}
}
},
"304": {
"description": "Playlist already exists in your account."
},
"400": {
"description": "Playlist is invalid for import. Details to follow."
},
"403": {
"description": "Playlist does not belong to your Spotify account."
}
}
}
},
"/createPlaylistLink": {
"post": {
"tags": [
"PlaylistLinks"
],
"description": "Creates a link to a master playlist",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"properties": {
"mpl": {
"description": "The ID of the Master Playlist to create a link to. (The Master)",
"type": "integer",
"example": 1337
},
"spotifyid": {
"description": "The Spotify ID/SPECIAL_TYPE of the Playlist/Collection that will be linked. (The Slave)",
"type": "string",
"example": "50lZXeoa91z4BO70r42Gg4"
},
"mode": {
"description": "Whether we include or exclude the linked playlist. 0: exclude, 1: include (defualt)",
"type": "integer",
"example": 1
}
},
"type": "object"
}
}
}
},
"responses": {
"204": {
"description": "Successfully created the link"
},
"304": {
"$ref": "#/components/responses/304"
},
"404": {
"$ref": "#/components/responses/404"
}
}
}
},
"/queueRefresh": {
"put": {
"tags": [
"OtherActions"
],
"description": "Clears the last scan date of your Master Playlists to force an update at next scan. VIP Only.",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
}
],
"responses": {
"204": {
"description": "Successfully queued for update"
},
"304": {
"description": "Was already queued. No changes made."
}
}
}
},
"/setMasterPlaylistSettings/{mpl}": {
"put": {
"tags": [
"MasterPlaylists"
],
"description": "Update the settings for a single MasterPlaylist.",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
},
{
"name": "mpl",
"in": "path",
"description": "The id of the Master Playlist to delete",
"required": true,
"example": 1337
}
],
"requestBody": {
"required": false,
"content": {
"application/json": {
"schema": {
"properties": {
"title": {
"description": "An updated title for the Playlist on this system only. Will not be changed on Spotify.",
"type": "string",
"example": "My Awesome Master Playlist"
},
"enabled": {
"description": "Whether to enable or disable the update of the Master Playlist. Note: Disable is a VIP Only feature.",
"type": "tinyint",
"enum": [
"Disabled",
"Enabled"
],
"example": 0
},
"coverart": {
"description": "If the system should update the cover art of the master playlist when it updates the contents of it.",
"type": "tinyint",
"enum": [
"Disabled",
"Enabled"
],
"example": 0
},
"remove_old": {
"description": "If the system should Remove old songs no longer found on the linked playlists marked as include. NOTE: This will cause an ever-growing playlist that will no longer be incrimented once it hits the maximum playlist length.",
"type": "tinyint",
"enum": [
"Disabled",
"Enabled"
],
"example": 1
}
},
"type": "object"
}
}
}
},
"responses": {
"204": {
"description": "Successfully updated settings"
},
"304": {
"description": "Was already changed. No changes made."
},
"402": {
"description": "VIP Only feature attempted but account is Basic."
},
"403": {
"description": "Change would result in non-unique elements in your account or would exceed quota of account."
},
"404": {
"description": "Could not find that Master Playlist ID on your account."
}
}
}
},
"/setProfileSettings": {
"put": {
"tags": [
"OtherActions"
],
"description": "Update the system wide settings.",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
}
],
"requestBody": {
"required": false,
"content": {
"application/json": {
"schema": {
"properties": {
"help_enabled": {
"description": "Whether to enable or disable Tooltips and Extended Labels",
"type": "tinyint",
"enum": [
"Disabled",
"Enabled"
],
"example": 1
},
"toast_enabled": {
"description": "Whether to enable or disable Toast messages",
"type": "tinyint",
"enum": [
"Disabled",
"Enabled"
],
"example": 1
},
"purge": {
"description": "if 1 is passed, then it will close your account. All settings and playlist information with your account will be removed at next midnight UTC. This will not affect anything on your Spotify Account. No other settings will be set if this setting is set.",
"type": "tinyint",
"enum": [
"do-not-purge",
"purge"
],
"example": 0
}
},
"type": "object"
}
}
}
},
"responses": {
"204": {
"description": "Successfully updated settings"
},
"304": {
"description": "Was already changed. No changes made."
}
}
}
},
"/followPlaylist/{spotifyid}": {
"put": {
"tags": [
"SpotifyActions"
],
"description": "Follows a playlist on Spotify.",
"externalDocs": {
"url": "https://developer.spotify.com/documentation/web-api/reference/follow/follow-playlist/"
},
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
},
{
"name": "spotifyid",
"in": "path",
"description": "The Spotify ID of the Playlist to follow",
"required": true,
"example": "50lZXeoa91z4BO70r42Gg4"
}
],
"responses": {
"204": {
"description": "Successfully followed the playlist."
},
"404": {
"description": "That Playlist ID is invalid to follow."
}
}
},
"delete": {
"tags": [
"SpotifyActions"
],
"description": "UnFollows a playlist on Spotify.",
"externalDocs": {
"url": "https://developer.spotify.com/documentation/web-api/reference/follow/unfollow-playlist/"
},
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
},
{
"name": "spotifyid",
"in": "path",
"description": "The Spotify ID of the Playlist to unfollow",
"required": true,
"example": "50lZXeoa91z4BO70r42Gg4"
}
],
"responses": {
"204": {
"description": "Successfully unfollowed the playlist."
},
"404": {
"description": "That Playlist ID is invalid to follow."
}
}
}
},
"/linkMasterPlaylist/{mpl}": {
"put": {
"tags": [
"SpotifyActions",
"MasterPlaylists"
],
"description": "Will create a Playlist on Spotify if the Master Playlist is Unlinked.",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
},
{
"name": "mpl",
"in": "path",
"description": "The Master Playlist ID to Create on Spotify",
"required": true,
"example": 1337
}
],
"responses": {
"201": {
"description": "Successfully created the playlist."
},
"304": {
"description": "That Master Playlist is already linked."
},
"404": {
"description": "That Master Playlist ID is invalid."
}
}
},
"delete": {
"tags": [
"MasterPlaylists"
],
"description": "Deletes link between a master playlist and a Spotify playlist with the specified Master Playlist ID",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
},
{
"name": "mpl",
"in": "path",
"description": "The Master Playlist ID to Unlink from Spotify",
"required": true,
"example": 1337
}
],
"responses": {
"204": {
"description": "Successfully deleted the link"
},
"304": {
"description": "Is not linked to a Spotify Plylist"
},
"404": {
"description": "Provided Master Playlist ID was not found in your account."
}
}
}
},
"/deleteMasterPlaylist/{mpl}": {
"delete": {
"tags": [
"MasterPlaylists"
],
"description": "Deletes a master playlist with the specified mpl. Caution: This will also remove all webhooks and links associated with the Master Playlist as well.",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
},
{
"name": "mpl",
"in": "path",
"description": "The id of the Master Playlist to delete",
"required": true,
"example": 1337
}
],
"responses": {
"204": {
"description": "Successfully deleted the Master Playlist"
},
"404": {
"description": "Provided Playlist id does not exist in your account."
}
}
}
},
"/deletePlaylistLink": {
"delete": {
"tags": [
"PlaylistLinks"
],
"description": "Deletes link between a master playlist with the specified mpl and a Spotify playlist with the specified spotify_id",
"parameters": [
{
"$ref": "#/components/parameters/apiKey"
},
{
"name": "mpl",
"in": "query",
"description": "The id of the Master Playlist",
"required": true,
"example": 1337
},
{
"name": "spotifyid",
"in": "query",
"description": "The Spotify ID of the Linked Playlist",
"required": true,
"example": "50lZXeoa91z4BO70r42Gg4"
}
],
"responses": {
"204": {
"description": "Successfully deleted the link"
},
"404": {
"description": "Provided Playlist id + Spotify ID is not linked in your account."
}
}
}
}
},
"components": {
"schemas": {
"FollowedPlaylist": {
"description": "A Playlist that you follow on Spotify as returned directly from Spotify. For more information please see their documentation: https://developer.spotify.com/documentation/web-api/reference/playlists/get-a-list-of-current-users-playlists/",
"type": "object",
"externalDocs": {
"url": "https://developer.spotify.com/documentation/web-api/reference/playlists/get-a-list-of-current-users-playlists/"
},
"example": "{'collaborative':false,'description':'Low Distraction but High Energy. Regularly Updated and Regular Rotation. | #log:14-Apr-20: +1026 -1026;','external_urls':{'spotify':'https:\\/\\/open.spotify.com\\/playlist\\/50lZXeoa91z4BO70r42Gg4'},'href':'https:\\/\\/api.spotify.com\\/v1\\/playlists\\/50lZXeoa91z4BO70r42Gg4','id':'50lZXeoa91z4BO70r42Gg4','images':[{'height':null,'url':'https:\\/\\/i.scdn.co\\/image\\/ab67706c0000da84b0f66f13615222bff6b31471','width':null}],'name':'WritheM Radio','owner':{'display_name':'WritheM','external_urls':{'spotify':'https:\\/\\/open.spotify.com\\/user\\/gl2o829k023l9p1yjywglio61'},'href':'https:\\/\\/api.spotify.com\\/v1\\/users\\/gl2o829k023l9p1yjywglio61','id':'gl2o829k023l9p1yjywglio61','type':'user','uri':'spotify:user:gl2o829k023l9p1yjywglio61'},'primary_color':null,'public':false,'snapshot_id':'MjUxNCxmZmEyN2QyZTVhYzIzYzA3MjUxNGVkODA0ZDQwMmI0ZDE1OWQ5YzU0','tracks':{'href':'https:\\/\\/api.spotify.com\\/v1\\/playlists\\/50lZXeoa91z4BO70r42Gg4\\/tracks','total':2719},'type':'playlist','uri':'spotify:playlist:50lZXeoa91z4BO70r42Gg4'}"
},
"APIError": {
"properties": {
"code": {
"type": "integer",
"format": "int32",
"example": 400
},
"title": {
"title": "Path not recognized",
"type": "string"
},
"details": {
"type": "string",
"example": "The requested function was unrecognized or malformed. Please refer to the API Documentation at /intellimerge/doc.php"
}
},
"type": "object"
},
"MasterPlaylist": {
"description": "A Master Playlist",
"properties": {
"id": {
"type": "integer",
"example": 989
},
"enabled": {
"type": "boolean",
"example": true
},
"spotify_id": {
"description": "if linked to a spotify playlist this will be the spotify assigned id. null if not linked yet.",
"type": "?string",
"example": "50lZXeoa91z4BO70r42Gg4"
},
"username": {
"type": "string",
"example": "gl2o829k023l9p1yjywglio61"
},
"title": {
"description": "The name given to the MasterPlaylist when originally creating it. Does not include any changes that are made on Spotify. We do not keep this updated. It's just for reference.",
"type": "string",
"example": "WritheM Radio"
},
"options": {
"properties": {
"coverart": {
"description": "Should we update the graphic on Spotify when we update the contents of the Master Playlist?",
"type": "boolean",
"example": false
},
"remove_old": {
"description": "Should we remove songs from the Master Playlist that are no longer found in the linked playlists?",
"type": "boolean",
"example": true
}
},
"type": "object"
},
"history": {
"description": "An array of history items. max 21 items will be loaded. 0 indexed. 0 will always be last updated.",
"type": "array",
"items": {
"title": "MasterPlaylistHistory",
"properties": {
"id": {
"description": "base62 id of history item. 0 will always be first and contain the last_update of the last time the Updater scanned this playlist for changes.",
"type": "string",
"example": "DXC1"
},
"date": {
"description": "timestamp of the history item",
"type": "integer",
"example": 1588014291
},
"who": {
"description": "who made the change.",
"type": "string",
"example": "System"
},
"entry": {
"description": "what was changed about the master playlist.",
"type": "string",
"example": "Enabled the Master Playlist"
}
},
"type": "object"
}
},
"webhooks": {
"type": "array",
"items": {
"title": "MasterPlaylistWebhook",
"properties": {
"id": {
"type": "integer",
"example": 31
},
"url": {
"type": "string",
"example": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
}
},
"type": "object"
}
},
"links": {
"description": "An array of PlaylistLinks.",
"type": "array",
"items": {
"$ref": "#/components/schemas/PlaylistLink"
}
},
"errors": {
"type": "integer",
"example": 0
}
},
"type": "object"
},
"PlaylistLink": {
"description": "A Playlist that you follow on Spotify as returned directly from Spotify. For more information please see their documentation: https://developer.spotify.com/documentation/web-api/reference/playlists/get-a-list-of-current-users-playlists/",
"properties": {
"id": {
"type": "?string",
"example": "50lZXeoa91z4BO70r42Gg4"
},
"mode": {
"enum": [
"exclude",
"include"
],
"example": 1
}
},
"type": "object"
},
"Session": {
"properties": {
"accessToken": {
"type": "string"
},
"refreshToken": {
"type": "string"
},
"redirectUri": {
"type": "string"
},
"refreshDate": {
"type": "DateTime"
}
},
"type": "object"
},
"User": {
"properties": {
"spotifyUser": {
"$ref": "#/components/schemas/SpotifyWebAPIUser"
},
"session": {
"$ref": "#/components/schemas/Session"
},
"lastAttempt": {
"type": "DateTime"
},
"apiKey": {
"type": "string"
},
"apiRevoked": {
"type": "bool"
},
"level": {
"$ref": "#/components/schemas/UserLevel"
},
"help": {
"type": "bool"
},
"toast": {
"type": "bool"
}
},
"type": "object"
},
"SpotifyWebAPIUser": {
"properties": {
"id": {
"type": "string"
},
"display_name": {
"type": "string"
},
"external_urls": {
"properties": {
"spotify": {
"type": "string"
}
},
"type": "object"
},
"followers": {
"properties": {
"href": {
"type": "string"
},
"total": {
"type": "int"
}
},
"type": "object"
},
"href": {
"type": "string"
},
"images": {
"type": "array",
"items": {
"title": "SpotifyWebAPIImage",
"properties": {
"height": {
"type": "integer",
"example": 320
},
"url": {
"type": "string",
"example": ""
},
"width": {
"type": "integer",
"example": 320
}
},
"type": "object"
}
},
"type": {
"type": "string"
},
"uri": {
"type": "string"
}
},
"type": "object"
},
"UserLevel": {
"properties": {
"level": {
"type": "integer",
"enum": [
"Basic",
"VIP",
"Friend"
]
}