type GET_person__person_id_Root {
  adult: Boolean
  also_known_as: [String]
  biography: String
  birthday: Date
  """
  Field "deathday" is defined as JSON since its value was always 'null'
  """
  deathday: JSON
  gender: Int
  """
  Field "homepage" is defined as JSON since its value was always 'null'
  """
  homepage: JSON
  id: Int
  imdb_id: String
  known_for_department: String
  name: String
  place_of_birth: String
  popularity: Float
  profile_path: String
}

type Query {
  GET_person__person_id_(
    person_id: String!
    tmdb_access_token: String!
  ): GET_person__person_id_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/person/$person_id;"
      headers: [{ name: "authorization", value: "Bearer $tmdb_access_token;" }]
    )
}
type GET_trending__media_type___time_window_ResultsEntry {
  adult: Boolean
  backdrop_path: String
  genre_ids: [Int]
  id: Int
  media_type: String
  original_language: String
  original_title: String
  overview: String
  popularity: Float
  poster_path: String
  release_date: Date
  title: String
  video: Boolean
  vote_average: Float
  vote_count: Int
}

type GET_trending__media_type___time_window_Root {
  page: Int
  results: [GET_trending__media_type___time_window_ResultsEntry]
  total_pages: Int
  total_results: Int
}

type Query {
  GET_trending__media_type___time_window_(
    media_type: String!
    time_window: String!
    tmdb_access_token: String!
  ): GET_trending__media_type___time_window_Root
    @rest(
      endpoint: "https://api.themoviedb.org/3/trending/$media_type;/$time_window;"
      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;" }]
    )
}
