type GET_me_player_devices_DevicesEntry {
  id: String
  is_active: Boolean
  is_private_session: Boolean
  is_restricted: Boolean
  name: String
  supports_volume: Boolean
  type: String
  volume_percent: Int
}

type GET_me_player_devices_Root {
  devices: [GET_me_player_devices_DevicesEntry]
}

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