type GET_me_tracks_Album {
  album_type: String
  artists: [GET_me_tracks_ArtistsEntry]
  available_markets: [String]
  external_urls: GET_me_tracks_ExternalUrls1
  href: String
  id: String
  images: [GET_me_tracks_ImagesEntry]
  name: String
  release_date: Date
  release_date_precision: String
  total_tracks: Int
  type: String
  uri: String
}

type GET_me_tracks_Artists1Entry {
  external_urls: GET_me_tracks_ExternalUrls2
  href: String
  id: String
  name: String
  type: String
  uri: String
}

type GET_me_tracks_ArtistsEntry {
  external_urls: GET_me_tracks_ExternalUrls
  href: String
  id: String
  name: String
  type: String
  uri: String
}

type GET_me_tracks_ExternalIds {
  isrc: String
}

type GET_me_tracks_ExternalUrls {
  spotify: String
}

type GET_me_tracks_ExternalUrls1 {
  spotify: String
}

type GET_me_tracks_ExternalUrls2 {
  spotify: String
}

type GET_me_tracks_ExternalUrls3 {
  spotify: String
}

type GET_me_tracks_ImagesEntry {
  height: Int
  url: String
  width: Int
}

type GET_me_tracks_ItemsEntry {
  added_at: DateTime
  track: GET_me_tracks_Track
}

type GET_me_tracks_Root {
  href: String
  items: [GET_me_tracks_ItemsEntry]
  limit: Int
  """
  Field "next" is defined as JSON since its value was always 'null'
  """
  next: JSON
  offset: Int
  """
  Field "previous" is defined as JSON since its value was always 'null'
  """
  previous: JSON
  total: Int
}

type GET_me_tracks_Track {
  album: GET_me_tracks_Album
  artists: [GET_me_tracks_Artists1Entry]
  available_markets: [String]
  disc_number: Int
  duration_ms: Int
  explicit: Boolean
  external_ids: GET_me_tracks_ExternalIds
  external_urls: GET_me_tracks_ExternalUrls3
  href: String
  id: String
  is_local: Boolean
  name: String
  popularity: Int
  preview_url: String
  track_number: Int
  type: String
  uri: String
}

type Query {
  GET_me_tracks(spotify_access_token: String!): GET_me_tracks_Root
    @rest(
      endpoint: "https://api.spotify.com/v1/me/tracks"
      headers: [
        { name: "authorization", value: "Bearer $spotify_access_token;" }
      ]
    )
}
type GET_me_following_Artists {
  cursors: GET_me_following_Cursors
  href: String
  items: [GET_me_following_ItemsEntry]
  limit: Int
  """
  Field "next" is defined as JSON since its value was always 'null'
  """
  next: JSON
  total: Int
}

type GET_me_following_Cursors {
  """
  Field "after" is defined as JSON since its value was always 'null'
  """
  after: JSON
}

type GET_me_following_ExternalUrls {
  spotify: String
}

type GET_me_following_Followers {
  """
  Field "href" is defined as JSON since its value was always 'null'
  """
  href: JSON
  total: Int
}

type GET_me_following_ImagesEntry {
  height: Int
  url: String
  width: Int
}

type GET_me_following_ItemsEntry {
  external_urls: GET_me_following_ExternalUrls
  followers: GET_me_following_Followers
  genres: [String]
  href: String
  id: String
  images: [GET_me_following_ImagesEntry]
  name: String
  popularity: Int
  type: String
  uri: String
}

type GET_me_following_Root {
  artists: GET_me_following_Artists
}

type Query {
  GET_me_following(
    spotify_access_token: String!
    type: String
  ): GET_me_following_Root
    @rest(
      endpoint: "https://api.spotify.com/v1/me/following"
      headers: [
        { name: "authorization", value: "Bearer $spotify_access_token;" }
      ]
    )
}
