type GET_person__person_id__images_ProfilesEntry {
  aspect_ratio: Float
  file_path: String
  height: Int
  """
  Field "iso_639_1" is defined as JSON since its value was always 'null'
  """
  iso_639_1: JSON
  vote_average: Float
  vote_count: Int
  width: Int
}

type GET_person__person_id__images_Root {
  id: Int
  profiles: [GET_person__person_id__images_ProfilesEntry]
}

type Query {
  GET_person__person_id__images(
    person_id: String!
    tmdb_access_token: String!
  ): GET_person__person_id__images_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/person/$person_id;/images"
      headers: [{ name: "authorization", value: "Bearer $tmdb_access_token;" }]
    )
}
type GET_tv_popular_ResultsEntry {
  adult: Boolean
  backdrop_path: String
  first_air_date: Date
  genre_ids: [Int]
  id: Int
  name: String
  origin_country: [String]
  original_language: String
  original_name: String
  overview: String
  popularity: Float
  poster_path: String
  vote_average: Float
  vote_count: Int
}

type GET_tv_popular_Root {
  page: Int
  results: [GET_tv_popular_ResultsEntry]
  total_pages: Int
  total_results: Int
}

type Query {
  GET_tv_popular(tmdb_access_token: String!): GET_tv_popular_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/tv/popular"
      headers: [{ name: "authorization", value: "Bearer $tmdb_access_token;" }]
    )
}
type GET_tv__tv_id__credits_CastEntry {
  adult: Boolean
  character: String
  credit_id: String
  gender: Int
  id: Int
  known_for_department: String
  name: String
  order: Int
  original_name: String
  popularity: Float
  profile_path: String
}

type GET_tv__tv_id__credits_CrewEntry {
  adult: Boolean
  credit_id: String
  department: String
  gender: Int
  id: Int
  job: String
  known_for_department: String
  name: String
  original_name: String
  popularity: Float
  profile_path: String
}

type GET_tv__tv_id__credits_Root {
  cast: [GET_tv__tv_id__credits_CastEntry]
  crew: [GET_tv__tv_id__credits_CrewEntry]
  id: Int
}

type Query {
  GET_tv__tv_id__credits(
    tmdb_access_token: String!
    tv_id: String!
  ): GET_tv__tv_id__credits_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/tv/$tv_id;/credits"
      headers: [{ name: "authorization", value: "Bearer $tmdb_access_token;" }]
    )
}
