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

type GET_search_ArtistsEntry {
  external_urls: GET_search_ExternalUrls
  href: String
  id: String
  name: String
  type: String
  uri: String
}

type GET_search_ExternalUrls {
  spotify: String
}

type GET_search_ExternalUrls1 {
  spotify: String
}

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

type GET_search_ItemsEntry {
  album_type: String
  artists: [GET_search_ArtistsEntry]
  available_markets: [String]
  external_urls: GET_search_ExternalUrls1
  href: String
  id: String
  images: [GET_search_ImagesEntry]
  name: String
  release_date: Date
  release_date_precision: String
  total_tracks: Int
  type: String
  uri: String
}

type GET_search_Root {
  albums: GET_search_Albums
}

type Query {
  GET_search(
    q: String
    spotify_access_token: String!
    type: String
  ): GET_search_Root
    @rest(
      endpoint: "https://api.spotify.com/v1/search"
      headers: [
        { name: "authorization", value: "Bearer $spotify_access_token;" }
      ]
    )
}
type GET_albums__id_Artists1Entry {
  external_urls: GET_albums__id_ExternalUrls2
  href: String
  id: String
  name: String
  type: String
  uri: String
}

type GET_albums__id_ArtistsEntry {
  external_urls: GET_albums__id_ExternalUrls1
  href: String
  id: String
  name: String
  type: String
  uri: String
}

type GET_albums__id_CopyrightsEntry {
  text: String
  type: String
}

type GET_albums__id_ExternalIds {
  upc: Float
}

type GET_albums__id_ExternalUrls {
  spotify: String
}

type GET_albums__id_ExternalUrls1 {
  spotify: String
}

type GET_albums__id_ExternalUrls2 {
  spotify: String
}

type GET_albums__id_ExternalUrls3 {
  spotify: String
}

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

type GET_albums__id_ItemsEntry {
  artists: [GET_albums__id_Artists1Entry]
  available_markets: [String]
  disc_number: Int
  duration_ms: Int
  explicit: Boolean
  external_urls: GET_albums__id_ExternalUrls3
  href: String
  id: String
  is_local: Boolean
  name: String
  preview_url: String
  track_number: Int
  type: String
  uri: String
}

type GET_albums__id_Root {
  album_type: String
  artists: [GET_albums__id_ArtistsEntry]
  available_markets: [String]
  copyrights: [GET_albums__id_CopyrightsEntry]
  external_ids: GET_albums__id_ExternalIds
  external_urls: GET_albums__id_ExternalUrls
  genres: [JSON]
  href: String
  id: String
  images: [GET_albums__id_ImagesEntry]
  label: String
  name: String
  popularity: Int
  release_date: Int
  release_date_precision: String
  total_tracks: Int
  tracks: GET_albums__id_Tracks
  type: String
  uri: String
}

type GET_albums__id_Tracks {
  href: String
  items: [GET_albums__id_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 Query {
  GET_albums__id_(
    id: String!
    spotify_access_token: String!
  ): GET_albums__id_Root
    @rest(
      endpoint: "https://api.spotify.com/v1/albums/$id;"
      headers: [
        { name: "authorization", value: "Bearer $spotify_access_token;" }
      ]
    )
}
