-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.graphql
189 lines (164 loc) · 3.15 KB
/
schema.graphql
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
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
mutation: Mutation
}
type CategoriesPaginated {
categories: [Category]
cursor: Int
total: Int
}
type Category {
href: String
icons: [Image]
id: String
name: String
}
type CurrentlyPlaying {
Item: FullTrack
context: PlaybackContext
is_playing: Boolean
progress_ms: Int
timestamp: Int
}
type Followers {
href: String
}
type FullTrack {
SimpleTrack: SimpleTrack
album: SimpleAlbum
popularity: Int
}
type Image {
height: Int
url: String
width: Int
}
type Mutation {
followPlaylist(owner: String, playlistId: String, unfollow: Boolean): Boolean
likeSong(id: String, unfollow: Boolean): Boolean
play(devID: String, uri: String): Boolean
stop: Boolean
test: String
}
type MySongsPaginated {
cursor: Int
songs: [SavedTrack]
total: Int
}
type PlaybackContext {
href: String
type: String
uri: String
}
type PlayerDevice {
id: String
is_active: Boolean
is_restricted: Boolean
name: String
type: String
volume_percent: Int
}
type PlayerState {
CurrentlyPlaying: CurrentlyPlaying
device: PlayerDevice
repeat_state: String
shuffle_state: Boolean
}
type PlaylistInfo {
description: String
id: String
images: [Image]
name: String
}
type PlaylistSongsPaginated {
cursor: Int
songs: [SavedTrack]
total: Int
}
type PlaylistTracks {
href: String
}
type PlaylistsPaginated {
cursor: Int
playlists: [SimplePlaylist]
total: Int
}
type Profile {
email: String
images: [Image]
name: String
}
type Query {
auth(code: String): Token
categoriesPaginated(cursor: Int, pace: Int): CategoriesPaginated
followPlaylist(playlistId: String): Boolean
isLogged: Boolean
likedSongs(ids: [String]): [String]
login(state: String): String
myDevices: [PlayerDevice]
mySongsPaginated(cursor: Int, pace: Int): MySongsPaginated
nowPlaying: PlayerState
playlistInfo(owner: String, playID: String): PlaylistInfo
playlistSongsPaginated(cursor: Int, owner: String, pace: Int, playID: String): PlaylistSongsPaginated
playlistsPaginated(catID: String, cursor: Int, pace: Int): PlaylistsPaginated
profile: Profile
publicSongsPaginated(cursor: Int, pace: Int, query: String): MySongsPaginated
}
type SavedTrack {
added_at: String
track: FullTrack
}
type SimpleAlbum {
album_type: String
available_markets: [String]
href: String
id: String
images: [Image]
name: String
uri: String
}
type SimpleArtist {
href: String
id: String
name: String
uri: String
}
type SimplePlaylist {
collaborative: Boolean
href: String
id: String
images: [Image]
name: String
owner: User
public: Boolean
snapshot_id: String
tracks: PlaylistTracks
uri: String
}
type SimpleTrack {
artists: [SimpleArtist]
available_markets: [String]
disc_number: Int
duration_ms: Int
explicit: Boolean
href: String
id: String
name: String
preview_url: String
track_number: Int
uri: String
}
type Token {
access_token: String
expiry: Int
refresh_token: String
token_type: String
}
type User {
display_name: String
followers: Followers
href: String
id: String
uri: String
}