hive-router 0.2.8

GraphQL router for Federation, part of the Hive platform
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
schema
  @link(url: "https://specs.apollo.dev/link/v1.0")
  @link(url: "https://specs.apollo.dev/join/v0.3", for: EXECUTION)
  @link(url: "https://specs.apollo.dev/tag/v0.3") {
  query: Query
  mutation: Mutation
  subscription: Subscription
}

directive @join__enumValue(graph: join__Graph!) repeatable on ENUM_VALUE

directive @join__field(
  graph: join__Graph
  requires: join__FieldSet
  provides: join__FieldSet
  type: String
  external: Boolean
  override: String
  usedOverridden: Boolean
) repeatable on FIELD_DEFINITION | INPUT_FIELD_DEFINITION

directive @join__graph(name: String!, url: String!) on ENUM_VALUE

directive @join__implements(
  graph: join__Graph!
  interface: String!
) repeatable on OBJECT | INTERFACE

directive @join__type(
  graph: join__Graph!
  key: join__FieldSet
  extension: Boolean! = false
  resolvable: Boolean! = true
  isInterfaceObject: Boolean! = false
) repeatable on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT | SCALAR

directive @join__unionMember(
  graph: join__Graph!
  member: String!
) repeatable on UNION

directive @link(
  url: String
  as: String
  for: link__Purpose
  import: [link__Import]
) repeatable on SCHEMA

directive @synthetics(
  """
  The synthetic timeout configured for the field.
  """
  timeout: Int

  """
  The synthetic error rate configured for the field.
  """
  errorRate: ErrorRate

  """
  Enable or disable synthetics for the field.
  """
  enabled: Boolean = true
) on FIELD

directive @tag(
  name: String!
) repeatable on FIELD_DEFINITION | OBJECT | INTERFACE | UNION | ARGUMENT_DEFINITION | SCALAR | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION | SCHEMA

enum Action @join__type(graph: PLAYBACK) @join__type(graph: SPOTIFY) {
  INTERRUPTING_PLAYBACK
    @join__enumValue(graph: PLAYBACK)
    @join__enumValue(graph: SPOTIFY)
  PAUSING @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  RESUMING @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  SEEKING @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  SKIPPING_NEXT
    @join__enumValue(graph: PLAYBACK)
    @join__enumValue(graph: SPOTIFY)
  SKIPPING_PREV
    @join__enumValue(graph: PLAYBACK)
    @join__enumValue(graph: SPOTIFY)
  TOGGLING_REPEAT_CONTEXT
    @join__enumValue(graph: PLAYBACK)
    @join__enumValue(graph: SPOTIFY)
  TOGGLING_SHUFFLE
    @join__enumValue(graph: PLAYBACK)
    @join__enumValue(graph: SPOTIFY)
  TOGGLING_REPEAT_TRACK
    @join__enumValue(graph: PLAYBACK)
    @join__enumValue(graph: SPOTIFY)
  TRANSFERRING_PLAYBACK
    @join__enumValue(graph: PLAYBACK)
    @join__enumValue(graph: SPOTIFY)
}

type Actions @join__type(graph: PLAYBACK) @join__type(graph: SPOTIFY) {
  disallows: [Action!]!
}

input AddItemsToPlaylistInput @join__type(graph: SPOTIFY) {
  """
  The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  of the playlist.
  """
  playlistId: ID!

  """
  A comma-separated list of [Spotify URIs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  to add, can be track or episode URIs. A maximum of 100 items can be added in
  one request.
  """
  uris: [String!]!

  """
  The position to insert the items, a zero-based index. For example, to insert
  the items in the first position: **position=0**; to insert the items in the
  third position: **position=2**. If omitted, the items will be appended to the
  playlist. Items are added in the order they are listed in the query string or
  request body.
  """
  position: Int
}

type AddItemsToPlaylistPayload @join__type(graph: SPOTIFY) {
  """
  The playlist that contains the newly added items
  """
  playlist: Playlist
}

input AddItemToPlaybackQueueInput @join__type(graph: SPOTIFY) {
  """
  The uri of the item to add to the queue. Must be a track or an episode uri.
  """
  uri: String!

  """
  The id of the device this command is targeting. If not supplied, the user's
  currently active device is the target.
  """
  deviceId: ID
}

type AddItemToPlaybackQueuePayload @join__type(graph: SPOTIFY) {
  playbackQueue: PlaybackQueue
}

"""
Spotify catalog information for an album.
"""
type Album @join__type(graph: SPOTIFY, key: "id") {
  """
  The type of the album.
  """
  albumType: AlbumType!

  """
  The artists of the album.
  """
  artists: [Artist!]!

  """
  The copyrights for the album.
  """
  copyrights: [Copyright!]!

  """
  Known external URLs for this album.
  """
  externalUrls: ExternalUrl!

  """
  Genres for the album.
  """
  genres: [String!]!

  """
  A link to the Web API endpoint providing full details of the album.
  """
  href: String!

  """
  The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the album.
  """
  id: ID!

  """
  The cover art for the album in various sizes, widest first.
  """
  images: [Image!]!

  """
  The label the album was released under.
  """
  label: String

  """
  The name of the album. In case of an album takedown, the value may be an empty
  string.
  """
  name: String!

  """
  The date the album was first released.
  """
  releaseDate: ReleaseDate!

  """
  The number of tracks in the album.
  """
  totalTracks: Int!

  """
  The tracks of the album.
  """
  tracks(
    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first playlist to return. Default: 0 (the first object).

    Use with `limit` to get the next set of tracks.
    """
    offset: Int
  ): AlbumTrackConnection

  """
  The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the album.
  """
  uri: String!
}

enum AlbumGroup @join__type(graph: SPOTIFY) {
  ALBUM @join__enumValue(graph: SPOTIFY)
  SINGLE @join__enumValue(graph: SPOTIFY)
  APPEARS_ON @join__enumValue(graph: SPOTIFY)
  COMPILATION @join__enumValue(graph: SPOTIFY)
}

type AlbumTrackConnection @join__type(graph: SPOTIFY) {
  """
  The set of tracks.
  """
  edges: [AlbumTrackEdge!]!

  """
  Pagination information for the set of tracks.
  """
  pageInfo: PageInfo!
}

type AlbumTrackEdge @join__type(graph: SPOTIFY) {
  """
  The track on the album
  """
  node: Track!
}

enum AlbumType @join__type(graph: SPOTIFY) {
  ALBUM @join__enumValue(graph: SPOTIFY)
  SINGLE @join__enumValue(graph: SPOTIFY)
  COMPILATION @join__enumValue(graph: SPOTIFY)
}

"""
Spotify catalog information for an artist.
"""
type Artist @join__type(graph: SPOTIFY, key: "id") {
  """
  Spotify catalog information about an artist's albums.
  """
  albums(
    """
    Used to filter the response. If not supplied, all album types will be
    returned.
    """
    includeGroups: [AlbumGroup!]

    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first item to return. Default: 0 (the first item). Use
    with `limit` to get the next set of items.
    """
    offset: Int
  ): ArtistAlbumsConnection

  """
  Known external URLs for this artist.
  """
  externalUrls: ExternalUrl!

  """
  Information about the followers of the artist.
  """
  followers: Followers!

  """
  A list of the genres the artist is associated with. If not yet classified, the
  array is empty.
  """
  genres: [String!]!

  """
  A link to the Web API endpoint providing full details of the artist.
  """
  href: String!

  """
  The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the artist.
  """
  id: ID!

  """
  Images of the artist in various sizes, widest first.
  """
  images: [Image!]!

  """
  The name of the artist.
  """
  name: String!

  """
  The popularity of the artist. The value will be between 0 and 100, with 100
  being the most popular. The artist's popularity is calculated from the
  popularity of all the artist's tracks.
  """
  popularity: Int!

  """
  Spotify catalog information about artists similar to a given artist.
  Similarity is based on analysis of the Spotify community's
  [listening history](http://news.spotify.com/se/2010/02/03/related-artists/).
  """
  relatedArtists: [Artist!]!
    @deprecated(reason: "This endpoint no longer exists in the Spotify API")

  """
  Spotify catalog information about an artist's top tracks.
  """
  topTracks: [Track!]!

  """
  The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the artist.
  """
  uri: String!
}

type ArtistAlbumEdge @join__type(graph: SPOTIFY) {
  """
  Spotify catalog information for the album.
  """
  node: Album!
}

type ArtistAlbumsConnection @join__type(graph: SPOTIFY) {
  """
  A list of albums that belong to the artist.
  """
  edges: [ArtistAlbumEdge!]

  """
  "Pagination information for the set of albums"
  """
  pageInfo: PageInfo!
}

type Contains @join__type(graph: SPOTIFY) {
  """
  List of booleans in order of albums requested. `true` means the album is in
  the Spotify user's library. This field is `null` if omitted in the request.
  """
  albums: [Boolean!]

  """
  List of booleans in order of episodes requested. `true` means the episode is in
  the Spotify user's library. This field is `null` if omitted in the request.
  """
  episodes: [Boolean!]

  """
  List of booleans in order of shows requested. `true` means the show is in
  the Spotify user's library. This field is `null` if omitted in the request.
  """
  shows: [Boolean!]

  """
  List of booleans in order of tracks requested. `true` means the track is in
  the Spotify user's library. This field is `null` if omitted in the request.
  """
  tracks: [Boolean!]
}

type Copyright @join__type(graph: SPOTIFY) {
  """
  The copyright text for this content.
  """
  text: String!

  """
  The type of copyright: `C` = the copyright, `P` = the sound recording
  (performance) copyright.
  """
  type: CopyrightType
}

enum CopyrightType @join__type(graph: SPOTIFY) {
  """
  The copyright
  """
  C @join__enumValue(graph: SPOTIFY)

  """
  The sound recording (performance) copyright.
  """
  P @join__enumValue(graph: SPOTIFY)
}

scalar CountryCode @join__type(graph: SPOTIFY)

type CurrentlyPlaying @join__type(graph: SPOTIFY) {
  """
  Allows to update the user interface based on which playback actions are
  available within the current context.
  """
  actions: Actions!

  """
  A context object.
  """
  context: PlaybackContext

  """
  If something is currently playing, return `true`.
  """
  isPlaying: Boolean!

  """
  The currently playing track or episode
  """
  item: PlaybackItem

  """
  Progress into the currently playing track or episode. Can be `null`
  """
  progressMs: Int

  """
  Unix Millisecond Timestamp when data was fetched.
  """
  timestamp: Timestamp!
}

type CurrentUser @join__type(graph: SPOTIFY) {
  """
  Get a list of the albums saved in the current Spotify user's 'Your Music'
  library.
  """
  albums(
    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first item to return. Default: 0 (the first item). Use with
    limit to get the next set of items.
    """
    offset: Int
  ): SavedAlbumsConnection

  """
  Check if one or more albums is already saved in the current Spotify user's
  'Your Music' library.
  """
  albumsContains(
    """
    A comma-separated list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
    for the albums. Maximum: 20 IDs.
    """
    ids: [ID!]!
  ): [Boolean!]
  episodes(
    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first item to return. Default: 0 (the first item). Use with `limit` to get the next set of items.
    """
    offset: Int
  ): SavedEpisodesConnection

  """
  Check if one or more episodes is already saved in the current Spotify user's
  'Your Episodes' library.
  """
  episodesContains(
    """
    A comma-separated list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
    for the episodes. Maximum: 50 IDs.
    """
    ids: [ID!]!
  ): [Boolean!]

  """
  Get the current user's followed artists.
  """
  followedArtists(
    """
    The last artist ID retrieved from the previous request.
    """
    after: String

    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int
  ): FollowedArtistsConnection

  """
  Detailed profile information about the current user.
  """
  user: User!
    @deprecated(
      reason: "Use the profile field instead which provides richer current user information."
    )

  """
  Information about the user's current playback state
  """
  player: Player!

  """
  Playlists owned or followed by the current Spotify user.
  """
  playlists(
    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first playlist to return. Default: 0 (the first object).

    Use with `limit` to get the next set of playlists.
    """
    offset: Int
  ): PlaylistConnection

  """
  Get detailed profile information about the current user (including the current user's username).
  """
  profile: CurrentUserProfile!

  """
  Get a list of the albums saved in the current Spotify user's 'Your Music' library.
  """
  shows(
    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first item to return. Default: 0 (the first item). Use with `limit` to get the next set of items.
    """
    offset: Int
  ): SavedShowsConnection

  """
  Check if one or more shows is already saved in the current Spotify user's
  library.
  """
  showsContains(
    """
    A comma-separated list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
    for the shows. Maximum: 50 IDs.
    """
    ids: [ID!]!
  ): [Boolean!]

  """
  Get the current user's top artists based on calculated affinity.
  """
  topArtists(
    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first item to return. Default: 0 (the first item). Use with limit to get the next set of items.
    """
    offset: Int

    """
    Over what time frame the affinities are computed. Valid values: `LONG_TERM` (calculated from several years of data and including all new data as it becomes available), `MEDIUM_TERM` (approximately last 6 months), `SHORT_TERM` (approximately last 4 weeks). Default: `MEDIUM_TERM`
    """
    timeRange: TimeRange
  ): TopArtistsConnection

  """
  Get the current user's top tracks based on calculated affinity.
  """
  topTracks(
    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first item to return. Default: 0 (the first item). Use with limit to get the next set of items.
    """
    offset: Int

    """
    Over what time frame the affinities are computed. Valid values: `LONG_TERM` (calculated from several years of data and including all new data as it becomes available), `MEDIUM_TERM` (approximately last 6 months), `SHORT_TERM` (approximately last 4 weeks). Default: `MEDIUM_TERM`
    """
    timeRange: TimeRange
  ): TopTracksConnection
  tracks(
    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first track to return. Default: 0 (the first object).

    Use with `limit` to get the next set of tracks.
    """
    offset: Int
  ): SavedTracksConnection

  """
  Check if one or more tracks is already saved in the current Spotify user's
  'Your Music' library.
  """
  tracksContains(
    """
    A comma-separated list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
    for the tracks. Maximum: 50 IDs.
    """
    ids: [ID!]!
  ): [Boolean!]
}

type CurrentUserProfile implements UserProfile
  @join__implements(graph: SPOTIFY, interface: "UserProfile")
  @join__type(graph: SPOTIFY, key: "id") {
  """
  The country of the user, as set in the user's account profile. An ISO 3166-1
  alpha-2 country code.
  """
  country: CountryCode

  """
  The name displayed on the user's profile. `null` if not available.
  """
  displayName: String

  """
  The user's email address, as entered by the user when creating their account.
  _**Important!** This email address is unverified; there is no proof that it
  actually belongs to the user._
  """
  email: String!

  """
  The user's explicit content settings.
  """
  explicitContent: ExplicitContentSettings!

  """
  Information about the followers of the user.
  """
  followers: Followers!

  """
  A link to the Web API endpoint for this user.
  """
  href: String!

  """
  The [Spotify user ID](https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids)
  for the user.
  """
  id: ID!

  """
  The user's profile image.
  """
  images: [Image!]

  """
  The user's Spotify subscription level: "premium", "free", etc. (The
  subscription level "open" can be considered the same as "free".)
  """
  product: String!

  """
  The [Spotify URI](https://developer.spotify.com/documentation/web-api/concepts/spotify-uris-ids)
  for the user.
  """
  uri: String!
}

type Cursors @join__type(graph: SPOTIFY) {
  """
  The cursor to use as key to find the next page of items.
  """
  after: String

  """
  The ursor to use as key to find the previous page of items.
  """
  before: String
}

scalar DateTime @join__type(graph: SPOTIFY)

type Developer @join__type(graph: SPOTIFY) {
  """
  A list of configured GraphQL fields. Only fields that have non-zero timeouts
  and error rates will be listed.
  """
  fieldConfigs: [FieldConfig!]!
}

type Device @join__type(graph: PLAYBACK) @join__type(graph: SPOTIFY) {
  """
  The device ID
  """
  id: ID

  """
  If this device is the currently active device.
  """
  isActive: Boolean!

  """
  If this device is currently in a private session.
  """
  isPrivateSession: Boolean!

  """
  Whether controlling this device is restricted. At present if this is "true",
  then no Web API commands will be accepted by this device.
  """
  isRestricted: Boolean!

  """
  A human-readable name for the device. Some devices have a name that the user
  can configure (e.g. "Loudest speaker") and some devices have a generic name
  associated with the manufacturer or device model.
  """
  name: String!

  """
  Device type, such as "computer", "smartphone" or "speaker".
  """
  type: String!

  """
  The current volume in percent.

  >= 0    <= 100
  """
  volumePercent: Int!
}

"""
Spotify catalog information for an episode.
"""
type Episode implements PlaylistTrack & PlaybackItem
  @join__implements(graph: SPOTIFY, interface: "PlaylistTrack")
  @join__implements(graph: SPOTIFY, interface: "PlaybackItem")
  @join__type(graph: SPOTIFY, key: "id") {
  """
  The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for the episode.
  """
  id: ID!

  """
  A URL to a 30 second preview (MP3 format) of the episode. `null` if not available.
  """
  audioPreviewUrl: String

  """
  A description of the episode
  """
  description(format: TextFormat = PLAIN): String!

  """
  The episode length in milliseconds.
  """
  durationMs: Int!

  """
  Whether or not the episode has explicit content (`true` = yes it does;
  `false` = no it does not OR unknown).
  """
  explicit: Boolean!

  """
  External URLs for this episode.
  """
  externalUrls: ExternalUrl!

  """
  A link to the Web API endpoint providing full details of the episode.
  """
  href: String!

  """
  The cover art for the episode in various sizes, widest first.
  """
  images: [Image!]!

  """
  `true` if the episode is hosted outside of Spotify's CDN.
  """
  isExternallyHosted: Boolean!

  """
  `true` if the episode is playable in the given market. Otherwise `false`.
  """
  isPlayable: Boolean!

  """
  A list of the languages used in the episode, identified by their
  [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639) code.
  """
  languages: [String!]!

  """
  The name of the episode.
  """
  name: String!

  """
  The date the episode was first released
  """
  releaseDate: ReleaseDate!

  """
  The user's most recent position in the episode.
  """
  resumePoint: ResumePoint!

  """
  The show containing the episode.
  """
  show: Show!

  """
  The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the episode.
  """
  uri: String!
}

scalar ErrorRate @join__type(graph: PLAYBACK) @join__type(graph: SPOTIFY)

type ExplicitContentSettings @join__type(graph: SPOTIFY) {
  """
  When `true`, indicates that explicit content should not be played.
  """
  filterEnabled: Boolean!

  """
  When `true`, indicates that the explicit content setting is locked and can't
  be changed by the user.
  """
  filterLocked: Boolean!
}

type ExternalUrl @join__type(graph: PLAYBACK) @join__type(graph: SPOTIFY) {
  """
  The [Spotify URL](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the object.
  """
  spotify: String
}

type FeaturedPlaylistConnection @join__type(graph: SPOTIFY) {
  message: String!

  """
  A list of Spotify featured playlists (shown, for example, on a Spotify player's
  'Browse' tab).
  """
  edges: [FeaturedPlaylistEdge!]!

  """
  Pagination information for the set of playlists
  """
  pageInfo: PageInfo!
}

type FeaturedPlaylistEdge @join__type(graph: SPOTIFY) {
  node: Playlist!
}

type FieldConfig @join__type(graph: SPOTIFY) {
  """
  The schema field that includes this config
  """
  schemaField: SchemaField!

  """
  The synthetic timeout configured for the field.
  """
  timeout: Int!

  """
  The synthetic error rate configured for the field.
  """
  errorRate: ErrorRate!
}

input FieldConfigInput @join__type(graph: SPOTIFY) {
  """
  The synthetic timeout configured for a field. Set to `null` to reset the value
  back to its default. Omit this field to maintain its value. Defaults to `0`.
  """
  timeout: Int

  """
  The synthetic error rate configured for a field. This should be a value
  between `0` and `1` where `0` means no synthetic errors should be thrown and
  `1` means errors should be thrown 100% of the time. Set to `null` to reset the
  value back to its default. Omit this field to maintain its value. Defaults to
  `0`.
  """
  errorRate: ErrorRate
}

input FieldInput @join__type(graph: SPOTIFY) {
  """
  Configure a field by its type in the schema. This will apply the config to all
  fields of the given type regardless of where it is queried in the scheam.

  One of `path` or `schema` is required. If both are provided, `schema` will
  take precendence as it has broader impact.
  """
  schemaField: SchemaFieldInput
}

type FollowedArtistEdge @join__type(graph: SPOTIFY) {
  """
  The followed artist
  """
  node: Artist!
}

type FollowedArtistsConnection @join__type(graph: SPOTIFY) {
  """
  The list of followed artists.
  """
  edges: [FollowedArtistEdge!]!

  """
  Pagination information for the set of followed artists.
  """
  pageInfo: PageInfoCursorBased!
}

type Followers @join__type(graph: SPOTIFY) {
  """
  The total number of followers.
  """
  total: Int!
}

type Image @join__type(graph: SPOTIFY) {
  """
  The source URL of the image.
  """
  url: String!

  """
  The image height in pixels.
  """
  height: Int

  """
  The image width in pixels.
  """
  width: Int
}

scalar join__FieldSet

enum join__Graph {
  PLAYBACK
    @join__graph(
      name: "playback"
      url: "https://showcase-playback.apollographql.com/"
    )
  SPOTIFY
    @join__graph(
      name: "spotify"
      url: "https://showcase-spotify.apollographql.com/"
    )
}

scalar link__Import

enum link__Purpose {
  """
  `SECURITY` features provide metadata necessary to securely resolve fields.
  """
  SECURITY

  """
  `EXECUTION` features provide metadata necessary for operation execution.
  """
  EXECUTION
}

type Mutation @join__type(graph: PLAYBACK) @join__type(graph: SPOTIFY) {
  """
  Start a new context or resume current playback on the user's active device.
  """
  resumePlayback(input: ResumePlaybackInput): ResumePlaybackPayload
    @join__field(graph: PLAYBACK)

  """
  Pause playback on the user's account.
  """
  pausePlayback(
    """
    Additional context when pausing playback. Omit to pause playback on the
    current device.
    """
    context: PausePlaybackContextInput
  ): PausePlaybackResponse @join__field(graph: PLAYBACK)

  """
  Seeks to the given position in the user’s currently playing track.
  """
  seekToPosition(
    """
    The position in milliseconds to seek to. Must be a positive number. Passing
    in a position that is greater than the length of the track will cause the
    player to start playing the next song.
    """
    positionMs: Int!

    """
    Additional context to determine the device where the action should occur.
    """
    context: SeekToPositionContextInput
  ): SeekToPositionResponse @join__field(graph: PLAYBACK)

  """
  Set the repeat mode for the user's playback.
  """
  setRepeatMode(
    """
    `track`, `context` or `off`.
    `track` will repeat the current track.
    `context` will repeat the current context.
    `off` will turn repeat off.
    """
    state: RepeatMode!

    """
    Additional context to determine the device where the action should occur.
    """
    context: SetRepeatModeContextInput
  ): SetRepeatModeResponse @join__field(graph: PLAYBACK)

  """
  Set the volume for the user’s current playback device.
  """
  setVolume(
    """
    The volume to set. Must be a value from 0 to 100 inclusive.
    """
    volumePercent: Int!

    """
    Additional context to determine the device where the action should occur.
    """
    context: SetVolumeContextInput
  ): SetVolumeResponse @join__field(graph: PLAYBACK)

  """
  Toggle shuffle on or off for user’s playback.
  """
  shufflePlayback(
    """
    `true`: Shuffle user's playback.
    `false`: Do not shuffle user's playback.
    """
    state: Boolean!

    """
    Additional context to determine the device where the action should occur.
    """
    context: ShufflePlaybackContextInput
  ): ShufflePlaybackResponse @join__field(graph: PLAYBACK)

  """
  Skips to next track in the user’s queue.
  """
  skipToNext(
    """
    Additional context to determine the device where the action should occur.
    """
    context: SkipToNextContextInput
  ): SkipToNextResponse @join__field(graph: PLAYBACK)

  """
  Skips to previous track in the user’s queue.
  """
  skipToPrevious(context: SkipToPreviousContextInput): SkipToPreviousResponse
    @join__field(graph: PLAYBACK)

  """
  Transfer playback to a new device and determine if it should start playing.
  """
  transferPlayback(input: TransferPlaybackInput!): TransferPlaybackPayload
    @join__field(graph: PLAYBACK)

  """
  Add an item to the end of the user's current playback queue.
  """
  addItemToPlaybackQueue(
    input: AddItemToPlaybackQueueInput!
  ): AddItemToPlaybackQueuePayload @join__field(graph: SPOTIFY)

  """
  Add one or more items to a user's playlist.
  """
  addItemsToPlaylist(
    input: AddItemsToPlaylistInput!
  ): AddItemsToPlaylistPayload @join__field(graph: SPOTIFY)

  """
  Update configuration for a field in the schema. Allows tweaks to the
  synthetic timeouts and error rates associated with the field. By default, both
  the timeout and error rate are set to 0.
  """
  updateFieldConfig(input: UpdateFieldConfigInput!): UpdateFieldConfigPayload
    @join__field(graph: SPOTIFY)

  """
  Remove one or more items from a user's playlist.
  """
  removeItemFromPlaylist(
    input: RemoveItemFromPlaylistInput!
  ): RemoveItemFromPlaylistPayload @join__field(graph: SPOTIFY)

  """
  Remove one or more albums from the current user's 'Your Music' library.
  """
  removeSavedAlbums(input: RemoveSavedAlbumsInput!): RemoveSavedAlbumsPayload
    @join__field(graph: SPOTIFY)

  """
  Remove one or more episodes from the current user's library.
  """
  removeSavedEpisodes(
    input: RemoveSavedEpisodesInput!
  ): RemoveSavedEpisodesPayload @join__field(graph: SPOTIFY)

  """
  Delete one or more shows from current Spotify user's library.
  """
  removeSavedShows(input: RemoveSavedShowsInput!): RemoveSavedShowsPayload
    @join__field(graph: SPOTIFY)

  """
  Remove one or more tracks from the current user's 'Your Music' library.
  """
  removeSavedTracks(input: RemoveSavedTracksInput!): RemoveSavedTracksPayload
    @join__field(graph: SPOTIFY)

  """
  Reset a field's config back to its default values.
  """
  resetFieldConfig(input: ResetFieldConfigInput!): ResetFieldConfigPayload
    @join__field(graph: SPOTIFY)

  """
  Save one or more albums to the current user's 'Your Music' library.
  """
  saveAlbums(input: SaveAlbumsInput!): SaveAlbumsPayload
    @join__field(graph: SPOTIFY)

  """
  Save one or more episodes to the current user's library.
  """
  saveEpisodes(input: SaveEpisodesInput!): SaveEpisodesPayload
    @join__field(graph: SPOTIFY)

  """
  Save one or more shows to current Spotify user's library.
  """
  saveShows(input: SaveShowsInput!): SaveShowsPayload
    @join__field(graph: SPOTIFY)

  """
  Save one or more tracks to the current user's 'Your Music' library.
  """
  saveTracks(input: SaveTracksInput!): SaveTracksPayload
    @join__field(graph: SPOTIFY)
}

type NewReleaseEdge @join__type(graph: SPOTIFY) {
  """
  The newly released album
  """
  node: Album!
}

type NewReleasesConnection @join__type(graph: SPOTIFY) {
  """
  The list of new releases
  """
  edges: [NewReleaseEdge!]!

  """
  Pagination information for the new releases
  """
  pageInfo: PageInfo!
}

type PageInfo @join__type(graph: SPOTIFY) {
  """
  Whether there is a next page of items.
  """
  hasNextPage: Boolean!

  """
  Whether there is a previous page of items.
  """
  hasPreviousPage: Boolean!

  """
  The maximum number of items in the response (as set in the query or default)
  """
  limit: Int!

  """
  The offset of the items returned (as set in the query or default)
  """
  offset: Int!

  """
  The total number of items returned for the page.
  """
  total: Int!
}

type PageInfoCursorBased @join__type(graph: SPOTIFY) {
  """
  A link to the Web API endpoint returning the full result of the request.
  """
  href: String!

  """
  The maximum number of items in the response (as set in the query or default)
  """
  limit: Int!

  """
  URL to the next page of items. (`null` if none)
  """
  next: String

  """
  The cursors used to find the next set of items.
  """
  cursors: Cursors

  """
  The total number of items available to return.
  """
  total: Int!
}

input PausePlaybackContextInput @join__type(graph: PLAYBACK) {
  """
  The id of the device this command is targeting. If not supplied, the user's
  currently active device is the target.
  """
  deviceId: String
}

type PausePlaybackResponse @join__type(graph: PLAYBACK) {
  """
  The updated playback state
  """
  playbackState: PlaybackState
}

type PlaybackContext @join__type(graph: PLAYBACK) @join__type(graph: SPOTIFY) {
  """
  A link to the Web API endpoint providing full details of the track.
  """
  href: String!

  """
  The object type, e.g. "artist", "playlist", "album", "show".
  """
  type: PlaybackContextType!

  """
  External URLs for this context.
  """
  externalUrls: ExternalUrl!

  """
  The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the context.
  """
  uri: String!
}

enum PlaybackContextType
  @join__type(graph: PLAYBACK)
  @join__type(graph: SPOTIFY) {
  ALBUM @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  ARTIST @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  AUDIO_FEATURES
    @join__enumValue(graph: PLAYBACK)
    @join__enumValue(graph: SPOTIFY)
  COLLECTION @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  COLLECTION_YOUR_EPISODES
    @join__enumValue(graph: PLAYBACK)
    @join__enumValue(graph: SPOTIFY)
  EPISODE @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  GENRE @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  PLAYLIST @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  SHOW @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  TRACK @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  USER @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
}

interface PlaybackItem
  @join__type(graph: PLAYBACK, key: "id", isInterfaceObject: true)
  @join__type(graph: SPOTIFY, key: "id") {
  """
  The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the playback item.
  """
  id: ID!

  """
  The duration for the playback item in milliseconds.
  """
  durationMs: Int! @join__field(graph: SPOTIFY)

  """
  Known external URLs for this playback item.
  """
  externalUrls: ExternalUrl! @join__field(graph: SPOTIFY)

  """
  A link to the Web API endpoint providing full details of the playlist item.
  """
  href: String! @join__field(graph: SPOTIFY)

  """
  The name of the playlist item.
  """
  name: String! @join__field(graph: SPOTIFY)

  """
  The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the episode.
  """
  uri: String! @join__field(graph: SPOTIFY)
}

type PlaybackQueue @join__type(graph: SPOTIFY) {
  currentlyPlaying: PlaybackItem
  queue: [PlaybackItem!]!
}

type PlaybackState @join__type(graph: PLAYBACK) @join__type(graph: SPOTIFY) {
  """
  Allows to update the user interface based on which playback actions are
  available within the current context.
  """
  actions: Actions!

  """
  A context object.
  """
  context: PlaybackContext

  """
  The device that is currently active.
  """
  device: Device!

  """
  If something is currently playing, return `true`.
  """
  isPlaying: Boolean!

  """
  The currently playing track or episode
  """
  item: PlaybackItem

  """
  Progress into the currently playing track or episode. Can be `null`
  """
  progressMs: Int

  """
  off, track, context
  """
  repeatState: RepeatMode!

  """
  If shuffle is on or off.
  """
  shuffleState: Boolean!

  """
  Unix Millisecond Timestamp when data was fetched.
  """
  timestamp: Timestamp!
}

type Player @join__type(graph: SPOTIFY) {
  """
  Information about the object currently being played on the user's Spotify account.
  """
  currentlyPlaying: CurrentlyPlaying

  """
  Information about a user's available devices.
  """
  devices: [Device!]

  """
  Get the list of objects that make up the user's queue.
  """
  playbackQueue: PlaybackQueue

  """
  Information about the user's current playback state, including track or
  episode, progress, and active device.
  """
  playbackState: PlaybackState

  """
  Get tracks from the current user's recently played tracks. **Note**: Currently
  doesn't support podcast episodes.
  """
  recentlyPlayed(
    """
    A Unix timestamp in milliseconds. Returns all items after (but not
    including) this cursor position. If after is specified, before must not be
    specified.
    """
    after: Int

    """
    A Unix timestamp in milliseconds. Returns all items before (but not
    including) this cursor position. If before is specified, after must not be
    specified.
    """
    before: Int

    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int
  ): RecentlyPlayedConnection
}

"""
Information about a playlist owned by a Spotify user
"""
type Playlist @join__type(graph: SPOTIFY, key: "id") {
  """
  The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the playlist.
  """
  id: ID!

  """
  `true` if the owner allows other users to modify the playlist.
  """
  collaborative: Boolean!

  """
  The playlist description. _Only returned for modified, verified playlists,
  otherwise `null`_.
  """
  description: String

  """
  Known external URLs for this playlist.
  """
  externalUrls: ExternalUrl!

  """
  Images for the playlist. The array may be empty or contain up to three images.
  The images are returned by size in descending order.
  See [Working with Playlists](https://developer.spotify.com/documentation/general/guides/working-with-playlists/).
  **Note**: If returned, the source URL for the image (`url`) is temporary and
  will expire in less than a day.
  """
  images: [Image!]

  """
  The name of the playlist.
  """
  name: String!

  """
  The user who owns the playlist.
  """
  owner: User!

  """
  The playlist's public/private status: `true` the playlist is public, `false`
  the playlist is private, `null` the playlist status is not relevant. For more
  about public/private status, see [Working with Playlists](https://developer.spotify.com/documentation/general/guides/working-with-playlists/)
  """
  public: Boolean

  """
  The tracks of the playlist.
  """
  tracks(
    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first item to return. Default: 0 (the first item).

    Use with `limit` to get the next set of items.
    """
    offset: Int
  ): PlaylistTrackConnection!

  """
  The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) */
  for the playlist.
  """
  uri: String!
}

"""
A paged set of playlists
"""
type PlaylistConnection @join__type(graph: SPOTIFY) {
  """
  The set of playlists.
  """
  edges: [PlaylistEdge!]!

  """
  Pagination information for the set of playlists
  """
  pageInfo: PageInfo!
}

type PlaylistEdge @join__type(graph: SPOTIFY) {
  """
  The playlist
  """
  node: Playlist!
}

interface PlaylistTrack @join__type(graph: SPOTIFY) {
  """
  The playlist track length in milliseconds.
  """
  durationMs: Int!

  """
  External URLs for this episode.
  """
  externalUrls: ExternalUrl!

  """
  A link to the Web API endpoint providing full details of the episode.
  """
  href: String!

  """
  The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for the playlist track.
  """
  id: ID!

  """
  The name of the episode.
  """
  name: String!

  """
  The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the playlist track.
  """
  uri: String!
}

"""
A paged set of tracks for a playlist
"""
type PlaylistTrackConnection @join__type(graph: SPOTIFY) {
  """
  Pagination information for the tracks belonging to a playlist
  """
  edges: [PlaylistTrackEdge!]!

  """
  Pagination information for the tracks belonging to a playlist
  """
  pageInfo: PageInfo!
}

type PlaylistTrackEdge @join__type(graph: SPOTIFY) {
  """
  The date and time the track was added to the playlist
  """
  addedAt: DateTime

  """
  The user that added the track to the playlist
  """
  addedBy: User!

  """
  The playlist track
  """
  node: PlaylistTrack!
}

type Query @join__type(graph: PLAYBACK) @join__type(graph: SPOTIFY) {
  """
  Spotify catalog information for an album.
  """
  album(id: ID!): Album @join__field(graph: SPOTIFY)

  """
  Get Spotify catalog information for multiple albums identified by their Spotify IDs.
  """
  albums(ids: [ID!]!): [Album!] @join__field(graph: SPOTIFY)

  """
  Spotify catalog information for an artist.
  """
  artist(id: ID!): Artist @join__field(graph: SPOTIFY)

  """
  Get Spotify catalog information for several artists based on their Spotify IDs.
  """
  artists(ids: [ID!]!): [Artist!] @join__field(graph: SPOTIFY)

  """
  Get a list of developer-specific settings, such as GraphQL field configuration.
  """
  developer: Developer! @join__field(graph: SPOTIFY)

  """
  Get Spotify catalog information for a single episode identified by its unique
  Spotify ID.
  """
  episode(id: ID!): Episode @join__field(graph: SPOTIFY)

  """
  Get Spotify catalog information for several episodes based on their Spotify IDs.
  """
  episodes(
    """
    A list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for the episodes. Maximum: 50 IDs.
    """
    ids: [ID!]!
  ): [Episode!] @join__field(graph: SPOTIFY)

  """
  A list of available genres seed parameter values for
  [recommendations](https://developer.spotify.com/documentation/web-api/reference/#/operations/get-recommendations).
  """
  genres: [String!]!
    @join__field(graph: SPOTIFY)
    @deprecated(reason: "This endpoint no longer exists in the Spotify API")

  """
  Recommendations for the current user.

  Recommendations are generated based on the available information for a given
  seed entity and matched against similar artists and tracks. If there is
  sufficient information about the provided seeds, a list of tracks will be
  returned together with pool size details.

  For artists and tracks that are very new or obscure there might not be enough
  data to generate a list of tracks.
  """
  recommendations(
    seeds: RecommendationSeedInput!
    acousticness: RecommendationAcousticnessInput
    danceability: RecommendationDanceabilityInput
    durationMs: RecommendationDurationMsInput
    energy: RecommendationEnergyInput
    instrumentalness: RecommendationInstrumentalnessInput
    key: RecommendationKeyInput
    liveness: RecommendationLivenessInput
    loudness: RecommendationLoudnessInput
    mode: RecommendationModeInput
    popularity: RecommendationPopularityInput
    speechiness: RecommendationSpeechinessInput
    tempo: RecommendationTempoInput
    timeSignature: RecommendationTimeSignatureInput
    valence: RecommendationValenceInput

    """
    The target size of the list of recommended tracks. For seeds with unusually
    small pools or when highly restrictive filtering is applied, it may be
    impossible to generate the requested number of recommended tracks. Debugging
    information for such cases is available in the response.

    Default value: 20.
    Minimum value: 1.
    Maximum value: 100.
    """
    limit: Int
  ): Recommendations
    @join__field(graph: SPOTIFY)
    @deprecated(reason: "This endpoint no longer exists in the Spotify API")

  """
  Information about the current logged-in user.
  """
  me: CurrentUser @join__field(graph: SPOTIFY)

  """
  Get a list of new album releases featured in Spotify (shown, for example, on a Spotify player’s “Browse” tab).
  """
  newReleases(
    """
    A country: an [ISO 3166-1 alpha-2 country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Provide this parameter if you want the list of returned items to be relevant to a particular country. If omitted, the returned items will be relevant to all countries.
    """
    country: CountryCode

    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first item to return. Default: 0 (the first item). Use with `limit` to get the next set of items.
    """
    offset: Int
  ): NewReleasesConnection @join__field(graph: SPOTIFY)

  """
  A playlist owned by a Spotify user.
  """
  playlist(id: ID!): Playlist @join__field(graph: SPOTIFY)

  """
  A list of Spotify featured playlists (shown, for example, on a Spotify
  player's 'Browse' tab).
  """
  featuredPlaylists(
    """
    The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first playlist to return. Default: 0 (the first object).

    Use with `limit` to get the next set of playlists.
    """
    offset: Int

    """
    Specify the local time to get results tailored for that specific date and
    time in the day. If not provided, the response defaults to the current UTC
    time. If there were no featured playlists (or there is no data) at the
    specified time, the response will revert to the current UTC time.
    """
    timestamp: DateTime
  ): FeaturedPlaylistConnection
    @join__field(graph: SPOTIFY)
    @deprecated(reason: "This endpoint no longer exists in the Spotify API")

  """
  Get Spotify catalog information about albums, artists, playlists, tracks, shows, episodes or audiobooks that match a keyword string.

  **Note: Audiobooks are only available for the US, UK, Ireland, New Zealand and Australia markets.**
  """
  search(
    """
    Your search query.

    You can narrow down your search using field filters. The available filters are album, artist, track, year, upc, tag:hipster, tag:new, isrc, and genre. Each field filter only applies to certain result types.

    The artist and year filters can be used while searching albums, artists and tracks. You can filter on a single year or a range (e.g. 1955-1960).
    The album filter can be used while searching albums and tracks.
    The genre filter can be used while searching artists and tracks.
    The isrc and track filters can be used while searching tracks.
    The upc, tag:new and tag:hipster filters can only be used while searching albums. The tag:new filter will return albums released in the past two weeks and tag:hipster can be used to return only albums with the lowest 10% popularity.
    """
    q: String!

    """
    If `includeExternal=audio` is specified it signals that the client can play externally hosted audio content, and marks the content as playable in the response. By default externally hosted audio content is marked as unplayable in the response.
    """
    includeExternal: SearchExternalValue

    """
    The maximum number of results to return in each item type.
    """
    limit: Int

    """
    The index of the first result to return. Use with `limit` to get the next page of search results.
    """
    offset: Int

    """
    A list of item types to search across. Search results include hits from all the specified item types.
    """
    type: [SearchType!]!
  ): SearchResults @join__field(graph: SPOTIFY)

  """
  Get Spotify catalog information for a single show identified by its unique
  Spotify ID.
  """
  show(id: ID!): Show @join__field(graph: SPOTIFY)

  """
  Get Spotify catalog information for several shows based on their Spotify IDs.
  """
  shows(
    """
    A list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for the shows. Maximum: 50 IDs.
    """
    ids: [ID!]!
  ): [Show!] @join__field(graph: SPOTIFY)

  """
  Get Spotify catalog information for a single track identified by its unique
  Spotify ID.
  """
  track(
    """
    The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
    for the track.
    """
    id: ID!
  ): Track @join__field(graph: SPOTIFY)

  """
  Get Spotify catalog information for multiple tracks based on their Spotify IDs.
  """
  tracks(
    """
    A list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for the tracks. Maximum: 50 IDs.
    """
    ids: [ID!]!
  ): [Track!] @join__field(graph: SPOTIFY)

  """
  Get audio features for multiple tracks based on their Spotify IDs.
  """
  tracksAudioFeatures(
    """
    A list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for the tracks. Maximum: 100 IDs.
    """
    ids: [ID!]!
  ): [TrackAudioFeatures!]!
    @join__field(graph: SPOTIFY)
    @deprecated(reason: "This endpoint no longer exists in the Spotify API")
  user(id: ID!): User @join__field(graph: SPOTIFY) @tag(name: "internal")
}

type RecentlyPlayedConnection @join__type(graph: SPOTIFY) {
  """
  The list of recently played items.
  """
  edges: [RecentlyPlayedEdge!]!
}

type RecentlyPlayedEdge @join__type(graph: SPOTIFY) {
  """
  The date and time the track was played at.
  """
  playedAt: DateTime!

  """
  The item that was recently played.
  """
  node: PlaybackItem!

  """
  The playback context for the track
  """
  context: PlaybackContext
}

input RecommendationAcousticnessInput @join__type(graph: SPOTIFY) {
  min: Float
  max: Float
  target: Float
}

input RecommendationDanceabilityInput @join__type(graph: SPOTIFY) {
  min: Float
  max: Float
  target: Float
}

input RecommendationDurationMsInput @join__type(graph: SPOTIFY) {
  min: Int
  max: Int
  target: Int
}

input RecommendationEnergyInput @join__type(graph: SPOTIFY) {
  min: Float
  max: Float
  target: Float
}

input RecommendationInstrumentalnessInput @join__type(graph: SPOTIFY) {
  min: Float
  max: Float
  target: Float
}

input RecommendationKeyInput @join__type(graph: SPOTIFY) {
  min: Int
  max: Int
  target: Int
}

input RecommendationLivenessInput @join__type(graph: SPOTIFY) {
  min: Float
  max: Float
  target: Float
}

input RecommendationLoudnessInput @join__type(graph: SPOTIFY) {
  min: Float
  max: Float
  target: Float
}

input RecommendationModeInput @join__type(graph: SPOTIFY) {
  min: Int
  max: Int
  target: Int
}

input RecommendationPopularityInput @join__type(graph: SPOTIFY) {
  min: Float
  max: Float
  target: Float
}

"""
Information about recommendations for the current user
"""
type Recommendations @join__type(graph: SPOTIFY) {
  """
  An array of recommendation [seed objects](https://developer.spotify.com/documentation/web-api/reference/#object-recommendationseedobject).
  """
  seeds: [RecommendationSeed!]!

  """
  An array of [track object (simplified)](https://developer.spotify.com/documentation/web-api/reference/#object-simplifiedtrackobject)
  ordered according to the parameters supplied.
  """
  tracks: [Track!]!
}

"""
Information about a recommendation [seed object](https://developer.spotify.com/documentation/web-api/reference/#object-recommendationseedobject).
"""
type RecommendationSeed @join__type(graph: SPOTIFY) {
  """
  The id used to select this seed. This will be the same as the string used in
  the `seedArtists`, `seedTracks` or `seedGenres` parameter.
  """
  id: ID!

  """
  The number of tracks available after min_* and max_* filters have been
  applied.
  """
  afterFilteringSize: Int!

  """
  The number of tracks available after relinking for regional availability.
  """
  afterRelinkingSize: Int!

  """
  A link to the full track or artist data for this seed. For tracks this will
  be a link to a [Track Object](https://developer.spotify.com/documentation/web-api/reference/#object-trackobject).
  For artists a link to an [Artist Object](https://developer.spotify.com/documentation/web-api/reference/#object-artistobject).
  For genre seeds, this value will be `null`.
  """
  href: String

  """
  The number of recommended tracks available for this seed.
  """
  initialPoolSize: Int!

  """
  The entity type of this seed.
  """
  type: RecommendationSeedType!
}

input RecommendationSeedInput @join__type(graph: SPOTIFY) {
  """
  A list of [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for seed artists. Up to 5 seed values may be provided in any combination of `seedArtists`, `seedTracks` and `seedGenres`.

  Example value: ["4NHQUGzhtTLFvgF5SZesLK"]
  """
  seedArtists: [ID!]

  """
  A list of any genres in the set of available genre seeds. Up to 5 seed values may be provided in any combination of `seedArtists`, `seedTracks` and `seedGenres`.

  Example value: ["classical", "country"]
  """
  seedGenres: [String!]

  """
  A list of [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for a seed track. Up to 5 seed values may be provided in any combination of
  `seedArtists`, `seedTracks` and `seedGenres`.

  Example value: ["0c6xIDDpzE81m2q797ordA"]
  """
  seedTracks: [ID!]
}

"""
Available entity types for recommendation seeds.
"""
enum RecommendationSeedType @join__type(graph: SPOTIFY) {
  ARTIST @join__enumValue(graph: SPOTIFY)
  TRACK @join__enumValue(graph: SPOTIFY)
  GENRE @join__enumValue(graph: SPOTIFY)
}

input RecommendationSpeechinessInput @join__type(graph: SPOTIFY) {
  min: Float
  max: Float
  target: Float
}

input RecommendationTempoInput @join__type(graph: SPOTIFY) {
  min: Float
  max: Float
  target: Float
}

input RecommendationTimeSignatureInput @join__type(graph: SPOTIFY) {
  min: Int
  max: Int
  target: Int
}

input RecommendationValenceInput @join__type(graph: SPOTIFY) {
  min: Float
  max: Float
  target: Float
}

type ReleaseDate @join__type(graph: SPOTIFY) {
  """
  The date the item was first released, for example `1981-12-15`. Depending on
  the precision, it might be shown as `1981-12`, or `1981-12-15`.
  """
  date: String!

  """
  The precision with which the `date` value is known.
  """
  precision: ReleaseDatePrecision!
}

enum ReleaseDatePrecision @join__type(graph: SPOTIFY) {
  YEAR @join__enumValue(graph: SPOTIFY)
  MONTH @join__enumValue(graph: SPOTIFY)
  DAY @join__enumValue(graph: SPOTIFY)
}

input RemoveItemFromPlaylistInput @join__type(graph: SPOTIFY) {
  """
  The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  of the playlist.
  """
  playlistId: ID!

  """
  The playlist's snapshot ID against which you want to make the changes. The API
  will validate that the specified items exist and in the specified positions
  and make the changes, even if more recent changes have been made to the
  playlist.
  """
  snapshotId: ID

  """
  An array of objects containing [Spotify URIs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  of the tracks or episodes to remove.
  """
  tracks: [RemoveItemFromPlaylistTrackInput!]!
}

type RemoveItemFromPlaylistPayload @join__type(graph: SPOTIFY) {
  """
  A snapshot ID for the playlist
  """
  snapshotId: ID

  """
  The playlist after the item was removed
  """
  playlist: Playlist
}

input RemoveItemFromPlaylistTrackInput @join__type(graph: SPOTIFY) {
  uri: String!
}

input RemoveSavedAlbumsInput @join__type(graph: SPOTIFY) {
  """
  A list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids).
  Maximum 20 IDs.
  """
  ids: [ID!]!
}

type RemoveSavedAlbumsPayload @join__type(graph: SPOTIFY) {
  """
  The albums that were removed from the Spotify user's library.
  """
  removedAlbums: [Album!]
}

input RemoveSavedEpisodesInput @join__type(graph: SPOTIFY) {
  """
  A list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids).
  Maximum 50 IDs.
  """
  ids: [ID!]!
}

type RemoveSavedEpisodesPayload @join__type(graph: SPOTIFY) {
  """
  The episodes that were removed from the Spotify user's library.
  """
  removedEpisodes: [Episode!]
}

input RemoveSavedShowsInput @join__type(graph: SPOTIFY) {
  """
  A list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids).
  for the shows. Maximum 50 IDs.
  """
  ids: [ID!]!
}

type RemoveSavedShowsPayload @join__type(graph: SPOTIFY) {
  """
  The shows that were removed from the Spotify user's library.
  """
  removedShows: [Show!]
}

input RemoveSavedTracksInput @join__type(graph: SPOTIFY) {
  """
  A comma-separated list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids).
  Maximum 50 IDs.
  """
  ids: [ID!]!
}

type RemoveSavedTracksPayload @join__type(graph: SPOTIFY) {
  """
  The tracks that were removed from the Spotify user's library.
  """
  removedTracks: [Track!]
}

enum RepeatMode @join__type(graph: PLAYBACK) @join__type(graph: SPOTIFY) {
  CONTEXT @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  OFF @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
  TRACK @join__enumValue(graph: PLAYBACK) @join__enumValue(graph: SPOTIFY)
}

input ResetFieldConfigInput @join__type(graph: SPOTIFY) {
  """
  The field that will be reset to its default values
  """
  field: FieldInput!
}

type ResetFieldConfigPayload @join__type(graph: SPOTIFY) {
  """
  The updated field config
  """
  fieldConfig: FieldConfig
}

input ResumePlaybackInput @join__type(graph: PLAYBACK) {
  """
  Spotify URI of the context to play. Valid contexts are albums, artists &
  playlists.
  """
  contextUri: String

  """
  The id of the device this command is targeting. If not supplied, the user's
  currently active device is the target.
  """
  deviceId: ID

  """
  Indicates from where in the context playback should start. Only available when
  contextUri corresponds to an album or playlist object.
  """
  offset: ResumePlaybackOffsetInput

  """
  Indicates the position where playback should occur in milliseconds.
  """
  positionMs: Int

  """
  An array of the Spotify track URIs to play.
  """
  uris: [String!]
}

input ResumePlaybackOffsetInput @join__type(graph: PLAYBACK) {
  """
  Non-negative, zero-based value that corresponds to the numeric position in the
  album or playlist
  """
  position: Int

  """
  Spotify URI of the item in the album or playlist
  """
  uri: String
}

type ResumePlaybackPayload @join__type(graph: PLAYBACK) {
  playbackState: PlaybackState
}

type ResumePoint @join__type(graph: SPOTIFY) {
  """
  Whether or not the episode has been fully played by the user.
  """
  fullyPlayed: Boolean!

  """
  The user's most recent position in the episode in milliseconds.
  """
  resumePositionMs: Int!
}

input SaveAlbumsInput @join__type(graph: SPOTIFY) {
  """
  A list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the albums. Maximum: 20 IDs
  """
  ids: [ID!]!
}

type SaveAlbumsPayload @join__type(graph: SPOTIFY) {
  """
  The albums that were saved to the Spotify user's library
  """
  savedAlbums: [Album!]
}

type SavedAlbumEdge @join__type(graph: SPOTIFY) {
  """
  The date the album was saved.
  """
  addedAt: DateTime!

  """
  The album object.
  """
  node: Album!
}

type SavedAlbumsConnection @join__type(graph: SPOTIFY) {
  """
  The list of saved albums.
  """
  edges: [SavedAlbumEdge!]!

  """
  Pagination information for the set of playlists
  """
  pageInfo: PageInfo!
}

type SavedEpisodeEdge @join__type(graph: SPOTIFY) {
  """
  The date the episode was saved.
  """
  addedAt: DateTime!

  """
  The saved episode.
  """
  node: Episode!
}

type SavedEpisodesConnection @join__type(graph: SPOTIFY) {
  """
  The list of saved episodes.
  """
  edges: [SavedEpisodeEdge!]!

  """
  Pagination information for the set of episodes
  """
  pageInfo: PageInfo!
}

type SavedShowEdge @join__type(graph: SPOTIFY) {
  """
  The date the show was saved.
  """
  addedAt: DateTime!

  """
  The show
  """
  node: Show!
}

type SavedShowsConnection @join__type(graph: SPOTIFY) {
  """
  A list of saved shows.
  """
  edges: [SavedShowEdge!]!

  """
  "Pagination information for the set of saved shows"
  """
  pageInfo: PageInfo!
}

type SavedTrackEdge @join__type(graph: SPOTIFY) {
  """
  The date the track was saved.
  """
  addedAt: DateTime!

  """
  The track
  """
  node: Track!
}

type SavedTracksConnection @join__type(graph: SPOTIFY) {
  """
  A list of saved tracks.
  """
  edges: [SavedTrackEdge!]!

  """
  "Pagination information for the set of playlists"
  """
  pageInfo: PageInfo!
}

input SaveEpisodesInput @join__type(graph: SPOTIFY) {
  """
  An list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids).
  Maximum: 50 IDs
  """
  ids: [ID!]!
}

type SaveEpisodesPayload @join__type(graph: SPOTIFY) {
  """
  The episodes that were saved to the Spotify user's library
  """
  savedEpisodes: [Episode!]
}

input SaveShowsInput @join__type(graph: SPOTIFY) {
  """
  An list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids).
  for the shows. Maximum: 50 IDs
  """
  ids: [ID!]!
}

type SaveShowsPayload @join__type(graph: SPOTIFY) {
  """
  The shows that were saved to the Spotify user's library
  """
  savedShows: [Show!]
}

input SaveTracksInput @join__type(graph: SPOTIFY) {
  """
  A list of the [Spotify IDs](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids).
  Maximum: 50 IDs
  """
  ids: [ID!]!
}

type SaveTracksPayload @join__type(graph: SPOTIFY) {
  """
  The tracks that were saved to the Spotify user's library
  """
  savedTracks: [Track!]
}

type SchemaField @join__type(graph: SPOTIFY) {
  """
  The parent type name in the schema (ex: `User`)
  """
  typename: String!

  """
  The name of the field in the type (ex: `firstName`)
  """
  fieldName: String!
}

input SchemaFieldInput @join__type(graph: SPOTIFY) {
  """
  The parent type name in the schema (ex: `User`)
  """
  typename: String!

  """
  The name of the field in the type (ex: `firstName`)
  """
  fieldName: String!
}

type SearchAlbumEdge @join__type(graph: SPOTIFY) {
  """
  The album returned from the search
  """
  node: Album!
}

type SearchAlbumsConnection @join__type(graph: SPOTIFY) {
  """
  The list of albums returned from the search
  """
  edges: [SearchAlbumEdge!]!

  """
  Pagination information for albums in a search
  """
  pageInfo: PageInfo!
}

type SearchArtistEdge @join__type(graph: SPOTIFY) {
  """
  The artist returned from the search
  """
  node: Artist!
}

type SearchArtistsConnection @join__type(graph: SPOTIFY) {
  """
  The list of artists returned from the search
  """
  edges: [SearchArtistEdge!]!

  """
  Pagination information for artists in a search
  """
  pageInfo: PageInfo!
}

type SearchEpisodeEdge @join__type(graph: SPOTIFY) {
  """
  The episode returned from the search
  """
  node: Episode!
}

type SearchEpisodesConnection @join__type(graph: SPOTIFY) {
  """
  The list of episodes returned from the search
  """
  edges: [SearchEpisodeEdge!]!

  """
  Pagination information for episodes in a search
  """
  pageInfo: PageInfo!
}

enum SearchExternalValue @join__type(graph: SPOTIFY) {
  AUDIO @join__enumValue(graph: SPOTIFY)
}

type SearchPlaylistEdge @join__type(graph: SPOTIFY) {
  """
  The playlist returned from the search
  """
  node: Playlist!
}

type SearchPlaylistsConnection @join__type(graph: SPOTIFY) {
  """
  The list of playlists returned from the search
  """
  edges: [SearchPlaylistEdge!]!

  """
  Pagination information for playlists in a search
  """
  pageInfo: PageInfo!
}

type SearchResults @join__type(graph: SPOTIFY) {
  """
  The set of albums returned from the search query. Only available if the search `type` includes `ALBUM`.
  """
  albums: SearchAlbumsConnection

  """
  The set of artists returned from the search query. Only available if the search `type` includes `ARTIST`.
  """
  artists: SearchArtistsConnection

  """
  The set of episodes returned from the search query. Only available if the search `type` includes `EPISODE`.
  """
  episodes: SearchEpisodesConnection

  """
  The set of playlists returned from the search query. Only available if the search `type` includes `PLAYLIST`.
  """
  playlists: SearchPlaylistsConnection

  """
  The set of shows returned from the search query. Only available if the search `type` includes `SHOW`.
  """
  shows: SearchShowsConnection

  """
  The set of tracks returned from the search query. Only available if the search `type` includes `TRACK`.
  """
  tracks: SearchTracksConnection
}

type SearchShowEdge @join__type(graph: SPOTIFY) {
  """
  The show returned from the search
  """
  node: Show!
}

type SearchShowsConnection @join__type(graph: SPOTIFY) {
  """
  The list of shows returned from the search
  """
  edges: [SearchShowEdge!]!

  """
  Pagination information for shows in a search
  """
  pageInfo: PageInfo!
}

type SearchTrackEdge @join__type(graph: SPOTIFY) {
  """
  The track returned in the search
  """
  node: Track!
}

type SearchTracksConnection @join__type(graph: SPOTIFY) {
  """
  The list of tracks returned from the search
  """
  edges: [SearchTrackEdge!]!

  """
  Pagination information for tracks in a search
  """
  pageInfo: PageInfo!
}

enum SearchType @join__type(graph: SPOTIFY) {
  ALBUM @join__enumValue(graph: SPOTIFY)
  ARTIST @join__enumValue(graph: SPOTIFY)
  EPISODE @join__enumValue(graph: SPOTIFY)
  PLAYLIST @join__enumValue(graph: SPOTIFY)
  TRACK @join__enumValue(graph: SPOTIFY)
  SHOW @join__enumValue(graph: SPOTIFY)
}

input SeekToPositionContextInput @join__type(graph: PLAYBACK) {
  """
  The id of the device this command is targeting. If not supplied, the user's currently active device is the target.
  """
  deviceId: ID
}

type SeekToPositionResponse @join__type(graph: PLAYBACK) {
  """
  The updated state of playback after seeking to a position.
  """
  playbackState: PlaybackState
}

input SetRepeatModeContextInput @join__type(graph: PLAYBACK) {
  """
  The id of the device this command is targeting. If not supplied, the user's currently active device is the target.
  """
  deviceId: ID
}

type SetRepeatModeResponse @join__type(graph: PLAYBACK) {
  """
  The updated state of playback after setting a repeat mode.
  """
  playbackState: PlaybackState
}

input SetVolumeContextInput @join__type(graph: PLAYBACK) {
  """
  The id of the device this command is targeting. If not supplied, the user's currently active device is the target.
  """
  deviceId: ID
}

type SetVolumeResponse @join__type(graph: PLAYBACK) {
  """
  The state of playback after the volume has been set.
  """
  playbackState: PlaybackState
}

"""
Spotify catalog information for a show.
"""
type Show @join__type(graph: SPOTIFY, key: "id") {
  """
  A description of the show.
  """
  description(format: TextFormat = PLAIN): String!

  """
  Spotify catalog information about an show’s episodes.
  """
  episodes(
    """
    The maximum number of episodes to return. Default: 20. Minimum: 1. Maximum: 50.
    """
    limit: Int

    """
    The index of the first playlist to return. Default: 0 (the first object).

    Use with `limit` to get the next set of episodes.
    """
    offset: Int
  ): ShowEpisodesConnection

  """
  Whether or not the show has explicit content (`true` = yes it does; `false`
  = no it does not OR unknown).
  """
  explicit: Boolean!

  """
  External URLs for this show.
  """
  externalUrls: ExternalUrl!

  """
  A link to the Web API endpoint providing full details of the show.
  """
  href: String!

  """
  The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the show.
  """
  id: ID!

  """
  The cover art for the show in various sizes, widest first.
  """
  images: [Image!]!

  """
  `true` if all of the shows episodes are hosted outside of Spotify's CDN. This
  field might be `null` in some cases.
  """
  isExternallyHosted: Boolean

  """
  A list of the languages used in the show, identified by their [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
  """
  languages: [String!]!

  """
  The media type of the show.
  """
  mediaType: String!

  """
  The name of the episode.
  """
  name: String!

  """
  The publisher of the show.
  """
  publisher: String!

  """
  The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for the show.
  """
  uri: String!
}

type ShowEpisodeEdge @join__type(graph: SPOTIFY) {
  """
  The episode
  """
  node: Episode!
}

type ShowEpisodesConnection @join__type(graph: SPOTIFY) {
  """
  A list of episodes for the show.
  """
  edges: [ShowEpisodeEdge!]!

  """
  Pagination information for the set of episodes
  """
  pageInfo: PageInfo!
}

input ShufflePlaybackContextInput @join__type(graph: PLAYBACK) {
  """
  The id of the device this command is targeting. If not supplied, the user's
  currently active device is the target.
  """
  deviceId: ID
}

type ShufflePlaybackResponse @join__type(graph: PLAYBACK) {
  """
  The state of playback after shuffling playback.
  """
  playbackState: PlaybackState
}

input SkipToNextContextInput @join__type(graph: PLAYBACK) {
  """
  The id of the device this command is targeting. If not supplied, the user's
  currently active device is the target.
  """
  deviceId: ID
}

type SkipToNextResponse @join__type(graph: PLAYBACK) {
  """
  The updated state of playback after skipping to next.
  """
  playbackState: PlaybackState
}

input SkipToPreviousContextInput @join__type(graph: PLAYBACK) {
  """
  The id of the device this command is targeting. If not supplied, the user's
  currently active device is the target.
  """
  deviceId: ID
}

type SkipToPreviousResponse @join__type(graph: PLAYBACK) {
  """
  The updated state of playback after skipping to previous.
  """
  playbackState: PlaybackState
}

type Subscription @join__type(graph: PLAYBACK) {
  playbackStateChanged: PlaybackState
}

enum TextFormat @join__type(graph: SPOTIFY) {
  PLAIN @join__enumValue(graph: SPOTIFY)
  HTML @join__enumValue(graph: SPOTIFY)
}

enum TimeRange @join__type(graph: SPOTIFY) {
  LONG_TERM @join__enumValue(graph: SPOTIFY)
  MEDIUM_TERM @join__enumValue(graph: SPOTIFY)
  SHORT_TERM @join__enumValue(graph: SPOTIFY)
}

scalar Timestamp @join__type(graph: PLAYBACK) @join__type(graph: SPOTIFY)

type TopArtistEdge @join__type(graph: SPOTIFY) {
  """
  The artist.
  """
  node: Artist!
}

type TopArtistsConnection @join__type(graph: SPOTIFY) {
  """
  The list of top tracks.
  """
  edges: [TopArtistEdge!]!

  """
  Pagination information for the set of top tracks.
  """
  pageInfo: PageInfo!
}

type TopTrackEdge @join__type(graph: SPOTIFY) {
  """
  The track.
  """
  node: Track!
}

type TopTracksConnection @join__type(graph: SPOTIFY) {
  """
  The list of top tracks.
  """
  edges: [TopTrackEdge!]!

  """
  Pagination information for the set of top tracks.
  """
  pageInfo: PageInfo!
}

"""
Spotify catalog information for a track.
"""
type Track implements PlaylistTrack & PlaybackItem
  @join__implements(graph: SPOTIFY, interface: "PlaylistTrack")
  @join__implements(graph: SPOTIFY, interface: "PlaybackItem")
  @join__type(graph: SPOTIFY, key: "id") {
  """
  The [Spotify ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for the track.
  """
  id: ID!

  """
  The album on which the track appears.
  """
  album: Album!

  """
  The artists who performed the track.
  """
  artists: [Artist!]!

  """
  The track's audio feature information
  """
  audioFeatures: TrackAudioFeatures
    @deprecated(reason: "This endpoint no longer exists in the Spotify API")

  """
  The disc number (usually `1` unless the album consists of more than one disc).
  """
  discNumber: Int!

  """
  The track length in milliseconds
  """
  durationMs: Int!

  """
  Whether or not the track has explicit lyrics (`true` = yes it does;
  `false` = no it does not OR unknown)
  """
  explicit: Boolean!

  """
  Known external IDs for the track.
  """
  externalIds: TrackExternalIds

  """
  Known external URLs for this track.
  """
  externalUrls: ExternalUrl!

  """
  A link to the Web API endpoint providing full details of the track.
  """
  href: String!

  """
  Whether or not the track is from a local file.
  """
  isLocal: Boolean!

  """
  Part of the response when [Track Relinking](https://developer.spotify.com/documentation/general/guides/track-relinking-guide/)
  is applied. If `true`, the track is playable in the given market.
  Otherwise `false`.
  """
  isPlayable: Boolean!

  """
  The name of the track
  """
  name: String!

  """
  The popularity of the track. The value will be between 0 and 100, with 100
  being the most popular.

  The popularity of a track is a value between 0 and 100, with 100 being the
  most popular. The popularity is calculated by algorithm and is based, in the
  most part, on the total number of plays the track has had and how recent those
  plays are.

  Generally speaking, songs that are being played a lot now will have a higher
  popularity than songs that were played a lot in the past. Duplicate tracks
  (e.g. the same track from a single and an album) are rated independently.
  Artist and album popularity is derived mathematically from track popularity.
  Note: the popularity value may lag actual popularity by a few days: the value
  is not updated in real time.
  """
  popularity: Int!

  """
  A link to a 30 second preview (MP3 format) of the track. Can be `null`
  """
  previewUrl: String

  """
  The number of the track. If an album has several discs, the track number is
  the number on the specified disc.
  """
  trackNumber: Int

  """
  The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for the track.
  """
  uri: String!
}

type TrackAudioFeatures @join__type(graph: SPOTIFY) {
  """
  A confidence measure from 0.0 to 1.0 of whether the track is acoustic. 1.0 represents high confidence the track is acoustic.
  """
  acousticness: Float!

  """
  A URL to access the full audio analysis of this track. An access token is required to access this data.
  """
  analysisUrl: String!

  """
  Danceability describes how suitable a track is for dancing based on a combination of musical elements including tempo, rhythm stability, beat strength, and overall regularity. A value of 0.0 is least danceable and 1.0 is most danceable.
  """
  danceability: Float!

  """
  The duration of the track in milliseconds.
  """
  durationMs: Int!

  """
  Energy is a measure from 0.0 to 1.0 and represents a perceptual measure of intensity and activity. Typically, energetic tracks feel fast, loud, and noisy. For example, death metal has high energy, while a Bach prelude scores low on the scale. Perceptual features contributing to this attribute include dynamic range, perceived loudness, timbre, onset rate, and general entropy.
  """
  energy: Float!

  """
  The Spotify ID for the track.
  """
  id: ID!

  """
  Predicts whether a track contains no vocals. "Ooh" and "aah" sounds are treated as instrumental in this context. Rap or spoken word tracks are clearly "vocal". The closer the instrumentalness value is to 1.0, the greater likelihood the track contains no vocal content. Values above 0.5 are intended to represent instrumental tracks, but confidence is higher as the value approaches 1.0.
  """
  instrumentalness: Float!

  """
  The key the track is in. Integers map to pitches using standard [Pitch Class notation](https://en.wikipedia.org/wiki/Pitch_class). E.g. 0 = C, 1 = C♯/D♭, 2 = D, and so on. If no key was detected, the value is -1.
  """
  key: Int!

  """
  Detects the presence of an audience in the recording. Higher liveness values represent an increased probability that the track was performed live. A value above 0.8 provides strong likelihood that the track is live.
  """
  liveness: Float!

  """
  The overall loudness of a track in decibels (dB). Loudness values are averaged across the entire track and are useful for comparing relative loudness of tracks. Loudness is the quality of a sound that is the primary psychological correlate of physical strength (amplitude). Values typically range between -60 and 0 db.
  """
  loudness: Float!

  """
  Mode indicates the modality (major or minor) of a track, the type of scale from which its melodic content is derived. Major is represented by 1 and minor is 0.
  """
  mode: Int!

  """
  Speechiness detects the presence of spoken words in a track. The more exclusively speech-like the recording (e.g. talk show, audio book, poetry), the closer to 1.0 the attribute value. Values above 0.66 describe tracks that are probably made entirely of spoken words. Values between 0.33 and 0.66 describe tracks that may contain both music and speech, either in sections or layered, including such cases as rap music. Values below 0.33 most likely represent music and other non-speech-like tracks.
  """
  speechiness: Float!

  """
  The overall estimated tempo of a track in beats per minute (BPM). In musical terminology, tempo is the speed or pace of a given piece and derives directly from the average beat duration.
  """
  tempo: Float!

  """
  An estimated time signature. The time signature (meter) is a notational convention to specify how many beats are in each bar (or measure). The time signature ranges from 3 to 7 indicating time signatures of "3/4", to "7/4".
  """
  timeSignature: Int!

  """
  A link to the Web API endpoint providing full details of the track.
  """
  trackHref: String!

  """
  The Spotify URI for the track.
  """
  uri: String!

  """
  A measure from 0.0 to 1.0 describing the musical positiveness conveyed by a track. Tracks with high valence sound more positive (e.g. happy, cheerful, euphoric), while tracks with low valence sound more negative (e.g. sad, depressed, angry).
  """
  valence: Float!
}

type TrackExternalIds @join__type(graph: SPOTIFY) {
  """
  [International Standard Recording Code](http://en.wikipedia.org/wiki/International_Standard_Recording_Code)
  """
  isrc: String

  """
  [International Article Number](http://en.wikipedia.org/wiki/International_Article_Number_%28EAN%29)
  """
  ean: String

  """
  [Universal Product Code](http://en.wikipedia.org/wiki/Universal_Product_Code)
  """
  upc: String
}

input TransferPlaybackInput @join__type(graph: PLAYBACK) {
  """
  A list containing the ID of the device on which playback should be
  started/transferred.
  """
  deviceIds: [ID!]!

  """
  `true`: ensure playback happens on new device.
  `false` or not provided: keep the current playback state.
  """
  play: Boolean
}

type TransferPlaybackPayload @join__type(graph: PLAYBACK) {
  """
  The state of playback after transferring devices.
  """
  playbackState: PlaybackState
}

input UpdateFieldConfigInput @join__type(graph: SPOTIFY) {
  config: FieldConfigInput!
  field: FieldInput!
}

type UpdateFieldConfigPayload @join__type(graph: SPOTIFY) {
  """
  The updated field config
  """
  fieldConfig: FieldConfig
}

"""
Public profile information about a Spotify user.
"""
type User implements UserProfile
  @join__implements(graph: SPOTIFY, interface: "UserProfile")
  @join__type(graph: SPOTIFY, key: "id") {
  """
  The [Spotify user ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for this user.
  """
  id: ID!

  """
  The name displayed on the user's profile. `null` if not available.
  """
  displayName: String

  """
  Known public external URLs for this user.
  """
  externalUrls: ExternalUrl!

  """
  Information about the followers of this user.
  """
  followers: Followers!

  """
  A link to the Web API endpoint for this user.
  """
  href: String!

  """
  The user's profile image.
  """
  images: [Image!]

  """
  The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for this user.
  """
  uri: String!
}

interface UserProfile @join__type(graph: SPOTIFY, key: "id") {
  """
  The [Spotify user ID](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids) for this user.
  """
  id: ID!

  """
  The name displayed on the user's profile. `null` if not available.
  """
  displayName: String

  """
  Information about the followers of this user.
  """
  followers: Followers!

  """
  A link to the Web API endpoint for this user.
  """
  href: String!

  """
  The user's profile image.
  """
  images: [Image!]

  """
  The [Spotify URI](https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids)
  for this user.
  """
  uri: String!
}